@unocss/runtime 0.58.1 → 0.58.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/mini.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Ji=Object.defineProperty;var Qi=(t,e)=>{for(var r in e)Ji(t,r,{get:e[r],enumerable:!0})};function H(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Pe=Z;function j(t=[]){return Array.isArray(t)?t:[t]}function re(t){return Array.from(new Set(t))}function Ut(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function O(t){return typeof t=="string"}function ne(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ft(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ne(e)):[t]:[ne(t)]}function eo(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function ie(t){return t==null?"":eo(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Me(t){return t&&typeof t=="object"&&!Array.isArray(t)}function st(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Me(n)&&Me(i)&&Object.keys(i).forEach(s=>{Me(n[s])&&Me(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=st(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function he(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?he(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:he(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?he(n):n;return r}return t}function Wt(t){return O(t[0])}function Nt(t){return O(t[0])}var to=/^\[(.+?)~?="(.*)"\]$/;var ro=/[\w\u00A0-\uFFFF-_:%-?]/,at="$$shortcut-no-merge";function Dt(t){return t.match(to)}function me(t=""){return ro.test(t)}function It(t){return typeof t=="function"?{match:t}:t}function lt(t){return t.length===3}function Bt(t){return t!=null}function Kt(){}var Le=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}};var ge=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return 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,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof ge}var Ue={};function no(t=["-",":"]){let e=t.join("|");return Ue[e]||(Ue[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ue[e].lastIndex=0,Ue[e]}function io(t,e=["-",":"],r=5){let n=no(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;i=!0,s.add(f+p);let y=m+f.length+p.length+1,$={length:u.length,items:[]};a.set(m,$);for(let x of[...d.matchAll(/\S+/g)]){let v=y+x.index,b=a.get(v)?.items;b?a.delete(v):b=[{offset:v,length:x[0].length,className:x[0]}];for(let C of b)C.className=C.className==="~"?f:C.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),$.items.push(C)}return"$".repeat(u.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Ht(t,e=["-",":"],r=5){let n=io(t,e,r);return typeof t=="string"?n.expanded:t}var Gt=new Set;function G(t){Gt.has(t)||(console.warn("[unocss]",t),Gt.add(t))}var Fe=/[\\:]?[\s'"`;{}]+/g;function oo(t){return t.split(Fe)}var We={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return oo(t)}};function qt(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Ne="default",De="preflights",so="shortcuts",ao="imports",Yt={[ao]:-200,[De]:-100,[so]:-10,[Ne]:0};function Xt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Zt="_uno_resolved";function lo(t){let e=typeof t=="function"?t():t;if(Zt in e)return e;e={...e},Object.defineProperty(e,Zt,{value:!0,enumerable:!1});let r=e.shortcuts?Xt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function Jt(t){let e=lo(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(Jt);return[e,...r]}function ct(t={},e={}){let r=Object.assign({},e,t),n=Ut((r.presets||[]).flatMap(j).flatMap(Jt),(h,w)=>h.name===w.name),i=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Yt,...o.map(h=>h.layers));function l(h){return re(o.flatMap(w=>j(w[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=We),f&&!u.includes(f)&&u.unshift(f),u.sort((h,w)=>(h.order||0)-(w.order||0));let p=l("rules"),d={},m=p.length,y=p.map((h,w)=>{if(Wt(h)){j(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[w,h[1],h[2],h]});return}return[w,...h]}).filter(Boolean).reverse(),$=co(o.map(h=>h.theme)),x=l("extendTheme");for(let h of x)$=h($)||$;let v={templates:re(o.flatMap(h=>j(h.autocomplete?.templates))),extractors:o.flatMap(h=>j(h.autocomplete?.extractors)).sort((h,w)=>(h.order||0)-(w.order||0)),shorthands:uo(o.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let C={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:$,rulesSize:m,rulesDynamic:y,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(It).sort((h,w)=>(h.order||0)-(w.order||0)),shortcuts:Xt(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let h of o)h?.configResolved?.(C);return C}function co(t){return t.map(e=>e?he(e):{}).reduce((e,r)=>st(e,r),{})}function uo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Qt="0.58.1";var ut=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ct(e,r),this.events.emit("config",this.config)}version=Qt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=qt();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ct(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(_e(s)&&_e(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(let u of this.config.preprocess)i=u(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(s.variants=[...o[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(Bt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=O(e)?await this.applyExtractors(e,n,l?new ge:new Set):Array.isArray(e)?new Set(e):e;s&&this.config.safelist.forEach(h=>{u.has(h)||u.add(h)});let f=a?"":`
1
+ "use strict";(()=>{var Ji=Object.defineProperty;var Qi=(t,e)=>{for(var r in e)Ji(t,r,{get:e[r],enumerable:!0})};function H(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Pe=Z;function j(t=[]){return Array.isArray(t)?t:[t]}function re(t){return Array.from(new Set(t))}function Ut(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function O(t){return typeof t=="string"}function ne(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ft(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ne(e)):[t]:[ne(t)]}function eo(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function ie(t){return t==null?"":eo(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Me(t){return t&&typeof t=="object"&&!Array.isArray(t)}function st(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Me(n)&&Me(i)&&Object.keys(i).forEach(s=>{Me(n[s])&&Me(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=st(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function he(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?he(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:he(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?he(n):n;return r}return t}function Wt(t){return O(t[0])}function Nt(t){return O(t[0])}var to=/^\[(.+?)~?="(.*)"\]$/;var ro=/[\w\u00A0-\uFFFF-_:%-?]/,at="$$shortcut-no-merge";function Dt(t){return t.match(to)}function me(t=""){return ro.test(t)}function It(t){return typeof t=="function"?{match:t}:t}function lt(t){return t.length===3}function Bt(t){return t!=null}function Kt(){}var Le=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}};var ge=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return 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,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof ge}var Ue={};function no(t=["-",":"]){let e=t.join("|");return Ue[e]||(Ue[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ue[e].lastIndex=0,Ue[e]}function io(t,e=["-",":"],r=5){let n=no(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(u,f,p,d,m)=>{if(!e.includes(p))return u;i=!0,s.add(f+p);let y=m+f.length+p.length+1,$={length:u.length,items:[]};a.set(m,$);for(let x of[...d.matchAll(/\S+/g)]){let v=y+x.index,b=a.get(v)?.items;b?a.delete(v):b=[{offset:v,length:x[0].length,className:x[0]}];for(let C of b)C.className=C.className==="~"?f:C.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),$.items.push(C)}return"$".repeat(u.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let u=0;for(let[f,p]of a)l+=t.slice(u,f),l+=p.items.map(d=>d.className).join(" "),u=f+p.length;l+=t.slice(u)}else{l=t;for(let[u,f]of a)l.overwrite(u,u+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Ht(t,e=["-",":"],r=5){let n=io(t,e,r);return typeof t=="string"?n.expanded:t}var Gt=new Set;function G(t){Gt.has(t)||(console.warn("[unocss]",t),Gt.add(t))}var Fe=/[\\:]?[\s'"`;{}]+/g;function oo(t){return t.split(Fe)}var We={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return oo(t)}};function qt(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Ne="default",De="preflights",so="shortcuts",ao="imports",Yt={[ao]:-200,[De]:-100,[so]:-10,[Ne]:0};function Xt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Zt="_uno_resolved";function lo(t){let e=typeof t=="function"?t():t;if(Zt in e)return e;e={...e},Object.defineProperty(e,Zt,{value:!0,enumerable:!1});let r=e.shortcuts?Xt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function Jt(t){let e=lo(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(Jt);return[e,...r]}function ct(t={},e={}){let r=Object.assign({},e,t),n=Ut((r.presets||[]).flatMap(j).flatMap(Jt),(h,w)=>h.name===w.name),i=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Yt,...o.map(h=>h.layers));function l(h){return re(o.flatMap(w=>j(w[h]||[])))}let u=l("extractors"),f=s.find(h=>h.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=We),f&&!u.includes(f)&&u.unshift(f),u.sort((h,w)=>(h.order||0)-(w.order||0));let p=l("rules"),d={},m=p.length,y=p.map((h,w)=>{if(Wt(h)){j(h[2]?.prefix||"").forEach(z=>{d[z+h[0]]=[w,h[1],h[2],h]});return}return[w,...h]}).filter(Boolean).reverse(),$=co(o.map(h=>h.theme)),x=l("extendTheme");for(let h of x)$=h($)||$;let v={templates:re(o.flatMap(h=>j(h.autocomplete?.templates))),extractors:o.flatMap(h=>j(h.autocomplete?.extractors)).sort((h,w)=>(h.order||0)-(w.order||0)),shorthands:uo(o.map(h=>h.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let C={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:l("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:$,rulesSize:m,rulesDynamic:y,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(It).sort((h,w)=>(h.order||0)-(w.order||0)),shortcuts:Xt(l("shortcuts")).reverse(),extractors:u,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let h of o)h?.configResolved?.(C);return C}function co(t){return t.map(e=>e?he(e):{}).reduce((e,r)=>st(e,r),{})}function uo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Qt="0.58.2";var ut=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ct(e,r),this.events.emit("config",this.config)}version=Qt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=qt();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ct(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(_e(s)&&_e(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(let u of this.config.preprocess)i=u(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(s.variants=[...o[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(u=>this.stringifyUtil(u,s)).filter(Bt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,u=O(e)?await this.applyExtractors(e,n,l?new ge:new Set):Array.isArray(e)?new Set(e):e;s&&this.config.safelist.forEach(h=>{u.has(h)||u.add(h)});let f=a?"":`
2
2
  `,p=new Set([Ne]),d=l?new Map:new Set,m=new Map,y={},$=Array.from(u).map(async h=>{if(d.has(h))return;let w=await this.parseToken(h);if(w!=null){d instanceof Map?d.set(h,{data:w,count:_e(u)?u.getCount(h):-1}):d.add(h);for(let R of w){let z=R[3]||"",P=R[4]?.layer;m.has(z)||m.set(z,[]),m.get(z).push(R),P&&p.add(P)}}});await Promise.all($),await(async()=>{if(!o)return;let h={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:R=De})=>{p.add(R),w.add(R)}),y=Object.fromEntries(await Promise.all(Array.from(w).map(async R=>{let P=(await Promise.all(this.config.preflights.filter(Y=>(Y.layer||De)===R).map(async Y=>await Y.getCSS(h)))).filter(Boolean).join(f);return[R,P]})))})();let x=this.config.sortLayers(Array.from(p).sort((h,w)=>(this.config.layers[h]??0)-(this.config.layers[w]??0)||h.localeCompare(w))),v={},b=h=>{if(v[h])return v[h];let w=Array.from(m).sort((z,P)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(P[0])??0)||z[0]?.localeCompare(P[0]||"")||0).map(([z,P])=>{let Y=P.length,te=P.filter(g=>(g[4]?.layer||Ne)===h).sort((g,S)=>g[0]-S[0]||(g[4]?.sort||0)-(S[4]?.sort||0)||g[5]?.currentSelector?.localeCompare(S[5]?.currentSelector??"")||g[1]?.localeCompare(S[1]||"")||g[2]?.localeCompare(S[2]||"")||0).map(([,g,S,,k,,M])=>[[[(g&&ho(g,i))??"",k?.sort??0]],S,!!(M??k?.noMerge)]);if(!te.length)return;let de=te.reverse().map(([g,S,k],M)=>{if(!k&&this.config.mergeSelectors)for(let L=M+1;L<Y;L++){let B=te[L];if(B&&!B[2]&&(g&&B[0]||g==null&&B[0]==null)&&B[1]===S)return g&&B[0]&&B[0].push(...g),null}let U=g?re(g.sort((L,B)=>L[1]-B[1]||L[0]?.localeCompare(B[0]||"")||0).map(L=>L[0]).filter(Boolean)):[];return U.length?`${U.join(`,${f}`)}{${S}}`:S}).filter(Boolean).reverse().join(f);if(!z)return de;let ze=z.split(" $$ ");return`${ze.join("{")}{${f}${de}${f}${"}".repeat(ze.length)}`}).filter(Boolean).join(f);o&&(w=[y[h],w].filter(Boolean).join(f));let R=a?"":`/* layer: ${h} */${f}`;return v[h]=w?R+w:""},C=(h=x,w)=>h.filter(R=>!w?.includes(R)).map(R=>b(R)||"").filter(Boolean).join(f);return{get css(){return C()},layers:x,matched:d,getLayers:C,getLayer:b}}async matchVariants(e,r){let n=new Set,i=[],o=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=await l.match(o,a);if(u){if(O(u)){if(u===o)continue;u={matcher:u}}o=u.matcher,i.unshift(u),n.add(l),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((u,f)=>(u.order||0)-(f.order||0)).reduceRight((u,f)=>p=>{let d=f.body?.(p.entries)||p.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??go)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:m[0]||p.parent,parentOrder:m[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},u)},u=>u)({prefix:"",selector:mo(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let u of this.config.postprocess)u(l);return l}constructCustomCSS(e,r,n){let i=ne(r);if(O(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${ie(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let[o,s,a]=O(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ne(l[1]),d=l[2];return O(p)?[[f,p,d]]:[[f,o,p,d,a]]}r.variantHandlers=a;let{rulesDynamic:u}=this.config;for(let[f,p,d,m]of u){if(m?.internal&&!n)continue;let y=s;if(m?.prefix){let b=j(m.prefix);if(i){let C=j(i);if(!b.some(h=>C.includes(h)))continue}else{let C=b.find(h=>s.startsWith(h));if(C==null)continue;y=s.slice(C.length)}}let $=y.match(p);if(!$)continue;let x=await d($,r);if(!x)continue;this.config.details&&r.rules.push([p,d,m]);let v=Ft(x).filter(b=>b.length);if(v.length)return v.map(b=>O(b)?[f,b,m]:[f,o,b,m,a])}}stringifyUtil(e,r){if(!e)return;if(lt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),u=ie(i);if(!u)return;let{layer:f,sort:p,...d}=e[3]??{},m={...d,layer:s??f,sort:a??p};return[e[0],n,u,o,m,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Kt,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Nt(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let u=l.match(a[0]);if(u&&(s=a[1](u,r)),s){o=o||a[2],i(a);break}}}if(O(s)&&(s=Ht(s.trim()).split(/\s+/g)),!s){let[a,l]=O(e)?await this.matchVariants(e):e;if(a!==l){let u=await this.expandShortcut(l,r,n-1);u&&(s=u[0].map(f=>O(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(O(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Le,s=(await Promise.all(re(n).map(async f=>{let p=O(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ne(f),void 0,[]]];return!p&&this.config.warn&&G(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,u=[];for(let f of s){if(lt(f)){u.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:m,sort:y,noMerge:$}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(p,m,[[],f[0]])[0].push([d,!!($??f[3]?.noMerge),y??0])}return u.concat(o.map(([f,p],d,m)=>{let y=(x,v,b)=>{let C=Math.max(...b.map(w=>w[1])),h=b.map(w=>w[0]);return(x?[h.flat(1)]:h).map(w=>{let R=ie(w);if(R)return[p,d,R,m,{...i,noMerge:v,sort:C},r,void 0]})};return[[f.filter(([,x])=>x).map(([x,,v])=>[x,v]),!0],[f.filter(([,x])=>!x).map(([x,,v])=>[x,v]),!1]].map(([x,v])=>[...y(!1,v,x.filter(([b])=>b.some(C=>C[0]===at))),...y(!0,v,x.filter(([b])=>b.every(C=>C[0]!==at)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):O(r)?r===e:r.test(e))}};function tr(t,e){return new ut(t,e)}var rr=/\s\$\$\s+/g;function po(t){return rr.test(t)}function ho(t,e){return po(t)?t.replace(rr,e?` ${e} `:" "):e?`${e} ${t}`:t}var er=/^\[(.+?)(~?=)"(.*)"\]$/;function mo(t){return er.test(t)?t.replace(er,(e,r,n,i)=>`[${Pe(r)}${n}"${Pe(i)}"]`):`.${Pe(t)}`}function go(t,e){return e(t)}var bo=/\/\/#\s*sourceMappingURL=.*\n?/g;function nr(t){return t.includes("sourceMappingURL=")?t.replace(bo,""):t}var xo=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,yo=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,wo=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function $o(t){let e=[];for(let r of t.matchAll(yo))r.index!==0&&!/^[\s'"`]/.test(t[r.index-1]??"")||e.push(r[0]);for(let r of t.matchAll(xo))e.push(r[0]);return t.split(Fe).forEach(r=>{me(r)&&!wo.test(r)&&e.push(r)}),e}var ir={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return $o(nr(t))}};var or=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=ie(Object.entries(t.theme.preflightBase));return j(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];var F={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},ft={...F,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},pt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Ie={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},sr=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],be=Object.assign({},...sr.map(t=>({[t.replace(/ /,"-")]:t})),...sr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),E=["inherit","initial","revert","revert-layer","unset"],xe=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/;function oe(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function se(t,e,r,n){if(t===""||(O(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ae(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=se(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var dt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],ar=["%alpha","<alpha-value>"],So=new RegExp(ar.map(t=>H(t)).join("|"));function X(t=""){let e=vo(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(dt.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function ye(t){let e=t.alpha??1;return typeof e=="string"&&ar.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(So,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,dt.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function vo(t){if(!t)return;let e=Co(t);if(e!=null||(e=ko(t),e!=null)||(e=Ro(t),e!=null)||(e=To(t),e!=null)||(e=jo(t),e!=null))return e}function Co(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ko(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Ro(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=ae(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var Eo=new RegExp(`^(${dt.join("|")})\\((.+)\\)$`,"i");function To(t){let e=t.match(Eo);if(!e)return;let[,r,n]=e,i=lr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function jo(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=lr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function lr(t){let e=ae(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=ae(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function cr(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}function le(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${H(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function we(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${H(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function q(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=oe(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function V(t,e,r){if(e.startsWith(t)){let n=q(t,e,r);if(n){let[i="",o=n[1]]=V("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fr=new Uint8Array(64),Oo=new Uint8Array(128);for(let t=0;t<ur.length;t++){let e=ur.charCodeAt(t);fr[t]=e,Oo[e]=t}var ht=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}};function pr(t){let e=new Int32Array(5),r=1024*16,n=r-36,i=new Uint8Array(r),o=i.subarray(0,n),s=0,a="";for(let l=0;l<t.length;l++){let u=t[l];if(l>0&&(s===r&&(a+=ht.decode(i),s=0),i[s++]=59),u.length!==0){e[0]=0;for(let f=0;f<u.length;f++){let p=u[f];s>n&&(a+=ht.decode(o),i.copyWithin(0,n,s),s-=n),f>0&&(i[s++]=44),s=$e(i,s,e,p,0),p.length!==1&&(s=$e(i,s,e,p,1),s=$e(i,s,e,p,2),s=$e(i,s,e,p,3),p.length!==4&&(s=$e(i,s,e,p,4)))}}}return a+ht.decode(i.subarray(0,s))}function $e(t,e,r,n,i){let o=n[i],s=o-r[i];r[i]=o,s=s<0?-s<<1|1:s<<1;do{let a=s&31;s>>>=5,s>0&&(a|=32),t[e++]=fr[a]}while(s>0);return e}var Be=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},Ke=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function Ao(){return typeof window<"u"&&typeof window.btoa=="function"?t=>window.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Vo=Ao(),mt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=pr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Vo(this.toString())}};function zo(t){let e=t.split(`
3
3
  `),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function Po(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var Mo=Object.prototype.toString;function Lo(t){return Mo.call(t)==="[object Object]"}function dr(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let u=o+s>>1;i<r[u]?s=u:o=u+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var _o=/\w/,gt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.indexOf(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.58.1",
3
+ "version": "0.58.2",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "0.58.1",
39
- "@unocss/preset-attributify": "0.58.1",
40
- "@unocss/preset-uno": "0.58.1"
38
+ "@unocss/core": "0.58.2",
39
+ "@unocss/preset-attributify": "0.58.2",
40
+ "@unocss/preset-uno": "0.58.2"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",