@unocss/runtime 0.29.3 → 0.29.4
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 ae=Object.defineProperty,vn=Object.defineProperties;var $n=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var ne=(t,e,r)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ie.call(e,r)&&ne(t,r,e[r]);if(dt)for(var r of dt(e))se.call(e,r)&&ne(t,r,e[r]);return t},z=(t,e)=>vn(t,$n(e));var ce=(t,e)=>{var r={};for(var o in t)ie.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&dt)for(var o of dt(t))e.indexOf(o)<0&&se.call(t,o)&&(r[o]=t[o]);return r};var kn=(t,e)=>{for(var r in e)ae(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=wn(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)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function O(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}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function wn(t){if(!t)return;let e=Sn(t);if(e!=null||(e=Cn(t),e!=null)||(e=Rn(t),e!=null)||(e=zn(t),e!=null)||(e=En(t),e!=null))return e}function Sn(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 Cn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Rn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(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 Tn=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function zn(t){let e=t.match(Tn);if(!e)return;let[,r,o]=e,n=le(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function En(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=le(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function le(t){let e=Q(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=Q(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 Vn(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 Q(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=Vn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var A={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ct=z(S({},A),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={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"]},Tt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},pe=["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"],F=Object.assign({},...pe.map(t=>({[t.replace(/ /,"-")]:t})),...pe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(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 gt=zt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function jn(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 bt(t){return t==null?"":jn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Et(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Vt(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=S({},r);return Et(r)&&Et(o)&&Object.keys(o).forEach(a=>{Et(o[a])?a in r?n[a]=Vt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function ht(t){return Array.from(new Set(t))}var An=/^\[(.+?)~?="(.*)"\]$/,On=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function de(t){return t.match(An)}function ot(t=""){return On.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function jt(t){return t.length===3}function be(t){return t!=null}var At=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 he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(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 Mn=t=>t.split(/[\s'"`;>=]+/g).filter(ot),nt={name:"split",order:0,extract({code:t}){return new Set(Mn(t))}};function Pn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Un={shortcuts:-1,default:0};function Ot(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(j),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Un,...o.map(u=>u.layers),t.layers);function s(u){return ht([...n.flatMap(x=>j(x[u]||[])),...j(r[u]||[])])}let i=s("extractors");i.length||i.push(nt),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{ue(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Vt(u,x),{}));return s("extendTheme").forEach(u=>u(m)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(ge),shortcuts:Pn(s("shortcuts")),extractors:i})}var ke="0.29.3";var Se=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ot(e,r)}version=ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ot(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(f=>this.stringifyUtil(f)).filter(be);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 ae=Object.defineProperty,vn=Object.defineProperties;var $n=Object.getOwnPropertyDescriptors;var dt=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var ne=(t,e,r)=>e in t?ae(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ie.call(e,r)&&ne(t,r,e[r]);if(dt)for(var r of dt(e))se.call(e,r)&&ne(t,r,e[r]);return t},z=(t,e)=>vn(t,$n(e));var ce=(t,e)=>{var r={};for(var o in t)ie.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&dt)for(var o of dt(t))e.indexOf(o)<0&&se.call(t,o)&&(r[o]=t[o]);return r};var kn=(t,e)=>{for(var r in e)ae(t,r,{get:e[r],enumerable:!0})};var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=wn(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)&&!(St.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function O(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}`,St.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function wn(t){if(!t)return;let e=Sn(t);if(e!=null||(e=Cn(t),e!=null)||(e=Rn(t),e!=null)||(e=zn(t),e!=null)||(e=En(t),e!=null))return e}function Sn(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 Cn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function Rn(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(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 Tn=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function zn(t){let e=t.match(Tn);if(!e)return;let[,r,o]=e,n=le(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function En(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=le(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function le(t){let e=Q(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=Q(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 Vn(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 Q(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=Vn(t,e);if(!a)return;let[s,i]=a;o.push(s),t=i}if(o.length>0)return o}var A={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},Ct=z(S({},A),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Rt={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"]},Tt={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},pe=["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"],F=Object.assign({},...pe.map(t=>({[t.replace(/ /,"-")]:t})),...pe.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function zt(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 gt=zt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function fe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function jn(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 bt(t){return t==null?"":jn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Et(t){return t&&typeof t=="object"&&!Array.isArray(t)}function Vt(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=S({},r);return Et(r)&&Et(o)&&Object.keys(o).forEach(a=>{Et(o[a])?a in r?n[a]=Vt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function ue(t){return typeof t[0]=="string"}function me(t){return typeof t[0]=="string"}function j(t=[]){return Array.isArray(t)?t:[t]}function ht(t){return Array.from(new Set(t))}var An=/^\[(.+?)~?="(.*)"\]$/,On=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function de(t){return t.match(An)}function ot(t=""){return On.test(t)}function ge(t){return typeof t=="function"?{match:t}:t}function jt(t){return t.length===3}function be(t){return t!=null}var At=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 he=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function xe(t){return he.lastIndex=0,t.replace(he,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var ye=new Set;function ve(t){ye.has(t)||(console.warn("[unocss]",t),ye.add(t))}function $e(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 Mn=t=>t.split(/[\s'"`;>=]+/g).filter(ot),nt={name:"split",order:0,extract({code:t}){return new Set(Mn(t))}};function Pn(t){return j(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var Un={shortcuts:-1,default:0};function Ot(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(j),n=[...o.filter(u=>u.enforce==="pre"),...o.filter(u=>!u.enforce),...o.filter(u=>u.enforce==="post")],a=Object.assign(Un,...o.map(u=>u.layers),t.layers);function s(u){return ht([...n.flatMap(x=>j(x[u]||[])),...j(r[u]||[])])}let i=s("extractors");i.length||i.push(nt),i.sort((u,x)=>(u.order||0)-(x.order||0));let l=s("rules"),p={},f=l.length;l.forEach((u,x)=>{ue(u)&&(p[u[0]]=[x,u[1],u[2]],delete l[x])});let m=et([...n.map(u=>u.theme||{}),r.theme||{}].reduce((u,x)=>Vt(u,x),{}));return s("extendTheme").forEach(u=>u(m)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:m,rulesSize:f,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(ge),shortcuts:Pn(s("shortcuts")),extractors:i})}var ke="0.29.4";var Se=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ot(e,r)}version=ke;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ot(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(f=>this.stringifyUtil(f)).filter(be);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"]),f=new Set,m=new Map;await Promise.all(Array.from(i).map(async g=>{var v;if(f.has(g))return;let b=await this.parseToken(g);if(b!=null){f.add(g);for(let w of b){let R=w[3]||"";m.has(R)||m.set(R,[]),m.get(R).push(w),(v=w[4])!=null&&v.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let u={},x=this.config.sortLayers(Array.from(p).sort((g,b)=>{var v,w;return((v=this.config.layers[g])!=null?v:0)-((w=this.config.layers[b])!=null?w:0)||g.localeCompare(b)})),V={};if(n){let g={generator:this,theme:this.config.theme};V=Object.fromEntries(await Promise.all(x.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===b).map(async R=>await R.getCSS(g)))).filter(Boolean).join(l);return[b,w]})))}let L=g=>{if(u[g])return u[g];let b=Array.from(m).sort((v,w)=>{var R,P,d;return((R=this.parentOrders.get(v[0]))!=null?R:0)-((P=this.parentOrders.get(w[0]))!=null?P:0)||((d=v[0])==null?void 0:d.localeCompare(w[0]||""))||0}).map(([v,w])=>{let R=w.length,P=w.filter(y=>{var T;return(((T=y[4])==null?void 0:T.layer)||"default")===g}).sort((y,T)=>{var K,G,_;return y[0]-T[0]||(((K=y[4])==null?void 0:K.sort)||0)-(((G=T[4])==null?void 0:G.sort)||0)||((_=y[1])==null?void 0:_.localeCompare(T[1]||""))||0}).map(y=>{var T;return[y[1]?Dn(y[1],o):y[1],y[2],!!((T=y[4])!=null&&T.noMerge)]}).map(y=>[y[0]==null?y[0]:[y[0]],y[1],y[2]]);if(!P.length)return;let d=P.reverse().map(([y,T,K],G)=>{if(!K&&y&&this.config.mergeSelectors)for(let _=G+1;_<R;_++){let J=P[_];if(J&&!J[2]&&J[0]&&J[1]===T)return J[0].push(...y),null}return y?`${[...new Set(y)].join(`,${l}`)}{${T}}`:T}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${d}${l}}`:d}).filter(Boolean).join(l);return n&&(b=[V[g],b].filter(Boolean).join(l)),u[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},k=(g=x,b)=>g.filter(v=>!(b!=null&&b.includes(v))).map(v=>L(v)||"").filter(Boolean).join(l);return{get css(){return k()},layers:x,getLayers:k,getLayer:L,matched:f}}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},Ln(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=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),i=`${n}{${bt(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(e,r,o=!1){var f,m;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((f=i[2])!=null&&f.internal)))return[[i[0],n,rt(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let u=p;u>=0;u--){let x=l[u];if(!x||((m=x[2])==null?void 0:m.internal)&&!o)continue;let[V,L,k]=x,g=a.match(V);if(!g)continue;let b=await L(g,r);if(!b)continue;if(typeof b=="string")return[[u,b,k]];let v=fe(b).filter(w=>w.length);if(v.length)return v.map(w=>[u,n,w,k,s])}}stringifyUtil(e){var u;if(!e)return;if(jt(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=bt(o);if(!i)return;let x=(u=e[3])!=null?u:{},{layer:l,sort:p}=x,f=ce(x,["layer","sort"]),m=z(S({},f),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,i,n,m]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(me(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=xe(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 p;let a=new At,s=(await Promise.all(ht(o).map(async f=>{let m=await this.parseUtil(f,r,!0);return m||ve(`unmatched utility "${f}" in shortcut "${e[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((f,m)=>f[0]-m[0]),[i,,l]=e;for(let f of s){if(jt(f))continue;let{selector:m,entries:u,parent:x,sort:V}=this.applyVariants(f,[...f[4],...l],i);a.getFallback(m,x,[[],f[0]])[0].push([u,!!((p=f[3])!=null&&p.noMerge),V!=null?V:0])}return a.map(([f,m],u,x)=>{let V=(k,g,b)=>{let v=Math.max(...b.map(R=>R[1])),w=b.map(R=>R[0]);return(k?[w.flat(1)]:w).map(R=>{let P=bt(R);if(P)return[m,u,P,x,z(S({},n),{noMerge:g,sort:v})]})};return[[f.filter(([,k])=>k).map(([k,,g])=>[k,g]),!0],[f.filter(([,k])=>!k).map(([k,,g])=>[k,g]),!1]].map(([k,g])=>[...V(!1,g,k.filter(([b])=>b.some(v=>v[0]===E))),...V(!0,g,k.filter(([b])=>b.every(v=>v[0]!==E)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Ce(t,e){return new Se(t,e)}var Re=/ \$\$ /,Fn=t=>t.match(Re);function Dn(t,e){return Fn(t)?t.replace(Re,e?` ${e} `:" "):e?`${e} ${t}`:t}var we=/^\[(.+?)(~?=)"(.*)"\]$/;function Ln(t){return we.test(t)?t.replace(we,(e,r,o,n)=>`[${gt(r)}${o}"${gt(n)}"]`):`.${gt(t)}`}var Ut={};kn(Ut,{auto:()=>Bn,bracket:()=>qn,bracketOfColor:()=>Zn,bracketOfLength:()=>Jn,cssvar:()=>Qn,degree:()=>ea,fraction:()=>In,global:()=>ra,number:()=>Xn,numberWithUnit:()=>Hn,percent:()=>Yn,properties:()=>oa,px:()=>Gn,rem:()=>Kn,time:()=>ta});var Nn=["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"],Mt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Wn=/^(-?[0-9.]+)$/i,Te=/^(px)$/i;function U(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Hn(t){let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${U(n)}${o}`}function Bn(t){if(t==="auto"||t==="a")return"auto"}function Kn(t){if(t.match(Te))return`1${t}`;let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${U(n)}${o}`:`${U(n/4)}rem`}function Gn(t){if(t.match(Te))return`1${t}`;let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${U(n)}${o}`:`${U(n)}px`}function Xn(t){if(!Wn.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return U(e)}function Yn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${U(e/100)}`}function In(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${U(o*100)}%`}function Pt(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 qn(t){return Pt(t)}function Zn(t){return Pt(t,"color")}function Jn(t){return Pt(t,"length")}function Qn(t){if(t.match(/^\$\S/))return`var(--${zt(t.slice(1))})`}function ta(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?`${U(n)}${o}`:`${U(n)}ms`}function ea(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?`${U(n)}${o}`:`${U(n)}deg`}function ra(t){if(["inherit","initial","revert","unset"].includes(t))return t}function oa(t){for(let e of t.split(","))if(!Nn.includes(e))return;return t}var c=$e(Ut);var D=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},M=(t,e)=>{let r=new RegExp(`^${tt(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 A[r].map(l=>[`${t}${l}`,a])},_t=(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 f="DEFAULT";if(!i){let m,[u]=a.slice(-1);u.match(/^\d+$/)?(f=u,m=_t(e,a.slice(0,-1))):(m=_t(e,a),!m&&a.length<=2&&([,f=f]=a,m=_t(e,[s]))),typeof m=="string"?i=m:f&&m&&(i=m[f])}return{opacity:n,name:s,no:f,color:i,cssColor:X(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},$=(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]:O(i,a)}:{[`--un-${e}-opacity`]:(l=i.alpha)!=null?l:1,[t]:O(i,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},I=(t,e)=>{let r=[];t=j(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${O(a)})`)}return r},xt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var ze=[[/^(?: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}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,i,l,p,f,m,u,x;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let V=(l=(i=(s=e.animation)==null?void 0:s.durations)==null?void 0:i[t])!=null?l:"1s",L=(m=(f=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:f[t])!=null?m:"linear",k=(x=(u=e.animation)==null?void 0:u.properties)==null?void 0:x[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${V} ${L} infinite`},k))}`}return{animation:c.bracket.cssvar(t)}}],[/^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)}}],[/^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)}}],[/^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)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=c.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var Ft=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=O(s,n):i=O(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}}},Ee=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":c.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":c.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,Ft("from")],[/^(?:bg-gradient-)?to-(.+)$/,Ft("to")],[/^(?:bg-gradient-)?via-(.+)$/,Ft("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))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in F)return{"--un-gradient-shape":`to ${F[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in F?`to ${F[t]}`:c.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["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":F[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 Ve=[[/^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}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],je=[[/^accent-(.+)$/,$("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":c.bracket.percent(t)})]],Ae=[[/^caret-(.+)$/,$("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":c.bracket.percent(t)})]],Oe=[["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"]]]],Me=[["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"}]],Pe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ue=[[/^columns-(.+)$/,([,t])=>({columns:c.bracket.global.number.auto.numberWithUnit(t)})],["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 na=/@media \(min-width: (.+)\)/,_e=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=j(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(na))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Fe=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var aa={mid:"middle",base:"baseline",btm:"bottom"},De=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":aa[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Le=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Ne=[[/^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-)?(.+)$/,$("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-offset":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:c.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],We=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ia=t=>{var e;return(e=c.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},He=[[/^will-change-(.+)/,([,t])=>({"will-change":ia(t)})]];var Be=[[/^(?:border|b)()(?:-(.+))?$/,at,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,at],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,at],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,at],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,at],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,it,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,it],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,it],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,it],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,it],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,st,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,st],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,st],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ct,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,ct],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ct],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,ct],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ct],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],sa=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`]:O(s,n)}:t===""?{"--un-border-opacity":(i=s.alpha)!=null?i:1,[`border${t}-color`]:O(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`]:O(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function at(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,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 A&&o!=null)return A[t].map(s=>[`border${s}-width`,o])}function it([,t="",e],{theme:r}){if(t in A&&xt(e,r))return Object.assign({},...A[t].map(o=>sa(o)(["",e],r)))}function st([,t="",e]){let r=c.bracket.percent(e);if(t in A&&r!=null)return A[t].map(o=>[`--un-border${o}-opacity`,r])}function ct([,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 Rt&&o!=null)return Rt[t].map(a=>[`border${a}-radius`,o])}var Ke=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:c.bracket.percent.cssvar(t)})]],Ge=[[/^(?:text|color|c)-(.+)$/,$("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":c.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Xe=[[/^bg-(.+)$/,$("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":c.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ie={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Ye=t=>{var e;return(e=c.properties(t))!=null?e:Ie[t]},qe=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Ye(t):[Ie.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}}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":c.global(t)||Ye(t)})],["transition-none",{transition:"none"}]];var Ze=[["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 ca={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Je=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||c.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=j((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=j((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}}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":ca[t]||c.global.number(t)}),{autocomplete:"font-(100|200|300|400|500|600|700)"}],[/^(?: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"}],[/^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"}],[/^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"}]],Qe=[[/^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}}]],tr=[[/^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)}}]],er=[[/^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)}}],[/^text-stroke-(.+)$/,$("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":c.bracket.percent(t)})]],rr=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":I(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(t)}}],[/^text-shadow-color-(.+)$/,$("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":c.bracket.percent(t)})]];var or={"":"",x:"column-",y:"row-"},nr=([,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-${or[t]}gap`]:o,[`${or[t]}gap`]:o}},ar=[[/^(?:flex-|grid-)?gap-?()(.+)$/,nr,{autocomplete:"gap-<num>"}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,nr,{autocomplete:"gap-(x|y)-<num>"}]];var N=t=>t.replace("col","column"),Dt=t=>t[0]==="r"?"Row":"Column",la=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Dt(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)},ir=[["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${Dt(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}`}}],[/^(?: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)}`]:la(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${Dt(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 sr=["auto","hidden","clip","visible","scroll"],cr=[[/^(?:overflow|of)-(.+)$/,([,t])=>sr.includes(t)?{overflow:t}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>sr.includes(e)?{[`overflow-${t}`]:e}:void 0]];var lr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],pr=[["justify-start",{"justify-content":"flex-start"}],["justify-end",{"justify-content":"flex-end"}],["justify-center",{"justify-content":"center"}],["justify-between",{"justify-content":"space-between"}],["justify-around",{"justify-content":"space-around"}],["justify-evenly",{"justify-content":"space-evenly"}],["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],["justify-self-auto",{"justify-self":"auto"}],["justify-self-start",{"justify-self":"start"}],["justify-self-end",{"justify-self":"end"}],["justify-self-center",{"justify-self":"center"}],["justify-self-stretch",{"justify-self":"stretch"}]],fr=[[/^order-(.+)$/,([,t])=>({order:c.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],ur=[["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"}]],mr=[["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 Lt(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 yt([,t,e],r){let o=Lt(e,r);if(o!=null&&t in Ct)return Ct[t].map(n=>[n.slice(1),o])}var dr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Lt(t,e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,yt],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,yt],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,yt],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,yt],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Lt(e,r)})]],gr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],br=[[/^z([\d.]+)$/,([,t])=>({"z-index":c.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":c.bracket.cssvar.auto.number(t)})]],hr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",xr=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,t])=>({display:c.bracket.cssvar(t)||t})]],yr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],vr=[[/^cursor-(.+)$/,([,t])=>({cursor:c.bracket.cssvar(t)||t})]],$r=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],kr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],wr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Sr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t})]];var Cr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Rr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Tr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],zr=[["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 Er=[[/^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":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)"}]}],[/^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)}}],["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)}}],[/^ring-(.+)$/,$("--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-(.+)$/,$("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":c.bracket.percent(t)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Vr=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":h,"--un-shadow":"0 0 #0000"},{"--un-shadow":I(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)"}]}],[/^shadow-(.+)$/,$("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":c.bracket.percent(t)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var pa={h:"height",w:"width",inline:"inline-size",block:"block-size"};function lt(t,e){return`${t||""}${pa[e]}`}function jr(t,e,r,o){var s;let n=lt(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 Ar=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[lt(t,e)]:jr(t,e,o,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[lt(t,e)]:jr(t,e,o,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[lt(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[lt(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}}]];function fa(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 Or=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":fa(t)})]];var Mr=[[/^pa?()-?(-?.+)$/,C("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,C("padding")],[/^p-?([rltbse])-?(-?.+)$/,C("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,C("padding")],[/^p-?([bi][se])-?(-?.+)$/,C("padding")]],Pr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?([xy])-?(-?.+)$/,C("margin")],[/^m-?([rltbse])-?(-?.+)$/,C("margin")],[/^m-(block|inline)-(-?.+)$/,C("margin")],[/^m-?([bi][se])-?(-?.+)$/,C("margin")]];var ua={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Dr={"--un-transform":["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","translateZ(var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Z=z(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},Dr),{[E]:""}),Lr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=F[t])!=null?e:c.bracket.cssvar(t)}}],[/^(?: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?F[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Ur],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?rotate-()(.+)$/,Fr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Fr],[/^(?:transform-)?skew-([xy])-(.+)$/,ma],[/^(?:transform-)?scale-()(.+)$/,_r],[/^(?:transform-)?scale-([xyz])-(.+)$/,_r],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",ua],["transform-cpu",Dr],["transform-none",{transform:"none"}]];function Ur([,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[Z,[...Tt[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function _r([,t,e]){let r=c.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...Tt[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Fr([,t="",e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ma([,t,e]){let r=c.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var da={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Nr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=da[t];if(r)return{[r]:c.cssvar(e)}}]],Wr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:c.bracket(`[${e}]`)})]];var Hr=[[/^(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 j=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(j)for(var e of j(t))Z.call(t,e)&&W(n,e,t[e]);return n},O=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&j)for(var r of j(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function v(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>v(t)):[n]:[v(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function V(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:V(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function P(n=[]){return Array.isArray(n)?n:[n]}function k(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return P(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(P),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return k([...i.flatMap(y=>P(y[u]||[])),...P(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,y)=>(u.order||0)-(y.order||0));let c=o("rules"),l={},g=c.length;c.forEach((u,y)=>{X(u)&&(l[u[0]]=[y,u[1],u[2]],delete c[y])});let x=V([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,y)=>z(u,y),{}));return o("extendTheme").forEach(u=>u(x)),O($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:x,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:o("autocomplete"),variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.29.
|
|
1
|
+
(()=>{var mt=Object.defineProperty,yt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,Z=Object.prototype.propertyIsEnumerable;var W=(n,t,e)=>t in n?mt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,$=(n,t)=>{for(var e in t||(t={}))N.call(t,e)&&W(n,e,t[e]);if(j)for(var e of j(t))Z.call(t,e)&&W(n,e,t[e]);return n},O=(n,t)=>yt(n,St(t));var J=(n,t)=>{var e={};for(var r in n)N.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(n!=null&&j)for(var r of j(n))t.indexOf(r)<0&&Z.call(n,r)&&(e[r]=n[r]);return e};function xt(n){let t=n.length,e=-1,r,i="",s=n.charCodeAt(0);for(;++e<t;){if(r=n.charCodeAt(e),r===0){i+="\uFFFD";continue}if(r===44){i+="\\2c ";continue}if(r>=1&&r<=31||r===127||e===0&&r>=48&&r<=57||e===1&&r>=48&&r<=57&&s===45){i+=`\\${r.toString(16)} `;continue}if(e===0&&t===1&&r===45){i+=`\\${n.charAt(e)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=n.charAt(e);continue}i+=`\\${n.charAt(e)}`}return i}var D=xt;function v(n){return(Array.isArray(n)?n:Object.entries(n)).filter(t=>t[1]!=null)}function Q(n){return Array.isArray(n)?n.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?n.map(t=>v(t)):[n]:[v(n)]}function Ct(n){return n.filter(([t,e],r)=>{if(t.startsWith("$$"))return!1;for(let i=r-1;i>=0;i--)if(n[i][0]===t&&n[i][1]===e)return!1;return!0})}function K(n){return n==null?"":Ct(n).map(([t,e])=>e!=null?`${t}:${e};`:void 0).filter(Boolean).join("")}function L(n){return n&&typeof n=="object"&&!Array.isArray(n)}function z(n,t){let e=n,r=t;if(Array.isArray(e)&&Array.isArray(r))return[...e,...r];if(Array.isArray(e))return[...e];let i=$({},e);return L(e)&&L(r)&&Object.keys(r).forEach(s=>{L(r[s])?s in e?i[s]=z(e[s],r[s]):Object.assign(i,{[s]:r[s]}):Object.assign(i,{[s]:r[s]})}),i}function V(n){let t,e,r;if(Array.isArray(n)){for(e=Array(t=n.length);t--;)e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}if(Object.prototype.toString.call(n)==="[object Object]"){e={};for(t in n)t==="__proto__"?Object.defineProperty(e,t,{value:V(n[t]),configurable:!0,enumerable:!0,writable:!0}):e[t]=(r=n[t])&&typeof r=="object"?V(r):r;return e}return n}function X(n){return typeof n[0]=="string"}function Y(n){return typeof n[0]=="string"}function P(n=[]){return Array.isArray(n)?n:[n]}function k(n){return Array.from(new Set(n))}var bt=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,F="$$shortcut-no-merge";function tt(n=""){return bt.test(n)}function et(n){return typeof n=="function"?{match:n}:n}function G(n){return n.length===3}function rt(n){return n!=null}var B=class{_map=new Map;get(t,e){let r=this._map.get(t);if(r)return r.get(e)}getFallback(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.has(e)||i.set(e,r),i.get(e)}set(t,e,r){let i=this._map.get(t);return i||(i=new Map,this._map.set(t,i)),i.set(e,r),this}has(t,e){var r;return(r=this._map.get(t))==null?void 0:r.has(e)}delete(t,e){var r;return((r=this._map.get(t))==null?void 0:r.delete(e))||!1}deleteTop(t){return this._map.delete(t)}map(t){return Array.from(this._map.entries()).flatMap(([e,r])=>Array.from(r.entries()).map(([i,s])=>t(s,e,i)))}};var nt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function it(n){return nt.lastIndex=0,n.replace(nt,(t,e,r,i)=>i.split(/\s/g).map(s=>s.replace(/^(!?)(.*)/,`$1${e}${r}$2`)).join(" "))}var st=new Set;function ot(n){st.has(n)||(console.warn("[unocss]",n),st.add(n))}var Rt=n=>n.split(/[\s'"`;>=]+/g).filter(tt),H={name:"split",order:0,extract({code:n}){return new Set(Rt(n))}};function wt(n){return P(n).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Ut={shortcuts:-1,default:0};function I(n={},t={}){let e=Object.assign({},t,n),r=(e.presets||[]).flatMap(P),i=[...r.filter(u=>u.enforce==="pre"),...r.filter(u=>!u.enforce),...r.filter(u=>u.enforce==="post")],s=Object.assign(Ut,...r.map(u=>u.layers),n.layers);function o(u){return k([...i.flatMap(y=>P(y[u]||[])),...P(e[u]||[])])}let a=o("extractors");a.length||a.push(H),a.sort((u,y)=>(u.order||0)-(y.order||0));let c=o("rules"),l={},g=c.length;c.forEach((u,y)=>{X(u)&&(l[u[0]]=[y,u[1],u[2]],delete c[y])});let x=V([...i.map(u=>u.theme||{}),e.theme||{}].reduce((u,y)=>z(u,y),{}));return o("extendTheme").forEach(u=>u(x)),O($({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:u=>u},e),{presets:i,envMode:e.envMode||"build",shortcutsLayer:e.shortcutsLayer||"shortcuts",layers:s,theme:x,rulesSize:g,rulesDynamic:c,rulesStaticMap:l,preprocess:o("preprocess"),postprocess:o("postprocess"),preflights:o("preflights"),autocomplete:o("autocomplete"),variants:o("variants").map(et),shortcuts:wt(o("shortcuts")),extractors:a})}var at="0.29.4";var lt=class{constructor(t={},e={}){this.userConfig=t;this.defaults=e;this.config=I(t,e)}version=at;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,e){!t||(e&&(this.defaults=e),this.userConfig=t,this.config=I(t,this.defaults),this.blocked.clear(),this.parentOrders.clear(),this._cache.clear())}async applyExtractors(t,e,r=new Set){let i={get original(){return t},code:t,id:e};for(let s of this.config.extractors){let o=await s.extract(i);o==null||o.forEach(a=>r.add(a))}return r}makeContext(t,e){let r={rawSelector:t,currentSelector:e[1],theme:this.config.theme,generator:this,variantHandlers:e[2],constructCSS:(...i)=>this.constructCustomCSS(r,...i),variantMatch:e};return r}async parseToken(t,e){var c;if(this.blocked.has(t))return;let r=`${t}${e?` ${e}`:""}`;if(this._cache.has(r))return this._cache.get(r);let i=t;for(let l of this.config.preprocess)i=l(t);if(this.isBlocked(i)){this.blocked.add(t),this._cache.set(r,null);return}let s=this.matchVariants(t,i);if(!s||this.isBlocked(s[1])){this.blocked.add(t),this._cache.set(r,null);return}let o=this.makeContext(t,[e||s[0],s[1],s[2],s[3]]),a=this.expandShortcut(o.currentSelector,o);if(a){let l=await this.stringifyShortcuts(o.variantMatch,o,a[0],a[1]);if(l!=null&&l.length)return this._cache.set(r,l),l}else{let l=(c=await this.parseUtil(o.variantMatch,o))==null?void 0:c.map(g=>this.stringifyUtil(g)).filter(rt);if(l!=null&&l.length)return this._cache.set(r,l),l}this._cache.set(r,null)}async generate(t,{id:e,scope:r,preflights:i=!0,safelist:s=!0,minify:o=!1}={}){let a=typeof t=="string"?await this.applyExtractors(t,e):t;s&&this.config.safelist.forEach(p=>a.add(p));let c=o?"":`
|
|
2
2
|
`,l=new Set(["default"]),g=new Set,x=new Map;await Promise.all(Array.from(a).map(async p=>{var m;if(g.has(p))return;let d=await this.parseToken(p);if(d!=null){g.add(p);for(let S of d){let b=S[3]||"";x.has(b)||x.set(b,[]),x.get(b).push(S),(m=S[4])!=null&&m.layer&&l.add(S[4].layer)}}})),i&&this.config.preflights.forEach(p=>{p.layer&&l.add(p.layer)});let u={},y=this.config.sortLayers(Array.from(l).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)})),w={};if(i){let p={generator:this,theme:this.config.theme};w=Object.fromEntries(await Promise.all(y.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(c);return[d,S]})))}let A=p=>{if(u[p])return u[p];let d=Array.from(x).sort((m,S)=>{var b,U,f;return((b=this.parentOrders.get(m[0]))!=null?b:0)-((U=this.parentOrders.get(S[0]))!=null?U:0)||((f=m[0])==null?void 0:f.localeCompare(S[0]||""))||0}).map(([m,S])=>{let b=S.length,U=S.filter(h=>{var R;return(((R=h[4])==null?void 0:R.layer)||"default")===p}).sort((h,R)=>{var M,_,E;return h[0]-R[0]||(((M=h[4])==null?void 0:M.sort)||0)-(((_=R[4])==null?void 0:_.sort)||0)||((E=h[1])==null?void 0:E.localeCompare(R[1]||""))||0}).map(h=>{var R;return[h[1]?$t(h[1],r):h[1],h[2],!!((R=h[4])!=null&&R.noMerge)]}).map(h=>[h[0]==null?h[0]:[h[0]],h[1],h[2]]);if(!U.length)return;let f=U.reverse().map(([h,R,M],_)=>{if(!M&&h&&this.config.mergeSelectors)for(let E=_+1;E<b;E++){let T=U[E];if(T&&!T[2]&&T[0]&&T[1]===R)return T[0].push(...h),null}return h?`${[...new Set(h)].join(`,${c}`)}{${R}}`:R}).filter(Boolean).reverse().join(c);return m?`${m}{${c}${f}${c}}`:f}).filter(Boolean).join(c);return i&&(d=[w[p],d].filter(Boolean).join(c)),u[p]=!o&&d?`/* layer: ${p} */${c}${d}`:d},C=(p=y,d)=>p.filter(m=>!(d!=null&&d.includes(m))).map(m=>A(m)||"").filter(Boolean).join(c);return{get css(){return C()},layers:y,getLayers:C,getLayer:A,matched:g}}matchVariants(t,e){let r=new Set,i=[],s=e||t,o=!1,a={rawSelector:t,theme:this.config.theme,generator:this};for(;;){o=!1;for(let c of this.config.variants){if(!c.multiPass&&r.has(c))continue;let l=c.match(s,a);if(!!l){typeof l=="string"&&(l={matcher:l}),s=l.matcher,Array.isArray(l.parent)&&this.parentOrders.set(l.parent[0],l.parent[1]),i.push(l),r.add(c),o=!0;break}}if(!o)break;if(i.length>500)throw new Error(`Too many variants applied to "${t}"`)}return[t,s,i,r]}applyVariants(t,e=t[4],r=t[1]){let i=[...e].sort((a,c)=>(a.order||0)-(c.order||0)),s=i.reduce((a,c)=>{var l;return((l=c.body)==null?void 0:l.call(c,a))||a},t[2]),o={selector:i.reduce((a,c)=>{var l;return((l=c.selector)==null?void 0:l.call(c,a,s))||a},Mt(r)),entries:s,parent:i.reduce((a,c)=>Array.isArray(c.parent)?c.parent[0]:c.parent||a,void 0),layer:i.reduce((a,c)=>c.layer||a,void 0),sort:i.reduce((a,c)=>c.sort||a,void 0)};for(let a of this.config.postprocess)a(o);return o}constructCustomCSS(t,e,r){e=v(e);let{selector:i,entries:s,parent:o}=this.applyVariants([0,r||t.rawSelector,e,void 0,t.variantHandlers]),a=`${i}{${K(s)}}`;return o?`${o}{${a}}`:a}async parseUtil(t,e,r=!1){var g,x;let[i,s,o]=typeof t=="string"?this.matchVariants(t):t,a=this.config.rulesStaticMap[s];if(a&&a[1]&&(r||!((g=a[2])!=null&&g.internal)))return[[a[0],i,v(a[1]),a[2],o]];e.variantHandlers=o;let{rulesDynamic:c,rulesSize:l}=this.config;for(let u=l;u>=0;u--){let y=c[u];if(!y||((x=y[2])==null?void 0:x.internal)&&!r)continue;let[w,A,C]=y,p=s.match(w);if(!p)continue;let d=await A(p,e);if(!d)continue;if(typeof d=="string")return[[u,d,C]];let m=Q(d).filter(S=>S.length);if(m.length)return m.map(S=>[u,i,S,C,o])}}stringifyUtil(t){var u;if(!t)return;if(G(t))return[t[0],void 0,t[1],void 0,t[2]];let{selector:e,entries:r,parent:i,layer:s,sort:o}=this.applyVariants(t),a=K(r);if(!a)return;let y=(u=t[3])!=null?u:{},{layer:c,sort:l}=y,g=J(y,["layer","sort"]),x=O($({},g),{layer:s!=null?s:c,sort:o!=null?o:l});return[t[0],e,a,i,x]}expandShortcut(t,e,r=3){if(r===0)return;let i,s;for(let o of this.config.shortcuts)if(Y(o)){if(o[0]===t){i=i||o[2],s=o[1];break}}else{let a=t.match(o[0]);if(a&&(s=o[1](a,e)),s){i=i||o[2];break}}if(typeof s=="string"&&(s=it(s).split(/\s+/g)),!!s)return[s.flatMap(o=>{var a;return((a=this.expandShortcut(o,e,r-1))==null?void 0:a[0])||[o]}).filter(o=>o!==""),i]}async stringifyShortcuts(t,e,r,i={layer:this.config.shortcutsLayer}){var l;let s=new B,o=(await Promise.all(k(r).map(async g=>{let x=await this.parseUtil(g,e,!0);return x||ot(`unmatched utility "${g}" in shortcut "${t[1]}"`),x||[]}))).flat(1).filter(Boolean).sort((g,x)=>g[0]-x[0]),[a,,c]=t;for(let g of o){if(G(g))continue;let{selector:x,entries:u,parent:y,sort:w}=this.applyVariants(g,[...g[4],...c],a);s.getFallback(x,y,[[],g[0]])[0].push([u,!!((l=g[3])!=null&&l.noMerge),w!=null?w:0])}return s.map(([g,x],u,y)=>{let w=(C,p,d)=>{let m=Math.max(...d.map(b=>b[1])),S=d.map(b=>b[0]);return(C?[S.flat(1)]:S).map(b=>{let U=K(b);if(U)return[x,u,U,y,O($({},i),{noMerge:p,sort:m})]})};return[[g.filter(([,C])=>C).map(([C,,p])=>[C,p]),!0],[g.filter(([,C])=>!C).map(([C,,p])=>[C,p]),!1]].map(([C,p])=>[...w(!1,p,C.filter(([d])=>d.some(m=>m[0]===F))),...w(!0,p,C.filter(([d])=>d.every(m=>m[0]!==F)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(e=>typeof e=="string"?e===t:e.test(t))}};function ut(n,t){return new lt(n,t)}var ft=/ \$\$ /,At=n=>n.match(ft);function $t(n,t){return At(n)?n.replace(ft,t?` ${t} `:" "):t?`${t} ${n}`:n}var ct=/^\[(.+?)(~?=)"(.*)"\]$/;function Mt(n){return ct.test(n)?n.replace(ct,(t,e,r,i)=>`[${D(e)}${r}"${D(i)}"]`):`.${D(n)}`}var _t=n=>n.replace(/-(\w)/g,(t,e)=>e?e.toUpperCase():""),pt=n=>n.charAt(0).toUpperCase()+n.slice(1),dt=n=>n.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),gt=["Webkit","Moz","ms"];function ht(n){let t={};function e(r){let i=t[r];if(i)return i;let s=_t(r);if(s!=="filter"&&s in n)return t[r]=dt(s);s=pt(s);for(let o=0;o<gt.length;o++){let a=`${gt[o]}${s}`;if(a in n)return t[r]=dt(pt(a))}return r}return({entries:r})=>r.forEach(i=>{i[0].startsWith("--")||(i[0]=e(i[0]))})}function q(n={}){var b,U;if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let t=window.__unocss||{},e=t==null?void 0:t.runtime,r=Object.assign(n.defaults||{},e);if(e!=null&&e.autoPrefix){let f=r.postprocess;f||(f=[]),Array.isArray(f)||(f=[f]),f.unshift(ht(document.createElement("div").style)),r.postprocess=f}(b=e==null?void 0:e.configResolved)==null||b.call(e,t,r);let i,s=!0,o,a=ut(t,r),c=new Set,l,g=[],x=()=>new Promise(f=>{g.push(f),l!=null&&clearTimeout(l),l=setTimeout(()=>u().then(()=>{let h=g;g=[],h.forEach(R=>R())}),0)});async function u(){let f=await a.generate(c);i||(i=document.createElement("style"),document.documentElement.prepend(i)),i.innerHTML=f.css,c=f.matched}async function y(f){let h=c.size;await a.applyExtractors(f,void 0,c),h!==c.size&&await x()}async function w(){let f=document.body&&document.body.outerHTML;f&&await y(f)}let A=new MutationObserver(f=>{s||f.forEach(h=>{let R=h.target;if(R===i||o&&!o(R))return;let M=Array.from(R.attributes).map(E=>E.value?`${E.name}="${E.value}"`:E.name).join(" "),_=`<${R.tagName.toLowerCase()} ${M}>`;y(_)})}),C=!1;function p(){if(!C)return;let f=document.documentElement||document.body;!f||(A.observe(f,{childList:!0,subtree:!0,attributes:!0}),C=!0)}function d(){w(),p()}function m(){d(),window.addEventListener("load",d),window.addEventListener("DOMContentLoaded",d)}let S=window.__unocss_runtime=window.__unocss_runtime={version:a.version,uno:a,async extract(f){typeof f!="string"&&(f.forEach(h=>c.add(h)),f=""),await y(f)},extractAll:w,inspect(f){o=f},toggleObserver(f){f===void 0?s=!s:s=!!f,!C&&!s&&m()}};((U=e==null?void 0:e.ready)==null?void 0:U.call(e,S))!==!1&&(s=!1,m())}q();})();
|
package/full.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var it=Object.defineProperty,Sn=Object.defineProperties;var Cn=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var at=(e,t,r)=>t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))st.call(t,r)&&at(e,r,t[r]);if(ge)for(var r of ge(t))ct.call(t,r)&&at(e,r,t[r]);return e},E=(e,t)=>Sn(e,Cn(t));var lt=(e,t)=>{var r={};for(var o in e)st.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&&ct.call(e,o)&&(r[o]=e[o]);return r};var Rn=(e,t)=>{for(var r in t)it(e,r,{get:t[r],enumerable:!0})};function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(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=Ce;function te(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>te(t)):[e]:[te(e)]}function Tn(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?"":Tn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Re(e){return e&&typeof e=="object"&&!Array.isArray(e)}function re(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 Re(r)&&Re(o)&&Object.keys(o).forEach(a=>{Re(o[a])?a in r?n[a]=re(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function ee(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ee(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ee(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ee(o):o;return r}return e}function ut(e){return typeof e[0]=="string"}function ft(e){return typeof e[0]=="string"}function A(e=[]){return Array.isArray(e)?e:[e]}function xe(e){return Array.from(new Set(e))}var zn=/^\[(.+?)~?="(.*)"\]$/,En=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function mt(e){return e.match(zn)}function oe(e=""){return En.test(e)}function dt(e){return typeof e=="function"?{match:e}:e}function Te(e){return e.length===3}function gt(e){return e!=null}var ze=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 bt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ht(e){return bt.lastIndex=0,e.replace(bt,(t,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xt=new Set;function yt(e){xt.has(e)||(console.warn("[unocss]",e),xt.add(e))}function vt(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 Vn=e=>e.split(/[\s'"`;>=]+/g).filter(oe),ne={name:"split",order:0,extract({code:e}){return new Set(Vn(e))}};function jn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var An={shortcuts:-1,default:0};function Ee(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(A),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 xe([...n.flatMap(h=>A(h[m]||[])),...A(r[m]||[])])}let i=s("extractors");i.length||i.push(ne),i.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},u=l.length;l.forEach((m,h)=>{ut(m)&&(p[m[0]]=[h,m[1],m[2]],delete l[h])});let f=ee([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>re(m,h),{}));return s("extendTheme").forEach(m=>m(f)),E(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(dt),shortcuts:jn(s("shortcuts")),extractors:i})}var $t="0.29.
|
|
1
|
+
(()=>{var it=Object.defineProperty,Sn=Object.defineProperties;var Cn=Object.getOwnPropertyDescriptors;var ge=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var at=(e,t,r)=>t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))st.call(t,r)&&at(e,r,t[r]);if(ge)for(var r of ge(t))ct.call(t,r)&&at(e,r,t[r]);return e},E=(e,t)=>Sn(e,Cn(t));var lt=(e,t)=>{var r={};for(var o in e)st.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&&ct.call(e,o)&&(r[o]=e[o]);return r};var Rn=(e,t)=>{for(var r in t)it(e,r,{get:t[r],enumerable:!0})};function Q(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ce(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=Ce;function te(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function pt(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>te(t)):[e]:[te(e)]}function Tn(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?"":Tn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function Re(e){return e&&typeof e=="object"&&!Array.isArray(e)}function re(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 Re(r)&&Re(o)&&Object.keys(o).forEach(a=>{Re(o[a])?a in r?n[a]=re(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function ee(e){let t,r,o;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(o=e[t])&&typeof o=="object"?ee(o):o;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:ee(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(o=e[t])&&typeof o=="object"?ee(o):o;return r}return e}function ut(e){return typeof e[0]=="string"}function ft(e){return typeof e[0]=="string"}function A(e=[]){return Array.isArray(e)?e:[e]}function xe(e){return Array.from(new Set(e))}var zn=/^\[(.+?)~?="(.*)"\]$/,En=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,V="$$shortcut-no-merge";function mt(e){return e.match(zn)}function oe(e=""){return En.test(e)}function dt(e){return typeof e=="function"?{match:e}:e}function Te(e){return e.length===3}function gt(e){return e!=null}var ze=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 bt=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function ht(e){return bt.lastIndex=0,e.replace(bt,(t,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xt=new Set;function yt(e){xt.has(e)||(console.warn("[unocss]",e),xt.add(e))}function vt(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 Vn=e=>e.split(/[\s'"`;>=]+/g).filter(oe),ne={name:"split",order:0,extract({code:e}){return new Set(Vn(e))}};function jn(e){return A(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var An={shortcuts:-1,default:0};function Ee(e={},t={}){let r=Object.assign({},t,e),o=(r.presets||[]).flatMap(A),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 xe([...n.flatMap(h=>A(h[m]||[])),...A(r[m]||[])])}let i=s("extractors");i.length||i.push(ne),i.sort((m,h)=>(m.order||0)-(h.order||0));let l=s("rules"),p={},u=l.length;l.forEach((m,h)=>{ut(m)&&(p[m[0]]=[h,m[1],m[2]],delete l[h])});let f=ee([...n.map(m=>m.theme||{}),r.theme||{}].reduce((m,h)=>re(m,h),{}));return s("extendTheme").forEach(m=>m(f)),E(R({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:m=>m},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:f,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(dt),shortcuts:jn(s("shortcuts")),extractors:i})}var $t="0.29.4";var wt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ee(t,r)}version=$t;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ee(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(u=>this.stringifyUtil(u)).filter(gt);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"]),u=new Set,f=new Map;await Promise.all(Array.from(i).map(async g=>{var v;if(u.has(g))return;let b=await this.parseToken(g);if(b!=null){u.add(g);for(let k of b){let S=k[3]||"";f.has(S)||f.set(S,[]),f.get(S).push(k),(v=k[4])!=null&&v.layer&&p.add(k[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let m={},h=this.config.sortLayers(Array.from(p).sort((g,b)=>{var v,k;return((v=this.config.layers[g])!=null?v:0)-((k=this.config.layers[b])!=null?k:0)||g.localeCompare(b)})),z={};if(n){let g={generator:this,theme:this.config.theme};z=Object.fromEntries(await Promise.all(h.map(async b=>{let k=(await Promise.all(this.config.preflights.filter(S=>(S.layer||"default")===b).map(async S=>await S.getCSS(g)))).filter(Boolean).join(l);return[b,k]})))}let P=g=>{if(m[g])return m[g];let b=Array.from(f).sort((v,k)=>{var S,j,d;return((S=this.parentOrders.get(v[0]))!=null?S:0)-((j=this.parentOrders.get(k[0]))!=null?j:0)||((d=v[0])==null?void 0:d.localeCompare(k[0]||""))||0}).map(([v,k])=>{let S=k.length,j=k.filter(x=>{var C;return(((C=x[4])==null?void 0:C.layer)||"default")===g}).sort((x,C)=>{var W,H,O;return x[0]-C[0]||(((W=x[4])==null?void 0:W.sort)||0)-(((H=C[4])==null?void 0:H.sort)||0)||((O=x[1])==null?void 0:O.localeCompare(C[1]||""))||0}).map(x=>{var C;return[x[1]?Pn(x[1],o):x[1],x[2],!!((C=x[4])!=null&&C.noMerge)]}).map(x=>[x[0]==null?x[0]:[x[0]],x[1],x[2]]);if(!j.length)return;let d=j.reverse().map(([x,C,W],H)=>{if(!W&&x&&this.config.mergeSelectors)for(let O=H+1;O<S;O++){let G=j[O];if(G&&!G[2]&&G[0]&&G[1]===C)return G[0].push(...x),null}return x?`${[...new Set(x)].join(`,${l}`)}{${C}}`:C}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${d}${l}}`:d}).filter(Boolean).join(l);return n&&(b=[z[g],b].filter(Boolean).join(l)),m[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},$=(g=h,b)=>g.filter(v=>!(b!=null&&b.includes(v))).map(v=>P(v)||"").filter(Boolean).join(l);return{get css(){return $()},layers:h,getLayers:$,getLayer:P,matched:u}}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},Un(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=te(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||t.rawSelector,r,void 0,t.variantHandlers]),i=`${n}{${he(a)}}`;return s?`${s}{${i}}`:i}async parseUtil(t,r,o=!1){var u,f;let[n,a,s]=typeof t=="string"?this.matchVariants(t):t,i=this.config.rulesStaticMap[a];if(i&&i[1]&&(o||!((u=i[2])!=null&&u.internal)))return[[i[0],n,te(i[1]),i[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let m=p;m>=0;m--){let h=l[m];if(!h||((f=h[2])==null?void 0:f.internal)&&!o)continue;let[z,P,$]=h,g=a.match(z);if(!g)continue;let b=await P(g,r);if(!b)continue;if(typeof b=="string")return[[m,b,$]];let v=pt(b).filter(k=>k.length);if(v.length)return v.map(k=>[m,n,k,$,s])}}stringifyUtil(t){var m;if(!t)return;if(Te(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=he(o);if(!i)return;let h=(m=t[3])!=null?m:{},{layer:l,sort:p}=h,u=lt(h,["layer","sort"]),f=E(R({},u),{layer:a!=null?a:l,sort:s!=null?s:p});return[t[0],r,i,n,f]}expandShortcut(t,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(ft(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=ht(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 p;let a=new ze,s=(await Promise.all(xe(o).map(async u=>{let f=await this.parseUtil(u,r,!0);return f||yt(`unmatched utility "${u}" in shortcut "${t[1]}"`),f||[]}))).flat(1).filter(Boolean).sort((u,f)=>u[0]-f[0]),[i,,l]=t;for(let u of s){if(Te(u))continue;let{selector:f,entries:m,parent:h,sort:z}=this.applyVariants(u,[...u[4],...l],i);a.getFallback(f,h,[[],u[0]])[0].push([m,!!((p=u[3])!=null&&p.noMerge),z!=null?z:0])}return a.map(([u,f],m,h)=>{let z=($,g,b)=>{let v=Math.max(...b.map(S=>S[1])),k=b.map(S=>S[0]);return($?[k.flat(1)]:k).map(S=>{let j=he(S);if(j)return[f,m,j,h,E(R({},n),{noMerge:g,sort:v})]})};return[[u.filter(([,$])=>$).map(([$,,g])=>[$,g]),!0],[u.filter(([,$])=>!$).map(([$,,g])=>[$,g]),!1]].map(([$,g])=>[...z(!1,g,$.filter(([b])=>b.some(v=>v[0]===V))),...z(!0,g,$.filter(([b])=>b.every(v=>v[0]!==V)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function St(e,t){return new wt(e,t)}var Ct=/ \$\$ /,Mn=e=>e.match(Ct);function Pn(e,t){return Mn(e)?e.replace(Ct,t?` ${t} `:" "):t?`${t} ${e}`:e}var kt=/^\[(.+?)(~?=)"(.*)"\]$/;function Un(e){return kt.test(e)?e.replace(kt,(t,r,o,n)=>`[${be(r)}${o}"${be(n)}"]`):`.${be(e)}`}var _n=["v-bind:",":"],Rt=/[\s'"`;]+/g,Fn=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,Dn=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,Tt=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(Fn)).flatMap(i=>Array.from((i[1]||"").matchAll(Dn))).flatMap(([,i,l,p])=>{if(t.includes(i))return[];for(let u of _n)if(i.startsWith(u)){i=i.slice(u.length);break}return p?["class","className"].includes(i)?p.split(Rt).filter(oe):p.split(Rt).filter(Boolean).map(u=>`[${i}~="${u}"]`):oe(i)&&r!==!1?[`[${i}=""]`]:[]});return new Set(s)}}};var Ln=/^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/,zt=(e={})=>{var o,n;let t=(o=e.prefix)!=null?o:"un-",r=(n=e.prefixedOnly)!=null?n:!1;return a=>{let s=mt(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="",u=l]=l.match(Ln)||[];return u==="~"||!u?`${p}${i}`:`${p}${i}-${u}`}};var Nn=(e={})=>{var o,n,a,s,i;e.strict=(o=e.strict)!=null?o:!1,e.prefix=(n=e.prefix)!=null?n:"un-",e.prefixedOnly=(a=e.prefixedOnly)!=null?a:!1,e.nonValuedAttribute=(s=e.nonValuedAttribute)!=null?s:!0,e.ignoreAttributes=(i=e.ignoreAttributes)!=null?i:[];let t=[zt(e)],r=[Tt(e)];return e.strict||r.unshift(ne),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},Et=Nn;var Ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function Y(e=""){let t=Wn(e);if(t==null||t===!1)return;let{type:r,components:o,alpha:n}=t,a=r.toLowerCase();if(o.length!==0&&!(["rgba","hsla"].includes(a)&&n==null)&&!(Ve.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function 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}`,Ve.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function Wn(e){if(!e)return;let t=Hn(e);if(t!=null||(t=Bn(e),t!=null)||(t=Kn(e),t!=null)||(t=Xn(e),t!=null)||(t=Yn(e),t!=null))return t}function Hn(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 Bn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Kn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,o]=t,n=ae(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 Gn=new RegExp(`^(${Ve.join("|")})\\((.+)\\)$`,"i");function Xn(e){let t=e.match(Gn);if(!t)return;let[,r,o]=t,n=Vt(`${r} ${o}`);if(n){let{alpha:a,components:[s,...i]}=n;return{type:s,components:i,alpha:a}}}function Yn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Vt(t[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function Vt(e){let t=ae(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=ae(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 In(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 ae(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=In(e,t);if(!a)return;let[s,i]=a;o.push(s),e=i}if(o.length>0)return o}var M={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},je=E(R({},M),{s:["-inset-inline-start"],e:["-inset-inline-end"],bs:["-inset-block-start"],be:["-inset-block-end"],is:["-inset-inline-start"],ie:["-inset-inline-end"],block:["-inset-block-start","-inset-block-end"],inline:["-inset-inline-start","-inset-inline-end"]}),Ae={l:["-top-left","-bottom-left"],r:["-top-right","-bottom-right"],t:["-top-left","-top-right"],b:["-bottom-left","-bottom-right"],tl:["-top-left"],lt:["-top-left"],tr:["-top-right"],rt:["-top-right"],bl:["-bottom-left"],lb:["-bottom-left"],br:["-bottom-right"],rb:["-bottom-right"],"":[""],bs:["-start-start","-start-end"],be:["-end-start","-end-end"],is:["-end-start","-start-start"],ie:["-start-end","-end-end"],"bs-is":["-start-start"],"is-bs":["-start-start"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],"be-is":["-end-start"],"is-be":["-end-start"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Oe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},jt=["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"],D=Object.assign({},...jt.map(e=>({[e.replace(/ /,"-")]:e})),...jt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));var Ue={};Rn(Ue,{auto:()=>Qn,bracket:()=>aa,bracketOfColor:()=>ia,bracketOfLength:()=>sa,cssvar:()=>ca,degree:()=>pa,fraction:()=>na,global:()=>ua,number:()=>ra,numberWithUnit:()=>Jn,percent:()=>oa,properties:()=>fa,px:()=>ta,rem:()=>ea,time:()=>la});var qn=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","backround-position","left","right","top","bottom","object-position","max-height","min-height","max-width","min-width","height","width","border-width","margin","padding","outline-width","outline-offset","font-size","line-height","text-indent","vertical-align","border-spacing","letter-spacing","word-spacing","stroke","filter","backdrop-filter","fill","mask","mask-size","mask-border","clip-path","clip","border-radius"],Me=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Zn=/^(-?[0-9.]+)$/i,At=/^(px)$/i;function F(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Jn(e){let t=e.match(Me);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${F(n)}${o}`}function Qn(e){if(e==="auto"||e==="a")return"auto"}function ea(e){if(e.match(At))return`1${e}`;let t=e.match(Me);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n/4)}rem`}function ta(e){if(e.match(At))return`1${e}`;let t=e.match(Me);if(!t)return;let[,r,o]=t,n=parseFloat(r);if(!Number.isNaN(n))return o?`${F(n)}${o}`:`${F(n)}px`}function ra(e){if(!Zn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return F(t)}function oa(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${F(t/100)}`}function na(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 Pe(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 aa(e){return Pe(e)}function ia(e){return Pe(e,"color")}function sa(e){return Pe(e,"length")}function ca(e){if(e.match(/^\$\S/))return`var(--${Ce(e.slice(1))})`}function la(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 pa(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 ua(e){if(["inherit","initial","revert","unset"].includes(e))return e}function fa(e){for(let t of e.split(","))if(!qn.includes(t))return;return e}var c=vt(Ue);var L=(e,t)=>{let r=new RegExp(`^${Q(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:t}},autocomplete:`${e}:`}},_=(e,t)=>{let r=new RegExp(`^${Q(e)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),parent:t}},autocomplete:`${e}:`}};var T=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 M[r].map(l=>[`${e}${l}`,a])},_e=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,o=>o.slice(1).toUpperCase())]},I=(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 u="DEFAULT";if(!i){let f,[m]=a.slice(-1);m.match(/^\d+$/)?(u=m,f=_e(t,a.slice(0,-1))):(f=_e(t,a),!f&&a.length<=2&&([,u=u]=a,f=_e(t,[s]))),typeof f=="string"?i=f:u&&f&&(i=f[u])}return{opacity:n,name:s,no:u,color:i,cssColor:Y(i),alpha:c.bracket.cssvar.percent(n!=null?n:"")}},w=(e,t)=>([,r],{theme:o})=>{var l;let n=I(r,o);if(!n)return;let{alpha:a,color:s,cssColor:i}=n;if(i)return a!=null?{[e]:U(i,a)}:{[`--un-${t}-opacity`]:(l=i.alpha)!=null?l:1,[e]:U(i,`var(--un-${t}-opacity)`)};if(s)return{[e]:s.replace("%alpha",`${a!=null?a:1}`)}},q=(e,t)=>{let r=[];e=A(e);for(let o=0;o<e.length;o++){let n=ae(e[o]," ",6);if(!n||n.length<3)return e;let a=Y(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=I(e,t))!=null&&r.color)};var Ot=[[/^(?: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}`})}`}],[/^animate-(.+)$/,([,e],{theme:t,constructCSS:r})=>{var n,a,s,i,l,p,u,f,m,h;let o=(a=(n=t.animation)==null?void 0:n.keyframes)==null?void 0:a[e];if(o){let z=(l=(i=(s=t.animation)==null?void 0:s.durations)==null?void 0:i[e])!=null?l:"1s",P=(f=(u=(p=t.animation)==null?void 0:p.timingFns)==null?void 0:u[e])!=null?f:"linear",$=(h=(m=t.animation)==null?void 0:m.properties)==null?void 0:h[e];return`@keyframes ${e}${o}
|
|
4
4
|
${r(Object.assign({animation:`${e} ${z} ${P} infinite`},$))}`}return{animation:c.bracket.cssvar(e)}}],[/^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)}}],[/^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)}}],[/^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)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,e])=>({"animation-fill-mode":e})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,e])=>({"animation-direction":e})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,e])=>{var t;return{"animation-iteration-count":(t=c.bracket.cssvar(e))!=null?t:e.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,e])=>({"animation-play-state":e})],["animate-none",{animation:"none"}]];var Fe=e=>([,t],{theme:r})=>{var l;let o=I(t,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-${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}}},Mt=[[/^bg-gradient-(.+)$/,([,e])=>({"--un-gradient":c.bracket(e)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,e])=>({"--un-gradient-stops":c.bracket(e)})],[/^(?:bg-gradient-)?from-(.+)$/,Fe("from")],[/^(?:bg-gradient-)?to-(.+)$/,Fe("to")],[/^(?:bg-gradient-)?via-(.+)$/,Fe("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))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,e])=>{if(e in D)return{"--un-gradient-shape":`to ${D[e]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,e])=>{let t=e in D?`to ${D[e]}`:c.bracket(e);if(t!=null)return{"--un-gradient-shape":t,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["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":D[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 Pt=[[/^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}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],Ut=[[/^accent-(.+)$/,w("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,e])=>({"--un-accent-opacity":c.bracket.percent(e)})]],_t=[[/^caret-(.+)$/,w("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,e])=>({"--un-caret-opacity":c.bracket.percent(e)})]],Ft=[["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"]]]],Dt=[["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"}]],Lt=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Nt=[[/^columns-(.+)$/,([,e])=>({columns:c.bracket.global.number.auto.numberWithUnit(e)})],["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 ma=/@media \(min-width: (.+)\)/,Wt=[[/^__container$/,(e,{variantHandlers:t})=>{var o;let r="100%";for(let n of t){let a=A(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(ma))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],Ht=[[/^(?:(\w+)[:-])?container$/,([,e],{theme:t})=>{let r=Object.keys(t.breakpoints||{});if(e){if(!r.includes(e))return;r=r.slice(r.indexOf(e))}let o=r.map(n=>`${n}:__container`);return e||o.unshift("__container"),o}]];var da={mid:"middle",base:"baseline",btm:"bottom"},Bt=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":da[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Kt=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Gt=[[/^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-)?(.+)$/,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:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Xt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ga=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},Yt=[[/^will-change-(.+)/,([,e])=>({"will-change":ga(e)})]];var It=[[/^(?:border|b)()(?:-(.+))?$/,ie,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ie],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ie],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ie],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ie],[/^(?:border|b)-()(?:width|size)-(.+)$/,Z,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Z],[/^(?:border|b)-()(?:color-)?(.+)$/,se,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,se],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,se],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,se],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,se],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ce,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ce],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ce],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,le,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,le],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,le],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ba=e=>([,t],r)=>{var i,l;let o=I(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":(i=s.alpha)!=null?i: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 ie(e,t){let r=Z(e,t);if(r)return[...r,["border-style","solid"]]}function Z([,e="",t],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[t||"DEFAULT"])!=null?a:c.bracket.cssvar.px(t||"1");if(e in M&&o!=null)return M[e].map(s=>[`border${s}-width`,o])}function se([,e="",t],{theme:r}){if(e in M&&ye(t,r))return Object.assign({},...M[e].map(o=>ba(o)(["",t],r)))}function ce([,e="",t]){let r=c.bracket.percent(t);if(e in M&&r!=null)return M[e].map(o=>[`--un-border${o}-opacity`,r])}function le([,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 Ae&&o!=null)return Ae[e].map(a=>[`border${a}-radius`,o])}var qt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Zt=[[/^(?:text|color|c)-(.+)$/,w("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>"}]],Jt=[[/^bg-(.+)$/,w("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var er={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Qt=e=>{var t;return(t=c.properties(e))!=null?t:er[e]},tr=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var n,a;let o=e!=null?Qt(e):[er.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}}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||Qt(e)})],["transition-none",{transition:"none"}]];var rr=[["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 ha={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},or=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var o;let r=A((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=A((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}}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":ha[e]||c.global.number(e)}),{autocomplete:"font-(100|200|300|400|500|600|700)"}],[/^(?: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"}],[/^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"}],[/^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"}]],nr=[[/^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}}]],ar=[[/^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)}}]],ir=[[/^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)}}],[/^text-stroke-(.+)$/,w("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],sr=[[/^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)}}],[/^text-shadow-color-(.+)$/,w("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)})]];var cr={"":"",x:"column-",y:"row-"},lr=([,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-${cr[e]}gap`]:o,[`${cr[e]}gap`]:o}},pr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,lr,{autocomplete:"gap-<num>"}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,lr,{autocomplete:"gap-(x|y)-<num>"}]];var N=e=>e.replace("col","column"),De=e=>e[0]==="r"?"Row":"Column",xa=(e,t,r)=>{var n;let o=(n=t[`gridAuto${De(e)}`])==null?void 0:n[r];if(o!=null)return o;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(r)},ur=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-${N(e)}`]:(n=(o=r[`grid${De(e)}`])==null?void 0:o[t])!=null?n:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${N(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${N(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${N(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${N(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${N(e)}`]:xa(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":N(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var o,n;return{[`grid-template-${N(e)}`]:(n=(o=r[`gridTemplate${De(e)}`])==null?void 0:o[t])!=null?n:c.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 fr=["auto","hidden","clip","visible","scroll"],mr=[[/^(?:overflow|of)-(.+)$/,([,e])=>fr.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>fr.includes(t)?{[`overflow-${e}`]:t}:void 0]];var dr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],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-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["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 Le(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 ve([,e,t],r){let o=Le(t,r);if(o!=null&&e in je)return je[e].map(n=>[n.slice(1),o])}var yr=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Le(e,t)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ve],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ve],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ve],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ve],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Le(t,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.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)})]],kr=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var y="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-(.+)$/,([,e])=>({display:c.bracket.cssvar(e)||e})]],Sr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Cr=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Rr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Tr=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],zr=[["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)$/,([,e])=>({"white-space":e})]];var Vr=[["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 Ar=[["italic",{"font-style":"italic"}],["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(?:-(.+))?$/,([,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[{[V]:"","--un-ring-inset":y,"--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)"}]}],[/^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)}}],["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)}}],[/^ring-(.+)$/,w("--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-(.+)$/,w("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Pr=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var o;let r=(o=t.boxShadow)==null?void 0:o[e||"DEFAULT"];if(r)return[{[V]:"","--un-shadow-inset":y,"--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)"}]}],[/^shadow-(.+)$/,w("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ya={h:"height",w:"width",inline:"inline-size",block:"block-size"};function pe(e,t){return`${e||""}${ya[t]}`}function Ur(e,t,r,o){var s;let n=pe(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 _r=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:o})=>({[pe(e,t)]:Ur(e,t,o,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:o})=>({[pe(e,t)]:Ur(e,t,o,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],{theme:o})=>{var n;return{[pe(e,t)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:o})=>{var n;return{[pe(e,t)]:(n=o.breakpoints)==null?void 0:n[r]}}]];function va(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 Fr=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":va(e)})]];var Dr=[[/^pa?()-?(-?.+)$/,T("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,T("padding")],[/^p-?([rltbse])-?(-?.+)$/,T("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,T("padding")],[/^p-?([bi][se])-?(-?.+)$/,T("padding")]],Lr=[[/^ma?()-?(-?.+)$/,T("margin")],[/^m-?([xy])-?(-?.+)$/,T("margin")],[/^m-?([rltbse])-?(-?.+)$/,T("margin")],[/^m-(block|inline)-(-?.+)$/,T("margin")],[/^m-?([bi][se])-?(-?.+)$/,T("margin")]];var $a={"--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(" ")},J=E(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},Br),{[V]:""}),Kr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=D[e])!=null?t:c.bracket.cssvar(e)}}],[/^(?: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?D[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Nr],[/^(?:transform-)?translate-([xyz])-(.+)$/,Nr],[/^(?:transform-)?rotate-()(.+)$/,Hr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Hr],[/^(?:transform-)?skew-([xy])-(.+)$/,ka],[/^(?:transform-)?scale-()(.+)$/,Wr],[/^(?:transform-)?scale-([xyz])-(.+)$/,Wr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[J,{transform:"var(--un-transform)"}]],["transform-gpu",$a],["transform-cpu",Br],["transform-none",{transform:"none"}]];function Nr([,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[J,[...Oe[e].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Wr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[J,[...Oe[e].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function Hr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[J,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[J,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function ka([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[J,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var wa={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"},Gr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=wa[e];if(r)return{[r]:c.cssvar(t)}}]],Xr=[[/^\[([^:]+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var Yr=[[/^(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 Be=Object.defineProperty,$n=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var se=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable;var Ke=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Ke(e,r,t[r]);if(se)for(var r of se(t))Ge.call(t,r)&&Ke(e,r,t[r]);return e},T=(e,t)=>$n(e,wn(t));var qe=(e,t)=>{var r={};for(var n in e)Ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&se)for(var n of se(e))t.indexOf(n)<0&&Ge.call(e,n)&&(r[n]=e[n]);return r};var vn=(e,t)=>{for(var r in t)Be(e,r,{get:t[r],enumerable:!0})};var Sn={mid:"middle",base:"baseline",btm:"bottom"},Ze=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Sn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Xe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var xe=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function be(e=""){let t=kn(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)&&!(xe.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(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}`,xe.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function kn(e){if(!e)return;let t=Cn(e);if(t!=null||(t=Rn(e),t!=null)||(t=Tn(e),t!=null)||(t=jn(e),t!=null)||(t=An(e),t!=null))return t}function Cn(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 Rn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Tn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=B(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 En=new RegExp(`^(${xe.join("|")})\\((.+)\\)$`,"i");function jn(e){let t=e.match(En);if(!t)return;let[,r,n]=t,o=Ye(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function An(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ye(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ye(e){let t=B(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=B(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 Vn(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 B(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=Vn(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"]},ye=T(k({},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"]}),$e={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"]},we={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Je=["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"],ve=Object.assign({},...Je.map(e=>({[e.replace(/ /,"-")]:e})),...Je.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Se(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 ae=Se;function q(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Qe(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function zn(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 ce(e){return e==null?"":zn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ce(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=k({},r);return ke(r)&&ke(n)&&Object.keys(n).forEach(i=>{ke(n[i])?i in r?o[i]=Ce(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function et(e){return typeof e[0]=="string"}function tt(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function le(e){return Array.from(new Set(e))}var Pn=/^\[(.+?)~?="(.*)"\]$/,On=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,M="$$shortcut-no-merge";function rt(e){return e.match(Pn)}function Z(e=""){return On.test(e)}function nt(e){return typeof e=="function"?{match:e}:e}function Re(e){return e.length===3}function ot(e){return e!=null}var Te=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 it=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(e){return it.lastIndex=0,e.replace(it,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var at=new Set;function ct(e){at.has(e)||(console.warn("[unocss]",e),at.add(e))}function lt(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 Mn=e=>e.split(/[\s'"`;>=]+/g).filter(Z),X={name:"split",order:0,extract({code:e}){return new Set(Mn(e))}};function Un(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Fn={shortcuts:-1,default:0};function Ee(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Fn,...n.map(p=>p.layers),e.layers);function a(p){return le([...o.flatMap(y=>E(y[p]||[])),...E(r[p]||[])])}let s=a("extractors");s.length||s.push(X),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},f=l.length;l.forEach((p,y)=>{et(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let m=G([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>Ce(p,y),{}));return a("extendTheme").forEach(p=>p(m)),T(k({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:f,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:a("autocomplete"),variants:a("variants").map(nt),shortcuts:Un(a("shortcuts")),extractors:s})}var ut="0.29.3";var pt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ee(t,r)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ee(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(f=>this.stringifyUtil(f)).filter(ot);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(h=>s.add(h));let l=a?"":`
|
|
1
|
+
(()=>{var Be=Object.defineProperty,$n=Object.defineProperties;var wn=Object.getOwnPropertyDescriptors;var se=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable;var Ke=(e,t,r)=>t in e?Be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k=(e,t)=>{for(var r in t||(t={}))Ie.call(t,r)&&Ke(e,r,t[r]);if(se)for(var r of se(t))Ge.call(t,r)&&Ke(e,r,t[r]);return e},T=(e,t)=>$n(e,wn(t));var qe=(e,t)=>{var r={};for(var n in e)Ie.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&se)for(var n of se(e))t.indexOf(n)<0&&Ge.call(e,n)&&(r[n]=e[n]);return r};var vn=(e,t)=>{for(var r in t)Be(e,r,{get:t[r],enumerable:!0})};var Sn={mid:"middle",base:"baseline",btm:"bottom"},Ze=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,e])=>({"vertical-align":Sn[e]||e}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],Xe=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var xe=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function be(e=""){let t=kn(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)&&!(xe.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n,alpha:o}}function _(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}`,xe.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function kn(e){if(!e)return;let t=Cn(e);if(t!=null||(t=Rn(e),t!=null)||(t=Tn(e),t!=null)||(t=jn(e),t!=null)||(t=An(e),t!=null))return t}function Cn(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 Rn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Tn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=B(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 En=new RegExp(`^(${xe.join("|")})\\((.+)\\)$`,"i");function jn(e){let t=e.match(En);if(!t)return;let[,r,n]=t,o=Ye(`${r} ${n}`);if(o){let{alpha:i,components:[a,...s]}=o;return{type:a,components:s,alpha:i}}}function An(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=Ye(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ye(e){let t=B(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=B(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 Vn(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 B(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=Vn(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"]},ye=T(k({},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"]}),$e={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"]},we={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Je=["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"],ve=Object.assign({},...Je.map(e=>({[e.replace(/ /,"-")]:e})),...Je.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e})));function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Se(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 ae=Se;function q(e){return(Array.isArray(e)?e:Object.entries(e)).filter(t=>t[1]!=null)}function Qe(e){return Array.isArray(e)?e.find(t=>!Array.isArray(t)||Array.isArray(t[0]))?e.map(t=>q(t)):[e]:[q(e)]}function zn(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 ce(e){return e==null?"":zn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}function ke(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Ce(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=k({},r);return ke(r)&&ke(n)&&Object.keys(n).forEach(i=>{ke(n[i])?i in r?o[i]=Ce(r[i],n[i]):Object.assign(o,{[i]:n[i]}):Object.assign(o,{[i]:n[i]})}),o}function G(e){let t,r,n;if(Array.isArray(e)){for(r=Array(t=e.length);t--;)r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}if(Object.prototype.toString.call(e)==="[object Object]"){r={};for(t in e)t==="__proto__"?Object.defineProperty(r,t,{value:G(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=(n=e[t])&&typeof n=="object"?G(n):n;return r}return e}function et(e){return typeof e[0]=="string"}function tt(e){return typeof e[0]=="string"}function E(e=[]){return Array.isArray(e)?e:[e]}function le(e){return Array.from(new Set(e))}var Pn=/^\[(.+?)~?="(.*)"\]$/,On=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,M="$$shortcut-no-merge";function rt(e){return e.match(Pn)}function Z(e=""){return On.test(e)}function nt(e){return typeof e=="function"?{match:e}:e}function Re(e){return e.length===3}function ot(e){return e!=null}var Te=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 it=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function st(e){return it.lastIndex=0,e.replace(it,(t,r,n,o)=>o.split(/\s/g).map(i=>i.replace(/^(!?)(.*)/,`$1${r}${n}$2`)).join(" "))}var at=new Set;function ct(e){at.has(e)||(console.warn("[unocss]",e),at.add(e))}function lt(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 Mn=e=>e.split(/[\s'"`;>=]+/g).filter(Z),X={name:"split",order:0,extract({code:e}){return new Set(Mn(e))}};function Un(e){return E(e).flatMap(t=>Array.isArray(t)?[t]:Object.entries(t))}var Fn={shortcuts:-1,default:0};function Ee(e={},t={}){let r=Object.assign({},t,e),n=(r.presets||[]).flatMap(E),o=[...n.filter(p=>p.enforce==="pre"),...n.filter(p=>!p.enforce),...n.filter(p=>p.enforce==="post")],i=Object.assign(Fn,...n.map(p=>p.layers),e.layers);function a(p){return le([...o.flatMap(y=>E(y[p]||[])),...E(r[p]||[])])}let s=a("extractors");s.length||s.push(X),s.sort((p,y)=>(p.order||0)-(y.order||0));let l=a("rules"),u={},f=l.length;l.forEach((p,y)=>{et(p)&&(u[p[0]]=[y,p[1],p[2]],delete l[y])});let m=G([...o.map(p=>p.theme||{}),r.theme||{}].reduce((p,y)=>Ce(p,y),{}));return a("extendTheme").forEach(p=>p(m)),T(k({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:f,rulesDynamic:l,rulesStaticMap:u,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:a("autocomplete"),variants:a("variants").map(nt),shortcuts:Un(a("shortcuts")),extractors:s})}var ut="0.29.4";var pt=class{constructor(t={},r={}){this.userConfig=t;this.defaults=r;this.config=Ee(t,r)}version=ut;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(t,r){!t||(r&&(this.defaults=r),this.userConfig=t,this.config=Ee(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(f=>this.stringifyUtil(f)).filter(ot);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(h=>s.add(h));let l=a?"":`
|
|
2
2
|
`,u=new Set(["default"]),f=new Set,m=new Map;await Promise.all(Array.from(s).map(async h=>{var b;if(f.has(h))return;let g=await this.parseToken(h);if(g!=null){f.add(h);for(let $ of g){let v=$[3]||"";m.has(v)||m.set(v,[]),m.get(v).push($),(b=$[4])!=null&&b.layer&&u.add($[4].layer)}}})),o&&this.config.preflights.forEach(h=>{h.layer&&u.add(h.layer)});let p={},y=this.config.sortLayers(Array.from(u).sort((h,g)=>{var b,$;return((b=this.config.layers[h])!=null?b:0)-(($=this.config.layers[g])!=null?$:0)||h.localeCompare(g)})),R={};if(o){let h={generator:this,theme:this.config.theme};R=Object.fromEntries(await Promise.all(y.map(async g=>{let $=(await Promise.all(this.config.preflights.filter(v=>(v.layer||"default")===g).map(async v=>await v.getCSS(h)))).filter(Boolean).join(l);return[g,$]})))}let F=h=>{if(p[h])return p[h];let g=Array.from(m).sort((b,$)=>{var v,j,d;return((v=this.parentOrders.get(b[0]))!=null?v:0)-((j=this.parentOrders.get($[0]))!=null?j:0)||((d=b[0])==null?void 0:d.localeCompare($[0]||""))||0}).map(([b,$])=>{let v=$.length,j=$.filter(x=>{var S;return(((S=x[4])==null?void 0:S.layer)||"default")===h}).sort((x,S)=>{var L,D,V;return x[0]-S[0]||(((L=x[4])==null?void 0:L.sort)||0)-(((D=S[4])==null?void 0:D.sort)||0)||((V=x[1])==null?void 0:V.localeCompare(S[1]||""))||0}).map(x=>{var S;return[x[1]?Dn(x[1],n):x[1],x[2],!!((S=x[4])!=null&&S.noMerge)]}).map(x=>[x[0]==null?x[0]:[x[0]],x[1],x[2]]);if(!j.length)return;let d=j.reverse().map(([x,S,L],D)=>{if(!L&&x&&this.config.mergeSelectors)for(let V=D+1;V<v;V++){let K=j[V];if(K&&!K[2]&&K[0]&&K[1]===S)return K[0].push(...x),null}return x?`${[...new Set(x)].join(`,${l}`)}{${S}}`:S}).filter(Boolean).reverse().join(l);return b?`${b}{${l}${d}${l}}`:d}).filter(Boolean).join(l);return o&&(g=[R[h],g].filter(Boolean).join(l)),p[h]=!a&&g?`/* layer: ${h} */${l}${g}`:g},w=(h=y,g)=>h.filter(b=>!(g!=null&&g.includes(b))).map(b=>F(b)||"").filter(Boolean).join(l);return{get css(){return w()},layers:y,getLayers:w,getLayer:F,matched:f}}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},Wn(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=q(r);let{selector:o,entries:i,parent:a}=this.applyVariants([0,n||t.rawSelector,r,void 0,t.variantHandlers]),s=`${o}{${ce(i)}}`;return a?`${a}{${s}}`:s}async parseUtil(t,r,n=!1){var f,m;let[o,i,a]=typeof t=="string"?this.matchVariants(t):t,s=this.config.rulesStaticMap[i];if(s&&s[1]&&(n||!((f=s[2])!=null&&f.internal)))return[[s[0],o,q(s[1]),s[2],a]];r.variantHandlers=a;let{rulesDynamic:l,rulesSize:u}=this.config;for(let p=u;p>=0;p--){let y=l[p];if(!y||((m=y[2])==null?void 0:m.internal)&&!n)continue;let[R,F,w]=y,h=i.match(R);if(!h)continue;let g=await F(h,r);if(!g)continue;if(typeof g=="string")return[[p,g,w]];let b=Qe(g).filter($=>$.length);if(b.length)return b.map($=>[p,o,$,w,a])}}stringifyUtil(t){var p;if(!t)return;if(Re(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=ce(n);if(!s)return;let y=(p=t[3])!=null?p:{},{layer:l,sort:u}=y,f=qe(y,["layer","sort"]),m=T(k({},f),{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(tt(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=st(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 u;let i=new Te,a=(await Promise.all(le(n).map(async f=>{let m=await this.parseUtil(f,r,!0);return m||ct(`unmatched utility "${f}" in shortcut "${t[1]}"`),m||[]}))).flat(1).filter(Boolean).sort((f,m)=>f[0]-m[0]),[s,,l]=t;for(let f of a){if(Re(f))continue;let{selector:m,entries:p,parent:y,sort:R}=this.applyVariants(f,[...f[4],...l],s);i.getFallback(m,y,[[],f[0]])[0].push([p,!!((u=f[3])!=null&&u.noMerge),R!=null?R:0])}return i.map(([f,m],p,y)=>{let R=(w,h,g)=>{let b=Math.max(...g.map(v=>v[1])),$=g.map(v=>v[0]);return(w?[$.flat(1)]:$).map(v=>{let j=ce(v);if(j)return[m,p,j,y,T(k({},o),{noMerge:h,sort:b})]})};return[[f.filter(([,w])=>w).map(([w,,h])=>[w,h]),!0],[f.filter(([,w])=>!w).map(([w,,h])=>[w,h]),!1]].map(([w,h])=>[...R(!1,h,w.filter(([g])=>g.some(b=>b[0]===M))),...R(!0,h,w.filter(([g])=>g.every(b=>b[0]!==M)))])}).flat(2).filter(Boolean)}isBlocked(t){return!t||this.config.blocklist.some(r=>typeof r=="string"?r===t:r.test(t))}};function mt(e,t){return new pt(e,t)}var dt=/ \$\$ /,Ln=e=>e.match(dt);function Dn(e,t){return Ln(e)?e.replace(dt,t?` ${t} `:" "):t?`${t} ${e}`:e}var ft=/^\[(.+?)(~?=)"(.*)"\]$/;function Wn(e){return ft.test(e)?e.replace(ft,(t,r,n,o)=>`[${ae(r)}${n}"${ae(o)}"]`):`.${ae(e)}`}var Ve={};vn(Ve,{auto:()=>Bn,bracket:()=>Yn,bracketOfColor:()=>Jn,bracketOfLength:()=>Qn,cssvar:()=>eo,degree:()=>ro,fraction:()=>Xn,global:()=>no,number:()=>qn,numberWithUnit:()=>Kn,percent:()=>Zn,properties:()=>oo,px:()=>Gn,rem:()=>In,time:()=>to});var Nn=["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"],je=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,Hn=/^(-?[0-9.]+)$/i,ht=/^(px)$/i;function A(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function Kn(e){let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(n&&!Number.isNaN(o))return`${A(o)}${n}`}function Bn(e){if(e==="auto"||e==="a")return"auto"}function In(e){if(e.match(ht))return`1${e}`;let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o/4)}rem`}function Gn(e){if(e.match(ht))return`1${e}`;let t=e.match(je);if(!t)return;let[,r,n]=t,o=parseFloat(r);if(!Number.isNaN(o))return n?`${A(o)}${n}`:`${A(o)}px`}function qn(e){if(!Hn.test(e))return;let t=parseFloat(e);if(!Number.isNaN(t))return A(t)}function Zn(e){e.endsWith("%")&&(e=e.slice(0,-1));let t=parseFloat(e);if(!Number.isNaN(t))return`${A(t/100)}`}function Xn(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=parseFloat(t)/parseFloat(r);if(!Number.isNaN(n))return`${A(n*100)}%`}function Ae(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 Yn(e){return Ae(e)}function Jn(e){return Ae(e,"color")}function Qn(e){return Ae(e,"length")}function eo(e){if(e.match(/^\$\S/))return`var(--${Se(e.slice(1))})`}function to(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?`${A(o)}${n}`:`${A(o)}ms`}function ro(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?`${A(o)}${n}`:`${A(o)}deg`}function no(e){if(["inherit","initial","revert","unset"].includes(e))return e}function oo(e){for(let t of e.split(","))if(!Nn.includes(t))return;return e}var c=lt(Ve);var W=(e,t)=>{let r=new RegExp(`^${I(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),selector:t}},autocomplete:`${e}:`}},Y=(e,t)=>{let r=new RegExp(`^${I(e)}[:-]`);return{match:n=>{let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),parent:t}},autocomplete:`${e}:`}};var z=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])},ze=(e,t)=>{var r;return(r=e.colors)==null?void 0:r[t.join("-").replace(/(-[a-z])/g,n=>n.slice(1).toUpperCase())]},ue=(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 f="DEFAULT";if(!s){let m,[p]=i.slice(-1);p.match(/^\d+$/)?(f=p,m=ze(t,i.slice(0,-1))):(m=ze(t,i),!m&&i.length<=2&&([,f=f]=i,m=ze(t,[a]))),typeof m=="string"?s=m:f&&m&&(s=m[f])}return{opacity:o,name:a,no:f,color:s,cssColor:be(s),alpha:c.bracket.cssvar.percent(o!=null?o:"")}},C=(e,t)=>([,r],{theme:n})=>{var l;let o=ue(r,n);if(!o)return;let{alpha:i,color:a,cssColor:s}=o;if(s)return i!=null?{[e]:_(s,i)}:{[`--un-${t}-opacity`]:(l=s.alpha)!=null?l:1,[e]:_(s,`var(--un-${t}-opacity)`)};if(a)return{[e]:a.replace("%alpha",`${i!=null?i:1}`)}},fe=(e,t)=>{let r=[];e=E(e);for(let n=0;n<e.length;n++){let o=B(e[n]," ",6);if(!o||o.length<3)return e;let i=be(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${_(i)})`)}return r},gt=(e,t)=>{var r;return e!=null&&!!((r=ue(e,t))!=null&&r.color)};var xt=[[/^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-)?(.+)$/,C("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>{var r,n;return{"outline-offset":(n=(r=t.lineWidth)==null?void 0:r[e])!=null?n:c.bracket.cssvar.px(e)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,e])=>({"outline-style":e}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],bt=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],io=e=>{var t;return(t=c.properties.auto.global(e))!=null?t:{contents:"contents",scroll:"scroll-position"}[e]},yt=[[/^will-change-(.+)/,([,e])=>({"will-change":io(e)})]];var $t=[[/^(?:border|b)()(?:-(.+))?$/,J,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,J],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,J],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,J],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,J],[/^(?:border|b)-()(?:width|size)-(.+)$/,N,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,N],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,N],[/^(?:border|b)-()(?:color-)?(.+)$/,Q,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Q],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Q],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,ee,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,ee],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,ee],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,te,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,te],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,te],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,te],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,te],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],so=e=>([,t],r)=>{var s,l;let n=ue(t,r);if(!n)return;let{alpha:o,color:i,cssColor:a}=n;if(a)return o!=null?{[`border${e}-color`]:_(a,o)}:e===""?{"--un-border-opacity":(s=a.alpha)!=null?s:1,[`border${e}-color`]:_(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`]:_(a,`var(--un-border${e}-opacity)`)};if(i)return{[`border${e}-color`]:i.replace("%alpha",`${o!=null?o:1}`)}};function J(e,t){let r=N(e,t);if(r)return[...r,["border-style","solid"]]}function N([,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 Q([,e="",t],{theme:r}){if(e in P&>(t,r))return Object.assign({},...P[e].map(n=>so(n)(["",t],r)))}function ee([,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 te([,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 $e&&n!=null)return $e[e].map(i=>[`border${i}-radius`,n])}var wt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],vt=[[/^(?:text|color|c)-(.+)$/,C("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],St=[[/^bg-(.+)$/,C("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ct={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},kt=e=>{var t;return(t=c.properties(e))!=null?t:Ct[e]},Rt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{var o,i;let n=e!=null?kt(e):[Ct.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}}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?: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)}}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":c.global(e)||kt(e)})],["transition-none",{transition:"none"}]];var Tt=[["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 ao={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Et=[[/^font-(\w+)$/,([,e],{theme:t})=>{var r;return{"font-family":((r=t.fontFamily)==null?void 0:r[e])||c.global(e)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,e="base"],{theme:t})=>{var n;let r=E((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=E((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}}],[/^(?:font|fw)-?([^-]+)$/,([,e])=>({"font-weight":ao[e]||c.global.number(e)}),{autocomplete:"font-(100|200|300|400|500|600|700)"}],[/^(?: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"}],[/^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"}],[/^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"}]],jt=[[/^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}}]],At=[[/^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)}}]],Vt=[[/^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)}}],[/^text-stroke-(.+)$/,C("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent(e)})]],zt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.textShadow)==null?void 0:n[e||"DEFAULT"];return r!=null?{"--un-text-shadow":fe(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar(e)}}],[/^text-shadow-color-(.+)$/,C("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent(e)})]];var Pt={"":"",x:"column-",y:"row-"},Ot=([,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-${Pt[e]}gap`]:n,[`${Pt[e]}gap`]:n}},Mt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ot,{autocomplete:"gap-<num>"}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ot,{autocomplete:"gap-(x|y)-<num>"}]];var O=e=>e.replace("col","column"),Pe=e=>e[0]==="r"?"Row":"Column",co=(e,t,r)=>{var o;let n=(o=t[`gridAuto${Pe(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)},Ut=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-${O(e)}`]:(o=(n=r[`grid${Pe(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar.auto(t)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${O(e)}`]:"1/-1"};let r=c.bracket.number(t);if(r!=null)return{[`grid-${O(e)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>{var r;return{[`grid-${O(e)}-start`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>{var r;return{[`grid-${O(e)}-end`]:(r=c.bracket.cssvar(t))!=null?r:t}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${O(e)}`]:co(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":O(e).replace("-"," ")})],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>{var n,o;return{[`grid-template-${O(e)}`]:(o=(n=r[`gridTemplate${Pe(e)}`])==null?void 0:n[t])!=null?o:c.bracket.cssvar(t)}}],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${O(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${O(e)}`]:`repeat(${t},minmax(0,1fr))`})],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var Ft=["auto","hidden","clip","visible","scroll"],_t=[[/^(?:overflow|of)-(.+)$/,([,e])=>Ft.includes(e)?{overflow:e}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Ft.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Me=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e})],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Lt=[["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"}]],Dt=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Wt=[["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"}]],Nt=[["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 Oe(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 pe([,e,t],r){let n=Oe(t,r);if(n!=null&&e in ye)return ye[e].map(o=>[o.slice(1),n])}var Ht=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Oe(e,t)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,pe],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,pe],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,pe],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,pe],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:Oe(t,r)})]],Kt=[["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"}]],Bt=[[/^z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^z-(.+)$/,([,e])=>({"z-index":c.bracket.cssvar.auto.number(e)})]],It=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var me="var(--un-empty,/*!*/ /*!*/)",Gt=[["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})]],qt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],Zt=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar(e)||e})]],Xt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],Yt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],Jt=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],Qt=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,e])=>({"white-space":e})]],er=[[/^content-\[(.+)\]$/,([,e])=>({content:`"${e}"`})],["content-empty",{content:'""'}],["content-none",{content:'""'}]],tr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],rr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],nr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}]],or=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],ir=[["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 sr=[[/^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[{[M]:"","--un-ring-inset":me,"--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)"}]}],[/^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)}}],["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)}}],[/^ring-(.+)$/,C("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,C("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent(e)})],["ring-inset",{"--un-ring-inset":"inset"}]];var ar=[[/^shadow(?:-(.+))?$/,([,e],{theme:t})=>{var n;let r=(n=t.boxShadow)==null?void 0:n[e||"DEFAULT"];if(r)return[{[M]:"","--un-shadow-inset":me,"--un-shadow":"0 0 #0000"},{"--un-shadow":fe(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)"}]}],[/^shadow-(.+)$/,C("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent(e)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var lo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function re(e,t){return`${e||""}${lo[t]}`}function cr(e,t,r,n){var a;let o=re(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 lr=[[/^(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[re(e,t)]:cr(e,t,n,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[re(e,t)]:cr(e,t,n,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[re(e,t)]:(o=n.verticalBreakpoints)==null?void 0:o[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],{theme:n})=>{var o;return{[re(e,t)]:(o=n.breakpoints)==null?void 0:o[r]}}]];function uo(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 ur=[[/^aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":uo(e)})]];var fr=[[/^pa?()-?(-?.+)$/,z("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,z("padding")],[/^p-?([rltbse])-?(-?.+)$/,z("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,z("padding")],[/^p-?([bi][se])-?(-?.+)$/,z("padding")]],pr=[[/^ma?()-?(-?.+)$/,z("margin")],[/^m-?([xy])-?(-?.+)$/,z("margin")],[/^m-?([rltbse])-?(-?.+)$/,z("margin")],[/^m-(block|inline)-(-?.+)$/,z("margin")],[/^m-?([bi][se])-?(-?.+)$/,z("margin")]];var fo={"--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(" ")},gr={"--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(" ")},H=T(k({"--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},gr),{[M]:""}),xr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>{var t;return{"transform-origin":(t=ve[e])!=null?t:c.bracket.cssvar(e)}}],[/^(?: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?ve[e]:void 0;if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,mr],[/^(?:transform-)?translate-([xyz])-(.+)$/,mr],[/^(?:transform-)?rotate-()(.+)$/,hr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,hr],[/^(?:transform-)?skew-([xy])-(.+)$/,po],[/^(?:transform-)?scale-()(.+)$/,dr],[/^(?:transform-)?scale-([xyz])-(.+)$/,dr],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[H,{transform:"var(--un-transform)"}]],["transform-gpu",fo],["transform-cpu",gr],["transform-none",{transform:"none"}]];function mr([,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[H,[...we[e].map(a=>[`--un-translate${a}`,n]),["transform","var(--un-transform)"]]]}function dr([,e,t]){let r=c.bracket.cssvar.fraction.percent(t);if(r!=null)return[H,[...we[e].map(n=>[`--un-scale${n}`,r]),["transform","var(--un-transform)"]]]}function hr([,e="",t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return e?[H,{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:"var(--un-transform)"}]:[H,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function po([,e,t]){let r=c.bracket.cssvar.degree(t);if(r!=null)return[H,{[`--un-skew-${e}`]:r,transform:"var(--un-transform)"}]}var mo={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"},br=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=mo[e];if(r)return{[r]:c.cssvar(t)}}]],yr=[[/^\[([^:]+):(.+)\]$/,([,e,t])=>({[e]:c.bracket(`[${t}]`)})]];var $r=[[/^(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 wr=[[/^(?: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=C("text-decoration-color","line")(e,t);if(r)return k({"-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 vr=[[/^fill-(.+)$/,C("fill","fill")],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent(e)})],["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)}}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)})],[/^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)}}],[/^stroke-(.+)$/,C("stroke","stroke")],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent(e)})],["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 Sr=[br,yr,fr,pr,Gt,wt,St,vr,$t,er,Et,jt,At,rr,wr,Vt,zt,nr,Xe,vt,or,ir,ar,sr,Tt,Ut,Mt,Me,lr,ur,Zt,qt,Xt,Yt,Ze,Jt,Qt,tr,_t,xt,bt,Me,Dt,Lt,Wt,Nt,Ht,Kt,Bt,It,Rt,xr,yt,$r].flat(1);var Ue={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(Ue).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 kr={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(",")},Cr={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"]},Rr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Tr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Er={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)"]},jr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Fe={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Ar=Fe;var _e={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Vr=k({},_e),zr={DEFAULT:"1px",none:"0px"},Pr={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"},Or={DEFAULT:"150ms",none:"0ms"},Mr={DEFAULT:"0.25rem",none:"0rem",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Ur={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)"},Fr={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)"},_r={DEFAULT:"1px",none:"0px"};var Lr={DEFAULT:"8px","0":"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Dr={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 de={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Le=T(k({auto:"auto"},de),{screen:"100vw"}),ne=T(k({none:"none"},de),{screen:"100vw"}),De=T(k({auto:"auto"},de),{screen:"100vh"}),oe=T(k({none:"none"},de),{screen:"100vh"});var Wr={width:Le,height:De,maxWidth:ne,maxHeight:oe,minWidth:ne,minHeight:oe,inlineSize:Le,blockSize:De,maxInlineSize:ne,maxBlockSize:oe,minInlineSize:ne,minBlockSize:oe,colors:Ue,fontFamily:kr,fontSize:Cr,breakpoints:_e,verticalBreakpoints:Vr,borderRadius:Mr,lineHeight:jr,letterSpacing:Fe,wordSpacing:Ar,boxShadow:Ur,textIndent:Rr,textShadow:Er,textStrokeWidth:Tr,blur:Lr,dropShadow:Dr,easing:Fr,lineWidth:zr,spacing:Pr,duration:Or,ringWidth:_r};var We={},Nr=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}`},Hr={match(e,{theme:t}){let r=Object.entries(t.breakpoints||{}).map(([n,o],i)=>[n,o,i]);for(let[n,o,i]of r){We[n]||(We[n]=new RegExp(`^((?:[al]t-)?${n}[:-])`));let a=e.match(We[n]);if(!a)continue;let[,s]=a,l=e.slice(s.length);if(l==="container")continue;let u=s.startsWith("lt-"),f=s.startsWith("at-"),m=1e3;return u?(m-=i+1,{matcher:l,parent:[`@media (max-width: ${Nr(o)})`,m]}):(m+=i+1,f&&i<r.length-1?{matcher:l,parent:[`@media (min-width: ${o}) and (max-width: ${Nr(r[i+1][1])})`,m]}:{matcher:l,parent:[`@media (min-width: ${o})`,m]})}},autocomplete:"(at-|lt-|)$breakpoints:"};var U=(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:"*")}}}},Kr=[U(!1,"all","&&-s &&-c"),U(!1,"children","&&-s>&&-c"),U(!1,"next","&&-s+&&-c"),U(!1,"sibling","&&-s+&&-c"),U(!1,"siblings","&&-s~&&-c"),U(!0,"group","&&-c &&-s"),U(!0,"parent","&&-c>&&-s"),U(!0,"previous","&&-c+&&-s"),U(!0,"peer","&&-c~&&-s")];var Br=Y("print","@media print"),Ir=(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 Gr=(e={})=>(e==null?void 0:e.dark)==="class"?[W("dark",t=>`.dark $$ ${t}`),W("light",t=>`.light $$ ${t}`)]:[Y("dark","@media (prefers-color-scheme: dark)"),Y("light","@media (prefers-color-scheme: light)")];var qr=[W("rtl",e=>`[dir="rtl"] $$ ${e}`),W("ltr",e=>`[dir="ltr"] $$ ${e}`)];var Zr={match(e){let t=e.match(/^selector-\[(.+?)\][:-]/);if(t)return{matcher:e.slice(t[0].length),selector:()=>t[1]}}},Xr={match(e){let t=e.match(/^layer-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),layer:t[1]}}},Yr={match(e){let t=e.match(/^scope-([_\d\w]+)[:-]/);if(t)return{matcher:e.slice(t[0].length),selector:r=>`.${t[1]} $$ ${r}`}}},Jr={match(e){if(e.startsWith("!"))return{matcher:e.slice(1),body:t=>(t.forEach(r=>{r[1]&&(r[1]+=" !important")}),t)}}},Qr={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 ge=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(E)),en=Object.fromEntries(["placeholder","before","after","first-letter","first-line","selection","marker",["file","::file-selector-button"]].map(E)),ho=["not","is","where","has"],tn=Object.keys(en).join("|"),ie=Object.keys(ge).join("|"),Ne=ho.join("|"),go=/(part-\[(.+)]:)(.+)/,xo=new RegExp(`^(${tn})[:-]`),bo=new RegExp(`^(${ie})[:-]`),yo=new RegExp(`^(${Ne})-(${ie})[:-]`),rn=e=>{if(e==="active")return 1},he=(e,t,r)=>{let n=new RegExp(`^${e}-((?:(${Ne})-)?(${ie}))[:-]`),o=new RegExp(`^${I(t)}:`);return i=>{let a=i.match(n);if(a){let s=ge[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:rn(a[3])}}}},nn={match:e=>{let t=e.match(xo);if(t){let r=en[t[1]]||`::${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`}}},autocomplete:`(${tn}):`},on={match:e=>{let t=e.match(bo);if(t){let r=ge[t[1]]||`:${t[1]}`;return{matcher:e.slice(t[0].length),selector:n=>`${n}${r}`,sort:rn(t[1])}}},multiPass:!0,autocomplete:`(${ie}):`},sn={match:e=>{let t=e.match(yo);if(t){let r=t[1],n=ge[t[2]]||`:${t[2]}`;return{matcher:e.slice(t[0].length),selector:o=>`${o}:${r}(${n})`}}},multiPass:!0,autocomplete:`(${Ne})-(${ie}):`},an=(e={})=>{let t=!!(e!=null&&e.attributifyPseudo);return[{match:he("group",t?'[group=""]':".group"," "),multiPass:!0},{match:he("peer",t?'[peer=""]':".peer","~"),multiPass:!0},{match:he("parent",t?'[parent=""]':".parent",">"),multiPass:!0},{match:he("previous",t?'[previous=""]':".previous","+"),multiPass:!0}]},cn={match:e=>{let t=e.match(go);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var ln=e=>[Zr,Xr,Qr,Jr,Br,Ir,Hr,...Kr,on,sn,...an(e),nn,cn,...Gr(e),...qr,Yr];var un=[];var $o=(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:Wr,rules:Sr,variants:ln(e),options:e,autocomplete:un,postprocess:e.variablePrefix&&e.variablePrefix!=="un-"?wo(e.variablePrefix):void 0}},fn=$o;function wo(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 vo=["v-bind:",":"],pn=/[\s'"`;]+/g,So=/<\w[\w:\.$-]*\s((?:'[\s\S]*?'|"[\s\S]*?"|`[\s\S]*?`|\{[\s\S]*?\}|[\s\S]*?)*?)>/g,ko=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=(["'])([^\2]*?)\2)?/g,mn=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(So)).flatMap(s=>Array.from((s[1]||"").matchAll(ko))).flatMap(([,s,l,u])=>{if(t.includes(s))return[];for(let f of vo)if(s.startsWith(f)){s=s.slice(f.length);break}return u?["class","className"].includes(s)?u.split(pn).filter(Z):u.split(pn).filter(Boolean).map(f=>`[${s}~="${f}"]`):Z(s)&&r!==!1?[`[${s}=""]`]:[]});return new Set(a)}}};var Co=/^(?!\[(?:[^:]+):(?:.+)\]$)(.+:!?)?(.*)$/,dn=(e={})=>{var n,o;let t=(n=e.prefix)!=null?n:"un-",r=(o=e.prefixedOnly)!=null?o:!1;return i=>{let a=rt(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="",f=l]=l.match(Co)||[];return f==="~"||!f?`${u}${s}`:`${u}${s}-${f}`}};var Ro=(e={})=>{var n,o,i,a,s;e.strict=(n=e.strict)!=null?n:!1,e.prefix=(o=e.prefix)!=null?o:"un-",e.prefixedOnly=(i=e.prefixedOnly)!=null?i:!1,e.nonValuedAttribute=(a=e.nonValuedAttribute)!=null?a:!0,e.ignoreAttributes=(s=e.ignoreAttributes)!=null?s:[];let t=[dn(e)],r=[mn(e)];return e.strict||r.unshift(X),{name:"@unocss/preset-attributify",variants:t,extractors:r,options:e}},hn=Ro;var To=e=>e.replace(/-(\w)/g,(t,r)=>r?r.toUpperCase():""),gn=e=>e.charAt(0).toUpperCase()+e.slice(1),xn=e=>e.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase(),bn=["Webkit","Moz","ms"];function yn(e){let t={};function r(n){let o=t[n];if(o)return o;let i=To(n);if(i!=="filter"&&i in e)return t[n]=xn(i);i=gn(i);for(let a=0;a<bn.length;a++){let s=`${bn[a]}${i}`;if(s in e)return t[n]=xn(gn(s))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function He(e={}){var v,j;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 d=n.postprocess;d||(d=[]),Array.isArray(d)||(d=[d]),d.unshift(yn(document.createElement("div").style)),n.postprocess=d}(v=r==null?void 0:r.configResolved)==null||v.call(r,t,n);let o,i=!0,a,s=mt(t,n),l=new Set,u,f=[],m=()=>new Promise(d=>{f.push(d),u!=null&&clearTimeout(u),u=setTimeout(()=>p().then(()=>{let x=f;f=[],x.forEach(S=>S())}),0)});async function p(){let d=await s.generate(l);o||(o=document.createElement("style"),document.documentElement.prepend(o)),o.innerHTML=d.css,l=d.matched}async function y(d){let x=l.size;await s.applyExtractors(d,void 0,l),x!==l.size&&await m()}async function R(){let d=document.body&&document.body.outerHTML;d&&await y(d)}let F=new MutationObserver(d=>{i||d.forEach(x=>{let S=x.target;if(S===o||a&&!a(S))return;let L=Array.from(S.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),D=`<${S.tagName.toLowerCase()} ${L}>`;y(D)})}),w=!1;function h(){if(!w)return;let d=document.documentElement||document.body;!d||(F.observe(d,{childList:!0,subtree:!0,attributes:!0}),w=!0)}function g(){R(),h()}function b(){g(),window.addEventListener("load",g),window.addEventListener("DOMContentLoaded",g)}let $=window.__unocss_runtime=window.__unocss_runtime={version:s.version,uno:s,async extract(d){typeof d!="string"&&(d.forEach(x=>l.add(x)),d=""),await y(d)},extractAll:R,inspect(d){a=d},toggleObserver(d){d===void 0?i=!i:i=!!d,!w&&!i&&b()}};((j=r==null?void 0:r.ready)==null?void 0:j.call(r,$))!==!1&&(i=!1,b())}He({defaults:{presets:[fn(),hn()]}});})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.4",
|
|
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.29.
|
|
38
|
-
"@unocss/preset-attributify": "0.29.
|
|
39
|
-
"@unocss/preset-uno": "0.29.
|
|
37
|
+
"@unocss/core": "0.29.4",
|
|
38
|
+
"@unocss/preset-attributify": "0.29.4",
|
|
39
|
+
"@unocss/preset-uno": "0.29.4"
|
|
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 ne=Object.defineProperty,gn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(ut)for(var r of ut(e))ie.call(e,r)&&oe(t,r,e[r]);return t},z=(t,e)=>gn(t,bn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&ut)for(var o of ut(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var hn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var kt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=xn(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)&&!(kt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(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}`,kt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function xn(t){if(!t)return;let e=yn(t);if(e!=null||(e=vn(t),e!=null)||(e=$n(t),e!=null)||(e=wn(t),e!=null)||(e=Sn(t),e!=null))return e}function yn(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 vn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function $n(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(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 kn=new RegExp(`^(${kt.join("|")})\\((.+)\\)$`,"i");function wn(t){let e=t.match(kn);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Sn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(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=Q(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 Cn(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 Q(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=Cn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=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"]},wt=z(S({},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"]}),St={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"]},Ct={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],F=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rt(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 dt=Rt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Rn(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 mt(t){return t==null?"":Rn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function zt(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=S({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=zt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function ue(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function gt(t){return Array.from(new Set(t))}var Tn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function de(t=""){return Tn.test(t)}function me(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function ge(t){return t!=null}var jt=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 be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(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 c=t[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(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(de),Vt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function En(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ot(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(jn,...o.map(f=>f.layers),t.layers);function s(f){return gt([...n.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let c=s("extractors");c.length||c.push(Vt),c.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},u=l.length;l.forEach((f,x)=>{fe(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let d=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>zt(f,x),{}));return s("extendTheme").forEach(f=>f(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(me),shortcuts:En(s("shortcuts")),extractors:c})}var $e="0.29.3";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ot(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ot(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(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[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(u=>this.stringifyUtil(u)).filter(ge);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>c.add(g));let l=s?"":`
|
|
1
|
+
(()=>{var ne=Object.defineProperty,gn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var ut=Object.getOwnPropertySymbols;var ae=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var oe=(t,e,r)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))ae.call(e,r)&&oe(t,r,e[r]);if(ut)for(var r of ut(e))ie.call(e,r)&&oe(t,r,e[r]);return t},z=(t,e)=>gn(t,bn(e));var se=(t,e)=>{var r={};for(var o in t)ae.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&ut)for(var o of ut(t))e.indexOf(o)<0&&ie.call(t,o)&&(r[o]=t[o]);return r};var hn=(t,e)=>{for(var r in e)ne(t,r,{get:e[r],enumerable:!0})};var kt=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];function X(t=""){let e=xn(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)&&!(kt.includes(a)&&![1,3].includes(o.length)))return{type:a,components:o,alpha:n}}function M(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}`,kt.includes(n)?`${n}(${r.join(" ")}${o})`:`color(${n} ${r.join(" ")}${o})`)}function xn(t){if(!t)return;let e=yn(t);if(e!=null||(e=vn(t),e!=null)||(e=$n(t),e!=null)||(e=wn(t),e!=null)||(e=Sn(t),e!=null))return e}function yn(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 vn(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function $n(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,o]=e,n=Q(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 kn=new RegExp(`^(${kt.join("|")})\\((.+)\\)$`,"i");function wn(t){let e=t.match(kn);if(!e)return;let[,r,o]=e,n=ce(`${r} ${o}`);if(n){let{alpha:a,components:[s,...c]}=n;return{type:s,components:c,alpha:a}}}function Sn(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=ce(e[1]);if(r){let{alpha:o,components:[n,...a]}=r;return{type:n,components:a,alpha:o}}}function ce(t){let e=Q(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=Q(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 Cn(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 Q(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=Cn(t,e);if(!a)return;let[s,c]=a;o.push(s),t=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"]},wt=z(S({},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"]}),St={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"]},Ct={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},le=["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"],F=Object.assign({},...le.map(t=>({[t.replace(/ /,"-")]:t})),...le.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t})));function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rt(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 dt=Rt;function rt(t){return(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function pe(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>rt(e)):[t]:[rt(t)]}function Rn(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 mt(t){return t==null?"":Rn(t).map(([e,r])=>r!=null?`${e}:${r};`:void 0).filter(Boolean).join("")}function Tt(t){return t&&typeof t=="object"&&!Array.isArray(t)}function zt(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=S({},r);return Tt(r)&&Tt(o)&&Object.keys(o).forEach(a=>{Tt(o[a])?a in r?n[a]=zt(r[a],o[a]):Object.assign(n,{[a]:o[a]}):Object.assign(n,{[a]:o[a]})}),n}function et(t){let e,r,o;if(Array.isArray(t)){for(r=Array(e=t.length);e--;)r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:et(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(o=t[e])&&typeof o=="object"?et(o):o;return r}return t}function fe(t){return typeof t[0]=="string"}function ue(t){return typeof t[0]=="string"}function V(t=[]){return Array.isArray(t)?t:[t]}function gt(t){return Array.from(new Set(t))}var Tn=/(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-?]/,E="$$shortcut-no-merge";function de(t=""){return Tn.test(t)}function me(t){return typeof t=="function"?{match:t}:t}function Et(t){return t.length===3}function ge(t){return t!=null}var jt=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 be=/([!\w+:_/-]+?)([:-])\(((?:[!\w\s:/\\,%#.$-]|\[.*?\])*?)\)/gm;function he(t){return be.lastIndex=0,t.replace(be,(e,r,o,n)=>n.split(/\s/g).map(a=>a.replace(/^(!?)(.*)/,`$1${r}${o}$2`)).join(" "))}var xe=new Set;function ye(t){xe.has(t)||(console.warn("[unocss]",t),xe.add(t))}function ve(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 c=t[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(t))Object.defineProperty(e,o,{enumerable:!0,get(){return r(this,o)}});return e}var zn=t=>t.split(/[\s'"`;>=]+/g).filter(de),Vt={name:"split",order:0,extract({code:t}){return new Set(zn(t))}};function En(t){return V(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var jn={shortcuts:-1,default:0};function Ot(t={},e={}){let r=Object.assign({},e,t),o=(r.presets||[]).flatMap(V),n=[...o.filter(f=>f.enforce==="pre"),...o.filter(f=>!f.enforce),...o.filter(f=>f.enforce==="post")],a=Object.assign(jn,...o.map(f=>f.layers),t.layers);function s(f){return gt([...n.flatMap(x=>V(x[f]||[])),...V(r[f]||[])])}let c=s("extractors");c.length||c.push(Vt),c.sort((f,x)=>(f.order||0)-(x.order||0));let l=s("rules"),p={},u=l.length;l.forEach((f,x)=>{fe(f)&&(p[f[0]]=[x,f[1],f[2]],delete l[x])});let d=et([...n.map(f=>f.theme||{}),r.theme||{}].reduce((f,x)=>zt(f,x),{}));return s("extendTheme").forEach(f=>f(d)),z(S({mergeSelectors:!0,warn:!0,blocklist:[],safelist:[],sortLayers:f=>f},r),{presets:n,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:a,theme:d,rulesSize:u,rulesDynamic:l,rulesStaticMap:p,preprocess:s("preprocess"),postprocess:s("postprocess"),preflights:s("preflights"),autocomplete:s("autocomplete"),variants:s("variants").map(me),shortcuts:En(s("shortcuts")),extractors:c})}var $e="0.29.4";var we=class{constructor(e={},r={}){this.userConfig=e;this.defaults=r;this.config=Ot(e,r)}version=$e;_cache=new Map;config;blocked=new Set;parentOrders=new Map;setConfig(e,r){!e||(r&&(this.defaults=r),this.userConfig=e,this.config=Ot(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(c=>o.add(c))}return o}makeContext(e,r){let o={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,variantHandlers:r[2],constructCSS:(...n)=>this.constructCustomCSS(o,...n),variantMatch:r};return o}async parseToken(e,r){var l;if(this.blocked.has(e))return;let o=`${e}${r?` ${r}`:""}`;if(this._cache.has(o))return this._cache.get(o);let n=e;for(let p of this.config.preprocess)n=p(e);if(this.isBlocked(n)){this.blocked.add(e),this._cache.set(o,null);return}let a=this.matchVariants(e,n);if(!a||this.isBlocked(a[1])){this.blocked.add(e),this._cache.set(o,null);return}let s=this.makeContext(e,[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(u=>this.stringifyUtil(u)).filter(ge);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 c=typeof e=="string"?await this.applyExtractors(e,r):e;a&&this.config.safelist.forEach(g=>c.add(g));let l=s?"":`
|
|
2
2
|
`,p=new Set(["default"]),u=new Set,d=new Map;await Promise.all(Array.from(c).map(async g=>{var v;if(u.has(g))return;let b=await this.parseToken(g);if(b!=null){u.add(g);for(let w of b){let R=w[3]||"";d.has(R)||d.set(R,[]),d.get(R).push(w),(v=w[4])!=null&&v.layer&&p.add(w[4].layer)}}})),n&&this.config.preflights.forEach(g=>{g.layer&&p.add(g.layer)});let f={},x=this.config.sortLayers(Array.from(p).sort((g,b)=>{var v,w;return((v=this.config.layers[g])!=null?v:0)-((w=this.config.layers[b])!=null?w:0)||g.localeCompare(b)})),j={};if(n){let g={generator:this,theme:this.config.theme};j=Object.fromEntries(await Promise.all(x.map(async b=>{let w=(await Promise.all(this.config.preflights.filter(R=>(R.layer||"default")===b).map(async R=>await R.getCSS(g)))).filter(Boolean).join(l);return[b,w]})))}let L=g=>{if(f[g])return f[g];let b=Array.from(d).sort((v,w)=>{var R,U,m;return((R=this.parentOrders.get(v[0]))!=null?R:0)-((U=this.parentOrders.get(w[0]))!=null?U:0)||((m=v[0])==null?void 0:m.localeCompare(w[0]||""))||0}).map(([v,w])=>{let R=w.length,U=w.filter(y=>{var T;return(((T=y[4])==null?void 0:T.layer)||"default")===g}).sort((y,T)=>{var K,G,_;return y[0]-T[0]||(((K=y[4])==null?void 0:K.sort)||0)-(((G=T[4])==null?void 0:G.sort)||0)||((_=y[1])==null?void 0:_.localeCompare(T[1]||""))||0}).map(y=>{var T;return[y[1]?Mn(y[1],o):y[1],y[2],!!((T=y[4])!=null&&T.noMerge)]}).map(y=>[y[0]==null?y[0]:[y[0]],y[1],y[2]]);if(!U.length)return;let m=U.reverse().map(([y,T,K],G)=>{if(!K&&y&&this.config.mergeSelectors)for(let _=G+1;_<R;_++){let J=U[_];if(J&&!J[2]&&J[0]&&J[1]===T)return J[0].push(...y),null}return y?`${[...new Set(y)].join(`,${l}`)}{${T}}`:T}).filter(Boolean).reverse().join(l);return v?`${v}{${l}${m}${l}}`:m}).filter(Boolean).join(l);return n&&(b=[j[g],b].filter(Boolean).join(l)),f[g]=!s&&b?`/* layer: ${g} */${l}${b}`:b},k=(g=x,b)=>g.filter(v=>!(b!=null&&b.includes(v))).map(v=>L(v)||"").filter(Boolean).join(l);return{get css(){return k()},layers:x,getLayers:k,getLayer:L,matched:u}}matchVariants(e,r){let o=new Set,n=[],a=r||e,s=!1,c={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,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 "${e}"`)}return[e,a,n,o]}applyVariants(e,r=e[4],o=e[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},e[2]),s={selector:n.reduce((c,l)=>{var p;return((p=l.selector)==null?void 0:p.call(l,c,a))||c},Pn(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(e,r,o){r=rt(r);let{selector:n,entries:a,parent:s}=this.applyVariants([0,o||e.rawSelector,r,void 0,e.variantHandlers]),c=`${n}{${mt(a)}}`;return s?`${s}{${c}}`:c}async parseUtil(e,r,o=!1){var u,d;let[n,a,s]=typeof e=="string"?this.matchVariants(e):e,c=this.config.rulesStaticMap[a];if(c&&c[1]&&(o||!((u=c[2])!=null&&u.internal)))return[[c[0],n,rt(c[1]),c[2],s]];r.variantHandlers=s;let{rulesDynamic:l,rulesSize:p}=this.config;for(let f=p;f>=0;f--){let x=l[f];if(!x||((d=x[2])==null?void 0:d.internal)&&!o)continue;let[j,L,k]=x,g=a.match(j);if(!g)continue;let b=await L(g,r);if(!b)continue;if(typeof b=="string")return[[f,b,k]];let v=pe(b).filter(w=>w.length);if(v.length)return v.map(w=>[f,n,w,k,s])}}stringifyUtil(e){var f;if(!e)return;if(Et(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),c=mt(o);if(!c)return;let x=(f=e[3])!=null?f:{},{layer:l,sort:p}=x,u=se(x,["layer","sort"]),d=z(S({},u),{layer:a!=null?a:l,sort:s!=null?s:p});return[e[0],r,c,n,d]}expandShortcut(e,r,o=3){if(o===0)return;let n,a;for(let s of this.config.shortcuts)if(ue(s)){if(s[0]===e){n=n||s[2],a=s[1];break}}else{let c=e.match(s[0]);if(c&&(a=s[1](c,r)),a){n=n||s[2];break}}if(typeof a=="string"&&(a=he(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(e,r,o,n={layer:this.config.shortcutsLayer}){var p;let a=new jt,s=(await Promise.all(gt(o).map(async u=>{let d=await this.parseUtil(u,r,!0);return d||ye(`unmatched utility "${u}" in shortcut "${e[1]}"`),d||[]}))).flat(1).filter(Boolean).sort((u,d)=>u[0]-d[0]),[c,,l]=e;for(let u of s){if(Et(u))continue;let{selector:d,entries:f,parent:x,sort:j}=this.applyVariants(u,[...u[4],...l],c);a.getFallback(d,x,[[],u[0]])[0].push([f,!!((p=u[3])!=null&&p.noMerge),j!=null?j:0])}return a.map(([u,d],f,x)=>{let j=(k,g,b)=>{let v=Math.max(...b.map(R=>R[1])),w=b.map(R=>R[0]);return(k?[w.flat(1)]:w).map(R=>{let U=mt(R);if(U)return[d,f,U,x,z(S({},n),{noMerge:g,sort:v})]})};return[[u.filter(([,k])=>k).map(([k,,g])=>[k,g]),!0],[u.filter(([,k])=>!k).map(([k,,g])=>[k,g]),!1]].map(([k,g])=>[...j(!1,g,k.filter(([b])=>b.some(v=>v[0]===E))),...j(!0,g,k.filter(([b])=>b.every(v=>v[0]!==E)))])}).flat(2).filter(Boolean)}isBlocked(e){return!e||this.config.blocklist.some(r=>typeof r=="string"?r===e:r.test(e))}};function Se(t,e){return new we(t,e)}var Ce=/ \$\$ /,On=t=>t.match(Ce);function Mn(t,e){return On(t)?t.replace(Ce,e?` ${e} `:" "):e?`${e} ${t}`:t}var ke=/^\[(.+?)(~?=)"(.*)"\]$/;function Pn(t){return ke.test(t)?t.replace(ke,(e,r,o,n)=>`[${dt(r)}${o}"${dt(n)}"]`):`.${dt(t)}`}var Ut={};hn(Ut,{auto:()=>Fn,bracket:()=>Bn,bracketOfColor:()=>Kn,bracketOfLength:()=>Gn,cssvar:()=>Xn,degree:()=>In,fraction:()=>Hn,global:()=>qn,number:()=>Nn,numberWithUnit:()=>_n,percent:()=>Wn,properties:()=>Zn,px:()=>Ln,rem:()=>Dn,time:()=>Yn});var Un=["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"],Mt=/^(-?[0-9.]+)(px|pt|pc|rem|em|%|vh|vw|in|cm|mm|ex|ch|vmin|vmax|rpx)?$/i,An=/^(-?[0-9.]+)$/i,Re=/^(px)$/i;function A(t){return t.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function _n(t){let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(o&&!Number.isNaN(n))return`${A(n)}${o}`}function Fn(t){if(t==="auto"||t==="a")return"auto"}function Dn(t){if(t.match(Re))return`1${t}`;let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${A(n)}${o}`:`${A(n/4)}rem`}function Ln(t){if(t.match(Re))return`1${t}`;let e=t.match(Mt);if(!e)return;let[,r,o]=e,n=parseFloat(r);if(!Number.isNaN(n))return o?`${A(n)}${o}`:`${A(n)}px`}function Nn(t){if(!An.test(t))return;let e=parseFloat(t);if(!Number.isNaN(e))return A(e)}function Wn(t){t.endsWith("%")&&(t=t.slice(0,-1));let e=parseFloat(t);if(!Number.isNaN(e))return`${A(e/100)}`}function Hn(t){if(t==="full")return"100%";let[e,r]=t.split("/"),o=parseFloat(e)/parseFloat(r);if(!Number.isNaN(o))return`${A(o*100)}%`}function Pt(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 Bn(t){return Pt(t)}function Kn(t){return Pt(t,"color")}function Gn(t){return Pt(t,"length")}function Xn(t){if(t.match(/^\$\S/))return`var(--${Rt(t.slice(1))})`}function Yn(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?`${A(n)}${o}`:`${A(n)}ms`}function In(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?`${A(n)}${o}`:`${A(n)}deg`}function qn(t){if(["inherit","initial","revert","unset"].includes(t))return t}function Zn(t){for(let e of t.split(","))if(!Un.includes(e))return;return t}var i=ve(Ut);var D=(t,e)=>{let r=new RegExp(`^${tt(t)}[:-]`);return{match:o=>{let n=o.match(r);if(n)return{matcher:o.slice(n[0].length),selector:e}},autocomplete:`${t}:`}},P=(t,e)=>{let r=new RegExp(`^${tt(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,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=>[`${t}${l}`,a])},At=(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 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 u="DEFAULT";if(!c){let d,[f]=a.slice(-1);f.match(/^\d+$/)?(u=f,d=At(e,a.slice(0,-1))):(d=At(e,a),!d&&a.length<=2&&([,u=u]=a,d=At(e,[s]))),typeof d=="string"?c=d:u&&d&&(c=d[u])}return{opacity:n,name:s,no:u,color:c,cssColor:X(c),alpha:i.bracket.cssvar.percent(n!=null?n:"")}},$=(t,e)=>([,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?{[t]:M(c,a)}:{[`--un-${e}-opacity`]:(l=c.alpha)!=null?l:1,[t]:M(c,`var(--un-${e}-opacity)`)};if(s)return{[t]:s.replace("%alpha",`${a!=null?a:1}`)}},I=(t,e)=>{let r=[];t=V(t);for(let o=0;o<t.length;o++){let n=Q(t[o]," ",6);if(!n||n.length<3)return t;let a=X(n.pop());if(a==null)return t;r.push(`${n.join(" ")} var(${e}, ${M(a)})`)}return r},bt=(t,e)=>{var r;return t!=null&&!!((r=Y(t,e))!=null&&r.color)};var Te=[[/^(?: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}`})}`}],[/^animate-(.+)$/,([,t],{theme:e,constructCSS:r})=>{var n,a,s,c,l,p,u,d,f,x;let o=(a=(n=e.animation)==null?void 0:n.keyframes)==null?void 0:a[t];if(o){let j=(l=(c=(s=e.animation)==null?void 0:s.durations)==null?void 0:c[t])!=null?l:"1s",L=(d=(u=(p=e.animation)==null?void 0:p.timingFns)==null?void 0:u[t])!=null?d:"linear",k=(x=(f=e.animation)==null?void 0:f.properties)==null?void 0:x[t];return`@keyframes ${t}${o}
|
|
4
4
|
${r(Object.assign({animation:`${t} ${j} ${L} infinite`},k))}`}return{animation:i.bracket.cssvar(t)}}],[/^animate-name-(.+)/,([,t])=>{var e;return{"animation-name":(e=i.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:i.bracket.cssvar.time(t)}}],[/^animate-delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"animation-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^animate-ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"animation-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}}],[/^animate-(?:fill-|mode-|fill-mode-)?(none|forwards|backwards|both|inherit|initial|revert|unset)$/,([,t])=>({"animation-fill-mode":t})],[/^animate-(?:direction-)?(normal|reverse|alternate|alternate-reverse|inherit|initial|revert|unset)$/,([,t])=>({"animation-direction":t})],[/^animate-(?:iteration-|count-|iteration-count-)(.+)$/,([,t])=>{var e;return{"animation-iteration-count":(e=i.bracket.cssvar(t))!=null?e:t.replace(/\-/g,",")}}],[/^animate-(?:play-|state-|play-state-)?(paused|running|inherit|initial|revert|unset)$/,([,t])=>({"animation-play-state":t})],["animate-none",{animation:"none"}]];var _t=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 c=a;switch(s&&(n!=null?c=M(s,n):c=M(s,`var(--un-${t}-opacity, ${(l=s.alpha)!=null?l:1})`)),t){case"from":return{"--un-gradient-from":c,"--un-gradient-stops":"var(--un-gradient-from), var(--un-gradient-to, rgba(255, 255, 255, 0))"};case"via":return{"--un-gradient-stops":`var(--un-gradient-from), ${c}, var(--un-gradient-to, rgba(255, 255, 255, 0))`};case"to":return{"--un-gradient-to":c}}},ze=[[/^bg-gradient-(.+)$/,([,t])=>({"--un-gradient":i.bracket(t)})],[/^(?:bg-gradient-)?stops-(\[.+\])$/,([,t])=>({"--un-gradient-stops":i.bracket(t)})],[/^(?:bg-gradient-)?from-(.+)$/,_t("from")],[/^(?:bg-gradient-)?to-(.+)$/,_t("to")],[/^(?:bg-gradient-)?via-(.+)$/,_t("via")],[/^(?:bg-gradient-)?from-op(?:acity)?-?(.+)$/,([,t])=>({"--un-from-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?to-op(?:acity)?-?(.+)$/,([,t])=>({"--un-to-opacity":i.bracket.percent(t)})],[/^(?:bg-gradient-)?via-op(?:acity)?-?(.+)$/,([,t])=>({"--un-via-opacity":i.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))))`})],[/^bg-gradient-to-([rltb]{1,2})$/,([,t])=>{if(t in F)return{"--un-gradient-shape":`to ${F[t]}`,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)","background-image":"linear-gradient(var(--un-gradient))"}}],[/^(?:bg-gradient-)?shape-(.+)$/,([,t])=>{let e=t in F?`to ${F[t]}`:i.bracket(t);if(e!=null)return{"--un-gradient-shape":e,"--un-gradient":"var(--un-gradient-shape), var(--un-gradient-stops)"}}],["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":F[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 Ee=[[/^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}],["list-outside",{"list-style-position":"outside"}],["list-inside",{"list-style-position":"inside"}],["list-none",{"list-style-type":"none"}]],je=[[/^accent-(.+)$/,$("accent-color","accent")],[/^accent-op(?:acity)?-?(.+)$/,([,t])=>({"--un-accent-opacity":i.bracket.percent(t)})]],Ve=[[/^caret-(.+)$/,$("caret-color","caret")],[/^caret-op(?:acity)?-?(.+)$/,([,t])=>({"--un-caret-opacity":i.bracket.percent(t)})]],Oe=[["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"]]]],Me=[["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"}]],Pe=[["scroll-auto",{"scroll-behavior":"auto"}],["scroll-smooth",{"scroll-behavior":"smooth"}]];var Ue=[[/^columns-(.+)$/,([,t])=>({columns:i.bracket.global.number.auto.numberWithUnit(t)})],["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 Jn=/@media \(min-width: (.+)\)/,Ae=[[/^__container$/,(t,{variantHandlers:e})=>{var o;let r="100%";for(let n of e){let a=V(n.parent||[])[0];if(typeof a=="string"){let s=(o=a.match(Jn))==null?void 0:o[1];s&&(r=s)}}return{"max-width":r}},{internal:!0}]],_e=[[/^(?:(\w+)[:-])?container$/,([,t],{theme:e})=>{let r=Object.keys(e.breakpoints||{});if(t){if(!r.includes(t))return;r=r.slice(r.indexOf(t))}let o=r.map(n=>`${n}:__container`);return t||o.unshift("__container"),o}]];var Qn={mid:"middle",base:"baseline",btm:"bottom"},Fe=[[/^(?:vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)$/,([,t])=>({"vertical-align":Qn[t]||t}),{autocomplete:"(vertical|align|v)-(baseline|top|middle|bottom|text-top|text-bottom|sub|super|mid|base|btm)"}]],De=[["text-center",{"text-align":"center"}],["text-left",{"text-align":"left"}],["text-right",{"text-align":"right"}],["text-justify",{"text-align":"justify"}]];var Le=[[/^outline-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>{var r,o;return{"outline-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,$("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:i.bracket.cssvar.px(t)}},{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],[/^outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)$/,([,t])=>({"outline-style":t}),{autocomplete:"outline-(auto|dashed|dotted|double|hidden|solid|groove|ridge|inset|outset|inherit|initial|revert|unset)"}],["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],Ne=[["appearance-none",{appearance:"none","-webkit-appearance":"none"}]],ta=t=>{var e;return(e=i.properties.auto.global(t))!=null?e:{contents:"contents",scroll:"scroll-position"}[t]},We=[[/^will-change-(.+)/,([,t])=>({"will-change":ta(t)})]];var He=[[/^(?:border|b)()(?:-(.+))?$/,ot,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,ot],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,ot],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,ot],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,ot],[/^(?:border|b)-()(?:width|size)-(.+)$/,q,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,q],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,q],[/^(?:border|b)-()(?:color-)?(.+)$/,nt,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,nt],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,nt],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,nt],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,nt],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,at,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,at],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,at],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,it,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltb])(?:-(.+))?$/,it],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,it],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se])(?:-(.+))?$/,it],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,it],["border-solid",{"border-style":"solid"}],["border-dashed",{"border-style":"dashed"}],["border-dotted",{"border-style":"dotted"}],["border-double",{"border-style":"double"}],["border-hidden",{"border-style":"hidden"}],["border-none",{"border-style":"none"}]],ea=t=>([,e],r)=>{var c,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`]:M(s,n)}:t===""?{"--un-border-opacity":(c=s.alpha)!=null?c:1,[`border${t}-color`]:M(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`]:M(s,`var(--un-border${t}-opacity)`)};if(a)return{[`border${t}-color`]:a.replace("%alpha",`${n!=null?n:1}`)}};function ot(t,e){let r=q(t,e);if(r)return[...r,["border-style","solid"]]}function q([,t="",e],{theme:r}){var n,a;let o=(a=(n=r.lineWidth)==null?void 0:n[e||"DEFAULT"])!=null?a:i.bracket.cssvar.px(e||"1");if(t in O&&o!=null)return O[t].map(s=>[`border${s}-width`,o])}function nt([,t="",e],{theme:r}){if(t in O&&bt(e,r))return Object.assign({},...O[t].map(o=>ea(o)(["",e],r)))}function at([,t="",e]){let r=i.bracket.percent(e);if(t in O&&r!=null)return O[t].map(o=>[`--un-border${o}-opacity`,r])}function it([,t="",e],{theme:r}){var n;let o=((n=r.borderRadius)==null?void 0:n[e||"DEFAULT"])||i.bracket.cssvar.fraction.rem(e||"1");if(t in St&&o!=null)return St[t].map(a=>[`border${a}-radius`,o])}var Be=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:i.bracket.percent.cssvar(t)})]],Ke=[[/^(?:text|color|c)-(.+)$/,$("color","text"),{autocomplete:"(text|color|c)-$colors"}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":i.bracket.percent(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],Ge=[[/^bg-(.+)$/,$("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":i.bracket.percent(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]];var Ye={all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"},Xe=t=>{var e;return(e=i.properties(t))!=null?e:Ye[t]},Ie=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{var n,a;let o=t!=null?Xe(t):[Ye.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:i.time(e||"150");return{"transition-property":o,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":s}}}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-duration":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>{var r,o;return{"transition-delay":(o=(r=e.duration)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar.time(t)}}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>{var r,o;return{"transition-timing-function":(o=(r=e.easing)==null?void 0:r[t||"DEFAULT"])!=null?o:i.bracket.cssvar(t)}}],[/^(?:transition-)?property-(.+)$/,([,t])=>({"transition-property":i.global(t)||Xe(t)})],["transition-none",{transition:"none"}]];var qe=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:i.bracket(t)!=null?i.bracket(t).split(" ").map(e=>{var r;return(r=i.cssvar.fraction(e))!=null?r:e}).join(" "):i.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:i.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 ra={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Ze=[[/^font-(\w+)$/,([,t],{theme:e})=>{var r;return{"font-family":((r=e.fontFamily)==null?void 0:r[t])||i.global(t)}},{autocomplete:"font-$fontFamily"}],[/^text-(.+)$/,([,t="base"],{theme:e})=>{var o;let r=V((o=e.fontSize)==null?void 0:o[t]);if(r!=null&&r[0]){let[n,a="1"]=r;return{"font-size":n,"line-height":a}}return{"font-size":i.bracketOfLength.rem(t)}},{autocomplete:"text-$fontSize"}],[/^text-size-(.+)$/,([,t],{theme:e})=>{var n,a;let r=V((n=e.fontSize)==null?void 0:n[t]),o=(a=r==null?void 0:r[0])!=null?a:i.bracket.cssvar.rem(t);if(o!=null)return{"font-size":o}}],[/^(?:font|fw)-?([^-]+)$/,([,t])=>({"font-weight":ra[t]||i.global.number(t)}),{autocomplete:"font-(100|200|300|400|500|600|700)"}],[/^(?:leading|lh)-(.+)$/,([,t],{theme:e})=>{var r;return{"line-height":((r=e.lineHeight)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"(leading|lh)-$lineHeight"}],[/^tracking-(.+)$/,([,t],{theme:e})=>{var r;return{"letter-spacing":((r=e.letterSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"tracking-$letterSpacing"}],[/^word-spacing-(.+)$/,([,t],{theme:e})=>{var r;return{"word-spacing":((r=e.wordSpacing)==null?void 0:r[t])||i.bracket.cssvar.global.rem(t)}},{autocomplete:"word-spacing-$wordSpacing"}]],Je=[[/^tab(?:-(.+))?$/,([,t])=>{let e=i.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],Qe=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"text-indent":((r=e.textIndent)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.global.fraction.rem(t)}}]],tr=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>{var r;return{"-webkit-text-stroke-width":((r=e.textStrokeWidth)==null?void 0:r[t||"DEFAULT"])||i.bracket.cssvar.px(t)}}],[/^text-stroke-(.+)$/,$("-webkit-text-stroke-color","text-stroke")],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":i.bracket.percent(t)})]],er=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.textShadow)==null?void 0:o[t||"DEFAULT"];return r!=null?{"--un-text-shadow":I(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":i.bracket.cssvar(t)}}],[/^text-shadow-color-(.+)$/,$("--un-text-shadow-color","text-shadow")],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":i.bracket.percent(t)})]];var rr={"":"",x:"column-",y:"row-"},or=([,t="",e],{theme:r})=>{var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.rem(e);if(o!=null)return{[`grid-${rr[t]}gap`]:o,[`${rr[t]}gap`]:o}},nr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,or,{autocomplete:"gap-<num>"}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,or,{autocomplete:"gap-(x|y)-<num>"}]];var N=t=>t.replace("col","column"),Ft=t=>t[0]==="r"?"Row":"Column",oa=(t,e,r)=>{var n;let o=(n=e[`gridAuto${Ft(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 i.bracket.cssvar.auto.rem(r)},ar=[["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${Ft(t)}`])==null?void 0:o[e])!=null?n:i.bracket.cssvar.auto(e)}}],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${N(t)}`]:"1/-1"};let r=i.bracket.number(e);if(r!=null)return{[`grid-${N(t)}`]:`span ${r}/span ${r}`}}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-start`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>{var r;return{[`grid-${N(t)}-end`]:(r=i.bracket.cssvar(e))!=null?r:e}}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${N(t)}`]:oa(t,r,e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":i.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${Ft(t)}`])==null?void 0:o[e])!=null?n:i.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 ir=["auto","hidden","clip","visible","scroll"],sr=[[/^(?:overflow|of)-(.+)$/,([,t])=>ir.includes(t)?{overflow:t}:void 0],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>ir.includes(e)?{[`overflow-${t}`]:e}:void 0]];var cr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t})],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],lr=[["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"}]],pr=[[/^order-(.+)$/,([,t])=>({order:i.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],fr=[["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"}]],ur=[["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 Dt(t,{theme:e}){var r,o;return(o=(r=e.spacing)==null?void 0:r[t])!=null?o:i.bracket.cssvar.auto.fraction.rem(t)}function ht([,t,e],r){let o=Dt(e,r);if(o!=null&&t in wt)return wt[t].map(n=>[n.slice(1),o])}var dr=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Dt(t,e)})],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ht],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ht],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ht],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ht],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Dt(e,r)})]],mr=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}]],gr=[[/^z([\d.]+)$/,([,t])=>({"z-index":i.number(t)})],[/^z-(.+)$/,([,t])=>({"z-index":i.bracket.cssvar.auto.number(t)})]],br=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}]];var h="var(--un-empty,/*!*/ /*!*/)",hr=[["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:i.bracket.cssvar(t)||t})]],xr=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}]],yr=[[/^cursor-(.+)$/,([,t])=>({cursor:i.bracket.cssvar(t)||t})]],vr=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}]],$r=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}]],kr=[["select-auto",{"user-select":"auto"}],["select-all",{"user-select":"all"}],["select-text",{"user-select":"text"}],["select-none",{"user-select":"none"}]],wr=[[/^(?:whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap)$/,([,t])=>({"white-space":t})]];var Sr=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}]],Cr=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]];var Rr=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}]],Tr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto","font-smoothing":"auto"}]];var zr=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{var o,n;let r=(n=(o=e.ringWidth)==null?void 0:o[t||"DEFAULT"])!=null?n:i.px(t||"1");if(r)return[{[E]:"","--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)"}]}],[/^ring-(?:width-|size-)(.+)$/,([,t],{theme:e})=>{var r,o;return{"--un-ring-width":(o=(r=e.lineWidth)==null?void 0:r[t])!=null?o:i.bracket.cssvar.px(t)}}],["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:i.bracket.cssvar.px(t)}}],[/^ring-(.+)$/,$("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":i.bracket.percent(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,$("--un-ring-offset-color","ring-offset")],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":i.bracket.percent(t)})],["ring-inset",{"--un-ring-inset":"inset"}]];var Er=[[/^shadow(?:-(.+))?$/,([,t],{theme:e})=>{var o;let r=(o=e.boxShadow)==null?void 0:o[t||"DEFAULT"];if(r)return[{[E]:"","--un-shadow-inset":h,"--un-shadow":"0 0 #0000"},{"--un-shadow":I(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)"}]}],[/^shadow-(.+)$/,$("--un-shadow-color","shadow")],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":i.bracket.percent(t)})],["shadow-inset",{"--un-shadow-inset":"inset"}]];var na={h:"height",w:"width",inline:"inline-size",block:"block-size"};function st(t,e){return`${t||""}${na[e]}`}function jr(t,e,r,o){var s;let n=st(t,e).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 Vr=[[/^(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:o})=>({[st(t,e)]:jr(t,e,o,r)})],[/^(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:o})=>({[st(t,e)]:jr(t,e,o,r)})],[/^(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[st(t,e)]:(n=o.verticalBreakpoints)==null?void 0:n[r]}}],[/^(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],{theme:o})=>{var n;return{[st(t,e)]:(n=o.breakpoints)==null?void 0:n[r]}}]];function aa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return i.bracket.cssvar.auto.number(t)}var Or=[[/^aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":aa(t)})]];var Mr=[[/^pa?()-?(-?.+)$/,C("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?([xy])-?(-?.+)$/,C("padding")],[/^p-?([rltbse])-?(-?.+)$/,C("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)-(-?.+)$/,C("padding")],[/^p-?([bi][se])-?(-?.+)$/,C("padding")]],Pr=[[/^ma?()-?(-?.+)$/,C("margin")],[/^m-?([xy])-?(-?.+)$/,C("margin")],[/^m-?([rltbse])-?(-?.+)$/,C("margin")],[/^m-(block|inline)-(-?.+)$/,C("margin")],[/^m-?([bi][se])-?(-?.+)$/,C("margin")]];var ia={"--un-transform":["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" ")},Fr={"--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(" ")},Z=z(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},Fr),{[E]:""}),Dr=[[/^(?:transform-)?origin-(.+)$/,([,t])=>{var e;return{"transform-origin":(e=F[t])!=null?e:i.bracket.cssvar(t)}}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=i.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{var r;let e=(r=i.bracket.cssvar(t))!=null?r:t.length>=3?F[t]:void 0;if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Ur],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ur],[/^(?:transform-)?rotate-()(.+)$/,_r],[/^(?:transform-)?rotate-([xyz])-(.+)$/,_r],[/^(?:transform-)?skew-([xy])-(.+)$/,sa],[/^(?:transform-)?scale-()(.+)$/,Ar],[/^(?:transform-)?scale-([xyz])-(.+)$/,Ar],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],[/^transform$/,()=>[Z,{transform:"var(--un-transform)"}]],["transform-gpu",ia],["transform-cpu",Fr],["transform-none",{transform:"none"}]];function Ur([,t,e],{theme:r}){var n,a;let o=(a=(n=r.spacing)==null?void 0:n[e])!=null?a:i.bracket.cssvar.fraction.rem(e);if(o!=null)return[Z,[...Ct[t].map(s=>[`--un-translate${s}`,o]),["transform","var(--un-transform)"]]]}function Ar([,t,e]){let r=i.bracket.cssvar.fraction.percent(e);if(r!=null)return[Z,[...Ct[t].map(o=>[`--un-scale${o}`,r]),["transform","var(--un-transform)"]]]}function _r([,t="",e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return t?[Z,{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:"var(--un-transform)"}]:[Z,{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:"var(--un-transform)"}]}function sa([,t,e]){let r=i.bracket.cssvar.degree(e);if(r!=null)return[Z,{[`--un-skew-${t}`]:r,transform:"var(--un-transform)"}]}var ca={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Lr=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ca[t];if(r)return{[r]:i.cssvar(e)}}]],Nr=[[/^\[([^:]+):(.+)\]$/,([,t,e])=>({[t]:i.bracket(`[${e}]`)})]];var Wr=[[/^(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}}
|