@unocss/runtime 0.56.5 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributify.global.js +12 -3
- package/core.global.js +2 -2
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/full.global.js +12 -3
- package/mini.global.js +12 -3
- package/package.json +7 -6
- package/preset-attributify.global.js +1 -0
- package/preset-icons.global.js +5 -0
- package/preset-mini.global.js +11 -0
- package/preset-rem-to-px.global.js +1 -0
- package/preset-tagify.global.js +1 -0
- package/preset-typography.global.js +1 -0
- package/preset-uno.global.js +11 -0
- package/preset-web-fonts.global.js +2 -0
- package/preset-wind.global.js +11 -0
- package/uno.global.js +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.57.0",
|
|
4
4
|
"description": "CSS-in-JS Runtime for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,15 +35,16 @@
|
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unocss/core": "0.
|
|
39
|
-
"@unocss/preset-attributify": "0.
|
|
40
|
-
"@unocss/preset-uno": "0.
|
|
38
|
+
"@unocss/core": "0.57.0",
|
|
39
|
+
"@unocss/preset-attributify": "0.57.0",
|
|
40
|
+
"@unocss/preset-uno": "0.57.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
|
-
"build": "pnpm run build:node && pnpm run build:cdn",
|
|
43
|
+
"build": "pnpm run build:node && pnpm run build:cdn && pnpm run build:presets",
|
|
44
44
|
"build:cdn": "tsup src/cdn/*.ts --format iife --minify --out-dir .",
|
|
45
45
|
"build:node": "tsup src/index.ts --format esm,cjs --dts",
|
|
46
|
-
"
|
|
46
|
+
"build:presets": "tsup src/presets/*.ts --format iife --minify --out-dir .",
|
|
47
|
+
"watch": "tsup src/cdn/*.ts --format iife --watch src --out-dir .",
|
|
47
48
|
"dev": "nr watch & live-server --open=/play"
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var S=/^\[(.+?)~?="(.*)"\]$/;var U=/[\w\u00A0-\uFFFF-_:%-?]/;function V(t){return t.match(S)}function O(t=""){return U.test(t)}var R=/^(?!.*\[(?:[^:]+):(?:.+)\]$)((?:.+:)?!?)?(.*)$/;function w(t={}){let m=t.prefix??"un-",n=t.prefixedOnly??!1,d=t.trueToNonValued??!1,o;return{name:"attributify",match(r,{generator:b}){let s=V(r);if(!s)return;let e=s[1];if(e.startsWith(m))e=e.slice(m.length);else if(n)return;let a=s[2],[,x="",u=a]=a.match(R)||[];if(u==="~"||d&&u==="true"||!u)return`${x}${e}`;if(o==null){let l=b?.config?.separators?.join("|");l?o=new RegExp(`^(.*\\](?:${l}))(\\[[^\\]]+?\\])$`):o=!1}if(o){let[,l,c]=a.match(o)||[];if(c)return`${l}${x}${e}-${c}`}return`${x}${e}-${u}`}}}var j=/(<\w[\w:\.$-]*\s)((?:'[^>]*?'|"[^>]*?"|`[^>]*?`|\{[^>]*?\}|[^>]*?)*)/g,k=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:%-]+)(?:=("[^"]*|'[^']*))?/g,_=/[\s'"`;>]+/;function v(t){return{name:"attributify",extract:({content:m,cursor:n})=>{let d=m.matchAll(j),o,r=0;for(let i of d){let[,p,g]=i,h=i.index+p.length;if(n>h&&n<=h+g.length){r=h,o=g;break}}if(!o)return null;let b=o.matchAll(k),s=0,e,a;for(let i of b){let[p,g,h]=i,$=r+i.index;if(n>$&&n<=$+p.length){s=$,e=g,a=h?.slice(1);break}}if(!e||e==="class"||e==="className"||e===":class")return null;let x=!!t?.prefix&&e.startsWith(t.prefix);if(t?.prefixedOnly&&!x)return null;let u=x?e.slice(t.prefix.length):e;if(a===void 0)return{extracted:u,resolveReplacement(i){let p=x?t.prefix.length:0;return{start:s+p,end:s+e.length,replacement:i}}};let l=s+e.length+2,c=_.exec(a),f=0,A;for(;c;){let[i]=c;if(n>l+f&&n<=l+f+c.index){A=a.slice(f,f+c.index);break}f+=c.index+i.length,c=_.exec(a.slice(f))}A===void 0&&(A=a.slice(f));let[,y="",T]=A.match(R)||[];return{extracted:`${y}${u}-${T}`,transformSuggestions(i){return i.filter(p=>p.startsWith(`${y}${u}-`)).map(p=>y+p.slice(y.length+u.length+1))},resolveReplacement(i){return{start:f+l,end:f+l+A.length,replacement:y+i.slice(y.length+u.length+1)}}}}}}var C=["v-bind:",":"],F=/[\s'"`;]+/g,W=/<[^>\s]*\s((?:'.*?'|".*?"|`.*?`|\{.*?\}|[^>]*?)*)/g,z=/([?]|(?!\d|-{2}|-\d)[a-zA-Z0-9\u00A0-\uFFFF-_:!%-.~<]+)=?(?:["]([^"]*)["]|[']([^']*)[']|[{]([^}]*)[}])?/gms,E=["placeholder","fill","opacity","stroke-opacity"];function P(t){let m=t?.ignoreAttributes??E,n=t?.nonValuedAttribute??!0,d=t?.trueToNonValued??!1;return{name:"@unocss/preset-attributify/extractor",extract({code:o}){return Array.from(o.matchAll(W)).flatMap(r=>Array.from((r[1]||"").matchAll(z))).flatMap(([,r,...b])=>{let s=b.filter(Boolean).join("");if(m.includes(r))return[];for(let e of C)if(r.startsWith(e)){r=r.slice(e.length);break}if(!s){if(O(r)&&n!==!1){let e=[`[${r}=""]`];return d&&e.push(`[${r}="true"]`),e}return[]}return["class","className"].includes(r)?s.split(F).filter(O):t?.prefixedOnly&&t.prefix&&!r.startsWith(t.prefix)?[]:s.split(F).filter(e=>!!e&&e!==":").map(e=>`[${r}~="${e}"]`)})}}}var I=(t={})=>{t.strict=t.strict??!1,t.prefix=t.prefix??"un-",t.prefixedOnly=t.prefixedOnly??!1,t.nonValuedAttribute=t.nonValuedAttribute??!0,t.ignoreAttributes=t.ignoreAttributes??E;let m=[w(t)],n=[P(t)],d=[v(t)];return{name:"@unocss/preset-attributify",enforce:"post",variants:m,extractors:n,options:t,autocomplete:{extractors:d},extractorDefault:t.strict?!1:void 0}},N=I;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetAttributify:t=>N(t)});})();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(()=>{var We=Object.create;var le=Object.defineProperty;var Ke=Object.getOwnPropertyDescriptor;var He=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var H=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(o,t)=>(typeof require<"u"?require:o)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var I=(e,o)=>()=>(e&&(o=e(e=0)),o);var E=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Ze=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of He(o))!Ye.call(e,r)&&r!==t&&le(e,r,{get:()=>o[r],enumerable:!(n=Ke(o,r))||n.enumerable});return e};var M=(e,o,t)=>(t=e!=null?We(Je(e)):{},Ze(o||!e||!e.__esModule?le(t,"default",{value:e,enumerable:!0}):t,e));var Xe,R,J,ue,D=I(()=>{"use strict";Xe=Object.freeze({left:0,top:0,width:16,height:16}),R=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),J=Object.freeze({...Xe,...R}),ue=Object.freeze({...J,body:"",hidden:!1})});var Qe,N,Y=I(()=>{"use strict";D();Qe=Object.freeze({width:null,height:null}),N=Object.freeze({...Qe,...R})});function fe(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}var pe=I(()=>{"use strict"});function Z(e,o){let t=fe(e,o);for(let n in ue)n in R?n in e&&!(n in t)&&(t[n]=R[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}var me=I(()=>{"use strict";D();pe()});function de(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function s(u){if(t[u])return r[u]=[];if(!(u in r)){r[u]=null;let f=n[u]&&n[u].parent,m=f&&s(f);m&&(r[u]=[f].concat(m))}return r[u]}return(o||Object.keys(t).concat(Object.keys(n))).forEach(s),r}var ge=I(()=>{"use strict"});function he(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),s={};function u(f){s=Z(n[f]||r[f],s)}return u(o),t.forEach(u),Z(e,s)}function Ce(e,o){if(e.icons[o])return he(e,o,[]);let t=de(e,[o])[o];return t?he(e,o,t):null}var we=I(()=>{"use strict";me();ge()});function X(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(et);if(n===null||!n.length)return e;let r=[],s=n.shift(),u=tt.test(s);for(;;){if(u){let f=parseFloat(s);isNaN(f)?r.push(s):r.push(Math.ceil(f*o*t)/t)}else r.push(s);if(s=n.shift(),s===void 0)return r.join("");u=!u}}var et,tt,xe=I(()=>{"use strict";et=/(-?[0-9.]*[0-9]+[0-9.]*)/g,tt=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function ot(e){let o="",t=e.indexOf("<defs");for(;t>=0;){let n=e.indexOf(">",t),r=e.indexOf("</defs");if(n===-1||r===-1)break;let s=e.indexOf(">",r);if(s===-1)break;o+=e.slice(n+1,r).trim(),e=e.slice(0,t).trim()+e.slice(s+1)}return{defs:o,content:e}}function rt(e,o){return e?"<defs>"+e+"</defs>"+o:o}function ye(e,o,t){let n=ot(e);return rt(n.defs,o+n.content+t)}var be=I(()=>{"use strict"});function Fe(e,o){let t={...J,...e},n={...N,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},s=t.body;[t,n].forEach(l=>{let c=[],x=l.hFlip,y=l.vFlip,b=l.rotate;x?y?b+=2:(c.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),c.push("scale(-1 1)"),r.top=r.left=0):y&&(c.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),c.push("scale(1 -1)"),r.top=r.left=0);let d;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:d=r.height/2+r.top,c.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:c.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,c.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}b%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),c.length&&(s=ye(s,'<g transform="'+c.join(" ")+'">',"</g>"))});let u=n.width,f=n.height,m=r.width,C=r.height,i,a;u===null?(a=f===null?"1em":f==="auto"?C:f,i=X(a,m/C)):(i=u==="auto"?m:u,a=f===null?X(i,C/m):f==="auto"?C:f);let p={},h=(l,c)=>{P(c)||(p[l]=c.toString())};h("width",i),h("height",a);let w=[r.left,r.top,m,C];return p.viewBox=w.join(" "),{attributes:p,viewBox:w,body:s}}var P,Q=I(()=>{"use strict";D();Y();xe();be();P=e=>e==="unset"||e==="undefined"||e==="none"});function Oe(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').trim()}var Se=I(()=>{"use strict"});function st(e,o,t){let n=e.slice(0,e.indexOf(">")),r=(s,u)=>{let f=u.exec(n),m=f!=null,C=o[s];return!C&&!P(C)&&(typeof t=="number"?t>0&&(o[s]=`${t}em`):f&&(o[s]=f[1])),m};return[r("width",nt),r("height",it)]}async function V(e,o,t,n,r,s){let{scale:u,addXmlNs:f=!1}=n??{},{additionalProps:m={},iconCustomizer:C}=n?.customizations??{},i=await r?.()??{};await C?.(o,t,i),Object.keys(m).forEach(l=>{let c=m[l];c!=null&&(i[l]=c)}),s?.(i);let[a,p]=st(e,i,u);f&&(!e.includes("xmlns=")&&!i.xmlns&&(i.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!i["xmlns:xlink"]&&(i["xmlns:xlink"]="http://www.w3.org/1999/xlink"));let h=Object.keys(i).map(l=>l==="width"&&a||l==="height"&&p?null:`${l}="${i[l]}"`).filter(l=>l!=null);if(h.length&&(e=e.replace(ee,`<svg ${h.join(" ")} `)),n){let{defaultStyle:l,defaultClass:c}=n;c&&!e.includes("class=")&&(e=e.replace(ee,`<svg class="${c}" `)),l&&!e.includes("style=")&&(e=e.replace(ee,`<svg style="${l}" `))}let w=n?.usedProps;return w&&(Object.keys(m).forEach(l=>{let c=i[l];c!=null&&(w[l]=c)}),typeof i.width<"u"&&i.width!==null&&(w.width=i.width),typeof i.height<"u"&&i.height!==null&&(w.height=i.height)),e}var nt,it,ee,te=I(()=>{"use strict";Q();nt=/\swidth\s*=\s*["'](\w+)["']/,it=/\sheight\s*=\s*["'](\w+)["']/,ee=/<svg\s+/});var je=E((io,Ee)=>{"use strict";var $=1e3,L=$*60,A=L*60,j=A*24,ct=j*7,at=j*365.25;Ee.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return lt(e);if(t==="number"&&isFinite(e))return o.long?ft(e):ut(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function lt(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*at;case"weeks":case"week":case"w":return t*ct;case"days":case"day":case"d":return t*j;case"hours":case"hour":case"hrs":case"hr":case"h":return t*A;case"minutes":case"minute":case"mins":case"min":case"m":return t*L;case"seconds":case"second":case"secs":case"sec":case"s":return t*$;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}function ut(e){var o=Math.abs(e);return o>=j?Math.round(e/j)+"d":o>=A?Math.round(e/A)+"h":o>=L?Math.round(e/L)+"m":o>=$?Math.round(e/$)+"s":e+"ms"}function ft(e){var o=Math.abs(e);return o>=j?G(e,o,j,"day"):o>=A?G(e,o,A,"hour"):o>=L?G(e,o,L,"minute"):o>=$?G(e,o,$,"second"):e+" ms"}function G(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}});var oe=E((so,ke)=>{"use strict";function pt(e){t.debug=t,t.default=t,t.coerce=m,t.disable=s,t.enable=r,t.enabled=u,t.humanize=je(),t.destroy=C,Object.keys(e).forEach(i=>{t[i]=e[i]}),t.names=[],t.skips=[],t.formatters={};function o(i){let a=0;for(let p=0;p<i.length;p++)a=(a<<5)-a+i.charCodeAt(p),a|=0;return t.colors[Math.abs(a)%t.colors.length]}t.selectColor=o;function t(i){let a,p=null,h,w;function l(...c){if(!l.enabled)return;let x=l,y=Number(new Date),b=y-(a||y);x.diff=b,x.prev=a,x.curr=y,a=y,c[0]=t.coerce(c[0]),typeof c[0]!="string"&&c.unshift("%O");let d=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,(k,T)=>{if(k==="%%")return"%";d++;let ae=t.formatters[T];if(typeof ae=="function"){let Be=c[d];k=ae.call(x,Be),c.splice(d,1),d--}return k}),t.formatArgs.call(x,c),(x.log||t.log).apply(x,c)}return l.namespace=i,l.useColors=t.useColors(),l.color=t.selectColor(i),l.extend=n,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==t.namespaces&&(h=t.namespaces,w=t.enabled(i)),w),set:c=>{p=c}}),typeof t.init=="function"&&t.init(l),l}function n(i,a){let p=t(this.namespace+(typeof a>"u"?":":a)+i);return p.log=this.log,p}function r(i){t.save(i),t.namespaces=i,t.names=[],t.skips=[];let a,p=(typeof i=="string"?i:"").split(/[\s,]+/),h=p.length;for(a=0;a<h;a++)p[a]&&(i=p[a].replace(/\*/g,".*?"),i[0]==="-"?t.skips.push(new RegExp("^"+i.slice(1)+"$")):t.names.push(new RegExp("^"+i+"$")))}function s(){let i=[...t.names.map(f),...t.skips.map(f).map(a=>"-"+a)].join(",");return t.enable(""),i}function u(i){if(i[i.length-1]==="*")return!0;let a,p;for(a=0,p=t.skips.length;a<p;a++)if(t.skips[a].test(i))return!1;for(a=0,p=t.names.length;a<p;a++)if(t.names[a].test(i))return!0;return!1}function f(i){return i.toString().substring(2,i.toString().length-2).replace(/\.\*\?$/,"*")}function m(i){return i instanceof Error?i.stack||i.message:i}function C(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}ke.exports=pt});var Te=E((v,U)=>{"use strict";v.formatArgs=dt;v.save=gt;v.load=ht;v.useColors=mt;v.storage=Ct();v.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();v.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function mt(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function dt(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+U.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}v.log=console.debug||console.log||(()=>{});function gt(e){try{e?v.storage.setItem("debug",e):v.storage.removeItem("debug")}catch{}}function ht(){let e;try{e=v.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Ct(){try{return localStorage}catch{}}U.exports=oe()(v);var{formatters:wt}=U.exports;wt.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var $e=E((co,Re)=>{"use strict";Re.exports=(e,o)=>{o=o||process.argv;let t=e.startsWith("-")?"":e.length===1?"-":"--",n=o.indexOf(t+e),r=o.indexOf("--");return n!==-1&&(r===-1?!0:n<r)}});var Ae=E((ao,Le)=>{"use strict";var xt=H("os"),O=$e(),{env:g}=process,S;O("no-color")||O("no-colors")||O("color=false")||O("color=never")?S=0:(O("color")||O("colors")||O("color=true")||O("color=always"))&&(S=1);"FORCE_COLOR"in g&&(g.FORCE_COLOR===!0||g.FORCE_COLOR==="true"?S=1:g.FORCE_COLOR===!1||g.FORCE_COLOR==="false"?S=0:S=g.FORCE_COLOR.length===0?1:Math.min(parseInt(g.FORCE_COLOR,10),3));function yt(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function bt(e){if(S===0)return 0;if(O("color=16m")||O("color=full")||O("color=truecolor"))return 3;if(O("color=256"))return 2;if(e&&!e.isTTY&&S===void 0)return 0;let o=S||0;if(g.TERM==="dumb")return o;if(process.platform==="win32"){let t=xt.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in g)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in g)||g.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if(g.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in g){let t=parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:o}function re(e){let o=bt(e);return yt(o)}Le.exports={supportsColor:re,stdout:re(process.stdout),stderr:re(process.stderr)}});var ze=E((F,B)=>{"use strict";var Ft=H("tty"),q=H("util");F.init=kt;F.log=St;F.formatArgs=vt;F.save=Et;F.load=jt;F.useColors=It;F.destroy=q.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");F.colors=[6,2,3,4,5,1];try{let e=Ae();e&&(e.stderr||e).level>=2&&(F.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}F.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,o)=>{let t=o.substring(6).toLowerCase().replace(/_([a-z])/g,(r,s)=>s.toUpperCase()),n=process.env[o];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[t]=n,e},{});function It(){return"colors"in F.inspectOpts?!!F.inspectOpts.colors:Ft.isatty(process.stderr.fd)}function vt(e){let{namespace:o,useColors:t}=this;if(t){let n=this.color,r="\x1B[3"+(n<8?n:"8;5;"+n),s=` ${r};1m${o} \x1B[0m`;e[0]=s+e[0].split(`
|
|
2
|
+
`).join(`
|
|
3
|
+
`+s),e.push(r+"m+"+B.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Ot()+o+" "+e[0]}function Ot(){return F.inspectOpts.hideDate?"":new Date().toISOString()+" "}function St(...e){return process.stderr.write(q.format(...e)+`
|
|
4
|
+
`)}function Et(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function jt(){return process.env.DEBUG}function kt(e){e.inspectOpts={};let o=Object.keys(F.inspectOpts);for(let t=0;t<o.length;t++)e.inspectOpts[o[t]]=F.inspectOpts[o[t]]}B.exports=oe()(F);var{formatters:Pe}=B.exports;Pe.o=function(e){return this.inspectOpts.colors=this.useColors,q.inspect(e,this.inspectOpts).split(`
|
|
5
|
+
`).map(o=>o.trim()).join(" ")};Pe.O=function(e){return this.inspectOpts.colors=this.useColors,q.inspect(e,this.inspectOpts)}});var z=E((lo,ne)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ne.exports=Te():ne.exports=ze()});async function ie(e,o,t,n){let r;Tt(`${o}:${t}`);try{if(typeof e=="function")r=await e(t);else{let s=e[t];r=typeof s=="function"?await s():s}}catch(s){console.warn(`Failed to load custom icon "${t}" in "${o}":`,s);return}if(r){let s=r.indexOf("<svg");s>0&&(r=r.slice(s));let{transform:u}=n?.customizations??{};return r=typeof u=="function"?await u(r,o,t):r,r.startsWith("<svg")?await V(n?.customizations?.trimCustomSvg===!0?Oe(r):r,o,t,n,void 0):(console.warn(`Custom icon "${t}" in "${o}" is not a valid SVG`),r)}}var _e,Tt,Me=I(()=>{"use strict";_e=M(z(),1);te();Se();Tt=(0,_e.default)("@iconify-loader:custom")});async function W(e,o,t,n){let r,{customize:s}=n?.customizations??{};for(let u of t)if(r=Ce(e,u),r){Rt(`${o}:${u}`);let f={...N};typeof s=="function"&&(f=s(f));let{attributes:{width:m,height:C,...i},body:a}=Fe(r,f),p=n?.scale;return await V(`<svg >${a}</svg>`,o,u,n,()=>({...i}),h=>{let w=(l,c)=>{let x=h[l],y;if(!P(x)){if(x)return;typeof p=="number"?p&&(y=`${p}em`):y=c}y?h[l]=y:delete h[l]};w("width",m),w("height",C)})}}var De,Rt,se=I(()=>{"use strict";Q();we();te();De=M(z(),1);Y();Rt=(0,De.default)("@iconify-loader:icon")});var bo,_,ce=I(()=>{"use strict";Me();se();bo=M(z(),1),_=async(e,o,t)=>{let n=t?.customCollections?.[e];if(n)if(typeof n=="function"){let r;try{r=await n(o)}catch(s){console.warn(`Failed to load custom icon "${o}" in "${e}":`,s);return}if(r){if(typeof r=="string")return await ie(()=>r,e,o,t);if("icons"in r){let s=[o,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o.replace(/([a-z])(\d+)/g,"$1-$2")];return await W(r,e,s,t)}}}else return await ie(n,e,o,t)}});function Ie(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ve(e){let o=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!o.includes(" xmlns:xlink=")&&o.includes(" xlink:")&&(o=o.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),o.includes(" xmlns=")||(o=o.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),Ie(o)}ce();var Io=M(z(),1);var Ne=new Set;function Ve(e){Ne.has(e)||(console.warn("[unocss]",e),Ne.add(e))}ce();se();var Ge=["academicons","akar-icons","ant-design","arcticons","basil","bi","bpmn","brandico","bx","bxl","bxs","bytesize","carbon","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codicon","covid","cryptocurrency-color","cryptocurrency","dashicons","devicon-line","devicon-original","devicon-plain","devicon","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fad","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","geo","gg","gis","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","jam","la","line-md","logos","ls","lucide","majesticons","maki","map","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","mi","mingcute","mono-icons","nimbus","nonicons","noto-v1","noto","octicon","oi","ooui","openmoji","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","pixelarticons","prime","ps","quill","radix-icons","raphael","ri","si-glyph","simple-icons","simple-line-icons","skill-icons","solar","streamline-emojis","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","vaadin","vs","vscode-icons","websymbol","whh","wi","wpf","zmdi","zondicons"];var Lt=3;function Ue(e){return(o={})=>{let{scale:t=1,mode:n="auto",prefix:r="i-",warn:s=!1,collections:u,extraProperties:f={},customizations:m={},autoInstall:C=!1,layer:i="icons",unit:a}=o,p={addXmlNs:!0,scale:t,customCollections:u,autoInstall:C,warn:void 0,customizations:{...m,additionalProps:{...f},trimCustomSvg:!0,async iconCustomizer(w,l,c){await m.iconCustomizer?.(w,l,c),a&&(c.width||(c.width=`${t}${a}`),c.height||(c.height=`${t}${a}`))}}},h;return{name:"@unocss/preset-icons",enforce:"pre",options:o,layers:{icons:-30},rules:[[/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,async([w,l,c=n])=>{let x="",y="",b;h=h||await e(o);let d={};if(l.includes(":"))[x,y]=l.split(":"),b=await h(x,y,{...p,usedProps:d});else{let k=l.split(/-/g);for(let T=Lt;T>=1&&(x=k.slice(0,T).join("-"),y=k.slice(T).join("-"),b=await h(x,y,{...p,usedProps:d}),!b);T--);}if(!b){s&&Ve(`failed to load icon "${w}"`);return}let K=`url("data:image/svg+xml;utf8,${ve(b)}")`;return c==="auto"&&(c=b.includes("currentColor")?"mask":"bg"),c==="mask"?{"--un-icon":K,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...d}:{background:`${K} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...d}},{layer:i,prefix:r}]]}}}function qe(e,o){let t=new Map;function n(r){if(Ge.includes(r))return t.has(r)||t.set(r,e(`${o}@iconify-json/${r}/icons.json`)),t.get(r)}return async(r,s,u)=>{let f=await _(r,s,u);if(f)return f;let m=await n(r);if(m){let C=[s,s.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s.replace(/([a-z])(\d+)/g,"$1-$2")];f=await W(m,r,C,u)}return f}}window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},(()=>{let e=Ue(async o=>{let t=o?.customFetch??(r=>fetch(r).then(s=>s.json())),n=o?.cdn;return n?qe(t,n):_});return{presetIcons:o=>e(o)}})());})();
|
|
@@ -0,0 +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|env|clamp|min|max)\(.*\)/;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(`
|
|
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]===`
|
|
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
|
+
`);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]===`
|
|
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)});})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var s=/(-?[\.\d]+)rem/g,i=(e={})=>{let{baseFontSize:r=16}=e;return{name:"@unocss/preset-rem-to-px",postprocess:m=>{m.entries.forEach(o=>{let t=o[1];typeof t=="string"&&s.test(t)&&(o[1]=t.replace(s,(u,p)=>`${p*r}px`))})}}},n=i;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetRemToPx:e=>n(e)});})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var a="__TAGIFY__",m=/<([\w\d-:]+)/g;function f(t){let{prefix:r="",excludedTags:i=["b",/^h\d+$/,"table"]}=t;return{name:"tagify",extract({code:n}){return Array.from(n.matchAll(m)).filter(({1:e})=>{for(let o of i)if(typeof o=="string"){if(e===o)return!1}else if(o.test(e))return!1;return e.startsWith(r)}).map(([,e])=>`${a}${e}`)}}}function p(t){let{extraProperties:r}=t,i=`${a}${t.prefix??""}`;return{name:"tagify",match(n){if(!n.startsWith(i))return;let e=n.slice(i.length),o={matcher:e,selector:s=>s.slice(a.length+1)};return r&&(typeof r=="function"?o.body=s=>[...s,...Object.entries(r(e)??{})]:o.body=s=>[...s,...Object.entries(r)]),o}}}var y=(t={})=>{let{defaultExtractor:r=!0}=t,i=[p(t)],n=[f(t)];return{name:"@unocss/preset-tagify",variants:i,extractors:n,extractorDefault:r?void 0:!1}},c=y;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetTagify:t=>c(t)});})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{function $(t){let a=t.length,i=-1,e,r="",l=t.charCodeAt(0);for(;++i<a;){if(e=t.charCodeAt(i),e===0){r+="\uFFFD";continue}if(e===37){r+="\\%";continue}if(e===44){r+="\\,";continue}if(e>=1&&e<=31||e===127||i===0&&e>=48&&e<=57||i===1&&e>=48&&e<=57&&l===45){r+=`\\${e.toString(16)} `;continue}if(i===0&&a===1&&e===45){r+=`\\${t.charAt(i)}`;continue}if(e>=128||e===45||e===95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122){r+=t.charAt(i);continue}r+=`\\${t.charAt(i)}`}return r}var h=$;function m(t){return t&&typeof t=="object"&&!Array.isArray(t)}function g(t,a,i=!1){let e=t,r=a;if(Array.isArray(r))return i&&Array.isArray(r)?[...e,...r]:[...r];let l={...e};return m(e)&&m(r)&&Object.keys(r).forEach(s=>{m(e[s])&&m(r[s])||Array.isArray(e[s])&&Array.isArray(r[s])?l[s]=g(e[s],r[s],i):Object.assign(l,{[s]:r[s]})}),l}var b=/^\[(.+?)(~?=)"(.*)"\]$/;function C(t){return b.test(t)?t.replace(b,(a,i,e,r)=>`[${h(i)}${e}"${h(r)}"]`):`.${h(t)}`}function y(t){return{"h1,h2,h3,h4,h5,h6":{color:"var(--un-prose-headings)","font-weight":"600","line-height":1.25},a:{color:"var(--un-prose-links)","text-decoration":"underline","font-weight":"500"},"a code":{color:"var(--un-prose-links)"},"p,ul,ol,pre":{margin:"1em 0","line-height":1.75},blockquote:{margin:"1em 0","padding-left":"1em","font-style":"italic","border-left":".25em solid var(--un-prose-borders)"},h1:{margin:"1rem 0","font-size":"2.25em"},h2:{margin:"1.75em 0 .5em","font-size":"1.75em"},h3:{margin:"1.5em 0 .5em","font-size":"1.375em"},h4:{margin:"1em 0","font-size":"1.125em"},"img,video":{"max-width":"100%"},"figure,picture":{margin:"1em 0"},figcaption:{color:"var(--un-prose-captions)","font-size":".875em"},code:{color:"var(--un-prose-code)","font-size":".875em","font-weight":600,"font-family":t.fontFamily?.mono},":not(pre) > code::before,:not(pre) > code::after":{content:'"`"'},pre:{padding:"1.25rem 1.5rem","overflow-x":"auto","border-radius":".375rem"},"pre,code":{"white-space":"pre","word-spacing":"normal","word-break":"normal","word-wrap":"normal","-moz-tab-size":4,"-o-tab-size":4,"tab-size":4,"-webkit-hyphens":"none","-moz-hyphens":"none",hyphens:"none",background:"transparent"},"pre code":{"font-weight":"inherit"},"ol,ul":{"padding-left":"1.25em"},ol:{"list-style-type":"decimal"},'ol[type="A"]':{"list-style-type":"upper-alpha"},'ol[type="a"]':{"list-style-type":"lower-alpha"},'ol[type="A" s]':{"list-style-type":"upper-alpha"},'ol[type="a" s]':{"list-style-type":"lower-alpha"},'ol[type="I"]':{"list-style-type":"upper-roman"},'ol[type="i"]':{"list-style-type":"lower-roman"},'ol[type="I" s]':{"list-style-type":"upper-roman"},'ol[type="i" s]':{"list-style-type":"lower-roman"},'ol[type="1"]':{"list-style-type":"decimal"},ul:{"list-style-type":"disc"},"ol > li::marker,ul > li::marker,summary::marker":{color:"var(--un-prose-lists)"},hr:{margin:"2em 0",border:"1px solid var(--un-prose-hr)"},table:{display:"block",margin:"1em 0","border-collapse":"collapse","overflow-x":"auto"},"tr:nth-child(2n)":{background:"var(--un-prose-bg-soft)"},"td,th":{border:"1px solid var(--un-prose-borders)",padding:".625em 1em"},abbr:{cursor:"help"},kbd:{color:"var(--un-prose-code)",border:"1px solid",padding:".25rem .5rem","font-size":".875em","border-radius":".25rem"},details:{margin:"1em 0",padding:"1.25rem 1.5rem",background:"var(--un-prose-bg-soft)"},summary:{cursor:"pointer","font-weight":"600"}}}function x(t){let a="",{escapedSelector:i,selectorName:e,preflights:r,compatibility:l}=t,s=l?.noColonNot||l?.noColonWhere;for(let p in r){let u=r[p],n=`:not(:where(.not-${e},.not-${e} *))`,o=p.split(",").map(c=>{let f=c.match(/::?(?:[\(\)\:\-\d\w]+)$/g);if(f){let d=f[0];return c=c.replace(d,""),i.map(S=>s?`${S} ${c}${d}`:`${S} :where(${c})${n}${d}`).join(",")}return null}).filter(c=>c);o.length?a+=o.join(","):a+=i.map(c=>s?p.split(",").map(f=>`${c} ${f}`).join(","):`${c} :where(${p})${n}`).join(","),a+="{";for(let c in u){let f=u[c];a+=`${c}:${f};`}a+="}"}return a}function T(t,a){let{escapedSelectors:i,selectorName:e,cssExtend:r,compatibility:l}=a,s=Array.from(i);return!s[s.length-1].startsWith(".")&&!l?.noColonIs&&(s=[`:is(${s[s.length-1]},.${e})`]),x(r?{escapedSelector:s,selectorName:e,preflights:g(y(t.theme),r),compatibility:l}:{escapedSelector:s,selectorName:e,preflights:y(t.theme),compatibility:l})}var v=t=>{t?.className&&console.warn('[unocss:preset-typography] "className" is deprecated. Use "selectorName" instead.');let a=new Set,i=t?.selectorName||t?.className||"prose",e=new RegExp(`^${i}$`),r=new RegExp(`^${i}-([-\\w]+)$`),l=new RegExp(`^${i}-invert$`),s=t?.compatibility;return{name:"@unocss/preset-typography",enforce:"post",layers:{typography:-20},rules:[[e,(p,{rawSelector:u})=>(a.add(C(u)),{color:"var(--un-prose-body)","max-width":"65ch"}),{layer:"typography"}],[r,([,p],{theme:u})=>{let n=u.colors?.[p];if(n==null)return;let o=typeof n=="object"?n:{};return{"--un-prose-body":o[700]??n,"--un-prose-headings":o[900]??n,"--un-prose-links":o[900]??n,"--un-prose-lists":o[400]??n,"--un-prose-hr":o[200]??n,"--un-prose-captions":o[500]??n,"--un-prose-code":o[900]??n,"--un-prose-borders":o[200]??n,"--un-prose-bg-soft":o[100]??n,"--un-prose-invert-body":o[200]??n,"--un-prose-invert-headings":o[100]??n,"--un-prose-invert-links":o[100]??n,"--un-prose-invert-lists":o[500]??n,"--un-prose-invert-hr":o[700]??n,"--un-prose-invert-captions":o[400]??n,"--un-prose-invert-code":o[100]??n,"--un-prose-invert-borders":o[700]??n,"--un-prose-invert-bg-soft":o[800]??n}},{layer:"typography"}],[l,()=>({"--un-prose-body":"var(--un-prose-invert-body)","--un-prose-headings":"var(--un-prose-invert-headings)","--un-prose-links":"var(--un-prose-invert-links)","--un-prose-lists":"var(--un-prose-invert-lists)","--un-prose-hr":"var(--un-prose-invert-hr)","--un-prose-captions":"var(--un-prose-invert-captions)","--un-prose-code":"var(--un-prose-invert-code)","--un-prose-borders":"var(--un-prose-invert-borders)","--un-prose-bg-soft":"var(--un-prose-invert-bg-soft)"}),{layer:"typography"}]],preflights:[{layer:"typography",getCSS:p=>{if(a.size>0){let u=typeof t?.cssExtend=="function"?t.cssExtend(p.theme):t?.cssExtend;return T(p,{escapedSelectors:a,selectorName:i,cssExtend:u,compatibility:s})}}}]}},w=v;window.__unocss_runtime=window.__unocss_runtime??{};window.__unocss_runtime.presets=Object.assign(window.__unocss_runtime?.presets??{},{presetTypography:t=>w(t)});})();
|