From 21f233e6b32b2b4fdf804be0c4396262c049e55d Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Wed, 15 May 2024 09:33:06 -0400 Subject: [PATCH] twind bundles added --- bundled/preact/signals.js | 3 +-- bundled/preact/ssr.mjs | 3 +-- bundled/twind/core.js | 4 ++-- bundled/twind/presets.js | 17 +++++++++++++++-- deno.jsonc | 3 ++- run-browser.tsx | 5 ++--- 6 files changed, 23 insertions(+), 12 deletions(-) diff --git a/bundled/preact/signals.js b/bundled/preact/signals.js index 0bff467..eab8d09 100644 --- a/bundled/preact/signals.js +++ b/bundled/preact/signals.js @@ -12,5 +12,4 @@ from"./compat.js"; var M=Symbol.for("preact-signals");function b(){if(v>1)v--;else{for(var t,i=!1;p!==void 0;){var n=p;for(p=void 0,$++;n!==void 0;){var r=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&O(n))try{n.c()}catch(e){i||(t=e,i=!0)}n=r}}if($=0,v--,i)throw t}}function R(t){if(v>0)return t();v++;try{return t()}finally{b()}}var o=void 0;function T(t){var i=o;o=void 0;try{return t()}finally{o=i}}var p=void 0,v=0,$=0,S=0;function N(t){if(o!==void 0){var i=t.n;if(i===void 0||i.t!==o)return i={i:0,S:t,p:o.s,n:void 0,t:o,e:void 0,x:void 0,r:i},o.s!==void 0&&(o.s.n=i),o.s=i,t.n=i,32&o.f&&t.S(i),i;if(i.i===-1)return i.i=0,i.n!==void 0&&(i.n.p=i.p,i.p!==void 0&&(i.p.n=i.n),i.p=o.s,i.n=void 0,o.s.n=i,o.s=i),i}}function u(t){this.v=t,this.i=0,this.n=void 0,this.t=void 0}u.prototype.brand=M;u.prototype.h=function(){return!0};u.prototype.S=function(t){this.t!==t&&t.e===void 0&&(t.x=this.t,this.t!==void 0&&(this.t.e=t),this.t=t)};u.prototype.U=function(t){if(this.t!==void 0){var i=t.e,n=t.x;i!==void 0&&(i.x=n,t.e=void 0),n!==void 0&&(n.e=i,t.x=void 0),t===this.t&&(this.t=n)}};u.prototype.subscribe=function(t){var i=this;return c(function(){var n=i.value,r=o;o=void 0;try{t(n)}finally{o=r}})};u.prototype.valueOf=function(){return this.value};u.prototype.toString=function(){return this.value+""};u.prototype.toJSON=function(){return this.value};u.prototype.peek=function(){var t=o;o=void 0;try{return this.value}finally{o=t}};Object.defineProperty(u.prototype,"value",{get:function(){var t=N(this);return t!==void 0&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if($>100)throw new Error("Cycle detected");this.v=t,this.i++,S++,v++;try{for(var i=this.t;i!==void 0;i=i.x)i.t.N()}finally{b()}}}});function g(t){return new u(t)}function O(t){for(var i=t.s;i!==void 0;i=i.n)if(i.S.i!==i.i||!i.S.h()||i.S.i!==i.i)return!0;return!1}function j(t){for(var i=t.s;i!==void 0;i=i.n){var n=i.S.n;if(n!==void 0&&(i.r=n),i.S.n=i,i.i=-1,i.n===void 0){t.s=i;break}}}function P(t){for(var i=t.s,n=void 0;i!==void 0;){var r=i.p;i.i===-1?(i.S.U(i),r!==void 0&&(r.n=i.n),i.n!==void 0&&(i.n.p=r)):n=i,i.S.n=i.r,i.r!==void 0&&(i.r=void 0),i=r}t.s=n}function h(t){u.call(this,void 0),this.x=t,this.s=void 0,this.g=S-1,this.f=4}(h.prototype=new u).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===S))return!0;if(this.g=S,this.f|=1,this.i>0&&!O(this))return this.f&=-2,!0;var t=o;try{j(this),o=this;var i=this.x();(16&this.f||this.v!==i||this.i===0)&&(this.v=i,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return o=t,P(this),this.f&=-2,!0};h.prototype.S=function(t){if(this.t===void 0){this.f|=36;for(var i=this.s;i!==void 0;i=i.n)i.S.S(i)}u.prototype.S.call(this,t)};h.prototype.U=function(t){if(this.t!==void 0&&(u.prototype.U.call(this,t),this.t===void 0)){this.f&=-33;for(var i=this.s;i!==void 0;i=i.n)i.S.U(i)}};h.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;t!==void 0;t=t.x)t.t.N()}};Object.defineProperty(h.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=N(this);if(this.h(),t!==void 0&&(t.i=this.i),16&this.f)throw this.v;return this.v}});function w(t){return new h(t)}function A(t){var i=t.u;if(t.u=void 0,typeof i=="function"){v++;var n=o;o=void 0;try{i()}catch(r){throw t.f&=-2,t.f|=8,U(t),r}finally{o=n,b()}}}function U(t){for(var i=t.s;i!==void 0;i=i.n)i.S.U(i);t.x=void 0,t.s=void 0,A(t)}function q(t){if(o!==this)throw new Error("Out-of-order effect");P(this),o=t,this.f&=-2,8&this.f&&U(this),b()}function l(t){this.x=t,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}l.prototype.c=function(){var t=this.S();try{if(8&this.f||this.x===void 0)return;var i=this.x();typeof i=="function"&&(this.u=i)}finally{t()}};l.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,A(this),j(this),v++;var t=o;return o=this,q.bind(this,t)};l.prototype.N=function(){2&this.f||(this.f|=2,this.o=p,p=this)};l.prototype.d=function(){this.f|=8,1&this.f||U(this)};function c(t){var i=new l(t);try{i.c()}catch(n){throw i.d(),n}return i.d.bind(i)}var x,E;function d(t,i){V[t]=i.bind(null,V[t]||function(){})}function m(t){E&&E(),E=t&&t.S()}function J(t){var i=this,n=t.data,r=H(n);r.value=n;var e=k(function(){for(var f=i.__v;f=f.__;)if(f.__c){f.__c.__$f|=4;break}return i.__$u.c=function(){var s;!B(e.peek())&&((s=i.base)==null?void 0:s.nodeType)===3?i.base.data=e.peek():(i.__$f|=1,i.setState({}))},w(function(){var s=r.value.value;return s===0?0:s===!0?"":s||""})},[]);return e.value}J.displayName="_st";Object.defineProperties(u.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:J},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});d("__b",function(t,i){if(typeof i.type=="string"){var n,r=i.props;for(var e in r)if(e!=="children"){var f=r[e];f instanceof u&&(n||(i.__np=n={}),n[e]=f,r[e]=f.peek())}}t(i)});d("__r",function(t,i){m();var n,r=i.__c;r&&(r.__$f&=-2,(n=r.__$u)===void 0&&(r.__$u=n=function(e){var f;return c(function(){f=this}),f.c=function(){r.__$f|=1,r.setState({})},f}())),x=r,m(n),t(i)});d("__e",function(t,i,n,r){m(),x=void 0,t(i,n,r)});d("diffed",function(t,i){m(),x=void 0;var n;if(typeof i.type=="string"&&(n=i.__e)){var r=i.__np,e=i.props;if(r){var f=n.U;if(f)for(var s in f){var a=f[s];a!==void 0&&!(s in r)&&(a.d(),f[s]=void 0)}else n.U=f={};for(var _ in r){var y=f[_],C=r[_];y===void 0?(y=F(n,_,C,e),f[_]=y):y.o(C,e)}}}t(i)});function F(t,i,n,r){var e=i in t&&t.ownerSVGElement===void 0,f=g(n);return{o:function(s,a){f.value=s,r=a},d:c(function(){var s=f.value.value;r[i]!==s&&(r[i]=s,e?t[i]=s:s?t.setAttribute(i,s):t.removeAttribute(i))})}}d("unmount",function(t,i){if(typeof i.type=="string"){var n=i.__e;if(n){var r=n.U;if(r){n.U=void 0;for(var e in r){var f=r[e];f&&f.d()}}}}else{var s=i.__c;if(s){var a=s.__$u;a&&(s.__$u=void 0,a.d())}}t(i)});d("__h",function(t,i,n,r){(r<3||r===9)&&(i.__$f|=2),t(i,n,r)});z.prototype.shouldComponentUpdate=function(t,i){var n=this.__$u;if(!(n&&n.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var r in i)return!0;for(var e in t)if(e!=="__source"&&t[e]!==this.props[e])return!0;for(var f in this.props)if(!(f in t))return!0;return!1};function H(t){return k(function(){return g(t)},[])}function W(t){var i=G(t);return i.current=t,x.__$f|=4,k(function(){return w(function(){return i.current()})},[])}function X(t){var i=G(t);i.current=t,D(function(){return c(function(){return i.current()})},[])} export -{u as Signal,R as batch,w as computed,c as effect,g as signal,T as untracked,W as useComputed,H as useSignal,X as useSignalEffect}; -//# sourceMappingURL=signals.bundle.mjs.map \ No newline at end of file +{u as Signal,R as batch,w as computed,c as effect,g as signal,T as untracked,W as useComputed,H as useSignal,X as useSignalEffect}; \ No newline at end of file diff --git a/bundled/preact/ssr.mjs b/bundled/preact/ssr.mjs index 498dc17..f4eeaea 100644 --- a/bundled/preact/ssr.mjs +++ b/bundled/preact/ssr.mjs @@ -6,5 +6,4 @@ from"./compat.js"; var J=/[\s\n\\/='"\0<>]/,M=/^(xlink|xmlns|xml)([A-Z])/,oe=/^accessK|^auto[A-Z]|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|readO|rowS|spellC|src[A-Z]|tabI|item[A-Z]/,ae=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,ie=/["&<]/;function H(e){if(e.length===0||ie.test(e)===!1)return e;for(var n=0,t=0,r="",a="";t";s=h.children}else{if((S=f.contextType)!=null){var G=n[S.__c];j=G?G.props.value:S.__}if(f.prototype&&typeof f.prototype.render=="function")s=K(e,j),d=e.__c;else{e.__c=d={__v:e,props:h,context:j,setState:Y,forceUpdate:Y,__d:!0,__h:[]};for(var ee=0;d.__d&&ee++<25;)d.__d=!1,P&&P(e),s=f.call(d,h,j);d.__d=!0}if(d.getChildContext!=null&&(n=R({},n,d.getChildContext())),(f.getDerivedStateFromError||d.componentDidCatch)&&u.errorBoundaries){var z="";s=s!=null&&s.type===E&&s.key==null?s.props.children:s;try{return z=k(s,n,t,r,e,o)}catch(w){return f.getDerivedStateFromError&&(d.__s=f.getDerivedStateFromError(w)),d.componentDidCatch&&d.componentDidCatch(w,{}),d.__d&&(s=K(e,n),(d=e.__c).getChildContext!=null&&(n=R({},n,d.getChildContext())),z=k(s=s!=null&&s.type===E&&s.key==null?s.props.children:s,n,t,r,e,o)),z}finally{A&&A(e),e.__=null,C&&C(e)}}}s=s!=null&&s.type===E&&s.key==null&&s.props.tpl==null?s.props.children:s;try{var te=k(s,n,t,r,e,o);return A&&A(e),e.__=null,C&&C(e),te}catch(w){if(!o||!w||typeof w.then!="function")throw w;var ne=function re(){try{return k(s,n,t,r,e,o)}catch(Z){if(!Z||typeof Z.then!="function")throw Z;return Z.then(function(){return k(s,n,t,r,e,o)},function(){return re()})}};return w.then(function(){return ne()})}}var x,L="<"+f,b="";for(var c in h){var p=h[c];switch(c){case"children":x=p;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in h)continue;c="for";break;case"className":if("class"in h)continue;c="class";break;case"defaultChecked":c="checked";break;case"defaultSelected":c="selected";break;case"defaultValue":case"value":switch(c="value",f){case"textarea":x=p;continue;case"select":r=p;continue;case"option":r!=p||"selected"in h||(L+=" selected")}break;case"dangerouslySetInnerHTML":b=p&&p.__html;continue;case"style":typeof p=="object"&&(p=le(p));break;case"acceptCharset":c="accept-charset";break;case"httpEquiv":c="http-equiv";break;default:if(M.test(c))c=c.replace(M,"$1:$2").toLowerCase();else{if(J.test(c))continue;c[4]!=="-"&&c!=="draggable"||p==null?t?ae.test(c)&&(c=c==="panose1"?"panose-1":c.replace(/([A-Z])/g,"-$1").toLowerCase()):oe.test(c)&&(c=c.toLowerCase()):p+=""}}p!=null&&p!==!1&&typeof p!="function"&&(L=p===!0||p===""?L+" "+c:L+" "+c+'="'+H(p+"")+'"')}if(J.test(f))throw new Error(f+" is not a valid HTML tag name in "+L+">");if(b||(typeof x=="string"?b=H(x):x!=null&&x!==!1&&x!==!0&&(b=k(x,n,f==="svg"||f!=="foreignObject"&&t,r,e,o))),A&&A(e),e.__=null,C&&C(e),!b&&pe.has(f))return L+"/>";var B="",I=L+">";return Array.isArray(b)?[I].concat(b,[B]):typeof b!="string"?[I,b,B]:I+b+B}var pe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),_e=$,ve=$,me=$; -export{me as default,_e as render,ve as renderToStaticMarkup,$ as renderToString,de as renderToStringAsync}; -//# sourceMappingURL=preact-render-to-string.mjs.map \ No newline at end of file +export{me as default,_e as render,ve as renderToStaticMarkup,$ as renderToString,de as renderToStringAsync}; \ No newline at end of file diff --git a/bundled/twind/core.js b/bundled/twind/core.js index 415babc..8e323ba 100644 --- a/bundled/twind/core.js +++ b/bundled/twind/core.js @@ -1,4 +1,4 @@ /// + /* esm.sh - esbuild bundle(@twind/core@1.1.3) denonext production */ -var B;function ae(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function ue(e,t=","){return e.map(ae).join(t)}var Y=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function T(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Ce(e,t="@media "){return t+b(e).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function b(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function te(e){return e}function F(){}var S={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Ee(e){return e.match(/[-=:;]/g)?.length||0}function re(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Ee(e),15)<<18}var Ue=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function ce({n:e,i:t,v:r=[]},i,n,l){e&&(e=ae({n:e,i:t,v:r})),l=[...b(l)];for(let s of r){let f=i.theme("screens",s);for(let a of b(f&&Ce(f)||i.v(s))){var o;l.push(a),n|=f?67108864|re(a):s=="dark"?1073741824:a[0]=="@"?re(a):(o=a,1<<~(/:([a-z-]+)/.test(o)&&~Ue.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:n,r:l,i:t}}var pe=new Map;function ne(e){if(e.d){let t=[],r=H(e.r.reduce((i,n)=>n[0]=="@"?(t.push(n),i):n?H(i,l=>H(n,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let f=l.indexOf(s[1]);return~f?l.slice(0,f)+s[0]+l.slice(f+s[1].length):Q(l,o)}return Q(o,l)})):i,"&"),i=>Q(i,e.n?"."+Y(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((i,n)=>n+"{"+i+"}",e.d)}}function H(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>t(i)+n)}function Q(e,t){return e.replace(/&/g,t)}var $e=new Intl.Collator("en",{numeric:!0});function Me(e,t){for(var r=0,i=e.length;r>1;0>=Ne(e[n],t)?r=n+1:i=n}return i}function Ne(e,t){let r=e.p&S.o;return r==(t.p&S.o)&&(r==S.b||r==S.o)?0:e.p-t.p||e.o-t.o||$e.compare(we(e.n),we(t.n))||$e.compare(Ae(e.n),Ae(t.n))}function we(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Ae(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function X(e,t){return Math.round(parseInt(e,16)*t)}function P(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:r="1",opacityVariable:i}=t,n=i?`var(${i})`:r;if(e.includes(""))return e.replace("",n);if(e[0]=="#"&&(e.length==4||e.length==7)){let l=(e.length-1)/3,o=[17,1,.062272][l-1];return`rgba(${[X(e.substr(1,l),o),X(e.substr(1+l,l),o),X(e.substr(1+2*l,l),o),n]})`}return n=="1"?e:n=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function ct(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,i=>100*(9-~~(parseInt(i,10)/100)||.5)))}function de(e,t,r,i,n=[]){return function l(o,{n:s,p:f,r:a=[],i:c},u){let p=[],g="",y=0,$=0;for(let h in o||{}){var A,R;let d=o[h];if(h[0]=="@"){if(!d)continue;if(h[1]=="a"){p.push(...ge(s,f,I(""+d),u,f,a,c,!0));continue}if(h[1]=="l"){for(let w of b(d))p.push(...l(w,{n:s,p:(A=S[h[7]],f&~S.o|A),r:h[7]=="d"?[]:a,i:c},u));continue}if(h[1]=="i"){p.push(...b(d).map(w=>({p:-1,o:0,r:[],d:h+" "+w})));continue}if(h[1]=="k"){p.push({p:S.d,o:0,r:[h],d:l(d,{p:S.d},u).map(ne).join("")});continue}if(h[1]=="f"){p.push(...b(d).map(w=>({p:S.d,o:0,r:[h],d:l(w,{p:S.d},u).map(ne).join("")})));continue}}if(typeof d!="object"||Array.isArray(d))h=="label"&&d?s=d+T(JSON.stringify([f,c,o])):(d||d===0)&&(h=h.replace(/[A-Z]/g,w=>"-"+w.toLowerCase()),$+=1,y=Math.max(y,(R=h)[0]=="-"?0:Ee(R)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(R)?+!!RegExp.$1||-!!RegExp.$2:0)+1),g+=(g?";":"")+b(d).map(w=>u.s(h,he(""+w,u.theme)+(c?" !important":""))).join(";"));else if(h[0]=="@"||h.includes("&")){let w=f;h[0]=="@"&&(h=h.replace(/\bscreen\(([^)]+)\)/g,(x,M)=>{let N=u.theme("screens",M);return N?(w|=67108864,Ce(N,"")):x}),w|=re(h)),p.push(...l(d,{n:s,p:w,r:[...a,h],i:c},u))}else p.push(...l(d,{p:f,r:[...a,h]},u))}return p.unshift({n:s,p:f,o:Math.max(0,15-$)+1.5*Math.min(y||15,15),r:a,d:g}),p.sort(Ne)}(e,ce(t,r,i,n),r)}function he(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,l,o="")=>{let s=t(n,o);return typeof s=="function"&&/color|fill|stroke/i.test(n)?P(s):""+b(s).filter(f=>Object(f)!==f)})}function ye(e,t){let r,i=[];for(let n of e)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&t}):i.push({...n,n:n.n&&t});return i}function W(e,t,r=S.u,i,n){let l=[];for(let o of e)for(let s of function(f,a,c,u,p){f={...f,i:f.i||p};let g=function(y,$){let A=pe.get(y.n);return A?A(y,$):$.r(y.n,y.v[0]=="dark")}(f,a);return g?typeof g=="string"?({r:u,p:c}=ce(f,a,c,u),ye(W(I(g),a,c,u,f.i),f.n)):Array.isArray(g)?g.map(y=>{var $,A;return{o:0,...y,r:[...b(u),...b(y.r)],p:($=c,A=y.p??c,$&~S.o|A)}}):de(g,f,a,c,u):[{c:ae(f),p:0,o:0,r:[]}]}(o,t,r,i,n))l.splice(Me(l,s),0,s);return l}function ge(e,t,r,i,n,l,o,s){return ye((s?r.flatMap(f=>W([f],i,n,l,o)):W(r,i,n,l,o)).map(f=>f.p&S.o&&(f.n||t==S.b)?{...f,p:f.p&~S.o|t,o:0}:f),e)}function _e(e,t,r,i){var n;return n=(l,o)=>{let{n:s,p:f,r:a,i:c}=ce(l,o,t);return r&&ge(s,t,r,o,f,a,c,i)},pe.set(e,n),e}function K(e,t,r){if(e[e.length-1]!="("){let i=[],n=!1,l=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),n=!n),s.endsWith(":")){i[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),l=!l),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(l&&(o="-"+o),t[0].push({n:o,v:i.filter(Be),i:n}))}}function Be(e,t,r){return r.indexOf(e)==t}var Se=new Map;function I(e){let t=Se.get(e);if(!t){let r=[],i=[[]],n=0,l=0,o=null,s=0,f=(a,c=0)=>{n!=s&&(r.push(e.slice(n,s+c)),a&&K(r,i)),n=s+1};for(;s1?u.slice(0,-1)+T(JSON.stringify([u,p])):u+"("+ue(p)+")",S.a,p,/@$/.test(u))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(a)&&e[s+1]=="("&&i.unshift([])}f(!0),Se.set(e,t=i[0])}return t}function Ve(e,t,r){return t.reduce((i,n,l)=>i+r(n)+e[l+1],e[0])}function Z(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ve(e,t,r=>ee(r).trim()):t.filter(Boolean).reduce((r,i)=>r+ee(i),e?ee(e):"")}function ee(e){let t,r="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Z(e[0],e.slice(1)))&&(r+=" "+t);else for(let i in e)e[i]&&(r+=" "+i);else e!=null&&typeof e!="boolean"&&(r+=" "+e);return r}var pt=ze("@"),dt=ze("~");function ze(e){return new Proxy(function(i,...n){return t("",i,n)},{get(r,i){return i in r?r[i]:function(l,...o){return t(i,l,o)}}});function t(r,i,n){return ue(I(r+e+"("+Z(i,n)+")"))}}function G(e,t){return Array.isArray(e)?ve(Ve(e,t,r=>r!=null&&typeof r!="boolean"?r:"")):typeof e=="string"?ve(e):[e]}var We=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ve(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],i=[r[0]],n=[];for(;t=We.exec(e);)t[4]&&(r.shift(),n.shift()),t[3]?(n.unshift(t[3]),r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))),r[0][t[1]]=t[2]);return i}function me(e,...t){var r;let i=G(e,t),n=(i.find(l=>l.label)?.label||"css")+T(JSON.stringify(i));return r=(l,o)=>ye(i.flatMap(s=>de(s,l,o,S.o)),n),pe.set(n,r),n}var ht=new Proxy(function(e,t){return Re("animation",e,t)},{get(e,t){return t in e?e[t]:function(i,n){return Re(t,i,n)}}});function Re(e,t,r){return{toString(){return me({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+r}})}}}function yt(e,t,r){return[e,ie(t,r)]}function ie(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(r,i)=>({[e]:t?t(r,i):le(r,1)}):r=>e||{[r[1]]:le(r,2)}}function le(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${r} * -1)`:r}function gt(e,t,r,i){return[e,Ge(t,r,i)]}function Ge(e,t,r){let i=typeof t=="string"?(n,l)=>({[t]:r?r(n,l):n._}):t||(({1:n,_:l},o,s)=>({[n||s]:l}));return(n,l)=>{let o=ke(e||n[1]),s=l.theme(o,n.$$)??oe(n.$$,o,l);if(s!=null)return n._=le(n,0,s),i(n,l,o)}}function mt(e,t={},r){return[e,Ye(t,r)]}function Ye(e={},t){return(r,i)=>{let{section:n=ke(r[0]).replace("-","")+"Color"}=e,[l,o]=Ze(r.$$);if(!l)return;let s=i.theme(n,l)||oe(l,n,i);if(!s||typeof s=="object")return;let{opacityVariable:f=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=n.replace("Color","Opacity"),property:c=n,selector:u}=e,p=i.theme(a,o||"DEFAULT")||o&&oe(o,a,i),g=t||(({_:$})=>{let A=He(c,$);return u?{[u]:A}:A});r._={value:P(s,{opacityVariable:f||void 0,opacityValue:p||void 0}),color:$=>P(s,$),opacityVariable:f||void 0,opacityValue:p||void 0};let y=g(r,i);if(!r.dark){let $=i.d(n,l,s);$&&$!==s&&(r._={value:P($,{opacityVariable:f||void 0,opacityValue:p||"1"}),color:A=>P($,A),opacityVariable:f||void 0,opacityValue:p||void 0},y={"&":y,[i.v("dark")]:g(r,i)})}return y}}function Ze(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function He(e,t){let r={};return typeof t=="string"?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function oe(e,t,r){if(e[0]=="["&&e.slice(-1)=="]"){if(e=se(he(e.slice(1,-1),r.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function ke(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function se(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,r="",i,n="")=>se(r)+i+se(n)):e.replace(/(^|[^\\])_+/g,(t,r)=>r+" ".repeat(t.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Qe=Symbol();function bt(e,t){return e}function $t(e){return e[Qe]}function wt(e,...t){return ue(I(Z(e,t))," ")}function Te({presets:e=[],...t}){let r={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:b(t.variants),rules:b(t.rules),ignorelist:b(t.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of b([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&b(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:n,darkMode:l=r.darkMode,darkColor:o=r.darkColor,theme:s,variants:f,rules:a,ignorelist:c,hash:u=r.hash,stringify:p=r.stringify,finalize:g}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...b(n)],darkMode:l,darkColor:o,theme:{...r.theme,...s,extend:{...r.theme.extend,...s?.extend}},variants:[...r.variants,...b(f)],rules:[...r.rules,...b(a)],ignorelist:[...r.ignorelist,...b(c)],hash:u,stringify:p,finalize:[...r.finalize,...b(g)]}}return r}function xe(e,t,r,i,n,l){for(let o of t){let s=r.get(o);s||r.set(o,s=i(o));let f=s(e,n,l);if(f)return f}}function Xe(e){var t;return fe(e[0],typeof(t=e[1])=="function"?t:()=>t)}function Ke(e){var t,r;return Array.isArray(e)?fe(e[0],ie(e[1],e[2])):fe(e,ie(t,r))}function fe(e,t){return Ie(e,(r,i,n,l)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=l,t(o,n)})}function Ie(e,t){let r=b(e).map(et);return(i,n,l)=>{for(let o of r){let s=t(i,o,n,l);if(s)return s}}}function et(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function tt(e,t){let r=Te(e),i=function({theme:f,darkMode:a,darkColor:c=F,variants:u,rules:p,hash:g,stringify:y,ignorelist:$,finalize:A}){let R=new Map,h=new Map,d=new Map,w=new Map,x=Ie($,(m,j)=>j.test(m));u.push(["dark",Array.isArray(a)||a=="class"?`${b(a)[1]||".dark"} &`:typeof a=="string"&&a!="media"?a:"@media (prefers-color-scheme:dark)"]);let M=typeof g=="function"?m=>g(m,T):g?T:te;M!==te&&A.push(m=>({...m,n:m.n&&M(m.n),d:m.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(j,C)=>"--"+M(C).replace("#",""))}));let N={theme:function({extend:m={},...j}){let C={},qe={get colors(){return L("colors")},theme:L,negative(){return{}},breakpoints(v){let E={};for(let O in v)typeof v[O]=="string"&&(E["screen-"+O]=v[O]);return E}};return L;function L(v,E,O,q){if(v){if({1:v,2:q}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(v)||[,v],/[.[]/.test(v)){let V=[];v.replace(/\[([^\]]+)\]|([^.[]+)/g,(k,U,Je=U)=>V.push(Je)),v=V.shift(),O=E,E=V.join("-")}let _=C[v]||Object.assign(Object.assign(C[v]={},be(j,v)),be(m,v));if(E==null)return _;E||="DEFAULT";let z=_[E]??E.split("-").reduce((V,k)=>V?.[k],_)??O;return q?P(z,{opacityValue:he(q,L)}):z}let J={};for(let _ of[...Object.keys(j),...Object.keys(m)])J[_]=L(_);return J}function be(v,E){let O=v[E];return typeof O=="function"&&(O=O(qe)),O&&/color|fill|stroke/i.test(E)?function q(J,_=[]){let z={};for(let V in J){let k=J[V],U=[..._,V];z[U.join("-")]=k,V=="DEFAULT"&&(U=_,z[_.join("-")]=k),typeof k=="object"&&Object.assign(z,q(k,U))}return z}(O):O}}(f),e:Y,h:M,s(m,j){return y(m,j,N)},d(m,j,C){return c(m,j,N,C)},v(m){return R.has(m)||R.set(m,xe(m,u,h,Xe,N)||"&:"+m),R.get(m)},r(m,j){let C=JSON.stringify([m,j]);return d.has(C)||d.set(C,!x(m,N)&&xe(m,p,w,Ke,N,j)),d.get(C)},f(m){return A.reduce((j,C)=>C(j,N),m)}};return N}(r),n=new Map,l=[],o=new Set;t.resume(f=>n.set(f,f),(f,a)=>{t.insert(f,l.length,a),l.push(a),o.add(f)});function s(f){let a=i.f(f),c=ne(a);if(c&&!o.has(c)){o.add(c);let u=Me(l,f);t.insert(c,u,f),l.splice(u,0,f)}return a.n}return Object.defineProperties(function(a){if(!n.size)for(let u of b(r.preflight))typeof u=="function"&&(u=u(i)),u&&(typeof u=="string"?ge("",S.b,I(u),i,S.b,[],!1,!0):de(u,{},i,S.b)).forEach(s);a=""+a;let c=n.get(a);if(!c){let u=new Set;for(let p of W(I(a),i))u.add(p.c).add(s(p));c=[...u].filter(Boolean).join(" "),n.set(a,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:i.theme,config:r,snapshot(){let f=t.snapshot(),a=new Set(o),c=new Map(n),u=[...l];return()=>{f(),o=a,n=c,l=u}},clear(){t.clear(),o=new Set,n=new Map,l=[]},destroy(){this.clear(),t.destroy()}}))}function De(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function rt(e){let t=new MutationObserver(r);return{observe(n){t.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){t.disconnect()}};function r(n){for(let{type:l,target:o}of n)if(l[0]=="a")i(o);else for(let s of o.querySelectorAll("[class]"))i(s);t.takeRecords()}function i(n){let l,o=n.getAttribute?.("class");o&&De(o,l=e(o))&&n.setAttribute("class",l)}}function nt(e=D,t=typeof document<"u"&&document.documentElement){if(t){let r=rt(e);r.observe(t);let{destroy:i}=e;e.destroy=()=>{r.disconnect(),i.call(e)}}return e}function Pe(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function it(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Pe(e)).sheet;return{target:t,snapshot(){let r=Array.from(t.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=t.cssRules.length;r--;)t.deleteRule(r)},destroy(){t.ownerNode?.remove()},insert(r,i){try{t.insertRule(r,i)}catch{t.insertRule(":root{}",i)}},resume:F}}function lt(e){let t=e&&typeof e!="string"?e:Pe(e);return{target:t,snapshot(){let r=Array.from(t.childNodes,i=>i.textContent);return()=>{this.clear(),r.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(r,i){t.insertBefore(document.createTextNode(r),t.childNodes[i]||null)},resume:F}}function ot(e){let t=[];return{target:t,snapshot(){let r=[...t];return()=>{t.splice(0,t.length,...r)}},clear(){t.length=0},destroy(){this.clear()},insert(r,i,n){t.splice(i,0,e?`/*!${n.p.toString(36)},${(2*n.o).toString(36)}${n.n?","+n.n:""}*/${r}`:r)},resume:F}}function Fe(e,t){let r=typeof document>"u"?ot(!t):e?lt():it();return t||(r.resume=st),r}function Le(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):b(e)).join("")}function st(e,t){let r=Le(this.target),i=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(i.test(r)){var n;let l;if(i.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;n=i.exec(r),l&&t(r.slice(l.index+l[0].length,n?.index),{p:parseInt(l[1],36),o:parseInt(l[2],36)/2,n:l[3]}),l=n;);}}function At(e){if(typeof document<"u"&&document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(i=>{for(let{target:n}of i)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return F}var D=new Proxy(F,{apply(e,t,r){return B(r[0])},get(e,t){let r=B[t];return typeof r=="function"?function(){return r.apply(B,arguments)}:r}});function ft(e={},t=Fe,r){return B?.destroy(),B=nt(tt(e,typeof t=="function"?t():t),r)}var St=function(e,...t){(typeof this=="function"?this:D)(me({"@layer base":G(e,t)}))};function vt(e,t=!0){let r=Te(e);return ft({...r,hash:r.hash??t},()=>Fe(!t))}var Rt=function e(t){return new Proxy(function(i,...n){return je(t,"",i,n)},{get(r,i){return i==="bind"?e:i in r?r[i]:function(l,...o){return je(t,i,l,o)}}})}();function je(e,t,r,i){return{toString(){let n=G(r,i),l=Y(t+T(JSON.stringify([t,n])));return(typeof e=="function"?e:D)(me({[`@keyframes ${l}`]:G(r,i)})),l}}}function xt(e,t={}){let{tw:r=D,minify:i=te}=typeof t=="function"?{tw:t}:t,{html:n,css:l}=at(e,r);return n.replace("",``)}function at(e,t=D){let r=t.snapshot(),i={html:ut(e,t),css:Le(t.target)};return r(),i}function ut(e,t=D){let r="",i=0;return function(n,l){let o=1,s=0,f="",a="",c=u=>{o==5&&a=="class"&&l(s,u,f)===!1&&(n="")};for(let u=0;u"&&n.slice(u-2,u)=="--"&&(o=1):f?p==f&&n[u-1]!="\\"&&(c(u),o=2,f=""):p=='"'||p=="'"?(f=p,s+=1):p==">"?(c(u),o=1):o&&(p=="="?(a=n.slice(s,u),o=5,s=u+1):p=="/"&&(o<5||n[u+1]==">")?(c(u),o=0):/\s/.test(p)&&(c(u),o=2,s=u+1))}}(e,(n,l,o)=>{var s;let f=e.slice(n,l),a=t(((s=o)=='"'?f.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):s=="'"?f.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):f).replace(/(&|&|&)/g,"&"));De(f,a)&&(o=o?"":'"',r+=e.slice(i,n)+o+a+o,i=l)}),r+e.slice(i,e.length)}var jt=(e,t)=>typeof e=="function"?Oe(t,e):Oe(e);function Oe(e={},t){let{label:r="style",base:i,props:n={},defaults:l,when:o=[]}=e,s={...t?.defaults,...l},f=T(JSON.stringify([r,t?.className,i,n,s,o])),a=c("",i||"",S.c);function c(u,p,g){return _e(((t?t.className.replace(/#.+$/,"~"):"")+r+u+f).replace(/[: ,()[\]]/,""),g,p&&I(p))}return Object.defineProperties(function(p){let g,y;Array.isArray(p)&&(g=!0,p=Object.fromEntries(new URLSearchParams(p[1]).entries()));let $={...s,...p},A=g?"":(t?t($)+" ":"")+a;for(let R in n){let h=n[R],d=$[R];if(d===Object(d)){let w="";y="";for(let x in d){let M=h[d[x]];M&&(w+="@"+x+"-"+d[x],y+=(y&&" ")+(x=="_"?M:x+":("+M+")"))}y&&(A+=" "+c("--"+R+"-"+w,y,402653184))}else(y=h[d])&&(A+=" "+c("--"+R+"-"+d,y,402653184))}return o.forEach((R,h)=>{let d="";for(let w in R[0]){let x=$[w];if(x!==Object(x)&&""+x==""+R[0][w])d+=(d&&"_")+w+"-"+x;else{d="";break}}d&&(y=R[1])&&(A+=" "+c("-"+h+"--"+d,y,536870912))}),A},Object.getOwnPropertyDescriptors({className:a,defaults:s,selector:"."+Y(a)}))}var Ot=function(e,...t){return(typeof this=="function"?this:D)(Z(e,t))};export{ht as animation,pt as apply,oe as arbitrary,b as asArray,At as auto,ct as autoDarkColor,Ye as colorFromTheme,ut as consume,me as css,it as cssom,wt as cx,Te as defineConfig,lt as dom,Y as escape,at as extract,ie as fromMatch,Ge as fromTheme,$t as getAutocompleteProvider,Fe as getSheet,T as hash,te as identity,St as injectGlobal,xt as inline,vt as install,Rt as keyframes,yt as match,mt as matchColor,gt as matchTheme,rt as mo,Ce as mql,F as noop,se as normalize,nt as observe,I as parse,Ze as parseValue,ft as setup,dt as shortcut,Le as stringify,jt as style,He as toCSS,P as toColorValue,D as tw,tt as twind,Ot as tx,ot as virtual,bt as withAutocomplete}; -//# sourceMappingURL=core.bundle.mjs.map \ No newline at end of file +var B;function ae(e){return[...e.v,(e.i?"!":"")+e.n].join(":")}function ue(e,t=","){return e.map(ae).join(t)}var Y=typeof CSS<"u"&&CSS.escape||(e=>e.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function T(e){for(var t=9,r=e.length;r--;)t=Math.imul(t^e.charCodeAt(r),1597334677);return"#"+((t^t>>>9)>>>0).toString(36)}function Ce(e,t="@media "){return t+b(e).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function b(e=[]){return Array.isArray(e)?e:e==null?[]:[e]}function te(e){return e}function F(){}var S={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function Ee(e){return e.match(/[-=:;]/g)?.length||0}function re(e){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(e)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(Ee(e),15)<<18}var Ue=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function ce({n:e,i:t,v:r=[]},i,n,l){e&&(e=ae({n:e,i:t,v:r})),l=[...b(l)];for(let s of r){let f=i.theme("screens",s);for(let a of b(f&&Ce(f)||i.v(s))){var o;l.push(a),n|=f?67108864|re(a):s=="dark"?1073741824:a[0]=="@"?re(a):(o=a,1<<~(/:([a-z-]+)/.test(o)&&~Ue.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:e,p:n,r:l,i:t}}var pe=new Map;function ne(e){if(e.d){let t=[],r=H(e.r.reduce((i,n)=>n[0]=="@"?(t.push(n),i):n?H(i,l=>H(n,o=>{let s=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(s){let f=l.indexOf(s[1]);return~f?l.slice(0,f)+s[0]+l.slice(f+s[1].length):Q(l,o)}return Q(o,l)})):i,"&"),i=>Q(i,e.n?"."+Y(e.n):""));return r&&t.push(r.replace(/:merge\((.+?)\)/g,"$1")),t.reduceRight((i,n)=>n+"{"+i+"}",e.d)}}function H(e,t){return e.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>t(i)+n)}function Q(e,t){return e.replace(/&/g,t)}var $e=new Intl.Collator("en",{numeric:!0});function Me(e,t){for(var r=0,i=e.length;r>1;0>=Ne(e[n],t)?r=n+1:i=n}return i}function Ne(e,t){let r=e.p&S.o;return r==(t.p&S.o)&&(r==S.b||r==S.o)?0:e.p-t.p||e.o-t.o||$e.compare(we(e.n),we(t.n))||$e.compare(Ae(e.n),Ae(t.n))}function we(e){return(e||"").split(/:/).pop().split("/").pop()||"\0"}function Ae(e){return(e||"").replace(/\W/g,t=>String.fromCharCode(127+t.charCodeAt(0)))+"\0"}function X(e,t){return Math.round(parseInt(e,16)*t)}function P(e,t={}){if(typeof e=="function")return e(t);let{opacityValue:r="1",opacityVariable:i}=t,n=i?`var(${i})`:r;if(e.includes(""))return e.replace("",n);if(e[0]=="#"&&(e.length==4||e.length==7)){let l=(e.length-1)/3,o=[17,1,.062272][l-1];return`rgba(${[X(e.substr(1,l),o),X(e.substr(1+l,l),o),X(e.substr(1+2*l,l),o),n]})`}return n=="1"?e:n=="0"?"#0000":e.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function ct(e,t,{theme:r}){return r(e,t=t.replace(/\d+$/,i=>100*(9-~~(parseInt(i,10)/100)||.5)))}function de(e,t,r,i,n=[]){return function l(o,{n:s,p:f,r:a=[],i:c},u){let p=[],g="",y=0,$=0;for(let h in o||{}){var A,R;let d=o[h];if(h[0]=="@"){if(!d)continue;if(h[1]=="a"){p.push(...ge(s,f,I(""+d),u,f,a,c,!0));continue}if(h[1]=="l"){for(let w of b(d))p.push(...l(w,{n:s,p:(A=S[h[7]],f&~S.o|A),r:h[7]=="d"?[]:a,i:c},u));continue}if(h[1]=="i"){p.push(...b(d).map(w=>({p:-1,o:0,r:[],d:h+" "+w})));continue}if(h[1]=="k"){p.push({p:S.d,o:0,r:[h],d:l(d,{p:S.d},u).map(ne).join("")});continue}if(h[1]=="f"){p.push(...b(d).map(w=>({p:S.d,o:0,r:[h],d:l(w,{p:S.d},u).map(ne).join("")})));continue}}if(typeof d!="object"||Array.isArray(d))h=="label"&&d?s=d+T(JSON.stringify([f,c,o])):(d||d===0)&&(h=h.replace(/[A-Z]/g,w=>"-"+w.toLowerCase()),$+=1,y=Math.max(y,(R=h)[0]=="-"?0:Ee(R)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(R)?+!!RegExp.$1||-!!RegExp.$2:0)+1),g+=(g?";":"")+b(d).map(w=>u.s(h,he(""+w,u.theme)+(c?" !important":""))).join(";"));else if(h[0]=="@"||h.includes("&")){let w=f;h[0]=="@"&&(h=h.replace(/\bscreen\(([^)]+)\)/g,(x,M)=>{let N=u.theme("screens",M);return N?(w|=67108864,Ce(N,"")):x}),w|=re(h)),p.push(...l(d,{n:s,p:w,r:[...a,h],i:c},u))}else p.push(...l(d,{p:f,r:[...a,h]},u))}return p.unshift({n:s,p:f,o:Math.max(0,15-$)+1.5*Math.min(y||15,15),r:a,d:g}),p.sort(Ne)}(e,ce(t,r,i,n),r)}function he(e,t){return e.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,l,o="")=>{let s=t(n,o);return typeof s=="function"&&/color|fill|stroke/i.test(n)?P(s):""+b(s).filter(f=>Object(f)!==f)})}function ye(e,t){let r,i=[];for(let n of e)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&t}):i.push({...n,n:n.n&&t});return i}function W(e,t,r=S.u,i,n){let l=[];for(let o of e)for(let s of function(f,a,c,u,p){f={...f,i:f.i||p};let g=function(y,$){let A=pe.get(y.n);return A?A(y,$):$.r(y.n,y.v[0]=="dark")}(f,a);return g?typeof g=="string"?({r:u,p:c}=ce(f,a,c,u),ye(W(I(g),a,c,u,f.i),f.n)):Array.isArray(g)?g.map(y=>{var $,A;return{o:0,...y,r:[...b(u),...b(y.r)],p:($=c,A=y.p??c,$&~S.o|A)}}):de(g,f,a,c,u):[{c:ae(f),p:0,o:0,r:[]}]}(o,t,r,i,n))l.splice(Me(l,s),0,s);return l}function ge(e,t,r,i,n,l,o,s){return ye((s?r.flatMap(f=>W([f],i,n,l,o)):W(r,i,n,l,o)).map(f=>f.p&S.o&&(f.n||t==S.b)?{...f,p:f.p&~S.o|t,o:0}:f),e)}function _e(e,t,r,i){var n;return n=(l,o)=>{let{n:s,p:f,r:a,i:c}=ce(l,o,t);return r&&ge(s,t,r,o,f,a,c,i)},pe.set(e,n),e}function K(e,t,r){if(e[e.length-1]!="("){let i=[],n=!1,l=!1,o="";for(let s of e)if(!(s=="("||/[~@]$/.test(s))){if(s[0]=="!"&&(s=s.slice(1),n=!n),s.endsWith(":")){i[s=="dark:"?"unshift":"push"](s.slice(0,-1));continue}s[0]=="-"&&(s=s.slice(1),l=!l),s.endsWith("-")&&(s=s.slice(0,-1)),s&&s!="&"&&(o+=(o&&"-")+s)}o&&(l&&(o="-"+o),t[0].push({n:o,v:i.filter(Be),i:n}))}}function Be(e,t,r){return r.indexOf(e)==t}var Se=new Map;function I(e){let t=Se.get(e);if(!t){let r=[],i=[[]],n=0,l=0,o=null,s=0,f=(a,c=0)=>{n!=s&&(r.push(e.slice(n,s+c)),a&&K(r,i)),n=s+1};for(;s1?u.slice(0,-1)+T(JSON.stringify([u,p])):u+"("+ue(p)+")",S.a,p,/@$/.test(u))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(a)&&e[s+1]=="("&&i.unshift([])}f(!0),Se.set(e,t=i[0])}return t}function Ve(e,t,r){return t.reduce((i,n,l)=>i+r(n)+e[l+1],e[0])}function Z(e,t){return Array.isArray(e)&&Array.isArray(e.raw)?Ve(e,t,r=>ee(r).trim()):t.filter(Boolean).reduce((r,i)=>r+ee(i),e?ee(e):"")}function ee(e){let t,r="";if(e&&typeof e=="object")if(Array.isArray(e))(t=Z(e[0],e.slice(1)))&&(r+=" "+t);else for(let i in e)e[i]&&(r+=" "+i);else e!=null&&typeof e!="boolean"&&(r+=" "+e);return r}var pt=ze("@"),dt=ze("~");function ze(e){return new Proxy(function(i,...n){return t("",i,n)},{get(r,i){return i in r?r[i]:function(l,...o){return t(i,l,o)}}});function t(r,i,n){return ue(I(r+e+"("+Z(i,n)+")"))}}function G(e,t){return Array.isArray(e)?ve(Ve(e,t,r=>r!=null&&typeof r!="boolean"?r:"")):typeof e=="string"?ve(e):[e]}var We=/ *(?:(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}))/g;function ve(e){let t;e=e.replace(/\/\*[^]*?\*\/|\s\s+|\n/gm," ");let r=[{}],i=[r[0]],n=[];for(;t=We.exec(e);)t[4]&&(r.shift(),n.shift()),t[3]?(n.unshift(t[3]),r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))):t[4]||(r[0][t[1]]&&(r.unshift({}),i.push(n.reduce((l,o)=>({[o]:l}),r[0]))),r[0][t[1]]=t[2]);return i}function me(e,...t){var r;let i=G(e,t),n=(i.find(l=>l.label)?.label||"css")+T(JSON.stringify(i));return r=(l,o)=>ye(i.flatMap(s=>de(s,l,o,S.o)),n),pe.set(n,r),n}var ht=new Proxy(function(e,t){return Re("animation",e,t)},{get(e,t){return t in e?e[t]:function(i,n){return Re(t,i,n)}}});function Re(e,t,r){return{toString(){return me({label:e,"@layer components":{...typeof t=="object"?t:{animation:t},animationName:""+r}})}}}function yt(e,t,r){return[e,ie(t,r)]}function ie(e,t){return typeof e=="function"?e:typeof e=="string"&&/^[\w-]+$/.test(e)?(r,i)=>({[e]:t?t(r,i):le(r,1)}):r=>e||{[r[1]]:le(r,2)}}function le(e,t,r=e.slice(t).find(Boolean)||e.$$||e.input){return e.input[0]=="-"?`calc(${r} * -1)`:r}function gt(e,t,r,i){return[e,Ge(t,r,i)]}function Ge(e,t,r){let i=typeof t=="string"?(n,l)=>({[t]:r?r(n,l):n._}):t||(({1:n,_:l},o,s)=>({[n||s]:l}));return(n,l)=>{let o=ke(e||n[1]),s=l.theme(o,n.$$)??oe(n.$$,o,l);if(s!=null)return n._=le(n,0,s),i(n,l,o)}}function mt(e,t={},r){return[e,Ye(t,r)]}function Ye(e={},t){return(r,i)=>{let{section:n=ke(r[0]).replace("-","")+"Color"}=e,[l,o]=Ze(r.$$);if(!l)return;let s=i.theme(n,l)||oe(l,n,i);if(!s||typeof s=="object")return;let{opacityVariable:f=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:a=n.replace("Color","Opacity"),property:c=n,selector:u}=e,p=i.theme(a,o||"DEFAULT")||o&&oe(o,a,i),g=t||(({_:$})=>{let A=He(c,$);return u?{[u]:A}:A});r._={value:P(s,{opacityVariable:f||void 0,opacityValue:p||void 0}),color:$=>P(s,$),opacityVariable:f||void 0,opacityValue:p||void 0};let y=g(r,i);if(!r.dark){let $=i.d(n,l,s);$&&$!==s&&(r._={value:P($,{opacityVariable:f||void 0,opacityValue:p||"1"}),color:A=>P($,A),opacityVariable:f||void 0,opacityValue:p||void 0},y={"&":y,[i.v("dark")]:g(r,i)})}return y}}function Ze(e){return(e.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function He(e,t){let r={};return typeof t=="string"?r[e]=t:(t.opacityVariable&&t.value.includes(t.opacityVariable)&&(r[t.opacityVariable]=t.opacityValue||"1"),r[e]=t.value),r}function oe(e,t,r){if(e[0]=="["&&e.slice(-1)=="]"){if(e=se(he(e.slice(1,-1),r.theme)),!t)return e;if(!(/color|fill|stroke/i.test(t)&&!(/^color:/.test(e)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(e))||/image/i.test(t)&&!(/^image:/.test(e)||/^[a-z-]+\(/.test(e))||/weight/i.test(t)&&!(/^(number|any):/.test(e)||/^\d+$/.test(e))||/position/i.test(t)&&/^(length|size):/.test(e)))return e.replace(/^[a-z-]+:/,"")}}function ke(e){return e.replace(/-./g,t=>t[1].toUpperCase())}function se(e){return e.includes("url(")?e.replace(/(.*?)(url\(.*?\))(.*?)/g,(t,r="",i,n="")=>se(r)+i+se(n)):e.replace(/(^|[^\\])_+/g,(t,r)=>r+" ".repeat(t.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,t=>t.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}var Qe=Symbol();function bt(e,t){return e}function $t(e){return e[Qe]}function wt(e,...t){return ue(I(Z(e,t))," ")}function Te({presets:e=[],...t}){let r={darkMode:void 0,darkColor:void 0,preflight:t.preflight!==!1&&[],theme:{},variants:b(t.variants),rules:b(t.rules),ignorelist:b(t.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of b([...e,{darkMode:t.darkMode,darkColor:t.darkColor,preflight:t.preflight!==!1&&b(t.preflight),theme:t.theme,hash:t.hash,stringify:t.stringify,finalize:t.finalize}])){let{preflight:n,darkMode:l=r.darkMode,darkColor:o=r.darkColor,theme:s,variants:f,rules:a,ignorelist:c,hash:u=r.hash,stringify:p=r.stringify,finalize:g}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...b(n)],darkMode:l,darkColor:o,theme:{...r.theme,...s,extend:{...r.theme.extend,...s?.extend}},variants:[...r.variants,...b(f)],rules:[...r.rules,...b(a)],ignorelist:[...r.ignorelist,...b(c)],hash:u,stringify:p,finalize:[...r.finalize,...b(g)]}}return r}function xe(e,t,r,i,n,l){for(let o of t){let s=r.get(o);s||r.set(o,s=i(o));let f=s(e,n,l);if(f)return f}}function Xe(e){var t;return fe(e[0],typeof(t=e[1])=="function"?t:()=>t)}function Ke(e){var t,r;return Array.isArray(e)?fe(e[0],ie(e[1],e[2])):fe(e,ie(t,r))}function fe(e,t){return Ie(e,(r,i,n,l)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=l,t(o,n)})}function Ie(e,t){let r=b(e).map(et);return(i,n,l)=>{for(let o of r){let s=t(i,o,n,l);if(s)return s}}}function et(e){return typeof e=="string"?RegExp("^"+e+(e.includes("$")||e.slice(-1)=="-"?"":"$")):e}function tt(e,t){let r=Te(e),i=function({theme:f,darkMode:a,darkColor:c=F,variants:u,rules:p,hash:g,stringify:y,ignorelist:$,finalize:A}){let R=new Map,h=new Map,d=new Map,w=new Map,x=Ie($,(m,j)=>j.test(m));u.push(["dark",Array.isArray(a)||a=="class"?`${b(a)[1]||".dark"} &`:typeof a=="string"&&a!="media"?a:"@media (prefers-color-scheme:dark)"]);let M=typeof g=="function"?m=>g(m,T):g?T:te;M!==te&&A.push(m=>({...m,n:m.n&&M(m.n),d:m.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(j,C)=>"--"+M(C).replace("#",""))}));let N={theme:function({extend:m={},...j}){let C={},qe={get colors(){return L("colors")},theme:L,negative(){return{}},breakpoints(v){let E={};for(let O in v)typeof v[O]=="string"&&(E["screen-"+O]=v[O]);return E}};return L;function L(v,E,O,q){if(v){if({1:v,2:q}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(v)||[,v],/[.[]/.test(v)){let V=[];v.replace(/\[([^\]]+)\]|([^.[]+)/g,(k,U,Je=U)=>V.push(Je)),v=V.shift(),O=E,E=V.join("-")}let _=C[v]||Object.assign(Object.assign(C[v]={},be(j,v)),be(m,v));if(E==null)return _;E||="DEFAULT";let z=_[E]??E.split("-").reduce((V,k)=>V?.[k],_)??O;return q?P(z,{opacityValue:he(q,L)}):z}let J={};for(let _ of[...Object.keys(j),...Object.keys(m)])J[_]=L(_);return J}function be(v,E){let O=v[E];return typeof O=="function"&&(O=O(qe)),O&&/color|fill|stroke/i.test(E)?function q(J,_=[]){let z={};for(let V in J){let k=J[V],U=[..._,V];z[U.join("-")]=k,V=="DEFAULT"&&(U=_,z[_.join("-")]=k),typeof k=="object"&&Object.assign(z,q(k,U))}return z}(O):O}}(f),e:Y,h:M,s(m,j){return y(m,j,N)},d(m,j,C){return c(m,j,N,C)},v(m){return R.has(m)||R.set(m,xe(m,u,h,Xe,N)||"&:"+m),R.get(m)},r(m,j){let C=JSON.stringify([m,j]);return d.has(C)||d.set(C,!x(m,N)&&xe(m,p,w,Ke,N,j)),d.get(C)},f(m){return A.reduce((j,C)=>C(j,N),m)}};return N}(r),n=new Map,l=[],o=new Set;t.resume(f=>n.set(f,f),(f,a)=>{t.insert(f,l.length,a),l.push(a),o.add(f)});function s(f){let a=i.f(f),c=ne(a);if(c&&!o.has(c)){o.add(c);let u=Me(l,f);t.insert(c,u,f),l.splice(u,0,f)}return a.n}return Object.defineProperties(function(a){if(!n.size)for(let u of b(r.preflight))typeof u=="function"&&(u=u(i)),u&&(typeof u=="string"?ge("",S.b,I(u),i,S.b,[],!1,!0):de(u,{},i,S.b)).forEach(s);a=""+a;let c=n.get(a);if(!c){let u=new Set;for(let p of W(I(a),i))u.add(p.c).add(s(p));c=[...u].filter(Boolean).join(" "),n.set(a,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return t.target},theme:i.theme,config:r,snapshot(){let f=t.snapshot(),a=new Set(o),c=new Map(n),u=[...l];return()=>{f(),o=a,n=c,l=u}},clear(){t.clear(),o=new Set,n=new Map,l=[]},destroy(){this.clear(),t.destroy()}}))}function De(e,t){return e!=t&&""+e.split(" ").sort()!=""+t.split(" ").sort()}function rt(e){let t=new MutationObserver(r);return{observe(n){t.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){t.disconnect()}};function r(n){for(let{type:l,target:o}of n)if(l[0]=="a")i(o);else for(let s of o.querySelectorAll("[class]"))i(s);t.takeRecords()}function i(n){let l,o=n.getAttribute?.("class");o&&De(o,l=e(o))&&n.setAttribute("class",l)}}function nt(e=D,t=typeof document<"u"&&document.documentElement){if(t){let r=rt(e);r.observe(t);let{destroy:i}=e;e.destroy=()=>{r.disconnect(),i.call(e)}}return e}function Pe(e){let t=document.querySelector(e||'style[data-twind=""]');return(!t||t.tagName!="STYLE")&&(t=document.createElement("style"),document.head.prepend(t)),t.dataset.twind="claimed",t}function it(e){let t=e?.cssRules?e:(e&&typeof e!="string"?e:Pe(e)).sheet;return{target:t,snapshot(){let r=Array.from(t.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=t.cssRules.length;r--;)t.deleteRule(r)},destroy(){t.ownerNode?.remove()},insert(r,i){try{t.insertRule(r,i)}catch{t.insertRule(":root{}",i)}},resume:F}}function lt(e){let t=e&&typeof e!="string"?e:Pe(e);return{target:t,snapshot(){let r=Array.from(t.childNodes,i=>i.textContent);return()=>{this.clear(),r.forEach(this.insert)}},clear(){t.textContent=""},destroy(){t.remove()},insert(r,i){t.insertBefore(document.createTextNode(r),t.childNodes[i]||null)},resume:F}}function ot(e){let t=[];return{target:t,snapshot(){let r=[...t];return()=>{t.splice(0,t.length,...r)}},clear(){t.length=0},destroy(){this.clear()},insert(r,i,n){t.splice(i,0,e?`/*!${n.p.toString(36)},${(2*n.o).toString(36)}${n.n?","+n.n:""}*/${r}`:r)},resume:F}}function Fe(e,t){let r=typeof document>"u"?ot(!t):e?lt():it();return t||(r.resume=st),r}function Le(e){return(e.ownerNode||e).textContent||(e.cssRules?Array.from(e.cssRules,t=>t.cssText):b(e)).join("")}function st(e,t){let r=Le(this.target),i=/\/\*!([\da-z]+),([\da-z]+)(?:,(.+?))?\*\//g;if(i.test(r)){var n;let l;if(i.lastIndex=0,this.clear(),typeof document<"u")for(let o of document.querySelectorAll("[class]"))e(o.getAttribute("class"));for(;n=i.exec(r),l&&t(r.slice(l.index+l[0].length,n?.index),{p:parseInt(l[1],36),o:parseInt(l[2],36)/2,n:l[3]}),l=n;);}}function At(e){if(typeof document<"u"&&document.currentScript){let t=()=>r.disconnect(),r=new MutationObserver(i=>{for(let{target:n}of i)if(n===document.body)return e(),t()});return r.observe(document.documentElement,{childList:!0,subtree:!0}),t}return F}var D=new Proxy(F,{apply(e,t,r){return B(r[0])},get(e,t){let r=B[t];return typeof r=="function"?function(){return r.apply(B,arguments)}:r}});function ft(e={},t=Fe,r){return B?.destroy(),B=nt(tt(e,typeof t=="function"?t():t),r)}var St=function(e,...t){(typeof this=="function"?this:D)(me({"@layer base":G(e,t)}))};function vt(e,t=!0){let r=Te(e);return ft({...r,hash:r.hash??t},()=>Fe(!t))}var Rt=function e(t){return new Proxy(function(i,...n){return je(t,"",i,n)},{get(r,i){return i==="bind"?e:i in r?r[i]:function(l,...o){return je(t,i,l,o)}}})}();function je(e,t,r,i){return{toString(){let n=G(r,i),l=Y(t+T(JSON.stringify([t,n])));return(typeof e=="function"?e:D)(me({[`@keyframes ${l}`]:G(r,i)})),l}}}function xt(e,t={}){let{tw:r=D,minify:i=te}=typeof t=="function"?{tw:t}:t,{html:n,css:l}=at(e,r);return n.replace("",``)}function at(e,t=D){let r=t.snapshot(),i={html:ut(e,t),css:Le(t.target)};return r(),i}function ut(e,t=D){let r="",i=0;return function(n,l){let o=1,s=0,f="",a="",c=u=>{o==5&&a=="class"&&l(s,u,f)===!1&&(n="")};for(let u=0;u"&&n.slice(u-2,u)=="--"&&(o=1):f?p==f&&n[u-1]!="\\"&&(c(u),o=2,f=""):p=='"'||p=="'"?(f=p,s+=1):p==">"?(c(u),o=1):o&&(p=="="?(a=n.slice(s,u),o=5,s=u+1):p=="/"&&(o<5||n[u+1]==">")?(c(u),o=0):/\s/.test(p)&&(c(u),o=2,s=u+1))}}(e,(n,l,o)=>{var s;let f=e.slice(n,l),a=t(((s=o)=='"'?f.replace(/(=|\[)(?:'|'|')|(?:'|'|')(])/g,"$1'$2"):s=="'"?f.replace(/(=|\[)(?:"|"|")|(?:"|"|")(])/g,'$1"$2'):f).replace(/(&|&|&)/g,"&"));De(f,a)&&(o=o?"":'"',r+=e.slice(i,n)+o+a+o,i=l)}),r+e.slice(i,e.length)}var jt=(e,t)=>typeof e=="function"?Oe(t,e):Oe(e);function Oe(e={},t){let{label:r="style",base:i,props:n={},defaults:l,when:o=[]}=e,s={...t?.defaults,...l},f=T(JSON.stringify([r,t?.className,i,n,s,o])),a=c("",i||"",S.c);function c(u,p,g){return _e(((t?t.className.replace(/#.+$/,"~"):"")+r+u+f).replace(/[: ,()[\]]/,""),g,p&&I(p))}return Object.defineProperties(function(p){let g,y;Array.isArray(p)&&(g=!0,p=Object.fromEntries(new URLSearchParams(p[1]).entries()));let $={...s,...p},A=g?"":(t?t($)+" ":"")+a;for(let R in n){let h=n[R],d=$[R];if(d===Object(d)){let w="";y="";for(let x in d){let M=h[d[x]];M&&(w+="@"+x+"-"+d[x],y+=(y&&" ")+(x=="_"?M:x+":("+M+")"))}y&&(A+=" "+c("--"+R+"-"+w,y,402653184))}else(y=h[d])&&(A+=" "+c("--"+R+"-"+d,y,402653184))}return o.forEach((R,h)=>{let d="";for(let w in R[0]){let x=$[w];if(x!==Object(x)&&""+x==""+R[0][w])d+=(d&&"_")+w+"-"+x;else{d="";break}}d&&(y=R[1])&&(A+=" "+c("-"+h+"--"+d,y,536870912))}),A},Object.getOwnPropertyDescriptors({className:a,defaults:s,selector:"."+Y(a)}))}var Ot=function(e,...t){return(typeof this=="function"?this:D)(Z(e,t))};export{ht as animation,pt as apply,oe as arbitrary,b as asArray,At as auto,ct as autoDarkColor,Ye as colorFromTheme,ut as consume,me as css,it as cssom,wt as cx,Te as defineConfig,lt as dom,Y as escape,at as extract,ie as fromMatch,Ge as fromTheme,$t as getAutocompleteProvider,Fe as getSheet,T as hash,te as identity,St as injectGlobal,xt as inline,vt as install,Rt as keyframes,yt as match,mt as matchColor,gt as matchTheme,rt as mo,Ce as mql,F as noop,se as normalize,nt as observe,I as parse,Ze as parseValue,ft as setup,dt as shortcut,Le as stringify,jt as style,He as toCSS,P as toColorValue,D as tw,tt as twind,Ot as tx,ot as virtual,bt as withAutocomplete}; \ No newline at end of file diff --git a/bundled/twind/presets.js b/bundled/twind/presets.js index 09e76d8..e4a62fe 100644 --- a/bundled/twind/presets.js +++ b/bundled/twind/presets.js @@ -1,10 +1,23 @@ /// /* esm.sh - esbuild bundle(@twind/preset-tailwind@1.1.4) es2022 production */ -var w={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...d(4,"rem",4,.5,.5),...d(12,"rem",4,5),14:"3.5rem",...d(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:i("blur"),backdropBrightness:i("brightness"),backdropContrast:i("contrast"),backdropGrayscale:i("grayscale"),backdropHueRotate:i("hueRotate"),backdropInvert:i("invert"),backdropOpacity:i("opacity"),backdropSaturate:i("saturate"),backdropSepia:i("sepia"),backgroundColor:i("colors"),backgroundImage:{none:"none"},backgroundOpacity:i("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...d(200,"",100,0,50),...d(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:i("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:i("spacing"),borderWidth:{DEFAULT:"1px",...f(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:i("colors"),caretColor:i("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...d(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:i("borderColor"),divideOpacity:i("borderOpacity"),divideWidth:i("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...y(2,6),...y(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{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"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{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"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:i("spacing"),gradientColorStops:i("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...y(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...y(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...d(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...d(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:i("spacing"),placeholderColor:i("colors"),placeholderOpacity:i("opacity"),outlineColor:i("colors"),outlineOffset:f(8,"px"),outlineWidth:f(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:i("colors"),ringOffsetWidth:f(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...f(8,"px")},rotate:{...f(2,"deg"),...f(12,"deg",3),...f(180,"deg",45)},saturate:d(200,"",100,0,50),scale:{...d(150,"",100,0,50),...d(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:i("spacing"),scrollPadding:i("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...f(2,"deg"),...f(12,"deg",3)},space:i("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:d(2),textColor:i("colors"),textDecorationColor:i("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...f(8,"px")},textUnderlineOffset:{auto:"auto",...f(8,"px")},textIndent:i("spacing"),textOpacity:i("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:i("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{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)"},translate:({theme:e})=>({...e("spacing"),...y(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...d(50,"",1,0,10),auto:"auto"}};function y(e,t){let a={};do for(var n=1;nt(e)}var W={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${w.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${w.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};import{match as o,arbitrary as H,matchTheme as r,mql as I,asArray as U,matchColor as s,toColorValue as D,toCSS as S}from"./core.js";var T=[o("\\[([-\\w]+):(.+)]",({1:e,2:t},a)=>({"@layer overrides":{"&":{[e]:H(`[${t}]`,"",a)}}})),o("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),r("aspect-","aspectRatio"),o("container",(e,{theme:t})=>{let{screens:a=t("screens"),center:n,padding:l}=t("container"),c={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...g("xs")};for(let x in a){let p=a[x];typeof p=="string"&&(c[I(p)]={"&":{maxWidth:p,...g(x)}})}return c;function g(x){let p=l&&(typeof l=="string"?l:l[x]||l.DEFAULT);if(p)return{paddingRight:p,paddingLeft:p}}}),r("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),o("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),o("box-(border|content)","boxSizing",({1:e})=>e+"-box"),o("hidden",{display:"none"}),o("table-(auto|fixed)","tableLayout"),o(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",o("isolate","isolation"),o("object-(contain|cover|fill|none|scale-down)","objectFit"),r("object-","objectPosition"),o("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",v),o("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),o("(static|fixed|absolute|relative|sticky)","position"),r("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),r("-?(top|bottom|left|right)(?:$|-)","inset"),o("(visible|collapse)","visibility"),o("invisible",{visibility:"hidden"}),r("-?z-","zIndex"),o("flex-((row|col)(-reverse)?)","flexDirection",A),o("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),r("(flex-(?:grow|shrink))(?:$|-)"),r("(flex)-"),r("grow(?:$|-)","flexGrow"),r("shrink(?:$|-)","flexShrink"),r("basis-","flexBasis"),r("-?(order)-"),"-?(order)-(\\d+)",r("grid-cols-","gridTemplateColumns"),o("grid-cols-(\\d+)","gridTemplateColumns",L),r("col-","gridColumn"),o("col-(span)-(\\d+)","gridColumn",R),r("col-start-","gridColumnStart"),o("col-start-(auto|\\d+)","gridColumnStart"),r("col-end-","gridColumnEnd"),o("col-end-(auto|\\d+)","gridColumnEnd"),r("grid-rows-","gridTemplateRows"),o("grid-rows-(\\d+)","gridTemplateRows",L),r("row-","gridRow"),o("row-(span)-(\\d+)","gridRow",R),r("row-start-","gridRowStart"),o("row-start-(auto|\\d+)","gridRowStart"),r("row-end-","gridRowEnd"),o("row-end-(auto|\\d+)","gridRowEnd"),o("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>v(A(e))),o("grid-flow-(dense)","gridAutoFlow"),r("auto-cols-","gridAutoColumns"),r("auto-rows-","gridAutoRows"),r("gap-x(?:$|-)","gap","columnGap"),r("gap-y(?:$|-)","gap","rowGap"),r("gap(?:$|-)","gap"),"(justify-(?:items|self))-",o("justify-","justifyContent",O),o("(content|items|self)-",e=>({["align-"+e[1]]:O(e)})),o("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),r("p([xytrbl])?(?:$|-)","padding",h("padding")),r("-?m([xytrbl])?(?:$|-)","margin",h("margin")),r("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),o("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),r("w-","width"),r("min-w-","minWidth"),r("max-w-","maxWidth"),r("h-","height"),r("min-h-","minHeight"),r("max-h-","maxHeight"),r("font-","fontWeight"),r("font-","fontFamily",({_:e})=>typeof(e=U(e))[1]=="string"?{fontFamily:m(e)}:{fontFamily:m(e[0]),...e[1]}),o("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),o("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),o("italic","fontStyle"),o("not-italic",{fontStyle:"normal"}),o("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:a})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(a?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...b({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),r("tracking-","letterSpacing"),r("leading-","lineHeight"),o("list-(inside|outside)","listStylePosition"),r("list-","listStyleType"),o("list-","listStyleType"),r("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),s("placeholder-",{property:"color",selector:"&::placeholder"}),o("text-(left|center|right|justify|start|end)","textAlign"),o("text-(ellipsis|clip)","textOverflow"),r("text-opacity-","textOpacity","--tw-text-opacity"),s("text-",{property:"color"}),r("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),r("indent-","textIndent"),o("(overline|underline|line-through)","textDecorationLine"),o("no-underline",{textDecorationLine:"none"}),r("underline-offset-","textUnderlineOffset"),s("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),r("decoration-","textDecorationThickness"),o("decoration-","textDecorationStyle"),o("(uppercase|lowercase|capitalize)","textTransform"),o("normal-case",{textTransform:"none"}),o("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),o("align-","verticalAlign"),o("whitespace-","whiteSpace"),o("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),o("break-words",{overflowWrap:"break-word"}),o("break-all",{wordBreak:"break-all"}),o("break-keep",{wordBreak:"keep-all"}),s("caret-",{opacityVariable:!1,opacitySection:"opacity"}),s("accent-",{opacityVariable:!1,opacitySection:"opacity"}),o("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${u(e," ")},var(--tw-gradient-stops))`),s("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),s("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),s("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),o("bg-(fixed|local|scroll)","backgroundAttachment"),o("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),o(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),o("bg-blend-","backgroundBlendMode"),o("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),r("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),s("bg-",{section:"backgroundColor"}),r("bg-","backgroundImage"),r("bg-","backgroundPosition"),o("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",v),r("bg-","backgroundSize"),r("rounded(?:$|-)","borderRadius"),r("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let a={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${u(a[0])}-radius`]:t,[`border-${u(a[1])}-radius`]:t}}),o("border-(collapse|separate)","borderCollapse"),r("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),o("border-(solid|dashed|dotted|double|none)","borderStyle"),r("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...b({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),s("border-([xytrbl])-",{section:"borderColor"},h("border","Color")),s("border-"),r("border-([xytrbl])(?:$|-)","borderWidth",h("border","Width")),r("border(?:$|-)","borderWidth"),r("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),o("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),o("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),r("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let a={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${u(a[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${u(a[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),s("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),r("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),s("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),r("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),o("ring-inset",{"--tw-ring-inset":"inset"}),s("ring-",{property:"--tw-ring-color"}),r("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...b({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":D(t("ringOffsetColor","","#fff")),"--tw-ring-color":D(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),s("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),r("shadow(?:$|-)","boxShadow",({_:e})=>({...b({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":m(e),"--tw-shadow-colored":m(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),r("(opacity)-"),o("mix-blend-","mixBlendMode"),...E(),...E("backdrop-"),r("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:m(e),transitionTimingFunction:e._=="none"?void 0:m(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:m(t("transitionDuration",""))})),r("duration(?:$|-)","transitionDuration","transitionDuration",m),r("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",m),r("delay(?:$|-)","transitionDelay","transitionDelay",m),r("animate(?:$|-)","animation",(e,{theme:t,h:a,e:n})=>{let l=m(e),c=l.split(" "),g=t("keyframes",c[0]);return g?{["@keyframes "+(c[0]=n(a(c[0])))]:g,animation:c.join(" ")}:{animation:l}}),"(transform)-(none)",o("transform",F),o("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":j(e=="gpu")})),r("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...F()})),r("-?(rotate)-","rotate",C),r("-?(translate-[xy])-","translate",C),r("-?(skew-[xy])-","skew",C),o("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",v),"(appearance)-",r("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",r("(cursor)-"),"(cursor)-",o("snap-(none)","scroll-snap-type"),o("snap-(x|y|both)",({1:e})=>({...b({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),o("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),o("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),o("snap-(normal|always)","scroll-snap-stop"),o("scroll-(auto|smooth)","scroll-behavior"),r("scroll-p([xytrbl])?(?:$|-)","padding",h("scroll-padding")),r("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",h("scroll-margin")),o("touch-(auto|none|manipulation)","touch-action"),o("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:a})=>({...b({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":a?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),o("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),o("outline",{outlineStyle:"solid"}),o("outline-(dashed|dotted|double)","outlineStyle"),r("-?(outline-offset)-"),s("outline-",{opacityVariable:!1,opacitySection:"opacity"}),r("outline-","outlineWidth"),"(pointer-events)-",r("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],o("select-(none|text|all|auto)","userSelect"),s("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),s("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),r("stroke-","strokeWidth"),o("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),o("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function v(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function A(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function u(e,t="-"){let a=[];for(let n of e)a.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return a.join(t)}function m(e){return e&&""+(e._||e)}function O({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function h(e,t=""){return({1:a,_:n})=>{let l={x:"lr",y:"tb"}[a]||a+a;return l?{...S(e+"-"+u(l[0])+t,n),...S(e+"-"+u(l[1])+t,n)}:S(e+t,n)}}function E(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),a={};for(let n of t)a[`--tw-${e}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return a={...b(a),[`${e}filter`]:t.map(n=>`var(--tw-${e}${n})`).join(" ")},[`(${e}filter)-(none)`,o(`${e}filter`,a),...t.map(n=>r(`${n[0]=="h"?"-?":""}(${e}${n})(?:$|-)`,n,({1:l,_:c})=>({[`--tw-${l}`]:U(c).map(g=>`${n}(${g})`).join(" "),...a})))]}function C({1:e,_:t}){return{["--tw-"+e]:t,...F()}}function F(){return{...b({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":j()}),transform:"var(--tw-transform)"}}function j(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function R({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function L({1:e}){return`repeat(${e},minmax(0,1fr))`}function b(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}}import{normalize as V,arbitrary as k}from"./core.js";var z=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},a)=>t&&`&[${e}-${a.theme(e,t)||k(t,"",a)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:a,5:n="",6:l=t},{e:c,h:g,v:x})=>{let p=V(n)||(a[0]=="["?a:x(a.slice(1)));return`${(p.includes("&")?p:"&"+p).replace(/&/g,`:merge(.${c(g(e+l))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||k(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||k(e,"",t)),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=k(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&V(e).replace(/[}]+$/,"").split("{")]];function $({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:W,theme:{...w,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:z,rules:T,finalize(a){return a.n&&a.d&&a.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(a.d)?{...a,d:"content:var(--tw-content);"+a.d}:a}}}var M={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},N={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},P={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},G={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},q={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Y={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},X={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},J={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},K={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Q={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Z={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},_={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},ee={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},te={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},oe={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},re={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},ae={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},ne={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},ie={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},le={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},se={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},ce={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},B={__proto__:null,slate:M,gray:N,zinc:P,neutral:G,stone:q,red:Y,orange:X,amber:J,yellow:K,lime:Q,green:Z,emerald:_,teal:ee,cyan:te,sky:oe,blue:re,indigo:ae,violet:ne,purple:ie,fuchsia:le,pink:se,rose:ce};function Oe({disablePreflight:e}={}){return $({colors:B,disablePreflight:e})}export{Oe as presetTailwind}; +var w={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...d(4,"rem",4,.5,.5),...d(12,"rem",4,5),14:"3.5rem",...d(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:i("blur"),backdropBrightness:i("brightness"),backdropContrast:i("contrast"),backdropGrayscale:i("grayscale"),backdropHueRotate:i("hueRotate"),backdropInvert:i("invert"),backdropOpacity:i("opacity"),backdropSaturate:i("saturate"),backdropSepia:i("sepia"),backgroundColor:i("colors"),backgroundImage:{none:"none"},backgroundOpacity:i("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...d(200,"",100,0,50),...d(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:e})=>({DEFAULT:e("colors.gray.200","currentColor"),...e("colors")}),borderOpacity:i("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:i("spacing"),borderWidth:{DEFAULT:"1px",...f(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:i("colors"),caretColor:i("colors"),accentColor:({theme:e})=>({auto:"auto",...e("colors")}),contrast:{...d(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:i("borderColor"),divideOpacity:i("borderOpacity"),divideWidth:i("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:e})=>({...e("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({...e("spacing"),...y(2,6),...y(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{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"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{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"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:i("spacing"),gradientColorStops:i("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:e})=>({...e("spacing"),...y(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:e})=>({...e("spacing"),...y(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...d(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),maxHeight:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...e("spacing")}),maxWidth:({theme:e,breakpoints:t})=>({...t(e("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...d(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:i("spacing"),placeholderColor:i("colors"),placeholderOpacity:i("opacity"),outlineColor:i("colors"),outlineOffset:f(8,"px"),outlineWidth:f(8,"px"),ringColor:({theme:e})=>({...e("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:i("colors"),ringOffsetWidth:f(8,"px"),ringOpacity:({theme:e})=>({...e("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...f(8,"px")},rotate:{...f(2,"deg"),...f(12,"deg",3),...f(180,"deg",45)},saturate:d(200,"",100,0,50),scale:{...d(150,"",100,0,50),...d(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:i("spacing"),scrollPadding:i("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...f(2,"deg"),...f(12,"deg",3)},space:i("spacing"),stroke:({theme:e})=>({...e("colors"),none:"none"}),strokeWidth:d(2),textColor:i("colors"),textDecorationColor:i("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...f(8,"px")},textUnderlineOffset:{auto:"auto",...f(8,"px")},textIndent:i("spacing"),textOpacity:i("opacity"),transitionDuration:({theme:e})=>({...e("durations"),DEFAULT:"150ms"}),transitionDelay:i("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{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)"},translate:({theme:e})=>({...e("spacing"),...y(2,4),full:"100%"}),width:({theme:e})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...e("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...d(50,"",1,0,10),auto:"auto"}};function y(e,t){let a={};do for(var n=1;nt(e)}var W={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${w.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${w.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}}; + +import +{match as o,arbitrary as H,matchTheme as r,mql as I,asArray as U,matchColor as s,toColorValue as D,toCSS as S} +from"./core.js"; + +var T=[o("\\[([-\\w]+):(.+)]",({1:e,2:t},a)=>({"@layer overrides":{"&":{[e]:H(`[${t}]`,"",a)}}})),o("(group|peer)([~/][^-[]+)?",({input:e},{h:t})=>[{c:t(e)}]),r("aspect-","aspectRatio"),o("container",(e,{theme:t})=>{let{screens:a=t("screens"),center:n,padding:l}=t("container"),c={width:"100%",marginRight:n&&"auto",marginLeft:n&&"auto",...g("xs")};for(let x in a){let p=a[x];typeof p=="string"&&(c[I(p)]={"&":{maxWidth:p,...g(x)}})}return c;function g(x){let p=l&&(typeof l=="string"?l:l[x]||l.DEFAULT);if(p)return{paddingRight:p,paddingLeft:p}}}),r("content-","content",({_:e})=>({"--tw-content":e,content:"var(--tw-content)"})),o("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),o("box-(border|content)","boxSizing",({1:e})=>e+"-box"),o("hidden",{display:"none"}),o("table-(auto|fixed)","tableLayout"),o(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",o("isolate","isolation"),o("object-(contain|cover|fill|none|scale-down)","objectFit"),r("object-","objectPosition"),o("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",v),o("overscroll(-[xy])?-(auto|contain|none)",({1:e="",2:t})=>({["overscroll-behavior"+e]:t})),o("(static|fixed|absolute|relative|sticky)","position"),r("-?inset(-[xy])?(?:$|-)","inset",({1:e,_:t})=>({top:e!="-x"&&t,right:e!="-y"&&t,bottom:e!="-x"&&t,left:e!="-y"&&t})),r("-?(top|bottom|left|right)(?:$|-)","inset"),o("(visible|collapse)","visibility"),o("invisible",{visibility:"hidden"}),r("-?z-","zIndex"),o("flex-((row|col)(-reverse)?)","flexDirection",A),o("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),r("(flex-(?:grow|shrink))(?:$|-)"),r("(flex)-"),r("grow(?:$|-)","flexGrow"),r("shrink(?:$|-)","flexShrink"),r("basis-","flexBasis"),r("-?(order)-"),"-?(order)-(\\d+)",r("grid-cols-","gridTemplateColumns"),o("grid-cols-(\\d+)","gridTemplateColumns",L),r("col-","gridColumn"),o("col-(span)-(\\d+)","gridColumn",R),r("col-start-","gridColumnStart"),o("col-start-(auto|\\d+)","gridColumnStart"),r("col-end-","gridColumnEnd"),o("col-end-(auto|\\d+)","gridColumnEnd"),r("grid-rows-","gridTemplateRows"),o("grid-rows-(\\d+)","gridTemplateRows",L),r("row-","gridRow"),o("row-(span)-(\\d+)","gridRow",R),r("row-start-","gridRowStart"),o("row-start-(auto|\\d+)","gridRowStart"),r("row-end-","gridRowEnd"),o("row-end-(auto|\\d+)","gridRowEnd"),o("grid-flow-((row|col)(-dense)?)","gridAutoFlow",e=>v(A(e))),o("grid-flow-(dense)","gridAutoFlow"),r("auto-cols-","gridAutoColumns"),r("auto-rows-","gridAutoRows"),r("gap-x(?:$|-)","gap","columnGap"),r("gap-y(?:$|-)","gap","rowGap"),r("gap(?:$|-)","gap"),"(justify-(?:items|self))-",o("justify-","justifyContent",O),o("(content|items|self)-",e=>({["align-"+e[1]]:O(e)})),o("(place-(content|items|self))-",({1:e,$$:t})=>({[e]:("wun".includes(t[3])?"space-":"")+t})),r("p([xytrbl])?(?:$|-)","padding",h("padding")),r("-?m([xytrbl])?(?:$|-)","margin",h("margin")),r("-?space-(x|y)(?:$|-)","space",({1:e,_:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[e]]:`calc(${t} * calc(1 - var(--tw-space-${e}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[e]]:`calc(${t} * var(--tw-space-${e}-reverse))`}})),o("space-(x|y)-reverse",({1:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${e}-reverse`]:"1"}})),r("w-","width"),r("min-w-","minWidth"),r("max-w-","maxWidth"),r("h-","height"),r("min-h-","minHeight"),r("max-h-","maxHeight"),r("font-","fontWeight"),r("font-","fontFamily",({_:e})=>typeof(e=U(e))[1]=="string"?{fontFamily:m(e)}:{fontFamily:m(e[0]),...e[1]}),o("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),o("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),o("italic","fontStyle"),o("not-italic",{fontStyle:"normal"}),o("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:e,2:t="",3:a})=>t=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(a?"numeric-fraction":"pt".includes(t[0])?"numeric-spacing":t?"numeric-figure":e)]:e,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...b({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),r("tracking-","letterSpacing"),r("leading-","lineHeight"),o("list-(inside|outside)","listStylePosition"),r("list-","listStyleType"),o("list-","listStyleType"),r("placeholder-opacity-","placeholderOpacity",({_:e})=>({"&::placeholder":{"--tw-placeholder-opacity":e}})),s("placeholder-",{property:"color",selector:"&::placeholder"}),o("text-(left|center|right|justify|start|end)","textAlign"),o("text-(ellipsis|clip)","textOverflow"),r("text-opacity-","textOpacity","--tw-text-opacity"),s("text-",{property:"color"}),r("text-","fontSize",({_:e})=>typeof e=="string"?{fontSize:e}:{fontSize:e[0],...typeof e[1]=="string"?{lineHeight:e[1]}:e[1]}),r("indent-","textIndent"),o("(overline|underline|line-through)","textDecorationLine"),o("no-underline",{textDecorationLine:"none"}),r("underline-offset-","textUnderlineOffset"),s("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),r("decoration-","textDecorationThickness"),o("decoration-","textDecorationStyle"),o("(uppercase|lowercase|capitalize)","textTransform"),o("normal-case",{textTransform:"none"}),o("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),o("align-","verticalAlign"),o("whitespace-","whiteSpace"),o("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),o("break-words",{overflowWrap:"break-word"}),o("break-all",{wordBreak:"break-all"}),o("break-keep",{wordBreak:"keep-all"}),s("caret-",{opacityVariable:!1,opacitySection:"opacity"}),s("accent-",{opacityVariable:!1,opacitySection:"opacity"}),o("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:e})=>`linear-gradient(to ${u(e," ")},var(--tw-gradient-stops))`),s("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-from":e.value,"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),s("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-gradient-to":e.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${e.value},var(--tw-gradient-to)`})),s("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),o("bg-(fixed|local|scroll)","backgroundAttachment"),o("bg-origin-(border|padding|content)","backgroundOrigin",({1:e})=>e+"-box"),o(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),o("bg-blend-","backgroundBlendMode"),o("bg-clip-(border|padding|content|text)","backgroundClip",({1:e})=>e+(e=="text"?"":"-box")),r("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),s("bg-",{section:"backgroundColor"}),r("bg-","backgroundImage"),r("bg-","backgroundPosition"),o("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",v),r("bg-","backgroundSize"),r("rounded(?:$|-)","borderRadius"),r("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:e,_:t})=>{let a={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[e]||[e,e];return{[`border-${u(a[0])}-radius`]:t,[`border-${u(a[1])}-radius`]:t}}),o("border-(collapse|separate)","borderCollapse"),r("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),o("border-(solid|dashed|dotted|double|none)","borderStyle"),r("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:e,_:t})=>({...b({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(e||"-x")]:t,["--tw-border-spacing"+(e||"-y")]:t,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),s("border-([xytrbl])-",{section:"borderColor"},h("border","Color")),s("border-"),r("border-([xytrbl])(?:$|-)","borderWidth",h("border","Width")),r("border(?:$|-)","borderWidth"),r("divide-opacity(?:$|-)","divideOpacity",({_:e})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":e}})),o("divide-(solid|dashed|dotted|double|none)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:e}})),o("divide-([xy]-reverse)",({1:e})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+e]:"1"}})),r("divide-([xy])(?:$|-)","divideWidth",({1:e,_:t})=>{let a={x:"lr",y:"tb"}[e];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${e}-reverse`]:"0",[`border-${u(a[0])}Width`]:`calc(${t} * calc(1 - var(--tw-divide-${e}-reverse)))`,[`border-${u(a[1])}Width`]:`calc(${t} * var(--tw-divide-${e}-reverse))`}}}),s("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),r("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),s("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),r("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),o("ring-inset",{"--tw-ring-inset":"inset"}),s("ring-",{property:"--tw-ring-color"}),r("ring(?:$|-)","ringWidth",({_:e},{theme:t})=>({...b({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":t("ringOffsetWidth","","0px"),"--tw-ring-offset-color":D(t("ringOffsetColor","","#fff")),"--tw-ring-color":D(t("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":t("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${e} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),s("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:e})=>({"--tw-shadow-color":e.value,"--tw-shadow":"var(--tw-shadow-colored)"})),r("shadow(?:$|-)","boxShadow",({_:e})=>({...b({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":m(e),"--tw-shadow-colored":m(e).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),r("(opacity)-"),o("mix-blend-","mixBlendMode"),...E(),...E("backdrop-"),r("transition(?:$|-)","transitionProperty",(e,{theme:t})=>({transitionProperty:m(e),transitionTimingFunction:e._=="none"?void 0:m(t("transitionTimingFunction","")),transitionDuration:e._=="none"?void 0:m(t("transitionDuration",""))})),r("duration(?:$|-)","transitionDuration","transitionDuration",m),r("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",m),r("delay(?:$|-)","transitionDelay","transitionDelay",m),r("animate(?:$|-)","animation",(e,{theme:t,h:a,e:n})=>{let l=m(e),c=l.split(" "),g=t("keyframes",c[0]);return g?{["@keyframes "+(c[0]=n(a(c[0])))]:g,animation:c.join(" ")}:{animation:l}}),"(transform)-(none)",o("transform",F),o("transform-(cpu|gpu)",({1:e})=>({"--tw-transform":j(e=="gpu")})),r("scale(-[xy])?-","scale",({1:e,_:t})=>({["--tw-scale"+(e||"-x")]:t,["--tw-scale"+(e||"-y")]:t,...F()})),r("-?(rotate)-","rotate",C),r("-?(translate-[xy])-","translate",C),r("-?(skew-[xy])-","skew",C),o("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",v),"(appearance)-",r("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",r("(cursor)-"),"(cursor)-",o("snap-(none)","scroll-snap-type"),o("snap-(x|y|both)",({1:e})=>({...b({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":e+" var(--tw-scroll-snap-strictness)"})),o("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),o("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),o("snap-(normal|always)","scroll-snap-stop"),o("scroll-(auto|smooth)","scroll-behavior"),r("scroll-p([xytrbl])?(?:$|-)","padding",h("scroll-padding")),r("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",h("scroll-margin")),o("touch-(auto|none|manipulation)","touch-action"),o("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:e,2:t,3:a})=>({...b({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${t?"pan-x":a?"pan-y":e}`]:e,"touch-action":"var(--tw-touch-action)"})),o("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),o("outline",{outlineStyle:"solid"}),o("outline-(dashed|dotted|double)","outlineStyle"),r("-?(outline-offset)-"),s("outline-",{opacityVariable:!1,opacitySection:"opacity"}),r("outline-","outlineWidth"),"(pointer-events)-",r("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:e})=>({x:"horizontal",y:"vertical"})[e]||e||"both"],o("select-(none|text|all|auto)","userSelect"),s("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),s("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),r("stroke-","strokeWidth"),o("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),o("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function v(e){return(typeof e=="string"?e:e[1]).replace(/-/g," ").trim()}function A(e){return(typeof e=="string"?e:e[1]).replace("col","column")}function u(e,t="-"){let a=[];for(let n of e)a.push({t:"top",r:"right",b:"bottom",l:"left"}[n]);return a.join(t)}function m(e){return e&&""+(e._||e)}function O({$$:e}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[e[3]||""]||"")+e}function h(e,t=""){return({1:a,_:n})=>{let l={x:"lr",y:"tb"}[a]||a+a;return l?{...S(e+"-"+u(l[0])+t,n),...S(e+"-"+u(l[1])+t,n)}:S(e+t,n)}}function E(e=""){let t=["blur","brightness","contrast","grayscale","hue-rotate","invert",e&&"opacity","saturate","sepia",!e&&"drop-shadow"].filter(Boolean),a={};for(let n of t)a[`--tw-${e}${n}`]="var(--tw-empty,/*!*/ /*!*/)";return a={...b(a),[`${e}filter`]:t.map(n=>`var(--tw-${e}${n})`).join(" ")},[`(${e}filter)-(none)`,o(`${e}filter`,a),...t.map(n=>r(`${n[0]=="h"?"-?":""}(${e}${n})(?:$|-)`,n,({1:l,_:c})=>({[`--tw-${l}`]:U(c).map(g=>`${n}(${g})`).join(" "),...a})))]}function C({1:e,_:t}){return{["--tw-"+e]:t,...F()}}function F(){return{...b({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":j()}),transform:"var(--tw-transform)"}}function j(e){return[e?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function R({1:e,2:t}){return`${e} ${t} / ${e} ${t}`}function L({1:e}){return`repeat(${e},minmax(0,1fr))`}function b(e){return{"@layer defaults":{"*,::before,::after":e,"::backdrop":e}}} + +import{normalize as V,arbitrary as k}from"./core.js"; + +var z=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:e})=>`@media (orientation:${e})`],["contrast-(more|less)",({1:e})=>`@media (prefers-contrast:${e})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:e})=>`&::${e}`],["(marker|selection)",({1:e})=>`& *::${e},&::${e}`],["file","&::file-selector-button"],["(first|last|only)",({1:e})=>`&:${e}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:e,$$:t},a)=>t&&`&[${e}-${a.theme(e,t)||k(t,"",a)||`${t}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:e,3:t="",4:a,5:n="",6:l=t},{e:c,h:g,v:x})=>{let p=V(n)||(a[0]=="["?a:x(a.slice(1)));return`${(p.includes("&")?p:"&"+p).replace(/&/g,`:merge(.${c(g(e+l))})`)}${e[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:e})=>`[dir="${e}"] &`],["supports-",({$$:e},t)=>{if(e&&(e=t.theme("supports",e)||k(e,"",t)),e)return e.includes(":")||(e+=":var(--tw)"),/^\w*\s*\(/.test(e)||(e=`(${e})`),`@supports ${e.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:e},t)=>{if(e&&(e=t.theme("screens",e)||k(e,"",t)),typeof e=="string")return`@media not all and (min-width:${e})`}],["min-",({$$:e},t)=>(e&&(e=k(e,"",t)),e&&`@media (min-width:${e})`)],[/^\[(.+)]$/,({1:e})=>/[&@]/.test(e)&&V(e).replace(/[}]+$/,"").split("{")]];function $({colors:e,disablePreflight:t}={}){return{preflight:t?void 0:W,theme:{...w,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...e}},variants:z,rules:T,finalize(a){return a.n&&a.d&&a.r.some(n=>/^&::(before|after)$/.test(n))&&!/(^|;)content:/.test(a.d)?{...a,d:"content:var(--tw-content);"+a.d}:a}}}var M={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},N={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},P={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},G={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},q={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Y={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},X={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},J={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},K={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Q={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Z={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},_={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},ee={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},te={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},oe={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},re={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},ae={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},ne={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},ie={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},le={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},se={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},ce={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},B={__proto__:null,slate:M,gray:N,zinc:P,neutral:G,stone:q,red:Y,orange:X,amber:J,yellow:K,lime:Q,green:Z,emerald:_,teal:ee,cyan:te,sky:oe,blue:re,indigo:ae,violet:ne,purple:ie,fuchsia:le,pink:se,rose:ce};function Oe({disablePreflight:e}={}){return $({colors:B,disablePreflight:e})}export{Oe as presetTailwind}; /* esm.sh - esbuild bundle(@twind/preset-autoprefix@1.0.7) denonext production */ -import{cssPropertyAlias,cssPropertyPrefixFlags,cssValuePrefixFlags}from"@twind/core";var P=[["-webkit-",1],["-moz-",2],["-ms-",4]];export function presetAutoprefix(){return({stringify:r})=>({stringify(s,e,l){let f="",t=cssPropertyAlias(s);t&&(f+=r(t,e,l)+";");let i=cssPropertyPrefixFlags(s),o=cssValuePrefixFlags(s,e);for(let a of P)i&a[1]&&(f+=r(a[0]+s,e,l)+";"),o&a[1]&&(f+=r(s,a[0]+e,l)+";");return f+r(s,e,l)}})} +import +{cssPropertyAlias,cssPropertyPrefixFlags,cssValuePrefixFlags} +from"./presets.js"; +var P=[["-webkit-",1],["-moz-",2],["-ms-",4]];export function presetAutoprefix(){return({stringify:r})=>({stringify(s,e,l){let f="",t=cssPropertyAlias(s);t&&(f+=r(t,e,l)+";");let i=cssPropertyPrefixFlags(s),o=cssValuePrefixFlags(s,e);for(let a of P)i&a[1]&&(f+=r(a[0]+s,e,l)+";"),o&a[1]&&(f+=r(s,a[0]+e,l)+";");return f+r(s,e,l)}})} /* esm.sh - esbuild bundle(style-vendorizer@2.2.3) denonext production */ diff --git a/deno.jsonc b/deno.jsonc index c605bb4..0af89c6 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -3,7 +3,8 @@ "react": "./bundled/preact/compat.js", "react/jsx-runtime": "./bundled/preact/compat.js", "@preact/signals": "./bundled/preact/signals.js", - "@twind/core": "https://esm.sh/@twind/core@1.1.3", + "@twind/core": "./bundled/twind/core.js", + "@twind/presets": "./bundled/twind/presets.js", ">able/": "./", ">able/app.tsx": "./app.tsx" diff --git a/run-browser.tsx b/run-browser.tsx index bd33596..33de2c3 100644 --- a/run-browser.tsx +++ b/run-browser.tsx @@ -1,13 +1,12 @@ import React from "react"; import * as TW from "@twind/core"; -import PreTailwind from "https://esm.sh/v135/@twind/preset-tailwind@1.1.3/es2022/preset-tailwind.mjs"; -import PreAutoprefix from "https://esm.sh/v135/@twind/preset-autoprefix@1.0.7/es2022/preset-autoprefix.mjs"; +import * as Pre from "@twind/presets"; import * as App from ">able/app.tsx"; const Configure = { theme: {}, - presets: [PreAutoprefix(), PreTailwind()], + presets: [Pre.presetAutoprefix(), Pre.presetTailwind()], hash: false } as TW.TwindUserConfig;