@unocss/runtime 66.6.0-beta.1 → 66.6.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.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Gi=Object.defineProperty;var qi=(t,e)=>{for(var r in e)Gi(t,r,{get:e[r],enumerable:!0})};var ie="default",Fr="preflights",Hi="shortcuts",Yi="imports",Xi={[Yi]:-200,[Fr]:-100,[Hi]:-10,[ie]:0},Br=/[\\:]?[\s'"`;{}]+/g;function Ki(t){return t.split(Br)}var Zi={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ki(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function ct(t){return Array.from(new Set(t))}function Rn(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function F(t){return typeof t=="string"}var Tn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Mr(t){return t instanceof Tn}function K(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Lr=Z;function Ji(){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 Qi=/^\[(.+?)~?="(.*)"\]$/;var ta=/[\w\u00A0-\uFFFF%-?]/;function Wn(t){return t.match(Qi)}function Wt(t=""){return ta.test(t)}function ea(t){return typeof t=="function"?{match:t}:t}function Pn(t){return t.length===3}function re(t){return t!=null}function ra(){}var na=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},oa=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function se(t){return F(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ia(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>se(e)):[t]:[se(t)]}function aa(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Nn="__virtual_key__";function Tt(t){return t==null?"":aa(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Nn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function In(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return ne(n)&&ne(o)&&Object.keys(o).forEach(a=>{ne(n[a])&&ne(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=In(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function ae(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ae(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ae(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ae(n):n;return r}return t}function sa(t){return F(t[0])}function ca(t){return F(t[0])}var oe={};function la(t=["-",":"]){let e=t.join("|");return oe[e]||(oe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),oe[e].lastIndex=0,oe[e]}function fa(t,e=["-",":"],r=5){let n=la(e),o,i=t.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,u,d,p,h)=>{if(!e.includes(d))return l;o=!0,a.add(u+d);let m=h+u.length+d.length+1,x={length:l.length,items:[]};s.set(h,x);for(let $ of[...p.matchAll(/\S+/g)]){let w=m+$.index,y=s.get(w)?.items;y?s.delete(w):y=[{offset:w,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let l=0;for(let[u,d]of s)c+=t.slice(l,u),c+=d.items.map(p=>p.className).join(" "),l=u+d.length;c+=t.slice(l)}else{c=t;for(let[l,u]of s)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function ua(t,e=["-",":"],r=5){let n=fa(t,e,r);return typeof t=="string"?n.expanded:t}var On=new Set;function da(t){On.has(t)||(console.warn("[unocss]",t),On.add(t))}function Un(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn="_uno_resolved";async function pa(t){let e=typeof t=="function"?await t():await t;if(Mn in e)return e;e={...e},Object.defineProperty(e,Mn,{value:!0,enumerable:!1});let r=e.shortcuts?Un(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function Dn(t){let e=await pa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(Dn))).flat()]:[e]}function ma(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let s of t){if(s.pipeline===!1){n=!0;break}else s.pipeline?.include&&e.push(s.pipeline.include),s.pipeline?.exclude&&r.push(s.pipeline.exclude);s.filesystem&&o.push(s.filesystem),s.inline&&i.push(s.inline)}let a={pipeline:n?!1:{include:ct(Fn(...e)),exclude:ct(Fn(...r))}};return o.length&&(a.filesystem=ct(o.flat())),i.length&&(a.inline=ct(i.flat())),a}async function Ln(t={},e={}){let r=Object.assign({},e,t),n=Rn((await Promise.all((r.presets||[]).flatMap(j).flatMap(Dn))).flat(),(g,v)=>g.name===v.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Xi,...i.map(g=>g.layers));function c(g){return ct(i.flatMap(v=>j(v[g]||[])))}let l=c("extractors"),u=a.find(g=>g.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Zi),u&&!l.includes(u)&&l.unshift(u),l.sort((g,v)=>(g.order||0)-(v.order||0));let d=c("rules"),p=d.length,h={},m=[];for(let[g,v]of d.entries()){let P=v[2]??(v[2]={});P.__index=g,sa(v)?j(P.prefix??"").forEach(H=>{h[H+v[0]]=v}):m.unshift(v)}let x={templates:ct(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,v)=>(g.order||0)-(v.order||0)),shorthands:ga(i.map(g=>g.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let w=ma(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:ha(i.map(g=>g.theme)),rules:d,rulesSize:p,rulesDynamic:m,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(ea).sort((g,v)=>(g.order||0)-(v.order||0)),shortcuts:Un(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:w,transformers:Rn(c("transformers"),(g,v)=>g.name===v.name)},b=c("extendTheme");for(let g of b)y.theme=g(y.theme,y)||y.theme;for(let g of i)g?.configResolved?.(y);return y}function ha(t){return t.map(e=>e?ae(e):{}).reduce((e,r)=>In(e,r),{})}function ga(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Fn(...t){return t.flatMap(ba)}function ba(t){return Array.isArray(t)?t:t?[t]:[]}var ya="66.6.0-beta.1",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},xa=class Vn{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=ya,this.events=Ji(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,a)=>{let s=ia(o).filter(c=>c.length);if(s.length){this.config.details&&a.rules.push(i),a.generator.activatedRules.add(i);let c=i[2];return s.map(l=>{if(F(l))return[c.__index,l,c];let u=a.variantHandlers,d=c;for(let p of l)p[0]===X.variants?typeof p[1]=="function"?u=p[1](u)||u:u=[...j(p[1]),...u]:p[0]===X.parent?u=[{parent:p[1]},...u]:p[0]===X.selector?u=[{selector:p[1]},...u]:p[0]===X.layer?u=[{layer:p[1]},...u]:p[0]===X.sort?d={...d,sort:p[1]}:p[0]===X.noMerge?d={...d,noMerge:p[1]}:p[0]===X.body&&(p[0]=Nn);return[c.__index,n,l,d,u]})}}}static async create(e={},r={}){let n=new Vn(e,r);return n.config=await Ln(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ln(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let a=await i.extract?.(o);if(a)if(Mr(a)&&Mr(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,l)=>l(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async c=>{let l=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.flatMap(d=>this.stringifyUtil(d,l)).filter(re)},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s?.length)return this.cache.set(n,s),s;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=F(e)?await this.applyExtractors(e,n,c?new Tn:new Set):Array.isArray(e)?new Set(e):e;if(a){let E={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(E):C).forEach(C=>{let z=C.trim();z&&!l.has(z)&&l.add(z)})}let u=s?"":`
1
+ "use strict";(()=>{var Gi=Object.defineProperty;var qi=(t,e)=>{for(var r in e)Gi(t,r,{get:e[r],enumerable:!0})};var ie="default",Fr="preflights",Hi="shortcuts",Yi="imports",Xi={[Yi]:-200,[Fr]:-100,[Hi]:-10,[ie]:0},Br=/[\\:]?[\s'"`;{}]+/g;function Ki(t){return t.split(Br)}var Zi={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ki(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function ct(t){return Array.from(new Set(t))}function Rn(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function F(t){return typeof t=="string"}var Tn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Mr(t){return t instanceof Tn}function K(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Lr=Z;function Ji(){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 Qi=/^\[(.+?)~?="(.*)"\]$/;var ta=/[\w\u00A0-\uFFFF%-?]/;function Wn(t){return t.match(Qi)}function Wt(t=""){return ta.test(t)}function ea(t){return typeof t=="function"?{match:t}:t}function Pn(t){return t.length===3}function re(t){return t!=null}function ra(){}var na=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},oa=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function se(t){return F(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ia(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>se(e)):[t]:[se(t)]}function aa(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Nn="__virtual_key__";function Tt(t){return t==null?"":aa(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Nn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function ne(t){return t&&typeof t=="object"&&!Array.isArray(t)}function In(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return ne(n)&&ne(o)&&Object.keys(o).forEach(a=>{ne(n[a])&&ne(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=In(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function ae(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ae(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ae(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ae(n):n;return r}return t}function sa(t){return F(t[0])}function ca(t){return F(t[0])}var oe={};function la(t=["-",":"]){let e=t.join("|");return oe[e]||(oe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),oe[e].lastIndex=0,oe[e]}function fa(t,e=["-",":"],r=5){let n=la(e),o,i=t.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,u,d,p,h)=>{if(!e.includes(d))return l;o=!0,a.add(u+d);let m=h+u.length+d.length+1,x={length:l.length,items:[]};s.set(h,x);for(let $ of[...p.matchAll(/\S+/g)]){let w=m+$.index,y=s.get(w)?.items;y?s.delete(w):y=[{offset:w,length:$[0].length,className:$[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let l=0;for(let[u,d]of s)c+=t.slice(l,u),c+=d.items.map(p=>p.className).join(" "),l=u+d.length;c+=t.slice(l)}else{c=t;for(let[l,u]of s)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function ua(t,e=["-",":"],r=5){let n=fa(t,e,r);return typeof t=="string"?n.expanded:t}var On=new Set;function da(t){On.has(t)||(console.warn("[unocss]",t),On.add(t))}function Un(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn="_uno_resolved";async function pa(t){let e=typeof t=="function"?await t():await t;if(Mn in e)return e;e={...e},Object.defineProperty(e,Mn,{value:!0,enumerable:!1});let r=e.shortcuts?Un(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function Dn(t){let e=await pa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(Dn))).flat()]:[e]}function ma(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let s of t){if(s.pipeline===!1){n=!0;break}else s.pipeline?.include&&e.push(s.pipeline.include),s.pipeline?.exclude&&r.push(s.pipeline.exclude);s.filesystem&&o.push(s.filesystem),s.inline&&i.push(s.inline)}let a={pipeline:n?!1:{include:ct(Fn(...e)),exclude:ct(Fn(...r))}};return o.length&&(a.filesystem=ct(o.flat())),i.length&&(a.inline=ct(i.flat())),a}async function Ln(t={},e={}){let r=Object.assign({},e,t),n=Rn((await Promise.all((r.presets||[]).flatMap(j).flatMap(Dn))).flat(),(g,v)=>g.name===v.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Xi,...i.map(g=>g.layers));function c(g){return ct(i.flatMap(v=>j(v[g]||[])))}let l=c("extractors"),u=a.find(g=>g.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Zi),u&&!l.includes(u)&&l.unshift(u),l.sort((g,v)=>(g.order||0)-(v.order||0));let d=c("rules"),p=d.length,h={},m=[];for(let[g,v]of d.entries()){let P=v[2]??(v[2]={});P.__index=g,sa(v)?j(P.prefix??"").forEach(H=>{h[H+v[0]]=v}):m.unshift(v)}let x={templates:ct(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,v)=>(g.order||0)-(v.order||0)),shorthands:ga(i.map(g=>g.autocomplete?.shorthands||{}))},$=c("separators");$.length||($=[":","-"]);let w=ma(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:ha(i.map(g=>g.theme)),rules:d,rulesSize:p,rulesDynamic:m,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(ea).sort((g,v)=>(g.order||0)-(v.order||0)),shortcuts:Un(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:$,details:r.details??r.envMode==="dev",content:w,transformers:Rn(c("transformers"),(g,v)=>g.name===v.name)},b=c("extendTheme");for(let g of b)y.theme=g(y.theme,y)||y.theme;for(let g of i)g?.configResolved?.(y);return y}function ha(t){return t.map(e=>e?ae(e):{}).reduce((e,r)=>In(e,r),{})}function ga(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Fn(...t){return t.flatMap(ba)}function ba(t){return Array.isArray(t)?t:t?[t]:[]}var ya="66.6.0",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},xa=class Vn{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=ya,this.events=Ji(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,a)=>{let s=ia(o).filter(c=>c.length);if(s.length){this.config.details&&a.rules.push(i),a.generator.activatedRules.add(i);let c=i[2];return s.map(l=>{if(F(l))return[c.__index,l,c];let u=a.variantHandlers,d=c;for(let p of l)p[0]===X.variants?typeof p[1]=="function"?u=p[1](u)||u:u=[...j(p[1]),...u]:p[0]===X.parent?u=[{parent:p[1]},...u]:p[0]===X.selector?u=[{selector:p[1]},...u]:p[0]===X.layer?u=[{layer:p[1]},...u]:p[0]===X.sort?d={...d,sort:p[1]}:p[0]===X.noMerge?d={...d,noMerge:p[1]}:p[0]===X.body&&(p[0]=Nn);return[c.__index,n,l,d,u]})}}}static async create(e={},r={}){let n=new Vn(e,r);return n.config=await Ln(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Ln(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let a=await i.extract?.(o);if(a)if(Mr(a)&&Mr(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,l)=>l(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async c=>{let l=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.flatMap(d=>this.stringifyUtil(d,l)).filter(re)},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s?.length)return this.cache.set(n,s),s;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=F(e)?await this.applyExtractors(e,n,c?new Tn:new Set):Array.isArray(e)?new Set(e):e;if(a){let E={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(E):C).forEach(C=>{let z=C.trim();z&&!l.has(z)&&l.add(z)})}let u=s?"":`
2
2
  `,d=new Set([ie]),p=c?new Map:new Set,h=new Map,m={},x=Array.from(l).map(async E=>{if(p.has(E))return;let C=await this.parseToken(E);if(C!=null){p instanceof Map?p.set(E,{data:C,count:Mr(l)?l.getCount(E):-1}):p.add(E);for(let z of C){let V=z[3]||"",D=z[4]?.layer;h.has(V)||h.set(V,[]),h.get(V).push(z),D&&d.add(D)}}});await Promise.all(x),await(async()=>{if(!i)return;let E={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:z=Fr})=>{d.add(z),C.add(z)}),m=Object.fromEntries(await Promise.all(Array.from(C).map(async z=>[z,(await Promise.all(this.config.preflights.filter(V=>(V.layer||Fr)===z).map(async V=>await V.getCSS(E)))).filter(Boolean).join(u)])))})();let $=E=>this.config.sortLayers(E.sort((C,z)=>(this.config.layers[C]??0)-(this.config.layers[z]??0)||C.localeCompare(z))),w=$(Array.from(d)),y={},b=this.config.outputToCssLayers,g=E=>{let C=E;return typeof b=="object"&&(C=b.cssLayerName?.(E)),C===null?null:C??E},v=(E=ie)=>{if(y[E])return y[E];let C=Array.from(h).sort((D,k)=>(this.parentOrders.get(D[0])??0)-(this.parentOrders.get(k[0])??0)||D[0]?.localeCompare(k[0]||"")||0).map(([D,k])=>{let A=k.length,L=k.filter(I=>(I[4]?.layer||ie)===E).sort((I,Y)=>I[0]-Y[0]||(I[4]?.sort||0)-(Y[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(Y[5]?.currentSelector??"")||I[1]?.localeCompare(Y[1]||"")||I[2]?.localeCompare(Y[2]||"")||0).map(([,I,Y,,ee,,Or])=>[[[(I&&$a(I,o))??"",ee?.sort??0]],Y,!!(Or??ee?.noMerge)]);if(!L.length)return;let T=L.reverse().map(([I,Y,ee],Or)=>{if(!ee&&this.config.mergeSelectors)for(let dt=Or+1;dt<A;dt++){let et=L[dt];if(et&&!et[2]&&(I&&et[0]||I==null&&et[0]==null)&&et[1]===Y)return I&&et[0]&&et[0].push(...I),null}let _n=I?ct(I.sort((dt,et)=>dt[1]-et[1]||dt[0]?.localeCompare(et[0]||"")||0).map(dt=>dt[0]).filter(Boolean)):[];return _n.length?`${_n.join(`,${u}`)}{${Y}}`:Y}).filter(Boolean),G=Array.from(new Set(T)).reverse().join(u);if(!D)return G;let vt=D.split(" $$ ");return`${vt.join("{")}{${u}${G}${u}${"}".repeat(vt.length)}`}).filter(Boolean).join(u);i&&(C=[m[E],C].filter(Boolean).join(u));let z;b&&C&&(z=g(E),z!==null&&(C=`@layer ${z}{${u}${C}${u}}`));let V=s?"":`/* layer: ${E}${z&&z!==E?`, alias: ${z}`:""} */${u}`;return y[E]=C?V+C:""},P=(E=w,C)=>{let z=E.filter(D=>!C?.includes(D)),V=z.map(v).filter(Boolean);if(b){let D=z;typeof b=="object"&&b.allLayers&&(D=$(Object.keys(this.config.layers))),D.length>0&&V.unshift(`@layer ${D.map(g).filter(re).join(", ")};`)}return V.join(u)};return{get css(){return P()},layers:w,matched:p,getLayers:P,getLayer:v,setLayer:async(E,C)=>{let z=await C(v(E));return y[E]=z,z}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let a=!0,[,,s,c]=i;for(;a;){a=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(F(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let p=d.map(h=>{let m=h.matcher??l,x=[h,...s],$=new Set(c);return $.add(u),[i[0],m,x,$]});return(await Promise.all(p.map(h=>o(h)))).flat()}}i[1]=d.matcher??l,s.unshift(d),c.add(u),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,l)=>(c.order||0)-(l.order||0)).reduceRight((c,l)=>u=>{let d=l.body?.(u.entries)||u.entries,p=Array.isArray(l.parent)?l.parent:[l.parent,void 0],h=l.selector?.(u.selector,d);return(l.handle??ka)({...u,entries:d,selector:h||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:l.layer||u.layer,sort:l.sort||u.sort},c)},c=>c)({prefix:"",selector:wa(n),pseudo:"",entries:e[2]}),{parent:i,parentOrder:a}=o;i!=null&&a!=null&&this.parentOrders.set(i,a);let s={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:i,layer:o.layer,sort:o.sort,noMerge:o.noMerge};return this.config.postprocess.reduce((c,l)=>{let u=[];for(let d of c){let p=l(d);Array.isArray(p)?u.push(...p.filter(re)):u.push(p||d)}return u},[s])}constructCustomCSS(e,r,n){let o=se(r);return F(o)?o:this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]).map(({selector:i,entries:a,parent:s})=>{let c=`${i}{${Tt(a)}}`;return s?`${s}{${c}}`:c}).join("")}async parseUtil(e,r,n=!1,o){let i=F(e)?await this.matchVariants(e):[e],a=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},p=this.config.rulesStaticMap[l];if(p&&p[1]&&(n||!p[2]?.internal))return this.resolveCSSResult(c,p[1],p,d);for(let h of this.config.rulesDynamic){let[m,x,$]=h;if($?.internal&&!n)continue;let w=l;if($?.prefix){let v=j($.prefix);if(o){let P=j(o);if(!v.some(H=>P.includes(H)))continue}else{let P=v.find(H=>l.startsWith(H));if(P==null)continue;w=l.slice(P.length)}}let y=w.match(m);if(!y)continue;let b=await x(y,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let v=[];for await(let P of b)P&&v.push(P);b=v}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(re));let g=this.resolveCSSResult(c,b,h,d);if(g)return g}},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s.length)return s}stringifyUtil(e,r){if(!e)return;if(Pn(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0]];let n=this.applyVariants(e),o=[];for(let i of n){let{selector:a,entries:s,parent:c,layer:l,sort:u,noMerge:d}=i,p=Tt(s);if(!p)continue;let{layer:h,sort:m,...x}=e[3]??{},$={...x,layer:l??h,sort:u??m};o.push([e[0],a,p,c,$,this.config.details?r:void 0,d])}return o}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:ra,i,a,s,c;for(let l of this.config.shortcuts){let u=e;if(l[2]?.prefix){let d=j(l[2].prefix).find(p=>e.startsWith(p));if(d==null)continue;u=e.slice(d.length)}if(ca(l)){if(l[0]===u){i=i||l[2],a=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(a=l[1](d,r)),a){i=i||l[2],o(l);break}}}if(a&&(s=ct(j(a).filter(F).map(l=>ua(l.trim()).split(/\s+/g)).flat()),c=j(a).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!a){let l=F(e)?await this.matchVariants(e):[e];for(let u of l){let[d,p,h]=u;if(d!==p){let m=await this.expandShortcut(p,r,n-1);m&&(s=m[0].filter(F).map(x=>d.replace(p,x)),c=m[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...h],value:x.value})))}}}if(!(!s?.length&&!c?.length))return[[await Promise.all(j(s).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new oa,a=(await Promise.all(ct(n).map(async u=>{let d=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",se(u.value),void 0,u.handles]];return!d&&this.config.warn&&da(`unmatched utility "${u}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[s,,c]=e,l=[];for(let u of a){if(Pn(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let d=Object.fromEntries(u[2])[X.shortcutsNoMerge],p=[...u[4],...d?[]:c];for(let{selector:h,entries:m,parent:x,sort:$,noMerge:w,layer:y}of this.applyVariants(u,p,s))i.getFallback(y??o.layer,new na).getFallback(h,x,[[],u[0]])[0].push([m,!!(w??u[3]?.noMerge),$??0])}return l.concat(i.flatMap((u,d)=>u.map(([p,h],m,x)=>{let $=(w,y,b)=>{let g=Math.max(...b.map(P=>P[1])),v=b.map(P=>P[0]);return(w?[v.flat(1)]:v).map(P=>{let H=Tt(P);if(H)return[h,m,H,x,{...o,noMerge:y,sort:g,layer:d},r,void 0]})};return[[p.filter(([,w])=>w).map(([w,,y])=>[w,y]),!0],[p.filter(([,w])=>!w).map(([w,,y])=>[w,y]),!1]].map(([w,y])=>[...$(!1,y,w.filter(([b])=>b.some(g=>g[0]===X.shortcutsNoMerge))),...$(!0,y,w.filter(([b])=>b.every(g=>g[0]!==X.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):F(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):F(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Gn(t,e){return await xa.create(t,e)}var qn=/\s\$\$\s+/g;function va(t){return qn.test(t)}function $a(t,e){return va(t)?t.replace(qn,e?` ${e} `:" "):e?`${e} ${t}`:t}var Bn=/^\[(.+?)(~?=)"(.*)"\]$/;function wa(t){return Bn.test(t)?t.replace(Bn,(e,r,n,o)=>`[${Lr(r)}${n}"${Lr(o)}"]`):`.${Lr(t)}`}function ka(t,e){return e(t)}var Kn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Sa(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:a}){let s=Wn(i);if(!s)return;let c=s[1];if(c.startsWith(e))c=c.slice(e.length);else if(r)return;let l=s[2],[,u="",d=l]=l.match(Kn)||[];if(d==="~"||n&&d==="true"||!d)return`${u}${c}`;if(o==null){let p=a?.config?.separators?.join("|");p?o=new RegExp(`^(.*\\](?:${p}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,p,h]=l.match(o)||[];if(h)return`${p}${u}${c}-${h}`}if(u&&d.match(/^[\d.]+$/)){let p=u.split(/([^:]*:)/g).filter(Boolean),h=p.pop()+d,m=p.join("");return[{matcher:`${u}${c}-${d}`},{matcher:`${m}${c}-${h}`}]}return`${u}${c}-${d}`}}}var Ea=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ca=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Hn=/[\s'"`;>]+/;function za(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Ea),o,i=0;for(let y of n){let[,b,g]=y,v=y.index+b.length;if(r>v&&r<=v+g.length){i=v,o=g;break}}if(!o)return null;let a=o.matchAll(Ca),s=0,c,l;for(let y of a){let[b,g,v]=y,P=i+y.index;if(r>P&&r<=P+b.length){s=P,c=g,l=v?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let u=!!t?.prefix&&c.startsWith(t.prefix);if(t?.prefixedOnly&&!u)return null;let d=u?c.slice(t.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(y){let b=u?t.prefix.length:0;return{start:s+b,end:s+c.length,replacement:y}}};let p=s+c.length+2,h=Hn.exec(l),m=0,x;for(;h;){let[y]=h;if(r>p+m&&r<=p+m+h.index){x=l.slice(m,m+h.index);break}m+=h.index+y.length,h=Hn.exec(l.slice(m))}x===void 0&&(x=l.slice(m));let[,$="",w]=x.match(Kn)||[];return{extracted:`${$}${d}-${w}`,transformSuggestions(y){return y.filter(b=>b.startsWith(`${$}${d}-`)).map(b=>$+b.slice($.length+d.length+1))},resolveReplacement(y){return{start:m+p,end:m+p+x.length,replacement:$+y.slice($.length+d.length+1)}}}}}}var ja=["v-bind:",":"],Yn=/[\s'"`;]+/g,Tr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Aa=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Zn=["placeholder","fill","opacity","stroke-opacity"];function _a(t){let e=t?.ignoreAttributes??Zn,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Tr)).flatMap(i=>Array.from((i[1]||"").matchAll(Aa))).flatMap(([,i,...a])=>{let s=a.filter(Boolean).join("");if(e.includes(i))return[];for(let c of ja)if(i.startsWith(c)){i=i.slice(c.length);break}if(!s){if(Wt(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?s.split(Yn).filter(Wt):Tr.test(s)?(Tr.lastIndex=0,this.extract({code:s})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:s.split(Yn).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var Ra=(t={})=>(t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??Zn,{name:"@unocss/preset-attributify",enforce:"post",variants:[Sa(t)],extractors:[_a(t)],options:t,autocomplete:{extractors:[za(t)]},extractorDefault:t.strict?!1:void 0}),Jn=Ra;var Wr=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Oa=Object.getOwnPropertyNames,Ma=Object.prototype.hasOwnProperty,ce=(t,e)=>{let r={};for(var n in t)Wr(r,n,{get:t[n],enumerable:!0});return e&&Wr(r,Symbol.toStringTag,{value:"Module"}),r},Qn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var o=Oa(e),i=0,a=o.length,s;i<a;i++)s=o[i],!Ma.call(t,s)&&s!==r&&Wr(t,s,{get:(c=>e[c]).bind(null,s),enumerable:!(n=Pa(e,s))||n.enumerable});return t},Nr=(t,e,r)=>(Qn(t,e,"default"),r&&Qn(r,e,"default"));var en={};qi(en,{PseudoClassFunctions:()=>go,PseudoClassFunctionsStr:()=>pt,PseudoClasses:()=>wt,PseudoClassesAndElementsColonStr:()=>Gr,PseudoClassesAndElementsStr:()=>Vr,PseudoClassesColon:()=>kt,PseudoClassesColonKeys:()=>Xr,PseudoClassesColonStr:()=>pe,PseudoClassesKeys:()=>Yr,PseudoClassesMulti:()=>Kr,PseudoClassesMultiStr:()=>Dr,PseudoClassesStr:()=>de,alphaPlaceholders:()=>qr,alphaPlaceholdersRE:()=>fo,calcMaxWidthBySize:()=>rs,colorOpacityToString:()=>mt,colorToString:()=>W,createPartClasses:()=>tn,createPseudoClassFunctions:()=>Jr,createPseudoClassesAndElements:()=>Zr,createTaggedPseudoClassMatcher:()=>yo,createTaggedPseudoClasses:()=>Qr,createValueHandler:()=>Hr,cssColorFunctions:()=>me,excludedPseudo:()=>bo,getBracket:()=>ao,getStringComponent:()=>$t,getStringComponents:()=>At,hasIconFn:()=>os,hasThemeFn:()=>ts,hex2rgba:()=>Ha,hueInterpolationMethods:()=>lo,iconFnRE:()=>ns,isInterpolatedMethod:()=>qa,parseCssColor:()=>J,polarColorSpace:()=>co,rectangularColorSpace:()=>so,themeFnRE:()=>mo,transformThemeFn:()=>es,transformThemeString:()=>ho,variantGetBracket:()=>xo,variantGetParameter:()=>vo,variantMatcher:()=>St,variantParentMatcher:()=>rt});var La=44,Fa=59,to="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",no=new Uint8Array(64),Ba=new Uint8Array(128);for(let t=0;t<to.length;t++){let e=to.charCodeAt(t);no[t]=e,Ba[e]=t}function Nt(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(no[o])}while(n>0);return e}var eo=1024*16,ro=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}},Ta=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(eo)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===eo&&(this.out+=ro.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:r}=this;return r>0?e+ro.decode(t.subarray(0,r)):e}};function oo(t){let e=new Ta,r=0,n=0,o=0,i=0;for(let a=0;a<t.length;a++){let s=t[a];if(a>0&&e.write(Fa),s.length===0)continue;let c=0;for(let l=0;l<s.length;l++){let u=s[l];l>0&&e.write(La),c=Nt(e,u[0],c),u.length!==1&&(r=Nt(e,u[1],r),n=Nt(e,u[2],n),o=Nt(e,u[3],o),u.length!==4&&(i=Nt(e,u[4],i)))}}return e.flush()}var le=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))}},fe=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}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}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 Wa(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.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 Na=Wa(),Ir=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=oo(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Na(this.toString())}};function Ia(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function Ua(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Da=Object.prototype.toString;function Va(t){return Da.call(t)==="[object Object]"}function io(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,a=r.length;for(;i<a;){let l=i+a>>1;o<r[l]?a=l:i=l+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var Ga=/\w/,Ur=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,o){if(r.length){let i=r.length-1,a=r.indexOf(`
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var Y="default",ee="preflights",Ae="shortcuts",Ce="imports",$e={[Ce]:-200,[ee]:-100,[Ae]:-10,[Y]:0},Ee=/[\\:]?[\s'"`;{}]+/g;function Me(t){return t.split(Ee)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Me(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function N(t){return Array.from(new Set(t))}function ne(t,e){return t.reduce((r,n)=>(r.findIndex(s=>e(n,s))===-1&&r.push(n),r),[])}function O(t){return typeof t=="string"}var fe=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function J(t){return t instanceof fe}function Re(t){let e=t.length,r=-1,n,s="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var Q=Re;function Le(){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)}}}function Oe(t){return typeof t=="function"?{match:t}:t}function se(t){return t.length===3}function H(t){return t!=null}function je(){}var Te=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,s])=>t(s,e,n)))}},Pe=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function K(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ke(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>K(e)):[t]:[K(t)]}function Ue(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}var ue="__virtual_key__";function X(t){return t==null?"":Ue(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==ue?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function z(t){return t&&typeof t=="object"&&!Array.isArray(t)}function pe(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let a={...n};return z(n)&&z(s)&&Object.keys(s).forEach(f=>{z(n[f])&&z(s[f])||Array.isArray(n[f])&&Array.isArray(s[f])?a[f]=pe(n[f],s[f],r):Object.assign(a,{[f]:s[f]})}),a}function q(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:q(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?q(n):n;return r}return t}function Ve(t){return O(t[0])}function De(t){return O(t[0])}var W={};function Ge(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function Ne(t,e=["-",":"],r=5){let n=Ge(e),s,a=t.toString(),f=new Set,u=new Map;do s=!1,a=a.replace(n,(i,o,l,p,g)=>{if(!e.includes(l))return i;s=!0,f.add(o+l);let $=g+o.length+l.length+1,E={length:i.length,items:[]};u.set(g,E);for(let A of[...p.matchAll(/\S+/g)]){let C=$+A.index,y=u.get(C)?.items;y?u.delete(C):y=[{offset:C,length:A[0].length,className:A[0]}];for(let v of y)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${l}$2`),E.items.push(v)}return"$".repeat(i.length)}),r-=1;while(s&&r);let c;if(typeof t=="string"){c="";let i=0;for(let[o,l]of u)c+=t.slice(i,o),c+=l.items.map(p=>p.className).join(" "),i=o+l.length;c+=t.slice(i)}else{c=t;for(let[i,o]of u)c.overwrite(i,i+o.length,o.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:u,get expanded(){return c.toString()}}}function Fe(t,e=["-",":"],r=5){let n=Ne(t,e,r);return typeof t=="string"?n.expanded:t}var oe=new Set;function Be(t){oe.has(t)||(console.warn("[unocss]",t),oe.add(t))}function he(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ie="_uno_resolved";async function Ie(t){let e=typeof t=="function"?await t():await t;if(ie in e)return e;e={...e},Object.defineProperty(e,ie,{value:!0,enumerable:!1});let r=e.shortcuts?he(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let a=s[2];a.prefix==null&&e.prefix&&(a.prefix=j(e.prefix)),a.layer==null&&e.layer&&(a.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function de(t){let e=await Ie(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(de))).flat()]:[e]}function He(t){if(t.length===0)return{};let e=[],r=[],n=!1,s=[],a=[];for(let u of t){if(u.pipeline===!1){n=!0;break}else u.pipeline?.include&&e.push(u.pipeline.include),u.pipeline?.exclude&&r.push(u.pipeline.exclude);u.filesystem&&s.push(u.filesystem),u.inline&&a.push(u.inline)}let f={pipeline:n?!1:{include:N(ce(...e)),exclude:N(ce(...r))}};return s.length&&(f.filesystem=N(s.flat())),a.length&&(f.inline=N(a.flat())),f}async function ae(t={},e={}){let r=Object.assign({},e,t),n=ne((await Promise.all((r.presets||[]).flatMap(j).flatMap(de))).flat(),(h,m)=>h.name===m.name),s=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],a=[...s,r],f=[...a].reverse(),u=Object.assign({},$e,...a.map(h=>h.layers));function c(h){return N(a.flatMap(m=>j(m[h]||[])))}let i=c("extractors"),o=f.find(h=>h.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=_e),o&&!i.includes(o)&&i.unshift(o),i.sort((h,m)=>(h.order||0)-(m.order||0));let l=c("rules"),p=l.length,g={},$=[];for(let[h,m]of l.entries()){let _=m[2]??(m[2]={});_.__index=h,Ve(m)?j(_.prefix??"").forEach(U=>{g[U+m[0]]=m}):$.unshift(m)}let E={templates:N(a.flatMap(h=>j(h.autocomplete?.templates))),extractors:a.flatMap(h=>j(h.autocomplete?.extractors)).sort((h,m)=>(h.order||0)-(m.order||0)),shorthands:We(a.map(h=>h.autocomplete?.shorthands||{}))},A=c("separators");A.length||(A=[":","-"]);let C=He(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:c("blocklist"),presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:u,theme:ze(a.map(h=>h.theme)),rules:l,rulesSize:p,rulesDynamic:$,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:E,variants:c("variants").map(Oe).sort((h,m)=>(h.order||0)-(m.order||0)),shortcuts:he(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:A,details:r.details??r.envMode==="dev",content:C,transformers:ne(c("transformers"),(h,m)=>h.name===m.name)},v=c("extendTheme");for(let h of v)y.theme=h(y.theme,y)||y.theme;for(let h of a)h?.configResolved?.(y);return y}function ze(t){return t.map(e=>e?q(e):{}).reduce((e,r)=>pe(e,r),{})}function We(t){return t.reduce((e,r)=>{let n={};for(let s in r){let a=r[s];Array.isArray(a)?n[s]=`(${a.join("|")})`:n[s]=a}return{...e,...n}},{})}function ce(...t){return t.flatMap(Ye)}function Ye(t){return Array.isArray(t)?t:t?[t]:[]}var qe="66.6.0-beta.1",D={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Ke=class me{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=qe,this.events=Le(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,s,a,f)=>{let u=ke(s).filter(c=>c.length);if(u.length){this.config.details&&f.rules.push(a),f.generator.activatedRules.add(a);let c=a[2];return u.map(i=>{if(O(i))return[c.__index,i,c];let o=f.variantHandlers,l=c;for(let p of i)p[0]===D.variants?typeof p[1]=="function"?o=p[1](o)||o:o=[...j(p[1]),...o]:p[0]===D.parent?o=[{parent:p[1]},...o]:p[0]===D.selector?o=[{selector:p[1]},...o]:p[0]===D.layer?o=[{layer:p[1]},...o]:p[0]===D.sort?l={...l,sort:p[1]}:p[0]===D.noMerge?l={...l,noMerge:p[1]}:p[0]===D.body&&(p[0]=ue);return[c.__index,n,i,l,o]})}}}static async create(e={},r={}){let n=new me(e,r);return n.config=await ae(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await ae(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let s={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let a of this.config.extractors){let f=await a.extract?.(s);if(f)if(J(f)&&J(n))for(let u of f)n.setCount(u,n.getCount(u)+f.getCount(u));else for(let u of f)n.add(u)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:D,variantHandlers:r[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),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 s=this.config.preprocess.reduce((c,i)=>i(c)??c,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(n,null);return}let a=await this.matchVariants(e,s);if(a.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let f=async c=>{let i=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let o=await this.expandShortcut(i.currentSelector,i);return o?await this.stringifyShortcuts(i.variantMatch,i,o[0],o[1]):(await this.parseUtil(i.variantMatch,i))?.flatMap(l=>this.stringifyUtil(l,i)).filter(H)},u=(await Promise.all(a.map(c=>f(c)))).flat().filter(c=>!!c);if(u?.length)return this.cache.set(n,u),u;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:s,preflights:a=!0,safelist:f=!0,minify:u=!1,extendedInfo:c=!1}=r,i=O(e)?await this.applyExtractors(e,n,c?new fe:new Set):Array.isArray(e)?new Set(e):e;if(f){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(b=>typeof b=="function"?b(S):b).forEach(b=>{let x=b.trim();x&&!i.has(x)&&i.add(x)})}let o=u?"":`
1
+ "use strict";(()=>{var Y="default",ee="preflights",Ae="shortcuts",Ce="imports",$e={[Ce]:-200,[ee]:-100,[Ae]:-10,[Y]:0},Ee=/[\\:]?[\s'"`;{}]+/g;function Me(t){return t.split(Ee)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Me(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function N(t){return Array.from(new Set(t))}function ne(t,e){return t.reduce((r,n)=>(r.findIndex(s=>e(n,s))===-1&&r.push(n),r),[])}function O(t){return typeof t=="string"}var fe=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function J(t){return t instanceof fe}function Re(t){let e=t.length,r=-1,n,s="",a=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&a===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var Q=Re;function Le(){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)}}}function Oe(t){return typeof t=="function"?{match:t}:t}function se(t){return t.length===3}function H(t){return t!=null}function je(){}var Te=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,s])=>t(s,e,n)))}},Pe=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function K(t){return O(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ke(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>K(e)):[t]:[K(t)]}function Ue(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}var ue="__virtual_key__";function X(t){return t==null?"":Ue(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==ue?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function z(t){return t&&typeof t=="object"&&!Array.isArray(t)}function pe(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let a={...n};return z(n)&&z(s)&&Object.keys(s).forEach(f=>{z(n[f])&&z(s[f])||Array.isArray(n[f])&&Array.isArray(s[f])?a[f]=pe(n[f],s[f],r):Object.assign(a,{[f]:s[f]})}),a}function q(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:q(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?q(n):n;return r}return t}function Ve(t){return O(t[0])}function De(t){return O(t[0])}var W={};function Ge(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function Ne(t,e=["-",":"],r=5){let n=Ge(e),s,a=t.toString(),f=new Set,u=new Map;do s=!1,a=a.replace(n,(i,o,l,p,g)=>{if(!e.includes(l))return i;s=!0,f.add(o+l);let $=g+o.length+l.length+1,E={length:i.length,items:[]};u.set(g,E);for(let A of[...p.matchAll(/\S+/g)]){let C=$+A.index,y=u.get(C)?.items;y?u.delete(C):y=[{offset:C,length:A[0].length,className:A[0]}];for(let v of y)v.className=v.className==="~"?o:v.className.replace(/^(!?)(.*)/,`$1${o}${l}$2`),E.items.push(v)}return"$".repeat(i.length)}),r-=1;while(s&&r);let c;if(typeof t=="string"){c="";let i=0;for(let[o,l]of u)c+=t.slice(i,o),c+=l.items.map(p=>p.className).join(" "),i=o+l.length;c+=t.slice(i)}else{c=t;for(let[i,o]of u)c.overwrite(i,i+o.length,o.items.map(l=>l.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:u,get expanded(){return c.toString()}}}function Fe(t,e=["-",":"],r=5){let n=Ne(t,e,r);return typeof t=="string"?n.expanded:t}var oe=new Set;function Be(t){oe.has(t)||(console.warn("[unocss]",t),oe.add(t))}function he(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ie="_uno_resolved";async function Ie(t){let e=typeof t=="function"?await t():await t;if(ie in e)return e;e={...e},Object.defineProperty(e,ie,{value:!0,enumerable:!1});let r=e.shortcuts?he(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let a=s[2];a.prefix==null&&e.prefix&&(a.prefix=j(e.prefix)),a.layer==null&&e.layer&&(a.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function de(t){let e=await Ie(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(de))).flat()]:[e]}function He(t){if(t.length===0)return{};let e=[],r=[],n=!1,s=[],a=[];for(let u of t){if(u.pipeline===!1){n=!0;break}else u.pipeline?.include&&e.push(u.pipeline.include),u.pipeline?.exclude&&r.push(u.pipeline.exclude);u.filesystem&&s.push(u.filesystem),u.inline&&a.push(u.inline)}let f={pipeline:n?!1:{include:N(ce(...e)),exclude:N(ce(...r))}};return s.length&&(f.filesystem=N(s.flat())),a.length&&(f.inline=N(a.flat())),f}async function ae(t={},e={}){let r=Object.assign({},e,t),n=ne((await Promise.all((r.presets||[]).flatMap(j).flatMap(de))).flat(),(h,m)=>h.name===m.name),s=[...n.filter(h=>h.enforce==="pre"),...n.filter(h=>!h.enforce),...n.filter(h=>h.enforce==="post")],a=[...s,r],f=[...a].reverse(),u=Object.assign({},$e,...a.map(h=>h.layers));function c(h){return N(a.flatMap(m=>j(m[h]||[])))}let i=c("extractors"),o=f.find(h=>h.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=_e),o&&!i.includes(o)&&i.unshift(o),i.sort((h,m)=>(h.order||0)-(m.order||0));let l=c("rules"),p=l.length,g={},$=[];for(let[h,m]of l.entries()){let _=m[2]??(m[2]={});_.__index=h,Ve(m)?j(_.prefix??"").forEach(U=>{g[U+m[0]]=m}):$.unshift(m)}let E={templates:N(a.flatMap(h=>j(h.autocomplete?.templates))),extractors:a.flatMap(h=>j(h.autocomplete?.extractors)).sort((h,m)=>(h.order||0)-(m.order||0)),shorthands:We(a.map(h=>h.autocomplete?.shorthands||{}))},A=c("separators");A.length||(A=[":","-"]);let C=He(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:h=>h,...r,blocklist:c("blocklist"),presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:u,theme:ze(a.map(h=>h.theme)),rules:l,rulesSize:p,rulesDynamic:$,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:E,variants:c("variants").map(Oe).sort((h,m)=>(h.order||0)-(m.order||0)),shortcuts:he(c("shortcuts")).reverse(),extractors:i,safelist:c("safelist"),separators:A,details:r.details??r.envMode==="dev",content:C,transformers:ne(c("transformers"),(h,m)=>h.name===m.name)},v=c("extendTheme");for(let h of v)y.theme=h(y.theme,y)||y.theme;for(let h of a)h?.configResolved?.(y);return y}function ze(t){return t.map(e=>e?q(e):{}).reduce((e,r)=>pe(e,r),{})}function We(t){return t.reduce((e,r)=>{let n={};for(let s in r){let a=r[s];Array.isArray(a)?n[s]=`(${a.join("|")})`:n[s]=a}return{...e,...n}},{})}function ce(...t){return t.flatMap(Ye)}function Ye(t){return Array.isArray(t)?t:t?[t]:[]}var qe="66.6.0",D={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},Ke=class me{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=qe,this.events=Le(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,s,a,f)=>{let u=ke(s).filter(c=>c.length);if(u.length){this.config.details&&f.rules.push(a),f.generator.activatedRules.add(a);let c=a[2];return u.map(i=>{if(O(i))return[c.__index,i,c];let o=f.variantHandlers,l=c;for(let p of i)p[0]===D.variants?typeof p[1]=="function"?o=p[1](o)||o:o=[...j(p[1]),...o]:p[0]===D.parent?o=[{parent:p[1]},...o]:p[0]===D.selector?o=[{selector:p[1]},...o]:p[0]===D.layer?o=[{layer:p[1]},...o]:p[0]===D.sort?l={...l,sort:p[1]}:p[0]===D.noMerge?l={...l,noMerge:p[1]}:p[0]===D.body&&(p[0]=ue);return[c.__index,n,i,l,o]})}}}static async create(e={},r={}){let n=new me(e,r);return n.config=await ae(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await ae(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let s={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let a of this.config.extractors){let f=await a.extract?.(s);if(f)if(J(f)&&J(n))for(let u of f)n.setCount(u,n.getCount(u)+f.getCount(u));else for(let u of f)n.add(u)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:D,variantHandlers:r[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),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 s=this.config.preprocess.reduce((c,i)=>i(c)??c,e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(n,null);return}let a=await this.matchVariants(e,s);if(a.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let f=async c=>{let i=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(i.variants=[...c[3]]);let o=await this.expandShortcut(i.currentSelector,i);return o?await this.stringifyShortcuts(i.variantMatch,i,o[0],o[1]):(await this.parseUtil(i.variantMatch,i))?.flatMap(l=>this.stringifyUtil(l,i)).filter(H)},u=(await Promise.all(a.map(c=>f(c)))).flat().filter(c=>!!c);if(u?.length)return this.cache.set(n,u),u;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:s,preflights:a=!0,safelist:f=!0,minify:u=!1,extendedInfo:c=!1}=r,i=O(e)?await this.applyExtractors(e,n,c?new fe:new Set):Array.isArray(e)?new Set(e):e;if(f){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(b=>typeof b=="function"?b(S):b).forEach(b=>{let x=b.trim();x&&!i.has(x)&&i.add(x)})}let o=u?"":`
2
2
  `,l=new Set([Y]),p=c?new Map:new Set,g=new Map,$={},E=Array.from(i).map(async S=>{if(p.has(S))return;let b=await this.parseToken(S);if(b!=null){p instanceof Map?p.set(S,{data:b,count:J(i)?i.getCount(S):-1}):p.add(S);for(let x of b){let P=x[3]||"",T=x[4]?.layer;g.has(P)||g.set(P,[]),g.get(P).push(x),T&&l.add(T)}}});await Promise.all(E),await(async()=>{if(!a)return;let S={generator:this,theme:this.config.theme},b=new Set([]);this.config.preflights.forEach(({layer:x=ee})=>{l.add(x),b.add(x)}),$=Object.fromEntries(await Promise.all(Array.from(b).map(async x=>[x,(await Promise.all(this.config.preflights.filter(P=>(P.layer||ee)===x).map(async P=>await P.getCSS(S)))).filter(Boolean).join(o)])))})();let A=S=>this.config.sortLayers(S.sort((b,x)=>(this.config.layers[b]??0)-(this.config.layers[x]??0)||b.localeCompare(x))),C=A(Array.from(l)),y={},v=this.config.outputToCssLayers,h=S=>{let b=S;return typeof v=="object"&&(b=v.cssLayerName?.(S)),b===null?null:b??S},m=(S=Y)=>{if(y[S])return y[S];let b=Array.from(g).sort((T,d)=>(this.parentOrders.get(T[0])??0)-(this.parentOrders.get(d[0])??0)||T[0]?.localeCompare(d[0]||"")||0).map(([T,d])=>{let w=d.length,M=d.filter(L=>(L[4]?.layer||Y)===S).sort((L,V)=>L[0]-V[0]||(L[4]?.sort||0)-(V[4]?.sort||0)||L[5]?.currentSelector?.localeCompare(V[5]?.currentSelector??"")||L[1]?.localeCompare(V[1]||"")||L[2]?.localeCompare(V[2]||"")||0).map(([,L,V,,I,,Z])=>[[[(L&&Je(L,s))??"",I?.sort??0]],V,!!(Z??I?.noMerge)]);if(!M.length)return;let R=M.reverse().map(([L,V,I],Z)=>{if(!I&&this.config.mergeSelectors)for(let F=Z+1;F<w;F++){let G=M[F];if(G&&!G[2]&&(L&&G[0]||L==null&&G[0]==null)&&G[1]===V)return L&&G[0]&&G[0].push(...L),null}let re=L?N(L.sort((F,G)=>F[1]-G[1]||F[0]?.localeCompare(G[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return re.length?`${re.join(`,${o}`)}{${V}}`:V}).filter(Boolean),k=Array.from(new Set(R)).reverse().join(o);if(!T)return k;let B=T.split(" $$ ");return`${B.join("{")}{${o}${k}${o}${"}".repeat(B.length)}`}).filter(Boolean).join(o);a&&(b=[$[S],b].filter(Boolean).join(o));let x;v&&b&&(x=h(S),x!==null&&(b=`@layer ${x}{${o}${b}${o}}`));let P=u?"":`/* layer: ${S}${x&&x!==S?`, alias: ${x}`:""} */${o}`;return y[S]=b?P+b:""},_=(S=C,b)=>{let x=S.filter(T=>!b?.includes(T)),P=x.map(m).filter(Boolean);if(v){let T=x;typeof v=="object"&&v.allLayers&&(T=A(Object.keys(this.config.layers))),T.length>0&&P.unshift(`@layer ${T.map(h).filter(H).join(", ")};`)}return P.join(o)};return{get css(){return _()},layers:C,matched:p,getLayers:_,getLayer:m,setLayer:async(S,b)=>{let x=await b(m(S));return y[S]=x,x}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},s=async a=>{let f=!0,[,,u,c]=a;for(;f;){f=!1;let i=a[1];for(let o of this.config.variants){if(!o.multiPass&&c.has(o))continue;let l=await o.match(i,n);if(l){if(O(l)){if(l===i)continue;l={matcher:l}}if(Array.isArray(l)){if(!l.length)continue;if(l.length===1)l=l[0];else{if(o.multiPass)throw new Error("multiPass can not be used together with array return variants");let p=l.map(g=>{let $=g.matcher??i,E=[g,...u],A=new Set(c);return A.add(o),[a[0],$,E,A]});return(await Promise.all(p.map(g=>s(g)))).flat()}}a[1]=l.matcher??i,u.unshift(l),c.add(o),f=!0;break}}if(!f)break;if(u.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[a]};return await s([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let s=r.slice().sort((c,i)=>(c.order||0)-(i.order||0)).reduceRight((c,i)=>o=>{let l=i.body?.(o.entries)||o.entries,p=Array.isArray(i.parent)?i.parent:[i.parent,void 0],g=i.selector?.(o.selector,l);return(i.handle??Xe)({...o,entries:l,selector:g||o.selector,parent:p[0]||o.parent,parentOrder:p[1]||o.parentOrder,layer:i.layer||o.layer,sort:i.sort||o.sort},c)},c=>c)({prefix:"",selector:Qe(n),pseudo:"",entries:e[2]}),{parent:a,parentOrder:f}=s;a!=null&&f!=null&&this.parentOrders.set(a,f);let u={selector:[s.prefix,s.selector,s.pseudo].join(""),entries:s.entries,parent:a,layer:s.layer,sort:s.sort,noMerge:s.noMerge};return this.config.postprocess.reduce((c,i)=>{let o=[];for(let l of c){let p=i(l);Array.isArray(p)?o.push(...p.filter(H)):o.push(p||l)}return o},[u])}constructCustomCSS(e,r,n){let s=K(r);return O(s)?s:this.applyVariants([0,n||e.rawSelector,s,void 0,e.variantHandlers]).map(({selector:a,entries:f,parent:u})=>{let c=`${a}{${X(f)}}`;return u?`${u}{${c}}`:c}).join("")}async parseUtil(e,r,n=!1,s){let a=O(e)?await this.matchVariants(e):[e],f=async([c,i,o])=>{this.config.details&&(r.rules=r.rules??[]);let l={...r,variantHandlers:o},p=this.config.rulesStaticMap[i];if(p&&p[1]&&(n||!p[2]?.internal))return this.resolveCSSResult(c,p[1],p,l);for(let g of this.config.rulesDynamic){let[$,E,A]=g;if(A?.internal&&!n)continue;let C=i;if(A?.prefix){let m=j(A.prefix);if(s){let _=j(s);if(!m.some(U=>_.includes(U)))continue}else{let _=m.find(U=>i.startsWith(U));if(_==null)continue;C=i.slice(_.length)}}let y=C.match($);if(!y)continue;let v=await E(y,l);if(!v)continue;if(typeof v!="string")if(Symbol.asyncIterator in v){let m=[];for await(let _ of v)_&&m.push(_);v=m}else Symbol.iterator in v&&!Array.isArray(v)&&(v=Array.from(v).filter(H));let h=this.resolveCSSResult(c,v,g,l);if(h)return h}},u=(await Promise.all(a.map(c=>f(c)))).flat().filter(c=>!!c);if(u.length)return u}stringifyUtil(e,r){if(!e)return;if(se(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0]];let n=this.applyVariants(e),s=[];for(let a of n){let{selector:f,entries:u,parent:c,layer:i,sort:o,noMerge:l}=a,p=X(u);if(!p)continue;let{layer:g,sort:$,...E}=e[3]??{},A={...E,layer:i??g,sort:o??$};s.push([e[0],f,p,c,A,this.config.details?r:void 0,l])}return s}async expandShortcut(e,r,n=5){if(n===0)return;let s=this.config.details?i=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(i)}:je,a,f,u,c;for(let i of this.config.shortcuts){let o=e;if(i[2]?.prefix){let l=j(i[2].prefix).find(p=>e.startsWith(p));if(l==null)continue;o=e.slice(l.length)}if(De(i)){if(i[0]===o){a=a||i[2],f=i[1],s(i);break}}else{let l=o.match(i[0]);if(l&&(f=i[1](l,r)),f){a=a||i[2],s(i);break}}}if(f&&(u=N(j(f).filter(O).map(i=>Fe(i.trim()).split(/\s+/g)).flat()),c=j(f).filter(i=>!O(i)).map(i=>({handles:[],value:i}))),!f){let i=O(e)?await this.matchVariants(e):[e];for(let o of i){let[l,p,g]=o;if(l!==p){let $=await this.expandShortcut(p,r,n-1);$&&(u=$[0].filter(O).map(E=>l.replace(p,E)),c=$[0].filter(E=>!O(E)).map(E=>({handles:[...E.handles,...g],value:E.value})))}}}if(!(!u?.length&&!c?.length))return[[await Promise.all(j(u).map(async i=>(await this.expandShortcut(i,r,n-1))?.[0]||[i])),c].flat(2).filter(i=>!!i),a]}async stringifyShortcuts(e,r,n,s={layer:this.config.shortcutsLayer}){let a=new Pe,f=(await Promise.all(N(n).map(async o=>{let l=O(o)?await this.parseUtil(o,r,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",K(o.value),void 0,o.handles]];return!l&&this.config.warn&&Be(`unmatched utility "${o}" in shortcut "${e[1]}"`),l||[]}))).flat(1).filter(Boolean).sort((o,l)=>o[0]-l[0]),[u,,c]=e,i=[];for(let o of f){if(se(o)){i.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}let l=Object.fromEntries(o[2])[D.shortcutsNoMerge],p=[...o[4],...l?[]:c];for(let{selector:g,entries:$,parent:E,sort:A,noMerge:C,layer:y}of this.applyVariants(o,p,u))a.getFallback(y??s.layer,new Te).getFallback(g,E,[[],o[0]])[0].push([$,!!(C??o[3]?.noMerge),A??0])}return i.concat(a.flatMap((o,l)=>o.map(([p,g],$,E)=>{let A=(C,y,v)=>{let h=Math.max(...v.map(_=>_[1])),m=v.map(_=>_[0]);return(C?[m.flat(1)]:m).map(_=>{let U=X(_);if(U)return[g,$,U,E,{...s,noMerge:y,sort:h,layer:l},r,void 0]})};return[[p.filter(([,C])=>C).map(([C,,y])=>[C,y]),!0],[p.filter(([,C])=>!C).map(([C,,y])=>[C,y]),!1]].map(([C,y])=>[...A(!1,y,C.filter(([v])=>v.some(h=>h[0]===D.shortcutsNoMerge))),...A(!0,y,C.filter(([v])=>v.every(h=>h[0]!==D.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):O(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let s=Array.isArray(n)?n[0]:n;return typeof s=="function"?s(e):O(s)?s===e:s.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function ge(t,e){return await Ke.create(t,e)}var ye=/\s\$\$\s+/g;function Ze(t){return ye.test(t)}function Je(t,e){return Ze(t)?t.replace(ye,e?` ${e} `:" "):e?`${e} ${t}`:t}var le=/^\[(.+?)(~?=)"(.*)"\]$/;function Qe(t){return le.test(t)?t.replace(le,(e,r,n,s)=>`[${Q(r)}${n}"${Q(s)}"]`):`.${Q(t)}`}function Xe(t,e){return e(t)}function et(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function ve(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Se(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var be=["Webkit","Moz","ms"];function xe(t){let e={};function r(n){let s=e[n];if(s)return s;let a=et(n);if(a!=="filter"&&a in t)return e[n]=Se(a);a=ve(a);for(let f=0;f<be.length;f++){let u=`${be[f]}${a}`;if(u in t)return e[n]=Se(ve(u))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=r(s[0]))})}function we(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function te(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,s=e.__unocss||{},a=Object.assign({},t,s.runtime),f=a.defaults||{},u=a.cloakAttribute??"un-cloak";a.autoPrefix&&(f.postprocess=j(f.postprocess)).unshift(xe(r.createElement("div").style)),a.configResolved?.(s,f);let c=await ge(s,f),i=d=>{let w=t.rootElement?.();if(w){w.appendChild(d);return}a.inject?a.inject(d):n().prepend(d)},o=()=>a.rootElement?a.rootElement():r.body,l=new Map,p=!0,g=new Set,$,E,A=[],C=()=>new Promise(d=>{A.push(d),E!=null&&clearTimeout(E),E=setTimeout(()=>h().then(()=>{let w=A;A=[],w.forEach(M=>M())}),0)});function y(d,w=!1){if(d.nodeType!==1)return;let M=d;M.hasAttribute(u)&&M.removeAttribute(u),w&&M.querySelectorAll(`[${u}]`).forEach(R=>{R.removeAttribute(u)})}function v(d,w){let M=l.get(d);if(!M)if(M=r.createElement("style"),M.setAttribute("data-unocss-runtime-layer",d),l.set(d,M),w==null)i(M);else{let R=v(w),k=R.parentNode;k?k.insertBefore(M,R.nextSibling):i(M)}return M}async function h(){let d=[...g],w=await c.generate(d);return w.layers.reduce((R,k)=>(v(k,R).innerHTML=w.getLayer(k)??"",k),void 0),d.filter(R=>!w.matched.has(R)).forEach(R=>g.delete(R)),{...w,getStyleElement:R=>l.get(R),getStyleElements:()=>l}}async function m(d){let w=g.size;await c.applyExtractors(d,void 0,g),w!==g.size&&await C()}async function _(d=o()){let w=d&&d.outerHTML;w&&(await m(`${w} ${we(w)}`),y(n()),y(d,!0))}let U=new MutationObserver(d=>{p||d.forEach(async w=>{if(w.target.nodeType!==1)return;let M=w.target;for(let R of l)if(M===R[1])return;if(w.type==="childList")w.addedNodes.forEach(async R=>{if(R.nodeType!==1)return;let k=R;$&&!$(k)||(await m(k.outerHTML),y(k))});else{if($&&!$(M))return;if(w.attributeName!==u){let R=Array.from(M.attributes).map(B=>B.value?`${B.name}="${B.value}"`:B.name).join(" "),k=`<${M.tagName.toLowerCase()} ${R}>`;await m(k)}y(M)}})}),S=!1;function b(){if(S)return;let d=a.observer?.target?a.observer.target():o();d&&(U.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:a.observer?.attributeFilter}),S=!0)}function x(){a.bypassDefined&&tt(c.blocked),_(),b()}function P(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",x):x()}let T=e.__unocss_runtime=e.__unocss_runtime={version:c.version,uno:c,async extract(d){O(d)||(d.forEach(w=>g.add(w)),d=""),await m(d)},extractAll:_,inspect(d){$=d},toggleObserver(d){d===void 0?p=!p:p=!!d,!S&&!p&&P()},update:h,presets:e.__unocss_runtime?.presets??{}};a.ready?.(T)!==!1&&(p=!1,P())}function tt(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),t.add(s))})}catch{continue}}return t}te();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var ta=Object.defineProperty;var ea=(t,e)=>{for(var r in e)ta(t,r,{get:e[r],enumerable:!0})};var de="default",Ir="preflights",ra="shortcuts",na="imports",oa={[na]:-200,[Ir]:-100,[ra]:-10,[de]:0},Ur=/[\\:]?[\s'"`;{}]+/g;function ia(t){return t.split(Ur)}var aa={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ia(t)}};function _(t=[]){return Array.isArray(t)?t:[t]}function dt(t){return Array.from(new Set(t))}function Bn(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function B(t){return typeof t=="string"}var Gn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Wr(t){return t instanceof Gn}function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tt(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Nr=tt;function sa(){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 la=/^\[(.+?)~?="(.*)"\]$/;var ca=/[\w\u00A0-\uFFFF%-?]/;function qn(t){return t.match(la)}function Vt(t=""){return ca.test(t)}function fa(t){return typeof t=="function"?{match:t}:t}function Wn(t){return t.length===3}function le(t){return t!=null}function da(){}var ua=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},pa=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function ue(t){return B(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ma(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ue(e)):[t]:[ue(t)]}function ha(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Hn="__virtual_key__";function Dt(t){return t==null?"":ha(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Hn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function ce(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Pt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return ce(n)&&ce(o)&&Object.keys(o).forEach(s=>{ce(n[s])&&ce(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Pt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Rt(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Rt(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Rt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Rt(n):n;return r}return t}function ga(t){return B(t[0])}function ba(t){return B(t[0])}var fe={};function ya(t=["-",":"]){let e=t.join("|");return fe[e]||(fe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),fe[e].lastIndex=0,fe[e]}function xa(t,e=["-",":"],r=5){let n=ya(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(f,d,p,m,g)=>{if(!e.includes(p))return f;o=!0,s.add(d+p);let h=g+d.length+p.length+1,v={length:f.length,items:[]};l.set(g,v);for(let w of[...m.matchAll(/\S+/g)]){let k=h+w.index,x=l.get(k)?.items;x?l.delete(k):x=[{offset:k,length:w[0].length,className:w[0]}];for(let y of x)y.className=y.className==="~"?d:y.className.replace(/^(!?)(.*)/,`$1${d}${p}$2`),v.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let f=0;for(let[d,p]of l)c+=t.slice(f,d),c+=p.items.map(m=>m.className).join(" "),f=d+p.length;c+=t.slice(f)}else{c=t;for(let[f,d]of l)c.overwrite(f,f+d.length,d.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return c.toString()}}}function va(t,e=["-",":"],r=5){let n=xa(t,e,r);return typeof t=="string"?n.expanded:t}var Nn=new Set;function $a(t){Nn.has(t)||(console.warn("[unocss]",t),Nn.add(t))}function Yn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var In="_uno_resolved";async function wa(t){let e=typeof t=="function"?await t():await t;if(In in e)return e;e={...e},Object.defineProperty(e,In,{value:!0,enumerable:!1});let r=e.shortcuts?Yn(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=_(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function Kn(t){let e=await wa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(_).flatMap(Kn))).flat()]:[e]}function ka(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline)}let s={pipeline:n?!1:{include:dt(Dn(...e)),exclude:dt(Dn(...r))}};return o.length&&(s.filesystem=dt(o.flat())),i.length&&(s.inline=dt(i.flat())),s}async function Un(t={},e={}){let r=Object.assign({},e,t),n=Bn((await Promise.all((r.presets||[]).flatMap(_).flatMap(Kn))).flat(),(b,$)=>b.name===$.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),l=Object.assign({},oa,...i.map(b=>b.layers));function c(b){return dt(i.flatMap($=>_($[b]||[])))}let f=c("extractors"),d=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;d===void 0&&(d=aa),d&&!f.includes(d)&&f.unshift(d),f.sort((b,$)=>(b.order||0)-($.order||0));let p=c("rules"),m=p.length,g={},h=[];for(let[b,$]of p.entries()){let R=$[2]??($[2]={});R.__index=b,ga($)?_(R.prefix??"").forEach(H=>{g[H+$[0]]=$}):h.unshift($)}let v={templates:dt(i.flatMap(b=>_(b.autocomplete?.templates))),extractors:i.flatMap(b=>_(b.autocomplete?.extractors)).sort((b,$)=>(b.order||0)-($.order||0)),shorthands:Ea(i.map(b=>b.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let k=ka(c("content")),x={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:Sa(i.map(b=>b.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(fa).sort((b,$)=>(b.order||0)-($.order||0)),shortcuts:Yn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:k,transformers:Bn(c("transformers"),(b,$)=>b.name===$.name)},y=c("extendTheme");for(let b of y)x.theme=b(x.theme,x)||x.theme;for(let b of i)b?.configResolved?.(x);return x}function Sa(t){return t.map(e=>e?Rt(e):{}).reduce((e,r)=>Pt(e,r),{})}function Ea(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Dn(...t){return t.flatMap(Ca)}function Ca(t){return Array.isArray(t)?t:t?[t]:[]}var za="66.6.0-beta.1",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ja=class Xn{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=za,this.events=sa(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,s)=>{let l=ma(o).filter(c=>c.length);if(l.length){this.config.details&&s.rules.push(i),s.generator.activatedRules.add(i);let c=i[2];return l.map(f=>{if(B(f))return[c.__index,f,c];let d=s.variantHandlers,p=c;for(let m of f)m[0]===X.variants?typeof m[1]=="function"?d=m[1](d)||d:d=[..._(m[1]),...d]:m[0]===X.parent?d=[{parent:m[1]},...d]:m[0]===X.selector?d=[{selector:m[1]},...d]:m[0]===X.layer?d=[{layer:m[1]},...d]:m[0]===X.sort?p={...p,sort:m[1]}:m[0]===X.noMerge?p={...p,noMerge:m[1]}:m[0]===X.body&&(m[0]=Hn);return[c.__index,n,f,p,d]})}}}static async create(e={},r={}){let n=new Xn(e,r);return n.config=await Un(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Un(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Wr(s)&&Wr(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,f)=>f(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async c=>{let f=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);let d=await this.expandShortcut(f.currentSelector,f);return d?await this.stringifyShortcuts(f.variantMatch,f,d[0],d[1]):(await this.parseUtil(f.variantMatch,f))?.flatMap(p=>this.stringifyUtil(p,f)).filter(le)},l=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:l=!1,extendedInfo:c=!1}=r,f=B(e)?await this.applyExtractors(e,n,c?new Gn:new Set):Array.isArray(e)?new Set(e):e;if(s){let j={generator:this,theme:this.config.theme};this.config.safelist.flatMap(z=>typeof z=="function"?z(j):z).forEach(z=>{let A=z.trim();A&&!f.has(A)&&f.add(A)})}let d=l?"":`
1
+ "use strict";(()=>{var ta=Object.defineProperty;var ea=(t,e)=>{for(var r in e)ta(t,r,{get:e[r],enumerable:!0})};var de="default",Ir="preflights",ra="shortcuts",na="imports",oa={[na]:-200,[Ir]:-100,[ra]:-10,[de]:0},Ur=/[\\:]?[\s'"`;{}]+/g;function ia(t){return t.split(Ur)}var aa={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return ia(t)}};function _(t=[]){return Array.isArray(t)?t:[t]}function dt(t){return Array.from(new Set(t))}function Bn(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function B(t){return typeof t=="string"}var Gn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Wr(t){return t instanceof Gn}function Q(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function tt(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Nr=tt;function sa(){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 la=/^\[(.+?)~?="(.*)"\]$/;var ca=/[\w\u00A0-\uFFFF%-?]/;function qn(t){return t.match(la)}function Vt(t=""){return ca.test(t)}function fa(t){return typeof t=="function"?{match:t}:t}function Wn(t){return t.length===3}function le(t){return t!=null}function da(){}var ua=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},pa=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function ue(t){return B(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ma(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ue(e)):[t]:[ue(t)]}function ha(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Hn="__virtual_key__";function Dt(t){return t==null?"":ha(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Hn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function ce(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Pt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return ce(n)&&ce(o)&&Object.keys(o).forEach(s=>{ce(n[s])&&ce(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=Pt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Rt(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Rt(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Rt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Rt(n):n;return r}return t}function ga(t){return B(t[0])}function ba(t){return B(t[0])}var fe={};function ya(t=["-",":"]){let e=t.join("|");return fe[e]||(fe[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),fe[e].lastIndex=0,fe[e]}function xa(t,e=["-",":"],r=5){let n=ya(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(f,d,p,m,g)=>{if(!e.includes(p))return f;o=!0,s.add(d+p);let h=g+d.length+p.length+1,v={length:f.length,items:[]};l.set(g,v);for(let w of[...m.matchAll(/\S+/g)]){let k=h+w.index,x=l.get(k)?.items;x?l.delete(k):x=[{offset:k,length:w[0].length,className:w[0]}];for(let y of x)y.className=y.className==="~"?d:y.className.replace(/^(!?)(.*)/,`$1${d}${p}$2`),v.items.push(y)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let f=0;for(let[d,p]of l)c+=t.slice(f,d),c+=p.items.map(m=>m.className).join(" "),f=d+p.length;c+=t.slice(f)}else{c=t;for(let[f,d]of l)c.overwrite(f,f+d.length,d.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return c.toString()}}}function va(t,e=["-",":"],r=5){let n=xa(t,e,r);return typeof t=="string"?n.expanded:t}var Nn=new Set;function $a(t){Nn.has(t)||(console.warn("[unocss]",t),Nn.add(t))}function Yn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var In="_uno_resolved";async function wa(t){let e=typeof t=="function"?await t():await t;if(In in e)return e;e={...e},Object.defineProperty(e,In,{value:!0,enumerable:!1});let r=e.shortcuts?Yn(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=_(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function Kn(t){let e=await wa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(_).flatMap(Kn))).flat()]:[e]}function ka(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let l of t){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline)}let s={pipeline:n?!1:{include:dt(Dn(...e)),exclude:dt(Dn(...r))}};return o.length&&(s.filesystem=dt(o.flat())),i.length&&(s.inline=dt(i.flat())),s}async function Un(t={},e={}){let r=Object.assign({},e,t),n=Bn((await Promise.all((r.presets||[]).flatMap(_).flatMap(Kn))).flat(),(b,$)=>b.name===$.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),l=Object.assign({},oa,...i.map(b=>b.layers));function c(b){return dt(i.flatMap($=>_($[b]||[])))}let f=c("extractors"),d=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;d===void 0&&(d=aa),d&&!f.includes(d)&&f.unshift(d),f.sort((b,$)=>(b.order||0)-($.order||0));let p=c("rules"),m=p.length,g={},h=[];for(let[b,$]of p.entries()){let R=$[2]??($[2]={});R.__index=b,ga($)?_(R.prefix??"").forEach(H=>{g[H+$[0]]=$}):h.unshift($)}let v={templates:dt(i.flatMap(b=>_(b.autocomplete?.templates))),extractors:i.flatMap(b=>_(b.autocomplete?.extractors)).sort((b,$)=>(b.order||0)-($.order||0)),shorthands:Ea(i.map(b=>b.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let k=ka(c("content")),x={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:Sa(i.map(b=>b.theme)),rules:p,rulesSize:m,rulesDynamic:h,rulesStaticMap:g,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:v,variants:c("variants").map(fa).sort((b,$)=>(b.order||0)-($.order||0)),shortcuts:Yn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:k,transformers:Bn(c("transformers"),(b,$)=>b.name===$.name)},y=c("extendTheme");for(let b of y)x.theme=b(x.theme,x)||x.theme;for(let b of i)b?.configResolved?.(x);return x}function Sa(t){return t.map(e=>e?Rt(e):{}).reduce((e,r)=>Pt(e,r),{})}function Ea(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Dn(...t){return t.flatMap(Ca)}function Ca(t){return Array.isArray(t)?t:t?[t]:[]}var za="66.6.0",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ja=class Xn{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=za,this.events=sa(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,s)=>{let l=ma(o).filter(c=>c.length);if(l.length){this.config.details&&s.rules.push(i),s.generator.activatedRules.add(i);let c=i[2];return l.map(f=>{if(B(f))return[c.__index,f,c];let d=s.variantHandlers,p=c;for(let m of f)m[0]===X.variants?typeof m[1]=="function"?d=m[1](d)||d:d=[..._(m[1]),...d]:m[0]===X.parent?d=[{parent:m[1]},...d]:m[0]===X.selector?d=[{selector:m[1]},...d]:m[0]===X.layer?d=[{layer:m[1]},...d]:m[0]===X.sort?p={...p,sort:m[1]}:m[0]===X.noMerge?p={...p,noMerge:m[1]}:m[0]===X.body&&(m[0]=Hn);return[c.__index,n,f,p,d]})}}}static async create(e={},r={}){let n=new Xn(e,r);return n.config=await Un(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Un(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Wr(s)&&Wr(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,f)=>f(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async c=>{let f=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(f.variants=[...c[3]]);let d=await this.expandShortcut(f.currentSelector,f);return d?await this.stringifyShortcuts(f.variantMatch,f,d[0],d[1]):(await this.parseUtil(f.variantMatch,f))?.flatMap(p=>this.stringifyUtil(p,f)).filter(le)},l=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:l=!1,extendedInfo:c=!1}=r,f=B(e)?await this.applyExtractors(e,n,c?new Gn:new Set):Array.isArray(e)?new Set(e):e;if(s){let j={generator:this,theme:this.config.theme};this.config.safelist.flatMap(z=>typeof z=="function"?z(j):z).forEach(z=>{let A=z.trim();A&&!f.has(A)&&f.add(A)})}let d=l?"":`
2
2
  `,p=new Set([de]),m=c?new Map:new Set,g=new Map,h={},v=Array.from(f).map(async j=>{if(m.has(j))return;let z=await this.parseToken(j);if(z!=null){m instanceof Map?m.set(j,{data:z,count:Wr(f)?f.getCount(j):-1}):m.add(j);for(let A of z){let G=A[3]||"",q=A[4]?.layer;g.has(G)||g.set(G,[]),g.get(G).push(A),q&&p.add(q)}}});await Promise.all(v),await(async()=>{if(!i)return;let j={generator:this,theme:this.config.theme},z=new Set([]);this.config.preflights.forEach(({layer:A=Ir})=>{p.add(A),z.add(A)}),h=Object.fromEntries(await Promise.all(Array.from(z).map(async A=>[A,(await Promise.all(this.config.preflights.filter(G=>(G.layer||Ir)===A).map(async G=>await G.getCSS(j)))).filter(Boolean).join(d)])))})();let w=j=>this.config.sortLayers(j.sort((z,A)=>(this.config.layers[z]??0)-(this.config.layers[A]??0)||z.localeCompare(A))),k=w(Array.from(p)),x={},y=this.config.outputToCssLayers,b=j=>{let z=j;return typeof y=="object"&&(z=y.cssLayerName?.(j)),z===null?null:z??j},$=(j=de)=>{if(x[j])return x[j];let z=Array.from(g).sort((q,E)=>(this.parentOrders.get(q[0])??0)-(this.parentOrders.get(E[0])??0)||q[0]?.localeCompare(E[0]||"")||0).map(([q,E])=>{let P=E.length,T=E.filter(D=>(D[4]?.layer||de)===j).sort((D,J)=>D[0]-J[0]||(D[4]?.sort||0)-(J[4]?.sort||0)||D[5]?.currentSelector?.localeCompare(J[5]?.currentSelector??"")||D[1]?.localeCompare(J[1]||"")||D[2]?.localeCompare(J[2]||"")||0).map(([,D,J,,se,,Br])=>[[[(D&&_a(D,o))??"",se?.sort??0]],J,!!(Br??se?.noMerge)]);if(!T.length)return;let I=T.reverse().map(([D,J,se],Br)=>{if(!se&&this.config.mergeSelectors)for(let ht=Br+1;ht<P;ht++){let ot=T[ht];if(ot&&!ot[2]&&(D&&ot[0]||D==null&&ot[0]==null)&&ot[1]===J)return D&&ot[0]&&ot[0].push(...D),null}let Tn=D?dt(D.sort((ht,ot)=>ht[1]-ot[1]||ht[0]?.localeCompare(ot[0]||"")||0).map(ht=>ht[0]).filter(Boolean)):[];return Tn.length?`${Tn.join(`,${d}`)}{${J}}`:J}).filter(Boolean),Y=Array.from(new Set(I)).reverse().join(d);if(!q)return Y;let kt=q.split(" $$ ");return`${kt.join("{")}{${d}${Y}${d}${"}".repeat(kt.length)}`}).filter(Boolean).join(d);i&&(z=[h[j],z].filter(Boolean).join(d));let A;y&&z&&(A=b(j),A!==null&&(z=`@layer ${A}{${d}${z}${d}}`));let G=l?"":`/* layer: ${j}${A&&A!==j?`, alias: ${A}`:""} */${d}`;return x[j]=z?G+z:""},R=(j=k,z)=>{let A=j.filter(q=>!z?.includes(q)),G=A.map($).filter(Boolean);if(y){let q=A;typeof y=="object"&&y.allLayers&&(q=w(Object.keys(this.config.layers))),q.length>0&&G.unshift(`@layer ${q.map(b).filter(le).join(", ")};`)}return G.join(d)};return{get css(){return R()},layers:k,matched:m,getLayers:R,getLayer:$,setLayer:async(j,z)=>{let A=await z($(j));return x[j]=A,A}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,l,c]=i;for(;s;){s=!1;let f=i[1];for(let d of this.config.variants){if(!d.multiPass&&c.has(d))continue;let p=await d.match(f,n);if(p){if(B(p)){if(p===f)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(d.multiPass)throw new Error("multiPass can not be used together with array return variants");let m=p.map(g=>{let h=g.matcher??f,v=[g,...l],w=new Set(c);return w.add(d),[i[0],h,v,w]});return(await Promise.all(m.map(g=>o(g)))).flat()}}i[1]=p.matcher??f,l.unshift(p),c.add(d),s=!0;break}}if(!s)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>d=>{let p=f.body?.(d.entries)||d.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(d.selector,p);return(f.handle??Pa)({...d,entries:p,selector:g||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:f.layer||d.layer,sort:f.sort||d.sort},c)},c=>c)({prefix:"",selector:Ra(n),pseudo:"",entries:e[2]}),{parent:i,parentOrder:s}=o;i!=null&&s!=null&&this.parentOrders.set(i,s);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:i,layer:o.layer,sort:o.sort,noMerge:o.noMerge};return this.config.postprocess.reduce((c,f)=>{let d=[];for(let p of c){let m=f(p);Array.isArray(m)?d.push(...m.filter(le)):d.push(m||p)}return d},[l])}constructCustomCSS(e,r,n){let o=ue(r);return B(o)?o:this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]).map(({selector:i,entries:s,parent:l})=>{let c=`${i}{${Dt(s)}}`;return l?`${l}{${c}}`:c}).join("")}async parseUtil(e,r,n=!1,o){let i=B(e)?await this.matchVariants(e):[e],s=async([c,f,d])=>{this.config.details&&(r.rules=r.rules??[]);let p={...r,variantHandlers:d},m=this.config.rulesStaticMap[f];if(m&&m[1]&&(n||!m[2]?.internal))return this.resolveCSSResult(c,m[1],m,p);for(let g of this.config.rulesDynamic){let[h,v,w]=g;if(w?.internal&&!n)continue;let k=f;if(w?.prefix){let $=_(w.prefix);if(o){let R=_(o);if(!$.some(H=>R.includes(H)))continue}else{let R=$.find(H=>f.startsWith(H));if(R==null)continue;k=f.slice(R.length)}}let x=k.match(h);if(!x)continue;let y=await v(x,p);if(!y)continue;if(typeof y!="string")if(Symbol.asyncIterator in y){let $=[];for await(let R of y)R&&$.push(R);y=$}else Symbol.iterator in y&&!Array.isArray(y)&&(y=Array.from(y).filter(le));let b=this.resolveCSSResult(c,y,g,p);if(b)return b}},l=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(l.length)return l}stringifyUtil(e,r){if(!e)return;if(Wn(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0]];let n=this.applyVariants(e),o=[];for(let i of n){let{selector:s,entries:l,parent:c,layer:f,sort:d,noMerge:p}=i,m=Dt(l);if(!m)continue;let{layer:g,sort:h,...v}=e[3]??{},w={...v,layer:f??g,sort:d??h};o.push([e[0],s,m,c,w,this.config.details?r:void 0,p])}return o}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?f=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(f)}:da,i,s,l,c;for(let f of this.config.shortcuts){let d=e;if(f[2]?.prefix){let p=_(f[2].prefix).find(m=>e.startsWith(m));if(p==null)continue;d=e.slice(p.length)}if(ba(f)){if(f[0]===d){i=i||f[2],s=f[1],o(f);break}}else{let p=d.match(f[0]);if(p&&(s=f[1](p,r)),s){i=i||f[2],o(f);break}}}if(s&&(l=dt(_(s).filter(B).map(f=>va(f.trim()).split(/\s+/g)).flat()),c=_(s).filter(f=>!B(f)).map(f=>({handles:[],value:f}))),!s){let f=B(e)?await this.matchVariants(e):[e];for(let d of f){let[p,m,g]=d;if(p!==m){let h=await this.expandShortcut(m,r,n-1);h&&(l=h[0].filter(B).map(v=>p.replace(m,v)),c=h[0].filter(v=>!B(v)).map(v=>({handles:[...v.handles,...g],value:v.value})))}}}if(!(!l?.length&&!c?.length))return[[await Promise.all(_(l).map(async f=>(await this.expandShortcut(f,r,n-1))?.[0]||[f])),c].flat(2).filter(f=>!!f),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new pa,s=(await Promise.all(dt(n).map(async d=>{let p=B(d)?await this.parseUtil(d,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ue(d.value),void 0,d.handles]];return!p&&this.config.warn&&$a(`unmatched utility "${d}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((d,p)=>d[0]-p[0]),[l,,c]=e,f=[];for(let d of s){if(Wn(d)){f.push([d[0],void 0,d[1],void 0,d[2],r,void 0]);continue}let p=Object.fromEntries(d[2])[X.shortcutsNoMerge],m=[...d[4],...p?[]:c];for(let{selector:g,entries:h,parent:v,sort:w,noMerge:k,layer:x}of this.applyVariants(d,m,l))i.getFallback(x??o.layer,new ua).getFallback(g,v,[[],d[0]])[0].push([h,!!(k??d[3]?.noMerge),w??0])}return f.concat(i.flatMap((d,p)=>d.map(([m,g],h,v)=>{let w=(k,x,y)=>{let b=Math.max(...y.map(R=>R[1])),$=y.map(R=>R[0]);return(k?[$.flat(1)]:$).map(R=>{let H=Dt(R);if(H)return[g,h,H,v,{...o,noMerge:x,sort:b,layer:p},r,void 0]})};return[[m.filter(([,k])=>k).map(([k,,x])=>[k,x]),!0],[m.filter(([,k])=>!k).map(([k,,x])=>[k,x]),!1]].map(([k,x])=>[...w(!1,x,k.filter(([y])=>y.some(b=>b[0]===X.shortcutsNoMerge))),...w(!0,x,k.filter(([y])=>y.every(b=>b[0]!==X.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):B(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):B(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Zn(t,e){return await ja.create(t,e)}var Jn=/\s\$\$\s+/g;function Aa(t){return Jn.test(t)}function _a(t,e){return Aa(t)?t.replace(Jn,e?` ${e} `:" "):e?`${e} ${t}`:t}var Vn=/^\[(.+?)(~?=)"(.*)"\]$/;function Ra(t){return Vn.test(t)?t.replace(Vn,(e,r,n,o)=>`[${Nr(r)}${n}"${Nr(o)}"]`):`.${Nr(t)}`}function Pa(t,e){return e(t)}var eo=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function Oa(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let l=qn(i);if(!l)return;let c=l[1];if(c.startsWith(e))c=c.slice(e.length);else if(r)return;let f=l[2],[,d="",p=f]=f.match(eo)||[];if(p==="~"||n&&p==="true"||!p)return`${d}${c}`;if(o==null){let m=s?.config?.separators?.join("|");m?o=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,m,g]=f.match(o)||[];if(g)return`${m}${d}${c}-${g}`}if(d&&p.match(/^[\d.]+$/)){let m=d.split(/([^:]*:)/g).filter(Boolean),g=m.pop()+p,h=m.join("");return[{matcher:`${d}${c}-${p}`},{matcher:`${h}${c}-${g}`}]}return`${d}${c}-${p}`}}}var Ma=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,La=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,Qn=/[\s'"`;>]+/;function Fa(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Ma),o,i=0;for(let x of n){let[,y,b]=x,$=x.index+y.length;if(r>$&&r<=$+b.length){i=$,o=b;break}}if(!o)return null;let s=o.matchAll(La),l=0,c,f;for(let x of s){let[y,b,$]=x,R=i+x.index;if(r>R&&r<=R+y.length){l=R,c=b,f=$?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let d=!!t?.prefix&&c.startsWith(t.prefix);if(t?.prefixedOnly&&!d)return null;let p=d?c.slice(t.prefix.length):c;if(f===void 0)return{extracted:p,resolveReplacement(x){let y=d?t.prefix.length:0;return{start:l+y,end:l+c.length,replacement:x}}};let m=l+c.length+2,g=Qn.exec(f),h=0,v;for(;g;){let[x]=g;if(r>m+h&&r<=m+h+g.index){v=f.slice(h,h+g.index);break}h+=g.index+x.length,g=Qn.exec(f.slice(h))}v===void 0&&(v=f.slice(h));let[,w="",k]=v.match(eo)||[];return{extracted:`${w}${p}-${k}`,transformSuggestions(x){return x.filter(y=>y.startsWith(`${w}${p}-`)).map(y=>w+y.slice(w.length+p.length+1))},resolveReplacement(x){return{start:h+m,end:h+m+v.length,replacement:w+x.slice(w.length+p.length+1)}}}}}}var Ta=["v-bind:",":"],to=/[\s'"`;]+/g,Dr=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Ba=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,ro=["placeholder","fill","opacity","stroke-opacity"];function Wa(t){let e=t?.ignoreAttributes??ro,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Dr)).flatMap(i=>Array.from((i[1]||"").matchAll(Ba))).flatMap(([,i,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(i))return[];for(let c of Ta)if(i.startsWith(c)){i=i.slice(c.length);break}if(!l){if(Vt(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?l.split(to).filter(Vt):Dr.test(l)?(Dr.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:l.split(to).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var Na=(t={})=>(t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??ro,{name:"@unocss/preset-attributify",enforce:"post",variants:[Oa(t)],extractors:[Wa(t)],options:t,autocomplete:{extractors:[Fa(t)]},extractorDefault:t.strict?!1:void 0}),no=Na;var Gr="__TAGIFY__",Ia=/<([\w:-]+)/g;function Ua(t){let{prefix:e="",excludedTags:r=["b",/^h\d+$/,"table"]}=t;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Ia)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.lastIndex=0,i.test(o))return!1;return o.startsWith(e)}).map(([,o])=>`${Gr}${o}`)}}}function Da(t){let{extraProperties:e}=t,r=`${Gr}${t.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;let o=n.slice(r.length),i={matcher:o,selector:s=>s.slice(Gr.length+1)};return e&&(typeof e=="function"?i.body=s=>[...s,...Object.entries(e(o)??{})]:i.body=s=>[...s,...Object.entries(e)]),i}}}var Va=(t={})=>{let{defaultExtractor:e=!0}=t;return{name:"@unocss/preset-tagify",variants:[Da(t)],extractors:[Ua(t)],extractorDefault:e?void 0:!1}},oo=Va;var an={};ea(an,{PseudoClassFunctions:()=>$o,PseudoClassFunctionsStr:()=>gt,PseudoClasses:()=>Et,PseudoClassesAndElementsColonStr:()=>Xr,PseudoClassesAndElementsStr:()=>Kr,PseudoClassesColon:()=>Ct,PseudoClassesColonKeys:()=>Qr,PseudoClassesColonStr:()=>be,PseudoClassesKeys:()=>Jr,PseudoClassesMulti:()=>tn,PseudoClassesMultiStr:()=>Yr,PseudoClassesStr:()=>ge,alphaPlaceholders:()=>Yt,alphaPlaceholdersRE:()=>go,calcMaxWidthBySize:()=>us,colorOpacityToString:()=>bt,colorToString:()=>W,createPartClasses:()=>on,createPseudoClassFunctions:()=>rn,createPseudoClassesAndElements:()=>en,createTaggedPseudoClassMatcher:()=>ko,createTaggedPseudoClasses:()=>nn,createValueHandler:()=>Zr,cssColorFunctions:()=>ye,excludedPseudo:()=>wo,getBracket:()=>uo,getStringComponent:()=>St,getStringComponents:()=>Mt,hasIconFn:()=>ms,hasThemeFn:()=>fs,hex2rgba:()=>ns,hueInterpolationMethods:()=>ho,iconFnRE:()=>ps,isInterpolatedMethod:()=>rs,parseCssColor:()=>et,polarColorSpace:()=>mo,rectangularColorSpace:()=>po,themeFnRE:()=>xo,transformThemeFn:()=>ds,transformThemeString:()=>vo,variantGetBracket:()=>So,variantGetParameter:()=>Eo,variantMatcher:()=>zt,variantParentMatcher:()=>it});var Ga=44,qa=59,io="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lo=new Uint8Array(64),Ha=new Uint8Array(128);for(let t=0;t<io.length;t++){let e=io.charCodeAt(t);lo[t]=e,Ha[e]=t}function Gt(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(lo[o])}while(n>0);return e}var ao=1024*16,so=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}},Ya=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ao)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===ao&&(this.out+=so.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:r}=this;return r>0?e+so.decode(t.subarray(0,r)):e}};function co(t){let e=new Ya,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(qa),l.length===0)continue;let c=0;for(let f=0;f<l.length;f++){let d=l[f];f>0&&e.write(Ga),c=Gt(e,d[0],c),d.length!==1&&(r=Gt(e,d[1],r),n=Gt(e,d[2],n),o=Gt(e,d[3],o),d.length!==4&&(i=Gt(e,d[4],i)))}}return e.flush()}var pe=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))}},me=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}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}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 Ka(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.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 Xa=Ka(),qr=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=co(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Xa(this.toString())}};function Za(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function Ja(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Qa=Object.prototype.toString;function ts(t){return Qa.call(t)==="[object Object]"}function fo(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let f=i+s>>1;o<r[f]?s=f:i=f+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var es=/\w/,Hr=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,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/mini.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var jr=Object.defineProperty;var Rr=(e,t)=>{for(var n in t)jr(e,n,{get:t[n],enumerable:!0})};var Ue="default",ut="preflights",zr="shortcuts",_r="imports",Pr={[_r]:-200,[ut]:-100,[zr]:-10,[Ue]:0},ht=/[\\:]?[\s'"`;{}]+/g;function Or(e){return e.split(ht)}var Mr={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Or(e)}};function j(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Ht(e,t){return e.reduce((n,r)=>(n.findIndex(s=>t(r,s))===-1&&n.push(r),n),[])}function M(e){return typeof e=="string"}var Qt=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function ct(e){return e instanceof Qt}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){let t=e.length,n=-1,r,s="",i=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){s+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=e.charAt(n);continue}s+=`\\${e.charAt(n)}`}return s}var ft=Y;function Lr(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}var Tr=/^\[(.+?)~?="(.*)"\]$/;var Fr=/[\w\u00A0-\uFFFF%-?]/;function en(e){return e.match(Tr)}function ve(e=""){return Fr.test(e)}function Nr(e){return typeof e=="function"?{match:e}:e}function qt(e){return e.length===3}function We(e){return e!=null}function Wr(){}var Br=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([r,s])=>e(s,t,r)))}},Ir=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function Ve(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ur(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Ve(t)):[e]:[Ve(e)]}function Dr(e){return e.filter(([t,n],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===n)return!1;return!0})}var tn="__virtual_key__";function we(e){return e==null?"":Dr(e).map(([t,n])=>n!=null&&typeof n!="function"?t!==tn?`${t}:${n};`:n:void 0).filter(Boolean).join("")}function Be(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nn(e,t,n=!1){let r=e,s=t;if(Array.isArray(s))return n&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return Be(r)&&Be(s)&&Object.keys(s).forEach(o=>{Be(r[o])&&Be(s[o])||Array.isArray(r[o])&&Array.isArray(s[o])?i[o]=nn(r[o],s[o],n):Object.assign(i,{[o]:s[o]})}),i}function De(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:De(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}return e}function Vr(e){return M(e[0])}function Gr(e){return M(e[0])}var Ie={};function Hr(e=["-",":"]){let t=e.join("|");return Ie[t]||(Ie[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ie[t].lastIndex=0,Ie[t]}function qr(e,t=["-",":"],n=5){let r=Hr(t),s,i=e.toString(),o=new Set,l=new Map;do s=!1,i=i.replace(r,(c,f,h,d,m)=>{if(!t.includes(h))return c;s=!0,o.add(f+h);let p=m+f.length+h.length+1,y={length:c.length,items:[]};l.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let v=p+w.index,x=l.get(v)?.items;x?l.delete(v):x=[{offset:v,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${h}$2`),y.items.push(b)}return"$".repeat(c.length)}),n-=1;while(s&&n);let a;if(typeof e=="string"){a="";let c=0;for(let[f,h]of l)a+=e.slice(c,f),a+=h.items.map(d=>d.className).join(" "),c=f+h.length;a+=e.slice(c)}else{a=e;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:s,groupsByOffset:l,get expanded(){return a.toString()}}}function Kr(e,t=["-",":"],n=5){let r=qr(e,t,n);return typeof e=="string"?r.expanded:e}var Kt=new Set;function Yr(e){Kt.has(e)||(console.warn("[unocss]",e),Kt.add(e))}function rn(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Yt="_uno_resolved";async function Xr(e){let t=typeof e=="function"?await e():await e;if(Yt in t)return t;t={...t},Object.defineProperty(t,Yt,{value:!0,enumerable:!1});let n=t.shortcuts?rn(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&t.prefix&&(i.prefix=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(r),t.rules?.forEach(r)}return t}async function sn(e){let t=await Xr(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(j).flatMap(sn))).flat()]:[t]}function Zr(e){if(e.length===0)return{};let t=[],n=[],r=!1,s=[],i=[];for(let l of e){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&n.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline)}let o={pipeline:r?!1:{include:ee(Zt(...t)),exclude:ee(Zt(...n))}};return s.length&&(o.filesystem=ee(s.flat())),i.length&&(o.inline=ee(i.flat())),o}async function Xt(e={},t={}){let n=Object.assign({},t,e),r=Ht((await Promise.all((n.presets||[]).flatMap(j).flatMap(sn))).flat(),(g,$)=>g.name===$.name),s=[...r.filter(g=>g.enforce==="pre"),...r.filter(g=>!g.enforce),...r.filter(g=>g.enforce==="post")],i=[...s,n],o=[...i].reverse(),l=Object.assign({},Pr,...i.map(g=>g.layers));function a(g){return ee(i.flatMap($=>j($[g]||[])))}let c=a("extractors"),f=o.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Mr),f&&!c.includes(f)&&c.unshift(f),c.sort((g,$)=>(g.order||0)-($.order||0));let h=a("rules"),d=h.length,m={},p=[];for(let[g,$]of h.entries()){let z=$[2]??($[2]={});z.__index=g,Vr($)?j(z.prefix??"").forEach(G=>{m[G+$[0]]=$}):p.unshift($)}let y={templates:ee(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,$)=>(g.order||0)-($.order||0)),shorthands:Qr(i.map(g=>g.autocomplete?.shorthands||{}))},w=a("separators");w.length||(w=[":","-"]);let v=Zr(a("content")),x={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...n,blocklist:a("blocklist"),presets:s,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:l,theme:Jr(i.map(g=>g.theme)),rules:h,rulesSize:d,rulesDynamic:p,rulesStaticMap:m,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(Nr).sort((g,$)=>(g.order||0)-($.order||0)),shortcuts:rn(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:w,details:n.details??n.envMode==="dev",content:v,transformers:Ht(a("transformers"),(g,$)=>g.name===$.name)},b=a("extendTheme");for(let g of b)x.theme=g(x.theme,x)||x.theme;for(let g of i)g?.configResolved?.(x);return x}function Jr(e){return e.map(t=>t?De(t):{}).reduce((t,n)=>nn(t,n),{})}function Qr(e){return e.reduce((t,n)=>{let r={};for(let s in n){let i=n[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...t,...r}},{})}function Zt(...e){return e.flatMap(es)}function es(e){return Array.isArray(e)?e:e?[e]:[]}var ts="66.6.0-beta.1",q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ns=class on{constructor(t={},n={}){this.userConfig=t,this.defaults=n,this.version=ts,this.events=Lr(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(r,s,i,o)=>{let l=Ur(s).filter(a=>a.length);if(l.length){this.config.details&&o.rules.push(i),o.generator.activatedRules.add(i);let a=i[2];return l.map(c=>{if(M(c))return[a.__index,c,a];let f=o.variantHandlers,h=a;for(let d of c)d[0]===q.variants?typeof d[1]=="function"?f=d[1](f)||f:f=[...j(d[1]),...f]:d[0]===q.parent?f=[{parent:d[1]},...f]:d[0]===q.selector?f=[{selector:d[1]},...f]:d[0]===q.layer?f=[{layer:d[1]},...f]:d[0]===q.sort?h={...h,sort:d[1]}:d[0]===q.noMerge?h={...h,noMerge:d[1]}:d[0]===q.body&&(d[0]=tn);return[a.__index,r,c,h,f]})}}}static async create(t={},n={}){let r=new on(t,n);return r.config=await Xt(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Xt(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,r=new Set){let s={original:t,code:t,id:n,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let o=await i.extract?.(s);if(o)if(ct(o)&&ct(r))for(let l of o)r.setCount(l,r.getCount(l)+o.getCount(l));else for(let l of o)r.add(l)}return r}makeContext(t,n){let r={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:q,variantHandlers:n[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:n};return r}async parseToken(t,n){if(this.blocked.has(t))return;let r=`${t}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,c)=>c(a)??a,t);if(this.isBlocked(s)){this.blocked.add(t),this.cache.set(r,null);return}let i=await this.matchVariants(t,s);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(t),this.cache.set(r,null);return}let o=async a=>{let c=this.makeContext(t,[n||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.flatMap(h=>this.stringifyUtil(h,c)).filter(We)},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(r,l),l;this.cache.set(r,null)}async generate(t,n={}){let{id:r,scope:s,preflights:i=!0,safelist:o=!0,minify:l=!1,extendedInfo:a=!1}=n,c=M(t)?await this.applyExtractors(t,r,a?new Qt:new Set):Array.isArray(t)?new Set(t):t;if(o){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(S):C).forEach(C=>{let E=C.trim();E&&!c.has(E)&&c.add(E)})}let f=l?"":`
1
+ "use strict";(()=>{var jr=Object.defineProperty;var Rr=(e,t)=>{for(var n in t)jr(e,n,{get:t[n],enumerable:!0})};var Ue="default",ut="preflights",zr="shortcuts",_r="imports",Pr={[_r]:-200,[ut]:-100,[zr]:-10,[Ue]:0},ht=/[\\:]?[\s'"`;{}]+/g;function Or(e){return e.split(ht)}var Mr={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Or(e)}};function j(e=[]){return Array.isArray(e)?e:[e]}function ee(e){return Array.from(new Set(e))}function Ht(e,t){return e.reduce((n,r)=>(n.findIndex(s=>t(r,s))===-1&&n.push(r),n),[])}function M(e){return typeof e=="string"}var Qt=class extends Set{constructor(e){if(super(),this._map=new Map,e)for(let t of e)this.add(t)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,t){return this._map.set(e,t),super.add(e)}};function ct(e){return e instanceof Qt}function K(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(e){let t=e.length,n=-1,r,s="",i=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){s+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=e.charAt(n);continue}s+=`\\${e.charAt(n)}`}return s}var ft=Y;function Lr(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(n=>n(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(n=>n!==t)}}}var Tr=/^\[(.+?)~?="(.*)"\]$/;var Fr=/[\w\u00A0-\uFFFF%-?]/;function en(e){return e.match(Tr)}function ve(e=""){return Fr.test(e)}function Nr(e){return typeof e=="function"?{match:e}:e}function qt(e){return e.length===3}function We(e){return e!=null}function Wr(){}var Br=class{constructor(){this._map=new Map}get(e,t){let n=this._map.get(e);if(n)return n.get(t)}getFallback(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.has(t)||r.set(t,n),r.get(t)}set(e,t,n){let r=this._map.get(e);return r||(r=new Map,this._map.set(e,r)),r.set(t,n),this}has(e,t){return this._map.get(e)?.has(t)}delete(e,t){return this._map.get(e)?.delete(t)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([t,n])=>Array.from(n.entries()).map(([r,s])=>e(s,t,r)))}},Ir=class extends Map{getFallback(e,t){let n=this.get(e);return n===void 0?(this.set(e,t),t):n}map(e){let t=[];return this.forEach((n,r)=>{t.push(e(n,r))}),t}flatMap(e){let t=[];return this.forEach((n,r)=>{t.push(...e(n,r))}),t}};function Ve(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Ur(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Ve(t)):[e]:[Ve(e)]}function Dr(e){return e.filter(([t,n],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===n)return!1;return!0})}var tn="__virtual_key__";function we(e){return e==null?"":Dr(e).map(([t,n])=>n!=null&&typeof n!="function"?t!==tn?`${t}:${n};`:n:void 0).filter(Boolean).join("")}function Be(e){return e&&typeof e=="object"&&!Array.isArray(e)}function nn(e,t,n=!1){let r=e,s=t;if(Array.isArray(s))return n&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return Be(r)&&Be(s)&&Object.keys(s).forEach(o=>{Be(r[o])&&Be(s[o])||Array.isArray(r[o])&&Array.isArray(s[o])?i[o]=nn(r[o],s[o],n):Object.assign(i,{[o]:s[o]})}),i}function De(e){let t,n,r;if(Array.isArray(e)){for(n=Array.from({length:t=e.length});t--;)n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:De(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}return e}function Vr(e){return M(e[0])}function Gr(e){return M(e[0])}var Ie={};function Hr(e=["-",":"]){let t=e.join("|");return Ie[t]||(Ie[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ie[t].lastIndex=0,Ie[t]}function qr(e,t=["-",":"],n=5){let r=Hr(t),s,i=e.toString(),o=new Set,l=new Map;do s=!1,i=i.replace(r,(c,f,h,d,m)=>{if(!t.includes(h))return c;s=!0,o.add(f+h);let p=m+f.length+h.length+1,y={length:c.length,items:[]};l.set(m,y);for(let w of[...d.matchAll(/\S+/g)]){let v=p+w.index,x=l.get(v)?.items;x?l.delete(v):x=[{offset:v,length:w[0].length,className:w[0]}];for(let b of x)b.className=b.className==="~"?f:b.className.replace(/^(!?)(.*)/,`$1${f}${h}$2`),y.items.push(b)}return"$".repeat(c.length)}),n-=1;while(s&&n);let a;if(typeof e=="string"){a="";let c=0;for(let[f,h]of l)a+=e.slice(c,f),a+=h.items.map(d=>d.className).join(" "),c=f+h.length;a+=e.slice(c)}else{a=e;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(h=>h.className).join(" "))}return{prefixes:Array.from(o),hasChanged:s,groupsByOffset:l,get expanded(){return a.toString()}}}function Kr(e,t=["-",":"],n=5){let r=qr(e,t,n);return typeof e=="string"?r.expanded:e}var Kt=new Set;function Yr(e){Kt.has(e)||(console.warn("[unocss]",e),Kt.add(e))}function rn(e){return j(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Yt="_uno_resolved";async function Xr(e){let t=typeof e=="function"?await e():await e;if(Yt in t)return t;t={...t},Object.defineProperty(t,Yt,{value:!0,enumerable:!1});let n=t.shortcuts?rn(t.shortcuts):void 0;if(t.shortcuts=n,t.prefix||t.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&t.prefix&&(i.prefix=j(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};n?.forEach(r),t.rules?.forEach(r)}return t}async function sn(e){let t=await Xr(e);return t.presets?[t,...(await Promise.all((t.presets||[]).flatMap(j).flatMap(sn))).flat()]:[t]}function Zr(e){if(e.length===0)return{};let t=[],n=[],r=!1,s=[],i=[];for(let l of e){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&n.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline)}let o={pipeline:r?!1:{include:ee(Zt(...t)),exclude:ee(Zt(...n))}};return s.length&&(o.filesystem=ee(s.flat())),i.length&&(o.inline=ee(i.flat())),o}async function Xt(e={},t={}){let n=Object.assign({},t,e),r=Ht((await Promise.all((n.presets||[]).flatMap(j).flatMap(sn))).flat(),(g,$)=>g.name===$.name),s=[...r.filter(g=>g.enforce==="pre"),...r.filter(g=>!g.enforce),...r.filter(g=>g.enforce==="post")],i=[...s,n],o=[...i].reverse(),l=Object.assign({},Pr,...i.map(g=>g.layers));function a(g){return ee(i.flatMap($=>j($[g]||[])))}let c=a("extractors"),f=o.find(g=>g.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Mr),f&&!c.includes(f)&&c.unshift(f),c.sort((g,$)=>(g.order||0)-($.order||0));let h=a("rules"),d=h.length,m={},p=[];for(let[g,$]of h.entries()){let z=$[2]??($[2]={});z.__index=g,Vr($)?j(z.prefix??"").forEach(G=>{m[G+$[0]]=$}):p.unshift($)}let y={templates:ee(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,$)=>(g.order||0)-($.order||0)),shorthands:Qr(i.map(g=>g.autocomplete?.shorthands||{}))},w=a("separators");w.length||(w=[":","-"]);let v=Zr(a("content")),x={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...n,blocklist:a("blocklist"),presets:s,envMode:n.envMode||"build",shortcutsLayer:n.shortcutsLayer||"shortcuts",layers:l,theme:Jr(i.map(g=>g.theme)),rules:h,rulesSize:d,rulesDynamic:p,rulesStaticMap:m,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:y,variants:a("variants").map(Nr).sort((g,$)=>(g.order||0)-($.order||0)),shortcuts:rn(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:w,details:n.details??n.envMode==="dev",content:v,transformers:Ht(a("transformers"),(g,$)=>g.name===$.name)},b=a("extendTheme");for(let g of b)x.theme=g(x.theme,x)||x.theme;for(let g of i)g?.configResolved?.(x);return x}function Jr(e){return e.map(t=>t?De(t):{}).reduce((t,n)=>nn(t,n),{})}function Qr(e){return e.reduce((t,n)=>{let r={};for(let s in n){let i=n[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...t,...r}},{})}function Zt(...e){return e.flatMap(es)}function es(e){return Array.isArray(e)?e:e?[e]:[]}var ts="66.6.0",q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},ns=class on{constructor(t={},n={}){this.userConfig=t,this.defaults=n,this.version=ts,this.events=Lr(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(r,s,i,o)=>{let l=Ur(s).filter(a=>a.length);if(l.length){this.config.details&&o.rules.push(i),o.generator.activatedRules.add(i);let a=i[2];return l.map(c=>{if(M(c))return[a.__index,c,a];let f=o.variantHandlers,h=a;for(let d of c)d[0]===q.variants?typeof d[1]=="function"?f=d[1](f)||f:f=[...j(d[1]),...f]:d[0]===q.parent?f=[{parent:d[1]},...f]:d[0]===q.selector?f=[{selector:d[1]},...f]:d[0]===q.layer?f=[{layer:d[1]},...f]:d[0]===q.sort?h={...h,sort:d[1]}:d[0]===q.noMerge?h={...h,noMerge:d[1]}:d[0]===q.body&&(d[0]=tn);return[a.__index,r,c,h,f]})}}}static async create(t={},n={}){let r=new on(t,n);return r.config=await Xt(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(t,n){t&&(n&&(this.defaults=n),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Xt(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,n,r=new Set){let s={original:t,code:t,id:n,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let o=await i.extract?.(s);if(o)if(ct(o)&&ct(r))for(let l of o)r.setCount(l,r.getCount(l)+o.getCount(l));else for(let l of o)r.add(l)}return r}makeContext(t,n){let r={rawSelector:t,currentSelector:n[1],theme:this.config.theme,generator:this,symbols:q,variantHandlers:n[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:n};return r}async parseToken(t,n){if(this.blocked.has(t))return;let r=`${t}${n?` ${n}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=this.config.preprocess.reduce((a,c)=>c(a)??a,t);if(this.isBlocked(s)){this.blocked.add(t),this.cache.set(r,null);return}let i=await this.matchVariants(t,s);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(t),this.cache.set(r,null);return}let o=async a=>{let c=this.makeContext(t,[n||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.flatMap(h=>this.stringifyUtil(h,c)).filter(We)},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(r,l),l;this.cache.set(r,null)}async generate(t,n={}){let{id:r,scope:s,preflights:i=!0,safelist:o=!0,minify:l=!1,extendedInfo:a=!1}=n,c=M(t)?await this.applyExtractors(t,r,a?new Qt:new Set):Array.isArray(t)?new Set(t):t;if(o){let S={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(S):C).forEach(C=>{let E=C.trim();E&&!c.has(E)&&c.add(E)})}let f=l?"":`
2
2
  `,h=new Set([Ue]),d=a?new Map:new Set,m=new Map,p={},y=Array.from(c).map(async S=>{if(d.has(S))return;let C=await this.parseToken(S);if(C!=null){d instanceof Map?d.set(S,{data:C,count:ct(c)?c.getCount(S):-1}):d.add(S);for(let E of C){let N=E[3]||"",F=E[4]?.layer;m.has(N)||m.set(N,[]),m.get(N).push(E),F&&h.add(F)}}});await Promise.all(y),await(async()=>{if(!i)return;let S={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:E=ut})=>{h.add(E),C.add(E)}),p=Object.fromEntries(await Promise.all(Array.from(C).map(async E=>[E,(await Promise.all(this.config.preflights.filter(N=>(N.layer||ut)===E).map(async N=>await N.getCSS(S)))).filter(Boolean).join(f)])))})();let w=S=>this.config.sortLayers(S.sort((C,E)=>(this.config.layers[C]??0)-(this.config.layers[E]??0)||C.localeCompare(E))),v=w(Array.from(h)),x={},b=this.config.outputToCssLayers,g=S=>{let C=S;return typeof b=="object"&&(C=b.cssLayerName?.(S)),C===null?null:C??S},$=(S=Ue)=>{if(x[S])return x[S];let C=Array.from(m).sort((F,k)=>(this.parentOrders.get(F[0])??0)-(this.parentOrders.get(k[0])??0)||F[0]?.localeCompare(k[0]||"")||0).map(([F,k])=>{let A=k.length,_=k.filter(L=>(L[4]?.layer||Ue)===S).sort((L,H)=>L[0]-H[0]||(L[4]?.sort||0)-(H[4]?.sort||0)||L[5]?.currentSelector?.localeCompare(H[5]?.currentSelector??"")||L[1]?.localeCompare(H[1]||"")||L[2]?.localeCompare(H[2]||"")||0).map(([,L,H,,Ne,,lt])=>[[[(L&&ss(L,s))??"",Ne?.sort??0]],H,!!(lt??Ne?.noMerge)]);if(!_.length)return;let O=_.reverse().map(([L,H,Ne],lt)=>{if(!Ne&&this.config.mergeSelectors)for(let se=lt+1;se<A;se++){let Z=_[se];if(Z&&!Z[2]&&(L&&Z[0]||L==null&&Z[0]==null)&&Z[1]===H)return L&&Z[0]&&Z[0].push(...L),null}let Gt=L?ee(L.sort((se,Z)=>se[1]-Z[1]||se[0]?.localeCompare(Z[0]||"")||0).map(se=>se[0]).filter(Boolean)):[];return Gt.length?`${Gt.join(`,${f}`)}{${H}}`:H}).filter(Boolean),W=Array.from(new Set(O)).reverse().join(f);if(!F)return W;let ae=F.split(" $$ ");return`${ae.join("{")}{${f}${W}${f}${"}".repeat(ae.length)}`}).filter(Boolean).join(f);i&&(C=[p[S],C].filter(Boolean).join(f));let E;b&&C&&(E=g(S),E!==null&&(C=`@layer ${E}{${f}${C}${f}}`));let N=l?"":`/* layer: ${S}${E&&E!==S?`, alias: ${E}`:""} */${f}`;return x[S]=C?N+C:""},z=(S=v,C)=>{let E=S.filter(F=>!C?.includes(F)),N=E.map($).filter(Boolean);if(b){let F=E;typeof b=="object"&&b.allLayers&&(F=w(Object.keys(this.config.layers))),F.length>0&&N.unshift(`@layer ${F.map(g).filter(We).join(", ")};`)}return N.join(f)};return{get css(){return z()},layers:v,matched:d,getLayers:z,getLayer:$,setLayer:async(S,C)=>{let E=await C($(S));return x[S]=E,E}}}async matchVariants(t,n){let r={rawSelector:t,theme:this.config.theme,generator:this},s=async i=>{let o=!0,[,,l,a]=i;for(;o;){o=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let h=await f.match(c,r);if(h){if(M(h)){if(h===c)continue;h={matcher:h}}if(Array.isArray(h)){if(!h.length)continue;if(h.length===1)h=h[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=h.map(m=>{let p=m.matcher??c,y=[m,...l],w=new Set(a);return w.add(f),[i[0],p,y,w]});return(await Promise.all(d.map(m=>s(m)))).flat()}}i[1]=h.matcher??c,l.unshift(h),a.add(f),o=!0;break}}if(!o)break;if(l.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await s([t,n||t,[],new Set])}applyVariants(t,n=t[4],r=t[1]){let s=n.slice().sort((a,c)=>(a.order||0)-(c.order||0)).reduceRight((a,c)=>f=>{let h=c.body?.(f.entries)||f.entries,d=Array.isArray(c.parent)?c.parent:[c.parent,void 0],m=c.selector?.(f.selector,h);return(c.handle??os)({...f,entries:h,selector:m||f.selector,parent:d[0]||f.parent,parentOrder:d[1]||f.parentOrder,layer:c.layer||f.layer,sort:c.sort||f.sort},a)},a=>a)({prefix:"",selector:is(r),pseudo:"",entries:t[2]}),{parent:i,parentOrder:o}=s;i!=null&&o!=null&&this.parentOrders.set(i,o);let l={selector:[s.prefix,s.selector,s.pseudo].join(""),entries:s.entries,parent:i,layer:s.layer,sort:s.sort,noMerge:s.noMerge};return this.config.postprocess.reduce((a,c)=>{let f=[];for(let h of a){let d=c(h);Array.isArray(d)?f.push(...d.filter(We)):f.push(d||h)}return f},[l])}constructCustomCSS(t,n,r){let s=Ve(n);return M(s)?s:this.applyVariants([0,r||t.rawSelector,s,void 0,t.variantHandlers]).map(({selector:i,entries:o,parent:l})=>{let a=`${i}{${we(o)}}`;return l?`${l}{${a}}`:a}).join("")}async parseUtil(t,n,r=!1,s){let i=M(t)?await this.matchVariants(t):[t],o=async([a,c,f])=>{this.config.details&&(n.rules=n.rules??[]);let h={...n,variantHandlers:f},d=this.config.rulesStaticMap[c];if(d&&d[1]&&(r||!d[2]?.internal))return this.resolveCSSResult(a,d[1],d,h);for(let m of this.config.rulesDynamic){let[p,y,w]=m;if(w?.internal&&!r)continue;let v=c;if(w?.prefix){let $=j(w.prefix);if(s){let z=j(s);if(!$.some(G=>z.includes(G)))continue}else{let z=$.find(G=>c.startsWith(G));if(z==null)continue;v=c.slice(z.length)}}let x=v.match(p);if(!x)continue;let b=await y(x,h);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let $=[];for await(let z of b)z&&$.push(z);b=$}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(We));let g=this.resolveCSSResult(a,b,m,h);if(g)return g}},l=(await Promise.all(i.map(a=>o(a)))).flat().filter(a=>!!a);if(l.length)return l}stringifyUtil(t,n){if(!t)return;if(qt(t))return[[t[0],void 0,t[1],void 0,t[2],this.config.details?n:void 0,void 0]];let r=this.applyVariants(t),s=[];for(let i of r){let{selector:o,entries:l,parent:a,layer:c,sort:f,noMerge:h}=i,d=we(l);if(!d)continue;let{layer:m,sort:p,...y}=t[3]??{},w={...y,layer:c??m,sort:f??p};s.push([t[0],o,d,a,w,this.config.details?n:void 0,h])}return s}async expandShortcut(t,n,r=5){if(r===0)return;let s=this.config.details?c=>{n.shortcuts=n.shortcuts??[],n.shortcuts.push(c)}:Wr,i,o,l,a;for(let c of this.config.shortcuts){let f=t;if(c[2]?.prefix){let h=j(c[2].prefix).find(d=>t.startsWith(d));if(h==null)continue;f=t.slice(h.length)}if(Gr(c)){if(c[0]===f){i=i||c[2],o=c[1],s(c);break}}else{let h=f.match(c[0]);if(h&&(o=c[1](h,n)),o){i=i||c[2],s(c);break}}}if(o&&(l=ee(j(o).filter(M).map(c=>Kr(c.trim()).split(/\s+/g)).flat()),a=j(o).filter(c=>!M(c)).map(c=>({handles:[],value:c}))),!o){let c=M(t)?await this.matchVariants(t):[t];for(let f of c){let[h,d,m]=f;if(h!==d){let p=await this.expandShortcut(d,n,r-1);p&&(l=p[0].filter(M).map(y=>h.replace(d,y)),a=p[0].filter(y=>!M(y)).map(y=>({handles:[...y.handles,...m],value:y.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(j(l).map(async c=>(await this.expandShortcut(c,n,r-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,n,r,s={layer:this.config.shortcutsLayer}){let i=new Ir,o=(await Promise.all(ee(r).map(async f=>{let h=M(f)?await this.parseUtil(f,n,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Ve(f.value),void 0,f.handles]];return!h&&this.config.warn&&Yr(`unmatched utility "${f}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((f,h)=>f[0]-h[0]),[l,,a]=t,c=[];for(let f of o){if(qt(f)){c.push([f[0],void 0,f[1],void 0,f[2],n,void 0]);continue}let h=Object.fromEntries(f[2])[q.shortcutsNoMerge],d=[...f[4],...h?[]:a];for(let{selector:m,entries:p,parent:y,sort:w,noMerge:v,layer:x}of this.applyVariants(f,d,l))i.getFallback(x??s.layer,new Br).getFallback(m,y,[[],f[0]])[0].push([p,!!(v??f[3]?.noMerge),w??0])}return c.concat(i.flatMap((f,h)=>f.map(([d,m],p,y)=>{let w=(v,x,b)=>{let g=Math.max(...b.map(z=>z[1])),$=b.map(z=>z[0]);return(v?[$.flat(1)]:$).map(z=>{let G=we(z);if(G)return[m,p,G,y,{...s,noMerge:x,sort:g,layer:h},n,void 0]})};return[[d.filter(([,v])=>v).map(([v,,x])=>[v,x]),!0],[d.filter(([,v])=>!v).map(([v,,x])=>[v,x]),!1]].map(([v,x])=>[...w(!1,x,v.filter(([b])=>b.some(g=>g[0]===q.shortcutsNoMerge))),...w(!0,x,v.filter(([b])=>b.every(g=>g[0]!==q.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(n=>Array.isArray(n)?n[0]:n).some(n=>typeof n=="function"?n(t):M(n)?n===t:n.test(t))}getBlocked(t){let n=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(t):M(s)?s===t:s.test(t)});return n?Array.isArray(n)?n:[n,void 0]:void 0}};async function an(e,t){return await ns.create(e,t)}var ln=/\s\$\$\s+/g;function rs(e){return ln.test(e)}function ss(e,t){return rs(e)?e.replace(ln,t?` ${t} `:" "):t?`${t} ${e}`:e}var Jt=/^\[(.+?)(~?=)"(.*)"\]$/;function is(e){return Jt.test(e)?e.replace(Jt,(t,n,r,s)=>`[${ft(n)}${r}"${ft(s)}"]`):`.${ft(e)}`}function os(e,t){return t(e)}var un=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ls(e={}){let t=e.prefix??"un-",n=e.prefixedOnly??!1,r=e.trueToNonValued??!1,s;return{name:"attributify",match(i,{generator:o}){let l=en(i);if(!l)return;let a=l[1];if(a.startsWith(t))a=a.slice(t.length);else if(n)return;let c=l[2],[,f="",h=c]=c.match(un)||[];if(h==="~"||r&&h==="true"||!h)return`${f}${a}`;if(s==null){let d=o?.config?.separators?.join("|");d?s=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):s=!1}if(s){let[,d,m]=c.match(s)||[];if(m)return`${d}${f}${a}-${m}`}if(f&&h.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),m=d.pop()+h,p=d.join("");return[{matcher:`${f}${a}-${h}`},{matcher:`${p}${a}-${m}`}]}return`${f}${a}-${h}`}}}var cs=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,fs=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,cn=/[\s'"`;>]+/;function us(e){return{name:"attributify",extract:({content:t,cursor:n})=>{let r=t.matchAll(cs),s,i=0;for(let x of r){let[,b,g]=x,$=x.index+b.length;if(n>$&&n<=$+g.length){i=$,s=g;break}}if(!s)return null;let o=s.matchAll(fs),l=0,a,c;for(let x of o){let[b,g,$]=x,z=i+x.index;if(n>z&&n<=z+b.length){l=z,a=g,c=$?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!e?.prefix&&a.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let h=f?a.slice(e.prefix.length):a;if(c===void 0)return{extracted:h,resolveReplacement(x){let b=f?e.prefix.length:0;return{start:l+b,end:l+a.length,replacement:x}}};let d=l+a.length+2,m=cn.exec(c),p=0,y;for(;m;){let[x]=m;if(n>d+p&&n<=d+p+m.index){y=c.slice(p,p+m.index);break}p+=m.index+x.length,m=cn.exec(c.slice(p))}y===void 0&&(y=c.slice(p));let[,w="",v]=y.match(un)||[];return{extracted:`${w}${h}-${v}`,transformSuggestions(x){return x.filter(b=>b.startsWith(`${w}${h}-`)).map(b=>w+b.slice(w.length+h.length+1))},resolveReplacement(x){return{start:p+d,end:p+d+y.length,replacement:w+x.slice(w.length+h.length+1)}}}}}}var hs=["v-bind:",":"],fn=/[\s'"`;]+/g,dt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ds=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,hn=["placeholder","fill","opacity","stroke-opacity"];function ps(e){let t=e?.ignoreAttributes??hn,n=e?.nonValuedAttribute??!0,r=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:s}){return Array.from(s.matchAll(dt)).flatMap(i=>Array.from((i[1]||"").matchAll(ds))).flatMap(([,i,...o])=>{let l=o.filter(Boolean).join("");if(t.includes(i))return[];for(let a of hs)if(i.startsWith(a)){i=i.slice(a.length);break}if(!l){if(ve(i)&&n!==!1){let a=[`[${i}=""]`];return r&&a.push(`[${i}="true"]`),a}return[]}return["class","className"].includes(i)?l.split(fn).filter(ve):dt.test(l)?(dt.lastIndex=0,this.extract({code:l})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:l.split(fn).filter(a=>!!a&&a!==":").map(a=>`[${i}~="${a}"]`)})}}}var ms=(e={})=>(e.strict=e.strict??!1,e.prefix=e.prefix??"un-",e.prefixedOnly=e.prefixedOnly??!1,e.nonValuedAttribute=e.nonValuedAttribute??!0,e.ignoreAttributes=e.ignoreAttributes??hn,{name:"@unocss/preset-attributify",enforce:"post",variants:[ls(e)],extractors:[ps(e)],options:e,autocomplete:{extractors:[us(e)]},extractorDefault:e.strict?!1:void 0}),dn=ms;var pt=Object.defineProperty,gs=Object.getOwnPropertyDescriptor,bs=Object.getOwnPropertyNames,xs=Object.prototype.hasOwnProperty,Ge=(e,t)=>{let n={};for(var r in e)pt(n,r,{get:e[r],enumerable:!0});return t&&pt(n,Symbol.toStringTag,{value:"Module"}),n},pn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=bs(t),i=0,o=s.length,l;i<o;i++)l=s[i],!xs.call(e,l)&&l!==n&&pt(e,l,{get:(a=>t[a]).bind(null,l),enumerable:!(r=gs(t,l))||r.enumerable});return e},mt=(e,t,n)=>(pn(e,t,"default"),n&&pn(n,t,"default"));var zt={};Rr(zt,{PseudoClassFunctions:()=>zn,PseudoClassFunctionsStr:()=>ie,PseudoClasses:()=>ce,PseudoClassesAndElementsColonStr:()=>$t,PseudoClassesAndElementsStr:()=>yt,PseudoClassesColon:()=>fe,PseudoClassesColonKeys:()=>St,PseudoClassesColonStr:()=>Xe,PseudoClassesKeys:()=>kt,PseudoClassesMulti:()=>Ct,PseudoClassesMultiStr:()=>xt,PseudoClassesStr:()=>Ye,alphaPlaceholders:()=>wt,alphaPlaceholdersRE:()=>Cn,calcMaxWidthBySize:()=>Bs,colorOpacityToString:()=>be,colorToString:()=>D,createPartClasses:()=>Rt,createPseudoClassFunctions:()=>At,createPseudoClassesAndElements:()=>Et,createTaggedPseudoClassMatcher:()=>Pn,createTaggedPseudoClasses:()=>jt,createValueHandler:()=>vt,cssColorFunctions:()=>Ze,excludedPseudo:()=>_n,getBracket:()=>wn,getStringComponent:()=>le,getStringComponents:()=>ge,hasIconFn:()=>Us,hasThemeFn:()=>Ns,hex2rgba:()=>_s,hueInterpolationMethods:()=>Sn,iconFnRE:()=>Is,isInterpolatedMethod:()=>zs,parseCssColor:()=>oe,polarColorSpace:()=>kn,rectangularColorSpace:()=>vn,themeFnRE:()=>jn,transformThemeFn:()=>Ws,transformThemeString:()=>Rn,variantGetBracket:()=>On,variantGetParameter:()=>Mn,variantMatcher:()=>Vs,variantParentMatcher:()=>Gs});var ys=44,$s=59,mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xn=new Uint8Array(64),ws=new Uint8Array(128);for(let e=0;e<mn.length;e++){let t=mn.charCodeAt(e);xn[e]=t,ws[t]=e}function ke(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let s=r&31;r>>>=5,r>0&&(s|=32),e.write(xn[s])}while(r>0);return t}var gn=1024*16,bn=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},vs=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(gn)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===gn&&(this.out+=bn.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+bn.decode(e.subarray(0,n)):t}};function yn(e){let t=new vs,n=0,r=0,s=0,i=0;for(let o=0;o<e.length;o++){let l=e[o];if(o>0&&t.write($s),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&t.write(ys),a=ke(t,f[0],a),f.length!==1&&(n=ke(t,f[1],n),r=ke(t,f[2],r),s=ke(t,f[3],s),f.length!==4&&(i=ke(t,f[4],i)))}}return t.flush()}var He=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},qe=class e{constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),s=this.original.slice(n);this.original=r;let i=new e(t,this.end,s);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function ks(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Ss=ks(),gt=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=yn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Ss(this.toString())}};function Cs(e){let t=e.split(`
3
3
  `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return" ";let s=r.reduce((i,o)=>{let l=/^ +/.exec(o)[0].length;return Math.min(l,i)},1/0);return new Array(s+1).join(" ")}function Es(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let s=n.length;for(;s--;)n[s]=".."}return n.concat(r).join("/")}var As=Object.prototype.toString;function js(e){return As.call(e)==="[object Object]"}function $n(e){let t=e.split(`
4
4
  `),n=[];for(let r=0,s=0;r<t.length;r++)n.push(s),s+=t[r].length+1;return function(s){let i=0,o=n.length;for(;i<o;){let c=i+o>>1;s<n[c]?o=c:i=c+1}let l=i-1,a=s-n[l];return{line:l,column:a}}}var Rs=/\w/,bt=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,r,s){if(n.length){let i=n.length-1,o=n.indexOf(`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "66.6.0-beta.1",
4
+ "version": "66.6.0",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@iconify/utils": "^3.1.0",
39
- "@unocss/core": "66.6.0-beta.1",
40
- "@unocss/preset-uno": "66.6.0-beta.1",
41
- "@unocss/preset-attributify": "66.6.0-beta.1"
39
+ "@unocss/core": "66.6.0",
40
+ "@unocss/preset-attributify": "66.6.0",
41
+ "@unocss/preset-uno": "66.6.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "tsup": "^8.5.1"
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Bi=Object.defineProperty;var Ti=(t,e)=>{for(var r in e)Bi(t,r,{get:e[r],enumerable:!0})};var oe="default",Lr="preflights",Wi="shortcuts",Ni="imports",Ii={[Ni]:-200,[Lr]:-100,[Wi]:-10,[oe]:0},Fr=/[\\:]?[\s'"`;{}]+/g;function Ui(t){return t.split(Fr)}var Di={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ui(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function ct(t){return Array.from(new Set(t))}function _n(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function F(t){return typeof t=="string"}var Fn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Or(t){return t instanceof Fn}function K(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Pr=Z;function Vi(){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 Gi=/[\w\u00A0-\uFFFF%-?]/;function Bn(t=""){return Gi.test(t)}function qi(t){return typeof t=="function"?{match:t}:t}function An(t){return t.length===3}function ee(t){return t!=null}function Hi(){}var Yi=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},Xi=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function ae(t){return F(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ki(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ae(e)):[t]:[ae(t)]}function Zi(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Tn="__virtual_key__";function Tt(t){return t==null?"":Zi(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Tn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function re(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Wn(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return re(n)&&re(o)&&Object.keys(o).forEach(a=>{re(n[a])&&re(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Wn(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function ie(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ie(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ie(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ie(n):n;return r}return t}function Ji(t){return F(t[0])}function Qi(t){return F(t[0])}var ne={};function ta(t=["-",":"]){let e=t.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function ea(t,e=["-",":"],r=5){let n=ta(e),o,i=t.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,u,d,p,h)=>{if(!e.includes(d))return l;o=!0,a.add(u+d);let m=h+u.length+d.length+1,x={length:l.length,items:[]};s.set(h,x);for(let w of[...p.matchAll(/\S+/g)]){let k=m+w.index,y=s.get(k)?.items;y?s.delete(k):y=[{offset:k,length:w[0].length,className:w[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let l=0;for(let[u,d]of s)c+=t.slice(l,u),c+=d.items.map(p=>p.className).join(" "),l=u+d.length;c+=t.slice(l)}else{c=t;for(let[l,u]of s)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function ra(t,e=["-",":"],r=5){let n=ea(t,e,r);return typeof t=="string"?n.expanded:t}var Rn=new Set;function na(t){Rn.has(t)||(console.warn("[unocss]",t),Rn.add(t))}function Nn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn="_uno_resolved";async function oa(t){let e=typeof t=="function"?await t():await t;if(Mn in e)return e;e={...e},Object.defineProperty(e,Mn,{value:!0,enumerable:!1});let r=e.shortcuts?Nn(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function In(t){let e=await oa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(In))).flat()]:[e]}function ia(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let s of t){if(s.pipeline===!1){n=!0;break}else s.pipeline?.include&&e.push(s.pipeline.include),s.pipeline?.exclude&&r.push(s.pipeline.exclude);s.filesystem&&o.push(s.filesystem),s.inline&&i.push(s.inline)}let a={pipeline:n?!1:{include:ct(Pn(...e)),exclude:ct(Pn(...r))}};return o.length&&(a.filesystem=ct(o.flat())),i.length&&(a.inline=ct(i.flat())),a}async function On(t={},e={}){let r=Object.assign({},e,t),n=_n((await Promise.all((r.presets||[]).flatMap(j).flatMap(In))).flat(),(g,v)=>g.name===v.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Ii,...i.map(g=>g.layers));function c(g){return ct(i.flatMap(v=>j(v[g]||[])))}let l=c("extractors"),u=a.find(g=>g.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Di),u&&!l.includes(u)&&l.unshift(u),l.sort((g,v)=>(g.order||0)-(v.order||0));let d=c("rules"),p=d.length,h={},m=[];for(let[g,v]of d.entries()){let L=v[2]??(v[2]={});L.__index=g,Ji(v)?j(L.prefix??"").forEach(H=>{h[H+v[0]]=v}):m.unshift(v)}let x={templates:ct(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,v)=>(g.order||0)-(v.order||0)),shorthands:sa(i.map(g=>g.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let k=ia(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:aa(i.map(g=>g.theme)),rules:d,rulesSize:p,rulesDynamic:m,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(qi).sort((g,v)=>(g.order||0)-(v.order||0)),shortcuts:Nn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:k,transformers:_n(c("transformers"),(g,v)=>g.name===v.name)},b=c("extendTheme");for(let g of b)y.theme=g(y.theme,y)||y.theme;for(let g of i)g?.configResolved?.(y);return y}function aa(t){return t.map(e=>e?ie(e):{}).reduce((e,r)=>Wn(e,r),{})}function sa(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Pn(...t){return t.flatMap(ca)}function ca(t){return Array.isArray(t)?t:t?[t]:[]}var la="66.6.0-beta.1",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},fa=class Un{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=la,this.events=Vi(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,a)=>{let s=Ki(o).filter(c=>c.length);if(s.length){this.config.details&&a.rules.push(i),a.generator.activatedRules.add(i);let c=i[2];return s.map(l=>{if(F(l))return[c.__index,l,c];let u=a.variantHandlers,d=c;for(let p of l)p[0]===X.variants?typeof p[1]=="function"?u=p[1](u)||u:u=[...j(p[1]),...u]:p[0]===X.parent?u=[{parent:p[1]},...u]:p[0]===X.selector?u=[{selector:p[1]},...u]:p[0]===X.layer?u=[{layer:p[1]},...u]:p[0]===X.sort?d={...d,sort:p[1]}:p[0]===X.noMerge?d={...d,noMerge:p[1]}:p[0]===X.body&&(p[0]=Tn);return[c.__index,n,l,d,u]})}}}static async create(e={},r={}){let n=new Un(e,r);return n.config=await On(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await On(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let a=await i.extract?.(o);if(a)if(Or(a)&&Or(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,l)=>l(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async c=>{let l=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.flatMap(d=>this.stringifyUtil(d,l)).filter(ee)},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s?.length)return this.cache.set(n,s),s;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=F(e)?await this.applyExtractors(e,n,c?new Fn:new Set):Array.isArray(e)?new Set(e):e;if(a){let C={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(C):E).forEach(E=>{let z=E.trim();z&&!l.has(z)&&l.add(z)})}let u=s?"":`
1
+ "use strict";(()=>{var Bi=Object.defineProperty;var Ti=(t,e)=>{for(var r in e)Bi(t,r,{get:e[r],enumerable:!0})};var oe="default",Lr="preflights",Wi="shortcuts",Ni="imports",Ii={[Ni]:-200,[Lr]:-100,[Wi]:-10,[oe]:0},Fr=/[\\:]?[\s'"`;{}]+/g;function Ui(t){return t.split(Fr)}var Di={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ui(t)}};function j(t=[]){return Array.isArray(t)?t:[t]}function ct(t){return Array.from(new Set(t))}function _n(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function F(t){return typeof t=="string"}var Fn=class extends Set{constructor(t){if(super(),this._map=new Map,t)for(let e of t)this.add(e)}add(t){return this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.has(t)?(this._map.delete(t),super.delete(t)):!1}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,e){return this._map.set(t,e),super.add(t)}};function Or(t){return t instanceof Fn}function K(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Z(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var Pr=Z;function Vi(){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 Gi=/[\w\u00A0-\uFFFF%-?]/;function Bn(t=""){return Gi.test(t)}function qi(t){return typeof t=="function"?{match:t}:t}function An(t){return t.length===3}function ee(t){return t!=null}function Hi(){}var Yi=class{constructor(){this._map=new Map}get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(e)||n.set(e,r),n.get(e)}set(t,e,r){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(e,r),this}has(t,e){return this._map.get(t)?.has(e)}delete(t,e){return this._map.get(t)?.delete(e)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([n,o])=>t(o,e,n)))}},Xi=class extends Map{getFallback(t,e){let r=this.get(t);return r===void 0?(this.set(t,e),e):r}map(t){let e=[];return this.forEach((r,n)=>{e.push(t(r,n))}),e}flatMap(t){let e=[];return this.forEach((r,n)=>{e.push(...t(r,n))}),e}};function ae(t){return F(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Ki(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ae(e)):[t]:[ae(t)]}function Zi(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}var Tn="__virtual_key__";function Tt(t){return t==null?"":Zi(t).map(([e,r])=>r!=null&&typeof r!="function"?e!==Tn?`${e}:${r};`:r:void 0).filter(Boolean).join("")}function re(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Wn(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return re(n)&&re(o)&&Object.keys(o).forEach(a=>{re(n[a])&&re(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Wn(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function ie(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?ie(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ie(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ie(n):n;return r}return t}function Ji(t){return F(t[0])}function Qi(t){return F(t[0])}var ne={};function ta(t=["-",":"]){let e=t.join("|");return ne[e]||(ne[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),ne[e].lastIndex=0,ne[e]}function ea(t,e=["-",":"],r=5){let n=ta(e),o,i=t.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,u,d,p,h)=>{if(!e.includes(d))return l;o=!0,a.add(u+d);let m=h+u.length+d.length+1,x={length:l.length,items:[]};s.set(h,x);for(let w of[...p.matchAll(/\S+/g)]){let k=m+w.index,y=s.get(k)?.items;y?s.delete(k):y=[{offset:k,length:w[0].length,className:w[0]}];for(let b of y)b.className=b.className==="~"?u:b.className.replace(/^(!?)(.*)/,`$1${u}${d}$2`),x.items.push(b)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof t=="string"){c="";let l=0;for(let[u,d]of s)c+=t.slice(l,u),c+=d.items.map(p=>p.className).join(" "),l=u+d.length;c+=t.slice(l)}else{c=t;for(let[l,u]of s)c.overwrite(l,l+u.length,u.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function ra(t,e=["-",":"],r=5){let n=ea(t,e,r);return typeof t=="string"?n.expanded:t}var Rn=new Set;function na(t){Rn.has(t)||(console.warn("[unocss]",t),Rn.add(t))}function Nn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Mn="_uno_resolved";async function oa(t){let e=typeof t=="function"?await t():await t;if(Mn in e)return e;e={...e},Object.defineProperty(e,Mn,{value:!0,enumerable:!1});let r=e.shortcuts?Nn(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=j(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function In(t){let e=await oa(t);return e.presets?[e,...(await Promise.all((e.presets||[]).flatMap(j).flatMap(In))).flat()]:[e]}function ia(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[];for(let s of t){if(s.pipeline===!1){n=!0;break}else s.pipeline?.include&&e.push(s.pipeline.include),s.pipeline?.exclude&&r.push(s.pipeline.exclude);s.filesystem&&o.push(s.filesystem),s.inline&&i.push(s.inline)}let a={pipeline:n?!1:{include:ct(Pn(...e)),exclude:ct(Pn(...r))}};return o.length&&(a.filesystem=ct(o.flat())),i.length&&(a.inline=ct(i.flat())),a}async function On(t={},e={}){let r=Object.assign({},e,t),n=_n((await Promise.all((r.presets||[]).flatMap(j).flatMap(In))).flat(),(g,v)=>g.name===v.name),o=[...n.filter(g=>g.enforce==="pre"),...n.filter(g=>!g.enforce),...n.filter(g=>g.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Ii,...i.map(g=>g.layers));function c(g){return ct(i.flatMap(v=>j(v[g]||[])))}let l=c("extractors"),u=a.find(g=>g.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Di),u&&!l.includes(u)&&l.unshift(u),l.sort((g,v)=>(g.order||0)-(v.order||0));let d=c("rules"),p=d.length,h={},m=[];for(let[g,v]of d.entries()){let L=v[2]??(v[2]={});L.__index=g,Ji(v)?j(L.prefix??"").forEach(H=>{h[H+v[0]]=v}):m.unshift(v)}let x={templates:ct(i.flatMap(g=>j(g.autocomplete?.templates))),extractors:i.flatMap(g=>j(g.autocomplete?.extractors)).sort((g,v)=>(g.order||0)-(v.order||0)),shorthands:sa(i.map(g=>g.autocomplete?.shorthands||{}))},w=c("separators");w.length||(w=[":","-"]);let k=ia(c("content")),y={mergeSelectors:!0,warn:!0,sortLayers:g=>g,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:aa(i.map(g=>g.theme)),rules:d,rulesSize:p,rulesDynamic:m,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:x,variants:c("variants").map(qi).sort((g,v)=>(g.order||0)-(v.order||0)),shortcuts:Nn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:w,details:r.details??r.envMode==="dev",content:k,transformers:_n(c("transformers"),(g,v)=>g.name===v.name)},b=c("extendTheme");for(let g of b)y.theme=g(y.theme,y)||y.theme;for(let g of i)g?.configResolved?.(y);return y}function aa(t){return t.map(e=>e?ie(e):{}).reduce((e,r)=>Wn(e,r),{})}function sa(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function Pn(...t){return t.flatMap(ca)}function ca(t){return Array.isArray(t)?t:t?[t]:[]}var la="66.6.0",X={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort",body:"$$symbol-body"},fa=class Un{constructor(e={},r={}){this.userConfig=e,this.defaults=r,this.version=la,this.events=Vi(),this.config=void 0,this.cache=new Map,this.blocked=new Set,this.parentOrders=new Map,this.activatedRules=new Set,this.resolveCSSResult=(n,o,i,a)=>{let s=Ki(o).filter(c=>c.length);if(s.length){this.config.details&&a.rules.push(i),a.generator.activatedRules.add(i);let c=i[2];return s.map(l=>{if(F(l))return[c.__index,l,c];let u=a.variantHandlers,d=c;for(let p of l)p[0]===X.variants?typeof p[1]=="function"?u=p[1](u)||u:u=[...j(p[1]),...u]:p[0]===X.parent?u=[{parent:p[1]},...u]:p[0]===X.selector?u=[{selector:p[1]},...u]:p[0]===X.layer?u=[{layer:p[1]},...u]:p[0]===X.sort?d={...d,sort:p[1]}:p[0]===X.noMerge?d={...d,noMerge:p[1]}:p[0]===X.body&&(p[0]=Tn);return[c.__index,n,l,d,u]})}}}static async create(e={},r={}){let n=new Un(e,r);return n.config=await On(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await On(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let a=await i.extract?.(o);if(a)if(Or(a)&&Or(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:X,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),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 o=this.config.preprocess.reduce((c,l)=>l(c)??c,e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(e),this.cache.set(n,null);return}let a=async c=>{let l=this.makeContext(e,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let u=await this.expandShortcut(l.currentSelector,l);return u?await this.stringifyShortcuts(l.variantMatch,l,u[0],u[1]):(await this.parseUtil(l.variantMatch,l))?.flatMap(d=>this.stringifyUtil(d,l)).filter(ee)},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s?.length)return this.cache.set(n,s),s;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=F(e)?await this.applyExtractors(e,n,c?new Fn:new Set):Array.isArray(e)?new Set(e):e;if(a){let C={generator:this,theme:this.config.theme};this.config.safelist.flatMap(E=>typeof E=="function"?E(C):E).forEach(E=>{let z=E.trim();z&&!l.has(z)&&l.add(z)})}let u=s?"":`
2
2
  `,d=new Set([oe]),p=c?new Map:new Set,h=new Map,m={},x=Array.from(l).map(async C=>{if(p.has(C))return;let E=await this.parseToken(C);if(E!=null){p instanceof Map?p.set(C,{data:E,count:Or(l)?l.getCount(C):-1}):p.add(C);for(let z of E){let V=z[3]||"",D=z[4]?.layer;h.has(V)||h.set(V,[]),h.get(V).push(z),D&&d.add(D)}}});await Promise.all(x),await(async()=>{if(!i)return;let C={generator:this,theme:this.config.theme},E=new Set([]);this.config.preflights.forEach(({layer:z=Lr})=>{d.add(z),E.add(z)}),m=Object.fromEntries(await Promise.all(Array.from(E).map(async z=>[z,(await Promise.all(this.config.preflights.filter(V=>(V.layer||Lr)===z).map(async V=>await V.getCSS(C)))).filter(Boolean).join(u)])))})();let w=C=>this.config.sortLayers(C.sort((E,z)=>(this.config.layers[E]??0)-(this.config.layers[z]??0)||E.localeCompare(z))),k=w(Array.from(d)),y={},b=this.config.outputToCssLayers,g=C=>{let E=C;return typeof b=="object"&&(E=b.cssLayerName?.(C)),E===null?null:E??C},v=(C=oe)=>{if(y[C])return y[C];let E=Array.from(h).sort((D,$)=>(this.parentOrders.get(D[0])??0)-(this.parentOrders.get($[0])??0)||D[0]?.localeCompare($[0]||"")||0).map(([D,$])=>{let _=$.length,P=$.filter(I=>(I[4]?.layer||oe)===C).sort((I,Y)=>I[0]-Y[0]||(I[4]?.sort||0)-(Y[4]?.sort||0)||I[5]?.currentSelector?.localeCompare(Y[5]?.currentSelector??"")||I[1]?.localeCompare(Y[1]||"")||I[2]?.localeCompare(Y[2]||"")||0).map(([,I,Y,,te,,Mr])=>[[[(I&&da(I,o))??"",te?.sort??0]],Y,!!(Mr??te?.noMerge)]);if(!P.length)return;let T=P.reverse().map(([I,Y,te],Mr)=>{if(!te&&this.config.mergeSelectors)for(let dt=Mr+1;dt<_;dt++){let et=P[dt];if(et&&!et[2]&&(I&&et[0]||I==null&&et[0]==null)&&et[1]===Y)return I&&et[0]&&et[0].push(...I),null}let jn=I?ct(I.sort((dt,et)=>dt[1]-et[1]||dt[0]?.localeCompare(et[0]||"")||0).map(dt=>dt[0]).filter(Boolean)):[];return jn.length?`${jn.join(`,${u}`)}{${Y}}`:Y}).filter(Boolean),G=Array.from(new Set(T)).reverse().join(u);if(!D)return G;let vt=D.split(" $$ ");return`${vt.join("{")}{${u}${G}${u}${"}".repeat(vt.length)}`}).filter(Boolean).join(u);i&&(E=[m[C],E].filter(Boolean).join(u));let z;b&&E&&(z=g(C),z!==null&&(E=`@layer ${z}{${u}${E}${u}}`));let V=s?"":`/* layer: ${C}${z&&z!==C?`, alias: ${z}`:""} */${u}`;return y[C]=E?V+E:""},L=(C=k,E)=>{let z=C.filter(D=>!E?.includes(D)),V=z.map(v).filter(Boolean);if(b){let D=z;typeof b=="object"&&b.allLayers&&(D=w(Object.keys(this.config.layers))),D.length>0&&V.unshift(`@layer ${D.map(g).filter(ee).join(", ")};`)}return V.join(u)};return{get css(){return L()},layers:k,matched:p,getLayers:L,getLayer:v,setLayer:async(C,E)=>{let z=await E(v(C));return y[C]=z,z}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let a=!0,[,,s,c]=i;for(;a;){a=!1;let l=i[1];for(let u of this.config.variants){if(!u.multiPass&&c.has(u))continue;let d=await u.match(l,n);if(d){if(F(d)){if(d===l)continue;d={matcher:d}}if(Array.isArray(d)){if(!d.length)continue;if(d.length===1)d=d[0];else{if(u.multiPass)throw new Error("multiPass can not be used together with array return variants");let p=d.map(h=>{let m=h.matcher??l,x=[h,...s],w=new Set(c);return w.add(u),[i[0],m,x,w]});return(await Promise.all(p.map(h=>o(h)))).flat()}}i[1]=d.matcher??l,s.unshift(d),c.add(u),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,l)=>(c.order||0)-(l.order||0)).reduceRight((c,l)=>u=>{let d=l.body?.(u.entries)||u.entries,p=Array.isArray(l.parent)?l.parent:[l.parent,void 0],h=l.selector?.(u.selector,d);return(l.handle??ma)({...u,entries:d,selector:h||u.selector,parent:p[0]||u.parent,parentOrder:p[1]||u.parentOrder,layer:l.layer||u.layer,sort:l.sort||u.sort},c)},c=>c)({prefix:"",selector:pa(n),pseudo:"",entries:e[2]}),{parent:i,parentOrder:a}=o;i!=null&&a!=null&&this.parentOrders.set(i,a);let s={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:i,layer:o.layer,sort:o.sort,noMerge:o.noMerge};return this.config.postprocess.reduce((c,l)=>{let u=[];for(let d of c){let p=l(d);Array.isArray(p)?u.push(...p.filter(ee)):u.push(p||d)}return u},[s])}constructCustomCSS(e,r,n){let o=ae(r);return F(o)?o:this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]).map(({selector:i,entries:a,parent:s})=>{let c=`${i}{${Tt(a)}}`;return s?`${s}{${c}}`:c}).join("")}async parseUtil(e,r,n=!1,o){let i=F(e)?await this.matchVariants(e):[e],a=async([c,l,u])=>{this.config.details&&(r.rules=r.rules??[]);let d={...r,variantHandlers:u},p=this.config.rulesStaticMap[l];if(p&&p[1]&&(n||!p[2]?.internal))return this.resolveCSSResult(c,p[1],p,d);for(let h of this.config.rulesDynamic){let[m,x,w]=h;if(w?.internal&&!n)continue;let k=l;if(w?.prefix){let v=j(w.prefix);if(o){let L=j(o);if(!v.some(H=>L.includes(H)))continue}else{let L=v.find(H=>l.startsWith(H));if(L==null)continue;k=l.slice(L.length)}}let y=k.match(m);if(!y)continue;let b=await x(y,d);if(!b)continue;if(typeof b!="string")if(Symbol.asyncIterator in b){let v=[];for await(let L of b)L&&v.push(L);b=v}else Symbol.iterator in b&&!Array.isArray(b)&&(b=Array.from(b).filter(ee));let g=this.resolveCSSResult(c,b,h,d);if(g)return g}},s=(await Promise.all(i.map(c=>a(c)))).flat().filter(c=>!!c);if(s.length)return s}stringifyUtil(e,r){if(!e)return;if(An(e))return[[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0]];let n=this.applyVariants(e),o=[];for(let i of n){let{selector:a,entries:s,parent:c,layer:l,sort:u,noMerge:d}=i,p=Tt(s);if(!p)continue;let{layer:h,sort:m,...x}=e[3]??{},w={...x,layer:l??h,sort:u??m};o.push([e[0],a,p,c,w,this.config.details?r:void 0,d])}return o}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Hi,i,a,s,c;for(let l of this.config.shortcuts){let u=e;if(l[2]?.prefix){let d=j(l[2].prefix).find(p=>e.startsWith(p));if(d==null)continue;u=e.slice(d.length)}if(Qi(l)){if(l[0]===u){i=i||l[2],a=l[1],o(l);break}}else{let d=u.match(l[0]);if(d&&(a=l[1](d,r)),a){i=i||l[2],o(l);break}}}if(a&&(s=ct(j(a).filter(F).map(l=>ra(l.trim()).split(/\s+/g)).flat()),c=j(a).filter(l=>!F(l)).map(l=>({handles:[],value:l}))),!a){let l=F(e)?await this.matchVariants(e):[e];for(let u of l){let[d,p,h]=u;if(d!==p){let m=await this.expandShortcut(p,r,n-1);m&&(s=m[0].filter(F).map(x=>d.replace(p,x)),c=m[0].filter(x=>!F(x)).map(x=>({handles:[...x.handles,...h],value:x.value})))}}}if(!(!s?.length&&!c?.length))return[[await Promise.all(j(s).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xi,a=(await Promise.all(ct(n).map(async u=>{let d=F(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ae(u.value),void 0,u.handles]];return!d&&this.config.warn&&na(`unmatched utility "${u}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[s,,c]=e,l=[];for(let u of a){if(An(u)){l.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let d=Object.fromEntries(u[2])[X.shortcutsNoMerge],p=[...u[4],...d?[]:c];for(let{selector:h,entries:m,parent:x,sort:w,noMerge:k,layer:y}of this.applyVariants(u,p,s))i.getFallback(y??o.layer,new Yi).getFallback(h,x,[[],u[0]])[0].push([m,!!(k??u[3]?.noMerge),w??0])}return l.concat(i.flatMap((u,d)=>u.map(([p,h],m,x)=>{let w=(k,y,b)=>{let g=Math.max(...b.map(L=>L[1])),v=b.map(L=>L[0]);return(k?[v.flat(1)]:v).map(L=>{let H=Tt(L);if(H)return[h,m,H,x,{...o,noMerge:y,sort:g,layer:d},r,void 0]})};return[[p.filter(([,k])=>k).map(([k,,y])=>[k,y]),!0],[p.filter(([,k])=>!k).map(([k,,y])=>[k,y]),!1]].map(([k,y])=>[...w(!1,y,k.filter(([b])=>b.some(g=>g[0]===X.shortcutsNoMerge))),...w(!0,y,k.filter(([b])=>b.every(g=>g[0]!==X.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):F(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):F(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Dn(t,e){return await fa.create(t,e)}var Vn=/\s\$\$\s+/g;function ua(t){return Vn.test(t)}function da(t,e){return ua(t)?t.replace(Vn,e?` ${e} `:" "):e?`${e} ${t}`:t}var Ln=/^\[(.+?)(~?=)"(.*)"\]$/;function pa(t){return Ln.test(t)?t.replace(Ln,(e,r,n,o)=>`[${Pr(r)}${n}"${Pr(o)}"]`):`.${Pr(t)}`}function ma(t,e){return e(t)}var Br=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,ga=Object.getOwnPropertyNames,ba=Object.prototype.hasOwnProperty,se=(t,e)=>{let r={};for(var n in t)Br(r,n,{get:t[n],enumerable:!0});return e&&Br(r,Symbol.toStringTag,{value:"Module"}),r},Gn=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(var o=ga(e),i=0,a=o.length,s;i<a;i++)s=o[i],!ba.call(t,s)&&s!==r&&Br(t,s,{get:(c=>e[c]).bind(null,s),enumerable:!(n=ha(e,s))||n.enumerable});return t},Tr=(t,e,r)=>(Gn(t,e,"default"),r&&Gn(r,e,"default"));var Qr={};Ti(Qr,{PseudoClassFunctions:()=>so,PseudoClassFunctionsStr:()=>pt,PseudoClasses:()=>wt,PseudoClassesAndElementsColonStr:()=>Dr,PseudoClassesAndElementsStr:()=>Ur,PseudoClassesColon:()=>kt,PseudoClassesColonKeys:()=>Hr,PseudoClassesColonStr:()=>de,PseudoClassesKeys:()=>qr,PseudoClassesMulti:()=>Yr,PseudoClassesMultiStr:()=>Ir,PseudoClassesStr:()=>ue,alphaPlaceholders:()=>Vr,alphaPlaceholdersRE:()=>ro,calcMaxWidthBySize:()=>Wa,colorOpacityToString:()=>mt,colorToString:()=>W,createPartClasses:()=>Jr,createPseudoClassFunctions:()=>Kr,createPseudoClassesAndElements:()=>Xr,createTaggedPseudoClassMatcher:()=>lo,createTaggedPseudoClasses:()=>Zr,createValueHandler:()=>Gr,cssColorFunctions:()=>pe,excludedPseudo:()=>co,getBracket:()=>Jn,getStringComponent:()=>$t,getStringComponents:()=>_t,hasIconFn:()=>Ia,hasThemeFn:()=>Ba,hex2rgba:()=>Aa,hueInterpolationMethods:()=>eo,iconFnRE:()=>Na,isInterpolatedMethod:()=>_a,parseCssColor:()=>J,polarColorSpace:()=>to,rectangularColorSpace:()=>Qn,themeFnRE:()=>io,transformThemeFn:()=>Ta,transformThemeString:()=>ao,variantGetBracket:()=>fo,variantGetParameter:()=>uo,variantMatcher:()=>St,variantParentMatcher:()=>rt});var ya=44,xa=59,qn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xn=new Uint8Array(64),va=new Uint8Array(128);for(let t=0;t<qn.length;t++){let e=qn.charCodeAt(t);Xn[t]=e,va[e]=t}function Wt(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(Xn[o])}while(n>0);return e}var Hn=1024*16,Yn=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}},$a=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Hn)}write(t){let{buffer:e}=this;e[this.pos++]=t,this.pos===Hn&&(this.out+=Yn.decode(e),this.pos=0)}flush(){let{buffer:t,out:e,pos:r}=this;return r>0?e+Yn.decode(t.subarray(0,r)):e}};function Kn(t){let e=new $a,r=0,n=0,o=0,i=0;for(let a=0;a<t.length;a++){let s=t[a];if(a>0&&e.write(xa),s.length===0)continue;let c=0;for(let l=0;l<s.length;l++){let u=s[l];l>0&&e.write(ya),c=Wt(e,u[0],c),u.length!==1&&(r=Wt(e,u[1],r),n=Wt(e,u[2],n),o=Wt(e,u[3],o),u.length!==4&&(i=Wt(e,u[4],i)))}}return e.flush()}var ce=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))}},le=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}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}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 wa(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.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 ka=wa(),Wr=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Kn(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ka(this.toString())}};function Sa(t){let e=t.split(`
3
3
  `),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function Ca(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var Ea=Object.prototype.toString;function za(t){return Ea.call(t)==="[object Object]"}function Zn(t){let e=t.split(`
4
4
  `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,a=r.length;for(;i<a;){let l=i+a>>1;o<r[l]?a=l:i=l+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var ja=/\w/,Nr=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,o){if(r.length){let i=r.length-1,a=r.indexOf(`