@unocss/runtime 0.57.1 → 0.57.3

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,11 +1,11 @@
1
- "use strict";(()=>{var An=Object.defineProperty;var Vn=(e,t)=>{for(var r in t)An(e,r,{get:t[r],enumerable:!0})};function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function P(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}function z(e=[]){return Array.isArray(e)?e:[e]}function Ge(e){return typeof e=="string"}function Pn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Ke(e){return e==null?"":Pn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}var Fn=/[\w\u00A0-\uFFFF-_:%-?]/;function Xe(e=""){return Fn.test(e)}var Ye=new Set;function F(e){Ye.has(e)||(console.warn("[unocss]",e),Ye.add(e))}var ke=/[\\:]?[\s'"`;{}]+/g;var Wn=/\/\/#\s*sourceMappingURL=.*\n?/g;function Ze(e){return e.includes("sourceMappingURL=")?e.replace(Wn,""):e}var _n=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Nn=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,Mn=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function In(e){let t=[];for(let r of e.matchAll(Nn))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(_n))t.push(r[0]);return e.split(ke).forEach(r=>{Xe(r)&&!Mn.test(r)&&t.push(r)}),t}var Je={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return In(Ze(e))}};var Qe=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=Ke(Object.entries(e.theme.preflightBase));return z(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var v={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={...v,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"]},Ce={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"]},le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},et=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],D=Object.assign({},...et.map(e=>({[e.replace(/ /,"-")]:e})),...et.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),m=["inherit","initial","revert","revert-layer","unset"],tt=/^(?:calc|clamp|min|max)\s*\(.*\)/;function L(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(e[l]){case t:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,l+1),e.slice(l+1),e.slice(0,s)];break}}function Re(e,t,r,n){if(e===""||(Ge(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let c=l.length;if(c&&l===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function W(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Re(e,"(",")",t);if(!i)return;let[s,l]=i;n.push(s),e=l}if(n.length>0)return n}var Ee=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rt=["%alpha","<alpha-value>"],Un=new RegExp(rt.map(e=>T(e)).join("|"));function q(e=""){let t=Bn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Ee.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function H(e){let t=e.alpha??1;return typeof t=="string"&&rt.includes(t)?1:t}function k(e,t){if(typeof e=="string")return e.replace(Un,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Ee.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Bn(e){if(!e)return;let t=Dn(e);if(t!=null||(t=qn(e),t!=null)||(t=Hn(e),t!=null)||(t=Kn(e),t!=null)||(t=Xn(e),t!=null))return t}function Dn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function qn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Hn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=W(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Gn=new RegExp(`^(${Ee.join("|")})\\((.+)\\)$`,"i");function Kn(e){let t=e.match(Gn);if(!t)return;let[,r,n]=t,o=nt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function Xn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=nt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function nt(e){let t=W(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=W(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function ot(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}function _(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${T(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,...t(s)})}},autocomplete:`${e}:`}}function G(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${T(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function j(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=L(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function y(e,t,r){if(t.startsWith(e)){let n=j(e,t,r);if(n){let[o="",i=n[1]]=y("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let s=t.indexOf("/",e.length),l=s===-1||i<=s;return[t.slice(e.length,l?i:s),t.slice(i+o.length),l?"":t.slice(s+1,i)]}}}}var Yn=",".charCodeAt(0),Zn=";".charCodeAt(0),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=new Uint8Array(64),Jn=new Uint8Array(128);for(let e=0;e<it.length;e++){let t=it.charCodeAt(e);st[e]=t,Jn[t]=e}var Te=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 r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}};function at(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),s=0,l="";for(let c=0;c<e.length;c++){let u=e[c];if(c>0&&(s===r&&(l+=Te.decode(o),s=0),o[s++]=Zn),u.length!==0){t[0]=0;for(let p=0;p<u.length;p++){let f=u[p];s>n&&(l+=Te.decode(i),o.copyWithin(0,n,s),s-=n),p>0&&(o[s++]=Yn),s=K(o,s,t,f,0),f.length!==1&&(s=K(o,s,t,f,1),s=K(o,s,t,f,2),s=K(o,s,t,f,3),f.length!==4&&(s=K(o,s,t,f,4)))}}}return l+Te.decode(o.subarray(0,s))}function K(e,t,r,n,o){let i=n[o],s=i-r[o];r[o]=i,s=s<0?-s<<1|1:s<<1;do{let l=s&31;s>>>=5,s>0&&(l|=32),e[t++]=st[l]}while(s>0);return t}var ce=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))}},ue=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(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 r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function Qn(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 eo=Qn(),je=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=at(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+eo(this.toString())}};function to(e){let t=e.split(`
2
- `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function ro(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var no=Object.prototype.toString;function oo(e){return no.call(e)==="[object Object]"}function lt(e){let t=e.split(`
3
- `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var io=/\w/,ze=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,r,n,o){if(r.length){let i=r.indexOf(`
1
+ "use strict";(()=>{var Vn=Object.defineProperty;var Pn=(e,t)=>{for(var r in t)Vn(e,r,{get:t[r],enumerable:!0})};function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F(e){let t=e.length,r=-1,n,o="",i=e.charCodeAt(0);for(;++r<t;){if(n=e.charCodeAt(r),n===0){o+="\uFFFD";continue}if(n===37){o+="\\%";continue}if(n===44){o+="\\,";continue}if(n>=1&&n<=31||n===127||r===0&&n>=48&&n<=57||r===1&&n>=48&&n<=57&&i===45){o+=`\\${n.toString(16)} `;continue}if(r===0&&t===1&&n===45){o+=`\\${e.charAt(r)}`;continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){o+=e.charAt(r);continue}o+=`\\${e.charAt(r)}`}return o}function O(e=[]){return Array.isArray(e)?e:[e]}function Ke(e){return typeof e=="string"}function Fn(e){return e.filter(([t,r],n)=>{if(t.startsWith("$$"))return!1;for(let o=n-1;o>=0;o--)if(e[o][0]===t&&e[o][1]===r)return!1;return!0})}function Xe(e){return e==null?"":Fn(e).map(([t,r])=>r!=null?`${t}:${r};`:void 0).filter(Boolean).join("")}var Ln=/[\w\u00A0-\uFFFF-_:%-?]/;function Ye(e=""){return Ln.test(e)}var Ze=new Set;function L(e){Ze.has(e)||(console.warn("[unocss]",e),Ze.add(e))}var ke=/[\\:]?[\s'"`;{}]+/g;var _n=/\/\/#\s*sourceMappingURL=.*\n?/g;function Je(e){return e.includes("sourceMappingURL=")?e.replace(_n,""):e}var Nn=/(?:[\w&:[\]-]|\[\S+=\S+\])+\[\\?['"]?\S+?['"]\]\]?[\w:-]*/g,Mn=/\[(\\\W|[\w-])+:[^\s:]*?("\S+?"|'\S+?'|`\S+?`|[^\s:]+?)[^\s:]*?\)?\]/g,In=/^\[(\\\W|[\w-])+:['"]?\S+?['"]?\]$/;function Un(e){let t=[];for(let r of e.matchAll(Mn))r.index!==0&&!e[r.index-1]?.match(/^[\s'"`]/)||t.push(r[0]);for(let r of e.matchAll(Nn))t.push(r[0]);return e.split(ke).forEach(r=>{Ye(r)&&!In.test(r)&&t.push(r)}),t}var Qe={name:"@unocss/extractor-arbitrary-variants",order:0,extract({code:e}){return Un(Je(e))}};var et=[{layer:"preflights",getCSS(e){if(e.theme.preflightBase){let t=Xe(Object.entries(e.theme.preflightBase));return O(e.theme.preflightRoot??["*,::before,::after","::backdrop"]).map(n=>`${n}{${t}}`).join("")}}}];var v={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={...v,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"]},Ce={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"]},le={x:["-x"],y:["-y"],z:["-z"],"":["-x","-y"]},tt=["top","top center","top left","top right","bottom","bottom center","bottom left","bottom right","left","left center","left top","left bottom","right","right center","right top","right bottom","center","center top","center bottom","center left","center right","center center"],D=Object.assign({},...tt.map(e=>({[e.replace(/ /,"-")]:e})),...tt.map(e=>({[e.replace(/\b(\w)\w+/g,"$1").replace(/ /,"")]:e}))),m=["inherit","initial","revert","revert-layer","unset"],Re=/(?:calc|clamp|min|max)\s*\(.*\)/;function W(e,t,r){if(e==="")return;let n=e.length,o=0,i=!1,s=0;for(let l=0;l<n;l++)switch(e[l]){case t:i||(i=!0,s=l),o++;break;case r:if(--o,o<0)return;if(o===0)return[e.slice(s,l+1),e.slice(l+1),e.slice(0,s)];break}}function Ee(e,t,r,n){if(e===""||(Ke(n)&&(n=[n]),n.length===0))return;let o=e.length,i=0;for(let s=0;s<o;s++)switch(e[s]){case t:i++;break;case r:if(--i<0)return;break;default:for(let l of n){let c=l.length;if(c&&l===e.slice(s,s+c)&&i===0)return s===0||s===o-c?void 0:[e.slice(0,s),e.slice(s+c)]}}return[e,""]}function _(e,t,r){r=r??10;let n=[],o=0;for(;e!=="";){if(++o>r)return;let i=Ee(e,"(",")",t);if(!i)return;let[s,l]=i;n.push(s),e=l}if(n.length>0)return n}var Te=["hsl","hsla","hwb","lab","lch","oklab","oklch","rgb","rgba"],rt=["%alpha","<alpha-value>"],Bn=new RegExp(rt.map(e=>T(e)).join("|"));function q(e=""){let t=Dn(e);if(t==null||t===!1)return;let{type:r,components:n,alpha:o}=t,i=r.toLowerCase();if(n.length!==0&&!(Te.includes(i)&&![1,3].includes(n.length)))return{type:i,components:n.map(s=>typeof s=="string"?s.trim():s),alpha:typeof o=="string"?o.trim():o}}function H(e){let t=e.alpha??1;return typeof t=="string"&&rt.includes(t)?1:t}function k(e,t){if(typeof e=="string")return e.replace(Bn,`${t??1}`);let{components:r}=e,{alpha:n,type:o}=e;return n=t??n,o=o.toLowerCase(),["hsla","rgba"].includes(o)?`${o}(${r.join(", ")}${n==null?"":`, ${n}`})`:(n=n==null?"":` / ${n}`,Te.includes(o)?`${o}(${r.join(" ")}${n})`:`color(${o} ${r.join(" ")}${n})`)}function Dn(e){if(!e)return;let t=qn(e);if(t!=null||(t=Hn(e),t!=null)||(t=Gn(e),t!=null)||(t=Xn(e),t!=null)||(t=Yn(e),t!=null))return t}function qn(e){let[,t]=e.match(/^#([\da-f]+)$/i)||[];if(t)switch(t.length){case 3:case 4:let r=Array.from(t,o=>Number.parseInt(o,16)).map(o=>o<<4|o);return{type:"rgb",components:r.slice(0,3),alpha:t.length===3?void 0:Math.round(r[3]/255*100)/100};case 6:case 8:let n=Number.parseInt(t,16);return{type:"rgb",components:t.length===6?[n>>16&255,n>>8&255,n&255]:[n>>24&255,n>>16&255,n>>8&255],alpha:t.length===6?void 0:Math.round((n&255)/255*100)/100}}}function Hn(e){let t={rebeccapurple:[102,51,153,1]}[e];if(t!=null)return{type:"rgb",components:t.slice(0,3),alpha:t[3]}}function Gn(e){let t=e.match(/^(rgb|rgba|hsl|hsla)\((.+)\)$/i);if(!t)return;let[,r,n]=t,o=_(n,",",5);if(o){if([3,4].includes(o.length))return{type:r,components:o.slice(0,3),alpha:o[3]};if(o.length!==1)return!1}}var Kn=new RegExp(`^(${Te.join("|")})\\((.+)\\)$`,"i");function Xn(e){let t=e.match(Kn);if(!t)return;let[,r,n]=t,o=nt(`${r} ${n}`);if(o){let{alpha:i,components:[s,...l]}=o;return{type:s,components:l,alpha:i}}}function Yn(e){let t=e.match(/^color\((.+)\)$/);if(!t)return;let r=nt(t[1]);if(r){let{alpha:n,components:[o,...i]}=r;return{type:o,components:i,alpha:n}}}function nt(e){let t=_(e," ");if(!t)return;let r=t.length;if(t[r-2]==="/")return{components:t.slice(0,r-2),alpha:t[r-1]};if(t[r-2]!=null&&(t[r-2].endsWith("/")||t[r-1].startsWith("/"))){let i=t.splice(r-2);t.push(i.join(" ")),--r}let n=_(t[r-1],"/",2);if(!n)return;if(n.length===1||n[n.length-1]==="")return{components:t};let o=n.pop();return t[r-1]=n.join("/"),{components:t,alpha:o}}function ot(e){let t=function(n){let o=this.__options?.sequence||[];this.__options.sequence=[];for(let i of o){let s=e[i](n);if(s!=null)return s}};function r(n,o){return n.__options||(n.__options={sequence:[]}),n.__options.sequence.push(o),n}for(let n of Object.keys(e))Object.defineProperty(t,n,{enumerable:!0,get(){return r(this,n)}});return t}function N(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${T(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,...t(s)})}},autocomplete:`${e}:`}}function G(e,t){let r;return{name:e,match(n,o){r||(r=new RegExp(`^${T(e)}(?:${o.generator.config.separators.join("|")})`));let i=n.match(r);if(i)return{matcher:n.slice(i[0].length),handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}${t}`})}},autocomplete:`${e}:`}}function j(e,t,r){if(t.startsWith(`${e}[`)){let[n,o]=W(t.slice(e.length),"[","]")??[];if(n&&o){for(let i of r)if(o.startsWith(i))return[n,o.slice(i.length),i];return[n,o,""]}}}function y(e,t,r){if(t.startsWith(e)){let n=j(e,t,r);if(n){let[o="",i=n[1]]=y("/",n[1],r)??[];return[n[0],i,o]}for(let o of r.filter(i=>i!=="/")){let i=t.indexOf(o,e.length);if(i!==-1){let s=t.indexOf("/",e.length),l=s===-1||i<=s;return[t.slice(e.length,l?i:s),t.slice(i+o.length),l?"":t.slice(s+1,i)]}}}}var Zn=",".charCodeAt(0),Jn=";".charCodeAt(0),it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",st=new Uint8Array(64),Qn=new Uint8Array(128);for(let e=0;e<it.length;e++){let t=it.charCodeAt(e);st[e]=t,Qn[t]=e}var je=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 r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}};function at(e){let t=new Int32Array(5),r=1024*16,n=r-36,o=new Uint8Array(r),i=o.subarray(0,n),s=0,l="";for(let c=0;c<e.length;c++){let u=e[c];if(c>0&&(s===r&&(l+=je.decode(o),s=0),o[s++]=Jn),u.length!==0){t[0]=0;for(let p=0;p<u.length;p++){let f=u[p];s>n&&(l+=je.decode(i),o.copyWithin(0,n,s),s-=n),p>0&&(o[s++]=Zn),s=K(o,s,t,f,0),f.length!==1&&(s=K(o,s,t,f,1),s=K(o,s,t,f,2),s=K(o,s,t,f,3),f.length!==4&&(s=K(o,s,t,f,4)))}}}return l+je.decode(o.subarray(0,s))}function K(e,t,r,n,o){let i=n[o],s=i-r[o];r[o]=i,s=s<0?-s<<1|1:s<<1;do{let l=s&31;s>>>=5,s>0&&(l|=32),e[t++]=st[l]}while(s>0);return t}var ce=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))}},ue=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(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 r=this;for(;r;)t(r),r=r.next}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro}prependRight(t){this.intro=t+this.intro}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return!0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0)}return!0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return!0}};function eo(){return typeof window<"u"&&typeof window.btoa=="function"?e=>window.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 to=eo(),ze=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=at(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+to(this.toString())}};function ro(e){let t=e.split(`
2
+ `),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return" ";let o=n.reduce((i,s)=>{let l=/^ +/.exec(s)[0].length;return Math.min(l,i)},1/0);return new Array(o+1).join(" ")}function no(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]=".."}return r.concat(n).join("/")}var oo=Object.prototype.toString;function io(e){return oo.call(e)==="[object Object]"}function lt(e){let t=e.split(`
3
+ `),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let u=i+s>>1;o<r[u]?s=u:i=u+1}let l=i-1,c=o-r[l];return{line:l,column:c}}}var so=/\w/,Oe=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,r,n,o){if(r.length){let i=r.indexOf(`
4
4
  `,0),s=-1;for(;i>=0;){let c=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,s=i,i=r.indexOf(`
