vite-plugin-vue-devtools 7.0.12 → 7.0.14

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 (28) hide show
  1. package/dist/client/assets/{css-a-KJtBLB.js → css-tuEqSfZX.js} +347 -347
  2. package/dist/client/assets/html-NT1OIsSF.js +74 -0
  3. package/dist/client/assets/index-KXVUFBYX.js +1096 -0
  4. package/dist/client/assets/{index-598L0Wdv.css → index-fx3Lb9Fg.css} +1 -1
  5. package/dist/client/assets/{javascript-Of8SnKfU.js → javascript-4rbEI_qn.js} +507 -507
  6. package/dist/client/assets/json-xL80yL3n.js +25 -0
  7. package/dist/client/assets/{shellscript-h1L64xId.js → shellscript-82BvnTib.js} +3 -3
  8. package/dist/client/assets/{typescript-b1Nw_bQe.js → typescript-IWNmnGsa.js} +487 -487
  9. package/dist/client/assets/unocss-runtime-TAqnQCrJ.js +2 -0
  10. package/dist/client/assets/{vue-nOwTje1i.js → vue-YzhXM3IG.js} +1508 -1508
  11. package/dist/client/assets/{vue-html-eJ6eRCYJ.js → vue-html-K7eG1nl_.js} +1 -1
  12. package/dist/client/assets/yaml-zytfnWoA.js +200 -0
  13. package/dist/client/index.html +3 -3
  14. package/dist/client/logo.svg +208 -0
  15. package/dist/vite.cjs +18 -9
  16. package/dist/vite.d.cts +7 -0
  17. package/dist/vite.d.mts +7 -0
  18. package/dist/vite.d.ts +7 -0
  19. package/dist/vite.mjs +18 -9
  20. package/package.json +7 -7
  21. package/src/overlay/devtools-overlay.css +1 -1
  22. package/src/overlay/devtools-overlay.js +3 -3
  23. package/src/overlay.js +3 -1
  24. package/dist/client/assets/html-5-AIf93y.js +0 -74
  25. package/dist/client/assets/index-cEmzwhNg.js +0 -1096
  26. package/dist/client/assets/json-t1qiHl76.js +0 -25
  27. package/dist/client/assets/unocss-runtime-402WFgCt.js +0 -2
  28. package/dist/client/assets/yaml-FtfhlYqU.js +0 -200
