@unocss/runtime 0.31.12 → 0.31.13
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 pe=Object.defineProperty,zn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var le=(t,e,r)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))ue.call(e,r)&&le(t,r,e[r]);if(ht)for(var r of ht(e))me.call(e,r)&&le(t,r,e[r]);return t},T=(t,e)=>zn(t,Tn(e));var fe=(t,e)=>{var r={};for(var o in t)ue.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&ht)for(var o of ht(t))e.indexOf(o)<0&&me.call(t,o)&&(r[o]=t[o]);return r};var En=(t,e)=>{for(var r in e)pe(t,r,{get:e[r],enumerable:!0})};var Et=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=jn(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)&&!(Et.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}`,Et.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function jn(t){if(!t)return;let e=Vn(t);if(e!=null||(e=An(t),e!=null)||(e=On(t),e!=null)||(e=Pn(t),e!=null)||(e=Un(t),e!=null))return e}function Vn(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 An(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function On(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 Mn=new RegExp(`^(${Et.join("|")})\\((.+)\\)$`,"i");function Pn(t){let e=t.match(Mn);if(!e)return;let[,r,o]=e,n=de(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Un(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=de(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function de(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 _n(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=_n(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var O={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},jt=T(R({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Vt={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"]},At={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ge=["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({},...ge.map(t=>({[t.replace(/ /,"-")]:t})),...ge.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function et(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ot(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 xt=Ot;function ot(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function be(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ot(e)):[t]:[ot(t)]}function Fn(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 yt(t){return t==null?"":Fn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Mt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Pt(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 Mt(r)&&Mt(o)&&Object.keys(o).forEach(a=>{Mt(o[a])?a in r?n[a]=Pt(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 he(t){return typeof t[0]=="string"}function xe(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 Ln=/^\[(.+?)~?="(.*)"\]$/,Wn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function ye(t){return t.match(Ln)}function at(t=""){return Wn.test(t)}function ve(t){return typeof t=="function"?{match:t}:t}function Ut(t){return t.length===3}function $e(t){return t!=null}var vt=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 ke=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function we(t){ke.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(ke,(o,n,a,s)=>s.split(/\s/g).map(i=>i==="~"?n:i.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var Se=new Set;function Ce(t){Se.has(t)||(console.warn("[unocss]",t),Se.add(t))}function Re(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 Dn=t=>t.split(/[\s'"`;>=]+/g).filter(at),it={name:"split",order:0,extract({code:t}){return new Set(Dn(t))}};function Bn(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Nn={shortcuts:-1,default:0};function _t(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(Nn,...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)=>{he(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)=>Pt(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(ve),shortcuts:Bn(s("shortcuts")),extractors:i})}var ze="0.31.12";var Ft=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=_t(e,r)}version=ze;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=_t(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($e);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 pe=Object.defineProperty,zn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var ht=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable;var le=(t,e,r)=>e in t?pe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e||(e={}))ue.call(e,r)&&le(t,r,e[r]);if(ht)for(var r of ht(e))me.call(e,r)&&le(t,r,e[r]);return t},T=(t,e)=>zn(t,Tn(e));var fe=(t,e)=>{var r={};for(var o in t)ue.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&ht)for(var o of ht(t))e.indexOf(o)<0&&me.call(t,o)&&(r[o]=t[o]);return r};var En=(t,e)=>{for(var r in e)pe(t,r,{get:e[r],enumerable:!0})};var Et=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(t=""){let e=jn(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)&&!(Et.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}`,Et.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function jn(t){if(!t)return;let e=Vn(t);if(e!=null||(e=An(t),e!=null)||(e=On(t),e!=null)||(e=Pn(t),e!=null)||(e=Un(t),e!=null))return e}function Vn(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 An(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function On(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 Mn=new RegExp(`^(${Et.join("|")})\\((.+)\\)$`,"i");function Pn(t){let e=t.match(Mn);if(!e)return;let[,r,o]=e,n=de(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Un(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=de(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function de(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 _n(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=_n(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var O={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},jt=T(R({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Vt={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"]},At={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},ge=["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({},...ge.map(t=>({[t.replace(/ /,"-")]:t})),...ge.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function et(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ot(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 xt=Ot;function ot(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function be(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>ot(e)):[t]:[ot(t)]}function Fn(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 yt(t){return t==null?"":Fn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Mt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Pt(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 Mt(r)&&Mt(o)&&Object.keys(o).forEach(a=>{Mt(o[a])?a in r?n[a]=Pt(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 he(t){return typeof t[0]=="string"}function xe(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 Ln=/^\[(.+?)~?="(.*)"\]$/,Wn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function ye(t){return t.match(Ln)}function at(t=""){return Wn.test(t)}function ve(t){return typeof t=="function"?{match:t}:t}function Ut(t){return t.length===3}function $e(t){return t!=null}var vt=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 ke=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function we(t){ke.lastIndex=0;let e=!1;do{let r=t.toString();t=t.replace(ke,(o,n,a,s)=>s.split(/\s/g).map(i=>i==="~"?n:i.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),e=t.toString()!==r}while(e);return t}var Se=new Set;function Ce(t){Se.has(t)||(console.warn("[unocss]",t),Se.add(t))}function Re(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 Dn=t=>t.split(/[\s'"`;>=]+/g).filter(at),it={name:"split",order:0,extract({code:t}){return new Set(Dn(t))}};function Bn(t){return A(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Nn={shortcuts:-1,default:0};function _t(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(Nn,...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)=>{he(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)=>Pt(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(ve),shortcuts:Bn(s("shortcuts")),extractors:i})}var ze="0.31.13";var Ft=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=_t(e,r)}version=ze;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=_t(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($e);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 $=g=>{if(b[g])return b[g];let h=Array.from(f).sort((y,w)=>{var j,M,W;return((j=this.parentOrders.get(y[0]))!=null?j:0)-((M=this.parentOrders.get(w[0]))!=null?M:0)||((W=y[0])==null?void 0:W.localeCompare(w[0]||""))||0}).map(([y,w])=>{let j=w.length,M=w.filter(m=>{var k;return(((k=m[4])==null?void 0:k.layer)||"default")===g}).sort((m,k)=>{var P,H,F;return m[0]-k[0]||(((P=m[4])==null?void 0:P.sort)||0)-(((H=k[4])==null?void 0:H.sort)||0)||((F=m[1])==null?void 0:F.localeCompare(k[1]||""))||0}).map(m=>{var k;return[m[1]?Kn(m[1],o):m[1],m[2],!!((k=m[4])!=null&&k.noMerge)]}).map(m=>[m[0]==null?m[0]:[m[0]],m[1],m[2]]);if(!M.length)return;let W=M.reverse().map(([m,k,P],H)=>{if(!P&&m&&this.config.mergeSelectors)for(let F=H+1;F<j;F++){let B=M[F];if(B&&!B[2]&&B[0]&&B[1]===k)return B[0].push(...m),null}return m?`${[...new Set(m)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${W}${l}}`:W}).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=>$(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:u,getLayers:z,getLayer:$,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},Xn(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}{${yt(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,$,z]=u,g=a.match(x);if(!g)continue;let h=await $(g,r);if(!h)continue;if(typeof h=="string")return[[b,h,z]];let y=be(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(Ut(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=yt(o);if(!i)return;let u=(b=e[3])!=null?b:{},{layer:l,sort:p}=u,d=fe(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(xe(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=we(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 vt,s=(await Promise.all(nt(o).map(async f=>{let b=await this.parseUtil(f,r,!0);return b||Ce(`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(Ut(f)){p.push([f[0],void 0,f[1],void 0,f[2]]);continue}let{selector:b,entries:u,parent:x,sort:$}=this.applyVariants(f,[...f[4],...l],i);a.getFallback(b,x,[[],f[0]])[0].push([u,!!((d=f[3])!=null&&d.noMerge),$!=null?$:0])}return p.concat(a.map(([f,b],u,x)=>{let $=(g,h,y)=>{let w=Math.max(...y.map(M=>M[1])),j=y.map(M=>M[0]);return(g?[j.flat(1)]:j).map(M=>{let W=yt(M);if(W)return[b,u,W,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])=>[...$(!1,h,g.filter(([y])=>y.some(w=>w[0]===E))),...$(!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 Ee(t,e){return new Ft(t,e)}var je=/ \$\$ /,In=t=>t.match(je);function Kn(t,e){return In(t)?t.replace(je,e?` ${e} `:" "):e?`${e} ${t}`:t}var Te=/^\[(.+?)(~?=)"(.*)"\]$/;function Xn(t){return Te.test(t)?t.replace(Te,(e,r,o,n)=>`[${xt(r)}${o}"${xt(n)}"]`):`.${xt(t)}`}var Dt={};En(Dt,{auto:()=>Zn,bracket:()=>oa,bracketOfColor:()=>na,bracketOfLength:()=>aa,cssvar:()=>ia,degree:()=>ca,fraction:()=>ra,global:()=>la,number:()=>ta,numberWithUnit:()=>qn,percent:()=>ea,properties:()=>pa,px:()=>Qn,rem:()=>Jn,time:()=>sa});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"],Lt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Yn=/^(-?[0-9.]+)$/i,Ve=/^(px)$/i;function L(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function qn(t){let e=t.match(Lt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${L(n)}${o}`}function Zn(t){if(t==="auto"||t==="a")return"auto"}function Jn(t){if(t.match(Ve))return`1${t}`;let e=t.match(Lt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n/4)}rem`}function Qn(t){if(t.match(Ve))return`1${t}`;let e=t.match(Lt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${L(n)}${o}`:`${L(n)}px`}function ta(t){if(!Yn.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return L(e)}function ea(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${L(e/100)}`}function ra(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${L(o*100)}%`}function Wt(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 oa(t){return Wt(t)}function na(t){return Wt(t,"color")}function aa(t){return Wt(t,"length")}function ia(t){if(t.match(/^\$\S/))return`var(--${Ot(t.slice(1))})`}function sa(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?`${L(n)}${o}`:`${L(n)}ms`}function ca(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?`${L(n)}${o}`:`${L(n)}deg`}function la(t){if(["inherit","initial","revert","unset"].includes(t))return t}function pa(t){if(t.split(",").every(e=>Gn.includes(e)))return t}var c=Re(Dt);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 O[r].map(l=>[`${t}${l}`,a])},Bt=(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=Bt(e,a.slice(0,-1))):(f=Bt(e,a),!f&&a.length<=2&&([,d=d]=a,f=Bt(e,[s]))),typeof f=="string"?i=f:d&&f&&(i=f[d])}return{opacity:n,name:s,no:d,color:i,cssColor:G(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=G(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${U(a)})`)}return r},$t=(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},Ae=({theme:t,generator:e})=>{let r;return e.userConfig&&e.userConfig.theme&&(r=e.userConfig.theme.verticalBreakpoints),r||(r=t.verticalBreakpoints),r};var Oe=[[/^(?: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",$=(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} ${$} 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 Nt=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}}},Me=[[/^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-(.+)$/,Nt("from")],[/^(?:bg-gradient-)?to-(.+)$/,Nt("to")],[/^(?:bg-gradient-)?via-(.+)$/,Nt("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 Pe=[[/^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"}]],Ue=[[/^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>"]}]],_e=[[/^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>"]}]],Fe=[["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"]]]],Le=[["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"}]],We=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var De=[[/^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 ua=/@media \(min-width: (.+)\)/,Be=[[/^__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(ua))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ne=[[/^(?:(\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 He={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},Ie=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":He[t]}),{autocomplete:`(vertical|align|v)-(${Object.keys(He).join("|")})`}]],Ke=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(t=>[`text-${t}`,{"text-align":t}]);var Xe=[[/^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-none",{outline:"2px solid transparent","outline-offset":"2px"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(t=>[`outline-${t}`,{"outline-style":t}])],Ge=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ma=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},Ye=[[/^will-change-(.+)/,([,t])=>({"will-change":ma(t)})]];var ut=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],qe=[[/^(?: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|b)-(?:style-)?()(.+)$/,Ht,{autocomplete:["(border|b)-style",`(border|b)-(${ut.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${ut.join("|")})`,`(border|b)-<directions>-style-(${ut.join("|")})`,`(border|b)-style-(${ut.join("|")})`]}],[/^(?:border|b)-([rltbsexy])-(?:style-)?(.+)$/,Ht]],fa=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),o=Ht(["",t[1],"solid"]);if(r&&o)return[...r,...o]}function J([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:c.bracket.cssvar.px(e||"1");if(t in O&&o!=null)return O[t].map(s=>[`border${s}-width`,o])}function ct([,t="",e],{theme:r}){if(t in O&&$t(e,r))return Object.assign({},...O[t].map(o=>fa(o)(["",e],r)))}function lt([,t="",e]){let r=c.bracket.percent(e);if(t in O&&r!=null)return O[t].map(o=>[`--un-border${o}-opacity`,r])}function 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 Vt&&o!=null)return Vt[t].map(a=>[`border${a}-radius`,o])}function Ht([,t="",e]){if(ut.includes(e))return t in O?O[t].map(r=>[`border${r}-style`,e]):[["border-style",e]]}var Ze=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Je=[[/^(?: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 kt={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},tr=t=>{var e;return(e=c.properties(t))!=null?e:kt[t]},er=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?tr(t):[kt.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(kt).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)||tr(t)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(kt)].join("|")})`]}],["transition-none",{transition:"none"}]];var rr=[["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 or={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},nr=[[/^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":or[t]||c.global.number(t)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(or).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"}]],ar=[[/^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}}]],ir=[[/^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"}]],sr=[[/^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>"}]],cr=[[/^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 lr={"":"",x:"column-",y:"row-"},pr=([,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-${lr[t]}gap`]:o,[`${lr[t]}gap`]:o}},ur=[[/^(?:flex-|grid-)?gap-?()(.+)$/,pr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,pr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var N=t=>t.replace("col","column"),It=t=>t[0]==="r"?"Row":"Column",da=(t,e,r)=>{var n;let o=(n=e[`gridAuto${It(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)},mr=[["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${It(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)}`]:da(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${It(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 wt=["auto","hidden","clip","visible","scroll"],fr=[[/^(?:overflow|of)-(.+)$/,([,t])=>wt.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-${wt.join("|")}`,`(overflow|of)-(x|y)-${wt.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>wt.includes(e)?{[`overflow-${t}`]:e}:void 0]];var dr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],gr=[["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"}]],br=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],hr=[["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"}]],xr=[["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 Kt(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 St([,t,e],r){let o=Kt(e,r);if(o!=null&&t in jt)return jt[t].map(n=>[n.slice(1),o])}var yr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Kt(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])-(.+)$/,St],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,St],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,St],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,St],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Kt(e,r)})]],vr=[["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"}]],$r=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)}),{autocomplete:"z-<num>"}]],kr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var v="var(--un-empty,/*!*/ /*!*/)",wr=[["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})]],Sr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Cr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],Rr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],zr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Tr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Er=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var jr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Vr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Ar=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Or=[["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 Mr=[[/^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 Pr=[[/^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 ga={h:"height",w:"width",inline:"inline-size",block:"block-size"};function mt(t,e){return`${t||""}${ga[e]}`}function Ur(t,e,r,o){var s;let n=mt(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 _r=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[mt(t,e)]:Ur(t,e,o,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[mt(t,e)]:Ur(t,e,o,r)}),{autocomplete:["(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h)-(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize"]}],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],o)=>{var n;return{[mt(t,e)]:(n=Ae(o))==null?void 0:n[r]}},{autocomplete:["h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints"]}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],o)=>{var n;return{[mt(t,e)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ba(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 Fr=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ba(t)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Lr=[[/^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>"}]],Wr=[[/^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 ha={"--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(" ")},Hr={"--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},Hr),{[E]:""}),Ir=[[/^(?: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-()(.+)$/,Dr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Dr],[/^(?:transform-)?rotate-()(.+)$/,Nr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Nr],[/^(?:transform-)?skew-([xy])-(.+)$/,xa],[/^(?:transform-)?scale-()(.+)$/,Br],[/^(?:transform-)?scale-([xyz])-(.+)$/,Br],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",ha],["transform-cpu",Hr],["transform-none",{transform:"none"}]];function Dr([,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,[...At[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Br([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[Q,[...At[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Nr([,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 xa([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[Q,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ya={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"},Kr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ya[t];if(r)return{[r]:c.cssvar(e)}}]],Xr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Gr=[[/^(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 Z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var W=(r,t,e)=>t in r?mt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,_=(r,t)=>{for(var e in t||(t={}))Z.call(t,e)&&W(r,e,t[e]);if(k)for(var e of k(t))J.call(t,e)&&W(r,e,t[e]);return r},V=(r,t)=>yt(r,St(t));var Q=(r,t)=>{var e={};for(var n in r)Z.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&J.call(r,n)&&(e[n]=r[n]);return e};function xt(r){let t=r.length,e=-1,n,i="",s=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var D=xt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function X(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Ct(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function K(r){return r==null?"":Ct(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function z(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=_({},e);return z(e)&&z(n)&&Object.keys(n).forEach(s=>{z(n[s])?s in e?i[s]=F(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function v(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?v(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:v(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?v(n):n;return e}return r}function Y(r){return typeof r[0]=="string"}function tt(r){return typeof r[0]=="string"}function O(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function et(r=""){return bt.test(r)}function rt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function nt(r){return r!=null}var L=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,s])=>t(s,e,i)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,i,s,o)=>o.split(/\s/g).map(a=>a==="~"?i:a.replace(/^(!?)(.*)/,`$1${i}${s}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var ot=new Set;function at(r){ot.has(r)||(console.warn("[unocss]",r),ot.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(et),H={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function wt(r){return O(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(O),i=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...n.map(u=>u.layers),r.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)=>{Y(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)=>F(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(rt),shortcuts:wt(o("shortcuts")),extractors:a})}var ct="0.31.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable;var W=(r,t,e)=>t in r?mt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,_=(r,t)=>{for(var e in t||(t={}))Z.call(t,e)&&W(r,e,t[e]);if(k)for(var e of k(t))J.call(t,e)&&W(r,e,t[e]);return r},V=(r,t)=>yt(r,St(t));var Q=(r,t)=>{var e={};for(var n in r)Z.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&k)for(var n of k(r))t.indexOf(n)<0&&J.call(r,n)&&(e[n]=r[n]);return e};function xt(r){let t=r.length,e=-1,n,i="",s=r.charCodeAt(0);for(;++e<t;){if(n=r.charCodeAt(e),n===0){i+="\uFFFD";continue}if(n===44){i+="\\2c ";continue}if(n>=1&&n<=31||n===127||e===0&&n>=48&&n<=57||e===1&&n>=48&&n<=57&&s===45){i+=`\\${n.toString(16)} `;continue}if(e===0&&t===1&&n===45){i+=`\\${r.charAt(e)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=r.charAt(e);continue}i+=`\\${r.charAt(e)}`}return i}var D=xt;function P(r){return(Array.isArray(r)?r:Object.entries(r)).filter(t=>t[1]!=null)}function X(r){return Array.isArray(r)?r.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?r.map(t=>P(t)):[r]:[P(r)]}function Ct(r){return r.filter(([t,e],n)=>{if(t.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(r[i][0]===t&&r[i][1]===e)return!1;return!0})}function K(r){return r==null?"":Ct(r).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function z(r){return r&&typeof r=="object"&&!Array.isArray(r)}function F(r,t){let e=r,n=t;if(Array.isArray(e)&&Array.isArray(n))return[...e,...n];if(Array.isArray(e))return[...e];let i=_({},e);return z(e)&&z(n)&&Object.keys(n).forEach(s=>{z(n[s])?s in e?i[s]=F(e[s],n[s]):Object.assign(i,{[s]:n[s]}):Object.assign(i,{[s]:n[s]})}),i}function v(r){let t,e,n;if(Array.isArray(r)){for(e=Array(t=r.length);t--;)e[t]=(n=r[t])&&typeof n=="object"?v(n):n;return e}if(Object.prototype.toString.call(r)==="[object Object]"){e={};for(t in r)t==="__proto__"?Object.defineProperty(e,t,{value:v(r[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(n=r[t])&&typeof n=="object"?v(n):n;return e}return r}function Y(r){return typeof r[0]=="string"}function tt(r){return typeof r[0]=="string"}function O(r=[]){return Array.isArray(r)?r:[r]}function j(r){return Array.from(new Set(r))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,G="$$shortcut-no-merge";function et(r=""){return bt.test(r)}function rt(r){return typeof r=="function"?{match:r}:r}function B(r){return r.length===3}function nt(r){return r!=null}var L=class{_map=new Map;get(t,e){let n=this._map.get(t);if(n)return n.get(e)}getFallback(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,n),i.get(e)}set(t,e,n){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,n),this}has(t,e){var n;return(n=this._map.get(t))==null?void 0:n.has(e)}delete(t,e){var n;return((n=this._map.get(t))==null?void 0:n.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,n])=>Array.from(n.entries()).map(([i,s])=>t(s,e,i)))}};var it=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(r){it.lastIndex=0;let t=!1;do{let e=r.toString();r=r.replace(it,(n,i,s,o)=>o.split(/\s/g).map(a=>a==="~"?i:a.replace(/^(!?)(.*)/,`$1${i}${s}$2`)).join(" ")),t=r.toString()!==e}while(t);return r}var ot=new Set;function at(r){ot.has(r)||(console.warn("[unocss]",r),ot.add(r))}var Rt=r=>r.split(/[\s'"`;>=]+/g).filter(et),H={name:"split",order:0,extract({code:r}){return new Set(Rt(r))}};function wt(r){return O(r).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(r={},t={}){let e=Object.assign({},t,r),n=(e.presets||[]).flatMap(O),i=[...n.filter(u=>u.enforce==="pre"),...n.filter(u=>!u.enforce),...n.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...n.map(u=>u.layers),r.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)=>{Y(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)=>F(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(rt),shortcuts:wt(o("shortcuts")),extractors:a})}var ct="0.31.13";var q=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=ct;_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,n=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=>n.add(a))}return n}makeContext(t,e){let n={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:e};return n}async parseToken(t,e){var l;if(this.blocked.has(t))return;let n=`${t}${e?` ${e}`:""}`;if(this._cache.has(n))return this._cache.get(n);let i=t;for(let f of this.config.preprocess)i=f(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(n,null);return}let s=this.matchVariants(t,i);if(!s||this.isBlocked(s[1])){this.blocked.add(t),this._cache.set(n,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(n,f),f}else{let f=(l=await this.parseUtil(o.variantMatch,o))==null?void 0:l.map(C=>this.stringifyUtil(C)).filter(nt);if(f!=null&&f.length)return this._cache.set(n,f),f}this._cache.set(n,null)}async generate(t="",{id:e,scope:n,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],n):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 n=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&&n.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),n.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,n]}applyVariants(t,e=t[4],n=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(n)),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,n){e=P(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,n||t.rawSelector,e,void 0,t.variantHandlers]),a=`${i}{${K(s)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,e,n=!1){var C,g;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(n||!((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)&&!n)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=X(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(B(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:n,parent:i,layer:s,sort:o}=this.applyVariants(t),a=K(n);if(!a)return;let u=(x=t[3])!=null?x:{},{layer:l,sort:f}=u,C=Q(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,n=3){if(n===0)return;let i,s;for(let o of this.config.shortcuts)if(tt(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=st(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var a;return((a=this.expandShortcut(o,e,n-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,n,i={layer:this.config.shortcutsLayer}){var C;let s=new L,o=(await Promise.all(j(n).map(async g=>{let x=await this.parseUtil(g,e,!0);return x||at(`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(B(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]===G))),...U(!0,d,p.filter(([m])=>m.every(S=>S[0]!==G)))])}).flat(2).filter(Boolean))}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(r,t){return new q(r,t)}var ft=/ \$\$ /,At=r=>r.match(ft);function $t(r,t){return At(r)?r.replace(ft,t?` ${t} `:" "):t?`${t} ${r}`:r}var lt=/^\[(.+?)(~?=)"(.*)"\]$/;function Tt(r){return lt.test(r)?r.replace(lt,(t,e,n,i)=>`[${D(e)}${n}"${D(i)}"]`):`.${D(r)}`}var Mt=r=>r.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=r=>r.charAt(0).toUpperCase()+r.slice(1),dt=r=>r.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(r){let t={};function e(n){let i=t[n];if(i)return i;let s=Mt(n);if(s!=="filter"&&s in r)return t[n]=dt(s);s=pt(s);for(let o=0;o<gt.length;o++){let a=`${gt[o]}${s}`;if(a in r)return t[n]=dt(pt(a))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=e(i[0]))})}function N(r={}){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,n=Object.assign(r.defaults||{},e);if(e!=null&&e.autoPrefix){let c=n.postprocess;c||(c=[]),Array.isArray(c)||(c=[c]),c.unshift(ht(document.createElement("div").style)),n.postprocess=c}(R=e==null?void 0:e.configResolved)==null||R.call(e,t,n);let i,s=!0,o,a=ut(t,n),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())}N();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var mt=Object.defineProperty,An=Object.defineProperties;var On=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ut=(e,t,r)=>t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))ft.call(t,r)&&ut(e,r,t[r]);if(xe)for(var r of xe(t))dt.call(t,r)&&ut(e,r,t[r]);return e},V=(e,t)=>An(e,On(t));var gt=(e,t)=>{var r={};for(var o in e)ft.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&xe)for(var o of xe(e))t.indexOf(o)<0&&dt.call(e,o)&&(r[o]=e[o]);return r};var Mn=(e,t)=>{for(var r in t)mt(e,r,{get:t[r],enumerable:!0})};function ee(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 ye=je;function re(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function bt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>re(t)):[e]:[re(e)]}function Pn(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 ve(e){return e==null?"":Pn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ve(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 Ve(r)&&Ve(o)&&Object.keys(o).forEach(a=>{Ve(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 ht(e){return typeof e[0]=="string"}function xt(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 Un=/^\[(.+?)~?="(.*)"\]$/,_n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,A="$$shortcut-no-merge";function yt(e){return e.match(Un)}function ae(e=""){return _n.test(e)}function vt(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function $t(e){return e!=null}var $e=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 kt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function wt(e){kt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(kt,(o,n,a,s)=>s.split(/\s/g).map(i=>i==="~"?n:i.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var St=new Set;function Ct(e){St.has(e)||(console.warn("[unocss]",e),St.add(e))}function Rt(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 Fn=e=>e.split(/[\s'"`;>=]+/g).filter(ae),ie={name:"split",order:0,extract({code:e}){return new Set(Fn(e))}};function Ln(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Dn={shortcuts:-1,default:0};function Oe(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Dn,...o.map(f=>f.layers),e.layers);function s(f){return ne([...n.flatMap(x=>O(x[f]||[])),...O(r[f]||[])])}let i=s("extractors");i.length||i.push(ie),i.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},m=l.length;l.forEach((f,x)=>{ht(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let u=te([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>oe(f,x),{}));s("extendTheme").forEach(f=>f(u));let b={templates:ne(n.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return V(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(vt),shortcuts:Ln(s("shortcuts")),extractors:i})}var zt="0.31.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,An=Object.defineProperties;var On=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable;var ut=(e,t,r)=>t in e?mt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))ft.call(t,r)&&ut(e,r,t[r]);if(xe)for(var r of xe(t))dt.call(t,r)&&ut(e,r,t[r]);return e},V=(e,t)=>An(e,On(t));var gt=(e,t)=>{var r={};for(var o in e)ft.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&xe)for(var o of xe(e))t.indexOf(o)<0&&dt.call(e,o)&&(r[o]=e[o]);return r};var Mn=(e,t)=>{for(var r in t)mt(e,r,{get:t[r],enumerable:!0})};function ee(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 ye=je;function re(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function bt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>re(t)):[e]:[re(e)]}function Pn(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 ve(e){return e==null?"":Pn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Ve(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 Ve(r)&&Ve(o)&&Object.keys(o).forEach(a=>{Ve(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 ht(e){return typeof e[0]=="string"}function xt(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 Un=/^\[(.+?)~?="(.*)"\]$/,_n=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,A="$$shortcut-no-merge";function yt(e){return e.match(Un)}function ae(e=""){return _n.test(e)}function vt(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function $t(e){return e!=null}var $e=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 kt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function wt(e){kt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(kt,(o,n,a,s)=>s.split(/\s/g).map(i=>i==="~"?n:i.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var St=new Set;function Ct(e){St.has(e)||(console.warn("[unocss]",e),St.add(e))}function Rt(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 Fn=e=>e.split(/[\s'"`;>=]+/g).filter(ae),ie={name:"split",order:0,extract({code:e}){return new Set(Fn(e))}};function Ln(e){return O(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Dn={shortcuts:-1,default:0};function Oe(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(O),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(Dn,...o.map(f=>f.layers),e.layers);function s(f){return ne([...n.flatMap(x=>O(x[f]||[])),...O(r[f]||[])])}let i=s("extractors");i.length||i.push(ie),i.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},m=l.length;l.forEach((f,x)=>{ht(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let u=te([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>oe(f,x),{}));s("extendTheme").forEach(f=>f(u));let b={templates:ne(n.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.templates)}).flat()),extractors:n.map(f=>{var x;return O((x=f.autocomplete)==null?void 0:x.extractors)}).flat().sort((f,x)=>(f.order||0)-(x.order||0))};return V(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:u,rulesSize:m,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:b,variants:s("variants").map(vt),shortcuts:Ln(s("shortcuts")),extractors:i})}var zt="0.31.13";var Me=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Oe(t,r)}version=zt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Oe(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($t);if(p!=null&&p.length)return this._cache.set(o,p),p}this._cache.set(o,null)}async generate(t="",{id:r,scope:o,preflights:n=!0,safelist:a=!0,minify:s=!1}={}){let 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={},f=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(f.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,_;return((T=this.parentOrders.get(y[0]))!=null?T:0)-((E=this.parentOrders.get(w[0]))!=null?E:0)||((_=y[0])==null?void 0:_.localeCompare(w[0]||""))||0}).map(([y,w])=>{let T=w.length,E=w.filter(d=>{var k;return(((k=d[4])==null?void 0:k.layer)||"default")===g}).sort((d,k)=>{var j,W,U;return d[0]-k[0]||(((j=d[4])==null?void 0:j.sort)||0)-(((W=k[4])==null?void 0:W.sort)||0)||((U=d[1])==null?void 0:U.localeCompare(k[1]||""))||0}).map(d=>{var k;return[d[1]?Bn(d[1],o):d[1],d[2],!!((k=d[4])!=null&&k.noMerge)]}).map(d=>[d[0]==null?d[0]:[d[0]],d[1],d[2]]);if(!E.length)return;let _=E.reverse().map(([d,k,j],W)=>{if(!j&&d&&this.config.mergeSelectors)for(let U=W+1;U<T;U++){let F=E[U];if(F&&!F[2]&&F[0]&&F[1]===k)return F[0].push(...d),null}return d?`${[...new Set(d)].join(`,${l}`)}{${k}}`:k}).filter(Boolean).reverse().join(l);return y?`${y}{${l}${_}${l}}`:_}).filter(Boolean).join(l);return n&&(h=[x[g],h].filter(Boolean).join(l)),b[g]=!s&&h?`/* layer: ${g} */${l}${h}`:h},z=(g=f,h)=>g.filter(y=>!(h!=null&&h.includes(y))).map(y=>v(y)||"").filter(Boolean).join(l);return{get css(){return z()},layers:f,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},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(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}{${ve(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 f=l[b];if(!f||((u=f[2])==null?void 0:u.internal)&&!o)continue;let[x,v,z]=f,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=bt(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(Ae(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=ve(o);if(!i)return;let f=(b=t[3])!=null?b:{},{layer:l,sort:p}=f,m=gt(f,["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(xt(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=wt(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 $e,s=(await Promise.all(ne(o).map(async u=>{let b=await this.parseUtil(u,r,!0);return b||Ct(`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(Ae(u)){p.push([u[0],void 0,u[1],void 0,u[2]]);continue}let{selector:b,entries:f,parent:x,sort:v}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(b,x,[[],u[0]])[0].push([f,!!((m=u[3])!=null&&m.noMerge),v!=null?v:0])}return p.concat(a.map(([u,b],f,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 _=ve(E);if(_)return[b,f,_,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 Et(e,t){return new Me(e,t)}var jt=/ \$\$ /,Nn=e=>e.match(jt);function Bn(e,t){return Nn(e)?e.replace(jt,t?` ${t} `:" "):t?`${t} ${e}`:e}var Tt=/^\[(.+?)(~?=)"(.*)"\]$/;function Hn(e){return Tt.test(e)?e.replace(Tt,(t,r,o,n)=>`[${ye(r)}${o}"${ye(n)}"]`):`.${ye(e)}`}var Pe=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,Vt=(e={})=>{var o,n;let t=(o=e.prefix)!=null?o:"un-",r=(n=e.prefixedOnly)!=null?n:!1;return a=>{let s=yt(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(Pe)||[];return m==="~"||!m?`${p}${i}`:`${p}${i}-${m}`}};var In=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,Kn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,At=/[\s'"`;>]+/,Ot={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(In),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(Kn),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=At.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=At.exec(l.slice(u))}b===void 0&&(b=l.slice(u));let[,f="",x]=b.match(Pe)||[];return{extracted:`${f}${i}-${x}`,transformSuggestions(v){return v.filter(z=>z.startsWith(`${f}${i}-`)).map(z=>f+z.slice(f.length+i.length+1))},resolveReplacement(v){return{start:u+p,end:u+p+b.length,replacement:f+v.slice(f.length+i.length+1)}}}}};var Xn=["v-bind:",":"],Mt=/[\s'"`;]+/g,Gn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Yn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,Pt=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(Gn)).flatMap(i=>Array.from((i[1]||"").matchAll(Yn))).flatMap(([,i,l,p])=>{if(t.includes(i))return[];for(let m of Xn)if(i.startsWith(m)){i=i.slice(m.length);break}return p?["class","className"].includes(i)?p.split(Mt).filter(ae):p.split(Mt).filter(Boolean).map(m=>`[${i}~="${m}"]`):ae(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var qn=(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=[Vt(e)],r=[Pt(e)],o=[Ot];return e.strict||r.unshift(ie),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:o}}},Ut=qn;var Ue=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(e=""){let t=Zn(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)&&!(Ue.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}`,Ue.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Zn(e){if(!e)return;let t=Jn(e);if(t!=null||(t=Qn(e),t!=null)||(t=ea(e),t!=null)||(t=ra(e),t!=null)||(t=oa(e),t!=null))return t}function Jn(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 ea(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 ta=new RegExp(`^(${Ue.join("|")})\\((.+)\\)$`,"i");function ra(e){let t=e.match(ta);if(!t)return;let[,r,o]=t,n=_t(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function oa(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=_t(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function _t(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 na(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=na(e,t);if(!a)return;let[s,i]=a;o.push(s),e=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"]},_e=V(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"]}),Fe={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"]},Le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ft=["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({},...Ft.map(e=>({[e.replace(/ /,"-")]:e})),...Ft.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));var Ne={};Mn(Ne,{auto:()=>ca,bracket:()=>da,bracketOfColor:()=>ga,bracketOfLength:()=>ba,cssvar:()=>ha,degree:()=>ya,fraction:()=>fa,global:()=>va,number:()=>ua,numberWithUnit:()=>sa,percent:()=>ma,properties:()=>$a,px:()=>pa,rem:()=>la,time:()=>xa});var aa=["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"],De=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,ia=/^(-?[0-9.]+)$/i,Lt=/^(px)$/i;function N(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function sa(e){let t=e.match(De);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${N(n)}${o}`}function ca(e){if(e==="auto"||e==="a")return"auto"}function la(e){if(e.match(Lt))return`1${e}`;let t=e.match(De);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n/4)}rem`}function pa(e){if(e.match(Lt))return`1${e}`;let t=e.match(De);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${N(n)}${o}`:`${N(n)}px`}function ua(e){if(!ia.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return N(t)}function ma(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${N(t/100)}`}function fa(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 We(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 da(e){return We(e)}function ga(e){return We(e,"color")}function ba(e){return We(e,"length")}function ha(e){if(e.match(/^\$\S/))return`var(--${je(e.slice(1))})`}function xa(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 ya(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 va(e){if(["inherit","initial","revert","unset"].includes(e))return e}function $a(e){if(e.split(",").every(t=>aa.includes(t)))return e}var c=Rt(Ne);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}:`}},D=(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 P[r].map(l=>[`${e}${l}`,a])},Be=(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=Be(t,a.slice(0,-1))):(u=Be(t,a),!u&&a.length<=2&&([,m=m]=a,u=Be(t,[s]))),typeof u=="string"?i=u:m&&u&&(i=u[m])}return{opacity:n,name:s,no:m,color:i,cssColor:G(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=G(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${L(a)})`)}return r},ke=(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},Dt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Wt=[[/^(?: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,f;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=(f=(b=t.animation)==null?void 0:b.properties)==null?void 0:f[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 He=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}}},Nt=[[/^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-(.+)$/,He("from")],[/^(?:bg-gradient-)?to-(.+)$/,He("to")],[/^(?:bg-gradient-)?via-(.+)$/,He("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 Bt=[[/^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"}]],Ht=[[/^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>"]}]],It=[[/^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>"]}]],Kt=[["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"]]]],Xt=[["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"}]],Gt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Yt=[[/^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 ka=/@media \(min-width: (.+)\)/,qt=[[/^__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(ka))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Zt=[[/^(?:(\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 Jt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},Qt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Jt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Jt).join("|")})`}]],er=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var tr=[[/^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-none",{outline:"2px solid transparent","outline-offset":"2px"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}])],rr=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],wa=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},or=[[/^will-change-(.+)/,([,e])=>({"will-change":wa(e)})]];var me=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],nr=[[/^(?: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|b)-(?:style-)?()(.+)$/,Ie,{autocomplete:["(border|b)-style",`(border|b)-(${me.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${me.join("|")})`,`(border|b)-<directions>-style-(${me.join("|")})`,`(border|b)-style-(${me.join("|")})`]}],[/^(?:border|b)-([rltbsexy])-(?:style-)?(.+)$/,Ie]],Sa=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),o=Ie(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function J([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:c.bracket.cssvar.px(t||"1");if(e in P&&o!=null)return P[e].map(s=>[`border${s}-width`,o])}function le([,e="",t],{theme:r}){if(e in P&&ke(t,r))return Object.assign({},...P[e].map(o=>Sa(o)(["",t],r)))}function pe([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[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 Fe&&o!=null)return Fe[e].map(a=>[`border${a}-radius`,o])}function Ie([,e="",t]){if(me.includes(t))return e in P?P[e].map(r=>[`border${r}-style`,t]):[["border-style",t]]}var ar=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],ir=[[/^(?: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>"}]],sr=[[/^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 we={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},cr=e=>{var t;return(t=c.properties(e))!=null?t:we[e]},lr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?cr(e):[we.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(we).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)||cr(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(we)].join("|")})`]}],["transition-none",{transition:"none"}]];var pr=[["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 ur={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},mr=[[/^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":ur[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(ur).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"}]],fr=[[/^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}}]],dr=[[/^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"}]],gr=[[/^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>"}]],br=[[/^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 hr={"":"",x:"column-",y:"row-"},xr=([,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-${hr[e]}gap`]:o,[`${hr[e]}gap`]:o}},yr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,xr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,xr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var H=e=>e.replace("col","column"),Ke=e=>e[0]==="r"?"Row":"Column",Ca=(e,t,r)=>{var n;let o=(n=t[`gridAuto${Ke(e)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},vr=[["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${Ke(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)}`]:Ca(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${Ke(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 Se=["auto","hidden","clip","visible","scroll"],$r=[[/^(?:overflow|of)-(.+)$/,([,e])=>Se.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${Se.join("|")}`,`(overflow|of)-(x|y)-${Se.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Se.includes(t)?{[`overflow-${e}`]:t}:void 0]];var kr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],wr=[["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"}]],Sr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Cr=[["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"}]],Rr=[["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 Xe(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 Ce([,e,t],r){let o=Xe(t,r);if(o!=null&&e in _e)return _e[e].map(n=>[n.slice(1),o])}var zr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Xe(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])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,Ce],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,Ce],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,Ce],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Xe(t,r)})]],Tr=[["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"}]],Er=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],jr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var $="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-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],Ar=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Or=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Mr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Pr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Ur=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],_r=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Fr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Lr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Dr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],Wr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var Nr=[[/^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":$,"--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 Br=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[A]:"","--un-shadow-inset":$,"--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 Ra={h:"height",w:"width",inline:"inline-size",block:"block-size"};function fe(e,t){return`${e||""}${Ra[t]}`}function Hr(e,t,r,o){var s;let n=fe(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 Ir=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[fe(e,t)]:Hr(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})=>({[fe(e,t)]:Hr(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{[fe(e,t)]:(n=Dt(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{[fe(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function za(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 Kr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":za(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var Xr=[[/^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>"}]],Gr=[[/^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 Ta={"--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(" ")},Jr={"--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},Jr),{[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-()(.+)$/,Yr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Yr],[/^(?:transform-)?rotate-()(.+)$/,Zr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Zr],[/^(?:transform-)?skew-([xy])-(.+)$/,Ea],[/^(?:transform-)?scale-()(.+)$/,qr],[/^(?:transform-)?scale-([xyz])-(.+)$/,qr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",Ta],["transform-cpu",Jr],["transform-none",{transform:"none"}]];function Yr([,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,[...Le[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function qr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[Q,[...Le[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Zr([,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 Ea([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[Q,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var ja={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},eo=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=ja[e];if(r)return{[r]:c.cssvar(t)}}]],to=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var ro=[[/^(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 Je=Object.defineProperty,En=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Ye=(e,t,r)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Qe.call(t,r)&&Ye(e,r,t[r]);if(le)for(var r of le(t))et.call(t,r)&&Ye(e,r,t[r]);return e},j=(e,t)=>En(e,zn(t));var tt=(e,t)=>{var r={};for(var n in e)Qe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&le)for(var n of le(e))t.indexOf(n)<0&&et.call(e,n)&&(r[n]=e[n]);return r};var jn=(e,t)=>{for(var r in t)Je(e,r,{get:t[r],enumerable:!0})};var rt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},nt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":rt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(rt).join("|")})`}]],ot=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var Se=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function ke(e=""){let t=An(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)&&!(Se.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}`,Se.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function An(e){if(!e)return;let t=Vn(e);if(t!=null||(t=Pn(e),t!=null)||(t=On(e),t!=null)||(t=Mn(e),t!=null)||(t=Fn(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,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 Pn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function On(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 Un=new RegExp(`^(${Se.join("|")})\\((.+)\\)$`,"i");function Mn(e){let t=e.match(Un);if(!t)return;let[,r,n]=t,o=it(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Fn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=it(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function it(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 _n(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=_n(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}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"]},Ce=j(S({},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"]}),Re={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"]},st=["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({},...st.map(e=>({[e.replace(/ /,"-")]:e})),...st.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ee(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 ue=Ee;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function at(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Wn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function fe(e){return e==null?"":Wn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ze(e){return e&&typeof e=="object"&&!Array.isArray(e)}function je(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 ze(r)&&ze(n)&&Object.keys(n).forEach(i=>{ze(n[i])?i in r?o[i]=je(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 ct(e){return typeof e[0]=="string"}function lt(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 Ln=/^\[(.+?)~?="(.*)"\]$/,Dn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function ut(e){return e.match(Ln)}function Y(e=""){return Dn.test(e)}function ft(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function pt(e){return e!=null}var pe=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 mt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function dt(e){mt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(mt,(n,o,i,a)=>a.split(/\s/g).map(s=>s==="~"?o:s.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var ht=new Set;function gt(e){ht.has(e)||(console.warn("[unocss]",e),ht.add(e))}function xt(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 Hn=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function Bn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Nn={shortcuts:-1,default:0};function Ve(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(Nn,...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)=>{ct(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)=>je(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 j(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(ft),shortcuts:Bn(a("shortcuts")),extractors:s})}var bt="0.31.12";var Pe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ve(t,r)}version=bt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ve(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(pt);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 Je=Object.defineProperty,En=Object.defineProperties;var zn=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var Qe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var Ye=(e,t,r)=>t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S=(e,t)=>{for(var r in t||(t={}))Qe.call(t,r)&&Ye(e,r,t[r]);if(le)for(var r of le(t))et.call(t,r)&&Ye(e,r,t[r]);return e},j=(e,t)=>En(e,zn(t));var tt=(e,t)=>{var r={};for(var n in e)Qe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&le)for(var n of le(e))t.indexOf(n)<0&&et.call(e,n)&&(r[n]=e[n]);return r};var jn=(e,t)=>{for(var r in t)Je(e,r,{get:t[r],enumerable:!0})};var rt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},nt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":rt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(rt).join("|")})`}]],ot=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var Se=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function ke(e=""){let t=An(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)&&!(Se.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}`,Se.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function An(e){if(!e)return;let t=Vn(e);if(t!=null||(t=Pn(e),t!=null)||(t=On(e),t!=null)||(t=Mn(e),t!=null)||(t=Fn(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,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 Pn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function On(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 Un=new RegExp(`^(${Se.join("|")})\\((.+)\\)$`,"i");function Mn(e){let t=e.match(Un);if(!t)return;let[,r,n]=t,o=it(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function Fn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=it(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function it(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 _n(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=_n(e,t);if(!i)return;let[a,s]=i;n.push(a),e=s}if(n.length>0)return n}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"]},Ce=j(S({},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"]}),Re={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"]},st=["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({},...st.map(e=>({[e.replace(/ /,"-")]:e})),...st.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function G(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ee(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 ue=Ee;function Z(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function at(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>Z(t)):[e]:[Z(e)]}function Wn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function fe(e){return e==null?"":Wn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ze(e){return e&&typeof e=="object"&&!Array.isArray(e)}function je(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 ze(r)&&ze(n)&&Object.keys(n).forEach(i=>{ze(n[i])?i in r?o[i]=je(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 ct(e){return typeof e[0]=="string"}function lt(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 Ln=/^\[(.+?)~?="(.*)"\]$/,Dn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,W="$$shortcut-no-merge";function ut(e){return e.match(Ln)}function Y(e=""){return Dn.test(e)}function ft(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function pt(e){return e!=null}var pe=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 mt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function dt(e){mt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(mt,(n,o,i,a)=>a.split(/\s/g).map(s=>s==="~"?o:s.replace(/^(!?)(.*)/,`$1${o}${i}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var ht=new Set;function gt(e){ht.has(e)||(console.warn("[unocss]",e),ht.add(e))}function xt(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 Hn=e=>e.split(/[\s'"`;>=]+/g).filter(Y),J={name:"split",order:0,extract({code:e}){return new Set(Hn(e))}};function Bn(e){return z(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Nn={shortcuts:-1,default:0};function Ve(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(Nn,...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)=>{ct(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)=>je(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 j(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(ft),shortcuts:Bn(a("shortcuts")),extractors:s})}var bt="0.31.13";var Pe=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ve(t,r)}version=bt;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ve(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(pt);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,U;return((R=this.parentOrders.get(b[0]))!=null?R:0)-((T=this.parentOrders.get(v[0]))!=null?T:0)||((U=b[0])==null?void 0:U.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]?Gn(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 U=T.reverse().map(([f,$,E],_)=>{if(!E&&f&&this.config.mergeSelectors)for(let V=_+1;V<R;V++){let M=T[V];if(M&&!M[2]&&M[0]&&M[1]===$)return M[0].push(...f),null}return f?`${[...new Set(f)].join(`,${l}`)}{${$}}`:$}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${U}${l}}`:U}).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},qn(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}{${fe(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=at(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(Ae(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=fe(n);if(!s)return;let p=(x=t[3])!=null?x:{},{layer:l,sort:u}=p,h=tt(p,["layer","sort"]),m=j(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(lt(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=dt(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 pe,a=(await Promise.all(X(n).map(async m=>{let x=await this.parseUtil(m,r,!0);return x||gt(`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(Ae(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 U=fe(T);if(U)return[x,p,U,y,j(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 $t(e,t){return new Pe(e,t)}var wt=/ \$\$ /,Kn=e=>e.match(wt);function Gn(e,t){return Kn(e)?e.replace(wt,t?` ${t} `:" "):t?`${t} ${e}`:e}var yt=/^\[(.+?)(~?=)"(.*)"\]$/;function qn(e){return yt.test(e)?e.replace(yt,(t,r,n,o)=>`[${ue(r)}${n}"${ue(o)}"]`):`.${ue(e)}`}var Me={};jn(Me,{auto:()=>Jn,bracket:()=>oo,bracketOfColor:()=>io,bracketOfLength:()=>so,cssvar:()=>ao,degree:()=>lo,fraction:()=>no,global:()=>uo,number:()=>to,numberWithUnit:()=>Yn,percent:()=>ro,properties:()=>fo,px:()=>eo,rem:()=>Qn,time:()=>co});var Zn=["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"],Oe=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Xn=/^(-?[0-9.]+)$/i,vt=/^(px)$/i;function O(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Yn(e){let t=e.match(Oe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${O(o)}${n}`}function Jn(e){if(e==="auto"||e==="a")return"auto"}function Qn(e){if(e.match(vt))return`1${e}`;let t=e.match(Oe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o/4)}rem`}function eo(e){if(e.match(vt))return`1${e}`;let t=e.match(Oe);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${O(o)}${n}`:`${O(o)}px`}function to(e){if(!Xn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return O(t)}function ro(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${O(t/100)}`}function no(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${O(n*100)}%`}function Ue(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 oo(e){return Ue(e)}function io(e){return Ue(e,"color")}function so(e){return Ue(e,"length")}function ao(e){if(e.match(/^\$\S/))return`var(--${Ee(e.slice(1))})`}function co(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?`${O(o)}${n}`:`${O(o)}ms`}function lo(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?`${O(o)}${n}`:`${O(o)}deg`}function uo(e){if(["inherit","initial","revert","unset"].includes(e))return e}function fo(e){if(e.split(",").every(t=>Zn.includes(t)))return e}var c=xt(Me);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 A=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 P[r].map(l=>[`${e}${l}`,i])},Fe=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},me=(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=Fe(t,i.slice(0,-1))):(m=Fe(t,i),!m&&i.length<=2&&([,h=h]=i,m=Fe(t,[a]))),typeof m=="string"?s=m:h&&m&&(s=m[h])}return{opacity:o,name:a,no:h,color:s,cssColor:ke(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},k=(e,t)=>([,r],{theme:n})=>{var l;let o=me(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}`)}},de=(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=ke(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${D(i)})`)}return r},St=(e,t)=>{var r;return e!=null&&!!((r=me(e,t))!=null&&r.color)},he=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.breakpoints),r||(r=e.breakpoints),r},kt=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Ct=[[/^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-none",{outline:"2px solid transparent","outline-offset":"2px"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}])],Rt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],po=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Tt=[[/^will-change-(.+)/,([,e])=>({"will-change":po(e)})]];var oe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],Et=[[/^(?: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|b)-(?:style-)?()(.+)$/,_e,{autocomplete:["(border|b)-style",`(border|b)-(${oe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${oe.join("|")})`,`(border|b)-<directions>-style-(${oe.join("|")})`,`(border|b)-style-(${oe.join("|")})`]}],[/^(?:border|b)-([rltbsexy])-(?:style-)?(.+)$/,_e]],mo=e=>([,t],r)=>{var s,l;let n=me(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),n=_e(["",e[1],"solid"]);if(r&&n)return[...r,...n]}function B([,e="",t],{theme:r}){var o,i;let n=(i=(o=r.lineWidth)==null?void 0:o[t||"DEFAULT"])!=null?i:c.bracket.cssvar.px(t||"1");if(e in P&&n!=null)return P[e].map(a=>[`border${a}-width`,n])}function te([,e="",t],{theme:r}){if(e in P&&St(t,r))return Object.assign({},...P[e].map(n=>mo(n)(["",t],r)))}function re([,e="",t]){let r=c.bracket.percent(t);if(e in P&&r!=null)return P[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 Re&&n!=null)return Re[e].map(i=>[`border${i}-radius`,n])}function _e([,e="",t]){if(oe.includes(t))return e in P?P[e].map(r=>[`border${r}-style`,t]):[["border-style",t]]}var zt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],jt=[[/^(?: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>"}]],At=[[/^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 ge={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Vt=e=>{var t;return(t=c.properties(e))!=null?t:ge[e]},Pt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?Vt(e):[ge.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(ge).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)||Vt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(ge)].join("|")})`]}],["transition-none",{transition:"none"}]];var Ot=[["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 Ut={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Mt=[[/^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":Ut[e]||c.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(Ut).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"}]],Ft=[[/^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}}]],_t=[[/^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"}]],Wt=[[/^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>"}]],Lt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":de(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 Dt={"":"",x:"column-",y:"row-"},Ht=([,e="",t],{theme:r})=>{var o,i;let n=(i=(o=r.spacing)==null?void 0:o[t])!=null?i:c.bracket.cssvar.rem(t);if(n!=null)return{[`grid-${Dt[e]}gap`]:n,[`${Dt[e]}gap`]:n}},Bt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ht,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ht,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var F=e=>e.replace("col","column"),We=e=>e[0]==="r"?"Row":"Column",ho=(e,t,r)=>{var o;let n=(o=t[`gridAuto${We(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)},Nt=[["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${We(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)}`]:ho(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${We(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 xe=["auto","hidden","clip","visible","scroll"],It=[[/^(?:overflow|of)-(.+)$/,([,e])=>xe.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${xe.join("|")}`,`(overflow|of)-(x|y)-${xe.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>xe.includes(t)?{[`overflow-${e}`]:t}:void 0]];var De=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Kt=[["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"}]],Gt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],qt=[["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"}]],Zt=[["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 Le(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 be([,e,t],r){let n=Le(t,r);if(n!=null&&e in Ce)return Ce[e].map(o=>[o.slice(1),n])}var Xt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Le(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])-(.+)$/,be],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,be],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,be],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,be],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Le(t,r)})]],Yt=[["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"}]],Jt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],Qt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var ye="var(--un-empty,/*!*/ /*!*/)",er=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],tr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],rr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],nr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],or=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],ir=[["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)"}]],ar=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],cr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],lr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],ur=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],fr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}]],pr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var mr=[[/^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":ye,"--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 dr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[W]:"","--un-shadow-inset":ye,"--un-shadow":"0 0 #0000"},{"--un-shadow":de(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 go={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ie(e,t){return`${e||""}${go[t]}`}function hr(e,t,r,n){var a;let o=ie(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 gr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ie(e,t)]:hr(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})=>({[ie(e,t)]:hr(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{[ie(e,t)]:(o=kt(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{[ie(e,t)]:(o=he(n))==null?void 0:o[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function xo(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 xr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":xo(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var br=[[/^pa?()-?(-?.+)$/,A("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,A("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,A("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,A("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],yr=[[/^ma?()-?(-?.+)$/,A("margin")],[/^m-?xy()()$/,A("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,A("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,A("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,A("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,A("margin")]];var bo={"--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(" ")},Sr={"--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=j(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},Sr),{[W]:""}),kr=[[/^(?: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-()(.+)$/,$r],[/^(?:transform-)?translate-([xyz])-(.+)$/,$r],[/^(?:transform-)?rotate-()(.+)$/,vr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,vr],[/^(?:transform-)?skew-([xy])-(.+)$/,yo],[/^(?:transform-)?scale-()(.+)$/,wr],[/^(?:transform-)?scale-([xyz])-(.+)$/,wr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[N,{transform:"var(--un-transform)"}]],["transform-gpu",bo],["transform-cpu",Sr],["transform-none",{transform:"none"}]];function $r([,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,[...Te[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function wr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[N,[...Te[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function vr([,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 yo([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[N,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var $o={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"},Cr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=$o[e];if(r)return{[r]:c.cssvar(t)}}]],Rr=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Tr=[[/^(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 Er=[[/^(?: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 zr=[[/^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 jr=[Cr,Rr,br,yr,er,zt,At,zr,Et,ar,Mt,Ft,_t,lr,Er,Wt,Lt,ur,ot,jt,fr,pr,dr,mr,Ot,Nt,Bt,De,gr,xr,rr,tr,nr,or,nt,ir,sr,cr,It,Ct,Rt,De,Gt,Kt,qt,Zt,Xt,Yt,Jt,Qt,Pt,kr,Tt,Tr].flat(1);var He={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(He).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 Ar={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(",")},Vr={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"]},Pr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Or={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Ur={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)"]},Mr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Be={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Fr=Be;var Ne={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},_r=S({},Ne),Wr={DEFAULT:"1px",none:"0px"},Lr={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"},Dr={DEFAULT:"150ms",none:"0ms",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Hr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Br={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)"},Nr={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)"},Ir={DEFAULT:"1px",none:"0px"};var Kr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Gr={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 $e={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Ie=j(S({auto:"auto"},$e),{screen:"100vw"}),se=j(S({none:"none"},$e),{screen:"100vw"}),Ke=j(S({auto:"auto"},$e),{screen:"100vh"}),ae=j(S({none:"none"},$e),{screen:"100vh"});var qr={width:Ie,height:Ke,maxWidth:se,maxHeight:ae,minWidth:se,minHeight:ae,inlineSize:Ie,blockSize:Ke,maxInlineSize:se,maxBlockSize:ae,minInlineSize:se,minBlockSize:ae,colors:He,fontFamily:Ar,fontSize:Vr,breakpoints:Ne,verticalBreakpoints:_r,borderRadius:Hr,lineHeight:Mr,letterSpacing:Be,wordSpacing:Fr,boxShadow:Br,textIndent:Pr,textShadow:Ur,textStrokeWidth:Or,blur:Kr,dropShadow:Gr,easing:Nr,lineWidth:Wr,spacing:Lr,duration:Dr,ringWidth:Ir};var Ge={},Zr=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}`},Xr={match(e,t){var n;let r=Object.entries((n=he(t))!=null?n:{}).map(([o,i],a)=>[o,i,a]);for(let[o,i,a]of r){Ge[o]||(Ge[o]=new RegExp(`^((?:[al]t-)?${o}[:-])`));let s=e.match(Ge[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: ${Zr(i)})`,x]}):(x+=a+1,m&&a<r.length-1?{matcher:u,parent:[`@media (min-width: ${i}) and (max-width: ${Zr(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:"*")}}}},Yr=[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 Jr=Q("print","@media print"),Qr=(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 en=(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 tn=[H("rtl",e=>`[dir="rtl"] $$ ${e}`),H("ltr",e=>`[dir="ltr"] $$ ${e}`)];var rn={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},nn={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},on={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},sn={match(e){let t=e.match(/^(important[:-]|!)/);if(t)return{matcher:e.slice(t[0].length),body:r=>(r.forEach(n=>{n[1]&&(n[1]+=" !important")}),r)}},autocomplete:"(important)"},an={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 ve=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)),cn=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(z)),wo=["not","is","where","has"],ln=Object.keys(cn).join("|"),ce=Object.keys(ve).join("|"),qe=wo.join("|"),vo=/(part-\[(.+)]:)(.+)/,So=new RegExp(`^(${ln})[:-]`),ko=new RegExp(`^(${ce})[:-]`),Co=new RegExp(`^(${qe})-(${ce})[:-]`),un=e=>{if(e==="active")return 1},we=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${qe})-)?(${ce}))[:-]`),o=new RegExp(`^${G(t)}:`);return i=>{let a=i.match(n);if(a){let s=ve[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:un(a[3])}}}},fn={match:e=>{let t=e.match(So);if(t){let r=cn[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},autocomplete:`(${ln}):`},pn={match:e=>{let t=e.match(ko);if(t){let r=ve[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:un(t[1])}}},multiPass:!0,autocomplete:`(${ce}):`},mn={match:e=>{let t=e.match(Co);if(t){let r=t[1],n=ve[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${qe})-(${ce}):`},dn=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[{match:we("group",t?'[group=""]':".group"," "),multiPass:!0},{match:we("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:we("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:we("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},hn={match:e=>{let t=e.match(vo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var gn=e=>[rn,nn,an,sn,Jr,Qr,Xr,...Yr,pn,mn,...dn(e),fn,hn,...en(e),...tn,on];var Ro=(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:qr,rules:jr,variants:gn(e),options:e,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?To(e.variablePrefix):void 0}},xn=Ro;function To(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 Ze=/^(?!\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/,bn=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=ut(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(Ze)||[];return h==="~"||!h?`${u}${s}`:`${u}${s}-${h}`}};var Eo=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,zo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,yn=/[\s'"`;>]+/,$n={name:"attributify",extract:({content:e,cursor:t})=>{let r=e.matchAll(Eo),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(zo),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=yn.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=yn.exec(l.slice(m))}x===void 0&&(x=l.slice(m));let[,p="",y]=x.match(Ze)||[];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 jo=["v-bind:",":"],wn=/[\s'"`;]+/g,Ao=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Vo=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-]+)(?:=(["'])([^\2]*?)\2)?/g,vn=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(Ao)).flatMap(s=>Array.from((s[1]||"").matchAll(Vo))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let h of jo)if(s.startsWith(h)){s=s.slice(h.length);break}return u?["class","className"].includes(s)?u.split(wn).filter(Y):u.split(wn).filter(Boolean).map(h=>`[${s}~="${h}"]`):Y(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var Po=(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=[bn(e)],r=[vn(e)],n=[$n];return e.strict||r.unshift(J),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e,autocomplete:{extractors:n}}},Sn=Po;var Oo=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),kn=e=>e.charAt(0).toUpperCase()+e.slice(1),Cn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),Rn=["Webkit","Moz","ms"];function Tn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=Oo(n);if(i!=="filter"&&i in e)return t[n]=Cn(i);i=kn(i);for(let a=0;a<Rn.length;a++){let s=`${Rn[a]}${i}`;if(s in e)return t[n]=Cn(kn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Xe(e={}){var T,U;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(Tn(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=$t(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(M=>M.value?`${M.name}="${M.value}"`:M.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()}};((U=r==null?void 0:r.ready)==null?void 0:U.call(r,R))!==!1&&(i=!1,v())}Xe({defaults:{presets:[xn(),Sn()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.13",
|
|
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.13",
|
|
38
|
+
"@unocss/preset-attributify": "0.31.13",
|
|
39
|
+
"@unocss/preset-uno": "0.31.13"
|
|
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 ct=Object.defineProperty,yn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var st=(e,t,r)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))lt.call(t,r)&&st(e,r,t[r]);if(ge)for(var r of ge(t))pt.call(t,r)&&st(e,r,t[r]);return e},R=(e,t)=>yn(e,vn(t));var ut=(e,t)=>{var r={};for(var o in e)lt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ge)for(var o of ge(e))t.indexOf(o)<0&&pt.call(e,o)&&(r[o]=e[o]);return r};var kn=(e,t)=>{for(var r in t)ct(e,r,{get:t[r],enumerable:!0})};var ze=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(e=""){let t=$n(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)&&!(ze.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}`,ze.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function $n(e){if(!e)return;let t=wn(e);if(t!=null||(t=Sn(e),t!=null)||(t=Cn(e),t!=null)||(t=zn(e),t!=null)||(t=Tn(e),t!=null))return t}function wn(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 Sn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Cn(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 Rn=new RegExp(`^(${ze.join("|")})\\((.+)\\)$`,"i");function zn(e){let t=e.match(Rn);if(!t)return;let[,r,o]=t,n=mt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Tn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function mt(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 jn(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=jn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var O={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Te=R(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),je={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"]},Ee={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},dt=["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({},...dt.map(e=>({[e.replace(/ /,"-")]:e})),...dt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(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 be=Ve;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ft(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function En(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 he(e){return e==null?"":En(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Oe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Me(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 Oe(r)&&Oe(o)&&Object.keys(o).forEach(a=>{Oe(o[a])?a in r?n[a]=Me(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 gt(e){return typeof e[0]=="string"}function bt(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 Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function ht(e=""){return Vn.test(e)}function xt(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function yt(e){return e!=null}var xe=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 vt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function kt(e){vt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(vt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var $t=new Set;function wt(e){$t.has(e)||(console.warn("[unocss]",e),$t.add(e))}function St(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 On=e=>e.split(/[\s'"`;>=]+/g).filter(ht),Ue={name:"split",order:0,extract({code:e}){return new Set(On(e))}};function Mn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var An={shortcuts:-1,default:0};function Pe(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(An,...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(Ue),c.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((m,x)=>{gt(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)=>Me(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(xt),shortcuts:Mn(s("shortcuts")),extractors:c})}var Ct="0.31.12";var _e=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Pe(t,r)}version=Ct;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Pe(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(yt);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 ct=Object.defineProperty,yn=Object.defineProperties;var vn=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var st=(e,t,r)=>t in e?ct(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))lt.call(t,r)&&st(e,r,t[r]);if(ge)for(var r of ge(t))pt.call(t,r)&&st(e,r,t[r]);return e},R=(e,t)=>yn(e,vn(t));var ut=(e,t)=>{var r={};for(var o in e)lt.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&ge)for(var o of ge(e))t.indexOf(o)<0&&pt.call(e,o)&&(r[o]=e[o]);return r};var kn=(e,t)=>{for(var r in t)ct(e,r,{get:t[r],enumerable:!0})};var ze=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function G(e=""){let t=$n(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)&&!(ze.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}`,ze.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function $n(e){if(!e)return;let t=wn(e);if(t!=null||(t=Sn(e),t!=null)||(t=Cn(e),t!=null)||(t=zn(e),t!=null)||(t=Tn(e),t!=null))return t}function wn(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 Sn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Cn(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 Rn=new RegExp(`^(${ze.join("|")})\\((.+)\\)$`,"i");function zn(e){let t=e.match(Rn);if(!t)return;let[,r,o]=t,n=mt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Tn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=mt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function mt(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 jn(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=jn(e,t);if(!a)return;let[s,c]=a;o.push(s),e=c}if(o.length>0)return o}var O={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Te=R(C({},O),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),je={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"]},Ee={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},dt=["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({},...dt.map(e=>({[e.replace(/ /,"-")]:e})),...dt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function te(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ve(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 be=Ve;function oe(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function ft(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>oe(t)):[e]:[oe(e)]}function En(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 he(e){return e==null?"":En(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Oe(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Me(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 Oe(r)&&Oe(o)&&Object.keys(o).forEach(a=>{Oe(o[a])?a in r?n[a]=Me(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 gt(e){return typeof e[0]=="string"}function bt(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 Vn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,z="$$shortcut-no-merge";function ht(e=""){return Vn.test(e)}function xt(e){return typeof e=="function"?{match:e}:e}function Ae(e){return e.length===3}function yt(e){return e!=null}var xe=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 vt=/([!\w+:_/-]+?)([:-])\(((?:[~!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function kt(e){vt.lastIndex=0;let t=!1;do{let r=e.toString();e=e.replace(vt,(o,n,a,s)=>s.split(/\s/g).map(c=>c==="~"?n:c.replace(/^(!?)(.*)/,`$1${n}${a}$2`)).join(" ")),t=e.toString()!==r}while(t);return e}var $t=new Set;function wt(e){$t.has(e)||(console.warn("[unocss]",e),$t.add(e))}function St(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 On=e=>e.split(/[\s'"`;>=]+/g).filter(ht),Ue={name:"split",order:0,extract({code:e}){return new Set(On(e))}};function Mn(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var An={shortcuts:-1,default:0};function Pe(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(An,...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(Ue),c.sort((m,x)=>(m.order||0)-(x.order||0));let l=s("rules"),p={},y=l.length;l.forEach((m,x)=>{gt(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)=>Me(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(xt),shortcuts:Mn(s("shortcuts")),extractors:c})}var Ct="0.31.13";var _e=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Pe(t,r)}version=Ct;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Pe(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(yt);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,M,D;return((T=this.parentOrders.get(v[0]))!=null?T:0)-((M=this.parentOrders.get($[0]))!=null?M:0)||((D=v[0])==null?void 0:D.localeCompare($[0]||""))||0}).map(([v,$])=>{let T=$.length,M=$.filter(u=>{var k;return(((k=u[4])==null?void 0:k.layer)||"default")===f}).sort((u,k)=>{var A,H,_;return u[0]-k[0]||(((A=u[4])==null?void 0:A.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]?_n(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(!M.length)return;let D=M.reverse().map(([u,k,A],H)=>{if(!A&&u&&this.config.mergeSelectors)for(let _=H+1;_<T;_++){let B=M[_];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}${D}${l}}`:D}).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},Fn(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}{${he(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=ft(b).filter($=>$.length);if(v.length)return v.map($=>[g,n,$,L,s])}}stringifyUtil(t){var g;if(!t)return;if(Ae(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=he(o);if(!c)return;let m=(g=t[3])!=null?g:{},{layer:l,sort:p}=m,y=ut(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(bt(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=kt(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 xe,s=(await Promise.all(ne(o).map(async d=>{let g=await this.parseUtil(d,r,!0);return g||wt(`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(Ae(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(M=>M[1])),T=v.map(M=>M[0]);return(f?[T.flat(1)]:T).map(M=>{let D=he(M);if(D)return[g,m,D,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 zt(e,t){return new _e(e,t)}var Tt=/ \$\$ /,Pn=e=>e.match(Tt);function _n(e,t){return Pn(e)?e.replace(Tt,t?` ${t} `:" "):t?`${t} ${e}`:e}var Rt=/^\[(.+?)(~?=)"(.*)"\]$/;function Fn(e){return Rt.test(e)?e.replace(Rt,(t,r,o,n)=>`[${be(r)}${o}"${be(n)}"]`):`.${be(e)}`}var De={};kn(De,{auto:()=>Bn,bracket:()=>Gn,bracketOfColor:()=>Yn,bracketOfLength:()=>qn,cssvar:()=>Zn,degree:()=>Qn,fraction:()=>Xn,global:()=>ea,number:()=>In,numberWithUnit:()=>Wn,percent:()=>Kn,properties:()=>ta,px:()=>Hn,rem:()=>Nn,time:()=>Jn});var Ln=["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,Dn=/^(-?[0-9.]+)$/i,jt=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Wn(e){let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Bn(e){if(e==="auto"||e==="a")return"auto"}function Nn(e){if(e.match(jt))return`1${e}`;let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function Hn(e){if(e.match(jt))return`1${e}`;let t=e.match(Fe);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function In(e){if(!Dn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function Kn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function Xn(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 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 Gn(e){return Le(e)}function Yn(e){return Le(e,"color")}function qn(e){return Le(e,"length")}function Zn(e){if(e.match(/^\$\S/))return`var(--${Ve(e.slice(1))})`}function Jn(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 ea(e){if(["inherit","initial","revert","unset"].includes(e))return e}function ta(e){if(e.split(",").every(t=>Ln.includes(t)))return e}var i=St(De);var W=(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 O[r].map(l=>[`${e}${l}`,a])},We=(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=We(t,a.slice(0,-1))):(d=We(t,a),!d&&a.length<=2&&([,y=y]=a,d=We(t,[s]))),typeof d=="string"?c=d:y&&d&&(c=d[y])}return{opacity:n,name:s,no:y,color:c,cssColor:G(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=G(n.pop());if(a==null)return e;r.push(`${n.join(" ")} var(${t}, ${U(a)})`)}return r},ye=(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},Et=({theme:e,generator:t})=>{let r;return t.userConfig&&t.userConfig.theme&&(r=t.userConfig.theme.verticalBreakpoints),r||(r=e.verticalBreakpoints),r};var Vt=[[/^(?: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 Be=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}}},Ot=[[/^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-(.+)$/,Be("from")],[/^(?:bg-gradient-)?to-(.+)$/,Be("to")],[/^(?:bg-gradient-)?via-(.+)$/,Be("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 Mt=[[/^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"}]],At=[[/^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>"]}]],Ut=[[/^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>"]}]],Pt=[["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"]]]],_t=[["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"}]],Ft=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Lt=[[/^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 ra=/@media \(min-width: (.+)\)/,Dt=[[/^__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(ra))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Wt=[[/^(?:(\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 Bt={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",middle:"middle",bottom:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super"},Nt=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Bt[e]}),{autocomplete:`(vertical|align|v)-(${Object.keys(Bt).join("|")})`}]],Ht=["center","left","right","justify","start","end","inherit","initial","unset","revert"].map(e=>[`text-${e}`,{"text-align":e}]);var It=[[/^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-none",{outline:"2px solid transparent","outline-offset":"2px"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset","inherit","initial","revert","unset"].map(e=>[`outline-${e}`,{"outline-style":e}])],Kt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],oa=e=>{var t;return(t=i.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Xt=[[/^will-change-(.+)/,([,e])=>({"will-change":oa(e)})]];var le=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset","initial","inherit","revert","unset"],Gt=[[/^(?: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|b)-(?:style-)?()(.+)$/,Ne,{autocomplete:["(border|b)-style",`(border|b)-(${le.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${le.join("|")})`,`(border|b)-<directions>-style-(${le.join("|")})`,`(border|b)-style-(${le.join("|")})`]}],[/^(?:border|b)-([rltbsexy])-(?:style-)?(.+)$/,Ne]],na=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),o=Ne(["",e[1],"solid"]);if(r&&o)return[...r,...o]}function J([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:i.bracket.cssvar.px(t||"1");if(e in O&&o!=null)return O[e].map(s=>[`border${s}-width`,o])}function ie([,e="",t],{theme:r}){if(e in O&&ye(t,r))return Object.assign({},...O[e].map(o=>na(o)(["",t],r)))}function se([,e="",t]){let r=i.bracket.percent(t);if(e in O&&r!=null)return O[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 je&&o!=null)return je[e].map(a=>[`border${a}-radius`,o])}function Ne([,e="",t]){if(le.includes(t))return e in O?O[e].map(r=>[`border${r}-style`,t]):[["border-style",t]]}var Yt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:i.bracket.percent.cssvar(e)})]],qt=[[/^(?: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>"}]],Zt=[[/^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 ve={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Jt=e=>{var t;return(t=i.properties(e))!=null?t:ve[e]},Qt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?Jt(e):[ve.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(ve).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)||Jt(e)}),{autocomplete:[`transition-property-(${["inherit","initial","revert","unset",...Object.keys(ve)].join("|")})`]}],["transition-none",{transition:"none"}]];var er=[["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 tr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},rr=[[/^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":tr[e]||i.global.number(e)}),{autocomplete:`(font|fw)-(100|200|300|400|500|600|700|800|900|${Object.keys(tr).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"}]],or=[[/^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}}]],nr=[[/^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"}]],ar=[[/^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>"}]],ir=[[/^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 sr={"":"",x:"column-",y:"row-"},cr=([,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-${sr[e]}gap`]:o,[`${sr[e]}gap`]:o}},lr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,cr,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,cr,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];var N=e=>e.replace("col","column"),He=e=>e[0]==="r"?"Row":"Column",aa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${He(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)},pr=[["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${He(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)}`]:aa(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${He(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 ke=["auto","hidden","clip","visible","scroll"],ur=[[/^(?:overflow|of)-(.+)$/,([,e])=>ke.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-${ke.join("|")}`,`(overflow|of)-(x|y)-${ke.join("|")}`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ke.includes(t)?{[`overflow-${e}`]:t}:void 0]];var mr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],dr=[["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-(.+)$/,([,e])=>({order:i.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],gr=[["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"}]],br=[["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 Ie(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 $e([,e,t],r){let o=Ie(t,r);if(o!=null&&e in Te)return Te[e].map(n=>[n.slice(1),o])}var hr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Ie(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])-(.+)$/,$e],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,$e],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,$e],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,$e],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Ie(t,r)})]],xr=[["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"}]],yr=[[/^z([\d.]+)$/,([,e])=>({"z-index":i.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":i.bracket.cssvar.auto.number(e)}),{autocomplete:"z-<num>"}]],vr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",kr=[["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})]],$r=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],wr=[[/^cursor-(.+)$/,([,e])=>({cursor:i.bracket.cssvar(e)||e})]],Sr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Cr=[["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"}]],zr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e}),{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)"}]];var Tr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],jr=[["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"}]],Vr=[["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 Or=[[/^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 Mr=[[/^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 ia={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pe(e,t){return`${e||""}${ia[t]}`}function Ar(e,t,r,o){var s;let n=pe(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 Ur=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[pe(e,t)]:Ar(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})=>({[pe(e,t)]:Ar(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{[pe(e,t)]:(n=Et(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{[pe(e,t)]:(n=Z(o))==null?void 0:n[r]}},{autocomplete:["w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function sa(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 Pr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":sa(e)}),{autocomplete:["aspect-(square|video)","aspect-ratio-(square|video)"]}]];var _r=[[/^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>"}]],Fr=[[/^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 ca={"--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(" ")},Br={"--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},Br),{[z]:""}),Nr=[[/^(?: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-()(.+)$/,Lr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Lr],[/^(?:transform-)?rotate-()(.+)$/,Wr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Wr],[/^(?:transform-)?skew-([xy])-(.+)$/,la],[/^(?:transform-)?scale-()(.+)$/,Dr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Dr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Q,{transform:"var(--un-transform)"}]],["transform-gpu",ca],["transform-cpu",Br],["transform-none",{transform:"none"}]];function Lr([,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,[...Ee[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Dr([,e,t]){let r=i.bracket.cssvar.fraction.percent(t);if(r!=null)return[Q,[...Ee[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Wr([,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 la([,e,t]){let r=i.bracket.cssvar.degree(t);if(r!=null)return[Q,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var pa={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"},Hr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=pa[e];if(r)return{[r]:i.cssvar(t)}}]],Ir=[[/^\[([\w_-]+):([^'"]+)\]$/,([,e,t])=>({[e]:i.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}}
|