5
- `,i+1)}let l=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&l.push(o),this.rawSegments.push(l),this.advance(r.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,n,o,i){let s=r.start,l=!0,c=!1;for(;s<r.end;){if(this.hires||l||i.has(s)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?io.test(n[s])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}n[s]===`
5
+ `,i+1)}let l=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&l.push(o),this.rawSegments.push(l),this.advance(r.slice(s+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null}addUneditedChunk(t,r,n,o,i){let s=r.start,l=!0,c=!1;for(;s<r.end;){if(this.hires||l||i.has(s)){let u=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?so.test(n[s])?c||(this.rawSegments.push(u),c=!0):(this.rawSegments.push(u),c=!1):this.rawSegments.push(u)}n[s]===`
6
6
  `?(o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,l=!0):(o.column+=1,this.generatedCodeColumn+=1,l=!1),s+=1}this.pending=null}advance(t){if(!t)return;let r=t.split(`
7
7
  `);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=r[r.length-1].length}},X=`
8
- `,N={insertLeft:!1,insertRight:!1,storeName:!1},fe=class e{constructor(t,r={}){let n=new ue(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ce},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[t.length]=n}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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new ce(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,n=Object.keys(this.storedNames),o=new ze(t.hires),i=lt(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let l=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,l,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,l,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?ro(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new je(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=to(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let n=/^[^\r\n]/gm;if(oo(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(p=>{for(let f=p[0];f<p[1];f+=1)o[f]=!0});let i=r.indentStart!==!1,s=u=>i?`${t}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let l=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[l]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
8
+ `,M={insertLeft:!1,insertRight:!1,storeName:!1},fe=class e{constructor(t,r={}){let n=new ue(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ce},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[t.length]=n}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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new ce(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,n=Object.keys(this.storedNames),o=new Oe(t.hires),i=lt(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let l=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,l,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,l,this.sourcemapLocations),s.outro.length&&o.advance(s.outro)}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?no(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new ze(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ro(this.original))}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let n=/^[^\r\n]/gm;if(io(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(p=>{for(let f=p[0];f<p[1];f+=1)o[f]=!0});let i=r.indentStart!==!1,s=u=>i?`${t}${u}`:(i=!0,u);this.intro=this.intro.replace(n,s);let l=0,c=this.firstChunk;for(;c;){let u=c.end;if(c.edited)o[l]||(c.content=c.content.replace(n,s),c.content.length&&(i=c.content[c.content.length-1]===`
9
9
  `));else for(l=c.start;l<u;){if(!o[l]){let p=this.original[l];p===`
