@unocss/runtime 66.1.4 → 66.2.1

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/mini.global.js CHANGED
@@ -1,11 +1,11 @@
1
- "use strict";(()=>{var Vi=Object.defineProperty;var zi=(t,e)=>{for(var r in e)Vi(t,r,{get:e[r],enumerable:!0})};var xe="default",Fe="preflights",Mi="shortcuts",Li="imports",er={[Li]:-200,[Fe]:-100,[Mi]:-10,[xe]:0};var Ue=/[\\:]?[\s'"`;{}]+/g;function Fi(t){return t.split(Ue)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Fi(t)}};function R(t=[]){return Array.isArray(t)?t:[t]}function B(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(i=>e(n,i))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Ie(t){return t instanceof ye}function re(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(t){let e=t.length,r=-1,n,o="",i=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){o+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=t.charAt(r);continue}o+=`\\${t.charAt(r)}`}return o}var We=se;function tr(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Ui=/^\[(.+?)~?="(.*)"\]$/;var _i=/[\w\u00A0-\uFFFF%-?]/;function rr(t){return t.match(Ui)}function we(t=""){return _i.test(t)}function nr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function De(t){return t!=null}function or(){}var Ne=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.has(r)||o.set(r,n),o.get(r)}set(e,r,n){let o=this._map.get(e);return o||(o=new Map,this._map.set(e,o)),o.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([o,i])=>e(i,r,o)))}},Be=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,o)=>{r.push(e(n,o))}),r}flatMap(e){let r=[];return this.forEach((n,o)=>{r.push(...e(n,o))}),r}};function Se(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ht(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>Se(e)):[t]:[Se(t)]}function Ii(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(t[o][0]===e&&t[o][1]===r)return!1;return!0})}function ce(t){return t==null?"":Ii(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ke(t){return t&&typeof t=="object"&&!Array.isArray(t)}function mt(t,e,r=!1){let n=t,o=e;if(Array.isArray(o))return r&&Array.isArray(o)?[...n,...o]:[...o];let i={...n};return Ke(n)&&Ke(o)&&Object.keys(o).forEach(s=>{Ke(n[s])&&Ke(o[s])||Array.isArray(n[s])&&Array.isArray(o[s])?i[s]=mt(n[s],o[s],r):Object.assign(i,{[s]:o[s]})}),i}function $e(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?$e(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:$e(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?$e(n):n;return r}return t}function ir(t){return z(t[0])}function sr(t){return z(t[0])}var Ge={};function Wi(t=["-",":"]){let e=t.join("|");return Ge[e]||(Ge[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ge[e].lastIndex=0,Ge[e]}function Di(t,e=["-",":"],r=5){let n=Wi(e),o,i=t.toString(),s=new Set,l=new Map;do o=!1,i=i.replace(n,(c,f,p,d,h)=>{if(!e.includes(p))return c;o=!0,s.add(f+p);let g=h+f.length+p.length+1,x={length:c.length,items:[]};l.set(h,x);for(let w of[...d.matchAll(/\S+/g)]){let T=g+w.index,y=l.get(T)?.items;y?l.delete(T):y=[{offset:T,length:w[0].length,className:w[0]}];for(let S of y)S.className=S.className==="~"?f:S.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(S)}return"$".repeat(c.length)}),r-=1;while(o&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(d=>d.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:o,groupsByOffset:l,get expanded(){return a.toString()}}}function ar(t,e=["-",":"],r=5){let n=Di(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return R(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ni(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=o=>{o[2]||(o[2]={});let i=o[2];i.prefix==null&&e.prefix&&(i.prefix=R(e.prefix)),i.layer==null&&e.layer&&(i.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ni(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(R).flatMap(dr))).flat();return[e,...r]}function Bi(t){if(t.length===0)return{};let e=[],r=[],n=!1,o=[],i=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&o.push(a.filesystem),a.inline&&i.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:B(fr(...e)),exclude:B(fr(...r))}};return o.length&&(l.filesystem=B(o.flat())),i.length&&(l.inline=B(i.flat())),s.length&&(l.plain=B(s.flat())),l}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(R).flatMap(dr))).flat(),(b,m)=>b.name===m.name),o=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],i=[...o,r],s=[...i].reverse(),l=Object.assign({},er,...i.map(b=>b.layers));function a(b){return B(i.flatMap(m=>R(m[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((b,m)=>(b.order||0)-(m.order||0));let p=a("rules"),d={},h=p.length,g=p.filter(b=>ir(b)?(R(b[2]?.prefix||"").forEach($=>{d[$+b[0]]=b}),!1):!0).reverse(),x=Ki(i.map(b=>b.theme)),w=a("extendTheme");for(let b of w)x=b(x)||x;let T={templates:B(i.flatMap(b=>R(b.autocomplete?.templates))),extractors:i.flatMap(b=>R(b.autocomplete?.extractors)).sort((b,m)=>(b.order||0)-(m.order||0)),shorthands:Gi(i.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let S=a("content"),O=Bi(S),k={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:o,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:h,rulesDynamic:g,rulesStaticMap:d,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:T,variants:a("variants").map(nr).sort((b,m)=>(b.order||0)-(m.order||0)),shortcuts:pr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:O,transformers:pt(a("transformers"),(b,m)=>b.name===m.name)};for(let b of i)b?.configResolved?.(k);return k}function Ki(t){return t.map(e=>e?$e(e):{}).reduce((e,r)=>mt(e,r),{})}function Gi(t){return t.reduce((e,r)=>{let n={};for(let o in r){let i=r[o];Array.isArray(i)?n[o]=`(${i.join("|")})`:n[o]=i}return{...e,...n}},{})}function fr(...t){return t.flatMap(Hi)}function Hi(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.1.4";var Q={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=tr();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await gt(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let o={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let i of this.config.extractors){let s=await i.extract?.(o);if(s)if(Ie(s)&&Ie(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:Q,variantHandlers:r[2],constructCSS:(...o)=>this.constructCustomCSS(n,...o),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let o=e;for(let a of this.config.preprocess)o=a(e);if(this.isBlocked(o)){this.blocked.add(e),this.cache.set(n,null);return}let i=await this.matchVariants(e,o);if(i.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(d=>this.stringifyUtil(d,c)).filter(De)},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:o,preflights:i=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let m={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(m):$).forEach($=>{let v=$.trim();v&&!c.has(v)&&c.add(v)})}let f=l?"":`
2
- `,p=new Set([xe]),d=a?new Map:new Set,h=new Map,g={},x=Array.from(c).map(async m=>{if(d.has(m))return;let $=await this.parseToken(m);if($!=null){d instanceof Map?d.set(m,{data:$,count:Ie(c)?c.getCount(m):-1}):d.add(m);for(let v of $){let _=v[3]||"",I=v[4]?.layer;h.has(_)||h.set(_,[]),h.get(_).push(v),I&&p.add(I)}}});await Promise.all(x),await(async()=>{if(!i)return;let m={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:v=Fe})=>{p.add(v),$.add(v)}),g=Object.fromEntries(await Promise.all(Array.from($).map(async v=>{let I=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Fe)===v).map(async H=>await H.getCSS(m)))).filter(Boolean).join(f);return[v,I]})))})();let w=this.config.sortLayers(Array.from(p).sort((m,$)=>(this.config.layers[m]??0)-(this.config.layers[$]??0)||m.localeCompare($))),T={},y=this.config.outputToCssLayers,S=m=>{let $=m;return typeof y=="object"&&($=y.cssLayerName?.(m)),$===null?null:$??m},O=(m=xe)=>{if(T[m])return T[m];let $=Array.from(h).sort((I,H)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(H[0])??0)||I[0]?.localeCompare(H[0]||"")||0).map(([I,H])=>{let C=H.length,E=H.filter(V=>(V[4]?.layer||xe)===m).sort((V,q)=>V[0]-q[0]||(V[4]?.sort||0)-(q[4]?.sort||0)||V[5]?.currentSelector?.localeCompare(q[5]?.currentSelector??"")||V[1]?.localeCompare(q[1]||"")||V[2]?.localeCompare(q[2]||"")||0).map(([,V,q,,Le,,ut])=>[[[(V&&Xi(V,o))??"",Le?.sort??0]],q,!!(ut??Le?.noMerge)]);if(!E.length)return;let P=E.reverse().map(([V,q,Le],ut)=>{if(!Le&&this.config.mergeSelectors)for(let te=ut+1;te<C;te++){let X=E[te];if(X&&!X[2]&&(V&&X[0]||V==null&&X[0]==null)&&X[1]===q)return V&&X[0]&&X[0].push(...V),null}let ft=V?B(V.sort((te,X)=>te[1]-X[1]||te[0]?.localeCompare(X[0]||"")||0).map(te=>te[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${f}`)}{${q}}`:q}).filter(Boolean),M=Array.from(new Set(P)).reverse().join(f);if(!I)return M;let U=I.split(" $$ ");return`${U.join("{")}{${f}${M}${f}${"}".repeat(U.length)}`}).filter(Boolean).join(f);i&&($=[g[m],$].filter(Boolean).join(f));let v;y&&$&&(v=S(m),v!==null&&($=`@layer ${v}{${f}${$}${f}}`));let _=l?"":`/* layer: ${m}${v&&v!==m?`, alias: ${v}`:""} */${f}`;return T[m]=$?_+$:""},k=(m=w,$)=>{let v=m.filter(_=>!$?.includes(_));return[y&&v.length>0?`@layer ${v.map(S).filter(De).join(", ")};`:void 0,...v.map(_=>O(_)||"")].filter(Boolean).join(f)};return{get css(){return k()},layers:w,matched:d,getLayers:k,getLayer:O,setLayer:async(m,$)=>{let v=await $(O(m));return T[m]=v,v}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},o=async i=>{let s=!0,[,,l,a]=i;for(;s;){s=!1;let c=i[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let d=p.map(h=>{let g=h.matcher??c,x=[h,...l],w=new Set(a);return w.add(f),[i[0],g,x,w]});return(await Promise.all(d.map(h=>o(h)))).flat()}}i[1]=p.matcher??c,l.unshift(p),a.add(f),s=!0;break}}if(!s)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[i]};return await o([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let i=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let d=f.body?.(p.entries)||p.entries,h=Array.isArray(f.parent)?f.parent:[f.parent,void 0],g=f.selector?.(p.selector,d);return(f.handle??Ji)({...p,entries:d,selector:g||p.selector,parent:h[0]||p.parent,parentOrder:h[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:Zi(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:l}=i;s!=null&&l!=null&&this.parentOrders.set(s,l);let a={selector:[i.prefix,i.selector,i.pseudo].join(""),entries:i.entries,parent:s,layer:i.layer,sort:i.sort,noMerge:i.noMerge};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(e,r,n){let o=Se(r);if(z(o))return o;let{selector:i,entries:s,parent:l}=this.applyVariants([0,n||e.rawSelector,o,void 0,e.variantHandlers]),a=`${i}{${ce(s)}}`;return l?`${l}{${a}}`:a}async parseUtil(e,r,n=!1,o){let i=z(e)?await this.matchVariants(e):[e],s=async([a,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let h=this.config.rules.indexOf(p),g=ht(p[1]).filter(w=>w.length),x=p[2];if(g.length)return r.generator.activatedRules.add(p),g.map(w=>z(w)?[h,w,x]:[h,a,w,x,f])}r.variantHandlers=f;let{rulesDynamic:d}=this.config;for(let h of d){let[g,x,w]=h;if(w?.internal&&!n)continue;let T=c;if(w?.prefix){let k=R(w.prefix);if(o){let b=R(o);if(!k.some(m=>b.includes(m)))continue}else{let b=k.find(m=>c.startsWith(m));if(b==null)continue;T=c.slice(b.length)}}let y=T.match(g);if(!y)continue;let S=await x(y,r);if(!S)continue;if(this.config.details&&r.rules.push(h),typeof S!="string")if(Symbol.asyncIterator in S){let k=[];for await(let b of S)b&&k.push(b);S=k}else Symbol.iterator in S&&!Array.isArray(S)&&(S=Array.from(S).filter(De));let O=ht(S).filter(k=>k.length);if(O.length){r.generator.activatedRules.add(h);let k=this.config.rules.indexOf(h);return O.map(b=>{if(z(b))return[k,b,w];let m=f,$=w;for(let v of b)v[0]===Q.variants?typeof v[1]=="function"?m=v[1](m)||m:m=[...R(v[1]),...m]:v[0]===Q.parent?m=[{parent:v[1]},...m]:v[0]===Q.selector?m=[{selector:v[1]},...m]:v[0]===Q.layer?m=[{layer:v[1]},...m]:v[0]===Q.sort?$={...$,sort:v[1]}:v[0]===Q.noMerge&&($={...$,noMerge:v[1]});return[k,a,b,$,m]})}}},l=(await Promise.all(i.map(a=>s(a)))).flat().filter(a=>!!a);if(l.length)return l}stringifyUtil(e,r){if(!e)return;if(dt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:o,parent:i,layer:s,sort:l,noMerge:a}=this.applyVariants(e),c=ce(o);if(!c)return;let{layer:f,sort:p,...d}=e[3]??{},h={...d,layer:s??f,sort:l??p};return[e[0],n,c,i,h,this.config.details?r:void 0,a]}async expandShortcut(e,r,n=5){if(n===0)return;let o=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:or,i,s,l,a;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let d=R(c[2].prefix).find(h=>e.startsWith(h));if(d==null)continue;f=e.slice(d.length)}if(sr(c)){if(c[0]===f){i=i||c[2],s=c[1],o(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){i=i||c[2],o(c);break}}}if(s&&(l=B(R(s).filter(z).map(c=>ar(c.trim()).split(/\s+/g)).flat()),a=R(s).filter(c=>!z(c)).map(c=>({handles:[],value:c}))),!s){let c=z(e)?await this.matchVariants(e):[e];for(let f of c){let[p,d,h]=f;if(p!==d){let g=await this.expandShortcut(d,r,n-1);g&&(l=g[0].filter(z).map(x=>p.replace(d,x)),a=g[0].filter(x=>!z(x)).map(x=>({handles:[...x.handles,...h],value:x.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(R(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),i]}async stringifyShortcuts(e,r,n,o={layer:this.config.shortcutsLayer}){let i=new Be,s=(await Promise.all(B(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,o.prefix):[[Number.POSITIVE_INFINITY,"{inline}",Se(f.value),void 0,f.handles]];return!p&&this.config.warn&&cr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[l,,a]=e,c=[];for(let f of s){if(dt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:d,parent:h,sort:g,noMerge:x,layer:w}=this.applyVariants(f,[...f[4],...a],l);i.getFallback(w??o.layer,new Ne).getFallback(p,h,[[],f[0]])[0].push([d,!!(x??f[3]?.noMerge),g??0])}return c.concat(i.flatMap((f,p)=>f.map(([d,h],g,x)=>{let w=(y,S,O)=>{let k=Math.max(...O.map(m=>m[1])),b=O.map(m=>m[0]);return(y?[b.flat(1)]:b).map(m=>{let $=ce(m);if($)return[h,g,$,x,{...o,noMerge:S,sort:k,layer:p},r,void 0]})};return[[d.filter(([,y])=>y).map(([y,,S])=>[y,S]),!0],[d.filter(([,y])=>!y).map(([y,,S])=>[y,S]),!1]].map(([y,S])=>[...w(!1,S,y.filter(([O])=>O.some(k=>k[0]===Q.shortcutsNoMerge))),...w(!0,S,y.filter(([O])=>O.every(k=>k[0]!==Q.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let o=Array.isArray(n)?n[0]:n;return typeof o=="function"?o(e):z(o)?o===e:o.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function gr(t,e){return await bt.create(t,e)}var br=/\s\$\$\s+/g;function Yi(t){return br.test(t)}function Xi(t,e){return Yi(t)?t.replace(br,e?` ${e} `:" "):e?`${e} ${t}`:t}var mr=/^\[(.+?)(~?=)"(.*)"\]$/;function Zi(t){return mr.test(t)?t.replace(mr,(e,r,n,o)=>`[${We(r)}${n}"${We(o)}"]`):`.${We(t)}`}function Ji(t,e){return e(t)}var xt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function xr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,o;return{name:"attributify",match(i,{generator:s}){let l=rr(i);if(!l)return;let a=l[1];if(a.startsWith(e))a=a.slice(e.length);else if(r)return;let c=l[2],[,f="",p=c]=c.match(xt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${a}`;if(o==null){let d=s?.config?.separators?.join("|");d?o=new RegExp(`^(.*\\](?:${d}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,d,h]=c.match(o)||[];if(h)return`${d}${f}${a}-${h}`}if(f&&p.match(/^[\d.]+$/)){let d=f.split(/([^:]*:)/g).filter(Boolean),h=d.pop()+p,g=d.join("");return[{matcher:`${f}${a}-${p}`},{matcher:`${g}${a}-${h}`}]}return`${f}${a}-${p}`}}}var Qi=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,es=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,yr=/[\s'"`;>]+/;function wr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(Qi),o,i=0;for(let y of n){let[,S,O]=y,k=y.index+S.length;if(r>k&&r<=k+O.length){i=k,o=O;break}}if(!o)return null;let s=o.matchAll(es),l=0,a,c;for(let y of s){let[S,O,k]=y,b=i+y.index;if(r>b&&r<=b+S.length){l=b,a=O,c=k?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!t?.prefix&&a.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?a.slice(t.prefix.length):a;if(c===void 0)return{extracted:p,resolveReplacement(y){let S=f?t.prefix.length:0;return{start:l+S,end:l+a.length,replacement:y}}};let d=l+a.length+2,h=yr.exec(c),g=0,x;for(;h;){let[y]=h;if(r>d+g&&r<=d+g+h.index){x=c.slice(g,g+h.index);break}g+=h.index+y.length,h=yr.exec(c.slice(g))}x===void 0&&(x=c.slice(g));let[,w="",T]=x.match(xt)||[];return{extracted:`${w}${p}-${T}`,transformSuggestions(y){return y.filter(S=>S.startsWith(`${w}${p}-`)).map(S=>w+S.slice(w.length+p.length+1))},resolveReplacement(y){return{start:g+d,end:g+d+x.length,replacement:w+y.slice(w.length+p.length+1)}}}}}}var ts=["v-bind:",":"],$r=/[\s'"`;]+/g,yt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,rs=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,wt=["placeholder","fill","opacity","stroke-opacity"];function Sr(t){let e=t?.ignoreAttributes??wt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(yt)).flatMap(i=>Array.from((i[1]||"").matchAll(rs))).flatMap(([,i,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(i))return[];for(let a of ts)if(i.startsWith(a)){i=i.slice(a.length);break}if(!l){if(we(i)&&r!==!1){let a=[`[${i}=""]`];return n&&a.push(`[${i}="true"]`),a}return[]}return["class","className"].includes(i)?l.split($r).filter(we):yt.test(l)?(yt.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!i.startsWith(t.prefix)?[]:l.split($r).filter(a=>!!a&&a!==":").map(a=>`[${i}~="${a}"]`)})}}}var ns=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??wt;let e=[xr(t)],r=[Sr(t)],n=[wr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},vr=ns;function os(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Cr(t,e,r,n){for(let o of Array.from(t.matchAll(r)))if(o!=null){let i=o[0],s=`${n}${os(i)}`;e.set(s,i),t=t.replace(i,s)}return t}function kr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var is=/\/\/#\s*sourceMappingURL=.*\n?/g;function Rr(t){return t.includes("sourceMappingURL=")?t.replace(is,""):t}var ss=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,as=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ls=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function cs(t){let e=[];for(let o of t.matchAll(as))o.index!==0&&!/^[\s'"`]/.test(t[o.index-1]??"")||e.push(o[0]);for(let o of t.matchAll(ss))e.push(o[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=Cr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Ue).forEach(o=>{o.includes(n)&&(o=kr(o,r)),we(o)&&!ls.test(o)&&e.push(o)}),e}function Tr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return cs(Rr(t))}}}function Er(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let o=new Set(Array.from(r.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([i])=>o.has(i))}if(n.length>0){let o=ce(n);return t.variablePrefix!=="un-"&&(o=o.replace(/--un-/g,`--${t.variablePrefix}`)),R(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${o}}`).join("")}}}}]}function ue(t,e,r){if(t==="")return;let n=t.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let o=t.length,i=0;for(let s=0;s<o;s++)switch(t[s]){case e:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let a=l.length;if(a&&l===t.slice(s,s+a)&&i===0)return s===0||s===o-a?void 0:[t.slice(0,s),t.slice(s+a)]}}return[t,""]}function pe(t,e,r){r=r??10;let n=[],o=0;for(;t!=="";){if(++o>r)return;let i=fe(t,"(",")",e);if(!i)return;let[s,l]=i;n.push(s),t=l}if(n.length>0)return n}var $t=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],jr=["%alpha","<alpha-value>"],us=new RegExp(jr.map(t=>re(t)).join("|"),"g");function ne(t=""){let e=fs(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:o}=e,i=r.toLowerCase();if(n.length!==0&&!($t.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function ve(t){let e=t.alpha??1;return typeof e=="string"&&jr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(us,`${e??1}`);let{components:r}=t,{alpha:n,type:o}=t;return n=e??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,$t.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function fs(t){if(!t)return;let e=ps(t);if(e!=null||(e=ds(t),e!=null)||(e=hs(t),e!=null)||(e=gs(t),e!=null)||(e=bs(t),e!=null))return e}function ps(t){let[,e]=t.match(/^#([\da-f]+)$/i)||[];if(e)switch(e.length){case 3:case 4:let r=Array.from(e,o=>Number.parseInt(o,16)).map(o=>o<<4|o);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 n=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:e.length===6?void 0:Math.round((n&255)/255*100)/100}}}function ds(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function hs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,o=pe(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 ms=new RegExp(`^(${$t.join("|")})\\((.+)\\)$`,"i");function gs(t){let e=t.match(ms);if(!e)return;let[,r,n]=e,o=Ar(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function bs(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Ar(e[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function Ar(t){let e=pe(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 i=e.splice(r-2);e.push(i.join(" ")),--r}let n=pe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let o=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:o}}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zr=new Uint8Array(64),xs=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);zr[t]=e,xs[e]=t}function Ce(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let o=n&31;n>>>=5,n>0&&(o|=32),t.write(zr[o])}while(n>0);return e}var Pr=1024*16,Vr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},St=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Pr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Pr&&(this.out+=Vr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Vr.decode(e.subarray(0,n)):r}};function Mr(t){let e=new St,r=0,n=0,o=0,i=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(44),a=Ce(e,f[0],a),f.length!==1&&(r=Ce(e,f[1],r),n=Ce(e,f[2],n),o=Ce(e,f[3],o),f.length!==4&&(i=Ce(e,f[4],i)))}}return e.flush()}var He=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},qe=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new t(e,this.end,o);return i.outro=this.outro,this.outro="",this.end=e,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function ys(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var ws=ys(),vt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Mr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+ws(this.toString())}};function $s(t){let e=t.split(`
3
- `),r=e.filter(i=>/^\t+/.test(i)),n=e.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function Ss(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var vs=Object.prototype.toString;function Cs(t){return vs.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
4
- `),r=[];for(let n=0,o=0;n<e.length;n++)r.push(o),o+=e[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1}let l=i-1,a=o-r[l];return{line:l,column:a}}}var ks=/\w/,Ct=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
5
- `,0),l=-1;for(;s>=0&&i>s;){let c=[this.generatedCodeColumn,e,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=s,s=r.indexOf(`
6
- `,s+1)}let a=[this.generatedCodeColumn,e,n.line,n.column];o>=0&&a.push(o),this.rawSegments.push(a),this.advance(r.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,n,o,i){let s=r.start,l=!0,a=!1;for(;s<r.end;){if(n[s]===`
7
- `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,a=!1;else{if(this.hires||l||i.has(s)){let c=[this.generatedCodeColumn,e,o.line,o.column];this.hires==="boundary"?ks.test(n[s])?a||(this.rawSegments.push(c),a=!0):(this.rawSegments.push(c),a=!1):this.rawSegments.push(c)}o.column+=1,this.generatedCodeColumn+=1,l=!1}s+=1}this.pending=null}advance(e){if(!e)return;let r=e.split(`
1
+ "use strict";(()=>{var Uo=Object.defineProperty;var Fo=(t,e)=>{for(var r in e)Uo(t,r,{get:e[r],enumerable:!0})};var xe="default",Ue="preflights",_o="shortcuts",Io="imports",er={[Io]:-200,[Ue]:-100,[_o]:-10,[xe]:0};var Fe=/[\\:]?[\s'"`;{}]+/g;function Wo(t){return t.split(Fe)}var _e={name:"@unocss/core/extractor-split",order:0,extract({code:t}){return Wo(t)}};function T(t=[]){return Array.isArray(t)?t:[t]}function N(t){return Array.from(new Set(t))}function pt(t,e){return t.reduce((r,n)=>(r.findIndex(o=>e(n,o))===-1&&r.push(n),r),[])}function z(t){return typeof t=="string"}var ye=class extends Set{_map=new Map;constructor(e){if(super(),e)for(let r of e)this.add(r)}add(e){return this._map.set(e,(this._map.get(e)??0)+1),super.add(e)}delete(e){return this._map.has(e)?(this._map.delete(e),super.delete(e)):!1}clear(){this._map.clear(),super.clear()}getCount(e){return this._map.get(e)??0}setCount(e,r){return this._map.set(e,r),super.add(e)}};function Ie(t){return t instanceof ye}function ne(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ae(t){let e=t.length,r=-1,n,i="",o=t.charCodeAt(0);for(;++r<e;){if(n=t.charCodeAt(r),n===0){i+="\uFFFD";continue}if(n===37){i+="\\%";continue}if(n===44){i+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&o===45){i+=`\\${n.toString(16)} `;continue}if(r===0&&e===1&&n===45){i+=`\\${t.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){i+=t.charAt(r);continue}i+=`\\${t.charAt(r)}`}return i}var We=ae;function tr(){return{events:{},emit(t,...e){(this.events[t]||[]).forEach(r=>r(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(r=>r!==e)}}}var Do=/^\[(.+?)~?="(.*)"\]$/;var Bo=/[\w\u00A0-\uFFFF%-?]/;function rr(t){return t.match(Do)}function we(t=""){return Bo.test(t)}function nr(t){return typeof t=="function"?{match:t}:t}function dt(t){return t.length===3}function De(t){return t!=null}function ir(){}var Be=class{_map=new Map;get(e,r){let n=this._map.get(e);if(n)return n.get(r)}getFallback(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.has(r)||i.set(r,n),i.get(r)}set(e,r,n){let i=this._map.get(e);return i||(i=new Map,this._map.set(e,i)),i.set(r,n),this}has(e,r){return this._map.get(e)?.has(r)}delete(e,r){return this._map.get(e)?.delete(r)||!1}deleteTop(e){return this._map.delete(e)}map(e){return Array.from(this._map.entries()).flatMap(([r,n])=>Array.from(n.entries()).map(([i,o])=>e(o,r,i)))}},Ne=class extends Map{getFallback(e,r){let n=this.get(e);return n===void 0?(this.set(e,r),r):n}map(e){let r=[];return this.forEach((n,i)=>{r.push(e(n,i))}),r}flatMap(e){let r=[];return this.forEach((n,i)=>{r.push(...e(n,i))}),r}};function $e(t){return z(t)?t:(Array.isArray(t)?t:Object.entries(t)).filter(e=>e[1]!=null)}function ht(t){return Array.isArray(t)?t.find(e=>!Array.isArray(e)||Array.isArray(e[0]))?t.map(e=>$e(e)):[t]:[$e(t)]}function No(t){return t.filter(([e,r],n)=>{if(e.startsWith("$$"))return!1;for(let i=n-1;i>=0;i--)if(t[i][0]===e&&t[i][1]===r)return!1;return!0})}function ue(t){return t==null?"":No(t).map(([e,r])=>r!=null&&typeof r!="function"?`${e}:${r};`:void 0).filter(Boolean).join("")}function Ke(t){return t&&typeof t=="object"&&!Array.isArray(t)}function mt(t,e,r=!1){let n=t,i=e;if(Array.isArray(i))return r&&Array.isArray(i)?[...n,...i]:[...i];let o={...n};return Ke(n)&&Ke(i)&&Object.keys(i).forEach(s=>{Ke(n[s])&&Ke(i[s])||Array.isArray(n[s])&&Array.isArray(i[s])?o[s]=mt(n[s],i[s],r):Object.assign(o,{[s]:i[s]})}),o}function Se(t){let e,r,n;if(Array.isArray(t)){for(r=Array.from({length:e=t.length});e--;)r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(e in t)e==="__proto__"?Object.defineProperty(r,e,{value:Se(t[e]),configurable:!0,enumerable:!0,writable:!0}):r[e]=(n=t[e])&&typeof n=="object"?Se(n):n;return r}return t}function or(t){return z(t[0])}function sr(t){return z(t[0])}var Ge={};function Ko(t=["-",":"]){let e=t.join("|");return Ge[e]||(Ge[e]=new RegExp(`((?:[!@<~\\w+:_-]|\\[&?>?:?\\S*\\])+?)(${e})\\(((?:[~!<>\\w\\s:/\\\\,%#.$?-]|\\[[^\\]]*?\\])+?)\\)(?!\\s*?=>)`,"gm")),Ge[e].lastIndex=0,Ge[e]}function Go(t,e=["-",":"],r=5){let n=Ko(e),i,o=t.toString(),s=new Set,l=new Map;do i=!1,o=o.replace(n,(c,f,p,h,d)=>{if(!e.includes(p))return c;i=!0,s.add(f+p);let m=d+f.length+p.length+1,x={length:c.length,items:[]};l.set(d,x);for(let S of[...h.matchAll(/\S+/g)]){let j=m+S.index,y=l.get(j)?.items;y?l.delete(j):y=[{offset:j,length:S[0].length,className:S[0]}];for(let w of y)w.className=w.className==="~"?f:w.className.replace(/^(!?)(.*)/,`$1${f}${p}$2`),x.items.push(w)}return"$".repeat(c.length)}),r-=1;while(i&&r);let a;if(typeof t=="string"){a="";let c=0;for(let[f,p]of l)a+=t.slice(c,f),a+=p.items.map(h=>h.className).join(" "),c=f+p.length;a+=t.slice(c)}else{a=t;for(let[c,f]of l)a.overwrite(c,c+f.length,f.items.map(p=>p.className).join(" "))}return{prefixes:Array.from(s),hasChanged:i,groupsByOffset:l,get expanded(){return a.toString()}}}function ar(t,e=["-",":"],r=5){let n=Go(t,e,r);return typeof t=="string"?n.expanded:t}var lr=new Set;function cr(t){lr.has(t)||(console.warn("[unocss]",t),lr.add(t))}function pr(t){return T(t).flatMap(e=>Array.isArray(e)?[e]:Object.entries(e))}var ur="_uno_resolved";async function Ho(t){let e=typeof t=="function"?await t():await t;if(ur in e)return e;e={...e},Object.defineProperty(e,ur,{value:!0,enumerable:!1});let r=e.shortcuts?pr(e.shortcuts):void 0;if(e.shortcuts=r,e.prefix||e.layer){let n=i=>{i[2]||(i[2]={});let o=i[2];o.prefix==null&&e.prefix&&(o.prefix=T(e.prefix)),o.layer==null&&e.layer&&(o.layer=e.layer)};r?.forEach(n),e.rules?.forEach(n)}return e}async function dr(t){let e=await Ho(t);if(!e.presets)return[e];let r=(await Promise.all((e.presets||[]).flatMap(T).flatMap(dr))).flat();return[e,...r]}function qo(t){if(t.length===0)return{};let e=[],r=[],n=!1,i=[],o=[],s=[];for(let a of t){if(a.pipeline===!1){n=!0;break}else a.pipeline?.include&&e.push(a.pipeline.include),a.pipeline?.exclude&&r.push(a.pipeline.exclude);a.filesystem&&i.push(a.filesystem),a.inline&&o.push(a.inline),a.plain&&s.push(a.plain)}let l={pipeline:n?!1:{include:N(fr(...e)),exclude:N(fr(...r))}};return i.length&&(l.filesystem=N(i.flat())),o.length&&(l.inline=N(o.flat())),s.length&&(l.plain=N(s.flat())),l}async function gt(t={},e={}){let r=Object.assign({},e,t),n=pt((await Promise.all((r.presets||[]).flatMap(T).flatMap(dr))).flat(),(b,g)=>b.name===g.name),i=[...n.filter(b=>b.enforce==="pre"),...n.filter(b=>!b.enforce),...n.filter(b=>b.enforce==="post")],o=[...i,r],s=[...o].reverse(),l=Object.assign({},er,...o.map(b=>b.layers));function a(b){return N(o.flatMap(g=>T(g[b]||[])))}let c=a("extractors"),f=s.find(b=>b.extractorDefault!==void 0)?.extractorDefault;f===void 0&&(f=_e),f&&!c.includes(f)&&c.unshift(f),c.sort((b,g)=>(b.order||0)-(g.order||0));let p=a("rules"),h={},d=p.length,m=p.filter(b=>or(b)?(T(b[2]?.prefix||"").forEach($=>{h[$+b[0]]=b}),!1):!0).reverse(),x=Yo(o.map(b=>b.theme)),S=a("extendTheme");for(let b of S)x=b(x)||x;let j={templates:N(o.flatMap(b=>T(b.autocomplete?.templates))),extractors:o.flatMap(b=>T(b.autocomplete?.extractors)).sort((b,g)=>(b.order||0)-(g.order||0)),shorthands:Xo(o.map(b=>b.autocomplete?.shorthands||{}))},y=a("separators");y.length||(y=[":","-"]);let w=a("content"),R=qo(w),C={mergeSelectors:!0,warn:!0,sortLayers:b=>b,...r,blocklist:a("blocklist"),presets:i,envMode:r.envMode||"build",shortcutsLayer:r.shortcutsLayer||"shortcuts",layers:l,theme:x,rules:p,rulesSize:d,rulesDynamic:m,rulesStaticMap:h,preprocess:a("preprocess"),postprocess:a("postprocess"),preflights:a("preflights"),autocomplete:j,variants:a("variants").map(nr).sort((b,g)=>(b.order||0)-(g.order||0)),shortcuts:pr(a("shortcuts")).reverse(),extractors:c,safelist:a("safelist"),separators:y,details:r.details??r.envMode==="dev",content:R,transformers:pt(a("transformers"),(b,g)=>b.name===g.name)};for(let b of o)b?.configResolved?.(C);return C}function Yo(t){return t.map(e=>e?Se(e):{}).reduce((e,r)=>mt(e,r),{})}function Xo(t){return t.reduce((e,r)=>{let n={};for(let i in r){let o=r[i];Array.isArray(o)?n[i]=`(${o.join("|")})`:n[i]=o}return{...e,...n}},{})}function fr(...t){return t.flatMap(Zo)}function Zo(t){return Array.isArray(t)?t:t?[t]:[]}var hr="66.2.1";var ee={shortcutsNoMerge:"$$symbol-shortcut-no-merge",noMerge:"$$symbol-no-merge",variants:"$$symbol-variants",parent:"$$symbol-parent",selector:"$$symbol-selector",layer:"$$symbol-layer",sort:"$$symbol-sort"},bt=class t{constructor(e={},r={}){this.userConfig=e;this.defaults=r}version=hr;events=tr();config=void 0;cache=new Map;blocked=new Set;parentOrders=new Map;activatedRules=new Set;static async create(e={},r={}){let n=new t(e,r);return n.config=await gt(n.userConfig,n.defaults),n.events.emit("config",n.config),n}async setConfig(e,r){e&&(r&&(this.defaults=r),this.userConfig=e,this.blocked.clear(),this.parentOrders.clear(),this.activatedRules.clear(),this.cache.clear(),this.config=await gt(e,this.defaults),this.events.emit("config",this.config))}async applyExtractors(e,r,n=new Set){let i={original:e,code:e,id:r,extracted:n,envMode:this.config.envMode};for(let o of this.config.extractors){let s=await o.extract?.(i);if(s)if(Ie(s)&&Ie(n))for(let l of s)n.setCount(l,n.getCount(l)+s.getCount(l));else for(let l of s)n.add(l)}return n}makeContext(e,r){let n={rawSelector:e,currentSelector:r[1],theme:this.config.theme,generator:this,symbols:ee,variantHandlers:r[2],constructCSS:(...i)=>this.constructCustomCSS(n,...i),variantMatch:r};return n}async parseToken(e,r){if(this.blocked.has(e))return;let n=`${e}${r?` ${r}`:""}`;if(this.cache.has(n))return this.cache.get(n);let i=e;for(let a of this.config.preprocess)i=a(e);if(this.isBlocked(i)){this.blocked.add(e),this.cache.set(n,null);return}let o=await this.matchVariants(e,i);if(o.every(a=>!a||this.isBlocked(a[1]))){this.blocked.add(e),this.cache.set(n,null);return}let s=async a=>{let c=this.makeContext(e,[r||a[0],a[1],a[2],a[3]]);this.config.details&&(c.variants=[...a[3]]);let f=await this.expandShortcut(c.currentSelector,c);return f?await this.stringifyShortcuts(c.variantMatch,c,f[0],f[1]):(await this.parseUtil(c.variantMatch,c))?.map(h=>this.stringifyUtil(h,c)).filter(De)},l=(await Promise.all(o.map(a=>s(a)))).flat().filter(a=>!!a);if(l?.length)return this.cache.set(n,l),l;this.cache.set(n,null)}async generate(e,r={}){let{id:n,scope:i,preflights:o=!0,safelist:s=!0,minify:l=!1,extendedInfo:a=!1}=r,c=z(e)?await this.applyExtractors(e,n,a?new ye:new Set):Array.isArray(e)?new Set(e):e;if(s){let g={generator:this,theme:this.config.theme};this.config.safelist.flatMap($=>typeof $=="function"?$(g):$).forEach($=>{let v=$.trim();v&&!c.has(v)&&c.add(v)})}let f=l?"":`
2
+ `,p=new Set([xe]),h=a?new Map:new Set,d=new Map,m={},x=Array.from(c).map(async g=>{if(h.has(g))return;let $=await this.parseToken(g);if($!=null){h instanceof Map?h.set(g,{data:$,count:Ie(c)?c.getCount(g):-1}):h.add(g);for(let v of $){let _=v[3]||"",I=v[4]?.layer;d.has(_)||d.set(_,[]),d.get(_).push(v),I&&p.add(I)}}});await Promise.all(x),await(async()=>{if(!o)return;let g={generator:this,theme:this.config.theme},$=new Set([]);this.config.preflights.forEach(({layer:v=Ue})=>{p.add(v),$.add(v)}),m=Object.fromEntries(await Promise.all(Array.from($).map(async v=>{let I=(await Promise.all(this.config.preflights.filter(H=>(H.layer||Ue)===v).map(async H=>await H.getCSS(g)))).filter(Boolean).join(f);return[v,I]})))})();let S=this.config.sortLayers(Array.from(p).sort((g,$)=>(this.config.layers[g]??0)-(this.config.layers[$]??0)||g.localeCompare($))),j={},y=this.config.outputToCssLayers,w=g=>{let $=g;return typeof y=="object"&&($=y.cssLayerName?.(g)),$===null?null:$??g},R=(g=xe)=>{if(j[g])return j[g];let $=Array.from(d).sort((I,H)=>(this.parentOrders.get(I[0])??0)-(this.parentOrders.get(H[0])??0)||I[0]?.localeCompare(H[0]||"")||0).map(([I,H])=>{let k=H.length,E=H.filter(V=>(V[4]?.layer||xe)===g).sort((V,q)=>V[0]-q[0]||(V[4]?.sort||0)-(q[4]?.sort||0)||V[5]?.currentSelector?.localeCompare(q[5]?.currentSelector??"")||V[1]?.localeCompare(q[1]||"")||V[2]?.localeCompare(q[2]||"")||0).map(([,V,q,,Le,,ut])=>[[[(V&&es(V,i))??"",Le?.sort??0]],q,!!(ut??Le?.noMerge)]);if(!E.length)return;let P=E.reverse().map(([V,q,Le],ut)=>{if(!Le&&this.config.mergeSelectors)for(let re=ut+1;re<k;re++){let X=E[re];if(X&&!X[2]&&(V&&X[0]||V==null&&X[0]==null)&&X[1]===q)return V&&X[0]&&X[0].push(...V),null}let ft=V?N(V.sort((re,X)=>re[1]-X[1]||re[0]?.localeCompare(X[0]||"")||0).map(re=>re[0]).filter(Boolean)):[];return ft.length?`${ft.join(`,${f}`)}{${q}}`:q}).filter(Boolean),M=Array.from(new Set(P)).reverse().join(f);if(!I)return M;let F=I.split(" $$ ");return`${F.join("{")}{${f}${M}${f}${"}".repeat(F.length)}`}).filter(Boolean).join(f);o&&($=[m[g],$].filter(Boolean).join(f));let v;y&&$&&(v=w(g),v!==null&&($=`@layer ${v}{${f}${$}${f}}`));let _=l?"":`/* layer: ${g}${v&&v!==g?`, alias: ${v}`:""} */${f}`;return j[g]=$?_+$:""},C=(g=S,$)=>{let v=g.filter(_=>!$?.includes(_));return[y&&v.length>0?`@layer ${v.map(w).filter(De).join(", ")};`:void 0,...v.map(_=>R(_)||"")].filter(Boolean).join(f)};return{get css(){return C()},layers:S,matched:h,getLayers:C,getLayer:R,setLayer:async(g,$)=>{let v=await $(R(g));return j[g]=v,v}}}async matchVariants(e,r){let n={rawSelector:e,theme:this.config.theme,generator:this},i=async o=>{let s=!0,[,,l,a]=o;for(;s;){s=!1;let c=o[1];for(let f of this.config.variants){if(!f.multiPass&&a.has(f))continue;let p=await f.match(c,n);if(p){if(z(p)){if(p===c)continue;p={matcher:p}}if(Array.isArray(p)){if(!p.length)continue;if(p.length===1)p=p[0];else{if(f.multiPass)throw new Error("multiPass can not be used together with array return variants");let h=p.map(d=>{let m=d.matcher??c,x=[d,...l],S=new Set(a);return S.add(f),[o[0],m,x,S]});return(await Promise.all(h.map(d=>i(d)))).flat()}}o[1]=p.matcher??c,l.unshift(p),a.add(f),s=!0;break}}if(!s)break;if(l.length>500)throw new Error(`Too many variants applied to "${e}"`)}return[o]};return await i([e,r||e,[],new Set])}applyVariants(e,r=e[4],n=e[1]){let o=r.slice().sort((c,f)=>(c.order||0)-(f.order||0)).reduceRight((c,f)=>p=>{let h=f.body?.(p.entries)||p.entries,d=Array.isArray(f.parent)?f.parent:[f.parent,void 0],m=f.selector?.(p.selector,h);return(f.handle??rs)({...p,entries:h,selector:m||p.selector,parent:d[0]||p.parent,parentOrder:d[1]||p.parentOrder,layer:f.layer||p.layer,sort:f.sort||p.sort},c)},c=>c)({prefix:"",selector:ts(n),pseudo:"",entries:e[2]}),{parent:s,parentOrder:l}=o;s!=null&&l!=null&&this.parentOrders.set(s,l);let a={selector:[o.prefix,o.selector,o.pseudo].join(""),entries:o.entries,parent:s,layer:o.layer,sort:o.sort,noMerge:o.noMerge};for(let c of this.config.postprocess)c(a);return a}constructCustomCSS(e,r,n){let i=$e(r);if(z(i))return i;let{selector:o,entries:s,parent:l}=this.applyVariants([0,n||e.rawSelector,i,void 0,e.variantHandlers]),a=`${o}{${ue(s)}}`;return l?`${l}{${a}}`:a}async parseUtil(e,r,n=!1,i){let o=z(e)?await this.matchVariants(e):[e],s=async([a,c,f])=>{this.config.details&&(r.rules=r.rules??[]);let p=this.config.rulesStaticMap[c];if(p&&p[1]&&(n||!p[2]?.internal)){this.config.details&&r.rules.push(p);let d=this.config.rules.indexOf(p),m=ht(p[1]).filter(S=>S.length),x=p[2];if(m.length)return r.generator.activatedRules.add(p),m.map(S=>z(S)?[d,S,x]:[d,a,S,x,f])}r.variantHandlers=f;let{rulesDynamic:h}=this.config;for(let d of h){let[m,x,S]=d;if(S?.internal&&!n)continue;let j=c;if(S?.prefix){let C=T(S.prefix);if(i){let b=T(i);if(!C.some(g=>b.includes(g)))continue}else{let b=C.find(g=>c.startsWith(g));if(b==null)continue;j=c.slice(b.length)}}let y=j.match(m);if(!y)continue;let w=await x(y,r);if(!w)continue;if(this.config.details&&r.rules.push(d),typeof w!="string")if(Symbol.asyncIterator in w){let C=[];for await(let b of w)b&&C.push(b);w=C}else Symbol.iterator in w&&!Array.isArray(w)&&(w=Array.from(w).filter(De));let R=ht(w).filter(C=>C.length);if(R.length){r.generator.activatedRules.add(d);let C=this.config.rules.indexOf(d);return R.map(b=>{if(z(b))return[C,b,S];let g=f,$=S;for(let v of b)v[0]===ee.variants?typeof v[1]=="function"?g=v[1](g)||g:g=[...T(v[1]),...g]:v[0]===ee.parent?g=[{parent:v[1]},...g]:v[0]===ee.selector?g=[{selector:v[1]},...g]:v[0]===ee.layer?g=[{layer:v[1]},...g]:v[0]===ee.sort?$={...$,sort:v[1]}:v[0]===ee.noMerge&&($={...$,noMerge:v[1]});return[C,a,b,$,g]})}}},l=(await Promise.all(o.map(a=>s(a)))).flat().filter(a=>!!a);if(l.length)return l}stringifyUtil(e,r){if(!e)return;if(dt(e))return[e[0],void 0,e[1],void 0,e[2],this.config.details?r:void 0,void 0];let{selector:n,entries:i,parent:o,layer:s,sort:l,noMerge:a}=this.applyVariants(e),c=ue(i);if(!c)return;let{layer:f,sort:p,...h}=e[3]??{},d={...h,layer:s??f,sort:l??p};return[e[0],n,c,o,d,this.config.details?r:void 0,a]}async expandShortcut(e,r,n=5){if(n===0)return;let i=this.config.details?c=>{r.shortcuts=r.shortcuts??[],r.shortcuts.push(c)}:ir,o,s,l,a;for(let c of this.config.shortcuts){let f=e;if(c[2]?.prefix){let h=T(c[2].prefix).find(d=>e.startsWith(d));if(h==null)continue;f=e.slice(h.length)}if(sr(c)){if(c[0]===f){o=o||c[2],s=c[1],i(c);break}}else{let p=f.match(c[0]);if(p&&(s=c[1](p,r)),s){o=o||c[2],i(c);break}}}if(s&&(l=N(T(s).filter(z).map(c=>ar(c.trim()).split(/\s+/g)).flat()),a=T(s).filter(c=>!z(c)).map(c=>({handles:[],value:c}))),!s){let c=z(e)?await this.matchVariants(e):[e];for(let f of c){let[p,h,d]=f;if(p!==h){let m=await this.expandShortcut(h,r,n-1);m&&(l=m[0].filter(z).map(x=>p.replace(h,x)),a=m[0].filter(x=>!z(x)).map(x=>({handles:[...x.handles,...d],value:x.value})))}}}if(!(!l?.length&&!a?.length))return[[await Promise.all(T(l).map(async c=>(await this.expandShortcut(c,r,n-1))?.[0]||[c])),a].flat(2).filter(c=>!!c),o]}async stringifyShortcuts(e,r,n,i={layer:this.config.shortcutsLayer}){let o=new Ne,s=(await Promise.all(N(n).map(async f=>{let p=z(f)?await this.parseUtil(f,r,!0,i.prefix):[[Number.POSITIVE_INFINITY,"{inline}",$e(f.value),void 0,f.handles]];return!p&&this.config.warn&&cr(`unmatched utility "${f}" in shortcut "${e[1]}"`),p||[]}))).flat(1).filter(Boolean).sort((f,p)=>f[0]-p[0]),[l,,a]=e,c=[];for(let f of s){if(dt(f)){c.push([f[0],void 0,f[1],void 0,f[2],r,void 0]);continue}let{selector:p,entries:h,parent:d,sort:m,noMerge:x,layer:S}=this.applyVariants(f,[...f[4],...a],l);o.getFallback(S??i.layer,new Be).getFallback(p,d,[[],f[0]])[0].push([h,!!(x??f[3]?.noMerge),m??0])}return c.concat(o.flatMap((f,p)=>f.map(([h,d],m,x)=>{let S=(y,w,R)=>{let C=Math.max(...R.map(g=>g[1])),b=R.map(g=>g[0]);return(y?[b.flat(1)]:b).map(g=>{let $=ue(g);if($)return[d,m,$,x,{...i,noMerge:w,sort:C,layer:p},r,void 0]})};return[[h.filter(([,y])=>y).map(([y,,w])=>[y,w]),!0],[h.filter(([,y])=>!y).map(([y,,w])=>[y,w]),!1]].map(([y,w])=>[...S(!1,w,y.filter(([R])=>R.some(C=>C[0]===ee.shortcutsNoMerge))),...S(!0,w,y.filter(([R])=>R.every(C=>C[0]!==ee.shortcutsNoMerge)))])}).flat(2).filter(Boolean)))}isBlocked(e){return!e||this.config.blocklist.map(r=>Array.isArray(r)?r[0]:r).some(r=>typeof r=="function"?r(e):z(r)?r===e:r.test(e))}getBlocked(e){let r=this.config.blocklist.find(n=>{let i=Array.isArray(n)?n[0]:n;return typeof i=="function"?i(e):z(i)?i===e:i.test(e)});return r?Array.isArray(r)?r:[r,void 0]:void 0}};async function gr(t,e){return await bt.create(t,e)}var br=/\s\$\$\s+/g;function Qo(t){return br.test(t)}function es(t,e){return Qo(t)?t.replace(br,e?` ${e} `:" "):e?`${e} ${t}`:t}var mr=/^\[(.+?)(~?=)"(.*)"\]$/;function ts(t){return mr.test(t)?t.replace(mr,(e,r,n,i)=>`[${We(r)}${n}"${We(i)}"]`):`.${We(t)}`}function rs(t,e){return e(t)}var xt=/^(?!.*\[[^:]+:.+\]$)((?:.+:)?!?)(.*)$/;function xr(t={}){let e=t.prefix??"un-",r=t.prefixedOnly??!1,n=t.trueToNonValued??!1,i;return{name:"attributify",match(o,{generator:s}){let l=rr(o);if(!l)return;let a=l[1];if(a.startsWith(e))a=a.slice(e.length);else if(r)return;let c=l[2],[,f="",p=c]=c.match(xt)||[];if(p==="~"||n&&p==="true"||!p)return`${f}${a}`;if(i==null){let h=s?.config?.separators?.join("|");h?i=new RegExp(`^(.*\\](?:${h}))(\\[[^\\]]+?\\])$`):i=!1}if(i){let[,h,d]=c.match(i)||[];if(d)return`${h}${f}${a}-${d}`}if(f&&p.match(/^[\d.]+$/)){let h=f.split(/([^:]*:)/g).filter(Boolean),d=h.pop()+p,m=h.join("");return[{matcher:`${f}${a}-${p}`},{matcher:`${m}${a}-${d}`}]}return`${f}${a}-${p}`}}}var ns=/(<\w[\w:.$-]*\s)((?:'[^>']*'|"[^>"]*"|`[^>`]*`|\{[^>}]*\}|[^>]*?)*)/g,is=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF-:%]+)(?:=("[^"]*|'[^']*))?/g,yr=/[\s'"`;>]+/;function wr(t){return{name:"attributify",extract:({content:e,cursor:r})=>{let n=e.matchAll(ns),i,o=0;for(let y of n){let[,w,R]=y,C=y.index+w.length;if(r>C&&r<=C+R.length){o=C,i=R;break}}if(!i)return null;let s=i.matchAll(is),l=0,a,c;for(let y of s){let[w,R,C]=y,b=o+y.index;if(r>b&&r<=b+w.length){l=b,a=R,c=C?.slice(1);break}}if(!a||a==="class"||a==="className"||a===":class")return null;let f=!!t?.prefix&&a.startsWith(t.prefix);if(t?.prefixedOnly&&!f)return null;let p=f?a.slice(t.prefix.length):a;if(c===void 0)return{extracted:p,resolveReplacement(y){let w=f?t.prefix.length:0;return{start:l+w,end:l+a.length,replacement:y}}};let h=l+a.length+2,d=yr.exec(c),m=0,x;for(;d;){let[y]=d;if(r>h+m&&r<=h+m+d.index){x=c.slice(m,m+d.index);break}m+=d.index+y.length,d=yr.exec(c.slice(m))}x===void 0&&(x=c.slice(m));let[,S="",j]=x.match(xt)||[];return{extracted:`${S}${p}-${j}`,transformSuggestions(y){return y.filter(w=>w.startsWith(`${S}${p}-`)).map(w=>S+w.slice(S.length+p.length+1))},resolveReplacement(y){return{start:m+h,end:m+h+x.length,replacement:S+y.slice(S.length+p.length+1)}}}}}}var os=["v-bind:",":"],Sr=/[\s'"`;]+/g,yt=/<[^>\s]*\s((?:'[^']*'|"[^"]*"|`[^`]*`|\{[^}]*\}|=>|[^>]*?)*)/g,ss=/(\?|(?!\d|-{2}|-\d)[\w\u00A0-\uFFFF:!%.~<-]+)=?(?:"([^"]*)"|'([^']*)'|\{([^}]*)\})?/g,wt=["placeholder","fill","opacity","stroke-opacity"];function $r(t){let e=t?.ignoreAttributes??wt,r=t?.nonValuedAttribute??!0,n=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:i}){return Array.from(i.matchAll(yt)).flatMap(o=>Array.from((o[1]||"").matchAll(ss))).flatMap(([,o,...s])=>{let l=s.filter(Boolean).join("");if(e.includes(o))return[];for(let a of os)if(o.startsWith(a)){o=o.slice(a.length);break}if(!l){if(we(o)&&r!==!1){let a=[`[${o}=""]`];return n&&a.push(`[${o}="true"]`),a}return[]}return["class","className"].includes(o)?l.split(Sr).filter(we):yt.test(l)?(yt.lastIndex=0,this.extract({code:l})):t?.prefixedOnly&&t.prefix&&!o.startsWith(t.prefix)?[]:l.split(Sr).filter(a=>!!a&&a!==":").map(a=>`[${o}~="${a}"]`)})}}}var as=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??wt;let e=[xr(t)],r=[$r(t)],n=[wr(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:e,extractors:r,options:t,autocomplete:{extractors:n},extractorDefault:t.strict?!1:void 0}},vr=as;function ls(t){let e,r,n=2166136261;for(e=0,r=t.length;e<r;e++)n^=t.charCodeAt(e),n+=(n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24);return`00000${(n>>>0).toString(36)}`.slice(-6)}function Cr(t,e,r,n){for(let i of Array.from(t.matchAll(r)))if(i!=null){let o=i[0],s=`${n}${ls(o)}`;e.set(s,o),t=t.replace(o,s)}return t}function kr(t,e){for(let[r,n]of e.entries())t=t.replaceAll(r,n);return t}var cs=/\/\/#\s*sourceMappingURL=.*\n?/g;function Rr(t){return t.includes("sourceMappingURL=")?t.replace(cs,""):t}var us=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,fs=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,ps=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function ds(t){let e=[];for(let i of t.matchAll(fs))i.index!==0&&!/^[\s'"`]/.test(t[i.index-1]??"")||e.push(i[0]);for(let i of t.matchAll(us))e.push(i[0]);let r=new Map,n="@unocss-skip-arbitrary-brackets";return t=Cr(t,r,/-\[(?!&.+?;)[^\]]*\]/g,n),t&&t.split(Fe).forEach(i=>{i.includes(n)&&(i=kr(i,r)),we(i)&&!ps.test(i)&&e.push(i)}),e}function Tr(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:t}){return ds(Rr(t))}}}function Er(t){if(t.preflight)return[{layer:"preflights",getCSS({theme:e,generator:r}){if(e.preflightBase){let n=Object.entries(e.preflightBase);if(t.preflight==="on-demand"){let i=new Set(Array.from(r.activatedRules).map(o=>o[2]?.custom?.preflightKeys).filter(Boolean).flat());n=n.filter(([o])=>i.has(o))}if(n.length>0){let i=ue(n);return t.variablePrefix!=="un-"&&(i=i.replace(/--un-/g,`--${t.variablePrefix}`)),T(e.preflightRoot??["*,::before,::after","::backdrop"]).map(s=>`${s}{${i}}`).join("")}}}}]}function ie(t,e,r){if(t==="")return;let n=t.length,i=0,o=!1,s=0;for(let l=0;l<n;l++)switch(t[l]){case e:o||(o=!0,s=l),i++;break;case r:if(--i,i<0)return;if(i===0)return[t.slice(s,l+1),t.slice(l+1),t.slice(0,s)];break}}function fe(t,e,r,n){if(t===""||(z(n)&&(n=[n]),n.length===0))return;let i=t.length,o=0;for(let s=0;s<i;s++)switch(t[s]){case e:o++;break;case r:if(--o<0)return;break;default:for(let l of n){let a=l.length;if(a&&l===t.slice(s,s+a)&&o===0)return s===0||s===i-a?void 0:[t.slice(0,s),t.slice(s+a)]}}return[t,""]}function pe(t,e,r,n="(",i=")"){r=r??10;let o=[],s=0;for(;t!=="";){if(++s>r)return;let l=fe(t,n,i,e);if(!l)return;let[a,c]=l;o.push(a),t=c}if(o.length>0)return o}var St=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"];var jr=["%alpha","<alpha-value>"],hs=new RegExp(jr.map(t=>ne(t)).join("|"),"g");function oe(t=""){let e=ms(t);if(e==null||e===!1)return;let{type:r,components:n,alpha:i}=e,o=r.toLowerCase();if(n.length!==0&&!(St.includes(o)&&![1,3].includes(n.length)))return{type:o,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof i=="string"?i.trim():i}}function ve(t){let e=t.alpha??1;return typeof e=="string"&&jr.includes(e)?1:e}function W(t,e){if(typeof t=="string")return t.replace(hs,`${e??1}`);let{components:r}=t,{alpha:n,type:i}=t;return n=e??n,i=i.toLowerCase(),["hsla","rgba"].includes(i)?`${i}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,St.includes(i)?`${i}(${r.join(" ")}${n})`:`color(${i} ${r.join(" ")}${n})`)}function ms(t){if(!t)return;let e=gs(t);if(e!=null||(e=bs(t),e!=null)||(e=xs(t),e!=null)||(e=ws(t),e!=null)||(e=Ss(t),e!=null))return e}function gs(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 r=Number.parseInt(e,16);return{type:"rgb",components:e.length===6?[r>>16&255,r>>8&255,r&255]:[r>>24&255,r>>16&255,r>>8&255],alpha:e.length===6?void 0:Math.round((r&255)/255*100)/100}}}}function bs(t){let e={rebeccapurple:[102,51,153,1]}[t];if(e!=null)return{type:"rgb",components:e.slice(0,3),alpha:e[3]}}function xs(t){let e=t.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!e)return;let[,r,n]=e,i=pe(n,",",5);if(i){if([3,4].includes(i.length))return{type:r,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}var ys=new RegExp(`^(${St.join("|")})\\((.+)\\)$`,"i");function ws(t){let e=t.match(ys);if(!e)return;let[,r,n]=e,i=Ar(`${r} ${n}`);if(i){let{alpha:o,components:[s,...l]}=i;return{type:s,components:l,alpha:o}}}function Ss(t){let e=t.match(/^color\((.+)\)$/);if(!e)return;let r=Ar(e[1]);if(r){let{alpha:n,components:[i,...o]}=r;return{type:i,components:o,alpha:n}}}function Ar(t){let e=pe(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 o=e.splice(r-2);e.push(o.join(" ")),--r}let n=pe(e[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:e};let i=n.pop();return e[r-1]=n.join("/"),{components:e,alpha:i}}var Or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zr=new Uint8Array(64),$s=new Uint8Array(128);for(let t=0;t<Or.length;t++){let e=Or.charCodeAt(t);zr[t]=e,$s[e]=t}function Ce(t,e,r){let n=e-r;n=n<0?-n<<1|1:n<<1;do{let i=n&31;n>>>=5,n>0&&(i|=32),t.write(zr[i])}while(n>0);return e}var Pr=1024*16,Vr=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(t){return Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}}:{decode(t){let e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}},$t=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Pr)}write(e){let{buffer:r}=this;r[this.pos++]=e,this.pos===Pr&&(this.out+=Vr.decode(r),this.pos=0)}flush(){let{buffer:e,out:r,pos:n}=this;return n>0?r+Vr.decode(e.subarray(0,n)):r}};function Mr(t){let e=new $t,r=0,n=0,i=0,o=0;for(let s=0;s<t.length;s++){let l=t[s];if(s>0&&e.write(59),l.length===0)continue;let a=0;for(let c=0;c<l.length;c++){let f=l[c];c>0&&e.write(44),a=Ce(e,f[0],a),f.length!==1&&(r=Ce(e,f[1],r),n=Ce(e,f[2],n),i=Ce(e,f[3],i),f.length!==4&&(o=Ce(e,f[4],o)))}}return e.flush()}var He=class t{constructor(e){this.bits=e instanceof t?e.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},qe=class t{constructor(e,r,n){this.start=e,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro=this.intro+e}clone(){let e=new t(this.start,this.end,this.original);return e.intro=this.intro,e.outro=this.outro,e.content=this.content,e.storeName=this.storeName,e.edited=this.edited,e}contains(e){return this.start<e&&e<this.end}eachNext(e){let r=this;for(;r;)e(r),r=r.next}eachPrevious(e){let r=this;for(;r;)e(r),r=r.previous}edit(e,r,n){return this.content=e,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(e){let r=e-this.start,n=this.original.slice(0,r),i=this.original.slice(r);this.original=n;let o=new t(e,this.end,i);return o.outro=this.outro,this.outro="",this.end=e,this.edited?(o.edit("",!1),this.content=""):this.content=n,o.next=this.next,o.next&&(o.next.previous=o),o.previous=this,this.next=o,o}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;let r=this.content.replace(e,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(e,""),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;let r=this.content.replace(e,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(e,""),this.outro.length)return!0}};function vs(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?t=>globalThis.btoa(unescape(encodeURIComponent(t))):typeof Buffer=="function"?t=>Buffer.from(t,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Cs=vs(),vt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=Mr(e.mappings),typeof e.x_google_ignoreList<"u"&&(this.x_google_ignoreList=e.x_google_ignoreList),typeof e.debugId<"u"&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Cs(this.toString())}};function ks(t){let e=t.split(`
3
+ `),r=e.filter(o=>/^\t+/.test(o)),n=e.filter(o=>/^ {2,}/.test(o));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let i=n.reduce((o,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,o)},1/0);return new Array(i+1).join(" ")}function Rs(t,e){let r=t.split(/[/\\]/),n=e.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let i=r.length;for(;i--;)r[i]=".."}return r.concat(n).join("/")}var Ts=Object.prototype.toString;function Es(t){return Ts.call(t)==="[object Object]"}function Lr(t){let e=t.split(`
4
+ `),r=[];for(let n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(i){let o=0,s=r.length;for(;o<s;){let c=o+s>>1;i<r[c]?s=c:o=c+1}let l=o-1,a=i-r[l];return{line:l,column:a}}}var js=/\w/,Ct=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,r,n,i){if(r.length){let o=r.length-1,s=r.indexOf(`
5
+ `,0),l=-1;for(;s>=0&&o>s;){let c=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&c.push(i),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=s,s=r.indexOf(`
6
+ `,s+1)}let a=[this.generatedCodeColumn,e,n.line,n.column];i>=0&&a.push(i),this.rawSegments.push(a),this.advance(r.slice(l+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(e,r,n,i,o){let s=r.start,l=!0,a=!1;for(;s<r.end;){if(n[s]===`
7
+ `)i.line+=1,i.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0,a=!1;else{if(this.hires||l||o.has(s)){let c=[this.generatedCodeColumn,e,i.line,i.column];this.hires==="boundary"?js.test(n[s])?a||(this.rawSegments.push(c),a=!0):(this.rawSegments.push(c),a=!1):this.rawSegments.push(c)}i.column+=1,this.generatedCodeColumn+=1,l=!1}s+=1}this.pending=null}advance(e){if(!e)return;let r=e.split(`
8
8
  `);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},ke=`