@@ -0,0 +1,2 @@
1
+ const ke=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ie=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Ne=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Fe(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ze(e);return}return t}function ze(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function De(e,t={}){if(typeof e!="string")return e;const r=e.trim();if(e[0]==='"'&&e.at(-1)==='"'&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){const s=r.toLowerCase();if(s==="true")return!0;if(s==="false")return!1;if(s==="undefined")return;if(s==="null")return null;if(s==="nan")return Number.NaN;if(s==="infinity")return Number.POSITIVE_INFINITY;if(s==="-infinity")return Number.NEGATIVE_INFINITY}if(!Ne.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ke.test(e)||Ie.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Fe)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const Ue=/#/g,Ve=/&/g,Be=/=/g,ee=/\+/g,qe=/%5e/gi,He=/%60/gi,Ge=/%7c/gi,We=/%20/gi;function Je(e){return encodeURI(""+e).replace(Ge,"|")}function K(e){return Je(typeof e=="string"?e:JSON.stringify(e)).replace(ee,"%2B").replace(We,"+").replace(Ue,"%23").replace(Ve,"%26").replace(He,"`").replace(qe,"^")}function H(e){return K(e).replace(Be,"%3D")}function be(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Qe(e){return be(e.replace(ee," "))}function Ke(e){return be(e.replace(ee," "))}function Ye(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const s=r.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const n=Qe(s[1]);if(n==="__proto__"||n==="constructor")continue;const i=Ke(s[2]||"");t[n]===void 0?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}function Xe(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${H(e)}=${K(r)}`).join("&"):`${H(e)}=${K(t)}`:H(e)}function Ze(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Xe(t,e[t])).filter(Boolean).join("&")}const et=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tt=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,rt=/^([/\\]\s*){2,}[^/\\]/;function Se(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?et.test(e):tt.test(e)||(t.acceptRelative?rt.test(e):!1)}const nt=/\/$|\/\?|\/#/;function Y(e="",t){return t?nt.test(e):e.endsWith("/")}function st(e="",t){if(!t)return(Y(e)?e.slice(0,-1):e)||"/";if(!Y(e,!0))return e||"/";let r=e,s="";const n=e.indexOf("#");n>=0&&(r=e.slice(0,n),s=e.slice(n));const[i,...c]=r.split("?");return(i.slice(0,-1)||"/")+(c.length>0?`?${c.join("?")}`:"")+s}function ot(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Y(e,!0))return e||"/";let r=e,s="";const n=e.indexOf("#");if(n>=0&&(r=e.slice(0,n),s=e.slice(n),!r))return s;const[i,...c]=r.split("?");return i+"/"+(c.length>0?`?${c.join("?")}`:"")+s}function it(e,t){if(ct(t)||Se(e))return e;const r=st(t);return e.startsWith(r)?e:ut(r,e)}function at(e,t){const r=_e(e),s={...Ye(r.search),...t};return r.search=Ze(s),ht(r)}function ct(e){return!e||e==="/"}function lt(e){return e&&e!=="/"}const ft=/^\.?\//;function ut(e,...t){let r=e||"";for(const s of t.filter(n=>lt(n)))if(r){const n=s.replace(ft,"");r=ot(r)+n}else r=s;return r}function _e(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,h,d=""]=r;return{protocol:h.toLowerCase(),pathname:d,href:h+d,auth:"",host:"",search:"",hash:""}}if(!Se(e,{acceptRelative:!0}))return t?_e(t+e):ne(e);const[,s="",n,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,c="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:o}=ne(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:s.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:c,pathname:l,search:u,hash:o}}function ne(e=""){const[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}function ht(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",n=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol?e.protocol+"//":"")+n+i+t+r+s}class pt extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}}function dt(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",n=`[${r}] ${JSON.stringify(s)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",c=`${n}: ${i}${t?` ${t}`:""}`,a=new pt(c,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const mt=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function se(e="GET"){return mt.has(e.toUpperCase())}function gt(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const yt=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wt=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function bt(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return wt.test(t)?"json":yt.has(t)||t.startsWith("text/")?"text":"blob"}function St(e,t,r=globalThis.Headers){const s={...t,...e};if(t?.params&&e?.params&&(s.params={...t?.params,...e?.params}),t?.query&&e?.query&&(s.query={...t?.query,...e?.query}),t?.headers&&e?.headers){s.headers=new r(t?.headers||{});for(const[n,i]of new r(e?.headers||{}))s.headers.set(n,i)}return s}const _t=new Set([408,409,425,429,500,502,503,504]),vt=new Set([101,204,205,304]);function ve(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function n(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let o;typeof a.options.retry=="number"?o=a.options.retry:o=se(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(o>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):_t.has(h))){const d=a.options.retryDelay||0;return d>0&&await new Promise(g=>setTimeout(g,d)),i(a.request,{...a.options,retry:o-1,timeout:a.options.timeout})}}const u=dt(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){const o={request:l,options:St(u,e.defaults,r),response:void 0,error:void 0};if(o.options.method=o.options.method?.toUpperCase(),o.options.onRequest&&await o.options.onRequest(o),typeof o.request=="string"&&(o.options.baseURL&&(o.request=it(o.request,o.options.baseURL)),(o.options.query||o.options.params)&&(o.request=at(o.request,{...o.options.params,...o.options.query}))),o.options.body&&se(o.options.method)&&(gt(o.options.body)?(o.options.body=typeof o.options.body=="string"?o.options.body:JSON.stringify(o.options.body),o.options.headers=new r(o.options.headers||{}),o.options.headers.has("content-type")||o.options.headers.set("content-type","application/json"),o.options.headers.has("accept")||o.options.headers.set("accept","application/json")):("pipeTo"in o.options.body&&typeof o.options.body.pipeTo=="function"||typeof o.options.body.pipe=="function")&&("duplex"in o.options||(o.options.duplex="half"))),!o.options.signal&&o.options.timeout){const d=new s;setTimeout(()=>d.abort(),o.options.timeout),o.options.signal=d.signal}try{o.response=await t(o.request,o.options)}catch(d){return o.error=d,o.options.onRequestError&&await o.options.onRequestError(o),await n(o)}if(o.response.body&&!vt.has(o.response.status)&&o.options.method!=="HEAD"){const d=(o.options.parseResponse?"json":o.options.responseType)||bt(o.response.headers.get("content-type")||"");switch(d){case"json":{const g=await o.response.text(),S=o.options.parseResponse||De;o.response._data=S(g);break}case"stream":{o.response._data=o.response.body;break}default:o.response._data=await o.response[d]()}}return o.options.onResponse&&await o.options.onResponse(o),!o.options.ignoreResponseError&&o.response.status>=400&&o.response.status<600?(o.options.onResponseError&&await o.options.onResponseError(o),await n(o)):o.response},c=async function(l,u){return(await i(l,u))._data};return c.raw=i,c.native=(...a)=>t(...a),c.create=(a={})=>ve({...e,defaults:{...e.defaults,...a}}),c}const te=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Et=te.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),$t=te.Headers,Ct=te.AbortController,xt=ve({fetch:Et,Headers:$t,AbortController:Ct}),At=xt;function Ot(e){const t=e.length;let r=-1,s,n="";const i=e.charCodeAt(0);for(;++r<t;){if(s=e.charCodeAt(r),s===0){n+="�";continue}if(s===37){n+="\\%";continue}if(s===44){n+="\\,";continue}if(s>=1&&s<=31||s===127||r===0&&s>=48&&s<=57||r===1&&s>=48&&s<=57&&i===45){n+=`\\${s.toString(16)} `;continue}if(r===0&&t===1&&s===45){n+=`\\${e.charAt(r)}`;continue}if(s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}const G=Ot;function M(e=[]){return Array.isArray(e)?e:[e]}function B(e){return Array.from(new Set(e))}function Rt(e,t){return e.reduce((r,s)=>(r.findIndex(i=>t(s,i))===-1&&r.push(s),r),[])}function O(e){return typeof e=="string"}function F(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Tt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>F(t)):[e]:[F(e)]}function jt(e){return e.filter(([t,r],s)=>{if(t.startsWith("$$"))return!1;for(let n=s-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function W(e){return e==null?"":jt(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function D(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ee(e,t,r=!1){const s=e,n=t;if(Array.isArray(n))return r&&Array.isArray(n)?[...s,...n]:[...n];const i={...s};return D(s)&&D(n)&&Object.keys(n).forEach(c=>{D(s[c])&&D(n[c])||Array.isArray(s[c])&&Array.isArray(n[c])?i[c]=Ee(s[c],n[c],r):Object.assign(i,{[c]:n[c]})}),i}function V(e){let t,r,s;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(s=e[t])&&typeof s=="object"?V(s):s;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:V(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(s=e[t])&&typeof s=="object"?V(s):s;return r}return e}function Mt(e){return O(e[0])}function Pt(e){return O(e[0])}const oe="$$shortcut-no-merge";function Lt(e){return typeof e=="function"?{match:e}:e}function ie(e){return e.length===3}function kt(e){return e!=null}function It(){}var Nt=Object.defineProperty,Ft=(e,t,r)=>t in e?Nt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t,r)=>(Ft(e,typeof t!="symbol"?t+"":t,r),r);class Dt{constructor(){zt(this,"_map",new Map)}get(t,r){const s=this._map.get(t);if(s)return s.get(r)}getFallback(t,r,s){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,s),n.get(r)}set(t,r,s){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,s),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,s])=>Array.from(s.entries()).map(([n,i])=>t(i,r,n)))}}var Ut=Object.defineProperty,Vt=(e,t,r)=>t in e?Ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t,r)=>(Vt(e,typeof t!="symbol"?t+"":t,r),r);class $e extends Set{constructor(t){super(t),Bt(this,"_map"),this._map??(this._map=new Map)}add(t){return this._map??(this._map=new Map),this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}}function J(e){return e instanceof $e}const U={};function qt(e=["-",":"]){const t=e.join("|");return U[t]||(U[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),U[t].lastIndex=0,U[t]}function Ht(e,t=["-",":"],r=5){const s=qt(t);let n,i=e.toString();const c=new Set,a=new Map;do n=!1,i=i.replace(s,(u,o,h,d,g)=>{if(!t.includes(h))return u;n=!0,c.add(o+h);const S=g+o.length+h.length+1,y={length:u.length,items:[]};a.set(g,y);for(const p of[...d.matchAll(/\S+/g)]){const _=S+p.index;let b=a.get(_)?.items;b?a.delete(_):b=[{offset:_,length:p[0].length,className:p[0]}];for(const v of b)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${h}$2`),y.items.push(v)}return"$".repeat(u.length)}),r-=1;while(n&&r);let l;if(typeof e=="string"){l="";let u=0;for(const[o,h]of a)l+=e.slice(u,o),l+=h.items.map(d=>d.className).join(" "),u=o+h.length;l+=e.slice(u)}else{l=e;for(const[u,o]of a)l.overwrite(u,u+o.length,o.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(c),hasChanged:n,groupsByOffset:a,get expanded(){return l.toString()}}}function Gt(e,t=["-",":"],r=5){const s=Ht(e,t,r);return typeof e=="string"?s.expanded:e}const ae=new Set;function Ce(e){ae.has(e)||(console.warn("[unocss]",e),ae.add(e))}const Wt=/[\\:]?[\s'"`;{}]+/g;function Jt(e){return e.split(Wt)}const Qt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Jt(e)}};function Kt(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}const X="default",Z="preflights",Yt="shortcuts",Xt="imports",Zt={[Xt]:-200,[Z]:-100,[Yt]:-10,[X]:0};function xe(e){return M(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}const ce="_uno_resolved";function er(e){let t=typeof e=="function"?e():e;if(ce in t)return t;t={...t},Object.defineProperty(t,ce,{value:!0,enumerable:!1});const r=t.shortcuts?xe(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){const s=n=>{n[2]||(n[2]={});const i=n[2];i.prefix==null&&t.prefix&&(i.prefix=M(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(s),t.rules?.forEach(s)}return t}function Ae(e){const t=er(e);if(!t.presets)return[t];const r=(t.presets||[]).flatMap(M).flatMap(Ae);return[t,...r]}function le(e={},t={}){const r=Object.assign({},t,e),s=Rt((r.presets||[]).flatMap(M).flatMap(Ae),(f,w)=>f.name===w.name),n=[...s.filter(f=>f.enforce==="pre"),...s.filter(f=>!f.enforce),...s.filter(f=>f.enforce==="post")],i=[...n,r],c=[...i].reverse(),a=Object.assign({},Zt,...i.map(f=>f.layers));function l(f){return B(i.flatMap(w=>M(w[f]||[])))}const u=l("extractors");let o=c.find(f=>f.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Qt),o&&!u.includes(o)&&u.unshift(o),u.sort((f,w)=>(f.order||0)-(w.order||0));const h=l("rules"),d={},g=h.length,S=h.map((f,w)=>{if(Mt(f)){M(f[2]?.prefix||"").forEach(A=>{d[A+f[0]]=[w,f[1],f[2],f]});return}return[w,...f]}).filter(Boolean).reverse();let y=tr(i.map(f=>f.theme));const p=l("extendTheme");for(const f of p)y=f(y)||y;const _={templates:B(i.flatMap(f=>M(f.autocomplete?.templates))),extractors:i.flatMap(f=>M(f.autocomplete?.extractors)).sort((f,w)=>(f.order||0)-(w.order||0)),shorthands:rr(i.map(f=>f.autocomplete?.shorthands||{}))};let b=l("separators");b.length||(b=[":","-"]);const v={mergeSelectors:!0,warn:!0,sortLayers:f=>f,...r,blocklist:l("blocklist"),presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:y,rulesSize:g,rulesDynamic:S,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:_,variants:l("variants").map(Lt).sort((f,w)=>(f.order||0)-(w.order||0)),shortcuts:xe(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(const f of i)f?.configResolved?.(v);return v}function tr(e){return e.map(t=>t?V(t):{}).reduce((t,r)=>Ee(t,r),{})}function rr(e){return e.reduce((t,r)=>{const s={};for(const n in r){const i=r[n];Array.isArray(i)?s[n]=`(${i.join("|")})`:s[n]=i}return{...t,...s}},{})}const nr="0.58.4";var sr=Object.defineProperty,or=(e,t,r)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>(or(e,typeof t!="symbol"?t+"":t,r),r);class ir{constructor(t={},r={}){this.userConfig=t,this.defaults=r,I(this,"version",nr),I(this,"_cache",new Map),I(this,"config"),I(this,"blocked",new Set),I(this,"parentOrders",new Map),I(this,"events",Kt()),this.config=le(t,r),this.events.emit("config",this.config)}setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=le(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,s=new Set){const n={original:t,code:t,id:r,extracted:s,envMode:this.config.envMode};for(const i of this.config.extractors){const c=await i.extract?.(n);if(c)if(J(c)&&J(s))for(const a of c)s.setCount(a,s.getCount(a)+c.getCount(a));else for(const a of c)s.add(a)}return s}makeContext(t,r){const s={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(s,...n),variantMatch:r};return s}async parseToken(t,r){if(this.blocked.has(t))return;const s=`${t}${r?` ${r}`:""}`;if(this._cache.has(s))return this._cache.get(s);let n=t;for(const u of this.config.preprocess)n=u(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(s,null);return}const i=await this.matchVariants(t,n);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(s,null);return}const c=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(c.variants=[...i[3]]);const a=await this.expandShortcut(c.currentSelector,c),l=a?await this.stringifyShortcuts(c.variantMatch,c,a[0],a[1]):(await this.parseUtil(c.variantMatch,c))?.map(u=>this.stringifyUtil(u,c)).filter(kt);if(l?.length)return this._cache.set(s,l),l;this._cache.set(s,null)}async generate(t,r={}){const{id:s,scope:n,preflights:i=!0,safelist:c=!0,minify:a=!1,extendedInfo:l=!1}=r,u=O(t)?await this.applyExtractors(t,s,l?new $e:new Set):Array.isArray(t)?new Set(t):t;c&&this.config.safelist.forEach(f=>{u.has(f)||u.add(f)});const o=a?"":`
2
+ `,h=new Set([X]),d=l?new Map:new Set,g=new Map;let S={};const y=Array.from(u).map(async f=>{if(d.has(f))return;const w=await this.parseToken(f);if(w!=null){d instanceof Map?d.set(f,{data:w,count:J(u)?u.getCount(f):-1}):d.add(f);for(const C of w){const A=C[3]||"",x=C[4]?.layer;g.has(A)||g.set(A,[]),g.get(A).push(C),x&&h.add(x)}}});await Promise.all(y),await(async()=>{if(!i)return;const f={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:C=Z})=>{h.add(C),w.add(C)}),S=Object.fromEntries(await Promise.all(Array.from(w).map(async C=>{const x=(await Promise.all(this.config.preflights.filter(L=>(L.layer||Z)===C).map(async L=>await L.getCSS(f)))).filter(Boolean).join(o);return[C,x]})))})();const p=this.config.sortLayers(Array.from(h).sort((f,w)=>(this.config.layers[f]??0)-(this.config.layers[w]??0)||f.localeCompare(w))),_={},b=f=>{if(_[f])return _[f];let w=Array.from(g).sort((A,x)=>(this.parentOrders.get(A[0])??0)-(this.parentOrders.get(x[0])??0)||A[0]?.localeCompare(x[0]||"")||0).map(([A,x])=>{const L=x.length,k=x.filter(m=>(m[4]?.layer||X)===f).sort((m,E)=>m[0]-E[0]||(m[4]?.sort||0)-(E[4]?.sort||0)||m[5]?.currentSelector?.localeCompare(E[5]?.currentSelector??"")||m[1]?.localeCompare(E[1]||"")||m[2]?.localeCompare(E[2]||"")||0).map(([,m,E,,$,,R])=>[[[(m&&lr(m,n))??"",$?.sort??0]],E,!!(R??$?.noMerge)]);if(!k.length)return;const N=k.reverse().map(([m,E,$],R)=>{if(!$&&this.config.mergeSelectors)for(let T=R+1;T<L;T++){const P=k[T];if(P&&!P[2]&&(m&&P[0]||m==null&&P[0]==null)&&P[1]===E)return m&&P[0]&&P[0].push(...m),null}const j=m?B(m.sort((T,P)=>T[1]-P[1]||T[0]?.localeCompare(P[0]||"")||0).map(T=>T[0]).filter(Boolean)):[];return j.length?`${j.join(`,${o}`)}{${E}}`:E}).filter(Boolean).reverse().join(o);if(!A)return N;const z=A.split(" $$ ");return`${z.join("{")}{${o}${N}${o}${"}".repeat(z.length)}`}).filter(Boolean).join(o);i&&(w=[S[f],w].filter(Boolean).join(o));const C=a?"":`/* layer: ${f} */${o}`;return _[f]=w?C+w:""},v=(f=p,w)=>f.filter(C=>!w?.includes(C)).map(C=>b(C)||"").filter(Boolean).join(o);return{get css(){return v()},layers:p,matched:d,getLayers:v,getLayer:b}}async matchVariants(t,r){const s=new Set,n=[];let i=r||t,c=!0;const a={rawSelector:t,theme:this.config.theme,generator:this};for(;c;){c=!1;for(const l of this.config.variants){if(!l.multiPass&&s.has(l))continue;let u=await l.match(i,a);if(u){if(O(u)){if(u===i)continue;u={matcher:u}}i=u.matcher,n.unshift(u),s.add(l),c=!0;break}}if(!c)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,n,s]}applyVariants(t,r=t[4],s=t[1]){const i=r.slice().sort((u,o)=>(u.order||0)-(o.order||0)).reduceRight((u,o)=>h=>{const d=o.body?.(h.entries)||h.entries,g=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??ur)({...h,entries:d,selector:o.selector?.(h.selector,d)||h.selector,parent:g[0]||h.parent,parentOrder:g[1]||h.parentOrder,layer:o.layer||h.layer,sort:o.sort||h.sort},u)},u=>u)({prefix:"",selector:fr(s),pseudo:"",entries:t[2]}),{parent:c,parentOrder:a}=i;c!=null&&a!=null&&this.parentOrders.set(c,a);const l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:c,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(const u of this.config.postprocess)u(l);return l}constructCustomCSS(t,r,s){const n=F(r);if(O(n))return n;const{selector:i,entries:c,parent:a}=this.applyVariants([0,s||t.rawSelector,n,void 0,t.variantHandlers]),l=`${i}{${W(c)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,s=!1,n){const[i,c,a]=O(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);const l=this.config.rulesStaticMap[c];if(l&&l[1]&&(s||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);const o=l[0],h=F(l[1]),d=l[2];return O(h)?[[o,h,d]]:[[o,i,h,d,a]]}r.variantHandlers=a;const{rulesDynamic:u}=this.config;for(const[o,h,d,g]of u){if(g?.internal&&!s)continue;let S=c;if(g?.prefix){const b=M(g.prefix);if(n){const v=M(n);if(!b.some(f=>v.includes(f)))continue}else{const v=b.find(f=>c.startsWith(f));if(v==null)continue;S=c.slice(v.length)}}const y=S.match(h);if(!y)continue;const p=await d(y,r);if(!p)continue;this.config.details&&r.rules.push([h,d,g]);const _=Tt(p).filter(b=>b.length);if(_.length)return _.map(b=>O(b)?[o,b,g]:[o,i,b,g,a])}}stringifyUtil(t,r){if(!t)return;if(ie(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];const{selector:s,entries:n,parent:i,layer:c,sort:a,noMerge:l}=this.applyVariants(t),u=W(n);if(!u)return;const{layer:o,sort:h,...d}=t[3]??{},g={...d,layer:c??o,sort:a??h};return[t[0],s,u,i,g,this.config.details?r:void 0,l]}async expandShortcut(t,r,s=5){if(s===0)return;const n=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:It;let i,c;for(const a of this.config.shortcuts){let l=t;if(a[2]?.prefix){const o=M(a[2].prefix).find(h=>t.startsWith(h));if(o==null)continue;l=t.slice(o.length)}if(Pt(a)){if(a[0]===l){i=i||a[2],c=a[1],n(a);break}}else{const u=l.match(a[0]);if(u&&(c=a[1](u,r)),c){i=i||a[2],n(a);break}}}if(O(c)&&(c=Gt(c.trim()).split(/\s+/g)),!c){const[a,l]=O(t)?await this.matchVariants(t):t;if(a!==l){const u=await this.expandShortcut(l,r,s-1);u&&(c=u[0].map(o=>O(o)?a.replace(l,o):o))}}if(c)return[(await Promise.all(c.map(async a=>(O(a)?(await this.expandShortcut(a,r,s-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,s,n={layer:this.config.shortcutsLayer}){const i=new Dt,c=(await Promise.all(B(s).map(async o=>{const h=O(o)?await this.parseUtil(o,r,!0,n.prefix):[[Number.POSITIVE_INFINITY,"{inline}",F(o),void 0,[]]];return!h&&this.config.warn&&Ce(`unmatched utility "${o}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((o,h)=>o[0]-h[0]),[a,,l]=t,u=[];for(const o of c){if(ie(o)){u.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}const{selector:h,entries:d,parent:g,sort:S,noMerge:y}=this.applyVariants(o,[...o[4],...l],a);i.getFallback(h,g,[[],o[0]])[0].push([d,!!(y??o[3]?.noMerge),S??0])}return u.concat(i.map(([o,h],d,g)=>{const S=(p,_,b)=>{const v=Math.max(...b.map(w=>w[1])),f=b.map(w=>w[0]);return(p?[f.flat(1)]:f).map(w=>{const C=W(w);if(C)return[h,d,C,g,{...n,noMerge:_,sort:v},r,void 0]})};return[[o.filter(([,p])=>p).map(([p,,_])=>[p,_]),!0],[o.filter(([,p])=>!p).map(([p,,_])=>[p,_]),!1]].map(([p,_])=>[...S(!1,_,p.filter(([b])=>b.some(v=>v[0]===oe))),...S(!0,_,p.filter(([b])=>b.every(v=>v[0]!==oe)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):O(r)?r===t:r.test(t))}}function ar(e,t){return new ir(e,t)}const Oe=/\s\$\$\s+/g;function cr(e){return Oe.test(e)}function lr(e,t){return cr(e)?e.replace(Oe,t?` ${t} `:" "):t?`${t} ${e}`:e}const fe=/^\[(.+?)(~?=)"(.*)"\]$/;function fr(e){return fe.test(e)?e.replace(fe,(t,r,s,n)=>`[${G(r)}${s}"${G(n)}"]`):`.${G(e)}`}function ur(e,t){return t(e)}var ue={};const hr=Object.freeze({left:0,top:0,width:16,height:16}),q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Re=Object.freeze({...hr,...q}),pr=Object.freeze({...Re,body:"",hidden:!1}),dr=Object.freeze({width:null,height:null}),Te=Object.freeze({...dr,...q});function mr(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(r.rotate=s),r}function he(e,t){const r=mr(e,t);for(const s in pr)s in q?s in e&&!(s in r)&&(r[s]=q[s]):s in t?r[s]=t[s]:s in e&&(r[s]=e[s]);return r}function gr(e,t){const r=e.icons,s=e.aliases||Object.create(null),n=Object.create(null);function i(c){if(r[c])return n[c]=[];if(!(c in n)){n[c]=null;const a=s[c]&&s[c].parent,l=a&&i(a);l&&(n[c]=[a].concat(l))}return n[c]}return(t||Object.keys(r).concat(Object.keys(s))).forEach(i),n}function pe(e,t,r){const s=e.icons,n=e.aliases||Object.create(null);let i={};function c(a){i=he(s[a]||n[a],i)}return c(t),r.forEach(c),he(e,i)}function yr(e,t){if(e.icons[t])return pe(e,t,[]);const r=gr(e,[t])[t];return r?pe(e,t,r):null}const wr=/(-?[0-9.]*[0-9]+[0-9.]*)/g,br=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const s=e.split(wr);if(s===null||!s.length)return e;const n=[];let i=s.shift(),c=br.test(i);for(;;){if(c){const a=parseFloat(i);isNaN(a)?n.push(i):n.push(Math.ceil(a*t*r)/r)}else n.push(i);if(i=s.shift(),i===void 0)return n.join("");c=!c}}function Sr(e,t="defs"){let r="";const s=e.indexOf("<"+t);for(;s>=0;){const n=e.indexOf(">",s),i=e.indexOf("</"+t);if(n===-1||i===-1)break;const c=e.indexOf(">",i);if(c===-1)break;r+=e.slice(n+1,i).trim(),e=e.slice(0,s).trim()+e.slice(c+1)}return{defs:r,content:e}}function _r(e,t){return e?"<defs>"+e+"</defs>"+t:t}function vr(e,t,r){const s=Sr(e);return _r(s.defs,t+s.content+r)}const re=e=>e==="unset"||e==="undefined"||e==="none";function Er(e,t){const r={...Re,...e},s={...Te,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let i=r.body;[r,s].forEach(y=>{const p=[],_=y.hFlip,b=y.vFlip;let v=y.rotate;_?b?v+=2:(p.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),p.push("scale(-1 1)"),n.top=n.left=0):b&&(p.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),p.push("scale(1 -1)"),n.top=n.left=0);let f;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:f=n.height/2+n.top,p.unshift("rotate(90 "+f.toString()+" "+f.toString()+")");break;case 2:p.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:f=n.width/2+n.left,p.unshift("rotate(-90 "+f.toString()+" "+f.toString()+")");break}v%2===1&&(n.left!==n.top&&(f=n.left,n.left=n.top,n.top=f),n.width!==n.height&&(f=n.width,n.width=n.height,n.height=f)),p.length&&(i=vr(i,'<g transform="'+p.join(" ")+'">',"</g>"))});const c=s.width,a=s.height,l=n.width,u=n.height;let o,h;c===null?(h=a===null?"1em":a==="auto"?u:a,o=de(h,l/u)):(o=c==="auto"?l:c,h=a===null?de(o,u/l):a==="auto"?u:a);const d={},g=(y,p)=>{re(p)||(d[y]=p.toString())};g("width",o),g("height",h);const S=[n.left,n.top,l,u];return d.viewBox=S.join(" "),{attributes:d,viewBox:S,body:i}}function $r(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Cr(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),$r(t)}function xr(e){return e.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 Ar=/\swidth\s*=\s*["']([\w.]+)["']/,Or=/\sheight\s*=\s*["']([\w.]+)["']/,Q=/<svg\s+/;function Rr(e,t,r){const s=e.slice(0,e.indexOf(">")),n=(i,c)=>{const a=c.exec(s),l=a!=null,u=t[i];return!u&&!re(u)&&(typeof r=="number"?r>0&&(t[i]=`${r}em`):a&&(t[i]=a[1])),l};return[n("width",Ar),n("height",Or)]}async function je(e,t,r,s,n,i){const{scale:c,addXmlNs:a=!1}=s??{},{additionalProps:l={},iconCustomizer:u}=s?.customizations??{},o=await n?.()??{};await u?.(t,r,o),Object.keys(l).forEach(y=>{const p=l[y];p!=null&&(o[y]=p)}),i?.(o);const[h,d]=Rr(e,o,c);a&&(!e.includes("xmlns=")&&!o.xmlns&&(o.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!o["xmlns:xlink"]&&(o["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const g=Object.keys(o).map(y=>y==="width"&&h||y==="height"&&d?null:`${y}="${o[y]}"`).filter(y=>y!=null);if(g.length&&(e=e.replace(Q,`<svg ${g.join(" ")} `)),s){const{defaultStyle:y,defaultClass:p}=s;p&&!e.includes("class=")&&(e=e.replace(Q,`<svg class="${p}" `)),y&&!e.includes("style=")&&(e=e.replace(Q,`<svg style="${y}" `))}const S=s?.usedProps;return S&&(Object.keys(l).forEach(y=>{const p=o[y];p!=null&&(S[y]=p)}),typeof o.width<"u"&&o.width!==null&&(S.width=o.width),typeof o.height<"u"&&o.height!==null&&(S.height=o.height)),e}async function me(e,t,r,s){let n;try{if(typeof e=="function")n=await e(r);else{const i=e[r];n=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${r}" in "${t}":`,i);return}if(n){const i=n.indexOf("<svg");i>0&&(n=n.slice(i));const{transform:c}=s?.customizations??{};return n=typeof c=="function"?await c(n,t,r):n,n.startsWith("<svg")?await je(s?.customizations?.trimCustomSvg===!0?xr(n):n,t,r,s,void 0):(console.warn(`Custom icon "${r}" in "${t}" is not a valid SVG`),n)}}async function Me(e,t,r,s){let n;const{customize:i}=s?.customizations??{};for(const c of r)if(n=yr(e,c),n){let a={...Te};typeof i=="function"&&(a=i(a));const{attributes:{width:l,height:u,...o},body:h}=Er(n,a),d=s?.scale;return await je(`<svg >${h}</svg>`,t,c,s,()=>({...o}),g=>{const S=(y,p)=>{const _=g[y];let b;if(!re(_)){if(_)return;typeof d=="number"?d&&(b=`${d}em`):b=p}b?g[y]=b:delete g[y]};S("width",l),S("height",u)})}}const Pe=async(e,t,r)=>{const s=r?.customCollections?.[e];if(s)if(typeof s=="function"){let n;try{n=await s(t)}catch(i){console.warn(`Failed to load custom icon "${t}" in "${e}":`,i);return}if(n){if(typeof n=="string")return await me(()=>n,e,t,r);if("icons"in n){const i=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await Me(n,e,i,r)}}}else return await me(s,e,t,r)};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jr=["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","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","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];const Mr=Tr(jr),Pr=3;function Lr(e){return(t={})=>{const{scale:r=1,mode:s="auto",prefix:n="i-",warn:i=!1,collections:c,extraProperties:a={},customizations:l={},autoInstall:u=!1,layer:o="icons",unit:h}=t,d=kr(),g={addXmlNs:!0,scale:r,customCollections:c,autoInstall:u,warn:void 0,customizations:{...l,additionalProps:{...a},trimCustomSvg:!0,async iconCustomizer(y,p,_){await l.iconCustomizer?.(y,p,_),h&&(_.width||(_.width=`${r}${h}`),_.height||(_.height=`${r}${h}`))}}};let S;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([y,p,_=s])=>{let b="",v="",f;S=S||await e(t);const w={};if(p.includes(":"))[b,v]=p.split(":"),f=await S(b,v,{...g,usedProps:w});else{const A=p.split(/-/g);for(let x=Pr;x>=1&&(b=A.slice(0,x).join("-"),v=A.slice(x).join("-"),f=await S(b,v,{...g,usedProps:w}),!f);x--);}if(!f){i&&!d.isESLint&&Ce(`failed to load icon "${y}"`);return}const C=`url("data:image/svg+xml;utf8,${Cr(f)}")`;return _==="auto"&&(_=f.includes("currentColor")?"mask":"bg"),_==="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",...w}:{background:`${C} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...w}},{layer:o,prefix:n}]]}}}function Le(e,t){const r=new Map;function s(n){if(Mr.includes(n))return r.has(n)||r.set(n,e(`${t}@iconify-json/${n}/icons.json`)),r.get(n)}return async(n,i,c)=>{let a=await Pe(n,i,c);if(a)return a;const l=await s(n);if(l){const u=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];a=await Me(l,n,u,c)}return a}}function kr(){const e=typeof process<"u"&&process.stdout&&!process.versions.deno,t=e&&!!ue.VSCODE_CWD,r=e&&!!ue.ESLINT;return{isNode:e,isVSCode:t,isESLint:r}}function Ir(e){return Le(At,e)}const Nr=Lr(async e=>{const t=e?.customFetch,r=e?.cdn;return t&&r?Le(t,r):r?Ir(r):Pe});function Fr(e){return e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():"")}function ge(e){return e.charAt(0).toUpperCase()+e.slice(1)}function ye(e){return e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var we=["Webkit","Moz","ms"];function zr(e){const t={};function r(s){const n=t[s];if(n)return n;let i=Fr(s);if(i!=="filter"&&i in e)return t[s]=ye(i);i=ge(i);for(let c=0;c<we.length;c++){const a=`${we[c]}${i}`;if(a in e)return t[s]=ye(ge(a))}return s}return({entries:s})=>s.forEach(n=>{n[0].startsWith("--")||(n[0]=r(n[0]))})}function Dr(e){return e.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}function Ur(e={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}const t=window,r=window.document,s=()=>r.documentElement,n=t.__unocss||{},i=Object.assign({},e,n.runtime),c=i.defaults||{},a=i.cloakAttribute??"un-cloak";i.autoPrefix&&(c.postprocess=M(c.postprocess)).unshift(zr(r.createElement("div").style)),i.configResolved?.(n,c);const l=ar(n,c),u=m=>i.inject?i.inject(m):s().prepend(m),o=()=>i.rootElement?i.rootElement():r.body,h=new Map;let d=!0,g=new Set,S,y,p=[];const _=()=>new Promise(m=>{p.push(m),y!=null&&clearTimeout(y),y=setTimeout(()=>f().then(()=>{const E=p;p=[],E.forEach($=>$())}),0)});function b(m){if(m.nodeType!==1)return;const E=m;E.hasAttribute(a)&&E.removeAttribute(a),E.querySelectorAll(`[${a}]`).forEach($=>{$.removeAttribute(a)})}function v(m,E){let $=h.get(m);if(!$)if($=r.createElement("style"),$.setAttribute("data-unocss-runtime-layer",m),h.set(m,$),E==null)u($);else{const R=v(E),j=R.parentNode;j?j.insertBefore($,R.nextSibling):u($)}return $}async function f(){const m=await l.generate(g);return m.layers.reduce((E,$)=>(v($,E).innerHTML=m.getLayer($)??"",$),void 0),g=m.matched,{...m,getStyleElement:E=>h.get(E),getStyleElements:()=>h}}async function w(m){const E=g.size;await l.applyExtractors(m,void 0,g),E!==g.size&&await _()}async function C(m=o()){const E=m&&m.outerHTML;E&&(await w(`${E} ${Dr(E)}`),b(s()),b(m))}const A=new MutationObserver(m=>{d||m.forEach(async E=>{if(E.target.nodeType!==1)return;const $=E.target;for(const R of h)if($===R[1])return;if(E.type==="childList")E.addedNodes.forEach(async R=>{if(R.nodeType!==1)return;const j=R;S&&!S(j)||(await w(j.outerHTML),b(j))});else{if(S&&!S($))return;if(E.attributeName!==a){const R=Array.from($.attributes).map(T=>T.value?`${T.name}="${T.value}"`:T.name).join(" "),j=`<${$.tagName.toLowerCase()} ${R}>`;await w(j)}$.hasAttribute(a)&&$.removeAttribute(a)}})});let x=!1;function L(){if(x)return;const m=i.observer?.target?i.observer.target():o();m&&(A.observe(m,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),x=!0)}function k(){i.bypassDefined&&Vr(l.blocked),C(),L()}function N(){r.readyState==="loading"?t.addEventListener("DOMContentLoaded",k):k()}const z=t.__unocss_runtime=t.__unocss_runtime={version:l.version,uno:l,async extract(m){O(m)||(m.forEach(E=>g.add(E)),m=""),await w(m)},extractAll:C,inspect(m){S=m},toggleObserver(m){m===void 0?d=!d:d=!!m,!x&&!d&&N()},update:f,presets:t.__unocss_runtime?.presets??{}};i.ready?.(z)!==!1&&(d=!1,N())}function Vr(e=new Set){for(let t=0;t<document.styleSheets.length;t++){const r=document.styleSheets[t];let s;try{if(s=r.cssRules||r.rules,!s)continue;Array.from(s).flatMap(n=>n.selectorText?.split(/,/g)||[]).forEach(n=>{n&&(n=n.trim(),n.startsWith(".")&&(n=n.slice(1)),e.add(n))})}catch{continue}}return e}Ur({defaults:{presets:[Nr({prefix:["i-",""],collections:{},cdn:"https://esm.sh/",scale:1.2,extraProperties:{display:"inline-block","vertical-align":"middle"}})]},bypassDefined:!0});