10
- `?i=!0:p!=="\r"&&i&&(i=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(t))}l+=1}l=c.end,c=c.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return N.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),N.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return N.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),N.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);let o=this.byStart[t],i=this.byEnd[r],s=o.previous,l=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(N.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),N.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(t,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[t],c=this.byEnd[r];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(n,i,!s)}else{let u=new ue(t,r,"").edit(n,i);c.next=u,u.previous=c}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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.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(X);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(X),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(X),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(X),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(X),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let l=i===o?t-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(l,c),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(t,r){let n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,n=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(t,r){if(t.edited&&t.content.length){let o=lt(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.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,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(l,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let l,c=[];for(;l=i.exec(s);)c.push(l);return c}if(t.global)o(t,this.original).forEach(s=>{s.index!=null&&this.overwrite(s.index,s.index+s[0].length,n(s,this.original))});else{let i=this.original.match(t);i&&i.index!=null&&this.overwrite(i.index,i.index+i[0].length,n(i,this.original))}return this}_replaceString(t,r){let{original:n}=this,o=n.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,r),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o))this.overwrite(i,i+o,r);return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var so=/theme\(\s*['"]?(.*?)['"]?\s*\)/g;function ct(e){return e.includes("theme(")&&e.includes(")")}function ut(e,t,r=!0){let n=Array.from(e.toString().matchAll(so));if(!n.length)return e;let o=new fe(e);for(let i of n){let s=i[1];if(!s)throw new Error("theme() expect exact one argument, but got 0");let[l,c]=s.split("/"),p=l.trim().split(".").reduce((f,d)=>f?.[d],t);if(typeof p=="string"){if(c){let f=q(p);f&&(p=k(f,c))}o.overwrite(i.index,i.index+i[0].length,p)}else if(r)throw new Error(`theme of "${s}" did not found`)}return o.toString()}var Ve={};Vn(Ve,{auto:()=>co,bracket:()=>bo,bracketOfColor:()=>xo,bracketOfLength:()=>yo,bracketOfPosition:()=>wo,cssvar:()=>$o,degree:()=>ko,fraction:()=>ho,global:()=>So,number:()=>po,numberWithUnit:()=>lo,percent:()=>mo,position:()=>Ro,properties:()=>Co,px:()=>fo,rem:()=>uo,time:()=>vo});var M=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Oe=/^(-?\d*(?:\.\d+)?)$/i,Ae=/^(px)$/i;var ao=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","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 S(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function lo(e){let t=e.match(M);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${S(o)}${n}`}function co(e){if(e==="auto"||e==="a")return"auto"}function uo(e){if(e.match(Ae))return`1${e}`;let t=e.match(M);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${S(o)}${n}`:`${S(o/4)}rem`}function fo(e){if(e.match(Ae))return`1${e}`;let t=e.match(M);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${S(o)}${n}`:`${S(o)}px`}function po(e){if(!Oe.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return S(t)}function mo(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Oe.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${S(t/100)}`}function ho(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${S(n*100)}%`}var go=/^\[(color|length|position|quoted|string):/i;function pe(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(go);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let l=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(l.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function bo(e){return pe(e)}function xo(e){return pe(e,"color")}function yo(e){return pe(e,"length")}function wo(e){return pe(e,"position")}function $o(e){if(e.match(/^\$[^\s'"`;{}]/))return`var(--${P(e.slice(1))})`}function vo(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${S(o)}${n}`:`${S(o)}ms`}function ko(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${S(o)}${n}`:`${S(o)}deg`}function So(e){if(m.includes(e))return e}function Co(e){if(e.split(",").every(t=>ao.includes(t)))return e}function Ro(e){if(["top","left","right","bottom","center"].includes(e))return e}var Eo=ot(Ve),a=Eo;var ft={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(m.map(e=>[e,e]))},pt=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,e])=>({"vertical-align":ft[e]??a.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(ft).join("|")})`,"(vertical|align|v)-<percentage>"]}]],mt=["center","left","right","justify","start","end"].map(e=>[`text-${e}`,{"text-align":e}]);var ht="$$mini-no-negative";function $(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??a.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return v[r].map(s=>[`${e}${s}`,i])}}function me(e,t){let r=e.colors,n=-1;for(let o of t){if(n+=1,r&&typeof r!="string"){let i=t.slice(n).join("-").replace(/(-[a-z])/g,s=>s.slice(1).toUpperCase());if(r[i])return r[i];if(r[o]){r=r[o];continue}}return}return r}function Pe(e,t){let r=e.split(/(?:\/|:)/);return r[0]===`[${t}`?[r.slice(0,2).join(":"),r[2]]:r}function he(e,t){let[r,n]=Pe(e,"color"),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,l=a.bracketOfColor(r),c=l||r;if(a.numberWithUnit(c))return;if(c.match(/^#[\da-fA-F]+/g)?s=c:c.match(/^hex-[\da-fA-F]+/g)?s=`#${c.slice(4)}`:r.startsWith("$")&&(s=a.cssvar(r)),s=s||l,!s){let p=me(t,[r]);typeof p=="string"&&(s=p)}let u="DEFAULT";if(!s){let p,[f]=o.slice(-1);f.match(/^\d+$/)?(u=f,p=me(t,o.slice(0,-1)),!p||typeof p=="string"?s=void 0:s=p[u]):(p=me(t,o),!p&&o.length<=2&&([,u=u]=o,p=me(t,[i])),typeof p=="string"?s=p:u&&p&&(s=p[u]))}return{opacity:n,name:i,no:u,color:s,cssColor:q(s),alpha:a.bracket.cssvar.percent(n??"")}}function b(e,t,r){return([,n],{theme:o})=>{let i=he(n,o);if(!i)return;let{alpha:s,color:l,cssColor:c}=i,u={};if(c?s!=null?u[e]=k(c,s):(u[`--un-${t}-opacity`]=H(c),u[e]=k(c,`var(--un-${t}-opacity)`)):l&&(u[e]=k(l,s)),r?.(u)!==!1)return u}}function de(e,t){let r=[];e=z(e);for(let n=0;n<e.length;n++){let o=W(e[n]," ",6);if(!o||o.length<3)return e;let i=q(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${k(i)})`)}return r}function ge(e,t){return e!=null&&!!he(e,t)?.color}function be({theme:e,generator:t},r="breakpoints"){let n;return t.userConfig&&t.userConfig.theme&&(n=t.userConfig.theme[r]),n||(n=e[r]),n?Object.entries(n).sort((o,i)=>Number.parseInt(o[1].replace(/[a-z]+/gi,""))-Number.parseInt(i[1].replace(/[a-z]+/gi,""))).map(([o,i])=>({point:o,size:i})):void 0}function h(e,t){return m.map(r=>[`${e}-${r}`,{[t??e]:r}])}function dt(e){return tt.test(e)}var gt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"outline-width":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,b("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...m].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],bt=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function To(e){return a.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var xt=[[/^will-change-(.+)/,([,e])=>({"will-change":To(e)})]];var te=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...m],yt=[[/^(?:border|b)()(?:-(.+))?$/,Y,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Y],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Y],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Y],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border|b)-()(?:width|size)-(.+)$/,I,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-()(?:color-)?(.+)$/,Z,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,J,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,J],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Q,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Q],[/^(?:border|b)-(?:style-)?()(.+)$/,ee,{autocomplete:["(border|b)-style",`(border|b)-(${te.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${te.join("|")})`,`(border|b)-<directions>-style-(${te.join("|")})`,`(border|b)-style-(${te.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ee]];function jo(e){return([,t],r)=>{let n=he(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:k(s,o)}:e===""?{"--un-border-opacity":H(s),"border-color":k(s,"var(--un-border-opacity)")}:{"--un-border-opacity":H(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:k(s,`var(--un-border${e}-opacity)`)};if(i)return dt(i)?{"border-width":i}:{[`border${e}-color`]:k(i,o)}}}function Y(e,t){return I(e,t)}function I([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??a.bracket.cssvar.global.px(t||"1");if(e in v&&n!=null)return v[e].map(o=>[`border${o}-width`,n])}function Z([,e="",t],{theme:r}){if(e in v&&ge(t,r))return Object.assign({},...v[e].map(n=>jo(n)(["",t],r)))}function J([,e="",t]){let r=a.bracket.percent.cssvar(t);if(e in v&&r!=null)return v[e].map(n=>[`--un-border${n}-opacity`,r])}function Q([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(t||"1");if(e in Ce&&n!=null)return Ce[e].map(o=>[`border${o}-radius`,n])}function ee([,e="",t]){if(te.includes(t)&&e in v)return v[e].map(r=>[`border${r}-style`,t])}var wt=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:a.bracket.percent.cssvar(e)})]],$t=[[/^(?:color|c)-(.+)$/,b("color","text"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,b("color","text",e=>!e.color?.toString().match(M)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>m.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${m.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],vt=[[/^bg-(.+)$/,b("background-color","bg"),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],kt=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var St=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>(F("The container query rule is experimental and may not follow semver."),{"container-type":t??"inline-size","container-name":e})]];var Ct=["solid","double","dotted","dashed","wavy",...m],Rt=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>({"text-decoration-thickness":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=b("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??a.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Ct.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Ct.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var xe={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function Et(e){return a.properties(e)??xe[e]}var Tt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{let n=e!=null?Et(e):[xe.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let o=r.duration?.[t||"DEFAULT"]??a.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":o}}},{autocomplete:`transition-(${Object.keys(xe).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??a.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??a.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??a.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":a.bracket.global(e)||Et(e)}),{autocomplete:[`transition-property-(${[...m,...Object.keys(xe)].join("|")})`]}],["transition-none",{transition:"none"}],...h("transition")];var jt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:a.bracket(e)!=null?a.bracket(e).split(" ").map(t=>a.cssvar.fraction(t)??t).join(" "):a.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":a.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":a.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??a.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"}]];function Fe(e,t,r){return t[r]?.[e]||a.bracket.cssvar.global.rem(e)}var zt=[[/^text-(.+)$/,([,e="base"],{theme:t})=>{let[r,n]=Pe(e,"length"),o=z(t.fontSize?.[r]),i=n?Fe(n,t,"lineHeight"):void 0;if(o?.[0]){let[l,c,u]=o;return typeof c=="object"?{"font-size":l,...c}:{"font-size":l,"line-height":i??c??"1","letter-spacing":u?Fe(u,t,"letterSpacing"):void 0}}let s=a.bracketOfLength.rem(r);return i&&s?{"font-size":s,"line-height":i}:{"font-size":a.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,e],{theme:t})=>{let n=z(t.fontSize?.[e])?.[0]??a.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||a.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":Fe(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":a.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||a.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||a.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||a.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],Ot=[[/^tab(?:-(.+))?$/,([,e])=>{let t=a.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],At=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],Vt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||a.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,b("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Pt=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":de(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":a.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,b("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var zo={"":"",x:"column-",y:"row-"};function Ft([,e="",t],{theme:r}){let n=r.spacing?.[t]??a.bracket.cssvar.global.rem(t);if(n!=null)return{[`${zo[e]}gap`]:n}}var Lt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Ft,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Ft,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function E(e){return e.replace("col","column")}function Le(e){return e[0]==="r"?"Row":"Column"}function Oo(e,t,r){let n=t[`gridAuto${Le(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return a.bracket.cssvar.auto.rem(r)}var Wt=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${E(e)}`]:r[`grid${Le(e)}`]?.[t]??a.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${E(e)}`]:"1/-1"};let r=a.bracket.number(t);if(r!=null)return{[`grid-${E(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${E(e)}-start`]:a.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${E(e)}-end`]:a.bracket.cssvar(t)??t}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${E(e)}`]:Oo(e,r,t)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":a.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":E(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${E(e)}`]:r[`gridTemplate${Le(e)}`]?.[t]??a.bracket.cssvar(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${E(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${E(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":a.cssvar(t)??t.split("-").map(r=>`"${a.bracket(r)}"`).join(" ")}:{"grid-area":a.bracket.cssvar(t)}],["grid-rows-none",{"grid-template-rows":"none"}],["grid-cols-none",{"grid-template-columns":"none"}]];var ye=["auto","hidden","clip","visible","scroll","overlay",...m],_t=[[/^(?:overflow|of)-(.+)$/,([,e])=>ye.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ye.join("|")})`,`(overflow|of)-(x|y)-(${ye.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ye.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Nt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>m.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],_e=[["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"}],...h("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"}],...h("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"}],...h("justify-self")],Mt=[[/^order-(.+)$/,([,e])=>({order:a.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Ne=[["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"}],...h("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"}],...h("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"}],...h("self","align-self")],It=[["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"}],...h("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"}],...h("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"}],...h("place-self")],Ut=[..._e,...Ne].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function We(e,{theme:t}){return t.spacing?.[e]??a.bracket.cssvar.global.auto.fraction.rem(e)}function re([,e,t],r){let n=We(t,r);if(n!=null&&e in Se)return Se[e].map(o=>[o.slice(1),n])}var Bt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:We(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)-(.+)$/,re],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,re],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,re],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,re],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,re],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:We(t,r)})]],Dt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...h("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...h("clear")],qt=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":a.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??a.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Ht=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...h("box","box-sizing")];var Ao=["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"],Vo=["none","strict","content","size","inline-size","layout","style","paint"],we=" ",Gt=[["inline",{display:"inline"}],["block",{display:"block"}],["inline-block",{display:"inline-block"}],["contents",{display:"contents"}],["flow-root",{display:"flow-root"}],["list-item",{display:"list-item"}],["hidden",{display:"none"}],[/^display-(.+)$/,([,e])=>({display:a.bracket.cssvar.global(e)})]],Kt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...h("backface","backface-visibility")],Xt=[[/^cursor-(.+)$/,([,e])=>({cursor:a.bracket.cssvar.global(e)})],...Ao.map(e=>[`cursor-${e}`,{cursor:e}])],Yt=[[/^contain-(.*)$/,([,e])=>a.bracket(e)!=null?{contain:a.bracket(e).split(" ").map(t=>a.cssvar.fraction(t)??t).join(" ")}:Vo.includes(e)?{contain:e}:void 0]],Zt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...h("pointer-events")],Jt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...h("resize")],Qt=[["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"}],...h("select","user-select")],er=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...m].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],tr=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":a.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...h("content-visibility")],rr=[[/^content-(.+)$/,([,e])=>({content:a.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],nr=[["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"}]],or=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],ir=[["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"}]],sr=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...h("case","text-transform")],ar=[["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"}]],lr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var cr={"--un-ring-inset":we,"--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)"},ur=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??a.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>({"--un-ring-width":t.lineWidth?.[e]??a.bracket.cssvar.px(e)}),{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]??a.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,b("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,b("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var fr={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":we,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},pr=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?a.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!ge(i,n)?{"--un-shadow":de(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:b("--un-shadow-color","shadow")(e,t)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Po={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ne(e,t){return`${e||""}${Po[t]}`}function mr(e,t,r,n){let o=ne(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return a.bracket.cssvar.global.auto.fraction.rem(n)}var dr=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ne(e,t)]:mr(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[ne(e,t)]:mr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[ne(e,t)]:hr(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[ne(e,t)]:hr(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function hr(e,t,r="breakpoints"){let n=be(e,r);if(n)return n.find(o=>o.point===t)?.size}function Fo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return a.bracket.cssvar.global.auto.number(e)}var gr=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Fo(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var br=[[/^pa?()-?(-?.+)$/,$("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,$("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,$("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,$("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,$("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,$("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],xr=[[/^ma?()-?(-?.+)$/,$("margin")],[/^m-?xy()()$/,$("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,$("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,$("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,$("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,$("margin")]];var $e=["translate","rotate","scale"],O=["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(" "),Lo=["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(" "),kr={"--un-rotate":0,"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-scale-x":1,"--un-scale-y":1,"--un-scale-z":1,"--un-skew-x":0,"--un-skew-y":0,"--un-translate-x":0,"--un-translate-y":0,"--un-translate-z":0},Sr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":D[e]??a.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(D).join("|")})`,`origin-(${Object.keys(D).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=a.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=a.bracket.cssvar(e)??(e.length>=3?D[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,yr],[/^(?:transform-)?translate-([xyz])-(.+)$/,yr],[/^(?:transform-)?rotate-()(.+)$/,$r],[/^(?:transform-)?rotate-([xyz])-(.+)$/,$r],[/^(?:transform-)?skew-()(.+)$/,vr],[/^(?:transform-)?skew-([xy])-(.+)$/,vr,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,wr],[/^(?:transform-)?scale-([xyz])-(.+)$/,wr,{autocomplete:[`transform-(${$e.join("|")})-<percent>`,`transform-(${$e.join("|")})-(x|y|z)-<percent>`,`(${$e.join("|")})-<percent>`,`(${$e.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:O}],["transform-cpu",{transform:O}],["transform-gpu",{transform:Lo}],["transform-none",{transform:"none"}],...h("transform")];function yr([,e,t],{theme:r}){let n=r.spacing?.[t]??a.bracket.cssvar.fraction.rem(t);if(n!=null)return[...le[e].map(o=>[`--un-translate${o}`,n]),["transform",O]]}function wr([,e,t]){let r=a.bracket.cssvar.fraction.percent(t);if(r!=null)return[...le[e].map(n=>[`--un-scale${n}`,r]),["transform",O]]}function $r([,e="",t]){let r=a.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:O}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:O}}function vr([,e,t]){let r=a.bracket.cssvar.degree(t);if(r!=null)return[...le[e].map(n=>[`--un-skew${n}`,r]),["transform",O]]}var Wo={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Cr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=Wo[e];if(r)return{[r]:a.cssvar(t)}}]],Rr=[[/^\[(.*)\]$/,([e,t],{theme:r})=>{if(!t.includes(":"))return;let[n,...o]=t.split(":"),i=o.join(":");if(!No(t)&&n.match(/^[a-z-]+$/)&&_o(i)){let s;if(ct(i)&&(s=ut(i,r)),(!s||s===i)&&(s=a.bracket(`[${i}]`)),s)return{[n]:s}}}]];function _o(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function No(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var Er=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
11
- ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var Tr=[[/^fill-(.+)$/,b("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"stroke-width":t.lineWidth?.[e]??a.bracket.cssvar.fraction.px.number(e)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":a.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??a.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,b("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":a.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"}]];var jr=[Cr,Rr,br,xr,Gt,wt,vt,kt,Tr,yt,tr,rr,zt,Ot,At,ir,Rt,Vt,Pt,sr,mt,$t,ar,lr,pr,ur,jt,Wt,Lt,Nt,dr,gr,Xt,Kt,Zt,Jt,pt,Qt,er,nr,_t,gt,bt,Mt,_e,Ne,It,Ut,Bt,Dt,qt,Ht,Tt,Sr,xt,St,Yt,or,Er].flat(1);var Me={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(Me).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var zr={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(",")},Or={xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},Ar={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Vr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Pr={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)"]},Fr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ie={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Lr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},Wr=Ie;var Ue={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},_r={...Ue},Nr={DEFAULT:"1px",none:"0"},Mr={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"},Ir={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Ur={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Br={DEFAULT:["var(--un-shadow-inset) 0 1px 3px 0 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)"},Dr={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},qr={DEFAULT:"1px",none:"0"},Hr={auto:"auto"},Gr={mouse:"(hover) and (pointer: fine)"};var Kr={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Xr={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var oe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},Be={auto:"auto",...oe,screen:"100vw"},ie={none:"none",...oe,screen:"100vw"},De={auto:"auto",...oe,screen:"100vh"},se={none:"none",...oe,screen:"100vh"},Yr=Object.fromEntries(Object.entries(oe).map(([e,t])=>[e,`(min-width: ${t})`]));var Zr={...kr,...fr,...cr};var Jr={width:Be,height:De,maxWidth:ie,maxHeight:se,minWidth:ie,minHeight:se,inlineSize:Be,blockSize:De,maxInlineSize:ie,maxBlockSize:se,minInlineSize:ie,minBlockSize:se,colors:Me,fontFamily:zr,fontSize:Or,fontWeight:Lr,breakpoints:Ue,verticalBreakpoints:_r,borderRadius:Ur,lineHeight:Fr,letterSpacing:Ie,wordSpacing:Wr,boxShadow:Br,textIndent:Ar,textShadow:Pr,textStrokeWidth:Vr,blur:Kr,dropShadow:Xr,easing:Dr,lineWidth:Nr,spacing:Mr,duration:Ir,ringWidth:qr,preflightBase:Zr,containers:Yr,zIndex:Hr,media:Gr};var Qr={name:"aria",match(e,t){let r=y("aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}}};function en(e){let t=e.match(/^-?[0-9]+\.?[0-9]*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){let n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function tn(){let e={};return{name:"breakpoints",match(t,r){let n=(be(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let l=t.match(e[o]);if(!l)continue;let[,c]=l,u=t.slice(c.length);if(u==="container")continue;let p=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),f=c.startsWith("at-")||c.startsWith("~"),d=1e3;return p?(d-=s+1,{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (max-width: ${en(i)})`,parentOrder:d})}):(d+=s+1,f&&s<n.length-1?{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${en(n[s+1][1])})`,parentOrder:d})}:{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:d})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}function ae(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;let o=n.generator.config.separators,i=j(`${e}-`,r,o);if(!i){for(let l of o)if(r.startsWith(`${e}${l}`)){i=["",r.slice(e.length+l.length)];break}if(!i)return}let s=a.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:l=>`${l}${t}${s}`}},multiPass:!0}}var rn=[ae("all"," "),ae("children",">"),ae("next","+"),ae("sibling","+"),ae("siblings","~")];var nn={name:"@",match(e,t){if(e.startsWith("@container"))return;let r=y("@",e,t.generator.config.separators);if(r){let[n,o,i]=r,s=a.bracket(n),l;if(s){let c=a.numberWithUnit(s);c&&(l=`(min-width: ${c})`)}else l=t.theme.containers?.[n]??"";if(l)return F("The container query variant is experimental and may not follow semver."),{matcher:o,handle:(c,u)=>u({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}${l}`})}}},multiPass:!0};function on(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[_("dark",n=>({prefix:`${t} $$ ${n.prefix}`})),_("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[G("dark","@media (prefers-color-scheme: dark)"),G("light","@media (prefers-color-scheme: light)")]}var sn={name:"data",match(e,t){let r=y("data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}}},an={name:"group-data",match(e,t){let r=y("group-data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:`group-[[data-${i}]]:${o}`}}}};var ln=[_("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),_("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];var cn={name:"selector",match(e,t){let r=j("selector-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},un={name:"layer",match(e,t){let r=y("layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},fn={name:"uno-layer",match(e,t){let r=y("uno-layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},pn={name:"scope",match(e,t){let r=j("scope-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},mn={name:"variables",match(e,t){if(!e.startsWith("["))return;let[r,n]=L(e,"[","]")??[];if(!(r&&n))return;let o;for(let l of t.generator.config.separators)if(n.startsWith(l)){o=n.slice(l.length);break}if(o==null)return;let i=a.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(l,c){let u=s?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return c({...l,...u})}}},multiPass:!0};var hn=/[0-9.]+(?:[a-z]+|%)?/,Mo=[/opacity|color|flex/];function Io(e){let t=e.match(/^(calc|clamp|max|min)\s*(\(.*)/);if(t){let[r,n]=Re(t[2],"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}var dn={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===ht))return;let r=!1;return t.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Mo.some(s=>n[0].match(s)))return;let i=Io(o);i?(n[1]=i,r=!0):hn.test(o)&&(n[1]=o.replace(hn,s=>`-${s}`),r=!0)}),r?t:[]}}}};function gn(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]&&(s[1]+=" !important")}),i)}}}}var bn=G("print","@media print"),xn={name:"media",match(e,t){let r=y("media-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=t.theme.media?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var yn={name:"supports",match(e,t){let r=y("supports-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=t.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};var 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","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),vn=Object.keys(U),B=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),kn=Object.keys(B),Uo=["not","is","where","has"],qe=Object.entries(U).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),He=Object.entries(B).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),A=Uo.join("|");function ve(e,t,r){let n=new RegExp(`^(${T(t)}:)(\\S+)${T(r)}\\1`),o,i,s,l,c=f=>{let d=j(`${e}-`,f,[]);if(!d)return;let[g,x]=d,w=a.bracket(g);if(w==null)return;let C=x.split(o,1)?.[0]??"",R=`${t}${P(C)}`;return[C,f.slice(f.length-(x.length-C.length-1)),w.includes("&")?w.replace(/&/g,R):`${R}${w}`]},u=f=>{let d=f.match(i)||f.match(s);if(!d)return;let[g,x,w]=d,C=d[3]??"",R=U[w]||B[w]||`:${w}`;return x&&(R=`:${x}(${R})`),[C,f.slice(g.length),`${t}${P(C)}${R}`,w]},p=f=>{let d=f.match(l);if(!d)return;let[g,x,w]=d,C=d[3]??"",R=`:${x}(${w})`;return[C,f.slice(g.length),`${t}${P(C)}${R}`]};return{name:`pseudo:${e}`,match(f,d){if(o&&i&&s||(o=new RegExp(`(?:${d.generator.config.separators.join("|")})`),i=new RegExp(`^${e}-(?:(?:(${A})-)?(${qe}))(?:(/\\w+))?(?:${d.generator.config.separators.join("|")})`),s=new RegExp(`^${e}-(?:(?:(${A})-)?(${He}))(?:(/\\w+))?(?:${d.generator.config.separators.filter(V=>V!=="-").join("|")})`),l=new RegExp(`^${e}-(?:(${A})-)?\\[(.+)\\](?:(/\\w+))?(?:${d.generator.config.separators.filter(V=>V!=="-").join("|")})`)),!f.startsWith(e))return;let g=c(f)||u(f)||p(f);if(!g)return;let[x,w,C,R=""]=g;return x!==""&&F("The labeled variant is experimental and may not follow semver."),{matcher:w,handle:(V,On)=>On({...V,prefix:`${C}${r}${V.prefix}`.replace(n,"$1$2:"),sort:vn.indexOf(R)??kn.indexOf(R)})}},multiPass:!0}}var Bo=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],wn=Object.entries(U).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),$n=Object.entries(B).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Sn(){let e,t;return{name:"pseudo",match(r,n){e&&e||(e=new RegExp(`^(${wn})(?:${n.generator.config.separators.join("|")})`),t=new RegExp(`^(${$n})(?:${n.generator.config.separators.filter(i=>i!=="-").join("|")})`));let o=r.match(e)||r.match(t);if(o){let i=U[o[1]]||B[o[1]]||`:${o[1]}`,s=vn.indexOf(o[1]);return s===-1&&(s=kn.indexOf(o[1])),s===-1&&(s=void 0),{matcher:r.slice(o[0].length),handle:(l,c)=>{let u=i.startsWith("::")&&!Bo.includes(i)?{pseudo:`${l.pseudo}${i}`}:{selector:`${l.selector}${i}`};return c({...l,...u,sort:s,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${wn}|${$n}):`}}function Cn(){let e,t,r;return{match(n,o){e&&t||(e=new RegExp(`^(${A})-(${qe})(?:${o.generator.config.separators.join("|")})`),t=new RegExp(`^(${A})-(${He})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${A})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(e)||n.match(t)||n.match(r);if(i){let s=i[1],c=L(i[2],"[","]")?a.bracket(i[2]):U[i[2]]||B[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${A})-(${qe}|${He}):`}}function Rn(e={}){let t=!!e?.attributifyPseudo;return[ve("group",t?'[group=""]':".group"," "),ve("peer",t?'[peer=""]':".peer","~"),ve("parent",t?'[parent=""]':".parent",">"),ve("previous",t?'[previous=""]':".previous","+")]}var Do=/(part-\[(.+)]:)(.+)/,En={match(e){let t=e.match(Do);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};function Tn(e){return[Qr,sn,un,cn,fn,dn,gn(),yn,bn,xn,tn(),...rn,Sn(),Cn(),...Rn(e),En,...on(e),...ln,pn,nn,mn,an]}var jn={position:["relative","absolute","fixed","sticky","static"],globalKeyword:m};var qo=(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:Jr,rules:jr,variants:Tn(e),options:e,prefix:e.prefix,postprocess:Ho(e.variablePrefix),preflights:e.preflight?Go(Qe,e.variablePrefix):[],extractorDefault:e.arbitraryVariants===!1?void 0:Je,autocomplete:{shorthands:jn}}),zn=qo;function Ho(e){if(e!=="un-")return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}function Go(e,t){return t!=="un-"?e.map(r=>({...r,getCSS:(()=>async n=>{let o=await r.getCSS(n);if(o)return o.replace(/--un-/g,`--${t}`)})()})):e}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>zn(e)});})();
10
+ `?i=!0:p!=="\r"&&i&&(i=!1,l===c.start||(this._splitChunk(c,l),c=c.next),c.prependRight(t))}l+=1}l=c.end,c=c.next}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return M.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),M.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return M.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),M.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);let o=this.byStart[t],i=this.byEnd[r],s=o.previous,l=i.next,c=this.byStart[n];if(!c&&i===this.lastChunk)return this;let u=c?c.previous:this.lastChunk;return s&&(s.next=l),l&&(l.previous=s),u&&(u.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=u,i.next=c||null,u||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(typeof n!="string")throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(M.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),M.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let u=this.original.slice(t,r);Object.defineProperty(this.storedNames,u,{writable:!0,value:!0,enumerable:!0})}let l=this.byStart[t],c=this.byEnd[r];if(l){let u=l;for(;u!==c;){if(u.next!==this.byStart[u.end])throw new Error("Cannot overwrite across a split point");u=u.next,u.edit("",!1)}l.edit(n,i,!s)}else{let u=new ue(t,r,"").edit(n,i);c.next=u,u.previous=c}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,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.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(X);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(X),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r}if(n.content.length>0){if(t=n.content.lastIndexOf(X),t!==-1)return n.content.substr(t+1)+r;r=n.content+r}if(n.intro.length>0){if(t=n.intro.lastIndexOf(X),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r}}while(n=n.previous);return t=this.intro.lastIndexOf(X),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let l=i===o?t-o.start:0,c=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(l,c),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next}return n}snip(t,r){let n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,n=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start]}}_splitChunk(t,r){if(t.edited&&t.content.length){let o=lt(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.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,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return!0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.previous}while(n);return!1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return!0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return!0;n=n.next}while(n);return!1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(l,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):r(...i,i.index,s,i.groups)}function o(i,s){let l,c=[];for(;l=i.exec(s);)c.push(l);return c}if(t.global)o(t,this.original).forEach(s=>{s.index!=null&&this.overwrite(s.index,s.index+s[0].length,n(s,this.original))});else{let i=this.original.match(t);i&&i.index!=null&&this.overwrite(i.index,i.index+i[0].length,n(i,this.original))}return this}_replaceString(t,r){let{original:n}=this,o=n.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,r),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o))this.overwrite(i,i+o,r);return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}};var ao=/theme\(\s*['"]?(.*?)['"]?\s*\)/g;function ct(e){return e.includes("theme(")&&e.includes(")")}function ut(e,t,r=!0){let n=Array.from(e.toString().matchAll(ao));if(!n.length)return e;let o=new fe(e);for(let i of n){let s=i[1];if(!s)throw new Error("theme() expect exact one argument, but got 0");let[l,c]=s.split("/"),p=l.trim().split(".").reduce((f,h)=>f?.[h],t);if(typeof p=="string"){if(c){let f=q(p);f&&(p=k(f,c))}o.overwrite(i.index,i.index+i[0].length,p)}else if(r)throw new Error(`theme of "${s}" did not found`)}return o.toString()}var Pe={};Pn(Pe,{auto:()=>uo,bracket:()=>xo,bracketOfColor:()=>yo,bracketOfLength:()=>wo,bracketOfPosition:()=>$o,cssvar:()=>vo,degree:()=>So,fraction:()=>go,global:()=>Co,number:()=>mo,numberWithUnit:()=>co,percent:()=>ho,position:()=>Eo,properties:()=>Ro,px:()=>po,rem:()=>fo,time:()=>ko});var z=/^(-?\d*(?:\.\d+)?)(px|pt|pc|%|r?(?:em|ex|lh|cap|ch|ic)|(?:[sld]?v|cq)(?:[whib]|min|max)|in|cm|mm|rpx)?$/i,Ae=/^(-?\d*(?:\.\d+)?)$/i,Ve=/^(px)$/i;var lo=["color","border-color","background-color","flex-grow","flex","flex-shrink","caret-color","font","gap","opacity","visibility","z-index","font-weight","zoom","text-shadow","transform","box-shadow","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 S(e){return e.toFixed(10).replace(/\.0+$/,"").replace(/(\.\d+?)0+$/,"$1")}function co(e){let t=e.match(z);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(n&&!Number.isNaN(o))return`${S(o)}${n}`}function uo(e){if(e==="auto"||e==="a")return"auto"}function fo(e){if(e.match(Ve))return`1${e}`;let t=e.match(z);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${S(o)}${n}`:`${S(o/4)}rem`}function po(e){if(e.match(Ve))return`1${e}`;let t=e.match(z);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return n?`${S(o)}${n}`:`${S(o)}px`}function mo(e){if(!Ae.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return S(t)}function ho(e){if(e.endsWith("%")&&(e=e.slice(0,-1)),!Ae.test(e))return;let t=Number.parseFloat(e);if(!Number.isNaN(t))return`${S(t/100)}`}function go(e){if(e==="full")return"100%";let[t,r]=e.split("/"),n=Number.parseFloat(t)/Number.parseFloat(r);if(!Number.isNaN(n))return n===0?"0":`${S(n*100)}%`}var bo=/^\[(color|length|position|quoted|string):/i;function pe(e,t){if(e&&e.startsWith("[")&&e.endsWith("]")){let r,n,o=e.match(bo);if(o?(t||(n=o[1]),r=e.slice(o[0].length,-1)):r=e.slice(1,-1),!r||r==='=""')return;r.startsWith("--")&&(r=`var(${r})`);let i=0;for(let s of r)if(s==="[")i+=1;else if(s==="]"&&(i-=1,i<0))return;if(i)return;switch(n){case"string":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_");case"quoted":return r.replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(["\\])/g,"\\$1").replace(/^(.+)$/,'"$1"')}return r.replace(/(url\(.*?\))/g,s=>s.replace(/_/g,"\\_")).replace(/(^|[^\\])_/g,"$1 ").replace(/\\_/g,"_").replace(/(?:calc|clamp|max|min)\((.*)/g,s=>{let l=[];return s.replace(/var\((--.+?)[,)]/g,(c,u)=>(l.push(u),c.replace(u,"--un-calc"))).replace(/(-?\d*\.?\d(?!\b-\d.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 ").replace(/--un-calc/g,()=>l.shift())})}}function xo(e){return pe(e)}function yo(e){return pe(e,"color")}function wo(e){return pe(e,"length")}function $o(e){return pe(e,"position")}function vo(e){if(e.match(/^\$[^\s'"`;{}]/))return`var(--${F(e.slice(1))})`}function ko(e){let t=e.match(/^(-?[0-9.]+)(s|ms)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0&&!n?"0s":n?`${S(o)}${n}`:`${S(o)}ms`}function So(e){let t=e.match(/^(-?[0-9.]+)(deg|rad|grad|turn)?$/i);if(!t)return;let[,r,n]=t,o=Number.parseFloat(r);if(!Number.isNaN(o))return o===0?"0":n?`${S(o)}${n}`:`${S(o)}deg`}function Co(e){if(m.includes(e))return e}function Ro(e){if(e.split(",").every(t=>lo.includes(t)))return e}function Eo(e){if(["top","left","right","bottom","center"].includes(e))return e}var To=ot(Pe),a=To;var ft={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(m.map(e=>[e,e]))},pt=[[/^(?:vertical|align|v)-([-\w]+%?)$/,([,e])=>({"vertical-align":ft[e]??a.numberWithUnit(e)}),{autocomplete:[`(vertical|align|v)-(${Object.keys(ft).join("|")})`,"(vertical|align|v)-<percentage>"]}]],mt=["center","left","right","justify","start","end"].map(e=>[`text-${e}`,{"text-align":e}]);var dt="$$mini-no-negative";function $(e){return([t,r,n],{theme:o})=>{let i=o.spacing?.[n||"DEFAULT"]??a.bracket.cssvar.global.auto.fraction.rem(n);if(i!=null)return v[r].map(s=>[`${e}${s}`,i])}}function me(e,t){let r=e.colors,n=-1;for(let o of t){if(n+=1,r&&typeof r!="string"){let i=t.slice(n).join("-").replace(/(-[a-z])/g,s=>s.slice(1).toUpperCase());if(r[i])return r[i];if(r[o]){r=r[o];continue}}return}return r}function Fe(e,t){let r=e.split(/(?:\/|:)/);return r[0]===`[${t}`?[r.slice(0,2).join(":"),r[2]]:r}function de(e,t){let[r,n]=Fe(e,"color"),o=r.replace(/([a-z])([0-9])/g,"$1-$2").split(/-/g),[i]=o;if(!i)return;let s,l=a.bracketOfColor(r),c=l||r;if(a.numberWithUnit(c))return;if(c.match(/^#[\da-fA-F]+/g)?s=c:c.match(/^hex-[\da-fA-F]+/g)?s=`#${c.slice(4)}`:r.startsWith("$")&&(s=a.cssvar(r)),s=s||l,!s){let p=me(t,[r]);typeof p=="string"&&(s=p)}let u="DEFAULT";if(!s){let p,[f]=o.slice(-1);f.match(/^\d+$/)?(u=f,p=me(t,o.slice(0,-1)),!p||typeof p=="string"?s=void 0:s=p[u]):(p=me(t,o),!p&&o.length<=2&&([,u=u]=o,p=me(t,[i])),typeof p=="string"?s=p:u&&p&&(s=p[u]))}return{opacity:n,name:i,no:u,color:s,cssColor:q(s),alpha:a.bracket.cssvar.percent(n??"")}}function b(e,t,r){return([,n],{theme:o})=>{let i=de(n,o);if(!i)return;let{alpha:s,color:l,cssColor:c}=i,u={};if(c?s!=null?u[e]=k(c,s):(u[`--un-${t}-opacity`]=H(c),u[e]=k(c,`var(--un-${t}-opacity)`)):l&&(u[e]=k(l,s)),r?.(u)!==!1)return u}}function he(e,t){let r=[];e=O(e);for(let n=0;n<e.length;n++){let o=_(e[n]," ",6);if(!o||o.length<3)return e;let i=q(o.pop());if(i==null)return e;r.push(`${o.join(" ")} var(${t}, ${k(i)})`)}return r}function ge(e,t){return e!=null&&!!de(e,t)?.color}function be({theme:e,generator:t},r="breakpoints"){let n;return t.userConfig&&t.userConfig.theme&&(n=t.userConfig.theme[r]),n||(n=e[r]),n?Object.entries(n).sort((o,i)=>Number.parseInt(o[1].replace(/[a-z]+/gi,""))-Number.parseInt(i[1].replace(/[a-z]+/gi,""))).map(([o,i])=>({point:o,size:i})):void 0}function d(e,t){return m.map(r=>[`${e}-${r}`,{[t??e]:r}])}function ht(e){return Re.test(e)}function gt(e){return e[0]==="["&&e.slice(-1)==="]"&&(e=e.slice(1,-1)),Re.test(e)||z.test(e)}var bt=[[/^outline-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"outline-width":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(width|size)-<num>"}],[/^outline-(?:color-)?(.+)$/,b("outline-color","outline-color"),{autocomplete:"outline-$colors"}],[/^outline-offset-(.+)$/,([,e],{theme:t})=>({"outline-offset":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"outline-(offset)-<num>"}],["outline",{"outline-style":"solid"}],...["auto","dashed","dotted","double","hidden","solid","groove","ridge","inset","outset",...m].map(e=>[`outline-${e}`,{"outline-style":e}]),["outline-none",{outline:"2px solid transparent","outline-offset":"2px"}]],xt=[["appearance-none",{"-webkit-appearance":"none",appearance:"none"}]];function jo(e){return a.properties.auto.global(e)??{contents:"contents",scroll:"scroll-position"}[e]}var yt=[[/^will-change-(.+)/,([,e])=>({"will-change":jo(e)})]];var te=["solid","dashed","dotted","double","hidden","none","groove","ridge","inset","outset",...m],wt=[[/^(?:border|b)()(?:-(.+))?$/,Y,{autocomplete:"(border|b)-<directions>"}],[/^(?:border|b)-([xy])(?:-(.+))?$/,Y],[/^(?:border|b)-([rltbse])(?:-(.+))?$/,Y],[/^(?:border|b)-(block|inline)(?:-(.+))?$/,Y],[/^(?:border|b)-([bi][se])(?:-(.+))?$/,Y],[/^(?:border|b)-()(?:width|size)-(.+)$/,I,{autocomplete:["(border|b)-<num>","(border|b)-<directions>-<num>"]}],[/^(?:border|b)-([xy])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([rltbse])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-(block|inline)-(?:width|size)-(.+)$/,I],[/^(?:border|b)-([bi][se])-(?:width|size)-(.+)$/,I],[/^(?:border|b)-()(?:color-)?(.+)$/,Z,{autocomplete:["(border|b)-$colors","(border|b)-<directions>-$colors"]}],[/^(?:border|b)-([xy])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-([rltbse])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-(block|inline)-(?:color-)?(.+)$/,Z],[/^(?:border|b)-([bi][se])-(?:color-)?(.+)$/,Z],[/^(?:border|b)-()op(?:acity)?-?(.+)$/,J,{autocomplete:"(border|b)-(op|opacity)-<percent>"}],[/^(?:border|b)-([xy])-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-([rltbse])-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-(block|inline)-op(?:acity)?-?(.+)$/,J],[/^(?:border|b)-([bi][se])-op(?:acity)?-?(.+)$/,J],[/^(?:border-|b-)?(?:rounded|rd)()(?:-(.+))?$/,Q,{autocomplete:["(border|b)-(rounded|rd)","(border|b)-(rounded|rd)-<num>","(rounded|rd)","(rounded|rd)-<num>"]}],[/^(?:border-|b-)?(?:rounded|rd)-([rltbse])(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([rltb]{2})(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([bise][se])(?:-(.+))?$/,Q],[/^(?:border-|b-)?(?:rounded|rd)-([bi][se]-[bi][se])(?:-(.+))?$/,Q],[/^(?:border|b)-(?:style-)?()(.+)$/,ee,{autocomplete:["(border|b)-style",`(border|b)-(${te.join("|")})`,"(border|b)-<directions>-style",`(border|b)-<directions>-(${te.join("|")})`,`(border|b)-<directions>-style-(${te.join("|")})`,`(border|b)-style-(${te.join("|")})`]}],[/^(?:border|b)-([xy])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([rltbse])-(?:style-)?(.+)$/,ee],[/^(?:border|b)-(block|inline)-(?:style-)?(.+)$/,ee],[/^(?:border|b)-([bi][se])-(?:style-)?(.+)$/,ee]];function zo(e){return([,t],r)=>{let n=de(t,r);if(!n)return;let{alpha:o,color:i,cssColor:s}=n;if(s)return o!=null?{[`border${e}-color`]:k(s,o)}:e===""?{"--un-border-opacity":H(s),"border-color":k(s,"var(--un-border-opacity)")}:{"--un-border-opacity":H(s),[`--un-border${e}-opacity`]:"var(--un-border-opacity)",[`border${e}-color`]:k(s,`var(--un-border${e}-opacity)`)};if(i)return ht(i)?{"border-width":i}:{[`border${e}-color`]:k(i,o)}}}function Y(e,t){return I(e,t)}function I([,e="",t],{theme:r}){let n=r.lineWidth?.[t||"DEFAULT"]??a.bracket.cssvar.global.px(t||"1");if(e in v&&n!=null)return v[e].map(o=>[`border${o}-width`,n])}function Z([,e="",t],{theme:r}){if(e in v&&ge(t,r))return Object.assign({},...v[e].map(n=>zo(n)(["",t],r)))}function J([,e="",t]){let r=a.bracket.percent.cssvar(t);if(e in v&&r!=null)return v[e].map(n=>[`--un-border${n}-opacity`,r])}function Q([,e="",t],{theme:r}){let n=r.borderRadius?.[t||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(t||"1");if(e in Ce&&n!=null)return Ce[e].map(o=>[`border${o}-radius`,n])}function ee([,e="",t]){if(te.includes(t)&&e in v)return v[e].map(r=>[`border${r}-style`,t])}var $t=[[/^op(?:acity)?-?(.+)$/,([,e])=>({opacity:a.bracket.percent.cssvar(e)})]],vt=[[/^(?:color|c)-(.+)$/,b("color","text"),{autocomplete:"(color|c)-$colors"}],[/^text-(.+)$/,b("color","text",e=>!e.color?.toString().match(z)),{autocomplete:"text-$colors"}],[/^(?:text|color|c)-(.+)$/,([,e])=>m.includes(e)?{color:e}:void 0,{autocomplete:`(text|color|c)-(${m.join("|")})`}],[/^(?:text|color|c)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"(text|color|c)-(op|opacity)-<percent>"}]],kt=[[/^bg-(.+)$/,(...e)=>gt(e[0][1])?void 0:b("background-color","bg")(...e),{autocomplete:"bg-$colors"}],[/^bg-op(?:acity)?-?(.+)$/,([,e])=>({"--un-bg-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"bg-(op|opacity)-<percent>"}]],St=[[/^color-scheme-(\w+)$/,([,e])=>({"color-scheme":e})]];var Ct=[[/^@container(?:\/(\w+))?(?:-(normal))?$/,([,e,t])=>(L("The container query rule is experimental and may not follow semver."),{"container-type":t??"inline-size","container-name":e})]];var Rt=["solid","double","dotted","dashed","wavy",...m],Et=[[/^(?:decoration-)?(underline|overline|line-through)$/,([,e])=>({"text-decoration-line":e}),{autocomplete:"decoration-(underline|overline|line-through)"}],[/^(?:underline|decoration)-(?:size-)?(.+)$/,([,e],{theme:t})=>({"text-decoration-thickness":t.lineWidth?.[e]??a.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-<num>"}],[/^(?:underline|decoration)-(auto|from-font)$/,([,e])=>({"text-decoration-thickness":e}),{autocomplete:"(underline|decoration)-(auto|from-font)"}],[/^(?:underline|decoration)-(.+)$/,(e,t)=>{let r=b("text-decoration-color","line")(e,t);if(r)return{"-webkit-text-decoration-color":r["text-decoration-color"],...r}},{autocomplete:"(underline|decoration)-$colors"}],[/^(?:underline|decoration)-op(?:acity)?-?(.+)$/,([,e])=>({"--un-line-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"(underline|decoration)-(op|opacity)-<percent>"}],[/^(?:underline|decoration)-offset-(.+)$/,([,e],{theme:t})=>({"text-underline-offset":t.lineWidth?.[e]??a.auto.bracket.cssvar.global.px(e)}),{autocomplete:"(underline|decoration)-(offset)-<num>"}],...Rt.map(e=>[`underline-${e}`,{"text-decoration-style":e}]),...Rt.map(e=>[`decoration-${e}`,{"text-decoration-style":e}]),["no-underline",{"text-decoration":"none"}],["decoration-none",{"text-decoration":"none"}]];var xe={all:"all",colors:["color","background-color","border-color","outline-color","text-decoration-color","fill","stroke"].join(","),none:"none",opacity:"opacity",shadow:"box-shadow",transform:"transform"};function Tt(e){return a.properties(e)??xe[e]}var jt=[[/^transition(?:-([a-z-]+(?:,[a-z-]+)*))?(?:-(\d+))?$/,([,e,t],{theme:r})=>{let n=e!=null?Tt(e):[xe.colors,"opacity","box-shadow","transform","filter","backdrop-filter"].join(",");if(n){let o=r.duration?.[t||"DEFAULT"]??a.time(t||"150");return{"transition-property":n,"transition-timing-function":"cubic-bezier(0.4, 0, 0.2, 1)","transition-duration":o}}},{autocomplete:`transition-(${Object.keys(xe).join("|")})`}],[/^(?:transition-)?duration-(.+)$/,([,e],{theme:t})=>({"transition-duration":t.duration?.[e||"DEFAULT"]??a.bracket.cssvar.time(e)}),{autocomplete:["transition-duration-$duration","duration-$duration"]}],[/^(?:transition-)?delay-(.+)$/,([,e],{theme:t})=>({"transition-delay":t.duration?.[e||"DEFAULT"]??a.bracket.cssvar.time(e)}),{autocomplete:["transition-delay-$duration","delay-$duration"]}],[/^(?:transition-)?ease(?:-(.+))?$/,([,e],{theme:t})=>({"transition-timing-function":t.easing?.[e||"DEFAULT"]??a.bracket.cssvar(e)}),{autocomplete:["transition-ease-(linear|in|out|in-out|DEFAULT)","ease-(linear|in|out|in-out|DEFAULT)"]}],[/^(?:transition-)?property-(.+)$/,([,e])=>({"transition-property":a.bracket.global(e)||Tt(e)}),{autocomplete:[`transition-property-(${[...m,...Object.keys(xe)].join("|")})`]}],["transition-none",{transition:"none"}],...d("transition")];var zt=[["flex",{display:"flex"}],["inline-flex",{display:"inline-flex"}],["flex-inline",{display:"inline-flex"}],[/^flex-(.*)$/,([,e])=>({flex:a.bracket(e)!=null?a.bracket(e).split(" ").map(t=>a.cssvar.fraction(t)??t).join(" "):a.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":a.bracket.cssvar.number(e)??1}),{autocomplete:["flex-shrink-<num>","shrink-<num>"]}],[/^(?:flex-)?grow(?:-(.*))?$/,([,e=""])=>({"flex-grow":a.bracket.cssvar.number(e)??1}),{autocomplete:["flex-grow-<num>","grow-<num>"]}],[/^(?:flex-)?basis-(.+)$/,([,e],{theme:t})=>({"flex-basis":t.spacing?.[e]??a.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"}]];function Le(e,t,r){return t[r]?.[e]||a.bracket.cssvar.global.rem(e)}var Ot=[[/^text-(.+)$/,([,e="base"],{theme:t})=>{let[r,n]=Fe(e,"length"),o=O(t.fontSize?.[r]),i=n?Le(n,t,"lineHeight"):void 0;if(o?.[0]){let[l,c,u]=o;return typeof c=="object"?{"font-size":l,...c}:{"font-size":l,"line-height":i??c??"1","letter-spacing":u?Le(u,t,"letterSpacing"):void 0}}let s=a.bracketOfLength.rem(r);return i&&s?{"font-size":s,"line-height":i}:{"font-size":a.bracketOfLength.rem(e)}},{autocomplete:"text-$fontSize"}],[/^(?:text|font)-size-(.+)$/,([,e],{theme:t})=>{let n=O(t.fontSize?.[e])?.[0]??a.bracket.cssvar.global.rem(e);if(n!=null)return{"font-size":n}},{autocomplete:"text-size-$fontSize"}],[/^(?:font|fw)-?([^-]+)$/,([,e],{theme:t})=>({"font-weight":t.fontWeight?.[e]||a.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":Le(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":a.bracket.cssvar.global(e)})],[/^(?:font-)?tracking-(.+)$/,([,e],{theme:t})=>({"letter-spacing":t.letterSpacing?.[e]||a.bracket.cssvar.global.rem(e)}),{autocomplete:"tracking-$letterSpacing"}],[/^(?:font-)?word-spacing-(.+)$/,([,e],{theme:t})=>({"word-spacing":t.wordSpacing?.[e]||a.bracket.cssvar.global.rem(e)}),{autocomplete:"word-spacing-$wordSpacing"}],[/^font-(.+)$/,([,e],{theme:t})=>({"font-family":t.fontFamily?.[e]||a.bracket.cssvar.global(e)}),{autocomplete:"font-$fontFamily"}]],At=[[/^tab(?:-(.+))?$/,([,e])=>{let t=a.bracket.cssvar.global.number(e||"4");if(t!=null)return{"-moz-tab-size":t,"-o-tab-size":t,"tab-size":t}}]],Vt=[[/^indent(?:-(.+))?$/,([,e],{theme:t})=>({"text-indent":t.textIndent?.[e||"DEFAULT"]||a.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"indent-$textIndent"}]],Pt=[[/^text-stroke(?:-(.+))?$/,([,e],{theme:t})=>({"-webkit-text-stroke-width":t.textStrokeWidth?.[e||"DEFAULT"]||a.bracket.cssvar.px(e)}),{autocomplete:"text-stroke-$textStrokeWidth"}],[/^text-stroke-(.+)$/,b("-webkit-text-stroke-color","text-stroke"),{autocomplete:"text-stroke-$colors"}],[/^text-stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-stroke-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"text-stroke-(op|opacity)-<percent>"}]],Ft=[[/^text-shadow(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.textShadow?.[e||"DEFAULT"];return r!=null?{"--un-text-shadow":he(r,"--un-text-shadow-color").join(","),"text-shadow":"var(--un-text-shadow)"}:{"text-shadow":a.bracket.cssvar.global(e)}},{autocomplete:"text-shadow-$textShadow"}],[/^text-shadow-color-(.+)$/,b("--un-text-shadow-color","text-shadow"),{autocomplete:"text-shadow-color-$colors"}],[/^text-shadow-color-op(?:acity)?-?(.+)$/,([,e])=>({"--un-text-shadow-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"text-shadow-color-(op|opacity)-<percent>"}]];var Oo={"":"",x:"column-",y:"row-"};function Lt([,e="",t],{theme:r}){let n=r.spacing?.[t]??a.bracket.cssvar.global.rem(t);if(n!=null)return{[`${Oo[e]}gap`]:n}}var Wt=[[/^(?:flex-|grid-)?gap-?()(.+)$/,Lt,{autocomplete:["gap-$spacing","gap-<num>"]}],[/^(?:flex-|grid-)?gap-([xy])-?(.+)$/,Lt,{autocomplete:["gap-(x|y)-$spacing","gap-(x|y)-<num>"]}]];function E(e){return e.replace("col","column")}function We(e){return e[0]==="r"?"Row":"Column"}function Ao(e,t,r){let n=t[`gridAuto${We(e)}`]?.[r];if(n!=null)return n;switch(r){case"min":return"min-content";case"max":return"max-content";case"fr":return"minmax(0,1fr)"}return a.bracket.cssvar.auto.rem(r)}var _t=[["grid",{display:"grid"}],["inline-grid",{display:"inline-grid"}],[/^(?:grid-)?(row|col)-(.+)$/,([,e,t],{theme:r})=>({[`grid-${E(e)}`]:r[`grid${We(e)}`]?.[t]??a.bracket.cssvar.auto(t)})],[/^(?:grid-)?(row|col)-span-(.+)$/,([,e,t])=>{if(t==="full")return{[`grid-${E(e)}`]:"1/-1"};let r=a.bracket.number(t);if(r!=null)return{[`grid-${E(e)}`]:`span ${r}/span ${r}`}},{autocomplete:["grid-(row|col)-span-<num>","(row|col)-span-<num>"]}],[/^(?:grid-)?(row|col)-start-(.+)$/,([,e,t])=>({[`grid-${E(e)}-start`]:a.bracket.cssvar(t)??t})],[/^(?:grid-)?(row|col)-end-(.+)$/,([,e,t])=>({[`grid-${E(e)}-end`]:a.bracket.cssvar(t)??t}),{autocomplete:["grid-(row|col)-(start|end)-<num>"]}],[/^(?:grid-)?auto-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-auto-${E(e)}`]:Ao(e,r,t)}),{autocomplete:["grid-auto-(rows|cols)-<num>"]}],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(.+)$/,([,e])=>({"grid-auto-flow":a.bracket.cssvar(e)})],[/^(?:grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)$/,([,e])=>({"grid-auto-flow":E(e).replace("-"," ")}),{autocomplete:["(grid-auto-flow|auto-flow|grid-flow)-(row|col|dense|row-dense|col-dense)"]}],[/^grid-(rows|cols)-(.+)$/,([,e,t],{theme:r})=>({[`grid-template-${E(e)}`]:r[`gridTemplate${We(e)}`]?.[t]??a.bracket.cssvar(t)})],[/^grid-(rows|cols)-minmax-([\w.-]+)$/,([,e,t])=>({[`grid-template-${E(e)}`]:`repeat(auto-fill,minmax(${t},1fr))`})],[/^grid-(rows|cols)-(\d+)$/,([,e,t])=>({[`grid-template-${E(e)}`]:`repeat(${t},minmax(0,1fr))`}),{autocomplete:["grid-(rows|cols)-<num>","grid-(rows|cols)-none"]}],[/^grid-area(s)?-(.+)$/,([,e,t])=>e!=null?{"grid-template-areas":a.cssvar(t)??t.split("-").map(r=>`"${a.bracket(r)}"`).join(" ")}:{"grid-area":a.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"}]];var ye=["auto","hidden","clip","visible","scroll","overlay",...m],Nt=[[/^(?:overflow|of)-(.+)$/,([,e])=>ye.includes(e)?{overflow:e}:void 0,{autocomplete:[`(overflow|of)-(${ye.join("|")})`,`(overflow|of)-(x|y)-(${ye.join("|")})`]}],[/^(?:overflow|of)-([xy])-(.+)$/,([,e,t])=>ye.includes(t)?{[`overflow-${e}`]:t}:void 0]];var Mt=[[/^(?:position-|pos-)?(relative|absolute|fixed|sticky)$/,([,e])=>({position:e}),{autocomplete:["(position|pos)-<position>","(position|pos)-<globalKeyword>","<position>"]}],[/^(?:position-|pos-)([-\w]+)$/,([,e])=>m.includes(e)?{position:e}:void 0],[/^(?:position-|pos-)?(static)$/,([,e])=>({position:e})]],Ne=[["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"}],...d("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"}],...d("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"}],...d("justify-self")],It=[[/^order-(.+)$/,([,e])=>({order:a.bracket.cssvar.number(e)})],["order-first",{order:"-9999"}],["order-last",{order:"9999"}],["order-none",{order:"0"}]],Me=[["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"}],...d("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"}],...d("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"}],...d("self","align-self")],Ut=[["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"}],...d("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"}],...d("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"}],...d("place-self")],Bt=[...Ne,...Me].flatMap(([e,t])=>[[`flex-${e}`,t],[`grid-${e}`,t]]);function _e(e,{theme:t}){return t.spacing?.[e]??a.bracket.cssvar.global.auto.fraction.rem(e)}function re([,e,t],r){let n=_e(t,r);if(n!=null&&e in Se)return Se[e].map(o=>[o.slice(1),n])}var Dt=[[/^(?:position-|pos-)?inset-(.+)$/,([,e],t)=>({inset:_e(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)-(.+)$/,re],[/^(?:position-|pos-)?inset-([xy])-(.+)$/,re],[/^(?:position-|pos-)?inset-([rltbse])-(.+)$/,re],[/^(?:position-|pos-)?inset-(block|inline)-(.+)$/,re],[/^(?:position-|pos-)?inset-([bi][se])-(.+)$/,re],[/^(?:position-|pos-)?(top|left|right|bottom)-(.+)$/,([,e,t],r)=>({[e]:_e(t,r)})]],qt=[["float-left",{float:"left"}],["float-right",{float:"right"}],["float-none",{float:"none"}],...d("float"),["clear-left",{clear:"left"}],["clear-right",{clear:"right"}],["clear-both",{clear:"both"}],["clear-none",{clear:"none"}],...d("clear")],Ht=[[/^(?:position-|pos-)?z([\d.]+)$/,([,e])=>({"z-index":a.number(e)})],[/^(?:position-|pos-)?z-(.+)$/,([,e],{theme:t})=>({"z-index":t.zIndex?.[e]??a.bracket.cssvar.global.auto.number(e)}),{autocomplete:"z-<num>"}]],Gt=[["box-border",{"box-sizing":"border-box"}],["box-content",{"box-sizing":"content-box"}],...d("box","box-sizing")];var Vo=["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"],Po=["none","strict","content","size","inline-size","layout","style","paint"],we=" ",Kt=[["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:a.bracket.cssvar.global(e)})]],Xt=[["visible",{visibility:"visible"}],["invisible",{visibility:"hidden"}],["backface-visible",{"backface-visibility":"visible"}],["backface-hidden",{"backface-visibility":"hidden"}],...d("backface","backface-visibility")],Yt=[[/^cursor-(.+)$/,([,e])=>({cursor:a.bracket.cssvar.global(e)})],...Vo.map(e=>[`cursor-${e}`,{cursor:e}])],Zt=[[/^contain-(.*)$/,([,e])=>a.bracket(e)!=null?{contain:a.bracket(e).split(" ").map(t=>a.cssvar.fraction(t)??t).join(" ")}:Po.includes(e)?{contain:e}:void 0]],Jt=[["pointer-events-auto",{"pointer-events":"auto"}],["pointer-events-none",{"pointer-events":"none"}],...d("pointer-events")],Qt=[["resize-x",{resize:"horizontal"}],["resize-y",{resize:"vertical"}],["resize",{resize:"both"}],["resize-none",{resize:"none"}],...d("resize")],er=[["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"}],...d("select","user-select")],tr=[[/^(?:whitespace-|ws-)([-\w]+)$/,([,e])=>["normal","nowrap","pre","pre-line","pre-wrap","break-spaces",...m].includes(e)?{"white-space":e}:void 0,{autocomplete:"(whitespace|ws)-(normal|nowrap|pre|pre-line|pre-wrap|break-spaces)"}]],rr=[[/^intrinsic-size-(.+)$/,([,e])=>({"contain-intrinsic-size":a.bracket.cssvar.global.fraction.rem(e)}),{autocomplete:"intrinsic-size-<num>"}],["content-visibility-visible",{"content-visibility":"visible"}],["content-visibility-hidden",{"content-visibility":"hidden"}],["content-visibility-auto",{"content-visibility":"auto"}],...d("content-visibility")],nr=[[/^content-(.+)$/,([,e])=>({content:a.bracket.cssvar(e)})],["content-empty",{content:'""'}],["content-none",{content:"none"}]],or=[["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"}]],ir=[["text-wrap",{"text-wrap":"wrap"}],["text-nowrap",{"text-wrap":"nowrap"}],["text-balance",{"text-wrap":"balance"}]],sr=[["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"}]],ar=[["case-upper",{"text-transform":"uppercase"}],["case-lower",{"text-transform":"lowercase"}],["case-capital",{"text-transform":"capitalize"}],["case-normal",{"text-transform":"none"}],...d("case","text-transform")],lr=[["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"}]],cr=[["antialiased",{"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"}],["subpixel-antialiased",{"-webkit-font-smoothing":"auto","-moz-osx-font-smoothing":"auto"}]];var ur={"--un-ring-inset":we,"--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)"},fr=[[/^ring(?:-(.+))?$/,([,e],{theme:t})=>{let r=t.ringWidth?.[e||"DEFAULT"]??a.px(e||"1");if(r)return{"--un-ring-width":r,"--un-ring-offset-shadow":"var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color)","--un-ring-shadow":"var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color)","box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}},{autocomplete:"ring-$ringWidth"}],[/^ring-(?:width-|size-)(.+)$/,([,e],{theme:t})=>({"--un-ring-width":t.lineWidth?.[e]??a.bracket.cssvar.px(e)}),{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]??a.bracket.cssvar.px(e)}),{autocomplete:"ring-offset-(width|size)-$lineWidth"}],[/^ring-(.+)$/,b("--un-ring-color","ring"),{autocomplete:"ring-$colors"}],[/^ring-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"ring-(op|opacity)-<percent>"}],[/^ring-offset-(.+)$/,b("--un-ring-offset-color","ring-offset"),{autocomplete:"ring-offset-$colors"}],[/^ring-offset-op(?:acity)?-?(.+)$/,([,e])=>({"--un-ring-offset-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"ring-offset-(op|opacity)-<percent>"}],["ring-inset",{"--un-ring-inset":"inset"}]];var pr={"--un-ring-offset-shadow":"0 0 rgb(0 0 0 / 0)","--un-ring-shadow":"0 0 rgb(0 0 0 / 0)","--un-shadow-inset":we,"--un-shadow":"0 0 rgb(0 0 0 / 0)"},mr=[[/^shadow(?:-(.+))?$/,(e,t)=>{let[,r]=e,{theme:n}=t,o=n.boxShadow?.[r||"DEFAULT"],i=r?a.bracket.cssvar(r):void 0;return(o!=null||i!=null)&&!ge(i,n)?{"--un-shadow":he(o||i,"--un-shadow-color").join(","),"box-shadow":"var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)"}:b("--un-shadow-color","shadow")(e,t)},{autocomplete:["shadow-$colors","shadow-$boxShadow"]}],[/^shadow-op(?:acity)?-?(.+)$/,([,e])=>({"--un-shadow-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"shadow-(op|opacity)-<percent>"}],["shadow-inset",{"--un-shadow-inset":"inset"}]];var Fo={h:"height",w:"width",inline:"inline-size",block:"block-size"};function ne(e,t){return`${e||""}${Fo[t]}`}function dr(e,t,r,n){let o=ne(e,t).replace(/-(\w)/g,(s,l)=>l.toUpperCase()),i=r[o]?.[n];if(i!=null)return i;switch(n){case"fit":case"max":case"min":return`${n}-content`}return a.bracket.cssvar.global.auto.fraction.rem(n)}var gr=[[/^(?:size-)?(min-|max-)?([wh])-?(.+)$/,([,e,t,r],{theme:n})=>({[ne(e,t)]:dr(e,t,n,r)})],[/^(?:size-)?(min-|max-)?(block|inline)-(.+)$/,([,e,t,r],{theme:n})=>({[ne(e,t)]:dr(e,t,n,r)}),{autocomplete:["(w|h)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(max|min)-(w|h|block|inline)","(max|min)-(w|h|block|inline)-$width|height|maxWidth|maxHeight|minWidth|minHeight|inlineSize|blockSize|maxInlineSize|maxBlockSize|minInlineSize|minBlockSize","(w|h)-full","(max|min)-(w|h)-full"]}],[/^(?:size-)?(min-|max-)?(h)-screen-(.+)$/,([,e,t,r],n)=>({[ne(e,t)]:hr(n,r,"verticalBreakpoints")})],[/^(?:size-)?(min-|max-)?(w)-screen-(.+)$/,([,e,t,r],n)=>({[ne(e,t)]:hr(n,r)}),{autocomplete:["(w|h)-screen","(min|max)-(w|h)-screen","h-screen-$verticalBreakpoints","(min|max)-h-screen-$verticalBreakpoints","w-screen-$breakpoints","(min|max)-w-screen-$breakpoints"]}]];function hr(e,t,r="breakpoints"){let n=be(e,r);if(n)return n.find(o=>o.point===t)?.size}function Lo(e){if(/^\d+\/\d+$/.test(e))return e;switch(e){case"square":return"1/1";case"video":return"16/9"}return a.bracket.cssvar.global.auto.number(e)}var br=[[/^(?:size-)?aspect-(?:ratio-)?(.+)$/,([,e])=>({"aspect-ratio":Lo(e)}),{autocomplete:["aspect-(square|video|ratio)","aspect-ratio-(square|video)"]}]];var xr=[[/^pa?()-?(-?.+)$/,$("padding"),{autocomplete:["(m|p)<num>","(m|p)-<num>"]}],[/^p-?xy()()$/,$("padding"),{autocomplete:"(m|p)-(xy)"}],[/^p-?([xy])(?:-?(-?.+))?$/,$("padding")],[/^p-?([rltbse])(?:-?(-?.+))?$/,$("padding"),{autocomplete:"(m|p)<directions>-<num>"}],[/^p-(block|inline)(?:-(-?.+))?$/,$("padding"),{autocomplete:"(m|p)-(block|inline)-<num>"}],[/^p-?([bi][se])(?:-?(-?.+))?$/,$("padding"),{autocomplete:"(m|p)-(bs|be|is|ie)-<num>"}]],yr=[[/^ma?()-?(-?.+)$/,$("margin")],[/^m-?xy()()$/,$("margin")],[/^m-?([xy])(?:-?(-?.+))?$/,$("margin")],[/^m-?([rltbse])(?:-?(-?.+))?$/,$("margin")],[/^m-(block|inline)(?:-(-?.+))?$/,$("margin")],[/^m-?([bi][se])(?:-?(-?.+))?$/,$("margin")]];var $e=["translate","rotate","scale"],A=["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(" "),Wo=["translate3d(var(--un-translate-x), var(--un-translate-y), var(--un-translate-z))","rotate(var(--un-rotate))","rotateX(var(--un-rotate-x))","rotateY(var(--un-rotate-y))","rotateZ(var(--un-rotate-z))","skewX(var(--un-skew-x))","skewY(var(--un-skew-y))","scaleX(var(--un-scale-x))","scaleY(var(--un-scale-y))","scaleZ(var(--un-scale-z))"].join(" "),Sr={"--un-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},Cr=[[/^(?:transform-)?origin-(.+)$/,([,e])=>({"transform-origin":D[e]??a.bracket.cssvar(e)}),{autocomplete:[`transform-origin-(${Object.keys(D).join("|")})`,`origin-(${Object.keys(D).join("|")})`]}],[/^(?:transform-)?perspect(?:ive)?-(.+)$/,([,e])=>{let t=a.bracket.cssvar.px.numberWithUnit(e);if(t!=null)return{"-webkit-perspective":t,perspective:t}}],[/^(?:transform-)?perspect(?:ive)?-origin-(.+)$/,([,e])=>{let t=a.bracket.cssvar(e)??(e.length>=3?D[e]:void 0);if(t!=null)return{"-webkit-perspective-origin":t,"perspective-origin":t}}],[/^(?:transform-)?translate-()(.+)$/,wr],[/^(?:transform-)?translate-([xyz])-(.+)$/,wr],[/^(?:transform-)?rotate-()(.+)$/,vr],[/^(?:transform-)?rotate-([xyz])-(.+)$/,vr],[/^(?:transform-)?skew-()(.+)$/,kr],[/^(?:transform-)?skew-([xy])-(.+)$/,kr,{autocomplete:["transform-skew-(x|y)-<percent>","skew-(x|y)-<percent>"]}],[/^(?:transform-)?scale-()(.+)$/,$r],[/^(?:transform-)?scale-([xyz])-(.+)$/,$r,{autocomplete:[`transform-(${$e.join("|")})-<percent>`,`transform-(${$e.join("|")})-(x|y|z)-<percent>`,`(${$e.join("|")})-<percent>`,`(${$e.join("|")})-(x|y|z)-<percent>`]}],[/^(?:transform-)?preserve-3d$/,()=>({"transform-style":"preserve-3d"})],[/^(?:transform-)?preserve-flat$/,()=>({"transform-style":"flat"})],["transform",{transform:A}],["transform-cpu",{transform:A}],["transform-gpu",{transform:Wo}],["transform-none",{transform:"none"}],...d("transform")];function wr([,e,t],{theme:r}){let n=r.spacing?.[t]??a.bracket.cssvar.fraction.rem(t);if(n!=null)return[...le[e].map(o=>[`--un-translate${o}`,n]),["transform",A]]}function $r([,e,t]){let r=a.bracket.cssvar.fraction.percent(t);if(r!=null)return[...le[e].map(n=>[`--un-scale${n}`,r]),["transform",A]]}function vr([,e="",t]){let r=a.bracket.cssvar.degree(t);if(r!=null)return e?{"--un-rotate":0,[`--un-rotate-${e}`]:r,transform:A}:{"--un-rotate-x":0,"--un-rotate-y":0,"--un-rotate-z":0,"--un-rotate":r,transform:A}}function kr([,e,t]){let r=a.bracket.cssvar.degree(t);if(r!=null)return[...le[e].map(n=>[`--un-skew${n}`,r]),["transform",A]]}var _o={backface:"backface-visibility",break:"word-break",case:"text-transform",content:"align-content",fw:"font-weight",items:"align-items",justify:"justify-content",select:"user-select",self:"align-self",vertical:"vertical-align",visible:"visibility",whitespace:"white-space",ws:"white-space"},Rr=[[/^(.+?)-(\$.+)$/,([,e,t])=>{let r=_o[e];if(r)return{[r]:a.cssvar(t)}}]],Er=[[/^\[(.*)\]$/,([e,t],{theme:r})=>{if(!t.includes(":"))return;let[n,...o]=t.split(":"),i=o.join(":");if(!Mo(t)&&n.match(/^[a-z-]+$/)&&No(i)){let s;if(ct(i)&&(s=ut(i,r)),(!s||s===i)&&(s=a.bracket(`[${i}]`)),s)return{[n]:s}}}]];function No(e){let t=0;function r(n){for(;t<e.length;)if(t+=1,e[t]===n)return!0;return!1}for(t=0;t<e.length;t++){let n=e[t];if("\"`'".includes(n)){if(!r(n))return!1}else if(n==="("){if(!r(")"))return!1}else if("[]{}:".includes(n))return!1}return!0}function Mo(e){if(!e.includes("://"))return!1;try{return new URL(e).host!==""}catch{return!1}}var Tr=[[/^(where|\?)$/,(e,{constructCSS:t,generator:r})=>{if(r.userConfig.envMode==="dev")return`@keyframes __un_qm{0%{box-shadow:inset 4px 4px #ff1e90, inset -4px -4px #ff1e90}100%{box-shadow:inset 8px 8px #3399ff, inset -8px -8px #3399ff}}
11
+ ${t({animation:"__un_qm 0.5s ease-in-out alternate infinite"})}`}]];var jr=[[/^fill-(.+)$/,b("fill","fill"),{autocomplete:"fill-$colors"}],[/^fill-op(?:acity)?-?(.+)$/,([,e])=>({"--un-fill-opacity":a.bracket.percent.cssvar(e)}),{autocomplete:"fill-(op|opacity)-<percent>"}],["fill-none",{fill:"none"}],[/^stroke-(?:width-|size-)?(.+)$/,([,e],{theme:t})=>({"stroke-width":t.lineWidth?.[e]??a.bracket.cssvar.fraction.px.number(e)}),{autocomplete:["stroke-width-$lineWidth","stroke-size-$lineWidth"]}],[/^stroke-dash-(.+)$/,([,e])=>({"stroke-dasharray":a.bracket.cssvar.number(e)}),{autocomplete:"stroke-dash-<num>"}],[/^stroke-offset-(.+)$/,([,e],{theme:t})=>({"stroke-dashoffset":t.lineWidth?.[e]??a.bracket.cssvar.px.numberWithUnit(e)}),{autocomplete:"stroke-offset-$lineWidth"}],[/^stroke-(.+)$/,b("stroke","stroke"),{autocomplete:"stroke-$colors"}],[/^stroke-op(?:acity)?-?(.+)$/,([,e])=>({"--un-stroke-opacity":a.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"}]];var zr=[Rr,Er,xr,yr,Kt,$t,kt,St,jr,wt,rr,nr,Ot,At,Vt,sr,Et,Pt,Ft,ar,mt,vt,lr,cr,mr,fr,zt,_t,Wt,Mt,gr,br,Yt,Xt,Jt,Qt,pt,er,tr,or,Nt,bt,xt,It,Ne,Me,Ut,Bt,Dt,qt,Ht,Gt,jt,Cr,yt,Ct,Zt,ir,Tr].flat(1);var Ie={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(Ie).forEach(e=>{typeof e!="string"&&e!==void 0&&(e.DEFAULT=e.DEFAULT||e[400],Object.keys(e).forEach(t=>{let r=+t/100;r===Math.round(r)&&(e[r]=e[t])}))});var Or={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(",")},Ar={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"]},Vr={DEFAULT:"1.5rem",xs:"0.5rem",sm:"1rem",md:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"4rem"},Pr={DEFAULT:"1.5rem",none:"0",sm:"thin",md:"medium",lg:"thick"},Fr={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)"]},Lr={none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},Ue={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},Wr={thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},_r=Ue;var Be={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Nr={...Be},Mr={DEFAULT:"1px",none:"0"},Ir={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"},Ur={DEFAULT:"150ms",none:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},Br={DEFAULT:"0.25rem",none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},Dr={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)"},qr={DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},Hr={DEFAULT:"1px",none:"0"},Gr={auto:"auto"},Kr={mouse:"(hover) and (pointer: fine)"};var Xr={DEFAULT:"8px",0:"0",sm:"4px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Yr={DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],sm:"0 1px 1px rgb(0 0 0 / 0.05)",md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 rgb(0 0 0 / 0)"};var oe={xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",prose:"65ch"},De={auto:"auto",...oe,screen:"100vw"},ie={none:"none",...oe,screen:"100vw"},qe={auto:"auto",...oe,screen:"100vh"},se={none:"none",...oe,screen:"100vh"},Zr=Object.fromEntries(Object.entries(oe).map(([e,t])=>[e,`(min-width: ${t})`]));var Jr={...Sr,...pr,...ur};var Qr={width:De,height:qe,maxWidth:ie,maxHeight:se,minWidth:ie,minHeight:se,inlineSize:De,blockSize:qe,maxInlineSize:ie,maxBlockSize:se,minInlineSize:ie,minBlockSize:se,colors:Ie,fontFamily:Or,fontSize:Ar,fontWeight:Wr,breakpoints:Be,verticalBreakpoints:Nr,borderRadius:Br,lineHeight:Lr,letterSpacing:Ue,wordSpacing:_r,boxShadow:Dr,textIndent:Vr,textShadow:Fr,textStrokeWidth:Pr,blur:Xr,dropShadow:Yr,easing:qr,lineWidth:Mr,spacing:Ir,duration:Ur,ringWidth:Hr,preflightBase:Jr,containers:Zr,zIndex:Gr,media:Kr};var en={name:"aria",match(e,t){let r=y("aria-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.aria?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[aria-${i}]`}}}};function tn(e){let t=e.match(/^-?[0-9]+\.?[0-9]*/)?.[0]||"",r=e.slice(t.length);if(r==="px"){let n=Number.parseFloat(t)-.1;return Number.isNaN(n)?e:`${n}${r}`}return`calc(${e} - 0.1px)`}function rn(){let e={};return{name:"breakpoints",match(t,r){let n=(be(r)??[]).map(({point:o,size:i},s)=>[o,i,s]);for(let[o,i,s]of n){e[o]||(e[o]=new RegExp(`^((?:([al]t-|[<~]|max-))?${o}(?:${r.generator.config.separators.join("|")}))`));let l=t.match(e[o]);if(!l)continue;let[,c]=l,u=t.slice(c.length);if(u==="container")continue;let p=c.startsWith("lt-")||c.startsWith("<")||c.startsWith("max-"),f=c.startsWith("at-")||c.startsWith("~"),h=1e3;return p?(h-=s+1,{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (max-width: ${tn(i)})`,parentOrder:h})}):(h+=s+1,f&&s<n.length-1?{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i}) and (max-width: ${tn(n[s+1][1])})`,parentOrder:h})}:{matcher:u,handle:(g,x)=>x({...g,parent:`${g.parent?`${g.parent} $$ `:""}@media (min-width: ${i})`,parentOrder:h})})}},multiPass:!0,autocomplete:"(at-|lt-|max-|)$breakpoints:"}}function ae(e,t){return{name:`combinator:${e}`,match(r,n){if(!r.startsWith(e))return;let o=n.generator.config.separators,i=j(`${e}-`,r,o);if(!i){for(let l of o)if(r.startsWith(`${e}${l}`)){i=["",r.slice(e.length+l.length)];break}if(!i)return}let s=a.bracket(i[0])??"";return s===""&&(s="*"),{matcher:i[1],selector:l=>`${l}${t}${s}`}},multiPass:!0}}var nn=[ae("all"," "),ae("children",">"),ae("next","+"),ae("sibling","+"),ae("siblings","~")];var on={name:"@",match(e,t){if(e.startsWith("@container"))return;let r=y("@",e,t.generator.config.separators);if(r){let[n,o,i]=r,s=a.bracket(n),l;if(s){let c=a.numberWithUnit(s);c&&(l=`(min-width: ${c})`)}else l=t.theme.containers?.[n]??"";if(l)return L("The container query variant is experimental and may not follow semver."),{matcher:o,handle:(c,u)=>u({...c,parent:`${c.parent?`${c.parent} $$ `:""}@container${i?` ${i} `:" "}${l}`})}}},multiPass:!0};function sn(e={}){if(e?.dark==="class"||typeof e.dark=="object"){let{dark:t=".dark",light:r=".light"}=typeof e.dark=="string"?{}:e.dark;return[N("dark",n=>({prefix:`${t} $$ ${n.prefix}`})),N("light",n=>({prefix:`${r} $$ ${n.prefix}`}))]}return[G("dark","@media (prefers-color-scheme: dark)"),G("light","@media (prefers-color-scheme: light)")]}var an={name:"data",match(e,t){let r=y("data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:o,selector:s=>`${s}[data-${i}]`}}}},ln={name:"group-data",match(e,t){let r=y("group-data-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??t.theme.data?.[n]??"";if(i)return{matcher:`group-[[data-${i}]]:${o}`}}}};var cn=[N("rtl",e=>({prefix:`[dir="rtl"] $$ ${e.prefix}`})),N("ltr",e=>({prefix:`[dir="ltr"] $$ ${e.prefix}`}))];var un={name:"selector",match(e,t){let r=j("selector-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:()=>i}}}},fn={name:"layer",match(e,t){let r=y("layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@layer ${i}`})}}}},pn={name:"uno-layer",match(e,t){let r=y("uno-layer-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??n;if(i)return{matcher:o,layer:i}}}},mn={name:"scope",match(e,t){let r=j("scope-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n);if(i)return{matcher:o,selector:s=>`${i} $$ ${s}`}}}},dn={name:"variables",match(e,t){if(!e.startsWith("["))return;let[r,n]=W(e,"[","]")??[];if(!(r&&n))return;let o;for(let l of t.generator.config.separators)if(n.startsWith(l)){o=n.slice(l.length);break}if(o==null)return;let i=a.bracket(r)??"",s=i.startsWith("@");if(s||i.includes("&"))return{matcher:o,handle(l,c){let u=s?{parent:`${l.parent?`${l.parent} $$ `:""}${i}`}:{selector:i.replace(/&/g,l.selector)};return c({...l,...u})}}},multiPass:!0};var hn=/[0-9.]+(?:[a-z]+|%)?/,Io=[/opacity|color|flex/];function Uo(e){let t=e.match(/^(calc|clamp|max|min)\s*(\(.*)/);if(t){let[r,n]=Ee(t[2],"(",")"," ")??[];if(r)return`calc(${t[1]}${r} * -1)${n?` ${n}`:""}`}}var gn={name:"negative",match(e){if(e.startsWith("-"))return{matcher:e.slice(1),body:t=>{if(t.find(n=>n[0]===dt))return;let r=!1;return t.forEach(n=>{let o=n[1]?.toString();if(!o||o==="0"||Io.some(s=>n[0].match(s)))return;let i=Uo(o);i?(n[1]=i,r=!0):hn.test(o)&&(n[1]=o.replace(hn,s=>`-${s}`),r=!0)}),r?t:[]}}}};function bn(){let e;return{name:"important",match(t,r){e||(e=new RegExp(`^(important(?:${r.generator.config.separators.join("|")})|!)`));let n,o=t.match(e);if(o?n=t.slice(o[0].length):t.endsWith("!")&&(n=t.slice(0,-1)),n)return{matcher:n,body:i=>(i.forEach(s=>{s[1]&&(s[1]+=" !important")}),i)}}}}var xn=G("print","@media print"),yn={name:"media",match(e,t){let r=y("media-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=t.theme.media?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@media ${i}`})}}},multiPass:!0};var wn={name:"supports",match(e,t){let r=y("supports-",e,t.generator.config.separators);if(r){let[n,o]=r,i=a.bracket(n)??"";if(i===""&&(i=t.theme.supports?.[n]??""),i)return{matcher:o,handle:(s,l)=>l({...s,parent:`${s.parent?`${s.parent} $$ `:""}@supports ${i}`})}}},multiPass:!0};var 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","root","empty",["even-of-type",":nth-of-type(even)"],["even",":nth-child(even)"],["odd-of-type",":nth-of-type(odd)"],["odd",":nth-child(odd)"],"first-of-type",["first",":first-child"],"last-of-type",["last",":last-child"],"only-child","only-of-type",["backdrop-element","::backdrop"],["placeholder","::placeholder"],["before","::before"],["after","::after"],["selection","::selection"],["marker","::marker"],["file","::file-selector-button"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),kn=Object.keys(U),B=Object.fromEntries([["backdrop","::backdrop"]].map(e=>Array.isArray(e)?e:[e,`:${e}`])),Sn=Object.keys(B),Bo=["not","is","where","has"],He=Object.entries(U).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),Ge=Object.entries(B).filter(([,e])=>!e.startsWith("::")).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),V=Bo.join("|");function ve(e,t,r){let n=new RegExp(`^(${T(t)}:)(\\S+)${T(r)}\\1`),o,i,s,l,c=f=>{let h=j(`${e}-`,f,[]);if(!h)return;let[g,x]=h,w=a.bracket(g);if(w==null)return;let C=x.split(o,1)?.[0]??"",R=`${t}${F(C)}`;return[C,f.slice(f.length-(x.length-C.length-1)),w.includes("&")?w.replace(/&/g,R):`${R}${w}`]},u=f=>{let h=f.match(i)||f.match(s);if(!h)return;let[g,x,w]=h,C=h[3]??"",R=U[w]||B[w]||`:${w}`;return x&&(R=`:${x}(${R})`),[C,f.slice(g.length),`${t}${F(C)}${R}`,w]},p=f=>{let h=f.match(l);if(!h)return;let[g,x,w]=h,C=h[3]??"",R=`:${x}(${w})`;return[C,f.slice(g.length),`${t}${F(C)}${R}`]};return{name:`pseudo:${e}`,match(f,h){if(o&&i&&s||(o=new RegExp(`(?:${h.generator.config.separators.join("|")})`),i=new RegExp(`^${e}-(?:(?:(${V})-)?(${He}))(?:(/\\w+))?(?:${h.generator.config.separators.join("|")})`),s=new RegExp(`^${e}-(?:(?:(${V})-)?(${Ge}))(?:(/\\w+))?(?:${h.generator.config.separators.filter(P=>P!=="-").join("|")})`),l=new RegExp(`^${e}-(?:(${V})-)?\\[(.+)\\](?:(/\\w+))?(?:${h.generator.config.separators.filter(P=>P!=="-").join("|")})`)),!f.startsWith(e))return;let g=c(f)||u(f)||p(f);if(!g)return;let[x,w,C,R=""]=g;return x!==""&&L("The labeled variant is experimental and may not follow semver."),{matcher:w,handle:(P,An)=>An({...P,prefix:`${C}${r}${P.prefix}`.replace(n,"$1$2:"),sort:kn.indexOf(R)??Sn.indexOf(R)})}},multiPass:!0}}var Do=["::-webkit-resizer","::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-corner","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::file-selector-button"],$n=Object.entries(U).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|"),vn=Object.entries(B).map(([e])=>e).sort((e,t)=>t.length-e.length).join("|");function Cn(){let e,t;return{name:"pseudo",match(r,n){e&&e||(e=new RegExp(`^(${$n})(?:${n.generator.config.separators.join("|")})`),t=new RegExp(`^(${vn})(?:${n.generator.config.separators.filter(i=>i!=="-").join("|")})`));let o=r.match(e)||r.match(t);if(o){let i=U[o[1]]||B[o[1]]||`:${o[1]}`,s=kn.indexOf(o[1]);return s===-1&&(s=Sn.indexOf(o[1])),s===-1&&(s=void 0),{matcher:r.slice(o[0].length),handle:(l,c)=>{let u=i.startsWith("::")&&!Do.includes(i)?{pseudo:`${l.pseudo}${i}`}:{selector:`${l.selector}${i}`};return c({...l,...u,sort:s,noMerge:!0})}}}},multiPass:!0,autocomplete:`(${$n}|${vn}):`}}function Rn(){let e,t,r;return{match(n,o){e&&t||(e=new RegExp(`^(${V})-(${He})(?:${o.generator.config.separators.join("|")})`),t=new RegExp(`^(${V})-(${Ge})(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`),r=new RegExp(`^(${V})-(\\[.+\\])(?:${o.generator.config.separators.filter(s=>s!=="-").join("|")})`));let i=n.match(e)||n.match(t)||n.match(r);if(i){let s=i[1],c=W(i[2],"[","]")?a.bracket(i[2]):U[i[2]]||B[i[2]]||`:${i[2]}`;return{matcher:n.slice(i[0].length),selector:u=>`${u}:${s}(${c})`}}},multiPass:!0,autocomplete:`(${V})-(${He}|${Ge}):`}}function En(e={}){let t=!!e?.attributifyPseudo;return[ve("group",t?'[group=""]':".group"," "),ve("peer",t?'[peer=""]':".peer","~"),ve("parent",t?'[parent=""]':".parent",">"),ve("previous",t?'[previous=""]':".previous","+")]}var qo=/(part-\[(.+)]:)(.+)/,Tn={match(e){let t=e.match(qo);if(t){let r=`part(${t[2]})`;return{matcher:e.slice(t[1].length),selector:n=>`${n}::${r}`}}},multiPass:!0};function jn(e){return[en,an,fn,un,pn,gn,bn(),wn,xn,yn,rn(),...nn,Cn(),Rn(),...En(e),Tn,...sn(e),...cn,mn,on,dn,ln]}var zn={position:["relative","absolute","fixed","sticky","static"],globalKeyword:m};var Ho=(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:Qr,rules:zr,variants:jn(e),options:e,prefix:e.prefix,postprocess:Go(e.variablePrefix),preflights:e.preflight?Ko(et,e.variablePrefix):[],extractorDefault:e.arbitraryVariants===!1?void 0:Qe,autocomplete:{shorthands:zn}}),On=Ho;function Go(e){if(e!=="un-")return t=>{t.entries.forEach(r=>{r[0]=r[0].replace(/^--un-/,`--${e}`),typeof r[1]=="string"&&(r[1]=r[1].replace(/var\(--un-/g,`var(--${e}`))})}}function Ko(e,t){return t!=="un-"?e.map(r=>({...r,getCSS:(()=>async n=>{let o=await r.getCSS(n);if(o)return o.replace(/--un-/g,`--${t}`)})()})):e}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetMini:e=>On(e)});})();