9
- `,de={insertLeft:!1,insertRight:!1,storeName:!1},Ye=class t{constructor(e,r={}){let n=new qe(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new He},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(r):this.outro+=r,this}clone(){let e=new t(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new He(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),o=new Ct(e.hires),i=Lr(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let l=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,l,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,l,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Ss(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new vt(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=$s(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){let n=/^[^\r\n]/gm;if(Cs(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let p=f[0];p<f[1];p+=1)o[p]=!0});let i=r.indentStart!==!1,s=c=>i?`${e}${c}`:(i=!0,c);this.intro=this.intro.replace(n,s);let l=0,a=this.firstChunk;for(;a;){let c=a.end;if(a.edited)o[l]||(a.content=a.content.replace(n,s),a.content.length&&(i=a.content[a.content.length-1]===`
10
- `));else for(l=a.start;l<c;){if(!o[l]){let f=this.original[l];f===`
11
- `?i=!0:f!=="\r"&&i&&(i=!1,l===a.start||(this._splitChunk(a,l),a=a.next),a.prependRight(e))}l+=1}l=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return de.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),de.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return de.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),de.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(e=e+this.offset,r=r+this.offset,n=n+this.offset,n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let o=this.byStart[e],i=this.byEnd[r],s=o.previous,l=i.next,a=this.byStart[n];if(!a&&i===this.lastChunk)return this;let c=a?a.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),c&&(c.next=o),a&&(a.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=c,i.next=a||null,c||(this.firstChunk=o),a||(this.lastChunk=i),this}overwrite(e,r,n,o){return o=o||{},this.update(e,r,n,{...o,overwrite:!o.contentOnly})}update(e,r,n,o){if(e=e+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),o===!0&&(de.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),de.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],a=this.byEnd[r];if(l){let c=l;for(;c!==a;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(n,i,!s)}else{let c=new qe(e,r,"").edit(n,i);a.next=c,c.previous=a}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(ke);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(ke),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(ke),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(ke),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(ke),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length-this.offset){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}let n="",o=this.firstChunk;for(;o&&(o.start>e||o.end<=e);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===e)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let l=i===o?e-o.start:0,a=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(l,a),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let o=Lr(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(l,a)=>a==="$"?"$":a==="&"?i[0]:+a<i.length?i[+a]:`$${a}`):r(...i,i.index,s,i.groups)}function o(i,s){let l,a=[];for(;l=i.exec(s);)a.push(l);return a}if(e.global)o(e,this.original).forEach(s=>{if(s.index!=null){let l=n(s,this.original);l!==s[0]&&this.overwrite(s.index,s.index+s[0].length,l)}});else{let i=this.original.match(e);if(i&&i.index!=null){let s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s)}}return this}_replaceString(e,r){let{original:n}=this,o=n.indexOf(e);return o!==-1&&this.overwrite(o,o+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,o=e.length;for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+o))n.slice(i,i+o)!==r&&this.overwrite(i,i+o,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var Rs=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Fr(t){return t.includes("theme(")&&t.includes(")")}function Ur(t,e,r=!0){let n=Array.from(t.toString().matchAll(Rs));if(!n.length)return t;let o=new Ye(t);for(let i of n){let s=i[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let l=Ts(s,e,r);l&&o.overwrite(i.index,i.index+i[0].length,l)}return o.toString()}function Ts(t,e,r=!0){let[n,o]=t.split("/"),s=n.trim().split(".").reduce((l,a)=>l?.[a],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(o){let l=ne(s);l&&(s=W(l,o))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function kt(t){let e=t.match(/^-?\d+\.?\d*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}function _r(t){let e=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=t[i](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(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}function oe(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${re(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i){let s=n.slice(i[0].length),l=R(e).map(a=>({matcher:s,handle:(c,f)=>f({...c,...a(c)})}));return l.length===1?l[0]:l}},autocomplete:`${t}:`}}function Re(t,e){let r;return{name:t,match(n,o){r||(r=new RegExp(`^${re(t)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function ie(t,e,r){if(e.startsWith(`${t}[`)){let[n,o]=ue(e.slice(t.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function F(t,e,r){for(let n of R(t))if(e.startsWith(n)){let o=ie(n,e,r);if(o){let[i="",s=o[1]]=F("/",o[1],r)??[];return[o[0],s,i]}for(let i of r.filter(s=>s!=="/")){let s=e.indexOf(i,n.length);if(s!==-1){let l=e.indexOf("/",n.length),a=l===-1||s<=l;return[e.slice(n.length,a?s:l),e.slice(s+i.length),a?"":e.slice(l+1,s)]}}}}var Ot={};zi(Ot,{auto:()=>As,bracket:()=>Ls,bracketOfColor:()=>Fs,bracketOfLength:()=>Us,bracketOfPosition:()=>_s,cssvar:()=>Is,degree:()=>Ds,fraction:()=>Ms,global:()=>Ns,number:()=>Vs,numberWithUnit:()=>js,percent:()=>zs,position:()=>Ks,properties:()=>Bs,px:()=>Ps,rem:()=>Os,time:()=>Ws});var D={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"]},Rt={...D,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-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"]},Tt={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"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Wr={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Dr=["x","y","z"],Ir=["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"],Te=Object.assign({},...Ir.map(t=>({[t.replace(/ /,"-")]:t})),...Ir.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),j=["inherit","initial","revert","revert-layer","unset"],Ee=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Xe=/^(var)\s*\((.+)\)(.*)/;var he=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Et=/^(-?\d*(?:\.\d+)?)$/,jt=/^(px|[sld]?v[wh])$/i,At={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Ze=/^\[(color|image|length|size|position|quoted|string):/i,Nr=/,(?![^()]*\))/g;var Es=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-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"];function K(t){return+t.toFixed(10)}function js(t){let e=t.match(he);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${K(o)}${n}`}function As(t){if(t==="auto"||t==="a")return"auto"}function Os(t){if(!t)return;if(jt.test(t))return`${At[t]}${t}`;let e=t.match(he);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${K(o)}${n}`:`${K(o/4)}rem`}function Ps(t){if(jt.test(t))return`${At[t]}${t}`;let e=t.match(he);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${K(o)}${n}`:`${K(o)}px`}function Vs(t){if(!Et.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return K(e)}function zs(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!Et.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${K(e/100)}`}function Ms(t){if(!t)return;if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${K(n*100)}%`}function Je(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,o=t.match(Ze);if(o?(e||(n=o[1]),r=t.slice(o[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let l=[];return s.replace(/var\((--.+?)[,)]/g,(a,c)=>(l.push(c),a.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function Ls(t){return Je(t)}function Fs(t){return Je(t,"color")}function Us(t){return Je(t,"length")}function _s(t){return Je(t,"position")}function Is(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${se(e)}${r?`, ${r}`:""})`}}function Ws(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${K(o)}${n}`:`${K(o)}ms`}function Ds(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${K(o)}${n}`:`${K(o)}deg`}function Ns(t){if(j.includes(t))return t}function Bs(t){if(t.split(",").every(e=>Es.includes(e)))return t}function Ks(t){if(["top","left","right","bottom","center"].includes(t))return t}var Gs=_r(Ot),u=Gs;var Br={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(j.map(t=>[t,t]))},Gr=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":Br[t]??u.bracket.cssvar.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Br).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Kr=["center","left","right","justify","start","end"],Hr=[...Kr.map(t=>[`text-${t}`,{"text-align":t}]),...[...j,...Kr].map(t=>[`text-align-${t}`,{"text-align":t}])];var Zr="$$mini-no-negative";function N(t){return([e,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return D[r].map(s=>[`${t}${s}`,i]);if(n?.startsWith("-")){let s=o.spacing?.[n.slice(1)];if(s!=null)return D[r].map(l=>[`${t}${l}`,`calc(${s} * -1)`])}}}function qr(t,e,r="colors"){let n=t[r],o=-1;for(let i of e){if(o+=1,n&&typeof n!="string"){let s=e.slice(o).join("-").replace(/(-[a-z])/g,l=>l.slice(1).toUpperCase());if(n[s])return n[s];if(n[i]){n=n[i];continue}}return}return n}function Yr(t,e,r){return qr(t,e,r)||qr(t,e,"colors")}function Vt(t,e){let[r,n]=fe(t,"[","]",["/",":"])??[];if(r!=null){let o=(r.match(Ze)??[])[1];if(o==null||o===e)return[r,n]}}function Qe(t,e,r){let n=Vt(t,"color");if(!n)return;let[o,i]=n,s=o.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=s;if(!l)return;let a,c=u.bracketOfColor(o),f=c||o;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?a=f:/^hex-[\da-fA-F]+$/.test(f)?a=`#${f.slice(4)}`:o.startsWith("$")&&(a=u.cssvar(o)),a=a||c,!a){let d=Yr(e,[o],r);typeof d=="string"&&(a=d)}let p="DEFAULT";if(!a){let d=s,h,[g]=s.slice(-1);/^\d+$/.test(g)&&(p=h=g,d=s.slice(0,-1));let x=Yr(e,d,r);typeof x=="object"?a=x[h??p]:typeof x=="string"&&!h&&(a=x)}return{opacity:i,name:l,no:p,color:a,cssColor:ne(a),alpha:u.bracket.cssvar.percent(i??"")}}function L(t,e,r,n){return([,o],{theme:i,generator:s})=>{let l=Qe(o??"",i,r);if(!l)return;let{alpha:a,color:c,cssColor:f}=l,d=s.config.envMode==="dev"&&c?` /* ${c} */`:"",h={};if(f)if(a!=null)h[t]=W(f,a)+d;else{let g=`--un-${e}-opacity`,x=W(f,`var(${g})`);x.includes(g)&&(h[g]=ve(f)),h[t]=x+d}else if(c)if(a!=null)h[t]=W(c,a)+d;else{let g=`--un-${e}-opacity`,x=W(c,`var(${g})`);x.includes(g)&&(h[g]=1),h[t]=x+d}if(n?.(h)!==!1)return h}}function et(t,e){let r=[];t=R(t);for(let n=0;n<t.length;n++){let o=pe(t[n]," ",6);if(!o||o.length<3)return t;let i=!1,s=o.indexOf("inset");s!==-1&&(o.splice(s,1),i=!0);let l="",a=o.at(-1);if(ne(o.at(0))){let c=ne(o.shift());c&&(l=`, ${W(c)}`)}else if(ne(a)){let c=ne(o.pop());c&&(l=`, ${W(c)}`)}else a&&Xe.test(a)&&(l=`, ${o.pop()}`);r.push(`${i?"inset ":""}${o.join(" ")} var(${e}${l})`)}return r}function tt(t,e,r){return t!=null&&!!Qe(t,e,r)?.color}var Xr=/[a-z]+/gi,Pt=new WeakMap;function rt({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(Pt.has(t))return Pt.get(t);let o=Object.entries(n).sort((i,s)=>Number.parseInt(i[1].replace(Xr,""))-Number.parseInt(s[1].replace(Xr,""))).map(([i,s])=>({point:i,size:s}));return Pt.set(t,o),o}function A(t,e){return j.map(r=>[`${t}-${r}`,{[e??t]:r}])}function G(t){return t!=null&&Ee.test(t)}function Jr(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),Ee.test(t)||he.test(t)}function nt(t,e,r){let n=e.split(Nr);return t||!t&&n.length===1?Wr[t].map(o=>[`--un-${r}${o}`,e]):n.map((o,i)=>[`--un-${r}-${Dr[i]}`,o])}var Qr=[[/^outline-(?:width-|size-)?(.+)$/,en,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,Hs,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...j].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function en([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function Hs(t,e){return G(u.bracket(t[1]))?en(t,e):L("outline-color","outline-color","borderColor")(t,e)}var tn=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function qs(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var rn=[[/^will-change-(.+)/,([,t])=>({"will-change":qs(t)})]];var Ve=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...j],on=[[/^(?:border|b)()(?:-(.+))?$/,Y,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Y],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Y],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Y],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border|b)-()(?:width|size)-(.+)$/,Y,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-()(?:color-)?(.+)$/,je,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,je],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,je],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,je],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,je],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,Ae,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Oe],[/^(?:border|b)-(?:style-)?()(.+)$/,Pe,{autocomplete:["(border|b)-style",`(border|b)-(${Ve.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Ve.join("|")})`,`(border|b)-<directions>-style-(${Ve.join("|")})`,`(border|b)-style-(${Ve.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Pe]];function nn(t,e,r){if(e!=null)return{[`border${r}-color`]:W(t,e)};if(r===""){let n={},o="--un-border-opacity",i=W(t,`var(${o})`);return i.includes(o)&&(n[o]=typeof t=="string"?1:ve(t)),n["border-color"]=i,n}else{let n={},o="--un-border-opacity",i=`--un-border${r}-opacity`,s=W(t,`var(${i})`);return s.includes(i)&&(n[o]=typeof t=="string"?1:ve(t),n[i]=`var(${o})`),n[`border${r}-color`]=s,n}}function Ys(t){return([,e],r)=>{let n=Qe(e,r,"borderColor");if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return nn(s,o,t);if(i)return nn(i,o,t)}}function Y([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in D&&n!=null)return D[t].map(o=>[`border${o}-width`,n])}function je([,t="",e],r){if(t in D){if(G(u.bracket(e)))return Y(["",t,e],r);if(tt(e,r.theme,"borderColor"))return Object.assign({},...D[t].map(n=>Ys(n)(["",e],r.theme)))}}function Ae([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in D&&r!=null)return D[t].map(n=>[`--un-border${n}-opacity`,r])}function Oe([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in Tt&&n!=null)return Tt[t].map(o=>[`border${o}-radius`,n])}function Pe([,t="",e]){if(Ve.includes(e)&&t in D)return D[t].map(r=>[`border${r}-style`,e])}var sn=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],Xs=/^\[url\(.+\)\]$/,Zs=/^\[(?:length|size):.+\]$/,Js=/^\[position:.+\]$/,Qs=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,ea=/^\[image:.+\]$/,an=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(Xs.test(e))return{"--un-url":u.bracket(e),"background-image":"var(--un-url)"};if(Zs.test(e)&&u.bracketOfLength(e)!=null)return{"background-size":u.bracketOfLength(e).split(" ").map(r=>u.fraction.auto.px.cssvar(r)??r).join(" ")};if((Jr(e)||Js.test(e))&&u.bracketOfPosition(e)!=null)return{"background-position":u.bracketOfPosition(e).split(" ").map(r=>u.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(Qs.test(e)||ea.test(e)){let r=u.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:u.cssvar(r))??r}}return L("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],ln=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var cn=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var un=["solid","double","dotted","dashed","wavy",...j],fn=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,pn,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,ta,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...un.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...un.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function pn([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function ta(t,e){if(G(u.bracket(t[1])))return pn(t,e);let r=L("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var dn=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.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(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["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={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function zt([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${ra[t]}gap`]:n}}var hn=[[/^(?:flex-|grid-)?gap-?()(.+)$/,zt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,zt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,zt,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function Z(t){return t.replace("col","column")}function Mt(t){return t[0]==="r"?"Row":"Column"}function na(t,e,r){let n=e[`gridAuto${Mt(t)}`]?.[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 u.bracket.cssvar.auto.rem(r)}var mn=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${Z(t)}`]:r[`grid${Mt(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${Z(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${Z(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${Z(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${Z(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${Z(t)}`]:na(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":Z(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${Z(t)}`]:r[`gridTemplate${Mt(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${Z(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${Z(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]];var ot=["auto","hidden","clip","visible","scroll","overlay",...j],gn=[[/^(?:overflow|of)-(.+)$/,([,t])=>ot.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${ot.join("|")})`,`(overflow|of)-(x|y)-(${ot.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>ot.includes(e)?{[`overflow-${t}`]:e}:void 0]];var bn=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>j.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],Ft=[["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-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],...A("justify","justify-content"),["justify-items-start",{"justify-items":"start"}],["justify-items-end",{"justify-items":"end"}],["justify-items-center",{"justify-items":"center"}],["justify-items-stretch",{"justify-items":"stretch"}],...A("justify-items"),["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"}],...A("justify-self")],xn=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ut=[["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"}],...A("content","align-content"),["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"}],...A("items","align-items"),["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"}],...A("self","align-self")],_t=[["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"}],...A("place-content"),["place-items-start",{"place-items":"start"}],["place-items-end",{"place-items":"end"}],["place-items-center",{"place-items":"center"}],["place-items-stretch",{"place-items":"stretch"}],...A("place-items"),["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"}],...A("place-self")],yn=[...Ft,...Ut,..._t].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function Lt(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function ze([,t,e],r){let n=Lt(e,r);if(n!=null&&t in Rt)return Rt[t].map(o=>[o.slice(1),n])}var wn=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Lt(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ze],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ze],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ze],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ze],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ze],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Lt(e,r)})]],$n=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...A("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...A("clear")],Sn=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],vn=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...A("box","box-sizing")];var Cn=[[/^(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}} ${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var oa=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],ia=["none","strict","content","size","inline-size","layout","style","paint"],it=" ",kn=[["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:u.bracket.cssvar.global(t)})]],Rn=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...A("backface","backface-visibility")],Tn=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...oa.map(t=>[`cursor-${t}`,{cursor:t}])],En=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:ia.includes(t)?{contain:t}:void 0]],jn=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...A("pointer-events")],An=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...A("resize")],On=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...A("select","user-select")],Pn=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...j].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Vn=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...A("content-visibility")],zn=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Mn=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],Ln=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],Fn=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Un=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...A("case","text-transform")],_n=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],In=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Wn=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var It={"--un-ring-inset":it,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},sa=Object.keys(It),Dn=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:sa},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,Nn,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,aa,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,L("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function Nn([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??u.bracket.cssvar.px(t)}}function aa(t,e){return G(u.bracket(t[1]))?Nn(t,e):L("--un-ring-color","ring","borderColor")(t,e)}var Wt={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":it,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},la=Object.keys(Wt),Bn=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,o=n.boxShadow?.[r||"DEFAULT"],i=r?u.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!tt(i,n,"shadowColor")?{"--un-shadow":et(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:L("--un-shadow-color","shadow","shadowColor")(t,e)},{custom:{preflightKeys:la},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ca={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ae(t,e){return`${t||""}${ca[e]}`}function st(t,e,r,n){let o=ae(t,e).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var Gn=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[ae(t,"w")]:st(t,"w",r,e),[ae(t,"h")]:st(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[ae(t,e)]:st(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[ae(t,e)]:st(t,e,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],n)=>({[ae(t,e)]:Kn(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[ae(t,e)]:Kn(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function Kn(t,e,r="breakpoints"){let n=rt(t,r);if(n)return n.find(o=>o.point===e)?.size}function ua(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var Hn=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":ua(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var qn=[[/^pa?()-?(.+)$/,N("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,N("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,N("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,N("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,N("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,N("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Yn=[[/^ma?()-?(.+)$/,N("margin")],[/^m-?xy()()$/,N("margin")],[/^m-?([xy])(?:-?(.+))?$/,N("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,N("margin")],[/^m-(block|inline)(?:-(.+))?$/,N("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,N("margin")]];var Xn=[[/^fill-(.+)$/,L("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,Zn,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,fa,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function Zn([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}}function fa(t,e){return G(u.bracket(t[1]))?Zn(t,e):L("stroke","stroke","borderColor")(t,e)}var at=["translate","rotate","scale"],pa=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),me=["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(" "),da=["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(" "),Dt={"--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},J=Object.keys(Dt),ro=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":Te[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(Te).join("|")})`,`origin-(${Object.keys(Te).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?Te[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,Jn,{custom:{preflightKeys:J}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Jn,{custom:{preflightKeys:J}}],[/^(?:transform-)?rotate-()(.+)$/,eo,{custom:{preflightKeys:J}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,eo,{custom:{preflightKeys:J}}],[/^(?:transform-)?skew-()(.+)$/,to,{custom:{preflightKeys:J}}],[/^(?:transform-)?skew-([xy])-(.+)$/,to,{custom:{preflightKeys:J},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Qn,{custom:{preflightKeys:J}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Qn,{custom:{preflightKeys:J},autocomplete:[`transform-(${at.join("|")})-<percent>`,`transform-(${at.join("|")})-(x|y|z)-<percent>`,`(${at.join("|")})-<percent>`,`(${at.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:me},{custom:{preflightKeys:J}}],["transform-cpu",{transform:pa},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:da},{custom:{preflightKeys:J}}],["transform-none",{transform:"none"}],...A("transform")];function Jn([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...nt(t,n,"translate"),["transform",me]]}function Qn([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...nt(t,r,"scale"),["transform",me]]}function eo([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:me}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:me}}function to([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...nt(t,r,"skew"),["transform",me]]}function no(t,e){let r;if(u.cssvar(t)!=null)r=u.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(o=>e.transitionProperty?.[o]??u.properties(o));n.every(Boolean)&&(r=n.join(","))}return r}var oo=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{if(!t&&!e)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??u.time("150")};if(t!=null){let n=no(t,r),o=r.duration?.[e||"DEFAULT"]??u.time(e||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":o}}else if(e!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[e]??u.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t],{theme:e})=>{let r=u.global(t)||no(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...j].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...A("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var io=[[/^text-(.+)$/,ma,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,uo,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,ha,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,L("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>j.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${j.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":Nt(t,e,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,t])=>({"font-stretch":u.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],so=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],ao=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],lo=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,L("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],co=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":et(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,L("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Nt(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}function uo([,t],{theme:e}){let n=R(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function ha(t,e){return G(u.bracket(t[1]))?uo(t,e):L("color","text","textColor")(t,e)}function ma([,t="base"],{theme:e}){let r=Vt(t,"length");if(!r)return;let[n,o]=r,i=R(e.fontSize?.[n]),s=o?Nt(o,e,"lineHeight"):void 0;if(i?.[0]){let[a,c,f]=i;return typeof c=="object"?{"font-size":a,...c}:{"font-size":a,"line-height":s??c??"1","letter-spacing":f?Nt(f,e,"letterSpacing"):void 0}}let l=u.bracketOfLength.rem(n);return s&&l?{"font-size":l,"line-height":s}:{"font-size":u.bracketOfLength.rem(t)}}var ga={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"},fo=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=ga[t];if(r)return{[r]:u.cssvar(e)}}]],po=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),o=n.join(":");if(!xa(e)&&/^[a-z-_]+$/i.test(r)&&ba(o)){let i=u.bracket(`[${o}]`);if(i)return{[r]:i}}}]];function ba(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function xa(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var ho=[fo,po,En,jn,Rn,bn,wn,Sn,xn,mn,$n,Yn,vn,kn,Hn,Gn,dn,ro,Tn,On,An,tn,_t,Ut,Ft,hn,yn,gn,Fn,Pn,Mn,on,an,ln,Xn,qn,Hr,ao,Ln,Gr,io,Un,_n,fn,In,so,lo,co,sn,Bn,Qr,Dn,oo,rn,Vn,zn,cn,Wn,Cn].flat(1);var mo={position:["relative","absolute","fixed","sticky","static"],globalKeyword:j};var Bt={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",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},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(Bt).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var go={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},bo={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var xo={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(",")},yo={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"]},wo={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},$o={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},So={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},vo={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Kt={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Co={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ko=Kt;var Gt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ro={...Gt},To={DEFAULT:"1px",none:"0"},Eo={DEFAULT:"1rem",none:"0",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"},jo={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Ao={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Oo={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Po={DEFAULT:"3px",none:"0"},Vo={auto:"auto"},zo={mouse:"(hover) and (pointer: fine)"};var Mo={...Dt,...Wt,...It};var ee={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Lo={auto:"auto",...ee,screen:"100vw"},Ht={none:"none",...ee,screen:"100vw"},Fo={auto:"auto",...ee,screen:"100vb"},Uo={auto:"auto",...ee,screen:"100vi"},_o={auto:"auto",...ee,screen:"100vh"},qt={none:"none",...ee,screen:"100vh"},Yt={none:"none",...ee,screen:"100vb"},Xt={none:"none",...ee,screen:"100vi"},Io={...ee};var Wo={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)"},Do={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}};var No={width:Lo,height:_o,maxWidth:Ht,maxHeight:qt,minWidth:Ht,minHeight:qt,inlineSize:Uo,blockSize:Fo,maxInlineSize:Xt,maxBlockSize:Yt,minInlineSize:Xt,minBlockSize:Yt,colors:Bt,fontFamily:xo,fontSize:yo,fontWeight:Co,breakpoints:Gt,verticalBreakpoints:Ro,borderRadius:Ao,lineHeight:vo,letterSpacing:Kt,wordSpacing:ko,boxShadow:Oo,textIndent:wo,textShadow:So,textStrokeWidth:$o,blur:go,dropShadow:bo,easing:Wo,transitionProperty:Do,lineWidth:To,spacing:Eo,duration:jo,ringWidth:Po,preflightBase:Mo,containers:Io,zIndex:Vo,media:zo};var Bo={name:"aria",match(t,e){let r=F("aria-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??e.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}},multiPass:!0};function lt(t){return{name:`${t}-aria`,match(e,r){let n=F(`${t}-aria-`,e,r.generator.config.separators);if(n){let[o,i]=n,s=u.bracket(o)??r.theme.aria?.[o]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${i}`}}}}}var Ko=[lt("group"),lt("peer"),lt("parent"),lt("previous")];var Go=/(max|min)-\[([^\]]*)\]:/;function Ho(){let t={};return{name:"breakpoints",match(e,r){if(Go.test(e)){let o=e.match(Go);return{matcher:e.replace(o[0],""),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${o[1]}-width: ${o[2]})`})}}let n=(rt(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){t[o]||(t[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let l=e.match(t[o]);if(!l)continue;let[,a]=l,c=e.slice(a.length);if(c==="container")continue;let f=a.startsWith("lt-")||a.startsWith("<")||a.startsWith("max-"),p=a.startsWith("at-")||a.startsWith("~"),d=3e3;return f?(d-=s+1,{matcher:c,handle:(h,g)=>g({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (max-width: ${kt(i)})`,parentOrder:d})}):(d+=s+1,p&&s<n.length-1?{matcher:c,handle:(h,g)=>g({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${kt(n[s+1][1])})`,parentOrder:d})}:{matcher:c,handle:(h,g)=>g({...h,parent:`${h.parent?`${h.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var qo=[oe("*",t=>({selector:`${t.selector} > *`}))];function Me(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let o=n.generator.config.separators,i=ie(`${t}-`,r,o);if(!i){for(let l of o)if(r.startsWith(`${t}${l}`)){i=["",r.slice(t.length+l.length)];break}if(!i)return}let s=u.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:l=>`${l}${e}${s}`}},multiPass:!0}}var Yo=[Me("all"," "),Me("children",">"),Me("next","+"),Me("sibling","+"),Me("siblings","~")];var Xo={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=F("@",t,e.generator.config.separators);if(r){let[n,o,i]=r,s=u.bracket(n),l;if(s?l=u.numberWithUnit(s):l=e.theme.containers?.[n]??"",l){let a=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return i&&(a+=1e3),{matcher:o,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${l})`,parentOrder:a})}}}},multiPass:!0};function Zo(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[oe("dark",R(e).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`}))),oe("light",R(r).map(n=>o=>({prefix:`${n} $$ ${o.prefix}`})))]}return[Re("dark","@media (prefers-color-scheme: dark)"),Re("light","@media (prefers-color-scheme: light)")]}var Jo={name:"data",match(t,e){let r=F("data-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??e.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}},multiPass:!0};function ct(t){return{name:`${t}-data`,match(e,r){let n=F(`${t}-data-`,e,r.generator.config.separators);if(n){let[o,i,s]=n,l=u.bracket(o)??r.theme.data?.[o]??"";if(l)return{matcher:`${t}-[[data-${l}]]${s?`/${s}`:""}:${i}`}}}}}var Qo=[ct("group"),ct("peer"),ct("parent"),ct("previous")];var ei=[oe("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),oe("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function ti(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=e.match(t);if(o?n=e.slice(o[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),i)}}}}var ri=Re("print","@media print"),ni={name:"media",match(t,e){let r=F("media-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??"";if(i===""&&(i=e.theme.media?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var oi={name:"selector",match(t,e){let r=ie("selector-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},ii={name:"layer",match(t,e){let r=F("layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??n;if(i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},si={name:"uno-layer",match(t,e){let r=F("uno-layer-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},ai={name:"scope",match(t,e){let r=ie("scope-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},li={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=ue(t,"[","]")??[];if(!(r&&n))return;let o;for(let l of e.generator.config.separators)if(n.startsWith(l)){o=n.slice(l.length);break}if(o==null)return;let i=u.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(l,a){let c=s?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return a({...l,...c})}}},multiPass:!0},ci={name:"theme-variables",match(t,e){if(Fr(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse(Ur(JSON.stringify(r.entries),e.theme))})}}}};var ui=/^-?[0-9.]+(?:[a-z]+|%)?$/,fi=/-?[0-9.]+(?:[a-z]+|%)?/,ya=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function wa(t){let e=t.match(Ee)||t.match(Xe);if(e){let[r,n]=fe(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var $a=/\b(hue-rotate)\s*(\(.*)/;function Sa(t){let e=t.match($a);if(e){let[r,n]=fe(e[2],"(",")"," ")??[];if(r){let o=ui.test(r.slice(1,-1))?r.replace(fi,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${r} * -1))`;return`${e[1]}${o}${n?` ${n}`:""}`}}}var pi={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===Zr))return;let r=!1;return e.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||ya.some(l=>l.test(n[0])))return;let i=wa(o);if(i){n[1]=i,r=!0;return}let s=Sa(o);if(s){n[1]=s,r=!0;return}ui.test(o)&&(n[1]=o.replace(fi,l=>l.startsWith("-")?l.slice(1):`-${l}`),r=!0)}),r?e:[]}}}};var gi="__pseudo_placeholder__",ge=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${gi})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),bi=Object.keys(ge),be=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),xi=Object.keys(be),va=["not","is","where","has"],yi=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Zt=Object.entries(ge).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Jt=Object.entries(be).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),le=va.join("|"),di=Object.keys(yi).sort((t,e)=>e.length-t.length).join("|");function Ca(t,e,r){let n=new RegExp(`^(${re(e)}:)(\\S+)${re(r)}\\1`),o,i,s,l,a=p=>{let d=ie(`${t}-`,p,[]);if(!d)return;let[h,g]=d,x=u.bracket(h);if(x==null)return;let w=g.split(o,1)?.[0]??"",T=`${e}${se(w)}`;return[w,p.slice(p.length-(g.length-w.length-1)),x.includes("&")?x.replace(/&/g,T):`${T}${x}`]},c=p=>{let d=p.match(i)||p.match(s);if(!d)return;let[h,g,x]=d,w=d[3]??"",T=ge[x]||be[x]||`:${x}`;return g&&(T=`:${g}(${T})`),[w,p.slice(h.length),`${e}${se(w)}${T}`,x]},f=p=>{let d=p.match(l);if(!d)return;let[h,g,x]=d,w=d[3]??"",T=`:${g}(${x})`;return[w,p.slice(h.length),`${e}${se(w)}${T}`]};return{name:`pseudo:${t}`,match(p,d){if(o&&i&&s||(o=new RegExp(`(?:${d.generator.config.separators.join("|")})`),i=new RegExp(`^${t}-(?:(?:(${le})-)?(${Zt}))(?:(/[\\w-]+))?(?:${d.generator.config.separators.join("|")})`),s=new RegExp(`^${t}-(?:(?:(${le})-)?(${Jt}))(?:(/[\\w-]+))?(?:${d.generator.config.separators.filter(y=>y!=="-").join("|")})`),l=new RegExp(`^${t}-(?:(${le})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${d.generator.config.separators.filter(y=>y!=="-").join("|")})`)),!p.startsWith(t))return;let h=a(p)||c(p)||f(p);if(!h)return;let[g,x,w,T=""]=h;return{matcher:x,handle:(y,S)=>S({...y,prefix:`${w}${r}${y.prefix}`.replace(n,"$1$2:"),sort:bi.indexOf(T)??xi.indexOf(T)})}},multiPass:!0}}var ka=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],hi=Object.entries(ge).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),mi=Object.entries(be).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function wi(){let t,e,r;return[{name:"pseudo",match(n,o){t&&e||(t=new RegExp(`^(${hi})(?:-(\\[\\w+\\]))?(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${mi})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e);if(i){let s=ge[i[1]]||be[i[1]]||`:${i[1]}`;if(i[2]){let a=u.bracket(i[2]);a&&(s=s.replace(gi,a))}let l=bi.indexOf(i[1]);return l===-1&&(l=xi.indexOf(i[1])),l===-1&&(l=void 0),{matcher:n.slice(i[0].length),handle:(a,c)=>{let f=s.includes("::")&&!ka.includes(s)?{pseudo:`${a.pseudo}${s}`}:{selector:`${a.selector}${s}`};return c({...a,...f,sort:l,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${hi}|${mi}):`},{name:"pseudo:multi",match(n,o){r||(r=new RegExp(`^(${di})(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return yi[i[1]].map(l=>({matcher:n.slice(i[0].length),handle:(a,c)=>c({...a,pseudo:`${a.pseudo}${l}`})}))},multiPass:!1,autocomplete:`(${di}):`}]}function $i(){let t,e,r;return{match(n,o){t&&e||(t=new RegExp(`^(${le})-(${Zt})(?:${o.generator.config.separators.join("|")})`),e=new RegExp(`^(${le})-(${Jt})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${le})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(t)||n.match(e)||n.match(r);if(i){let s=i[1],a=ue(i[2],"[","]")?u.bracket(i[2]):ge[i[2]]||be[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:c=>`${c}:${s}(${a})`}}},multiPass:!0,autocomplete:`(${le})-(${Zt}|${Jt}):`}}function Si(t={}){let e=!!t?.attributifyPseudo,r=t?.prefix??"";r=(Array.isArray(r)?r:[r]).filter(Boolean)[0]??"";let n=(o,i)=>Ca(o,e?`[${r}${o}=""]`:`.${r}${o}`,i);return[n("group"," "),n("peer","~"),n("parent",">"),n("previous","+"),n("group-aria"," "),n("peer-aria","~"),n("parent-aria",">"),n("previous-aria","+")]}var Ra=/(part-\[(.+)\]:)(.+)/,vi={match(t){let e=t.match(Ra);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};var Ci={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var ki={name:"supports",match(t,e){let r=F("supports-",t,e.generator.config.separators);if(r){let[n,o]=r,i=u.bracket(n)??"";if(i===""&&(i=e.theme.supports?.[n]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function Ri(t){return[Bo,Jo,ii,oi,si,pi,Ci,ti(),ki,ri,ni,Ho(),...Yo,...wi(),$i(),...Si(t),vi,...Zo(t),...ei,ai,...qo,Xo,li,...Qo,...Ko,ci]}var Ta=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:No,rules:ho,variants:Ri(t),options:t,prefix:t.prefix,postprocess:Ea(t.variablePrefix),preflights:Er(t),extractorDefault:t.arbitraryVariants===!1?void 0:Tr(),autocomplete:{shorthands:mo}}),Ti=Ta;function Ea(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function ja(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Ei(t){return t.charAt(0).toUpperCase()+t.slice(1)}function ji(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var Ai=["Webkit","Moz","ms"];function Oi(t){let e={};function r(n){let o=e[n];if(o)return o;let i=ja(n);if(i!=="filter"&&i in t)return e[n]=ji(i);i=Ei(i);for(let s=0;s<Ai.length;s++){let l=`${Ai[s]}${i}`;if(l in t)return e[n]=ji(Ei(l))}return n}return({entries:n})=>n.forEach(o=>{o[0].startsWith("--")||(o[0]=r(o[0]))})}function Pi(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function Qt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,o=e.__unocss||{},i=Object.assign({},t,o.runtime),s=i.defaults||{},l=i.cloakAttribute??"un-cloak";i.autoPrefix&&(s.postprocess=R(s.postprocess)).unshift(Oi(r.createElement("div").style)),i.configResolved?.(o,s);let a=await gr(o,s),c=C=>i.inject?i.inject(C):n().prepend(C),f=()=>i.rootElement?i.rootElement():r.body,p=new Map,d=!0,h=new Set,g,x,w=[],T=()=>new Promise(C=>{w.push(C),x!=null&&clearTimeout(x),x=setTimeout(()=>O().then(()=>{let E=w;w=[],E.forEach(P=>P())}),0)});function y(C,E=!1){if(C.nodeType!==1)return;let P=C;P.hasAttribute(l)&&P.removeAttribute(l),E&&P.querySelectorAll(`[${l}]`).forEach(M=>{M.removeAttribute(l)})}function S(C,E){let P=p.get(C);if(!P)if(P=r.createElement("style"),P.setAttribute("data-unocss-runtime-layer",C),p.set(C,P),E==null)c(P);else{let M=S(E),U=M.parentNode;U?U.insertBefore(P,M.nextSibling):c(P)}return P}async function O(){let C=[...h],E=await a.generate(C);return E.layers.reduce((M,U)=>(S(U,M).innerHTML=E.getLayer(U)??"",U),void 0),C.filter(M=>!E.matched.has(M)).forEach(M=>h.delete(M)),{...E,getStyleElement:M=>p.get(M),getStyleElements:()=>p}}async function k(C){let E=h.size;await a.applyExtractors(C,void 0,h),E!==h.size&&await T()}async function b(C=f()){let E=C&&C.outerHTML;E&&(await k(`${E} ${Pi(E)}`),y(n()),y(C,!0))}let m=new MutationObserver(C=>{d||C.forEach(async E=>{if(E.target.nodeType!==1)return;let P=E.target;for(let M of p)if(P===M[1])return;if(E.type==="childList")E.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let U=M;g&&!g(U)||(await k(U.outerHTML),y(U))});else{if(g&&!g(P))return;if(E.attributeName!==l){let M=Array.from(P.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),U=`<${P.tagName.toLowerCase()} ${M}>`;await k(U)}y(P)}})}),$=!1;function v(){if($)return;let C=i.observer?.target?i.observer.target():f();C&&(m.observe(C,{childList:!0,subtree:!0,attributes:!0,attributeFilter:i.observer?.attributeFilter}),$=!0)}function _(){i.bypassDefined&&Aa(a.blocked),b(),v()}function I(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",_):_()}let H=e.__unocss_runtime=e.__unocss_runtime={version:a.version,uno:a,async extract(C){z(C)||(C.forEach(E=>h.add(E)),C=""),await k(C)},extractAll:b,inspect(C){g=C},toggleObserver(C){C===void 0?d=!d:d=!!C,!$&&!d&&I()},update:O,presets:e.__unocss_runtime?.presets??{}};i.ready?.(H)!==!1&&(d=!1,I())}function Aa(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(o=>o.selectorText?.split(/,/g)||[]).forEach(o=>{o&&(o=o.trim(),o.startsWith(".")&&(o=o.slice(1)),t.add(o))})}catch{continue}}return t}Qt({defaults:{presets:[Ti(),vr()]}});})();
9
+ `,de={insertLeft:!1,insertRight:!1,storeName:!1},Ye=class t{constructor(e,r={}){let n=new qe(0,e.length,e);Object.defineProperties(this,{original:{writable:!0,value:e},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new He},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList},offset:{writable:!0,value:r.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.outro+=e,this}appendLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.appendLeft(r):this.intro+=r,this}appendRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.appendRight(r):this.outro+=r,this}clone(){let e=new t(this.original,{filename:this.filename,offset:this.offset}),r=this.firstChunk,n=e.firstChunk=e.lastSearchedChunk=r.clone();for(;r;){e.byStart[n.start]=n,e.byEnd[n.end]=n;let i=r.next,o=i&&i.clone();o&&(n.next=o,o.previous=n,n=o),r=i}return e.lastChunk=n,this.indentExclusionRanges&&(e.indentExclusionRanges=this.indentExclusionRanges.slice()),e.sourcemapLocations=new He(this.sourcemapLocations),e.intro=this.intro,e.outro=this.outro,e}generateDecodedMap(e){e=e||{};let r=0,n=Object.keys(this.storedNames),i=new Ct(e.hires),o=Lr(this.original);return this.intro&&i.advance(this.intro),this.firstChunk.eachNext(s=>{let l=o(s.start);s.intro.length&&i.advance(s.intro),s.edited?i.addEdit(r,s.content,l,s.storeName?n.indexOf(s.original):-1):i.addUneditedChunk(r,s,this.original,l,this.sourcemapLocations),s.outro.length&&i.advance(s.outro)}),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?Rs(e.file||"",e.source):e.file||""],sourcesContent:e.includeContent?[this.original]:void 0,names:n,mappings:i.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(e){return new vt(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ks(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(e,r){let n=/^[^\r\n]/gm;if(Es(e)&&(r=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||" "),e==="")return this;r=r||{};let i={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(f=>{for(let p=f[0];p<f[1];p+=1)i[p]=!0});let o=r.indentStart!==!1,s=c=>o?`${e}${c}`:(o=!0,c);this.intro=this.intro.replace(n,s);let l=0,a=this.firstChunk;for(;a;){let c=a.end;if(a.edited)i[l]||(a.content=a.content.replace(n,s),a.content.length&&(o=a.content[a.content.length-1]===`
10
+ `));else for(l=a.start;l<c;){if(!i[l]){let f=this.original[l];f===`
11
+ `?o=!0:f!=="\r"&&o&&(o=!1,l===a.start||(this._splitChunk(a,l),a=a.next),a.prependRight(e))}l+=1}l=a.end,a=a.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(e,r){return de.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),de.insertLeft=!0),this.appendLeft(e,r)}insertRight(e,r){return de.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),de.insertRight=!0),this.prependRight(e,r)}move(e,r,n){if(e=e+this.offset,r=r+this.offset,n=n+this.offset,n>=e&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(e),this._split(r),this._split(n);let i=this.byStart[e],o=this.byEnd[r],s=i.previous,l=o.next,a=this.byStart[n];if(!a&&o===this.lastChunk)return this;let c=a?a.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),c&&(c.next=i),a&&(a.previous=o),i.previous||(this.firstChunk=o.next),o.next||(this.lastChunk=i.previous,this.lastChunk.next=null),i.previous=c,o.next=a||null,c||(this.firstChunk=i),a||(this.lastChunk=o),this}overwrite(e,r,n,i){return i=i||{},this.update(e,r,n,{...i,overwrite:!i.contentOnly})}update(e,r,n,i){if(e=e+this.offset,r=r+this.offset,typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(r>this.original.length)throw new Error("end is out of bounds");if(e===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(e),this._split(r),i===!0&&(de.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),de.storeName=!0),i={storeName:!0});let o=i!==void 0?i.storeName:!1,s=i!==void 0?i.overwrite:!1;if(o){let c=this.original.slice(e,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[e],a=this.byEnd[r];if(l){let c=l;for(;c!==a;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1)}l.edit(n,o,!s)}else{let c=new qe(e,r,"").edit(n,o);a.next=c,c.previous=a}return this}prepend(e){if(typeof e!="string")throw new TypeError("outro content must be a string");return this.intro=e+this.intro,this}prependLeft(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byEnd[e];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(e,r){if(e=e+this.offset,typeof r!="string")throw new TypeError("inserted content must be a string");this._split(e);let n=this.byStart[e];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(e,r){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}if(e===r)return this;if(e<0||r>this.original.length)throw new Error("Character is out of bounds");if(e>r)throw new Error("end must be greater than start");this._split(e),this._split(r);let n=this.byStart[e];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let e=this.lastChunk;do{if(e.outro.length)return e.outro[e.outro.length-1];if(e.content.length)return e.content[e.content.length-1];if(e.intro.length)return e.intro[e.intro.length-1]}while(e=e.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let e=this.outro.lastIndexOf(ke);if(e!==-1)return this.outro.substr(e+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(ke),e!==-1)return n.outro.substr(e+1)+r;r=n.outro+r}if(n.content.length>0){if(e=n.content.lastIndexOf(ke),e!==-1)return n.content.substr(e+1)+r;r=n.content+r}if(n.intro.length>0){if(e=n.intro.lastIndexOf(ke),e!==-1)return n.intro.substr(e+1)+r;r=n.intro+r}}while(n=n.previous);return e=this.intro.lastIndexOf(ke),e!==-1?this.intro.substr(e+1)+r:this.intro+r}slice(e=0,r=this.original.length-this.offset){if(e=e+this.offset,r=r+this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;r<0;)r+=this.original.length}let n="",i=this.firstChunk;for(;i&&(i.start>e||i.end<=e);){if(i.start<r&&i.end>=r)return n;i=i.next}if(i&&i.edited&&i.start!==e)throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);let o=i;for(;i;){i.intro&&(o!==i||i.start===e)&&(n+=i.intro);let s=i.start<r&&i.end>=r;if(s&&i.edited&&i.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let l=o===i?e-i.start:0,a=s?i.content.length+r-i.end:i.content.length;if(n+=i.content.slice(l,a),i.outro&&(!s||i.end===r)&&(n+=i.outro),s)break;i=i.next}return n}snip(e,r){let n=this.clone();return n.remove(0,e),n.remove(r,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let r=this.lastSearchedChunk,n=e>r.end;for(;r;){if(r.contains(e))return this._splitChunk(r,e);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(e,r){if(e.edited&&e.content.length){let i=Lr(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${i.line}:${i.column} \u2013 "${e.original}")`)}let n=e.split(r);return this.byEnd[r]=e,this.byStart[r]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,r=this.firstChunk;for(;r;)e+=r.toString(),r=r.next;return e+this.outro}isEmpty(){let e=this.firstChunk;do if(e.intro.length&&e.intro.trim()||e.content.length&&e.content.trim()||e.outro.length&&e.outro.trim())return!1;while(e=e.next);return!0}length(){let e=this.firstChunk,r=0;do r+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let r=new RegExp((e||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let i=n.end,o=n.trimEnd(r);if(n.end!==i&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let r=new RegExp("^"+(e||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let i=n.end,o=n.trimStart(r);if(n.end!==i&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),o)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,r){function n(o,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(l,a)=>a==="$"?"$":a==="&"?o[0]:+a<o.length?o[+a]:`$${a}`):r(...o,o.index,s,o.groups)}function i(o,s){let l,a=[];for(;l=o.exec(s);)a.push(l);return a}if(e.global)i(e,this.original).forEach(s=>{if(s.index!=null){let l=n(s,this.original);l!==s[0]&&this.overwrite(s.index,s.index+s[0].length,l)}});else{let o=this.original.match(e);if(o&&o.index!=null){let s=n(o,this.original);s!==o[0]&&this.overwrite(o.index,o.index+o[0].length,s)}}return this}_replaceString(e,r){let{original:n}=this,i=n.indexOf(e);return i!==-1&&this.overwrite(i,i+e.length,r),this}replace(e,r){return typeof e=="string"?this._replaceString(e,r):this._replaceRegexp(e,r)}_replaceAllString(e,r){let{original:n}=this,i=e.length;for(let o=n.indexOf(e);o!==-1;o=n.indexOf(e,o+i))n.slice(o,o+i)!==r&&this.overwrite(o,o+i,r);return this}replaceAll(e,r){if(typeof e=="string")return this._replaceAllString(e,r);if(!e.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(e,r)}};var As=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Ur(t){return t.includes("theme(")&&t.includes(")")}function Fr(t,e,r=!0){let n=Array.from(t.toString().matchAll(As));if(!n.length)return t;let i=new Ye(t);for(let o of n){let s=o[2];if(!s)throw new Error("theme() expect exact one argument, but got 0");let l=Os(s,e,r);l&&i.overwrite(o.index,o.index+o[0].length,l)}return i.toString()}function Os(t,e,r=!0){let[n,i]=t.split("/"),s=n.trim().split(".").reduce((l,a)=>l?.[a],e);if(typeof s=="object"&&(s=s.DEFAULT),typeof s=="string"){if(i){let l=oe(s);l&&(s=W(l,i))}return s}else if(r)throw new Error(`theme of "${t}" did not found`)}function kt(t){let e=t.match(/^-?\d+\.?\d*/)?.[0]||"",r=t.slice(e.length);if(r==="px"){let n=Number.parseFloat(e)-.1;return Number.isNaN(n)?t:`${n}${r}`}return`calc(${t} - 0.1px)`}function _r(t){let e=function(n){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let s=t[o](n);if(s!=null)return s}};function r(n,i){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(i),n}for(let n of Object.keys(t))Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){return r(this,n)}});return e}var Br="__pseudo_placeholder__",he=Object.fromEntries([["first-letter","::first-letter"],["first-line","::first-line"],"any-link","link","visited","target",["open","[open]"],"default","checked","indeterminate","placeholder-shown","autofill","optional","required","valid","invalid","user-valid","user-invalid","in-range","out-of-range","read-only","read-write","empty","focus-within","hover","focus","focus-visible","active","enabled","disabled","popover-open","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],["nth",`:nth-child(${Br})`],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["file","::file-selector-button"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),Nr=Object.keys(he),me=Object.fromEntries([["backdrop","::backdrop"]].map(t=>Array.isArray(t)?t:[t,`:${t}`])),Kr=Object.keys(me),Ps=["not","is","where","has"],Gr=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),Rt=Object.entries(he).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Tt=Object.entries(me).filter(([,t])=>!t.startsWith("::")).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),le=Ps.join("|"),Ir=Object.keys(Gr).sort((t,e)=>e.length-t.length).join("|"),Vs=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Wr=Object.entries(he).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|"),Dr=Object.entries(me).map(([t])=>t).sort((t,e)=>e.length-t.length).join("|");function zs(t,e,r,n){let{h:i,variantGetBracket:o}=n,s=new RegExp(`^(${ne(e)}:)(\\S+)${ne(r)}\\1`),l,a,c,f,p=m=>{let x=o(`${t}-`,m,[]);if(!x)return;let[S,j]=x,y=i.bracket(S);if(y==null)return;let w=j.split(l,1)?.[0]??"",R=`${e}${ae(w)}`;return[w,m.slice(m.length-(j.length-w.length-1)),y.includes("&")?y.replace(/&/g,R):`${R}${y}`]},h=m=>{let x=m.match(a)||m.match(c);if(!x)return;let[S,j,y]=x,w=x[3]??"",R=he[y]||me[y]||`:${y}`;return j&&(R=`:${j}(${R})`),[w,m.slice(S.length),`${e}${ae(w)}${R}`,y]},d=m=>{let x=m.match(f);if(!x)return;let[S,j,y]=x,w=x[3]??"",R=`:${j}(${y})`;return[w,m.slice(S.length),`${e}${ae(w)}${R}`]};return{name:`pseudo:${t}`,match(m,x){if(l&&a&&c||(l=new RegExp(`(?:${x.generator.config.separators.join("|")})`),a=new RegExp(`^${t}-(?:(?:(${le})-)?(${Rt}))(?:(/[\\w-]+))?(?:${x.generator.config.separators.join("|")})`),c=new RegExp(`^${t}-(?:(?:(${le})-)?(${Tt}))(?:(/[\\w-]+))?(?:${x.generator.config.separators.filter(C=>C!=="-").join("|")})`),f=new RegExp(`^${t}-(?:(${le})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${x.generator.config.separators.filter(C=>C!=="-").join("|")})`)),!m.startsWith(t))return;let S=p(m)||h(m)||d(m);if(!S)return;let[j,y,w,R=""]=S;return{matcher:y,handle:(C,b)=>b({...C,prefix:`${w}${r}${C.prefix}`.replace(s,"$1$2:"),sort:Nr.indexOf(R)??Kr.indexOf(R)})}},multiPass:!0}}function Hr(t){let{h:e}=t,r,n,i;return[{name:"pseudo",match(o,s){r&&n||(r=new RegExp(`^(${Wr})(?:-(\\d+|\\[\\w+\\]))?(?:${s.generator.config.separators.join("|")})`),n=new RegExp(`^(${Dr})(?:${s.generator.config.separators.filter(a=>a!=="-").join("|")})`));let l=o.match(r)||o.match(n);if(l){let a=he[l[1]]||me[l[1]]||`:${l[1]}`;if(l[2]){let f;l[2].startsWith("[")&&l[2].endsWith("]")?f=e.bracket(l[2]):f=l[2],f&&(a=a.replace(Br,f))}let c=Nr.indexOf(l[1]);return c===-1&&(c=Kr.indexOf(l[1])),c===-1&&(c=void 0),{matcher:o.slice(l[0].length),handle:(f,p)=>{let h=a.includes("::")&&!Vs.includes(a)?{pseudo:`${f.pseudo}${a}`}:{selector:`${f.selector}${a}`};return p({...f,...h,sort:c,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Wr}|${Dr}):`},{name:"pseudo:multi",match(o,s){i||(i=new RegExp(`^(${Ir})(?:${s.generator.config.separators.join("|")})`));let l=o.match(i);if(l)return Gr[l[1]].map(c=>({matcher:o.slice(l[0].length),handle:(f,p)=>p({...f,pseudo:`${f.pseudo}${c}`})}))},multiPass:!1,autocomplete:`(${Ir}):`}]}function qr(t){let{getBracket:e,h:r}=t,n,i,o;return{match(s,l){n&&i||(n=new RegExp(`^(${le})-(${Rt})(?:${l.generator.config.separators.join("|")})`),i=new RegExp(`^(${le})-(${Tt})(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`),o=new RegExp(`^(${le})-(\\[.+\\])(?:${l.generator.config.separators.filter(c=>c!=="-").join("|")})`));let a=s.match(n)||s.match(i)||s.match(o);if(a){let c=a[1],p=e(a[2],"[","]")?r.bracket(a[2]):he[a[2]]||me[a[2]]||`:${a[2]}`;return{matcher:s.slice(a[0].length),selector:h=>`${h}:${c}(${p})`}}},multiPass:!0,autocomplete:`(${le})-(${Rt}|${Tt}):`}}function Yr(t,e){let r=!!t?.attributifyPseudo,n=t?.prefix??"";n=(Array.isArray(n)?n:[n]).filter(Boolean)[0]??"";let i=(o,s)=>zs(o,r?`[${n}${o}=""]`:`.${n}${o}`,s,e);return[i("group"," "),i("peer","~"),i("parent",">"),i("previous","+"),i("group-aria"," "),i("peer-aria","~"),i("parent-aria",">"),i("previous-aria","+")]}var Ms=/(part-\[(.+)\]:)(.+)/;function Xr(){return{match(t){let e=t.match(Ms);if(e){let r=`part(${e[2]})`;return{matcher:t.slice(e[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0}}function se(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${ne(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o){let s=n.slice(o[0].length),l=T(e).map(a=>({matcher:s,handle:(c,f)=>f({...c,...a(c)})}));return l.length===1?l[0]:l}},autocomplete:`${t}:`}}function Re(t,e){let r;return{name:t,match(n,i){r||(r=new RegExp(`^${ne(t)}(?:${i.generator.config.separators.join("|")})`));let o=n.match(r);if(o)return{matcher:n.slice(o[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${e}`})}},autocomplete:`${t}:`}}function Z(t,e,r){if(e.startsWith(`${t}[`)){let[n,i]=ie(e.slice(t.length),"[","]")??[];if(n&&i){for(let o of r)if(i.startsWith(o))return[n,i.slice(o.length),o];return[n,i,""]}}}function U(t,e,r){for(let n of T(t))if(e.startsWith(n)){let i=Z(n,e,r);if(i){let[o="",s=i[1]]=U("/",i[1],r)??[];return[i[0],s,o]}for(let o of r.filter(s=>s!=="/")){let s=e.indexOf(o,n.length);if(s!==-1){let l=e.indexOf("/",n.length),a=l===-1||s<=l;return[e.slice(n.length,a?s:l),e.slice(s+o.length),a?"":e.slice(l+1,s)]}}}}var Vt={};Fo(Vt,{auto:()=>Fs,bracket:()=>Ns,bracketOfColor:()=>Ks,bracketOfLength:()=>Gs,bracketOfPosition:()=>Hs,cssvar:()=>qs,degree:()=>Xs,fraction:()=>Bs,global:()=>Zs,number:()=>Ws,numberWithUnit:()=>Us,percent:()=>Ds,position:()=>Qs,properties:()=>Js,px:()=>Is,rem:()=>_s,time:()=>Ys});var D={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"]},Et={...D,s:["-inset-inline-start"],start:["-inset-inline-start"],e:["-inset-inline-end"],end:["-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"]},jt={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"],s:["-end-start","-start-start"],is:["-end-start","-start-start"],e:["-start-end","-end-end"],ie:["-start-end","-end-end"],ss:["-start-start"],"bs-is":["-start-start"],"is-bs":["-start-start"],se:["-start-end"],"bs-ie":["-start-end"],"ie-bs":["-start-end"],es:["-end-start"],"be-is":["-end-start"],"is-be":["-end-start"],ee:["-end-end"],"be-ie":["-end-end"],"ie-be":["-end-end"]},Jr={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Qr=["x","y","z"],Zr=["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"],Te=Object.assign({},...Zr.map(t=>({[t.replace(/ /,"-")]:t})),...Zr.map(t=>({[t.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:t}))),A=["inherit","initial","revert","revert-layer","unset"],Ee=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Xe=/^(var)\s*\((.+)\)(.*)/;var ge=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,At=/^(-?\d*(?:\.\d+)?)$/,Ot=/^(px|[sld]?v[wh])$/i,Pt={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Ze=/^\[(color|image|length|size|position|quoted|string):/i,en=/,(?![^()]*\))/g;var Ls=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","border","background-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"];function K(t){return+t.toFixed(10)}function Us(t){let e=t.match(ge);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(n&&!Number.isNaN(i))return`${K(i)}${n}`}function Fs(t){if(t==="auto"||t==="a")return"auto"}function _s(t){if(!t)return;if(Ot.test(t))return`${Pt[t]}${t}`;let e=t.match(ge);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${K(i)}${n}`:`${K(i/4)}rem`}function Is(t){if(Ot.test(t))return`${Pt[t]}${t}`;let e=t.match(ge);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return n?`${K(i)}${n}`:`${K(i)}px`}function Ws(t){if(!At.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return K(e)}function Ds(t){if(t.endsWith("%")&&(t=t.slice(0,-1)),!At.test(t))return;let e=Number.parseFloat(t);if(!Number.isNaN(e))return`${K(e/100)}`}function Bs(t){if(!t)return;if(t==="full")return"100%";let[e,r]=t.split("/"),n=Number.parseFloat(e)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${K(n*100)}%`}function Je(t,e){if(t&&t.startsWith("[")&&t.endsWith("]")){let r,n,i=t.match(Ze);if(i?(e||(n=i[1]),r=t.slice(i[0].length,-1)):r=t.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let o=0;for(let s of r)if(s==="[")o+=1;else if(s==="]"&&(o-=1,o<0))return;if(o)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let l=[];return s.replace(/var\((--.+?)[,)]/g,(a,c)=>(l.push(c),a.replace(c,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function Ns(t){return Je(t)}function Ks(t){return Je(t,"color")}function Gs(t){return Je(t,"length")}function Hs(t){return Je(t,"position")}function qs(t){if(/^\$[^\s'"`;{}]/.test(t)){let[e,r]=t.slice(1).split(",");return`var(--${ae(e)}${r?`, ${r}`:""})`}}function Ys(t){let e=t.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0&&!n?"0s":n?`${K(i)}${n}`:`${K(i)}ms`}function Xs(t){let e=t.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!e)return;let[,r,n]=e,i=Number.parseFloat(r);if(!Number.isNaN(i))return i===0?"0":n?`${K(i)}${n}`:`${K(i)}deg`}function Zs(t){if(A.includes(t))return t}function Js(t){if(t.split(",").every(e=>Ls.includes(e)))return t}function Qs(t){if(["top","left","right","bottom","center"].includes(t))return t}var ea=_r(Vt),u=ea;var tn={mid:"middle",base:"baseline",btm:"bottom",baseline:"baseline",top:"top",start:"top",middle:"middle",bottom:"bottom",end:"bottom","text-top":"text-top","text-bottom":"text-bottom",sub:"sub",super:"super",...Object.fromEntries(A.map(t=>[t,t]))},nn=[[/^(?:vertical|align|v)-(.+)$/,([,t])=>({"vertical-align":tn[t]??u.bracket.cssvar.numberWithUnit(t)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(tn).join("|")})`,"(vertical|align|v)-<percentage>"]}]],rn=["center","left","right","justify","start","end"],on=[...rn.map(t=>[`text-${t}`,{"text-align":t}]),...[...A,...rn].map(t=>[`text-align-${t}`,{"text-align":t}])];var cn="$$mini-no-negative";function B(t){return([e,r,n],{theme:i})=>{let o=i.spacing?.[n||"DEFAULT"]??u.bracket.cssvar.global.auto.fraction.rem(n);if(o!=null)return D[r].map(s=>[`${t}${s}`,o]);if(n?.startsWith("-")){let s=i.spacing?.[n.slice(1)];if(s!=null)return D[r].map(l=>[`${t}${l}`,`calc(${s} * -1)`])}}}function sn(t,e,r="colors"){let n=t[r],i=-1;for(let o of e){if(i+=1,n&&typeof n!="string"){let s=e.slice(i).join("-").replace(/(-[a-z])/g,l=>l.slice(1).toUpperCase());if(n[s])return n[s];if(n[o]){n=n[o];continue}}return}return n}function an(t,e,r){return sn(t,e,r)||sn(t,e,"colors")}function Mt(t,e){let[r,n]=fe(t,"[","]",["/",":"])??[];if(r!=null){let i=(r.match(Ze)??[])[1];if(i==null||i===e)return[r,n]}}function Qe(t,e,r){let n=Mt(t,"color");if(!n)return;let[i,o]=n,s=i.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[l]=s;if(!l)return;let a,c=u.bracketOfColor(i),f=c||i;if(u.numberWithUnit(f))return;if(/^#[\da-f]+$/i.test(f)?a=f:/^hex-[\da-fA-F]+$/.test(f)?a=`#${f.slice(4)}`:i.startsWith("$")&&(a=u.cssvar(i)),a=a||c,!a){let h=an(e,[i],r);typeof h=="string"&&(a=h)}let p="DEFAULT";if(!a){let h=s,d,[m]=s.slice(-1);/^\d+$/.test(m)&&(p=d=m,h=s.slice(0,-1));let x=an(e,h,r);typeof x=="object"?a=x[d??p]:typeof x=="string"&&!d&&(a=x)}return{opacity:o,name:l,no:p,color:a,cssColor:oe(a),alpha:u.bracket.cssvar.percent(o??"")}}function L(t,e,r,n){return([,i],{theme:o,generator:s})=>{let l=Qe(i??"",o,r);if(!l)return;let{alpha:a,color:c,cssColor:f}=l,h=s.config.envMode==="dev"&&c?` /* ${c} */`:"",d={};if(f)if(a!=null)d[t]=W(f,a)+h;else{let m=`--un-${e}-opacity`,x=W(f,`var(${m})`);x.includes(m)&&(d[m]=ve(f)),d[t]=x+h}else if(c)if(a!=null)d[t]=W(c,a)+h;else{let m=`--un-${e}-opacity`,x=W(c,`var(${m})`);x.includes(m)&&(d[m]=1),d[t]=x+h}if(n?.(d)!==!1)return d}}function et(t,e){let r=[];t=T(t);for(let n=0;n<t.length;n++){let i=pe(t[n]," ",6);if(!i||i.length<3)return t;let o=!1,s=i.indexOf("inset");s!==-1&&(i.splice(s,1),o=!0);let l="",a=i.at(-1);if(oe(i.at(0))){let c=oe(i.shift());c&&(l=`, ${W(c)}`)}else if(oe(a)){let c=oe(i.pop());c&&(l=`, ${W(c)}`)}else a&&Xe.test(a)&&(l=`, ${i.pop()}`);r.push(`${o?"inset ":""}${i.join(" ")} var(${e}${l})`)}return r}function tt(t,e,r){return t!=null&&!!Qe(t,e,r)?.color}var ln=/[a-z]+/gi,zt=new WeakMap;function rt({theme:t,generator:e},r="breakpoints"){let n=e?.userConfig?.theme?.[r]||t[r];if(!n)return;if(zt.has(t))return zt.get(t);let i=Object.entries(n).sort((o,s)=>Number.parseInt(o[1].replace(ln,""))-Number.parseInt(s[1].replace(ln,""))).map(([o,s])=>({point:o,size:s}));return zt.set(t,i),i}function O(t,e){return A.map(r=>[`${t}-${r}`,{[e??t]:r}])}function G(t){return t!=null&&Ee.test(t)}function un(t){return t[0]==="["&&t.slice(-1)==="]"&&(t=t.slice(1,-1)),Ee.test(t)||ge.test(t)}function nt(t,e,r){let n=e.split(en);return t||!t&&n.length===1?Jr[t].map(i=>[`--un-${r}${i}`,e]):n.map((i,o)=>[`--un-${r}-${Qr[o]}`,i])}var fn=[[/^outline-(?:width-|size-)?(.+)$/,pn,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,ta,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,t],{theme:e})=>({"outline-offset":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...A].map(t=>[`outline-${t}`,{"outline-style":t}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function pn([,t],{theme:e}){return{"outline-width":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function ta(t,e){return G(u.bracket(t[1]))?pn(t,e):L("outline-color","outline-color","borderColor")(t,e)}var dn=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function ra(t){return u.properties.auto.global(t)??{contents:"contents",scroll:"scroll-position"}[t]}var hn=[[/^will-change-(.+)/,([,t])=>({"will-change":ra(t)})]];var Ve=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...A],gn=[[/^(?:border|b)()(?:-(.+))?$/,Y,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Y],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Y],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Y],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border|b)-()(?:width|size)-(.+)$/,Y,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,Y],[/^(?:border|b)-()(?:color-)?(.+)$/,je,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,je],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,je],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,je],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,je],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,Ae,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,Ae],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,Ae],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Oe,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Oe],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Oe],[/^(?:border|b)-(?:style-)?()(.+)$/,Pe,{autocomplete:["(border|b)-style",`(border|b)-(${Ve.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${Ve.join("|")})`,`(border|b)-<directions>-style-(${Ve.join("|")})`,`(border|b)-style-(${Ve.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,Pe],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,Pe]];function mn(t,e,r){if(e!=null)return{[`border${r}-color`]:W(t,e)};if(r===""){let n={},i="--un-border-opacity",o=W(t,`var(${i})`);return o.includes(i)&&(n[i]=typeof t=="string"?1:ve(t)),n["border-color"]=o,n}else{let n={},i="--un-border-opacity",o=`--un-border${r}-opacity`,s=W(t,`var(${o})`);return s.includes(o)&&(n[i]=typeof t=="string"?1:ve(t),n[o]=`var(${i})`),n[`border${r}-color`]=s,n}}function na(t){return([,e],r)=>{let n=Qe(e,r,"borderColor");if(!n)return;let{alpha:i,color:o,cssColor:s}=n;if(s)return mn(s,i,t);if(o)return mn(o,i,t)}}function Y([,t="",e],{theme:r}){let n=r.lineWidth?.[e||"DEFAULT"]??u.bracket.cssvar.global.px(e||"1");if(t in D&&n!=null)return D[t].map(i=>[`border${i}-width`,n])}function je([,t="",e],r){if(t in D){if(G(u.bracket(e)))return Y(["",t,e],r);if(tt(e,r.theme,"borderColor"))return Object.assign({},...D[t].map(n=>na(n)(["",e],r.theme)))}}function Ae([,t="",e]){let r=u.bracket.percent.cssvar(e);if(t in D&&r!=null)return D[t].map(n=>[`--un-border${n}-opacity`,r])}function Oe([,t="",e],{theme:r}){let n=r.borderRadius?.[e||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(e||"1");if(t in jt&&n!=null)return jt[t].map(i=>[`border${i}-radius`,n])}function Pe([,t="",e]){if(Ve.includes(e)&&t in D)return D[t].map(r=>[`border${r}-style`,e])}var bn=[[/^op(?:acity)?-?(.+)$/,([,t])=>({opacity:u.bracket.percent.cssvar(t)})]],ia=/^\[url\(.+\)\]$/,oa=/^\[(?:length|size):.+\]$/,sa=/^\[position:.+\]$/,aa=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,la=/^\[image:.+\]$/,xn=[[/^bg-(.+)$/,(...t)=>{let e=t[0][1];if(ia.test(e))return{"--un-url":u.bracket(e),"background-image":"var(--un-url)"};if(oa.test(e)&&u.bracketOfLength(e)!=null)return{"background-size":u.bracketOfLength(e).split(" ").map(r=>u.fraction.auto.px.cssvar(r)??r).join(" ")};if((un(e)||sa.test(e))&&u.bracketOfPosition(e)!=null)return{"background-position":u.bracketOfPosition(e).split(" ").map(r=>u.position.fraction.auto.px.cssvar(r)??r).join(" ")};if(aa.test(e)||la.test(e)){let r=u.bracket(e);if(r)return{"background-image":(r.startsWith("http")?`url(${r})`:u.cssvar(r))??r}}return L("background-color","bg","backgroundColor")(...t)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,t])=>({"--un-bg-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],yn=[[/^color-scheme-(\w+)$/,([,t])=>({"color-scheme":t})]];var wn=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,t,e])=>({"container-type":e??"inline-size","container-name":t})]];var Sn=["solid","double","dotted","dashed","wavy",...A],$n=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,t])=>({"text-decoration-line":t}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,vn,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,t])=>({"text-decoration-thickness":t}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,ca,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-line-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,t],{theme:e})=>({"text-underline-offset":e.lineWidth?.[t]??u.auto.bracket.cssvar.global.px(t)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Sn.map(t=>[`underline-${t}`,{"text-decoration-style":t}]),...Sn.map(t=>[`decoration-${t}`,{"text-decoration-style":t}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function vn([,t],{theme:e}){return{"text-decoration-thickness":e.lineWidth?.[t]??u.bracket.cssvar.global.px(t)}}function ca(t,e){if(G(u.bracket(t[1])))return vn(t,e);let r=L("text-decoration-color","line","borderColor")(t,e);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}}var Cn=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,t])=>({flex:u.bracket(t)!=null?u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" "):u.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(?:-(.*))?$/,([,t=""])=>({"flex-shrink":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,t=""])=>({"flex-grow":u.bracket.cssvar.number(t)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,t],{theme:e})=>({"flex-basis":e.spacing?.[t]??u.bracket.cssvar.auto.fraction.rem(t)}),{autocomplete:["flex-basis-$spacing","basis-$spacing"]}],["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 ua={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function Lt([,t="",e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.global.rem(e);if(n!=null)return{[`${ua[t]}gap`]:n}}var kn=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Lt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Lt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Lt,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function J(t){return t.replace("col","column")}function Ut(t){return t[0]==="r"?"Row":"Column"}function fa(t,e,r){let n=e[`gridAuto${Ut(t)}`]?.[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 u.bracket.cssvar.auto.rem(r)}var Rn=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,t,e],{theme:r})=>({[`grid-${J(t)}`]:r[`grid${Ut(t)}`]?.[e]??u.bracket.cssvar.auto(e)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,t,e])=>{if(e==="full")return{[`grid-${J(t)}`]:"1/-1"};let r=u.bracket.number(e);if(r!=null)return{[`grid-${J(t)}`]:`span ${r}/span ${r}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,t,e])=>({[`grid-${J(t)}-start`]:u.bracket.cssvar(e)??e})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,t,e])=>({[`grid-${J(t)}-end`]:u.bracket.cssvar(e)??e}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-auto-${J(t)}`]:fa(t,r,e)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,t])=>({"grid-auto-flow":u.bracket.cssvar(t)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,t])=>({"grid-auto-flow":J(t).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,t,e],{theme:r})=>({[`grid-template-${J(t)}`]:r[`gridTemplate${Ut(t)}`]?.[e]??u.bracket.cssvar(e)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,t,e])=>({[`grid-template-${J(t)}`]:`repeat(auto-fill,minmax(${e},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,t,e])=>({[`grid-template-${J(t)}`]:`repeat(${e},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,t,e])=>t!=null?{"grid-template-areas":u.cssvar(e)??e.split("-").map(r=>`"${u.bracket(r)}"`).join(" ")}:{"grid-area":u.bracket.cssvar(e)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}],["grid-rows-subgrid",{"grid-template-rows":"subgrid"}],["grid-cols-subgrid",{"grid-template-columns":"subgrid"}]];var it=["auto","hidden","clip","visible","scroll","overlay",...A],Tn=[[/^(?:overflow|of)-(.+)$/,([,t])=>it.includes(t)?{overflow:t}:void 0,{autocomplete:[`(overflow|of)-(${it.join("|")})`,`(overflow|of)-(x|y)-(${it.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,t,e])=>it.includes(e)?{[`overflow-${t}`]:e}:void 0]];var En=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,t])=>({position:t}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,t])=>A.includes(t)?{position:t}:void 0],[/^(?:position-|pos-)?(static)$/,([,t])=>({position:t})]],_t=[["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-stretch",{"justify-content":"stretch"}],["justify-left",{"justify-content":"left"}],["justify-right",{"justify-content":"right"}],["justify-center-safe",{"justify-content":"safe center"}],["justify-end-safe",{"justify-content":"safe flex-end"}],["justify-normal",{"justify-content":"normal"}],...O("justify","justify-content"),["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-items-center-safe",{"justify-items":"safe center"}],["justify-items-end-safe",{"justify-items":"safe flex-end"}],...O("justify-items"),["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"}],["justify-self-baseline",{"justify-self":"baseline"}],["justify-self-center-safe",{"justify-self":"safe center"}],["justify-self-end-safe",{"justify-self":"safe flex-end"}],...O("justify-self")],jn=[[/^order-(.+)$/,([,t])=>({order:u.bracket.cssvar.number(t)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],It=[["content-center",{"align-content":"center"}],["content-start",{"align-content":"flex-start"}],["content-end",{"align-content":"flex-end"}],["content-between",{"align-content":"space-between"}],["content-around",{"align-content":"space-around"}],["content-evenly",{"align-content":"space-evenly"}],["content-baseline",{"align-content":"baseline"}],["content-center-safe",{"align-content":"safe center"}],["content-end-safe",{"align-content":"safe flex-end"}],["content-stretch",{"align-content":"stretch"}],["content-normal",{"align-content":"normal"}],...O("content","align-content"),["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"}],["items-baseline-last",{"align-items":"last baseline"}],["items-center-safe",{"align-items":"safe center"}],["items-end-safe",{"align-items":"safe flex-end"}],...O("items","align-items"),["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"}],["self-baseline-last",{"align-self":"last baseline"}],["self-center-safe",{"align-self":"safe center"}],["self-end-safe",{"align-self":"safe flex-end"}],...O("self","align-self")],Wt=[["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-content-baseline",{"place-content":"baseline"}],["place-content-center-safe",{"place-content":"safe center"}],["place-content-end-safe",{"place-content":"safe flex-end"}],...O("place-content"),["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-items-baseline",{"place-items":"baseline"}],["place-items-center-safe",{"place-items":"safe center"}],["place-items-end-safe",{"place-items":"safe flex-end"}],...O("place-items"),["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"}],["place-self-center-safe",{"place-self":"safe center"}],["place-self-end-safe",{"place-self":"safe flex-end"}],...O("place-self")],An=[..._t,...It,...Wt].flatMap(([t,e])=>[[`flex-${t}`,e],[`grid-${t}`,e]]);function Ft(t,{theme:e}){return e.spacing?.[t]??u.bracket.cssvar.global.auto.fraction.rem(t)}function ze([,t,e],r){let n=Ft(e,r);if(n!=null&&t in Et)return Et[t].map(i=>[i.slice(1),n])}var On=[[/^(?:position-|pos-)?inset-(.+)$/,([,t],e)=>({inset:Ft(t,e)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,ze],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,ze],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,ze],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,ze],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,ze],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,t,e],r)=>({[t]:Ft(e,r)})]],Pn=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...O("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-start",{clear:"inline-start"}],["clear-end",{clear:"inline-end"}],["clear-none",{clear:"none"}],...O("clear")],Vn=[[/^(?:position-|pos-)?z([\d.]+)$/,([,t])=>({"z-index":u.number(t)})],[/^(?:position-|pos-)?z-(.+)$/,([,t],{theme:e})=>({"z-index":e.zIndex?.[t]??u.bracket.cssvar.global.auto.number(t)}),{autocomplete:"z-<num>"}]],zn=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...O("box","box-sizing")];var Mn=[[/^(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}} ${e({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var pa=["auto","default","none","context-menu","help","pointer","progress","wait","cell","crosshair","text","vertical-text","alias","copy","move","no-drop","not-allowed","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out"],da=["none","strict","content","size","inline-size","layout","style","paint"],ot=" ",Ln=[["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:u.bracket.cssvar.global(t)})]],Un=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...O("backface","backface-visibility")],Fn=[[/^cursor-(.+)$/,([,t])=>({cursor:u.bracket.cssvar.global(t)})],...pa.map(t=>[`cursor-${t}`,{cursor:t}])],_n=[[/^contain-(.*)$/,([,t])=>u.bracket(t)!=null?{contain:u.bracket(t).split(" ").map(e=>u.cssvar.fraction(e)??e).join(" ")}:da.includes(t)?{contain:t}:void 0]],In=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...O("pointer-events")],Wn=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...O("resize")],Dn=[["select-auto",{"-webkit-user-select":"auto","user-select":"auto"}],["select-all",{"-webkit-user-select":"all","user-select":"all"}],["select-text",{"-webkit-user-select":"text","user-select":"text"}],["select-none",{"-webkit-user-select":"none","user-select":"none"}],...O("select","user-select")],Bn=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,t])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...A].includes(t)?{"white-space":t}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],Nn=[[/^intrinsic-size-(.+)$/,([,t])=>({"contain-intrinsic-size":u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...O("content-visibility")],Kn=[[/^content-(.+)$/,([,t])=>({content:u.bracket.cssvar(t)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],Gn=[["break-normal",{"overflow-wrap":"normal","word-break":"normal"}],["break-words",{"overflow-wrap":"break-word"}],["break-all",{"word-break":"break-all"}],["break-keep",{"word-break":"keep-all"}],["break-anywhere",{"overflow-wrap":"anywhere"}]],Hn=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],qn=[["truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-truncate",{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}],["text-ellipsis",{"text-overflow":"ellipsis"}],["text-clip",{"text-overflow":"clip"}]],Yn=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...O("case","text-transform")],Xn=[["italic",{"font-style":"italic"}],["not-italic",{"font-style":"normal"}],["font-italic",{"font-style":"italic"}],["font-not-italic",{"font-style":"normal"}],["oblique",{"font-style":"oblique"}],["not-oblique",{"font-style":"normal"}],["font-oblique",{"font-style":"oblique"}],["font-not-oblique",{"font-style":"normal"}]],Zn=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Jn=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]];var Dt={"--un-ring-inset":ot,"--un-ring-offset-width":"0px","--un-ring-offset-color":"#fff","--un-ring-width":"0px","--un-ring-color":"rgb(147 197 253 / 0.5)","--un-shadow":"0 0 rgb(0 0 0 / 0)"},ha=Object.keys(Dt),Qn=[[/^ring(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.ringWidth?.[t||"DEFAULT"]??u.px(t||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{custom:{preflightKeys:ha},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,ei,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,t],{theme:e})=>({"--un-ring-offset-width":e.lineWidth?.[t]??u.bracket.cssvar.px(t)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,ma,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,L("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,t])=>({"--un-ring-offset-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function ei([,t],{theme:e}){return{"--un-ring-width":e.ringWidth?.[t]??u.bracket.cssvar.px(t)}}function ma(t,e){return G(u.bracket(t[1]))?ei(t,e):L("--un-ring-color","ring","borderColor")(t,e)}var Bt={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":ot,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},ga=Object.keys(Bt),ti=[[/^shadow(?:-(.+))?$/,(t,e)=>{let[,r]=t,{theme:n}=e,i=n.boxShadow?.[r||"DEFAULT"],o=r?u.bracket.cssvar(r):void 0;return(i!=null||o!=null)&&!tt(o,n,"shadowColor")?{"--un-shadow":et(i||o,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:L("--un-shadow-color","shadow","shadowColor")(t,e)},{custom:{preflightKeys:ga},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,t])=>({"--un-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var ba={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ce(t,e){return`${t||""}${ba[e]}`}function st(t,e,r,n){let i=ce(t,e).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),o=r[i]?.[n];if(o!=null)return o;switch(n){case"fit":case"max":case"min":return`${n}-content`}return u.bracket.cssvar.global.auto.fraction.rem(n)}var ni=[[/^size-(min-|max-)?(.+)$/,([,t,e],{theme:r})=>({[ce(t,"w")]:st(t,"w",r,e),[ce(t,"h")]:st(t,"h",r,e)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,t,e,r],{theme:n})=>({[ce(t,e)]:st(t,e,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,t,e,r],{theme:n})=>({[ce(t,e)]:st(t,e,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,t,e,r],n)=>({[ce(t,e)]:ri(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,t,e,r],n)=>({[ce(t,e)]:ri(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function ri(t,e,r="breakpoints"){let n=rt(t,r);if(n)return n.find(i=>i.point===e)?.size}function xa(t){if(/^\d+\/\d+$/.test(t))return t;switch(t){case"square":return"1/1";case"video":return"16/9"}return u.bracket.cssvar.global.auto.number(t)}var ii=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,t])=>({"aspect-ratio":xa(t)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var oi=[[/^pa?()-?(.+)$/,B("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,B("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,B("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,B("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,B("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],si=[[/^ma?()-?(.+)$/,B("margin")],[/^m-?xy()()$/,B("margin")],[/^m-?([xy])(?:-?(.+))?$/,B("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,B("margin")],[/^m-(block|inline)(?:-(.+))?$/,B("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,B("margin")]];var ai=[[/^fill-(.+)$/,L("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,t])=>({"--un-fill-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,li,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,t])=>({"stroke-dasharray":u.bracket.cssvar.number(t)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,t],{theme:e})=>({"stroke-dashoffset":e.lineWidth?.[t]??u.bracket.cssvar.px.numberWithUnit(t)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,ya,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function li([,t],{theme:e}){return{"stroke-width":e.lineWidth?.[t]??u.bracket.cssvar.fraction.px.number(t)}}function ya(t,e){return G(u.bracket(t[1]))?li(t,e):L("stroke","stroke","borderColor")(t,e)}var at=["translate","rotate","scale"],wa=["translateX(var(--un-translate-x))","translateY(var(--un-translate-y))","rotate(var(--un-rotate))","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))"].join(" "),be=["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(" "),Sa=["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(" "),Nt={"--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},Q=Object.keys(Nt),di=[[/^(?:transform-)?origin-(.+)$/,([,t])=>({"transform-origin":Te[t]??u.bracket.cssvar(t)}),{autocomplete:[`transform-origin-(${Object.keys(Te).join("|")})`,`origin-(${Object.keys(Te).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,t])=>{let e=u.bracket.cssvar.px.numberWithUnit(t);if(e!=null)return{"-webkit-perspective":e,perspective:e}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,t])=>{let e=u.bracket.cssvar(t)??(t.length>=3?Te[t]:void 0);if(e!=null)return{"-webkit-perspective-origin":e,"perspective-origin":e}}],[/^(?:transform-)?translate-()(.+)$/,ci,{custom:{preflightKeys:Q}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,ci,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-()(.+)$/,fi,{custom:{preflightKeys:Q}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,fi,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-()(.+)$/,pi,{custom:{preflightKeys:Q}}],[/^(?:transform-)?skew-([xy])-(.+)$/,pi,{custom:{preflightKeys:Q},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,ui,{custom:{preflightKeys:Q}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,ui,{custom:{preflightKeys:Q},autocomplete:[`transform-(${at.join("|")})-<percent>`,`transform-(${at.join("|")})-(x|y|z)-<percent>`,`(${at.join("|")})-<percent>`,`(${at.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:be},{custom:{preflightKeys:Q}}],["transform-cpu",{transform:wa},{custom:{preflightKeys:["--un-translate-x","--un-translate-y","--un-rotate","--un-rotate-z","--un-skew-x","--un-skew-y","--un-scale-x","--un-scale-y"]}}],["transform-gpu",{transform:Sa},{custom:{preflightKeys:Q}}],["transform-none",{transform:"none"}],...O("transform")];function ci([,t,e],{theme:r}){let n=r.spacing?.[e]??u.bracket.cssvar.fraction.rem(e);if(n!=null)return[...nt(t,n,"translate"),["transform",be]]}function ui([,t,e]){let r=u.bracket.cssvar.fraction.percent(e);if(r!=null)return[...nt(t,r,"scale"),["transform",be]]}function fi([,t="",e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return t?{"--un-rotate":0,[`--un-rotate-${t}`]:r,transform:be}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:be}}function pi([,t,e]){let r=u.bracket.cssvar.degree(e);if(r!=null)return[...nt(t,r,"skew"),["transform",be]]}function hi(t,e){let r;if(u.cssvar(t)!=null)r=u.cssvar(t);else{t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1));let n=t.split(",").map(i=>e.transitionProperty?.[i]??u.properties(i));n.every(Boolean)&&(r=n.join(","))}return r}var mi=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,t,e],{theme:r})=>{if(!t&&!e)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.DEFAULT??u.time("150")};if(t!=null){let n=hi(t,r),i=r.duration?.[e||"DEFAULT"]??u.time(e||"150");if(n)return{"transition-property":n,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":i}}else if(e!=null)return{"transition-property":r.transitionProperty?.DEFAULT,"transition-timing-function":r.easing?.DEFAULT,"transition-duration":r.duration?.[e]??u.time(e)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,t],{theme:e})=>({"transition-duration":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,t],{theme:e})=>({"transition-delay":e.duration?.[t||"DEFAULT"]??u.bracket.cssvar.time(t)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,t],{theme:e})=>({"transition-timing-function":e.easing?.[t||"DEFAULT"]??u.bracket.cssvar(t)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,t],{theme:e})=>{let r=u.global(t)||hi(t,e);if(r)return{"transition-property":r}},{autocomplete:[`transition-property-(${[...A].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...O("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]];var gi=[[/^text-(.+)$/,va,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,Si,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,$a,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,L("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,t])=>A.includes(t)?{color:t}:void 0,{autocomplete:`(text|color|c)-(${A.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,t],{theme:e})=>({"font-weight":e.fontWeight?.[t]||u.bracket.global.number(t)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,t],{theme:e})=>({"line-height":Kt(t,e,"lineHeight")}),{autocomplete:"(leading|lh|line-height)-$lineHeight"}],["font-synthesis-weight",{"font-synthesis":"weight"}],["font-synthesis-style",{"font-synthesis":"style"}],["font-synthesis-small-caps",{"font-synthesis":"small-caps"}],["font-synthesis-none",{"font-synthesis":"none"}],[/^font-synthesis-(.+)$/,([,t])=>({"font-synthesis":u.bracket.cssvar.global(t)})],[/^(?:font-)?tracking-(.+)$/,([,t],{theme:e})=>({"letter-spacing":e.letterSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,t],{theme:e})=>({"word-spacing":e.wordSpacing?.[t]||u.bracket.cssvar.global.rem(t)}),{autocomplete:"word-spacing-$wordSpacing"}],["font-stretch-normal",{"font-stretch":"normal"}],["font-stretch-ultra-condensed",{"font-stretch":"ultra-condensed"}],["font-stretch-extra-condensed",{"font-stretch":"extra-condensed"}],["font-stretch-condensed",{"font-stretch":"condensed"}],["font-stretch-semi-condensed",{"font-stretch":"semi-condensed"}],["font-stretch-semi-expanded",{"font-stretch":"semi-expanded"}],["font-stretch-expanded",{"font-stretch":"expanded"}],["font-stretch-extra-expanded",{"font-stretch":"extra-expanded"}],["font-stretch-ultra-expanded",{"font-stretch":"ultra-expanded"}],[/^font-stretch-(.+)$/,([,t])=>({"font-stretch":u.bracket.cssvar.fraction.global(t)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,t],{theme:e})=>({"font-family":e.fontFamily?.[t]||u.bracket.cssvar.global(t)}),{autocomplete:"font-$fontFamily"}]],bi=[[/^tab(?:-(.+))?$/,([,t])=>{let e=u.bracket.cssvar.global.number(t||"4");if(e!=null)return{"-moz-tab-size":e,"-o-tab-size":e,"tab-size":e}}]],xi=[[/^indent(?:-(.+))?$/,([,t],{theme:e})=>({"text-indent":e.textIndent?.[t||"DEFAULT"]||u.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:"indent-$textIndent"}]],yi=[[/^text-stroke(?:-(.+))?$/,([,t],{theme:e})=>({"-webkit-text-stroke-width":e.textStrokeWidth?.[t||"DEFAULT"]||u.bracket.cssvar.px(t)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,L("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-stroke-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],wi=[[/^text-shadow(?:-(.+))?$/,([,t],{theme:e})=>{let r=e.textShadow?.[t||"DEFAULT"];return r!=null?{"--un-text-shadow":et(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":u.bracket.cssvar.global(t)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,L("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,t])=>({"--un-text-shadow-opacity":u.bracket.percent.cssvar(t)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function Kt(t,e,r){return e[r]?.[t]||u.bracket.cssvar.global.rem(t)}function Si([,t],{theme:e}){let n=T(e.fontSize?.[t])?.[0]??u.bracket.cssvar.global.rem(t);if(n!=null)return{"font-size":n}}function $a(t,e){return G(u.bracket(t[1]))?Si(t,e):L("color","text","textColor")(t,e)}function va([,t="base"],{theme:e}){let r=Mt(t,"length");if(!r)return;let[n,i]=r,o=T(e.fontSize?.[n]),s=i?Kt(i,e,"lineHeight"):void 0;if(o?.[0]){let[a,c,f]=o;return typeof c=="object"?{"font-size":a,...c}:{"font-size":a,"line-height":s??c??"1","letter-spacing":f?Kt(f,e,"letterSpacing"):void 0}}let l=u.bracketOfLength.rem(n);return s&&l?{"font-size":l,"line-height":s}:{"font-size":u.bracketOfLength.rem(t)}}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"},$i=[[/^(.+?)-(\$.+)$/,([,t,e])=>{let r=Ca[t];if(r)return{[r]:u.cssvar(e)}}]],vi=[[/^\[(.*)\]$/,([t,e])=>{if(!e.includes(":"))return;let[r,...n]=e.split(":"),i=n.join(":");if(!Ra(e)&&/^[\w-]+$/.test(r)&&ka(i)){let o=u.bracket(`[${i}]`);if(o)return{[r]:o}}}]];function ka(t){let e=0;function r(n){for(;e<t.length;)if(e+=1,t[e]===n)return!0;return!1}for(e=0;e<t.length;e++){let n=t[e];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Ra(t){if(!t.includes("://"))return!1;try{return new URL(t).host!==""}catch{return!1}}var Ci=[$i,vi,_n,In,Un,En,On,Vn,jn,Rn,Pn,si,zn,Ln,ii,ni,Cn,di,Fn,Dn,Wn,dn,Wt,It,_t,kn,An,Tn,qn,Bn,Gn,gn,xn,yn,ai,oi,on,xi,Hn,nn,gi,Yn,Xn,$n,Zn,bi,yi,wi,bn,ti,fn,Qn,mi,hn,Nn,Kn,wn,Jn,Mn].flat(1);var ki={position:["relative","absolute","fixed","sticky","static"],globalKeyword:A};var Gt={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",950:"#4c0519"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},light:{50:"#fdfdfd",100:"#fcfcfc",200:"#fafafa",300:"#f8f9fa",400:"#f6f6f6",500:"#f2f2f2",600:"#f1f3f5",700:"#e9ecef",800:"#dee2e6",900:"#dde1e3",950:"#d8dcdf"},dark:{50:"#4a4a4a",100:"#3c3c3c",200:"#323232",300:"#2d2d2d",400:"#222222",500:"#1f1f1f",600:"#1c1c1e",700:"#1b1b1b",800:"#181818",900:"#0f0f0f",950:"#080808"},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(Gt).forEach(t=>{typeof t!="string"&&t!==void 0&&(t.DEFAULT=t.DEFAULT||t[400],Object.keys(t).forEach(e=>{let r=+e/100;r===Math.round(r)&&(t[r]=t[e])}))});var Ri={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Ti={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var Ei={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(",")},ji={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"]},Ai={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Oi={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Pi={DEFAULT:["0 0 1px rgb(0 0 0 / 0.2)","0 0 1px rgb(1 0 5 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"1px 1px 3px rgb(36 37 47 / 0.25)",md:["0 1px 2px rgb(30 29 39 / 0.19)","1px 2px 4px rgb(54 64 147 / 0.18)"],lg:["3px 3px 6px rgb(0 0 0 / 0.26)","0 0 5px rgb(15 3 86 / 0.22)"],xl:["1px 1px 3px rgb(0 0 0 / 0.29)","2px 4px 7px rgb(73 64 125 / 0.35)"]},Vi={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ht={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},zi={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Mi=Ht;var qt={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Li={...qt},Ui={DEFAULT:"1px",none:"0"},Fi={DEFAULT:"1rem",none:"0",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"},_i={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Ii={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Wi={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 1px 2px -1px rgb(0 0 0 / 0.1)"],none:"0 0 rgb(0 0 0 / 0)",sm:"var(--un-shadow-inset) 0 1px 2px 0 rgb(0 0 0 / 0.05)",md:["var(--un-shadow-inset) 0 4px 6px -1px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 2px 4px -2px rgb(0 0 0 / 0.1)"],lg:["var(--un-shadow-inset) 0 10px 15px -3px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 4px 6px -4px rgb(0 0 0 / 0.1)"],xl:["var(--un-shadow-inset) 0 20px 25px -5px rgb(0 0 0 / 0.1)","var(--un-shadow-inset) 0 8px 10px -6px rgb(0 0 0 / 0.1)"],"2xl":"var(--un-shadow-inset) 0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},Di={DEFAULT:"3px",none:"0"},Bi={auto:"auto"},Ni={mouse:"(hover) and (pointer: fine)"};var Ki={...Nt,...Bt,...Dt};var te={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Gi={auto:"auto",...te,screen:"100vw"},Yt={none:"none",...te,screen:"100vw"},Hi={auto:"auto",...te,screen:"100vb"},qi={auto:"auto",...te,screen:"100vi"},Yi={auto:"auto",...te,screen:"100vh"},Xt={none:"none",...te,screen:"100vh"},Zt={none:"none",...te,screen:"100vb"},Jt={none:"none",...te,screen:"100vi"},Xi={...te};var Zi={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)"},Ji={none:"none",all:"all",colors:["color","background-color","border-color","text-decoration-color","fill","stroke"].join(","),opacity:"opacity",shadow:"box-shadow",transform:"transform",get DEFAULT(){return[this.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",")}};var Qi={width:Gi,height:Yi,maxWidth:Yt,maxHeight:Xt,minWidth:Yt,minHeight:Xt,inlineSize:qi,blockSize:Hi,maxInlineSize:Jt,maxBlockSize:Zt,minInlineSize:Jt,minBlockSize:Zt,colors:Gt,fontFamily:Ei,fontSize:ji,fontWeight:zi,breakpoints:qt,verticalBreakpoints:Li,borderRadius:Ii,lineHeight:Vi,letterSpacing:Ht,wordSpacing:Mi,boxShadow:Wi,textIndent:Ai,textShadow:Pi,textStrokeWidth:Oi,blur:Ri,dropShadow:Ti,easing:Zi,transitionProperty:Ji,lineWidth:Ui,spacing:Fi,duration:_i,ringWidth:Di,preflightBase:Ki,containers:Xi,zIndex:Bi,media:Ni};var eo={name:"aria",match(t,e){let r=U("aria-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.aria?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[aria-${o}]`}}},multiPass:!0};function lt(t){return{name:`${t}-aria`,match(e,r){let n=U(`${t}-aria-`,e,r.generator.config.separators);if(n){let[i,o]=n,s=u.bracket(i)??r.theme.aria?.[i]??"";if(s)return{matcher:`${t}-[[aria-${s}]]:${o}`}}}}}var to=[lt("group"),lt("peer"),lt("parent"),lt("previous")];var ro=/(max|min)-\[([^\]]*)\]:/;function no(){let t={};return{name:"breakpoints",match(e,r){if(ro.test(e)){let i=e.match(ro);return{matcher:e.replace(i[0],""),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media (${i[1]}-width: ${i[2]})`})}}let n=(rt(r)??[]).map(({point:i,size:o},s)=>[i,o,s]);for(let[i,o,s]of n){t[i]||(t[i]=new RegExp(`^((?:([al]t-|[<~]|max-))?${i}(?:${r.generator.config.separators.join("|")}))`));let l=e.match(t[i]);if(!l)continue;let[,a]=l,c=e.slice(a.length);if(c==="container")continue;let f=a.startsWith("lt-")||a.startsWith("<")||a.startsWith("max-"),p=a.startsWith("at-")||a.startsWith("~"),h=3e3;return f?(h-=s+1,{matcher:c,handle:(d,m)=>m({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (max-width: ${kt(o)})`,parentOrder:h})}):(h+=s+1,p&&s<n.length-1?{matcher:c,handle:(d,m)=>m({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (min-width: ${o}) and (max-width: ${kt(n[s+1][1])})`,parentOrder:h})}:{matcher:c,handle:(d,m)=>m({...d,parent:`${d.parent?`${d.parent} $$ `:""}@media (min-width: ${o})`,parentOrder:h})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var io=[se("*",t=>({selector:`${t.selector} > *`}))];function Me(t,e){return{name:`combinator:${t}`,match(r,n){if(!r.startsWith(t))return;let i=n.generator.config.separators,o=Z(`${t}-`,r,i);if(!o){for(let l of i)if(r.startsWith(`${t}${l}`)){o=["",r.slice(t.length+l.length)];break}if(!o)return}let s=u.bracket(o[0])??"";return s===""&&(s="*"),{matcher:o[1],selector:l=>`${l}${e}${s}`}},multiPass:!0}}var oo=[Me("all"," "),Me("children",">"),Me("next","+"),Me("sibling","+"),Me("siblings","~")];var so={name:"@",match(t,e){if(t.startsWith("@container"))return;let r=U("@",t,e.generator.config.separators);if(r){let[n,i,o]=r,s=u.bracket(n),l;if(s?l=u.numberWithUnit(s):l=e.theme.containers?.[n]??"",l){let a=1e3+Object.keys(e.theme.containers??{}).indexOf(n);return o&&(a+=1e3),{matcher:i,handle:(c,f)=>f({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${o?` ${o} `:" "}(min-width: ${l})`,parentOrder:a})}}}},multiPass:!0};function ao(t={}){if(t?.dark==="class"||typeof t.dark=="object"){let{dark:e=".dark",light:r=".light"}=typeof t.dark=="string"?{}:t.dark;return[se("dark",T(e).map(n=>i=>({prefix:`${n} $$ ${i.prefix}`}))),se("light",T(r).map(n=>i=>({prefix:`${n} $$ ${i.prefix}`})))]}return[Re("dark","@media (prefers-color-scheme: dark)"),Re("light","@media (prefers-color-scheme: light)")]}var lo={name:"data",match(t,e){let r=U("data-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??e.theme.data?.[n]??"";if(o)return{matcher:i,selector:s=>`${s}[data-${o}]`}}},multiPass:!0};function ct(t){return{name:`${t}-data`,match(e,r){let n=U(`${t}-data-`,e,r.generator.config.separators);if(n){let[i,o,s]=n,l=u.bracket(i)??r.theme.data?.[i]??"";if(l)return{matcher:`${t}-[[data-${l}]]${s?`/${s}`:""}:${o}`}}}}}var co=[ct("group"),ct("peer"),ct("parent"),ct("previous")];var uo=[se("rtl",t=>({prefix:`[dir="rtl"] $$ ${t.prefix}`})),se("ltr",t=>({prefix:`[dir="ltr"] $$ ${t.prefix}`}))];function fo(){let t;return{name:"important",match(e,r){t||(t=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,i=e.match(t);if(i?n=e.slice(i[0].length):e.endsWith("!")&&(n=e.slice(0,-1)),n)return{matcher:n,body:o=>(o.forEach(s=>{s[1]!=null&&(s[1]+=" !important")}),o)}}}}var po=Re("print","@media print"),ho={name:"media",match(t,e){let r=U("media-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.media?.[n]??""),o)return{matcher:i,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${o}`})}}},multiPass:!0};var mo={name:"selector",match(t,e){let r=Z("selector-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:()=>o}}}},go={name:"layer",match(t,e){let r=U("layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${o}`})}}}},bo={name:"uno-layer",match(t,e){let r=U("uno-layer-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??n;if(o)return{matcher:i,layer:o}}}},xo={name:"scope",match(t,e){let r=Z("scope-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n);if(o)return{matcher:i,selector:s=>`${o} $$ ${s}`}}}},yo={name:"variables",match(t,e){if(!t.startsWith("["))return;let[r,n]=ie(t,"[","]")??[];if(!(r&&n))return;let i;for(let l of e.generator.config.separators)if(n.startsWith(l)){i=n.slice(l.length);break}if(i==null)return;let o=u.bracket(r)??"",s=o.startsWith("@");if(s||o.includes("&"))return{matcher:i,handle(l,a){let c=s?{parent:`${l.parent?`${l.parent} $$ `:""}${o}`}:{selector:o.replace(/&/g,l.selector)};return a({...l,...c})}}},multiPass:!0},wo={name:"theme-variables",match(t,e){if(Ur(t))return{matcher:t,handle(r,n){return n({...r,entries:JSON.parse(Fr(JSON.stringify(r.entries),e.theme))})}}}};var So=/^-?[0-9.]+(?:[a-z]+|%)?$/,$o=/-?[0-9.]+(?:[a-z]+|%)?/,Ta=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Ea(t){let e=t.match(Ee)||t.match(Xe);if(e){let[r,n]=fe(`(${e[2]})${e[3]}`,"(",")"," ")??[];if(r)return`calc(${e[1]}${r} * -1)${n?` ${n}`:""}`}}var ja=/\b(hue-rotate)\s*(\(.*)/;function Aa(t){let e=t.match(ja);if(e){let[r,n]=fe(e[2],"(",")"," ")??[];if(r){let i=So.test(r.slice(1,-1))?r.replace($o,o=>o.startsWith("-")?o.slice(1):`-${o}`):`(calc(${r} * -1))`;return`${e[1]}${i}${n?` ${n}`:""}`}}}var vo={name:"negative",match(t){if(t.startsWith("-"))return{matcher:t.slice(1),body:e=>{if(e.find(n=>n[0]===cn))return;let r=!1;return e.forEach(n=>{let i=n[1]?.toString();if(!i||i==="0"||Ta.some(l=>l.test(n[0])))return;let o=Ea(i);if(o){n[1]=o,r=!0;return}let s=Aa(i);if(s){n[1]=s,r=!0;return}So.test(i)&&(n[1]=i.replace($o,l=>l.startsWith("-")?l.slice(1):`-${l}`),r=!0)}),r?e:[]}}}};function Co(){return Hr({getBracket:ie,h:u,variantGetBracket:Z})}function ko(){return qr({getBracket:ie,h:u,variantGetBracket:Z})}function Ro(t={}){return Yr(t,{getBracket:ie,h:u,variantGetBracket:Z})}var To=Xr();var Eo={name:"starting",match(t){if(t.startsWith("starting:"))return{matcher:t.slice(9),handle:(e,r)=>r({...e,parent:"@starting-style"})}}};var jo={name:"supports",match(t,e){let r=U("supports-",t,e.generator.config.separators);if(r){let[n,i]=r,o=u.bracket(n)??"";if(o===""&&(o=e.theme.supports?.[n]??""),o)return o.startsWith("(")&&o.endsWith(")")||(o=`(${o})`),{matcher:i,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${o}`})}}},multiPass:!0};function Ao(t){return[eo,lo,go,mo,bo,vo,Eo,fo(),jo,po,ho,no(),...oo,...Co(),ko(),...Ro(t),To,...ao(t),...uo,xo,...io,so,yo,...co,...to,wo]}var Oa=(t={})=>(t.dark=t.dark??"class",t.attributifyPseudo=t.attributifyPseudo??!1,t.preflight=t.preflight??!0,t.variablePrefix=t.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:Qi,rules:Ci,variants:Ao(t),options:t,prefix:t.prefix,postprocess:Pa(t.variablePrefix),preflights:Er(t),extractorDefault:t.arbitraryVariants===!1?void 0:Tr(),autocomplete:{shorthands:ki}}),Oo=Oa;function Pa(t){if(t!=="un-")return e=>{e.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${t}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${t}`))})}}function Va(t){return t.replace(/-(\w)/g,(e,r)=>r?r.toUpperCase():"")}function Po(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Vo(t){return t.replace(/(?:^|\B)([A-Z])/g,"-$1").toLowerCase()}var zo=["Webkit","Moz","ms"];function Mo(t){let e={};function r(n){let i=e[n];if(i)return i;let o=Va(n);if(o!=="filter"&&o in t)return e[n]=Vo(o);o=Po(o);for(let s=0;s<zo.length;s++){let l=`${zo[s]}${o}`;if(l in t)return e[n]=Vo(Po(l))}return n}return({entries:n})=>n.forEach(i=>{i[0].startsWith("--")||(i[0]=r(i[0]))})}function Lo(t){return t.replace(/&amp;/g,"&").replace(/&gt;/g,">").replace(/&lt;/g,"<")}async function Qt(t={}){if(typeof window>"u"){console.warn("@unocss/runtime been used in non-browser environment, skipped.");return}let e=window,r=window.document,n=()=>r.documentElement,i=e.__unocss||{},o=Object.assign({},t,i.runtime),s=o.defaults||{},l=o.cloakAttribute??"un-cloak";o.autoPrefix&&(s.postprocess=T(s.postprocess)).unshift(Mo(r.createElement("div").style)),o.configResolved?.(i,s);let a=await gr(i,s),c=k=>o.inject?o.inject(k):n().prepend(k),f=()=>o.rootElement?o.rootElement():r.body,p=new Map,h=!0,d=new Set,m,x,S=[],j=()=>new Promise(k=>{S.push(k),x!=null&&clearTimeout(x),x=setTimeout(()=>R().then(()=>{let E=S;S=[],E.forEach(P=>P())}),0)});function y(k,E=!1){if(k.nodeType!==1)return;let P=k;P.hasAttribute(l)&&P.removeAttribute(l),E&&P.querySelectorAll(`[${l}]`).forEach(M=>{M.removeAttribute(l)})}function w(k,E){let P=p.get(k);if(!P)if(P=r.createElement("style"),P.setAttribute("data-unocss-runtime-layer",k),p.set(k,P),E==null)c(P);else{let M=w(E),F=M.parentNode;F?F.insertBefore(P,M.nextSibling):c(P)}return P}async function R(){let k=[...d],E=await a.generate(k);return E.layers.reduce((M,F)=>(w(F,M).innerHTML=E.getLayer(F)??"",F),void 0),k.filter(M=>!E.matched.has(M)).forEach(M=>d.delete(M)),{...E,getStyleElement:M=>p.get(M),getStyleElements:()=>p}}async function C(k){let E=d.size;await a.applyExtractors(k,void 0,d),E!==d.size&&await j()}async function b(k=f()){let E=k&&k.outerHTML;E&&(await C(`${E} ${Lo(E)}`),y(n()),y(k,!0))}let g=new MutationObserver(k=>{h||k.forEach(async E=>{if(E.target.nodeType!==1)return;let P=E.target;for(let M of p)if(P===M[1])return;if(E.type==="childList")E.addedNodes.forEach(async M=>{if(M.nodeType!==1)return;let F=M;m&&!m(F)||(await C(F.outerHTML),y(F))});else{if(m&&!m(P))return;if(E.attributeName!==l){let M=Array.from(P.attributes).map(V=>V.value?`${V.name}="${V.value}"`:V.name).join(" "),F=`<${P.tagName.toLowerCase()} ${M}>`;await C(F)}y(P)}})}),$=!1;function v(){if($)return;let k=o.observer?.target?o.observer.target():f();k&&(g.observe(k,{childList:!0,subtree:!0,attributes:!0,attributeFilter:o.observer?.attributeFilter}),$=!0)}function _(){o.bypassDefined&&za(a.blocked),b(),v()}function I(){r.readyState==="loading"?e.addEventListener("DOMContentLoaded",_):_()}let H=e.__unocss_runtime=e.__unocss_runtime={version:a.version,uno:a,async extract(k){z(k)||(k.forEach(E=>d.add(E)),k=""),await C(k)},extractAll:b,inspect(k){m=k},toggleObserver(k){k===void 0?h=!h:h=!!k,!$&&!h&&I()},update:R,presets:e.__unocss_runtime?.presets??{}};o.ready?.(H)!==!1&&(h=!1,I())}function za(t=new Set){for(let e=0;e<document.styleSheets.length;e++){let r=document.styleSheets[e],n;try{if(n=r.cssRules||r.rules,!n)continue;Array.from(n).flatMap(i=>i.selectorText?.split(/,/g)||[]).forEach(i=>{i&&(i=i.trim(),i.startsWith(".")&&(i=i.slice(1)),t.add(i))})}catch{continue}}return t}Qt({defaults:{presets:[Oo(),vr()]}});})();