@unocss/runtime 66.1.0-beta.6 → 66.1.0-beta.7

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 Xu=Object.defineProperty;var Zu=(e,t)=>{for(var r in t)Xu(e,r,{get:t[r],enumerable:!0})};var Ze="default",It="preflights",Ju="shortcuts",Qu="imports",_o={[Qu]:-200,[It]:-100,[Ju]:-10,[Ze]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function ef(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return ef(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function xn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Je}function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=Q;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var tf=/^\[(.+?)~?="(.*)"\]$/;var rf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(tf)}function Qe(e=""){return rf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function yn(e){return e.length===3}function qt(e){return e!=null}function Bo(){}var Yt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function tt(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $n(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function nf(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":nf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function vn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=vn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Do(e){return M(e[0])}function Io(e){return M(e[0])}var Jt={};function of(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function sf(e,t=["-",":"],r=5){let n=of(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let g=m+f.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let C=g+$.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:$[0].length,className:$[0]}];for(let w of v)w.className=w.className==="~"?f:w.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(w)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(h=>h.className).join(" "),l=f+d.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function No(e,t=["-",":"],r=5){let n=sf(e,t,r);return typeof e=="string"?n.expanded:e}var Ko=new Set;function Go(e){Ko.has(e)||(console.warn("[unocss]",e),Ko.add(e))}function Yo(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ho="_uno_resolved";async function af(e){let t=typeof e=="function"?await e():await e;if(Ho in t)return t;t={...t},Object.defineProperty(t,Ho,{value:!0,enumerable:!1});let r=t.shortcuts?Yo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=R(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Xo(e){let t=await af(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(Xo))).flat();return[t,...r]}function cf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(qo(...t)),exclude:ne(qo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function wn(e={},t={}){let r=Object.assign({},t,e),n=xn((await Promise.all((r.presets||[]).flatMap(R).flatMap(Xo))).flat(),(y,x)=>y.name===x.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>R(x[y]||[])))}let l=c("extractors"),f=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Kt),f&&!l.includes(f)&&l.unshift(f),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Do(y)?(R(y[2]?.prefix||"").forEach(S=>{h[S+y[0]]=y}),!1):!0).reverse(),b=lf(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let C={templates:ne(i.flatMap(y=>R(y.autocomplete?.templates))),extractors:i.flatMap(y=>R(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:uf(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let w=c("content"),D=cf(w),j={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(Uo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Yo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:D,transformers:xn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(j);return j}function lf(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>vn(t,r),{})}function uf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function qo(...e){return e.flatMap(ff)}function ff(e){return Array.isArray(e)?e:e?[e]:[]}var Zo="66.1.0-beta.6";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},kn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Zo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await wn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await wn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let c of this.config.preprocess)o=c(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(x):S).forEach(S=>{l.has(S)||l.add(S)})}let f=a?"":`
1
+ "use strict";(()=>{var Xu=Object.defineProperty;var Zu=(e,t)=>{for(var r in t)Xu(e,r,{get:t[r],enumerable:!0})};var Ze="default",It="preflights",Ju="shortcuts",Qu="imports",_o={[Qu]:-200,[It]:-100,[Ju]:-10,[Ze]:0};var Nt=/[\\:]?[\s'"`;{}]+/g;function ef(e){return e.split(Nt)}var Kt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return ef(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function xn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Gt(e){return e instanceof Je}function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Ht=Q;function Lo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var tf=/^\[(.+?)~?="(.*)"\]$/;var rf=/[\w\u00A0-\uFFFF%-?]/;function Wo(e){return e.match(tf)}function Qe(e=""){return rf.test(e)}function Uo(e){return typeof e=="function"?{match:e}:e}function yn(e){return e.length===3}function qt(e){return e!=null}function Bo(){}var Yt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Xt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function tt(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $n(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function nf(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":nf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Zt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function vn(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Zt(n)&&Zt(o)&&Object.keys(o).forEach(s=>{Zt(n[s])&&Zt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=vn(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Do(e){return M(e[0])}function Io(e){return M(e[0])}var Jt={};function of(e=["-",":"]){let t=e.join("|");return Jt[t]||(Jt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Jt[t].lastIndex=0,Jt[t]}function sf(e,t=["-",":"],r=5){let n=of(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,f,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(f+d);let g=m+f.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let C=g+$.index,v=a.get(C)?.items;v?a.delete(C):v=[{offset:C,length:$[0].length,className:$[0]}];for(let w of v)w.className=w.className==="~"?f:w.className.replace(/^(!?)(.*)/,`$1${f}${d}$2`),b.items.push(w)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[f,d]of a)c+=e.slice(l,f),c+=d.items.map(h=>h.className).join(" "),l=f+d.length;c+=e.slice(l)}else{c=e;for(let[l,f]of a)c.overwrite(l,l+f.length,f.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function No(e,t=["-",":"],r=5){let n=sf(e,t,r);return typeof e=="string"?n.expanded:e}var Ko=new Set;function Go(e){Ko.has(e)||(console.warn("[unocss]",e),Ko.add(e))}function Yo(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ho="_uno_resolved";async function af(e){let t=typeof e=="function"?await e():await e;if(Ho in t)return t;t={...t},Object.defineProperty(t,Ho,{value:!0,enumerable:!1});let r=t.shortcuts?Yo(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=R(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Xo(e){let t=await af(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(Xo))).flat();return[t,...r]}function cf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(qo(...t)),exclude:ne(qo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function wn(e={},t={}){let r=Object.assign({},t,e),n=xn((await Promise.all((r.presets||[]).flatMap(R).flatMap(Xo))).flat(),(y,x)=>y.name===x.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},_o,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>R(x[y]||[])))}let l=c("extractors"),f=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Kt),f&&!l.includes(f)&&l.unshift(f),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Do(y)?(R(y[2]?.prefix||"").forEach(S=>{h[S+y[0]]=y}),!1):!0).reverse(),b=lf(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let C={templates:ne(i.flatMap(y=>R(y.autocomplete?.templates))),extractors:i.flatMap(y=>R(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:uf(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let w=c("content"),D=cf(w),j={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(Uo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Yo(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:D,transformers:xn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(j);return j}function lf(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>vn(t,r),{})}function uf(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function qo(...e){return e.flatMap(ff)}function ff(e){return Array.isArray(e)?e:e?[e]:[]}var Zo="66.1.0-beta.7";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},kn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Zo;events=Lo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await wn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await wn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Gt(s)&&Gt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let c of this.config.preprocess)o=c(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let f=await this.expandShortcut(l.currentSelector,l);return f?await this.stringifyShortcuts(l.variantMatch,l,f[0],f[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,l)).filter(qt)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(S=>typeof S=="function"?S(x):S).forEach(S=>{l.has(S)||l.add(S)})}let f=a?"":`
2
2
  `,d=new Set([Ze]),h=c?new Map:new Set,m=new Map,g={},b=Array.from(l).map(async x=>{if(h.has(x))return;let S=await this.parseToken(x);if(S!=null){h instanceof Map?h.set(x,{data:S,count:Gt(l)?l.getCount(x):-1}):h.add(x);for(let T of S){let Z=T[3]||"",J=T[4]?.layer;m.has(Z)||m.set(Z,[]),m.get(Z).push(T),J&&d.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let x={generator:this,theme:this.config.theme},S=new Set([]);this.config.preflights.forEach(({layer:T=It})=>{d.add(T),S.add(T)}),g=Object.fromEntries(await Promise.all(Array.from(S).map(async T=>{let J=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||It)===T).map(async ce=>await ce.getCSS(x)))).filter(Boolean).join(f);return[T,J]})))})();let $=this.config.sortLayers(Array.from(d).sort((x,S)=>(this.config.layers[x]??0)-(this.config.layers[S]??0)||x.localeCompare(S))),C={},v=this.config.outputToCssLayers,w=x=>{let S=x;return typeof v=="object"&&(S=v.cssLayerName?.(x)),S===null?null:S??x},D=(x=Ze)=>{if(C[x])return C[x];let S=Array.from(m).sort((J,ce)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(ce[0])??0)||J[0]?.localeCompare(ce[0]||"")||0).map(([J,ce])=>{let E=ce.length,P=ce.filter(A=>(A[4]?.layer||Ze)===x).sort((A,X)=>A[0]-X[0]||(A[4]?.sort||0)-(X[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(X[5]?.currentSelector??"")||A[1]?.localeCompare(X[1]||"")||A[2]?.localeCompare(X[2]||"")||0).map(([,A,X,,Dt,,gn])=>[[[(A&&mf(A,o))??"",Dt?.sort??0]],X,!!(gn??Dt?.noMerge)]);if(!P.length)return;let W=P.reverse().map(([A,X,Dt],gn)=>{if(!Dt&&this.config.mergeSelectors)for(let Se=gn+1;Se<E;Se++){let de=P[Se];if(de&&!de[2]&&(A&&de[0]||A==null&&de[0]==null)&&de[1]===X)return A&&de[0]&&de[0].push(...A),null}let bn=A?ne(A.sort((Se,de)=>Se[1]-de[1]||Se[0]?.localeCompare(de[0]||"")||0).map(Se=>Se[0]).filter(Boolean)):[];return bn.length?`${bn.join(`,${f}`)}{${X}}`:X}).filter(Boolean).reverse().join(f);if(!J)return W;let I=J.split(" $$ ");return`${I.join("{")}{${f}${W}${f}${"}".repeat(I.length)}`}).filter(Boolean).join(f);i&&(S=[g[x],S].filter(Boolean).join(f));let T;v&&S&&(T=w(x),T!==null&&(S=`@layer ${T}{${f}${S}${f}}`));let Z=a?"":`/* layer: ${x}${T&&T!==x?`, alias: ${T}`:""} */${f}`;return C[x]=S?Z+S:""},j=(x=$,S)=>{let T=x.filter(Z=>!S?.includes(Z));return[v&&T.length>0?`@layer ${T.map(w).filter(qt).join(", ")};`:void 0,...T.map(Z=>D(Z)||"")].filter(Boolean).join(f)};return{get css(){return j()},layers:$,matched:h,getLayers:j,getLayer:D,setLayer:async(x,S)=>{let T=await S(D(x));return C[x]=T,T}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let f of this.config.variants){if(!f.multiPass&&c.has(f))continue;let d=await f.match(l,n);if(d){if(M(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(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=d.map(m=>{let g=m.matcher??l,b=[m,...a],$=new Set(c);return $.add(f),[i[0],g,b,$]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,f)=>(l.order||0)-(f.order||0)).reduceRight((l,f)=>d=>{let h=f.body?.(d.entries)||d.entries,m=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??gf)({...d,entries:h,selector:f.selector?.(d.selector,h)||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:f.layer||d.layer,sort:f.sort||d.sort},l)},l=>l)({prefix:"",selector:hf(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=tt(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([c,l,f])=>{this.config.details&&(r.rules=r.rules??[]);let d=this.config.rulesStaticMap[l];if(d&&d[1]&&(n||!d[2]?.internal)){this.config.details&&r.rules.push(d);let m=this.config.rules.indexOf(d),g=$n(d[1]).filter($=>$.length),b=d[2];if(g.length)return r.generator.activatedRules.add(d),g.map($=>M($)?[m,$,b]:[m,c,$,b,f])}r.variantHandlers=f;let{rulesDynamic:h}=this.config;for(let m of h){let[g,b,$]=m;if($?.internal&&!n)continue;let C=l;if($?.prefix){let j=R($.prefix);if(o){let y=R(o);if(!j.some(x=>y.includes(x)))continue}else{let y=j.find(x=>l.startsWith(x));if(y==null)continue;C=l.slice(y.length)}}let v=C.match(g);if(!v)continue;let w=await b(v,r);if(!w)continue;if(this.config.details&&r.rules.push(m),typeof w!="string")if(Symbol.asyncIterator in w){let j=[];for await(let y of w)y&&j.push(y);w=j}else Symbol.iterator in w&&!Array.isArray(w)&&(w=Array.from(w).filter(qt));let D=$n(w).filter(j=>j.length);if(D.length){r.generator.activatedRules.add(m);let j=this.config.rules.indexOf(m);return D.map(y=>{if(M(y))return[j,y,$];let x=f,S=$;for(let T of y)T[0]===Ce.variants?x=[...R(T[1]),...x]:T[0]===Ce.parent?x=[{parent:T[1]},...x]:T[0]===Ce.selector?x=[{selector:T[1]},...x]:T[0]===Ce.layer?x=[{layer:T[1]},...x]:T[0]===Ce.sort&&(S={...S,sort:T[1]});return[j,c,y,S,x]})}}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(yn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:f,sort:d,...h}=t[3]??{},m={...h,layer:s??f,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:Bo,i,s,a,c;for(let l of this.config.shortcuts){let f=t;if(l[2]?.prefix){let h=R(l[2].prefix).find(m=>t.startsWith(m));if(h==null)continue;f=t.slice(h.length)}if(Io(l)){if(l[0]===f){i=i||l[2],s=l[1],o(l);break}}else{let d=f.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(R(s).filter(M).map(l=>No(l.trim()).split(/\s+/g)).flat()),c=R(s).filter(l=>!M(l)).map(l=>({handles:[],value:l}))),!s){let l=M(t)?await this.matchVariants(t):[t];for(let f of l){let[d,h,m]=f;if(d!==h){let g=await this.expandShortcut(h,r,n-1);g&&(a=g[0].filter(M).map(b=>d.replace(h,b)),c=g[0].filter(b=>!M(b)).map(b=>({handles:[...b.handles,...m],value:b.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(R(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xt,s=(await Promise.all(ne(n).map(async f=>{let d=M(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",tt(f.value),void 0,f.handles]];return!d&&this.config.warn&&Go(`unmatched utility "${f}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[a,,c]=t,l=[];for(let f of s){if(yn(f)){l.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:d,entries:h,parent:m,sort:g,noMerge:b,layer:$}=this.applyVariants(f,[...f[4],...c],a);i.getFallback($??o.layer,new Yt).getFallback(d,m,[[],f[0]])[0].push([h,!!(b??f[3]?.noMerge),g??0])}return l.concat(i.flatMap((f,d)=>f.map(([h,m],g,b)=>{let $=(v,w,D)=>{let j=Math.max(...D.map(x=>x[1])),y=D.map(x=>x[0]);return(v?[y.flat(1)]:y).map(x=>{let S=Le(x);if(S)return[m,g,S,b,{...o,noMerge:w,sort:j,layer:d},r,void 0]})};return[[h.filter(([,v])=>v).map(([v,,w])=>[v,w]),!0],[h.filter(([,v])=>!v).map(([v,,w])=>[v,w]),!1]].map(([v,w])=>[...$(!1,w,v.filter(([D])=>D.some(j=>j[0]===Ce.shortcutsNoMerge))),...$(!0,w,v.filter(([D])=>D.every(j=>j[0]!==Ce.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Qo(e,t){return await kn.create(e,t)}var ei=/\s\$\$\s+/g;function df(e){return ei.test(e)}function mf(e,t){return df(e)?e.replace(ei,t?` ${t} `:" "):t?`${t} ${e}`:e}var Jo=/^\[(.+?)(~?=)"(.*)"\]$/;function hf(e){return Jo.test(e)?e.replace(Jo,(t,r,n,o)=>`[${Ht(r)}${n}"${Ht(o)}"]`):`.${Ht(e)}`}function gf(e,t){return t(e)}var Sn=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function ti(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Wo(i);if(!a)return;let c=a[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=a[2],[,f="",d=l]=l.match(Sn)||[];if(d==="~"||n&&d==="true"||!d)return`${f}${c}`;if(o==null){let h=s?.config?.separators?.join("|");h?o=new RegExp(`^(.*\\](?:${h}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,h,m]=l.match(o)||[];if(m)return`${h}${f}${c}-${m}`}if(f&&d.match(/^[\d.]+$/)){let h=f.split(/([^:]*:)/g).filter(Boolean),m=h.pop()+d,g=h.join("");return[{matcher:`${f}${c}-${d}`},{matcher:`${g}${c}-${m}`}]}return`${f}${c}-${d}`}}}var bf=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,xf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ri=/[\s'"`;>]+/;function ni(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(bf),o,i=0;for(let v of n){let[,w,D]=v,j=v.index+w.length;if(r>j&&r<=j+D.length){i=j,o=D;break}}if(!o)return null;let s=o.matchAll(xf),a=0,c,l;for(let v of s){let[w,D,j]=v,y=i+v.index;if(r>y&&r<=y+w.length){a=y,c=D,l=j?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let f=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let d=f?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:d,resolveReplacement(v){let w=f?e.prefix.length:0;return{start:a+w,end:a+c.length,replacement:v}}};let h=a+c.length+2,m=ri.exec(l),g=0,b;for(;m;){let[v]=m;if(r>h+g&&r<=h+g+m.index){b=l.slice(g,g+m.index);break}g+=m.index+v.length,m=ri.exec(l.slice(g))}b===void 0&&(b=l.slice(g));let[,$="",C]=b.match(Sn)||[];return{extracted:`${$}${d}-${C}`,transformSuggestions(v){return v.filter(w=>w.startsWith(`${$}${d}-`)).map(w=>$+w.slice($.length+d.length+1))},resolveReplacement(v){return{start:g+h,end:g+h+b.length,replacement:$+v.slice($.length+d.length+1)}}}}}}var yf=["v-bind:",":"],oi=/[\s'"`;]+/g,Cn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,$f=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,Rn=["placeholder","fill","opacity","stroke-opacity"];function ii(e){let t=e?.ignoreAttributes??Rn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Cn)).flatMap(i=>Array.from((i[1]||"").matchAll($f))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let c of yf)if(i.startsWith(c)){i=i.slice(c.length);break}if(!a){if(Qe(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?a.split(oi).filter(Qe):Cn.test(a)?(Cn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(oi).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var vf=(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??Rn;let t=[ti(e)],r=[ii(e)],n=[ni(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},si=vf;function wf(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function ai(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${wf(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function ci(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var kf=/\/\/#\s*sourceMappingURL=.*\n?/g;function li(e){return e.includes("sourceMappingURL=")?e.replace(kf,""):e}var Sf=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Cf=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Rf=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Ef(e){let t=[];for(let o of e.matchAll(Cf))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(Sf))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=ai(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(Nt).forEach(o=>{o.includes(n)&&(o=ci(o,r)),Qe(o)&&!Rf.test(o)&&t.push(o)}),t}function ui(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Ef(li(e))}}}function fi(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),R(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ye(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function ue(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Re(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=ue(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var En=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],pi=["%alpha","<alpha-value>"],Tf=new RegExp(pi.map(e=>le(e)).join("|"),"g");function q(e=""){let t=jf(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(En.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&pi.includes(t)?1:t}function O(e,t){if(typeof e=="string")return e.replace(Tf,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,En.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function jf(e){if(!e)return;let t=zf(e);if(t!=null||(t=Af(e),t!=null)||(t=Of(e),t!=null)||(t=Vf(e),t!=null)||(t=Mf(e),t!=null))return t}function zf(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Af(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Of(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Re(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Pf=new RegExp(`^(${En.join("|")})\\((.+)\\)$`,"i");function Vf(e){let t=e.match(Pf);if(!t)return;let[,r,n]=t,o=di(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Mf(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=di(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function di(e){let t=Re(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Re(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function Qt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var mi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bi=new Uint8Array(64),Ff=new Uint8Array(128);for(let e=0;e<mi.length;e++){let t=mi.charCodeAt(e);bi[e]=t,Ff[t]=e}function rt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(bi[o])}while(n>0);return t}var hi=1024*16,gi=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 r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Tn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(hi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===hi&&(this.out+=gi.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+gi.decode(t.subarray(0,n)):r}};function xi(e){let t=new Tn,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let f=a[l];l>0&&t.write(44),c=rt(t,f[0],c),f.length!==1&&(r=rt(t,f[1],r),n=rt(t,f[2],n),o=rt(t,f[3],o),f.length!==4&&(i=rt(t,f[4],i)))}}return t.flush()}var er=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))}},tr=class e{constructor(t,r,n){this.start=t,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(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 r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,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 r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,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(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.outro.length)return!0}};function _f(){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 Lf=_f(),jn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=xi(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,"+Lf(this.toString())}};function Wf(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.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 a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Uf(e,t){let r=e.split(/[/\\]/),n=t.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 Bf=Object.prototype.toString;function Df(e){return Bf.call(e)==="[object Object]"}function yi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var If=/\w/,zn=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,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
package/core.global.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(()=>{var K="default",z="preflights",je="shortcuts",ke="imports",fe={[ke]:-200,[z]:-100,[je]:-10,[K]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function _e(n){return n.split(pe)}var W={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return _e(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function se(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var G=class extends Set{_map=new Map;constructor(e){if(super(),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 Y(n){return n instanceof G}function Le(n){let e=n.length,t=-1,r,s="",i=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var q=Le;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function ie(n){return n.length===3}function Z(n){return n!=null}function he(){}var J=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),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,r])=>Array.from(r.entries()).map(([s,i])=>e(i,t,s)))}},Q=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function B(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function oe(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>B(e)):[n]:[B(n)]}function De(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function ee(n){return n==null?"":De(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function X(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return X(r)&&X(s)&&Object.keys(s).forEach(f=>{X(r[f])&&X(s[f])||Array.isArray(r[f])&&Array.isArray(s[f])?i[f]=ae(r[f],s[f],t):Object.assign(i,{[f]:s[f]})}),i}function H(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?H(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:H(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?H(r):r;return t}return n}function ge(n){return P(n[0])}function ye(n){return P(n[0])}var te={};function Fe(n=["-",":"]){let e=n.join("|");return te[e]||(te[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),te[e].lastIndex=0,te[e]}function Ie(n,e=["-",":"],t=5){let r=Fe(e),s,i=n.toString(),f=new Set,d=new Map;do s=!1,i=i.replace(r,(o,a,c,h,g)=>{if(!e.includes(c))return o;s=!0,f.add(a+c);let v=g+a.length+c.length+1,T={length:o.length,items:[]};d.set(g,T);for(let b of[...h.matchAll(/\S+/g)]){let $=v+b.index,S=d.get($)?.items;S?d.delete($):S=[{offset:$,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?a:C.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),T.items.push(C)}return"$".repeat(o.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let o=0;for(let[a,c]of d)l+=n.slice(o,a),l+=c.items.map(h=>h.className).join(" "),o=a+c.length;l+=n.slice(o)}else{l=n;for(let[o,a]of d)l.overwrite(o,o+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:d,get expanded(){return l.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ie(n,e,t);return typeof n=="string"?r.expanded:n}var Se=new Set;function be(n){Se.has(n)||(console.warn("[unocss]",n),Se.add(n))}function Re(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ce="_uno_resolved";async function Ke(n){let e=typeof n=="function"?await n():await n;if(Ce in e)return e;e={...e},Object.defineProperty(e,Ce,{value:!0,enumerable:!1});let t=e.shortcuts?Re(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=U(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function Ee(n){let e=await Ke(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(Ee))).flat();return[e,...t]}function Ge(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],f=[];for(let l of n){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&t.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&f.push(l.plain)}let d={pipeline:r?!1:{include:_(Te(...e)),exclude:_(Te(...t))}};return s.length&&(d.filesystem=_(s.flat())),i.length&&(d.inline=_(i.flat())),f.length&&(d.plain=_(f.flat())),d}async function le(n={},e={}){let t=Object.assign({},e,n),r=se((await Promise.all((t.presets||[]).flatMap(U).flatMap(Ee))).flat(),(p,u)=>p.name===u.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],i=[...s,t],f=[...i].reverse(),d=Object.assign({},fe,...i.map(p=>p.layers));function l(p){return _(i.flatMap(u=>U(u[p]||[])))}let o=l("extractors"),a=f.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=W),a&&!o.includes(a)&&o.unshift(a),o.sort((p,u)=>(p.order||0)-(u.order||0));let c=l("rules"),h={},g=c.length,v=c.filter(p=>ge(p)?(U(p[2]?.prefix||"").forEach(m=>{h[m+p[0]]=p}),!1):!0).reverse(),T=He(i.map(p=>p.theme)),b=l("extendTheme");for(let p of b)T=p(T)||T;let $={templates:_(i.flatMap(p=>U(p.autocomplete?.templates))),extractors:i.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,u)=>(p.order||0)-(u.order||0)),shorthands:Be(i.map(p=>p.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let C=l("content"),V=Ge(C),w={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:d,theme:T,rules:c,rulesSize:g,rulesDynamic:v,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:$,variants:l("variants").map(me).sort((p,u)=>(p.order||0)-(u.order||0)),shortcuts:Re(l("shortcuts")).reverse(),extractors:o,safelist:l("safelist"),separators:S,details:t.details??t.envMode==="dev",content:V,transformers:se(l("transformers"),(p,u)=>p.name===u.name)};for(let p of i)p?.configResolved?.(w);return w}function He(n){return n.map(e=>e?H(e):{}).reduce((e,t)=>ae(e,t),{})}function Be(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Te(...n){return n.flatMap(Ne)}function Ne(n){return Array.isArray(n)?n:n?[n]:[]}var ve="66.1.0-beta.6";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=ve;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let f=await i.extract?.(s);if(f)if(Y(f)&&Y(r))for(let d of f)r.setCount(d,r.getCount(d)+f.getCount(d));else for(let d of f)r.add(d)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=e;for(let l of this.config.preprocess)s=l(e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let f=async l=>{let o=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(o.variants=[...l[3]]);let a=await this.expandShortcut(o.currentSelector,o);return a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(h=>this.stringifyUtil(h,o)).filter(Z)},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d?.length)return this.cache.set(r,d),d;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:f=!0,minify:d=!1,extendedInfo:l=!1}=t,o=P(e)?await this.applyExtractors(e,r,l?new G:new Set):Array.isArray(e)?new Set(e):e;if(f){let u={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(u):m).forEach(m=>{o.has(m)||o.add(m)})}let a=d?"":`
1
+ "use strict";(()=>{var K="default",z="preflights",je="shortcuts",ke="imports",fe={[ke]:-200,[z]:-100,[je]:-10,[K]:0};var pe=/[\\:]?[\s'"`;{}]+/g;function _e(n){return n.split(pe)}var W={name:"@unocss/core/extractor-split",order:0,extract({code:n}){return _e(n)}};function U(n=[]){return Array.isArray(n)?n:[n]}function _(n){return Array.from(new Set(n))}function se(n,e){return n.reduce((t,r)=>(t.findIndex(i=>e(r,i))===-1&&t.push(r),t),[])}function P(n){return typeof n=="string"}var G=class extends Set{_map=new Map;constructor(e){if(super(),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 Y(n){return n instanceof G}function Le(n){let e=n.length,t=-1,r,s="",i=n.charCodeAt(0);for(;++t<e;){if(r=n.charCodeAt(t),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||t===0&&r>=48&&r<=57||t===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(t===0&&e===1&&r===45){s+=`\\${n.charAt(t)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=n.charAt(t);continue}s+=`\\${n.charAt(t)}`}return s}var q=Le;function de(){return{events:{},emit(n,...e){(this.events[n]||[]).forEach(t=>t(...e))},on(n,e){return(this.events[n]=this.events[n]||[]).push(e),()=>this.events[n]=(this.events[n]||[]).filter(t=>t!==e)}}}function me(n){return typeof n=="function"?{match:n}:n}function ie(n){return n.length===3}function Z(n){return n!=null}function he(){}var J=class{_map=new Map;get(e,t){let r=this._map.get(e);if(r)return r.get(t)}getFallback(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(t)||s.set(t,r),s.get(t)}set(e,t,r){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.set(t,r),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,r])=>Array.from(r.entries()).map(([s,i])=>e(i,t,s)))}},Q=class extends Map{getFallback(e,t){let r=this.get(e);return r===void 0?(this.set(e,t),t):r}map(e){let t=[];return this.forEach((r,s)=>{t.push(e(r,s))}),t}flatMap(e){let t=[];return this.forEach((r,s)=>{t.push(...e(r,s))}),t}};function B(n){return P(n)?n:(Array.isArray(n)?n:Object.entries(n)).filter(e=>e[1]!=null)}function oe(n){return Array.isArray(n)?n.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?n.map(e=>B(e)):[n]:[B(n)]}function De(n){return n.filter(([e,t],r)=>{if(e.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(n[s][0]===e&&n[s][1]===t)return!1;return!0})}function ee(n){return n==null?"":De(n).map(([e,t])=>t!=null&&typeof t!="function"?`${e}:${t};`:void 0).filter(Boolean).join("")}function X(n){return n&&typeof n=="object"&&!Array.isArray(n)}function ae(n,e,t=!1){let r=n,s=e;if(Array.isArray(s))return t&&Array.isArray(s)?[...r,...s]:[...s];let i={...r};return X(r)&&X(s)&&Object.keys(s).forEach(f=>{X(r[f])&&X(s[f])||Array.isArray(r[f])&&Array.isArray(s[f])?i[f]=ae(r[f],s[f],t):Object.assign(i,{[f]:s[f]})}),i}function H(n){let e,t,r;if(Array.isArray(n)){for(t=Array.from({length:e=n.length});e--;)t[e]=(r=n[e])&&typeof r=="object"?H(r):r;return t}if(Object.prototype.toString.call(n)==="[object Object]"){t={};for(e in n)e==="__proto__"?Object.defineProperty(t,e,{value:H(n[e]),configurable:!0,enumerable:!0,writable:!0}):t[e]=(r=n[e])&&typeof r=="object"?H(r):r;return t}return n}function ge(n){return P(n[0])}function ye(n){return P(n[0])}var te={};function Fe(n=["-",":"]){let e=n.join("|");return te[e]||(te[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),te[e].lastIndex=0,te[e]}function Ie(n,e=["-",":"],t=5){let r=Fe(e),s,i=n.toString(),f=new Set,d=new Map;do s=!1,i=i.replace(r,(o,a,c,h,g)=>{if(!e.includes(c))return o;s=!0,f.add(a+c);let v=g+a.length+c.length+1,T={length:o.length,items:[]};d.set(g,T);for(let b of[...h.matchAll(/\S+/g)]){let $=v+b.index,S=d.get($)?.items;S?d.delete($):S=[{offset:$,length:b[0].length,className:b[0]}];for(let C of S)C.className=C.className==="~"?a:C.className.replace(/^(!?)(.*)/,`$1${a}${c}$2`),T.items.push(C)}return"$".repeat(o.length)}),t-=1;while(s&&t);let l;if(typeof n=="string"){l="";let o=0;for(let[a,c]of d)l+=n.slice(o,a),l+=c.items.map(h=>h.className).join(" "),o=a+c.length;l+=n.slice(o)}else{l=n;for(let[o,a]of d)l.overwrite(o,o+a.length,a.items.map(c=>c.className).join(" "))}return{prefixes:Array.from(f),hasChanged:s,groupsByOffset:d,get expanded(){return l.toString()}}}function xe(n,e=["-",":"],t=5){let r=Ie(n,e,t);return typeof n=="string"?r.expanded:n}var Se=new Set;function be(n){Se.has(n)||(console.warn("[unocss]",n),Se.add(n))}function Re(n){return U(n).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ce="_uno_resolved";async function Ke(n){let e=typeof n=="function"?await n():await n;if(Ce in e)return e;e={...e},Object.defineProperty(e,Ce,{value:!0,enumerable:!1});let t=e.shortcuts?Re(e.shortcuts):void 0;if(e.shortcuts=t,e.prefix||e.layer){let r=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=U(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};t?.forEach(r),e.rules?.forEach(r)}return e}async function Ee(n){let e=await Ke(n);if(!e.presets)return[e];let t=(await Promise.all((e.presets||[]).flatMap(U).flatMap(Ee))).flat();return[e,...t]}function Ge(n){if(n.length===0)return{};let e=[],t=[],r=!1,s=[],i=[],f=[];for(let l of n){if(l.pipeline===!1){r=!0;break}else l.pipeline?.include&&e.push(l.pipeline.include),l.pipeline?.exclude&&t.push(l.pipeline.exclude);l.filesystem&&s.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&f.push(l.plain)}let d={pipeline:r?!1:{include:_(Te(...e)),exclude:_(Te(...t))}};return s.length&&(d.filesystem=_(s.flat())),i.length&&(d.inline=_(i.flat())),f.length&&(d.plain=_(f.flat())),d}async function le(n={},e={}){let t=Object.assign({},e,n),r=se((await Promise.all((t.presets||[]).flatMap(U).flatMap(Ee))).flat(),(p,u)=>p.name===u.name),s=[...r.filter(p=>p.enforce==="pre"),...r.filter(p=>!p.enforce),...r.filter(p=>p.enforce==="post")],i=[...s,t],f=[...i].reverse(),d=Object.assign({},fe,...i.map(p=>p.layers));function l(p){return _(i.flatMap(u=>U(u[p]||[])))}let o=l("extractors"),a=f.find(p=>p.extractorDefault!==void 0)?.extractorDefault;a===void 0&&(a=W),a&&!o.includes(a)&&o.unshift(a),o.sort((p,u)=>(p.order||0)-(u.order||0));let c=l("rules"),h={},g=c.length,v=c.filter(p=>ge(p)?(U(p[2]?.prefix||"").forEach(m=>{h[m+p[0]]=p}),!1):!0).reverse(),T=He(i.map(p=>p.theme)),b=l("extendTheme");for(let p of b)T=p(T)||T;let $={templates:_(i.flatMap(p=>U(p.autocomplete?.templates))),extractors:i.flatMap(p=>U(p.autocomplete?.extractors)).sort((p,u)=>(p.order||0)-(u.order||0)),shorthands:Be(i.map(p=>p.autocomplete?.shorthands||{}))},S=l("separators");S.length||(S=[":","-"]);let C=l("content"),V=Ge(C),w={mergeSelectors:!0,warn:!0,sortLayers:p=>p,...t,blocklist:l("blocklist"),presets:s,envMode:t.envMode||"build",shortcutsLayer:t.shortcutsLayer||"shortcuts",layers:d,theme:T,rules:c,rulesSize:g,rulesDynamic:v,rulesStaticMap:h,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:$,variants:l("variants").map(me).sort((p,u)=>(p.order||0)-(u.order||0)),shortcuts:Re(l("shortcuts")).reverse(),extractors:o,safelist:l("safelist"),separators:S,details:t.details??t.envMode==="dev",content:V,transformers:se(l("transformers"),(p,u)=>p.name===u.name)};for(let p of i)p?.configResolved?.(w);return w}function He(n){return n.map(e=>e?H(e):{}).reduce((e,t)=>ae(e,t),{})}function Be(n){return n.reduce((e,t)=>{let r={};for(let s in t){let i=t[s];Array.isArray(i)?r[s]=`(${i.join("|")})`:r[s]=i}return{...e,...r}},{})}function Te(...n){return n.flatMap(Ne)}function Ne(n){return Array.isArray(n)?n:n?[n]:[]}var ve="66.1.0-beta.7";var I={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},ce=class n{constructor(e={},t={}){this.userConfig=e;this.defaults=t}version=ve;events=de();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},t={}){let r=new n(e,t);return r.config=await le(r.userConfig,r.defaults),r.events.emit("config",r.config),r}async setConfig(e,t){e&&(t&&(this.defaults=t),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await le(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,t,r=new Set){let s={original:e,code:e,id:t,extracted:r,envMode:this.config.envMode};for(let i of this.config.extractors){let f=await i.extract?.(s);if(f)if(Y(f)&&Y(r))for(let d of f)r.setCount(d,r.getCount(d)+f.getCount(d));else for(let d of f)r.add(d)}return r}makeContext(e,t){let r={rawSelector:e,currentSelector:t[1],theme:this.config.theme,generator:this,symbols:I,variantHandlers:t[2],constructCSS:(...s)=>this.constructCustomCSS(r,...s),variantMatch:t};return r}async parseToken(e,t){if(this.blocked.has(e))return;let r=`${e}${t?` ${t}`:""}`;if(this.cache.has(r))return this.cache.get(r);let s=e;for(let l of this.config.preprocess)s=l(e);if(this.isBlocked(s)){this.blocked.add(e),this.cache.set(r,null);return}let i=await this.matchVariants(e,s);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(e),this.cache.set(r,null);return}let f=async l=>{let o=this.makeContext(e,[t||l[0],l[1],l[2],l[3]]);this.config.details&&(o.variants=[...l[3]]);let a=await this.expandShortcut(o.currentSelector,o);return a?await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]):(await this.parseUtil(o.variantMatch,o))?.map(h=>this.stringifyUtil(h,o)).filter(Z)},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d?.length)return this.cache.set(r,d),d;this.cache.set(r,null)}async generate(e,t={}){let{id:r,scope:s,preflights:i=!0,safelist:f=!0,minify:d=!1,extendedInfo:l=!1}=t,o=P(e)?await this.applyExtractors(e,r,l?new G:new Set):Array.isArray(e)?new Set(e):e;if(f){let u={generator:this,theme:this.config.theme};this.config.safelist.flatMap(m=>typeof m=="function"?m(u):m).forEach(m=>{o.has(m)||o.add(m)})}let a=d?"":`
2
2
  `,c=new Set([K]),h=l?new Map:new Set,g=new Map,v={},T=Array.from(o).map(async u=>{if(h.has(u))return;let m=await this.parseToken(u);if(m!=null){h instanceof Map?h.set(u,{data:m,count:Y(o)?o.getCount(u):-1}):h.add(u);for(let x of m){let j=x[3]||"",k=x[4]?.layer;g.has(j)||g.set(j,[]),g.get(j).push(x),k&&c.add(k)}}});await Promise.all(T),await(async()=>{if(!i)return;let u={generator:this,theme:this.config.theme},m=new Set([]);this.config.preflights.forEach(({layer:x=z})=>{c.add(x),m.add(x)}),v=Object.fromEntries(await Promise.all(Array.from(m).map(async x=>{let k=(await Promise.all(this.config.preflights.filter(L=>(L.layer||z)===x).map(async L=>await L.getCSS(u)))).filter(Boolean).join(a);return[x,k]})))})();let b=this.config.sortLayers(Array.from(c).sort((u,m)=>(this.config.layers[u]??0)-(this.config.layers[m]??0)||u.localeCompare(m))),$={},S=this.config.outputToCssLayers,C=u=>{let m=u;return typeof S=="object"&&(m=S.cssLayerName?.(u)),m===null?null:m??u},V=(u=K)=>{if($[u])return $[u];let m=Array.from(g).sort((k,L)=>(this.parentOrders.get(k[0])??0)-(this.parentOrders.get(L[0])??0)||k[0]?.localeCompare(L[0]||"")||0).map(([k,L])=>{let y=L.length,E=L.filter(R=>(R[4]?.layer||K)===u).sort((R,O)=>R[0]-O[0]||(R[4]?.sort||0)-(O[4]?.sort||0)||R[5]?.currentSelector?.localeCompare(O[5]?.currentSelector??"")||R[1]?.localeCompare(O[1]||"")||R[2]?.localeCompare(O[2]||"")||0).map(([,R,O,,N,,ne])=>[[[(R&&Ye(R,s))??"",N?.sort??0]],O,!!(ne??N?.noMerge)]);if(!E.length)return;let A=E.reverse().map(([R,O,N],ne)=>{if(!N&&this.config.mergeSelectors)for(let F=ne+1;F<y;F++){let D=E[F];if(D&&!D[2]&&(R&&D[0]||R==null&&D[0]==null)&&D[1]===O)return R&&D[0]&&D[0].push(...R),null}let re=R?_(R.sort((F,D)=>F[1]-D[1]||F[0]?.localeCompare(D[0]||"")||0).map(F=>F[0]).filter(Boolean)):[];return re.length?`${re.join(`,${a}`)}{${O}}`:O}).filter(Boolean).reverse().join(a);if(!k)return A;let M=k.split(" $$ ");return`${M.join("{")}{${a}${A}${a}${"}".repeat(M.length)}`}).filter(Boolean).join(a);i&&(m=[v[u],m].filter(Boolean).join(a));let x;S&&m&&(x=C(u),x!==null&&(m=`@layer ${x}{${a}${m}${a}}`));let j=d?"":`/* layer: ${u}${x&&x!==u?`, alias: ${x}`:""} */${a}`;return $[u]=m?j+m:""},w=(u=b,m)=>{let x=u.filter(j=>!m?.includes(j));return[S&&x.length>0?`@layer ${x.map(C).filter(Z).join(", ")};`:void 0,...x.map(j=>V(j)||"")].filter(Boolean).join(a)};return{get css(){return w()},layers:b,matched:h,getLayers:w,getLayer:V,setLayer:async(u,m)=>{let x=await m(V(u));return $[u]=x,x}}}async matchVariants(e,t){let r={rawSelector:e,theme:this.config.theme,generator:this},s=async i=>{let f=!0,[,,d,l]=i;for(;f;){f=!1;let o=i[1];for(let a of this.config.variants){if(!a.multiPass&&l.has(a))continue;let c=await a.match(o,r);if(c){if(P(c)){if(c===o)continue;c={matcher:c}}if(Array.isArray(c)){if(!c.length)continue;if(c.length===1)c=c[0];else{if(a.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=c.map(g=>{let v=g.matcher??o,T=[g,...d],b=new Set(l);return b.add(a),[i[0],v,T,b]});return(await Promise.all(h.map(g=>s(g)))).flat()}}i[1]=c.matcher??o,d.unshift(c),l.add(a),f=!0;break}}if(!f)break;if(d.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await s([e,t||e,[],new Set])}applyVariants(e,t=e[4],r=e[1]){let i=t.slice().sort((o,a)=>(o.order||0)-(a.order||0)).reduceRight((o,a)=>c=>{let h=a.body?.(c.entries)||c.entries,g=Array.isArray(a.parent)?a.parent:[a.parent,void 0];return(a.handle??Ze)({...c,entries:h,selector:a.selector?.(c.selector,h)||c.selector,parent:g[0]||c.parent,parentOrder:g[1]||c.parentOrder,layer:a.layer||c.layer,sort:a.sort||c.sort},o)},o=>o)({prefix:"",selector:qe(r),pseudo:"",entries:e[2]}),{parent:f,parentOrder:d}=i;f!=null&&d!=null&&this.parentOrders.set(f,d);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:f,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let o of this.config.postprocess)o(l);return l}constructCustomCSS(e,t,r){let s=B(t);if(P(s))return s;let{selector:i,entries:f,parent:d}=this.applyVariants([0,r||e.rawSelector,s,void 0,e.variantHandlers]),l=`${i}{${ee(f)}}`;return d?`${d}{${l}}`:l}async parseUtil(e,t,r=!1,s){let i=P(e)?await this.matchVariants(e):[e],f=async([l,o,a])=>{this.config.details&&(t.rules=t.rules??[]);let c=this.config.rulesStaticMap[o];if(c&&c[1]&&(r||!c[2]?.internal)){this.config.details&&t.rules.push(c);let g=this.config.rules.indexOf(c),v=oe(c[1]).filter(b=>b.length),T=c[2];if(v.length)return t.generator.activatedRules.add(c),v.map(b=>P(b)?[g,b,T]:[g,l,b,T,a])}t.variantHandlers=a;let{rulesDynamic:h}=this.config;for(let g of h){let[v,T,b]=g;if(b?.internal&&!r)continue;let $=o;if(b?.prefix){let w=U(b.prefix);if(s){let p=U(s);if(!w.some(u=>p.includes(u)))continue}else{let p=w.find(u=>o.startsWith(u));if(p==null)continue;$=o.slice(p.length)}}let S=$.match(v);if(!S)continue;let C=await T(S,t);if(!C)continue;if(this.config.details&&t.rules.push(g),typeof C!="string")if(Symbol.asyncIterator in C){let w=[];for await(let p of C)p&&w.push(p);C=w}else Symbol.iterator in C&&!Array.isArray(C)&&(C=Array.from(C).filter(Z));let V=oe(C).filter(w=>w.length);if(V.length){t.generator.activatedRules.add(g);let w=this.config.rules.indexOf(g);return V.map(p=>{if(P(p))return[w,p,b];let u=a,m=b;for(let x of p)x[0]===I.variants?u=[...U(x[1]),...u]:x[0]===I.parent?u=[{parent:x[1]},...u]:x[0]===I.selector?u=[{selector:x[1]},...u]:x[0]===I.layer?u=[{layer:x[1]},...u]:x[0]===I.sort&&(m={...m,sort:x[1]});return[w,l,p,m,u]})}}},d=(await Promise.all(i.map(l=>f(l)))).flat().filter(l=>!!l);if(d.length)return d}stringifyUtil(e,t){if(!e)return;if(ie(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?t:void 0,void 0];let{selector:r,entries:s,parent:i,layer:f,sort:d,noMerge:l}=this.applyVariants(e),o=ee(s);if(!o)return;let{layer:a,sort:c,...h}=e[3]??{},g={...h,layer:f??a,sort:d??c};return[e[0],r,o,i,g,this.config.details?t:void 0,l]}async expandShortcut(e,t,r=5){if(r===0)return;let s=this.config.details?o=>{t.shortcuts=t.shortcuts??[],t.shortcuts.push(o)}:he,i,f,d,l;for(let o of this.config.shortcuts){let a=e;if(o[2]?.prefix){let h=U(o[2].prefix).find(g=>e.startsWith(g));if(h==null)continue;a=e.slice(h.length)}if(ye(o)){if(o[0]===a){i=i||o[2],f=o[1],s(o);break}}else{let c=a.match(o[0]);if(c&&(f=o[1](c,t)),f){i=i||o[2],s(o);break}}}if(f&&(d=_(U(f).filter(P).map(o=>xe(o.trim()).split(/\s+/g)).flat()),l=U(f).filter(o=>!P(o)).map(o=>({handles:[],value:o}))),!f){let o=P(e)?await this.matchVariants(e):[e];for(let a of o){let[c,h,g]=a;if(c!==h){let v=await this.expandShortcut(h,t,r-1);v&&(d=v[0].filter(P).map(T=>c.replace(h,T)),l=v[0].filter(T=>!P(T)).map(T=>({handles:[...T.handles,...g],value:T.value})))}}}if(!(!d?.length&&!l?.length))return[[await Promise.all(U(d).map(async o=>(await this.expandShortcut(o,t,r-1))?.[0]||[o])),l].flat(2).filter(o=>!!o),i]}async stringifyShortcuts(e,t,r,s={layer:this.config.shortcutsLayer}){let i=new Q,f=(await Promise.all(_(r).map(async a=>{let c=P(a)?await this.parseUtil(a,t,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",B(a.value),void 0,a.handles]];return!c&&this.config.warn&&be(`unmatched utility "${a}" in shortcut "${e[1]}"`),c||[]}))).flat(1).filter(Boolean).sort((a,c)=>a[0]-c[0]),[d,,l]=e,o=[];for(let a of f){if(ie(a)){o.push([a[0],void 0,a[1],void 0,a[2],t,void 0]);continue}let{selector:c,entries:h,parent:g,sort:v,noMerge:T,layer:b}=this.applyVariants(a,[...a[4],...l],d);i.getFallback(b??s.layer,new J).getFallback(c,g,[[],a[0]])[0].push([h,!!(T??a[3]?.noMerge),v??0])}return o.concat(i.flatMap((a,c)=>a.map(([h,g],v,T)=>{let b=(S,C,V)=>{let w=Math.max(...V.map(u=>u[1])),p=V.map(u=>u[0]);return(S?[p.flat(1)]:p).map(u=>{let m=ee(u);if(m)return[g,v,m,T,{...s,noMerge:C,sort:w,layer:c},t,void 0]})};return[[h.filter(([,S])=>S).map(([S,,C])=>[S,C]),!0],[h.filter(([,S])=>!S).map(([S,,C])=>[S,C]),!1]].map(([S,C])=>[...b(!1,C,S.filter(([V])=>V.some(w=>w[0]===I.shortcutsNoMerge))),...b(!0,C,S.filter(([V])=>V.every(w=>w[0]!==I.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(t=>Array.isArray(t)?t[0]:t).some(t=>typeof t=="function"?t(e):P(t)?t===e:t.test(e))}getBlocked(e){let t=this.config.blocklist.find(r=>{let s=Array.isArray(r)?r[0]:r;return typeof s=="function"?s(e):P(s)?s===e:s.test(e)});return t?Array.isArray(t)?t:[t,void 0]:void 0}};async function Ae(n,e){return await ce.create(n,e)}var Me=/\s\$\$\s+/g;function We(n){return Me.test(n)}function Ye(n,e){return We(n)?n.replace(Me,e?` ${e} `:" "):e?`${e} ${n}`:n}var we=/^\[(.+?)(~?=)"(.*)"\]$/;function qe(n){return we.test(n)?n.replace(we,(e,t,r,s)=>`[${q(t)}${r}"${q(s)}"]`):`.${q(n)}`}function Ze(n,e){return e(n)}function Je(n){return n.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():"")}function Pe(n){return n.charAt(0).toUpperCase()+n.slice(1)}function Ue(n){return n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Ve=["Webkit","Moz","ms"];function $e(n){let e={};function t(r){let s=e[r];if(s)return s;let i=Je(r);if(i!=="filter"&&i in n)return e[r]=Ue(i);i=Pe(i);for(let f=0;f<Ve.length;f++){let d=`${Ve[f]}${i}`;if(d in n)return e[r]=Ue(Pe(d))}return r}return({entries:r})=>r.forEach(s=>{s[0].startsWith("--")||(s[0]=t(s[0]))})}function Oe(n){return n.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function ue(n={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,t=window.document,r=()=>t.documentElement,s=e.__unocss||{},i=Object.assign({},n,s.runtime),f=i.defaults||{},d=i.cloakAttribute??"un-cloak";i.autoPrefix&&(f.postprocess=U(f.postprocess)).unshift($e(t.createElement("div").style)),i.configResolved?.(s,f);let l=await Ae(s,f),o=y=>i.inject?i.inject(y):r().prepend(y),a=()=>i.rootElement?i.rootElement():t.body,c=new Map,h=!0,g=new Set,v,T,b=[],$=()=>new Promise(y=>{b.push(y),T!=null&&clearTimeout(T),T=setTimeout(()=>V().then(()=>{let E=b;b=[],E.forEach(A=>A())}),0)});function S(y,E=!1){if(y.nodeType!==1)return;let A=y;A.hasAttribute(d)&&A.removeAttribute(d),E&&A.querySelectorAll(`[${d}]`).forEach(M=>{M.removeAttribute(d)})}function C(y,E){let A=c.get(y);if(!A)if(A=t.createElement("style"),A.setAttribute("data-unocss-runtime-layer",y),c.set(y,A),E==null)o(A);else{let M=C(E),R=M.parentNode;R?R.insertBefore(A,M.nextSibling):o(A)}return A}async function V(){let y=[...g],E=await l.generate(y);return E.layers.reduce((M,R)=>(C(R,M).innerHTML=E.getLayer(R)??"",R),void 0),y.filter(M=>!E.matched.has(M)).forEach(M=>g.delete(M)),{...E,getStyleElement:M=>c.get(M),getStyleElements:()=>c}}async function w(y){let E=g.size;await l.applyExtractors(y,void 0,g),E!==g.size&&await $()}async function p(y=a()){let E=y&&y.outerHTML;E&&(await w(`${E} ${Oe(E)}`),S(r()),S(y,!0))}let u=new MutationObserver(y=>{h||y.forEach(async E=>{if(E.target.nodeType!==1)return;let A=E.target;for(let M of c)if(A===M[1])return;if(E.type==="childList")E.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let R=M;v&&!v(R)||(await w(R.outerHTML),S(R))});else{if(v&&!v(A))return;if(E.attributeName!==d){let M=Array.from(A.attributes).map(O=>O.value?`${O.name}="${O.value}"`:O.name).join(" "),R=`<${A.tagName.toLowerCase()} ${M}>`;await w(R)}S(A)}})}),m=!1;function x(){if(m)return;let y=i.observer?.target?i.observer.target():a();y&&(u.observe(y,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),m=!0)}function j(){i.bypassDefined&&Qe(l.blocked),p(),x()}function k(){t.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}let L=e.__unocss_runtime=e.__unocss_runtime={version:l.version,uno:l,async extract(y){P(y)||(y.forEach(E=>g.add(E)),y=""),await w(y)},extractAll:p,inspect(y){v=y},toggleObserver(y){y===void 0?h=!h:h=!!y,!m&&!h&&k()},update:V,presets:e.__unocss_runtime?.presets??{}};i.ready?.(L)!==!1&&(h=!1,k())}function Qe(n=new Set){for(let e=0;e<document.styleSheets.length;e++){let t=document.styleSheets[e],r;try{if(r=t.cssRules||t.rules,!r)continue;Array.from(r).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),n.add(s))})}catch{continue}}return n}ue();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var af=Object.defineProperty;var lf=(e,t)=>{for(var r in t)af(e,r,{get:t[r],enumerable:!0})};var Ze="default",It="preflights",cf="shortcuts",uf="imports",No={[uf]:-200,[It]:-100,[cf]:-10,[Ze]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function ff(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return ff(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function vn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Ht(e){return e instanceof Je}function ce(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var qt=Q;function Do(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var pf=/^\[(.+?)~?="(.*)"\]$/;var df=/[\w\u00A0-\uFFFF%-?]/;function Io(e){return e.match(pf)}function Qe(e=""){return df.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Yt(e){return e!=null}function Go(){}var Xt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Zt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function tt(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function kn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function mf(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":mf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Jt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function rt(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Jt(n)&&Jt(o)&&Object.keys(o).forEach(s=>{Jt(n[s])&&Jt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=rt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Ho(e){return M(e[0])}function qo(e){return M(e[0])}var Qt={};function hf(e=["-",":"]){let t=e.join("|");return Qt[t]||(Qt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Qt[t].lastIndex=0,Qt[t]}function gf(e,t=["-",":"],r=5){let n=hf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,m,h)=>{if(!t.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:c.length,items:[]};a.set(h,b);for(let x of[...m.matchAll(/\S+/g)]){let w=g+x.index,v=a.get(w)?.items;v?a.delete(w):v=[{offset:w,length:x[0].length,className:x[0]}];for(let k of v)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(k)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,p]of a)l+=e.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=e.slice(c)}else{l=e;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Yo(e,t=["-",":"],r=5){let n=gf(e,t,r);return typeof e=="string"?n.expanded:e}var Xo=new Set;function Zo(e){Xo.has(e)||(console.warn("[unocss]",e),Xo.add(e))}function ei(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Jo="_uno_resolved";async function bf(e){let t=typeof e=="function"?await e():await e;if(Jo in t)return t;t={...t},Object.defineProperty(t,Jo,{value:!0,enumerable:!1});let r=t.shortcuts?ei(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=R(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ti(e){let t=await bf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(ti))).flat();return[t,...r]}function xf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(Qo(...t)),exclude:ne(Qo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=vn((await Promise.all((r.presets||[]).flatMap(R).flatMap(ti))).flat(),($,y)=>$.name===y.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},No,...i.map($=>$.layers));function l($){return ne(i.flatMap(y=>R(y[$]||[])))}let c=l("extractors"),f=s.find($=>$.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!c.includes(f)&&c.unshift(f),c.sort(($,y)=>($.order||0)-(y.order||0));let p=l("rules"),m={},h=p.length,g=p.filter($=>Ho($)?(R($[2]?.prefix||"").forEach(C=>{m[C+$[0]]=$}),!1):!0).reverse(),b=yf(i.map($=>$.theme)),x=l("extendTheme");for(let $ of x)b=$(b)||b;let w={templates:ne(i.flatMap($=>R($.autocomplete?.templates))),extractors:i.flatMap($=>R($.autocomplete?.extractors)).sort(($,y)=>($.order||0)-(y.order||0)),shorthands:$f(i.map($=>$.autocomplete?.shorthands||{}))},v=l("separators");v.length||(v=[":","-"]);let k=l("content"),N=xf(k),j={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:w,variants:l("variants").map(Ko).sort(($,y)=>($.order||0)-(y.order||0)),shortcuts:ei(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:v,details:r.details??r.envMode==="dev",content:N,transformers:vn(l("transformers"),($,y)=>$.name===y.name)};for(let $ of i)$?.configResolved?.(j);return j}function yf(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>rt(t,r),{})}function $f(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Qo(...e){return e.flatMap(vf)}function vf(e){return Array.isArray(e)?e:e?[e]:[]}var ri="66.1.0-beta.6";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ri;events=Do();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Ht(s)&&Ht(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[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))?.map(m=>this.stringifyUtil(m,c)).filter(Yt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=M(t)?await this.applyExtractors(t,n,l?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let y={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(y):C).forEach(C=>{c.has(C)||c.add(C)})}let f=a?"":`
1
+ "use strict";(()=>{var af=Object.defineProperty;var lf=(e,t)=>{for(var r in t)af(e,r,{get:t[r],enumerable:!0})};var Ze="default",It="preflights",cf="shortcuts",uf="imports",No={[uf]:-200,[It]:-100,[cf]:-10,[Ze]:0};var Kt=/[\\:]?[\s'"`;{}]+/g;function ff(e){return e.split(Kt)}var Gt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return ff(e)}};function R(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function vn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Ht(e){return e instanceof Je}function ce(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var qt=Q;function Do(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var pf=/^\[(.+?)~?="(.*)"\]$/;var df=/[\w\u00A0-\uFFFF%-?]/;function Io(e){return e.match(pf)}function Qe(e=""){return df.test(e)}function Ko(e){return typeof e=="function"?{match:e}:e}function wn(e){return e.length===3}function Yt(e){return e!=null}function Go(){}var Xt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Zt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function tt(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function kn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>tt(t)):[e]:[tt(e)]}function mf(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function We(e){return e==null?"":mf(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Jt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function rt(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Jt(n)&&Jt(o)&&Object.keys(o).forEach(s=>{Jt(n[s])&&Jt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=rt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function et(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:et(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?et(n):n;return r}return e}function Ho(e){return M(e[0])}function qo(e){return M(e[0])}var Qt={};function hf(e=["-",":"]){let t=e.join("|");return Qt[t]||(Qt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Qt[t].lastIndex=0,Qt[t]}function gf(e,t=["-",":"],r=5){let n=hf(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(c,f,p,m,h)=>{if(!t.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,b={length:c.length,items:[]};a.set(h,b);for(let x of[...m.matchAll(/\S+/g)]){let w=g+x.index,v=a.get(w)?.items;v?a.delete(w):v=[{offset:w,length:x[0].length,className:x[0]}];for(let k of v)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),b.items.push(k)}return"$".repeat(c.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let c=0;for(let[f,p]of a)l+=e.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=e.slice(c)}else{l=e;for(let[c,f]of a)l.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return l.toString()}}}function Yo(e,t=["-",":"],r=5){let n=gf(e,t,r);return typeof e=="string"?n.expanded:e}var Xo=new Set;function Zo(e){Xo.has(e)||(console.warn("[unocss]",e),Xo.add(e))}function ei(e){return R(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Jo="_uno_resolved";async function bf(e){let t=typeof e=="function"?await e():await e;if(Jo in t)return t;t={...t},Object.defineProperty(t,Jo,{value:!0,enumerable:!1});let r=t.shortcuts?ei(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=R(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function ti(e){let t=await bf(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(R).flatMap(ti))).flat();return[t,...r]}function xf(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let l of e){if(l.pipeline===!1){n=!0;break}else l.pipeline?.include&&t.push(l.pipeline.include),l.pipeline?.exclude&&r.push(l.pipeline.exclude);l.filesystem&&o.push(l.filesystem),l.inline&&i.push(l.inline),l.plain&&s.push(l.plain)}let a={pipeline:n?!1:{include:ne(Qo(...t)),exclude:ne(Qo(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function Sn(e={},t={}){let r=Object.assign({},t,e),n=vn((await Promise.all((r.presets||[]).flatMap(R).flatMap(ti))).flat(),($,y)=>$.name===y.name),o=[...n.filter($=>$.enforce==="pre"),...n.filter($=>!$.enforce),...n.filter($=>$.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},No,...i.map($=>$.layers));function l($){return ne(i.flatMap(y=>R(y[$]||[])))}let c=l("extractors"),f=s.find($=>$.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Gt),f&&!c.includes(f)&&c.unshift(f),c.sort(($,y)=>($.order||0)-(y.order||0));let p=l("rules"),m={},h=p.length,g=p.filter($=>Ho($)?(R($[2]?.prefix||"").forEach(C=>{m[C+$[0]]=$}),!1):!0).reverse(),b=yf(i.map($=>$.theme)),x=l("extendTheme");for(let $ of x)b=$(b)||b;let w={templates:ne(i.flatMap($=>R($.autocomplete?.templates))),extractors:i.flatMap($=>R($.autocomplete?.extractors)).sort(($,y)=>($.order||0)-(y.order||0)),shorthands:$f(i.map($=>$.autocomplete?.shorthands||{}))},v=l("separators");v.length||(v=[":","-"]);let k=l("content"),N=xf(k),j={mergeSelectors:!0,warn:!0,sortLayers:$=>$,...r,blocklist:l("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:w,variants:l("variants").map(Ko).sort(($,y)=>($.order||0)-(y.order||0)),shortcuts:ei(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:v,details:r.details??r.envMode==="dev",content:N,transformers:vn(l("transformers"),($,y)=>$.name===y.name)};for(let $ of i)$?.configResolved?.(j);return j}function yf(e){return e.map(t=>t?et(t):{}).reduce((t,r)=>rt(t,r),{})}function $f(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function Qo(...e){return e.flatMap(vf)}function vf(e){return Array.isArray(e)?e:e?[e]:[]}var ri="66.1.0-beta.7";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},Cn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=ri;events=Do();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await Sn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await Sn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Ht(s)&&Ht(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let l of this.config.preprocess)o=l(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(l=>!l||this.isBlocked(l[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async l=>{let c=this.makeContext(t,[r||l[0],l[1],l[2],l[3]]);this.config.details&&(c.variants=[...l[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))?.map(m=>this.stringifyUtil(m,c)).filter(Yt)},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=M(t)?await this.applyExtractors(t,n,l?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let y={generator:this,theme:this.config.theme};this.config.safelist.flatMap(C=>typeof C=="function"?C(y):C).forEach(C=>{c.has(C)||c.add(C)})}let f=a?"":`
2
2
  `,p=new Set([Ze]),m=l?new Map:new Set,h=new Map,g={},b=Array.from(c).map(async y=>{if(m.has(y))return;let C=await this.parseToken(y);if(C!=null){m instanceof Map?m.set(y,{data:C,count:Ht(c)?c.getCount(y):-1}):m.add(y);for(let T of C){let Z=T[3]||"",J=T[4]?.layer;h.has(Z)||h.set(Z,[]),h.get(Z).push(T),J&&p.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let y={generator:this,theme:this.config.theme},C=new Set([]);this.config.preflights.forEach(({layer:T=It})=>{p.add(T),C.add(T)}),g=Object.fromEntries(await Promise.all(Array.from(C).map(async T=>{let J=(await Promise.all(this.config.preflights.filter(le=>(le.layer||It)===T).map(async le=>await le.getCSS(y)))).filter(Boolean).join(f);return[T,J]})))})();let x=this.config.sortLayers(Array.from(p).sort((y,C)=>(this.config.layers[y]??0)-(this.config.layers[C]??0)||y.localeCompare(C))),w={},v=this.config.outputToCssLayers,k=y=>{let C=y;return typeof v=="object"&&(C=v.cssLayerName?.(y)),C===null?null:C??y},N=(y=Ze)=>{if(w[y])return w[y];let C=Array.from(h).sort((J,le)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(le[0])??0)||J[0]?.localeCompare(le[0]||"")||0).map(([J,le])=>{let E=le.length,P=le.filter(A=>(A[4]?.layer||Ze)===y).sort((A,X)=>A[0]-X[0]||(A[4]?.sort||0)-(X[4]?.sort||0)||A[5]?.currentSelector?.localeCompare(X[5]?.currentSelector??"")||A[1]?.localeCompare(X[1]||"")||A[2]?.localeCompare(X[2]||"")||0).map(([,A,X,,Dt,,yn])=>[[[(A&&Sf(A,o))??"",Dt?.sort??0]],X,!!(yn??Dt?.noMerge)]);if(!P.length)return;let L=P.reverse().map(([A,X,Dt],yn)=>{if(!Dt&&this.config.mergeSelectors)for(let Se=yn+1;Se<E;Se++){let de=P[Se];if(de&&!de[2]&&(A&&de[0]||A==null&&de[0]==null)&&de[1]===X)return A&&de[0]&&de[0].push(...A),null}let $n=A?ne(A.sort((Se,de)=>Se[1]-de[1]||Se[0]?.localeCompare(de[0]||"")||0).map(Se=>Se[0]).filter(Boolean)):[];return $n.length?`${$n.join(`,${f}`)}{${X}}`:X}).filter(Boolean).reverse().join(f);if(!J)return L;let D=J.split(" $$ ");return`${D.join("{")}{${f}${L}${f}${"}".repeat(D.length)}`}).filter(Boolean).join(f);i&&(C=[g[y],C].filter(Boolean).join(f));let T;v&&C&&(T=k(y),T!==null&&(C=`@layer ${T}{${f}${C}${f}}`));let Z=a?"":`/* layer: ${y}${T&&T!==y?`, alias: ${T}`:""} */${f}`;return w[y]=C?Z+C:""},j=(y=x,C)=>{let T=y.filter(Z=>!C?.includes(Z));return[v&&T.length>0?`@layer ${T.map(k).filter(Yt).join(", ")};`:void 0,...T.map(Z=>N(Z)||"")].filter(Boolean).join(f)};return{get css(){return j()},layers:x,matched:m,getLayers:j,getLayer:N,setLayer:async(y,C)=>{let T=await C(N(y));return w[y]=T,T}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,l]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&l.has(f))continue;let p=await f.match(c,n);if(p){if(M(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let m=p.map(h=>{let g=h.matcher??c,b=[h,...a],x=new Set(l);return x.add(f),[i[0],g,b,x]});return(await Promise.all(m.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,a.unshift(p),l.add(f),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let m=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Cf)({...p,entries:m,selector:f.selector?.(p.selector,m)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Rn(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(t,r,n){let o=tt(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${We(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([l,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),g=kn(p[1]).filter(x=>x.length),b=p[2];if(g.length)return r.generator.activatedRules.add(p),g.map(x=>M(x)?[h,x,b]:[h,l,x,b,f])}r.variantHandlers=f;let{rulesDynamic:m}=this.config;for(let h of m){let[g,b,x]=h;if(x?.internal&&!n)continue;let w=c;if(x?.prefix){let j=R(x.prefix);if(o){let $=R(o);if(!j.some(y=>$.includes(y)))continue}else{let $=j.find(y=>c.startsWith(y));if($==null)continue;w=c.slice($.length)}}let v=w.match(g);if(!v)continue;let k=await b(v,r);if(!k)continue;if(this.config.details&&r.rules.push(h),typeof k!="string")if(Symbol.asyncIterator in k){let j=[];for await(let $ of k)$&&j.push($);k=j}else Symbol.iterator in k&&!Array.isArray(k)&&(k=Array.from(k).filter(Yt));let N=kn(k).filter(j=>j.length);if(N.length){r.generator.activatedRules.add(h);let j=this.config.rules.indexOf(h);return N.map($=>{if(M($))return[j,$,x];let y=f,C=x;for(let T of $)T[0]===Ce.variants?y=[...R(T[1]),...y]:T[0]===Ce.parent?y=[{parent:T[1]},...y]:T[0]===Ce.selector?y=[{selector:T[1]},...y]:T[0]===Ce.layer?y=[{layer:T[1]},...y]:T[0]===Ce.sort&&(C={...C,sort:T[1]});return[j,l,$,C,y]})}}},a=(await Promise.all(i.map(l=>s(l)))).flat().filter(l=>!!l);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(wn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:l}=this.applyVariants(t),c=We(o);if(!c)return;let{layer:f,sort:p,...m}=t[3]??{},h={...m,layer:s??f,sort:a??p};return[t[0],n,c,i,h,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:Go,i,s,a,l;for(let c of this.config.shortcuts){let f=t;if(c[2]?.prefix){let m=R(c[2].prefix).find(h=>t.startsWith(h));if(m==null)continue;f=t.slice(m.length)}if(qo(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){i=i||c[2],o(c);break}}}if(s&&(a=ne(R(s).filter(M).map(c=>Yo(c.trim()).split(/\s+/g)).flat()),l=R(s).filter(c=>!M(c)).map(c=>({handles:[],value:c}))),!s){let c=M(t)?await this.matchVariants(t):[t];for(let f of c){let[p,m,h]=f;if(p!==m){let g=await this.expandShortcut(m,r,n-1);g&&(a=g[0].filter(M).map(b=>p.replace(m,b)),l=g[0].filter(b=>!M(b)).map(b=>({handles:[...b.handles,...h],value:b.value})))}}}if(!(!a?.length&&!l?.length))return[[await Promise.all(R(a).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),l].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Zt,s=(await Promise.all(ne(n).map(async f=>{let p=M(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",tt(f.value),void 0,f.handles]];return!p&&this.config.warn&&Zo(`unmatched utility "${f}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=t,c=[];for(let f of s){if(wn(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:m,parent:h,sort:g,noMerge:b,layer:x}=this.applyVariants(f,[...f[4],...l],a);i.getFallback(x??o.layer,new Xt).getFallback(p,h,[[],f[0]])[0].push([m,!!(b??f[3]?.noMerge),g??0])}return c.concat(i.flatMap((f,p)=>f.map(([m,h],g,b)=>{let x=(v,k,N)=>{let j=Math.max(...N.map(y=>y[1])),$=N.map(y=>y[0]);return(v?[$.flat(1)]:$).map(y=>{let C=We(y);if(C)return[h,g,C,b,{...o,noMerge:k,sort:j,layer:p},r,void 0]})};return[[m.filter(([,v])=>v).map(([v,,k])=>[v,k]),!0],[m.filter(([,v])=>!v).map(([v,,k])=>[v,k]),!1]].map(([v,k])=>[...x(!1,k,v.filter(([N])=>N.some(j=>j[0]===Ce.shortcutsNoMerge))),...x(!0,k,v.filter(([N])=>N.every(j=>j[0]!==Ce.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function oi(e,t){return await Cn.create(e,t)}var ii=/\s\$\$\s+/g;function kf(e){return ii.test(e)}function Sf(e,t){return kf(e)?e.replace(ii,t?` ${t} `:" "):t?`${t} ${e}`:e}var ni=/^\[(.+?)(~?=)"(.*)"\]$/;function Rn(e){return ni.test(e)?e.replace(ni,(t,r,n,o)=>`[${qt(r)}${n}"${qt(o)}"]`):`.${qt(e)}`}function Cf(e,t){return t(e)}var En=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function si(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let a=Io(i);if(!a)return;let l=a[1];if(l.startsWith(t))l=l.slice(t.length);else if(r)return;let c=a[2],[,f="",p=c]=c.match(En)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${l}`;if(o==null){let m=s?.config?.separators?.join("|");m?o=new RegExp(`^(.*\\](?:${m}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,m,h]=c.match(o)||[];if(h)return`${m}${f}${l}-${h}`}if(f&&p.match(/^[\d.]+$/)){let m=f.split(/([^:]*:)/g).filter(Boolean),h=m.pop()+p,g=m.join("");return[{matcher:`${f}${l}-${p}`},{matcher:`${g}${l}-${h}`}]}return`${f}${l}-${p}`}}}var Rf=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Ef=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,ai=/[\s'"`;>]+/;function li(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(Rf),o,i=0;for(let v of n){let[,k,N]=v,j=v.index+k.length;if(r>j&&r<=j+N.length){i=j,o=N;break}}if(!o)return null;let s=o.matchAll(Ef),a=0,l,c;for(let v of s){let[k,N,j]=v,$=i+v.index;if(r>$&&r<=$+k.length){a=$,l=N,c=j?.slice(1);break}}if(!l||l==="class"||l==="className"||l===":class")return null;let f=!!e?.prefix&&l.startsWith(e.prefix);if(e?.prefixedOnly&&!f)return null;let p=f?l.slice(e.prefix.length):l;if(c===void 0)return{extracted:p,resolveReplacement(v){let k=f?e.prefix.length:0;return{start:a+k,end:a+l.length,replacement:v}}};let m=a+l.length+2,h=ai.exec(c),g=0,b;for(;h;){let[v]=h;if(r>m+g&&r<=m+g+h.index){b=c.slice(g,g+h.index);break}g+=h.index+v.length,h=ai.exec(c.slice(g))}b===void 0&&(b=c.slice(g));let[,x="",w]=b.match(En)||[];return{extracted:`${x}${p}-${w}`,transformSuggestions(v){return v.filter(k=>k.startsWith(`${x}${p}-`)).map(k=>x+k.slice(x.length+p.length+1))},resolveReplacement(v){return{start:g+m,end:g+m+b.length,replacement:x+v.slice(x.length+p.length+1)}}}}}}var Tf=["v-bind:",":"],ci=/[\s'"`;]+/g,Tn=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,jf=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,jn=["placeholder","fill","opacity","stroke-opacity"];function ui(e){let t=e?.ignoreAttributes??jn,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(Tn)).flatMap(i=>Array.from((i[1]||"").matchAll(jf))).flatMap(([,i,...s])=>{let a=s.filter(Boolean).join("");if(t.includes(i))return[];for(let l of Tf)if(i.startsWith(l)){i=i.slice(l.length);break}if(!a){if(Qe(i)&&r!==!1){let l=[`[${i}=""]`];return n&&l.push(`[${i}="true"]`),l}return[]}return["class","className"].includes(i)?a.split(ci).filter(Qe):Tn.test(a)?(Tn.lastIndex=0,this.extract({code:a})):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:a.split(ci).filter(l=>!!l&&l!==":").map(l=>`[${i}~="${l}"]`)})}}}var zf=(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??jn;let t=[si(e)],r=[ui(e)],n=[li(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},fi=zf;var er="__TAGIFY__",Af=/<([\w:-]+)/g;function pi(e){let{prefix:t="",excludedTags:r=["b",/^h\d+$/,"table"]}=e;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(Af)).filter(({1:o})=>{for(let i of r)if(typeof i=="string"){if(o===i)return!1}else if(i.test(o))return!1;return o.startsWith(t)}).map(([,o])=>`${er}${o}`)}}}function di(e){let{extraProperties:t}=e,r=`${er}${e.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(r))return;let o=n.slice(r.length),i={matcher:o,selector:s=>s.slice(er.length+1)};return t&&(typeof t=="function"?i.body=s=>[...s,...Object.entries(t(o)??{})]:i.body=s=>[...s,...Object.entries(t)]),i}}}var Of=(e={})=>{let{defaultExtractor:t=!0}=e,r=[di(e)],n=[pi(e)];return{name:"@unocss/preset-tagify",variants:r,extractors:n,extractorDefault:t?void 0:!1}},mi=Of;function ye(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function ue(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===e.slice(s,s+l)&&i===0)return s===0||s===o-l?void 0:[e.slice(0,s),e.slice(s+l)]}}return[e,""]}function Re(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=ue(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var zn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],tr=["%alpha","<alpha-value>"],Pf=new RegExp(tr.map(e=>ce(e)).join("|"),"g");function q(e=""){let t=Vf(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(zn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&tr.includes(t)?1:t}function O(e,t){if(typeof e=="string")return e.replace(Pf,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,zn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Vf(e){if(!e)return;let t=Mf(e);if(t!=null||(t=Ff(e),t!=null)||(t=_f(e),t!=null)||(t=Lf(e),t!=null)||(t=Uf(e),t!=null))return t}function Mf(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Ff(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function _f(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Re(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Wf=new RegExp(`^(${zn.join("|")})\\((.+)\\)$`,"i");function Lf(e){let t=e.match(Wf);if(!t)return;let[,r,n]=t,o=hi(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Uf(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=hi(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function hi(e){let t=Re(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Re(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function rr(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yi=new Uint8Array(64),Bf=new Uint8Array(128);for(let e=0;e<gi.length;e++){let t=gi.charCodeAt(e);yi[e]=t,Bf[t]=e}function nt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(yi[o])}while(n>0);return t}var bi=1024*16,xi=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 r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},An=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(bi)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===bi&&(this.out+=xi.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+xi.decode(t.subarray(0,n)):r}};function $i(e){let t=new An,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let l=0;for(let c=0;c<a.length;c++){let f=a[c];c>0&&t.write(44),l=nt(t,f[0],l),f.length!==1&&(r=nt(t,f[1],r),n=nt(t,f[2],n),o=nt(t,f[3],o),f.length!==4&&(i=nt(t,f[4],i)))}}return t.flush()}var nr=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))}},or=class e{constructor(t,r,n){this.start=t,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(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 r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,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 r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,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(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.outro.length)return!0}};function Nf(){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 Df=Nf(),On=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=$i(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,"+Df(this.toString())}};function If(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.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 a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Kf(e,t){let r=e.split(/[/\\]/),n=t.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 Gf=Object.prototype.toString;function Hf(e){return Gf.call(e)==="[object Object]"}function vi(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let a=i-1,l=o-r[a];return{line:a,column:l}}}var qf=/\w/,Pn=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,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 Ai=Object.defineProperty;var Oi=(t,e)=>{for(var r in e)Ai(t,r,{get:e[r],enumerable:!0})};var be="default",Le="preflights",Pi="shortcuts",Vi="imports",Jt={[Vi]:-200,[Le]:-100,[Pi]:-10,[be]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function zi(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return zi(t)}};function E(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ft(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var xe=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}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,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof xe}function ee(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ie(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 Ie=ie;function Qt(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Mi=/^\[(.+?)~?="(.*)"\]$/;var Li=/[\w\u00A0-\uFFFF%-?]/;function er(t){return t.match(Mi)}function ye(t=""){return Li.test(t)}function tr(t){return typeof t=="function"?{match:t}:t}function pt(t){return t.length===3}function We(t){return t!=null}function rr(){}var De=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},Ne=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function $e(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function dt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function Fi(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})}function le(t){return t==null?"":Fi(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Be(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ht(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 Be(n)&&Be(o)&&Object.keys(o).forEach(s=>{Be(n[s])&&Be(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=ht(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function we(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"?we(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:we(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}return t}function nr(t){return z(t[0])}function or(t){return z(t[0])}var Ke={};function Ui(t=["-",":"]){let e=t.join("|");return Ke[e]||(Ke[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ke[e].lastIndex=0,Ke[e]}function _i(t,e=["-",":"],r=5){let n=Ui(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let m=h+f.length+p.length+1,x={length:c.length,items:[]};l.set(h,x);for(let w of[...d.matchAll(/\S+/g)]){let R=m+w.index,y=l.get(R)?.items;y?l.delete(R):y=[{offset:R,length:w[0].length,className:w[0]}];for(let S of y)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return a.toString()}}}function ir(t,e=["-",":"],r=5){let n=_i(t,e,r);return typeof t=="string"?n.expanded:t}var sr=new Set;function ar(t){sr.has(t)||(console.warn("[unocss]",t),sr.add(t))}function ur(t){return E(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var lr="_uno_resolved";async function Ii(t){let e=typeof t=="function"?await t():await t;if(lr in e)return e;e={...e},Object.defineProperty(e,lr,{value:!0,enumerable:!1});let r=e.shortcuts?ur(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(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function fr(t){let e=await Ii(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(E).flatMap(fr))).flat();return[e,...r]}function Wi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:B(cr(...e)),exclude:B(cr(...r))}};return o.length&&(l.filesystem=B(o.flat())),i.length&&(l.inline=B(i.flat())),s.length&&(l.plain=B(s.flat())),l}async function mt(t={},e={}){let r=Object.assign({},e,t),n=ft((await Promise.all((r.presets||[]).flatMap(E).flatMap(fr))).flat(),(b,g)=>b.name===g.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({},Jt,...i.map(b=>b.layers));function a(b){return B(i.flatMap(g=>E(g[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((b,g)=>(b.order||0)-(g.order||0));let p=a("rules"),d={},h=p.length,m=p.filter(b=>nr(b)?(E(b[2]?.prefix||"").forEach($=>{d[$+b[0]]=b}),!1):!0).reverse(),x=Di(i.map(b=>b.theme)),w=a("extendTheme");for(let b of w)x=b(x)||x;let R={templates:B(i.flatMap(b=>E(b.autocomplete?.templates))),extractors:i.flatMap(b=>E(b.autocomplete?.extractors)).sort((b,g)=>(b.order||0)-(g.order||0)),shorthands:Ni(i.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let S=a("content"),V=Wi(S),k={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:h,rulesDynamic:m,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:R,variants:a("variants").map(tr).sort((b,g)=>(b.order||0)-(g.order||0)),shortcuts:ur(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:V,transformers:ft(a("transformers"),(b,g)=>b.name===g.name)};for(let b of i)b?.configResolved?.(k);return k}function Di(t){return t.map(e=>e?we(e):{}).reduce((e,r)=>ht(e,r),{})}function Ni(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 cr(...t){return t.flatMap(Bi)}function Bi(t){return Array.isArray(t)?t:t?[t]:[]}var pr="66.1.0-beta.6";var te={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},gt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=pr;events=Qt();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await mt(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 mt(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(_e(s)&&_e(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:te,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=e;for(let a of this.config.preprocess)o=a(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(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||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))?.map(d=>this.stringifyUtil(d,c)).filter(We)},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);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:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new xe:new Set):Array.isArray(e)?new Set(e):e;if(s){let g={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(g):$).forEach($=>{c.has($)||c.add($)})}let f=l?"":`
1
+ "use strict";(()=>{var Ai=Object.defineProperty;var Oi=(t,e)=>{for(var r in e)Ai(t,r,{get:e[r],enumerable:!0})};var be="default",Le="preflights",Pi="shortcuts",Vi="imports",Jt={[Vi]:-200,[Le]:-100,[Pi]:-10,[be]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function zi(t){return t.split(Fe)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return zi(t)}};function E(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function ft(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var xe=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}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,r){return this._map.set(e,r),super.add(e)}};function _e(t){return t instanceof xe}function ee(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ie(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 Ie=ie;function Qt(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Mi=/^\[(.+?)~?="(.*)"\]$/;var Li=/[\w\u00A0-\uFFFF%-?]/;function er(t){return t.match(Mi)}function ye(t=""){return Li.test(t)}function tr(t){return typeof t=="function"?{match:t}:t}function pt(t){return t.length===3}function We(t){return t!=null}function rr(){}var De=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},Ne=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function $e(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function dt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function Fi(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})}function le(t){return t==null?"":Fi(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Be(t){return t&&typeof t=="object"&&!Array.isArray(t)}function ht(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 Be(n)&&Be(o)&&Object.keys(o).forEach(s=>{Be(n[s])&&Be(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=ht(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function we(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"?we(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:we(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?we(n):n;return r}return t}function nr(t){return z(t[0])}function or(t){return z(t[0])}var Ke={};function Ui(t=["-",":"]){let e=t.join("|");return Ke[e]||(Ke[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ke[e].lastIndex=0,Ke[e]}function _i(t,e=["-",":"],r=5){let n=Ui(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let m=h+f.length+p.length+1,x={length:c.length,items:[]};l.set(h,x);for(let w of[...d.matchAll(/\S+/g)]){let R=m+w.index,y=l.get(R)?.items;y?l.delete(R):y=[{offset:R,length:w[0].length,className:w[0]}];for(let S of y)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return a.toString()}}}function ir(t,e=["-",":"],r=5){let n=_i(t,e,r);return typeof t=="string"?n.expanded:t}var sr=new Set;function ar(t){sr.has(t)||(console.warn("[unocss]",t),sr.add(t))}function ur(t){return E(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var lr="_uno_resolved";async function Ii(t){let e=typeof t=="function"?await t():await t;if(lr in e)return e;e={...e},Object.defineProperty(e,lr,{value:!0,enumerable:!1});let r=e.shortcuts?ur(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(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function fr(t){let e=await Ii(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(E).flatMap(fr))).flat();return[e,...r]}function Wi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:B(cr(...e)),exclude:B(cr(...r))}};return o.length&&(l.filesystem=B(o.flat())),i.length&&(l.inline=B(i.flat())),s.length&&(l.plain=B(s.flat())),l}async function mt(t={},e={}){let r=Object.assign({},e,t),n=ft((await Promise.all((r.presets||[]).flatMap(E).flatMap(fr))).flat(),(b,g)=>b.name===g.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({},Jt,...i.map(b=>b.layers));function a(b){return B(i.flatMap(g=>E(g[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((b,g)=>(b.order||0)-(g.order||0));let p=a("rules"),d={},h=p.length,m=p.filter(b=>nr(b)?(E(b[2]?.prefix||"").forEach($=>{d[$+b[0]]=b}),!1):!0).reverse(),x=Di(i.map(b=>b.theme)),w=a("extendTheme");for(let b of w)x=b(x)||x;let R={templates:B(i.flatMap(b=>E(b.autocomplete?.templates))),extractors:i.flatMap(b=>E(b.autocomplete?.extractors)).sort((b,g)=>(b.order||0)-(g.order||0)),shorthands:Ni(i.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let S=a("content"),V=Wi(S),k={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:h,rulesDynamic:m,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:R,variants:a("variants").map(tr).sort((b,g)=>(b.order||0)-(g.order||0)),shortcuts:ur(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:V,transformers:ft(a("transformers"),(b,g)=>b.name===g.name)};for(let b of i)b?.configResolved?.(k);return k}function Di(t){return t.map(e=>e?we(e):{}).reduce((e,r)=>ht(e,r),{})}function Ni(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 cr(...t){return t.flatMap(Bi)}function Bi(t){return Array.isArray(t)?t:t?[t]:[]}var pr="66.1.0-beta.7";var te={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},gt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=pr;events=Qt();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await mt(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 mt(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(_e(s)&&_e(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:te,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=e;for(let a of this.config.preprocess)o=a(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(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||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))?.map(d=>this.stringifyUtil(d,c)).filter(We)},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);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:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new xe:new Set):Array.isArray(e)?new Set(e):e;if(s){let g={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(g):$).forEach($=>{c.has($)||c.add($)})}let f=l?"":`
2
2
  `,p=new Set([be]),d=a?new Map:new Set,h=new Map,m={},x=Array.from(c).map(async g=>{if(d.has(g))return;let $=await this.parseToken(g);if($!=null){d instanceof Map?d.set(g,{data:$,count:_e(c)?c.getCount(g):-1}):d.add(g);for(let C of $){let _=C[3]||"",I=C[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(C),I&&p.add(I)}}});await Promise.all(x),await(async()=>{if(!i)return;let g={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:C=Le})=>{p.add(C),$.add(C)}),m=Object.fromEntries(await Promise.all(Array.from($).map(async C=>{let I=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Le)===C).map(async H=>await H.getCSS(g)))).filter(Boolean).join(f);return[C,I]})))})();let w=this.config.sortLayers(Array.from(p).sort((g,$)=>(this.config.layers[g]??0)-(this.config.layers[$]??0)||g.localeCompare($))),R={},y=this.config.outputToCssLayers,S=g=>{let $=g;return typeof y=="object"&&($=y.cssLayerName?.(g)),$===null?null:$??g},V=(g=be)=>{if(R[g])return R[g];let $=Array.from(h).sort((I,H)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(H[0])??0)||I[0]?.localeCompare(H[0]||"")||0).map(([I,H])=>{let v=H.length,j=H.filter(T=>(T[4]?.layer||be)===g).sort((T,F)=>T[0]-F[0]||(T[4]?.sort||0)-(F[4]?.sort||0)||T[5]?.currentSelector?.localeCompare(F[5]?.currentSelector??"")||T[1]?.localeCompare(F[1]||"")||T[2]?.localeCompare(F[2]||"")||0).map(([,T,F,,Me,,ct])=>[[[(T&&Hi(T,o))??"",Me?.sort??0]],F,!!(ct??Me?.noMerge)]);if(!j.length)return;let O=j.reverse().map(([T,F,Me],ct)=>{if(!Me&&this.config.mergeSelectors)for(let Q=ct+1;Q<v;Q++){let Y=j[Q];if(Y&&!Y[2]&&(T&&Y[0]||T==null&&Y[0]==null)&&Y[1]===F)return T&&Y[0]&&Y[0].push(...T),null}let ut=T?B(T.sort((Q,Y)=>Q[1]-Y[1]||Q[0]?.localeCompare(Y[0]||"")||0).map(Q=>Q[0]).filter(Boolean)):[];return ut.length?`${ut.join(`,${f}`)}{${F}}`:F}).filter(Boolean).reverse().join(f);if(!I)return O;let M=I.split(" $$ ");return`${M.join("{")}{${f}${O}${f}${"}".repeat(M.length)}`}).filter(Boolean).join(f);i&&($=[m[g],$].filter(Boolean).join(f));let C;y&&$&&(C=S(g),C!==null&&($=`@layer ${C}{${f}${$}${f}}`));let _=l?"":`/* layer: ${g}${C&&C!==g?`, alias: ${C}`:""} */${f}`;return R[g]=$?_+$:""},k=(g=w,$)=>{let C=g.filter(_=>!$?.includes(_));return[y&&C.length>0?`@layer ${C.map(S).filter(We).join(", ")};`:void 0,...C.map(_=>V(_)||"")].filter(Boolean).join(f)};return{get css(){return k()},layers:w,matched:d,getLayers:k,getLayer:V,setLayer:async(g,$)=>{let C=await $(V(g));return R[g]=C,C}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,l,a]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let m=h.matcher??c,x=[h,...l],w=new Set(a);return w.add(f),[i[0],m,x,w]});return(await Promise.all(d.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,l.unshift(p),a.add(f),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 i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0];return(f.handle??Yi)({...p,entries:d,selector:f.selector?.(p.selector,d)||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:qi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:l}=i;s!=null&&l!=null&&this.parentOrders.set(s,l);let a={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(e,r,n){let o=$e(r);if(z(o))return o;let{selector:i,entries:s,parent:l}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),a=`${i}{${le(s)}}`;return l?`${l}{${a}}`:a}async parseUtil(e,r,n=!1,o){let i=z(e)?await this.matchVariants(e):[e],s=async([a,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),m=dt(p[1]).filter(w=>w.length),x=p[2];if(m.length)return r.generator.activatedRules.add(p),m.map(w=>z(w)?[h,w,x]:[h,a,w,x,f])}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[m,x,w]=h;if(w?.internal&&!n)continue;let R=c;if(w?.prefix){let k=E(w.prefix);if(o){let b=E(o);if(!k.some(g=>b.includes(g)))continue}else{let b=k.find(g=>c.startsWith(g));if(b==null)continue;R=c.slice(b.length)}}let y=R.match(m);if(!y)continue;let S=await x(y,r);if(!S)continue;if(this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let k=[];for await(let b of S)b&&k.push(b);S=k}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(We));let V=dt(S).filter(k=>k.length);if(V.length){r.generator.activatedRules.add(h);let k=this.config.rules.indexOf(h);return V.map(b=>{if(z(b))return[k,b,w];let g=f,$=w;for(let C of b)C[0]===te.variants?g=[...E(C[1]),...g]:C[0]===te.parent?g=[{parent:C[1]},...g]:C[0]===te.selector?g=[{selector:C[1]},...g]:C[0]===te.layer?g=[{layer:C[1]},...g]:C[0]===te.sort&&($={...$,sort:C[1]});return[k,a,b,$,g]})}}},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l.length)return l}stringifyUtil(e,r){if(!e)return;if(pt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:l,noMerge:a}=this.applyVariants(e),c=le(o);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:l??p};return[e[0],n,c,i,h,this.config.details?r:void 0,a]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:rr,i,s,l,a;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let d=E(c[2].prefix).find(h=>e.startsWith(h));if(d==null)continue;f=e.slice(d.length)}if(or(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){i=i||c[2],o(c);break}}}if(s&&(l=B(E(s).filter(z).map(c=>ir(c.trim()).split(/\s+/g)).flat()),a=E(s).filter(c=>!z(c)).map(c=>({handles:[],value:c}))),!s){let c=z(e)?await this.matchVariants(e):[e];for(let f of c){let[p,d,h]=f;if(p!==d){let m=await this.expandShortcut(d,r,n-1);m&&(l=m[0].filter(z).map(x=>p.replace(d,x)),a=m[0].filter(x=>!z(x)).map(x=>({handles:[...x.handles,...h],value:x.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(E(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ne,s=(await Promise.all(B(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f.value),void 0,f.handles]];return!p&&this.config.warn&&ar(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[l,,a]=e,c=[];for(let f of s){if(pt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:m,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...a],l);i.getFallback(w??o.layer,new De).getFallback(p,h,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),m??0])}return c.concat(i.flatMap((f,p)=>f.map(([d,h],m,x)=>{let w=(y,S,V)=>{let k=Math.max(...V.map(g=>g[1])),b=V.map(g=>g[0]);return(y?[b.flat(1)]:b).map(g=>{let $=le(g);if($)return[h,m,$,x,{...o,noMerge:S,sort:k,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,S])=>[y,S]),!0],[d.filter(([,y])=>!y).map(([y,,S])=>[y,S]),!1]].map(([y,S])=>[...w(!1,S,y.filter(([V])=>V.some(k=>k[0]===te.shortcutsNoMerge))),...w(!0,S,y.filter(([V])=>V.every(k=>k[0]!==te.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):z(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):z(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function hr(t,e){return await gt.create(t,e)}var mr=/\s\$\$\s+/g;function Gi(t){return mr.test(t)}function Hi(t,e){return Gi(t)?t.replace(mr,e?` ${e} `:" "):e?`${e} ${t}`:t}var dr=/^\[(.+?)(~?=)"(.*)"\]$/;function qi(t){return dr.test(t)?t.replace(dr,(e,r,n,o)=>`[${Ie(r)}${n}"${Ie(o)}"]`):`.${Ie(t)}`}function Yi(t,e){return e(t)}var bt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function gr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let l=er(i);if(!l)return;let a=l[1];if(a.startsWith(e))a=a.slice(e.length);else if(r)return;let c=l[2],[,f="",p=c]=c.match(bt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${a}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,h]=c.match(o)||[];if(h)return`${d}${f}${a}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,m=d.join("");return[{matcher:`${f}${a}-${p}`},{matcher:`${m}${a}-${h}`}]}return`${f}${a}-${p}`}}}var Xi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,Zi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,br=/[\s'"`;>]+/;function xr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Xi),o,i=0;for(let y of n){let[,S,V]=y,k=y.index+S.length;if(r>k&&r<=k+V.length){i=k,o=V;break}}if(!o)return null;let s=o.matchAll(Zi),l=0,a,c;for(let y of s){let[S,V,k]=y,b=i+y.index;if(r>b&&r<=b+S.length){l=b,a=V,c=k?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!t?.prefix&&a.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?a.slice(t.prefix.length):a;if(c===void 0)return{extracted:p,resolveReplacement(y){let S=f?t.prefix.length:0;return{start:l+S,end:l+a.length,replacement:y}}};let d=l+a.length+2,h=br.exec(c),m=0,x;for(;h;){let[y]=h;if(r>d+m&&r<=d+m+h.index){x=c.slice(m,m+h.index);break}m+=h.index+y.length,h=br.exec(c.slice(m))}x===void 0&&(x=c.slice(m));let[,w="",R]=x.match(bt)||[];return{extracted:`${w}${p}-${R}`,transformSuggestions(y){return y.filter(S=>S.startsWith(`${w}${p}-`)).map(S=>w+S.slice(w.length+p.length+1))},resolveReplacement(y){return{start:m+d,end:m+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var Ji=["v-bind:",":"],yr=/[\s'"`;]+/g,xt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,Qi=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,yt=["placeholder","fill","opacity","stroke-opacity"];function wr(t){let e=t?.ignoreAttributes??yt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(xt)).flatMap(i=>Array.from((i[1]||"").matchAll(Qi))).flatMap(([,i,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(i))return[];for(let a of Ji)if(i.startsWith(a)){i=i.slice(a.length);break}if(!l){if(ye(i)&&r!==!1){let a=[`[${i}=""]`];return n&&a.push(`[${i}="true"]`),a}return[]}return["class","className"].includes(i)?l.split(yr).filter(ye):xt.test(l)?(xt.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:l.split(yr).filter(a=>!!a&&a!==":").map(a=>`[${i}~="${a}"]`)})}}}var es=(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??yt;let e=[gr(t)],r=[wr(t)],n=[xr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},$r=es;function ts(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Sr(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${ts(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function vr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var rs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Cr(t){return t.includes("sourceMappingURL=")?t.replace(rs,""):t}var ns=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,os=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,is=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ss(t){let e=[];for(let o of t.matchAll(os))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(ns))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=Sr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Fe).forEach(o=>{o.includes(n)&&(o=vr(o,r)),ye(o)&&!is.test(o)&&e.push(o)}),e}function kr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return ss(Cr(t))}}}function Rr(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=le(n);return t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),E(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ce(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function ue(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let a=l.length;if(a&&l===t.slice(s,s+a)&&i===0)return s===0||s===o-a?void 0:[t.slice(0,s),t.slice(s+a)]}}return[t,""]}function fe(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=ue(t,"(",")",e);if(!i)return;let[s,l]=i;n.push(s),t=l}if(n.length>0)return n}var wt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Tr=["%alpha","<alpha-value>"],as=new RegExp(Tr.map(t=>ee(t)).join("|"),"g");function re(t=""){let e=ls(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!(wt.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function Se(t){let e=t.alpha??1;return typeof e=="string"&&Tr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(as,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,wt.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ls(t){if(!t)return;let e=cs(t);if(e!=null||(e=us(t),e!=null)||(e=fs(t),e!=null)||(e=ds(t),e!=null)||(e=hs(t),e!=null))return e}function cs(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function us(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function fs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=fe(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var ps=new RegExp(`^(${wt.join("|")})\\((.+)\\)$`,"i");function ds(t){let e=t.match(ps);if(!e)return;let[,r,n]=e,o=Er(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function hs(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Er(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Er(t){let e=fe(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let i=e.splice(r-2);e.push(i.join(" ")),--r}let n=fe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}function jr(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vr=new Uint8Array(64),ms=new Uint8Array(128);for(let t=0;t<Ar.length;t++){let e=Ar.charCodeAt(t);Vr[t]=e,ms[e]=t}function ve(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(Vr[o])}while(n>0);return e}var Or=1024*16,Pr=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}},$t=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Or)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Or&&(this.out+=Pr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Pr.decode(e.subarray(0,n)):r}};function zr(t){let e=new $t,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(59),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(44),a=ve(e,f[0],a),f.length!==1&&(r=ve(e,f[1],r),n=ve(e,f[2],n),o=ve(e,f[3],o),f.length!==4&&(i=ve(e,f[4],i)))}}return e.flush()}var Ge=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))}},He=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 gs(){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 bs=gs(),St=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=zr(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,"+bs(this.toString())}};function xs(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 ys(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 ws=Object.prototype.toString;function $s(t){return ws.call(t)==="[object Object]"}function Mr(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 c=i+s>>1;o<r[c]?s=c:i=c+1}let l=i-1,a=o-r[l];return{line:l,column:a}}}var Ss=/\w/,vt=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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
3
  "type": "module",
4
- "version": "66.1.0-beta.6",
4
+ "version": "66.1.0-beta.7",
5
5
  "description": "CSS-in-JS Runtime for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,9 +35,9 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@unocss/core": "66.1.0-beta.6",
39
- "@unocss/preset-attributify": "66.1.0-beta.6",
40
- "@unocss/preset-uno": "66.1.0-beta.6"
38
+ "@unocss/core": "66.1.0-beta.7",
39
+ "@unocss/preset-attributify": "66.1.0-beta.7",
40
+ "@unocss/preset-uno": "66.1.0-beta.7"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
@@ -2,4 +2,4 @@
2
2
  `).join(`
3
3
  `+i),e.push(r+"m+"+Q.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Lt()+o+" "+e[0]}function Lt(){return x.inspectOpts.hideDate?"":new Date().toISOString()+" "}function $t(...e){return process.stderr.write(X.formatWithOptions(x.inspectOpts,...e)+`
4
4
  `)}function Rt(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function At(){return process.env.DEBUG}function _t(e){e.inspectOpts={};let o=Object.keys(x.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=x.inspectOpts[o[t]]}Q.exports=ae()(x);var{formatters:De}=Q.exports;De.o=function(e){return this.inspectOpts.colors=this.useColors,X.inspect(e,this.inspectOpts).split(`
5
- `).map(o=>o.trim()).join(" ")};De.O=function(e){return this.inspectOpts.colors=this.useColors,X.inspect(e,this.inspectOpts)}});var M=z((go,fe)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fe.exports=_e():fe.exports=Me()});async function pe(e,o,t,n){let r;Pt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await K(n?.customizations?.trimCustomSvg===!0?ke(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var Ue,Pt,Ge=I(()=>{"use strict";Ue=j(M(),1);ce();Le();Pt=(0,Ue.default)("@iconify-loader:custom")});async function ee(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=ve(e,c),r){Nt(`${o}:${c}`);let u={...B};typeof i=="function"&&(r=Object.assign({},r),u=i(u,r,`${o}:${c}`)??u);let{attributes:{width:d,height:g,...s},body:f}=Ee(r,u),p=n?.scale;return await K(`<svg >${f}</svg>`,o,c,n,()=>({...s}),m=>{let w=(a,l)=>{let y=m[a],b;if(!D(y)){if(y)return;typeof p=="number"?p&&(b=k(l??"1em",p)):b=l}b?m[a]=b:delete m[a]};w("width",d),w("height",g)})}}var Ve,Nt,me=I(()=>{"use strict";ne();Se();W();ce();Ve=j(M(),1);oe();Nt=(0,Ve.default)("@iconify-loader:icon")});var To,U,de=I(()=>{"use strict";Ge();me();To=j(M(),1),U=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await pe(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await ee(r,e,i,t)}}}else return await pe(n,e,o,t)}});function je(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ie(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),je(o)}de();var jo=j(M(),1);var qe=new Set;function Be(e){qe.has(e)||(console.warn("[unocss]",e),qe.add(e))}de();me();var ge=["academicons","akar-icons","ant-design","arcticons","aws","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var zt=3;function Ke(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:c,collections:u,extraProperties:d={},customizations:g={},autoInstall:s=!1,collectionsNodeResolvePath:f,layer:p="icons",unit:m,processor:w}=o,a=Dt(),l={addXmlNs:!0,scale:t,customCollections:u,autoInstall:s,cwd:f,warn:void 0,customizations:{...g,additionalProps:{...d},trimCustomSvg:!0,async iconCustomizer(b,F,h){await g.iconCustomizer?.(b,F,h),m&&(h.width||(h.width=`${t}${m}`),h.height||(h.height=`${t}${m}`))}}},y;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:ie,parseIconWithLoader:We},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async b=>{let[F,h,P=n]=b;y=y||await e(o);let O={},T=await We(h,y,{...l,usedProps:O},c);if(!T){i&&!a.isESLint&&Be(`failed to load icon "${F}"`);return}let E,G=`url("data:image/svg+xml;utf8,${ie(T.svg)}")`;return P==="auto"&&(P=T.svg.includes("currentColor")?"mask":"bg"),P==="mask"?E={"--un-icon":G,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...O}:E={background:`${G} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...O},w?.(E,{...T,icon:T.name,mode:P}),E},{layer:p,prefix:r}]]}}}function Ye(e,o,t=new Map){function n(r){if(ge.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let u=await U(r,i,c);if(u)return u;let d=await n(r);if(d){let g=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];u=await ee(d,r,g,c)}return u}}function Dt(){let e=typeof process<"u"&&process.stdout&&!process.versions.deno,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}async function We(e,o,t={},n=[]){let r="",i="",c,u=new Set([...ge,...n,...Object.keys(t.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!u.has(r))return;c=await o(r,i,t)}else{let d=e.split(/-/g);for(let g=zt;g>=1&&(r=d.slice(0,g).join("-"),!(!!u.has(r)&&(i=d.slice(g).join("-"),c=await o(r,i,t),c)));g--);}if(c)return{collection:r,name:i,svg:c}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=Ke(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Ye(t,n):U});return{presetIcons:o=>e(o)}})());})();
5
+ `).map(o=>o.trim()).join(" ")};De.O=function(e){return this.inspectOpts.colors=this.useColors,X.inspect(e,this.inspectOpts)}});var M=z((go,fe)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?fe.exports=_e():fe.exports=Me()});async function pe(e,o,t,n){let r;Pt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let i=e[t];r=typeof i=="function"?await i():i}}catch(i){console.warn(`Failed to load custom icon "${t}" in "${o}":`,i);return}if(r){let i=r.indexOf("<svg");i>0&&(r=r.slice(i));let{transform:c}=n?.customizations??{};return r=typeof c=="function"?await c(r,o,t):r,r.startsWith("<svg")?await K(n?.customizations?.trimCustomSvg===!0?ke(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var Ue,Pt,Ge=I(()=>{"use strict";Ue=j(M(),1);ce();Le();Pt=(0,Ue.default)("@iconify-loader:custom")});async function ee(e,o,t,n){let r,{customize:i}=n?.customizations??{};for(let c of t)if(r=ve(e,c),r){Nt(`${o}:${c}`);let u={...B};typeof i=="function"&&(r=Object.assign({},r),u=i(u,r,`${o}:${c}`)??u);let{attributes:{width:d,height:g,...s},body:f}=Ee(r,u),p=n?.scale;return await K(`<svg >${f}</svg>`,o,c,n,()=>({...s}),m=>{let w=(a,l)=>{let y=m[a],b;if(!D(y)){if(y)return;typeof p=="number"?p&&(b=k(l??"1em",p)):b=l}b?m[a]=b:delete m[a]};w("width",d),w("height",g)})}}var Ve,Nt,me=I(()=>{"use strict";ne();Se();W();ce();Ve=j(M(),1);oe();Nt=(0,Ve.default)("@iconify-loader:icon")});var To,U,de=I(()=>{"use strict";Ge();me();To=j(M(),1),U=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(i){console.warn(`Failed to load custom icon "${o}" in "${e}":`,i);return}if(r){if(typeof r=="string")return await pe(()=>r,e,o,t);if("icons"in r){let i=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await ee(r,e,i,t)}}}else return await pe(n,e,o,t)}});function je(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ie(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),je(o)}de();var jo=j(M(),1);var qe=new Set;function Be(e){qe.has(e)||(console.warn("[unocss]",e),qe.add(e))}de();me();var ge=["academicons","akar-icons","ant-design","arcticons","aws","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","si-glyph","si","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"];var zt=3;function Ke(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:i=!1,iconifyCollectionsNames:c,collections:u,extraProperties:d={},customizations:g={},autoInstall:s=!1,collectionsNodeResolvePath:f,layer:p="icons",unit:m,processor:w}=o,a=Dt(),l={addXmlNs:!0,scale:t,customCollections:u,autoInstall:s,cwd:f,warn:void 0,customizations:{...g,additionalProps:{...d},trimCustomSvg:!0,async iconCustomizer(b,F,h){await g.iconCustomizer?.(b,F,h),m&&(h.width||(h.width=`${t}${m}`),h.height||(h.height=`${t}${m}`))}}},y;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},api:{encodeSvgForCss:ie,parseIconWithLoader:We},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async b=>{let[F,h,P=n]=b;y=y||await e(o);let O={},T=await We(h,y,{...l,usedProps:O},c);if(!T){i&&!a.isESLint&&Be(`failed to load icon "${F}"`);return}let E,G=`url("data:image/svg+xml;utf8,${ie(T.svg)}")`;return P==="auto"&&(P=T.svg.includes("currentColor")?"mask":"bg"),P==="mask"?E={"--un-icon":G,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...O}:E={background:`${G} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...O},w?.(E,{...T,icon:T.name,mode:P}),E},{layer:p,prefix:r}]]}}}function Ye(e,o,t=new Map){function n(r){if(ge.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,i,c)=>{let u=await U(r,i,c);if(u)return u;let d=await n(r);if(d){let g=[i,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i.replace(/([a-z])(\d+)/g,"$1-$2")];u=await ee(d,r,g,c)}return u}}function Dt(){let e=typeof process<"u"&&process.stdout&&!process.versions.deno,o=e&&!!process.env.VSCODE_CWD,t=e&&!!process.env.ESLINT;return{isNode:e,isVSCode:o,isESLint:t}}async function We(e,o,t={},n=[]){let r="",i="",c,u=new Set([...ge,...n,...Object.keys(t.customCollections||{})]);if(e.includes(":")){if([r,i]=e.split(":"),!u.has(r))return;c=await o(r,i,t)}else{let d=e.split(/-/g);for(let g=zt;g>=1&&(r=d.slice(0,g).join("-"),!(!!u.has(r)&&(i=d.slice(g).join("-"),c=await o(r,i,t),c)));g--);}if(c)return{collection:r,name:i,svg:c}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=Ke(async o=>{let t=o?.customFetch??(r=>fetch(r).then(i=>i.json())),n=o?.cdn;return n?Ye(t,n):U});return{presetIcons:o=>e(o)}})());})();
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Uu=Object.defineProperty;var Bu=(e,t)=>{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0})};var Ze="default",Dt="preflights",Du="shortcuts",Iu="imports",Po={[Iu]:-200,[Dt]:-100,[Du]:-10,[Ze]:0};var It=/[\\:]?[\s'"`;{}]+/g;function Nu(e){return e.split(It)}var Nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Nu(e)}};function C(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function bn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Kt(e){return e instanceof Je}function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Gt=Q;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Ku=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return Ku.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function xn(e){return e.length===3}function Ht(e){return e!=null}function _o(){}var qt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Yt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function yn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function Gu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":Gu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Xt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function $n(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Xt(n)&&Xt(o)&&Object.keys(o).forEach(s=>{Xt(n[s])&&Xt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=$n(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Lo(e){return M(e[0])}function Wo(e){return M(e[0])}var Zt={};function Hu(e=["-",":"]){let t=e.join("|");return Zt[t]||(Zt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Zt[t].lastIndex=0,Zt[t]}function qu(e,t=["-",":"],r=5){let n=Hu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,p,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(p+d);let g=m+p.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let S=g+$.index,v=a.get(S)?.items;v?a.delete(S):v=[{offset:S,length:$[0].length,className:$[0]}];for(let E of v)E.className=E.className==="~"?p:E.className.replace(/^(!?)(.*)/,`$1${p}${d}$2`),b.items.push(E)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,d]of a)c+=e.slice(l,p),c+=d.items.map(h=>h.className).join(" "),l=p+d.length;c+=e.slice(l)}else{c=e;for(let[l,p]of a)c.overwrite(l,l+p.length,p.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Uo(e,t=["-",":"],r=5){let n=qu(e,t,r);return typeof e=="string"?n.expanded:e}var Bo=new Set;function Do(e){Bo.has(e)||(console.warn("[unocss]",e),Bo.add(e))}function Ko(e){return C(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Io="_uno_resolved";async function Yu(e){let t=typeof e=="function"?await e():await e;if(Io in t)return t;t={...t},Object.defineProperty(t,Io,{value:!0,enumerable:!1});let r=t.shortcuts?Ko(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=C(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Go(e){let t=await Yu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(C).flatMap(Go))).flat();return[t,...r]}function Xu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(No(...t)),exclude:ne(No(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function vn(e={},t={}){let r=Object.assign({},t,e),n=bn((await Promise.all((r.presets||[]).flatMap(C).flatMap(Go))).flat(),(y,x)=>y.name===x.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Po,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>C(x[y]||[])))}let l=c("extractors"),p=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=Nt),p&&!l.includes(p)&&l.unshift(p),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Lo(y)?(C(y[2]?.prefix||"").forEach(k=>{h[k+y[0]]=y}),!1):!0).reverse(),b=Zu(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let S={templates:ne(i.flatMap(y=>C(y.autocomplete?.templates))),extractors:i.flatMap(y=>C(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:Ju(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let E=c("content"),H=Xu(E),V={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(Fo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Ko(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:H,transformers:bn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(V);return V}function Zu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>$n(t,r),{})}function Ju(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function No(...e){return e.flatMap(Qu)}function Qu(e){return Array.isArray(e)?e:e?[e]:[]}var Ho="66.1.0-beta.6";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},wn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Ho;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await vn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await vn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Kt(s)&&Kt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let c of this.config.preprocess)o=c(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let p=await this.expandShortcut(l.currentSelector,l);return p?await this.stringifyShortcuts(l.variantMatch,l,p[0],p[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,l)).filter(Ht)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(x):k).forEach(k=>{l.has(k)||l.add(k)})}let p=a?"":`
1
+ "use strict";(()=>{var Uu=Object.defineProperty;var Bu=(e,t)=>{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0})};var Ze="default",Dt="preflights",Du="shortcuts",Iu="imports",Po={[Iu]:-200,[Dt]:-100,[Du]:-10,[Ze]:0};var It=/[\\:]?[\s'"`;{}]+/g;function Nu(e){return e.split(It)}var Nt={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Nu(e)}};function C(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}function bn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function M(e){return typeof e=="string"}var Je=class extends Set{_map=new Map;constructor(t){if(super(),t)for(let r of t)this.add(r)}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,r){return this._map.set(t,r),super.add(t)}};function Kt(e){return e instanceof Je}function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Q(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.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&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}var Gt=Q;function Vo(){return{events:{},emit(e,...t){(this.events[e]||[]).forEach(r=>r(...t))},on(e,t){return(this.events[e]=this.events[e]||[]).push(t),()=>this.events[e]=(this.events[e]||[]).filter(r=>r!==t)}}}var Ku=/[\w\u00A0-\uFFFF%-?]/;function Mo(e=""){return Ku.test(e)}function Fo(e){return typeof e=="function"?{match:e}:e}function xn(e){return e.length===3}function Ht(e){return e!=null}function _o(){}var qt=class{_map=new Map;get(t,r){let n=this._map.get(t);if(n)return n.get(r)}getFallback(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.has(r)||o.set(r,n),o.get(r)}set(t,r,n){let o=this._map.get(t);return o||(o=new Map,this._map.set(t,o)),o.set(r,n),this}has(t,r){return this._map.get(t)?.has(r)}delete(t,r){return this._map.get(t)?.delete(r)||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>t(i,r,o)))}},Yt=class extends Map{getFallback(t,r){let n=this.get(t);return n===void 0?(this.set(t,r),r):n}map(t){let r=[];return this.forEach((n,o)=>{r.push(t(n,o))}),r}flatMap(t){let r=[];return this.forEach((n,o)=>{r.push(...t(n,o))}),r}};function et(e){return M(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function yn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>et(t)):[e]:[et(e)]}function Gu(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Le(e){return e==null?"":Gu(e).map(([t,r])=>r!=null&&typeof r!="function"?`${t}:${r};`:void 0).filter(Boolean).join("")}function Xt(e){return e&&typeof e=="object"&&!Array.isArray(e)}function $n(e,t,r=!1){let n=e,o=t;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Xt(n)&&Xt(o)&&Object.keys(o).forEach(s=>{Xt(n[s])&&Xt(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=$n(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function Qe(e){let t,r,n;if(Array.isArray(e)){for(r=Array.from({length:t=e.length});t--;)r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Qe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Qe(n):n;return r}return e}function Lo(e){return M(e[0])}function Wo(e){return M(e[0])}var Zt={};function Hu(e=["-",":"]){let t=e.join("|");return Zt[t]||(Zt[t]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Zt[t].lastIndex=0,Zt[t]}function qu(e,t=["-",":"],r=5){let n=Hu(t),o,i=e.toString(),s=new Set,a=new Map;do o=!1,i=i.replace(n,(l,p,d,h,m)=>{if(!t.includes(d))return l;o=!0,s.add(p+d);let g=m+p.length+d.length+1,b={length:l.length,items:[]};a.set(m,b);for(let $ of[...h.matchAll(/\S+/g)]){let S=g+$.index,v=a.get(S)?.items;v?a.delete(S):v=[{offset:S,length:$[0].length,className:$[0]}];for(let E of v)E.className=E.className==="~"?p:E.className.replace(/^(!?)(.*)/,`$1${p}${d}$2`),b.items.push(E)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,d]of a)c+=e.slice(l,p),c+=d.items.map(h=>h.className).join(" "),l=p+d.length;c+=e.slice(l)}else{c=e;for(let[l,p]of a)c.overwrite(l,l+p.length,p.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:a,get expanded(){return c.toString()}}}function Uo(e,t=["-",":"],r=5){let n=qu(e,t,r);return typeof e=="string"?n.expanded:e}var Bo=new Set;function Do(e){Bo.has(e)||(console.warn("[unocss]",e),Bo.add(e))}function Ko(e){return C(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Io="_uno_resolved";async function Yu(e){let t=typeof e=="function"?await e():await e;if(Io in t)return t;t={...t},Object.defineProperty(t,Io,{value:!0,enumerable:!1});let r=t.shortcuts?Ko(t.shortcuts):void 0;if(t.shortcuts=r,t.prefix||t.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&t.prefix&&(i.prefix=C(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}async function Go(e){let t=await Yu(e);if(!t.presets)return[t];let r=(await Promise.all((t.presets||[]).flatMap(C).flatMap(Go))).flat();return[t,...r]}function Xu(e){if(e.length===0)return{};let t=[],r=[],n=!1,o=[],i=[],s=[];for(let c of e){if(c.pipeline===!1){n=!0;break}else c.pipeline?.include&&t.push(c.pipeline.include),c.pipeline?.exclude&&r.push(c.pipeline.exclude);c.filesystem&&o.push(c.filesystem),c.inline&&i.push(c.inline),c.plain&&s.push(c.plain)}let a={pipeline:n?!1:{include:ne(No(...t)),exclude:ne(No(...r))}};return o.length&&(a.filesystem=ne(o.flat())),i.length&&(a.inline=ne(i.flat())),s.length&&(a.plain=ne(s.flat())),a}async function vn(e={},t={}){let r=Object.assign({},t,e),n=bn((await Promise.all((r.presets||[]).flatMap(C).flatMap(Go))).flat(),(y,x)=>y.name===x.name),o=[...n.filter(y=>y.enforce==="pre"),...n.filter(y=>!y.enforce),...n.filter(y=>y.enforce==="post")],i=[...o,r],s=[...i].reverse(),a=Object.assign({},Po,...i.map(y=>y.layers));function c(y){return ne(i.flatMap(x=>C(x[y]||[])))}let l=c("extractors"),p=s.find(y=>y.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=Nt),p&&!l.includes(p)&&l.unshift(p),l.sort((y,x)=>(y.order||0)-(x.order||0));let d=c("rules"),h={},m=d.length,g=d.filter(y=>Lo(y)?(C(y[2]?.prefix||"").forEach(k=>{h[k+y[0]]=y}),!1):!0).reverse(),b=Zu(i.map(y=>y.theme)),$=c("extendTheme");for(let y of $)b=y(b)||b;let S={templates:ne(i.flatMap(y=>C(y.autocomplete?.templates))),extractors:i.flatMap(y=>C(y.autocomplete?.extractors)).sort((y,x)=>(y.order||0)-(x.order||0)),shorthands:Ju(i.map(y=>y.autocomplete?.shorthands||{}))},v=c("separators");v.length||(v=[":","-"]);let E=c("content"),H=Xu(E),V={mergeSelectors:!0,warn:!0,sortLayers:y=>y,...r,blocklist:c("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:b,rules:d,rulesSize:m,rulesDynamic:g,rulesStaticMap:h,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:S,variants:c("variants").map(Fo).sort((y,x)=>(y.order||0)-(x.order||0)),shortcuts:Ko(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:v,details:r.details??r.envMode==="dev",content:H,transformers:bn(c("transformers"),(y,x)=>y.name===x.name)};for(let y of i)y?.configResolved?.(V);return V}function Zu(e){return e.map(t=>t?Qe(t):{}).reduce((t,r)=>$n(t,r),{})}function Ju(e){return e.reduce((t,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...t,...n}},{})}function No(...e){return e.flatMap(Qu)}function Qu(e){return Array.isArray(e)?e:e?[e]:[]}var Ho="66.1.0-beta.7";var Ce={shortcutsNoMerge:"$$symbol-shortcut-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},wn=class e{constructor(t={},r={}){this.userConfig=t;this.defaults=r}version=Ho;events=Vo();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(t={},r={}){let n=new e(t,r);return n.config=await vn(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await vn(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={original:t,code:t,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Kt(s)&&Kt(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Ce,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){if(this.blocked.has(t))return;let n=`${t}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=t;for(let c of this.config.preprocess)o=c(t);if(this.isBlocked(o)){this.blocked.add(t),this.cache.set(n,null);return}let i=await this.matchVariants(t,o);if(i.every(c=>!c||this.isBlocked(c[1]))){this.blocked.add(t),this.cache.set(n,null);return}let s=async c=>{let l=this.makeContext(t,[r||c[0],c[1],c[2],c[3]]);this.config.details&&(l.variants=[...c[3]]);let p=await this.expandShortcut(l.currentSelector,l);return p?await this.stringifyShortcuts(l.variantMatch,l,p[0],p[1]):(await this.parseUtil(l.variantMatch,l))?.map(h=>this.stringifyUtil(h,l)).filter(Ht)},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a?.length)return this.cache.set(n,a),a;this.cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:a=!1,extendedInfo:c=!1}=r,l=M(t)?await this.applyExtractors(t,n,c?new Je:new Set):Array.isArray(t)?new Set(t):t;if(s){let x={generator:this,theme:this.config.theme};this.config.safelist.flatMap(k=>typeof k=="function"?k(x):k).forEach(k=>{l.has(k)||l.add(k)})}let p=a?"":`
2
2
  `,d=new Set([Ze]),h=c?new Map:new Set,m=new Map,g={},b=Array.from(l).map(async x=>{if(h.has(x))return;let k=await this.parseToken(x);if(k!=null){h instanceof Map?h.set(x,{data:k,count:Kt(l)?l.getCount(x):-1}):h.add(x);for(let T of k){let Z=T[3]||"",J=T[4]?.layer;m.has(Z)||m.set(Z,[]),m.get(Z).push(T),J&&d.add(J)}}});await Promise.all(b),await(async()=>{if(!i)return;let x={generator:this,theme:this.config.theme},k=new Set([]);this.config.preflights.forEach(({layer:T=Dt})=>{d.add(T),k.add(T)}),g=Object.fromEntries(await Promise.all(Array.from(k).map(async T=>{let J=(await Promise.all(this.config.preflights.filter(ce=>(ce.layer||Dt)===T).map(async ce=>await ce.getCSS(x)))).filter(Boolean).join(p);return[T,J]})))})();let $=this.config.sortLayers(Array.from(d).sort((x,k)=>(this.config.layers[x]??0)-(this.config.layers[k]??0)||x.localeCompare(k))),S={},v=this.config.outputToCssLayers,E=x=>{let k=x;return typeof v=="object"&&(k=v.cssLayerName?.(x)),k===null?null:k??x},H=(x=Ze)=>{if(S[x])return S[x];let k=Array.from(m).sort((J,ce)=>(this.parentOrders.get(J[0])??0)-(this.parentOrders.get(ce[0])??0)||J[0]?.localeCompare(ce[0]||"")||0).map(([J,ce])=>{let R=ce.length,O=ce.filter(z=>(z[4]?.layer||Ze)===x).sort((z,X)=>z[0]-X[0]||(z[4]?.sort||0)-(X[4]?.sort||0)||z[5]?.currentSelector?.localeCompare(X[5]?.currentSelector??"")||z[1]?.localeCompare(X[1]||"")||z[2]?.localeCompare(X[2]||"")||0).map(([,z,X,,Bt,,hn])=>[[[(z&&rf(z,o))??"",Bt?.sort??0]],X,!!(hn??Bt?.noMerge)]);if(!O.length)return;let W=O.reverse().map(([z,X,Bt],hn)=>{if(!Bt&&this.config.mergeSelectors)for(let Se=hn+1;Se<R;Se++){let de=O[Se];if(de&&!de[2]&&(z&&de[0]||z==null&&de[0]==null)&&de[1]===X)return z&&de[0]&&de[0].push(...z),null}let gn=z?ne(z.sort((Se,de)=>Se[1]-de[1]||Se[0]?.localeCompare(de[0]||"")||0).map(Se=>Se[0]).filter(Boolean)):[];return gn.length?`${gn.join(`,${p}`)}{${X}}`:X}).filter(Boolean).reverse().join(p);if(!J)return W;let D=J.split(" $$ ");return`${D.join("{")}{${p}${W}${p}${"}".repeat(D.length)}`}).filter(Boolean).join(p);i&&(k=[g[x],k].filter(Boolean).join(p));let T;v&&k&&(T=E(x),T!==null&&(k=`@layer ${T}{${p}${k}${p}}`));let Z=a?"":`/* layer: ${x}${T&&T!==x?`, alias: ${T}`:""} */${p}`;return S[x]=k?Z+k:""},V=(x=$,k)=>{let T=x.filter(Z=>!k?.includes(Z));return[v&&T.length>0?`@layer ${T.map(E).filter(Ht).join(", ")};`:void 0,...T.map(Z=>H(Z)||"")].filter(Boolean).join(p)};return{get css(){return V()},layers:$,matched:h,getLayers:V,getLayer:H,setLayer:async(x,k)=>{let T=await k(H(x));return S[x]=T,T}}}async matchVariants(t,r){let n={rawSelector:t,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,a,c]=i;for(;s;){s=!1;let l=i[1];for(let p of this.config.variants){if(!p.multiPass&&c.has(p))continue;let d=await p.match(l,n);if(d){if(M(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(p.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=d.map(m=>{let g=m.matcher??l,b=[m,...a],$=new Set(c);return $.add(p),[i[0],g,b,$]});return(await Promise.all(h.map(m=>o(m)))).flat()}}i[1]=d.matcher??l,a.unshift(d),c.add(p),s=!0;break}}if(!s)break;if(a.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[i]};return await o([t,r||t,[],new Set])}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,p)=>(l.order||0)-(p.order||0)).reduceRight((l,p)=>d=>{let h=p.body?.(d.entries)||d.entries,m=Array.isArray(p.parent)?p.parent:[p.parent,void 0];return(p.handle??of)({...d,entries:h,selector:p.selector?.(d.selector,h)||d.selector,parent:m[0]||d.parent,parentOrder:m[1]||d.parentOrder,layer:p.layer||d.layer,sort:p.sort||d.sort},l)},l=>l)({prefix:"",selector:nf(n),pseudo:"",entries:t[2]}),{parent:s,parentOrder:a}=i;s!=null&&a!=null&&this.parentOrders.set(s,a);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let l of this.config.postprocess)l(c);return c}constructCustomCSS(t,r,n){let o=et(r);if(M(o))return o;let{selector:i,entries:s,parent:a}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${Le(s)}}`;return a?`${a}{${c}}`:c}async parseUtil(t,r,n=!1,o){let i=M(t)?await this.matchVariants(t):[t],s=async([c,l,p])=>{this.config.details&&(r.rules=r.rules??[]);let d=this.config.rulesStaticMap[l];if(d&&d[1]&&(n||!d[2]?.internal)){this.config.details&&r.rules.push(d);let m=this.config.rules.indexOf(d),g=yn(d[1]).filter($=>$.length),b=d[2];if(g.length)return r.generator.activatedRules.add(d),g.map($=>M($)?[m,$,b]:[m,c,$,b,p])}r.variantHandlers=p;let{rulesDynamic:h}=this.config;for(let m of h){let[g,b,$]=m;if($?.internal&&!n)continue;let S=l;if($?.prefix){let V=C($.prefix);if(o){let y=C(o);if(!V.some(x=>y.includes(x)))continue}else{let y=V.find(x=>l.startsWith(x));if(y==null)continue;S=l.slice(y.length)}}let v=S.match(g);if(!v)continue;let E=await b(v,r);if(!E)continue;if(this.config.details&&r.rules.push(m),typeof E!="string")if(Symbol.asyncIterator in E){let V=[];for await(let y of E)y&&V.push(y);E=V}else Symbol.iterator in E&&!Array.isArray(E)&&(E=Array.from(E).filter(Ht));let H=yn(E).filter(V=>V.length);if(H.length){r.generator.activatedRules.add(m);let V=this.config.rules.indexOf(m);return H.map(y=>{if(M(y))return[V,y,$];let x=p,k=$;for(let T of y)T[0]===Ce.variants?x=[...C(T[1]),...x]:T[0]===Ce.parent?x=[{parent:T[1]},...x]:T[0]===Ce.selector?x=[{selector:T[1]},...x]:T[0]===Ce.layer?x=[{layer:T[1]},...x]:T[0]===Ce.sort&&(k={...k,sort:T[1]});return[V,c,y,k,x]})}}},a=(await Promise.all(i.map(c=>s(c)))).flat().filter(c=>!!c);if(a.length)return a}stringifyUtil(t,r){if(!t)return;if(xn(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a,noMerge:c}=this.applyVariants(t),l=Le(o);if(!l)return;let{layer:p,sort:d,...h}=t[3]??{},m={...h,layer:s??p,sort:a??d};return[t[0],n,l,i,m,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:_o,i,s,a,c;for(let l of this.config.shortcuts){let p=t;if(l[2]?.prefix){let h=C(l[2].prefix).find(m=>t.startsWith(m));if(h==null)continue;p=t.slice(h.length)}if(Wo(l)){if(l[0]===p){i=i||l[2],s=l[1],o(l);break}}else{let d=p.match(l[0]);if(d&&(s=l[1](d,r)),s){i=i||l[2],o(l);break}}}if(s&&(a=ne(C(s).filter(M).map(l=>Uo(l.trim()).split(/\s+/g)).flat()),c=C(s).filter(l=>!M(l)).map(l=>({handles:[],value:l}))),!s){let l=M(t)?await this.matchVariants(t):[t];for(let p of l){let[d,h,m]=p;if(d!==h){let g=await this.expandShortcut(h,r,n-1);g&&(a=g[0].filter(M).map(b=>d.replace(h,b)),c=g[0].filter(b=>!M(b)).map(b=>({handles:[...b.handles,...m],value:b.value})))}}}if(!(!a?.length&&!c?.length))return[[await Promise.all(C(a).map(async l=>(await this.expandShortcut(l,r,n-1))?.[0]||[l])),c].flat(2).filter(l=>!!l),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Yt,s=(await Promise.all(ne(n).map(async p=>{let d=M(p)?await this.parseUtil(p,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",et(p.value),void 0,p.handles]];return!d&&this.config.warn&&Do(`unmatched utility "${p}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((p,d)=>p[0]-d[0]),[a,,c]=t,l=[];for(let p of s){if(xn(p)){l.push([p[0],void 0,p[1],void 0,p[2],r,void 0]);continue}let{selector:d,entries:h,parent:m,sort:g,noMerge:b,layer:$}=this.applyVariants(p,[...p[4],...c],a);i.getFallback($??o.layer,new qt).getFallback(d,m,[[],p[0]])[0].push([h,!!(b??p[3]?.noMerge),g??0])}return l.concat(i.flatMap((p,d)=>p.map(([h,m],g,b)=>{let $=(v,E,H)=>{let V=Math.max(...H.map(x=>x[1])),y=H.map(x=>x[0]);return(v?[y.flat(1)]:y).map(x=>{let k=Le(x);if(k)return[m,g,k,b,{...o,noMerge:E,sort:V,layer:d},r,void 0]})};return[[h.filter(([,v])=>v).map(([v,,E])=>[v,E]),!0],[h.filter(([,v])=>!v).map(([v,,E])=>[v,E]),!1]].map(([v,E])=>[...$(!1,E,v.filter(([H])=>H.some(V=>V[0]===Ce.shortcutsNoMerge))),...$(!0,E,v.filter(([H])=>H.every(V=>V[0]!==Ce.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(t){return!t||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(t):M(r)?r===t:r.test(t))}getBlocked(t){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(t):M(o)?o===t:o.test(t)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function Yo(e,t){return await wn.create(e,t)}var Xo=/\s\$\$\s+/g;function tf(e){return Xo.test(e)}function rf(e,t){return tf(e)?e.replace(Xo,t?` ${t} `:" "):t?`${t} ${e}`:e}var qo=/^\[(.+?)(~?=)"(.*)"\]$/;function nf(e){return qo.test(e)?e.replace(qo,(t,r,n,o)=>`[${Gt(r)}${n}"${Gt(o)}"]`):`.${Gt(e)}`}function of(e,t){return t(e)}function sf(e){let t,r,n=2166136261;for(t=0,r=e.length;t<r;t++)n^=e.charCodeAt(t),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Zo(e,t,r,n){for(let o of Array.from(e.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${sf(i)}`;t.set(s,i),e=e.replace(i,s)}return e}function Jo(e,t){for(let[r,n]of t.entries())e=e.replaceAll(r,n);return e}var af=/\/\/#\s*sourceMappingURL=.*\n?/g;function Qo(e){return e.includes("sourceMappingURL=")?e.replace(af,""):e}var cf=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,lf=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,uf=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ff(e){let t=[];for(let o of e.matchAll(lf))o.index!==0&&!/^[\s'"`]/.test(e[o.index-1]??"")||t.push(o[0]);for(let o of e.matchAll(cf))t.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return e=Zo(e,r,/-\[(?!&.+?;)[^\]]*\]/g,n),e&&e.split(It).forEach(o=>{o.includes(n)&&(o=Jo(o,r)),Mo(o)&&!uf.test(o)&&t.push(o)}),t}function ei(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ff(Qo(e))}}}function ti(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:r}){if(t.preflightBase){let n=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=Le(n);return e.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${e.variablePrefix}`)),C(t.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ye(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let a=0;a<n;a++)switch(e[a]){case t:i||(i=!0,s=a),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,a+1),e.slice(a+1),e.slice(0,s)];break}}function ue(e,t,r,n){if(e===""||(M(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let a of n){let c=a.length;if(c&&a===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function Re(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=ue(e,"(",")",t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var kn=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],ri=["%alpha","<alpha-value>"],pf=new RegExp(ri.map(e=>le(e)).join("|"),"g");function q(e=""){let t=df(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(kn.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function oe(e){let t=e.alpha??1;return typeof t=="string"&&ri.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(pf,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,kn.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function df(e){if(!e)return;let t=mf(e);if(t!=null||(t=hf(e),t!=null)||(t=gf(e),t!=null)||(t=xf(e),t!=null)||(t=yf(e),t!=null))return t}function mf(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function hf(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function gf(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=Re(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var bf=new RegExp(`^(${kn.join("|")})\\((.+)\\)$`,"i");function xf(e){let t=e.match(bf);if(!t)return;let[,r,n]=t,o=ni(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function yf(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=ni(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function ni(e){let t=Re(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=Re(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function Jt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return t}var oi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ai=new Uint8Array(64),$f=new Uint8Array(128);for(let e=0;e<oi.length;e++){let t=oi.charCodeAt(e);ai[e]=t,$f[t]=e}function tt(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),e.write(ai[o])}while(n>0);return t}var ii=1024*16,si=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 r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},Sn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ii)}write(t){let{buffer:r}=this;r[this.pos++]=t,this.pos===ii&&(this.out+=si.decode(r),this.pos=0)}flush(){let{buffer:t,out:r,pos:n}=this;return n>0?r+si.decode(t.subarray(0,n)):r}};function ci(e){let t=new Sn,r=0,n=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(59),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let p=a[l];l>0&&t.write(44),c=tt(t,p[0],c),p.length!==1&&(r=tt(t,p[1],r),n=tt(t,p[2],n),o=tt(t,p[3],o),p.length!==4&&(i=tt(t,p[4],i)))}}return t.flush()}var Qt=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))}},er=class e{constructor(t,r,n){this.start=t,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(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 r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,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 r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,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(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");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(t,""),this.outro.length)return!0}};function vf(){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 wf=vf(),Cn=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=ci(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,"+wf(this.toString())}};function kf(e){let t=e.split(`
3
3
  `),r=t.filter(i=>/^\t+/.test(i)),n=t.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 a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function Sf(e,t){let r=e.split(/[/\\]/),n=t.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 Cf=Object.prototype.toString;function Rf(e){return Cf.call(e)==="[object Object]"}function li(e){let t=e.split(`
4
4
  `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let l=i+s>>1;o<r[l]?s=l:i=l+1}let a=i-1,c=o-r[a];return{line:a,column:c}}}var Ef=/\w/,Rn=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,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`