@unocss/runtime 0.35.1 → 0.35.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.
@@ -1,4 +1,4 @@
1
- (()=>{var me=Object.defineProperty,Vn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var fe=(t,e,r)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))de.call(e,r)&&fe(t,r,e[r]);if(xt)for(var r of xt(e))ge.call(e,r)&&fe(t,r,e[r]);return t},z=(t,e)=>Vn(t,An(e));var be=(t,e)=>{var r={};for(var o in t)de.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xt)for(var o of xt(t))e.indexOf(o)<0&&ge.call(t,o)&&(r[o]=t[o]);return r};var On=(t,e)=>{for(var r in e)me(t,r,{get:e[r],enumerable:!0})};var Ot=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(t=""){let e=Mn(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)&&!(Ot.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function P(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}`,Ot.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Mn(t){if(!t)return;let e=_n(t);if(e!=null||(e=Pn(t),e!=null)||(e=Un(t),e!=null)||(e=Nn(t),e!=null)||(e=Ln(t),e!=null))return e}function _n(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 Pn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Un(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=et(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 Fn=new RegExp(`^(${Ot.join("|")})\\((.+)\\)$`,"i");function Nn(t){let e=t.match(Fn);if(!e)return;let[,r,o]=e,n=he(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Ln(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=he(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function he(t){let e=et(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=et(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 Dn(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 et(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=Dn(t,e);if(!a)return;let[i,c]=a;o.push(i),t=c}if(o.length>0)return o}var A={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"]},Mt=z(w({},A),{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"]}),_t={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"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},xe=["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"],V=Object.assign({},...xe.map(t=>({[t.replace(/ /,"-")]:t})),...xe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function rt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ut(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 yt=Ut;function nt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ye(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>nt(e)):[t]:[nt(t)]}function Wn(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 $t(t){return t==null?"":Wn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ft(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=w({},r);return vt(r)&&vt(o)&&Object.keys(o).forEach(a=>{vt(r[a])&&vt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ft(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ot(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ot(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}return t}function ve(t){return typeof t[0]=="string"}function $e(t){return typeof t[0]=="string"}function _(t=[]){return Array.isArray(t)?t:[t]}function at(t){return Array.from(new Set(t))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Hn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function ke(t){return t.match(Bn)}function it(t=""){return Hn.test(t)}function we(t){return typeof t=="function"?{match:t}:t}function Nt(t){return t.length===3}function Se(t){return t!=null}function Lt(){}var kt=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 Ce=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Re(t){Ce.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ce,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var ze=new Set;function Te(t){ze.has(t)||(console.warn("[unocss]",t),ze.add(t))}function Ee(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 c=t[i](o);if(c!=null)return c}};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 In=t=>t.split(/[\s'"`;>=]+/g).filter(it),st={name:"split",order:0,extract({code:t}){return new Set(In(t))}};function je(){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 Kn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Gn={shortcuts:-1,default:0};function Dt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Gn,...o.map(u=>u.layers),t.layers);function i(u){return at([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(st),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{ve(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ot([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Ft(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:at(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return z(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(we),shortcuts:Kn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Ve="0.35.1";var Wt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Dt(e,r),this.events.emit("config",this.config)}version=Ve;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=je();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Dt(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(c=>o.add(c))}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 c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[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(Se);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
1
+ (()=>{var me=Object.defineProperty,Vn=Object.defineProperties;var An=Object.getOwnPropertyDescriptors;var xt=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable;var fe=(t,e,r)=>e in t?me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||(e={}))de.call(e,r)&&fe(t,r,e[r]);if(xt)for(var r of xt(e))ge.call(e,r)&&fe(t,r,e[r]);return t},z=(t,e)=>Vn(t,An(e));var be=(t,e)=>{var r={};for(var o in t)de.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&xt)for(var o of xt(t))e.indexOf(o)<0&&ge.call(t,o)&&(r[o]=t[o]);return r};var On=(t,e)=>{for(var r in e)me(t,r,{get:e[r],enumerable:!0})};var Ot=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(t=""){let e=Mn(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)&&!(Ot.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function P(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}`,Ot.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Mn(t){if(!t)return;let e=_n(t);if(e!=null||(e=Pn(t),e!=null)||(e=Un(t),e!=null)||(e=Nn(t),e!=null)||(e=Ln(t),e!=null))return e}function _n(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 Pn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Un(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=et(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 Fn=new RegExp(`^(${Ot.join("|")})\\((.+)\\)$`,"i");function Nn(t){let e=t.match(Fn);if(!e)return;let[,r,o]=e,n=he(`${r} ${o}`);if(n){let{alpha:a,components:[i,...c]}=n;return{type:i,components:c,alpha:a}}}function Ln(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=he(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function he(t){let e=et(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=et(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 Dn(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 et(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=Dn(t,e);if(!a)return;let[i,c]=a;o.push(i),t=c}if(o.length>0)return o}var A={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"]},Mt=z(w({},A),{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"]}),_t={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"]},Pt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},xe=["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"],V=Object.assign({},...xe.map(t=>({[t.replace(/ /,"-")]:t})),...xe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function rt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ut(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 yt=Ut;function nt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ye(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>nt(e)):[t]:[nt(t)]}function Wn(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 $t(t){return t==null?"":Wn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function vt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ft(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=w({},r);return vt(r)&&vt(o)&&Object.keys(o).forEach(a=>{vt(r[a])&&vt(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ft(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function ot(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:ot(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?ot(o):o;return r}return t}function ve(t){return typeof t[0]=="string"}function $e(t){return typeof t[0]=="string"}function _(t=[]){return Array.isArray(t)?t:[t]}function at(t){return Array.from(new Set(t))}var Bn=/^\[(.+?)~?="(.*)"\]$/;var Hn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,j="$$shortcut-no-merge";function ke(t){return t.match(Bn)}function it(t=""){return Hn.test(t)}function we(t){return typeof t=="function"?{match:t}:t}function Nt(t){return t.length===3}function Se(t){return t!=null}function Lt(){}var kt=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 Ce=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Re(t){Ce.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(Ce,(o,n,a,i)=>i.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var ze=new Set;function Te(t){ze.has(t)||(console.warn("[unocss]",t),ze.add(t))}function Ee(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 c=t[i](o);if(c!=null)return c}};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 In=t=>t.split(/[\s'"`;>=]+/g).filter(it),st={name:"split",order:0,extract({code:t}){return new Set(In(t))}};function je(){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 Kn(t){return _(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Gn={shortcuts:-1,default:0};function Dt(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(_),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Gn,...o.map(u=>u.layers),t.layers);function i(u){return at([...n.flatMap(h=>_(h[u]||[])),..._(r[u]||[])])}let c=i("extractors");c.length||c.push(st),c.sort((u,h)=>(u.order||0)-(h.order||0));let l=i("rules"),p={},g=l.length;l.forEach((u,h)=>{ve(u)&&(p[u[0]]=[h,u[1],u[2],u],delete l[h])});let f=ot([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,h)=>Ft(u,h),{}));i("extendTheme").forEach(u=>u(f));let d={templates:at(n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(u=>{var h;return _((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return z(w({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:g,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:d,variants:i("variants").map(we),shortcuts:Kn(i("shortcuts")),extractors:c,safelist:i("safelist")})}var Ve="0.35.2";var Wt=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Dt(e,r),this.events.emit("config",this.config)}version=Ve;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=je();setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Dt(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(c=>o.add(c))}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 c=this.expandShortcut(i.currentSelector,i);if(c){let p=await this.stringifyShortcuts(i.variantMatch,i,c[0],c[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(Se);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(b=>c.add(b));let l=i?"":`
2
2
  `,p=new Set(["default"]),g=new Set,f=new Map;await Promise.all(Array.from(c).map(async b=>{var y;if(g.has(b))return;let x=await this.parseToken(b);if(x!=null){g.add(b);for(let S of x){let T=S[3]||"";f.has(T)||f.set(T,[]),f.get(T).push(S),(y=S[4])!=null&&y.layer&&p.add(S[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let d={},u=this.config.sortLayers(Array.from(p).sort((b,x)=>{var y,S;return((y=this.config.layers[b])!=null?y: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(u.map(async x=>{let S=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===x).map(async T=>await T.getCSS(b)))).filter(Boolean).join(l);return[x,S]})))}let $=b=>{if(d[b])return d[b];let x=Array.from(f).sort((y,S)=>{var T,O,L;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((O=this.parentOrders.get(S[0]))!=null?O:0)||((L=y[0])==null?void 0:L.localeCompare(S[0]||""))||0}).map(([y,S])=>{let T=S.length,O=S.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===b}).sort((m,k)=>{var M,H,F;return m[0]-k[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((F=m[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?Yn(m[1],o):m[1],m[2],!!((k=m[4])!=null&&k.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!O.length)return;let L=O.reverse().map(([m,k,M],H)=>{if(!M&&m&&this.config.mergeSelectors)for(let F=H+1;F<T;F++){let W=O[F];if(W&&!W[2]&&W[0]&&W[1]===k)return W[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${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},E=(b=u,x)=>b.filter(y=>!(x!=null&&x.includes(y))).map(y=>$(y)||"").filter(Boolean).join(l);return{get css(){return E()},layers:u,getLayers:E,getLayer:$,matched:g}}matchVariants(e,r){let o=new Set,n=[],a=r||e,i=!1,c={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,c);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},Jn(o)),c={selector:Zn(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(c);return c}constructCustomCSS(e,r,o){r=nt(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),c=`${n}{${$t(a)}}`;return i?`${i}{${c}}`:c}async parseUtil(e,r,o=!1){var f,d;let[n,a,i]=typeof e=="string"?this.matchVariants(e):e,c=this.config.details?u=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(u)}:Lt,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((f=l[2])!=null&&f.internal)))return c(l[3]),[[l[0],n,nt(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:g}=this.config;for(let u=g-1;u>=0;u--){let h=p[u];if(!h||((d=h[2])==null?void 0:d.internal)&&!o)continue;let[$,E,b]=h,x=a.match($);if(!x)continue;let y=await E(x,r);if(!y)continue;if(c(h),typeof y=="string")return[[u,y,b]];let S=ye(y).filter(T=>T.length);if(S.length)return S.map(T=>[u,n,T,b,i])}}stringifyUtil(e,r){var u;if(!e)return;if(Nt(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:c}=this.applyVariants(e),l=$t(n);if(!l)return;let h=(u=e[3])!=null?u:{},{layer:p,sort:g}=h,f=be(h,["layer","sort"]),d=z(w({},f),{layer:i!=null?i:p,sort:c!=null?c: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?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:Lt,a,i;for(let c of this.config.shortcuts)if($e(c)){if(c[0]===e){a=a||c[2],i=c[1],n(c);break}}else{let l=e.match(c[0]);if(l&&(i=c[1](l,r)),i){a=a||c[2],n(c);break}}if(typeof i=="string"&&(i=Re(i).split(/\s+/g)),!!i)return[i.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var g;let a=new kt,i=(await Promise.all(at(o).map(async f=>{let d=await this.parseUtil(f,r,!0);return d||Te(`unmatched utility "${f}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((f,d)=>f[0]-d[0]),[c,,l]=e,p=[];for(let f of i){if(Nt(f)){p.push([f[0],void 0,f[1],void 0,f[2],r]);continue}let{selector:d,entries:u,parent:h,sort:$}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(d,h,[[],f[0]])[0].push([u,!!((g=f[3])!=null&&g.noMerge),$!=null?$:0])}return p.concat(a.map(([f,d],u,h)=>{let $=(b,x,y)=>{let S=Math.max(...y.map(O=>O[1])),T=y.map(O=>O[0]);return(b?[T.flat(1)]:T).map(O=>{let L=$t(O);if(L)return[d,u,L,h,z(w({},n),{noMerge:x,sort:S}),r]})};return[[f.filter(([,b])=>b).map(([b,,x])=>[b,x]),!0],[f.filter(([,b])=>!b).map(([b,,x])=>[b,x]),!1]].map(([b,x])=>[...$(!1,x,b.filter(([y])=>y.some(S=>S[0]===j))),...$(!0,x,b.filter(([y])=>y.every(S=>S[0]!==j)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Oe(t,e){return new Wt(t,e)}var Me=/ \$\$ /,Xn=t=>t.match(Me);function Yn(t,e){return Xn(t)?t.replace(Me,e?` ${e} `:" "):e?`${e} ${t}`:t}function Zn(t){let e=t.match(/::[\w-]+/g);return e&&(e.forEach(r=>t=t.replace(r,"")),t+=e.join("")),t}var Ae=/^\[(.+?)(~?=)"(.*)"\]$/;function Jn(t){return Ae.test(t)?t.replace(Ae,(e,r,o,n)=>`[${yt(r)}${o}"${yt(n)}"]`):`.${yt(t)}`}var Ht={};On(Ht,{auto:()=>ra,bracket:()=>ca,bracketOfColor:()=>la,bracketOfLength:()=>pa,bracketOfPosition:()=>ua,cssvar:()=>fa,degree:()=>da,fraction:()=>sa,global:()=>ga,number:()=>aa,numberWithUnit:()=>ea,percent:()=>ia,properties:()=>ba,px:()=>na,rem:()=>oa,time:()=>ma});var Qn=["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"],Bt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ta=/^(-?[0-9.]+)$/i,_e=/^(px)$/i;function N(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function ea(t){let e=t.match(Bt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function ra(t){if(t==="auto"||t==="a")return"auto"}function oa(t){if(t.match(_e))return`1${t}`;let e=t.match(Bt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function na(t){if(t.match(_e))return`1${t}`;let e=t.match(Bt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function aa(t){if(!ta.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return N(e)}function ia(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${N(e/100)}`}function sa(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}function wt(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length|position):/i);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 ca(t){return wt(t)}function la(t){return wt(t,"color")}function pa(t){return wt(t,"length")}function ua(t){return wt(t,"position")}function fa(t){if(t.match(/^\$\S/))return`var(--${Ut(t.slice(1))})`}function ma(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?`${N(n)}${o}`:`${N(n)}ms`}function da(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?`${N(n)}${o}`:`${N(n)}deg`}function ga(t){if(["inherit","initial","revert","unset"].includes(t))return t}function ba(t){if(t.split(",").every(e=>Qn.includes(e)))return t}var s=Ee(Ht);var D=(t,e)=>{let r=new RegExp(`^${rt(t)}[:-]`);return{name:t,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},U=(t,e)=>{let r=new RegExp(`^${rt(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 St="$$mini-no-negative",R=t=>([e,r,o],{theme:n})=>{var i,c;let a=(c=(i=n.spacing)==null?void 0:i[o||"DEFAULT"])!=null?c:s.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return A[r].map(l=>[`${t}${l}`,a])},It=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(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 c,l=s.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=s.cssvar(o)),c=c||l;let g="DEFAULT";if(!c){let f,[d]=a.slice(-1);d.match(/^\d+$/)?(g=d,f=It(e,a.slice(0,-1))):(f=It(e,a),!f&&a.length<=2&&([,g=g]=a,f=It(e,[i]))),typeof f=="string"?c=f:g&&f&&(c=f[g])}return{opacity:n,name:i,no:g,color:c,cssColor:q(c),alpha:s.bracket.cssvar.percent(n!=null?n:"")}},C=(t,e)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:i,cssColor:c}=n;if(c)return a!=null?{[t]:P(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:P(c,`var(--un-${e}-opacity)`)};if(i)return{[t]:i.replace("%alpha",`${a!=null?a:1}`)}},Y=(t,e)=>{let r=[];t=_(t);for(let o=0;o<t.length;o++){let n=et(t[o]," ",6);if(!n||n.length<3)return t;let a=q(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${P(a)})`)}return r},Ct=(t,e)=>{var r;return t!=null&&!!((r=X(t,e))!=null&&r.color)},Z=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.breakpoints),r||(r=t.breakpoints),r},Pe=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var Ue=[[/^(?: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}
3
3
  ${r({animation:`${t}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,i,c,l,p,g,f,d,u;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let h=(l=(c=(i=e.animation)==null?void 0:i.durations)==null?void 0:c[t])!=null?l:"1s",$=(f=(g=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:g[t])!=null?f:"linear",E=(u=(d=e.animation)==null?void 0:d.properties)==null?void 0:u[t];return`@keyframes ${t}${o}
4
4
  ${r(Object.assign({animation:`${t} ${h} ${$} infinite`},E))}`}return{animation:s.bracket.cssvar(t)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=s.bracket.cssvar(t))!=null?e:t}}],[/^animate-duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar.time(t)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:s.bracket.cssvar(t)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=s.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|unset)","animate-(paused|running|inherit|initial|revert|unset)"]}],["animate-none",{animation:"none"}]];var Kt=t=>([,e],{theme:r})=>{var l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(!a)return;let c=a;switch(i&&(n!=null?c=P(i,n):c=P(i,`var(--un-${t}-opacity, ${(l=i.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Fe=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${s.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&s.bracketOfLength(t)!=null)return{"background-size":s.bracketOfLength(t).split(" ").map(e=>s.fraction.auto.px.cssvar(e)).join(" ")};if(/^\[position:(.+)\]$/.test(t)&&s.bracketOfPosition(t)!=null)return{"background-position":s.bracketOfPosition(t).split(" ").map(e=>s.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":s.bracket(t)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":s.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Kt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Kt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Kt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":s.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":s.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":s.bracket.percent(t)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,t])=>({"background-image":`${t}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in V)return{"--un-gradient-shape":`to ${V[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(V).filter(t=>t.length<=2&&Array.from(t).every(e=>"rltb".includes(e))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in V?`to ${V[t]}`:s.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(V).join("|")})`,`shape-(${Object.keys(V).join("|")})`]}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,t])=>({"background-position":V[t]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Rt={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Ne=[[/^list-(.+)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":Rt[t]}:{"list-style-type":Rt[t]},{autocomplete:[`list-(${Object.keys(Rt).join("|")})`,`list-(${Object.keys(Rt).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Le=[[/^accent-(.+)$/,C("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":s.bracket.percent(t)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],De=[[/^caret-(.+)$/,C("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":s.bracket.percent(t)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],We=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Be=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],He=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ie=[[/^columns-(.+)$/,([,t])=>({columns:s.bracket.global.number.auto.numberWithUnit(t)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ha=/@media \(min-width: (.+)\)/,Ke=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=_(n.parent||[])[0];if(typeof a=="string"){let i=(o=a.match(ha))==null?void 0:o[1];i&&(r=i)}}return{"max-width":r}},{internal:!0}]],Ge=[[/^(?:(\w+)[:-])?container$/,([,t],e)=>{var n;let r=Object.keys((n=Z(e))!=null?n:{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(a=>`${a}:__container`);return t||o.unshift("__container"),o}]];var qe={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"},Xe=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":qe[t]}),{autocomplete:`(vertical|align|v)-(${Object.keys(qe).join("|")})`}]],Ye=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(t=>[`text-${t}`,{"text-align":t}]);var Ze=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:s.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:s.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Je=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],xa=t=>{var e;return(e=s.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Qe=[[/^will-change-(.+)/,([,t])=>({"will-change":xa(t)})]];var ft=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],tr=[[/^(?:border|b)()(?:-(.+))?$/,ct,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ct],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ct],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ct],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ct],[/^(?:border|b)-()(?:width|size)-(.+)$/,J,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-()(?:color-)?(.+)$/,lt,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,lt],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,lt],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,pt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,pt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,pt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ut,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ut],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ut],[/^(?:border|b)-(?:style-)?()(.+)$/,Q,{autocomplete:["(border|b)-style",`(border|b)-(${ft.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ft.join("|")})`,`(border|b)-<directions>-style-(${ft.join("|")})`,`(border|b)-style-(${ft.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Q]],ya=t=>([,e],r)=>{var c,l;let o=X(e,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${t}-color`]:P(i,n)}:t===""?{"--un-border-opacity":(c=i.alpha)!=null?c:1,[`border${t}-color`]:P(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`]:P(i,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ct(t,e){let r=J(t,e),o=Q(["",t[1],"solid"]);if(r&&o)return[...r,...o]}function J([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:s.bracket.cssvar.px(e||"1");if(t in A&&o!=null)return A[t].map(i=>[`border${i}-width`,o])}function lt([,t="",e],{theme:r}){if(t in A&&Ct(e,r))return Object.assign({},...A[t].map(o=>ya(o)(["",e],r)))}function pt([,t="",e]){let r=s.bracket.percent(e);if(t in A&&r!=null)return A[t].map(o=>[`--un-border${o}-opacity`,r])}function ut([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||s.bracket.cssvar.fraction.rem(e||"1");if(t in _t&&o!=null)return _t[t].map(a=>[`border${a}-radius`,o])}function Q([,t="",e]){if(ft.includes(e)&&t in A)return A[t].map(r=>[`border${r}-style`,e])}var er=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:s.bracket.percent.cssvar(t)})]],rr=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":s.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],or=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":s.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var zt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},nr=t=>{var e;return(e=s.properties(t))!=null?e:zt[t]},ar=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?nr(t):[zt.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:s.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(zt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:s.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:s.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:s.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":s.global(t)||nr(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(zt)].join("|")})`]}],["transition-none",{transition:"none"}]];var ir=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:s.bracket(t)!=null?s.bracket(t).split(" ").map(e=>{var r;return(r=s.cssvar.fraction(e))!=null?r:e}).join(" "):s.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:s.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 sr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},cr=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||s.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=_((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":s.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=_((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:s.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":sr[t]||s.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(sr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||s.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])||s.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])||s.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],lr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=s.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],pr=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||s.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],ur=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||s.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":s.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],fr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":s.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":s.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var mr={"":"",x:"column-",y:"row-"},dr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:s.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${mr[t]}gap`]:o,[`${mr[t]}gap`]:o}},gr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,dr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,dr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var B=t=>t.replace("col","column"),Gt=t=>t[0]==="r"?"Row":"Column",va=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Gt(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 s.bracket.cssvar.auto.rem(r)},br=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${B(t)}`]:(n=(o=r[`grid${Gt(t)}`])==null?void 0:o[e])!=null?n:s.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${B(t)}`]:"1/-1"};let r=s.bracket.number(e);if(r!=null)return{[`grid-${B(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-${B(t)}-start`]:(r=s.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${B(t)}-end`]:(r=s.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${B(t)}`]:va(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":s.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":B(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${B(t)}`]:(n=(o=r[`gridTemplate${Gt(t)}`])==null?void 0:o[e])!=null?n:s.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${B(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Tt=["auto","hidden","clip","visible","scroll"],hr=[[/^(?:overflow|of)-(.+)$/,([,t])=>Tt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${Tt.join("|")})`,`(overflow|of)-(x|y)-(${Tt.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>Tt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var xr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],yr=[["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"}]],vr=[[/^order-(.+)$/,([,t])=>({order:s.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],$r=[["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"}]],kr=[["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 qt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:s.bracket.cssvar.auto.fraction.rem(t)}function Et([,t,e],r){let o=qt(e,r);if(o!=null&&t in Mt)return Mt[t].map(n=>[n.slice(1),o])}var wr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:qt(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])-(.+)$/,Et],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Et],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Et],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Et],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:qt(e,r)})]],Sr=[["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"}]],Cr=[[/^z([\d.]+)$/,([,t])=>({"z-index":s.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":s.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],Rr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",zr=[["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:s.bracket.cssvar(t)||t})]],Tr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Er=[[/^cursor-(.+)$/,([,t])=>({cursor:s.bracket.cssvar(t)||t})]],jr=[["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"}]],Ar=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Or=[[/^(?: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=s.bracket.cssvar(t);return{content:e==null?`"${t}"`:e}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],_r=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Ur=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],Fr=[["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"}]],Nr=[["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 Lr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:s.px(t||"1");if(r)return[{[j]:"","--un-ring-inset":v,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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:s.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:s.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":s.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":s.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Dr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[j]:"","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(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":s.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var $a={h:"height",w:"width",inline:"inline-size",block:"block-size"};function mt(t,e){return`${t||""}${$a[e]}`}function Wr(t,e,r,o){var i;let n=mt(t,e).replace(/-(\w)/g,(c,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 s.bracket.cssvar.auto.fraction.rem(o)}var Br=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[mt(t,e)]:Wr(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})=>({[mt(t,e)]:Wr(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{[mt(t,e)]:(n=Pe(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{[mt(t,e)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ka(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return s.bracket.cssvar.auto.number(t)}var Hr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ka(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Ir=[[/^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>"}]],Kr=[[/^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 wa={"--un-transform":["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(" ")},Yr={"--un-transform":["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(" ")},tt=z(w({"--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},Yr),{[j]:"",[St]:""}),Zr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=V[t])!=null?e:s.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=s.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=s.bracket.cssvar(t))!=null?r:t.length>=3?V[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Gr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Gr],[/^(?:transform-)?rotate-()(.+)$/,Xr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Xr],[/^(?:transform-)?skew-([xy])-(.+)$/,Sa],[/^(?:transform-)?scale-()(.+)$/,qr],[/^(?:transform-)?scale-([xyz])-(.+)$/,qr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[tt,{transform:"var(--un-transform)"}]],["transform-gpu",wa],["transform-cpu",Yr],["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:s.bracket.cssvar.fraction.rem(e);if(o!=null)return[tt,[...Pt[t].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]]}function qr([,t,e]){let r=s.bracket.cssvar.fraction.percent(e);if(r!=null)return[tt,[...Pt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Xr([,t="",e]){let r=s.bracket.cssvar.degree(e);if(r!=null)return t?[tt,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[tt,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function Sa([,t,e]){let r=s.bracket.cssvar.degree(e);if(r!=null)return[tt,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var Ca={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"},Jr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=Ca[t];if(r)return{[r]:s.cssvar(e)}}]],Qr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:s.bracket(`[${e}]`)})]];var to=[[/^(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}}
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={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.35.1";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?"":`
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={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.35.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();})();
package/full.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var ht=Object.defineProperty,Fn=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var bt=(e,t,r)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))xt.call(t,r)&&bt(e,r,t[r]);if(ye)for(var r of ye(t))yt.call(t,r)&&bt(e,r,t[r]);return e},E=(e,t)=>Fn(e,Nn(t));var vt=(e,t)=>{var r={};for(var o in e)xt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&yt.call(e,o)&&(r[o]=e[o]);return r};var Ln=(e,t)=>{for(var r in t)ht(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Me(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ve=Me;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $t(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function Dn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function ke(e){return e==null?"":Dn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function $e(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ne(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=S({},r);return $e(r)&&$e(o)&&Object.keys(o).forEach(a=>{$e(r[a])&&$e(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ne(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function re(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?re(o):o;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]=(o=e[t])&&typeof o=="object"?re(o):o;return r}return e}function kt(e){return typeof e[0]=="string"}function wt(e){return typeof e[0]=="string"}function U(e=[]){return Array.isArray(e)?e:[e]}function ae(e){return Array.from(new Set(e))}var Wn=/^\[(.+?)~?="(.*)"\]$/;var Bn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,O="$$shortcut-no-merge";function St(e){return e.match(Wn)}function ie(e=""){return Bn.test(e)}function Ct(e){return typeof e=="function"?{match:e}:e}function Pe(e){return e.length===3}function Rt(e){return e!=null}function _e(){}var we=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var zt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Et(e){zt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(zt,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Tt=new Set;function jt(e){Tt.has(e)||(console.warn("[unocss]",e),Tt.add(e))}function At(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=e[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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Hn=e=>e.split(/[\s'"`;>=]+/g).filter(ie),se={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function Ot(){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)}}}function In(e){return U(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Kn={shortcuts:-1,default:0};function Ue(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(U),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Kn,...o.map(f=>f.layers),e.layers);function i(f){return ae([...n.flatMap(h=>U(h[f]||[])),...U(r[f]||[])])}let s=i("extractors");s.length||s.push(se),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},m=l.length;l.forEach((f,h)=>{kt(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=re([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>ne(f,h),{}));i("extendTheme").forEach(f=>f(u));let g={templates:ae(n.map(f=>{var h;return U((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return U((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return E(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:g,variants:i("variants").map(Ct),shortcuts:In(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Vt="0.35.1";var Fe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ue(t,r),this.events.emit("config",this.config)}version=Vt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ot();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ue(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,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(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[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(m=>this.stringifyUtil(m,i)).filter(Rt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>s.add(b));let l=i?"":`
1
+ (()=>{var ht=Object.defineProperty,Fn=Object.defineProperties;var Nn=Object.getOwnPropertyDescriptors;var ye=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable;var bt=(e,t,r)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))xt.call(t,r)&&bt(e,r,t[r]);if(ye)for(var r of ye(t))yt.call(t,r)&&bt(e,r,t[r]);return e},E=(e,t)=>Fn(e,Nn(t));var vt=(e,t)=>{var r={};for(var o in e)xt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ye)for(var o of ye(e))t.indexOf(o)<0&&yt.call(e,o)&&(r[o]=e[o]);return r};var Ln=(e,t)=>{for(var r in t)ht(e,r,{get:t[r],enumerable:!0})};function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Me(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var ve=Me;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function $t(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function Dn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function ke(e){return e==null?"":Dn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function $e(e){return e&&typeof e=="object"&&!Array.isArray(e)}function ne(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=S({},r);return $e(r)&&$e(o)&&Object.keys(o).forEach(a=>{$e(r[a])&&$e(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=ne(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function re(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?re(o):o;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]=(o=e[t])&&typeof o=="object"?re(o):o;return r}return e}function kt(e){return typeof e[0]=="string"}function wt(e){return typeof e[0]=="string"}function U(e=[]){return Array.isArray(e)?e:[e]}function ae(e){return Array.from(new Set(e))}var Wn=/^\[(.+?)~?="(.*)"\]$/;var Bn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,O="$$shortcut-no-merge";function St(e){return e.match(Wn)}function ie(e=""){return Bn.test(e)}function Ct(e){return typeof e=="function"?{match:e}:e}function Pe(e){return e.length===3}function Rt(e){return e!=null}function _e(){}var we=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var zt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function Et(e){zt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(zt,(o,n,a,i)=>i.split(/\s/g).map(s=>s==="~"?n:s.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Tt=new Set;function jt(e){Tt.has(e)||(console.warn("[unocss]",e),Tt.add(e))}function At(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let i of n){let s=e[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(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Hn=e=>e.split(/[\s'"`;>=]+/g).filter(ie),se={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function Ot(){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)}}}function In(e){return U(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Kn={shortcuts:-1,default:0};function Ue(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(U),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Kn,...o.map(f=>f.layers),e.layers);function i(f){return ae([...n.flatMap(h=>U(h[f]||[])),...U(r[f]||[])])}let s=i("extractors");s.length||s.push(se),s.sort((f,h)=>(f.order||0)-(h.order||0));let l=i("rules"),p={},m=l.length;l.forEach((f,h)=>{kt(f)&&(p[f[0]]=[h,f[1],f[2],f],delete l[h])});let u=re([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,h)=>ne(f,h),{}));i("extendTheme").forEach(f=>f(u));let g={templates:ae(n.map(f=>{var h;return U((h=f.autocomplete)==null?void 0:h.templates)}).flat()),extractors:n.map(f=>{var h;return U((h=f.autocomplete)==null?void 0:h.extractors)}).flat().sort((f,h)=>(f.order||0)-(h.order||0))};return E(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:i("preprocess"),postprocess:i("postprocess"),preflights:i("preflights"),autocomplete:g,variants:i("variants").map(Ct),shortcuts:In(i("shortcuts")),extractors:s,safelist:i("safelist")})}var Vt="0.35.2";var Fe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ue(t,r),this.events.emit("config",this.config)}version=Vt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Ot();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Ue(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,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(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let i=this.makeContext(t,[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(m=>this.stringifyUtil(m,i)).filter(Rt);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:i=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(b=>s.add(b));let l=i?"":`
2
2
  `,p=new Set(["default"]),m=new Set,u=new Map;await Promise.all(Array.from(s).map(async b=>{var y;if(m.has(b))return;let x=await this.parseToken(b);if(x!=null){m.add(b);for(let w of x){let R=w[3]||"";u.has(R)||u.set(R,[]),u.get(R).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(b=>{b.layer&&p.add(b.layer)});let g={},f=this.config.sortLayers(Array.from(p).sort((b,x)=>{var y,w;return((y=this.config.layers[b])!=null?y:0)-((w=this.config.layers[x])!=null?w: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 w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===x).map(async R=>await R.getCSS(b)))).filter(Boolean).join(l);return[x,w]})))}let v=b=>{if(g[b])return g[b];let x=Array.from(u).sort((y,w)=>{var R,j,_;return((R=this.parentOrders.get(y[0]))!=null?R:0)-((j=this.parentOrders.get(w[0]))!=null?j:0)||((_=y[0])==null?void 0:_.localeCompare(w[0]||""))||0}).map(([y,w])=>{let R=w.length,j=w.filter(d=>{var k;return(((k=d[4])==null?void 0:k.layer)||"default")===b}).sort((d,k)=>{var A,D,P;return d[0]-k[0]||(((A=d[4])==null?void 0:A.sort)||0)-(((D=k[4])==null?void 0:D.sort)||0)||((P=d[1])==null?void 0:P.localeCompare(k[1]||""))||0}).map(d=>{var k;return[d[1]?Xn(d[1],o):d[1],d[2],!!((k=d[4])!=null&&k.noMerge)]}).map(d=>[d[0]==null?d[0]:[d[0]],d[1],d[2]]);if(!j.length)return;let _=j.reverse().map(([d,k,A],D)=>{if(!A&&d&&this.config.mergeSelectors)for(let P=D+1;P<R;P++){let F=j[P];if(F&&!F[2]&&F[0]&&F[1]===k)return F[0].push(...d),null}return d?`${[...new Set(d)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${_}${l}}`:_}).filter(Boolean).join(l);return n&&(x=[h[b],x].filter(Boolean).join(l)),g[b]=!i&&x?`/* layer: ${b} */${l}${x}`:x},T=(b=f,x)=>b.filter(y=>!(x!=null&&x.includes(y))).map(y=>v(y)||"").filter(Boolean).join(l);return{get css(){return T()},layers:f,getLayers:T,getLayer:v,matched:m}}matchVariants(t,r){let o=new Set,n=[],a=r||t,i=!1,s={rawSelector:t,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 "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var m;return((m=p.body)==null?void 0:m.call(p,l))||l},t[2]),i=n.reduce((l,p)=>{var m;return((m=p.selector)==null?void 0:m.call(p,l,a))||l},Ne(o)),s={selector:Yn(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(t,r,o){r=oe(r);let{selector:n,entries:a,parent:i}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),s=`${n}{${ke(a)}}`;return i?`${i}{${s}}`:s}async parseUtil(t,r,o=!1){var u,g;let[n,a,i]=typeof t=="string"?this.matchVariants(t):t,s=this.config.details?f=>{var h;r.rules=(h=r.rules)!=null?h:[],r.rules.push(f)}:_e,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((u=l[2])!=null&&u.internal)))return s(l[3]),[[l[0],n,oe(l[1]),l[2],i]];r.variantHandlers=i;let{rulesDynamic:p,rulesSize:m}=this.config;for(let f=m-1;f>=0;f--){let h=p[f];if(!h||((g=h[2])==null?void 0:g.internal)&&!o)continue;let[v,T,b]=h,x=a.match(v);if(!x)continue;let y=await T(x,r);if(!y)continue;if(s(h),typeof y=="string")return[[f,y,b]];let w=$t(y).filter(R=>R.length);if(w.length)return w.map(R=>[f,n,R,b,i])}}stringifyUtil(t,r){var f;if(!t)return;if(Pe(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:i,sort:s}=this.applyVariants(t),l=ke(n);if(!l)return;let h=(f=t[3])!=null?f:{},{layer:p,sort:m}=h,u=vt(h,["layer","sort"]),g=E(S({},u),{layer:i!=null?i:p,sort:s!=null?s:m});return[t[0],o,l,a,g,this.config.details?r:void 0]}expandShortcut(t,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)}:_e,a,i;for(let s of this.config.shortcuts)if(wt(s)){if(s[0]===t){a=a||s[2],i=s[1],n(s);break}}else{let l=t.match(s[0]);if(l&&(i=s[1](l,r)),i){a=a||s[2],n(s);break}}if(typeof i=="string"&&(i=Et(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(t,r,o,n={layer:this.config.shortcutsLayer}){var m;let a=new we,i=(await Promise.all(ae(o).map(async u=>{let g=await this.parseUtil(u,r,!0);return g||jt(`unmatched utility "${u}" in shortcut "${t[1]}"`),g||[]}))).flat(1).filter(Boolean).sort((u,g)=>u[0]-g[0]),[s,,l]=t,p=[];for(let u of i){if(Pe(u)){p.push([u[0],void 0,u[1],void 0,u[2],r]);continue}let{selector:g,entries:f,parent:h,sort:v}=this.applyVariants(u,[...u[4],...l],s);a.getFallback(g,h,[[],u[0]])[0].push([f,!!((m=u[3])!=null&&m.noMerge),v!=null?v:0])}return p.concat(a.map(([u,g],f,h)=>{let v=(b,x,y)=>{let w=Math.max(...y.map(j=>j[1])),R=y.map(j=>j[0]);return(b?[R.flat(1)]:R).map(j=>{let _=ke(j);if(_)return[g,f,_,h,E(S({},n),{noMerge:x,sort:w}),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])=>[...v(!1,x,b.filter(([y])=>y.some(w=>w[0]===O))),...v(!0,x,b.filter(([y])=>y.every(w=>w[0]!==O)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Pt(e,t){return new Fe(e,t)}var _t=/ \$\$ /,qn=e=>e.match(_t);function Xn(e,t){return qn(e)?e.replace(_t,t?` ${t} `:" "):t?`${t} ${e}`:e}function Yn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var Mt=/^\[(.+?)(~?=)"(.*)"\]$/;function Ne(e){return Mt.test(e)?e.replace(Mt,(t,r,o,n)=>`[${ve(r)}${o}"${ve(n)}"]`):`.${ve(e)}`}var Le=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Ut=(e={})=>{var n,a,i;let t=(n=e.prefix)!=null?n:"un-",r=(a=e.prefixedOnly)!=null?a:!1,o=(i=e.trueToNonValued)!=null?i:!1;return{name:"attributify",match(s){let l=St(s);if(!l)return;let p=l[1];if(p.startsWith(t))p=p.slice(t.length);else if(r)return;let m=l[2],[,u="",g=m]=m.match(Le)||[];return g==="~"||o&&g==="true"||!g?`${u}${p}`:`${u}${p}-${g}`}}};var Zn=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Jn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,Ft=/[\s'"`;>]+/,Nt={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Zn),o,n=0;for(let v of r){let[,T,b]=v,x=v.index+T.length;if(t>x&&t<=x+b.length){n=x,o=b;break}}if(!o)return null;let a=o.matchAll(Jn),i=0,s,l;for(let v of a){let[T,b,x]=v,y=n+v.index;if(t>y&&t<=y+T.length){i=y,s=b,l=x==null?void 0:x.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(v){return{start:i,end:i+s.length,replacement:v}}};let p=i+s.length+2,m=Ft.exec(l),u=0,g;for(;m;){let[v]=m;if(t>p+u&&t<=p+u+m.index){g=l.slice(u,u+m.index);break}u+=m.index+v.length,m=Ft.exec(l.slice(u))}g===void 0&&(g=l.slice(u));let[,f="",h]=g.match(Le)||[];return{extracted:`${f}${s}-${h}`,transformSuggestions(v){return v.filter(T=>T.startsWith(`${f}${s}-`)).map(T=>f+T.slice(f.length+s.length+1))},resolveReplacement(v){return{start:u+p,end:u+p+g.length,replacement:f+v.slice(f.length+s.length+1)}}}}};var Qn=["v-bind:",":"],Lt=/[\s'"`;]+/g,ea=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,ta=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Dt=e=>{var n,a,i;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(a=e==null?void 0:e.nonValuedAttribute)!=null?a:!0,o=(i=e==null?void 0:e.trueToNonValued)!=null?i:!1;return{name:"attributify",extract({code:s}){let l=Array.from(s.matchAll(ea)).flatMap(p=>Array.from((p[1]||"").matchAll(ta))).flatMap(([,p,m,u])=>{if(t.includes(p))return[];for(let g of Qn)if(p.startsWith(g)){p=p.slice(g.length);break}if(!u){if(ie(p)&&r!==!1){let g=[`[${p}=""]`];return o&&g.push(`[${p}="true"]`),g}return[]}return["class","className"].includes(p)?u.split(Lt).filter(ie):u.split(Lt).filter(Boolean).map(g=>`[${p}~="${g}"]`)});return new Set(l)}}};var ra=(e={})=>{var n,a,i,s,l;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(a=e.prefix)!=null?a:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[Ut(e)],r=[Dt(e)],o=[Nt];return e.strict||r.unshift(se),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:o}}},Wt=ra;var De=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(e=""){let t=oa(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(De.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function N(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,De.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function oa(e){if(!e)return;let t=na(e);if(t!=null||(t=aa(e),t!=null)||(t=ia(e),t!=null)||(t=ca(e),t!=null)||(t=la(e),t!=null))return t}function na(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function aa(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function ia(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ce(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 sa=new RegExp(`^(${De.join("|")})\\((.+)\\)$`,"i");function ca(e){let t=e.match(sa);if(!t)return;let[,r,o]=t,n=Bt(`${r} ${o}`);if(n){let{alpha:a,components:[i,...s]}=n;return{type:i,components:s,alpha:a}}}function la(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Bt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Bt(e){let t=ce(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=ce(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function pa(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function ce(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=pa(e,t);if(!a)return;let[i,s]=a;o.push(i),e=s}if(o.length>0)return o}var M={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"]},We=E(S({},M),{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"]}),Be={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"]},He={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ht=["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"],V=Object.assign({},...Ht.map(e=>({[e.replace(/ /,"-")]:e})),...Ht.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));var Ke={};Ln(Ke,{auto:()=>da,bracket:()=>va,bracketOfColor:()=>$a,bracketOfLength:()=>ka,bracketOfPosition:()=>wa,cssvar:()=>Sa,degree:()=>Ra,fraction:()=>ya,global:()=>za,number:()=>ha,numberWithUnit:()=>fa,percent:()=>xa,properties:()=>Ea,px:()=>ba,rem:()=>ga,time:()=>Ca});var ua=["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"],Ie=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ma=/^(-?[0-9.]+)$/i,It=/^(px)$/i;function W(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function fa(e){let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${W(n)}${o}`}function da(e){if(e==="auto"||e==="a")return"auto"}function ga(e){if(e.match(It))return`1${e}`;let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n/4)}rem`}function ba(e){if(e.match(It))return`1${e}`;let t=e.match(Ie);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}px`}function ha(e){if(!ma.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return W(t)}function xa(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${W(t/100)}`}function ya(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${W(o*100)}%`}function Se(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(/^\[(color|length|position):/i);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.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 va(e){return Se(e)}function $a(e){return Se(e,"color")}function ka(e){return Se(e,"length")}function wa(e){return Se(e,"position")}function Sa(e){if(e.match(/^\$\S/))return`var(--${Me(e.slice(1))})`}function Ca(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}ms`}function Ra(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}deg`}function za(e){if(["inherit","initial","revert","unset"].includes(e))return e}function Ea(e){if(e.split(",").every(t=>ua.includes(t)))return e}var c=At(Ke);var B=(e,t)=>{let r=new RegExp(`^${te(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},L=(e,t)=>{let r=new RegExp(`^${te(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var Ce="$$mini-no-negative",z=e=>([t,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 M[r].map(l=>[`${e}${l}`,a])},Ge=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(e,t)=>{let r=e.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 m="DEFAULT";if(!s){let u,[g]=a.slice(-1);g.match(/^\d+$/)?(m=g,u=Ge(t,a.slice(0,-1))):(u=Ge(t,a),!u&&a.length<=2&&([,m=m]=a,u=Ge(t,[i]))),typeof u=="string"?s=u:m&&u&&(s=u[m])}return{opacity:n,name:i,no:m,color:s,cssColor:q(s),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},C=(e,t)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:i,cssColor:s}=n;if(s)return a!=null?{[e]:N(s,a)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:N(s,`var(--un-${t}-opacity)`)};if(i)return{[e]:i.replace("%alpha",`${a!=null?a:1}`)}},Y=(e,t)=>{let r=[];e=U(e);for(let o=0;o<e.length;o++){let n=ce(e[o]," ",6);if(!n||n.length<3)return e;let a=q(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${N(a)})`)}return r},Re=(e,t)=>{var r;return e!=null&&!!((r=X(e,t))!=null&&r.color)},Z=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Kt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Gt=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
3
3
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,i,s,l,p,m,u,g,f;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let h=(l=(s=(i=t.animation)==null?void 0:i.durations)==null?void 0:s[e])!=null?l:"1s",v=(u=(m=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:m[e])!=null?u:"linear",T=(f=(g=t.animation)==null?void 0:g.properties)==null?void 0:f[e];return`@keyframes ${e}${o}
4
4
  ${r(Object.assign({animation:`${e} ${h} ${v} infinite`},T))}`}return{animation:c.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>{var t;return{"animation-name":(t=c.bracket.cssvar(e))!=null?t:e}}],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"animation-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar(e)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,e])=>({"animation-fill-mode":e}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,e])=>({"animation-direction":e}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=c.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,e])=>({"animation-play-state":e}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|unset)","animate-(paused|running|inherit|initial|revert|unset)"]}],["animate-none",{animation:"none"}]];var qe=e=>([,t],{theme:r})=>{var l;let o=X(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(!a)return;let s=a;switch(i&&(n!=null?s=N(i,n):s=N(i,`var(--un-${e}-opacity, ${(l=i.alpha)!=null?l:1})`)),e){case"from":return{"--un-gradient-from":s,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${s}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":s}}},qt=[[/^bg-(.*)$/,([,e])=>{if(/^\[url\((.+)\)\]$/.test(e))return{"--un-url":`${c.bracket(e)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(e)&&c.bracketOfLength(e)!=null)return{"background-size":c.bracketOfLength(e).split(" ").map(t=>c.fraction.auto.px.cssvar(t)).join(" ")};if(/^\[position:(.+)\]$/.test(e)&&c.bracketOfPosition(e)!=null)return{"background-position":c.bracketOfPosition(e).split(" ").map(t=>c.fraction.auto.px.cssvar(t)).join(" ")}}],[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":c.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":c.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,qe("from")],[/^(?:bg-gradient-)?to-(.+)$/,qe("to")],[/^(?:bg-gradient-)?via-(.+)$/,qe("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,e])=>({"--un-from-opacity":c.bracket.percent(e)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,e])=>({"--un-to-opacity":c.bracket.percent(e)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,e])=>({"--un-via-opacity":c.bracket.percent(e)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in V)return{"--un-gradient-shape":`to ${V[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(V).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in V?`to ${V[e]}`:c.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(V).join("|")})`,`shape-(${Object.keys(V).join("|")})`]}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,e])=>({"background-position":V[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var ze={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Xt=[[/^list-(.+)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":ze[e]}:{"list-style-type":ze[e]},{autocomplete:[`list-(${Object.keys(ze).join("|")})`,`list-(${Object.keys(ze).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Yt=[[/^accent-(.+)$/,C("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":c.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Zt=[[/^caret-(.+)$/,C("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":c.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Jt=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Qt=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],er=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var tr=[[/^columns-(.+)$/,([,e])=>({columns:c.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var Ta=/@media \(min-width: (.+)\)/,rr=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=U(n.parent||[])[0];if(typeof a=="string"){let i=(o=a.match(Ta))==null?void 0:o[1];i&&(r=i)}}return{"max-width":r}},{internal:!0}]],or=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{var n;let r=Object.keys((n=Z(t))!=null?n:{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(a=>`${a}:__container`);return e||o.unshift("__container"),o}]];var nr={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"},ar=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":nr[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(nr).join("|")})`}]],ir=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var sr=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],cr=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ja=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},lr=[[/^will-change-(.+)/,([,e])=>({"will-change":ja(e)})]];var fe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],pr=[[/^(?:border|b)()(?:-(.+))?$/,le,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,le],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,le],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,le],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-()(?:width|size)-(.+)$/,J,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-()(?:color-)?(.+)$/,pe,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,pe],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,pe],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ue,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ue],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ue],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,me,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,me],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,me],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,me],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,me],[/^(?:border|b)-(?:style-)?()(.+)$/,Q,{autocomplete:["(border|b)-style",`(border|b)-(${fe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${fe.join("|")})`,`(border|b)-<directions>-style-(${fe.join("|")})`,`(border|b)-style-(${fe.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Q]],Aa=e=>([,t],r)=>{var s,l;let o=X(t,r);if(!o)return;let{alpha:n,color:a,cssColor:i}=o;if(i)return n!=null?{[`border${e}-color`]:N(i,n)}:e===""?{"--un-border-opacity":(s=i.alpha)!=null?s:1,[`border${e}-color`]:N(i,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=i.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:N(i,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function le(e,t){let r=J(e,t),o=Q(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function J([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:c.bracket.cssvar.px(t||"1");if(e in M&&o!=null)return M[e].map(i=>[`border${i}-width`,o])}function pe([,e="",t],{theme:r}){if(e in M&&Re(t,r))return Object.assign({},...M[e].map(o=>Aa(o)(["",t],r)))}function ue([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(o=>[`--un-border${o}-opacity`,r])}function me([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in Be&&o!=null)return Be[e].map(a=>[`border${a}-radius`,o])}function Q([,e="",t]){if(fe.includes(t)&&e in M)return M[e].map(r=>[`border${r}-style`,t])}var ur=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],mr=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],fr=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ee={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},dr=e=>{var t;return(t=c.properties(e))!=null?t:Ee[e]},gr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?dr(e):[Ee.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let i=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:c.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":i}}},{autocomplete:`transition-(${Object.keys(Ee).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:c.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||dr(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(Ee)].join("|")})`]}],["transition-none",{transition:"none"}]];var br=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>{var r;return(r=c.cssvar.fraction(t))!=null?r:t}).join(" "):c.cssvar.fraction(e)})],["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-(.+)$/,([,e],{theme:t})=>{var r,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o:c.bracket.cssvar.auto.fraction.rem(e)}}],["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 hr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},xr=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=U((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=U((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":hr[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(hr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||c.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],yr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],vr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],$r=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||c.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],kr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var wr={"":"",x:"column-",y:"row-"},Sr=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${wr[e]}gap`]:o,[`${wr[e]}gap`]:o}},Cr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Sr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Sr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=e=>e.replace("col","column"),Xe=e=>e[0]==="r"?"Row":"Column",Oa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Xe(e)}`])==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)},Rr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${H(e)}`]:(n=(o=r[`grid${Xe(e)}`])==null?void 0:o[t])!=null?n:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${H(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${H(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${H(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${H(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${H(e)}`]:Oa(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":H(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${H(e)}`]:(n=(o=r[`gridTemplate${Xe(e)}`])==null?void 0:o[t])!=null?n:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${H(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Te=["auto","hidden","clip","visible","scroll"],zr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Te.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Te.join("|")})`,`(overflow|of)-(x|y)-(${Te.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Te.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Er=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Tr=[["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"}]],jr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ar=[["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"}]],Or=[["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 Ye(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:c.bracket.cssvar.auto.fraction.rem(e)}function je([,e,t],r){let o=Ye(t,r);if(o!=null&&e in We)return We[e].map(n=>[n.slice(1),o])}var Vr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ye(e,t)}),{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])-(.+)$/,je],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,je],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,je],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,je],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ye(t,r)})]],Mr=[["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"}]],Pr=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],_r=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var $="var(--un-empty,/*!*/ /*!*/)",Ur=[["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-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],Fr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Nr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Lr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Dr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Wr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Br=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Hr=[[/^content-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Ir=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Kr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Gr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],qr=[["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"}]],Xr=[["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 Yr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:c.px(e||"1");if(r)return[{[O]:"","--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-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-)(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Zr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[O]:"","--un-shadow-inset":$,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(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)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Va={h:"height",w:"width",inline:"inline-size",block:"block-size"};function de(e,t){return`${e||""}${Va[t]}`}function Jr(e,t,r,o){var i;let n=de(e,t).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 Qr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Jr(e,t,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)-(.+)$/,([,e,t,r],{theme:o})=>({[de(e,t)]:Jr(e,t,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-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=Kt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[de(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ma(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(e)}var eo=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ma(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var to=[[/^pa?()-?(-?.+)$/,z("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,z("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,z("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,z("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,z("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,z("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],ro=[[/^ma?()-?(-?.+)$/,z("margin")],[/^m-?xy()()$/,z("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,z("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,z("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,z("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,z("margin")]];var Pa={"--un-transform":["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(" ")},io={"--un-transform":["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(" ")},ee=E(S({"--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},io),{[O]:"",[Ce]:""}),so=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=V[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=c.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=c.bracket.cssvar(e))!=null?r:e.length>=3?V[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,oo],[/^(?:transform-)?translate-([xyz])-(.+)$/,oo],[/^(?:transform-)?rotate-()(.+)$/,ao],[/^(?:transform-)?rotate-([xyz])-(.+)$/,ao],[/^(?:transform-)?skew-([xy])-(.+)$/,_a],[/^(?:transform-)?scale-()(.+)$/,no],[/^(?:transform-)?scale-([xyz])-(.+)$/,no],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[ee,{transform:"var(--un-transform)"}]],["transform-gpu",Pa],["transform-cpu",io],["transform-none",{transform:"none"}]];function oo([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:c.bracket.cssvar.fraction.rem(t);if(o!=null)return[ee,[...He[e].map(i=>[`--un-translate${i}`,o]),["transform","var(--un-transform)"]]]}function no([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[ee,[...He[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function ao([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[ee,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[ee,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function _a([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[ee,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var Ua={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"},co=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ua[e];if(r)return{[r]:c.cssvar(t)}}]],lo=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var po=[[/^(where|\?)$/,(e,{constructCSS:t,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}}
package/mini.global.js CHANGED
@@ -1,3 +1,3 @@
1
- (()=>{var Qe=Object.defineProperty,An=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable;var Je=(e,t,r)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&Je(e,r,t[r]);if(ue)for(var r of ue(t))tt.call(t,r)&&Je(e,r,t[r]);return e},C=(e,t)=>An(e,jn(t));var rt=(e,t)=>{var r={};for(var n in e)et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ue)for(var n of ue(e))t.indexOf(n)<0&&tt.call(e,n)&&(r[n]=e[n]);return r};var Vn=(e,t)=>{for(var r in t)Qe(e,r,{get:t[r],enumerable:!0})};var nt={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"},ot=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":nt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(nt).join("|")})`}]],it=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var Re=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Ee(e=""){let t=On(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(Re.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function W(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,Re.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function On(e){if(!e)return;let t=Pn(e);if(t!=null||(t=Mn(e),t!=null)||(t=Un(e),t!=null)||(t=Fn(e),t!=null)||(t=Nn(e),t!=null))return t}function Pn(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 Mn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Un(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=K(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 _n=new RegExp(`^(${Re.join("|")})\\((.+)\\)$`,"i");function Fn(e){let t=e.match(_n);if(!t)return;let[,r,n]=t,o=st(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Nn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=st(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function st(e){let t=K(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=K(t[r-1],"/",3);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 Ln(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function K(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ln(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var V={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"]},Te=C(S({},V),{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"]}),ze={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"]},Ae={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},at=["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"],G=Object.assign({},...at.map(e=>({[e.replace(/ /,"-")]:e})),...at.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function je(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===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 fe=je;function X(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ct(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>X(t)):[e]:[X(e)]}function Wn(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 me(e){return e==null?"":Wn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function pe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ve(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return pe(r)&&pe(n)&&Object.keys(n).forEach(i=>{pe(r[i])&&pe(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ve(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function Z(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Z(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Z(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Z(n):n;return r}return e}function lt(e){return typeof e[0]=="string"}function ut(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function Y(e){return Array.from(new Set(e))}var Dn=/^\[(.+?)~?="(.*)"\]$/;var Bn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,N="$$shortcut-no-merge";function ft(e){return e.match(Dn)}function J(e=""){return Bn.test(e)}function pt(e){return typeof e=="function"?{match:e}:e}function Oe(e){return e.length===3}function mt(e){return e!=null}function Pe(){}var de=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){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.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 dt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ht(e){dt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(dt,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var gt=new Set;function xt(e){gt.has(e)||(console.warn("[unocss]",e),gt.add(e))}function bt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](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}var Hn=e=>e.split(/[\s'"`;>=]+/g).filter(J),Q={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function yt(){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)}}}function In(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Kn={shortcuts:-1,default:0};function Me(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(O),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Kn,...n.map(f=>f.layers),e.layers);function s(f){return Y([...o.flatMap(x=>O(x[f]||[])),...O(r[f]||[])])}let a=s("extractors");a.length||a.push(Q),a.sort((f,x)=>(f.order||0)-(x.order||0));let c=s("rules"),u={},g=c.length;c.forEach((f,x)=>{lt(f)&&(u[f[0]]=[x,f[1],f[2],f],delete c[x])});let p=Z([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ve(f,x),{}));s("extendTheme").forEach(f=>f(p));let d={templates:Y(o.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return C(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:u,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(pt),shortcuts:In(s("shortcuts")),extractors:a,safelist:s("safelist")})}var $t="0.35.1";var Ue=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Me(t,r),this.events.emit("config",this.config)}version=$t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=yt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Me(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}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){var c;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 u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let u=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(mt);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
1
+ (()=>{var Qe=Object.defineProperty,An=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable;var Je=(e,t,r)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&Je(e,r,t[r]);if(ue)for(var r of ue(t))tt.call(t,r)&&Je(e,r,t[r]);return e},C=(e,t)=>An(e,jn(t));var rt=(e,t)=>{var r={};for(var n in e)et.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ue)for(var n of ue(e))t.indexOf(n)<0&&tt.call(e,n)&&(r[n]=e[n]);return r};var Vn=(e,t)=>{for(var r in t)Qe(e,r,{get:t[r],enumerable:!0})};var nt={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"},ot=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":nt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(nt).join("|")})`}]],it=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var Re=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Ee(e=""){let t=On(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(["rgba","hsla"].includes(i)&&o==null)&&!(Re.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function W(e,t){let{components:r}=e,{alpha:n,type:o}=e;return n=t!=null?t:n,o=o.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(o)?`${o.replace("a","")}a(${r.join(",")}${n==null?"":`,${n}`})`:(n=n==null?"":` / ${n}`,Re.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function On(e){if(!e)return;let t=Pn(e);if(t!=null||(t=Mn(e),t!=null)||(t=Un(e),t!=null)||(t=Fn(e),t!=null)||(t=Nn(e),t!=null))return t}function Pn(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 Mn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Un(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=K(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 _n=new RegExp(`^(${Re.join("|")})\\((.+)\\)$`,"i");function Fn(e){let t=e.match(_n);if(!t)return;let[,r,n]=t,o=st(`${r} ${n}`);if(o){let{alpha:i,components:[s,...a]}=o;return{type:s,components:a,alpha:i}}}function Nn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=st(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function st(e){let t=K(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=K(t[r-1],"/",3);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 Ln(e,t){if(e=e.trim(),e==="")return;let r=e.length,n=0;for(let o=0;o<r;o++)switch(e[o]){case"(":n++;break;case")":if(--n<0)return;break;case t:if(n===0){let i=e.slice(0,o).trim();return i===""?void 0:[i,e.slice(o+1).trim()]}}return[e,""]}function K(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ln(e,t);if(!i)return;let[s,a]=i;n.push(s),e=a}if(n.length>0)return n}var V={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"]},Te=C(S({},V),{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"]}),ze={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"]},Ae={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},at=["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"],G=Object.assign({},...at.map(e=>({[e.replace(/ /,"-")]:e})),...at.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function je(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===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 fe=je;function X(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ct(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>X(t)):[e]:[X(e)]}function Wn(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 me(e){return e==null?"":Wn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function pe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ve(e,t){let r=e,n=t;if(Array.isArray(r)&&Array.isArray(n))return[...r,...n];if(Array.isArray(r))return[...r];let o=S({},r);return pe(r)&&pe(n)&&Object.keys(n).forEach(i=>{pe(r[i])&&pe(n[i])||Array.isArray(r[i])&&Array.isArray(n[i])?o[i]=Ve(r[i],n[i]):Object.assign(o,{[i]:n[i]})}),o}function Z(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?Z(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:Z(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?Z(n):n;return r}return e}function lt(e){return typeof e[0]=="string"}function ut(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function Y(e){return Array.from(new Set(e))}var Dn=/^\[(.+?)~?="(.*)"\]$/;var Bn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,N="$$shortcut-no-merge";function ft(e){return e.match(Dn)}function J(e=""){return Bn.test(e)}function pt(e){return typeof e=="function"?{match:e}:e}function Oe(e){return e.length===3}function mt(e){return e!=null}function Pe(){}var de=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){var n;return(n=this._map.get(t))==null?void 0:n.has(r)}delete(t,r){var n;return((n=this._map.get(t))==null?void 0:n.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 dt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ht(e){dt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(dt,(n,o,i,s)=>s.split(/\s/g).map(a=>a==="~"?o:a.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var gt=new Set;function xt(e){gt.has(e)||(console.warn("[unocss]",e),gt.add(e))}function bt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let s of o){let a=e[s](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}var Hn=e=>e.split(/[\s'"`;>=]+/g).filter(J),Q={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function yt(){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)}}}function In(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Kn={shortcuts:-1,default:0};function Me(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(O),o=[...n.filter(f=>f.enforce==="pre"),...n.filter(f=>!f.enforce),...n.filter(f=>f.enforce==="post")],i=Object.assign(Kn,...n.map(f=>f.layers),e.layers);function s(f){return Y([...o.flatMap(x=>O(x[f]||[])),...O(r[f]||[])])}let a=s("extractors");a.length||a.push(Q),a.sort((f,x)=>(f.order||0)-(x.order||0));let c=s("rules"),u={},g=c.length;c.forEach((f,x)=>{lt(f)&&(u[f[0]]=[x,f[1],f[2],f],delete c[x])});let p=Z([...o.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>Ve(f,x),{}));s("extendTheme").forEach(f=>f(p));let d={templates:Y(o.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:o.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return C(S({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:f=>f},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:p,rulesSize:g,rulesDynamic:c,rulesStaticMap:u,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:d,variants:s("variants").map(pt),shortcuts:In(s("shortcuts")),extractors:a,safelist:s("safelist")})}var $t="0.35.2";var Ue=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Me(t,r),this.events.emit("config",this.config)}version=$t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=yt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=Me(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,n=new Set){let o={get original(){return t},code:t,id:r};for(let i of this.config.extractors){let s=await i.extract(o);s==null||s.forEach(a=>n.add(a))}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){var c;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 u of this.config.preprocess)o=u(t);if(this.isBlocked(o)){this.blocked.add(t),this._cache.set(n,null);return}let i=this.matchVariants(t,o);if(!i||this.isBlocked(i[1])){this.blocked.add(t),this._cache.set(n,null);return}let s=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]);this.config.details&&(s.variants=[...i[3]]);let a=this.expandShortcut(s.currentSelector,s);if(a){let u=await this.stringifyShortcuts(s.variantMatch,s,a[0],a[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(c=await this.parseUtil(s.variantMatch,s))==null?void 0:c.map(g=>this.stringifyUtil(g,s)).filter(mt);if(u!=null&&u.length)return this._cache.set(n,u),u}this._cache.set(n,null)}async generate(t="",{id:r,scope:n,preflights:o=!0,safelist:i=!0,minify:s=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(h=>a.add(h));let c=s?"":`
2
2
  `,u=new Set(["default"]),g=new Set,p=new Map;await Promise.all(Array.from(a).map(async h=>{var y;if(g.has(h))return;let b=await this.parseToken(h);if(b!=null){g.add(h);for(let w of b){let k=w[3]||"";p.has(k)||p.set(k,[]),p.get(k).push(w),(y=w[4])!=null&&y.layer&&u.add(w[4].layer)}}})),o&&this.config.preflights.forEach(h=>{h.layer&&u.add(h.layer)});let d={},f=this.config.sortLayers(Array.from(u).sort((h,b)=>{var y,w;return((y=this.config.layers[h])!=null?y:0)-((w=this.config.layers[b])!=null?w:0)||h.localeCompare(b)})),x={};if(o){let h={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(f.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(k=>(k.layer||"default")===b).map(async k=>await k.getCSS(h)))).filter(Boolean).join(c);return[b,w]})))}let v=h=>{if(d[h])return d[h];let b=Array.from(p).sort((y,w)=>{var k,T,M;return((k=this.parentOrders.get(y[0]))!=null?k:0)-((T=this.parentOrders.get(w[0]))!=null?T:0)||((M=y[0])==null?void 0:M.localeCompare(w[0]||""))||0}).map(([y,w])=>{let k=w.length,T=w.filter(m=>{var $;return((($=m[4])==null?void 0:$.layer)||"default")===h}).sort((m,$)=>{var z,F,j;return m[0]-$[0]||(((z=m[4])==null?void 0:z.sort)||0)-(((F=$[4])==null?void 0:F.sort)||0)||((j=m[1])==null?void 0:j.localeCompare($[1]||""))||0}).map(m=>{var $;return[m[1]?Zn(m[1],n):m[1],m[2],!!(($=m[4])!=null&&$.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!T.length)return;let M=T.reverse().map(([m,$,z],F)=>{if(!z&&m&&this.config.mergeSelectors)for(let j=F+1;j<k;j++){let U=T[j];if(U&&!U[2]&&U[0]&&U[1]===$)return U[0].push(...m),null}return m?`${[...new Set(m)].join(`,${c}`)}{${$}}`:$}).filter(Boolean).reverse().join(c);return y?`${y}{${c}${M}${c}}`:M}).filter(Boolean).join(c);return o&&(b=[x[h],b].filter(Boolean).join(c)),d[h]=!s&&b?`/* layer: ${h} */${c}${b}`:b},E=(h=f,b)=>h.filter(y=>!(b!=null&&b.includes(y))).map(y=>v(y)||"").filter(Boolean).join(c);return{get css(){return E()},layers:f,getLayers:E,getLayer:v,matched:g}}matchVariants(t,r){let n=new Set,o=[],i=r||t,s=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let c of this.config.variants){if(!c.multiPass&&n.has(c))continue;let u=c.match(i,a);if(!!u){typeof u=="string"&&(u={matcher:u}),i=u.matcher,Array.isArray(u.parent)&&this.parentOrders.set(u.parent[0],u.parent[1]),o.unshift(u),n.add(c),s=!0;break}}if(!s)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 o=[...r].sort((c,u)=>(c.order||0)-(u.order||0)),i=o.reduce((c,u)=>{var g;return((g=u.body)==null?void 0:g.call(u,c))||c},t[2]),s=o.reduce((c,u)=>{var g;return((g=u.selector)==null?void 0:g.call(u,c,i))||c},Yn(n)),a={selector:Xn(s),entries:i,parent:o.reduce((c,u)=>Array.isArray(u.parent)?u.parent[0]:u.parent||c,void 0),layer:o.reduce((c,u)=>u.layer||c,void 0),sort:o.reduce((c,u)=>u.sort||c,void 0)};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(t,r,n){r=X(r);let{selector:o,entries:i,parent:s}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),a=`${o}{${me(i)}}`;return s?`${s}{${a}}`:a}async parseUtil(t,r,n=!1){var p,d;let[o,i,s]=typeof t=="string"?this.matchVariants(t):t,a=this.config.details?f=>{var x;r.rules=(x=r.rules)!=null?x:[],r.rules.push(f)}:Pe,c=this.config.rulesStaticMap[i];if(c&&c[1]&&(n||!((p=c[2])!=null&&p.internal)))return a(c[3]),[[c[0],o,X(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:u,rulesSize:g}=this.config;for(let f=g-1;f>=0;f--){let x=u[f];if(!x||((d=x[2])==null?void 0:d.internal)&&!n)continue;let[v,E,h]=x,b=i.match(v);if(!b)continue;let y=await E(b,r);if(!y)continue;if(a(x),typeof y=="string")return[[f,y,h]];let w=ct(y).filter(k=>k.length);if(w.length)return w.map(k=>[f,o,k,h,s])}}stringifyUtil(t,r){var f;if(!t)return;if(Oe(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:n,entries:o,parent:i,layer:s,sort:a}=this.applyVariants(t),c=me(o);if(!c)return;let x=(f=t[3])!=null?f:{},{layer:u,sort:g}=x,p=rt(x,["layer","sort"]),d=C(S({},p),{layer:s!=null?s:u,sort:a!=null?a:g});return[t[0],n,c,i,d,this.config.details?r:void 0]}expandShortcut(t,r,n=3){if(n===0)return;let o=this.config.details?a=>{var c;r.shortcuts=(c=r.shortcuts)!=null?c:[],r.shortcuts.push(a)}:Pe,i,s;for(let a of this.config.shortcuts)if(ut(a)){if(a[0]===t){i=i||a[2],s=a[1],o(a);break}}else{let c=t.match(a[0]);if(c&&(s=a[1](c,r)),s){i=i||a[2],o(a);break}}if(typeof s=="string"&&(s=ht(s).split(/\s+/g)),!!s)return[s.flatMap(a=>{var c;return((c=this.expandShortcut(a,r,n-1))==null?void 0:c[0])||[a]}).filter(a=>a!==""),i]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var g;let i=new de,s=(await Promise.all(Y(n).map(async p=>{let d=await this.parseUtil(p,r,!0);return d||xt(`unmatched utility "${p}" in shortcut "${t[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((p,d)=>p[0]-d[0]),[a,,c]=t,u=[];for(let p of s){if(Oe(p)){u.push([p[0],void 0,p[1],void 0,p[2],r]);continue}let{selector:d,entries:f,parent:x,sort:v}=this.applyVariants(p,[...p[4],...c],a);i.getFallback(d,x,[[],p[0]])[0].push([f,!!((g=p[3])!=null&&g.noMerge),v!=null?v:0])}return u.concat(i.map(([p,d],f,x)=>{let v=(h,b,y)=>{let w=Math.max(...y.map(T=>T[1])),k=y.map(T=>T[0]);return(h?[k.flat(1)]:k).map(T=>{let M=me(T);if(M)return[d,f,M,x,C(S({},o),{noMerge:b,sort:w}),r]})};return[[p.filter(([,h])=>h).map(([h,,b])=>[h,b]),!0],[p.filter(([,h])=>!h).map(([h,,b])=>[h,b]),!1]].map(([h,b])=>[...v(!1,b,h.filter(([y])=>y.some(w=>w[0]===N))),...v(!0,b,h.filter(([y])=>y.every(w=>w[0]!==N)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function wt(e,t){return new Ue(e,t)}var St=/ \$\$ /,qn=e=>e.match(St);function Zn(e,t){return qn(e)?e.replace(St,t?` ${t} `:" "):t?`${t} ${e}`:e}function Xn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var vt=/^\[(.+?)(~?=)"(.*)"\]$/;function Yn(e){return vt.test(e)?e.replace(vt,(t,r,n,o)=>`[${fe(r)}${n}"${fe(o)}"]`):`.${fe(e)}`}var Fe={};Vn(Fe,{auto:()=>to,bracket:()=>ao,bracketOfColor:()=>co,bracketOfLength:()=>lo,bracketOfPosition:()=>uo,cssvar:()=>fo,degree:()=>mo,fraction:()=>so,global:()=>ho,number:()=>oo,numberWithUnit:()=>eo,percent:()=>io,properties:()=>go,px:()=>no,rem:()=>ro,time:()=>po});var Jn=["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"],_e=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Qn=/^(-?[0-9.]+)$/i,kt=/^(px)$/i;function P(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function eo(e){let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${P(o)}${n}`}function to(e){if(e==="auto"||e==="a")return"auto"}function ro(e){if(e.match(kt))return`1${e}`;let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o/4)}rem`}function no(e){if(e.match(kt))return`1${e}`;let t=e.match(_e);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}px`}function oo(e){if(!Qn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return P(t)}function io(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${P(t/100)}`}function so(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${P(n*100)}%`}function he(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(/^\[(color|length|position):/i);if(n?t&&n[1]===t&&(r=e.slice(n[0].length,-1)):r=e.slice(1,-1),r!==void 0)return r.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/([^\\])_/g,"$1 ").replace(/calc\((.*)/g,o=>o.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}}function ao(e){return he(e)}function co(e){return he(e,"color")}function lo(e){return he(e,"length")}function uo(e){return he(e,"position")}function fo(e){if(e.match(/^\$\S/))return`var(--${je(e.slice(1))})`}function po(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}ms`}function mo(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}deg`}function ho(e){if(["inherit","initial","revert","unset"].includes(e))return e}function go(e){if(e.split(",").every(t=>Jn.includes(t)))return e}var l=bt(Fe);var D=(e,t)=>{let r=new RegExp(`^${q(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},ee=(e,t)=>{let r=new RegExp(`^${q(e)}[:-]`);return{name:e,match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var ge="$$mini-no-negative",A=e=>([t,r,n],{theme:o})=>{var s,a;let i=(a=(s=o.spacing)==null?void 0:s[n||"DEFAULT"])!=null?a:l.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return V[r].map(c=>[`${e}${c}`,i])},Ne=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},xe=(e,t)=>{let r=e.split(/(?:\/|:)/),n,o;r[0]==="[color"?(n=r.slice(0,2).join(":"),o=r[2]):[n,o]=r;let i=n.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[s]=i;if(!s)return;let a,c=l.bracketOfColor(n),u=c||n;u.startsWith("#")?a=u:u.startsWith("hex-")?a=`#${u.slice(4)}`:n.startsWith("$")&&(a=l.cssvar(n)),a=a||c;let g="DEFAULT";if(!a){let p,[d]=i.slice(-1);d.match(/^\d+$/)?(g=d,p=Ne(t,i.slice(0,-1))):(p=Ne(t,i),!p&&i.length<=2&&([,g=g]=i,p=Ne(t,[s]))),typeof p=="string"?a=p:g&&p&&(a=p[g])}return{opacity:o,name:s,no:g,color:a,cssColor:Ee(a),alpha:l.bracket.cssvar.percent(o!=null?o:"")}},R=(e,t)=>([,r],{theme:n})=>{var c;let o=xe(r,n);if(!o)return;let{alpha:i,color:s,cssColor:a}=o;if(a)return i!=null?{[e]:W(a,i)}:{[`--un-${t}-opacity`]:(c=a.alpha)!=null?c:1,[e]:W(a,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${i!=null?i:1}`)}},be=(e,t)=>{let r=[];e=O(e);for(let n=0;n<e.length;n++){let o=K(e[n]," ",6);if(!o||o.length<3)return e;let i=Ee(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${W(i)})`)}return r},Ct=(e,t)=>{var r;return e!=null&&!!((r=xe(e,t))!=null&&r.color)},ye=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Rt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Et=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,R("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Tt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],xo=e=>{var t;return(t=l.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},zt=[[/^will-change-(.+)/,([,e])=>({"will-change":xo(e)})]];var ie=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],At=[[/^(?:border|b)()(?:-(.+))?$/,te,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,te],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,te],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,te],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,te],[/^(?:border|b)-()(?:width|size)-(.+)$/,B,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,B],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,B],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,B],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,B],[/^(?:border|b)-()(?:color-)?(.+)$/,re,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,re],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,re],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,re],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,re],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ne,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ne],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ne],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,oe],[/^(?:border|b)-(?:style-)?()(.+)$/,H,{autocomplete:["(border|b)-style",`(border|b)-(${ie.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ie.join("|")})`,`(border|b)-<directions>-style-(${ie.join("|")})`,`(border|b)-style-(${ie.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,H]],bo=e=>([,t],r)=>{var a,c;let n=xe(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:W(s,o)}:e===""?{"--un-border-opacity":(a=s.alpha)!=null?a:1,[`border${e}-color`]:W(s,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:W(s,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function te(e,t){let r=B(e,t),n=H(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function B([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:l.bracket.cssvar.px(t||"1");if(e in V&&n!=null)return V[e].map(s=>[`border${s}-width`,n])}function re([,e="",t],{theme:r}){if(e in V&&Ct(t,r))return Object.assign({},...V[e].map(n=>bo(n)(["",t],r)))}function ne([,e="",t]){let r=l.bracket.percent(t);if(e in V&&r!=null)return V[e].map(n=>[`--un-border${n}-opacity`,r])}function oe([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||l.bracket.cssvar.fraction.rem(t||"1");if(e in ze&&n!=null)return ze[e].map(i=>[`border${i}-radius`,n])}function H([,e="",t]){if(ie.includes(t)&&e in V)return V[e].map(r=>[`border${r}-style`,t])}var jt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:l.bracket.percent.cssvar(e)})]],Vt=[[/^(?:text|color|c)-(.+)$/,R("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":l.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ot=[[/^bg-(.+)$/,R("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":l.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var $e={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Pt=e=>{var t;return(t=l.properties(e))!=null?t:$e[e]},Mt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?Pt(e):[$e.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let s=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:l.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys($e).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:l.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-delay":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:l.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,n;return{"transition-timing-function":(n=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?n:l.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":l.global(e)||Pt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys($e)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ut=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:l.bracket(e)!=null?l.bracket(e).split(" ").map(t=>{var r;return(r=l.cssvar.fraction(t))!=null?r:t}).join(" "):l.cssvar.fraction(e)})],["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-(.+)$/,([,e],{theme:t})=>{var r,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n:l.bracket.cssvar.auto.fraction.rem(e)}}],["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 _t={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ft=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||l.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=O((n=t.fontSize)==null?void 0:n[e]);if(r!=null&&r[0]){let[o,i="1"]=r;return{"font-size":o,"line-height":i}}return{"font-size":l.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=O((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:l.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":_t[e]||l.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(_t).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||l.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||l.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||l.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],Nt=[[/^tab(?:-(.+))?$/,([,e])=>{let t=l.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Lt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||l.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],Wt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||l.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,R("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":l.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Dt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":be(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":l.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,R("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":l.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Bt={"":"",x:"column-",y:"row-"},Ht=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:l.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Bt[e]}gap`]:n,[`${Bt[e]}gap`]:n}},It=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ht,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ht,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var _=e=>e.replace("col","column"),Le=e=>e[0]==="r"?"Row":"Column",yo=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Le(e)}`])==null?void 0:o[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return l.bracket.cssvar.auto.rem(r)},Kt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${_(e)}`]:(o=(n=r[`grid${Le(e)}`])==null?void 0:n[t])!=null?o:l.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${_(e)}`]:"1/-1"};let r=l.bracket.number(t);if(r!=null)return{[`grid-${_(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${_(e)}-start`]:(r=l.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${_(e)}-end`]:(r=l.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${_(e)}`]:yo(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":l.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":_(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${_(e)}`]:(o=(n=r[`gridTemplate${Le(e)}`])==null?void 0:n[t])!=null?o:l.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${_(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${_(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ve=["auto","hidden","clip","visible","scroll"],Gt=[[/^(?:overflow|of)-(.+)$/,([,e])=>ve.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ve.join("|")})`,`(overflow|of)-(x|y)-(${ve.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ve.includes(t)?{[`overflow-${e}`]:t}:void 0]];var qt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Zt=[["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"}]],Xt=[[/^order-(.+)$/,([,e])=>({order:l.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Yt=[["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"}]],Jt=[["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 We(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:l.bracket.cssvar.auto.fraction.rem(e)}function we([,e,t],r){let n=We(t,r);if(n!=null&&e in Te)return Te[e].map(o=>[o.slice(1),n])}var Qt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:We(e,t)}),{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])-(.+)$/,we],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,we],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,we],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,we],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:We(t,r)})]],er=[["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"}]],tr=[[/^z([\d.]+)$/,([,e])=>({"z-index":l.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":l.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],rr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var Se="var(--un-empty,/*!*/ /*!*/)",nr=[["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-(.+)$/,([,e])=>({display:l.bracket.cssvar(e)||e})]],or=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],ir=[[/^cursor-(.+)$/,([,e])=>({cursor:l.bracket.cssvar(e)||e})]],sr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],ar=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],cr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],lr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],ur=[[/^content-(.+)$/,([,e])=>{let t=l.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["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"}]],pr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],mr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],dr=[["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"}]],hr=[["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 gr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:l.px(e||"1");if(r)return[{[N]:"","--un-ring-inset":Se,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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-)(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,R("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":l.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,R("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":l.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var xr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[N]:"","--un-shadow-inset":Se,"--un-shadow":"0 0 #0000"},{"--un-shadow":be(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-(.+)$/,R("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":l.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var $o={h:"height",w:"width",inline:"inline-size",block:"block-size"};function se(e,t){return`${e||""}${$o[t]}`}function br(e,t,r,n){var s;let o=se(e,t).replace(/-(\w)/g,(a,c)=>c.toUpperCase()),i=(s=r[o])==null?void 0:s[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return l.bracket.cssvar.auto.fraction.rem(n)}var yr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:br(e,t,n,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)-(.+)$/,([,e,t,r],{theme:n})=>({[se(e,t)]:br(e,t,n,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-(.+)$/,([,e,t,r],n)=>{var o;return{[se(e,t)]:(o=Rt(n))==null?void 0:o[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>{var o;return{[se(e,t)]:(o=ye(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function vo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return l.bracket.cssvar.auto.number(e)}var $r=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":vo(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var vr=[[/^pa?()-?(-?.+)$/,A("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,A("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,A("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],wr=[[/^ma?()-?(-?.+)$/,A("margin")],[/^m-?xy()()$/,A("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,A("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,A("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,A("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,A("margin")]];var wo={"--un-transform":["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(" ")},Rr={"--un-transform":["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(" ")},I=C(S({"--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},Rr),{[N]:"",[ge]:""}),Er=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=G[e])!=null?t:l.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(G).join("|")})`,`origin-(${Object.keys(G).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=l.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=l.bracket.cssvar(e))!=null?r:e.length>=3?G[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Sr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Sr],[/^(?:transform-)?rotate-()(.+)$/,Cr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Cr],[/^(?:transform-)?skew-([xy])-(.+)$/,So],[/^(?:transform-)?scale-()(.+)$/,kr],[/^(?:transform-)?scale-([xyz])-(.+)$/,kr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[I,{transform:"var(--un-transform)"}]],["transform-gpu",wo],["transform-cpu",Rr],["transform-none",{transform:"none"}]];function Sr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:l.bracket.cssvar.fraction.rem(t);if(n!=null)return[I,[...Ae[e].map(s=>[`--un-translate${s}`,n]),["transform","var(--un-transform)"]]]}function kr([,e,t]){let r=l.bracket.cssvar.fraction.percent(t);if(r!=null)return[I,[...Ae[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function Cr([,e="",t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return e?[I,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[I,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function So([,e,t]){let r=l.bracket.cssvar.degree(t);if(r!=null)return[I,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var ko={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"},Tr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=ko[e];if(r)return{[r]:l.cssvar(t)}}]],zr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:l.bracket(`[${t}]`)})]];var Ar=[[/^(where|\?)$/,(e,{constructCSS:t,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
  ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var jr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-decoration-thickness":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=R("text-decoration-color","line")(e,t);if(r)return S({"-webkit-text-decoration-color":r["text-decoration-color"]},r)},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":l.bracket.percent(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"text-underline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.auto.bracket.cssvar.px(e)}},{autocomplete:"(underline|decoration)-(offset)-<num>"}],[/^(?:underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)$/,([,e])=>({"text-decoration-style":e}),{autocomplete:"(underline|decoration)-(solid|double|dotted|dashed|wavy|inherit|initial|revert|unset)"}],["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var Vr=[[/^fill-(.+)$/,R("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":l.bracket.percent(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":l.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"stroke-dashoffset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:l.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,R("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":l.bracket.percent(e)}),{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 Or=[Tr,zr,vr,wr,nr,jt,Ot,Vr,At,ur,Ft,Nt,Lt,pr,jr,Wt,Dt,mr,it,Vt,dr,hr,xr,gr,Ut,Kt,It,qt,yr,$r,ir,or,sr,ar,ot,cr,lr,fr,Gt,Et,Tt,Xt,Zt,Yt,Jt,Qt,er,tr,rr,Mt,Er,zt,Ar].flat(1);var De={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f"},get lightblue(){return this.sky},get lightBlue(){return this.sky},get warmgray(){return this.stone},get warmGray(){return this.stone},get truegray(){return this.neutral},get trueGray(){return this.neutral},get coolgray(){return this.gray},get coolGray(){return this.gray},get bluegray(){return this.slate},get blueGray(){return this.slate}};Object.values(De).forEach(e=>{typeof e!="string"&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Pr={sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'].join(","),serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"].join(","),mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"].join(",")},Mr={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},Ur={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},_r={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Fr={DEFAULT:["0 0 1px rgba(0,0,0,0.2)","0 0 1px rgba(1,0,5,0.1)"],none:"0 0 #0000",sm:"1px 1px 3px rgba(36,37,47,0.25)",md:["0 1px 2px rgba(30,29,39,0.19)","1px 2px 4px rgba(54,64,147,0.18)"],lg:["3px 3px 6px rgba(0,0,0,0.26)","0 0 5px rgba(15,3,86,0.22)"],xl:["1px 1px 3px rgba(0,0,0,0.29)","2px 4px 7px rgba(73,64,125,0.35)"]},Nr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Be={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Lr=Be;var He={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Wr=S({},He),Dr={DEFAULT:"1px",none:"0px"},Br={DEFAULT:"1rem",none:"0rem",xs:"0.75rem",sm:"0.875rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},Hr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Ir={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Kr={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgba(0,0,0,0.1)"],none:"0 0 #0000",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgba(0,0,0,0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgba(0,0,0,0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgba(0,0,0,0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgba(0,0,0,0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgba(0,0,0,0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)"},Gr={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},qr={DEFAULT:"1px",none:"0px"};var Zr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Xr={DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],sm:"0 1px 1px rgba(0,0,0,0.05)",md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"};var ke={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Ie=C(S({auto:"auto"},ke),{screen:"100vw"}),ae=C(S({none:"none"},ke),{screen:"100vw"}),Ke=C(S({auto:"auto"},ke),{screen:"100vh"}),ce=C(S({none:"none"},ke),{screen:"100vh"});var Yr={width:Ie,height:Ke,maxWidth:ae,maxHeight:ce,minWidth:ae,minHeight:ce,inlineSize:Ie,blockSize:Ke,maxInlineSize:ae,maxBlockSize:ce,minInlineSize:ae,minBlockSize:ce,colors:De,fontFamily:Pr,fontSize:Mr,breakpoints:He,verticalBreakpoints:Wr,borderRadius:Ir,lineHeight:Nr,letterSpacing:Be,wordSpacing:Lr,boxShadow:Kr,textIndent:Ur,textShadow:Fr,textStrokeWidth:_r,blur:Zr,dropShadow:Xr,easing:Gr,lineWidth:Dr,spacing:Br,duration:Hr,ringWidth:qr};var Ge={},Jr=e=>{var o;let t=((o=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:o[0])||"",r=e.slice(t.length),n=parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`},Qr={name:"breakpoints",match(e,t){var n;let r=Object.entries((n=ye(t))!=null?n:{}).map(([o,i],s)=>[o,i,s]);for(let[o,i,s]of r){Ge[o]||(Ge[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let a=e.match(Ge[o]);if(!a)continue;let[,c]=a,u=e.slice(c.length);if(u==="container")continue;let g=c.startsWith("lt-"),p=c.startsWith("at-"),d=1e3;return g?(d-=s+1,{matcher:u,parent:[`@media (max-width: ${Jr(i)})`,d]}):(d+=s+1,p&&s<r.length-1?{matcher:u,parent:[`@media (min-width: ${i}) and (max-width: ${Jr(r[s+1][1])})`,d]}:{matcher:u,parent:[`@media (min-width: ${i})`,d]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var L=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return{name:`combinator:${t}`,match:o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:s=>{var a;return r.replace("&&-s",s).replace("&&-c",(a=i[1])!=null?a:"*")}}}}},en=[L(!1,"all","&&-s &&-c"),L(!1,"children","&&-s>&&-c"),L(!1,"next","&&-s+&&-c"),L(!1,"sibling","&&-s+&&-c"),L(!1,"siblings","&&-s~&&-c"),L(!0,"group","&&-c &&-s"),L(!0,"parent","&&-c>&&-s"),L(!0,"previous","&&-c+&&-s"),L(!0,"peer","&&-c~&&-s")];var tn=ee("print","@media print"),rn={name:"media",match(e,{theme:t}){var n,o;let r=e.match(/^media-([_\d\w]+)[:-]/);if(r){let i=(o=(n=t.media)==null?void 0:n[r[1]])!=null?o:`(--${r[1]})`;return{matcher:e.slice(r[0].length),parent:`@media ${i}`}}}};var nn=(e={})=>(e==null?void 0:e.dark)==="class"?[D("dark",t=>`.dark $$ ${t}`),D("light",t=>`.light $$ ${t}`)]:[ee("dark","@media (prefers-color-scheme: dark)"),ee("light","@media (prefers-color-scheme: light)")];var on=[D("rtl",e=>`[dir="rtl"] $$ ${e}`),D("ltr",e=>`[dir="ltr"] $$ ${e}`)];var an={name:"selector",match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},cn={name:"layer",match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},ln={name:"scope",match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},un={name:"important",match(e){let t=e.match(/^(important[:-]|!)/);if(t)return{matcher:e.slice(t[0].length),body:r=>(r.forEach(n=>{n[1]&&(n[1]+=" !important")}),r)}},autocomplete:"(important)"},sn=/[0-9.]+(?:[a-z]+|%)?/,fn={name:"negative",match(e){if(!(!e.startsWith("-")||!e.match(/\d|-px|-full/)))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===ge))return;let r=!1;if(t.forEach(n=>{var i;let o=(i=n[1])==null?void 0:i.toString();!o||o==="0"||sn.test(o)&&(n[1]=o.replace(sn,s=>`-${s}`),r=!0)}),r)return t}}}};var le=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(e=>typeof e=="string"?[e,`:${e}`]:e)),Co=["not","is","where","has"],qe=Object.entries(le).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).join("|"),Ze=Co.join("|"),pn=e=>{if(e==="active")return 1},Ce=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Ze})-)?(${qe}))[:-]`),o=new RegExp(`^${q(t)}:`);return{name:`pseudo:${e}`,match(i){let s=i.match(n);if(s){let a=le[s[3]]||`:${s[3]}`;return s[2]&&(a=`:${s[2]}(${a})`),{matcher:i.slice(s[0].length),selector:c=>o.test(c)?c.replace(o,`${t}${a}:`):`${t}${a}${r}${c}`,sort:pn(s[3])}}}}},mn=Object.entries(le).map(([e])=>e).join("|"),Ro=new RegExp(`^(${mn})[:-]`),dn={name:"pseudo",match:e=>{let t=e.match(Ro);if(t){let r=le[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:pn(t[1])}}},multiPass:!0,autocomplete:`(${mn}):`},Eo=new RegExp(`^(${Ze})-(${qe})[:-]`),hn={match:e=>{let t=e.match(Eo);if(t){let r=t[1],n=le[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${Ze})-(${qe}):`},gn=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[C(S({},Ce("group",t?'[group=""]':".group"," ")),{multiPass:!0}),C(S({},Ce("peer",t?'[peer=""]':".peer","~")),{multiPass:!0}),C(S({},Ce("parent",t?'[parent=""]':".parent",">")),{multiPass:!0}),C(S({},Ce("previous",t?'[previous=""]':".previous","+")),{multiPass:!0})]},To=/(part-\[(.+)]:)(.+)/,xn={match:e=>{let t=e.match(To);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var bn=e=>[an,cn,fn,un,tn,rn,Qr,...en,dn,hn,...gn(e),xn,...nn(e),...on,ln];var zo=(e={})=>{var t,r;return e.dark=(t=e.dark)!=null?t:"class",e.attributifyPseudo=(r=e.attributifyPseudo)!=null?r:!1,{name:"@unocss/preset-mini",theme:Yr,rules:Or,variants:bn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Ao(e.variablePrefix):void 0}},yn=zo;function Ao(e){return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}var Xe=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,$n=(e={})=>{var o,i,s;let t=(o=e.prefix)!=null?o:"un-",r=(i=e.prefixedOnly)!=null?i:!1,n=(s=e.trueToNonValued)!=null?s:!1;return{name:"attributify",match(a){let c=ft(a);if(!c)return;let u=c[1];if(u.startsWith(t))u=u.slice(t.length);else if(r)return;let g=c[2],[,p="",d=g]=g.match(Xe)||[];return d==="~"||n&&d==="true"||!d?`${p}${u}`:`${p}${u}-${d}`}}};var jo=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Vo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,vn=/[\s'"`;>]+/,wn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(jo),n,o=0;for(let v of r){let[,E,h]=v,b=v.index+E.length;if(t>b&&t<=b+h.length){o=b,n=h;break}}if(!n)return null;let i=n.matchAll(Vo),s=0,a,c;for(let v of i){let[E,h,b]=v,y=o+v.index;if(t>y&&t<=y+E.length){s=y,a=h,c=b==null?void 0:b.slice(1);break}}if(!a||a==="class"||a==="className")return null;if(c===void 0)return{extracted:a,resolveReplacement(v){return{start:s,end:s+a.length,replacement:v}}};let u=s+a.length+2,g=vn.exec(c),p=0,d;for(;g;){let[v]=g;if(t>u+p&&t<=u+p+g.index){d=c.slice(p,p+g.index);break}p+=g.index+v.length,g=vn.exec(c.slice(p))}d===void 0&&(d=c.slice(p));let[,f="",x]=d.match(Xe)||[];return{extracted:`${f}${a}-${x}`,transformSuggestions(v){return v.filter(E=>E.startsWith(`${f}${a}-`)).map(E=>f+E.slice(f.length+a.length+1))},resolveReplacement(v){return{start:p+u,end:p+u+d.length,replacement:f+v.slice(f.length+a.length+1)}}}}};var Oo=["v-bind:",":"],Sn=/[\s'"`;]+/g,Po=/<\w(?=.*>)[\w:\.$-]*\s((?:['"`\{].*?['"`\}]|.*?)*?)>/gs,Mo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,kn=e=>{var o,i,s;let t=(o=e==null?void 0:e.ignoreAttributes)!=null?o:[],r=(i=e==null?void 0:e.nonValuedAttribute)!=null?i:!0,n=(s=e==null?void 0:e.trueToNonValued)!=null?s:!1;return{name:"attributify",extract({code:a}){let c=Array.from(a.matchAll(Po)).flatMap(u=>Array.from((u[1]||"").matchAll(Mo))).flatMap(([,u,g,p])=>{if(t.includes(u))return[];for(let d of Oo)if(u.startsWith(d)){u=u.slice(d.length);break}if(!p){if(J(u)&&r!==!1){let d=[`[${u}=""]`];return n&&d.push(`[${u}="true"]`),d}return[]}return["class","className"].includes(u)?p.split(Sn).filter(J):p.split(Sn).filter(Boolean).map(d=>`[${u}~="${d}"]`)});return new Set(c)}}};var Uo=(e={})=>{var o,i,s,a,c;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(s=e.prefixedOnly)!=null?s:!1,e.nonValuedAttribute=(a=e.nonValuedAttribute)!=null?a:!0,e.ignoreAttributes=(c=e.ignoreAttributes)!=null?c:[];let t=[$n(e)],r=[kn(e)],n=[wn];return e.strict||r.unshift(Q),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Cn=Uo;var _o=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),Rn=e=>e.charAt(0).toUpperCase()+e.slice(1),En=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Tn=["Webkit","Moz","ms"];function zn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=_o(n);if(i!=="filter"&&i in e)return t[n]=En(i);i=Rn(i);for(let s=0;s<Tn.length;s++){let a=`${Tn[s]}${i}`;if(a in e)return t[n]=En(Rn(a))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Ye(e={}){var T,M;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},r=t==null?void 0:t.runtime,n=Object.assign(e.defaults||{},r);if(r!=null&&r.autoPrefix){let m=n.postprocess;m||(m=[]),Array.isArray(m)||(m=[m]),m.unshift(zn(document.createElement("div").style)),n.postprocess=m}(T=r==null?void 0:r.configResolved)==null||T.call(r,t,n);let o,i=!0,s,a=wt(t,n),c=new Set,u,g=[],p=()=>new Promise(m=>{g.push(m),u!=null&&clearTimeout(u),u=setTimeout(()=>f().then(()=>{let $=g;g=[],$.forEach(z=>z())}),0)});function d(m=document.body){if(m.nodeType!==1)return;let $=m;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(z=>{z.removeAttribute("un-cloak")})}async function f(){let m=await a.generate(c);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=m.css,c=m.matched}async function x(m){let $=c.size;await a.applyExtractors(m,void 0,c),$!==c.size&&await p()}async function v(){let m=document.body&&document.body.outerHTML;m&&(await x(m),d())}let E=new MutationObserver(m=>{i||m.forEach(async $=>{if($.target.nodeType!==1)return;let z=$.target;if(z!==o)if($.type==="childList")$.addedNodes.forEach(async F=>{if(F.nodeType!==1)return;let j=F;s&&!s(j)||(await x(j.outerHTML),d(j))});else{if(s&&!s(z))return;if($.attributeName!=="un-cloak"){let F=Array.from(z.attributes).map(U=>U.value?`${U.name}="${U.value}"`:U.name).join(" "),j=`<${z.tagName.toLowerCase()} ${F}>`;await x(j)}z.hasAttribute("un-cloak")&&z.removeAttribute("un-cloak")}})}),h=!1;function b(){if(h)return;let m=document.documentElement||document.body;!m||(E.observe(m,{childList:!0,subtree:!0,attributes:!0}),h=!0)}function y(){v(),b()}function w(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",y):y()}let k=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(m){typeof m!="string"&&(m.forEach($=>c.add($)),m=""),await x(m)},extractAll:v,inspect(m){s=m},toggleObserver(m){m===void 0?i=!i:i=!!m,!h&&!i&&w()}};((M=r==null?void 0:r.ready)==null?void 0:M.call(r,k))!==!1&&(i=!1,w())}Ye({defaults:{presets:[yn(),Cn()]}});})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/runtime",
3
- "version": "0.35.1",
3
+ "version": "0.35.2",
4
4
  "description": "CSS-in-JS Runtime for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -20,8 +20,8 @@
20
20
  ],
21
21
  "exports": {
22
22
  ".": {
23
- "import": "./dist/index.mjs",
24
- "require": "./dist/index.js"
23
+ "require": "./dist/index.js",
24
+ "import": "./dist/index.mjs"
25
25
  }
26
26
  },
27
27
  "main": "./dist/index.js",
@@ -34,9 +34,9 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unocss/core": "0.35.1",
38
- "@unocss/preset-attributify": "0.35.1",
39
- "@unocss/preset-uno": "0.35.1"
37
+ "@unocss/core": "0.35.2",
38
+ "@unocss/preset-attributify": "0.35.2",
39
+ "@unocss/preset-uno": "0.35.2"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "pnpm run build:node && pnpm run build:cdn",
package/uno.global.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var ut=Object.defineProperty,wn=Object.defineProperties;var Sn=Object.getOwnPropertyDescriptors;var be=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var pt=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&pt(e,r,t[r]);if(be)for(var r of be(t))ft.call(t,r)&&pt(e,r,t[r]);return e},R=(e,t)=>wn(e,Sn(t));var dt=(e,t)=>{var r={};for(var o in e)mt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&be)for(var o of be(e))t.indexOf(o)<0&&ft.call(e,o)&&(r[o]=e[o]);return r};var Cn=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})};var Ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(e=""){let t=Rn(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ve.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function _(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ve.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(e){if(!e)return;let t=zn(e);if(t!=null||(t=Tn(e),t!=null)||(t=En(e),t!=null)||(t=Vn(e),t!=null)||(t=On(e),t!=null))return t}function zn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Tn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function En(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=te(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 jn=new RegExp(`^(${Ve.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(jn);if(!t)return;let[,r,o]=t,n=gt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function On(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=gt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function gt(e){let t=te(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=te(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function An(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function te(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=An(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var V={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"]},Oe=R($({},V),{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"]}),Ae={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"]},Me={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},bt=["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"],E=Object.assign({},...bt.map(e=>({[e.replace(/ /,"-")]:e})),...bt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var he=_e;function ne(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ht(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ne(t)):[e]:[ne(e)]}function Mn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function ye(e){return e==null?"":Mn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function xe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ue(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=$({},r);return xe(r)&&xe(o)&&Object.keys(o).forEach(a=>{xe(r[a])&&xe(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ue(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function oe(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:oe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}return e}function xt(e){return typeof e[0]=="string"}function yt(e){return typeof e[0]=="string"}function M(e=[]){return Array.isArray(e)?e:[e]}function ae(e){return Array.from(new Set(e))}var _n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,T="$$shortcut-no-merge";function vt(e=""){return _n.test(e)}function kt(e){return typeof e=="function"?{match:e}:e}function Pe(e){return e.length===3}function $t(e){return e!=null}function Fe(){}var ve=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var wt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function St(e){wt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(wt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ct=new Set;function Rt(e){Ct.has(e)||(console.warn("[unocss]",e),Ct.add(e))}function zt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Un=e=>e.split(/[\s'"`;>=]+/g).filter(vt),Le={name:"split",order:0,extract({code:e}){return new Set(Un(e))}};function Tt(){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)}}}function Pn(e){return M(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Fn={shortcuts:-1,default:0};function De(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(M),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Fn,...o.map(m=>m.layers),e.layers);function s(m){return ae([...n.flatMap(g=>M(g[m]||[])),...M(r[m]||[])])}let c=s("extractors");c.length||c.push(Le),c.sort((m,g)=>(m.order||0)-(g.order||0));let l=s("rules"),p={},b=l.length;l.forEach((m,g)=>{xt(m)&&(p[m[0]]=[g,m[1],m[2],m],delete l[g])});let f=oe([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,g)=>Ue(m,g),{}));s("extendTheme").forEach(m=>m(f));let h={templates:ae(n.map(m=>{var g;return M((g=m.autocomplete)==null?void 0:g.templates)}).flat()),extractors:n.map(m=>{var g;return M((g=m.autocomplete)==null?void 0:g.extractors)}).flat().sort((m,g)=>(m.order||0)-(g.order||0))};return R($({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:b,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(kt),shortcuts:Pn(s("shortcuts")),extractors:c,safelist:s("safelist")})}var Et="0.35.1";var Ne=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=De(t,r),this.events.emit("config",this.config)}version=Et;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Tt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=De(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(b=>this.stringifyUtil(b,s)).filter($t);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
1
+ (()=>{var ut=Object.defineProperty,wn=Object.defineProperties;var Sn=Object.getOwnPropertyDescriptors;var be=Object.getOwnPropertySymbols;var mt=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable;var pt=(e,t,r)=>t in e?ut(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$=(e,t)=>{for(var r in t||(t={}))mt.call(t,r)&&pt(e,r,t[r]);if(be)for(var r of be(t))ft.call(t,r)&&pt(e,r,t[r]);return e},R=(e,t)=>wn(e,Sn(t));var dt=(e,t)=>{var r={};for(var o in e)mt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&be)for(var o of be(e))t.indexOf(o)<0&&ft.call(e,o)&&(r[o]=e[o]);return r};var Cn=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})};var Ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function q(e=""){let t=Rn(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ve.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function _(e,t){let{components:r}=e,{alpha:o,type:n}=e;return o=t!=null?t:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,Ve.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Rn(e){if(!e)return;let t=zn(e);if(t!=null||(t=Tn(e),t!=null)||(t=En(e),t!=null)||(t=Vn(e),t!=null)||(t=On(e),t!=null))return t}function zn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(!!t)switch(t.length){case 3:case 4:let r=Array.from(t,n=>Number.parseInt(n,16)).map(n=>n<<4|n);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 o=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[o>>16&255,o>>8&255,o&255]:[o>>24&255,o>>16&255,o>>8&255],alpha:t.length===6?void 0:Math.round((o&255)/255*100)/100}}}function Tn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function En(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=te(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 jn=new RegExp(`^(${Ve.join("|")})\\((.+)\\)$`,"i");function Vn(e){let t=e.match(jn);if(!t)return;let[,r,o]=t,n=gt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function On(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=gt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function gt(e){let t=te(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 a=t.splice(r-2);t.push(a.join(" ")),--r}let o=te(t[r-1],"/",3);if(!o)return;if(o.length===1||o[o.length-1]==="")return{components:t};let n=o.pop();return t[r-1]=o.join("/"),{components:t,alpha:n}}function An(e,t){if(e=e.trim(),e==="")return;let r=e.length,o=0;for(let n=0;n<r;n++)switch(e[n]){case"(":o++;break;case")":if(--o<0)return;break;case t:if(o===0){let a=e.slice(0,n).trim();return a===""?void 0:[a,e.slice(n+1).trim()]}}return[e,""]}function te(e,t,r){if(t=t!=null?t:" ",t.length!==1)return;r=r!=null?r:10;let o=[],n=0;for(;e!=="";){if(++n>r)return;let a=An(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var V={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"]},Oe=R($({},V),{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"]}),Ae={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"]},Me={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},bt=["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"],E=Object.assign({},...bt.map(e=>({[e.replace(/ /,"-")]:e})),...bt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function re(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _e(e){let t=e.length,r=-1,o,n="",a=e.charCodeAt(0);for(;++r<t;){if(o=e.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&&t===1&&o===45){n+=`\\${e.charAt(r)}`;continue}if(o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122){n+=e.charAt(r);continue}n+=`\\${e.charAt(r)}`}return n}var he=_e;function ne(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ht(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>ne(t)):[e]:[ne(e)]}function Mn(e){return e.filter(([t,r],o)=>{if(t.startsWith("$$"))return!1;for(let n=o-1;n>=0;n--)if(e[n][0]===t&&e[n][1]===r)return!1;return!0})}function ye(e){return e==null?"":Mn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function xe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ue(e,t){let r=e,o=t;if(Array.isArray(r)&&Array.isArray(o))return[...r,...o];if(Array.isArray(r))return[...r];let n=$({},r);return xe(r)&&xe(o)&&Object.keys(o).forEach(a=>{xe(r[a])&&xe(o[a])||Array.isArray(r[a])&&Array.isArray(o[a])?n[a]=Ue(r[a],o[a]):Object.assign(n,{[a]:o[a]})}),n}function oe(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:oe(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?oe(o):o;return r}return e}function xt(e){return typeof e[0]=="string"}function yt(e){return typeof e[0]=="string"}function M(e=[]){return Array.isArray(e)?e:[e]}function ae(e){return Array.from(new Set(e))}var _n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,T="$$shortcut-no-merge";function vt(e=""){return _n.test(e)}function kt(e){return typeof e=="function"?{match:e}:e}function Pe(e){return e.length===3}function $t(e){return e!=null}function Fe(){}var ve=class{_map=new Map;get(t,r){let o=this._map.get(t);if(o)return o.get(r)}getFallback(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.has(r)||n.set(r,o),n.get(r)}set(t,r,o){let n=this._map.get(t);return n||(n=new Map,this._map.set(t,n)),n.set(r,o),this}has(t,r){var o;return(o=this._map.get(t))==null?void 0:o.has(r)}delete(t,r){var o;return((o=this._map.get(t))==null?void 0:o.delete(r))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([r,o])=>Array.from(o.entries()).map(([n,a])=>t(a,r,n)))}};var wt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function St(e){wt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(wt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var Ct=new Set;function Rt(e){Ct.has(e)||(console.warn("[unocss]",e),Ct.add(e))}function zt(e){let t=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let c=e[s](o);if(c!=null)return c}};function r(o,n){return o.__options||(o.__options={sequence:[]}),o.__options.sequence.push(n),o}for(let o of Object.keys(e))Object.defineProperty(t,o,{enumerable:!0,get(){return r(this,o)}});return t}var Un=e=>e.split(/[\s'"`;>=]+/g).filter(vt),Le={name:"split",order:0,extract({code:e}){return new Set(Un(e))}};function Tt(){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)}}}function Pn(e){return M(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Fn={shortcuts:-1,default:0};function De(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(M),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Fn,...o.map(m=>m.layers),e.layers);function s(m){return ae([...n.flatMap(g=>M(g[m]||[])),...M(r[m]||[])])}let c=s("extractors");c.length||c.push(Le),c.sort((m,g)=>(m.order||0)-(g.order||0));let l=s("rules"),p={},b=l.length;l.forEach((m,g)=>{xt(m)&&(p[m[0]]=[g,m[1],m[2],m],delete l[g])});let f=oe([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,g)=>Ue(m,g),{}));s("extendTheme").forEach(m=>m(f));let h={templates:ae(n.map(m=>{var g;return M((g=m.autocomplete)==null?void 0:g.templates)}).flat()),extractors:n.map(m=>{var g;return M((g=m.autocomplete)==null?void 0:g.extractors)}).flat().sort((m,g)=>(m.order||0)-(g.order||0))};return R($({mergeSelectors:!0,warn:!0,blocklist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:b,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:h,variants:s("variants").map(kt),shortcuts:Pn(s("shortcuts")),extractors:c,safelist:s("safelist")})}var Et="0.35.2";var Ne=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=De(t,r),this.events.emit("config",this.config)}version=Et;_cache=new Map;config;blocked=new Set;parentOrders=new Map;events=Tt();setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.blocked.clear(),this.parentOrders.clear(),this._cache.clear(),this.config=De(t,this.defaults),this.events.emit("config",this.config))}async applyExtractors(t,r,o=new Set){let n={get original(){return t},code:t,id:r};for(let a of this.config.extractors){let s=await a.extract(n);s==null||s.forEach(c=>o.add(c))}return o}makeContext(t,r){let o={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(t,r){var l;if(this.blocked.has(t))return;let o=`${t}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=t;for(let p of this.config.preprocess)n=p(t);if(this.isBlocked(n)){this.blocked.add(t),this._cache.set(o,null);return}let a=this.matchVariants(t,n);if(!a||this.isBlocked(a[1])){this.blocked.add(t),this._cache.set(o,null);return}let s=this.makeContext(t,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(s.variants=[...a[3]]);let c=this.expandShortcut(s.currentSelector,s);if(c){let p=await this.stringifyShortcuts(s.variantMatch,s,c[0],c[1]);if(p!=null&&p.length)return this._cache.set(o,p),p}else{let p=(l=await this.parseUtil(s.variantMatch,s))==null?void 0:l.map(b=>this.stringifyUtil(b,s)).filter($t);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let c=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(d=>c.add(d));let l=s?"":`
2
2
  `,p=new Set(["default"]),b=new Set,f=new Map;await Promise.all(Array.from(c).map(async d=>{var v;if(b.has(d))return;let y=await this.parseToken(d);if(y!=null){b.add(d);for(let w of y){let z=w[3]||"";f.has(z)||f.set(z,[]),f.get(z).push(w),(v=w[4])!=null&&v.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(d=>{d.layer&&p.add(d.layer)});let h={},m=this.config.sortLayers(Array.from(p).sort((d,y)=>{var v,w;return((v=this.config.layers[d])!=null?v:0)-((w=this.config.layers[y])!=null?w:0)||d.localeCompare(y)})),g={};if(n){let d={generator:this,theme:this.config.theme};g=Object.fromEntries(await Promise.all(m.map(async y=>{let w=(await Promise.all(this.config.preflights.filter(z=>(z.layer||"default")===y).map(async z=>await z.getCSS(d)))).filter(Boolean).join(l);return[y,w]})))}let j=d=>{if(h[d])return h[d];let y=Array.from(f).sort((v,w)=>{var z,O,L;return((z=this.parentOrders.get(v[0]))!=null?z:0)-((O=this.parentOrders.get(w[0]))!=null?O:0)||((L=v[0])==null?void 0:L.localeCompare(w[0]||""))||0}).map(([v,w])=>{let z=w.length,O=w.filter(u=>{var k;return(((k=u[4])==null?void 0:k.layer)||"default")===d}).sort((u,k)=>{var A,H,P;return u[0]-k[0]||(((A=u[4])==null?void 0:A.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((P=u[1])==null?void 0:P.localeCompare(k[1]||""))||0}).map(u=>{var k;return[u[1]?Nn(u[1],o):u[1],u[2],!!((k=u[4])!=null&&k.noMerge)]}).map(u=>[u[0]==null?u[0]:[u[0]],u[1],u[2]]);if(!O.length)return;let L=O.reverse().map(([u,k,A],H)=>{if(!A&&u&&this.config.mergeSelectors)for(let P=H+1;P<z;P++){let W=O[P];if(W&&!W[2]&&W[0]&&W[1]===k)return W[0].push(...u),null}return u?`${[...new Set(u)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${L}${l}}`:L}).filter(Boolean).join(l);return n&&(y=[g[d],y].filter(Boolean).join(l)),h[d]=!s&&y?`/* layer: ${d} */${l}${y}`:y},N=(d=m,y)=>d.filter(v=>!(y!=null&&y.includes(v))).map(v=>j(v)||"").filter(Boolean).join(l);return{get css(){return N()},layers:m,getLayers:N,getLayer:j,matched:b}}matchVariants(t,r){let o=new Set,n=[],a=r||t,s=!1,c={rawSelector:t,theme:this.config.theme,generator:this};for(;;){s=!1;for(let l of this.config.variants){if(!l.multiPass&&o.has(l))continue;let p=l.match(a,c);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),s=!0;break}}if(!s)break;if(n.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,a,n,o]}applyVariants(t,r=t[4],o=t[1]){let n=[...r].sort((l,p)=>(l.order||0)-(p.order||0)),a=n.reduce((l,p)=>{var b;return((b=p.body)==null?void 0:b.call(p,l))||l},t[2]),s=n.reduce((l,p)=>{var b;return((b=p.selector)==null?void 0:b.call(p,l,a))||l},Bn(o)),c={selector:Wn(s),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(c);return c}constructCustomCSS(t,r,o){r=ne(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${ye(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,o=!1){var f,h;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,c=this.config.details?m=>{var g;r.rules=(g=r.rules)!=null?g:[],r.rules.push(m)}:Fe,l=this.config.rulesStaticMap[a];if(l&&l[1]&&(o||!((f=l[2])!=null&&f.internal)))return c(l[3]),[[l[0],n,ne(l[1]),l[2],s]];r.variantHandlers=s;let{rulesDynamic:p,rulesSize:b}=this.config;for(let m=b-1;m>=0;m--){let g=p[m];if(!g||((h=g[2])==null?void 0:h.internal)&&!o)continue;let[j,N,d]=g,y=a.match(j);if(!y)continue;let v=await N(y,r);if(!v)continue;if(c(g),typeof v=="string")return[[m,v,d]];let w=ht(v).filter(z=>z.length);if(w.length)return w.map(z=>[m,n,z,d,s])}}stringifyUtil(t,r){var m;if(!t)return;if(Pe(t))return[t[0],void 0,t[1],void 0,t[2],this.config.details?r:void 0];let{selector:o,entries:n,parent:a,layer:s,sort:c}=this.applyVariants(t),l=ye(n);if(!l)return;let g=(m=t[3])!=null?m:{},{layer:p,sort:b}=g,f=dt(g,["layer","sort"]),h=R($({},f),{layer:s!=null?s:p,sort:c!=null?c:b});return[t[0],o,l,a,h,this.config.details?r:void 0]}expandShortcut(t,r,o=3){if(o===0)return;let n=this.config.details?c=>{var l;r.shortcuts=(l=r.shortcuts)!=null?l:[],r.shortcuts.push(c)}:Fe,a,s;for(let c of this.config.shortcuts)if(yt(c)){if(c[0]===t){a=a||c[2],s=c[1],n(c);break}}else{let l=t.match(c[0]);if(l&&(s=c[1](l,r)),s){a=a||c[2],n(c);break}}if(typeof s=="string"&&(s=St(s).split(/\s+/g)),!!s)return[s.flatMap(c=>{var l;return((l=this.expandShortcut(c,r,o-1))==null?void 0:l[0])||[c]}).filter(c=>c!==""),a]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var b;let a=new ve,s=(await Promise.all(ae(o).map(async f=>{let h=await this.parseUtil(f,r,!0);return h||Rt(`unmatched utility "${f}" in shortcut "${t[1]}"`),h||[]}))).flat(1).filter(Boolean).sort((f,h)=>f[0]-h[0]),[c,,l]=t,p=[];for(let f of s){if(Pe(f)){p.push([f[0],void 0,f[1],void 0,f[2],r]);continue}let{selector:h,entries:m,parent:g,sort:j}=this.applyVariants(f,[...f[4],...l],c);a.getFallback(h,g,[[],f[0]])[0].push([m,!!((b=f[3])!=null&&b.noMerge),j!=null?j:0])}return p.concat(a.map(([f,h],m,g)=>{let j=(d,y,v)=>{let w=Math.max(...v.map(O=>O[1])),z=v.map(O=>O[0]);return(d?[z.flat(1)]:z).map(O=>{let L=ye(O);if(L)return[h,m,L,g,R($({},n),{noMerge:y,sort:w}),r]})};return[[f.filter(([,d])=>d).map(([d,,y])=>[d,y]),!0],[f.filter(([,d])=>!d).map(([d,,y])=>[d,y]),!1]].map(([d,y])=>[...j(!1,y,d.filter(([v])=>v.some(w=>w[0]===T))),...j(!0,y,d.filter(([v])=>v.every(w=>w[0]!==T)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Vt(e,t){return new Ne(e,t)}var Ot=/ \$\$ /,Dn=e=>e.match(Ot);function Nn(e,t){return Dn(e)?e.replace(Ot,t?` ${t} `:" "):t?`${t} ${e}`:e}function Wn(e){let t=e.match(/::[\w-]+/g);return t&&(t.forEach(r=>e=e.replace(r,"")),e+=t.join("")),e}var jt=/^\[(.+?)(~?=)"(.*)"\]$/;function Bn(e){return jt.test(e)?e.replace(jt,(t,r,o,n)=>`[${he(r)}${o}"${he(n)}"]`):`.${he(e)}`}var Be={};Cn(Be,{auto:()=>Gn,bracket:()=>Qn,bracketOfColor:()=>ea,bracketOfLength:()=>ta,bracketOfPosition:()=>ra,cssvar:()=>oa,degree:()=>aa,fraction:()=>Jn,global:()=>ia,number:()=>Yn,numberWithUnit:()=>Kn,percent:()=>Zn,properties:()=>sa,px:()=>Xn,rem:()=>qn,time:()=>na});var Hn=["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"],We=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,In=/^(-?[0-9.]+)$/i,At=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Kn(e){let t=e.match(We);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Gn(e){if(e==="auto"||e==="a")return"auto"}function qn(e){if(e.match(At))return`1${e}`;let t=e.match(We);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function Xn(e){if(e.match(At))return`1${e}`;let t=e.match(We);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function Yn(e){if(!In.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function Zn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function Jn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${F(o*100)}%`}function ke(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(/^\[(color|length|position):/i);if(o?t&&o[1]===t&&(r=e.slice(o[0].length,-1)):r=e.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 Qn(e){return ke(e)}function ea(e){return ke(e,"color")}function ta(e){return ke(e,"length")}function ra(e){return ke(e,"position")}function oa(e){if(e.match(/^\$\S/))return`var(--${_e(e.slice(1))})`}function na(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}ms`}function aa(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}deg`}function ia(e){if(["inherit","initial","revert","unset"].includes(e))return e}function sa(e){if(e.split(",").every(t=>Hn.includes(t)))return e}var i=zt(Be);var D=(e,t)=>{let r=new RegExp(`^${re(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},U=(e,t)=>{let r=new RegExp(`^${re(e)}[:-]`);return{name:e,match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var $e="$$mini-no-negative",C=e=>([t,r,o],{theme:n})=>{var s,c;let a=(c=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?c:i.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return V[r].map(l=>[`${e}${l}`,a])},He=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},X=(e,t)=>{let r=e.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),[s]=a;if(!s)return;let c,l=i.bracketOfColor(o),p=l||o;p.startsWith("#")?c=p:p.startsWith("hex-")?c=`#${p.slice(4)}`:o.startsWith("$")&&(c=i.cssvar(o)),c=c||l;let b="DEFAULT";if(!c){let f,[h]=a.slice(-1);h.match(/^\d+$/)?(b=h,f=He(t,a.slice(0,-1))):(f=He(t,a),!f&&a.length<=2&&([,b=b]=a,f=He(t,[s]))),typeof f=="string"?c=f:b&&f&&(c=f[b])}return{opacity:n,name:s,no:b,color:c,cssColor:q(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},S=(e,t)=>([,r],{theme:o})=>{var l;let n=X(r,o);if(!n)return;let{alpha:a,color:s,cssColor:c}=n;if(c)return a!=null?{[e]:_(c,a)}:{[`--un-${t}-opacity`]:(l=c.alpha)!=null?l:1,[e]:_(c,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${a!=null?a:1}`)}},Y=(e,t)=>{let r=[];e=M(e);for(let o=0;o<e.length;o++){let n=te(e[o]," ",6);if(!n||n.length<3)return e;let a=q(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${_(a)})`)}return r},we=(e,t)=>{var r;return e!=null&&!!((r=X(e,t))!=null&&r.color)},Z=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},Mt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var _t=[[/^(?:animate-)?keyframes-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o)return`@keyframes ${e}${o}
3
3
  ${r({animation:`${e}`})}`},{autocomplete:["animate-keyframes-$animation.keyframes","keyframes-$animation.keyframes"]}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,s,c,l,p,b,f,h,m;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let g=(l=(c=(s=t.animation)==null?void 0:s.durations)==null?void 0:c[e])!=null?l:"1s",j=(f=(b=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:b[e])!=null?f:"linear",N=(m=(h=t.animation)==null?void 0:h.properties)==null?void 0:m[e];return`@keyframes ${e}${o}
4
4
  ${r(Object.assign({animation:`${e} ${g} ${j} infinite`},N))}`}return{animation:i.bracket.cssvar(e)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,e])=>{var t;return{"animation-name":(t=i.bracket.cssvar(e))!=null?t:e}}],[/^animate-duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["animate-duration","animate-duration-$duration"]}],[/^animate-delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"animation-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["animate-delay","animate-delay-$duration"]}],[/^animate-ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"animation-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar(e)}},{autocomplete:"animate-delay-$easing"}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,e])=>({"animation-fill-mode":e}),{autocomplete:["animate-(fill|mode|fill-mode)","animate-(fill|mode|fill-mode)-(none|forwards|backwards|both|inherit|initial|revert|unset)","animate-(none|forwards|backwards|both|inherit|initial|revert|unset)"]}],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,e])=>({"animation-direction":e}),{autocomplete:["animate-direction","animate-direction-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)","animate-(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)"]}],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=i.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}},{autocomplete:["animate-(iteration|count|iteration-count)","animate-(iteration|count|iteration-count)-<num>"]}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,e])=>({"animation-play-state":e}),{autocomplete:["animate-(play|state|play-state)","animate-(play|state|play-state)-(paused|running|inherit|initial|revert|unset)","animate-(paused|running|inherit|initial|revert|unset)"]}],["animate-none",{animation:"none"}]];var Ie=e=>([,t],{theme:r})=>{var l;let o=X(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let c=a;switch(s&&(n!=null?c=_(s,n):c=_(s,`var(--un-${e}-opacity, ${(l=s.alpha)!=null?l:1})`)),e){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},Ut=[[/^bg-(.*)$/,([,e])=>{if(/^\[url\((.+)\)\]$/.test(e))return{"--un-url":`${i.bracket(e)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(e)&&i.bracketOfLength(e)!=null)return{"background-size":i.bracketOfLength(e).split(" ").map(t=>i.fraction.auto.px.cssvar(t)).join(" ")};if(/^\[position:(.+)\]$/.test(e)&&i.bracketOfPosition(e)!=null)return{"background-position":i.bracketOfPosition(e).split(" ").map(t=>i.fraction.auto.px.cssvar(t)).join(" ")}}],[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":i.bracket(e)}),{autocomplete:["bg-gradient","bg-gradient-(from|to|via)","bg-gradient-(from|to|via)-$colors","bg-gradient-(from|to|via)-(op|opacity)","bg-gradient-(from|to|via)-(op|opacity)-<percent>"]}],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":i.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,Ie("from")],[/^(?:bg-gradient-)?to-(.+)$/,Ie("to")],[/^(?:bg-gradient-)?via-(.+)$/,Ie("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,e])=>({"--un-from-opacity":i.bracket.percent(e)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,e])=>({"--un-to-opacity":i.bracket.percent(e)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,e])=>({"--un-via-opacity":i.bracket.percent(e)})],[/^bg-gradient-((?:repeating-)?(?:linear|radial|conic))$/,([,e])=>({"background-image":`${e}-gradient(var(--un-gradient, var(--un-gradient-stops, rgba(255, 255, 255, 0))))`}),{autocomplete:["bg-gradient-repeating","bg-gradient-(linear|radial|conic)","bg-gradient-repeating-(linear|radial|conic)"]}],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in E)return{"--un-gradient-shape":`to ${E[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(E).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in E?`to ${E[e]}`:i.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}},{autocomplete:["bg-gradient-shape",`bg-gradient-shape-(${Object.keys(E).join("|")})`,`shape-(${Object.keys(E).join("|")})`]}],["bg-none",{"background-image":"none"}],["box-decoration-slice",{"box-decoration-break":"slice"}],["box-decoration-clone",{"box-decoration-break":"clone"}],["bg-auto",{"background-size":"auto"}],["bg-cover",{"background-size":"cover"}],["bg-contain",{"background-size":"contain"}],["bg-fixed",{"background-attachment":"fixed"}],["bg-local",{"background-attachment":"local"}],["bg-scroll",{"background-attachment":"scroll"}],["bg-clip-border",{"-webkit-background-clip":"border-box","background-attachment":"border-box"}],["bg-clip-content",{"-webkit-background-clip":"content-box","background-attachment":"content-box"}],["bg-clip-padding",{"-webkit-background-clip":"padding-box","background-attachment":"padding-box"}],["bg-clip-text",{"-webkit-background-clip":"text","background-attachment":"text"}],[/^bg-([-\w]{3,})$/,([,e])=>({"background-position":E[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-repeat":"repeat-x"}],["bg-repeat-y",{"background-repeat":"repeat-y"}],["bg-repeat-round",{"background-repeat":"round"}],["bg-repeat-space",{"background-repeat":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Se={disc:"disc",circle:"circle",square:"square",decimal:"decimal","zero-decimal":"decimal-leading-zero",greek:"lower-greek",roman:"lower-roman","upper-roman":"upper-roman",alpha:"lower-alpha","upper-alpha":"upper-alpha",latin:"lower-latin","upper-latin":"upper-latin"},Pt=[[/^list-(.+)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":Se[e]}:{"list-style-type":Se[e]},{autocomplete:[`list-(${Object.keys(Se).join("|")})`,`list-(${Object.keys(Se).join("|")})-(outside|inside)`]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ft=[[/^accent-(.+)$/,S("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":i.bracket.percent(e)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Lt=[[/^caret-(.+)$/,S("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":i.bracket.percent(e)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Dt=[["image-render-auto",{"image-rendering":"auto"}],["image-render-edge",{"image-rendering":"crisp-edges"}],["image-render-pixel",[["-ms-interpolation-mode","nearest-neighbor"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-pixelated"],["image-rendering","pixelated"]]]],Nt=[["overscroll-auto",{"overscroll-behavior":"auto"}],["overscroll-contain",{"overscroll-behavior":"contain"}],["overscroll-none",{"overscroll-behavior":"none"}],["overscroll-x-auto",{"overscroll-behavior-x":"auto"}],["overscroll-x-contain",{"overscroll-behavior-x":"contain"}],["overscroll-x-none",{"overscroll-behavior-x":"none"}],["overscroll-y-auto",{"overscroll-behavior-y":"auto"}],["overscroll-y-contain",{"overscroll-behavior-y":"contain"}],["overscroll-y-none",{"overscroll-behavior-y":"none"}]],Wt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Bt=[[/^columns-(.+)$/,([,e])=>({columns:i.bracket.global.number.auto.numberWithUnit(e)}),{autocomplete:"columns-<num>"}],["break-before-auto",{"break-before":"auto"}],["break-before-avoid",{"break-before":"avoid"}],["break-before-all",{"break-before":"all"}],["break-before-avoid-page",{"break-before":"avoid-page"}],["break-before-page",{"break-before":"page"}],["break-before-left",{"break-before":"left"}],["break-before-right",{"break-before":"right"}],["break-before-column",{"break-before":"column"}],["break-inside-auto",{"break-inside":"auto"}],["break-inside-avoid",{"break-inside":"avoid"}],["break-inside-avoid-page",{"break-inside":"avoid-page"}],["break-inside-avoid-column",{"break-inside":"avoid-column"}],["break-after-auto",{"break-after":"auto"}],["break-after-avoid",{"break-after":"avoid"}],["break-after-all",{"break-after":"all"}],["break-after-avoid-page",{"break-after":"avoid-page"}],["break-after-page",{"break-after":"page"}],["break-after-left",{"break-after":"left"}],["break-after-right",{"break-after":"right"}],["break-after-column",{"break-after":"column"}]];var ca=/@media \(min-width: (.+)\)/,Ht=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=M(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ca))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],It=[[/^(?:(\w+)[:-])?container$/,([,e],t)=>{var n;let r=Object.keys((n=Z(t))!=null?n:{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(a=>`${a}:__container`);return e||o.unshift("__container"),o}]];var Kt={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"},Gt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Kt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Kt).join("|")})`}]],qt=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var Xt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,o;return{"outline-offset":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Yt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],la=e=>{var t;return(t=i.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Zt=[[/^will-change-(.+)/,([,e])=>({"will-change":la(e)})]];var pe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],Jt=[[/^(?:border|b)()(?:-(.+))?$/,ie,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ie],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ie],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ie],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ie],[/^(?:border|b)-()(?:width|size)-(.+)$/,J,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,J],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,J],[/^(?:border|b)-()(?:color-)?(.+)$/,se,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,se],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ce,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ce],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,le,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,le],[/^(?:border|b)-(?:style-)?()(.+)$/,Q,{autocomplete:["(border|b)-style",`(border|b)-(${pe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${pe.join("|")})`,`(border|b)-<directions>-style-(${pe.join("|")})`,`(border|b)-style-(${pe.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Q]],pa=e=>([,t],r)=>{var c,l;let o=X(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${e}-color`]:_(s,n)}:e===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${e}-color`]:_(s,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:_(s,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ie(e,t){let r=J(e,t),o=Q(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function J([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:i.bracket.cssvar.px(t||"1");if(e in V&&o!=null)return V[e].map(s=>[`border${s}-width`,o])}function se([,e="",t],{theme:r}){if(e in V&&we(t,r))return Object.assign({},...V[e].map(o=>pa(o)(["",t],r)))}function ce([,e="",t]){let r=i.bracket.percent(t);if(e in V&&r!=null)return V[e].map(o=>[`--un-border${o}-opacity`,r])}function le([,e="",t],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[t||"DEFAULT"])||i.bracket.cssvar.fraction.rem(t||"1");if(e in Ae&&o!=null)return Ae[e].map(a=>[`border${a}-radius`,o])}function Q([,e="",t]){if(pe.includes(t)&&e in V)return V[e].map(r=>[`border${r}-style`,t])}var Qt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:i.bracket.percent.cssvar(e)})]],er=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":i.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],tr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":i.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ce={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},rr=e=>{var t;return(t=i.properties(e))!=null?t:Ce[e]},or=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?rr(e):[Ce.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[t||"DEFAULT"])!=null?a:i.time(t||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(Ce).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-duration":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>{var r,o;return{"transition-delay":(o=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar.time(e)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>{var r,o;return{"transition-timing-function":(o=(r=t.easing)==null?void 0:r[e||"DEFAULT"])!=null?o:i.bracket.cssvar(e)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":i.global(e)||rr(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(Ce)].join("|")})`]}],["transition-none",{transition:"none"}]];var nr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:i.bracket(e)!=null?i.bracket(e).split(" ").map(t=>{var r;return(r=i.cssvar.fraction(t))!=null?r:t}).join(" "):i.cssvar.fraction(e)})],["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-(.+)$/,([,e],{theme:t})=>{var r,o;return{"flex-basis":(o=(r=t.spacing)==null?void 0:r[e])!=null?o:i.bracket.cssvar.auto.fraction.rem(e)}}],["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 ar={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ir=[[/^font-(.+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||i.bracket.cssvar.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=M((o=t.fontSize)==null?void 0:o[e]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":i.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var n,a;let r=M((n=t.fontSize)==null?void 0:n[e]),o=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(e);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":ar[e]||i.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(ar).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,e],{theme:t})=>{var r;return{"line-height":((r=t.lineHeight)==null?void 0:r[e])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^font-synthesis-(.+)$/,([,e])=>({"font-synthesis":e}),{autocomplete:"font-synthesis-(none|weight|style|small-caps)"}],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>{var r;return{"letter-spacing":((r=t.letterSpacing)==null?void 0:r[e])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>{var r;return{"word-spacing":((r=t.wordSpacing)==null?void 0:r[e])||i.bracket.cssvar.global.rem(e)}},{autocomplete:"word-spacing-$wordSpacing"}]],sr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=i.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],cr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"text-indent":((r=t.textIndent)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(e)}},{autocomplete:"indent-$textIndent"}]],lr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>{var r;return{"-webkit-text-stroke-width":((r=t.textStrokeWidth)==null?void 0:r[e||"DEFAULT"])||i.bracket.cssvar.px(e)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":i.bracket.percent(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],pr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":Y(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var ur={"":"",x:"column-",y:"row-"},mr=([,e="",t],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:i.bracket.cssvar.rem(t);if(o!=null)return{[`grid-${ur[e]}gap`]:o,[`${ur[e]}gap`]:o}},fr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,mr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,mr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var B=e=>e.replace("col","column"),Ke=e=>e[0]==="r"?"Row":"Column",ua=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Ke(e)}`])==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 i.bracket.cssvar.auto.rem(r)},dr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${B(e)}`]:(n=(o=r[`grid${Ke(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${B(e)}`]:"1/-1"};let r=i.bracket.number(t);if(r!=null)return{[`grid-${B(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${B(e)}-start`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${B(e)}-end`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${B(e)}`]:ua(e,r,t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":i.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,e])=>({"grid-auto-flow":B(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${B(e)}`]:(n=(o=r[`gridTemplate${Ke(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${B(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${B(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Re=["auto","hidden","clip","visible","scroll"],gr=[[/^(?:overflow|of)-(.+)$/,([,e])=>Re.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Re.join("|")})`,`(overflow|of)-(x|y)-(${Re.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Re.includes(t)?{[`overflow-${e}`]:t}:void 0]];var br=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],hr=[["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"}]],xr=[[/^order-(.+)$/,([,e])=>({order:i.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],yr=[["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"}]],vr=[["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 Ge(e,{theme:t}){var r,o;return(o=(r=t.spacing)==null?void 0:r[e])!=null?o:i.bracket.cssvar.auto.fraction.rem(e)}function ze([,e,t],r){let o=Ge(t,r);if(o!=null&&e in Oe)return Oe[e].map(n=>[n.slice(1),o])}var kr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ge(e,t)}),{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])-(.+)$/,ze],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ze],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ze],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ze],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ge(t,r)})]],$r=[["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"}]],wr=[[/^z([\d.]+)$/,([,e])=>({"z-index":i.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":i.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Sr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var x="var(--un-empty,/*!*/ /*!*/)",Cr=[["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-(.+)$/,([,e])=>({display:i.bracket.cssvar(e)||e})]],Rr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],zr=[[/^cursor-(.+)$/,([,e])=>({cursor:i.bracket.cssvar(e)||e})]],Tr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Er=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],jr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Vr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Or=[[/^content-(.+)$/,([,e])=>{let t=i.bracket.cssvar(e);return{content:t==null?`"${e}"`:t}}],["content-empty",{content:'""'}],["content-none",{content:'""'}]],Ar=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Mr=[["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"}]],Ur=[["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"}]],Pr=[["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 Fr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var o,n;let r=(n=(o=t.ringWidth)==null?void 0:o[e||"DEFAULT"])!=null?n:i.px(e||"1");if(r)return[{[T]:"","--un-ring-inset":x,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgba(147,197,253,0.5)"},{"--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-)(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,o;return{"--un-ring-offset-width":(o=(r=t.lineWidth)==null?void 0:r[e])!=null?o:i.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":i.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":i.bracket.percent(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Lr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[T]:"","--un-shadow-inset":x,"--un-shadow":"0 0 #0000"},{"--un-shadow":Y(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-(.+)$/,S("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":i.bracket.percent(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ma={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ue(e,t){return`${e||""}${ma[t]}`}function Dr(e,t,r,o){var s;let n=ue(e,t).replace(/-(\w)/g,(c,l)=>l.toUpperCase()),a=(s=r[n])==null?void 0:s[o];if(a!=null)return a;switch(o){case"fit":case"max":case"min":return`${o}-content`}return i.bracket.cssvar.auto.fraction.rem(o)}var Nr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[ue(e,t)]:Dr(e,t,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)-(.+)$/,([,e,t,r],{theme:o})=>({[ue(e,t)]:Dr(e,t,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-(.+)$/,([,e,t,r],o)=>{var n;return{[ue(e,t)]:(n=Mt(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],o)=>{var n;return{[ue(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function fa(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(e)}var Wr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":fa(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Br=[[/^pa?()-?(-?.+)$/,C("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,C("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,C("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,C("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Hr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?xy()()$/,C("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,C("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,C("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,C("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,C("margin")]];var da={"--un-transform":["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-transform":["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(" ")},ee=R($({"--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},qr),{[T]:"",[$e]:""}),Xr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=E[e])!=null?t:i.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(E).join("|")})`,`origin-(${Object.keys(E).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=i.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{var r;let t=(r=i.bracket.cssvar(e))!=null?r:e.length>=3?E[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Ir],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ir],[/^(?:transform-)?rotate-()(.+)$/,Gr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Gr],[/^(?:transform-)?skew-([xy])-(.+)$/,ga],[/^(?:transform-)?scale-()(.+)$/,Kr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Kr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[ee,{transform:"var(--un-transform)"}]],["transform-gpu",da],["transform-cpu",qr],["transform-none",{transform:"none"}]];function Ir([,e,t],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[t])!=null?a:i.bracket.cssvar.fraction.rem(t);if(o!=null)return[ee,[...Me[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Kr([,e,t]){let r=i.bracket.cssvar.fraction.percent(t);if(r!=null)return[ee,[...Me[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Gr([,e="",t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return e?[ee,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[ee,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ga([,e,t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return[ee,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var ba={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"},Yr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=ba[e];if(r)return{[r]:i.cssvar(t)}}]],Zr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:i.bracket(`[${t}]`)})]];var Jr=[[/^(where|\?)$/,(e,{constructCSS:t,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}}