@unocss/runtime 0.31.0 → 0.31.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +1 -1
- package/core.global.js +1 -1
- package/full.global.js +1 -1
- package/mini.global.js +1 -1
- package/package.json +4 -4
- package/uno.global.js +1 -1
package/attributify.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var se=Object.defineProperty,Sn=Object.defineProperties;var Cn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},T=(t,e)=>Sn(t,Cn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Rn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};var zt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=zn(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)&&!(zt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,zt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function zn(t){if(!t)return;let e=Tn(t);if(e!=null||(e=En(t),e!=null)||(e=jn(t),e!=null)||(e=An(t),e!=null)||(e=On(t),e!=null))return e}function Tn(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 En(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function jn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=tt(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 Vn=new RegExp(`^(${zt.join("|")})\\((.+)\\)$`,"i");function An(t){let e=t.match(Vn);if(!e)return;let[,r,o]=e,n=ue(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function On(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ue(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ue(t){let e=tt(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=tt(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 Mn(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 tt(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=Mn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var P={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"]},Tt=T(R({},P),{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"]}),Et={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"]},jt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},me=["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({},...me.map(t=>({[t.replace(/ /,"-")]:t})),...me.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function et(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vt(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+="\\2c ";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 ht=Vt;function ot(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ot(e)):[t]:[ot(t)]}function Pn(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 xt(t){return t==null?"":Pn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function At(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ot(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=R({},r);return At(r)&&At(o)&&Object.keys(o).forEach(a=>{At(o[a])?a in r?n[a]=Ot(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function rt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?rt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:rt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?rt(o):o;return r}return t}function de(t){return typeof t[0]=="string"}function ge(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function nt(t){return Array.from(new Set(t))}var Un=/^\[(.+?)~?="(.*)"\]$/,_n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function be(t){return t.match(Un)}function at(t=""){return _n.test(t)}function he(t){return typeof t=="function"?{match:t}:t}function Mt(t){return t.length===3}function xe(t){return t!=null}var Pt=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 ye=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ve(t){return ye.lastIndex=0,t.replace(ye,(e,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ke=new Set;function $e(t){ke.has(t)||(console.warn("[unocss]",t),ke.add(t))}function we(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};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 Fn=t=>t.split(/[\s'"`;>=]+/g).filter(at),it={name:"split",order:0,extract({code:t}){return new Set(Fn(t))}};function Wn(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ln={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Ln,...o.map(u=>u.layers),t.layers);function s(u){return nt([...n.flatMap(x=>A(x[u]||[])),...A(r[u]||[])])}let i=s("extractors");i.length||i.push(it),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},d=l.length;l.forEach((u,x)=>{de(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let f=rt([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Ot(u,x),{}));s("extendTheme").forEach(u=>u(f));let b={templates:nt(n.map(u=>{var x;return A((x=u.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(u=>{var x;return A((x=u.autocomplete)==null?void 0:x.extractors)}).flat().sort((u,x)=>(u.order||0)-(x.order||0))};return T(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(he),shortcuts:Wn(s("shortcuts")),extractors:i})}var Se="0.31.0";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=Se;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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 s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}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 s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[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(d=>this.stringifyUtil(d)).filter(xe);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:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
1
|
+
(()=>{var se=Object.defineProperty,Sn=Object.defineProperties;var Cn=Object.getOwnPropertyDescriptors;var bt=Object.getOwnPropertySymbols;var ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ie=(t,e,r)=>e in t?se(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))ce.call(e,r)&&ie(t,r,e[r]);if(bt)for(var r of bt(e))le.call(e,r)&&ie(t,r,e[r]);return t},T=(t,e)=>Sn(t,Cn(e));var pe=(t,e)=>{var r={};for(var o in t)ce.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&bt)for(var o of bt(t))e.indexOf(o)<0&&le.call(t,o)&&(r[o]=t[o]);return r};var Rn=(t,e)=>{for(var r in e)se(t,r,{get:e[r],enumerable:!0})};var zt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=zn(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)&&!(zt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(t,e){let{components:r}=t,{alpha:o,type:n}=t;return o=e!=null?e:o,n=n.toLowerCase(),["hsla","hsl","rgba","rgb"].includes(n)?`${n.replace("a","")}a(${r.join(",")}${o==null?"":`,${o}`})`:(o=o==null?"":` / ${o}`,zt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function zn(t){if(!t)return;let e=Tn(t);if(e!=null||(e=En(t),e!=null)||(e=jn(t),e!=null)||(e=An(t),e!=null)||(e=On(t),e!=null))return e}function Tn(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 En(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function jn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=tt(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 Vn=new RegExp(`^(${zt.join("|")})\\((.+)\\)$`,"i");function An(t){let e=t.match(Vn);if(!e)return;let[,r,o]=e,n=ue(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function On(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ue(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ue(t){let e=tt(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=tt(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 Mn(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 tt(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=Mn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var P={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"]},Tt=T(R({},P),{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"]}),Et={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"]},jt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},me=["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({},...me.map(t=>({[t.replace(/ /,"-")]:t})),...me.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function et(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Vt(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+="\\2c ";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 ht=Vt;function ot(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ot(e)):[t]:[ot(t)]}function Pn(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 xt(t){return t==null?"":Pn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function At(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Ot(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=R({},r);return At(r)&&At(o)&&Object.keys(o).forEach(a=>{At(o[a])?a in r?n[a]=Ot(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function rt(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?rt(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:rt(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?rt(o):o;return r}return t}function de(t){return typeof t[0]=="string"}function ge(t){return typeof t[0]=="string"}function A(t=[]){return Array.isArray(t)?t:[t]}function nt(t){return Array.from(new Set(t))}var Un=/^\[(.+?)~?="(.*)"\]$/,_n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function be(t){return t.match(Un)}function at(t=""){return _n.test(t)}function he(t){return typeof t=="function"?{match:t}:t}function Mt(t){return t.length===3}function xe(t){return t!=null}var Pt=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 ye=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ve(t){return ye.lastIndex=0,t.replace(ye,(e,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ke=new Set;function $e(t){ke.has(t)||(console.warn("[unocss]",t),ke.add(t))}function we(t){let e=function(o){var a;let n=((a=this.__options)==null?void 0:a.sequence)||[];this.__options.sequence=[];for(let s of n){let i=t[s](o);if(i!=null)return i}};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 Fn=t=>t.split(/[\s'"`;>=]+/g).filter(at),it={name:"split",order:0,extract({code:t}){return new Set(Fn(t))}};function Wn(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Ln={shortcuts:-1,default:0};function Ut(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(A),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Ln,...o.map(u=>u.layers),t.layers);function s(u){return nt([...n.flatMap(x=>A(x[u]||[])),...A(r[u]||[])])}let i=s("extractors");i.length||i.push(it),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},d=l.length;l.forEach((u,x)=>{de(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let f=rt([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Ot(u,x),{}));s("extendTheme").forEach(u=>u(f));let b={templates:nt(n.map(u=>{var x;return A((x=u.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(u=>{var x;return A((x=u.autocomplete)==null?void 0:x.extractors)}).flat().sort((u,x)=>(u.order||0)-(x.order||0))};return T(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:d,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(he),shortcuts:Wn(s("shortcuts")),extractors:i})}var Se="0.31.2";var Re=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ut(e,r)}version=Se;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ut(e,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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 s=await a.extract(n);s==null||s.forEach(i=>o.add(i))}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 s=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[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(d=>this.stringifyUtil(d)).filter(xe);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:s=!1}={}){let i=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),d=new Set,f=new Map;await Promise.all(Array.from(i).map(async g=>{var y;if(d.has(g))return;let h=await this.parseToken(g);if(h!=null){d.add(g);for(let w of h){let j=w[3]||"";f.has(j)||f.set(j,[]),f.get(j).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let b={},u=this.config.sortLayers(Array.from(p).sort((g,h)=>{var y,w;return((y=this.config.layers[g])!=null?y:0)-((w=this.config.layers[h])!=null?w:0)||g.localeCompare(h)})),x={};if(n){let g={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(u.map(async h=>{let w=(await Promise.all(this.config.preflights.filter(j=>(j.layer||"default")===h).map(async j=>await j.getCSS(g)))).filter(Boolean).join(l);return[h,w]})))}let k=g=>{if(b[g])return b[g];let h=Array.from(f).sort((y,w)=>{var j,O,L;return((j=this.parentOrders.get(y[0]))!=null?j:0)-((O=this.parentOrders.get(w[0]))!=null?O:0)||((L=y[0])==null?void 0:L.localeCompare(w[0]||""))||0}).map(([y,w])=>{let j=w.length,O=w.filter(m=>{var $;return((($=m[4])==null?void 0:$.layer)||"default")===g}).sort((m,$)=>{var M,H,F;return m[0]-$[0]||(((M=m[4])==null?void 0:M.sort)||0)-(((H=$[4])==null?void 0:H.sort)||0)||((F=m[1])==null?void 0:F.localeCompare($[1]||""))||0}).map(m=>{var $;return[m[1]?Nn(m[1],o):m[1],m[2],!!(($=m[4])!=null&&$.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!O.length)return;let L=O.reverse().map(([m,$,M],H)=>{if(!M&&m&&this.config.mergeSelectors)for(let F=H+1;F<j;F++){let B=O[F];if(B&&!B[2]&&B[0]&&B[1]===$)return B[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${L}${l}}`:L}).filter(Boolean).join(l);return n&&(h=[x[g],h].filter(Boolean).join(l)),b[g]=!s&&h?`/* layer: ${g} */${l}${h}`:h},z=(g=u,h)=>g.filter(y=>!(h!=null&&h.includes(y))).map(y=>k(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:u,getLayers:z,getLayer:k,matched:d}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,i={rawSelector:e,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,i);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.push(p),o.add(l),s=!0;break}}if(!s)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((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},e[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Hn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(e,r,o){r=ot(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${xt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var d,f;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((d=i[2])!=null&&d.internal)))return[[i[0],n,ot(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let b=p-1;b>=0;b--){let u=l[b];if(!u||((f=u[2])==null?void 0:f.internal)&&!o)continue;let[x,k,z]=u,g=a.match(x);if(!g)continue;let h=await k(g,r);if(!h)continue;if(typeof h=="string")return[[b,h,z]];let y=fe(h).filter(w=>w.length);if(y.length)return y.map(w=>[b,n,w,z,s])}}stringifyUtil(e){var b;if(!e)return;if(Mt(e))return[e[0],void 0,e[1],void 0,e[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(e),i=xt(o);if(!i)return;let u=(b=e[3])!=null?b:{},{layer:l,sort:p}=u,d=pe(u,["layer","sort"]),f=T(R({},d),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,f]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(ge(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let i=e.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=ve(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(e,r,o,n={layer:this.config.shortcutsLayer}){var d;let a=new Pt,s=(await Promise.all(nt(o).map(async f=>{let b=await this.parseUtil(f,r,!0);return b||$e(`unmatched utility "${f}" in shortcut "${e[1]}"`),b||[]}))).flat(1).filter(Boolean).sort((f,b)=>f[0]-b[0]),[i,,l]=e,p=[];for(let f of s){if(Mt(f)){p.push([f[0],void 0,f[1],void 0,f[2]]);continue}let{selector:b,entries:u,parent:x,sort:k}=this.applyVariants(f,[...f[4],...l],i);a.getFallback(b,x,[[],f[0]])[0].push([u,!!((d=f[3])!=null&&d.noMerge),k!=null?k:0])}return p.concat(a.map(([f,b],u,x)=>{let k=(g,h,y)=>{let w=Math.max(...y.map(O=>O[1])),j=y.map(O=>O[0]);return(g?[j.flat(1)]:j).map(O=>{let L=xt(O);if(L)return[b,u,L,x,T(R({},n),{noMerge:h,sort:w})]})};return[[f.filter(([,g])=>g).map(([g,,h])=>[g,h]),!0],[f.filter(([,g])=>!g).map(([g,,h])=>[g,h]),!1]].map(([g,h])=>[...k(!1,h,g.filter(([y])=>y.some(w=>w[0]===E))),...k(!0,h,g.filter(([y])=>y.every(w=>w[0]!==E)))])}).flat(2).filter(Boolean))}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function ze(t,e){return new Re(t,e)}var Te=/ \$\$ /,Bn=t=>t.match(Te);function Nn(t,e){return Bn(t)?t.replace(Te,e?` ${e} `:" "):e?`${e} ${t}`:t}var Ce=/^\[(.+?)(~?=)"(.*)"\]$/;function Hn(t){return Ce.test(t)?t.replace(Ce,(e,r,o,n)=>`[${ht(r)}${o}"${ht(n)}"]`):`.${ht(t)}`}var Wt={};Rn(Wt,{auto:()=>Xn,bracket:()=>ta,bracketOfColor:()=>ea,bracketOfLength:()=>ra,cssvar:()=>oa,degree:()=>aa,fraction:()=>Qn,global:()=>ia,number:()=>Zn,numberWithUnit:()=>Gn,percent:()=>Jn,properties:()=>sa,px:()=>qn,rem:()=>Yn,time:()=>na});var In=["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"],_t=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Kn=/^(-?[0-9.]+)$/i,Ee=/^(px)$/i;function W(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Gn(t){let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${W(n)}${o}`}function Xn(t){if(t==="auto"||t==="a")return"auto"}function Yn(t){if(t.match(Ee))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n/4)}rem`}function qn(t){if(t.match(Ee))return`1${t}`;let e=t.match(_t);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${W(n)}${o}`:`${W(n)}px`}function Zn(t){if(!Kn.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return W(e)}function Jn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${W(e/100)}`}function Qn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${W(o*100)}%`}function Ft(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,o=t.match(/^\[(color|length):/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 ta(t){return Ft(t)}function ea(t){return Ft(t,"color")}function ra(t){return Ft(t,"length")}function oa(t){if(t.match(/^\$\S/))return`var(--${Vt(t.slice(1))})`}function na(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?`${W(n)}${o}`:`${W(n)}ms`}function aa(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?`${W(n)}${o}`:`${W(n)}deg`}function ia(t){if(["inherit","initial","revert","unset"].includes(t))return t}function sa(t){for(let e of t.split(","))if(!In.includes(e))return;return t}var c=we(Wt);var D=(t,e)=>{let r=new RegExp(`^${et(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},_=(t,e)=>{let r=new RegExp(`^${et(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:e}},autocomplete:`${t}:`}};var C=t=>([e,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return P[r].map(l=>[`${t}${l}`,a])},Lt=(t,e)=>{var r;return(r=t.colors)==null?void 0:r[e.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(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),[s]=a;if(!s)return;let i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let d="DEFAULT";if(!i){let f,[b]=a.slice(-1);b.match(/^\d+$/)?(d=b,f=Lt(e,a.slice(0,-1))):(f=Lt(e,a),!f&&a.length<=2&&([,d=d]=a,f=Lt(e,[s]))),typeof f=="string"?i=f:d&&f&&(i=f[d])}return{opacity:n,name:s,no:d,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},S=(t,e)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[t]:U(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:U(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(t,e)=>{let r=[];t=A(t);for(let o=0;o<t.length;o++){let n=tt(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${U(a)})`)}return r},yt=(t,e)=>{var r;return t!=null&&!!((r=Y(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},je=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var Ve=[[/^(?: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,s,i,l,p,d,f,b,u;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let x=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",k=(f=(d=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:d[t])!=null?f:"linear",z=(u=(b=e.animation)==null?void 0:b.properties)==null?void 0:u[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${x} ${k} infinite`},z))}`}return{animation:c.bracket.cssvar(t)}},{autocomplete:"animate-$animation.keyframes"}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=c.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:c.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:c.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:c.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=c.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 Dt=t=>([,e],{theme:r})=>{var l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=U(s,n):i=U(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":i,"--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), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},Ae=[[/^bg-(.*)$/,([,t])=>{if(/^\[url\((.+)\)\]$/.test(t))return{"--un-url":`${c.bracket(t)}`,"background-image":"var(--un-url)"};if(/^\[length:(.+)\]$/.test(t)&&c.bracketOfLength(t)!=null)return{"background-size":c.bracketOfLength(t).split(" ").map(e=>c.fraction.auto.px.cssvar(e)).join(" ")}}],[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.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":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Dt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Dt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Dt("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":c.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":c.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]}`:c.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-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Oe=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,t,e])=>e!=null?{"list-style-position":e,"list-style-type":t}:{"list-style-type":t},{autocomplete:["list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)","list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)-(outside|inside)"]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Me=[[/^accent-(.+)$/,S("accent-color","accent"),{autocomplete:"accent-$colors"}],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)}),{autocomplete:["accent-(op|opacity)","accent-(op|opacity)-<percent>"]}]],Pe=[[/^caret-(.+)$/,S("caret-color","caret"),{autocomplete:"caret-$colors"}],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)}),{autocomplete:["caret-(op|opacity)","caret-(op|opacity)-<percent>"]}]],Ue=[["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"]]]],_e=[["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"}]],Fe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var We=[[/^columns-(.+)$/,([,t])=>({columns:c.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 ca=/@media \(min-width: (.+)\)/,Le=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=A(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}]],De=[[/^(?:(\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 la={mid:"middle",base:"baseline",btm:"bottom"},Be=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":la[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Ne=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var He=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,S("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Ie=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],pa=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ke=[[/^will-change-(.+)/,([,t])=>({"will-change":pa(t)})]];var Ge=[[/^(?:border|b)()(?:-(.+))?$/,st,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,st],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,st],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,st],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,st],[/^(?: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-)?(.+)$/,ct,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ct],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ct],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,lt,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,lt],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,lt],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,pt,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,pt],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,pt],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ua=t=>([,e],r)=>{var i,l;let o=Y(e,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${t}-color`]:U(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)}:{"--un-border-opacity":(l=s.alpha)!=null?l:1,[`--un-border${t}-opacity`]:"var(--un-border-opacity)",[`border${t}-color`]:U(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function st(t,e){let r=J(t,e);if(r)return[...r,["border-style","solid"]]}function J([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in P&&o!=null)return P[t].map(s=>[`border${s}-width`,o])}function ct([,t="",e],{theme:r}){if(t in P&&yt(e,r))return Object.assign({},...P[t].map(o=>ua(o)(["",e],r)))}function lt([,t="",e]){let r=c.bracket.percent(e);if(t in P&&r!=null)return P[t].map(o=>[`--un-border${o}-opacity`,r])}function pt([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||c.bracket.cssvar.fraction.rem(e||"1");if(t in Et&&o!=null)return Et[t].map(a=>[`border${a}-radius`,o])}var Xe=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Ye=[[/^(?:text|color|c)-(.+)$/,S("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],qe=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var vt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ze=t=>{var e;return(e=c.properties(t))!=null?e:vt[t]},Je=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ze(t):[vt.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(o){let s=(a=(n=r.duration)==null?void 0:n[e||"DEFAULT"])!=null?a:c.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}},{autocomplete:`transition-(${Object.keys(vt).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar.time(t)}},{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:c.bracket.cssvar(t)}},{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||Ze(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(vt)].join("|")})`]}],["transition-none",{transition:"none"}]];var Qe=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:c.bracket(t)!=null?c.bracket(t).split(" ").map(e=>{var r;return(r=c.cssvar.fraction(e))!=null?r:e}).join(" "):c.cssvar.fraction(t)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink$/,()=>({"flex-shrink":1})],[/^(?:flex-)?shrink-0$/,()=>({"flex-shrink":0})],[/^(?:flex-)?grow$/,()=>({"flex-grow":1})],[/^(?:flex-)?grow-0$/,()=>({"flex-grow":0})],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>{var r,o;return{"flex-basis":(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}}],["flex-row",{"flex-direction":"row"}],["flex-row-reverse",{"flex-direction":"row-reverse"}],["flex-col",{"flex-direction":"column"}],["flex-col-reverse",{"flex-direction":"column-reverse"}],["flex-wrap",{"flex-wrap":"wrap"}],["flex-wrap-reverse",{"flex-wrap":"wrap-reverse"}],["flex-nowrap",{"flex-wrap":"nowrap"}]];var tr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},er=[[/^font-(.+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.bracket.cssvar.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=A((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":c.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=A((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:c.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":tr[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(tr).join("|")})`}],[/^(?:font-)?(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||c.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],rr=[[/^tab(?:-(.+))?$/,([,t])=>{let e=c.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],or=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.global.fraction.rem(t)}},{autocomplete:"indent-$textIndent"}]],nr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||c.bracket.cssvar.px(t)}},{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,S("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],ar=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,S("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var ir={"":"",x:"column-",y:"row-"},sr=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${ir[t]}gap`]:o,[`${ir[t]}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 N=t=>t.replace("col","column"),Bt=t=>t[0]==="r"?"Row":"Column",ma=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Bt(t)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},lr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-${N(t)}`]:(n=(o=r[`grid${Bt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${N(t)}`]:"1/-1"};let r=c.bracket.number(e);if(r!=null)return{[`grid-${N(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-${N(t)}-start`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-end`]:(r=c.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${N(t)}`]:ma(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":c.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-((?:row|col)(?:-dense)?)$/,([,t])=>({"grid-auto-flow":N(t).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>{var o,n;return{[`grid-template-${N(t)}`]:(n=(o=r[`gridTemplate${Bt(t)}`])==null?void 0:o[e])!=null?n:c.bracket.cssvar(e)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${N(t)}`]:`repeat(${e},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var kt=["auto","hidden","clip","visible","scroll"],pr=[[/^(?:overflow|of)-(.+)$/,([,t])=>kt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${kt.join("|")}`,`(overflow|of)-(x|y)-${kt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>kt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var ur=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],mr=[["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"}]],fr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],dr=[["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"}]],gr=[["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 Nt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:c.bracket.cssvar.auto.fraction.rem(t)}function $t([,t,e],r){let o=Nt(e,r);if(o!=null&&t in Tt)return Tt[t].map(n=>[n.slice(1),o])}var br=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Nt(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])-(.+)$/,$t],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,$t],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,$t],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,$t],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Nt(e,r)})]],hr=[["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"}]],xr=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],yr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",vr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],kr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],$r=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],wr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Sr=[["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"}]],Rr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var zr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Tr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Er=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],jr=[["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 Vr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:c.px(t||"1");if(r)return[{[E]:"","--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:c.bracket.cssvar.px(t)}},{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-offset-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,S("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":c.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,S("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var Ar=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":v,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,S("--un-shadow-color","shadow"),{autocomplete:"shadow-$colors"}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var fa={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ut(t,e){return`${t||""}${fa[e]}`}function Or(t,e,r,o){var s;let n=ut(t,e).replace(/-(\w)/g,(i,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 c.bracket.cssvar.auto.fraction.rem(o)}var Mr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[ut(t,e)]:Or(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})=>({[ut(t,e)]:Or(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{[ut(t,e)]:(n=je(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{[ut(t,e)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function da(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.auto.number(t)}var Pr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":da(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Ur=[[/^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>"}]],_r=[[/^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 ga={"--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(" ")},Dr={"--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(" ")},Q=T(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},Dr),{[E]:""}),Br=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=V[t])!=null?e:c.bracket.cssvar(t)}},{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=c.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=c.bracket.cssvar(t))!=null?r:t.length>=3?V[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Fr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Fr],[/^(?:transform-)?rotate-()(.+)$/,Lr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Lr],[/^(?:transform-)?skew-([xy])-(.+)$/,ba],[/^(?:transform-)?scale-()(.+)$/,Wr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Wr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",ga],["transform-cpu",Dr],["transform-none",{transform:"none"}]];function Fr([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:c.bracket.cssvar.fraction.rem(e);if(o!=null)return[Q,[...jt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Wr([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[Q,[...jt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Lr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[Q,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Q,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ba([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[Q,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ha={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"},Nr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ha[t];if(r)return{[r]:c.cssvar(e)}}]],Hr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Ir=[[/^(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 mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var N=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,_=(n,t)=>{for(var e in t||(t={}))W.call(t,e)&&N(n,e,t[e]);if(k)for(var e of k(t))Z.call(t,e)&&N(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)W.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&k)for(var r of k(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=_({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function O(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s==="~"?e:s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return O(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(O),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return j([...i.flatMap(h=>O(h[u]||[])),...O(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,h)=>(u.order||0)-(h.order||0));let l=o("rules"),f={},C=l.length;l.forEach((u,h)=>{X(u)&&(f[u[0]]=[h,u[1],u[2]],delete l[h])});let g=v([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,h)=>z(u,h),{}));o("extendTheme").forEach(u=>u(g));let x={templates:j(i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return V(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:g,rulesSize:C,rulesDynamic:l,rulesStaticMap:f,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:x,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.31.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var N=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,_=(n,t)=>{for(var e in t||(t={}))W.call(t,e)&&N(n,e,t[e]);if(k)for(var e of k(t))Z.call(t,e)&&N(n,e,t[e]);return n},V=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)W.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&k)for(var r of k(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function P(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>P(t)):[n]:[P(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=_({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function v(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:v(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?v(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function O(n=[]){return Array.isArray(n)?n:[n]}function j(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s==="~"?e:s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return O(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(O),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return j([...i.flatMap(h=>O(h[u]||[])),...O(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,h)=>(u.order||0)-(h.order||0));let l=o("rules"),f={},C=l.length;l.forEach((u,h)=>{X(u)&&(f[u[0]]=[h,u[1],u[2]],delete l[h])});let g=v([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,h)=>z(u,h),{}));o("extendTheme").forEach(u=>u(g));let x={templates:j(i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.templates)}).flat()),extractors:i.map(u=>{var h;return O((h=u.autocomplete)==null?void 0:h.extractors)}).flat().sort((u,h)=>(u.order||0)-(h.order||0))};return V(_({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:g,rulesSize:C,rulesDynamic:l,rulesStaticMap:f,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:x,variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.31.2";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=new Set){let i={get original(){return t},code:t,id:e};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(a=>r.add(a))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...i)=>this.constructCustomCSS(r,...i),variantMatch:e};return r}async parseToken(t,e){var l;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`;if(this._cache.has(r))return this._cache.get(r);let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(r,null);return}let s=this.matchVariants(t,i);if(!s||this.isBlocked(s[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||s[0],s[1],s[2],s[3]]),a=this.expandShortcut(o.currentSelector,o);if(a){let f=await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]);if(f!=null&&f.length)return this._cache.set(r,f),f}else{let f=(l=await this.parseUtil(o.variantMatch,o))==null?void 0:l.map(C=>this.stringifyUtil(C)).filter(rt);if(f!=null&&f.length)return this._cache.set(r,f),f}this._cache.set(r,null)}async generate(t="",{id:e,scope:r,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(p=>a.add(p));let l=o?"":`
|
|
2
2
|
`,f=new Set(["default"]),C=new Set,g=new Map;await Promise.all(Array.from(a).map(async p=>{var m;if(C.has(p))return;let d=await this.parseToken(p);if(d!=null){C.add(p);for(let S of d){let b=S[3]||"";g.has(b)||g.set(b,[]),g.get(b).push(S),(m=S[4])!=null&&m.layer&&f.add(S[4].layer)}}})),i&&this.config.preflights.forEach(p=>{p.layer&&f.add(p.layer)});let x={},u=this.config.sortLayers(Array.from(f).sort((p,d)=>{var m,S;return((m=this.config.layers[p])!=null?m:0)-((S=this.config.layers[d])!=null?S:0)||p.localeCompare(d)})),h={};if(i){let p={generator:this,theme:this.config.theme};h=Object.fromEntries(await Promise.all(u.map(async d=>{let S=(await Promise.all(this.config.preflights.filter(b=>(b.layer||"default")===d).map(async b=>await b.getCSS(p)))).filter(Boolean).join(l);return[d,S]})))}let U=p=>{if(x[p])return x[p];let d=Array.from(g).sort((m,S)=>{var b,R,A;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((R=this.parentOrders.get(S[0]))!=null?R:0)||((A=m[0])==null?void 0:A.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,R=S.filter(c=>{var y;return(((y=c[4])==null?void 0:y.layer)||"default")===p}).sort((c,y)=>{var w,M,E;return c[0]-y[0]||(((w=c[4])==null?void 0:w.sort)||0)-(((M=y[4])==null?void 0:M.sort)||0)||((E=c[1])==null?void 0:E.localeCompare(y[1]||""))||0}).map(c=>{var y;return[c[1]?$t(c[1],r):c[1],c[2],!!((y=c[4])!=null&&y.noMerge)]}).map(c=>[c[0]==null?c[0]:[c[0]],c[1],c[2]]);if(!R.length)return;let A=R.reverse().map(([c,y,w],M)=>{if(!w&&c&&this.config.mergeSelectors)for(let E=M+1;E<b;E++){let $=R[E];if($&&!$[2]&&$[0]&&$[1]===y)return $[0].push(...c),null}return c?`${[...new Set(c)].join(`,${l}`)}{${y}}`:y}).filter(Boolean).reverse().join(l);return m?`${m}{${l}${A}${l}}`:A}).filter(Boolean).join(l);return i&&(d=[h[p],d].filter(Boolean).join(l)),x[p]=!o&&d?`/* layer: ${p} */${l}${d}`:d},T=(p=u,d)=>p.filter(m=>!(d!=null&&d.includes(m))).map(m=>U(m)||"").filter(Boolean).join(l);return{get css(){return T()},layers:u,getLayers:T,getLayer:U,matched:C}}matchVariants(t,e){let r=new Set,i=[],s=e||t,o=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let l of this.config.variants){if(!l.multiPass&&r.has(l))continue;let f=l.match(s,a);if(!!f){typeof f=="string"&&(f={matcher:f}),s=f.matcher,Array.isArray(f.parent)&&this.parentOrders.set(f.parent[0],f.parent[1]),i.push(f),r.add(l),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i,r]}applyVariants(t,e=t[4],r=t[1]){let i=[...e].sort((a,l)=>(a.order||0)-(l.order||0)),s=i.reduce((a,l)=>{var f;return((f=l.body)==null?void 0:f.call(l,a))||a},t[2]),o={selector:i.reduce((a,l)=>{var f;return((f=l.selector)==null?void 0:f.call(l,a,s))||a},Tt(r)),entries:s,parent:i.reduce((a,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||a,void 0),layer:i.reduce((a,l)=>l.layer||a,void 0),sort:i.reduce((a,l)=>l.sort||a,void 0)};for(let a of this.config.postprocess)a(o);return o}constructCustomCSS(t,e,r){e=P(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,r||t.rawSelector,e,void 0,t.variantHandlers]),a=`${i}{${K(s)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,e,r=!1){var C,g;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(r||!((C=a[2])!=null&&C.internal)))return[[a[0],i,P(a[1]),a[2],o]];e.variantHandlers=o;let{rulesDynamic:l,rulesSize:f}=this.config;for(let x=f-1;x>=0;x--){let u=l[x];if(!u||((g=u[2])==null?void 0:g.internal)&&!r)continue;let[h,U,T]=u,p=s.match(h);if(!p)continue;let d=await U(p,e);if(!d)continue;if(typeof d=="string")return[[x,d,T]];let m=Q(d).filter(S=>S.length);if(m.length)return m.map(S=>[x,i,S,T,o])}}stringifyUtil(t){var x;if(!t)return;if(G(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:r,parent:i,layer:s,sort:o}=this.applyVariants(t),a=K(r);if(!a)return;let u=(x=t[3])!=null?x:{},{layer:l,sort:f}=u,C=J(u,["layer","sort"]),g=V(_({},C),{layer:s!=null?s:l,sort:o!=null?o:f});return[t[0],e,a,i,g]}expandShortcut(t,e,r=3){if(r===0)return;let i,s;for(let o of this.config.shortcuts)if(Y(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let a=t.match(o[0]);if(a&&(s=o[1](a,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=it(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var a;return((a=this.expandShortcut(o,e,r-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,r,i={layer:this.config.shortcutsLayer}){var C;let s=new B,o=(await Promise.all(j(r).map(async g=>{let x=await this.parseUtil(g,e,!0);return x||ot(`unmatched utility "${g}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((g,x)=>g[0]-x[0]),[a,,l]=t,f=[];for(let g of o){if(G(g)){f.push([g[0],void 0,g[1],void 0,g[2]]);continue}let{selector:x,entries:u,parent:h,sort:U}=this.applyVariants(g,[...g[4],...l],a);s.getFallback(x,h,[[],g[0]])[0].push([u,!!((C=g[3])!=null&&C.noMerge),U!=null?U:0])}return f.concat(s.map(([g,x],u,h)=>{let U=(p,d,m)=>{let S=Math.max(...m.map(R=>R[1])),b=m.map(R=>R[0]);return(p?[b.flat(1)]:b).map(R=>{let A=K(R);if(A)return[x,u,A,h,V(_({},i),{noMerge:d,sort:S})]})};return[[g.filter(([,p])=>p).map(([p,,d])=>[p,d]),!0],[g.filter(([,p])=>!p).map(([p,,d])=>[p,d]),!1]].map(([p,d])=>[...U(!1,d,p.filter(([m])=>m.some(S=>S[0]===F))),...U(!0,d,p.filter(([m])=>m.every(S=>S[0]!==F)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(n,t){return new lt(n,t)}var ft=/ \$\$ /,At=n=>n.match(ft);function $t(n,t){return At(n)?n.replace(ft,t?` ${t} `:" "):t?`${t} ${n}`:n}var ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Tt(n){return ct.test(n)?n.replace(ct,(t,e,r,i)=>`[${D(e)}${r}"${D(i)}"]`):`.${D(n)}`}var Mt=n=>n.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=n=>n.charAt(0).toUpperCase()+n.slice(1),dt=n=>n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(n){let t={};function e(r){let i=t[r];if(i)return i;let s=Mt(r);if(s!=="filter"&&s in n)return t[r]=dt(s);s=pt(s);for(let o=0;o<gt.length;o++){let a=`${gt[o]}${s}`;if(a in n)return t[r]=dt(pt(a))}return r}return({entries:r})=>r.forEach(i=>{i[0].startsWith("--")||(i[0]=e(i[0]))})}function q(n={}){var R,A;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,r=Object.assign(n.defaults||{},e);if(e!=null&&e.autoPrefix){let c=r.postprocess;c||(c=[]),Array.isArray(c)||(c=[c]),c.unshift(ht(document.createElement("div").style)),r.postprocess=c}(R=e==null?void 0:e.configResolved)==null||R.call(e,t,r);let i,s=!0,o,a=ut(t,r),l=new Set,f,C=[],g=()=>new Promise(c=>{C.push(c),f!=null&&clearTimeout(f),f=setTimeout(()=>u().then(()=>{let y=C;C=[],y.forEach(w=>w())}),0)});function x(c=document.body){if(c.nodeType!==1)return;let y=c;y.hasAttribute("un-cloak")&&y.removeAttribute("un-cloak"),y.querySelectorAll("[un-cloak]").forEach(w=>{w.removeAttribute("un-cloak")})}async function u(){let c=await a.generate(l);i||(i=document.createElement("style"),document.documentElement.prepend(i)),i.innerHTML=c.css,l=c.matched}async function h(c){let y=l.size;await a.applyExtractors(c,void 0,l),y!==l.size&&await g()}async function U(){let c=document.body&&document.body.outerHTML;c&&(await h(c),x())}let T=new MutationObserver(c=>{s||c.forEach(async y=>{if(y.target.nodeType!==1)return;let w=y.target;if(w!==i)if(y.type==="childList")y.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let E=M;o&&!o(E)||(await h(E.outerHTML),x(E))});else{if(o&&!o(w))return;if(y.attributeName!=="un-cloak"){let M=Array.from(w.attributes).map($=>$.value?`${$.name}="${$.value}"`:$.name).join(" "),E=`<${w.tagName.toLowerCase()} ${M}>`;await h(E)}w.hasAttribute("un-cloak")&&w.removeAttribute("un-cloak")}})}),p=!1;function d(){if(p)return;let c=document.documentElement||document.body;!c||(T.observe(c,{childList:!0,subtree:!0,attributes:!0}),p=!0)}function m(){U(),d()}function S(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",m):m()}let b=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(c){typeof c!="string"&&(c.forEach(y=>l.add(y)),c=""),await h(c)},extractAll:U,inspect(c){o=c},toggleObserver(c){c===void 0?s=!s:s=!!c,!p&&!s&&S()}};((A=e==null?void 0:e.ready)==null?void 0:A.call(e,b))!==!1&&(s=!1,S())}q();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var lt=Object.defineProperty,En=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable;var ct=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))pt.call(t,r)&&ct(e,r,t[r]);if(he)for(var r of he(t))ut.call(t,r)&&ct(e,r,t[r]);return e},V=(e,t)=>En(e,jn(t));var mt=(e,t)=>{var r={};for(var o in e)pt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&he)for(var o of he(e))t.indexOf(o)<0&&ut.call(e,o)&&(r[o]=e[o]);return r};var Vn=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})};function ee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(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+="\\2c ";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 xe=Te;function re(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function dt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>re(t)):[e]:[re(e)]}function An(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?"":An(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ee(e){return e&&typeof e=="object"&&!Array.isArray(e)}function oe(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({},r);return Ee(r)&&Ee(o)&&Object.keys(o).forEach(a=>{Ee(o[a])?a in r?n[a]=oe(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function te(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?te(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:te(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?te(o):o;return r}return e}function ft(e){return typeof e[0]=="string"}function gt(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}var On=/^\[(.+?)~?="(.*)"\]$/,Mn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,A="$$shortcut-no-merge";function bt(e){return e.match(On)}function ae(e=""){return Mn.test(e)}function ht(e){return typeof e=="function"?{match:e}:e}function je(e){return e.length===3}function xt(e){return e!=null}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 yt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function vt(e){return yt.lastIndex=0,e.replace(yt,(t,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var kt=new Set;function $t(e){kt.has(e)||(console.warn("[unocss]",e),kt.add(e))}function wt(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 i=e[s](o);if(i!=null)return i}};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 Pn=e=>e.split(/[\s'"`;>=]+/g).filter(ae),ie={name:"split",order:0,extract({code:e}){return new Set(Pn(e))}};function Un(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var _n={shortcuts:-1,default:0};function Ae(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(d=>d.enforce==="pre"),...o.filter(d=>!d.enforce),...o.filter(d=>d.enforce==="post")],a=Object.assign(_n,...o.map(d=>d.layers),e.layers);function s(d){return ne([...n.flatMap(x=>O(x[d]||[])),...O(r[d]||[])])}let i=s("extractors");i.length||i.push(ie),i.sort((d,x)=>(d.order||0)-(x.order||0));let l=s("rules"),p={},m=l.length;l.forEach((d,x)=>{ft(d)&&(p[d[0]]=[x,d[1],d[2]],delete l[x])});let u=te([...n.map(d=>d.theme||{}),r.theme||{}].reduce((d,x)=>oe(d,x),{}));s("extendTheme").forEach(d=>d(u));let b={templates:ne(n.map(d=>{var x;return O((x=d.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(d=>{var x;return O((x=d.autocomplete)==null?void 0:x.extractors)}).flat().sort((d,x)=>(d.order||0)-(x.order||0))};return V(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(ht),shortcuts:Un(s("shortcuts")),extractors:i})}var St="0.31.
|
|
1
|
+
(()=>{var lt=Object.defineProperty,En=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable;var ct=(e,t,r)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))pt.call(t,r)&&ct(e,r,t[r]);if(he)for(var r of he(t))ut.call(t,r)&&ct(e,r,t[r]);return e},V=(e,t)=>En(e,jn(t));var mt=(e,t)=>{var r={};for(var o in e)pt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&he)for(var o of he(e))t.indexOf(o)<0&&ut.call(e,o)&&(r[o]=e[o]);return r};var Vn=(e,t)=>{for(var r in t)lt(e,r,{get:t[r],enumerable:!0})};function ee(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(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+="\\2c ";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 xe=Te;function re(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function dt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>re(t)):[e]:[re(e)]}function An(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?"":An(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ee(e){return e&&typeof e=="object"&&!Array.isArray(e)}function oe(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({},r);return Ee(r)&&Ee(o)&&Object.keys(o).forEach(a=>{Ee(o[a])?a in r?n[a]=oe(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function te(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?te(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:te(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?te(o):o;return r}return e}function ft(e){return typeof e[0]=="string"}function gt(e){return typeof e[0]=="string"}function O(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}var On=/^\[(.+?)~?="(.*)"\]$/,Mn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,A="$$shortcut-no-merge";function bt(e){return e.match(On)}function ae(e=""){return Mn.test(e)}function ht(e){return typeof e=="function"?{match:e}:e}function je(e){return e.length===3}function xt(e){return e!=null}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 yt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function vt(e){return yt.lastIndex=0,e.replace(yt,(t,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var kt=new Set;function $t(e){kt.has(e)||(console.warn("[unocss]",e),kt.add(e))}function wt(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 i=e[s](o);if(i!=null)return i}};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 Pn=e=>e.split(/[\s'"`;>=]+/g).filter(ae),ie={name:"split",order:0,extract({code:e}){return new Set(Pn(e))}};function Un(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var _n={shortcuts:-1,default:0};function Ae(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(d=>d.enforce==="pre"),...o.filter(d=>!d.enforce),...o.filter(d=>d.enforce==="post")],a=Object.assign(_n,...o.map(d=>d.layers),e.layers);function s(d){return ne([...n.flatMap(x=>O(x[d]||[])),...O(r[d]||[])])}let i=s("extractors");i.length||i.push(ie),i.sort((d,x)=>(d.order||0)-(x.order||0));let l=s("rules"),p={},m=l.length;l.forEach((d,x)=>{ft(d)&&(p[d[0]]=[x,d[1],d[2]],delete l[x])});let u=te([...n.map(d=>d.theme||{}),r.theme||{}].reduce((d,x)=>oe(d,x),{}));s("extendTheme").forEach(d=>d(u));let b={templates:ne(n.map(d=>{var x;return O((x=d.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(d=>{var x;return O((x=d.autocomplete)==null?void 0:x.extractors)}).flat().sort((d,x)=>(d.order||0)-(x.order||0))};return V(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:d=>d},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(ht),shortcuts:Un(s("shortcuts")),extractors:i})}var St="0.31.2";var Rt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ae(t,r)}version=St;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ae(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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(i=>o.add(i))}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]]),i=this.expandShortcut(s.currentSelector,s);if(i){let p=await this.stringifyShortcuts(s.variantMatch,s,i[0],i[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(m=>this.stringifyUtil(m)).filter(xt);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 i=typeof t=="string"?await this.applyExtractors(t,r):t;a&&this.config.safelist.forEach(g=>i.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),m=new Set,u=new Map;await Promise.all(Array.from(i).map(async g=>{var y;if(m.has(g))return;let h=await this.parseToken(g);if(h!=null){m.add(g);for(let w of h){let T=w[3]||"";u.has(T)||u.set(T,[]),u.get(T).push(w),(y=w[4])!=null&&y.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let b={},d=this.config.sortLayers(Array.from(p).sort((g,h)=>{var y,w;return((y=this.config.layers[g])!=null?y:0)-((w=this.config.layers[h])!=null?w:0)||g.localeCompare(h)})),x={};if(n){let g={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(d.map(async h=>{let w=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===h).map(async T=>await T.getCSS(g)))).filter(Boolean).join(l);return[h,w]})))}let v=g=>{if(b[g])return b[g];let h=Array.from(u).sort((y,w)=>{var T,E,U;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((E=this.parentOrders.get(w[0]))!=null?E:0)||((U=y[0])==null?void 0:U.localeCompare(w[0]||""))||0}).map(([y,w])=>{let T=w.length,E=w.filter(f=>{var $;return((($=f[4])==null?void 0:$.layer)||"default")===g}).sort((f,$)=>{var j,D,P;return f[0]-$[0]||(((j=f[4])==null?void 0:j.sort)||0)-(((D=$[4])==null?void 0:D.sort)||0)||((P=f[1])==null?void 0:P.localeCompare($[1]||""))||0}).map(f=>{var $;return[f[1]?Wn(f[1],o):f[1],f[2],!!(($=f[4])!=null&&$.noMerge)]}).map(f=>[f[0]==null?f[0]:[f[0]],f[1],f[2]]);if(!E.length)return;let U=E.reverse().map(([f,$,j],D)=>{if(!j&&f&&this.config.mergeSelectors)for(let P=D+1;P<T;P++){let F=E[P];if(F&&!F[2]&&F[0]&&F[1]===$)return F[0].push(...f),null}return f?`${[...new Set(f)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${U}${l}}`:U}).filter(Boolean).join(l);return n&&(h=[x[g],h].filter(Boolean).join(l)),b[g]=!s&&h?`/* layer: ${g} */${l}${h}`:h},z=(g=d,h)=>g.filter(y=>!(h!=null&&h.includes(y))).map(y=>v(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:d,getLayers:z,getLayer:v,matched:m}}matchVariants(t,r){let o=new Set,n=[],a=r||t,s=!1,i={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,i);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.push(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((i,l)=>(i.order||0)-(l.order||0)),a=n.reduce((i,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,i))||i},t[2]),s={selector:n.reduce((i,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,i,a))||i},Dn(o)),entries:a,parent:n.reduce((i,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||i,void 0),layer:n.reduce((i,l)=>l.layer||i,void 0),sort:n.reduce((i,l)=>l.sort||i,void 0)};for(let i of this.config.postprocess)i(s);return s}constructCustomCSS(t,r,o){r=re(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),i=`${n}{${ye(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(t,r,o=!1){var m,u;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((m=i[2])!=null&&m.internal)))return[[i[0],n,re(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let b=p-1;b>=0;b--){let d=l[b];if(!d||((u=d[2])==null?void 0:u.internal)&&!o)continue;let[x,v,z]=d,g=a.match(x);if(!g)continue;let h=await v(g,r);if(!h)continue;if(typeof h=="string")return[[b,h,z]];let y=dt(h).filter(w=>w.length);if(y.length)return y.map(w=>[b,n,w,z,s])}}stringifyUtil(t){var b;if(!t)return;if(je(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(t),i=ye(o);if(!i)return;let d=(b=t[3])!=null?b:{},{layer:l,sort:p}=d,m=mt(d,["layer","sort"]),u=V(R({},m),{layer:a!=null?a:l,sort:s!=null?s:p});return[t[0],r,i,n,u]}expandShortcut(t,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(gt(s)){if(s[0]===t){n=n||s[2],a=s[1];break}}else{let i=t.match(s[0]);if(i&&(a=s[1](i,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=vt(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var i;return((i=this.expandShortcut(s,r,o-1))==null?void 0:i[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var m;let a=new Ve,s=(await Promise.all(ne(o).map(async u=>{let b=await this.parseUtil(u,r,!0);return b||$t(`unmatched utility "${u}" in shortcut "${t[1]}"`),b||[]}))).flat(1).filter(Boolean).sort((u,b)=>u[0]-b[0]),[i,,l]=t,p=[];for(let u of s){if(je(u)){p.push([u[0],void 0,u[1],void 0,u[2]]);continue}let{selector:b,entries:d,parent:x,sort:v}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(b,x,[[],u[0]])[0].push([d,!!((m=u[3])!=null&&m.noMerge),v!=null?v:0])}return p.concat(a.map(([u,b],d,x)=>{let v=(g,h,y)=>{let w=Math.max(...y.map(E=>E[1])),T=y.map(E=>E[0]);return(g?[T.flat(1)]:T).map(E=>{let U=ye(E);if(U)return[b,d,U,x,V(R({},n),{noMerge:h,sort:w})]})};return[[u.filter(([,g])=>g).map(([g,,h])=>[g,h]),!0],[u.filter(([,g])=>!g).map(([g,,h])=>[g,h]),!1]].map(([g,h])=>[...v(!1,h,g.filter(([y])=>y.some(w=>w[0]===A))),...v(!0,h,g.filter(([y])=>y.every(w=>w[0]!==A)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function zt(e,t){return new Rt(e,t)}var Tt=/ \$\$ /,Ln=e=>e.match(Tt);function Wn(e,t){return Ln(e)?e.replace(Tt,t?` ${t} `:" "):t?`${t} ${e}`:e}var Ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Dn(e){return Ct.test(e)?e.replace(Ct,(t,r,o,n)=>`[${xe(r)}${o}"${xe(n)}"]`):`.${xe(e)}`}var Oe=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Et=(e={})=>{var o,n;let t=(o=e.prefix)!=null?o:"un-",r=(n=e.prefixedOnly)!=null?n:!1;return a=>{let s=bt(a);if(!s)return;let i=s[1];if(i.startsWith(t))i=i.slice(t.length);else if(r)return;let l=s[2],[,p="",m=l]=l.match(Oe)||[];return m==="~"||!m?`${p}${i}`:`${p}${i}-${m}`}};var Nn=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Bn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,jt=/[\s'"`;>]+/,Vt={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Nn),o,n=0;for(let v of r){let[,z,g]=v,h=v.index+z.length;if(t>h&&t<=h+g.length){n=h,o=g;break}}if(!o)return null;let a=o.matchAll(Bn),s=0,i,l;for(let v of a){let[z,g,h]=v,y=n+v.index;if(t>y&&t<=y+z.length){s=y,i=g,l=h==null?void 0:h.slice(1);break}}if(!i||i==="class"||i==="className")return null;if(l===void 0)return{extracted:i,resolveReplacement(v){return{start:s,end:s+i.length,replacement:v}}};let p=s+i.length+2,m=jt.exec(l),u=0,b;for(;m;){let[v]=m;if(t>p+u&&t<=p+u+m.index){b=l.slice(u,u+m.index);break}u+=m.index+v.length,m=jt.exec(l.slice(u))}b===void 0&&(b=l.slice(u));let[,d="",x]=b.match(Oe)||[];return{extracted:`${d}${i}-${x}`,transformSuggestions(v){return v.filter(z=>z.startsWith(`${d}${i}-`)).map(z=>d+z.slice(d.length+i.length+1))},resolveReplacement(v){return{start:u+p,end:u+p+b.length,replacement:d+v.slice(d.length+i.length+1)}}}}};var Hn=["v-bind:",":"],At=/[\s'"`;]+/g,In=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Kn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Ot=e=>{var o,n;let t=(o=e==null?void 0:e.ignoreAttributes)!=null?o:[],r=(n=e==null?void 0:e.nonValuedAttribute)!=null?n:!0;return{name:"attributify",extract({code:a}){let s=Array.from(a.matchAll(In)).flatMap(i=>Array.from((i[1]||"").matchAll(Kn))).flatMap(([,i,l,p])=>{if(t.includes(i))return[];for(let m of Hn)if(i.startsWith(m)){i=i.slice(m.length);break}return p?["class","className"].includes(i)?p.split(At).filter(ae):p.split(At).filter(Boolean).map(m=>`[${i}~="${m}"]`):ae(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var Gn=(e={})=>{var n,a,s,i,l;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(a=e.prefix)!=null?a:"un-",e.prefixedOnly=(s=e.prefixedOnly)!=null?s:!1,e.nonValuedAttribute=(i=e.nonValuedAttribute)!=null?i:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[Et(e)],r=[Ot(e)],o=[Vt];return e.strict||r.unshift(ie),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:o}}},Mt=Gn;var Me=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=Xn(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)&&!(Me.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function L(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}`,Me.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Xn(e){if(!e)return;let t=Yn(e);if(t!=null||(t=qn(e),t!=null)||(t=Zn(e),t!=null)||(t=Qn(e),t!=null)||(t=ea(e),t!=null))return t}function Yn(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 qn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Zn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=se(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(`^(${Me.join("|")})\\((.+)\\)$`,"i");function Qn(e){let t=e.match(Jn);if(!t)return;let[,r,o]=t,n=Pt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function ea(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Pt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Pt(e){let t=se(e);if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let a=t.splice(r-2);t.push(a.join(" ")),--r}let o=se(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 ta(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 se(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=ta(e,t);if(!a)return;let[s,i]=a;o.push(s),e=i}if(o.length>0)return o}var _={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"]},Pe=V(R({},_),{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"]}),Ue={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"]},_e={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ut=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],M=Object.assign({},...Ut.map(e=>({[e.replace(/ /,"-")]:e})),...Ut.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));var We={};Vn(We,{auto:()=>aa,bracket:()=>ua,bracketOfColor:()=>ma,bracketOfLength:()=>da,cssvar:()=>fa,degree:()=>ba,fraction:()=>pa,global:()=>ha,number:()=>ca,numberWithUnit:()=>na,percent:()=>la,properties:()=>xa,px:()=>sa,rem:()=>ia,time:()=>ga});var ra=["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"],Fe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,oa=/^(-?[0-9.]+)$/i,_t=/^(px)$/i;function N(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function na(e){let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function aa(e){if(e==="auto"||e==="a")return"auto"}function ia(e){if(e.match(_t))return`1${e}`;let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function sa(e){if(e.match(_t))return`1${e}`;let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function ca(e){if(!oa.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return N(t)}function la(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${N(t/100)}`}function pa(e){if(e==="full")return"100%";let[t,r]=e.split("/"),o=parseFloat(t)/parseFloat(r);if(!Number.isNaN(o))return`${N(o*100)}%`}function Le(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(/^\[(color|length):/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 ua(e){return Le(e)}function ma(e){return Le(e,"color")}function da(e){return Le(e,"length")}function fa(e){if(e.match(/^\$\S/))return`var(--${Te(e.slice(1))})`}function ga(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?`${N(n)}${o}`:`${N(n)}ms`}function ba(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?`${N(n)}${o}`:`${N(n)}deg`}function ha(e){if(["inherit","initial","revert","unset"].includes(e))return e}function xa(e){for(let t of e.split(","))if(!ra.includes(t))return;return e}var c=wt(We);var B=(e,t)=>{let r=new RegExp(`^${ee(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},W=(e,t)=>{let r=new RegExp(`^${ee(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var C=e=>([t,r,o],{theme:n})=>{var s,i;let a=(i=(s=n.spacing)==null?void 0:s[o||"DEFAULT"])!=null?i:c.bracket.cssvar.auto.fraction.rem(o);if(a!=null)return _[r].map(l=>[`${e}${l}`,a])},De=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(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 i,l=c.bracketOfColor(o),p=l||o;p.startsWith("#")?i=p:p.startsWith("hex-")?i=`#${p.slice(4)}`:o.startsWith("$")&&(i=c.cssvar(o)),i=i||l;let m="DEFAULT";if(!i){let u,[b]=a.slice(-1);b.match(/^\d+$/)?(m=b,u=De(t,a.slice(0,-1))):(u=De(t,a),!u&&a.length<=2&&([,m=m]=a,u=De(t,[s]))),typeof u=="string"?i=u:m&&u&&(i=u[m])}return{opacity:n,name:s,no:m,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},S=(e,t)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[e]:L(i,a)}:{[`--un-${t}-opacity`]:(l=i.alpha)!=null?l:1,[e]:L(i,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(e,t)=>{let r=[];e=O(e);for(let o=0;o<e.length;o++){let n=se(e[o]," ",6);if(!n||n.length<3)return e;let a=X(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${L(a)})`)}return r},ve=(e,t)=>{var r;return e!=null&&!!((r=Y(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},Ft=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Lt=[[/^(?: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,i,l,p,m,u,b,d;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let x=(l=(i=(s=t.animation)==null?void 0:s.durations)==null?void 0:i[e])!=null?l:"1s",v=(u=(m=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:m[e])!=null?u:"linear",z=(d=(b=t.animation)==null?void 0:b.properties)==null?void 0:d[e];return`@keyframes ${e}${o}
|
|
4
4
|
${r(Object.assign({animation:`${e} ${x} ${v} infinite`},z))}`}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 Ne=e=>([,t],{theme:r})=>{var l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let i=a;switch(s&&(n!=null?i=L(s,n):i=L(s,`var(--un-${e}-opacity, ${(l=s.alpha)!=null?l:1})`)),e){case"from":return{"--un-gradient-from":i,"--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), ${i}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":i}}},Wt=[[/^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(" ")}}],[/^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-(.+)$/,Ne("from")],[/^(?:bg-gradient-)?to-(.+)$/,Ne("to")],[/^(?:bg-gradient-)?via-(.+)$/,Ne("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 M)return{"--un-gradient-shape":`to ${M[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(M).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in M?`to ${M[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(M).join("|")})`,`shape-(${Object.keys(M).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":M[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Dt=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":e}:{"list-style-type":e},{autocomplete:["list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)","list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)-(outside|inside)"]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Nt=[[/^accent-(.+)$/,S("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>"]}]],Bt=[[/^caret-(.+)$/,S("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>"]}]],Ht=[["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"]]]],It=[["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"}]],Kt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Gt=[[/^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 ya=/@media \(min-width: (.+)\)/,Xt=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=O(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ya))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Yt=[[/^(?:(\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 va={mid:"middle",base:"baseline",btm:"bottom"},qt=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":va[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Zt=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Jt=[[/^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-)?(.+)$/,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:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Qt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ka=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},er=[[/^will-change-(.+)/,([,e])=>({"will-change":ka(e)})]];var tr=[[/^(?:border|b)()(?:-(.+))?$/,ce,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ce],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ce],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ce],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ce],[/^(?: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-)?(.+)$/,le,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,le],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,le],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,le],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,le],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,pe,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,pe],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,pe],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,pe],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,pe],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ue,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ue],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],$a=e=>([,t],r)=>{var i,l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${e}-color`]:L(s,n)}:e===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${e}-color`]:L(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`]:L(s,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ce(e,t){let r=J(e,t);if(r)return[...r,["border-style","solid"]]}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 _&&o!=null)return _[e].map(s=>[`border${s}-width`,o])}function le([,e="",t],{theme:r}){if(e in _&&ve(t,r))return Object.assign({},..._[e].map(o=>$a(o)(["",t],r)))}function pe([,e="",t]){let r=c.bracket.percent(t);if(e in _&&r!=null)return _[e].map(o=>[`--un-border${o}-opacity`,r])}function ue([,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 Ue&&o!=null)return Ue[e].map(a=>[`border${a}-radius`,o])}var rr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],or=[[/^(?:text|color|c)-(.+)$/,S("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>"}]],nr=[[/^bg-(.+)$/,S("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var ke={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},ar=e=>{var t;return(t=c.properties(e))!=null?t:ke[e]},ir=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?ar(e):[ke.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:c.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(ke).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)||ar(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(ke)].join("|")})`]}],["transition-none",{transition:"none"}]];var sr=[["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 cr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},lr=[[/^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=O((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=O((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":cr[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(cr).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-)?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"}]],pr=[[/^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}}]],ur=[[/^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"}]],mr=[[/^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-(.+)$/,S("-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>"}]],dr=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":q(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(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":c.bracket.percent(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var fr={"":"",x:"column-",y:"row-"},gr=([,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-${fr[e]}gap`]:o,[`${fr[e]}gap`]:o}},br=[[/^(?:flex-|grid-)?gap-?()(.+)$/,gr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,gr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=e=>e.replace("col","column"),Be=e=>e[0]==="r"?"Row":"Column",wa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Be(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)},hr=[["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${Be(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)}`]:wa(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${Be(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 $e=["auto","hidden","clip","visible","scroll"],xr=[[/^(?:overflow|of)-(.+)$/,([,e])=>$e.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${$e.join("|")}`,`(overflow|of)-(x|y)-${$e.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>$e.includes(t)?{[`overflow-${e}`]:t}:void 0]];var yr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],vr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],kr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["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"}]],wr=[["place-content-center",{"place-content":"center"}],["place-content-start",{"place-content":"start"}],["place-content-end",{"place-content":"end"}],["place-content-between",{"place-content":"space-between"}],["place-content-around",{"place-content":"space-around"}],["place-content-evenly",{"place-content":"space-evenly"}],["place-content-stretch",{"place-content":"stretch"}],["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],["place-self-auto",{"place-self":"auto"}],["place-self-start",{"place-self":"start"}],["place-self-end",{"place-self":"end"}],["place-self-center",{"place-self":"center"}],["place-self-stretch",{"place-self":"stretch"}]];function He(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 we([,e,t],r){let o=He(t,r);if(o!=null&&e in Pe)return Pe[e].map(n=>[n.slice(1),o])}var Sr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:He(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]:He(t,r)})]],Cr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],Rr=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],zr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var k="var(--un-empty,/*!*/ /*!*/)",Tr=[["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})]],Er=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],jr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Vr=[["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"}]],Or=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Mr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Pr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Ur=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var _r=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Fr=[["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(?:-(.+))?$/,([,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[{[A]:"","--un-ring-inset":k,"--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-(.+)$/,S("--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-(.+)$/,S("--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 Wr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[A]:"","--un-shadow-inset":k,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,S("--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 Sa={h:"height",w:"width",inline:"inline-size",block:"block-size"};function me(e,t){return`${e||""}${Sa[t]}`}function Dr(e,t,r,o){var s;let n=me(e,t).replace(/-(\w)/g,(i,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 c.bracket.cssvar.auto.fraction.rem(o)}var Nr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[me(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})=>({[me(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{[me(e,t)]:(n=Ft(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{[me(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Ca(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 Br=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Ca(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Hr=[[/^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>"}]],Ir=[[/^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 Ra={"--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(" ")},Q=V(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},Yr),{[A]:""}),qr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=M[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(M).join("|")})`,`origin-(${Object.keys(M).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?M[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Kr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Kr],[/^(?:transform-)?rotate-()(.+)$/,Xr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Xr],[/^(?:transform-)?skew-([xy])-(.+)$/,za],[/^(?:transform-)?scale-()(.+)$/,Gr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Gr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",Ra],["transform-cpu",Yr],["transform-none",{transform:"none"}]];function Kr([,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[Q,[..._e[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Gr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[Q,[..._e[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Xr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[Q,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[Q,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function za([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[Q,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var Ta={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"},Zr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Ta[e];if(r)return{[r]:c.cssvar(t)}}]],Jr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Qr=[[/^(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 Ze=Object.defineProperty,Cn=Object.defineProperties;var Rn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Xe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Xe.call(t,r)&&qe(e,r,t[r]);if(ce)for(var r of ce(t))Ye.call(t,r)&&qe(e,r,t[r]);return e},A=(e,t)=>Cn(e,Rn(t));var Je=(e,t)=>{var r={};for(var n in e)Xe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Ye.call(e,n)&&(r[n]=e[n]);return r};var Tn=(e,t)=>{for(var r in t)Ze(e,r,{get:t[r],enumerable:!0})};var En={mid:"middle",base:"baseline",btm:"bottom"},Qe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":En[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],et=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var we=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function ve(e=""){let t=zn(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)&&!(we.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function D(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}`,we.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zn(e){if(!e)return;let t=An(e);if(t!=null||(t=jn(e),t!=null)||(t=Vn(e),t!=null)||(t=On(e),t!=null)||(t=Un(e),t!=null))return t}function An(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 jn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Vn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(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 Pn=new RegExp(`^(${we.join("|")})\\((.+)\\)$`,"i");function On(e){let t=e.match(Pn);if(!t)return;let[,r,n]=t,o=tt(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Un(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=tt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function tt(e){let t=I(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=I(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 Mn(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 I(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=Mn(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}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"]},Se=A(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"]}),ke={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"]},Ce={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},rt=["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"],K=Object.assign({},...rt.map(e=>({[e.replace(/ /,"-")]:e})),...rt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Re(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+="\\2c ";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 le=Re;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function nt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Fn(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 ue(e){return e==null?"":Fn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Te(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ee(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 Te(r)&&Te(n)&&Object.keys(n).forEach(i=>{Te(n[i])?i in r?o[i]=Ee(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function ot(e){return typeof e[0]=="string"}function it(e){return typeof e[0]=="string"}function z(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var _n=/^\[(.+?)~?="(.*)"\]$/,Wn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function st(e){return e.match(_n)}function Y(e=""){return Wn.test(e)}function at(e){return typeof e=="function"?{match:e}:e}function ze(e){return e.length===3}function ct(e){return e!=null}var Ae=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 lt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ut(e){return lt.lastIndex=0,e.replace(lt,(t,r,n,o)=>o.split(/\s/g).map(i=>i==="~"?r:i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ft=new Set;function pt(e){ft.has(e)||(console.warn("[unocss]",e),ft.add(e))}function mt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Ln=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Ln(e))}};function Dn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Hn={shortcuts:-1,default:0};function je(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(z),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Hn,...n.map(p=>p.layers),e.layers);function a(p){return X([...o.flatMap(y=>z(y[p]||[])),...z(r[p]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},h=l.length;l.forEach((p,y)=>{ot(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let m=q([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>Ee(p,y),{}));a("extendTheme").forEach(p=>p(m));let x={templates:X(o.map(p=>{var y;return z((y=p.autocomplete)==null?void 0:y.templates)}).flat()),extractors:o.map(p=>{var y;return z((y=p.autocomplete)==null?void 0:y.extractors)}).flat().sort((p,y)=>(p.order||0)-(y.order||0))};return A(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:x,variants:a("variants").map(at),shortcuts:Dn(a("shortcuts")),extractors:s})}var dt="0.31.0";var gt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=je(t,r)}version=dt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=je(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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 a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;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 a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(h=>this.stringifyUtil(h)).filter(ct);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:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
|
|
1
|
+
(()=>{var Ze=Object.defineProperty,Cn=Object.defineProperties;var Rn=Object.getOwnPropertyDescriptors;var ce=Object.getOwnPropertySymbols;var Xe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable;var qe=(e,t,r)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Xe.call(t,r)&&qe(e,r,t[r]);if(ce)for(var r of ce(t))Ye.call(t,r)&&qe(e,r,t[r]);return e},A=(e,t)=>Cn(e,Rn(t));var Je=(e,t)=>{var r={};for(var n in e)Xe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ce)for(var n of ce(e))t.indexOf(n)<0&&Ye.call(e,n)&&(r[n]=e[n]);return r};var Tn=(e,t)=>{for(var r in t)Ze(e,r,{get:t[r],enumerable:!0})};var En={mid:"middle",base:"baseline",btm:"bottom"},Qe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":En[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],et=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var we=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function ve(e=""){let t=zn(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)&&!(we.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function D(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}`,we.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function zn(e){if(!e)return;let t=An(e);if(t!=null||(t=jn(e),t!=null)||(t=Vn(e),t!=null)||(t=On(e),t!=null)||(t=Un(e),t!=null))return t}function An(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 jn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Vn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=I(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 Pn=new RegExp(`^(${we.join("|")})\\((.+)\\)$`,"i");function On(e){let t=e.match(Pn);if(!t)return;let[,r,n]=t,o=tt(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Un(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=tt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function tt(e){let t=I(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=I(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 Mn(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 I(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=Mn(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}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"]},Se=A(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"]}),ke={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"]},Ce={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},rt=["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"],K=Object.assign({},...rt.map(e=>({[e.replace(/ /,"-")]:e})),...rt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Re(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+="\\2c ";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 le=Re;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function nt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Fn(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 ue(e){return e==null?"":Fn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Te(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ee(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 Te(r)&&Te(n)&&Object.keys(n).forEach(i=>{Te(n[i])?i in r?o[i]=Ee(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function q(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:q(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?q(n):n;return r}return e}function ot(e){return typeof e[0]=="string"}function it(e){return typeof e[0]=="string"}function z(e=[]){return Array.isArray(e)?e:[e]}function X(e){return Array.from(new Set(e))}var _n=/^\[(.+?)~?="(.*)"\]$/,Wn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function st(e){return e.match(_n)}function Y(e=""){return Wn.test(e)}function at(e){return typeof e=="function"?{match:e}:e}function ze(e){return e.length===3}function ct(e){return e!=null}var Ae=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 lt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ut(e){return lt.lastIndex=0,e.replace(lt,(t,r,n,o)=>o.split(/\s/g).map(i=>i==="~"?r:i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var ft=new Set;function pt(e){ft.has(e)||(console.warn("[unocss]",e),ft.add(e))}function mt(e){let t=function(n){var i;let o=((i=this.__options)==null?void 0:i.sequence)||[];this.__options.sequence=[];for(let a of o){let s=e[a](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}var Ln=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Ln(e))}};function Dn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Hn={shortcuts:-1,default:0};function je(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(z),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Hn,...n.map(p=>p.layers),e.layers);function a(p){return X([...o.flatMap(y=>z(y[p]||[])),...z(r[p]||[])])}let s=a("extractors");s.length||s.push(J),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},h=l.length;l.forEach((p,y)=>{ot(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let m=q([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>Ee(p,y),{}));a("extendTheme").forEach(p=>p(m));let x={templates:X(o.map(p=>{var y;return z((y=p.autocomplete)==null?void 0:y.templates)}).flat()),extractors:o.map(p=>{var y;return z((y=p.autocomplete)==null?void 0:y.extractors)}).flat().sort((p,y)=>(p.order||0)-(y.order||0))};return A(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:p=>p},r),{presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:i,theme:m,rulesSize:h,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:x,variants:a("variants").map(at),shortcuts:Dn(a("shortcuts")),extractors:s})}var dt="0.31.2";var gt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=je(t,r)}version=dt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=je(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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 a=await i.extract(o);a==null||a.forEach(s=>n.add(s))}return n}makeContext(t,r){let n={rawSelector:t,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(t,r){var l;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 a=this.makeContext(t,[r||i[0],i[1],i[2],i[3]]),s=this.expandShortcut(a.currentSelector,a);if(s){let u=await this.stringifyShortcuts(a.variantMatch,a,s[0],s[1]);if(u!=null&&u.length)return this._cache.set(n,u),u}else{let u=(l=await this.parseUtil(a.variantMatch,a))==null?void 0:l.map(h=>this.stringifyUtil(h)).filter(ct);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:a=!1}={}){let s=typeof t=="string"?await this.applyExtractors(t,r):t;i&&this.config.safelist.forEach(d=>s.add(d));let l=a?"":`
|
|
2
2
|
`,u=new Set(["default"]),h=new Set,m=new Map;await Promise.all(Array.from(s).map(async d=>{var b;if(h.has(d))return;let g=await this.parseToken(d);if(g!=null){h.add(d);for(let v of g){let R=v[3]||"";m.has(R)||m.set(R,[]),m.get(R).push(v),(b=v[4])!=null&&b.layer&&u.add(v[4].layer)}}})),o&&this.config.preflights.forEach(d=>{d.layer&&u.add(d.layer)});let x={},p=this.config.sortLayers(Array.from(u).sort((d,g)=>{var b,v;return((b=this.config.layers[d])!=null?b:0)-((v=this.config.layers[g])!=null?v:0)||d.localeCompare(g)})),y={};if(o){let d={generator:this,theme:this.config.theme};y=Object.fromEntries(await Promise.all(p.map(async g=>{let v=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===g).map(async R=>await R.getCSS(d)))).filter(Boolean).join(l);return[g,v]})))}let w=d=>{if(x[d])return x[d];let g=Array.from(m).sort((b,v)=>{var R,T,O;return((R=this.parentOrders.get(b[0]))!=null?R:0)-((T=this.parentOrders.get(v[0]))!=null?T:0)||((O=b[0])==null?void 0:O.localeCompare(v[0]||""))||0}).map(([b,v])=>{let R=v.length,T=v.filter(f=>{var $;return((($=f[4])==null?void 0:$.layer)||"default")===d}).sort((f,$)=>{var E,_,V;return f[0]-$[0]||(((E=f[4])==null?void 0:E.sort)||0)-(((_=$[4])==null?void 0:_.sort)||0)||((V=f[1])==null?void 0:V.localeCompare($[1]||""))||0}).map(f=>{var $;return[f[1]?In(f[1],n):f[1],f[2],!!(($=f[4])!=null&&$.noMerge)]}).map(f=>[f[0]==null?f[0]:[f[0]],f[1],f[2]]);if(!T.length)return;let O=T.reverse().map(([f,$,E],_)=>{if(!E&&f&&this.config.mergeSelectors)for(let V=_+1;V<R;V++){let U=T[V];if(U&&!U[2]&&U[0]&&U[1]===$)return U[0].push(...f),null}return f?`${[...new Set(f)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${O}${l}}`:O}).filter(Boolean).join(l);return o&&(g=[y[d],g].filter(Boolean).join(l)),x[d]=!a&&g?`/* layer: ${d} */${l}${g}`:g},C=(d=p,g)=>d.filter(b=>!(g!=null&&g.includes(b))).map(b=>w(b)||"").filter(Boolean).join(l);return{get css(){return C()},layers:p,getLayers:C,getLayer:w,matched:h}}matchVariants(t,r){let n=new Set,o=[],i=r||t,a=!1,s={rawSelector:t,theme:this.config.theme,generator:this};for(;;){a=!1;for(let l of this.config.variants){if(!l.multiPass&&n.has(l))continue;let u=l.match(i,s);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.push(u),n.add(l),a=!0;break}}if(!a)break;if(o.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,i,o,n]}applyVariants(t,r=t[4],n=t[1]){let o=[...r].sort((s,l)=>(s.order||0)-(l.order||0)),i=o.reduce((s,l)=>{var u;return((u=l.body)==null?void 0:u.call(l,s))||s},t[2]),a={selector:o.reduce((s,l)=>{var u;return((u=l.selector)==null?void 0:u.call(l,s,i))||s},Kn(n)),entries:i,parent:o.reduce((s,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||s,void 0),layer:o.reduce((s,l)=>l.layer||s,void 0),sort:o.reduce((s,l)=>l.sort||s,void 0)};for(let s of this.config.postprocess)s(a);return a}constructCustomCSS(t,r,n){r=Z(r);let{selector:o,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),s=`${o}{${ue(i)}}`;return a?`${a}{${s}}`:s}async parseUtil(t,r,n=!1){var h,m;let[o,i,a]=typeof t=="string"?this.matchVariants(t):t,s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!((h=s[2])!=null&&h.internal)))return[[s[0],o,Z(s[1]),s[2],a]];r.variantHandlers=a;let{rulesDynamic:l,rulesSize:u}=this.config;for(let x=u-1;x>=0;x--){let p=l[x];if(!p||((m=p[2])==null?void 0:m.internal)&&!n)continue;let[y,w,C]=p,d=i.match(y);if(!d)continue;let g=await w(d,r);if(!g)continue;if(typeof g=="string")return[[x,g,C]];let b=nt(g).filter(v=>v.length);if(b.length)return b.map(v=>[x,o,v,C,a])}}stringifyUtil(t){var x;if(!t)return;if(ze(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:n,parent:o,layer:i,sort:a}=this.applyVariants(t),s=ue(n);if(!s)return;let p=(x=t[3])!=null?x:{},{layer:l,sort:u}=p,h=Je(p,["layer","sort"]),m=A(S({},h),{layer:i!=null?i:l,sort:a!=null?a:u});return[t[0],r,s,o,m]}expandShortcut(t,r,n=3){if(n===0)return;let o,i;for(let a of this.config.shortcuts)if(it(a)){if(a[0]===t){o=o||a[2],i=a[1];break}}else{let s=t.match(a[0]);if(s&&(i=a[1](s,r)),i){o=o||a[2];break}}if(typeof i=="string"&&(i=ut(i).split(/\s+/g)),!!i)return[i.flatMap(a=>{var s;return((s=this.expandShortcut(a,r,n-1))==null?void 0:s[0])||[a]}).filter(a=>a!==""),o]}async stringifyShortcuts(t,r,n,o={layer:this.config.shortcutsLayer}){var h;let i=new Ae,a=(await Promise.all(X(n).map(async m=>{let x=await this.parseUtil(m,r,!0);return x||pt(`unmatched utility "${m}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((m,x)=>m[0]-x[0]),[s,,l]=t,u=[];for(let m of a){if(ze(m)){u.push([m[0],void 0,m[1],void 0,m[2]]);continue}let{selector:x,entries:p,parent:y,sort:w}=this.applyVariants(m,[...m[4],...l],s);i.getFallback(x,y,[[],m[0]])[0].push([p,!!((h=m[3])!=null&&h.noMerge),w!=null?w:0])}return u.concat(i.map(([m,x],p,y)=>{let w=(d,g,b)=>{let v=Math.max(...b.map(T=>T[1])),R=b.map(T=>T[0]);return(d?[R.flat(1)]:R).map(T=>{let O=ue(T);if(O)return[x,p,O,y,A(S({},o),{noMerge:g,sort:v})]})};return[[m.filter(([,d])=>d).map(([d,,g])=>[d,g]),!0],[m.filter(([,d])=>!d).map(([d,,g])=>[d,g]),!1]].map(([d,g])=>[...w(!1,g,d.filter(([b])=>b.some(v=>v[0]===W))),...w(!0,g,d.filter(([b])=>b.every(v=>v[0]!==W)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function xt(e,t){return new gt(e,t)}var bt=/ \$\$ /,Nn=e=>e.match(bt);function In(e,t){return Nn(e)?e.replace(bt,t?` ${t} `:" "):t?`${t} ${e}`:e}var ht=/^\[(.+?)(~?=)"(.*)"\]$/;function Kn(e){return ht.test(e)?e.replace(ht,(t,r,n,o)=>`[${le(r)}${n}"${le(o)}"]`):`.${le(e)}`}var Oe={};Tn(Oe,{auto:()=>Xn,bracket:()=>ro,bracketOfColor:()=>no,bracketOfLength:()=>oo,cssvar:()=>io,degree:()=>ao,fraction:()=>to,global:()=>co,number:()=>Qn,numberWithUnit:()=>Zn,percent:()=>eo,properties:()=>lo,px:()=>Jn,rem:()=>Yn,time:()=>so});var Gn=["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"],Ve=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,qn=/^(-?[0-9.]+)$/i,yt=/^(px)$/i;function P(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Zn(e){let t=e.match(Ve);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${P(o)}${n}`}function Xn(e){if(e==="auto"||e==="a")return"auto"}function Yn(e){if(e.match(yt))return`1${e}`;let t=e.match(Ve);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o/4)}rem`}function Jn(e){if(e.match(yt))return`1${e}`;let t=e.match(Ve);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${P(o)}${n}`:`${P(o)}px`}function Qn(e){if(!qn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return P(t)}function eo(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${P(t/100)}`}function to(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 Pe(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n=e.match(/^\[(color|length):/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 ro(e){return Pe(e)}function no(e){return Pe(e,"color")}function oo(e){return Pe(e,"length")}function io(e){if(e.match(/^\$\S/))return`var(--${Re(e.slice(1))})`}function so(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 ao(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 co(e){if(["inherit","initial","revert","unset"].includes(e))return e}function lo(e){for(let t of e.split(","))if(!Gn.includes(t))return;return e}var c=mt(Oe);var H=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},Q=(e,t)=>{let r=new RegExp(`^${G(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var j=e=>([t,r,n],{theme:o})=>{var a,s;let i=(s=(a=o.spacing)==null?void 0:a[n||"DEFAULT"])!=null?s:c.bracket.cssvar.auto.fraction.rem(n);if(i!=null)return M[r].map(l=>[`${e}${l}`,i])},Ue=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},fe=(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),[a]=i;if(!a)return;let s,l=c.bracketOfColor(n),u=l||n;u.startsWith("#")?s=u:u.startsWith("hex-")?s=`#${u.slice(4)}`:n.startsWith("$")&&(s=c.cssvar(n)),s=s||l;let h="DEFAULT";if(!s){let m,[x]=i.slice(-1);x.match(/^\d+$/)?(h=x,m=Ue(t,i.slice(0,-1))):(m=Ue(t,i),!m&&i.length<=2&&([,h=h]=i,m=Ue(t,[a]))),typeof m=="string"?s=m:h&&m&&(s=m[h])}return{opacity:o,name:a,no:h,color:s,cssColor:ve(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},k=(e,t)=>([,r],{theme:n})=>{var l;let o=fe(r,n);if(!o)return;let{alpha:i,color:a,cssColor:s}=o;if(s)return i!=null?{[e]:D(s,i)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:D(s,`var(--un-${t}-opacity)`)};if(a)return{[e]:a.replace("%alpha",`${i!=null?i:1}`)}},pe=(e,t)=>{let r=[];e=z(e);for(let n=0;n<e.length;n++){let o=I(e[n]," ",6);if(!o||o.length<3)return e;let i=ve(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},$t=(e,t)=>{var r;return e!=null&&!!((r=fe(e,t))!=null&&r.color)},me=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},wt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var vt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,k("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:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],St=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],uo=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},kt=[[/^will-change-(.+)/,([,e])=>({"will-change":uo(e)})]];var Ct=[[/^(?:border|b)()(?:-(.+))?$/,ee,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ee],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ee],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ee],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ee],[/^(?: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-)?(.+)$/,te,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,te],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,te],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,te],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,te],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,re,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,re],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,re],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ne,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ne],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ne],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],fo=e=>([,t],r)=>{var s,l;let n=fe(t,r);if(!n)return;let{alpha:o,color:i,cssColor:a}=n;if(a)return o!=null?{[`border${e}-color`]:D(a,o)}:e===""?{"--un-border-opacity":(s=a.alpha)!=null?s:1,[`border${e}-color`]:D(a,`var(--un-border${e}-opacity)`)}:{"--un-border-opacity":(l=a.alpha)!=null?l:1,[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:D(a,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function ee(e,t){let r=B(e,t);if(r)return[...r,["border-style","solid"]]}function B([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:c.bracket.cssvar.px(t||"1");if(e in M&&n!=null)return M[e].map(a=>[`border${a}-width`,n])}function te([,e="",t],{theme:r}){if(e in M&&$t(t,r))return Object.assign({},...M[e].map(n=>fo(n)(["",t],r)))}function re([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(n=>[`--un-border${n}-opacity`,r])}function ne([,e="",t],{theme:r}){var o;let n=((o=r.borderRadius)==null?void 0:o[t||"DEFAULT"])||c.bracket.cssvar.fraction.rem(t||"1");if(e in ke&&n!=null)return ke[e].map(i=>[`border${i}-radius`,n])}var Rt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Tt=[[/^(?:text|color|c)-(.+)$/,k("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>"}]],Et=[[/^bg-(.+)$/,k("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var de={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},zt=e=>{var t;return(t=c.properties(e))!=null?t:de[e]},At=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?zt(e):[de.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let a=(i=(o=r.duration)==null?void 0:o[t||"DEFAULT"])!=null?i:c.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":a}}},{autocomplete:`transition-(${Object.keys(de).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>{var r,n;return{"transition-duration":(n=(r=t.duration)==null?void 0:r[e||"DEFAULT"])!=null?n:c.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:c.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: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)||zt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(de)].join("|")})`]}],["transition-none",{transition:"none"}]];var jt=[["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,n;return{"flex-basis":(n=(r=t.spacing)==null?void 0:r[e])!=null?n: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 Vt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Pt=[[/^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 n;let r=z((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":c.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,e],{theme:t})=>{var o,i;let r=z((o=t.fontSize)==null?void 0:o[e]),n=(i=r==null?void 0:r[0])!=null?i:c.bracket.cssvar.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":Vt[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Vt).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-)?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"}]],Ot=[[/^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}}]],Ut=[[/^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"}]],Mt=[[/^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-(.+)$/,k("-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>"}]],Ft=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":pe(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-(.+)$/,k("--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 _t={"":"",x:"column-",y:"row-"},Wt=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${_t[e]}gap`]:n,[`${_t[e]}gap`]:n}},Lt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Wt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Wt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var F=e=>e.replace("col","column"),Me=e=>e[0]==="r"?"Row":"Column",po=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Me(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 c.bracket.cssvar.auto.rem(r)},Dt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${F(e)}`]:(o=(n=r[`grid${Me(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${F(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${F(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-${F(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${F(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${F(e)}`]:po(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":F(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${F(e)}`]:(o=(n=r[`gridTemplate${Me(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${F(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var he=["auto","hidden","clip","visible","scroll"],Ht=[[/^(?:overflow|of)-(.+)$/,([,e])=>he.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${he.join("|")}`,`(overflow|of)-(x|y)-${he.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>he.includes(t)?{[`overflow-${e}`]:t}:void 0]];var _e=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Bt=[["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"}]],Nt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],It=[["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"}]],Kt=[["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 Fe(e,{theme:t}){var r,n;return(n=(r=t.spacing)==null?void 0:r[e])!=null?n:c.bracket.cssvar.auto.fraction.rem(e)}function ge([,e,t],r){let n=Fe(t,r);if(n!=null&&e in Se)return Se[e].map(o=>[o.slice(1),n])}var Gt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Fe(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])-(.+)$/,ge],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ge],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ge],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ge],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Fe(t,r)})]],qt=[["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"}]],Zt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Xt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var xe="var(--un-empty,/*!*/ /*!*/)",Yt=[["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})]],Jt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Qt=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],er=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],tr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],rr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],nr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]],or=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["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"}]],sr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],ar=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],cr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],lr=[["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 ur=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{var n,o;let r=(o=(n=t.ringWidth)==null?void 0:n[e||"DEFAULT"])!=null?o:c.px(e||"1");if(r)return[{[W]:"","--un-ring-inset":xe,"--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: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,n;return{"--un-ring-offset-width":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,k("--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-(.+)$/,k("--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 fr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[W]:"","--un-shadow-inset":xe,"--un-shadow":"0 0 #0000"},{"--un-shadow":pe(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-(.+)$/,k("--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 mo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function oe(e,t){return`${e||""}${mo[t]}`}function pr(e,t,r,n){var a;let o=oe(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=(a=r[o])==null?void 0:a[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return c.bracket.cssvar.auto.fraction.rem(n)}var mr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[oe(e,t)]:pr(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})=>({[oe(e,t)]:pr(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{[oe(e,t)]:(o=wt(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{[oe(e,t)]:(o=me(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ho(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 dr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":ho(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var hr=[[/^pa?()-?(-?.+)$/,j("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,j("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,j("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,j("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],gr=[[/^ma?()-?(-?.+)$/,j("margin")],[/^m-?xy()()$/,j("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,j("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,j("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,j("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,j("margin")]];var go={"--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(" ")},$r={"--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(" ")},N=A(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},$r),{[W]:""}),wr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=K[e])!=null?t:c.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(K).join("|")})`,`origin-(${Object.keys(K).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?K[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,xr],[/^(?:transform-)?translate-([xyz])-(.+)$/,xr],[/^(?:transform-)?rotate-()(.+)$/,yr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,yr],[/^(?:transform-)?skew-([xy])-(.+)$/,xo],[/^(?:transform-)?scale-()(.+)$/,br],[/^(?:transform-)?scale-([xyz])-(.+)$/,br],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[N,{transform:"var(--un-transform)"}]],["transform-gpu",go],["transform-cpu",$r],["transform-none",{transform:"none"}]];function xr([,e,t],{theme:r}){var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.fraction.rem(t);if(n!=null)return[N,[...Ce[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function br([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[N,[...Ce[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function yr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[N,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[N,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function xo([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[N,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var bo={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"},vr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=bo[e];if(r)return{[r]:c.cssvar(t)}}]],Sr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var kr=[[/^(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 Cr=[[/^(?: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:c.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=k("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":c.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:c.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 Rr=[[/^fill-(.+)$/,k("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.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:c.bracket.cssvar.fraction.px.number(e)}},{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.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:c.bracket.cssvar.px.numberWithUnit(e)}},{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,k("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.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 Tr=[vr,Sr,hr,gr,Yt,Rt,Et,Rr,Ct,or,Pt,Ot,Ut,sr,Cr,Mt,Ft,ar,et,Tt,cr,lr,fr,ur,jt,Dt,Lt,_e,mr,dr,Qt,Jt,er,tr,Qe,rr,nr,ir,Ht,vt,St,_e,Nt,Bt,It,Kt,Gt,qt,Zt,Xt,At,wr,kt,kr].flat(1);var We={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(We).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 Er={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(",")},zr={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"]},Ar={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},jr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Vr={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)"]},Pr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Le={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Or=Le;var De={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ur=S({},De),Mr={DEFAULT:"1px",none:"0px"},Fr={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"},_r={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Wr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Lr={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)"},Dr={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)"},Hr={DEFAULT:"1px",none:"0px"};var Br={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Nr={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 be={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},He=A(S({auto:"auto"},be),{screen:"100vw"}),ie=A(S({none:"none"},be),{screen:"100vw"}),Be=A(S({auto:"auto"},be),{screen:"100vh"}),se=A(S({none:"none"},be),{screen:"100vh"});var Ir={width:He,height:Be,maxWidth:ie,maxHeight:se,minWidth:ie,minHeight:se,inlineSize:He,blockSize:Be,maxInlineSize:ie,maxBlockSize:se,minInlineSize:ie,minBlockSize:se,colors:We,fontFamily:Er,fontSize:zr,breakpoints:De,verticalBreakpoints:Ur,borderRadius:Wr,lineHeight:Pr,letterSpacing:Le,wordSpacing:Or,boxShadow:Lr,textIndent:Ar,textShadow:Vr,textStrokeWidth:jr,blur:Br,dropShadow:Nr,easing:Dr,lineWidth:Mr,spacing:Fr,duration:_r,ringWidth:Hr};var Ne={},Kr=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}`},Gr={match(e,t){var n;let r=Object.entries((n=me(t))!=null?n:{}).map(([o,i],a)=>[o,i,a]);for(let[o,i,a]of r){Ne[o]||(Ne[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let s=e.match(Ne[o]);if(!s)continue;let[,l]=s,u=e.slice(l.length);if(u==="container")continue;let h=l.startsWith("lt-"),m=l.startsWith("at-"),x=1e3;return h?(x-=a+1,{matcher:u,parent:[`@media (max-width: ${Kr(i)})`,x]}):(x+=a+1,m&&a<r.length-1?{matcher:u,parent:[`@media (min-width: ${i}) and (max-width: ${Kr(r[a+1][1])})`,x]}:{matcher:u,parent:[`@media (min-width: ${i})`,x]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var L=(e,t,r)=>{let n=e?new RegExp(`^${t}(?:-\\[(.+?)\\])[:-]`):new RegExp(`^${t}(?:-\\[(.+?)\\])?[:-]`);return o=>{let i=o.match(n);if(i)return{matcher:o.slice(i[0].length),selector:a=>{var s;return r.replace("&&-s",a).replace("&&-c",(s=i[1])!=null?s:"*")}}}},qr=[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 Zr=Q("print","@media print"),Xr=(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 Yr=(e={})=>(e==null?void 0:e.dark)==="class"?[H("dark",t=>`.dark $$ ${t}`),H("light",t=>`.light $$ ${t}`)]:[Q("dark","@media (prefers-color-scheme: dark)"),Q("light","@media (prefers-color-scheme: light)")];var Jr=[H("rtl",e=>`[dir="rtl"] $$ ${e}`),H("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Qr={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},en={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},tn={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},rn={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},nn={match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{var n,o;r[0].startsWith("--un-scale")||((n=r[1])==null?void 0:n.toString())==="0"||(r[1]=(o=r[1])==null?void 0:o.toString().replace(/[0-9.]+(?:[a-z]+|%)?/,i=>`-${i}`))}),t)}}};var $e=Object.fromEntries(["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"].map(z)),on=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(z)),yo=["not","is","where","has"],sn=Object.keys(on).join("|"),ae=Object.keys($e).join("|"),Ie=yo.join("|"),$o=/(part-\[(.+)]:)(.+)/,wo=new RegExp(`^(${sn})[:-]`),vo=new RegExp(`^(${ae})[:-]`),So=new RegExp(`^(${Ie})-(${ae})[:-]`),an=e=>{if(e==="active")return 1},ye=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Ie})-)?(${ae}))[:-]`),o=new RegExp(`^${G(t)}:`);return i=>{let a=i.match(n);if(a){let s=$e[a[3]]||`:${a[3]}`;return a[2]&&(s=`:${a[2]}(${s})`),{matcher:i.slice(a[0].length),selector:l=>o.test(l)?l.replace(o,`${t}${s}:`):`${t}${s}${r}${l}`,sort:an(a[3])}}}},cn={match:e=>{let t=e.match(wo);if(t){let r=on[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},autocomplete:`(${sn}):`},ln={match:e=>{let t=e.match(vo);if(t){let r=$e[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:an(t[1])}}},multiPass:!0,autocomplete:`(${ae}):`},un={match:e=>{let t=e.match(So);if(t){let r=t[1],n=$e[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${Ie})-(${ae}):`},fn=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[{match:ye("group",t?'[group=""]':".group"," "),multiPass:!0},{match:ye("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:ye("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:ye("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},pn={match:e=>{let t=e.match($o);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var mn=e=>[Qr,en,nn,rn,Zr,Xr,Gr,...qr,ln,un,...fn(e),cn,pn,...Yr(e),...Jr,tn];var ko=(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:Ir,rules:Tr,variants:mn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?Co(e.variablePrefix):void 0}},dn=ko;function Co(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 Ke=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,hn=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=st(i);if(!a)return;let s=a[1];if(s.startsWith(t))s=s.slice(t.length);else if(r)return;let l=a[2],[,u="",h=l]=l.match(Ke)||[];return h==="~"||!h?`${u}${s}`:`${u}${s}-${h}`}};var Ro=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,To=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,gn=/[\s'"`;>]+/,xn={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Ro),n,o=0;for(let w of r){let[,C,d]=w,g=w.index+C.length;if(t>g&&t<=g+d.length){o=g,n=d;break}}if(!n)return null;let i=n.matchAll(To),a=0,s,l;for(let w of i){let[C,d,g]=w,b=o+w.index;if(t>b&&t<=b+C.length){a=b,s=d,l=g==null?void 0:g.slice(1);break}}if(!s||s==="class"||s==="className")return null;if(l===void 0)return{extracted:s,resolveReplacement(w){return{start:a,end:a+s.length,replacement:w}}};let u=a+s.length+2,h=gn.exec(l),m=0,x;for(;h;){let[w]=h;if(t>u+m&&t<=u+m+h.index){x=l.slice(m,m+h.index);break}m+=h.index+w.length,h=gn.exec(l.slice(m))}x===void 0&&(x=l.slice(m));let[,p="",y]=x.match(Ke)||[];return{extracted:`${p}${s}-${y}`,transformSuggestions(w){return w.filter(C=>C.startsWith(`${p}${s}-`)).map(C=>p+C.slice(p.length+s.length+1))},resolveReplacement(w){return{start:m+u,end:m+u+x.length,replacement:p+w.slice(p.length+s.length+1)}}}}};var Eo=["v-bind:",":"],bn=/[\s'"`;]+/g,zo=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Ao=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,yn=e=>{var n,o;let t=(n=e==null?void 0:e.ignoreAttributes)!=null?n:[],r=(o=e==null?void 0:e.nonValuedAttribute)!=null?o:!0;return{name:"attributify",extract({code:i}){let a=Array.from(i.matchAll(zo)).flatMap(s=>Array.from((s[1]||"").matchAll(Ao))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let h of Eo)if(s.startsWith(h)){s=s.slice(h.length);break}return u?["class","className"].includes(s)?u.split(bn).filter(Y):u.split(bn).filter(Boolean).map(h=>`[${s}~="${h}"]`):Y(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var jo=(e={})=>{var o,i,a,s,l;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(i=e.prefix)!=null?i:"un-",e.prefixedOnly=(a=e.prefixedOnly)!=null?a:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(l=e.ignoreAttributes)!=null?l:[];let t=[hn(e)],r=[yn(e)],n=[xn];return e.strict||r.unshift(J),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},$n=jo;var Vo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),wn=e=>e.charAt(0).toUpperCase()+e.slice(1),vn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Sn=["Webkit","Moz","ms"];function kn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Vo(n);if(i!=="filter"&&i in e)return t[n]=vn(i);i=wn(i);for(let a=0;a<Sn.length;a++){let s=`${Sn[a]}${i}`;if(s in e)return t[n]=vn(wn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Ge(e={}){var T,O;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 f=n.postprocess;f||(f=[]),Array.isArray(f)||(f=[f]),f.unshift(kn(document.createElement("div").style)),n.postprocess=f}(T=r==null?void 0:r.configResolved)==null||T.call(r,t,n);let o,i=!0,a,s=xt(t,n),l=new Set,u,h=[],m=()=>new Promise(f=>{h.push(f),u!=null&&clearTimeout(u),u=setTimeout(()=>p().then(()=>{let $=h;h=[],$.forEach(E=>E())}),0)});function x(f=document.body){if(f.nodeType!==1)return;let $=f;$.hasAttribute("un-cloak")&&$.removeAttribute("un-cloak"),$.querySelectorAll("[un-cloak]").forEach(E=>{E.removeAttribute("un-cloak")})}async function p(){let f=await s.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=f.css,l=f.matched}async function y(f){let $=l.size;await s.applyExtractors(f,void 0,l),$!==l.size&&await m()}async function w(){let f=document.body&&document.body.outerHTML;f&&(await y(f),x())}let C=new MutationObserver(f=>{i||f.forEach(async $=>{if($.target.nodeType!==1)return;let E=$.target;if(E!==o)if($.type==="childList")$.addedNodes.forEach(async _=>{if(_.nodeType!==1)return;let V=_;a&&!a(V)||(await y(V.outerHTML),x(V))});else{if(a&&!a(E))return;if($.attributeName!=="un-cloak"){let _=Array.from(E.attributes).map(U=>U.value?`${U.name}="${U.value}"`:U.name).join(" "),V=`<${E.tagName.toLowerCase()} ${_}>`;await y(V)}E.hasAttribute("un-cloak")&&E.removeAttribute("un-cloak")}})}),d=!1;function g(){if(d)return;let f=document.documentElement||document.body;!f||(C.observe(f,{childList:!0,subtree:!0,attributes:!0}),d=!0)}function b(){w(),g()}function v(){document.readyState==="loading"?window.addEventListener("DOMContentLoaded",b):b()}let R=window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,async extract(f){typeof f!="string"&&(f.forEach($=>l.add($)),f=""),await y(f)},extractAll:w,inspect(f){a=f},toggleObserver(f){f===void 0?i=!i:i=!!f,!d&&!i&&v()}};((O=r==null?void 0:r.ready)==null?void 0:O.call(r,R))!==!1&&(i=!1,v())}Ge({defaults:{presets:[dn(),$n()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.2",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"unocss",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dist"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@unocss/core": "0.31.
|
|
38
|
-
"@unocss/preset-attributify": "0.31.
|
|
39
|
-
"@unocss/preset-uno": "0.31.
|
|
37
|
+
"@unocss/core": "0.31.2",
|
|
38
|
+
"@unocss/preset-attributify": "0.31.2",
|
|
39
|
+
"@unocss/preset-uno": "0.31.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 at=Object.defineProperty,bn=Object.defineProperties;var hn=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var nt=(e,t,r)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))it.call(t,r)&&nt(e,r,t[r]);if(fe)for(var r of fe(t))st.call(t,r)&&nt(e,r,t[r]);return e},R=(e,t)=>bn(e,hn(t));var ct=(e,t)=>{var r={};for(var o in e)it.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&fe)for(var o of fe(e))t.indexOf(o)<0&&st.call(e,o)&&(r[o]=e[o]);return r};var xn=(e,t)=>{for(var r in t)at(e,r,{get:t[r],enumerable:!0})};var Ce=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=yn(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)&&!(Ce.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(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}`,Ce.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function yn(e){if(!e)return;let t=vn(e);if(t!=null||(t=kn(e),t!=null)||(t=$n(e),t!=null)||(t=Sn(e),t!=null)||(t=Cn(e),t!=null))return t}function vn(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 kn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function $n(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ee(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 wn=new RegExp(`^(${Ce.join("|")})\\((.+)\\)$`,"i");function Sn(e){let t=e.match(wn);if(!t)return;let[,r,o]=t,n=lt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Cn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=lt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function lt(e){let t=ee(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=ee(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 Rn(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 ee(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=Rn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=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"]},Re=R(C({},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"]}),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"]},Te={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},pt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],j=Object.assign({},...pt.map(e=>({[e.replace(/ /,"-")]:e})),...pt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function je(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+="\\2c ";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 ge=je;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ut(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function zn(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 be(e){return e==null?"":zn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ee(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ve(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=C({},r);return Ee(r)&&Ee(o)&&Object.keys(o).forEach(a=>{Ee(o[a])?a in r?n[a]=Ve(r[a],o[a]):Object.assign(n,{[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 mt(e){return typeof e[0]=="string"}function dt(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}var Tn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function ft(e=""){return Tn.test(e)}function gt(e){return typeof e=="function"?{match:e}:e}function Oe(e){return e.length===3}function bt(e){return e!=null}var Me=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 ht=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xt(e){return ht.lastIndex=0,e.replace(ht,(t,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var yt=new Set;function vt(e){yt.has(e)||(console.warn("[unocss]",e),yt.add(e))}function kt(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 jn=e=>e.split(/[\s'"`;>=]+/g).filter(ft),Ae={name:"split",order:0,extract({code:e}){return new Set(jn(e))}};function En(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Vn={shortcuts:-1,default:0};function Ue(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(E),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Vn,...o.map(m=>m.layers),e.layers);function s(m){return ne([...n.flatMap(x=>E(x[m]||[])),...E(r[m]||[])])}let c=s("extractors");c.length||c.push(Ae),c.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((m,x)=>{mt(m)&&(p[m[0]]=[x,m[1],m[2]],delete l[x])});let d=re([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,x)=>Ve(m,x),{}));s("extendTheme").forEach(m=>m(d));let g={templates:ne(n.map(m=>{var x;return E((x=m.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(m=>{var x;return E((x=m.autocomplete)==null?void 0:x.extractors)}).flat().sort((m,x)=>(m.order||0)-(x.order||0))};return R(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:y,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:g,variants:s("variants").map(gt),shortcuts:En(s("shortcuts")),extractors:c})}var $t="0.31.0";var St=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ue(t,r)}version=$t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ue(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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]]),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(y=>this.stringifyUtil(y)).filter(bt);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(f=>c.add(f));let l=s?"":`
|
|
1
|
+
(()=>{var at=Object.defineProperty,bn=Object.defineProperties;var hn=Object.getOwnPropertyDescriptors;var fe=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var nt=(e,t,r)=>t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))it.call(t,r)&&nt(e,r,t[r]);if(fe)for(var r of fe(t))st.call(t,r)&&nt(e,r,t[r]);return e},R=(e,t)=>bn(e,hn(t));var ct=(e,t)=>{var r={};for(var o in e)it.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&fe)for(var o of fe(e))t.indexOf(o)<0&&st.call(e,o)&&(r[o]=e[o]);return r};var xn=(e,t)=>{for(var r in t)at(e,r,{get:t[r],enumerable:!0})};var Ce=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(e=""){let t=yn(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)&&!(Ce.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function U(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}`,Ce.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function yn(e){if(!e)return;let t=vn(e);if(t!=null||(t=kn(e),t!=null)||(t=$n(e),t!=null)||(t=Sn(e),t!=null)||(t=Cn(e),t!=null))return t}function vn(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 kn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function $n(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ee(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 wn=new RegExp(`^(${Ce.join("|")})\\((.+)\\)$`,"i");function Sn(e){let t=e.match(wn);if(!t)return;let[,r,o]=t,n=lt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Cn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=lt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function lt(e){let t=ee(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=ee(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 Rn(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 ee(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=Rn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=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"]},Re=R(C({},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"]}),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"]},Te={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},pt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],j=Object.assign({},...pt.map(e=>({[e.replace(/ /,"-")]:e})),...pt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function je(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+="\\2c ";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 ge=je;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ut(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function zn(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 be(e){return e==null?"":zn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ee(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ve(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=C({},r);return Ee(r)&&Ee(o)&&Object.keys(o).forEach(a=>{Ee(o[a])?a in r?n[a]=Ve(r[a],o[a]):Object.assign(n,{[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 mt(e){return typeof e[0]=="string"}function dt(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function ne(e){return Array.from(new Set(e))}var Tn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function ft(e=""){return Tn.test(e)}function gt(e){return typeof e=="function"?{match:e}:e}function Oe(e){return e.length===3}function bt(e){return e!=null}var Me=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 ht=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xt(e){return ht.lastIndex=0,e.replace(ht,(t,r,o,n)=>n.split(/\s/g).map(a=>a==="~"?r:a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var yt=new Set;function vt(e){yt.has(e)||(console.warn("[unocss]",e),yt.add(e))}function kt(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 jn=e=>e.split(/[\s'"`;>=]+/g).filter(ft),Ae={name:"split",order:0,extract({code:e}){return new Set(jn(e))}};function En(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Vn={shortcuts:-1,default:0};function Ue(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(E),n=[...o.filter(m=>m.enforce==="pre"),...o.filter(m=>!m.enforce),...o.filter(m=>m.enforce==="post")],a=Object.assign(Vn,...o.map(m=>m.layers),e.layers);function s(m){return ne([...n.flatMap(x=>E(x[m]||[])),...E(r[m]||[])])}let c=s("extractors");c.length||c.push(Ae),c.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((m,x)=>{mt(m)&&(p[m[0]]=[x,m[1],m[2]],delete l[x])});let d=re([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,x)=>Ve(m,x),{}));s("extendTheme").forEach(m=>m(d));let g={templates:ne(n.map(m=>{var x;return E((x=m.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(m=>{var x;return E((x=m.autocomplete)==null?void 0:x.extractors)}).flat().sort((m,x)=>(m.order||0)-(x.order||0))};return R(C({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:y,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:g,variants:s("variants").map(gt),shortcuts:En(s("shortcuts")),extractors:c})}var $t="0.31.2";var St=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ue(t,r)}version=$t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ue(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}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]]),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(y=>this.stringifyUtil(y)).filter(bt);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(f=>c.add(f));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),y=new Set,d=new Map;await Promise.all(Array.from(c).map(async f=>{var v;if(y.has(f))return;let b=await this.parseToken(f);if(b!=null){y.add(f);for(let $ of b){let T=$[3]||"";d.has(T)||d.set(T,[]),d.get(T).push($),(v=$[4])!=null&&v.layer&&p.add($[4].layer)}}})),n&&this.config.preflights.forEach(f=>{f.layer&&p.add(f.layer)});let g={},m=this.config.sortLayers(Array.from(p).sort((f,b)=>{var v,$;return((v=this.config.layers[f])!=null?v:0)-(($=this.config.layers[b])!=null?$:0)||f.localeCompare(b)})),x={};if(n){let f={generator:this,theme:this.config.theme};x=Object.fromEntries(await Promise.all(m.map(async b=>{let $=(await Promise.all(this.config.preflights.filter(T=>(T.layer||"default")===b).map(async T=>await T.getCSS(f)))).filter(Boolean).join(l);return[b,$]})))}let V=f=>{if(g[f])return g[f];let b=Array.from(d).sort((v,$)=>{var T,O,W;return((T=this.parentOrders.get(v[0]))!=null?T:0)-((O=this.parentOrders.get($[0]))!=null?O:0)||((W=v[0])==null?void 0:W.localeCompare($[0]||""))||0}).map(([v,$])=>{let T=$.length,O=$.filter(u=>{var k;return(((k=u[4])==null?void 0:k.layer)||"default")===f}).sort((u,k)=>{var M,H,_;return u[0]-k[0]||(((M=u[4])==null?void 0:M.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((_=u[1])==null?void 0:_.localeCompare(k[1]||""))||0}).map(u=>{var k;return[u[1]?An(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 W=O.reverse().map(([u,k,M],H)=>{if(!M&&u&&this.config.mergeSelectors)for(let _=H+1;_<T;_++){let B=O[_];if(B&&!B[2]&&B[0]&&B[1]===k)return B[0].push(...u),null}return u?`${[...new Set(u)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${W}${l}}`:W}).filter(Boolean).join(l);return n&&(b=[x[f],b].filter(Boolean).join(l)),g[f]=!s&&b?`/* layer: ${f} */${l}${b}`:b},L=(f=m,b)=>f.filter(v=>!(b!=null&&b.includes(v))).map(v=>V(v)||"").filter(Boolean).join(l);return{get css(){return L()},layers:m,getLayers:L,getLayer:V,matched:y}}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.push(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((c,l)=>(c.order||0)-(l.order||0)),a=n.reduce((c,l)=>{var p;return((p=l.body)==null?void 0:p.call(l,c))||c},t[2]),s={selector:n.reduce((c,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,c,a))||c},Un(o)),entries:a,parent:n.reduce((c,l)=>Array.isArray(l.parent)?l.parent[0]:l.parent||c,void 0),layer:n.reduce((c,l)=>l.layer||c,void 0),sort:n.reduce((c,l)=>l.sort||c,void 0)};for(let c of this.config.postprocess)c(s);return s}constructCustomCSS(t,r,o){r=oe(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),c=`${n}{${be(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(t,r,o=!1){var y,d;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,c=this.config.rulesStaticMap[a];if(c&&c[1]&&(o||!((y=c[2])!=null&&y.internal)))return[[c[0],n,oe(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let g=p-1;g>=0;g--){let m=l[g];if(!m||((d=m[2])==null?void 0:d.internal)&&!o)continue;let[x,V,L]=m,f=a.match(x);if(!f)continue;let b=await V(f,r);if(!b)continue;if(typeof b=="string")return[[g,b,L]];let v=ut(b).filter($=>$.length);if(v.length)return v.map($=>[g,n,$,L,s])}}stringifyUtil(t){var g;if(!t)return;if(Oe(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:r,entries:o,parent:n,layer:a,sort:s}=this.applyVariants(t),c=be(o);if(!c)return;let m=(g=t[3])!=null?g:{},{layer:l,sort:p}=m,y=ct(m,["layer","sort"]),d=R(C({},y),{layer:a!=null?a:l,sort:s!=null?s:p});return[t[0],r,c,n,d]}expandShortcut(t,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(dt(s)){if(s[0]===t){n=n||s[2],a=s[1];break}}else{let c=t.match(s[0]);if(c&&(a=s[1](c,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=xt(a).split(/\s+/g)),!!a)return[a.flatMap(s=>{var c;return((c=this.expandShortcut(s,r,o-1))==null?void 0:c[0])||[s]}).filter(s=>s!==""),n]}async stringifyShortcuts(t,r,o,n={layer:this.config.shortcutsLayer}){var y;let a=new Me,s=(await Promise.all(ne(o).map(async d=>{let g=await this.parseUtil(d,r,!0);return g||vt(`unmatched utility "${d}" in shortcut "${t[1]}"`),g||[]}))).flat(1).filter(Boolean).sort((d,g)=>d[0]-g[0]),[c,,l]=t,p=[];for(let d of s){if(Oe(d)){p.push([d[0],void 0,d[1],void 0,d[2]]);continue}let{selector:g,entries:m,parent:x,sort:V}=this.applyVariants(d,[...d[4],...l],c);a.getFallback(g,x,[[],d[0]])[0].push([m,!!((y=d[3])!=null&&y.noMerge),V!=null?V:0])}return p.concat(a.map(([d,g],m,x)=>{let V=(f,b,v)=>{let $=Math.max(...v.map(O=>O[1])),T=v.map(O=>O[0]);return(f?[T.flat(1)]:T).map(O=>{let W=be(O);if(W)return[g,m,W,x,R(C({},n),{noMerge:b,sort:$})]})};return[[d.filter(([,f])=>f).map(([f,,b])=>[f,b]),!0],[d.filter(([,f])=>!f).map(([f,,b])=>[f,b]),!1]].map(([f,b])=>[...V(!1,b,f.filter(([v])=>v.some($=>$[0]===z))),...V(!0,b,f.filter(([v])=>v.every($=>$[0]!==z)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function Ct(e,t){return new St(e,t)}var Rt=/ \$\$ /,Mn=e=>e.match(Rt);function An(e,t){return Mn(e)?e.replace(Rt,t?` ${t} `:" "):t?`${t} ${e}`:e}var wt=/^\[(.+?)(~?=)"(.*)"\]$/;function Un(e){return wt.test(e)?e.replace(wt,(t,r,o,n)=>`[${ge(r)}${o}"${ge(n)}"]`):`.${ge(e)}`}var Fe={};xn(Fe,{auto:()=>Ln,bracket:()=>In,bracketOfColor:()=>Kn,bracketOfLength:()=>Gn,cssvar:()=>Xn,degree:()=>qn,fraction:()=>Hn,global:()=>Zn,number:()=>Bn,numberWithUnit:()=>Fn,percent:()=>Nn,properties:()=>Jn,px:()=>Dn,rem:()=>Wn,time:()=>Yn});var Pn=["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"],Pe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,_n=/^(-?[0-9.]+)$/i,zt=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Fn(e){let t=e.match(Pe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Ln(e){if(e==="auto"||e==="a")return"auto"}function Wn(e){if(e.match(zt))return`1${e}`;let t=e.match(Pe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function Dn(e){if(e.match(zt))return`1${e}`;let t=e.match(Pe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function Bn(e){if(!_n.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function Nn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function Hn(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 _e(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,o=e.match(/^\[(color|length):/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 In(e){return _e(e)}function Kn(e){return _e(e,"color")}function Gn(e){return _e(e,"length")}function Xn(e){if(e.match(/^\$\S/))return`var(--${je(e.slice(1))})`}function Yn(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 qn(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 Zn(e){if(["inherit","initial","revert","unset"].includes(e))return e}function Jn(e){for(let t of e.split(","))if(!Pn.includes(t))return;return e}var i=kt(Fe);var D=(e,t)=>{let r=new RegExp(`^${te(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},P=(e,t)=>{let r=new RegExp(`^${te(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var S=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 A[r].map(l=>[`${e}${l}`,a])},Le=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},Y=(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 y="DEFAULT";if(!c){let d,[g]=a.slice(-1);g.match(/^\d+$/)?(y=g,d=Le(t,a.slice(0,-1))):(d=Le(t,a),!d&&a.length<=2&&([,y=y]=a,d=Le(t,[s]))),typeof d=="string"?c=d:y&&d&&(c=d[y])}return{opacity:n,name:s,no:y,color:c,cssColor:X(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},w=(e,t)=>([,r],{theme:o})=>{var l;let n=Y(r,o);if(!n)return;let{alpha:a,color:s,cssColor:c}=n;if(c)return a!=null?{[e]:U(c,a)}:{[`--un-${t}-opacity`]:(l=c.alpha)!=null?l:1,[e]:U(c,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(e,t)=>{let r=[];e=E(e);for(let o=0;o<e.length;o++){let n=ee(e[o]," ",6);if(!n||n.length<3)return e;let a=X(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${U(a)})`)}return r},he=(e,t)=>{var r;return e!=null&&!!((r=Y(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},Tt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var jt=[[/^(?: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,y,d,g,m;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let x=(l=(c=(s=t.animation)==null?void 0:s.durations)==null?void 0:c[e])!=null?l:"1s",V=(d=(y=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:y[e])!=null?d:"linear",L=(m=(g=t.animation)==null?void 0:g.properties)==null?void 0:m[e];return`@keyframes ${e}${o}
|
|
4
4
|
${r(Object.assign({animation:`${e} ${x} ${V} infinite`},L))}`}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 We=e=>([,t],{theme:r})=>{var l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(!a)return;let c=a;switch(s&&(n!=null?c=U(s,n):c=U(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}}},Et=[[/^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(" ")}}],[/^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-(.+)$/,We("from")],[/^(?:bg-gradient-)?to-(.+)$/,We("to")],[/^(?:bg-gradient-)?via-(.+)$/,We("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 j)return{"--un-gradient-shape":`to ${j[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}},{autocomplete:`bg-gradient-to-(${Object.keys(j).filter(e=>e.length<=2&&Array.from(e).every(t=>"rltb".includes(t))).join("|")})`}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in j?`to ${j[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(j).join("|")})`,`shape-(${Object.keys(j).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":j[e]})],["bg-repeat",{"background-repeat":"repeat"}],["bg-no-repeat",{"background-repeat":"no-repeat"}],["bg-repeat-x",{"background-position":"repeat-x"}],["bg-repeat-y",{"background-position":"repeat-y"}],["bg-repeat-round",{"background-position":"round"}],["bg-repeat-space",{"background-position":"space"}],["bg-origin-border",{"background-origin":"border-box"}],["bg-origin-padding",{"background-origin":"padding-box"}],["bg-origin-content",{"background-origin":"content-box"}]];var Vt=[[/^list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)(?:-(outside|inside))?$/,([,e,t])=>t!=null?{"list-style-position":t,"list-style-type":e}:{"list-style-type":e},{autocomplete:["list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)","list-(disc|circle|square|decimal|zero-decimal|greek|roman|upper-roman|alpha|upper-alpha)-(outside|inside)"]}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ot=[[/^accent-(.+)$/,w("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>"]}]],Mt=[[/^caret-(.+)$/,w("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>"]}]],At=[["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"]]]],Ut=[["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"}]],Pt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var _t=[[/^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 Qn=/@media \(min-width: (.+)\)/,Ft=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=E(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(Qn))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Lt=[[/^(?:(\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 ea={mid:"middle",base:"baseline",btm:"bottom"},Wt=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":ea[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Dt=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Bt=[[/^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-)?(.+)$/,w("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"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Nt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ta=e=>{var t;return(t=i.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Ht=[[/^will-change-(.+)/,([,e])=>({"will-change":ta(e)})]];var It=[[/^(?:border|b)()(?:-(.+))?$/,ae,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ae],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ae],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ae],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ae],[/^(?: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-)?(.+)$/,ie,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ie],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ie],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,se,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,se],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,se],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ce,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ce],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ce],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ce],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ce],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ra=e=>([,t],r)=>{var c,l;let o=Y(t,r);if(!o)return;let{alpha:n,color:a,cssColor:s}=o;if(s)return n!=null?{[`border${e}-color`]:U(s,n)}:e===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${e}-color`]:U(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`]:U(s,`var(--un-border${e}-opacity)`)};if(a)return{[`border${e}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ae(e,t){let r=J(e,t);if(r)return[...r,["border-style","solid"]]}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 A&&o!=null)return A[e].map(s=>[`border${s}-width`,o])}function ie([,e="",t],{theme:r}){if(e in A&&he(t,r))return Object.assign({},...A[e].map(o=>ra(o)(["",t],r)))}function se([,e="",t]){let r=i.bracket.percent(t);if(e in A&&r!=null)return A[e].map(o=>[`--un-border${o}-opacity`,r])}function ce([,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 ze&&o!=null)return ze[e].map(a=>[`border${a}-radius`,o])}var Kt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:i.bracket.percent.cssvar(e)})]],Gt=[[/^(?:text|color|c)-(.+)$/,w("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>"}]],Xt=[[/^bg-(.+)$/,w("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":i.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var xe={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Yt=e=>{var t;return(t=i.properties(e))!=null?t:xe[e]},qt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?Yt(e):[xe.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(xe).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)||Yt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(xe)].join("|")})`]}],["transition-none",{transition:"none"}]];var Zt=[["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 Jt={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Qt=[[/^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=E((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=E((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":Jt[e]||i.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Jt).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-)?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"}]],er=[[/^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}}]],tr=[[/^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"}]],rr=[[/^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-(.+)$/,w("-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>"}]],or=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.textShadow)==null?void 0:o[e||"DEFAULT"];return r!=null?{"--un-text-shadow":q(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-(.+)$/,w("--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 nr={"":"",x:"column-",y:"row-"},ar=([,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-${nr[e]}gap`]:o,[`${nr[e]}gap`]:o}},ir=[[/^(?:flex-|grid-)?gap-?()(.+)$/,ar,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,ar,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var N=e=>e.replace("col","column"),De=e=>e[0]==="r"?"Row":"Column",oa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${De(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)},sr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${N(e)}`]:(n=(o=r[`grid${De(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${N(e)}`]:"1/-1"};let r=i.bracket.number(t);if(r!=null)return{[`grid-${N(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-${N(e)}-start`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${N(e)}-end`]:(r=i.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${N(e)}`]:oa(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":N(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${N(e)}`]:(n=(o=r[`gridTemplate${De(e)}`])==null?void 0:o[t])!=null?n:i.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${N(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ye=["auto","hidden","clip","visible","scroll"],cr=[[/^(?:overflow|of)-(.+)$/,([,e])=>ye.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${ye.join("|")}`,`(overflow|of)-(x|y)-${ye.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ye.includes(t)?{[`overflow-${e}`]:t}:void 0]];var lr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],pr=[["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"}]],ur=[[/^order-(.+)$/,([,e])=>({order:i.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],mr=[["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"}]],dr=[["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 Be(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 ve([,e,t],r){let o=Be(t,r);if(o!=null&&e in Re)return Re[e].map(n=>[n.slice(1),o])}var fr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Be(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])-(.+)$/,ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Be(t,r)})]],gr=[["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"}]],br=[[/^z([\d.]+)$/,([,e])=>({"z-index":i.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":i.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],hr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",xr=[["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})]],yr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],vr=[[/^cursor-(.+)$/,([,e])=>({cursor:i.bracket.cssvar(e)||e})]],kr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],$r=[["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"}]],Sr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Cr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Rr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var zr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Tr=[["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 jr=[[/^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[{[z]:"","--un-ring-inset":h,"--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-(.+)$/,w("--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-(.+)$/,w("--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 Er=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[z]:"","--un-shadow-inset":h,"--un-shadow":"0 0 #0000"},{"--un-shadow":q(r,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow, 0 0 #0000), var(--un-ring-shadow, 0 0 #0000), var(--un-shadow)"}]},{autocomplete:"shadow-$boxShadow"}],[/^shadow-(.+)$/,w("--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 na={h:"height",w:"width",inline:"inline-size",block:"block-size"};function le(e,t){return`${e||""}${na[t]}`}function Vr(e,t,r,o){var s;let n=le(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 Or=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[le(e,t)]:Vr(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})=>({[le(e,t)]:Vr(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{[le(e,t)]:(n=Tt(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{[le(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function aa(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 Mr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":aa(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Ar=[[/^pa?()-?(-?.+)$/,S("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,S("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,S("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,S("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,S("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,S("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Ur=[[/^ma?()-?(-?.+)$/,S("margin")],[/^m-?xy()()$/,S("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,S("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,S("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,S("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,S("margin")]];var ia={"--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(" ")},Lr={"--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(" ")},Q=R(C({"--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},Lr),{[z]:""}),Wr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=j[e])!=null?t:i.bracket.cssvar(e)}},{autocomplete:[`transform-origin-(${Object.keys(j).join("|")})`,`origin-(${Object.keys(j).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?j[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Pr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Pr],[/^(?:transform-)?rotate-()(.+)$/,Fr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Fr],[/^(?:transform-)?skew-([xy])-(.+)$/,sa],[/^(?:transform-)?scale-()(.+)$/,_r],[/^(?:transform-)?scale-([xyz])-(.+)$/,_r],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",ia],["transform-cpu",Lr],["transform-none",{transform:"none"}]];function Pr([,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[Q,[...Te[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function _r([,e,t]){let r=i.bracket.cssvar.fraction.percent(t);if(r!=null)return[Q,[...Te[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Fr([,e="",t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return e?[Q,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[Q,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function sa([,e,t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return[Q,{[`--un-skew-${e}`]: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"},Dr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=ca[e];if(r)return{[r]:i.cssvar(t)}}]],Br=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:i.bracket(`[${t}]`)})]];var Nr=[[/^(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}}
|