@unocss/runtime 66.7.0 → 66.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,14 @@
1
- "use strict";(()=>{var kn=Object.defineProperty;var Sn=(e,t)=>{for(var n in t)kn(e,n,{get:t[n],enumerable:!0})};var Pe=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,En=Object.getOwnPropertyNames,jn=Object.prototype.hasOwnProperty,ge=(e,t)=>{let n={};for(var r in e)Pe(n,r,{get:e[r],enumerable:!0});return t||Pe(n,Symbol.toStringTag,{value:"Module"}),n},lt=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=En(t),i=0,o=s.length,a;i<o;i++)a=s[i],!jn.call(e,a)&&a!==n&&Pe(e,a,{get:(l=>t[l]).bind(null,a),enumerable:!(r=Cn(t,a))||r.enumerable});return e},Oe=(e,t,n)=>(lt(e,t,"default"),n&&lt(n,t,"default"));var An="default",zn="preflights",_n="shortcuts",Rn="imports",go={[Rn]:-200,[zn]:-100,[_n]:-10,[An]:0},ct=/[\\:]?[\s'"`;{}]+/g;function E(e=[]){return Array.isArray(e)?e:[e]}function ft(e){return typeof e=="string"}function R(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O(e){let t=e.length,n=-1,r,s="",i=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){s+="\uFFFD";continue}if(r===37){s+="\\%";continue}if(r===44){s+="\\,";continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&i===45){s+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){s+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){s+=e.charAt(n);continue}s+=`\\${e.charAt(n)}`}return s}var Pn=/[\w\u00A0-\uFFFF%-?]/;function ut(e=""){return Pn.test(e)}function On(e){return e.filter(([t,n],r)=>{if(t.startsWith("$$"))return!1;for(let s=r-1;s>=0;s--)if(e[s][0]===t&&e[s][1]===n)return!1;return!0})}function ht(e){return e==null?"":On(e).map(([t,n])=>n!=null&&typeof n!="function"?t!=="__virtual_key__"?`${t}:${n};`:n:void 0).filter(Boolean).join("")}var Ke={};Sn(Ke,{PseudoClassFunctions:()=>At,PseudoClassFunctionsStr:()=>B,PseudoClasses:()=>U,PseudoClassesAndElementsColonStr:()=>Ne,PseudoClassesAndElementsStr:()=>Te,PseudoClassesColon:()=>D,PseudoClassesColonKeys:()=>Ue,PseudoClassesColonStr:()=>we,PseudoClassesKeys:()=>Ie,PseudoClassesMulti:()=>De,PseudoClassesMultiStr:()=>Fe,PseudoClassesStr:()=>$e,alphaPlaceholders:()=>Be,alphaPlaceholdersRE:()=>kt,calcMaxWidthBySize:()=>tr,colorOpacityToString:()=>J,colorToString:()=>j,createPartClasses:()=>He,createPseudoClassFunctions:()=>Ge,createPseudoClassesAndElements:()=>Ve,createTaggedPseudoClassMatcher:()=>_t,createTaggedPseudoClasses:()=>qe,createValueHandler:()=>We,cssColorFunctions:()=>ve,excludedPseudo:()=>zt,getBracket:()=>yt,getStringComponent:()=>I,getStringComponents:()=>Z,hasIconFn:()=>rr,hasThemeFn:()=>Qn,hex2rgba:()=>qn,hueInterpolationMethods:()=>vt,iconFnRE:()=>nr,isInterpolatedMethod:()=>Gn,parseCssColor:()=>W,polarColorSpace:()=>wt,rectangularColorSpace:()=>$t,themeFnRE:()=>Et,transformThemeFn:()=>er,transformThemeString:()=>jt,variantGetBracket:()=>Rt,variantGetParameter:()=>Pt,variantMatcher:()=>ir,variantParentMatcher:()=>or});var Mn=44,Ln=59,dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gt=new Uint8Array(64),Fn=new Uint8Array(128);for(let e=0;e<dt.length;e++){let t=dt.charCodeAt(e);gt[e]=t,Fn[t]=e}function te(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let s=r&31;r>>>=5,r>0&&(s|=32),e.write(gt[s])}while(r>0);return t}var pt=1024*16,mt=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Tn=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(pt)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===pt&&(this.out+=mt.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+mt.decode(e.subarray(0,n)):t}};function bt(e){let t=new Tn,n=0,r=0,s=0,i=0;for(let o=0;o<e.length;o++){let a=e[o];if(o>0&&t.write(Ln),a.length===0)continue;let l=0;for(let f=0;f<a.length;f++){let u=a[f];f>0&&t.write(Mn),l=te(t,u[0],l),u.length!==1&&(n=te(t,u[1],n),r=te(t,u[2],r),s=te(t,u[3],s),u.length!==4&&(i=te(t,u[4],i)))}}return t.flush()}var be=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(t){this.bits[t>>5]|=1<<(t&31)}has(t){return!!(this.bits[t>>5]&1<<(t&31))}},xe=class e{constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(t){this.outro+=t}appendRight(t){this.intro=this.intro+t}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),s=this.original.slice(n);this.original=r;let i=new e(t,this.end,s);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=r,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(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,!0),this.edited&&this.edit(n,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Nn(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}var Bn=Nn(),Me=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=bt(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+Bn(this.toString())}};function Wn(e){let t=e.split(`
2
- `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return" ";let s=r.reduce((i,o)=>{let a=/^ +/.exec(o)[0].length;return Math.min(a,i)},1/0);return new Array(s+1).join(" ")}function In(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let s=n.length;for(;s--;)n[s]=".."}return n.concat(r).join("/")}var Un=Object.prototype.toString;function Dn(e){return Un.call(e)==="[object Object]"}function xt(e){let t=e.split(`
3
- `),n=[];for(let r=0,s=0;r<t.length;r++)n.push(s),s+=t[r].length+1;return function(s){let i=0,o=n.length;for(;i<o;){let f=i+o>>1;s<n[f]?o=f:i=f+1}let a=i-1,l=s-n[a];return{line:a,column:l}}}var Vn=/\w/,Le=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(t,n,r,s){if(n.length){let i=n.length-1,o=n.indexOf(`
4
- `,0),a=-1;for(;o>=0&&i>o;){let f=[this.generatedCodeColumn,t,r.line,r.column];s>=0&&f.push(s),this.rawSegments.push(f),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=o,o=n.indexOf(`
5
- `,o+1)}let l=[this.generatedCodeColumn,t,r.line,r.column];s>=0&&l.push(s),this.rawSegments.push(l),this.advance(n.slice(a+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null}addUneditedChunk(t,n,r,s,i){let o=n.start,a=!0,l=!1;for(;o<n.end;){if(r[o]===`
6
- `)s.line+=1,s.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0,l=!1;else{if(this.hires||a||i.has(o)){let f=[this.generatedCodeColumn,t,s.line,s.column];this.hires==="boundary"?Vn.test(r[o])?l||(this.rawSegments.push(f),l=!0):(this.rawSegments.push(f),l=!1):this.rawSegments.push(f)}s.column+=1,this.generatedCodeColumn+=1,a=!1}o+=1}this.pending=null}advance(t){if(!t)return;let n=t.split(`
7
- `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=n[n.length-1].length}},ne=`
8
- `,X={insertLeft:!1,insertRight:!1,storeName:!1},ye=class e{constructor(t,n={}){let r=new xe(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:n.filename},indentExclusionRanges:{writable:!0,value:n.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new be},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:n.ignoreList},offset:{writable:!0,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r}addSourcemapLocation(t){this.sourcemapLocations.add(t)}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let s=n.next,i=s&&s.clone();i&&(r.next=i,i.previous=r,r=i),n=s}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new be(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),s=new Le(t.hires),i=xt(this.original);return this.intro&&s.advance(this.intro),this.firstChunk.eachNext(o=>{let a=i(o.start);o.intro.length&&s.advance(o.intro),o.edited?s.addEdit(n,o.content,a,o.storeName?r.indexOf(o.original):-1):s.addUneditedChunk(n,o,this.original,a,this.sourcemapLocations),o.outro.length&&s.advance(o.outro)}),this.outro&&s.advance(this.outro),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?In(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:s.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new Me(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=Wn(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(Dn(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let s={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(u=>{for(let d=u[0];d<u[1];d+=1)s[d]=!0});let i=n.indentStart!==!1,o=f=>i?`${t}${f}`:(i=!0,f);this.intro=this.intro.replace(r,o);let a=0,l=this.firstChunk;for(;l;){let f=l.end;if(l.edited)s[a]||(l.content=l.content.replace(r,o),l.content.length&&(i=l.content[l.content.length-1]===`
9
- `));else for(a=l.start;a<f;){if(!s[a]){let u=this.original[a];u===`
10
- `?i=!0:u!=="\r"&&i&&(i=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(t))}a+=1}a=l.end,l=l.next}return this.outro=this.outro.replace(r,o),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return X.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),X.insertLeft=!0),this.appendLeft(t,n)}insertRight(t,n){return X.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),X.insertRight=!0),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let s=this.byStart[t],i=this.byEnd[n],o=s.previous,a=i.next,l=this.byStart[r];if(!l&&i===this.lastChunk)return this;let f=l?l.previous:this.lastChunk;return o&&(o.next=a),a&&(a.previous=o),f&&(f.next=s),l&&(l.previous=i),s.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=s.previous,this.lastChunk.next=null),s.previous=f,i.next=l||null,f||(this.firstChunk=s),l||(this.lastChunk=i),this}overwrite(t,n,r,s){return s=s||{},this.update(t,n,r,{...s,overwrite:!s.contentOnly})}update(t,n,r,s){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),s===!0&&(X.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),X.storeName=!0),s={storeName:!0});let i=s!==void 0?s.storeName:!1,o=s!==void 0?s.overwrite:!1;if(i){let f=this.original.slice(t,n);Object.defineProperty(this.storedNames,f,{writable:!0,value:!0,enumerable:!0})}let a=this.byStart[t],l=this.byEnd[n];if(a){let f=a;for(;f!==l;){if(f.next!==this.byStart[f.end])throw new Error("Cannot overwrite across a split point");f=f.next,f.edit("",!1)}a.edit(r,i,!o)}else{let f=new xe(t,n,"").edit(r,i);l.next=f,f.previous=l}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(ne);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(ne),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n}if(r.content.length>0){if(t=r.content.lastIndexOf(ne),t!==-1)return r.content.substr(t+1)+n;n=r.content+n}if(r.intro.length>0){if(t=r.intro.lastIndexOf(ne),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n}}while(r=r.previous);return t=this.intro.lastIndexOf(ne),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length}let r="",s=this.firstChunk;for(;s&&(s.start>t||s.end<=t);){if(s.start<n&&s.end>=n)return r;s=s.next}if(s&&s.edited&&s.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=s;for(;s;){s.intro&&(i!==s||s.start===t)&&(r+=s.intro);let o=s.start<n&&s.end>=n;if(o&&s.edited&&s.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let a=i===s?t-s.start:0,l=o?s.content.length+n-s.end:s.content.length;if(r+=s.content.slice(a,l),s.outro&&(!o||s.end===n)&&(r+=s.outro),o)break;s=s.next}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=n,s=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);if(n=s?this.byStart[n.end]:this.byEnd[n.start],n===r)return;r=n}}_splitChunk(t,n){if(t.edited&&t.content.length){let s=xt(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${s.line}:${s.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1;while(t=t.next);return!0}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return!0;let r=this.lastChunk;do{let s=r.end,i=r.trimEnd(n);if(r.end!==s&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return!0;let r=this.firstChunk;do{let s=r.end,i=r.trimStart(n);if(r.end!==s&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,o){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?i[0]:+l<i.length?i[+l]:`$${l}`):n(...i,i.index,o,i.groups)}function s(i,o){let a,l=[];for(;a=i.exec(o);)l.push(a);return l}if(t.global)s(t,this.original).forEach(o=>{if(o.index!=null){let a=r(o,this.original);a!==o[0]&&this.overwrite(o.index,o.index+o[0].length,a)}});else{let i=this.original.match(t);if(i&&i.index!=null){let o=r(i,this.original);o!==i[0]&&this.overwrite(i.index,i.index+i[0].length,o)}}return this}_replaceString(t,n){let{original:r}=this,s=r.indexOf(t);return s!==-1&&(typeof n=="function"&&(n=n(t,s,r)),t!==n&&this.overwrite(s,s+t.length,n)),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,s=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+s)){let o=r.slice(i,i+s),a=n;typeof n=="function"&&(a=n(o,i,r)),o!==a&&this.overwrite(i,i+s,a)}return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}};function yt(e,t,n){if(e==="")return;let r=e.length,s=0,i=!1,o=0;for(let a=0;a<r;a++)switch(e[a]){case t:i||(i=!0,o=a),s++;break;case n:if(--s,s<0)return;if(s===0)return[e.slice(o,a+1),e.slice(a+1),e.slice(0,o)];break}}function I(e,t,n,r){if(e===""||(ft(r)&&(r=[r]),r.length===0))return;let s=e.length,i=0;for(let o=0;o<s;o++)switch(e[o]){case t:i++;break;case n:if(--i<0)return;break;default:for(let a of r){let l=a.length;if(l&&a===e.slice(o,o+l)&&i===0)return o===0||o===s-l?void 0:[e.slice(0,o),e.slice(o+l)]}}return[e,""]}function Z(e,t,n,r="(",s=")"){n=n??10;let i=[],o=0;for(;e!=="";){if(++o>n)return;let a=I(e,r,s,t);if(!a)return;let[l,f]=a;i.push(l),e=f}if(i.length>0)return i}var ve=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],$t=["srgb","srgb-linear","display-p3","a98-rgb","prophoto-rgb","rec2020","lab","oklab","xyz","xyz-d50","xyz-d65"],wt=["hsl","hwb","lch","oklch"],vt=["shorter","longer","increasing","decreasing"],Be=["%alpha","<alpha-value>"],kt=new RegExp(Be.map(e=>R(e)).join("|"),"g");function Gn(e){return e?$t.some(t=>e.includes(t))||wt.some(t=>e.includes(t))||vt.some(t=>e.includes(t)):!1}function qn(e=""){let t=St(e);if(t!=null){let{components:n,alpha:r}=t;return r==null?n:[...n,r]}}function W(e=""){let t=Hn(e);if(t==null||t===!1)return;let{type:n,components:r,alpha:s}=t,i=n.toLowerCase();if(r.length!==0&&!(ve.includes(i)&&![1,3].includes(r.length)))return{type:i,components:r.map(o=>typeof o=="string"?o.trim():o),alpha:typeof s=="string"?s.trim():s}}function J(e){let t=e.alpha??1;return typeof t=="string"&&Be.includes(t)?1:t}function j(e,t){if(typeof e=="string")return e.replace(kt,`${t??1}`);let{components:n}=e,{alpha:r,type:s}=e;return r=t??r,s=s.toLowerCase(),["hsla","rgba"].includes(s)?`${s}(${n.join(", ")}${r==null?"":`, ${r}`})`:(r=r==null?"":` / ${r}`,ve.includes(s)?`${s}(${n.join(" ")}${r})`:`color(${s} ${n.join(" ")}${r})`)}function Hn(e){if(!e)return;let t=St(e);if(t!=null||(t=Kn(e),t!=null)||(t=Yn(e),t!=null)||(t=Zn(e),t!=null)||(t=Jn(e),t!=null))return t}function St(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let n=Array.from(t,r=>Number.parseInt(r,16)).map(r=>r<<4|r);return{type:"rgb",components:n.slice(0,3),alpha:t.length===3?void 0:Math.round(n[3]/255*100)/100}}case 6:case 8:{let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}}function Kn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Yn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,n,r]=t,s=Z(r,",",5);if(s){if([3,4].includes(s.length))return{type:n,components:s.slice(0,3),alpha:s[3]};if(s.length!==1)return!1}}var Xn=new RegExp(`^(${ve.join("|")})\\((.+)\\)$`,"i");function Zn(e){let t=e.match(Xn);if(!t)return;let[,n,r]=t,s=Ct(`${n} ${r}`);if(s){let{alpha:i,components:[o,...a]}=s;return{type:o,components:a,alpha:i}}}function Jn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let n=Ct(t[1]);if(n){let{alpha:r,components:[s,...i]}=n;return{type:s,components:i,alpha:r}}}function Ct(e){let t=Z(e," ");if(!t)return;let n=t.length;if(t[n-2]==="/")return{components:t.slice(0,n-2),alpha:t[n-1]};if(t[n-2]!=null&&(t[n-2].endsWith("/")||t[n-1].startsWith("/"))){let i=t.splice(n-2);t.push(i.join(" ")),--n}let r=Z(t[n-1],"/",2);if(!r)return;if(r.length===1||r[r.length-1]==="")return{components:t};let s=r.pop();return t[n-1]=r.join("/"),{components:t,alpha:s}}var Et=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Qn(e){return e.includes("theme(")&&e.includes(")")}function er(e,t,n=!0){let r=Array.from(e.toString().matchAll(Et));if(!r.length)return e;let s=new ye(e);for(let i of r){let o=i[2];if(!o)throw new Error("theme() expect exact one argument, but got 0");let a=jt(o,t,n);a&&s.overwrite(i.index,i.index+i[0].length,a)}return s.toString()}function jt(e,t,n=!0){let[r,s]=e.split("/"),i=r.trim().split(".").reduce((o,a)=>o?.[a],t);if(typeof i=="object"&&(i=i.DEFAULT),typeof i=="string"){if(s){let o=W(i);o&&(i=j(o,s))}return i}else if(n)throw new Error(`theme of "${e}" did not found`)}function tr(e){let t=e.match(/^-?\d+\.?\d*/)?.[0]||"",n=e.slice(t.length);if(n==="px"){let r=Number.parseFloat(t)-.1;return Number.isNaN(r)?e:`${r}${n}`}return`calc(${e} - 0.1px)`}function We(e){let t=function(r,s){let i=this.__options?.sequence||[];this.__options.sequence=[];for(let o of i){let a=e[o](r,s);if(a!=null)return a}};function n(r,s){return r.__options||(r.__options={sequence:[]}),r.__options.sequence.push(s),r}for(let r of Object.keys(e))Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get(){return n(this,r)}});return t}var nr=/icon\(\s*(['"])?(.*?)\1?\s*\)/g;function rr(e){return e.includes("icon(")&&e.includes(")")}var re="__pseudo_placeholder__",U=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(${re})`],["nth-last",`:nth-last-child(${re})`],["nth-last-of-type",`:nth-last-of-type(${re})`],["nth-of-type",`:nth-of-type(${re})`],"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"],["details-content","::details-content"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Ie=Object.keys(U),D=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Ue=Object.keys(D),At=["not","is","where","has"],De=Object.fromEntries([["selection",["::selection"," *::selection"]],["marker",["::marker"," *::marker"]]]),$e=Object.entries(U).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),we=Object.entries(D).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),B=At.join("|"),Fe=Object.keys(De).sort((e,t)=>t.length-e.length).join("|"),zt=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],Te=Object.entries(U).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Ne=Object.entries(D).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function _t(e,t,n,r){let{h:s,variantGetBracket:i}=r,o=new RegExp(`^(${R(t)}:)(\\S+)${R(n)}\\1`),a,l,f,u,d=h=>{let b=i(`${e}-`,h,[]);if(!b)return;let[A,S]=b,$=s.bracket(A);if($==null)return;let x=S.split(a,1)?.[0]??"",_=`${t}${O(x)}`;return[x,h.slice(h.length-(S.length-x.length-1)),$.includes("&")?$.replace(/&/g,_):`${_}${$}`]},p=h=>{let b=h.match(l)||h.match(f);if(!b)return;let[A,S,$]=b,x=b[3]??"",_=U[$]||D[$]||`:${$}`;return S&&(_=`:${S}(${_})`),[x,h.slice(A.length),`${t}${O(x)}${_}`,$]},m=h=>{let b=h.match(u);if(!b)return;let[A,S,$]=b,x=b[3]??"",_=`:${S}(${$})`;return[x,h.slice(A.length),`${t}${O(x)}${_}`]};return{name:`pseudo:${e}`,match(h,b){if(a&&l&&f||(a=new RegExp(`(?:${b.generator.config.separators.join("|")})`),l=new RegExp(`^${e}-(?:(?:(${B})-)?(${$e}))(?:(/[\\w-]+))?(?:${b.generator.config.separators.join("|")})`),f=new RegExp(`^${e}-(?:(?:(${B})-)?(${we}))(?:(/[\\w-]+))?(?:${b.generator.config.separators.filter(Y=>Y!=="-").join("|")})`),u=new RegExp(`^${e}-(?:(${B})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${b.generator.config.separators.filter(Y=>Y!=="-").join("|")})`)),!h.startsWith(e))return;let A=d(h)||p(h)||m(h);if(!A)return;let[S,$,x,_=""]=A;return{matcher:$,handle:(Y,vn)=>vn({...Y,prefix:`${x}${n}${Y.prefix}`.replace(o,"$1$2:"),sort:Ie.indexOf(_)??Ue.indexOf(_)})}},multiPass:!0}}function Ve(e){let{h:t}=e,n,r,s;return[{name:"pseudo",match(i,o){n&&r||(n=new RegExp(`^(${Te})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${o.generator.config.separators.join("|")})`),r=new RegExp(`^(${Ne})(?:${o.generator.config.separators.filter(l=>l!=="-").join("|")})`));let a=i.match(n)||i.match(r);if(a){let l=U[a[1]]||D[a[1]]||`:${a[1]}`;if(a[2]){let u;a[2].startsWith("[")&&a[2].endsWith("]")?u=t.bracket(a[2]):u=a[2],u&&(l=l.replace(re,u))}let f=Ie.indexOf(a[1]);return f===-1&&(f=Ue.indexOf(a[1])),f===-1&&(f=void 0),{matcher:i.slice(a[0].length),handle:(u,d)=>{let p=l.includes("::")&&!zt.includes(l)?{pseudo:`${u.pseudo}${l}`}:{selector:`${u.selector}${l}`};return d({...u,...p,sort:f,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${Te}|${Ne}):`},{name:"pseudo:multi",match(i,o){s||(s=new RegExp(`^(${Fe})(?:${o.generator.config.separators.join("|")})`));let a=i.match(s);if(a)return De[a[1]].map(l=>({matcher:i.slice(a[0].length),handle:(f,u)=>u({...f,pseudo:`${f.pseudo}${l}`})}))},multiPass:!1,autocomplete:`(${Fe}):`}]}function Ge(e){let{getBracket:t,h:n}=e,r,s,i;return{match(o,a){r&&s||(r=new RegExp(`^(${B})-(${$e})(?:${a.generator.config.separators.join("|")})`),s=new RegExp(`^(${B})-(${we})(?:${a.generator.config.separators.filter(f=>f!=="-").join("|")})`),i=new RegExp(`^(${B})-(\\[.+\\])(?:${a.generator.config.separators.filter(f=>f!=="-").join("|")})`));let l=o.match(r)||o.match(s)||o.match(i);if(l){let f=l[1],u=t(l[2],"[","]")?n.bracket(l[2]):U[l[2]]||D[l[2]]||`:${l[2]}`;return{matcher:o.slice(l[0].length),selector:d=>`${d}:${f}(${u})`}}},multiPass:!0,autocomplete:`(${B})-(${$e}|${we}):`}}function qe(e,t){let n=!!e?.attributifyPseudo,r=e?.prefix??"";r=O((Array.isArray(r)?r:[r]).filter(Boolean)[0]??"");let s=(i,o)=>_t(i,n?`[${r}${i}=""]`:`.${r}${i}`,o,t);return[s("group"," "),s("peer","~"),s("parent",">"),s("previous","+")]}var sr=/(part-\[(.+)\]:)(.+)/;function He(){return{match(e){let t=e.match(sr);if(t){let n=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:r=>`${r}::${n}`}}},multiPass:!0}}function ir(e,t,n={}){let r;return{name:e,match(s,i){r||(r=new RegExp(`^${R(e)}(?:${i.generator.config.separators.join("|")})`));let o=s.match(r);if(o){let a=s.slice(o[0].length),l=E(t).map(f=>({matcher:a,handle:(u,d)=>d({...u,...f(u)}),...n}));return l.length===1?l[0]:l}},autocomplete:`${e}:`}}function or(e,t){let n;return{name:e,match(r,s){n||(n=new RegExp(`^${R(e)}(?:${s.generator.config.separators.join("|")})`));let i=r.match(n);if(i)return{matcher:r.slice(i[0].length),handle:(o,a)=>a({...o,parent:`${o.parent?`${o.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function Rt(e,t,n){if(t.startsWith(`${e}[`)){let[r,s]=yt(t.slice(e.length),"[","]")??[];if(r&&s){for(let i of n)if(s.startsWith(i))return[r,s.slice(i.length),i];return[r,s,""]}}}function Pt(e,t,n){for(let r of E(e))if(t.startsWith(r)){let s=Rt(r,t,n);if(s){let[i="",o=s[1]]=Pt("/",s[1],n)??[];return[s[0],o,i]}for(let i of n.filter(o=>o!=="/")){let o=t.indexOf(i,r.length);if(o!==-1){let a=t.indexOf("/",r.length),l=a===-1||o<=a;return[t.slice(r.length,l?o:a),t.slice(o+i.length),l?"":t.slice(a+1,o)]}}}}var C={l:["-left"],r:["-right"],t:["-top"],b:["-bottom"],s:["-inline-start"],e:["-inline-end"],x:["-left","-right"],y:["-top","-bottom"],"":[""],bs:["-block-start"],be:["-block-end"],is:["-inline-start"],ie:["-inline-end"],block:["-block-start","-block-end"],inline:["-inline-start","-inline-end"]},se={...C,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"]},ie={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"]},Xe={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},Ze=["x","y","z"],Ot=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],V=Object.assign({},...Ot.map(e=>({[e.replace(/ /,"-")]:e})),...Ot.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),w=["inherit","initial","revert","revert-layer","unset"],Q=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,ke=/^(var)\s*\((.+)\)(.*)/,Se=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Tt=/^(-?\d*(?:\.\d+)?)$/,Nt=/^(px|[sld]?v[wh])$/i,Bt={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},Wt=/^\[(color|image|length|size|position|quoted|string):/i,ar=/,(?![^()]*\))/g,Je=ge({auto:()=>fr,bracket:()=>gr,bracketOfColor:()=>br,bracketOfLength:()=>xr,bracketOfPosition:()=>yr,cssvar:()=>$r,degree:()=>vr,fraction:()=>mr,global:()=>kr,number:()=>dr,numberWithUnit:()=>cr,percent:()=>pr,position:()=>Cr,properties:()=>Sr,px:()=>hr,rem:()=>ur,time:()=>wr}),lr=["color","border-color","background-color","outline-color","text-decoration-color","flex-grow","flex","flex-shrink","grid","grid-template-columns","grid-template-rows","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 z(e){return+e.toFixed(10)}function cr(e){let t=e.match(Se);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(r&&!Number.isNaN(s))return`${z(s)}${r}`}function fr(e){if(e==="auto"||e==="a")return"auto"}function ur(e){if(!e)return;if(Nt.test(e))return`${Bt[e]}${e}`;let t=e.match(Se);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0":r?`${z(s)}${r}`:`${z(s/4)}rem`}function hr(e){if(Nt.test(e))return`${Bt[e]}${e}`;let t=e.match(Se);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return r?`${z(s)}${r}`:`${z(s)}px`}function dr(e){if(!Tt.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return z(t)}function pr(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Tt.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${z(t/100)}`}function mr(e){if(!e)return;if(e==="full")return"100%";let[t,n]=e.split("/"),r=Number.parseFloat(t)/Number.parseFloat(n);if(!Number.isNaN(r))return r===0?"0":`${z(r*100)}%`}function Ce(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let n,r,s=e.match(Wt);if(s?(t||(r=s[1]),n=e.slice(s[0].length,-1)):n=e.slice(1,-1),!n||n==='=""')return;n.startsWith("--")&&(n=`var(${n})`);let i=0;for(let o of n)if(o==="[")i+=1;else if(o==="]"&&(i-=1,i<0))return;if(i)return;switch(r){case"string":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return n.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return n.replace(/(url\(.*?\))/g,o=>o.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,o=>{let a=[];return o.replace(/var\((--.+?)[,)]/g,(l,f)=>(a.push(f),l.replace(f,"--un-calc"))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>a.shift())})}}function gr(e){return Ce(e)}function br(e){return Ce(e,"color")}function xr(e){return Ce(e,"length")}function yr(e){return Ce(e,"position")}function $r(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,n]=e.slice(1).split(",");return`var(--${O(t)}${n?`, ${n}`:""})`}}function wr(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0&&!r?"0s":r?`${z(s)}${r}`:`${z(s)}ms`}function vr(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,n,r]=t,s=Number.parseFloat(n);if(!Number.isNaN(s))return s===0?"0deg":r?`${z(s)}${r}`:`${z(s)}deg`}function kr(e){if(w.includes(e))return e}function Sr(e){if(e.split(",").every(t=>lr.includes(t)))return e}function Cr(e){if(["top","left","right","bottom","center"].includes(e))return e}var Qe=We(Je),c=Qe,It="$$mini-no-negative";function v(e){return([t,n,r],{theme:s})=>{let i=s.spacing?.[r||"DEFAULT"]??c.bracket.cssvar.global.auto.fraction.rem(r);if(i!=null)return C[n].map(o=>[`${e}${o}`,i]);if(r?.startsWith("-")){let o=s.spacing?.[r.slice(1)];if(o!=null)return C[n].map(a=>[`${e}${a}`,`calc(${o} * -1)`])}}}function Mt(e,t,n="colors"){let r=e[n];function s(i,o){if(o.length===0)return i;if(!(!i||typeof i!="object"))for(let a=o.length;a>0;a--){let l=o.slice(0,a).join("-"),f=i[l.replace(/(-[a-z])/g,u=>u.slice(1).toUpperCase())]??i[l];if(f!=null)return a===o.length?f:s(f,o.slice(a))}}return s(r,t)}function Lt(e,t,n){return Mt(e,t,n)||Mt(e,t,"colors")}function oe(e,t){let[n,r]=I(e,"[","]",["/",":"])??[];if(n!=null){let s=(n.match(Wt)??[])[1];if(s==null||s===t)return[n,r]}}function G(e,t,n){let r=oe(e,"color");if(!r)return;let[s,i]=r,o=s.replace(/([a-z])(\d)/g,"$1-$2").split(/-/g),[a]=o;if(!a)return;let l,f=c.bracketOfColor(s),u=f||s;if(c.numberWithUnit(u))return;if(/^#[\da-f]+$/i.test(u)?l=u:/^hex-[\da-fA-F]+$/.test(u)?l=`#${u.slice(4)}`:s.startsWith("$")&&(l=c.cssvar(s)),l=l||f,!l){let p=Lt(t,[s],n);typeof p=="string"&&(l=p)}let d="DEFAULT";if(!l){let p=o,m,[h]=o.slice(-1);/^\d+$/.test(h)&&(d=m=h,p=o.slice(0,-1));let b=Lt(t,p,n);typeof b=="object"?l=b[m??d]:typeof b=="string"&&!m&&(l=b)}return{opacity:i,name:a,no:d,color:l,cssColor:W(l),alpha:c.bracket.cssvar.percent(i??"")}}function k(e,t,n,r){return([,s],{theme:i,generator:o})=>{let a=G(s??"",i,n);if(!a)return;let{alpha:l,color:f,cssColor:u}=a,d=o.config.envMode==="dev"&&f?` /* ${f} */`:"",p={};if(u)if(l!=null)p[e]=j(u,l)+d;else{let m=`--un-${t}-opacity`,h=j(u,`var(${m})`);h.includes(m)&&(p[m]=J(u)),p[e]=h+d}else if(f)if(l!=null)p[e]=j(f,l)+d;else{let m=`--un-${t}-opacity`,h=j(f,`var(${m})`);h.includes(m)&&(p[m]=1),p[e]=h+d}if(r?.(p)!==!1)return p}}function ae(e,t){let n=[];e=E(e);for(let r=0;r<e.length;r++){let s=Z(e[r]," ",6);if(!s||s.length<3)return e;let i=!1,o=s.indexOf("inset");o!==-1&&(s.splice(o,1),i=!0);let a="",l=s.at(-1);if(W(s.at(0))){let f=W(s.shift());f&&(a=`, ${j(f)}`)}else if(W(l)){let f=W(s.pop());f&&(a=`, ${j(f)}`)}else l&&l.startsWith("var(")&&(a=`, ${s.pop()}`);n.push(`${i?"inset ":""}${s.join(" ")} var(${t}${a})`)}return n}function le(e,t,n){return e!=null&&!!G(e,t,n)?.color}var Ft=/[a-z]+/gi,Ye=new WeakMap;function q({theme:e,generator:t},n="breakpoints"){let r=t?.userConfig?.theme?.[n]||e[n];if(!r)return;if(Ye.has(e))return Ye.get(e);let s=Object.entries(r).sort((i,o)=>Number.parseInt(i[1].replace(Ft,""))-Number.parseInt(o[1].replace(Ft,""))).map(([i,o])=>({point:i,size:o}));return Ye.set(e,s),s}function Ut(e){return q(e,"verticalBreakpoints")}function y(e,t){return w.map(n=>[`${e}-${n}`,{[t??e]:n}])}function F(e){return e!=null&&Q.test(e)}function Ee(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),Q.test(e)||Se.test(e)}function ee(e,t,n){let r=t.split(ar);return e||!e&&r.length===1?Xe[e].map(s=>[`--un-${n}${s}`,t]):r.map((s,i)=>[`--un-${n}-${Ze[i]}`,s])}var T=ge({CONTROL_MINI_NO_NEGATIVE:()=>It,colorResolver:()=>k,colorableShadows:()=>ae,cornerMap:()=>ie,cssMathFnRE:()=>Q,cssVarFnRE:()=>ke,directionMap:()=>C,directionSize:()=>v,globalKeywords:()=>w,h:()=>c,handler:()=>Qe,hasParseableColor:()=>le,insetMap:()=>se,isCSSMathFn:()=>F,isSize:()=>Ee,makeGlobalStaticRules:()=>y,parseColor:()=>G,positionMap:()=>V,resolveBreakpoints:()=>q,resolveVerticalBreakpoints:()=>Ut,splitShorthand:()=>oe,transformXYZ:()=>ee,valueHandlers:()=>Je,xyzArray:()=>Ze,xyzMap:()=>Xe});Oe(T,Ke);var g=ge({CONTROL_MINI_NO_NEGATIVE:()=>It,colorResolver:()=>k,colorableShadows:()=>ae,cornerMap:()=>ie,cssMathFnRE:()=>Q,cssVarFnRE:()=>ke,directionMap:()=>C,directionSize:()=>v,globalKeywords:()=>w,h:()=>c,handler:()=>Qe,hasParseableColor:()=>le,insetMap:()=>se,isCSSMathFn:()=>F,isSize:()=>Ee,makeGlobalStaticRules:()=>y,parseColor:()=>G,positionMap:()=>V,resolveBreakpoints:()=>q,resolveVerticalBreakpoints:()=>Ut,splitShorthand:()=>oe,transformXYZ:()=>ee,valueHandlers:()=>Je,xyzArray:()=>Ze,xyzMap:()=>Xe});Oe(g,T);var Dt={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(w.map(e=>[e,e]))},Er=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":Dt[e]??c.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(Dt).join("|")})`,"(vertical|align|v)-<percentage>"]}]],Vt=["center","left","right","justify","start","end"],jr=[...Vt.map(e=>[`text-${e}`,{"text-align":e}]),...[...w,...Vt].map(e=>[`text-align-${e}`,{"text-align":e}])],Ar=[[/^outline-(?:width-|size-)?(.+)$/,Qt,{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,zr,{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??c.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...w].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]];function Qt([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??c.bracket.cssvar.global.px(e)}}function zr(e,t){return F(c.bracket(e[1]))?Qt(e,t):k("outline-color","outline-color","borderColor")(e,t)}var _r=[["appearance-auto",{"-webkit-appearance":"auto",appearance:"auto"}],["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function Rr(e){return c.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var Pr=[[/^will-change-(.+)/,([,e])=>({"will-change":Rr(e)})]],pe=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...w],Or=[[/^(?:border|b)()(?:-(.+))?$/,P,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,P],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,P],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,P],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,P],[/^(?:border|b)-()(?:width|size)-(.+)$/,P,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,P],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,P],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,P],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,P],[/^(?:border|b)-()(?:color-)?(.+)$/,ce,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,ce],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,ce],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,fe,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,fe],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,fe],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,fe],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,fe],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,ue,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-$borderRadius","(rounded|rd)","(rounded|rd)-$borderRadius"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,ue],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,ue],[/^(?:border|b)-(?:style-)?()(.+)$/,he,{autocomplete:["(border|b)-style",`(border|b)-(${pe.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${pe.join("|")})`,`(border|b)-<directions>-style-(${pe.join("|")})`,`(border|b)-style-(${pe.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,he],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,he],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,he],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,he]];function Gt(e,t,n){if(t!=null)return{[`border${n}-color`]:j(e,t)};if(n===""){let r={},s="--un-border-opacity",i=j(e,`var(${s})`);return i.includes(s)&&(r[s]=typeof e=="string"?1:J(e)),r["border-color"]=i,r}else{let r={},s="--un-border-opacity",i=`--un-border${n}-opacity`,o=j(e,`var(${i})`);return o.includes(i)&&(r[s]=typeof e=="string"?1:J(e),r[i]=`var(${s})`),r[`border${n}-color`]=o,r}}function Mr(e){return([,t],n)=>{let r=G(t,n,"borderColor");if(!r)return;let{alpha:s,color:i,cssColor:o}=r;if(o)return Gt(o,s,e);if(i)return Gt(i,s,e)}}function P([,e="",t],{theme:n}){let r=n.lineWidth?.[t||"DEFAULT"]??c.bracket.cssvar.global.px(t||"1");if(e in C&&r!=null)return C[e].map(s=>[`border${s}-width`,r])}function ce([,e="",t],n){if(e in C){if(F(c.bracket(t)))return P(["",e,t],n);if(le(t,n.theme,"borderColor"))return Object.assign({},...C[e].map(r=>Mr(r)(["",t],n.theme)))}}function fe([,e="",t]){let n=c.bracket.percent.cssvar(t);if(e in C&&n!=null)return C[e].map(r=>[`--un-border${r}-opacity`,n])}function ue([,e="",t],{theme:n}){let r=n.borderRadius?.[t||"DEFAULT"]||c.bracket.cssvar.global.fraction.rem(t||"1");if(e in ie&&r!=null)return ie[e].map(s=>[`border${s}-radius`,r])}function he([,e="",t]){if(pe.includes(t)&&e in C)return C[e].map(n=>[`border${n}-style`,t])}var Lr=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:c.bracket.percent.cssvar(e)})]],Fr=/^\[url\(.+\)\]$/,Tr=/^\[(?:length|size):.+\]$/,Nr=/^\[position:.+\]$/,Br=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Wr=/^\[image:.+\]$/,Ir=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(Fr.test(t))return{"--un-url":c.bracket(t),"background-image":"var(--un-url)"};if(Tr.test(t)&&c.bracketOfLength(t)!=null)return{"background-size":c.bracketOfLength(t).split(" ").map(n=>c.fraction.auto.px.cssvar(n)??n).join(" ")};if((Ee(t)||Nr.test(t))&&c.bracketOfPosition(t)!=null)return{"background-position":c.bracketOfPosition(t).split(" ").map(n=>c.position.fraction.auto.px.cssvar(n)??n).join(" ")};if(Br.test(t)||Wr.test(t)){let n=c.bracket(t);if(n)return{"background-image":(n.startsWith("http")?`url(${n})`:c.cssvar(n))??n}}return k("background-color","bg","backgroundColor")(...e)},{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],Ur=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]],Dr=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??"inline-size","container-name":e})]],qt=["solid","double","dotted","dashed","wavy",...w],Vr=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,en,{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,Gr,{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??c.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...qt.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...qt.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];function en([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??c.bracket.cssvar.global.px(e)}}function Gr(e,t){if(F(c.bracket(e[1])))return en(e,t);let n=k("text-decoration-color","line","borderColor")(e,t);if(n)return{"-webkit-text-decoration-color":n["text-decoration-color"],...n}}var qr=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:c.bracket(e)!=null?c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" "):c.cssvar.fraction(e)})],["flex-1",{flex:"1 1 0%"}],["flex-auto",{flex:"1 1 auto"}],["flex-initial",{flex:"0 1 auto"}],["flex-none",{flex:"none"}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=""])=>({"flex-shrink":c.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":c.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??c.bracket.cssvar.auto.fraction.rem(e)}),{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"}]],Hr={"":"",x:"column-",y:"row-",col:"column-",row:"row-"};function et([,e="",t],{theme:n}){let r=n.spacing?.[t]??c.bracket.cssvar.global.rem(t);if(r!=null)return{[`${Hr[e]}gap`]:r}}var Kr=[[/^(?:flex-|grid-)?gap-?()(.+)$/,et,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,et,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,et,{autocomplete:["gap-(col|row)-$spacing","gap-(col|row)-<num>"]}]];function M(e){return e.replace("col","column")}function tt(e){return e[0]==="r"?"Row":"Column"}function Yr(e,t,n){let r=t[`gridAuto${tt(e)}`]?.[n];if(r!=null)return r;switch(n){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return c.bracket.cssvar.auto.rem(n)}var Xr=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:n})=>({[`grid-${M(e)}`]:n[`grid${tt(e)}`]?.[t]??c.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${M(e)}`]:"1/-1"};let n=c.bracket.number(t);if(n!=null)return{[`grid-${M(e)}`]:`span ${n}/span ${n}`}},{autocomplete:"(grid-row|grid-col|row|col)-span-<num>"}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${M(e)}-start`]:c.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${M(e)}-end`]:c.bracket.cssvar(t)??t}),{autocomplete:"(grid-row|grid-col|row|col)-(start|end)-<num>"}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-auto-${M(e)}`]:Yr(e,n,t)}),{autocomplete:"(grid-auto|auto)-(rows|cols)-<num>"}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":c.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":M(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-template-${M(e)}`]:n[`gridTemplate${tt(e)}`]?.[t]??c.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${M(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${M(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:"(grid-rows|grid-cols|rows|cols)-<num>"}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":c.cssvar(t)??t.split("-").map(n=>`"${c.bracket(n)}"`).join(" ")}:{"grid-area":c.bracket.cssvar(t)}],["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"}]],je=["auto","hidden","clip","visible","scroll","overlay",...w],Zr=[[/^(?:overflow|of)-(.+)$/,([,e])=>je.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${je.join("|")})`,`(overflow|of)-(x|y)-(${je.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>je.includes(t)?{[`overflow-${e}`]:t}:void 0]],Jr=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>w.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],tn=[["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"}],...y("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"}],...y("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"}],...y("justify-self")],Qr=[[/^order-(.+)$/,([,e])=>({order:c.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],nn=[["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"}],...y("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"}],...y("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"}],...y("self","align-self")],rn=[["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"}],...y("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"}],...y("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"}],...y("place-self")],es=[...tn,...nn,...rn].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function nt(e,{theme:t}){return t.spacing?.[e]??c.bracket.cssvar.global.auto.fraction.rem(e)}function de([,e,t],n){let r=nt(t,n);if(r!=null&&e in se)return se[e].map(s=>[s.slice(1),r])}var ts=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:nt(e,t)}),{autocomplete:["(position|pos)-inset-<directions>-$spacing","(position|pos)-inset-(block|inline)-$spacing","(position|pos)-inset-(bs|be|is|ie)-$spacing","(position|pos)-(top|left|right|bottom)-$spacing"]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,de],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,de],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,de],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,de],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,de],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],n)=>({[e]:nt(t,n)})]],ns=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-start",{float:"inline-start"}],["float-end",{float:"inline-end"}],["float-none",{float:"none"}],...y("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"}],...y("clear")],rs=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":c.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??c.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],ss=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...y("box","box-sizing")],is=[[/^(where|\?)$/,(e,{constructCSS:t,generator:n})=>{if(n.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}} ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]],os=["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"],as=["none","strict","content","size","inline-size","layout","style","paint"];var ls=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:c.bracket.cssvar.global(e)})]],cs=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...y("backface","backface-visibility")],fs=[[/^cursor-(.+)$/,([,e])=>({cursor:c.bracket.cssvar.global(e)})],...os.map(e=>[`cursor-${e}`,{cursor:e}])],us=[[/^contain-(.*)$/,([,e])=>c.bracket(e)!=null?{contain:c.bracket(e).split(" ").map(t=>c.cssvar.fraction(t)??t).join(" ")}:as.includes(e)?{contain:e}:void 0]],hs=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...y("pointer-events")],ds=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...y("resize")],ps=[["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"}],...y("select","user-select")],ms=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...w].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],gs=[[/^intrinsic(?:-(block|inline|w|h))?(?:-size)?-(.+)$/,([,e,t])=>({[`contain-intrinsic-${{block:"block-size",inline:"inline-size",w:"width",h:"height"}[e]??"size"}`]:c.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:["intrinsic-size-<num>","intrinsic-<num>","intrinsic-(block|inline|w|h)-<num>"]}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...y("content-visibility")],bs=[[/^content-(.+)$/,([,e])=>({content:c.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],xs=[["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"}]],ys=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}],["text-pretty",{"text-wrap":"pretty"}]],$s=[["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"}]],ws=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...y("case","text-transform")],vs=[["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"}]],ks=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]],Ss=[["field-sizing-fixed",{"field-sizing":"fixed"}],["field-sizing-content",{"field-sizing":"content"}]],st={"--un-ring-inset":" ","--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)"},Cs=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.ringWidth?.[e||"DEFAULT"]??c.px(e||"1");if(n)return{"--un-ring-width":n,"--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:Object.keys(st)},autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,sn,{autocomplete:"ring-(width|size)-$lineWidth"}],["ring-offset",{"--un-ring-offset-width":"1px"}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??c.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,Es,{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,k("--un-ring-offset-color","ring-offset","borderColor"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];function sn([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??c.bracket.cssvar.px(e)}}function Es(e,t){return F(c.bracket(e[1]))?sn(e,t):k("--un-ring-color","ring","borderColor")(e,t)}var it={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":" ","--un-shadow":"0 0 rgb(0 0 0 / 0)"},js=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,n]=e,{theme:r}=t,s=r.boxShadow?.[n||"DEFAULT"],i=n?c.bracket.cssvar(n):void 0;return(s!=null||i!=null)&&!le(i,r,"shadowColor")?{"--un-shadow":ae(s||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:k("--un-shadow-color","shadow","shadowColor")(e,t)},{custom:{preflightKeys:Object.keys(it)},autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]],As={h:"height",w:"width",inline:"inline-size",block:"block-size"};function H(e,t){return`${e||""}${As[t]}`}function Ae(e,t,n,r){let s=n[H(e,t).replace(/-(\w)/g,(i,o)=>o.toUpperCase())]?.[r];if(s!=null)return s;switch(r){case"fit":case"max":case"min":return`${r}-content`;case"stretch":return"stretch"}return c.bracket.cssvar.global.auto.fraction.rem(r)}var zs=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:n})=>({[H(e,"w")]:Ae(e,"w",n,t),[H(e,"h")]:Ae(e,"h",n,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,n],{theme:r})=>({[H(e,t)]:Ae(e,t,r,n)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,n],{theme:r})=>({[H(e,t)]:Ae(e,t,r,n)}),{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-(.+)$/,([,e,t,n],r)=>({[H(e,t)]:Ht(r,n,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,n],r)=>({[H(e,t)]:Ht(r,n)}),{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 Ht(e,t,n="breakpoints"){let r=q(e,n);if(r)return r.find(s=>s.point===t)?.size}function _s(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return c.bracket.cssvar.global.auto.number(e)}var Rs=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":_s(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]],Ps=[[/^pa?()-?(.+)$/,v("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,v("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(.+))?$/,v("padding")],[/^p-?([rltbse])(?:-?(.+))?$/,v("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(.+))?$/,v("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(.+))?$/,v("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],Os=[[/^ma?()-?(.+)$/,v("margin")],[/^m-?xy()()$/,v("margin")],[/^m-?([xy])(?:-?(.+))?$/,v("margin")],[/^m-?([rltbse])(?:-?(.+))?$/,v("margin")],[/^m-(block|inline)(?:-(.+))?$/,v("margin")],[/^m-?([bi][se])(?:-?(.+))?$/,v("margin")]],Ms=[[/^fill-(.+)$/,k("fill","fill","backgroundColor"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,on,{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":c.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??c.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,Ls,{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"stroke-(op|opacity)-<percent>"}],["stroke-cap-square",{"stroke-linecap":"square"}],["stroke-cap-round",{"stroke-linecap":"round"}],["stroke-cap-auto",{"stroke-linecap":"butt"}],["stroke-join-arcs",{"stroke-linejoin":"arcs"}],["stroke-join-bevel",{"stroke-linejoin":"bevel"}],["stroke-join-clip",{"stroke-linejoin":"miter-clip"}],["stroke-join-round",{"stroke-linejoin":"round"}],["stroke-join-auto",{"stroke-linejoin":"miter"}],["stroke-none",{stroke:"none"}]];function on([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??c.bracket.cssvar.fraction.px.number(e)}}function Ls(e,t){return F(c.bracket(e[1]))?on(e,t):k("stroke","stroke","borderColor")(e,t)}var ze=["translate","rotate","scale"],Fs=["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(" "),K=["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(" "),Ts=["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(" "),ot={"--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},L=Object.keys(ot),Ns=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":V[e]??c.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(V).join("|")})`,`origin-(${Object.keys(V).join("|")})`]}],[/^(transform-)?perspect(?:ive)?-(.+)$/,([,e,t])=>{let n=c.bracket.cssvar.px.numberWithUnit(t);if(n!=null)return e?{"--un-perspective":`perspective(${n})`,transform:`var(--un-perspective) ${K}`}:{"-webkit-perspective":n,perspective:n}}],[/^perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=c.bracket.cssvar(e)??(e.length>=3?V[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Kt,{custom:{preflightKeys:L}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Kt,{custom:{preflightKeys:L}}],[/^(?:transform-)?rotate-()(.+)$/,Xt,{custom:{preflightKeys:L}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Xt,{custom:{preflightKeys:L}}],[/^(?:transform-)?skew-()(.+)$/,Zt,{custom:{preflightKeys:L}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Zt,{custom:{preflightKeys:L},autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,Yt,{custom:{preflightKeys:L}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Yt,{custom:{preflightKeys:L},autocomplete:[`transform-(${ze.join("|")})-<percent>`,`transform-(${ze.join("|")})-(x|y|z)-<percent>`,`(${ze.join("|")})-<percent>`,`(${ze.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:K},{custom:{preflightKeys:L}}],["transform-cpu",{transform:Fs},{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:Ts},{custom:{preflightKeys:L}}],["transform-none",{transform:"none"}],...y("transform")];function Kt([,e,t],{theme:n}){let r=n.spacing?.[t]??c.bracket.cssvar.fraction.rem(t);if(r!=null)return[...ee(e,r,"translate"),["transform",K]]}function Yt([,e,t]){let n=c.bracket.cssvar.fraction.percent(t);if(n!=null)return[...ee(e,n,"scale"),["transform",K]]}function Xt([,e="",t]){let n=c.bracket.cssvar.degree(t);if(n!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:n,transform:K}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":n,transform:K}}function Zt([,e,t]){let n=c.bracket.cssvar.degree(t);if(n!=null)return[...ee(e,n,"skew"),["transform",K]]}function Jt(e,t){let n;if(c.cssvar(e)!=null)n=c.cssvar(e);else{e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1));let r=e.split(",").map(s=>t.transitionProperty?.[s]??c.properties(s));r.every(Boolean)&&(n=r.join(","))}return n}var Bs=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:n})=>{if(!e&&!t)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.DEFAULT??c.time("150")};if(e!=null){let r=Jt(e,n),s=n.duration?.[t||"DEFAULT"]??c.time(t||"150");if(r)return{"transition-property":r,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":s}}else if(t!=null)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.[t]??c.time(t)}},{autocomplete:"transition-$transitionProperty-$duration"}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??c.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??c.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??c.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let n=c.global(e)||Jt(e,t);if(n)return{"transition-property":n}},{autocomplete:[`transition-property-(${[...w].join("|")})`,"transition-property-$transitionProperty","property-$transitionProperty"]}],["transition-none",{transition:"none"}],...y("transition"),["transition-discrete",{"transition-behavior":"allow-discrete"}],["transition-normal",{"transition-behavior":"normal"}]],Ws=[[/^text-(.+)$/,qs,{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,an,{autocomplete:"text-size-$fontSize"}],[/^text-(?:color-)?(.+)$/,Gs,{autocomplete:"text-$colors"}],[/^(?:color|c)-(.+)$/,k("color","text","textColor"),{autocomplete:"(color|c)-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>w.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${w.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||c.bracket.global.number(e)}),{autocomplete:["(font|fw)-(100|200|300|400|500|600|700|800|900)","(font|fw)-$fontWeight"]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":rt(e,t,"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-(.+)$/,([,e])=>({"font-synthesis":c.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||c.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||c.bracket.cssvar.global.rem(e)}),{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-(.+)$/,([,e])=>({"font-stretch":c.bracket.cssvar.fraction.global(e)}),{autocomplete:"font-stretch-<percentage>"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||c.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],Is=[[/^tab(?:-(.+))?$/,([,e])=>{let t=c.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Us=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||c.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],Ds=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||c.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,k("-webkit-text-stroke-color","text-stroke","borderColor"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Vs=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.textShadow?.[e||"DEFAULT"];return n!=null?{"--un-text-shadow":ae(n,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":c.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,k("--un-text-shadow-color","text-shadow","shadowColor"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":c.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];function rt(e,t,n){return t[n]?.[e]||c.bracket.cssvar.global.rem(e)}function an([,e],{theme:t}){let n=E(t.fontSize?.[e])?.[0]??c.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function Gs(e,t){return F(c.bracket(e[1]))?an(e,t):k("color","text","textColor")(e,t)}function qs([,e="base"],{theme:t}){let n=oe(e,"length");if(!n)return;let[r,s]=n,i=E(t.fontSize?.[r]),o=s?rt(s,t,"lineHeight"):void 0;if(i?.[0]){let[l,f,u]=i;return typeof f=="object"?{"font-size":l,...f}:{"font-size":l,"line-height":o??f??"1","letter-spacing":u?rt(u,t,"letterSpacing"):void 0}}let a=c.bracketOfLength.rem(r);return o&&a?{"font-size":a,"line-height":o}:{"font-size":c.bracketOfLength.rem(e)}}var Hs={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"},Ks=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let n=Hs[e];if(n)return{[n]:c.cssvar(t)}}]],Ys=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(":"))return;let[n,...r]=t.split(":"),s=r.join(":");if(!Zs(t)&&/^[\w-]+$/.test(n)&&Xs(s)){let i=c.bracket(`[${s}]`);if(i)return{[n]:i}}}]];function Xs(e){let t=0;function n(r){for(;t<e.length;)if(t+=1,e[t]===r)return!0;return!1}for(t=0;t<e.length;t++){let r=e[t];if("\"`'".includes(r)){if(!n(r))return!1}else if(r==="("){if(!n(")"))return!1}else if("[]{}:".includes(r))return!1}return!0}function Zs(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var ln=[Ks,Ys,us,hs,cs,Jr,ts,rs,Qr,Xr,ns,Os,ss,ls,Rs,zs,qr,Ns,fs,ps,ds,_r,rn,nn,tn,Kr,es,Zr,$s,ms,xs,Or,Ir,Ur,Ms,Ps,jr,Us,ys,Er,Ws,ws,vs,Vr,ks,Is,Ds,Vs,Lr,js,Ar,Cs,Bs,Pr,gs,bs,Dr,Ss,is].flat(1);var at={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(at).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let n=+t/100;n===Math.round(n)&&(e[n]=e[t])}))});var Js={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Qs={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)"},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(",")},ti={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"]},ni={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},ri={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},si={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)"]},ii={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},dn={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},oi={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},ai=dn,pn={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},li={...pn},ci={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"},ui={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},hi={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},di={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)"},pi={DEFAULT:"3px",none:"0"},mi={auto:"auto"},gi={mouse:"(hover) and (pointer: fine)"},bi={...ot,...it,...st},N={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},xi={auto:"auto",...N,screen:"100vw"},cn={none:"none",...N,screen:"100vw"},yi={auto:"auto",...N,screen:"100vb"},$i={auto:"auto",...N,screen:"100vi"},wi={auto:"auto",...N,screen:"100vh"},fn={none:"none",...N,screen:"100vh"},un={none:"none",...N,screen:"100vb"},hn={none:"none",...N,screen:"100vi"},vi={...N},mn={width:xi,height:wi,maxWidth:cn,maxHeight:fn,minWidth:cn,minHeight:fn,inlineSize:$i,blockSize:yi,maxInlineSize:hn,maxBlockSize:un,minInlineSize:hn,minBlockSize:un,colors:at,fontFamily:ei,fontSize:ti,fontWeight:oi,breakpoints:pn,verticalBreakpoints:li,borderRadius:hi,lineHeight:ii,letterSpacing:dn,wordSpacing:ai,boxShadow:di,textIndent:ni,textShadow:si,textStrokeWidth:ri,blur:Js,dropShadow:Qs,easing:{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)"},transitionProperty:{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(",")}},lineWidth:ci,spacing:fi,duration:ui,ringWidth:pi,preflightBase:bi,containers:vi,zIndex:mi,media:gi};var ki={name:"aria",match(e,t){let n=(0,g.variantGetParameter)("aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[aria-${i}]`}}},multiPass:!0};function _e(e,t,n={}){return{name:`${e}-aria`,match(r,s){let i=(0,g.variantGetParameter)(`${e}-aria-`,r,s.generator.config.separators);if(i){let[o,a,l]=i,f=c.bracket(o)??s.theme.aria?.[o]??"";if(f){let u=!!n?.attributifyPseudo,d=n?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let p=`${u?`[${d}${e}=""]`:`.${d}${e}`}`,m=O(l?`/${l}`:"");return{matcher:a,handle:(h,b)=>{let A=new RegExp(`${R(p)}${R(m)}(?:\\[.+?\\])+`),S=h.prefix.match(A),$;if(S){let x=(S.index??0)+p.length+m.length;$=[h.prefix.slice(0,x),`[aria-${f}]`,h.prefix.slice(x)].join("")}else{let x=Math.max(h.prefix.indexOf(p),0);$=[h.prefix.slice(0,x),p,m,`[aria-${f}]`,t,h.prefix.slice(x)].join("")}return b({...h,prefix:$})}}}}},multiPass:!0}}function Si(){return{name:"has-aria",match(e,t){let n=(0,g.variantGetParameter)("has-aria-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??t.theme.aria?.[r]??"";if(i)return{matcher:s,handle:(o,a)=>a({...o,pseudo:`${o.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function Ci(e={}){return[_e("group"," ",e),_e("peer","~",e),_e("parent",">",e),_e("previous","+",e),Si()]}var gn=/(max|min)-\[([^\]]*)\]:/;function Ei(){let e={};return{name:"breakpoints",match(t,n){if(gn.test(t)){let s=t.match(gn);return{matcher:t.replace(s[0],""),handle:(i,o)=>o({...i,parent:`${i.parent?`${i.parent} $$ `:""}@media (${s[1]}-width: ${s[2]})`})}}let r=(q(n)??[]).map(({point:s,size:i},o)=>[s,i,o]);for(let[s,i,o]of r){e[s]||(e[s]=new RegExp(`^((?:([al]t-|[<~]|max-))?${s}(?:${n.generator.config.separators.join("|")}))`));let a=t.match(e[s]);if(!a)continue;let[,l]=a,f=t.slice(l.length);if(f==="container")continue;let u=l.startsWith("lt-")||l.startsWith("<")||l.startsWith("max-"),d=l.startsWith("at-")||l.startsWith("~"),p=3e3;return u?(p-=o+1,{matcher:f,handle:(m,h)=>h({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (max-width: ${(0,g.calcMaxWidthBySize)(i)})`,parentOrder:p})}):(p+=o+1,d&&o<r.length-1?{matcher:f,handle:(m,h)=>h({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${(0,g.calcMaxWidthBySize)(r[o+1][1])})`,parentOrder:p})}:{matcher:f,handle:(m,h)=>h({...m,parent:`${m.parent?`${m.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:p})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}var ji=[(0,g.variantMatcher)("*",e=>({selector:`${e.selector} > *`}),{order:-1})];function me(e,t){return{name:`combinator:${e}`,match(n,r){if(!n.startsWith(e))return;let s=r.generator.config.separators,i=(0,g.variantGetBracket)(`${e}-`,n,s);if(!i){for(let a of s)if(n.startsWith(`${e}${a}`)){i=["",n.slice(e.length+a.length)];break}if(!i)return}let o=c.bracket(i[0])??"";return o===""&&(o="*"),{matcher:i[1],selector:a=>`${a}${t}${o}`}},multiPass:!0}}var Ai=[me("all"," "),me("children",">"),me("next","+"),me("sibling","+"),me("siblings","~")],zi={name:"@",match(e,t){if(e.startsWith("@container"))return;let n=(0,g.variantGetParameter)("@",e,t.generator.config.separators);if(n){let[r,s,i]=n,o=c.bracket(r),a;if(o?a=c.numberWithUnit(o):a=t.theme.containers?.[r]??"",a){let l=1e3+Object.keys(t.theme.containers??{}).indexOf(r);return i&&(l+=1e3),{matcher:s,handle:(f,u)=>u({...f,parent:`${f.parent?`${f.parent} $$ `:""}@container${i?` ${i} `:" "}(min-width: ${a})`,parentOrder:l})}}}},multiPass:!0};function _i(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:n=".light"}=typeof e.dark=="string"?{}:e.dark;return[(0,g.variantMatcher)("dark",E(t).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`}))),(0,g.variantMatcher)("light",E(n).map(r=>s=>({prefix:`${r} $$ ${s.prefix}`})))]}return[(0,g.variantParentMatcher)("dark","@media (prefers-color-scheme: dark)"),(0,g.variantParentMatcher)("light","@media (prefers-color-scheme: light)")]}var Ri={name:"data",match(e,t){let n=(0,g.variantGetParameter)("data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,selector:o=>`${o}[data-${i}]`}}},multiPass:!0};function Re(e,t,n={}){return{name:`${e}-data`,match(r,s){let i=(0,g.variantGetParameter)(`${e}-data-`,r,s.generator.config.separators);if(i){let[o,a,l]=i,f=c.bracket(o)??s.theme.data?.[o]??"";if(f){let u=!!n?.attributifyPseudo,d=n?.prefix??"";d=(Array.isArray(d)?d:[d]).filter(Boolean)[0]??"";let p=`${u?`[${d}${e}=""]`:`.${d}${e}`}`,m=O(l?`/${l}`:"");return{matcher:a,handle:(h,b)=>{let A=new RegExp(`${R(p)}${R(m)}(?:\\[.+?\\])+`),S=h.prefix.match(A),$;if(S){let x=(S.index??0)+p.length+m.length;$=[h.prefix.slice(0,x),`[data-${f}]`,h.prefix.slice(x)].join("")}else{let x=Math.max(h.prefix.indexOf(p),0);$=[h.prefix.slice(0,x),p,m,`[data-${f}]`,t,h.prefix.slice(x)].join("")}return b({...h,prefix:$})}}}}},multiPass:!0}}function Pi(){return{name:"has-data",match(e,t){let n=(0,g.variantGetParameter)("has-data-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??t.theme.data?.[r]??"";if(i)return{matcher:s,handle:(o,a)=>a({...o,pseudo:`${o.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function Oi(e={}){return[Re("group"," ",e),Re("peer","~",e),Re("parent",">",e),Re("previous","+",e),Pi()]}var Mi=[(0,g.variantMatcher)("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),(0,g.variantMatcher)("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function Li(){let e;return{name:"important",match(t,n){e||(e=new RegExp(`^(important(?:${n.generator.config.separators.join("|")})|!)`));let r,s=t.match(e);if(s?r=t.slice(s[0].length):t.endsWith("!")&&(r=t.slice(0,-1)),r)return{matcher:r,body:i=>(i.forEach(o=>{o[1]!=null&&(o[1]+=" !important")}),i)}}}}var Fi=(0,g.variantParentMatcher)("print","@media print"),Ti={name:"media",match(e,t){let n=(0,g.variantGetParameter)("media-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??"";if(i===""&&(i=t.theme.media?.[r]??""),i)return{matcher:s,handle:(o,a)=>a({...o,parent:`${o.parent?`${o.parent} $$ `:""}@media ${i}`})}}},multiPass:!0},Ni={name:"selector",match(e,t){let n=(0,g.variantGetBracket)("selector-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r);if(i)return{matcher:s,selector:()=>i}}}},Bi={name:"layer",match(e,t){let n=(0,g.variantGetParameter)("layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??r;if(i)return{matcher:s,handle:(o,a)=>a({...o,parent:`${o.parent?`${o.parent} $$ `:""}@layer ${i}`})}}}},Wi={name:"uno-layer",match(e,t){let n=(0,g.variantGetParameter)("uno-layer-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??r;if(i)return{matcher:s,layer:i}}}},Ii={name:"scope",match(e,t){let n=(0,g.variantGetBracket)("scope-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r);if(i)return{matcher:s,selector:o=>`${i} $$ ${o}`}}}},Ui={name:"variables",match(e,t){if(!e.startsWith("["))return;let[n,r]=(0,g.getBracket)(e,"[","]")??[];if(!(n&&r))return;let s;for(let a of t.generator.config.separators)if(r.startsWith(a)){s=r.slice(a.length);break}if(s==null)return;let i=c.bracket(n)??"",o=i.startsWith("@");if(o||i.includes("&"))return{matcher:s,handle(a,l){let f=o?{parent:`${a.parent?`${a.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,a.selector)};return l({...a,...f})}}},multiPass:!0},Di={name:"theme-variables",match(e,t){if((0,g.hasThemeFn)(e))return{matcher:e,handle(n,r){return r({...n,entries:JSON.parse((0,g.transformThemeFn)(JSON.stringify(n.entries),t.theme))})}}}},bn=/^-?[0-9.]+(?:[a-z]+|%)?$/,xn=/-?[0-9.]+(?:[a-z]+|%)?/,Vi=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function Gi(e){let t=e.match(Q)||e.match(ke);if(t){let[n,r]=I(`(${t[2]})${t[3]}`,"(",")"," ")??[];if(n)return`calc(${t[1]}${n} * -1)${r?` ${r}`:""}`}}var qi=/\b(hue-rotate)\s*(\(.*)/;function Hi(e){let t=e.match(qi);if(t){let[n,r]=I(t[2],"(",")"," ")??[];if(n){let s=bn.test(n.slice(1,-1))?n.replace(xn,i=>i.startsWith("-")?i.slice(1):`-${i}`):`(calc(${n} * -1))`;return`${t[1]}${s}${r?` ${r}`:""}`}}}var Ki={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.some(r=>r[0]==="$$mini-no-negative"))return;let n=!1;return t.forEach(r=>{let s=r[1]?.toString();if(!s||s==="0"||Vi.some(a=>a.test(r[0])))return;let i=Gi(s);if(i){r[1]=i,n=!0;return}let o=Hi(s);if(o){r[1]=o,n=!0;return}bn.test(s)&&(r[1]=s.replace(xn,a=>a.startsWith("-")?a.slice(1):`-${a}`),n=!0)}),n?t:[]}}}};function Yi(){return Ve({getBracket:T.getBracket,h:c,variantGetBracket:T.variantGetBracket})}function Xi(){return Ge({getBracket:T.getBracket,h:c,variantGetBracket:T.variantGetBracket})}function Zi(e={}){return qe(e,{getBracket:T.getBracket,h:c,variantGetBracket:T.variantGetBracket})}var Ji=He(),Qi={name:"starting",match(e){if(e.startsWith("starting:"))return{matcher:e.slice(9),handle:(t,n)=>n({...t,parent:"@starting-style"})}}},eo={name:"supports",match(e,t){let n=(0,g.variantGetParameter)("supports-",e,t.generator.config.separators);if(n){let[r,s]=n,i=c.bracket(r)??"";if(i===""&&(i=t.theme.supports?.[r]??""),i)return i.startsWith("(")&&i.endsWith(")")||(i=`(${i})`),{matcher:s,handle:(o,a)=>a({...o,parent:`${o.parent?`${o.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};function yn(e){return[ki,Ri,Bi,Ni,Wi,Ki,Qi,Li(),eo,Fi,Ti,Ei(),...Ai,...Yi(),Xi(),...Zi(e),Ji,..._i(e),...Mi,Ii,...ji,zi,Ui,...Oi(e),...Ci(e),Di]}function to(e){let t,n,r=2166136261;for(t=0,n=e.length;t<n;t++)r^=e.charCodeAt(t),r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24);return`00000${(r>>>0).toString(36)}`.slice(-6)}function no(e,t,n,r){for(let s of Array.from(e.matchAll(n)))if(s!=null){let i=s[0],o=`${r}${to(i)}`;t.set(o,i),e=e.replace(i,o)}return e}function ro(e,t){for(let[n,r]of t.entries())e=e.replaceAll(n,r);return e}var so=/\/\/#\s*sourceMappingURL=.*\n?/g;function io(e){return e.includes("sourceMappingURL=")?e.replace(so,""):e}var oo=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,ao=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,lo=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function co(e){let t=[];for(let s of e.matchAll(ao))s.index!==0&&!/^[\s'"`]/.test(e[s.index-1]??"")||t.push(s[0]);for(let s of e.matchAll(oo))t.push(s[0]);let n=new Map,r="@unocss-skip-arbitrary-brackets";return e=no(e,n,/-\[(?!&.+?;)[^\]]*\]/g,r),e&&e.split(ct).forEach(s=>{s.includes(r)&&(s=ro(s,n)),ut(s)&&!lo.test(s)&&t.push(s)}),t}function $n(){return{name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return co(io(e))}}}function fo(e){if(e.preflight)return[{layer:"preflights",getCSS({theme:t,generator:n}){if(t.preflightBase){let r=Object.entries(t.preflightBase);if(e.preflight==="on-demand"){let s=new Set(Array.from(n.activatedRules).map(i=>i[2]?.custom?.preflightKeys).filter(Boolean).flat());r=r.filter(([i])=>s.has(i))}if(r.length>0){let s=ht(r);return e.variablePrefix!=="un-"&&(s=s.replace(/--un-/g,`--${e.variablePrefix}`)),E(t.preflightRoot??["*,::before,::after","::backdrop"]).map(i=>`${i}{${s}}`).join("")}}}}]}var uo={position:["relative","absolute","fixed","sticky","static"],globalKeyword:w},wn=(e={})=>(e.dark=e.dark??"class",e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??"un-",{name:"@unocss/preset-mini",theme:mn,rules:ln,variants:yn(e),options:e,prefix:e.prefix,postprocess:ho(e.variablePrefix),preflights:fo(e),extractorDefault:e.arbitraryVariants===!1?void 0:$n(),autocomplete:{shorthands:uo}});function ho(e){if(e!=="un-")return t=>{t.entries.forEach(n=>{n[0]=n[0].replace(/^--un-/,`--${e}`),typeof n[1]=="string"&&(n[1]=n[1].replace(/var\(--un-/g,`var(--${e}`))})}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>wn(e)});})();
1
+ (function(){var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,o=(e,t)=>{let r={};for(var i in e)n(r,i,{get:e[i],enumerable:!0});return t||n(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,t,o,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},c=(e,t,n)=>(s(e,t,`default`),n&&s(n,t,`default`));let l=/[\\:]?[\s'"`;{}]+/g;function u(e=[]){return Array.isArray(e)?e:[e]}function d(e){return typeof e==`string`}function f(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function p(e){let t=e.length,n=-1,r,i=``,a=e.charCodeAt(0);for(;++n<t;){if(r=e.charCodeAt(n),r===0){i+=`�`;continue}if(r===37){i+=`\\%`;continue}if(r===44){i+=`\\,`;continue}if(r>=1&&r<=31||r===127||n===0&&r>=48&&r<=57||n===1&&r>=48&&r<=57&&a===45){i+=`\\${r.toString(16)} `;continue}if(n===0&&t===1&&r===45){i+=`\\${e.charAt(n)}`;continue}if(r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122){i+=e.charAt(n);continue}i+=`\\${e.charAt(n)}`}return i}let ee=/[\w\u00A0-\uFFFF%-?]/;function te(e=``){return ee.test(e)}function ne(e){return e.filter(([t,n],r)=>{if(t.startsWith(`$$`))return!1;for(let i=r-1;i>=0;i--)if(e[i][0]===t&&e[i][1]===n)return!1;return!0})}function re(e){return e==null?``:ne(e).map(([e,t])=>t!=null&&typeof t!=`function`?e===`__virtual_key__`?t:`${e}:${t};`:void 0).filter(Boolean).join(``)}function ie(e){return e}var ae=44,oe=59,se=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ce=new Uint8Array(64),le=new Uint8Array(128);for(let e=0;e<se.length;e++){let t=se.charCodeAt(e);ce[e]=t,le[t]=e}function m(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(ce[t])}while(r>0);return t}var ue=1024*16,de=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},fe=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(ue)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ue&&(this.out+=de.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+de.decode(e.subarray(0,n)):t}};function pe(e){let t=new fe,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(oe),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(ae),c=m(t,o[0],c),o.length!==1&&(n=m(t,o[1],n),r=m(t,o[2],r),i=m(t,o[3],i),o.length!==4&&(a=m(t,o[4],a)))}}return t.flush()}var me=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},he=class e{constructor(e,t,n){this.start=e,this.end=t,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+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,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,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,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 t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,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 ge(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer==`function`?e=>Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}let _e=ge();var ve=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=pe(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+_e(this.toString())}};function ye(e){let t=e.split(`
2
+ `),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function be(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}let xe=Object.prototype.toString;function Se(e){return xe.call(e)===`[object Object]`}function Ce(e){let t=e.split(`
3
+ `),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}let we=/\w/;var Te=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,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
4
+ `,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=a,a=t.indexOf(`
5
+ `,a+1)}let s=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&s.push(r),this.rawSegments.push(s),this.advance(t.slice(o+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(t));this.pending=null}addUneditedChunk(e,t,n,r,i){let a=t.start,o=!0,s=!1;for(;a<t.end;){if(n[a]===`
6
+ `)r.line+=1,r.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=!0,s=!1;else{if(this.hires||o||i.has(a)){let t=[this.generatedCodeColumn,e,r.line,r.column];this.hires===`boundary`?we.test(n[a])?s||=(this.rawSegments.push(t),!0):(this.rawSegments.push(t),s=!1):this.rawSegments.push(t)}r.column+=1,this.generatedCodeColumn+=1,o=!1}a+=1}this.pending=null}advance(e){if(!e)return;let t=e.split(`
7
+ `);if(t.length>1){for(let e=0;e<t.length-1;e++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=t[t.length-1].length}};let Ee={insertLeft:!1,insertRight:!1,storeName:!1};var De=class e{constructor(e,t={}){let n=new he(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:t.filename},indentExclusionRanges:{writable:!0,value:t.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new me},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:t.ignoreList},offset:{writable:!0,value:t.offset||0}}),this.byStart[0]=n,this.byEnd[e.length]=n}addSourcemapLocation(e){this.sourcemapLocations.add(e)}append(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.outro+=e,this}appendLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.appendLeft(t):this.intro+=t,this}appendRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.appendRight(t):this.outro+=t,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let e=n.next,i=e&&e.clone();i&&(r.next=i,i.previous=r,r=i),n=e}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new me(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(e){e||={};let t=Object.keys(this.storedNames),n=new Te(e.hires),r=Ce(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext(e=>{let i=r(e.start);e.intro.length&&n.advance(e.intro),e.edited?n.addEdit(0,e.content,i,e.storeName?t.indexOf(e.original):-1):n.addUneditedChunk(0,e,this.original,i,this.sourcemapLocations),e.outro.length&&n.advance(e.outro)}),this.outro&&n.advance(this.outro),{file:e.file?e.file.split(/[/\\]/).pop():void 0,sources:[e.source?be(e.file||``,e.source):e.file||``],sourcesContent:e.includeContent?[this.original]:void 0,names:t,mappings:n.raw,x_google_ignoreList:this.ignoreList?[0]:void 0}}generateMap(e){return new ve(this.generateDecodedMap(e))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ye(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?` `:this.indentStr}indent(e,t){let n=/^[^\r\n]/gm;if(Se(e)&&(t=e,e=void 0),e===void 0&&(this._ensureindentStr(),e=this.indentStr||` `),e===``)return this;t||={};let r={};t.exclude&&(typeof t.exclude[0]==`number`?[t.exclude]:t.exclude).forEach(e=>{for(let t=e[0];t<e[1];t+=1)r[t]=!0});let i=t.indentStart!==!1,a=t=>i?`${e}${t}`:(i=!0,t);this.intro=this.intro.replace(n,a);let o=0,s=this.firstChunk;for(;s;){let t=s.end;if(s.edited)r[o]||(s.content=s.content.replace(n,a),s.content.length&&(i=s.content[s.content.length-1]===`
8
+ `));else for(o=s.start;o<t;){if(!r[o]){let t=this.original[o];t===`
9
+ `?i=!0:t!==`\r`&&i&&(i=!1,o===s.start?s.prependRight(e):(this._splitChunk(s,o),s=s.next,s.prependRight(e)))}o+=1}o=s.end,s=s.next}return this.outro=this.outro.replace(n,a),this}insert(){throw Error(`magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)`)}insertLeft(e,t){return Ee.insertLeft||=(console.warn(`magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead`),!0),this.appendLeft(e,t)}insertRight(e,t){return Ee.insertRight||=(console.warn(`magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead`),!0),this.prependRight(e,t)}move(e,t,n){if(e+=this.offset,t+=this.offset,n+=this.offset,n>=e&&n<=t)throw Error(`Cannot move a selection inside itself`);this._split(e),this._split(t),this._split(n);let r=this.byStart[e],i=this.byEnd[t],a=r.previous,o=i.next,s=this.byStart[n];if(!s&&i===this.lastChunk)return this;let c=s?s.previous:this.lastChunk;return a&&(a.next=o),o&&(o.previous=a),c&&(c.next=r),s&&(s.previous=i),r.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=r.previous,this.lastChunk.next=null),r.previous=c,i.next=s||null,c||(this.firstChunk=r),s||(this.lastChunk=i),this}overwrite(e,t,n,r){return r||={},this.update(e,t,n,{...r,overwrite:!r.contentOnly})}update(e,t,n,r){if(e+=this.offset,t+=this.offset,typeof n!=`string`)throw TypeError(`replacement content must be a string`);if(this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(t>this.original.length)throw Error(`end is out of bounds`);if(e===t)throw Error(`Cannot overwrite a zero-length range – use appendLeft or prependRight instead`);this._split(e),this._split(t),r===!0&&(Ee.storeName||=(console.warn(`The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string`),!0),r={storeName:!0});let i=r===void 0?!1:r.storeName,a=r===void 0?!1:r.overwrite;if(i){let n=this.original.slice(e,t);Object.defineProperty(this.storedNames,n,{writable:!0,value:!0,enumerable:!0})}let o=this.byStart[e],s=this.byEnd[t];if(o){let e=o;for(;e!==s;){if(e.next!==this.byStart[e.end])throw Error(`Cannot overwrite across a split point`);e=e.next,e.edit(``,!1)}o.edit(n,i,!a)}else{let r=new he(e,t,``).edit(n,i);s.next=r,r.previous=s}return this}prepend(e){if(typeof e!=`string`)throw TypeError(`outro content must be a string`);return this.intro=e+this.intro,this}prependLeft(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byEnd[e];return n?n.prependLeft(t):this.intro=t+this.intro,this}prependRight(e,t){if(e+=this.offset,typeof t!=`string`)throw TypeError(`inserted content must be a string`);this._split(e);let n=this.byStart[e];return n?n.prependRight(t):this.outro=t+this.outro,this}remove(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.intro=``,n.outro=``,n.edit(``),n=t>n.end?this.byStart[n.end]:null;return this}reset(e,t){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}if(e===t)return this;if(e<0||t>this.original.length)throw Error(`Character is out of bounds`);if(e>t)throw Error(`end must be greater than start`);this._split(e),this._split(t);let n=this.byStart[e];for(;n;)n.reset(),n=t>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(`
10
+ `);if(e!==-1)return this.outro.substr(e+1);let t=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(e=n.outro.lastIndexOf(`
11
+ `),e!==-1)return n.outro.substr(e+1)+t;t=n.outro+t}if(n.content.length>0){if(e=n.content.lastIndexOf(`
12
+ `),e!==-1)return n.content.substr(e+1)+t;t=n.content+t}if(n.intro.length>0){if(e=n.intro.lastIndexOf(`
13
+ `),e!==-1)return n.intro.substr(e+1)+t;t=n.intro+t}}while(n=n.previous);return e=this.intro.lastIndexOf(`
14
+ `),e===-1?this.intro+t:this.intro.substr(e+1)+t}slice(e=0,t=this.original.length-this.offset){if(e+=this.offset,t+=this.offset,this.original.length!==0){for(;e<0;)e+=this.original.length;for(;t<0;)t+=this.original.length}let n=``,r=this.firstChunk;for(;r&&(r.start>e||r.end<=e);){if(r.start<t&&r.end>=t)return n;r=r.next}if(r&&r.edited&&r.start!==e)throw Error(`Cannot use replaced character ${e} as slice start anchor.`);let i=r;for(;r;){r.intro&&(i!==r||r.start===e)&&(n+=r.intro);let a=r.start<t&&r.end>=t;if(a&&r.edited&&r.end!==t)throw Error(`Cannot use replaced character ${t} as slice end anchor.`);let o=i===r?e-r.start:0,s=a?r.content.length+t-r.end:r.content.length;if(n+=r.content.slice(o,s),r.outro&&(!a||r.end===t)&&(n+=r.outro),a)break;r=r.next}return n}snip(e,t){let n=this.clone();return n.remove(0,e),n.remove(t,n.original.length),n}_split(e){if(this.byStart[e]||this.byEnd[e])return;let t=this.lastSearchedChunk,n=t,r=e>t.end;for(;t;){if(t.contains(e))return this._splitChunk(t,e);if(t=r?this.byStart[t.end]:this.byEnd[t.start],t===n)return;n=t}}_splitChunk(e,t){if(e.edited&&e.content.length){let n=Ce(this.original)(t);throw Error(`Cannot split a chunk that has already been edited (${n.line}:${n.column} – "${e.original}")`)}let n=e.split(t);return this.byEnd[t]=e,this.byStart[t]=n,this.byEnd[n.end]=n,e===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=e,!0}toString(){let e=this.intro,t=this.firstChunk;for(;t;)e+=t.toString(),t=t.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,t=0;do t+=e.intro.length+e.content.length+e.outro.length;while(e=e.next);return t}trimLines(){return this.trim(`[\\r\\n]`)}trim(e){return this.trimStart(e).trimEnd(e)}trimEndAborted(e){let t=RegExp((e||`\\s`)+`+$`);if(this.outro=this.outro.replace(t,``),this.outro.length)return!0;let n=this.lastChunk;do{let e=n.end,r=n.trimEnd(t);if(n.end!==e&&(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),r)return!0;n=n.previous}while(n);return!1}trimEnd(e){return this.trimEndAborted(e),this}trimStartAborted(e){let t=RegExp(`^`+(e||`\\s`)+`+`);if(this.intro=this.intro.replace(t,``),this.intro.length)return!0;let n=this.firstChunk;do{let e=n.end,r=n.trimStart(t);if(n.end!==e&&(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),r)return!0;n=n.next}while(n);return!1}trimStart(e){return this.trimStartAborted(e),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(e,t){function n(e,n){return typeof t==`string`?t.replace(/\$(\$|&|\d+)/g,(t,n)=>n===`$`?`$`:n===`&`?e[0]:+n<e.length?e[+n]:`$${n}`):t(...e,e.index,n,e.groups)}function r(e,t){let n,r=[];for(;n=e.exec(t);)r.push(n);return r}if(e.global)r(e,this.original).forEach(e=>{if(e.index!=null){let t=n(e,this.original);t!==e[0]&&this.overwrite(e.index,e.index+e[0].length,t)}});else{let t=this.original.match(e);if(t&&t.index!=null){let e=n(t,this.original);e!==t[0]&&this.overwrite(t.index,t.index+t[0].length,e)}}return this}_replaceString(e,t){let{original:n}=this,r=n.indexOf(e);return r!==-1&&(typeof t==`function`&&(t=t(e,r,n)),e!==t&&this.overwrite(r,r+e.length,t)),this}replace(e,t){return typeof e==`string`?this._replaceString(e,t):this._replaceRegexp(e,t)}_replaceAllString(e,t){let{original:n}=this,r=e.length;for(let i=n.indexOf(e);i!==-1;i=n.indexOf(e,i+r)){let e=n.slice(i,i+r),a=t;typeof t==`function`&&(a=t(e,i,n)),e!==a&&this.overwrite(i,i+r,a)}return this}replaceAll(e,t){if(typeof e==`string`)return this._replaceAllString(e,t);if(!e.global)throw TypeError(`MagicString.prototype.replaceAll called with a non-global RegExp argument`);return this._replaceRegexp(e,t)}},Oe=t({PseudoClassFunctions:()=>rt,PseudoClassFunctionsStr:()=>S,PseudoClasses:()=>b,PseudoClassesAndElementsColonStr:()=>ut,PseudoClassesAndElementsStr:()=>lt,PseudoClassesColon:()=>x,PseudoClassesColonKeys:()=>nt,PseudoClassesColonStr:()=>ot,PseudoClassesKeys:()=>tt,PseudoClassesMulti:()=>it,PseudoClassesMultiStr:()=>st,PseudoClassesStr:()=>at,alphaPlaceholders:()=>Pe,alphaPlaceholdersRE:()=>Fe,calcMaxWidthBySize:()=>Ze,colorOpacityToString:()=>Re,colorToString:()=>v,createPartClasses:()=>gt,createPseudoClassFunctions:()=>pt,createPseudoClassesAndElements:()=>ft,createTaggedPseudoClassMatcher:()=>dt,createTaggedPseudoClasses:()=>mt,createValueHandler:()=>Qe,cssColorFunctions:()=>Ae,excludedPseudo:()=>ct,getBracket:()=>ke,getStringComponent:()=>h,getStringComponents:()=>g,hasIconFn:()=>et,hasThemeFn:()=>Je,hex2rgba:()=>Le,hueInterpolationMethods:()=>Ne,iconFnRE:()=>$e,isInterpolatedMethod:()=>Ie,parseCssColor:()=>_,polarColorSpace:()=>Me,rectangularColorSpace:()=>je,themeFnRE:()=>qe,transformThemeFn:()=>Ye,transformThemeString:()=>Xe,variantGetBracket:()=>yt,variantGetParameter:()=>bt,variantMatcher:()=>_t,variantParentMatcher:()=>vt});function ke(e,t,n){if(e===``)return;let r=e.length,i=0,a=!1,o=0;for(let s=0;s<r;s++)switch(e[s]){case t:a||(a=!0,o=s),i++;break;case n:if(--i,i<0)return;if(i===0)return[e.slice(o,s+1),e.slice(s+1),e.slice(0,o)];break}}function h(e,t,n,r){if(e===``||(d(r)&&(r=[r]),r.length===0))return;let i=e.length,a=0;for(let o=0;o<i;o++)switch(e[o]){case t:a++;break;case n:if(--a<0)return;break;default:for(let t of r){let n=t.length;if(n&&t===e.slice(o,o+n)&&a===0)return o===0||o===i-n?void 0:[e.slice(0,o),e.slice(o+n)]}}return[e,``]}function g(e,t,n,r=`(`,i=`)`){n??=10;let a=[],o=0;for(;e!==``;){if(++o>n)return;let s=h(e,r,i,t);if(!s)return;let[c,l]=s;a.push(c),e=l}if(a.length>0)return a}let Ae=[`hsl`,`hsla`,`hwb`,`lab`,`lch`,`oklab`,`oklch`,`rgb`,`rgba`],je=[`srgb`,`srgb-linear`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec2020`,`lab`,`oklab`,`xyz`,`xyz-d50`,`xyz-d65`],Me=[`hsl`,`hwb`,`lch`,`oklch`],Ne=[`shorter`,`longer`,`increasing`,`decreasing`],Pe=[`%alpha`,`<alpha-value>`],Fe=new RegExp(Pe.map(e=>f(e)).join(`|`),`g`);function Ie(e){return e?je.some(t=>e.includes(t))||Me.some(t=>e.includes(t))||Ne.some(t=>e.includes(t)):!1}function Le(e=``){let t=Be(e);if(t!=null){let{components:e,alpha:n}=t;return n==null?e:[...e,n]}}function _(e=``){let t=ze(e);if(t==null||t===!1)return;let{type:n,components:r,alpha:i}=t,a=n.toLowerCase();if(r.length!==0&&!(Ae.includes(a)&&![1,3].includes(r.length)))return{type:a,components:r.map(e=>typeof e==`string`?e.trim():e),alpha:typeof i==`string`?i.trim():i}}function Re(e){let t=e.alpha??1;return typeof t==`string`&&Pe.includes(t)?1:t}function v(e,t){if(typeof e==`string`)return e.replace(Fe,`${t??1}`);let{components:n}=e,{alpha:r,type:i}=e;return r=t??r,i=i.toLowerCase(),[`hsla`,`rgba`].includes(i)?`${i}(${n.join(`, `)}${r==null?``:`, ${r}`})`:(r=r==null?``:` / ${r}`,Ae.includes(i)?`${i}(${n.join(` `)}${r})`:`color(${i} ${n.join(` `)}${r})`)}function ze(e){if(!e)return;let t=Be(e);if(t!=null||(t=Ve(e),t!=null)||(t=He(e),t!=null)||(t=We(e),t!=null)||(t=Ge(e),t!=null))return t}function Be(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:{let e=Array.from(t,e=>Number.parseInt(e,16)).map(e=>e<<4|e);return{type:`rgb`,components:e.slice(0,3),alpha:t.length===3?void 0:Math.round(e[3]/255*100)/100}}case 6:case 8:{let e=Number.parseInt(t,16);return{type:`rgb`,components:t.length===6?[e>>16&255,e>>8&255,e&255]:[e>>24&255,e>>16&255,e>>8&255],alpha:t.length===6?void 0:Math.round((e&255)/255*100)/100}}}}function Ve(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:`rgb`,components:t.slice(0,3),alpha:t[3]}}function He(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,n,r]=t,i=g(r,`,`,5);if(i){if([3,4].includes(i.length))return{type:n,components:i.slice(0,3),alpha:i[3]};if(i.length!==1)return!1}}let Ue=RegExp(`^(${Ae.join(`|`)})\\((.+)\\)$`,`i`);function We(e){let t=e.match(Ue);if(!t)return;let[,n,r]=t,i=Ke(`${n} ${r}`);if(i){let{alpha:e,components:[t,...n]}=i;return{type:t,components:n,alpha:e}}}function Ge(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let n=Ke(t[1]);if(n){let{alpha:e,components:[t,...r]}=n;return{type:t,components:r,alpha:e}}}function Ke(e){let t=g(e,` `);if(!t)return;let n=t.length;if(t[n-2]===`/`)return{components:t.slice(0,n-2),alpha:t[n-1]};if(t[n-2]!=null&&(t[n-2].endsWith(`/`)||t[n-1].startsWith(`/`))){let e=t.splice(n-2);t.push(e.join(` `)),--n}let r=g(t[n-1],`/`,2);if(!r)return;if(r.length===1||r[r.length-1]===``)return{components:t};let i=r.pop();return t[n-1]=r.join(`/`),{components:t,alpha:i}}let qe=/theme\(\s*(['"])?(.*?)\1?\s*\)/g;function Je(e){return e.includes(`theme(`)&&e.includes(`)`)}function Ye(e,t,n=!0){let r=Array.from(e.toString().matchAll(qe));if(!r.length)return e;let i=new De(e);for(let e of r){let r=e[2];if(!r)throw Error(`theme() expect exact one argument, but got 0`);let a=Xe(r,t,n);a&&i.overwrite(e.index,e.index+e[0].length,a)}return i.toString()}function Xe(e,t,n=!0){let[r,i]=e.split(`/`),a=r.trim().split(`.`).reduce((e,t)=>e?.[t],t);if(typeof a==`object`&&(a=a.DEFAULT),typeof a==`string`){if(i){let e=_(a);e&&(a=v(e,i))}return a}else if(n)throw Error(`theme of "${e}" did not found`)}function Ze(e){let t=e.match(/^-?\d+\.?\d*/)?.[0]||``,n=e.slice(t.length);if(n===`px`){let r=Number.parseFloat(t)-.1;return Number.isNaN(r)?e:`${r}${n}`}return`calc(${e} - 0.1px)`}function Qe(e){let t=function(t,n){let r=this.__options?.sequence||[];this.__options.sequence=[];for(let i of r){let r=e[i](t,n);if(r!=null)return r}};function n(e,t){return e.__options||={sequence:[]},e.__options.sequence.push(t),e}for(let r of Object.keys(e))Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get(){return n(this,r)}});return t}let $e=/icon\(\s*(['"])?(.*?)\1?\s*\)/g;function et(e){return e.includes(`icon(`)&&e.includes(`)`)}let y=`__pseudo_placeholder__`,b=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(${y})`],[`nth-last`,`:nth-last-child(${y})`],[`nth-last-of-type`,`:nth-last-of-type(${y})`],[`nth-of-type`,`:nth-of-type(${y})`],`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`],[`details-content`,`::details-content`]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),tt=Object.keys(b),x=Object.fromEntries([[`backdrop`,`::backdrop`]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),nt=Object.keys(x),rt=[`not`,`is`,`where`,`has`],it=Object.fromEntries([[`selection`,[`::selection`,` *::selection`]],[`marker`,[`::marker`,` *::marker`]]]),at=Object.entries(b).filter(([,e])=>!e.startsWith(`::`)).map(([e])=>e).sort((e,t)=>t.length-e.length).join(`|`),ot=Object.entries(x).filter(([,e])=>!e.startsWith(`::`)).map(([e])=>e).sort((e,t)=>t.length-e.length).join(`|`),S=rt.join(`|`),st=Object.keys(it).sort((e,t)=>t.length-e.length).join(`|`),ct=[`::-webkit-resizer`,`::-webkit-scrollbar`,`::-webkit-scrollbar-button`,`::-webkit-scrollbar-corner`,`::-webkit-scrollbar-thumb`,`::-webkit-scrollbar-track`,`::-webkit-scrollbar-track-piece`,`::file-selector-button`],lt=Object.entries(b).map(([e])=>e).sort((e,t)=>t.length-e.length).join(`|`),ut=Object.entries(x).map(([e])=>e).sort((e,t)=>t.length-e.length).join(`|`);function dt(e,t,n,r){let{h:i,variantGetBracket:a}=r,o=RegExp(`^(${f(t)}:)(\\S+)${f(n)}\\1`),s,c,l,u,d=n=>{let r=a(`${e}-`,n,[]);if(!r)return;let[o,c]=r,l=i.bracket(o);if(l==null)return;let u=c.split(s,1)?.[0]??``,d=`${t}${p(u)}`;return[u,n.slice(n.length-(c.length-u.length-1)),l.includes(`&`)?l.replace(/&/g,d):`${d}${l}`]},ee=e=>{let n=e.match(c)||e.match(l);if(!n)return;let[r,i,a]=n,o=n[3]??``,s=b[a]||x[a]||`:${a}`;return i&&(s=`:${i}(${s})`),[o,e.slice(r.length),`${t}${p(o)}${s}`,a]},te=e=>{let n=e.match(u);if(!n)return;let[r,i,a]=n,o=n[3]??``,s=`:${i}(${a})`;return[o,e.slice(r.length),`${t}${p(o)}${s}`]};return{name:`pseudo:${e}`,match(t,r){if(s&&c&&l||(s=RegExp(`(?:${r.generator.config.separators.join(`|`)})`),c=RegExp(`^${e}-(?:(?:(${S})-)?(${at}))(?:(/[\\w-]+))?(?:${r.generator.config.separators.join(`|`)})`),l=RegExp(`^${e}-(?:(?:(${S})-)?(${ot}))(?:(/[\\w-]+))?(?:${r.generator.config.separators.filter(e=>e!==`-`).join(`|`)})`),u=RegExp(`^${e}-(?:(${S})-)?\\[(.+)\\](?:(/[\\w-]+))?(?:${r.generator.config.separators.filter(e=>e!==`-`).join(`|`)})`)),!t.startsWith(e))return;let i=d(t)||ee(t)||te(t);if(!i)return;let[a,f,p,ne=``]=i;return{matcher:f,handle:(e,t)=>t({...e,prefix:`${p}${n}${e.prefix}`.replace(o,`$1$2:`),sort:tt.indexOf(ne)??nt.indexOf(ne)})}},multiPass:!0}}function ft(e){let{h:t}=e,n,r,i;return[{name:`pseudo`,match(e,i){n&&r||(n=RegExp(`^(${lt})(?:-(\\d+|\\[(\\w|[+-.])+\\]))?(?:${i.generator.config.separators.join(`|`)})`),r=RegExp(`^(${ut})(?:${i.generator.config.separators.filter(e=>e!==`-`).join(`|`)})`));let a=e.match(n)||e.match(r);if(a){let n=b[a[1]]||x[a[1]]||`:${a[1]}`;if(a[2]){let e;e=a[2].startsWith(`[`)&&a[2].endsWith(`]`)?t.bracket(a[2]):a[2],e&&(n=n.replace(y,e))}let r=tt.indexOf(a[1]);return r===-1&&(r=nt.indexOf(a[1])),r===-1&&(r=void 0),{matcher:e.slice(a[0].length),handle:(e,t)=>{let i=n.includes(`::`)&&!ct.includes(n)?{pseudo:`${e.pseudo}${n}`}:{selector:`${e.selector}${n}`};return t({...e,...i,sort:r,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${lt}|${ut}):`},{name:`pseudo:multi`,match(e,t){i||=RegExp(`^(${st})(?:${t.generator.config.separators.join(`|`)})`);let n=e.match(i);if(n)return it[n[1]].map(t=>({matcher:e.slice(n[0].length),handle:(e,n)=>n({...e,pseudo:`${e.pseudo}${t}`})}))},multiPass:!1,autocomplete:`(${st}):`}]}function pt(e){let{getBracket:t,h:n}=e,r,i,a;return{match(e,o){r&&i||(r=RegExp(`^(${S})-(${at})(?:${o.generator.config.separators.join(`|`)})`),i=RegExp(`^(${S})-(${ot})(?:${o.generator.config.separators.filter(e=>e!==`-`).join(`|`)})`),a=RegExp(`^(${S})-(\\[.+\\])(?:${o.generator.config.separators.filter(e=>e!==`-`).join(`|`)})`));let s=e.match(r)||e.match(i)||e.match(a);if(s){let r=s[1],i=t(s[2],`[`,`]`)?n.bracket(s[2]):b[s[2]]||x[s[2]]||`:${s[2]}`;return{matcher:e.slice(s[0].length),selector:e=>`${e}:${r}(${i})`}}},multiPass:!0,autocomplete:`(${S})-(${at}|${ot}):`}}function mt(e,t){let n=!!e?.attributifyPseudo,r=e?.prefix??``;r=p((Array.isArray(r)?r:[r]).filter(Boolean)[0]??``);let i=(e,i)=>dt(e,n?`[${r}${e}=""]`:`.${r}${e}`,i,t);return[i(`group`,` `),i(`peer`,`~`),i(`parent`,`>`),i(`previous`,`+`)]}let ht=/(part-\[(.+)\]:)(.+)/;function gt(){return{match(e){let t=e.match(ht);if(t){let n=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:e=>`${e}::${n}`}}},multiPass:!0}}function _t(e,t,n={}){let r;return{name:e,match(i,a){r||=RegExp(`^${f(e)}(?:${a.generator.config.separators.join(`|`)})`);let o=i.match(r);if(o){let e=i.slice(o[0].length),r=u(t).map(t=>({matcher:e,handle:(e,n)=>n({...e,...t(e)}),...n}));return r.length===1?r[0]:r}},autocomplete:`${e}:`}}function vt(e,t){let n;return{name:e,match(r,i){n||=RegExp(`^${f(e)}(?:${i.generator.config.separators.join(`|`)})`);let a=r.match(n);if(a)return{matcher:r.slice(a[0].length),handle:(e,n)=>n({...e,parent:`${e.parent?`${e.parent} $$ `:``}${t}`})}},autocomplete:`${e}:`}}function yt(e,t,n){if(t.startsWith(`${e}[`)){let[r,i]=ke(t.slice(e.length),`[`,`]`)??[];if(r&&i){for(let e of n)if(i.startsWith(e))return[r,i.slice(e.length),e];return[r,i,``]}}}function bt(e,t,n){for(let r of u(e))if(t.startsWith(r)){let e=yt(r,t,n);if(e){let[t=``,r=e[1]]=bt(`/`,e[1],n)??[];return[e[0],r,t]}for(let e of n.filter(e=>e!==`/`)){let n=t.indexOf(e,r.length);if(n!==-1){let i=t.indexOf(`/`,r.length),a=i===-1||n<=i;return[t.slice(r.length,a?n:i),t.slice(n+e.length),a?``:t.slice(i+1,n)]}}}}let C={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`]},w={...C,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`]},xt={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`]},St={x:[`-x`],y:[`-y`],z:[`-z`],"":[`-x`,`-y`]},Ct=[`x`,`y`,`z`],wt=[`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`],T=Object.assign({},...wt.map(e=>({[e.replace(/ /,`-`)]:e})),...wt.map(e=>({[e.replace(/\b(\w)\w+/g,`$1`).replace(/ /,``)]:e}))),E=[`inherit`,`initial`,`revert`,`revert-layer`,`unset`],D=/^(calc|clamp|min|max)\s*\((.+)\)(.*)/,Tt=/^(var)\s*\((.+)\)(.*)/,Et=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Dt=/^(-?\d*(?:\.\d+)?)$/,Ot=/^(px|[sld]?v[wh])$/i,kt={px:1,vw:100,vh:100,svw:100,svh:100,dvw:100,dvh:100,lvh:100,lvw:100},At=/^\[(color|image|length|size|position|quoted|string):/i,jt=/,(?![^()]*\))/g;var Mt=o({auto:()=>Ft,bracket:()=>Ht,bracketOfColor:()=>Ut,bracketOfLength:()=>Wt,bracketOfPosition:()=>Gt,cssvar:()=>Kt,degree:()=>Jt,fraction:()=>Bt,global:()=>Yt,number:()=>Rt,numberWithUnit:()=>Pt,percent:()=>zt,position:()=>Zt,properties:()=>Xt,px:()=>Lt,rem:()=>It,time:()=>qt});let Nt=`color.border-color.background-color.outline-color.text-decoration-color.flex-grow.flex.flex-shrink.grid.grid-template-columns.grid-template-rows.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`.split(`.`);function O(e){return+e.toFixed(10)}function Pt(e){let t=e.match(Et);if(!t)return;let[,n,r]=t,i=Number.parseFloat(n);if(r&&!Number.isNaN(i))return`${O(i)}${r}`}function Ft(e){if(e===`auto`||e===`a`)return`auto`}function It(e){if(!e)return;if(Ot.test(e))return`${kt[e]}${e}`;let t=e.match(Et);if(!t)return;let[,n,r]=t,i=Number.parseFloat(n);if(!Number.isNaN(i))return i===0?`0`:r?`${O(i)}${r}`:`${O(i/4)}rem`}function Lt(e){if(Ot.test(e))return`${kt[e]}${e}`;let t=e.match(Et);if(!t)return;let[,n,r]=t,i=Number.parseFloat(n);if(!Number.isNaN(i))return r?`${O(i)}${r}`:`${O(i)}px`}function Rt(e){if(!Dt.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return O(t)}function zt(e){if(e.endsWith(`%`)&&(e=e.slice(0,-1)),!Dt.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${O(t/100)}`}function Bt(e){if(!e)return;if(e===`full`)return`100%`;let[t,n]=e.split(`/`),r=Number.parseFloat(t)/Number.parseFloat(n);if(!Number.isNaN(r))return r===0?`0`:`${O(r*100)}%`}function Vt(e,t){if(e&&e.startsWith(`[`)&&e.endsWith(`]`)){let n,r,i=e.match(At);if(i?(t||(r=i[1]),n=e.slice(i[0].length,-1)):n=e.slice(1,-1),!n||n===`=""`)return;n.startsWith(`--`)&&(n=`var(${n})`);let a=0;for(let e of n)if(e===`[`)a+=1;else if(e===`]`&&(--a,a<0))return;if(a)return;switch(r){case`string`:return n.replace(/(^|[^\\])_/g,`$1 `).replace(/\\_/g,`_`);case`quoted`:return n.replace(/(^|[^\\])_/g,`$1 `).replace(/\\_/g,`_`).replace(/(["\\])/g,`\\$1`).replace(/^(.+)$/,`"$1"`)}return n.replace(/(url\(.*?\))/g,e=>e.replace(/_/g,`\\_`)).replace(/(^|[^\\])_/g,`$1 `).replace(/\\_/g,`_`).replace(/(?:calc|clamp|max|min)\((.*)/g,e=>{let t=[];return e.replace(/var\((--.+?)[,)]/g,(e,n)=>(t.push(n),e.replace(n,`--un-calc`))).replace(/(-?\d*\.?\d(?!-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,`$1 $2 `).replace(/--un-calc/g,()=>t.shift())})}}function Ht(e){return Vt(e)}function Ut(e){return Vt(e,`color`)}function Wt(e){return Vt(e,`length`)}function Gt(e){return Vt(e,`position`)}function Kt(e){if(/^\$[^\s'"`;{}]/.test(e)){let[t,n]=e.slice(1).split(`,`);return`var(--${p(t)}${n?`, ${n}`:``})`}}function qt(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,n,r]=t,i=Number.parseFloat(n);if(!Number.isNaN(i))return i===0&&!r?`0s`:r?`${O(i)}${r}`:`${O(i)}ms`}function Jt(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,n,r]=t,i=Number.parseFloat(n);if(!Number.isNaN(i))return i===0?`0deg`:r?`${O(i)}${r}`:`${O(i)}deg`}function Yt(e){if(E.includes(e))return e}function Xt(e){if(e.split(`,`).every(e=>Nt.includes(e)))return e}function Zt(e){if([`top`,`left`,`right`,`bottom`,`center`].includes(e))return e}let Qt=Qe(Mt),k=Qt,$t=`$$mini-no-negative`;function A(e){return([t,n,r],{theme:i})=>{let a=i.spacing?.[r||`DEFAULT`]??k.bracket.cssvar.global.auto.fraction.rem(r);if(a!=null)return C[n].map(t=>[`${e}${t}`,a]);if(r?.startsWith(`-`)){let t=i.spacing?.[r.slice(1)];if(t!=null)return C[n].map(n=>[`${e}${n}`,`calc(${t} * -1)`])}}}function en(e,t,n=`colors`){let r=e[n];function i(e,t){if(t.length===0)return e;if(!(!e||typeof e!=`object`))for(let n=t.length;n>0;n--){let r=t.slice(0,n).join(`-`),a=e[r.replace(/(-[a-z])/g,e=>e.slice(1).toUpperCase())]??e[r];if(a!=null)return n===t.length?a:i(a,t.slice(n))}}return i(r,t)}function tn(e,t,n){return en(e,t,n)||en(e,t,`colors`)}function nn(e,t){let[n,r]=h(e,`[`,`]`,[`/`,`:`])??[];if(n!=null){let e=(n.match(At)??[])[1];if(e==null||e===t)return[n,r]}}function j(e,t,n){let r=nn(e,`color`);if(!r)return;let[i,a]=r,o=i.replace(/([a-z])(\d)/g,`$1-$2`).split(/-/g),[s]=o;if(!s)return;let c,l=k.bracketOfColor(i),u=l||i;if(k.numberWithUnit(u))return;if(/^#[\da-f]+$/i.test(u)?c=u:/^hex-[\da-fA-F]+$/.test(u)?c=`#${u.slice(4)}`:i.startsWith(`$`)&&(c=k.cssvar(i)),c||=l,!c){let e=tn(t,[i],n);typeof e==`string`&&(c=e)}let d=`DEFAULT`;if(!c){let e=o,r,[i]=o.slice(-1);/^\d+$/.test(i)&&(d=r=i,e=o.slice(0,-1));let a=tn(t,e,n);typeof a==`object`?c=a[r??d]:typeof a==`string`&&!r&&(c=a)}return{opacity:a,name:s,no:d,color:c,cssColor:_(c),alpha:k.bracket.cssvar.percent(a??``)}}function M(e,t,n,r){return([,i],{theme:a,generator:o})=>{let s=j(i??``,a,n);if(!s)return;let{alpha:c,color:l,cssColor:u}=s,d=o.config.envMode===`dev`&&l?` /* ${l} */`:``,f={};if(u)if(c!=null)f[e]=v(u,c)+d;else{let n=`--un-${t}-opacity`,r=v(u,`var(${n})`);r.includes(n)&&(f[n]=Re(u)),f[e]=r+d}else if(l)if(c!=null)f[e]=v(l,c)+d;else{let n=`--un-${t}-opacity`,r=v(l,`var(${n})`);r.includes(n)&&(f[n]=1),f[e]=r+d}if(r?.(f)!==!1)return f}}function N(e,t){let n=[];e=u(e);for(let r=0;r<e.length;r++){let i=g(e[r],` `,6);if(!i||i.length<3)return e;let a=!1,o=i.indexOf(`inset`);o!==-1&&(i.splice(o,1),a=!0);let s=``,c=i.at(-1);if(_(i.at(0))){let e=_(i.shift());e&&(s=`, ${v(e)}`)}else if(_(c)){let e=_(i.pop());e&&(s=`, ${v(e)}`)}else c&&c.startsWith(`var(`)&&(s=`, ${i.pop()}`);n.push(`${a?`inset `:``}${i.join(` `)} var(${t}${s})`)}return n}function rn(e,t,n){return e!=null&&!!j(e,t,n)?.color}let an=/[a-z]+/gi,on=new WeakMap;function P({theme:e,generator:t},n=`breakpoints`){let r=t?.userConfig?.theme?.[n]||e[n];if(!r)return;if(on.has(e))return on.get(e);let i=Object.entries(r).sort((e,t)=>Number.parseInt(e[1].replace(an,``))-Number.parseInt(t[1].replace(an,``))).map(([e,t])=>({point:e,size:t}));return on.set(e,i),i}function sn(e){return P(e,`verticalBreakpoints`)}function F(e,t){return E.map(n=>[`${e}-${n}`,{[t??e]:n}])}function I(e){return e!=null&&D.test(e)}function cn(e){return e[0]===`[`&&e.slice(-1)===`]`&&(e=e.slice(1,-1)),D.test(e)||Et.test(e)}function L(e,t,n){let r=t.split(jt);return e||!e&&r.length===1?St[e].map(e=>[`--un-${n}${e}`,t]):r.map((e,t)=>[`--un-${n}-${Ct[t]}`,e])}var R=o({CONTROL_MINI_NO_NEGATIVE:()=>$t,colorResolver:()=>M,colorableShadows:()=>N,cornerMap:()=>xt,cssMathFnRE:()=>D,cssVarFnRE:()=>Tt,directionMap:()=>C,directionSize:()=>A,globalKeywords:()=>E,h:()=>k,handler:()=>Qt,hasParseableColor:()=>rn,insetMap:()=>w,isCSSMathFn:()=>I,isSize:()=>cn,makeGlobalStaticRules:()=>F,parseColor:()=>j,positionMap:()=>T,resolveBreakpoints:()=>P,resolveVerticalBreakpoints:()=>sn,splitShorthand:()=>nn,transformXYZ:()=>L,valueHandlers:()=>Mt,xyzArray:()=>Ct,xyzMap:()=>St});c(R,Oe);var z=o({CONTROL_MINI_NO_NEGATIVE:()=>$t,colorResolver:()=>M,colorableShadows:()=>N,cornerMap:()=>xt,cssMathFnRE:()=>D,cssVarFnRE:()=>Tt,directionMap:()=>C,directionSize:()=>A,globalKeywords:()=>E,h:()=>k,handler:()=>Qt,hasParseableColor:()=>rn,insetMap:()=>w,isCSSMathFn:()=>I,isSize:()=>cn,makeGlobalStaticRules:()=>F,parseColor:()=>j,positionMap:()=>T,resolveBreakpoints:()=>P,resolveVerticalBreakpoints:()=>sn,splitShorthand:()=>nn,transformXYZ:()=>L,valueHandlers:()=>Mt,xyzArray:()=>Ct,xyzMap:()=>St});c(z,R);let ln={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(E.map(e=>[e,e]))},un=[[/^(?:vertical|align|v)-(.+)$/,([,e])=>({"vertical-align":ln[e]??k.bracket.cssvar.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(ln).join(`|`)})`,`(vertical|align|v)-<percentage>`]}]],dn=[`center`,`left`,`right`,`justify`,`start`,`end`],fn=[...dn.map(e=>[`text-${e}`,{"text-align":e}]),...[...E,...dn].map(e=>[`text-align-${e}`,{"text-align":e}])],pn=[[/^outline-(?:width-|size-)?(.+)$/,mn,{autocomplete:`outline-(width|size)-<num>`}],[/^outline-(?:color-)?(.+)$/,hn,{autocomplete:`outline-$colors`}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??k.bracket.cssvar.global.px(e)}),{autocomplete:`outline-(offset)-<num>`}],[`outline`,{"outline-style":`solid`}],...[`auto`,`dashed`,`dotted`,`double`,`hidden`,`solid`,`groove`,`ridge`,`inset`,`outset`,...E].map(e=>[`outline-${e}`,{"outline-style":e}]),[`outline-none`,{outline:`2px solid transparent`,"outline-offset":`2px`}]];function mn([,e],{theme:t}){return{"outline-width":t.lineWidth?.[e]??k.bracket.cssvar.global.px(e)}}function hn(e,t){return I(k.bracket(e[1]))?mn(e,t):M(`outline-color`,`outline-color`,`borderColor`)(e,t)}let gn=[[`appearance-auto`,{"-webkit-appearance":`auto`,appearance:`auto`}],[`appearance-none`,{"-webkit-appearance":`none`,appearance:`none`}]];function _n(e){return k.properties.auto.global(e)??{contents:`contents`,scroll:`scroll-position`}[e]}let vn=[[/^will-change-(.+)/,([,e])=>({"will-change":_n(e)})]],B=[`solid`,`dashed`,`dotted`,`double`,`hidden`,`none`,`groove`,`ridge`,`inset`,`outset`,...E],yn=[[/^(?:border|b)()(?:-(.+))?$/,V,{autocomplete:`(border|b)-<directions>`}],[/^(?:border|b)-([xy])(?:-(.+))?$/,V],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,V],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,V],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,V],[/^(?:border|b)-()(?:width|size)-(.+)$/,V,{autocomplete:[`(border|b)-<num>`,`(border|b)-<directions>-<num>`]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,V],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,V],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,V],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,V],[/^(?:border|b)-()(?:color-)?(.+)$/,H,{autocomplete:[`(border|b)-$colors`,`(border|b)-<directions>-$colors`]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,H],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,H],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,H],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,H],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,U,{autocomplete:`(border|b)-(op|opacity)-<percent>`}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,U],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,U],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,U],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,U],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,W,{autocomplete:[`(border|b)-(rounded|rd)`,`(border|b)-(rounded|rd)-$borderRadius`,`(rounded|rd)`,`(rounded|rd)-$borderRadius`]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,W],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,W],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,W],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,W],[/^(?:border|b)-(?:style-)?()(.+)$/,G,{autocomplete:[`(border|b)-style`,`(border|b)-(${B.join(`|`)})`,`(border|b)-<directions>-style`,`(border|b)-<directions>-(${B.join(`|`)})`,`(border|b)-<directions>-style-(${B.join(`|`)})`,`(border|b)-style-(${B.join(`|`)})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,G],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,G],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,G],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,G]];function bn(e,t,n){if(t!=null)return{[`border${n}-color`]:v(e,t)};if(n===``){let t={},n=`--un-border-opacity`,r=v(e,`var(${n})`);return r.includes(n)&&(t[n]=typeof e==`string`?1:Re(e)),t[`border-color`]=r,t}else{let t={},r=`--un-border-opacity`,i=`--un-border${n}-opacity`,a=v(e,`var(${i})`);return a.includes(i)&&(t[r]=typeof e==`string`?1:Re(e),t[i]=`var(${r})`),t[`border${n}-color`]=a,t}}function xn(e){return([,t],n)=>{let r=j(t,n,`borderColor`);if(!r)return;let{alpha:i,color:a,cssColor:o}=r;if(o)return bn(o,i,e);if(a)return bn(a,i,e)}}function V([,e=``,t],{theme:n}){let r=n.lineWidth?.[t||`DEFAULT`]??k.bracket.cssvar.global.px(t||`1`);if(e in C&&r!=null)return C[e].map(e=>[`border${e}-width`,r])}function H([,e=``,t],n){if(e in C){if(I(k.bracket(t)))return V([``,e,t],n);if(rn(t,n.theme,`borderColor`))return Object.assign({},...C[e].map(e=>xn(e)([``,t],n.theme)))}}function U([,e=``,t]){let n=k.bracket.percent.cssvar(t);if(e in C&&n!=null)return C[e].map(e=>[`--un-border${e}-opacity`,n])}function W([,e=``,t],{theme:n}){let r=n.borderRadius?.[t||`DEFAULT`]||k.bracket.cssvar.global.fraction.rem(t||`1`);if(e in xt&&r!=null)return xt[e].map(e=>[`border${e}-radius`,r])}function G([,e=``,t]){if(B.includes(t)&&e in C)return C[e].map(e=>[`border${e}-style`,t])}let Sn=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:k.bracket.percent.cssvar(e)})]],Cn=/^\[url\(.+\)\]$/,wn=/^\[(?:length|size):.+\]$/,Tn=/^\[position:.+\]$/,En=/^\[(?:linear|conic|radial)-gradient\(.+\)\]$/,Dn=/^\[image:.+\]$/,On=[[/^bg-(.+)$/,(...e)=>{let t=e[0][1];if(Cn.test(t))return{"--un-url":k.bracket(t),"background-image":`var(--un-url)`};if(wn.test(t)&&k.bracketOfLength(t)!=null)return{"background-size":k.bracketOfLength(t).split(` `).map(e=>k.fraction.auto.px.cssvar(e)??e).join(` `)};if((cn(t)||Tn.test(t))&&k.bracketOfPosition(t)!=null)return{"background-position":k.bracketOfPosition(t).split(` `).map(e=>k.position.fraction.auto.px.cssvar(e)??e).join(` `)};if(En.test(t)||Dn.test(t)){let e=k.bracket(t);if(e)return{"background-image":(e.startsWith(`http`)?`url(${e})`:k.cssvar(e))??e}}return M(`background-color`,`bg`,`backgroundColor`)(...e)},{autocomplete:`bg-$colors`}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`bg-(op|opacity)-<percent>`}]],kn=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]],An=[[/^@container(?:\/(\w+))?(?:-(normal|inline-size|size))?$/,([,e,t])=>({"container-type":t??`inline-size`,"container-name":e})]],jn=[`solid`,`double`,`dotted`,`dashed`,`wavy`,...E],Mn=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:`decoration-(underline|overline|line-through)`}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,Nn,{autocomplete:`(underline|decoration)-<num>`}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:`(underline|decoration)-(auto|from-font)`}],[/^(?:underline|decoration)-(.+)$/,Pn,{autocomplete:`(underline|decoration)-$colors`}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`(underline|decoration)-(op|opacity)-<percent>`}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??k.auto.bracket.cssvar.global.px(e)}),{autocomplete:`(underline|decoration)-(offset)-<num>`}],...jn.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...jn.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),[`no-underline`,{"text-decoration":`none`}],[`decoration-none`,{"text-decoration":`none`}]];function Nn([,e],{theme:t}){return{"text-decoration-thickness":t.lineWidth?.[e]??k.bracket.cssvar.global.px(e)}}function Pn(e,t){if(I(k.bracket(e[1])))return Nn(e,t);let n=M(`text-decoration-color`,`line`,`borderColor`)(e,t);if(n)return{"-webkit-text-decoration-color":n[`text-decoration-color`],...n}}let Fn=[[`flex`,{display:`flex`}],[`inline-flex`,{display:`inline-flex`}],[`flex-inline`,{display:`inline-flex`}],[/^flex-(.*)$/,([,e])=>({flex:k.bracket(e)==null?k.cssvar.fraction(e):k.bracket(e).split(` `).map(e=>k.cssvar.fraction(e)??e).join(` `)})],[`flex-1`,{flex:`1 1 0%`}],[`flex-auto`,{flex:`1 1 auto`}],[`flex-initial`,{flex:`0 1 auto`}],[`flex-none`,{flex:`none`}],[/^(?:flex-)?shrink(?:-(.*))?$/,([,e=``])=>({"flex-shrink":k.bracket.cssvar.number(e)??1}),{autocomplete:[`flex-shrink-<num>`,`shrink-<num>`]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=``])=>({"flex-grow":k.bracket.cssvar.number(e)??1}),{autocomplete:[`flex-grow-<num>`,`grow-<num>`]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??k.bracket.cssvar.auto.fraction.rem(e)}),{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`}]],In={"":``,x:`column-`,y:`row-`,col:`column-`,row:`row-`};function Ln([,e=``,t],{theme:n}){let r=n.spacing?.[t]??k.bracket.cssvar.global.rem(t);if(r!=null)return{[`${In[e]}gap`]:r}}let Rn=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ln,{autocomplete:[`gap-$spacing`,`gap-<num>`]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ln,{autocomplete:[`gap-(x|y)-$spacing`,`gap-(x|y)-<num>`]}],[/^(?:flex-|grid-)?gap-(col|row)-?(.+)$/,Ln,{autocomplete:[`gap-(col|row)-$spacing`,`gap-(col|row)-<num>`]}]];function K(e){return e.replace(`col`,`column`)}function zn(e){return e[0]===`r`?`Row`:`Column`}function Bn(e,t,n){let r=t[`gridAuto${zn(e)}`]?.[n];if(r!=null)return r;switch(n){case`min`:return`min-content`;case`max`:return`max-content`;case`fr`:return`minmax(0,1fr)`}return k.bracket.cssvar.auto.rem(n)}let Vn=[[`grid`,{display:`grid`}],[`inline-grid`,{display:`inline-grid`}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:n})=>({[`grid-${K(e)}`]:n[`grid${zn(e)}`]?.[t]??k.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t===`full`)return{[`grid-${K(e)}`]:`1/-1`};let n=k.bracket.number(t);if(n!=null)return{[`grid-${K(e)}`]:`span ${n}/span ${n}`}},{autocomplete:`(grid-row|grid-col|row|col)-span-<num>`}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${K(e)}-start`]:k.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${K(e)}-end`]:k.bracket.cssvar(t)??t}),{autocomplete:`(grid-row|grid-col|row|col)-(start|end)-<num>`}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-auto-${K(e)}`]:Bn(e,n,t)}),{autocomplete:`(grid-auto|auto)-(rows|cols)-<num>`}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":k.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":K(e).replace(`-`,` `)}),{autocomplete:[`(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)`]}],[/^(?:grid-)?(rows|cols)-(.+)$/,([,e,t],{theme:n})=>({[`grid-template-${K(e)}`]:n[`gridTemplate${zn(e)}`]?.[t]??k.bracket.cssvar(t)})],[/^(?:grid-)?(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${K(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^(?:grid-)?(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${K(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:`(grid-rows|grid-cols|rows|cols)-<num>`}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e==null?{"grid-area":k.bracket.cssvar(t)}:{"grid-template-areas":k.cssvar(t)??t.split(`-`).map(e=>`"${k.bracket(e)}"`).join(` `)}],[`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`}]],Hn=[`auto`,`hidden`,`clip`,`visible`,`scroll`,`overlay`,...E],Un=[[/^(?:overflow|of)-(.+)$/,([,e])=>Hn.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${Hn.join(`|`)})`,`(overflow|of)-(x|y)-(${Hn.join(`|`)})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>Hn.includes(t)?{[`overflow-${e}`]:t}:void 0]],Wn=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:[`(position|pos)-<position>`,`(position|pos)-<globalKeyword>`,`<position>`]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>E.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Gn=[[`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`}],...F(`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`}],...F(`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`}],...F(`justify-self`)],Kn=[[/^order-(.+)$/,([,e])=>({order:k.bracket.cssvar.number(e)})],[`order-first`,{order:`-9999`}],[`order-last`,{order:`9999`}],[`order-none`,{order:`0`}]],qn=[[`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`}],...F(`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`}],...F(`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`}],...F(`self`,`align-self`)],Jn=[[`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`}],...F(`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`}],...F(`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`}],...F(`place-self`)],Yn=[...Gn,...qn,...Jn].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function Xn(e,{theme:t}){return t.spacing?.[e]??k.bracket.cssvar.global.auto.fraction.rem(e)}function q([,e,t],n){let r=Xn(t,n);if(r!=null&&e in w)return w[e].map(e=>[e.slice(1),r])}let Zn=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:Xn(e,t)}),{autocomplete:[`(position|pos)-inset-<directions>-$spacing`,`(position|pos)-inset-(block|inline)-$spacing`,`(position|pos)-inset-(bs|be|is|ie)-$spacing`,`(position|pos)-(top|left|right|bottom)-$spacing`]}],[/^(?:position-|pos-)?(start|end)-(.+)$/,q],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,q],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,q],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,q],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,q],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],n)=>({[e]:Xn(t,n)})]],Qn=[[`float-left`,{float:`left`}],[`float-right`,{float:`right`}],[`float-start`,{float:`inline-start`}],[`float-end`,{float:`inline-end`}],[`float-none`,{float:`none`}],...F(`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`}],...F(`clear`)],$n=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":k.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??k.bracket.cssvar.global.auto.number(e)}),{autocomplete:`z-<num>`}]],er=[[`box-border`,{"box-sizing":`border-box`}],[`box-content`,{"box-sizing":`content-box`}],...F(`box`,`box-sizing`)],tr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:n})=>{if(n.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}} ${t({animation:`__un_qm 0.5s ease-in-out alternate infinite`})}`}]],nr=`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`.split(`.`),rr=[`none`,`strict`,`content`,`size`,`inline-size`,`layout`,`style`,`paint`],ir=[[`inline`,{display:`inline`}],[`block`,{display:`block`}],[`inline-block`,{display:`inline-block`}],[`contents`,{display:`contents`}],[`flow-root`,{display:`flow-root`}],[`list-item`,{display:`list-item`}],[`hidden`,{display:`none`}],[/^display-(.+)$/,([,e])=>({display:k.bracket.cssvar.global(e)})]],ar=[[`visible`,{visibility:`visible`}],[`invisible`,{visibility:`hidden`}],[`backface-visible`,{"backface-visibility":`visible`}],[`backface-hidden`,{"backface-visibility":`hidden`}],...F(`backface`,`backface-visibility`)],or=[[/^cursor-(.+)$/,([,e])=>({cursor:k.bracket.cssvar.global(e)})],...nr.map(e=>[`cursor-${e}`,{cursor:e}])],sr=[[/^contain-(.*)$/,([,e])=>k.bracket(e)==null?rr.includes(e)?{contain:e}:void 0:{contain:k.bracket(e).split(` `).map(e=>k.cssvar.fraction(e)??e).join(` `)}]],cr=[[`pointer-events-auto`,{"pointer-events":`auto`}],[`pointer-events-none`,{"pointer-events":`none`}],...F(`pointer-events`)],lr=[[`resize-x`,{resize:`horizontal`}],[`resize-y`,{resize:`vertical`}],[`resize`,{resize:`both`}],[`resize-none`,{resize:`none`}],...F(`resize`)],ur=[[`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`}],...F(`select`,`user-select`)],dr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`,...E].includes(e)?{"white-space":e}:void 0,{autocomplete:`(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)`}]],fr=[[/^intrinsic(?:-(block|inline|w|h))?(?:-size)?-(.+)$/,([,e,t])=>({[`contain-intrinsic-${{block:`block-size`,inline:`inline-size`,w:`width`,h:`height`}[e]??`size`}`]:k.bracket.cssvar.global.fraction.rem(t)}),{autocomplete:[`intrinsic-size-<num>`,`intrinsic-<num>`,`intrinsic-(block|inline|w|h)-<num>`]}],[`content-visibility-visible`,{"content-visibility":`visible`}],[`content-visibility-hidden`,{"content-visibility":`hidden`}],[`content-visibility-auto`,{"content-visibility":`auto`}],...F(`content-visibility`)],pr=[[/^content-(.+)$/,([,e])=>({content:k.bracket.cssvar(e)})],[`content-empty`,{content:`""`}],[`content-none`,{content:`none`}]],mr=[[`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`}]],hr=[[`text-wrap`,{"text-wrap":`wrap`}],[`text-nowrap`,{"text-wrap":`nowrap`}],[`text-balance`,{"text-wrap":`balance`}],[`text-pretty`,{"text-wrap":`pretty`}]],gr=[[`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`}]],_r=[[`case-upper`,{"text-transform":`uppercase`}],[`case-lower`,{"text-transform":`lowercase`}],[`case-capital`,{"text-transform":`capitalize`}],[`case-normal`,{"text-transform":`none`}],...F(`case`,`text-transform`)],vr=[[`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`}]],yr=[[`antialiased`,{"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`}],[`subpixel-antialiased`,{"-webkit-font-smoothing":`auto`,"-moz-osx-font-smoothing":`auto`}]],br=[[`field-sizing-fixed`,{"field-sizing":`fixed`}],[`field-sizing-content`,{"field-sizing":`content`}]],xr={"--un-ring-inset":` `,"--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)`},Sr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.ringWidth?.[e||`DEFAULT`]??k.px(e||`1`);if(n)return{"--un-ring-width":n,"--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:Object.keys(xr)},autocomplete:`ring-$ringWidth`}],[/^ring-(?:width-|size-)(.+)$/,Cr,{autocomplete:`ring-(width|size)-$lineWidth`}],[`ring-offset`,{"--un-ring-offset-width":`1px`}],[/^ring-offset-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"--un-ring-offset-width":t.lineWidth?.[e]??k.bracket.cssvar.px(e)}),{autocomplete:`ring-offset-(width|size)-$lineWidth`}],[/^ring-(.+)$/,wr,{autocomplete:`ring-$colors`}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`ring-(op|opacity)-<percent>`}],[/^ring-offset-(.+)$/,M(`--un-ring-offset-color`,`ring-offset`,`borderColor`),{autocomplete:`ring-offset-$colors`}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`ring-offset-(op|opacity)-<percent>`}],[`ring-inset`,{"--un-ring-inset":`inset`}]];function Cr([,e],{theme:t}){return{"--un-ring-width":t.ringWidth?.[e]??k.bracket.cssvar.px(e)}}function wr(e,t){return I(k.bracket(e[1]))?Cr(e,t):M(`--un-ring-color`,`ring`,`borderColor`)(e,t)}let Tr={"--un-ring-offset-shadow":`0 0 rgb(0 0 0 / 0)`,"--un-ring-shadow":`0 0 rgb(0 0 0 / 0)`,"--un-shadow-inset":` `,"--un-shadow":`0 0 rgb(0 0 0 / 0)`},Er=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,n]=e,{theme:r}=t,i=r.boxShadow?.[n||`DEFAULT`],a=n?k.bracket.cssvar(n):void 0;return(i!=null||a!=null)&&!rn(a,r,`shadowColor`)?{"--un-shadow":N(i||a,`--un-shadow-color`).join(`,`),"box-shadow":`var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)`}:M(`--un-shadow-color`,`shadow`,`shadowColor`)(e,t)},{custom:{preflightKeys:Object.keys(Tr)},autocomplete:[`shadow-$colors`,`shadow-$boxShadow`]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`shadow-(op|opacity)-<percent>`}],[`shadow-inset`,{"--un-shadow-inset":`inset`}]],Dr={h:`height`,w:`width`,inline:`inline-size`,block:`block-size`};function J(e,t){return`${e||``}${Dr[t]}`}function Or(e,t,n,r){let i=n[J(e,t).replace(/-(\w)/g,(e,t)=>t.toUpperCase())]?.[r];if(i!=null)return i;switch(r){case`fit`:case`max`:case`min`:return`${r}-content`;case`stretch`:return`stretch`}return k.bracket.cssvar.global.auto.fraction.rem(r)}let kr=[[/^size-(min-|max-)?(.+)$/,([,e,t],{theme:n})=>({[J(e,`w`)]:Or(e,`w`,n,t),[J(e,`h`)]:Or(e,`h`,n,t)})],[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,n],{theme:r})=>({[J(e,t)]:Or(e,t,r,n)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,n],{theme:r})=>({[J(e,t)]:Or(e,t,r,n)}),{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-(.+)$/,([,e,t,n],r)=>({[J(e,t)]:Ar(r,n,`verticalBreakpoints`)})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,n],r)=>({[J(e,t)]:Ar(r,n)}),{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 Ar(e,t,n=`breakpoints`){let r=P(e,n);if(r)return r.find(e=>e.point===t)?.size}function jr(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case`square`:return`1/1`;case`video`:return`16/9`}return k.bracket.cssvar.global.auto.number(e)}let Mr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":jr(e)}),{autocomplete:[`aspect-(square|video|ratio)`,`aspect-ratio-(square|video)`]}]],Nr=[[/^pa?()-?(.+)$/,A(`padding`),{autocomplete:[`(m|p)<num>`,`(m|p)-<num>`]}],[/^p-?xy()()$/,A(`padding`),{autocomplete:`(m|p)-(xy)`}],[/^p-?([xy])(?:-?(.+))?$/,A(`padding`)],[/^p-?([rltbse])(?:-?(.+))?$/,A(`padding`),{autocomplete:`(m|p)<directions>-<num>`}],[/^p-(block|inline)(?:-(.+))?$/,A(`padding`),{autocomplete:`(m|p)-(block|inline)-<num>`}],[/^p-?([bi][se])(?:-?(.+))?$/,A(`padding`),{autocomplete:`(m|p)-(bs|be|is|ie)-<num>`}]],Pr=[[/^ma?()-?(.+)$/,A(`margin`)],[/^m-?xy()()$/,A(`margin`)],[/^m-?([xy])(?:-?(.+))?$/,A(`margin`)],[/^m-?([rltbse])(?:-?(.+))?$/,A(`margin`)],[/^m-(block|inline)(?:-(.+))?$/,A(`margin`)],[/^m-?([bi][se])(?:-?(.+))?$/,A(`margin`)]],Fr=[[/^fill-(.+)$/,M(`fill`,`fill`,`backgroundColor`),{autocomplete:`fill-$colors`}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`fill-(op|opacity)-<percent>`}],[`fill-none`,{fill:`none`}],[/^stroke-(?:width-|size-)?(.+)$/,Ir,{autocomplete:[`stroke-width-$lineWidth`,`stroke-size-$lineWidth`]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":k.bracket.cssvar.number(e)}),{autocomplete:`stroke-dash-<num>`}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??k.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:`stroke-offset-$lineWidth`}],[/^stroke-(.+)$/,Lr,{autocomplete:`stroke-$colors`}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`stroke-(op|opacity)-<percent>`}],[`stroke-cap-square`,{"stroke-linecap":`square`}],[`stroke-cap-round`,{"stroke-linecap":`round`}],[`stroke-cap-auto`,{"stroke-linecap":`butt`}],[`stroke-join-arcs`,{"stroke-linejoin":`arcs`}],[`stroke-join-bevel`,{"stroke-linejoin":`bevel`}],[`stroke-join-clip`,{"stroke-linejoin":`miter-clip`}],[`stroke-join-round`,{"stroke-linejoin":`round`}],[`stroke-join-auto`,{"stroke-linejoin":`miter`}],[`stroke-none`,{stroke:`none`}]];function Ir([,e],{theme:t}){return{"stroke-width":t.lineWidth?.[e]??k.bracket.cssvar.fraction.px.number(e)}}function Lr(e,t){return I(k.bracket(e[1]))?Ir(e,t):M(`stroke`,`stroke`,`borderColor`)(e,t)}let Rr=[`translate`,`rotate`,`scale`],zr=[`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(` `),Y=[`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(` `),Br=[`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(` `),Vr={"--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},X=Object.keys(Vr),Hr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":T[e]??k.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(T).join(`|`)})`,`origin-(${Object.keys(T).join(`|`)})`]}],[/^(transform-)?perspect(?:ive)?-(.+)$/,([,e,t])=>{let n=k.bracket.cssvar.px.numberWithUnit(t);if(n!=null)return e?{"--un-perspective":`perspective(${n})`,transform:`var(--un-perspective) ${Y}`}:{"-webkit-perspective":n,perspective:n}}],[/^perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=k.bracket.cssvar(e)??(e.length>=3?T[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,Ur,{custom:{preflightKeys:X}}],[/^(?:transform-)?translate-([xyz])-(.+)$/,Ur,{custom:{preflightKeys:X}}],[/^(?:transform-)?rotate-()(.+)$/,Gr,{custom:{preflightKeys:X}}],[/^(?:transform-)?rotate-([xyz])-(.+)$/,Gr,{custom:{preflightKeys:X}}],[/^(?:transform-)?skew-()(.+)$/,Kr,{custom:{preflightKeys:X}}],[/^(?:transform-)?skew-([xy])-(.+)$/,Kr,{custom:{preflightKeys:X},autocomplete:[`transform-skew-(x|y)-<percent>`,`skew-(x|y)-<percent>`]}],[/^(?:transform-)?scale-()(.+)$/,Wr,{custom:{preflightKeys:X}}],[/^(?:transform-)?scale-([xyz])-(.+)$/,Wr,{custom:{preflightKeys:X},autocomplete:[`transform-(${Rr.join(`|`)})-<percent>`,`transform-(${Rr.join(`|`)})-(x|y|z)-<percent>`,`(${Rr.join(`|`)})-<percent>`,`(${Rr.join(`|`)})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":`preserve-3d`})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":`flat`})],[`transform`,{transform:Y},{custom:{preflightKeys:X}}],[`transform-cpu`,{transform:zr},{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:Br},{custom:{preflightKeys:X}}],[`transform-none`,{transform:`none`}],...F(`transform`)];function Ur([,e,t],{theme:n}){let r=n.spacing?.[t]??k.bracket.cssvar.fraction.rem(t);if(r!=null)return[...L(e,r,`translate`),[`transform`,Y]]}function Wr([,e,t]){let n=k.bracket.cssvar.fraction.percent(t);if(n!=null)return[...L(e,n,`scale`),[`transform`,Y]]}function Gr([,e=``,t]){let n=k.bracket.cssvar.degree(t);if(n!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:n,transform:Y}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":n,transform:Y}}function Kr([,e,t]){let n=k.bracket.cssvar.degree(t);if(n!=null)return[...L(e,n,`skew`),[`transform`,Y]]}function qr(e,t){let n;if(k.cssvar(e)!=null)n=k.cssvar(e);else{e.startsWith(`[`)&&e.endsWith(`]`)&&(e=e.slice(1,-1));let r=e.split(`,`).map(e=>t.transitionProperty?.[e]??k.properties(e));r.every(Boolean)&&(n=r.join(`,`))}return n}let Jr=[[/^transition(?:-(\D+?))?(?:-(\d+))?$/,([,e,t],{theme:n})=>{if(!e&&!t)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.DEFAULT??k.time(`150`)};if(e!=null){let r=qr(e,n),i=n.duration?.[t||`DEFAULT`]??k.time(t||`150`);if(r)return{"transition-property":r,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":i}}else if(t!=null)return{"transition-property":n.transitionProperty?.DEFAULT,"transition-timing-function":n.easing?.DEFAULT,"transition-duration":n.duration?.[t]??k.time(t)}},{autocomplete:`transition-$transitionProperty-$duration`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||`DEFAULT`]??k.bracket.cssvar.time(e)}),{autocomplete:[`transition-duration-$duration`,`duration-$duration`]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||`DEFAULT`]??k.bracket.cssvar.time(e)}),{autocomplete:[`transition-delay-$duration`,`delay-$duration`]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||`DEFAULT`]??k.bracket.cssvar(e)}),{autocomplete:[`transition-ease-(linear|in|out|in-out|DEFAULT)`,`ease-(linear|in|out|in-out|DEFAULT)`]}],[/^(?:transition-)?property-(.+)$/,([,e],{theme:t})=>{let n=k.global(e)||qr(e,t);if(n)return{"transition-property":n}},{autocomplete:[`transition-property-(${[...E].join(`|`)})`,`transition-property-$transitionProperty`,`property-$transitionProperty`]}],[`transition-none`,{transition:`none`}],...F(`transition`),[`transition-discrete`,{"transition-behavior":`allow-discrete`}],[`transition-normal`,{"transition-behavior":`normal`}]],Yr=[[/^text-(.+)$/,ri,{autocomplete:`text-$fontSize`}],[/^(?:text|font)-size-(.+)$/,ti,{autocomplete:`text-size-$fontSize`}],[/^text-(?:color-)?(.+)$/,ni,{autocomplete:`text-$colors`}],[/^(?:color|c)-(.+)$/,M(`color`,`text`,`textColor`),{autocomplete:`(color|c)-$colors`}],[/^(?:text|color|c)-(.+)$/,([,e])=>E.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${E.join(`|`)})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`(text|color|c)-(op|opacity)-<percent>`}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||k.bracket.global.number(e)}),{autocomplete:[`(font|fw)-(100|200|300|400|500|600|700|800|900)`,`(font|fw)-$fontWeight`]}],[/^(?:font-)?(?:leading|lh|line-height)-(.+)$/,([,e],{theme:t})=>({"line-height":ei(e,t,`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-(.+)$/,([,e])=>({"font-synthesis":k.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||k.bracket.cssvar.global.rem(e)}),{autocomplete:`tracking-$letterSpacing`}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||k.bracket.cssvar.global.rem(e)}),{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-(.+)$/,([,e])=>({"font-stretch":k.bracket.cssvar.fraction.global(e)}),{autocomplete:`font-stretch-<percentage>`}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||k.bracket.cssvar.global(e)}),{autocomplete:`font-$fontFamily`}]],Xr=[[/^tab(?:-(.+))?$/,([,e])=>{let t=k.bracket.cssvar.global.number(e||`4`);if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Zr=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||`DEFAULT`]||k.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:`indent-$textIndent`}]],Qr=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||`DEFAULT`]||k.bracket.cssvar.px(e)}),{autocomplete:`text-stroke-$textStrokeWidth`}],[/^text-stroke-(.+)$/,M(`-webkit-text-stroke-color`,`text-stroke`,`borderColor`),{autocomplete:`text-stroke-$colors`}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`text-stroke-(op|opacity)-<percent>`}]],$r=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let n=t.textShadow?.[e||`DEFAULT`];return n==null?{"text-shadow":k.bracket.cssvar.global(e)}:{"--un-text-shadow":N(n,`--un-text-shadow-color`).join(`,`),"text-shadow":`var(--un-text-shadow)`}},{autocomplete:`text-shadow-$textShadow`}],[/^text-shadow-color-(.+)$/,M(`--un-text-shadow-color`,`text-shadow`,`shadowColor`),{autocomplete:`text-shadow-color-$colors`}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":k.bracket.percent.cssvar(e)}),{autocomplete:`text-shadow-color-(op|opacity)-<percent>`}]];function ei(e,t,n){return t[n]?.[e]||k.bracket.cssvar.global.rem(e)}function ti([,e],{theme:t}){let n=u(t.fontSize?.[e])?.[0]??k.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}}function ni(e,t){return I(k.bracket(e[1]))?ti(e,t):M(`color`,`text`,`textColor`)(e,t)}function ri([,e=`base`],{theme:t}){let n=nn(e,`length`);if(!n)return;let[r,i]=n,a=u(t.fontSize?.[r]),o=i?ei(i,t,`lineHeight`):void 0;if(a?.[0]){let[e,n,r]=a;return typeof n==`object`?{"font-size":e,...n}:{"font-size":e,"line-height":o??n??`1`,"letter-spacing":r?ei(r,t,`letterSpacing`):void 0}}let s=k.bracketOfLength.rem(r);return o&&s?{"font-size":s,"line-height":o}:{"font-size":k.bracketOfLength.rem(e)}}let ii={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`},ai=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let n=ii[e];if(n)return{[n]:k.cssvar(t)}}]],oi=[[/^\[(.*)\]$/,([e,t])=>{if(!t.includes(`:`))return;let[n,...r]=t.split(`:`),i=r.join(`:`);if(!ci(t)&&/^[\w-]+$/.test(n)&&si(i)){let e=k.bracket(`[${i}]`);if(e)return{[n]:e}}}]];function si(e){let t=0;function n(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let r=e[t];if(`"\`'`.includes(r)){if(!n(r))return!1}else if(r===`(`){if(!n(`)`))return!1}else if(`[]{}:`.includes(r))return!1}return!0}function ci(e){if(!e.includes(`://`))return!1;try{return new URL(e).host!==``}catch{return!1}}let li=[ai,oi,sr,cr,ar,Wn,Zn,$n,Kn,Vn,Qn,Pr,er,ir,Mr,kr,Fn,Hr,or,ur,lr,gn,Jn,qn,Gn,Rn,Yn,Un,gr,dr,mr,yn,On,kn,Fr,Nr,fn,Zr,hr,un,Yr,_r,vr,Mn,yr,Xr,Qr,$r,Sn,Er,pn,Sr,Jr,vn,fr,pr,An,br,tr].flat(1),ui={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(ui).forEach(e=>{typeof e!=`string`&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let n=t/100;n===Math.round(n)&&(e[n]=e[t])}))});let di={DEFAULT:`8px`,0:`0`,sm:`4px`,md:`12px`,lg:`16px`,xl:`24px`,"2xl":`40px`,"3xl":`64px`},fi={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)`},pi={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(`,`)},mi={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`]},hi={DEFAULT:`1.5rem`,xs:`0.5rem`,sm:`1rem`,md:`1.5rem`,lg:`2rem`,xl:`2.5rem`,"2xl":`3rem`,"3xl":`4rem`},gi={DEFAULT:`1.5rem`,none:`0`,sm:`thin`,md:`medium`,lg:`thick`},_i={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`},yi={tighter:`-0.05em`,tight:`-0.025em`,normal:`0em`,wide:`0.025em`,wider:`0.05em`,widest:`0.1em`},bi={thin:`100`,extralight:`200`,light:`300`,normal:`400`,medium:`500`,semibold:`600`,bold:`700`,extrabold:`800`,black:`900`},xi=yi,Si={sm:`640px`,md:`768px`,lg:`1024px`,xl:`1280px`,"2xl":`1536px`},Ci={...Si},wi={DEFAULT:`1px`,none:`0`},Ti={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`},Ei={DEFAULT:`150ms`,none:`0s`,75:`75ms`,100:`100ms`,150:`150ms`,200:`200ms`,300:`300ms`,500:`500ms`,700:`700ms`,1e3:`1000ms`},Di={DEFAULT:`0.25rem`,none:`0`,sm:`0.125rem`,md:`0.375rem`,lg:`0.5rem`,xl:`0.75rem`,"2xl":`1rem`,"3xl":`1.5rem`,full:`9999px`},Oi={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)`},ki={DEFAULT:`3px`,none:`0`},Ai={auto:`auto`},ji={mouse:`(hover) and (pointer: fine)`},Mi={...Vr,...Tr,...xr},Z={xs:`20rem`,sm:`24rem`,md:`28rem`,lg:`32rem`,xl:`36rem`,"2xl":`42rem`,"3xl":`48rem`,"4xl":`56rem`,"5xl":`64rem`,"6xl":`72rem`,"7xl":`80rem`,prose:`65ch`},Ni={auto:`auto`,...Z,screen:`100vw`},Pi={none:`none`,...Z,screen:`100vw`},Fi={auto:`auto`,...Z,screen:`100vb`},Ii={auto:`auto`,...Z,screen:`100vi`},Li={auto:`auto`,...Z,screen:`100vh`},Ri={none:`none`,...Z,screen:`100vh`},zi={none:`none`,...Z,screen:`100vb`},Bi={none:`none`,...Z,screen:`100vi`},Vi={...Z},Hi={width:Ni,height:Li,maxWidth:Pi,maxHeight:Ri,minWidth:Pi,minHeight:Ri,inlineSize:Ii,blockSize:Fi,maxInlineSize:Bi,maxBlockSize:zi,minInlineSize:Bi,minBlockSize:zi,colors:ui,fontFamily:pi,fontSize:mi,fontWeight:bi,breakpoints:Si,verticalBreakpoints:Ci,borderRadius:Di,lineHeight:vi,letterSpacing:yi,wordSpacing:xi,boxShadow:Oi,textIndent:hi,textShadow:_i,textStrokeWidth:gi,blur:di,dropShadow:fi,easing:{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)`},transitionProperty:{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(`,`)}},lineWidth:wi,spacing:Ti,duration:Ei,ringWidth:ki,preflightBase:Mi,containers:Vi,zIndex:Ai,media:ji},Ui={name:`aria`,match(e,t){let n=(0,z.variantGetParameter)(`aria-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??t.theme.aria?.[e]??``;if(i)return{matcher:r,selector:e=>`${e}[aria-${i}]`}}},multiPass:!0};function Q(e,t,n={}){return{name:`${e}-aria`,match(r,i){let a=(0,z.variantGetParameter)(`${e}-aria-`,r,i.generator.config.separators);if(a){let[r,o,s]=a,c=k.bracket(r)??i.theme.aria?.[r]??``;if(c){let r=!!n?.attributifyPseudo,i=n?.prefix??``;i=(Array.isArray(i)?i:[i]).filter(Boolean)[0]??``;let a=`${r?`[${i}${e}=""]`:`.${i}${e}`}`,l=p(s?`/${s}`:``);return{matcher:o,handle:(e,n)=>{let r=RegExp(`${f(a)}${f(l)}(?:\\[.+?\\])+`),i=e.prefix.match(r),o;if(i){let t=(i.index??0)+a.length+l.length;o=[e.prefix.slice(0,t),`[aria-${c}]`,e.prefix.slice(t)].join(``)}else{let n=Math.max(e.prefix.indexOf(a),0);o=[e.prefix.slice(0,n),a,l,`[aria-${c}]`,t,e.prefix.slice(n)].join(``)}return n({...e,prefix:o})}}}}},multiPass:!0}}function Wi(){return{name:`has-aria`,match(e,t){let n=(0,z.variantGetParameter)(`has-aria-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??t.theme.aria?.[e]??``;if(i)return{matcher:r,handle:(e,t)=>t({...e,pseudo:`${e.pseudo}:has([aria-${i}])`})}}},multiPass:!0}}function Gi(e={}){return[Q(`group`,` `,e),Q(`peer`,`~`,e),Q(`parent`,`>`,e),Q(`previous`,`+`,e),Wi()]}let Ki=/(max|min)-\[([^\]]*)\]:/;function qi(){let e={};return{name:`breakpoints`,match(t,n){if(Ki.test(t)){let e=t.match(Ki);return{matcher:t.replace(e[0],``),handle:(t,n)=>n({...t,parent:`${t.parent?`${t.parent} $$ `:``}@media (${e[1]}-width: ${e[2]})`})}}let r=(P(n)??[]).map(({point:e,size:t},n)=>[e,t,n]);for(let[i,a,o]of r){e[i]||(e[i]=RegExp(`^((?:([al]t-|[<~]|max-))?${i}(?:${n.generator.config.separators.join(`|`)}))`));let s=t.match(e[i]);if(!s)continue;let[,c]=s,l=t.slice(c.length);if(l===`container`)continue;let u=c.startsWith(`lt-`)||c.startsWith(`<`)||c.startsWith(`max-`),d=c.startsWith(`at-`)||c.startsWith(`~`),f=3e3;return u?(f-=o+1,{matcher:l,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@media (max-width: ${(0,z.calcMaxWidthBySize)(a)})`,parentOrder:f})}):(f+=o+1,d&&o<r.length-1?{matcher:l,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@media (min-width: ${a}) and (max-width: ${(0,z.calcMaxWidthBySize)(r[o+1][1])})`,parentOrder:f})}:{matcher:l,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@media (min-width: ${a})`,parentOrder:f})})}},multiPass:!0,autocomplete:`(at-|lt-|max-|)$breakpoints:`}}let Ji=[(0,z.variantMatcher)(`*`,e=>({selector:`${e.selector} > *`}),{order:-1})];function $(e,t){return{name:`combinator:${e}`,match(n,r){if(!n.startsWith(e))return;let i=r.generator.config.separators,a=(0,z.variantGetBracket)(`${e}-`,n,i);if(!a){for(let t of i)if(n.startsWith(`${e}${t}`)){a=[``,n.slice(e.length+t.length)];break}if(!a)return}let o=k.bracket(a[0])??``;return o===``&&(o=`*`),{matcher:a[1],selector:e=>`${e}${t}${o}`}},multiPass:!0}}let Yi=[$(`all`,` `),$(`children`,`>`),$(`next`,`+`),$(`sibling`,`+`),$(`siblings`,`~`)],Xi={name:`@`,match(e,t){if(e.startsWith(`@container`))return;let n=(0,z.variantGetParameter)(`@`,e,t.generator.config.separators);if(n){let[e,r,i]=n,a=k.bracket(e),o;if(o=a?k.numberWithUnit(a):t.theme.containers?.[e]??``,o){let n=1e3+Object.keys(t.theme.containers??{}).indexOf(e);return i&&(n+=1e3),{matcher:r,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@container${i?` ${i} `:` `}(min-width: ${o})`,parentOrder:n})}}}},multiPass:!0};function Zi(e={}){if(e?.dark===`class`||typeof e.dark==`object`){let{dark:t=`.dark`,light:n=`.light`}=typeof e.dark==`string`?{}:e.dark;return[(0,z.variantMatcher)(`dark`,u(t).map(e=>t=>({prefix:`${e} $$ ${t.prefix}`}))),(0,z.variantMatcher)(`light`,u(n).map(e=>t=>({prefix:`${e} $$ ${t.prefix}`})))]}return[(0,z.variantParentMatcher)(`dark`,`@media (prefers-color-scheme: dark)`),(0,z.variantParentMatcher)(`light`,`@media (prefers-color-scheme: light)`)]}let Qi={name:`data`,match(e,t){let n=(0,z.variantGetParameter)(`data-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??t.theme.data?.[e]??``;if(i)return{matcher:r,selector:e=>`${e}[data-${i}]`}}},multiPass:!0};function $i(e,t,n={}){return{name:`${e}-data`,match(r,i){let a=(0,z.variantGetParameter)(`${e}-data-`,r,i.generator.config.separators);if(a){let[r,o,s]=a,c=k.bracket(r)??i.theme.data?.[r]??``;if(c){let r=!!n?.attributifyPseudo,i=n?.prefix??``;i=(Array.isArray(i)?i:[i]).filter(Boolean)[0]??``;let a=`${r?`[${i}${e}=""]`:`.${i}${e}`}`,l=p(s?`/${s}`:``);return{matcher:o,handle:(e,n)=>{let r=RegExp(`${f(a)}${f(l)}(?:\\[.+?\\])+`),i=e.prefix.match(r),o;if(i){let t=(i.index??0)+a.length+l.length;o=[e.prefix.slice(0,t),`[data-${c}]`,e.prefix.slice(t)].join(``)}else{let n=Math.max(e.prefix.indexOf(a),0);o=[e.prefix.slice(0,n),a,l,`[data-${c}]`,t,e.prefix.slice(n)].join(``)}return n({...e,prefix:o})}}}}},multiPass:!0}}function ea(){return{name:`has-data`,match(e,t){let n=(0,z.variantGetParameter)(`has-data-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??t.theme.data?.[e]??``;if(i)return{matcher:r,handle:(e,t)=>t({...e,pseudo:`${e.pseudo}:has([data-${i}])`})}}},multiPass:!0}}function ta(e={}){return[$i(`group`,` `,e),$i(`peer`,`~`,e),$i(`parent`,`>`,e),$i(`previous`,`+`,e),ea()]}let na=[(0,z.variantMatcher)(`rtl`,e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),(0,z.variantMatcher)(`ltr`,e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];function ra(){let e;return{name:`important`,match(t,n){e||=RegExp(`^(important(?:${n.generator.config.separators.join(`|`)})|!)`);let r,i=t.match(e);if(i?r=t.slice(i[0].length):t.endsWith(`!`)&&(r=t.slice(0,-1)),r)return{matcher:r,body:e=>(e.forEach(e=>{e[1]!=null&&(e[1]+=` !important`)}),e)}}}}let ia=(0,z.variantParentMatcher)(`print`,`@media print`),aa={name:`media`,match(e,t){let n=(0,z.variantGetParameter)(`media-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??``;if(i===``&&(i=t.theme.media?.[e]??``),i)return{matcher:r,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@media ${i}`})}}},multiPass:!0},oa={name:`selector`,match(e,t){let n=(0,z.variantGetBracket)(`selector-`,e,t.generator.config.separators);if(n){let[e,t]=n,r=k.bracket(e);if(r)return{matcher:t,selector:()=>r}}}},sa={name:`layer`,match(e,t){let n=(0,z.variantGetParameter)(`layer-`,e,t.generator.config.separators);if(n){let[e,t]=n,r=k.bracket(e)??e;if(r)return{matcher:t,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@layer ${r}`})}}}},ca={name:`uno-layer`,match(e,t){let n=(0,z.variantGetParameter)(`uno-layer-`,e,t.generator.config.separators);if(n){let[e,t]=n,r=k.bracket(e)??e;if(r)return{matcher:t,layer:r}}}},la={name:`scope`,match(e,t){let n=(0,z.variantGetBracket)(`scope-`,e,t.generator.config.separators);if(n){let[e,t]=n,r=k.bracket(e);if(r)return{matcher:t,selector:e=>`${r} $$ ${e}`}}}},ua={name:`variables`,match(e,t){if(!e.startsWith(`[`))return;let[n,r]=(0,z.getBracket)(e,`[`,`]`)??[];if(!(n&&r))return;let i;for(let e of t.generator.config.separators)if(r.startsWith(e)){i=r.slice(e.length);break}if(i==null)return;let a=k.bracket(n)??``,o=a.startsWith(`@`);if(o||a.includes(`&`))return{matcher:i,handle(e,t){let n=o?{parent:`${e.parent?`${e.parent} $$ `:``}${a}`}:{selector:a.replace(/&/g,e.selector)};return t({...e,...n})}}},multiPass:!0},da={name:`theme-variables`,match(e,t){if((0,z.hasThemeFn)(e))return{matcher:e,handle(e,n){return n({...e,entries:JSON.parse((0,z.transformThemeFn)(JSON.stringify(e.entries),t.theme))})}}}},fa=/^-?[0-9.]+(?:[a-z]+|%)?$/,pa=/-?[0-9.]+(?:[a-z]+|%)?/,ma=[/\b(opacity|color|flex|backdrop-filter|^filter|transform)\b/];function ha(e){let t=e.match(D)||e.match(Tt);if(t){let[e,n]=h(`(${t[2]})${t[3]}`,`(`,`)`,` `)??[];if(e)return`calc(${t[1]}${e} * -1)${n?` ${n}`:``}`}}let ga=/\b(hue-rotate)\s*(\(.*)/;function _a(e){let t=e.match(ga);if(t){let[e,n]=h(t[2],`(`,`)`,` `)??[];if(e){let r=fa.test(e.slice(1,-1))?e.replace(pa,e=>e.startsWith(`-`)?e.slice(1):`-${e}`):`(calc(${e} * -1))`;return`${t[1]}${r}${n?` ${n}`:``}`}}}let va={name:`negative`,match(e){if(e.startsWith(`-`))return{matcher:e.slice(1),body:e=>{if(e.some(e=>e[0]===`$$mini-no-negative`))return;let t=!1;return e.forEach(e=>{let n=e[1]?.toString();if(!n||n===`0`||ma.some(t=>t.test(e[0])))return;let r=ha(n);if(r){e[1]=r,t=!0;return}let i=_a(n);if(i){e[1]=i,t=!0;return}fa.test(n)&&(e[1]=n.replace(pa,e=>e.startsWith(`-`)?e.slice(1):`-${e}`),t=!0)}),t?e:[]}}}};function ya(){return ft({getBracket:R.getBracket,h:k,variantGetBracket:R.variantGetBracket})}function ba(){return pt({getBracket:R.getBracket,h:k,variantGetBracket:R.variantGetBracket})}function xa(e={}){return mt(e,{getBracket:R.getBracket,h:k,variantGetBracket:R.variantGetBracket})}let Sa=gt(),Ca={name:`starting`,match(e){if(e.startsWith(`starting:`))return{matcher:e.slice(9),handle:(e,t)=>t({...e,parent:`@starting-style`})}}},wa={name:`supports`,match(e,t){let n=(0,z.variantGetParameter)(`supports-`,e,t.generator.config.separators);if(n){let[e,r]=n,i=k.bracket(e)??``;if(i===``&&(i=t.theme.supports?.[e]??``),i)return/^[\w-]+$/.test(i)&&(i=`(${i}: var(--un))`),i=i.replace(/\b(and|or|not)\b/gi,` $1 `).replace(/\s+/g,` `).trim(),!(i.startsWith(`(`)&&i.endsWith(`)`))&&!/^not\b/i.test(i)&&(i=`(${i})`),{matcher:r,handle:(e,t)=>t({...e,parent:`${e.parent?`${e.parent} $$ `:``}@supports ${i}`})}}},multiPass:!0};function Ta(e){return[Ui,Qi,sa,oa,ca,va,Ca,ra(),wa,ia,aa,qi(),...Yi,...ya(),ba(),...xa(e),Sa,...Zi(e),...na,la,...Ji,Xi,ua,...ta(e),...Gi(e),da]}function Ea(e){let t,n,r=2166136261;for(t=0,n=e.length;t<n;t++)r^=e.charCodeAt(t),r+=(r<<1)+(r<<4)+(r<<7)+(r<<8)+(r<<24);return`00000${(r>>>0).toString(36)}`.slice(-6)}function Da(e,t,n,r){for(let i of Array.from(e.matchAll(n)))if(i!=null){let n=i[0],a=`${r}${Ea(n)}`;t.set(a,n),e=e.replace(n,a)}return e}function Oa(e,t){for(let[n,r]of t.entries())e=e.replaceAll(n,r);return e}let ka=/\/\/#\s*sourceMappingURL=.*\n?/g;function Aa(e){return e.includes(`sourceMappingURL=`)?e.replace(ka,``):e}let ja=/(?:[\w&:[\]-]|\[\S{1,64}=\S{1,64}\]){1,64}\[\\?['"]?\S{1,64}?['"]\]\]?[\w:-]{0,64}/g,Ma=/\[(\\\W|[\w-]){1,64}:[^\s:]{0,64}?("\S{1,64}?"|'\S{1,64}?'|`\S{1,64}?`|[^\s:]{1,64}?)[^\s:]{0,64}?\)?\]/g,Na=/^\[(?:\\\W|[\w-]){1,64}:['"]?\S{1,64}?['"]?\]$/;function Pa(e){let t=[];for(let n of e.matchAll(Ma))n.index!==0&&!/^[\s'"`]/.test(e[n.index-1]??``)||t.push(n[0]);for(let n of e.matchAll(ja))t.push(n[0]);let n=new Map,r=`@unocss-skip-arbitrary-brackets`;return e=Da(e,n,/-\[(?!&.+?;)[^\]]*\]/g,r),e&&e.split(l).forEach(e=>{e.includes(r)&&(e=Oa(e,n)),te(e)&&!Na.test(e)&&t.push(e)}),t}function Fa(){return{name:`@unocss/extractor-arbitrary-variants`,order:0,extract({code:e}){return Pa(Aa(e))}}}function Ia(e){if(e.preflight)return[{layer:`preflights`,getCSS({theme:t,generator:n}){if(t.preflightBase){let r=Object.entries(t.preflightBase);if(e.preflight===`on-demand`){let e=new Set(Array.from(n.activatedRules).map(e=>e[2]?.custom?.preflightKeys).filter(Boolean).flat());r=r.filter(([t])=>e.has(t))}if(r.length>0){let n=re(r);return e.variablePrefix!==`un-`&&(n=n.replace(/--un-/g,`--${e.variablePrefix}`)),u(t.preflightRoot??[`*,::before,::after`,`::backdrop`]).map(e=>`${e}{${n}}`).join(``)}}}}]}let La={position:[`relative`,`absolute`,`fixed`,`sticky`,`static`],globalKeyword:E},Ra=ie((e={})=>(e.dark=e.dark??`class`,e.attributifyPseudo=e.attributifyPseudo??!1,e.preflight=e.preflight??!0,e.variablePrefix=e.variablePrefix??`un-`,{name:`@unocss/preset-mini`,theme:Hi,rules:li,variants:Ta(e),options:e,prefix:e.prefix,postprocess:za(e.variablePrefix),preflights:Ia(e),extractorDefault:e.arbitraryVariants===!1?void 0:Fa(),autocomplete:{shorthands:La}}));function za(e){if(e!==`un-`)return t=>{t.entries.forEach(t=>{t[0]=t[0].replace(/^--un-/,`--${e}`),typeof t[1]==`string`&&(t[1]=t[1].replace(/var\(--un-/g,`var(--${e}`))})}}window.__unocss_runtime=window.__unocss_runtime??{},window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>Ra(e)})})();