@unocss/runtime 0.57.4 → 0.57.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/preset-icons.global.js +1 -1
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ma=Object.defineProperty;var Ua=(e,t)=>{for(var r in t)Ma(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Ke=J;function V(e=[]){return Array.isArray(e)?e:[e]}function de(e){return Array.from(new Set(e))}function dn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function ge(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function gn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function Fa(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 he(e){return e==null?"":Fa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function qe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function zr(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 qe(n)&&qe(o)&&Object.keys(o).forEach(a=>{qe(n[a])&&qe(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=zr(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function hn(e){return A(e[0])}function bn(e){return A(e[0])}var La=/^\[(.+?)~?="(.*)"\]$/;var Na=/[\w\u00A0-\uFFFF-_:%-?]/,jr="$$shortcut-no-merge";function xn(e){return e.match(La)}function Te(e=""){return Na.test(e)}function yn(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function vn(e){return e!=null}function wn(){}var Ye=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)))}};var Ee=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Xe(e){return e instanceof Ee}var Ze={};function Wa(e=["-",":"]){let t=e.join("|");return Ze[t]||(Ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ze[t].lastIndex=0,Ze[t]}function Da(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let x=g+u.length+p.length+1,$={length:f.length,items:[]};s.set(g,$);for(let y of[...d.matchAll(/\S+/g)]){let C=x+y.index,b=s.get(C)?.items;b?s.delete(C):b=[{offset:C,length:y[0].length,className:y[0]}];for(let R of b)R.className=R.className==="~"?u:R.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),$.items.push(R)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,p]of s)c+=e.slice(f,u),c+=p.items.map(d=>d.className).join(" "),f=u+p.length;c+=e.slice(f)}else{c=e;for(let[f,u]of s)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function $n(e,t=["-",":"],r=5){let n=Da(e,t,r);return typeof e=="string"?n.expanded:e}var kn=new Set;function Y(e){kn.has(e)||(console.warn("[unocss]",e),kn.add(e))}var Je=/[\\:]?[\s'"`;{}]+/g;function Ba(e){return e.split(Je)}var Qe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ba(e)}};function Sn(){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 et="default",tt="preflights",Ia="shortcuts",Ga="imports",Cn={[Ga]:-200,[tt]:-100,[Ia]:-10,[et]:0};function Tn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Rn="_uno_resolved";function Ha(e){let t=typeof e=="function"?e():e;if(Rn in t)return t;t={...t},Object.defineProperty(t,Rn,{value:!0,enumerable:!1});let r=t.shortcuts?Tn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function En(e){let t=Ha(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(En);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=dn((r.presets||[]).flatMap(V).flatMap(En),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Cn,...i.map(m=>m.layers));function c(m){return de(i.flatMap(w=>V(w[m]||[])))}let f=c("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Qe),u&&!f.includes(u)&&f.unshift(u),f.sort((m,w)=>(m.order||0)-(w.order||0));let p=c("rules"),d={},g=p.length,x=p.map((m,w)=>{if(hn(m)){V(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),$=Ka(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)$=m($)||$;let C={templates:de(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:qa(i.map(m=>m.autocomplete?.shorthands||{}))},b=c("separators");b.length||(b=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:$,rulesSize:g,rulesDynamic:x,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(yn).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:Tn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function Ka(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>zr(t,r),{})}function qa(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}},{})}var zn="0.57.
|
|
1
|
+
"use strict";(()=>{var Ma=Object.defineProperty;var Ua=(e,t)=>{for(var r in t)Ma(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 Ke=J;function V(e=[]){return Array.isArray(e)?e:[e]}function de(e){return Array.from(new Set(e))}function dn(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function A(e){return typeof e=="string"}function ge(e){return A(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function gn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function Fa(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 he(e){return e==null?"":Fa(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function qe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function zr(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 qe(n)&&qe(o)&&Object.keys(o).forEach(a=>{qe(n[a])&&qe(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=zr(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function hn(e){return A(e[0])}function bn(e){return A(e[0])}var La=/^\[(.+?)~?="(.*)"\]$/;var Na=/[\w\u00A0-\uFFFF-_:%-?]/,jr="$$shortcut-no-merge";function xn(e){return e.match(La)}function Te(e=""){return Na.test(e)}function yn(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function vn(e){return e!=null}function wn(){}var Ye=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)))}};var Ee=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Xe(e){return e instanceof Ee}var Ze={};function Wa(e=["-",":"]){let t=e.join("|");return Ze[t]||(Ze[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ze[t].lastIndex=0,Ze[t]}function Da(e,t=["-",":"],r=5){let n=Wa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let x=g+u.length+p.length+1,$={length:f.length,items:[]};s.set(g,$);for(let y of[...d.matchAll(/\S+/g)]){let C=x+y.index,b=s.get(C)?.items;b?s.delete(C):b=[{offset:C,length:y[0].length,className:y[0]}];for(let R of b)R.className=R.className==="~"?u:R.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),$.items.push(R)}return"$".repeat(f.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let f=0;for(let[u,p]of s)c+=e.slice(f,u),c+=p.items.map(d=>d.className).join(" "),f=u+p.length;c+=e.slice(f)}else{c=e;for(let[f,u]of s)c.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function $n(e,t=["-",":"],r=5){let n=Da(e,t,r);return typeof e=="string"?n.expanded:e}var kn=new Set;function Y(e){kn.has(e)||(console.warn("[unocss]",e),kn.add(e))}var Je=/[\\:]?[\s'"`;{}]+/g;function Ba(e){return e.split(Je)}var Qe={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ba(e)}};function Sn(){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 et="default",tt="preflights",Ia="shortcuts",Ga="imports",Cn={[Ga]:-200,[tt]:-100,[Ia]:-10,[et]:0};function Tn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Rn="_uno_resolved";function Ha(e){let t=typeof e=="function"?e():e;if(Rn in t)return t;t={...t},Object.defineProperty(t,Rn,{value:!0,enumerable:!1});let r=t.shortcuts?Tn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function En(e){let t=Ha(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(En);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=dn((r.presets||[]).flatMap(V).flatMap(En),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},Cn,...i.map(m=>m.layers));function c(m){return de(i.flatMap(w=>V(w[m]||[])))}let f=c("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Qe),u&&!f.includes(u)&&f.unshift(u),f.sort((m,w)=>(m.order||0)-(w.order||0));let p=c("rules"),d={},g=p.length,x=p.map((m,w)=>{if(hn(m)){V(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),$=Ka(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)$=m($)||$;let C={templates:de(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:qa(i.map(m=>m.autocomplete?.shorthands||{}))},b=c("separators");b.length||(b=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:$,rulesSize:g,rulesDynamic:x,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map(yn).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:Tn(c("shortcuts")).reverse(),extractors:f,safelist:c("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function Ka(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>zr(t,r),{})}function qa(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}},{})}var zn="0.57.5";var Vr=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Or(t,r),this.events.emit("config",this.config)}version=zn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Sn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Or(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 a=await i.extract?.(o);if(a)if(Xe(a)&&Xe(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,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 f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),c=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(vn);if(c?.length)return this._cache.set(n,c),c;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,f=A(t)?await this.applyExtractors(t,n,c?new Ee:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{f.has(m)||f.add(m)});let u=s?"":`
|
|
2
2
|
`,p=new Set([et]),d=c?new Map:new Set,g=new Map,x={},$=Array.from(f).map(async m=>{if(d.has(m))return;let w=await this.parseToken(m);if(w!=null){d instanceof Map?d.set(m,{data:w,count:Xe(f)?f.getCount(m):-1}):d.add(m);for(let j of w){let N=j[3]||"",W=j[4]?.layer;g.has(N)||g.set(N,[]),g.get(N).push(j),W&&p.add(W)}}});await Promise.all($),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:j=tt})=>{p.add(j),w.add(j)}),x=Object.fromEntries(await Promise.all(Array.from(w).map(async j=>{let W=(await Promise.all(this.config.preflights.filter(ae=>(ae.layer||tt)===j).map(async ae=>await ae.getCSS(m)))).filter(Boolean).join(u);return[j,W]})))})();let y=this.config.sortLayers(Array.from(p).sort((m,w)=>(this.config.layers[m]??0)-(this.config.layers[w]??0)||m.localeCompare(w))),C={},b=m=>{if(C[m])return C[m];let w=Array.from(g).sort((N,W)=>(this.parentOrders.get(N[0])??0)-(this.parentOrders.get(W[0])??0)||N[0]?.localeCompare(W[0]||"")||0).map(([N,W])=>{let ae=W.length,me=W.filter(h=>(h[4]?.layer||et)===m).sort((h,k)=>h[0]-k[0]||(h[4]?.sort||0)-(k[4]?.sort||0)||h[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||h[1]?.localeCompare(k[1]||"")||h[2]?.localeCompare(k[2]||"")||0).map(([,h,k,,E,,D])=>[[[(h&&Ja(h,o))??"",E?.sort??0]],k,!!(D??E?.noMerge)]);if(!me.length)return;let Ce=me.reverse().map(([h,k,E],D)=>{if(!E&&this.config.mergeSelectors)for(let B=D+1;B<ae;B++){let q=me[B];if(q&&!q[2]&&(h&&q[0]||h==null&&q[0]==null)&&q[1]===k)return h&&q[0]&&q[0].push(...h),null}let G=h?de(h.sort((B,q)=>B[1]-q[1]||B[0]?.localeCompare(q[0]||"")||0).map(B=>B[0]).filter(Boolean)):[];return G.length?`${G.join(`,${u}`)}{${k}}`:k}).filter(Boolean).reverse().join(u);if(!N)return Ce;let He=N.split(" $$ ");return`${He.join("{")}{${u}${Ce}${u}${"}".repeat(He.length)}`}).filter(Boolean).join(u);i&&(w=[x[m],w].filter(Boolean).join(u));let j=s?"":`/* layer: ${m} */${u}`;return C[m]=w?j+w:""},R=(m=y,w)=>m.filter(j=>!w?.includes(j)).map(j=>b(j)||"").filter(Boolean).join(u);return{get css(){return R()},layers:y,matched:d,getLayers:R,getLayer:b}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let f=await c.match(i,s);if(f){if(A(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,o.unshift(f),n.add(c),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,g=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??es)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Qa(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(c);return c}constructCustomCSS(t,r,n){let o=ge(r);if(A(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${he(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,a,s]=A(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[a];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let u=c[0],p=ge(c[1]),d=c[2];return A(p)?[[u,p,d]]:[[u,i,p,d,s]]}r.variantHandlers=s;let{rulesDynamic:f}=this.config;for(let[u,p,d,g]of f){if(g?.internal&&!n)continue;let x=a;if(g?.prefix){let b=V(g.prefix);if(o){let R=V(o);if(!b.some(m=>R.includes(m)))continue}else{let R=b.find(m=>a.startsWith(m));if(R==null)continue;x=a.slice(R.length)}}let $=x.match(p);if(!$)continue;let y=await d($,r);if(!y)continue;this.config.details&&r.rules.push([p,d,g]);let C=gn(y).filter(b=>b.length);if(C.length)return C.map(b=>A(b)?[u,b,g]:[u,i,b,g,s])}}stringifyUtil(t,r){if(!t)return;if(Ar(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:a,sort:s,noMerge:c}=this.applyVariants(t),f=he(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},g={...d,layer:a??u,sort:s??p};return[t[0],n,f,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:wn,i,a;for(let s of this.config.shortcuts){let c=t;if(s[2]?.prefix){let u=V(s[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;c=t.slice(u.length)}if(bn(s)){if(s[0]===c){i=i||s[2],a=s[1],o(s);break}}else{let f=c.match(s[0]);if(f&&(a=s[1](f,r)),a){i=i||s[2],o(s);break}}}if(A(a)&&(a=$n(a.trim()).split(/\s+/g)),!a){let[s,c]=A(t)?await this.matchVariants(t):t;if(s!==c){let f=await this.expandShortcut(c,r,n-1);f&&(a=f[0].map(u=>A(u)?s.replace(c,u):u))}}if(a)return[(await Promise.all(a.map(async s=>(A(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Ye,a=(await Promise.all(de(n).map(async u=>{let p=A(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ge(u),void 0,[]]];return!p&&this.config.warn&&Y(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[s,,c]=t,f=[];for(let u of a){if(Ar(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:x,noMerge:$}=this.applyVariants(u,[...u[4],...c],s);i.getFallback(p,g,[[],u[0]])[0].push([d,!!($??u[3]?.noMerge),x??0])}return f.concat(i.map(([u,p],d,g)=>{let x=(y,C,b)=>{let R=Math.max(...b.map(w=>w[1])),m=b.map(w=>w[0]);return(y?[m.flat(1)]:m).map(w=>{let j=he(w);if(j)return[p,d,j,g,{...o,noMerge:C,sort:R},r,void 0]})};return[[u.filter(([,y])=>y).map(([y,,C])=>[y,C]),!0],[u.filter(([,y])=>!y).map(([y,,C])=>[y,C]),!1]].map(([y,C])=>[...x(!1,C,y.filter(([b])=>b.some(R=>R[0]===jr))),...x(!0,C,y.filter(([b])=>b.every(R=>R[0]!==jr)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):A(r)?r===t:r.test(t))}};function An(e,t){return new Vr(e,t)}var Xa=/\s\$\$\s+/g;function Za(e){return e.match(/\s\$\$\s/)}function Ja(e,t){return Za(e)?e.replace(Xa,t?` ${t} `:" "):t?`${t} ${e}`:e}var jn=/^\[(.+?)(~?=)"(.*)"\]$/;function Qa(e){return jn.test(e)?e.replace(jn,(t,r,n,o)=>`[${Ke(r)}${n}"${Ke(o)}"]`):`.${Ke(e)}`}function es(e,t){return t(e)}var ts=/\/\/#\s*sourceMappingURL=.*\n?/g;function On(e){return e.includes("sourceMappingURL=")?e.replace(ts,""):e}var rs=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,ns=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,os=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function is(e){let t=[];for(let r of e.matchAll(ns))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(rs))t.push(r[0]);return e.split(Je).forEach(r=>{Te(r)&&!os.test(r)&&t.push(r)}),t}var Vn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return is(On(e))}};var _n=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=he(Object.entries(e.theme.preflightBase));return V(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},_r={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Pr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},rt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Pn=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},...Pn.map(e=>({[e.replace(/ /,"-")]:e})),...Pn.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),S=["inherit","initial","revert","revert-layer","unset"],Mr=/(?:calc|clamp|min|max)\s*\(.*\)/;function be(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Ur(e,t,r,n){if(e===""||(A(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let c=s.length;if(c&&s===e.slice(a,a+c)&&i===0)return a===0||a===o-c?void 0:[e.slice(0,a),e.slice(a+c)]}}return[e,""]}function se(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ur(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Fr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Mn=["%alpha","<alpha-value>"],as=new RegExp(Mn.map(e=>te(e)).join("|"));function X(e=""){let t=ss(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Fr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function Q(e){let t=e.alpha??1;return typeof t=="string"&&Mn.includes(t)?1:t}function _(e,t){if(typeof e=="string")return e.replace(as,`${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}`,Fr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ss(e){if(!e)return;let t=cs(e);if(t!=null||(t=ls(e),t!=null)||(t=fs(e),t!=null)||(t=ps(e),t!=null)||(t=ms(e),t!=null))return t}function cs(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 ls(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function fs(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=se(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 us=new RegExp(`^(${Fr.join("|")})\\((.+)\\)$`,"i");function ps(e){let t=e.match(us);if(!t)return;let[,r,n]=t,o=Un(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function ms(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Un(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Un(e){let t=se(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=se(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 nt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};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,get(){return r(this,n)}});return t}function I(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function F(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function re(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=be(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function L(e,t,r){if(t.startsWith(e)){let n=re(e,t,r);if(n){let[o="",i=n[1]]=L("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var ds=",".charCodeAt(0),gs=";".charCodeAt(0),Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=new Uint8Array(64),hs=new Uint8Array(128);for(let e=0;e<Fn.length;e++){let t=Fn.charCodeAt(e);Ln[e]=t,hs[t]=e}var Lr=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}};function Nn(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let c=0;c<e.length;c++){let f=e[c];if(c>0&&(a===r&&(s+=Lr.decode(o),a=0),o[a++]=gs),f.length!==0){t[0]=0;for(let u=0;u<f.length;u++){let p=f[u];a>n&&(s+=Lr.decode(i),o.copyWithin(0,n,a),a-=n),u>0&&(o[a++]=ds),a=ze(o,a,t,p,0),p.length!==1&&(a=ze(o,a,t,p,1),a=ze(o,a,t,p,2),a=ze(o,a,t,p,3),p.length!==4&&(a=ze(o,a,t,p,4)))}}}return s+Lr.decode(o.subarray(0,a))}function ze(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=Ln[s]}while(a>0);return t}var ot=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))}},it=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}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 bs(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 xs=bs(),Nr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Nn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+xs(this.toString())}};function ys(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function vs(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 ws=Object.prototype.toString;function $s(e){return ws.call(e)==="[object Object]"}function Wn(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,a=r.length;for(;i<a;){let f=i+a>>1;o<r[f]?a=f:i=f+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var ks=/\w/,Wr=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.indexOf(`
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(()=>{function we(t){let e=t.length,r=-1,n,s="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var F=we;function w(t=[]){return Array.isArray(t)?t:[t]}function D(t){return Array.from(new Set(t))}function ne(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function L(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>L(e)):[t]:[L(t)]}function Me(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}function N(t){return t==null?"":Me(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function I(t){return t&&typeof t=="object"&&!Array.isArray(t)}function J(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let i={...n};return I(n)&&I(s)&&Object.keys(s).forEach(c=>{I(n[c])&&I(s[c])||Array.isArray(n[c])&&Array.isArray(s[c])?i[c]=J(n[c],s[c],r):Object.assign(i,{[c]:s[c]})}),i}function K(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:K(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}return t}function ie(t){return A(t[0])}function oe(t){return A(t[0])}var Q="$$shortcut-no-merge";function ae(t){return typeof t=="function"?{match:t}:t}function X(t){return t.length===3}function ce(t){return t!=null}function le(){}var B=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(r)||s.set(r,n),s.get(r)}set(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.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(([s,i])=>e(i,r,s)))}};var G=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function z(t){return t instanceof G}var W={};function Ue(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function _e(t,e=["-",":"],r=5){let n=Ue(e),s,i=t.toString(),c=new Set,l=new Map;do s=!1,i=i.replace(n,(f,o,d,h,y)=>{if(!e.includes(d))return f;s=!0,c.add(o+d);let R=y+o.length+d.length+1,v={length:f.length,items:[]};l.set(y,v);for(let S of[...h.matchAll(/\S+/g)]){let C=R+S.index,x=l.get(C)?.items;x?l.delete(C):x=[{offset:C,length:S[0].length,className:S[0]}];for(let T of x)T.className=T.className==="~"?o:T.className.replace(/^(!?)(.*)/,`$1${o}${d}$2`),v.items.push(T)}return"$".repeat(f.length)}),r-=1;while(s&&r);let u;if(typeof t=="string"){u="";let f=0;for(let[o,d]of l)u+=t.slice(f,o),u+=d.items.map(h=>h.className).join(" "),f=o+d.length;u+=t.slice(f)}else{u=t;for(let[f,o]of l)u.overwrite(f,f+o.length,o.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(c),hasChanged:s,groupsByOffset:l,get expanded(){return u.toString()}}}function ue(t,e=["-",":"],r=5){let n=_e(t,e,r);return typeof t=="string"?n.expanded:t}var fe=new Set;function pe(t){fe.has(t)||(console.warn("[unocss]",t),fe.add(t))}var de=/[\\:]?[\s'"`;{}]+/g;function Ve(t){return t.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ve(t)}};function ge(){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 q="default",Z="preflights",Pe="shortcuts",$e="imports",me={[$e]:-200,[Z]:-100,[Pe]:-10,[q]:0};function ye(t){return w(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var he="_uno_resolved";function Oe(t){let e=typeof t=="function"?t():t;if(he in e)return e;e={...e},Object.defineProperty(e,he,{value:!0,enumerable:!1});let r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=w(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function xe(t){let e=Oe(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(w).flatMap(xe);return[e,...r]}function ee(t={},e={}){let r=Object.assign({},e,t),n=ne((r.presets||[]).flatMap(w).flatMap(xe),(a,g)=>a.name===g.name),s=[...n.filter(a=>a.enforce==="pre"),...n.filter(a=>!a.enforce),...n.filter(a=>a.enforce==="post")],i=[...s,r],c=[...i].reverse(),l=Object.assign({},me,...i.map(a=>a.layers));function u(a){return D(i.flatMap(g=>w(g[a]||[])))}let f=u("extractors"),o=c.find(a=>a.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Y),o&&!f.includes(o)&&f.unshift(o),f.sort((a,g)=>(a.order||0)-(g.order||0));let d=u("rules"),h={},y=d.length,R=d.map((a,g)=>{if(ie(a)){w(a[2]?.prefix||"").forEach(M=>{h[M+a[0]]=[g,a[1],a[2],a]});return}return[g,...a]}).filter(Boolean).reverse(),v=je(i.map(a=>a.theme)),S=u("extendTheme");for(let a of S)v=a(v)||v;let C={templates:D(i.flatMap(a=>w(a.autocomplete?.templates))),extractors:i.flatMap(a=>w(a.autocomplete?.extractors)).sort((a,g)=>(a.order||0)-(g.order||0)),shorthands:De(i.map(a=>a.autocomplete?.shorthands||{}))},x=u("separators");x.length||(x=[":","-"]);let T={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:a=>a,...r,presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:v,rulesSize:y,rulesDynamic:R,rulesStaticMap:h,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:C,variants:u("variants").map(ae).sort((a,g)=>(a.order||0)-(g.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:x,details:r.details??r.envMode==="dev"};for(let a of i)a?.configResolved?.(T);return T}function je(t){return t.map(e=>e?K(e):{}).reduce((e,r)=>J(e,r),{})}function De(t){return t.reduce((e,r)=>{let n={};for(let s in r){let i=r[s];Array.isArray(i)?n[s]=`(${i.join("|")})`:n[s]=i}return{...e,...n}},{})}var Se="0.57.
|
|
1
|
+
"use strict";(()=>{function we(t){let e=t.length,r=-1,n,s="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){s+="\uFFFD";continue}if(n===37){s+="\\%";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){s+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){s+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=t.charAt(r);continue}s+=`\\${t.charAt(r)}`}return s}var F=we;function w(t=[]){return Array.isArray(t)?t:[t]}function D(t){return Array.from(new Set(t))}function ne(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function L(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function se(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>L(e)):[t]:[L(t)]}function Me(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(t[s][0]===e&&t[s][1]===r)return!1;return!0})}function N(t){return t==null?"":Me(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function I(t){return t&&typeof t=="object"&&!Array.isArray(t)}function J(t,e,r=!1){let n=t,s=e;if(Array.isArray(s))return r&&Array.isArray(s)?[...n,...s]:[...s];let i={...n};return I(n)&&I(s)&&Object.keys(s).forEach(c=>{I(n[c])&&I(s[c])||Array.isArray(n[c])&&Array.isArray(s[c])?i[c]=J(n[c],s[c],r):Object.assign(i,{[c]:s[c]})}),i}function K(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:K(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?K(n):n;return r}return t}function ie(t){return A(t[0])}function oe(t){return A(t[0])}var Q="$$shortcut-no-merge";function ae(t){return typeof t=="function"?{match:t}:t}function X(t){return t.length===3}function ce(t){return t!=null}function le(){}var B=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.has(r)||s.set(r,n),s.get(r)}set(e,r,n){let s=this._map.get(e);return s||(s=new Map,this._map.set(e,s)),s.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(([s,i])=>e(i,r,s)))}};var G=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function z(t){return t instanceof G}var W={};function Ue(t=["-",":"]){let e=t.join("|");return W[e]||(W[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),W[e].lastIndex=0,W[e]}function _e(t,e=["-",":"],r=5){let n=Ue(e),s,i=t.toString(),c=new Set,l=new Map;do s=!1,i=i.replace(n,(f,o,d,h,y)=>{if(!e.includes(d))return f;s=!0,c.add(o+d);let R=y+o.length+d.length+1,v={length:f.length,items:[]};l.set(y,v);for(let S of[...h.matchAll(/\S+/g)]){let C=R+S.index,x=l.get(C)?.items;x?l.delete(C):x=[{offset:C,length:S[0].length,className:S[0]}];for(let T of x)T.className=T.className==="~"?o:T.className.replace(/^(!?)(.*)/,`$1${o}${d}$2`),v.items.push(T)}return"$".repeat(f.length)}),r-=1;while(s&&r);let u;if(typeof t=="string"){u="";let f=0;for(let[o,d]of l)u+=t.slice(f,o),u+=d.items.map(h=>h.className).join(" "),f=o+d.length;u+=t.slice(f)}else{u=t;for(let[f,o]of l)u.overwrite(f,f+o.length,o.items.map(d=>d.className).join(" "))}return{prefixes:Array.from(c),hasChanged:s,groupsByOffset:l,get expanded(){return u.toString()}}}function ue(t,e=["-",":"],r=5){let n=_e(t,e,r);return typeof t=="string"?n.expanded:t}var fe=new Set;function pe(t){fe.has(t)||(console.warn("[unocss]",t),fe.add(t))}var de=/[\\:]?[\s'"`;{}]+/g;function Ve(t){return t.split(de)}var Y={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Ve(t)}};function ge(){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 q="default",Z="preflights",Pe="shortcuts",$e="imports",me={[$e]:-200,[Z]:-100,[Pe]:-10,[q]:0};function ye(t){return w(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var he="_uno_resolved";function Oe(t){let e=typeof t=="function"?t():t;if(he in e)return e;e={...e},Object.defineProperty(e,he,{value:!0,enumerable:!1});let r=e.shortcuts?ye(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=s=>{s[2]||(s[2]={});let i=s[2];i.prefix==null&&e.prefix&&(i.prefix=w(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function xe(t){let e=Oe(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(w).flatMap(xe);return[e,...r]}function ee(t={},e={}){let r=Object.assign({},e,t),n=ne((r.presets||[]).flatMap(w).flatMap(xe),(a,g)=>a.name===g.name),s=[...n.filter(a=>a.enforce==="pre"),...n.filter(a=>!a.enforce),...n.filter(a=>a.enforce==="post")],i=[...s,r],c=[...i].reverse(),l=Object.assign({},me,...i.map(a=>a.layers));function u(a){return D(i.flatMap(g=>w(g[a]||[])))}let f=u("extractors"),o=c.find(a=>a.extractorDefault!==void 0)?.extractorDefault;o===void 0&&(o=Y),o&&!f.includes(o)&&f.unshift(o),f.sort((a,g)=>(a.order||0)-(g.order||0));let d=u("rules"),h={},y=d.length,R=d.map((a,g)=>{if(ie(a)){w(a[2]?.prefix||"").forEach(M=>{h[M+a[0]]=[g,a[1],a[2],a]});return}return[g,...a]}).filter(Boolean).reverse(),v=je(i.map(a=>a.theme)),S=u("extendTheme");for(let a of S)v=a(v)||v;let C={templates:D(i.flatMap(a=>w(a.autocomplete?.templates))),extractors:i.flatMap(a=>w(a.autocomplete?.extractors)).sort((a,g)=>(a.order||0)-(g.order||0)),shorthands:De(i.map(a=>a.autocomplete?.shorthands||{}))},x=u("separators");x.length||(x=[":","-"]);let T={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:a=>a,...r,presets:s,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:v,rulesSize:y,rulesDynamic:R,rulesStaticMap:h,preprocess:u("preprocess"),postprocess:u("postprocess"),preflights:u("preflights"),autocomplete:C,variants:u("variants").map(ae).sort((a,g)=>(a.order||0)-(g.order||0)),shortcuts:ye(u("shortcuts")).reverse(),extractors:f,safelist:u("safelist"),separators:x,details:r.details??r.envMode==="dev"};for(let a of i)a?.configResolved?.(T);return T}function je(t){return t.map(e=>e?K(e):{}).reduce((e,r)=>J(e,r),{})}function De(t){return t.reduce((e,r)=>{let n={};for(let s in r){let i=r[s];Array.isArray(i)?n[s]=`(${i.join("|")})`:n[s]=i}return{...e,...n}},{})}var Se="0.57.5";var te=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ee(e,r),this.events.emit("config",this.config)}version=Se;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=ge();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ee(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let s={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let c=await i.extract?.(s);if(c)if(z(c)&&z(n))for(let l of c)n.setCount(l,n.getCount(l)+c.getCount(l));else for(let l of c)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=e;for(let f of this.config.preprocess)s=f(e);if(this.isBlocked(s)){this.blocked.add(e),this._cache.set(n,null);return}let i=await this.matchVariants(e,s);if(!i||this.isBlocked(i[1])){this.blocked.add(e),this._cache.set(n,null);return}let c=this.makeContext(e,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(c.variants=[...i[3]]);let l=await this.expandShortcut(c.currentSelector,c),u=l?await this.stringifyShortcuts(c.variantMatch,c,l[0],l[1]):(await this.parseUtil(c.variantMatch,c))?.map(f=>this.stringifyUtil(f,c)).filter(ce);if(u?.length)return this._cache.set(n,u),u;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:s,preflights:i=!0,safelist:c=!0,minify:l=!1,extendedInfo:u=!1}=r,f=A(e)?await this.applyExtractors(e,n,u?new G:new Set):Array.isArray(e)?new Set(e):e;c&&this.config.safelist.forEach(a=>{f.has(a)||f.add(a)});let o=l?"":`
|
|
2
2
|
`,d=new Set([q]),h=u?new Map:new Set,y=new Map,R={},v=Array.from(f).map(async a=>{if(h.has(a))return;let g=await this.parseToken(a);if(g!=null){h instanceof Map?h.set(a,{data:g,count:z(f)?f.getCount(a):-1}):h.add(a);for(let E of g){let M=E[3]||"",U=E[4]?.layer;y.has(M)||y.set(M,[]),y.get(M).push(E),U&&d.add(U)}}});await Promise.all(v),await(async()=>{if(!i)return;let a={generator:this,theme:this.config.theme},g=new Set([]);this.config.preflights.forEach(({layer:E=Z})=>{d.add(E),g.add(E)}),R=Object.fromEntries(await Promise.all(Array.from(g).map(async E=>{let U=(await Promise.all(this.config.preflights.filter(O=>(O.layer||Z)===E).map(async O=>await O.getCSS(a)))).filter(Boolean).join(o);return[E,U]})))})();let S=this.config.sortLayers(Array.from(d).sort((a,g)=>(this.config.layers[a]??0)-(this.config.layers[g]??0)||a.localeCompare(g))),C={},x=a=>{if(C[a])return C[a];let g=Array.from(y).sort((M,U)=>(this.parentOrders.get(M[0])??0)-(this.parentOrders.get(U[0])??0)||M[0]?.localeCompare(U[0]||"")||0).map(([M,U])=>{let O=U.length,j=U.filter(p=>(p[4]?.layer||q)===a).sort((p,m)=>p[0]-m[0]||(p[4]?.sort||0)-(m[4]?.sort||0)||p[5]?.currentSelector?.localeCompare(m[5]?.currentSelector??"")||p[1]?.localeCompare(m[1]||"")||p[2]?.localeCompare(m[2]||"")||0).map(([,p,m,,b,,_])=>[[[(p&&Ge(p,s))??"",b?.sort??0]],m,!!(_??b?.noMerge)]);if(!j.length)return;let k=j.reverse().map(([p,m,b],_)=>{if(!b&&this.config.mergeSelectors)for(let V=_+1;V<O;V++){let $=j[V];if($&&!$[2]&&(p&&$[0]||p==null&&$[0]==null)&&$[1]===m)return p&&$[0]&&$[0].push(...p),null}let P=p?D(p.sort((V,$)=>V[1]-$[1]||V[0]?.localeCompare($[0]||"")||0).map(V=>V[0]).filter(Boolean)):[];return P.length?`${P.join(`,${o}`)}{${m}}`:m}).filter(Boolean).reverse().join(o);if(!M)return k;let H=M.split(" $$ ");return`${H.join("{")}{${o}${k}${o}${"}".repeat(H.length)}`}).filter(Boolean).join(o);i&&(g=[R[a],g].filter(Boolean).join(o));let E=l?"":`/* layer: ${a} */${o}`;return C[a]=g?E+g:""},T=(a=S,g)=>a.filter(E=>!g?.includes(E)).map(E=>x(E)||"").filter(Boolean).join(o);return{get css(){return T()},layers:S,matched:h,getLayers:T,getLayer:x}}async matchVariants(e,r){let n=new Set,s=[],i=r||e,c=!0,l={rawSelector:e,theme:this.config.theme,generator:this};for(;c;){c=!1;for(let u of this.config.variants){if(!u.multiPass&&n.has(u))continue;let f=await u.match(i,l);if(f){if(A(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,s.unshift(f),n.add(u),c=!0;break}}if(!c)break;if(s.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,i,s,n]}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((f,o)=>(f.order||0)-(o.order||0)).reduceRight((f,o)=>d=>{let h=o.body?.(d.entries)||d.entries,y=Array.isArray(o.parent)?o.parent:[o.parent,void 0];return(o.handle??Fe)({...d,entries:h,selector:o.selector?.(d.selector,h)||d.selector,parent:y[0]||d.parent,parentOrder:y[1]||d.parentOrder,layer:o.layer||d.layer,sort:o.sort||d.sort},f)},f=>f)({prefix:"",selector:He(n),pseudo:"",entries:e[2]}),{parent:c,parentOrder:l}=i;c!=null&&l!=null&&this.parentOrders.set(c,l);let u={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:c,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(u);return u}constructCustomCSS(e,r,n){let s=L(r);if(A(s))return s;let{selector:i,entries:c,parent:l}=this.applyVariants([0,n||e.rawSelector,s,void 0,e.variantHandlers]),u=`${i}{${N(c)}}`;return l?`${l}{${u}}`:u}async parseUtil(e,r,n=!1,s){let[i,c,l]=A(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let u=this.config.rulesStaticMap[c];if(u&&u[1]&&(n||!u[2]?.internal)){this.config.details&&r.rules.push(u[3]);let o=u[0],d=L(u[1]),h=u[2];return A(d)?[[o,d,h]]:[[o,i,d,h,l]]}r.variantHandlers=l;let{rulesDynamic:f}=this.config;for(let[o,d,h,y]of f){if(y?.internal&&!n)continue;let R=c;if(y?.prefix){let x=w(y.prefix);if(s){let T=w(s);if(!x.some(a=>T.includes(a)))continue}else{let T=x.find(a=>c.startsWith(a));if(T==null)continue;R=c.slice(T.length)}}let v=R.match(d);if(!v)continue;let S=await h(v,r);if(!S)continue;this.config.details&&r.rules.push([d,h,y]);let C=se(S).filter(x=>x.length);if(C.length)return C.map(x=>A(x)?[o,x,y]:[o,i,x,y,l])}}stringifyUtil(e,r){if(!e)return;if(X(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:s,parent:i,layer:c,sort:l,noMerge:u}=this.applyVariants(e),f=N(s);if(!f)return;let{layer:o,sort:d,...h}=e[3]??{},y={...h,layer:c??o,sort:l??d};return[e[0],n,f,i,y,this.config.details?r:void 0,u]}async expandShortcut(e,r,n=5){if(n===0)return;let s=this.config.details?l=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(l)}:le,i,c;for(let l of this.config.shortcuts){let u=e;if(l[2]?.prefix){let o=w(l[2].prefix).find(d=>e.startsWith(d));if(o==null)continue;u=e.slice(o.length)}if(oe(l)){if(l[0]===u){i=i||l[2],c=l[1],s(l);break}}else{let f=u.match(l[0]);if(f&&(c=l[1](f,r)),c){i=i||l[2],s(l);break}}}if(A(c)&&(c=ue(c.trim()).split(/\s+/g)),!c){let[l,u]=A(e)?await this.matchVariants(e):e;if(l!==u){let f=await this.expandShortcut(u,r,n-1);f&&(c=f[0].map(o=>A(o)?l.replace(u,o):o))}}if(c)return[(await Promise.all(c.map(async l=>(A(l)?(await this.expandShortcut(l,r,n-1))?.[0]:void 0)||[l]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(e,r,n,s={layer:this.config.shortcutsLayer}){let i=new B,c=(await Promise.all(D(n).map(async o=>{let d=A(o)?await this.parseUtil(o,r,!0,s.prefix):[[Number.POSITIVE_INFINITY,"{inline}",L(o),void 0,[]]];return!d&&this.config.warn&&pe(`unmatched utility "${o}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((o,d)=>o[0]-d[0]),[l,,u]=e,f=[];for(let o of c){if(X(o)){f.push([o[0],void 0,o[1],void 0,o[2],r,void 0]);continue}let{selector:d,entries:h,parent:y,sort:R,noMerge:v}=this.applyVariants(o,[...o[4],...u],l);i.getFallback(d,y,[[],o[0]])[0].push([h,!!(v??o[3]?.noMerge),R??0])}return f.concat(i.map(([o,d],h,y)=>{let R=(S,C,x)=>{let T=Math.max(...x.map(g=>g[1])),a=x.map(g=>g[0]);return(S?[a.flat(1)]:a).map(g=>{let E=N(g);if(E)return[d,h,E,y,{...s,noMerge:C,sort:T},r,void 0]})};return[[o.filter(([,S])=>S).map(([S,,C])=>[S,C]),!0],[o.filter(([,S])=>!S).map(([S,,C])=>[S,C]),!1]].map(([S,C])=>[...R(!1,C,S.filter(([x])=>x.some(T=>T[0]===Q))),...R(!0,C,S.filter(([x])=>x.every(T=>T[0]!==Q)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):A(r)?r===e:r.test(e))}};function Te(t,e){return new te(t,e)}var ke=/\s\$\$\s+/g;function Ke(t){return t.match(/\s\$\$\s/)}function Ge(t,e){return Ke(t)?t.replace(ke,e?` ${e} `:" "):e?`${e} ${t}`:t}var be=/^\[(.+?)(~?=)"(.*)"\]$/;function He(t){return be.test(t)?t.replace(be,(e,r,n,s)=>`[${F(r)}${n}"${F(s)}"]`):`.${F(t)}`}function Fe(t,e){return e(t)}function Ie(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Ce(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ee(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Re=["Webkit","Moz","ms"];function ve(t){let e={};function r(n){let s=e[n];if(s)return s;let i=Ie(n);if(i!=="filter"&&i in t)return e[n]=Ee(i);i=Ce(i);for(let c=0;c<Re.length;c++){let l=`${Re[c]}${i}`;if(l in t)return e[n]=Ee(Ce(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=r(s[0]))})}function Ae(t){return t.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<")}function re(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,s=e.__unocss||{},i=Object.assign({},t,s.runtime),c=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(c.postprocess=w(c.postprocess)).unshift(ve(r.createElement("div").style)),i.configResolved?.(s,c);let u=Te(s,c),f=p=>i.inject?i.inject(p):n().prepend(p),o=()=>i.rootElement?i.rootElement():r.body,d=new Map,h=!0,y=new Set,R,v,S=[],C=()=>new Promise(p=>{S.push(p),v!=null&&clearTimeout(v),v=setTimeout(()=>a().then(()=>{let m=S;S=[],m.forEach(b=>b())}),0)});function x(p){if(p.nodeType!==1)return;let m=p;m.hasAttribute(l)&&m.removeAttribute(l),m.querySelectorAll(`[${l}]`).forEach(b=>{b.removeAttribute(l)})}function T(p,m){let b=d.get(p);if(!b)if(b=r.createElement("style"),b.setAttribute("data-unocss-runtime-layer",p),d.set(p,b),m==null)f(b);else{let _=T(m),P=_.parentNode;P?P.insertBefore(b,_.nextSibling):f(b)}return b}async function a(){let p=await u.generate(y);return p.layers.reduce((m,b)=>(T(b,m).innerHTML=p.getLayer(b)??"",b),void 0),y=p.matched,{...p,getStyleElement:m=>d.get(m),getStyleElements:()=>d}}async function g(p){let m=y.size;await u.applyExtractors(p,void 0,y),m!==y.size&&await C()}async function E(p=o()){let m=p&&p.outerHTML;m&&(await g(`${m} ${Ae(m)}`),x(n()),x(p))}let M=new MutationObserver(p=>{h||p.forEach(async m=>{if(m.target.nodeType!==1)return;let b=m.target;for(let _ of d)if(b===_[1])return;if(m.type==="childList")m.addedNodes.forEach(async _=>{if(_.nodeType!==1)return;let P=_;R&&!R(P)||(await g(P.outerHTML),x(P))});else{if(R&&!R(b))return;if(m.attributeName!==l){let _=Array.from(b.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),P=`<${b.tagName.toLowerCase()} ${_}>`;await g(P)}b.hasAttribute(l)&&b.removeAttribute(l)}})}),U=!1;function O(){if(U)return;let p=i.observer?.target?i.observer.target():o();p&&(M.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),U=!0)}function j(){i.bypassDefined&&Ne(u.blocked),E(),O()}function k(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",j):j()}let H=e.__unocss_runtime=e.__unocss_runtime={version:u.version,uno:u,async extract(p){A(p)||(p.forEach(m=>y.add(m)),p=""),await g(p)},extractAll:E,inspect(p){R=p},toggleObserver(p){p===void 0?h=!h:h=!!p,!U&&!h&&k()},update:a,presets:e.__unocss_runtime?.presets??{}};i.ready?.(H)!==!1&&(h=!1,k())}function Ne(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(s=>s.selectorText?.split(/,/g)||[]).forEach(s=>{s&&(s=s.trim(),s.startsWith(".")&&(s=s.slice(1)),t.add(s))})}catch{continue}}return t}re();})();
|
package/dist/index.d.mts
CHANGED
|
@@ -123,4 +123,4 @@ declare global {
|
|
|
123
123
|
}
|
|
124
124
|
declare function init(inlineConfig?: RuntimeOptions): void;
|
|
125
125
|
|
|
126
|
-
export { RuntimeContext, RuntimeGenerateResult, RuntimeInspectorCallback, RuntimeObserverConfig, RuntimeOptions, init as default };
|
|
126
|
+
export { type RuntimeContext, type RuntimeGenerateResult, type RuntimeInspectorCallback, type RuntimeObserverConfig, type RuntimeOptions, init as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -123,4 +123,4 @@ declare global {
|
|
|
123
123
|
}
|
|
124
124
|
declare function init(inlineConfig?: RuntimeOptions): void;
|
|
125
125
|
|
|
126
|
-
export { RuntimeContext, RuntimeGenerateResult, RuntimeInspectorCallback, RuntimeObserverConfig, RuntimeOptions, init as default };
|
|
126
|
+
export { type RuntimeContext, type RuntimeGenerateResult, type RuntimeInspectorCallback, type RuntimeObserverConfig, type RuntimeOptions, init as default };
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ga=Object.defineProperty;var Ha=(e,t)=>{for(var r in t)Ga(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 qe=J;function V(e=[]){return Array.isArray(e)?e:[e]}function de(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 O(e){return typeof e=="string"}function ge(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function Ka(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 he(e){return e==null?"":Ka(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ye(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(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 Ye(n)&&Ye(o)&&Object.keys(o).forEach(a=>{Ye(n[a])&&Ye(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Te(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function yn(e){return O(e[0])}function vn(e){return O(e[0])}var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF-_:%-?]/,Or="$$shortcut-no-merge";function wn(e){return e.match(qa)}function Ee(e=""){return Ya.test(e)}function $n(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function kn(e){return e!=null}function Sn(){}var Xe=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)))}};var ze=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ze(e){return e instanceof ze}var Je={};function Xa(e=["-",":"]){let t=e.join("|");return Je[t]||(Je[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Je[t].lastIndex=0,Je[t]}function Za(e,t=["-",":"],r=5){let n=Xa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,p,u,d,g)=>{if(!t.includes(u))return l;o=!0,a.add(p+u);let b=g+p.length+u.length+1,$={length:l.length,items:[]};s.set(g,$);for(let y of[...d.matchAll(/\S+/g)]){let C=b+y.index,x=s.get(C)?.items;x?s.delete(C):x=[{offset:C,length:y[0].length,className:y[0]}];for(let R of x)R.className=R.className==="~"?p:R.className.replace(/^(!?)(.*)/,`$1${p}${u}$2`),$.items.push(R)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,u]of s)c+=e.slice(l,p),c+=u.items.map(d=>d.className).join(" "),l=p+u.length;c+=e.slice(l)}else{c=e;for(let[l,p]of s)c.overwrite(l,l+p.length,p.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function Cn(e,t=["-",":"],r=5){let n=Za(e,t,r);return typeof e=="string"?n.expanded:e}var Rn=new Set;function Y(e){Rn.has(e)||(console.warn("[unocss]",e),Rn.add(e))}var Qe=/[\\:]?[\s'"`;{}]+/g;function Ja(e){return e.split(Qe)}var et={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ja(e)}};function Tn(){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 tt="default",rt="preflights",Qa="shortcuts",es="imports",En={[es]:-200,[rt]:-100,[Qa]:-10,[tt]:0};function jn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var zn="_uno_resolved";function ts(e){let t=typeof e=="function"?e():e;if(zn in t)return t;t={...t},Object.defineProperty(t,zn,{value:!0,enumerable:!1});let r=t.shortcuts?jn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function On(e){let t=ts(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(On);return[t,...r]}function Vr(e={},t={}){let r=Object.assign({},t,e),n=bn((r.presets||[]).flatMap(V).flatMap(On),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},En,...i.map(m=>m.layers));function c(m){return de(i.flatMap(w=>V(w[m]||[])))}let l=c("extractors"),p=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=et),p&&!l.includes(p)&&l.unshift(p),l.sort((m,w)=>(m.order||0)-(w.order||0));let u=c("rules"),d={},g=u.length,b=u.map((m,w)=>{if(yn(m)){V(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),$=rs(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)$=m($)||$;let C={templates:de(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:ns(i.map(m=>m.autocomplete?.shorthands||{}))},x=c("separators");x.length||(x=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:$,rulesSize:g,rulesDynamic:b,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map($n).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:jn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:x,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function rs(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Te(t,r),{})}function ns(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}},{})}var An="0.57.
|
|
1
|
+
"use strict";(()=>{var Ga=Object.defineProperty;var Ha=(e,t)=>{for(var r in t)Ga(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 qe=J;function V(e=[]){return Array.isArray(e)?e:[e]}function de(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 O(e){return typeof e=="string"}function ge(e){return O(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function xn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function Ka(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 he(e){return e==null?"":Ka(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ye(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Te(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 Ye(n)&&Ye(o)&&Object.keys(o).forEach(a=>{Ye(n[a])&&Ye(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Te(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function yn(e){return O(e[0])}function vn(e){return O(e[0])}var qa=/^\[(.+?)~?="(.*)"\]$/;var Ya=/[\w\u00A0-\uFFFF-_:%-?]/,Or="$$shortcut-no-merge";function wn(e){return e.match(qa)}function Ee(e=""){return Ya.test(e)}function $n(e){return typeof e=="function"?{match:e}:e}function Ar(e){return e.length===3}function kn(e){return e!=null}function Sn(){}var Xe=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)))}};var ze=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ze(e){return e instanceof ze}var Je={};function Xa(e=["-",":"]){let t=e.join("|");return Je[t]||(Je[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Je[t].lastIndex=0,Je[t]}function Za(e,t=["-",":"],r=5){let n=Xa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(l,p,u,d,g)=>{if(!t.includes(u))return l;o=!0,a.add(p+u);let b=g+p.length+u.length+1,$={length:l.length,items:[]};s.set(g,$);for(let y of[...d.matchAll(/\S+/g)]){let C=b+y.index,x=s.get(C)?.items;x?s.delete(C):x=[{offset:C,length:y[0].length,className:y[0]}];for(let R of x)R.className=R.className==="~"?p:R.className.replace(/^(!?)(.*)/,`$1${p}${u}$2`),$.items.push(R)}return"$".repeat(l.length)}),r-=1;while(o&&r);let c;if(typeof e=="string"){c="";let l=0;for(let[p,u]of s)c+=e.slice(l,p),c+=u.items.map(d=>d.className).join(" "),l=p+u.length;c+=e.slice(l)}else{c=e;for(let[l,p]of s)c.overwrite(l,l+p.length,p.items.map(u=>u.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return c.toString()}}}function Cn(e,t=["-",":"],r=5){let n=Za(e,t,r);return typeof e=="string"?n.expanded:e}var Rn=new Set;function Y(e){Rn.has(e)||(console.warn("[unocss]",e),Rn.add(e))}var Qe=/[\\:]?[\s'"`;{}]+/g;function Ja(e){return e.split(Qe)}var et={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Ja(e)}};function Tn(){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 tt="default",rt="preflights",Qa="shortcuts",es="imports",En={[es]:-200,[rt]:-100,[Qa]:-10,[tt]:0};function jn(e){return V(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var zn="_uno_resolved";function ts(e){let t=typeof e=="function"?e():e;if(zn in t)return t;t={...t},Object.defineProperty(t,zn,{value:!0,enumerable:!1});let r=t.shortcuts?jn(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=V(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function On(e){let t=ts(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(V).flatMap(On);return[t,...r]}function Vr(e={},t={}){let r=Object.assign({},t,e),n=bn((r.presets||[]).flatMap(V).flatMap(On),(m,w)=>m.name===w.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},En,...i.map(m=>m.layers));function c(m){return de(i.flatMap(w=>V(w[m]||[])))}let l=c("extractors"),p=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;p===void 0&&(p=et),p&&!l.includes(p)&&l.unshift(p),l.sort((m,w)=>(m.order||0)-(w.order||0));let u=c("rules"),d={},g=u.length,b=u.map((m,w)=>{if(yn(m)){V(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[w,m[1],m[2],m]});return}return[w,...m]}).filter(Boolean).reverse(),$=rs(i.map(m=>m.theme)),y=c("extendTheme");for(let m of y)$=m($)||$;let C={templates:de(i.flatMap(m=>V(m.autocomplete?.templates))),extractors:i.flatMap(m=>V(m.autocomplete?.extractors)).sort((m,w)=>(m.order||0)-(w.order||0)),shorthands:ns(i.map(m=>m.autocomplete?.shorthands||{}))},x=c("separators");x.length||(x=[":","-"]);let R={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:$,rulesSize:g,rulesDynamic:b,rulesStaticMap:d,preprocess:c("preprocess"),postprocess:c("postprocess"),preflights:c("preflights"),autocomplete:C,variants:c("variants").map($n).sort((m,w)=>(m.order||0)-(w.order||0)),shortcuts:jn(c("shortcuts")).reverse(),extractors:l,safelist:c("safelist"),separators:x,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(R);return R}function rs(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Te(t,r),{})}function ns(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}},{})}var An="0.57.5";var _r=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Vr(t,r),this.events.emit("config",this.config)}version=An;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Tn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Vr(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 a=await i.extract?.(o);if(a)if(Ze(a)&&Ze(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,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||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),c=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(l=>this.stringifyUtil(l,a)).filter(kn);if(c?.length)return this._cache.set(n,c),c;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:c=!1}=r,l=O(t)?await this.applyExtractors(t,n,c?new ze:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{l.has(m)||l.add(m)});let p=s?"":`
|
|
2
2
|
`,u=new Set([tt]),d=c?new Map:new Set,g=new Map,b={},$=Array.from(l).map(async m=>{if(d.has(m))return;let w=await this.parseToken(m);if(w!=null){d instanceof Map?d.set(m,{data:w,count:Ze(l)?l.getCount(m):-1}):d.add(m);for(let j of w){let N=j[3]||"",W=j[4]?.layer;g.has(N)||g.set(N,[]),g.get(N).push(j),W&&u.add(W)}}});await Promise.all($),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:j=rt})=>{u.add(j),w.add(j)}),b=Object.fromEntries(await Promise.all(Array.from(w).map(async j=>{let W=(await Promise.all(this.config.preflights.filter(ae=>(ae.layer||rt)===j).map(async ae=>await ae.getCSS(m)))).filter(Boolean).join(p);return[j,W]})))})();let y=this.config.sortLayers(Array.from(u).sort((m,w)=>(this.config.layers[m]??0)-(this.config.layers[w]??0)||m.localeCompare(w))),C={},x=m=>{if(C[m])return C[m];let w=Array.from(g).sort((N,W)=>(this.parentOrders.get(N[0])??0)-(this.parentOrders.get(W[0])??0)||N[0]?.localeCompare(W[0]||"")||0).map(([N,W])=>{let ae=W.length,me=W.filter(h=>(h[4]?.layer||tt)===m).sort((h,k)=>h[0]-k[0]||(h[4]?.sort||0)-(k[4]?.sort||0)||h[5]?.currentSelector?.localeCompare(k[5]?.currentSelector??"")||h[1]?.localeCompare(k[1]||"")||h[2]?.localeCompare(k[2]||"")||0).map(([,h,k,,E,,D])=>[[[(h&&ss(h,o))??"",E?.sort??0]],k,!!(D??E?.noMerge)]);if(!me.length)return;let Ce=me.reverse().map(([h,k,E],D)=>{if(!E&&this.config.mergeSelectors)for(let B=D+1;B<ae;B++){let q=me[B];if(q&&!q[2]&&(h&&q[0]||h==null&&q[0]==null)&&q[1]===k)return h&&q[0]&&q[0].push(...h),null}let G=h?de(h.sort((B,q)=>B[1]-q[1]||B[0]?.localeCompare(q[0]||"")||0).map(B=>B[0]).filter(Boolean)):[];return G.length?`${G.join(`,${p}`)}{${k}}`:k}).filter(Boolean).reverse().join(p);if(!N)return Ce;let Ke=N.split(" $$ ");return`${Ke.join("{")}{${p}${Ce}${p}${"}".repeat(Ke.length)}`}).filter(Boolean).join(p);i&&(w=[b[m],w].filter(Boolean).join(p));let j=s?"":`/* layer: ${m} */${p}`;return C[m]=w?j+w:""},R=(m=y,w)=>m.filter(j=>!w?.includes(j)).map(j=>x(j)||"").filter(Boolean).join(p);return{get css(){return R()},layers:y,matched:d,getLayers:R,getLayer:x}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let l=await c.match(i,s);if(l){if(O(l)){if(l===i)continue;l={matcher:l}}i=l.matcher,o.unshift(l),n.add(c),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((l,p)=>(l.order||0)-(p.order||0)).reduceRight((l,p)=>u=>{let d=p.body?.(u.entries)||u.entries,g=Array.isArray(p.parent)?p.parent:[p.parent,void 0];return(p.handle??cs)({...u,entries:d,selector:p.selector?.(u.selector,d)||u.selector,parent:g[0]||u.parent,parentOrder:g[1]||u.parentOrder,layer:p.layer||u.layer,sort:p.sort||u.sort},l)},l=>l)({prefix:"",selector:Pr(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let c={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,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=ge(r);if(O(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),c=`${i}{${he(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,n=!1,o){let[i,a,s]=O(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let c=this.config.rulesStaticMap[a];if(c&&c[1]&&(n||!c[2]?.internal)){this.config.details&&r.rules.push(c[3]);let p=c[0],u=ge(c[1]),d=c[2];return O(u)?[[p,u,d]]:[[p,i,u,d,s]]}r.variantHandlers=s;let{rulesDynamic:l}=this.config;for(let[p,u,d,g]of l){if(g?.internal&&!n)continue;let b=a;if(g?.prefix){let x=V(g.prefix);if(o){let R=V(o);if(!x.some(m=>R.includes(m)))continue}else{let R=x.find(m=>a.startsWith(m));if(R==null)continue;b=a.slice(R.length)}}let $=b.match(u);if(!$)continue;let y=await d($,r);if(!y)continue;this.config.details&&r.rules.push([u,d,g]);let C=xn(y).filter(x=>x.length);if(C.length)return C.map(x=>O(x)?[p,x,g]:[p,i,x,g,s])}}stringifyUtil(t,r){if(!t)return;if(Ar(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:a,sort:s,noMerge:c}=this.applyVariants(t),l=he(o);if(!l)return;let{layer:p,sort:u,...d}=t[3]??{},g={...d,layer:a??p,sort:s??u};return[t[0],n,l,i,g,this.config.details?r:void 0,c]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:Sn,i,a;for(let s of this.config.shortcuts){let c=t;if(s[2]?.prefix){let p=V(s[2].prefix).find(u=>t.startsWith(u));if(p==null)continue;c=t.slice(p.length)}if(vn(s)){if(s[0]===c){i=i||s[2],a=s[1],o(s);break}}else{let l=c.match(s[0]);if(l&&(a=s[1](l,r)),a){i=i||s[2],o(s);break}}}if(O(a)&&(a=Cn(a.trim()).split(/\s+/g)),!a){let[s,c]=O(t)?await this.matchVariants(t):t;if(s!==c){let l=await this.expandShortcut(c,r,n-1);l&&(a=l[0].map(p=>O(p)?s.replace(c,p):p))}}if(a)return[(await Promise.all(a.map(async s=>(O(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new Xe,a=(await Promise.all(de(n).map(async p=>{let u=O(p)?await this.parseUtil(p,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ge(p),void 0,[]]];return!u&&this.config.warn&&Y(`unmatched utility "${p}" in shortcut "${t[1]}"`),u||[]}))).flat(1).filter(Boolean).sort((p,u)=>p[0]-u[0]),[s,,c]=t,l=[];for(let p of a){if(Ar(p)){l.push([p[0],void 0,p[1],void 0,p[2],r,void 0]);continue}let{selector:u,entries:d,parent:g,sort:b,noMerge:$}=this.applyVariants(p,[...p[4],...c],s);i.getFallback(u,g,[[],p[0]])[0].push([d,!!($??p[3]?.noMerge),b??0])}return l.concat(i.map(([p,u],d,g)=>{let b=(y,C,x)=>{let R=Math.max(...x.map(w=>w[1])),m=x.map(w=>w[0]);return(y?[m.flat(1)]:m).map(w=>{let j=he(w);if(j)return[u,d,j,g,{...o,noMerge:C,sort:R},r,void 0]})};return[[p.filter(([,y])=>y).map(([y,,C])=>[y,C]),!0],[p.filter(([,y])=>!y).map(([y,,C])=>[y,C]),!1]].map(([y,C])=>[...b(!1,C,y.filter(([x])=>x.some(R=>R[0]===Or))),...b(!0,C,y.filter(([x])=>x.every(R=>R[0]!==Or)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):O(r)?r===t:r.test(t))}};function _n(e,t){return new _r(e,t)}var is=/\s\$\$\s+/g;function as(e){return e.match(/\s\$\$\s/)}function ss(e,t){return as(e)?e.replace(is,t?` ${t} `:" "):t?`${t} ${e}`:e}var Vn=/^\[(.+?)(~?=)"(.*)"\]$/;function Pr(e){return Vn.test(e)?e.replace(Vn,(t,r,n,o)=>`[${qe(r)}${n}"${qe(o)}"]`):`.${qe(e)}`}function cs(e,t){return t(e)}var Mr=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function Pn(e={}){let t=e.prefix??"un-",r=e.prefixedOnly??!1,n=e.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:a}){let s=wn(i);if(!s)return;let c=s[1];if(c.startsWith(t))c=c.slice(t.length);else if(r)return;let l=s[2],[,p="",u=l]=l.match(Mr)||[];if(u==="~"||n&&u==="true"||!u)return`${p}${c}`;if(o==null){let d=a?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,g]=l.match(o)||[];if(g)return`${d}${p}${c}-${g}`}return`${p}${c}-${u}`}}}var ls=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,fs=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Mn=/[\s'"`;>]+/;function Un(e){return{name:"attributify",extract:({content:t,cursor:r})=>{let n=t.matchAll(ls),o,i=0;for(let x of n){let[,R,m]=x,w=x.index+R.length;if(r>w&&r<=w+m.length){i=w,o=m;break}}if(!o)return null;let a=o.matchAll(fs),s=0,c,l;for(let x of a){let[R,m,w]=x,j=i+x.index;if(r>j&&r<=j+R.length){s=j,c=m,l=w?.slice(1);break}}if(!c||c==="class"||c==="className"||c===":class")return null;let p=!!e?.prefix&&c.startsWith(e.prefix);if(e?.prefixedOnly&&!p)return null;let u=p?c.slice(e.prefix.length):c;if(l===void 0)return{extracted:u,resolveReplacement(x){let R=p?e.prefix.length:0;return{start:s+R,end:s+c.length,replacement:x}}};let d=s+c.length+2,g=Mn.exec(l),b=0,$;for(;g;){let[x]=g;if(r>d+b&&r<=d+b+g.index){$=l.slice(b,b+g.index);break}b+=g.index+x.length,g=Mn.exec(l.slice(b))}$===void 0&&($=l.slice(b));let[,y="",C]=$.match(Mr)||[];return{extracted:`${y}${u}-${C}`,transformSuggestions(x){return x.filter(R=>R.startsWith(`${y}${u}-`)).map(R=>y+R.slice(y.length+u.length+1))},resolveReplacement(x){return{start:b+d,end:b+d+$.length,replacement:y+x.slice(y.length+u.length+1)}}}}}}var ps=["v-bind:",":"],Fn=/[\s'"`;]+/g,us=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,ms=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,Ur=["placeholder","fill","opacity","stroke-opacity"];function Ln(e){let t=e?.ignoreAttributes??Ur,r=e?.nonValuedAttribute??!0,n=e?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(us)).flatMap(i=>Array.from((i[1]||"").matchAll(ms))).flatMap(([,i,...a])=>{let s=a.filter(Boolean).join("");if(t.includes(i))return[];for(let c of ps)if(i.startsWith(c)){i=i.slice(c.length);break}if(!s){if(Ee(i)&&r!==!1){let c=[`[${i}=""]`];return n&&c.push(`[${i}="true"]`),c}return[]}return["class","className"].includes(i)?s.split(Fn).filter(Ee):e?.prefixedOnly&&e.prefix&&!i.startsWith(e.prefix)?[]:s.split(Fn).filter(c=>!!c&&c!==":").map(c=>`[${i}~="${c}"]`)})}}}var ds=(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??Ur;let t=[Pn(e)],r=[Ln(e)],n=[Un(e)];return{name:"@unocss/preset-attributify",enforce:"post",variants:t,extractors:r,options:e,autocomplete:{extractors:n},extractorDefault:e.strict?!1:void 0}},Nn=ds;var gs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Wn(e){return e.includes("sourceMappingURL=")?e.replace(gs,""):e}var hs=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,bs=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,xs=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function ys(e){let t=[];for(let r of e.matchAll(bs))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(hs))t.push(r[0]);return e.split(Qe).forEach(r=>{Ee(r)&&!xs.test(r)&&t.push(r)}),t}var Dn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return ys(Wn(e))}};var Bn=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=he(Object.entries(e.theme.preflightBase));return V(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Fr={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Lr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},nt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},In=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},...In.map(e=>({[e.replace(/ /,"-")]:e})),...In.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),S=["inherit","initial","revert","revert-layer","unset"],Nr=/(?:calc|clamp|min|max)\s*\(.*\)/;function be(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Wr(e,t,r,n){if(e===""||(O(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let c=s.length;if(c&&s===e.slice(a,a+c)&&i===0)return a===0||a===o-c?void 0:[e.slice(0,a),e.slice(a+c)]}}return[e,""]}function se(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Wr(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Dr=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],Gn=["%alpha","<alpha-value>"],vs=new RegExp(Gn.map(e=>te(e)).join("|"));function X(e=""){let t=ws(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Dr.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function Q(e){let t=e.alpha??1;return typeof t=="string"&&Gn.includes(t)?1:t}function _(e,t){if(typeof e=="string")return e.replace(vs,`${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}`,Dr.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function ws(e){if(!e)return;let t=$s(e);if(t!=null||(t=ks(e),t!=null)||(t=Ss(e),t!=null)||(t=Rs(e),t!=null)||(t=Ts(e),t!=null))return t}function $s(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 ks(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Ss(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=se(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 Cs=new RegExp(`^(${Dr.join("|")})\\((.+)\\)$`,"i");function Rs(e){let t=e.match(Cs);if(!t)return;let[,r,n]=t,o=Hn(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Ts(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Hn(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Hn(e){let t=se(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=se(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 ot(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};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,get(){return r(this,n)}});return t}function I(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function F(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function re(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=be(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function L(e,t,r){if(t.startsWith(e)){let n=re(e,t,r);if(n){let[o="",i=n[1]]=L("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var Es=",".charCodeAt(0),zs=";".charCodeAt(0),Kn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qn=new Uint8Array(64),js=new Uint8Array(128);for(let e=0;e<Kn.length;e++){let t=Kn.charCodeAt(e);qn[e]=t,js[t]=e}var Br=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}};function Yn(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let c=0;c<e.length;c++){let l=e[c];if(c>0&&(a===r&&(s+=Br.decode(o),a=0),o[a++]=zs),l.length!==0){t[0]=0;for(let p=0;p<l.length;p++){let u=l[p];a>n&&(s+=Br.decode(i),o.copyWithin(0,n,a),a-=n),p>0&&(o[a++]=Es),a=je(o,a,t,u,0),u.length!==1&&(a=je(o,a,t,u,1),a=je(o,a,t,u,2),a=je(o,a,t,u,3),u.length!==4&&(a=je(o,a,t,u,4)))}}}return s+Br.decode(o.subarray(0,a))}function je(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=qn[s]}while(a>0);return t}var it=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))}},at=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}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 Os(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 As=Os(),Ir=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Yn(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+As(this.toString())}};function Vs(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function _s(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 Ps=Object.prototype.toString;function Ms(e){return Ps.call(e)==="[object Object]"}function Xn(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,a=r.length;for(;i<a;){let l=i+a>>1;o<r[l]?a=l:i=l+1}let s=i-1,c=o-r[s];return{line:s,column:c}}}var Us=/\w/,Gr=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.indexOf(`
|
package/mini.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ii=Object.defineProperty;var Bi=(t,e)=>{for(var r in e)Ii(t,r,{get:e[r],enumerable:!0})};function B(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Ve=Y;function j(t=[]){return Array.isArray(t)?t:[t]}function Q(t){return Array.from(new Set(t))}function Pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function ee(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Mt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ee(e)):[t]:[ee(t)]}function Ki(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function te(t){return t==null?"":Ki(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function ze(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return ze(n)&&ze(i)&&Object.keys(i).forEach(s=>{ze(n[s])&&ze(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=rt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function ue(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ue(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}return t}function _t(t){return A(t[0])}function Lt(t){return A(t[0])}var Hi=/^\[(.+?)~?="(.*)"\]$/;var Gi=/[\w\u00A0-\uFFFF-_:%-?]/,nt="$$shortcut-no-merge";function Ut(t){return t.match(Hi)}function fe(t=""){return Gi.test(t)}function Ft(t){return typeof t=="function"?{match:t}:t}function it(t){return t.length===3}function Nt(t){return t!=null}function Wt(){}var Pe=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}};var pe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Me(t){return t instanceof pe}var _e={};function qi(t=["-",":"]){let e=t.join("|");return _e[e]||(_e[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),_e[e].lastIndex=0,_e[e]}function Yi(t,e=["-",":"],r=5){let n=qi(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,m,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let y=h+f.length+p.length+1,$={length:c.length,items:[]};a.set(h,$);for(let x of[...m.matchAll(/\S+/g)]){let v=y+x.index,b=a.get(v)?.items;b?a.delete(v):b=[{offset:v,length:x[0].length,className:x[0]}];for(let k of b)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),$.items.push(k)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;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:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Dt(t,e=["-",":"],r=5){let n=Yi(t,e,r);return typeof t=="string"?n.expanded:t}var It=new Set;function K(t){It.has(t)||(console.warn("[unocss]",t),It.add(t))}var Le=/[\\:]?[\s'"`;{}]+/g;function Zi(t){return t.split(Le)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Zi(t)}};function Bt(){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 Fe="default",Ne="preflights",Xi="shortcuts",Ji="imports",Kt={[Ji]:-200,[Ne]:-100,[Xi]:-10,[Fe]:0};function Gt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ht="_uno_resolved";function Qi(t){let e=typeof t=="function"?t():t;if(Ht in e)return e;e={...e},Object.defineProperty(e,Ht,{value:!0,enumerable:!1});let r=e.shortcuts?Gt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function qt(t){let e=Qi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(qt);return[e,...r]}function ot(t={},e={}){let r=Object.assign({},e,t),n=Pt((r.presets||[]).flatMap(j).flatMap(qt),(d,w)=>d.name===w.name),i=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Kt,...o.map(d=>d.layers));function l(d){return Q(o.flatMap(w=>j(w[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,w)=>(d.order||0)-(w.order||0));let p=l("rules"),m={},h=p.length,y=p.map((d,w)=>{if(_t(d)){j(d[2]?.prefix||"").forEach(z=>{m[z+d[0]]=[w,d[1],d[2],d]});return}return[w,...d]}).filter(Boolean).reverse(),$=eo(o.map(d=>d.theme)),x=l("extendTheme");for(let d of x)$=d($)||$;let v={templates:Q(o.flatMap(d=>j(d.autocomplete?.templates))),extractors:o.flatMap(d=>j(d.autocomplete?.extractors)).sort((d,w)=>(d.order||0)-(w.order||0)),shorthands:to(o.map(d=>d.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:d=>d,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:$,rulesSize:h,rulesDynamic:y,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(Ft).sort((d,w)=>(d.order||0)-(w.order||0)),shortcuts:Gt(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let d of o)d?.configResolved?.(k);return k}function eo(t){return t.map(e=>e?ue(e):{}).reduce((e,r)=>rt(e,r),{})}function to(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Yt="0.57.
|
|
1
|
+
"use strict";(()=>{var Ii=Object.defineProperty;var Bi=(t,e)=>{for(var r in e)Ii(t,r,{get:e[r],enumerable:!0})};function B(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Y(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var Ve=Y;function j(t=[]){return Array.isArray(t)?t:[t]}function Q(t){return Array.from(new Set(t))}function Pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function A(t){return typeof t=="string"}function ee(t){return A(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Mt(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ee(e)):[t]:[ee(t)]}function Ki(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function te(t){return t==null?"":Ki(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function ze(t){return t&&typeof t=="object"&&!Array.isArray(t)}function rt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return ze(n)&&ze(i)&&Object.keys(i).forEach(s=>{ze(n[s])&&ze(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=rt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function ue(t){let e,r,n;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ue(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?ue(n):n;return r}return t}function _t(t){return A(t[0])}function Lt(t){return A(t[0])}var Hi=/^\[(.+?)~?="(.*)"\]$/;var Gi=/[\w\u00A0-\uFFFF-_:%-?]/,nt="$$shortcut-no-merge";function Ut(t){return t.match(Hi)}function fe(t=""){return Gi.test(t)}function Ft(t){return typeof t=="function"?{match:t}:t}function it(t){return t.length===3}function Nt(t){return t!=null}function Wt(){}var Pe=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}};var pe=class extends Set{_map;constructor(e){super(e),this._map??=new Map}add(e){return this._map??=new Map,this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.delete(e),super.delete(e)}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Me(t){return t instanceof pe}var _e={};function qi(t=["-",":"]){let e=t.join("|");return _e[e]||(_e[e]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),_e[e].lastIndex=0,_e[e]}function Yi(t,e=["-",":"],r=5){let n=qi(e),i,o=t.toString(),s=new Set,a=new Map;do i=!1,o=o.replace(n,(c,f,p,m,h)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let y=h+f.length+p.length+1,$={length:c.length,items:[]};a.set(h,$);for(let x of[...m.matchAll(/\S+/g)]){let v=y+x.index,b=a.get(v)?.items;b?a.delete(v):b=[{offset:v,length:x[0].length,className:x[0]}];for(let k of b)k.className=k.className==="~"?f:k.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),$.items.push(k)}return"$".repeat(c.length)}),r-=1;while(i&&r);let l;if(typeof t=="string"){l="";let c=0;for(let[f,p]of a)l+=t.slice(c,f),l+=p.items.map(m=>m.className).join(" "),c=f+p.length;l+=t.slice(c)}else{l=t;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:i,groupsByOffset:a,get expanded(){return l.toString()}}}function Dt(t,e=["-",":"],r=5){let n=Yi(t,e,r);return typeof t=="string"?n.expanded:t}var It=new Set;function K(t){It.has(t)||(console.warn("[unocss]",t),It.add(t))}var Le=/[\\:]?[\s'"`;{}]+/g;function Zi(t){return t.split(Le)}var Ue={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Zi(t)}};function Bt(){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 Fe="default",Ne="preflights",Xi="shortcuts",Ji="imports",Kt={[Ji]:-200,[Ne]:-100,[Xi]:-10,[Fe]:0};function Gt(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ht="_uno_resolved";function Qi(t){let e=typeof t=="function"?t():t;if(Ht in e)return e;e={...e},Object.defineProperty(e,Ht,{value:!0,enumerable:!1});let r=e.shortcuts?Gt(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=j(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}function qt(t){let e=Qi(t);if(!e.presets)return[e];let r=(e.presets||[]).flatMap(j).flatMap(qt);return[e,...r]}function ot(t={},e={}){let r=Object.assign({},e,t),n=Pt((r.presets||[]).flatMap(j).flatMap(qt),(d,w)=>d.name===w.name),i=[...n.filter(d=>d.enforce==="pre"),...n.filter(d=>!d.enforce),...n.filter(d=>d.enforce==="post")],o=[...i,r],s=[...o].reverse(),a=Object.assign({},Kt,...o.map(d=>d.layers));function l(d){return Q(o.flatMap(w=>j(w[d]||[])))}let c=l("extractors"),f=s.find(d=>d.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=Ue),f&&!c.includes(f)&&c.unshift(f),c.sort((d,w)=>(d.order||0)-(w.order||0));let p=l("rules"),m={},h=p.length,y=p.map((d,w)=>{if(_t(d)){j(d[2]?.prefix||"").forEach(z=>{m[z+d[0]]=[w,d[1],d[2],d]});return}return[w,...d]}).filter(Boolean).reverse(),$=eo(o.map(d=>d.theme)),x=l("extendTheme");for(let d of x)$=d($)||$;let v={templates:Q(o.flatMap(d=>j(d.autocomplete?.templates))),extractors:o.flatMap(d=>j(d.autocomplete?.extractors)).sort((d,w)=>(d.order||0)-(w.order||0)),shorthands:to(o.map(d=>d.autocomplete?.shorthands||{}))},b=l("separators");b.length||(b=[":","-"]);let k={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:d=>d,...r,presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:$,rulesSize:h,rulesDynamic:y,rulesStaticMap:m,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:v,variants:l("variants").map(Ft).sort((d,w)=>(d.order||0)-(w.order||0)),shortcuts:Gt(l("shortcuts")).reverse(),extractors:c,safelist:l("safelist"),separators:b,details:r.details??r.envMode==="dev"};for(let d of o)d?.configResolved?.(k);return k}function eo(t){return t.map(e=>e?ue(e):{}).reduce((e,r)=>rt(e,r),{})}function to(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}var Yt="0.57.5";var st=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=ot(e,r),this.events.emit("config",this.config)}version=Yt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Bt();setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=ot(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Me(s)&&Me(n))for(let a of s)n.setCount(a,n.getCount(a)+s.getCount(a));else for(let a of s)n.add(a)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=e;for(let c of this.config.preprocess)i=c(e);if(this.isBlocked(i)){this.blocked.add(e),this._cache.set(n,null);return}let o=await this.matchVariants(e,i);if(!o||this.isBlocked(o[1])){this.blocked.add(e),this._cache.set(n,null);return}let s=this.makeContext(e,[r||o[0],o[1],o[2],o[3]]);this.config.details&&(s.variants=[...o[3]]);let a=await this.expandShortcut(s.currentSelector,s),l=a?await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]):(await this.parseUtil(s.variantMatch,s))?.map(c=>this.stringifyUtil(c,s)).filter(Nt);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:a=!1,extendedInfo:l=!1}=r,c=A(e)?await this.applyExtractors(e,n,l?new pe:new Set):Array.isArray(e)?new Set(e):e;s&&this.config.safelist.forEach(d=>{c.has(d)||c.add(d)});let f=a?"":`
|
|
2
2
|
`,p=new Set([Fe]),m=l?new Map:new Set,h=new Map,y={},$=Array.from(c).map(async d=>{if(m.has(d))return;let w=await this.parseToken(d);if(w!=null){m instanceof Map?m.set(d,{data:w,count:Me(c)?c.getCount(d):-1}):m.add(d);for(let R of w){let z=R[3]||"",P=R[4]?.layer;h.has(z)||h.set(z,[]),h.get(z).push(R),P&&p.add(P)}}});await Promise.all($),await(async()=>{if(!o)return;let d={generator:this,theme:this.config.theme},w=new Set([]);this.config.preflights.forEach(({layer:R=Ne})=>{p.add(R),w.add(R)}),y=Object.fromEntries(await Promise.all(Array.from(w).map(async R=>{let P=(await Promise.all(this.config.preflights.filter(q=>(q.layer||Ne)===R).map(async q=>await q.getCSS(d)))).filter(Boolean).join(f);return[R,P]})))})();let x=this.config.sortLayers(Array.from(p).sort((d,w)=>(this.config.layers[d]??0)-(this.config.layers[w]??0)||d.localeCompare(w))),v={},b=d=>{if(v[d])return v[d];let w=Array.from(h).sort((z,P)=>(this.parentOrders.get(z[0])??0)-(this.parentOrders.get(P[0])??0)||z[0]?.localeCompare(P[0]||"")||0).map(([z,P])=>{let q=P.length,J=P.filter(g=>(g[4]?.layer||Fe)===d).sort((g,S)=>g[0]-S[0]||(g[4]?.sort||0)-(S[4]?.sort||0)||g[5]?.currentSelector?.localeCompare(S[5]?.currentSelector??"")||g[1]?.localeCompare(S[1]||"")||g[2]?.localeCompare(S[2]||"")||0).map(([,g,S,,C,,M])=>[[[(g&&oo(g,i))??"",C?.sort??0]],S,!!(M??C?.noMerge)]);if(!J.length)return;let ce=J.reverse().map(([g,S,C],M)=>{if(!C&&this.config.mergeSelectors)for(let _=M+1;_<q;_++){let D=J[_];if(D&&!D[2]&&(g&&D[0]||g==null&&D[0]==null)&&D[1]===S)return g&&D[0]&&D[0].push(...g),null}let U=g?Q(g.sort((_,D)=>_[1]-D[1]||_[0]?.localeCompare(D[0]||"")||0).map(_=>_[0]).filter(Boolean)):[];return U.length?`${U.join(`,${f}`)}{${S}}`:S}).filter(Boolean).reverse().join(f);if(!z)return ce;let Oe=z.split(" $$ ");return`${Oe.join("{")}{${f}${ce}${f}${"}".repeat(Oe.length)}`}).filter(Boolean).join(f);o&&(w=[y[d],w].filter(Boolean).join(f));let R=a?"":`/* layer: ${d} */${f}`;return v[d]=w?R+w:""},k=(d=x,w)=>d.filter(R=>!w?.includes(R)).map(R=>b(R)||"").filter(Boolean).join(f);return{get css(){return k()},layers:x,matched:m,getLayers:k,getLayer:b}}async matchVariants(e,r){let n=new Set,i=[],o=r||e,s=!0,a={rawSelector:e,theme:this.config.theme,generator:this};for(;s;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let c=await l.match(o,a);if(c){if(A(c)){if(c===o)continue;c={matcher:c}}o=c.matcher,i.unshift(c),n.add(l),s=!0;break}}if(!s)break;if(i.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,o,i,n]}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((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??ao)({...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:so(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:a}=o;s!=null&&a!=null&&this.parentOrders.set(s,a);let l={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(l);return l}constructCustomCSS(e,r,n){let i=ee(r);if(A(i))return i;let{selector:o,entries:s,parent:a}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),l=`${o}{${te(s)}}`;return a?`${a}{${l}}`:l}async parseUtil(e,r,n=!1,i){let[o,s,a]=A(e)?await this.matchVariants(e):e;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[s];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let f=l[0],p=ee(l[1]),m=l[2];return A(p)?[[f,p,m]]:[[f,o,p,m,a]]}r.variantHandlers=a;let{rulesDynamic:c}=this.config;for(let[f,p,m,h]of c){if(h?.internal&&!n)continue;let y=s;if(h?.prefix){let b=j(h.prefix);if(i){let k=j(i);if(!b.some(d=>k.includes(d)))continue}else{let k=b.find(d=>s.startsWith(d));if(k==null)continue;y=s.slice(k.length)}}let $=y.match(p);if(!$)continue;let x=await m($,r);if(!x)continue;this.config.details&&r.rules.push([p,m,h]);let v=Mt(x).filter(b=>b.length);if(v.length)return v.map(b=>A(b)?[f,b,h]:[f,o,b,h,a])}}stringifyUtil(e,r){if(!e)return;if(it(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:a,noMerge:l}=this.applyVariants(e),c=te(i);if(!c)return;let{layer:f,sort:p,...m}=e[3]??{},h={...m,layer:s??f,sort:a??p};return[e[0],n,c,o,h,this.config.details?r:void 0,l]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?a=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(a)}:Wt,o,s;for(let a of this.config.shortcuts){let l=e;if(a[2]?.prefix){let f=j(a[2].prefix).find(p=>e.startsWith(p));if(f==null)continue;l=e.slice(f.length)}if(Lt(a)){if(a[0]===l){o=o||a[2],s=a[1],i(a);break}}else{let c=l.match(a[0]);if(c&&(s=a[1](c,r)),s){o=o||a[2],i(a);break}}}if(A(s)&&(s=Dt(s.trim()).split(/\s+/g)),!s){let[a,l]=A(e)?await this.matchVariants(e):e;if(a!==l){let c=await this.expandShortcut(l,r,n-1);c&&(s=c[0].map(f=>A(f)?a.replace(l,f):f))}}if(s)return[(await Promise.all(s.map(async a=>(A(a)?(await this.expandShortcut(a,r,n-1))?.[0]:void 0)||[a]))).flat(1).filter(Boolean),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Pe,s=(await Promise.all(Q(n).map(async f=>{let p=A(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ee(f),void 0,[]]];return!p&&this.config.warn&&K(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[a,,l]=e,c=[];for(let f of s){if(it(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:y,noMerge:$}=this.applyVariants(f,[...f[4],...l],a);o.getFallback(p,h,[[],f[0]])[0].push([m,!!($??f[3]?.noMerge),y??0])}return c.concat(o.map(([f,p],m,h)=>{let y=(x,v,b)=>{let k=Math.max(...b.map(w=>w[1])),d=b.map(w=>w[0]);return(x?[d.flat(1)]:d).map(w=>{let R=te(w);if(R)return[p,m,R,h,{...i,noMerge:v,sort:k},r,void 0]})};return[[f.filter(([,x])=>x).map(([x,,v])=>[x,v]),!0],[f.filter(([,x])=>!x).map(([x,,v])=>[x,v]),!1]].map(([x,v])=>[...y(!1,v,x.filter(([b])=>b.some(k=>k[0]===nt))),...y(!0,v,x.filter(([b])=>b.every(k=>k[0]!==nt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="function"?r(e):A(r)?r===e:r.test(e))}};function Xt(t,e){return new st(t,e)}var no=/\s\$\$\s+/g;function io(t){return t.match(/\s\$\$\s/)}function oo(t,e){return io(t)?t.replace(no,e?` ${e} `:" "):e?`${e} ${t}`:t}var Zt=/^\[(.+?)(~?=)"(.*)"\]$/;function so(t){return Zt.test(t)?t.replace(Zt,(e,r,n,i)=>`[${Ve(r)}${n}"${Ve(i)}"]`):`.${Ve(t)}`}function ao(t,e){return e(t)}var lo=/\/\/#\s*sourceMappingURL=.*\n?/g;function Jt(t){return t.includes("sourceMappingURL=")?t.replace(lo,""):t}var co=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,uo=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,fo=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function po(t){let e=[];for(let r of t.matchAll(uo))r.index!==0&&!t[r.index-1]?.match(/^[\s'"`]/)||e.push(r[0]);for(let r of t.matchAll(co))e.push(r[0]);return t.split(Le).forEach(r=>{fe(r)&&!fo.test(r)&&e.push(r)}),e}var Qt={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return po(Jt(t))}};var er=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase){let e=te(Object.entries(t.theme.preflightBase));return j(t.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${e}}`).join("")}}}];var F={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},at={...F,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},lt={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},We={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tr=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],de=Object.assign({},...tr.map(t=>({[t.replace(/ /,"-")]:t})),...tr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),E=["inherit","initial","revert","revert-layer","unset"],ct=/(?:calc|clamp|min|max)\s*\(.*\)/;function re(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let a=0;a<n;a++)switch(t[a]){case e:o||(o=!0,s=a),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,a+1),t.slice(a+1),t.slice(0,s)];break}}function ut(t,e,r,n){if(t===""||(A(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let a of n){let l=a.length;if(l&&a===t.slice(s,s+l)&&o===0)return s===0||s===i-l?void 0:[t.slice(0,s),t.slice(s+l)]}}return[t,""]}function ne(t,e,r){r=r??10;let n=[],i=0;for(;t!=="";){if(++i>r)return;let o=ut(t,"(",")",e);if(!o)return;let[s,a]=o;n.push(s),t=a}if(n.length>0)return n}var ft=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rr=["%alpha","<alpha-value>"],mo=new RegExp(rr.map(t=>B(t)).join("|"));function me(t=""){let e=ho(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(ft.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function he(t){let e=t.alpha??1;return typeof e=="string"&&rr.includes(e)?1:e}function N(t,e){if(typeof t=="string")return t.replace(mo,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,ft.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ho(t){if(!t)return;let e=go(t);if(e!=null||(e=bo(t),e!=null)||(e=xo(t),e!=null)||(e=wo(t),e!=null)||(e=$o(t),e!=null))return e}function go(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,i=>Number.parseInt(i,16)).map(i=>i<<4|i);return{type:"rgb",components:r.slice(0,3),alpha:e.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function bo(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xo(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=ne(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var yo=new RegExp(`^(${ft.join("|")})\\((.+)\\)$`,"i");function wo(t){let e=t.match(yo);if(!e)return;let[,r,n]=e,i=nr(`${r} ${n}`);if(i){let{alpha:o,components:[s,...a]}=i;return{type:s,components:a,alpha:o}}}function $o(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=nr(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function nr(t){let e=ne(t," ");if(!e)return;let r=e.length;if(e[r-2]==="/")return{components:e.slice(0,r-2),alpha:e[r-1]};if(e[r-2]!=null&&(e[r-2].endsWith("/")||e[r-1].startsWith("/"))){let o=e.splice(r-2);e.push(o.join(" ")),--r}let n=ne(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}function ir(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,get(){return r(this,n)}});return e}function ie(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,...e(s)})}},autocomplete:`${t}:`}}function ge(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${B(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,a)=>a({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function H(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=re(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function V(t,e,r){if(e.startsWith(t)){let n=H(t,e,r);if(n){let[i="",o=n[1]]=V("/",n[1],r)??[];return[n[0],o,i]}for(let i of r.filter(o=>o!=="/")){let o=e.indexOf(i,t.length);if(o!==-1){let s=e.indexOf("/",t.length),a=s===-1||o<=s;return[e.slice(t.length,a?o:s),e.slice(o+i.length),a?"":e.slice(s+1,o)]}}}}var So=",".charCodeAt(0),vo=";".charCodeAt(0),or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sr=new Uint8Array(64),ko=new Uint8Array(128);for(let t=0;t<or.length;t++){let e=or.charCodeAt(t);sr[t]=e,ko[e]=t}var pt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}};function ar(t){let e=new Int32Array(5),r=1024*16,n=r-36,i=new Uint8Array(r),o=i.subarray(0,n),s=0,a="";for(let l=0;l<t.length;l++){let c=t[l];if(l>0&&(s===r&&(a+=pt.decode(i),s=0),i[s++]=vo),c.length!==0){e[0]=0;for(let f=0;f<c.length;f++){let p=c[f];s>n&&(a+=pt.decode(o),i.copyWithin(0,n,s),s-=n),f>0&&(i[s++]=So),s=be(i,s,e,p,0),p.length!==1&&(s=be(i,s,e,p,1),s=be(i,s,e,p,2),s=be(i,s,e,p,3),p.length!==4&&(s=be(i,s,e,p,4)))}}}return a+pt.decode(i.subarray(0,s))}function be(t,e,r,n,i){let o=n[i],s=o-r[i];r[i]=o,s=s<0?-s<<1|1:s<<1;do{let a=s&31;s>>>=5,s>0&&(a|=32),t[e++]=sr[a]}while(s>0);return e}var De=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))}},Ie=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function Co(){return typeof window<"u"&&typeof window.btoa=="function"?t=>window.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Ro=Co(),dt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ar(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Ro(this.toString())}};function Eo(t){let e=t.split(`
|
|
3
3
|
`),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,o)},1/0);return new Array(i+1).join(" ")}function To(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var jo=Object.prototype.toString;function Ao(t){return jo.call(t)==="[object Object]"}function lr(t){let e=t.split(`
|
|
4
4
|
`),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let a=o-1,l=i-r[a];return{line:a,column:l}}}var Oo=/\w/,mt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.indexOf(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.57.
|
|
3
|
+
"version": "0.57.5",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.57.
|
|
39
|
-
"@unocss/preset-attributify": "0.57.
|
|
40
|
-
"@unocss/preset-uno": "0.57.
|
|
38
|
+
"@unocss/core": "0.57.5",
|
|
39
|
+
"@unocss/preset-attributify": "0.57.5",
|
|
40
|
+
"@unocss/preset-uno": "0.57.5"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
|
package/preset-icons.global.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
`).join(`
|
|
3
3
|
`+s),e.push(r+"m+"+B.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Ot()+o+" "+e[0]}function Ot(){return F.inspectOpts.hideDate?"":new Date().toISOString()+" "}function St(...e){return process.stderr.write(q.format(...e)+`
|
|
4
4
|
`)}function Et(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function jt(){return process.env.DEBUG}function kt(e){e.inspectOpts={};let o=Object.keys(F.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=F.inspectOpts[o[t]]}B.exports=oe()(F);var{formatters:Pe}=B.exports;Pe.o=function(e){return this.inspectOpts.colors=this.useColors,q.inspect(e,this.inspectOpts).split(`
|
|
5
|
-
`).map(o=>o.trim()).join(" ")};Pe.O=function(e){return this.inspectOpts.colors=this.useColors,q.inspect(e,this.inspectOpts)}});var z=E((lo,ne)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ne.exports=Te():ne.exports=ze()});async function ie(e,o,t,n){let r;Tt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let s=e[t];r=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${t}" in "${o}":`,s);return}if(r){let s=r.indexOf("<svg");s>0&&(r=r.slice(s));let{transform:u}=n?.customizations??{};return r=typeof u=="function"?await u(r,o,t):r,r.startsWith("<svg")?await V(n?.customizations?.trimCustomSvg===!0?Oe(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var _e,Tt,Me=I(()=>{"use strict";_e=M(z(),1);te();Se();Tt=(0,_e.default)("@iconify-loader:custom")});async function W(e,o,t,n){let r,{customize:s}=n?.customizations??{};for(let u of t)if(r=Ce(e,u),r){Rt(`${o}:${u}`);let f={...N};typeof s=="function"&&(f=s(f));let{attributes:{width:m,height:C,...i},body:a}=Fe(r,f),p=n?.scale;return await V(`<svg >${a}</svg>`,o,u,n,()=>({...i}),h=>{let w=(l,c)=>{let x=h[l],y;if(!P(x)){if(x)return;typeof p=="number"?p&&(y=`${p}em`):y=c}y?h[l]=y:delete h[l]};w("width",m),w("height",C)})}}var De,Rt,se=I(()=>{"use strict";Q();we();te();De=M(z(),1);Y();Rt=(0,De.default)("@iconify-loader:icon")});var bo,_,ce=I(()=>{"use strict";Me();se();bo=M(z(),1),_=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(s){console.warn(`Failed to load custom icon "${o}" in "${e}":`,s);return}if(r){if(typeof r=="string")return await ie(()=>r,e,o,t);if("icons"in r){let s=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await W(r,e,s,t)}}}else return await ie(n,e,o,t)}});function Ie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ve(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" ')),Ie(o)}ce();var Io=M(z(),1);var Ne=new Set;function Ve(e){Ne.has(e)||(console.warn("[unocss]",e),Ne.add(e))}ce();se();var Ge=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];var Lt=3;function Ue(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:s=!1,collections:u,extraProperties:f={},customizations:m={},autoInstall:C=!1,layer:i="icons",unit:a}=o,p={addXmlNs:!0,scale:t,customCollections:u,autoInstall:C,warn:void 0,customizations:{...m,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(w,l,c){await m.iconCustomizer?.(w,l,c),a&&(c.width||(c.width=`${t}${a}`),c.height||(c.height=`${t}${a}`))}}},h;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([w,l,c=n])=>{let x="",y="",b;h=h||await e(o);let d={};if(l.includes(":"))[x,y]=l.split(":"),b=await h(x,y,{...p,usedProps:d});else{let k=l.split(/-/g);for(let T=Lt;T>=1&&(x=k.slice(0,T).join("-"),y=k.slice(T).join("-"),b=await h(x,y,{...p,usedProps:d}),!b);T--);}if(!b){s&&Ve(`failed to load icon "${w}"`);return}let K=`url("data:image/svg+xml;utf8,${ve(b)}")`;return c==="auto"&&(c=b.includes("currentColor")?"mask":"bg"),c==="mask"?{"--un-icon":K,"-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",...d}:{background:`${K} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...d}},{layer:i,prefix:r}]]}}}function qe(e,o){let 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,s,u)=>{let f=await _(r,s,u);if(f)return f;let m=await n(r);if(m){let C=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];f=await W(m,r,C,u)}return f}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=Ue(async o=>{let t=o?.customFetch??(r=>fetch(r).then(s=>s.json())),n=o?.cdn;return n?qe(t,n):_});return{presetIcons:o=>e(o)}})());})();
|
|
5
|
+
`).map(o=>o.trim()).join(" ")};Pe.O=function(e){return this.inspectOpts.colors=this.useColors,q.inspect(e,this.inspectOpts)}});var z=E((lo,ne)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ne.exports=Te():ne.exports=ze()});async function ie(e,o,t,n){let r;Tt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let s=e[t];r=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${t}" in "${o}":`,s);return}if(r){let s=r.indexOf("<svg");s>0&&(r=r.slice(s));let{transform:u}=n?.customizations??{};return r=typeof u=="function"?await u(r,o,t):r,r.startsWith("<svg")?await V(n?.customizations?.trimCustomSvg===!0?Oe(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var _e,Tt,Me=I(()=>{"use strict";_e=M(z(),1);te();Se();Tt=(0,_e.default)("@iconify-loader:custom")});async function W(e,o,t,n){let r,{customize:s}=n?.customizations??{};for(let u of t)if(r=Ce(e,u),r){Rt(`${o}:${u}`);let f={...N};typeof s=="function"&&(f=s(f));let{attributes:{width:m,height:C,...i},body:a}=Fe(r,f),p=n?.scale;return await V(`<svg >${a}</svg>`,o,u,n,()=>({...i}),h=>{let w=(l,c)=>{let x=h[l],y;if(!P(x)){if(x)return;typeof p=="number"?p&&(y=`${p}em`):y=c}y?h[l]=y:delete h[l]};w("width",m),w("height",C)})}}var De,Rt,se=I(()=>{"use strict";Q();we();te();De=M(z(),1);Y();Rt=(0,De.default)("@iconify-loader:icon")});var bo,_,ce=I(()=>{"use strict";Me();se();bo=M(z(),1),_=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(s){console.warn(`Failed to load custom icon "${o}" in "${e}":`,s);return}if(r){if(typeof r=="string")return await ie(()=>r,e,o,t);if("icons"in r){let s=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await W(r,e,s,t)}}}else return await ie(n,e,o,t)}});function Ie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ve(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" ')),Ie(o)}ce();var Io=M(z(),1);var Ne=new Set;function Ve(e){Ne.has(e)||(console.warn("[unocss]",e),Ne.add(e))}ce();se();var Ge=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","lets-icons","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];var Lt=3;function Ue(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:s=!1,collections:u,extraProperties:f={},customizations:m={},autoInstall:C=!1,layer:i="icons",unit:a}=o,p={addXmlNs:!0,scale:t,customCollections:u,autoInstall:C,warn:void 0,customizations:{...m,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(w,l,c){await m.iconCustomizer?.(w,l,c),a&&(c.width||(c.width=`${t}${a}`),c.height||(c.height=`${t}${a}`))}}},h;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([w,l,c=n])=>{let x="",y="",b;h=h||await e(o);let d={};if(l.includes(":"))[x,y]=l.split(":"),b=await h(x,y,{...p,usedProps:d});else{let k=l.split(/-/g);for(let T=Lt;T>=1&&(x=k.slice(0,T).join("-"),y=k.slice(T).join("-"),b=await h(x,y,{...p,usedProps:d}),!b);T--);}if(!b){s&&Ve(`failed to load icon "${w}"`);return}let K=`url("data:image/svg+xml;utf8,${ve(b)}")`;return c==="auto"&&(c=b.includes("currentColor")?"mask":"bg"),c==="mask"?{"--un-icon":K,"-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",...d}:{background:`${K} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...d}},{layer:i,prefix:r}]]}}}function qe(e,o){let 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,s,u)=>{let f=await _(r,s,u);if(f)return f;let m=await n(r);if(m){let C=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];f=await W(m,r,C,u)}return f}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=Ue(async o=>{let t=o?.customFetch??(r=>fetch(r).then(s=>s.json())),n=o?.cdn;return n?qe(t,n):_});return{presetIcons:o=>e(o)}})());})();
|
package/uno.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Ta=Object.defineProperty;var Ea=(e,t)=>{for(var r in t)Ta(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 He=J;function _(e=[]){return Array.isArray(e)?e:[e]}function de(e){return Array.from(new Set(e))}function un(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function j(e){return typeof e=="string"}function ge(e){return j(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function za(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 he(e){return e==null?"":za(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Er(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 Ke(n)&&Ke(o)&&Object.keys(o).forEach(a=>{Ke(n[a])&&Ke(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Er(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function mn(e){return j(e[0])}function dn(e){return j(e[0])}var ja=/[\w\u00A0-\uFFFF-_:%-?]/,zr="$$shortcut-no-merge";function gn(e=""){return ja.test(e)}function hn(e){return typeof e=="function"?{match:e}:e}function jr(e){return e.length===3}function bn(e){return e!=null}function xn(){}var qe=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)))}};var Te=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ye(e){return e instanceof Te}var Xe={};function Oa(e=["-",":"]){let t=e.join("|");return Xe[t]||(Xe[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Xe[t].lastIndex=0,Xe[t]}function _a(e,t=["-",":"],r=5){let n=Oa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let v=g+u.length+p.length+1,C={length:f.length,items:[]};s.set(g,C);for(let x of[...d.matchAll(/\S+/g)]){let S=v+x.index,$=s.get(S)?.items;$?s.delete(S):$=[{offset:S,length:x[0].length,className:x[0]}];for(let z of $)z.className=z.className==="~"?u:z.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),C.items.push(z)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of s)l+=e.slice(f,u),l+=p.items.map(d=>d.className).join(" "),f=u+p.length;l+=e.slice(f)}else{l=e;for(let[f,u]of s)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return l.toString()}}}function yn(e,t=["-",":"],r=5){let n=_a(e,t,r);return typeof e=="string"?n.expanded:e}var vn=new Set;function Y(e){vn.has(e)||(console.warn("[unocss]",e),vn.add(e))}var Ze=/[\\:]?[\s'"`;{}]+/g;function Aa(e){return e.split(Ze)}var Je={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Aa(e)}};function wn(){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 Qe="default",et="preflights",Va="shortcuts",Pa="imports",kn={[Pa]:-200,[et]:-100,[Va]:-10,[Qe]:0};function Sn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var $n="_uno_resolved";function Ma(e){let t=typeof e=="function"?e():e;if($n in t)return t;t={...t},Object.defineProperty(t,$n,{value:!0,enumerable:!1});let r=t.shortcuts?Sn(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=_(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Cn(e){let t=Ma(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(_).flatMap(Cn);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=un((r.presets||[]).flatMap(_).flatMap(Cn),(m,y)=>m.name===y.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},kn,...i.map(m=>m.layers));function l(m){return de(i.flatMap(y=>_(y[m]||[])))}let f=l("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Je),u&&!f.includes(u)&&f.unshift(u),f.sort((m,y)=>(m.order||0)-(y.order||0));let p=l("rules"),d={},g=p.length,v=p.map((m,y)=>{if(mn(m)){_(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[y,m[1],m[2],m]});return}return[y,...m]}).filter(Boolean).reverse(),C=Ua(i.map(m=>m.theme)),x=l("extendTheme");for(let m of x)C=m(C)||C;let S={templates:de(i.flatMap(m=>_(m.autocomplete?.templates))),extractors:i.flatMap(m=>_(m.autocomplete?.extractors)).sort((m,y)=>(m.order||0)-(y.order||0)),shorthands:La(i.map(m=>m.autocomplete?.shorthands||{}))},$=l("separators");$.length||($=[":","-"]);let z={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:C,rulesSize:g,rulesDynamic:v,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:S,variants:l("variants").map(hn).sort((m,y)=>(m.order||0)-(y.order||0)),shortcuts:Sn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:$,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(z);return z}function Ua(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Er(t,r),{})}function La(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}},{})}var Rn="0.57.
|
|
1
|
+
"use strict";(()=>{var Ta=Object.defineProperty;var Ea=(e,t)=>{for(var r in t)Ta(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function J(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 He=J;function _(e=[]){return Array.isArray(e)?e:[e]}function de(e){return Array.from(new Set(e))}function un(e,t){return e.reduce((r,n)=>(r.findIndex(i=>t(n,i))===-1&&r.push(n),r),[])}function j(e){return typeof e=="string"}function ge(e){return j(e)?e:(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pn(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ge(t)):[e]:[ge(e)]}function za(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 he(e){return e==null?"":za(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Er(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 Ke(n)&&Ke(o)&&Object.keys(o).forEach(a=>{Ke(n[a])&&Ke(o[a])||Array.isArray(n[a])&&Array.isArray(o[a])?i[a]=Er(n[a],o[a],r):Object.assign(i,{[a]:o[a]})}),i}function Re(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Re(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Re(n):n;return r}return e}function mn(e){return j(e[0])}function dn(e){return j(e[0])}var ja=/[\w\u00A0-\uFFFF-_:%-?]/,zr="$$shortcut-no-merge";function gn(e=""){return ja.test(e)}function hn(e){return typeof e=="function"?{match:e}:e}function jr(e){return e.length===3}function bn(e){return e!=null}function xn(){}var qe=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)))}};var Te=class extends Set{_map;constructor(t){super(t),this._map??=new Map}add(t){return this._map??=new Map,this._map.set(t,(this._map.get(t)??0)+1),super.add(t)}delete(t){return this._map.delete(t),super.delete(t)}clear(){this._map.clear(),super.clear()}getCount(t){return this._map.get(t)??0}setCount(t,r){return this._map.set(t,r),super.add(t)}};function Ye(e){return e instanceof Te}var Xe={};function Oa(e=["-",":"]){let t=e.join("|");return Xe[t]||(Xe[t]=new RegExp(`((?:[!@<~\\w+:_/-]|\\[&?>?:?\\S*\\])+?)(${t})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[.*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Xe[t].lastIndex=0,Xe[t]}function _a(e,t=["-",":"],r=5){let n=Oa(t),o,i=e.toString(),a=new Set,s=new Map;do o=!1,i=i.replace(n,(f,u,p,d,g)=>{if(!t.includes(p))return f;o=!0,a.add(u+p);let v=g+u.length+p.length+1,C={length:f.length,items:[]};s.set(g,C);for(let x of[...d.matchAll(/\S+/g)]){let S=v+x.index,$=s.get(S)?.items;$?s.delete(S):$=[{offset:S,length:x[0].length,className:x[0]}];for(let z of $)z.className=z.className==="~"?u:z.className.replace(/^(!?)(.*)/,`$1${u}${p}$2`),C.items.push(z)}return"$".repeat(f.length)}),r-=1;while(o&&r);let l;if(typeof e=="string"){l="";let f=0;for(let[u,p]of s)l+=e.slice(f,u),l+=p.items.map(d=>d.className).join(" "),f=u+p.length;l+=e.slice(f)}else{l=e;for(let[f,u]of s)l.overwrite(f,f+u.length,u.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(a),hasChanged:o,groupsByOffset:s,get expanded(){return l.toString()}}}function yn(e,t=["-",":"],r=5){let n=_a(e,t,r);return typeof e=="string"?n.expanded:e}var vn=new Set;function Y(e){vn.has(e)||(console.warn("[unocss]",e),vn.add(e))}var Ze=/[\\:]?[\s'"`;{}]+/g;function Aa(e){return e.split(Ze)}var Je={name:"@unocss/core/extractor-split",order:0,extract({code:e}){return Aa(e)}};function wn(){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 Qe="default",et="preflights",Va="shortcuts",Pa="imports",kn={[Pa]:-200,[et]:-100,[Va]:-10,[Qe]:0};function Sn(e){return _(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var $n="_uno_resolved";function Ma(e){let t=typeof e=="function"?e():e;if($n in t)return t;t={...t},Object.defineProperty(t,$n,{value:!0,enumerable:!1});let r=t.shortcuts?Sn(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=_(t.prefix)),i.layer==null&&t.layer&&(i.layer=t.layer)};r?.forEach(n),t.rules?.forEach(n)}return t}function Cn(e){let t=Ma(e);if(!t.presets)return[t];let r=(t.presets||[]).flatMap(_).flatMap(Cn);return[t,...r]}function Or(e={},t={}){let r=Object.assign({},t,e),n=un((r.presets||[]).flatMap(_).flatMap(Cn),(m,y)=>m.name===y.name),o=[...n.filter(m=>m.enforce==="pre"),...n.filter(m=>!m.enforce),...n.filter(m=>m.enforce==="post")],i=[...o,r],a=[...i].reverse(),s=Object.assign({},kn,...i.map(m=>m.layers));function l(m){return de(i.flatMap(y=>_(y[m]||[])))}let f=l("extractors"),u=a.find(m=>m.extractorDefault!==void 0)?.extractorDefault;u===void 0&&(u=Je),u&&!f.includes(u)&&f.unshift(u),f.sort((m,y)=>(m.order||0)-(y.order||0));let p=l("rules"),d={},g=p.length,v=p.map((m,y)=>{if(mn(m)){_(m[2]?.prefix||"").forEach(N=>{d[N+m[0]]=[y,m[1],m[2],m]});return}return[y,...m]}).filter(Boolean).reverse(),C=Ua(i.map(m=>m.theme)),x=l("extendTheme");for(let m of x)C=m(C)||C;let S={templates:de(i.flatMap(m=>_(m.autocomplete?.templates))),extractors:i.flatMap(m=>_(m.autocomplete?.extractors)).sort((m,y)=>(m.order||0)-(y.order||0)),shorthands:La(i.map(m=>m.autocomplete?.shorthands||{}))},$=l("separators");$.length||($=[":","-"]);let z={mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m,...r,presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:s,theme:C,rulesSize:g,rulesDynamic:v,rulesStaticMap:d,preprocess:l("preprocess"),postprocess:l("postprocess"),preflights:l("preflights"),autocomplete:S,variants:l("variants").map(hn).sort((m,y)=>(m.order||0)-(y.order||0)),shortcuts:Sn(l("shortcuts")).reverse(),extractors:f,safelist:l("safelist"),separators:$,details:r.details??r.envMode==="dev"};for(let m of i)m?.configResolved?.(z);return z}function Ua(e){return e.map(t=>t?Re(t):{}).reduce((t,r)=>Er(t,r),{})}function La(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}},{})}var Rn="0.57.5";var _r=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Or(t,r),this.events.emit("config",this.config)}version=Rn;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=wn();setConfig(t,r){t&&(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Or(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 a=await i.extract?.(o);if(a)if(Ye(a)&&Ye(n))for(let s of a)n.setCount(s,n.getCount(s)+a.getCount(s));else for(let s of a)n.add(s)}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,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 f of this.config.preprocess)o=f(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=await this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(a.variants=[...i[3]]);let s=await this.expandShortcut(a.currentSelector,a),l=s?await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]):(await this.parseUtil(a.variantMatch,a))?.map(f=>this.stringifyUtil(f,a)).filter(bn);if(l?.length)return this._cache.set(n,l),l;this._cache.set(n,null)}async generate(t,r={}){let{id:n,scope:o,preflights:i=!0,safelist:a=!0,minify:s=!1,extendedInfo:l=!1}=r,f=j(t)?await this.applyExtractors(t,n,l?new Te:new Set):Array.isArray(t)?new Set(t):t;a&&this.config.safelist.forEach(m=>{f.has(m)||f.add(m)});let u=s?"":`
|
|
2
2
|
`,p=new Set([Qe]),d=l?new Map:new Set,g=new Map,v={},C=Array.from(f).map(async m=>{if(d.has(m))return;let y=await this.parseToken(m);if(y!=null){d instanceof Map?d.set(m,{data:y,count:Ye(f)?f.getCount(m):-1}):d.add(m);for(let V of y){let N=V[3]||"",W=V[4]?.layer;g.has(N)||g.set(N,[]),g.get(N).push(V),W&&p.add(W)}}});await Promise.all(C),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},y=new Set([]);this.config.preflights.forEach(({layer:V=et})=>{p.add(V),y.add(V)}),v=Object.fromEntries(await Promise.all(Array.from(y).map(async V=>{let W=(await Promise.all(this.config.preflights.filter(ae=>(ae.layer||et)===V).map(async ae=>await ae.getCSS(m)))).filter(Boolean).join(u);return[V,W]})))})();let x=this.config.sortLayers(Array.from(p).sort((m,y)=>(this.config.layers[m]??0)-(this.config.layers[y]??0)||m.localeCompare(y))),S={},$=m=>{if(S[m])return S[m];let y=Array.from(g).sort((N,W)=>(this.parentOrders.get(N[0])??0)-(this.parentOrders.get(W[0])??0)||N[0]?.localeCompare(W[0]||"")||0).map(([N,W])=>{let ae=W.length,me=W.filter(h=>(h[4]?.layer||Qe)===m).sort((h,w)=>h[0]-w[0]||(h[4]?.sort||0)-(w[4]?.sort||0)||h[5]?.currentSelector?.localeCompare(w[5]?.currentSelector??"")||h[1]?.localeCompare(w[1]||"")||h[2]?.localeCompare(w[2]||"")||0).map(([,h,w,,T,,D])=>[[[(h&&Da(h,o))??"",T?.sort??0]],w,!!(D??T?.noMerge)]);if(!me.length)return;let Ce=me.reverse().map(([h,w,T],D)=>{if(!T&&this.config.mergeSelectors)for(let B=D+1;B<ae;B++){let q=me[B];if(q&&!q[2]&&(h&&q[0]||h==null&&q[0]==null)&&q[1]===w)return h&&q[0]&&q[0].push(...h),null}let G=h?de(h.sort((B,q)=>B[1]-q[1]||B[0]?.localeCompare(q[0]||"")||0).map(B=>B[0]).filter(Boolean)):[];return G.length?`${G.join(`,${u}`)}{${w}}`:w}).filter(Boolean).reverse().join(u);if(!N)return Ce;let Ge=N.split(" $$ ");return`${Ge.join("{")}{${u}${Ce}${u}${"}".repeat(Ge.length)}`}).filter(Boolean).join(u);i&&(y=[v[m],y].filter(Boolean).join(u));let V=s?"":`/* layer: ${m} */${u}`;return S[m]=y?V+y:""},z=(m=x,y)=>m.filter(V=>!y?.includes(V)).map(V=>$(V)||"").filter(Boolean).join(u);return{get css(){return z()},layers:x,matched:d,getLayers:z,getLayer:$}}async matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!0,s={rawSelector:t,theme:this.config.theme,generator:this};for(;a;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let f=await l.match(i,s);if(f){if(j(f)){if(f===i)continue;f={matcher:f}}i=f.matcher,o.unshift(f),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let i=r.slice().sort((f,u)=>(f.order||0)-(u.order||0)).reduceRight((f,u)=>p=>{let d=u.body?.(p.entries)||p.entries,g=Array.isArray(u.parent)?u.parent:[u.parent,void 0];return(u.handle??Ia)({...p,entries:d,selector:u.selector?.(p.selector,d)||p.selector,parent:g[0]||p.parent,parentOrder:g[1]||p.parentOrder,layer:u.layer||p.layer,sort:u.sort||p.sort},f)},f=>f)({prefix:"",selector:Ba(n),pseudo:"",entries:t[2]}),{parent:a,parentOrder:s}=i;a!=null&&s!=null&&this.parentOrders.set(a,s);let l={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:a,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let f of this.config.postprocess)f(l);return l}constructCustomCSS(t,r,n){let o=ge(r);if(j(o))return o;let{selector:i,entries:a,parent:s}=this.applyVariants([0,n||t.rawSelector,o,void 0,t.variantHandlers]),l=`${i}{${he(a)}}`;return s?`${s}{${l}}`:l}async parseUtil(t,r,n=!1,o){let[i,a,s]=j(t)?await this.matchVariants(t):t;this.config.details&&(r.rules=r.rules??[]);let l=this.config.rulesStaticMap[a];if(l&&l[1]&&(n||!l[2]?.internal)){this.config.details&&r.rules.push(l[3]);let u=l[0],p=ge(l[1]),d=l[2];return j(p)?[[u,p,d]]:[[u,i,p,d,s]]}r.variantHandlers=s;let{rulesDynamic:f}=this.config;for(let[u,p,d,g]of f){if(g?.internal&&!n)continue;let v=a;if(g?.prefix){let $=_(g.prefix);if(o){let z=_(o);if(!$.some(m=>z.includes(m)))continue}else{let z=$.find(m=>a.startsWith(m));if(z==null)continue;v=a.slice(z.length)}}let C=v.match(p);if(!C)continue;let x=await d(C,r);if(!x)continue;this.config.details&&r.rules.push([p,d,g]);let S=pn(x).filter($=>$.length);if(S.length)return S.map($=>j($)?[u,$,g]:[u,i,$,g,s])}}stringifyUtil(t,r){if(!t)return;if(jr(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:a,sort:s,noMerge:l}=this.applyVariants(t),f=he(o);if(!f)return;let{layer:u,sort:p,...d}=t[3]??{},g={...d,layer:a??u,sort:s??p};return[t[0],n,f,i,g,this.config.details?r:void 0,l]}async expandShortcut(t,r,n=5){if(n===0)return;let o=this.config.details?s=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(s)}:xn,i,a;for(let s of this.config.shortcuts){let l=t;if(s[2]?.prefix){let u=_(s[2].prefix).find(p=>t.startsWith(p));if(u==null)continue;l=t.slice(u.length)}if(dn(s)){if(s[0]===l){i=i||s[2],a=s[1],o(s);break}}else{let f=l.match(s[0]);if(f&&(a=s[1](f,r)),a){i=i||s[2],o(s);break}}}if(j(a)&&(a=yn(a.trim()).split(/\s+/g)),!a){let[s,l]=j(t)?await this.matchVariants(t):t;if(s!==l){let f=await this.expandShortcut(l,r,n-1);f&&(a=f[0].map(u=>j(u)?s.replace(l,u):u))}}if(a)return[(await Promise.all(a.map(async s=>(j(s)?(await this.expandShortcut(s,r,n-1))?.[0]:void 0)||[s]))).flat(1).filter(Boolean),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){let i=new qe,a=(await Promise.all(de(n).map(async u=>{let p=j(u)?await this.parseUtil(u,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",ge(u),void 0,[]]];return!p&&this.config.warn&&Y(`unmatched utility "${u}" in shortcut "${t[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((u,p)=>u[0]-p[0]),[s,,l]=t,f=[];for(let u of a){if(jr(u)){f.push([u[0],void 0,u[1],void 0,u[2],r,void 0]);continue}let{selector:p,entries:d,parent:g,sort:v,noMerge:C}=this.applyVariants(u,[...u[4],...l],s);i.getFallback(p,g,[[],u[0]])[0].push([d,!!(C??u[3]?.noMerge),v??0])}return f.concat(i.map(([u,p],d,g)=>{let v=(x,S,$)=>{let z=Math.max(...$.map(y=>y[1])),m=$.map(y=>y[0]);return(x?[m.flat(1)]:m).map(y=>{let V=he(y);if(V)return[p,d,V,g,{...o,noMerge:S,sort:z},r,void 0]})};return[[u.filter(([,x])=>x).map(([x,,S])=>[x,S]),!0],[u.filter(([,x])=>!x).map(([x,,S])=>[x,S]),!1]].map(([x,S])=>[...v(!1,S,x.filter(([$])=>$.some(z=>z[0]===zr))),...v(!0,S,x.filter(([$])=>$.every(z=>z[0]!==zr)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="function"?r(t):j(r)?r===t:r.test(t))}};function En(e,t){return new _r(e,t)}var Na=/\s\$\$\s+/g;function Wa(e){return e.match(/\s\$\$\s/)}function Da(e,t){return Wa(e)?e.replace(Na,t?` ${t} `:" "):t?`${t} ${e}`:e}var Tn=/^\[(.+?)(~?=)"(.*)"\]$/;function Ba(e){return Tn.test(e)?e.replace(Tn,(t,r,n,o)=>`[${He(r)}${n}"${He(o)}"]`):`.${He(e)}`}function Ia(e,t){return t(e)}var Ga=/\/\/#\s*sourceMappingURL=.*\n?/g;function zn(e){return e.includes("sourceMappingURL=")?e.replace(Ga,""):e}var Ha=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Ka=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,qa=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function Ya(e){let t=[];for(let r of e.matchAll(Ka))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(Ha))t.push(r[0]);return e.split(Ze).forEach(r=>{gn(r)&&!qa.test(r)&&t.push(r)}),t}var jn={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Ya(zn(e))}};var On=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=he(Object.entries(e.theme.preflightBase));return _(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var U={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ar={...U,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]},Vr={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},tt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},_n=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},..._n.map(e=>({[e.replace(/ /,"-")]:e})),..._n.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),k=["inherit","initial","revert","revert-layer","unset"],Pr=/(?:calc|clamp|min|max)\s*\(.*\)/;function be(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,a=0;for(let s=0;s<n;s++)switch(e[s]){case t:i||(i=!0,a=s),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(a,s+1),e.slice(s+1),e.slice(0,a)];break}}function Mr(e,t,r,n){if(e===""||(j(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let a=0;a<o;a++)switch(e[a]){case t:i++;break;case r:if(--i<0)return;break;default:for(let s of n){let l=s.length;if(l&&s===e.slice(a,a+l)&&i===0)return a===0||a===o-l?void 0:[e.slice(0,a),e.slice(a+l)]}}return[e,""]}function se(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Mr(e,"(",")",t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}var Ur=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],An=["%alpha","<alpha-value>"],Xa=new RegExp(An.map(e=>te(e)).join("|"));function X(e=""){let t=Za(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Ur.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(a=>typeof a=="string"?a.trim():a),alpha:typeof o=="string"?o.trim():o}}function Q(e){let t=e.alpha??1;return typeof t=="string"&&An.includes(t)?1:t}function A(e,t){if(typeof e=="string")return e.replace(Xa,`${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}`,Ur.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Za(e){if(!e)return;let t=Ja(e);if(t!=null||(t=Qa(e),t!=null)||(t=es(e),t!=null)||(t=rs(e),t!=null)||(t=ns(e),t!=null))return t}function Ja(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 Qa(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function es(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=se(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 ts=new RegExp(`^(${Ur.join("|")})\\((.+)\\)$`,"i");function rs(e){let t=e.match(ts);if(!t)return;let[,r,n]=t,o=Vn(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function ns(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Vn(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Vn(e){let t=se(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=se(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 rt(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let a=e[i](n);if(a!=null)return a}};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,get(){return r(this,n)}});return t}function I(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,...t(a)})}},autocomplete:`${e}:`}}function L(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${te(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(a,s)=>s({...a,parent:`${a.parent?`${a.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function re(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=be(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function F(e,t,r){if(t.startsWith(e)){let n=re(e,t,r);if(n){let[o="",i=n[1]]=F("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let a=t.indexOf("/",e.length),s=a===-1||i<=a;return[t.slice(e.length,s?i:a),t.slice(i+o.length),s?"":t.slice(a+1,i)]}}}}var os=",".charCodeAt(0),is=";".charCodeAt(0),Pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mn=new Uint8Array(64),as=new Uint8Array(128);for(let e=0;e<Pn.length;e++){let t=Pn.charCodeAt(e);Mn[e]=t,as[t]=e}var Lr=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}};function Un(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),a=0,s="";for(let l=0;l<e.length;l++){let f=e[l];if(l>0&&(a===r&&(s+=Lr.decode(o),a=0),o[a++]=is),f.length!==0){t[0]=0;for(let u=0;u<f.length;u++){let p=f[u];a>n&&(s+=Lr.decode(i),o.copyWithin(0,n,a),a-=n),u>0&&(o[a++]=os),a=Ee(o,a,t,p,0),p.length!==1&&(a=Ee(o,a,t,p,1),a=Ee(o,a,t,p,2),a=Ee(o,a,t,p,3),p.length!==4&&(a=Ee(o,a,t,p,4)))}}}return s+Lr.decode(o.subarray(0,a))}function Ee(e,t,r,n,o){let i=n[o],a=i-r[o];r[o]=i,a=a<0?-a<<1|1:a<<1;do{let s=a&31;a>>>=5,a>0&&(s|=32),e[t++]=Mn[s]}while(a>0);return t}var nt=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))}},ot=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}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 ss(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 cs=ss(),Fr=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=Un(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+cs(this.toString())}};function ls(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,a)=>{let s=/^ +/.exec(a)[0].length;return Math.min(s,i)},1/0);return new Array(o+1).join(" ")}function fs(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 us=Object.prototype.toString;function ps(e){return us.call(e)==="[object Object]"}function Ln(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,a=r.length;for(;i<a;){let f=i+a>>1;o<r[f]?a=f:i=f+1}let s=i-1,l=o-r[s];return{line:s,column:l}}}var ms=/\w/,Nr=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.indexOf(`
|