@unocss/runtime 0.37.1 → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +2 -2
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var Ce=Object.defineProperty,fa=Object.defineProperties;var ma=Object.getOwnPropertyDescriptors;var St=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var Se=(t,e,r)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,y=(t,e)=>{for(var r in e||(e={}))Re.call(e,r)&&Se(t,r,e[r]);if(St)for(var r of St(e))ze.call(e,r)&&Se(t,r,e[r]);return t},z=(t,e)=>fa(t,ma(e));var Ee=(t,e)=>{var r={};for(var o in t)Re.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&St)for(var o of St(t))e.indexOf(o)<0&&ze.call(t,o)&&(r[o]=t[o]);return r};var da=(t,e)=>{for(var r in e)Ce(t,r,{get:e[r],enumerable:!0})};function ot(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var Ct=nt;function it(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Te(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>it(e)):[t]:[it(t)]}function ga(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function G(t){return t==null?"":ga(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Rt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Bt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=y({},r);return Rt(r)&&Rt(o)&&Object.keys(o).forEach(a=>{Rt(r[a])&&Rt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Bt(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function at(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?at(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:at(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?at(o):o;return r}return t}function je(t){return typeof t[0]=="string"}function Ae(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function st(t){return Array.from(new Set(t))}var ba=/^\[(.+?)~?="(.*)"\]$/;var ha=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Nt="$$shortcut-no-merge";function Ve(t){return t.match(ba)}function ct(t=""){return ha.test(t)}function Oe(t){return typeof t=="function"?{match:t}:t}function Lt(t){return t.length===3}function Pe(t){return t!=null}function Dt(){}var zt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var Me=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Fe(t){Me.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Me,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var Ue=new Set;function _e(t){Ue.has(t)||(console.warn("[unocss]",t),Ue.add(t))}function Et(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=t[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var xa=t=>t.split(/[\s'"`;>=]+/g).filter(ct),lt={name:"split",order:0,extract({code:t}){return new Set(xa(t))}};function We(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}function ya(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var va={preflights:-100,shortcuts:-1,default:0};function It(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(va,...o.map(f=>f.layers),t.layers);function i(f){return st([...n.flatMap(h=>V(h[f]||[])),...V(r[f]||[])])}let s=i("extractors");s.length||s.push(lt),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((f,h)=>{je(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=at([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>Bt(f,h),{}));i("extendTheme").forEach(f=>f(u));let d={templates:st(n.map(f=>{var h;return V((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return V((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return z(y({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(Oe),shortcuts:ya(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Be="0.37.
|
|
1
|
+
(()=>{var Ce=Object.defineProperty,fa=Object.defineProperties;var ma=Object.getOwnPropertyDescriptors;var St=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable;var Se=(t,e,r)=>e in t?Ce(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,y=(t,e)=>{for(var r in e||(e={}))Re.call(e,r)&&Se(t,r,e[r]);if(St)for(var r of St(e))ze.call(e,r)&&Se(t,r,e[r]);return t},z=(t,e)=>fa(t,ma(e));var Ee=(t,e)=>{var r={};for(var o in t)Re.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&St)for(var o of St(t))e.indexOf(o)<0&&ze.call(t,o)&&(r[o]=t[o]);return r};var da=(t,e)=>{for(var r in e)Ce(t,r,{get:e[r],enumerable:!0})};function ot(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function nt(t){let e=t.length,r=-1,o,n="",a=t.charCodeAt(0);for(;++r<e;){if(o=t.charCodeAt(r),o===0){n+="\uFFFD";continue}if(o===44){n+="\\,";continue}if(o>=1&&o<=31||o===127||r===0&&o>=48&&o<=57||r===1&&o>=48&&o<=57&&a===45){n+=`\\${o.toString(16)} `;continue}if(r===0&&e===1&&o===45){n+=`\\${t.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=t.charAt(r);continue}n+=`\\${t.charAt(r)}`}return n}var Ct=nt;function it(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function Te(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>it(e)):[t]:[it(t)]}function ga(t){return t.filter(([e,r],o)=>{if(e.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(t[n][0]===e&&t[n][1]===r)return!1;return!0})}function G(t){return t==null?"":ga(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Rt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Bt(t,e){let r=t,o=e;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=y({},r);return Rt(r)&&Rt(o)&&Object.keys(o).forEach(a=>{Rt(r[a])&&Rt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Bt(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function at(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?at(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:at(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?at(o):o;return r}return t}function je(t){return typeof t[0]=="string"}function Ae(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function st(t){return Array.from(new Set(t))}var ba=/^\[(.+?)~?="(.*)"\]$/;var ha=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,Nt="$$shortcut-no-merge";function Ve(t){return t.match(ba)}function ct(t=""){return ha.test(t)}function Oe(t){return typeof t=="function"?{match:t}:t}function Lt(t){return t.length===3}function Pe(t){return t!=null}function Dt(){}var zt=class{_map=new Map;get(e,r){let o=this._map.get(e);if(o)return o.get(r)}getFallback(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.has(r)||n.set(r,o),n.get(r)}set(e,r,o){let n=this._map.get(e);return n||(n=new Map,this._map.set(e,n)),n.set(r,o),this}has(e,r){var o;return(o=this._map.get(e))==null?void 0:o.has(r)}delete(e,r){var o;return((o=this._map.get(e))==null?void 0:o.delete(r))||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>e(a,r,n)))}};var Me=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Fe(t){Me.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Me,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var Ue=new Set;function _e(t){Ue.has(t)||(console.warn("[unocss]",t),Ue.add(t))}function Et(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=t[i](o);if(s!=null)return s}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var xa=t=>t.split(/[\s'"`;>=]+/g).filter(ct),lt={name:"split",order:0,extract({code:t}){return new Set(xa(t))}};function We(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}function ya(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var va={preflights:-100,shortcuts:-1,default:0};function It(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(va,...o.map(f=>f.layers),t.layers);function i(f){return st([...n.flatMap(h=>V(h[f]||[])),...V(r[f]||[])])}let s=i("extractors");s.length||s.push(lt),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((f,h)=>{je(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=at([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>Bt(f,h),{}));i("extendTheme").forEach(f=>f(u));let d={templates:st(n.map(f=>{var h;return V((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return V((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return z(y({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(Oe),shortcuts:ya(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Be="0.37.2";var Kt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=It(e,r),this.events.emit("config",this.config)}version=Be;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=We();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=It(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,o=new Set){let n={get original(){return e},code:e,id:r};for(let a of this.config.extractors){let i=await a.extract(n);i==null||i.forEach(s=>o.add(s))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let i=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(i.variants=[...a[3]]);let s=this.expandShortcut(i.currentSelector,i);if(s){let p=await this.stringifyShortcuts(i.variantMatch,i,s[0],s[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(i.variantMatch,i))==null?void 0:l.map(g=>this.stringifyUtil(g,i)).filter(Pe);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(e="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(b=>s.add(b));let l=i?"":`
|
|
2
2
|
`,p=new Set(["default"]),g=new Set,u=new Map;await Promise.all(Array.from(s).map(async b=>{var v;if(g.has(b))return;let x=await this.parseToken(b);if(x!=null){g.add(b);for(let S of x){let E=S[3]||"";u.has(E)||u.set(E,[]),u.get(E).push(S),(v=S[4])!=null&&v.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let d={},f=this.config.sortLayers(Array.from(p).sort((b,x)=>{var v,S;return((v=this.config.layers[b])!=null?v:0)-((S=this.config.layers[x])!=null?S:0)||b.localeCompare(x)})),h={};if(n){let b={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(f.map(async x=>{let S=(await Promise.all(this.config.preflights.filter(E=>(E.layer||"default")===x).map(async E=>await E.getCSS(b)))).filter(Boolean).join(l);return[x,S]})))}let k=b=>{if(d[b])return d[b];let x=Array.from(u).sort((v,S)=>{var E,P,L;return((E=this.parentOrders.get(v[0]))!=null?E:0)-((P=this.parentOrders.get(S[0]))!=null?P:0)||((L=v[0])==null?void 0:L.localeCompare(S[0]||""))||0}).map(([v,S])=>{let E=S.length,P=S.filter(m=>{var w;return(((w=m[4])==null?void 0:w.layer)||"default")===b}).sort((m,w)=>{var M,H,_;return m[0]-w[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((H=w[4])==null?void 0:H.sort)||0)||((_=m[1])==null?void 0:_.localeCompare(w[1]||""))||0}).map(m=>{var w;return[m[1]?wa(m[1],o):m[1],m[2],!!((w=m[4])!=null&&w.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!P.length)return;let L=P.reverse().map(([m,w,M],H)=>{if(!M&&m&&this.config.mergeSelectors)for(let _=H+1;_<E;_++){let I=P[_];if(I&&!I[2]&&I[0]&&I[1]===w)return I[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${w}}`:w}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${L}${l}}`:L}).filter(Boolean).join(l);return n&&(x=[h[b],x].filter(Boolean).join(l)),d[b]=!i&&x?`/* layer: ${b} */${l}${x}`:x},T=(b=f,x)=>b.filter(v=>!(x!=null&&x.includes(v))).map(v=>k(v)||"").filter(Boolean).join(l);return{get css(){return T()},layers:f,getLayers:T,getLayer:k,matched:g}}matchVariants(e,r){let o=new Set,n=[],a=r||e,i=!1,s={rawSelector:e,theme:this.config.theme,generator:this};for(;;){i=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,s);if(!!p){typeof p=="string"&&(p={matcher:p}),a=p.matcher,Array.isArray(p.parent)&&this.parentOrders.set(p.parent[0],p.parent[1]),n.unshift(p),o.add(l),i=!0;break}}if(!i)break;if(n.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var g;return((g=p.body)==null?void 0:g.call(p,l))||l},e[2]),i=n.reduce((l,p)=>{var g;return((g=p.selector)==null?void 0:g.call(p,l,a))||l},Ca(o)),s={selector:Sa(i),entries:a,parent:n.reduce((l,p)=>Array.isArray(p.parent)?p.parent[0]:p.parent||l,void 0),layer:n.reduce((l,p)=>p.layer||l,void 0),sort:n.reduce((l,p)=>p.sort||l,void 0)};for(let l of this.config.postprocess)l(s);return s}constructCustomCSS(e,r,o){r=it(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),s=`${n}{${G(a)}}`;return i?`${i}{${s}}`:s}async parseUtil(e,r,o=!1){var u,d;let[n,a,i]=typeof e=="string"?this.matchVariants(e):e,s=this.config.details?f=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(f)}:Dt,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return s(l[3]),[[l[0],n,it(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:g}=this.config;for(let f=g-1;f>=0;f--){let h=p[f];if(!h||((d=h[2])==null?void 0:d.internal)&&!o)continue;let[k,T,b]=h,x=a.match(k);if(!x)continue;let v=await T(x,r);if(!v)continue;if(s(h),typeof v=="string")return[[f,v,b]];let S=Te(v).filter(E=>E.length);if(S.length)return S.map(E=>[f,n,E,b,i])}}stringifyUtil(e,r){var f;if(!e)return;if(Lt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:s}=this.applyVariants(e),l=G(n);if(!l)return;let h=(f=e[3])!=null?f:{},{layer:p,sort:g}=h,u=Ee(h,["layer","sort"]),d=z(y({},u),{layer:i!=null?i:p,sort:s!=null?s:g});return[e[0],o,l,a,d,this.config.details?r:void 0]}expandShortcut(e,r,o=3){if(o===0)return;let n=this.config.details?s=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(s)}:Dt,a,i;for(let s of this.config.shortcuts)if(Ae(s)){if(s[0]===e){a=a||s[2],i=s[1],n(s);break}}else{let l=e.match(s[0]);if(l&&(i=s[1](l,r)),i){a=a||s[2],n(s);break}}if(typeof i=="string"&&(i=Fe(i).split(/\s+/g)),!!i)return[i.flatMap(s=>{var l;return((l=this.expandShortcut(s,r,o-1))==null?void 0:l[0])||[s]}).filter(s=>s!==""),a]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var g;let a=new zt,i=(await Promise.all(st(o).map(async u=>{let d=await this.parseUtil(u,r,!0);return d||_e(`unmatched utility "${u}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[s,,l]=e,p=[];for(let u of i){if(Lt(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:d,entries:f,parent:h,sort:k}=this.applyVariants(u,[...u[4],...l],s);a.getFallback(d,h,[[],u[0]])[0].push([f,!!((g=u[3])!=null&&g.noMerge),k!=null?k:0])}return p.concat(a.map(([u,d],f,h)=>{let k=(b,x,v)=>{let S=Math.max(...v.map(P=>P[1])),E=v.map(P=>P[0]);return(b?[E.flat(1)]:E).map(P=>{let L=G(P);if(L)return[d,f,L,h,z(y({},n),{noMerge:x,sort:S}),r]})};return[[u.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[u.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...k(!1,x,b.filter(([v])=>v.some(S=>S[0]===Nt))),...k(!0,x,b.filter(([v])=>v.every(S=>S[0]!==Nt)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Le(t,e){return new Kt(t,e)}var De=/ \$\$ /,ka=t=>t.match(De);function wa(t,e){return ka(t)?t.replace(De,e?` ${e} `:" "):e?`${e} ${t}`:t}function Sa(t){let e=t.match(/::[\w-]+/g);return e&&(e.forEach(r=>t=t.replace(r,"")),t+=e.join("")),t}var Ne=/^\[(.+?)(~?=)"(.*)"\]$/;function Ca(t){return Ne.test(t)?t.replace(Ne,(e,r,o,n)=>`[${Ct(r)}${o}"${Ct(n)}"]`):`.${Ct(t)}`}var Ht=[{layer:"preflights",getCSS(t){if(t.theme.preflightBase)return`*,::before,::after{${G(Object.entries(t.theme.preflightBase))}}`}}];var O={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"]},qt=z(y({},O),{s:["-inset-inline-start"],e:["-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"]}),Xt={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"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Yt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ie=["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"],j=Object.assign({},...Ie.map(t=>({[t.replace(/ /,"-")]:t})),...Ie.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),W=["inherit","initial","revert","revert-layer","unset"];var Ke={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},He=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":Ke[t]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Ke).join("|")})`}]],qe=["center","left","right","justify","start","end",...W].map(t=>[`text-${t}`,{"text-align":t}]);var Gt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Z(t=""){let e=Ra(t);if(e==null||e===!1)return;let{type:r,components:o,alpha:n}=e,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Gt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Gt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Ra(t){if(!t)return;let e=za(t);if(e!=null||(e=Ea(t),e!=null)||(e=Ta(t),e!=null)||(e=Aa(t),e!=null)||(e=Va(t),e!=null))return e}function za(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(!!e)switch(e.length){case 3:case 4:let r=Array.from(e,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:e.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Ea(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Ta(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=pt(o,",",5);if(n){if([3,4].includes(n.length))return{type:r,components:n.slice(0,3),alpha:n[3]};if(n.length!==1)return!1}}var ja=new RegExp(`^(${Gt.join("|")})\\((.+)\\)$`,"i");function Aa(t){let e=t.match(ja);if(!e)return;let[,r,o]=e,n=Xe(`${r} ${o}`);if(n){let{alpha:a,components:[i,...s]}=n;return{type:i,components:s,alpha:a}}}function Va(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Xe(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Xe(t){let e=pt(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 a=e.splice(r-2);e.push(a.join(" ")),--r}let o=pt(e[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:e};let n=o.pop();return e[r-1]=o.join("/"),{components:e,alpha:n}}function Oa(t,e){if(t=t.trim(),t==="")return;let r=t.length,o=0;for(let n=0;n<r;n++)switch(t[n]){case"(":o++;break;case")":if(--o<0)return;break;case e:if(o===0){let a=t.slice(0,n).trim();return a===""?void 0:[a,t.slice(n+1).trim()]}}return[t,""]}function pt(t,e,r){if(e=e!=null?e:" ",e.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;t!=="";){if(++n>r)return;let a=Oa(t,e);if(!a)return;let[i,s]=a;o.push(i),t=s}if(o.length>0)return o}var Jt={};da(Jt,{auto:()=>Ua,bracket:()=>Ia,bracketOfColor:()=>Ka,bracketOfLength:()=>Ha,bracketOfPosition:()=>qa,cssvar:()=>Xa,degree:()=>Ga,fraction:()=>La,global:()=>Za,number:()=>Ba,numberWithUnit:()=>Fa,percent:()=>Na,position:()=>Qa,properties:()=>Ja,px:()=>Wa,rem:()=>_a,time:()=>Ya});var Pa=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],Zt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Ma=/^(-?[0-9.]+)$/i,Ye=/^(px)$/i;function B(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Fa(t){let e=t.match(Zt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${B(n)}${o}`}function Ua(t){if(t==="auto"||t==="a")return"auto"}function _a(t){if(t.match(Ye))return`1${t}`;let e=t.match(Zt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n/4)}rem`}function Wa(t){if(t.match(Ye))return`1${t}`;let e=t.match(Zt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}px`}function Ba(t){if(!Ma.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return B(e)}function Na(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${B(e/100)}`}function La(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${B(o*100)}%`}var Da=/^\[(color|length|position):/i;function Tt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(Da);if(o?e&&o[1]===e&&(r=t.slice(o[0].length,-1)):r=t.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,n=>n.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,n=>n.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function Ia(t){return Tt(t)}function Ka(t){return Tt(t,"color")}function Ha(t){return Tt(t,"length")}function qa(t){return Tt(t,"position")}function Xa(t){if(t.match(/^\$\S/))return`var(--${nt(t.slice(1))})`}function Ya(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}ms`}function Ga(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${B(n)}${o}`:`${B(n)}deg`}function Za(t){if(W.includes(t))return t}function Ja(t){if(t.split(",").every(e=>Pa.includes(e)))return t}function Qa(t){if(["top","left","right","bottom","center"].includes(t))return t}var c=Et(Jt);var D=(t,e)=>{let r=new RegExp(`^${ot(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},F=(t,e)=>{let r=new RegExp(`^${ot(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var Ge="$$mini-no-negative",R=t=>([e,r,o],{theme:n})=>{var i,s;let a=(s=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return O[r].map(l=>[`${t}${l}`,a])},Qt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},J=(t,e)=>{let r=t.split(/(?:\/|:)/),o,n;r[0]==="[color"?(o=r.slice(0,2).join(":"),n=r[2]):[o,n]=r;let a=o.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=a;if(!i)return;let s,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?s=p:p.startsWith("hex-")?s=`#${p.slice(4)}`:o.startsWith("$")&&(s=c.cssvar(o)),s=s||l;let g="DEFAULT";if(!s){let u,[d]=a.slice(-1);d.match(/^\d+$/)?(g=d,u=Qt(e,a.slice(0,-1))):(u=Qt(e,a),!u&&a.length<=2&&([,g=g]=a,u=Qt(e,[i]))),typeof u=="string"?s=u:g&&u&&(s=u[g])}return{opacity:n,name:i,no:g,color:s,cssColor:Z(s),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},C=(t,e)=>([,r],{theme:o})=>{var l;let n=J(r,o);if(!n)return;let{alpha:a,color:i,cssColor:s}=n;if(s)return a!=null?{[t]:U(s,a)}:{[`--un-${e}-opacity`]:(l=s.alpha)!=null?l:1,[t]:U(s,`var(--un-${e}-opacity)`)};if(i)return{[t]:i.replace("%alpha",`${a!=null?a:1}`)}},Q=(t,e)=>{let r=[];t=V(t);for(let o=0;o<t.length;o++){let n=pt(t[o]," ",6);if(!n||n.length<3)return t;let a=Z(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${U(a)})`)}return r},jt=(t,e)=>{var r;return t!=null&&!!((r=J(t,e))!=null&&r.color)},tt=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.breakpoints),r||(r=t.breakpoints),r},Ze=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var Je=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...W].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Qe=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ti=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},tr=[[/^will-change-(.+)/,([,t])=>({"will-change":ti(t)})]];var gt=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...W],er=[[/^(?:border|b)()(?:-(.+))?$/,ut,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ut],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ut],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ut],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ut],[/^(?:border|b)-()(?:width|size)-(.+)$/,et,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,et],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,et],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,et],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,et],[/^(?:border|b)-()(?:color-)?(.+)$/,ft,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ft],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ft],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ft],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ft],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,mt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,mt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,mt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,mt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,mt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,dt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,dt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,dt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,dt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,dt],[/^(?:border|b)-(?:style-)?()(.+)$/,rt,{autocomplete:["(border|b)-style",`(border|b)-(${gt.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${gt.join("|")})`,`(border|b)-<directions>-style-(${gt.join("|")})`,`(border|b)-style-(${gt.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,rt],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,rt],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,rt],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,rt]],ei=t=>([,e],r)=>{var s,l;let o=J(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${t}-color`]:U(i,n)}:t===""?{"--un-border-opacity":(s=i.alpha)!=null?s:1,[`border${t}-color`]:U(i,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:U(i,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ut(t,e){let r=et(t,e),o=rt(["",t[1],"solid"]);if(r&&o)return[...r,...o]}function et([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in O&&o!=null)return O[t].map(i=>[`border${i}-width`,o])}function ft([,t="",e],{theme:r}){if(t in O&&jt(e,r))return Object.assign({},...O[t].map(o=>ei(o)(["",e],r)))}function mt([,t="",e]){let r=c.bracket.percent(e);if(t in O&&r!=null)return O[t].map(o=>[`--un-border${o}-opacity`,r])}function dt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Xt&&o!=null)return Xt[t].map(a=>[`border${a}-radius`,o])}function rt([,t="",e]){if(gt.includes(e)&&t in O)return O[t].map(r=>[`border${r}-style`,e])}var rr=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],or=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],nr=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var At={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},ar=t=>{var e;return(e=c.properties(t))!=null?e:At[t]},ir=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?ar(t):[At.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(At).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||ar(t)}),{autocomplete:[`transition-property-(${[...W,...Object.keys(At)].join("|")})`]}],["transition-none",{transition:"none"}]];var sr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var cr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},lr=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=V((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=V((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":cr[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(cr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,t])=>({"font-synthesis":t}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],pr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],ur=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],fr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],mr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var dr={"":"",x:"column-",y:"row-"},gr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${dr[t]}gap`]:o,[`${dr[t]}gap`]:o}},br=[[/^(?:flex-|grid-)?gap-?()(.+)$/,gr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,gr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var K=t=>t.replace("col","column"),te=t=>t[0]==="r"?"Row":"Column",ri=(t,e,r)=>{var n;let o=(n=e[`gridAuto${te(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},hr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${K(t)}`]:(n=(o=r[`grid${te(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${K(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${K(t)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${K(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${K(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${K(t)}`]:ri(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":K(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${K(t)}`]:(n=(o=r[`gridTemplate${te(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${K(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${K(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Vt=["auto","hidden","clip","visible","scroll"],xr=[[/^(?:overflow|of)-(.+)$/,([,t])=>Vt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${Vt.join("|")})`,`(overflow|of)-(x|y)-(${Vt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>Vt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var yr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],vr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],$r=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],kr=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["items-start",{"align-items":"flex-start"}],["items-end",{"align-items":"flex-end"}],["items-center",{"align-items":"center"}],["items-baseline",{"align-items":"baseline"}],["items-stretch",{"align-items":"stretch"}],["self-auto",{"align-self":"auto"}],["self-start",{"align-self":"flex-start"}],["self-end",{"align-self":"flex-end"}],["self-center",{"align-self":"center"}],["self-stretch",{"align-self":"stretch"}],["self-baseline",{"align-self":"baseline"}]],wr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function ee(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function Ot([,t,e],r){let o=ee(e,r);if(o!=null&&t in qt)return qt[t].map(n=>[n.slice(1),o])}var Sr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:ee(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,Ot],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ot],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ot],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ot],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:ee(e,r)})]],Cr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Rr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],zr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var $="var(--un-empty,/*!*/ /*!*/)",Er=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],Tr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],jr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],Ar=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Vr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Or=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Pr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Mr=[[/^content-(.+)$/,([,t])=>{let e=c.bracket.cssvar(t);return{content:e==null?`"${t}"`:e}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Fr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Ur=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],_r=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Wr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Br=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Nr={"--un-ring-inset":$,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)","--un-shadow":"0 0 #0000"},Lr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow, 0 0 #0000)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Dr={"--un-ring-offset-shadow":"0 0 #0000","--un-ring-shadow":"0 0 #0000","--un-shadow-inset":$,"--un-shadow":"0 0 #0000"},Ir=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return{"--un-shadow":Q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,C("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var oi={h:"height",w:"width",inline:"inline-size",block:"block-size"};function bt(t,e){return`${t||""}${oi[e]}`}function Kr(t,e,r,o){var i;let n=bt(t,e).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),a=(i=r[n])==null?void 0:i[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return c.bracket.cssvar.auto.fraction.rem(o)}var Hr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[bt(t,e)]:Kr(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[bt(t,e)]:Kr(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],o)=>{var n;return{[bt(t,e)]:(n=Ze(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],o)=>{var n;return{[bt(t,e)]:(n=tt(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ni(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var qr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ni(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Xr=[[/^pa?()-?(-?.+)$/,R("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,R("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,R("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,R("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Yr=[[/^ma?()-?(-?.+)$/,R("margin")],[/^m-?xy()()$/,R("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,R("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,R("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,R("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,R("margin")]];var ai=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),ii=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Qr={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0,"--un-transform":ai},to=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=j[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(j).join("|")})`,`origin-(${Object.keys(j).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?j[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Gr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Gr],[/^(?:transform-)?rotate-()(.+)$/,Jr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Jr],[/^(?:transform-)?skew-([xy])-(.+)$/,si],[/^(?:transform-)?scale-()(.+)$/,Zr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Zr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:"var(--un-transform)"}],["transform-cpu",{transform:"var(--un-transform)"}],["transform-gpu",{transform:ii}],["transform-none",{transform:"none"}]];function Gr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[...Yt[t].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]}function Zr([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[...Yt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]}function Jr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}}function si([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}}var ci={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},eo=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ci[t];if(r)return{[r]:c.cssvar(e)}}]],ro=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var oo=[[/^(where|\?)$/,(t,{constructCSS:e,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
|
|
3
3
|
${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var no=["solid","double","dotted","dashed","wavy",...W],ao=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"text-decoration-thickness":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(t,e)=>{let r=C("text-decoration-color","line")(t,e);if(r)return y({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":c.bracket.percent(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"text-underline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.auto.bracket.cssvar.px(t)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],...no.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...no.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var io=[[/^fill-(.+)$/,C("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":c.bracket.percent(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"stroke-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.fraction.px.number(t)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":c.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"stroke-dashoffset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px.numberWithUnit(t)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,C("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];var re={},so=t=>{var n;let e=((n=t.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",r=t.slice(e.length),o=parseFloat(e)-.1;return Number.isNaN(o)?t:`${o}${r}`},co={name:"breakpoints",match(t,e){var o;let r=Object.entries((o=tt(e))!=null?o:{}).map(([n,a],i)=>[n,a,i]);for(let[n,a,i]of r){re[n]||(re[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let s=t.match(re[n]);if(!s)continue;let[,l]=s,p=t.slice(l.length);if(p==="container")continue;let g=l.startsWith("lt-"),u=l.startsWith("at-"),d=1e3;return g?(d-=i+1,{matcher:p,parent:[`@media (max-width: ${so(a)})`,d]}):(d+=i+1,u&&i<r.length-1?{matcher:p,parent:[`@media (min-width: ${a}) and (max-width: ${so(r[i+1][1])})`,d]}:{matcher:p,parent:[`@media (min-width: ${a})`,d]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var q=(t,e,r)=>{let o=t?new RegExp(`^${e}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${e}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${e}`,match:n=>{let a=n.match(o);if(a)return{matcher:n.slice(a[0].length),selector:i=>{var s;return r.replace("&&-s",i).replace("&&-c",(s=a[1])!=null?s:"*")}}}}},lo=[q(!1,"all","&&-s &&-c"),q(!1,"children","&&-s>&&-c"),q(!1,"next","&&-s+&&-c"),q(!1,"sibling","&&-s+&&-c"),q(!1,"siblings","&&-s~&&-c"),q(!0,"group","&&-c &&-s"),q(!0,"parent","&&-c>&&-s"),q(!0,"previous","&&-c+&&-s"),q(!0,"peer","&&-c~&&-s")];var po=F("print","@media print"),uo={name:"media",match(t,{theme:e}){var o,n;let r=t.match(/^media-([_\d\w]+)[:-]/);if(r){let a=(n=(o=e.media)==null?void 0:o[r[1]])!=null?n:`(--${r[1]})`;return{matcher:t.slice(r[0].length),parent:`@media ${a}`}}}};var fo=(t={})=>(t==null?void 0:t.dark)==="class"?[D("dark",e=>`.dark $$ ${e}`),D("light",e=>`.light $$ ${e}`)]:[F("dark","@media (prefers-color-scheme: dark)"),F("light","@media (prefers-color-scheme: light)")];var mo=[D("rtl",t=>`[dir="rtl"] $$ ${t}`),D("ltr",t=>`[dir="ltr"] $$ ${t}`)];var bo={name:"selector",match(t){let e=t.match(/^selector-\[(.+?)\][:-]/);if(e)return{matcher:t.slice(e[0].length),selector:()=>e[1]}}},ho={name:"layer",match(t){let e=t.match(/^layer-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),parent:`@layer ${e[1]}`}}},xo={name:"uno-layer",match(t){let e=t.match(/^uno-layer-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),layer:e[1]}}},yo={name:"scope",match(t){let e=t.match(/^scope-([_\d\w]+)[:-]/);if(e)return{matcher:t.slice(e[0].length),selector:r=>`.${e[1]} $$ ${r}`}}},vo={name:"important",match(t){let e=t.match(/^(important[:-]|!)/);if(e)return{matcher:t.slice(e[0].length),body:r=>(r.forEach(o=>{o[1]&&(o[1]+=" !important")}),r)}},autocomplete:"(important)"},go=/[0-9.]+(?:[a-z]+|%)?/,$o={name:"negative",match(t){if(!(!t.startsWith("-")||!t.match(/\d|-px|-full/)))return{matcher:t.slice(1),body:e=>{if(e.find(o=>o[0]===Ge))return;let r=!1;if(e.forEach(o=>{var a;let n=(a=o[1])==null?void 0:a.toString();!n||n==="0"||go.test(n)&&(o[1]=n.replace(go,i=>`-${i}`),r=!0)}),r)return e}}}};var xt=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"hover","active","focus-visible","focus-within","focus","autofill","enabled","disabled","read-only","read-write","placeholder-shown","default","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),yt=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),li=["not","is","where","has"],oe=Object.entries(xt).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).join("|"),ne=Object.entries(yt).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).join("|"),ht=li.join("|"),ko=t=>{if(t==="active")return 1},Pt=(t,e,r)=>{let o=new RegExp(`^${ot(e)}:`),n=new RegExp(`^${t}-((?:(${ht})-)?(${oe}))[:-]`),a=new RegExp(`^${t}-((?:(${ht})-)?(${ne}))[:]`);return{name:`pseudo:${t}`,match(i){let s=i.match(n)||i.match(a);if(s){let l=xt[s[3]]||yt[s[3]]||`:${s[3]}`;return s[2]&&(l=`:${s[2]}(${l})`),{matcher:i.slice(s[0].length),selector:p=>o.test(p)?p.replace(o,`${e}${l}:`):`${e}${l}${r}${p}`,sort:ko(s[3])}}}}},wo=Object.entries(xt).map(([t])=>t).join("|"),pi=Object.entries(yt).map(([t])=>t).join("|"),ui=new RegExp(`^(${wo})[:-]`),fi=new RegExp(`^(${pi})[:]`),So={name:"pseudo",match:t=>{let e=t.match(ui)||t.match(fi);if(e){let r=xt[e[1]]||yt[e[1]]||`:${e[1]}`;return{matcher:t.slice(e[0].length),selector:o=>`${o}${r}`,sort:ko(e[1])}}},multiPass:!0,autocomplete:`(${wo}):`},mi=new RegExp(`^(${ht})-(${oe})[:-]`),di=new RegExp(`^(${ht})-(${ne})[:]`),Co={match:t=>{let e=t.match(mi)||t.match(di);if(e){let r=e[1],o=xt[e[2]]||yt[e[2]]||`:${e[2]}`;return{matcher:t.slice(e[0].length),selector:n=>`${n}:${r}(${o})`}}},multiPass:!0,autocomplete:`(${ht})-(${oe}|${ne}):`},Ro=(t={})=>{let e=!!(t!=null&&t.attributifyPseudo);return[z(y({},Pt("group",e?'[group=""]':".group"," ")),{multiPass:!0}),z(y({},Pt("peer",e?'[peer=""]':".peer","~")),{multiPass:!0}),z(y({},Pt("parent",e?'[parent=""]':".parent",">")),{multiPass:!0}),z(y({},Pt("previous",e?'[previous=""]':".previous","+")),{multiPass:!0})]},gi=/(part-\[(.+)]:)(.+)/,zo={match:t=>{let e=t.match(gi);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:o=>`${o}::${r}`}}},multiPass:!0};var Eo=t=>[ho,bo,xo,$o,vo,po,uo,co,...lo,So,Co,...Ro(t),zo,...fo(t),...mo,yo];var To=[[/^(?:animate-)?keyframes-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o)return`@keyframes ${t}${o}
|
|
4
4
|
${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,i,s,l,p,g,u,d,f;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(s=(i=e.animation)==null?void 0:i.durations)==null?void 0:s[t])!=null?l:"1s",k=(u=(g=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:g[t])!=null?u:"linear",T=(f=(d=e.animation)==null?void 0:d.properties)==null?void 0:f[t];return`@keyframes ${t}${o}
|
package/core.global.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",o=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&o===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,o])=>t(o,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={preflights:-100,shortcuts:-1,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.37.
|
|
1
|
+
(()=>{var St=Object.defineProperty,xt=Object.defineProperties;var Ct=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,Q=Object.prototype.propertyIsEnumerable;var Z=(r,t,e)=>t in r?St(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,T=(r,t)=>{for(var e in t||(t={}))J.call(t,e)&&Z(r,e,t[e]);if(k)for(var e of k(t))Q.call(t,e)&&Z(r,e,t[e]);return r},O=(r,t)=>xt(r,Ct(t));var X=(r,t)=>{var e={};for(var n in r)J.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&Q.call(r,n)&&(e[n]=r[n]);return e};function bt(r){let t=r.length,e=-1,n,s="",o=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){s+="\uFFFD";continue}if(n===44){s+="\\,";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&o===45){s+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){s+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){s+=r.charAt(e);continue}s+=`\\${r.charAt(e)}`}return s}var K=bt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function Y(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Et(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let s=n-1;s>=0;s--)if(r[s][0]===t&&r[s][1]===e)return!1;return!0})}function L(r){return r==null?"":Et(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function D(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let s=T({},e);return D(e)&&D(n)&&Object.keys(n).forEach(o=>{D(e[o])&&D(n[o])||Array.isArray(e[o])&&Array.isArray(n[o])?s[o]=F(e[o],n[o]):Object.assign(s,{[o]:n[o]})}),s}function V(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:V(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?V(n):n;return e}return r}function tt(r){return typeof r[0]=="string"}function et(r){return typeof r[0]=="string"}function _(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var vt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function rt(r=""){return vt.test(r)}function nt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function st(r){return r!=null}function H(){}var z=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.has(e)||s.set(e,n),s.get(e)}set(t,e,n){let s=this._map.get(t);return s||(s=new Map,this._map.set(t,s)),s.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([s,o])=>t(o,e,s)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ot(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,s,o,a)=>a.split(/\s/g).map(l=>l==="~"?s:l.replace(/^(!?)(.*)/,`$1${s}${o}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var at=new Set;function ct(r){at.has(r)||(console.warn("[unocss]",r),at.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(rt),I={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function lt(){return{events:{},emit(r,...t){(this.events[r]||[]).forEach(e=>e(...t))},on(r,t){return(this.events[r]=this.events[r]||[]).push(t),()=>this.events[r]=(this.events[r]||[]).filter(e=>e!==t)}}}function wt(r){return _(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={preflights:-100,shortcuts:-1,default:0};function N(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(_),s=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],o=Object.assign(Ut,...n.map(f=>f.layers),r.layers);function a(f){return j([...s.flatMap(d=>_(d[f]||[])),..._(e[f]||[])])}let l=a("extractors");l.length||l.push(I),l.sort((f,d)=>(f.order||0)-(d.order||0));let i=a("rules"),c={},x=i.length;i.forEach((f,d)=>{tt(f)&&(c[f[0]]=[d,f[1],f[2],f],delete i[d])});let g=V([...s.map(f=>f.theme||{}),e.theme||{}].reduce((f,d)=>F(f,d),{}));a("extendTheme").forEach(f=>f(g));let C={templates:j(s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.templates)}).flat()),extractors:s.map(f=>{var d;return _((d=f.autocomplete)==null?void 0:d.extractors)}).flat().sort((f,d)=>(f.order||0)-(d.order||0))};return O(T({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},e),{presets:s,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:o,theme:g,rulesSize:x,rulesDynamic:i,rulesStaticMap:c,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:C,variants:a("variants").map(nt),shortcuts:wt(a("shortcuts")),extractors:l,safelist:a("safelist")})}var ut="0.37.2";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=N(t,e),this.events.emit("config",this.config)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=lt();setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=N(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,e,n=new Set){let s={get original(){return t},code:t,id:e};for(let o of this.config.extractors){let a=await o.extract(s);a==null||a.forEach(l=>n.add(l))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...s)=>this.constructCustomCSS(n,...s),variantMatch:e};return n}async parseToken(t,e){var i;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let s=t;for(let c of this.config.preprocess)s=c(t);if(this.isBlocked(s)){this.blocked.add(t),this._cache.set(n,null);return}let o=this.matchVariants(t,s);if(!o||this.isBlocked(o[1])){this.blocked.add(t),this._cache.set(n,null);return}let a=this.makeContext(t,[e||o[0],o[1],o[2],o[3]]);this.config.details&&(a.variants=[...o[3]]);let l=this.expandShortcut(a.currentSelector,a);if(l){let c=await this.stringifyShortcuts(a.variantMatch,a,l[0],l[1]);if(c!=null&&c.length)return this._cache.set(n,c),c}else{let c=(i=await this.parseUtil(a.variantMatch,a))==null?void 0:i.map(x=>this.stringifyUtil(x,a)).filter(st);if(c!=null&&c.length)return this._cache.set(n,c),c}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,preflights:s=!0,safelist:o=!0,minify:a=!1}={}){let l=typeof t=="string"?await this.applyExtractors(t,e):t;o&&this.config.safelist.forEach(p=>l.add(p));let i=a?"":`
|
|
2
2
|
`,c=new Set(["default"]),x=new Set,g=new Map;await Promise.all(Array.from(l).map(async p=>{var m;if(x.has(p))return;let h=await this.parseToken(p);if(h!=null){x.add(p);for(let S of h){let b=S[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(S),(m=S[4])!=null&&m.layer&&c.add(S[4].layer)}}})),s&&this.config.preflights.forEach(p=>{p.layer&&c.add(p.layer)});let C={},f=this.config.sortLayers(Array.from(c).sort((p,h)=>{var m,S;return((m=this.config.layers[p])!=null?m:0)-((S=this.config.layers[h])!=null?S:0)||p.localeCompare(h)})),d={};if(s){let p={generator:this,theme:this.config.theme};d=Object.fromEntries(await Promise.all(f.map(async h=>{let S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===h).map(async b=>await b.getCSS(p)))).filter(Boolean).join(i);return[h,S]})))}let R=p=>{if(C[p])return C[p];let h=Array.from(g).sort((m,S)=>{var b,E,U;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((E=this.parentOrders.get(S[0]))!=null?E:0)||((U=m[0])==null?void 0:U.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,E=S.filter(u=>{var y;return(((y=u[4])==null?void 0:y.layer)||"default")===p}).sort((u,y)=>{var v,$,w;return u[0]-y[0]||(((v=u[4])==null?void 0:v.sort)||0)-((($=y[4])==null?void 0:$.sort)||0)||((w=u[1])==null?void 0:w.localeCompare(y[1]||""))||0}).map(u=>{var y;return[u[1]?Mt(u[1],n):u[1],u[2],!!((y=u[4])!=null&&y.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!E.length)return;let U=E.reverse().map(([u,y,v],$)=>{if(!v&&u&&this.config.mergeSelectors)for(let w=$+1;w<b;w++){let A=E[w];if(A&&!A[2]&&A[0]&&A[1]===y)return A[0].push(...u),null}return u?`${[...new Set(u)].join(`,${i}`)}{${y}}`:y}).filter(Boolean).reverse().join(i);return m?`${m}{${i}${U}${i}}`:U}).filter(Boolean).join(i);return s&&(h=[d[p],h].filter(Boolean).join(i)),C[p]=!a&&h?`/* layer: ${p} */${i}${h}`:h},M=(p=f,h)=>p.filter(m=>!(h!=null&&h.includes(m))).map(m=>R(m)||"").filter(Boolean).join(i);return{get css(){return M()},layers:f,getLayers:M,getLayer:R,matched:x}}matchVariants(t,e){let n=new Set,s=[],o=e||t,a=!1,l={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let i of this.config.variants){if(!i.multiPass&&n.has(i))continue;let c=i.match(o,l);if(!!c){typeof c=="string"&&(c={matcher:c}),o=c.matcher,Array.isArray(c.parent)&&this.parentOrders.set(c.parent[0],c.parent[1]),s.unshift(c),n.add(i),a=!0;break}}if(!a)break;if(s.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,o,s,n]}applyVariants(t,e=t[4],n=t[1]){let s=[...e].sort((i,c)=>(i.order||0)-(c.order||0)),o=s.reduce((i,c)=>{var x;return((x=c.body)==null?void 0:x.call(c,i))||i},t[2]),a=s.reduce((i,c)=>{var x;return((x=c.selector)==null?void 0:x.call(c,i,o))||i},_t(n)),l={selector:Tt(a),entries:o,parent:s.reduce((i,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||i,void 0),layer:s.reduce((i,c)=>c.layer||i,void 0),sort:s.reduce((i,c)=>c.sort||i,void 0)};for(let i of this.config.postprocess)i(l);return l}constructCustomCSS(t,e,n){e=P(e);let{selector:s,entries:o,parent:a}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),l=`${s}{${L(o)}}`;return a?`${a}{${l}}`:l}async parseUtil(t,e,n=!1){var g,C;let[s,o,a]=typeof t=="string"?this.matchVariants(t):t,l=this.config.details?f=>{var d;e.rules=(d=e.rules)!=null?d:[],e.rules.push(f)}:H,i=this.config.rulesStaticMap[o];if(i&&i[1]&&(n||!((g=i[2])!=null&&g.internal)))return l(i[3]),[[i[0],s,P(i[1]),i[2],a]];e.variantHandlers=a;let{rulesDynamic:c,rulesSize:x}=this.config;for(let f=x-1;f>=0;f--){let d=c[f];if(!d||((C=d[2])==null?void 0:C.internal)&&!n)continue;let[R,M,p]=d,h=o.match(R);if(!h)continue;let m=await M(h,e);if(!m)continue;if(l(d),typeof m=="string")return[[f,m,p]];let S=Y(m).filter(b=>b.length);if(S.length)return S.map(b=>[f,s,b,p,a])}}stringifyUtil(t,e){var f;if(!t)return;if(B(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?e:void 0];let{selector:n,entries:s,parent:o,layer:a,sort:l}=this.applyVariants(t),i=L(s);if(!i)return;let d=(f=t[3])!=null?f:{},{layer:c,sort:x}=d,g=X(d,["layer","sort"]),C=O(T({},g),{layer:a!=null?a:c,sort:l!=null?l:x});return[t[0],n,i,o,C,this.config.details?e:void 0]}expandShortcut(t,e,n=3){if(n===0)return;let s=this.config.details?l=>{var i;e.shortcuts=(i=e.shortcuts)!=null?i:[],e.shortcuts.push(l)}:H,o,a;for(let l of this.config.shortcuts)if(et(l)){if(l[0]===t){o=o||l[2],a=l[1],s(l);break}}else{let i=t.match(l[0]);if(i&&(a=l[1](i,e)),a){o=o||l[2],s(l);break}}if(typeof a=="string"&&(a=ot(a).split(/\s+/g)),!!a)return[a.flatMap(l=>{var i;return((i=this.expandShortcut(l,e,n-1))==null?void 0:i[0])||[l]}).filter(l=>l!==""),o]}async stringifyShortcuts(t,e,n,s={layer:this.config.shortcutsLayer}){var x;let o=new z,a=(await Promise.all(j(n).map(async g=>{let C=await this.parseUtil(g,e,!0);return C||ct(`unmatched utility "${g}" in shortcut "${t[1]}"`),C||[]}))).flat(1).filter(Boolean).sort((g,C)=>g[0]-C[0]),[l,,i]=t,c=[];for(let g of a){if(B(g)){c.push([g[0],void 0,g[1],void 0,g[2],e]);continue}let{selector:C,entries:f,parent:d,sort:R}=this.applyVariants(g,[...g[4],...i],l);o.getFallback(C,d,[[],g[0]])[0].push([f,!!((x=g[3])!=null&&x.noMerge),R!=null?R:0])}return c.concat(o.map(([g,C],f,d)=>{let R=(p,h,m)=>{let S=Math.max(...m.map(E=>E[1])),b=m.map(E=>E[0]);return(p?[b.flat(1)]:b).map(E=>{let U=L(E);if(U)return[C,f,U,d,O(T({},s),{noMerge:h,sort:S}),e]})};return[[g.filter(([,p])=>p).map(([p,,h])=>[p,h]),!0],[g.filter(([,p])=>!p).map(([p,,h])=>[p,h]),!1]].map(([p,h])=>[...R(!1,h,p.filter(([m])=>m.some(S=>S[0]===G))),...R(!0,h,p.filter(([m])=>m.every(S=>S[0]!==G)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function pt(r,t){return new q(r,t)}var dt=/ \$\$ /,$t=r=>r.match(dt);function Mt(r,t){return $t(r)?r.replace(dt,t?` ${t} `:" "):t?`${t} ${r}`:r}function Tt(r){let t=r.match(/::[\w-]+/g);return t&&(t.forEach(e=>r=r.replace(e,"")),r+=t.join("")),r}var ft=/^\[(.+?)(~?=)"(.*)"\]$/;function _t(r){return ft.test(r)?r.replace(ft,(t,e,n,s)=>`[${K(e)}${n}"${K(s)}"]`):`.${K(r)}`}var Ot=r=>r.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),ht=r=>r.charAt(0).toUpperCase()+r.slice(1),gt=r=>r.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),mt=["Webkit","Moz","ms"];function yt(r){let t={};function e(n){let s=t[n];if(s)return s;let o=Ot(n);if(o!=="filter"&&o in r)return t[n]=gt(o);o=ht(o);for(let a=0;a<mt.length;a++){let l=`${mt[a]}${o}`;if(l in r)return t[n]=gt(ht(l))}return n}return({entries:n})=>n.forEach(s=>{s[0].startsWith("--")||(s[0]=e(s[0]))})}function W(r={}){var E,U;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,n=Object.assign(r.defaults||{},e);if(e!=null&&e.autoPrefix){let u=n.postprocess;u||(u=[]),Array.isArray(u)||(u=[u]),u.unshift(yt(document.createElement("div").style)),n.postprocess=u}(E=e==null?void 0:e.configResolved)==null||E.call(e,t,n);let s,o=!0,a,l=pt(t,n),i=new Set,c,x=[],g=()=>new Promise(u=>{x.push(u),c!=null&&clearTimeout(c),c=setTimeout(()=>f().then(()=>{let y=x;x=[],y.forEach(v=>v())}),0)});function C(u=document.body){if(u.nodeType!==1)return;let y=u;y.hasAttribute("un-cloak")&&y.removeAttribute("un-cloak"),y.querySelectorAll("[un-cloak]").forEach(v=>{v.removeAttribute("un-cloak")})}async function f(){let u=await l.generate(i);s||(s=document.createElement("style"),document.documentElement.prepend(s)),s.innerHTML=u.css,i=u.matched}async function d(u){let y=i.size;await l.applyExtractors(u,void 0,i),y!==i.size&&await g()}async function R(){let u=document.body&&document.body.outerHTML;u&&(await d(u),C())}let M=new MutationObserver(u=>{o||u.forEach(async y=>{if(y.target.nodeType!==1)return;let v=y.target;if(v!==s)if(y.type==="childList")y.addedNodes.forEach(async $=>{if($.nodeType!==1)return;let w=$;a&&!a(w)||(await d(w.outerHTML),C(w))});else{if(a&&!a(v))return;if(y.attributeName!=="un-cloak"){let $=Array.from(v.attributes).map(A=>A.value?`${A.name}="${A.value}"`:A.name).join(" "),w=`<${v.tagName.toLowerCase()} ${$}>`;await d(w)}v.hasAttribute("un-cloak")&&v.removeAttribute("un-cloak")}})}),p=!1;function h(){if(p)return;let u=document.documentElement||document.body;!u||(M.observe(u,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function m(){R(),h()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",m):m()}let b=window.__unocss_runtime=window.__unocss_runtime={version:l.version,uno:l,async extract(u){typeof u!="string"&&(u.forEach(y=>i.add(y)),u=""),await d(u)},extractAll:R,inspect(u){a=u},toggleObserver(u){u===void 0?o=!o:o=!!u,!p&&!o&&S()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,b))!==!1&&(o=!1,S())}W();})();
|