Comparing version 0.3.3 to 0.3.4
1560
browser/twind.js
@@ -1,2 +0,1558 @@ | ||
var k=e=>typeof e=="string",ve=e=>e!=null&&typeof e=="object",F=e=>typeof e=="function",x=(e,t)=>!!~e.indexOf(t),g=(e,t="-")=>e.join(t),L=(e,t)=>g(e.filter(Boolean),t),l=(e,t=1)=>e.slice(t),Re=e=>e,ke=e=>e[0].toUpperCase()+l(e),$e=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),q=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=l(e)),n+e.replace(/[!./:#]/g,"\\$&")}),re=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},Pe=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Ee=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((c,p)=>(c[L([r,p,i])]=t,c),{})}},Ae=Ee(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),G=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Z=Ee(G),o,O,w,K=e=>(t,n,r)=>({[e]:r+((o=g(t))&&"-"+o)}),m=(e,t)=>n=>({[e]:g(n,t)}),S=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),v=(e,t)=>(n,r)=>e(n,r,t),P=K("display"),Y=K("position"),U=K("textTransform"),_=K("textDecoration"),Q=K("fontStyle"),E=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),ee=(e,{theme:t},n)=>({[n]:t("inset",e)}),J=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",l(e))}),oe=(e,t)=>Math.round(parseInt(e,16)*t),ie=(e,t,n)=>e&&e[0]==="#"?`rgba(${oe(e.substr(1,o=(e.length-1)/3),w=[17,1,.062272][o-1])},${oe(e.substr(1+o,o),w)},${oe(e.substr(1+2*o,o),w)},var(--tw-${t}${n?","+n:""}))`:e,te=(e,t,n)=>n&&(o=ie(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},je=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(w=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[w]:"1"}:{[w]:"0",[L([i,o[0],s])]:(O=t(r,l(e)))&&`calc(${O} * var(${w}))`,[L([i,o[1],s])]:O&&[O,`calc(${O} * calc(1 - var(${w})))`]}:void 0,Ie=(e,t)=>({[e]:(x("wun",(t[0]||"")[3])?"space-":"")+t[0]}),se=e=>t=>x(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:Ie(e,t),Fe=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Oe=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return m("borderStyle")(e);case"collapse":case"separate":return m("borderCollapse")(e);case"opacity":return J(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:te("borderColor",n,t(n+"Color",e))},ae=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",ce=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,ae()]},De=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",We=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},ze=e=>(t,n,r)=>r[1]?Z(n.theme(e,t),r[1],e):S(e)(t,n,r),D=ze("padding"),W=ze("margin"),He=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${ke(o)}`]:t(o,l(e))},Me={group:(e,{tag:t})=>t("group"),hidden:v(P,"none"),inline:P,block:P,contents:P,flow:P,table:(e,t,n)=>x(["auto","fixed"],e[0])?{tableLayout:e[0]}:P(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:g(e[0]==="col"?["column",...l(e)]:e)};case"nowrap":case"wrap":return{flexWrap:g(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:P(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:g(l(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:g(e[1]==="col"?["column",...l(e,2)]:l(e)," ")}}return P(e,t,n)},auto:e=>x(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${g(l(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:Y,fixed:Y,absolute:Y,relative:Y,sticky:Y,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:m("appearance"),cursor:m("cursor"),float:m("float"),clear:m("clear"),top:ee,right:ee,bottom:ee,left:ee,inset:(e,{theme:t})=>(o=G(e[0]))?Z(t("inset",l(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:_,"line-through":_,"no-underline":v(_,"none"),"text-underline":v(_,"underline"),"text-no-underline":v(_,"none"),"text-line-through":v(_,"line-through"),uppercase:U,lowercase:U,capitalize:U,"normal-case":v(U,"none"),"text-normal-case":v(U,"none"),italic:Q,"not-italic":v(Q,"normal"),"font-italic":v(Q,"italic"),"font-not-italic":v(Q,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:S("fontWeight")(e,t,n),items:e=>({alignItems:x(["start","end"],e[0])?`flex-${e[0]}`:g(e)}),content:se("alignContent"),justify:se("justifyContent"),self:se("alignSelf"),place:e=>Ie("place-"+e[0],l(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:Fe("column"),row:Fe("row"),duration:S("transitionDuration"),delay:S("transitionDelay"),tracking:S("letterSpacing"),leading:S("lineHeight"),z:S("zIndex"),opacity:S(),ease:S("transitionTimingFunction"),p:D,py:D,px:D,pt:D,pr:D,pb:D,pl:D,m:W,my:W,mx:W,mt:W,mr:W,mb:W,ml:W,w:S("width"),h:S("height"),min:He,max:He,fill:S(),order:S(),origin:m("transformOrigin"," "),select:m("userSelect"),"pointer-events":m("pointerEvents"),align:m("verticalAlign"),whitespace:m("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:E("ordinal"),"slashed-zero":E("slashed-zero"),"lining-nums":E("numeric-figure"),"oldstyle-nums":E("numeric-figure"),"proportional-nums":E("numeric-spacing"),"tabular-nums":E("numeric-spacing"),"diagonal-fractions":E("numeric-fraction"),"stacked-fractions":E("numeric-fraction"),overflow:e=>x(["ellipsis","clip"],e[0])?m("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:m("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--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",transform:ae(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,ae()]},scale:ce,translate:ce,skew:ce,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",l(e))}:S("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:S("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return U([],o,e[0]);case"opacity":return J(e,t,n)}let r=t("fontSize",e,"");return r?k(r)?{fontSize:r}:{fontSize:r[0],...k(r[1])?{lineHeight:r[1]}:r[1]}:te("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return m("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return m("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&m("backgroundRepeat")(e);case"auto":case"cover":case"contain":return m("backgroundSize")(e);case"repeat":return x("xy",e[1])?m("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return J(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=G(e[2])))return{backgroundImage:`linear-gradient(to ${g(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-radient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:te("backgroundColor","bg",t("backgroundColor",e))},from:We,to:We,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>G(e[0])?Z(t.theme("borderWidth",l(e)),e[0],"border","width"):Oe(e,t,n),divide:(e,t,n)=>(o=je(e,t,n,"divideWidth","border","width")||Oe(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=je(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?J(e,t,n):te("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,De()]},animate:(e,{theme:t,tag:n})=>{if(w=t("animation",e)){let r=w.split(" ");return(o=t("keyframes",r[0],O={}))!==O?(w=n(r[0]))&&{animation:w+" "+g(l(r)," "),["@keyframes "+w]:o}:{animation:w}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return J(e,t,n);case"offset":return(o=t("ringOffsetWidth",l(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",l(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${ie(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":De()}:{"--tw-ring-opacity":"1","--tw-ring-color":ie(t("ringColor",e),"ring-opacity")}},object:e=>x(["contain","cover","fill","none","scale"],e[0])?m("objectFit")(e):m("objectPosition"," ")(e),list:e=>m(x(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>Ae(t.theme("borderRadius",l(e),""),e[0],"border","radius")||S("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:L([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=c=>(o=i&&(k(i)?i:i[c]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((c,p)=>((o=n[p])&&(c[`@media (min-width: ${o})`]={"&":{"max-width":o,...s(p)}}),c),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...s("xs")})}},Ne=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-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"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Le="__tw-in-js",it=e=>{let t=self[Le];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Le,e&&(t.nonce=e)),t},st=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),le=({nonce:e,target:t=it(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),de=()=>({insert:()=>{}}),ge=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:g([t,...n],".")},i)},report({id:t,...n}){let r=`[${t}] ${JSON.stringify(n)}`,i=(new Error(r).stack||r).split("at ");for(let s;(s=i.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(s););e(i.join("at "))}}),pe=ge(e=>console.warn(e)),at=ge(e=>{throw new Error(e)});import{prefixProperty as ct,prefixValue as lt}from"tiny-css-prefixer";var ue=(e,t)=>{let n=`${e}:${lt(e,t)}`,r=n,i=ct(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},fe=(e,t)=>`${e}:${t}`,X=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},A=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},$=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},b=e=>t=>t(e),Ue={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...$(4,"rem",4,.5,.5),...$(12,"rem",4,5),14:"3.5rem",...$(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"},backgroundColor:b("colors"),backgroundImage:{none:"none"},backgroundOpacity:b("opacity"),borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:b("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:{DEFAULT:"1px",...A(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 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:b("borderColor"),divideOpacity:b("borderOpacity"),divideWidth:b("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},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:b("spacing"),gradientColorStops:b("colors"),height:e=>({auto:"auto",...e("spacing"),...X(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...X(2,4),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:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...$(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({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",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...$(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...$(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:b("spacing"),placeholderColor:b("colors"),placeholderOpacity:b("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:b("colors"),ringOffsetWidth:A(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...A(8,"px")},rotate:{...A(2,"deg"),...A(12,"deg",3),...A(180,"deg",45)},scale:{0:"0",50:".5",75:".75",...$(110,"",100,90,5),125:"1.25",150:"1.5"},skew:{...A(2,"deg"),...A(12,"deg",3)},space:b("spacing"),stroke:{current:"currentColor"},strokeWidth:$(2),textColor:b("colors"),textOpacity:b("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:b("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,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:e=>({...e("spacing"),...X(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...X(2,6),...X(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...$(50,"",1,0,10)}},dt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,ve(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),gt={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},_e=e=>{let t=new Map,n={...Ue,...e},r=(c,p)=>{let y=c.split(".");return s(y[0],y.length>1?l(y):void 0,p)},i=(c,p)=>{let y=c&&c[p],u=F(y)?y(r,gt):y;return u&&p==="colors"?dt(u):u},s=(c,p,y)=>{let u=t.get(c);if(u||t.set(c,u={...i(n,c),...i(n.extend,c)}),p!=null){let f=u[(Array.isArray(p)?g(p):p)||"DEFAULT"];return f==null?y:Array.isArray(f)&&!x(["fontSize","outline"],c)?g(f,","):f}return u};return s},j,V,z=(e="")=>(j.push(e),""),me=e=>{j.length=Math.max(j.lastIndexOf("")+~~e,0)},pt=e=>e&&e[0]!==":",ut=e=>e[0]===":",Ve=(e,t)=>{V.push({v:j.filter(ut),d:e,n:t,$:""})},Be=e=>{let t=e[0]==="-";t&&(e=l(e));let n=g(j.filter(pt));return Ve(e==="&"?n:(n&&n+"-")+e,t),""},he=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&z(":"+r);break;case"(":r=r&&z(r),z();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&Be(r),me(n!==")");break;default:r+=n}r&&(t?z(":"+r):r.slice(-1)==="-"?z(r.slice(0,-1)):Be(r))},Ge=e=>{z(),xe(e),me()},ft=(e,t)=>{if(t){z();let n=x("tbu",(typeof t)[1]);he(e,n),n&&Ge(t),me()}},xe=e=>{switch(typeof e){case"string":he(e);break;case"function":Ve(e);break;case"object":Array.isArray(e)?e.forEach(Ge):e&&Object.keys(e).forEach(t=>{ft(t,e[t])})}},Ke=new WeakMap,mt=e=>{let t=Ke.get(e);return t||(t=e.map(n=>{let r=V=[];he(n);let i=[...j];return V=[],s=>{V.push(...r),j=[...i],s&&xe(s)}}),Ke.set(e,t)),t},Ye=e=>(j=[],V=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?mt(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(xe),V),Je=(e,t)=>n=>{if(F(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=g(r.slice(0,i)),c=e[s];if(c)return F(c)?c(l(r,i),t,s):k(c)?t.tw(c):c}},ne={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)"},Xe=(e,{theme:t,tag:n})=>{let r=(i,s)=>{let c=t("screens",l(s),"");return c?{[`@media (min-width: ${c})`]:i}:s===":dark"&&e==="class"?{[".dark &"]:i}:s.slice(1,7)==="group-"?{[`.${q(n("group"))}:${l(s,7)} &`]:i}:{[ne[s]||"&"+s]:i}};return(i,s)=>s.v.reduceRight(r,i)},T,Se=e=>(((T=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+T[1]/(T[2]?15:1)/10:0)&31)<<23,qe=e=>{T=0;for(let t=e.length;t--;)T+=x("-:,",e[t]);return T},be=e=>(qe(e)&15)<<18,ht=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],xt=e=>1<<(~(T=ht.indexOf(e.replace(/^:group-/,":").slice(3,8)))?T:17),Ze=(e,t)=>(n,r)=>n|((T=e("screens",l(r),""))?Se(T):r===":dark"?1<<22:(T=t[r]||r)[0]==="@"?be(T):xt(r)),St=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,Qe=e=>e[0]==="-"?0:qe(e)+((T=St.exec(e))?+!!T[1]||-!!T[2]:0)+1,ye=(e,t)=>t+"{"+e+"}",et=(e,{theme:t,tag:n})=>{let r=(u,f)=>"--"+n(f),i=u=>`${u}`.replace(/--(tw-[\w-]+)\b/g,r),s=(u,f)=>(u=i(u),Array.isArray(f)?g(f.filter(Boolean).map(C=>e(u,i(C))),";"):e(u,i(f))),c,p=(u,f,C,B)=>{let H="",M=0,N=0;Object.keys(B).forEach(a=>{let d=B[a];if(x("rg",(typeof d)[5])||Array.isArray(d)){let h=$e(a);N+=1,M=Math.max(M,Qe(h)),H=(H&&H+";")+s(h,d)}else if(d)if(a[0]==="@")if(a[1]==="f")p([],a,0,d);else if(a[1]==="k"){let h=c.length;p([],"",0,d);let R=c.splice(h,c.length-h);c.push({r:ye(g(R.map(I=>I.r),""),a),p:R.reduce((I,ot)=>I+ot.p,0)})}else p([...u,a],f,C|(Se(a)||be(a)),d);else{let h=f&&x(a,"&");p(u,h?f.replace(/([^,])+/g,R=>a.replace(/([^,])+/g,I=>x(I,"&")?I.replace(/&/g,R):I)):a,h?C:0,d)}}),N&&c.push({r:u.reduceRight(ye,ye(H,f)),p:C*(1<<8)+(((M||15)&15)<<4|Math.max(0,15-N)&15)})},y=Ze(t,ne);return(u,f,C)=>(c=[],p([],f?"."+q(f):"",C?C.v.reduceRight(y,0):0,u),c)},tt=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:c})=>{if(!i.has(s)){let p=Pe(r,c);try{e.insert(s,p),i.add(s),r.splice(p,0,c)}catch(y){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:y},n)}}}},Te=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,we=(e,t=e.d)=>{if(F(t))return"";let n=g(e.v,"");return(n&&l(n)+":")+(e.n?"-":"")+t},nt=(e={})=>{let t=_e(e.theme),n=e.mode||pe,r=Te(e.hash,!1,!1,re),i={},s={tw:(...a)=>M(a),theme:(a,d,h)=>{d!=null&&!d.length&&(d="DEFAULT");let R=t(a,d,h)||n.unknown(a,d==null||Array.isArray(d)?d:d.split("."),h!=null,s);return i.n&&R&&k(R)?`calc(${R} * -1)`:R},tag:a=>r?r(a):a},c=Je({...Me,...e.plugins},s),p=a=>{let d=i;i=a;try{return c(a)}finally{i=d}},y=Xe(e.darkMode||"media",s),u=et(Te(e.prefix,ue,fe),s),f=tt(e.injector||(typeof window=="undefined"?de():le(e)),n,s),C=new Map,B=new WeakMap,H=a=>{i.v?.length&&(a={...a,v:[...i.v,...a.v],$:""}),a.$||(a.$=we(a)||we(a,B.get(a.d)));let d=C.get(a.$);if(d==null){let h=p(a);a.$||(a.$=re(JSON.stringify(h)),B.set(a.d,a.$),a.$=we(a,a.$)),k(h)?d=h:h?(h=y(h,a),d=r?r(JSON.stringify(h)):a.$,u(h,d,a).forEach(f)):(n.report({id:"UNKNOWN_DIRECTIVE",rule:a.$},s),d=""),C.set(a.$,d)}return d},M=a=>Ye(a).map(H).filter(Boolean).join(" "),N=Te(e.preflight,Re,!1);if(N){let a=Ne(t);u(N(a,s)||a).forEach(f)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:M}},Ce=e=>{let t=r=>(n(),t(r)),n=r=>{({process:t,init:n}=nt(r))};return e&&n(e),{tw:(...r)=>t(r),setup:r=>n(r)}};var rt=Ce(),{tw:bt}=rt,{setup:yt}=rt;export{ue as autoprefix,Ce as create,le as cssomInjector,ge as mode,de as noOpInjector,fe as noprefix,yt as setup,at as strict,bt as tw,st as virtualInjector,pe as warn}; | ||
// src/internal/is.ts | ||
var string = (value) => typeof value === "string"; | ||
var object = (value) => value != null && typeof value === "object"; | ||
var fn = (value) => typeof value === "function"; | ||
// src/internal/util.ts | ||
var includes = (value, search) => !!~value.indexOf(search); | ||
var join = (parts, separator = "-") => parts.join(separator); | ||
var joinTruthy = (parts, separator) => join(parts.filter(Boolean), separator); | ||
var tail = (array, startIndex = 1) => array.slice(startIndex); | ||
var identity = (value) => value; | ||
var capitalize = (value) => value[0].toUpperCase() + tail(value); | ||
var hyphenate = (value) => value.replace(/[A-Z]/g, "-$&").toLowerCase(); | ||
var escape = typeof CSS !== "undefined" && CSS.escape || ((className) => { | ||
const firstCodeUnit = className.charCodeAt(0); | ||
let firstChar = ""; | ||
if (firstCodeUnit >= 48 && firstCodeUnit <= 57) { | ||
firstChar = "\\" + firstCodeUnit.toString(16) + " "; | ||
className = tail(className); | ||
} | ||
return firstChar + className.replace(/[!./:#]/g, "\\$&"); | ||
}); | ||
var cyrb32 = (value) => { | ||
let h = 9; | ||
for (let index = value.length; index--; ) { | ||
h = Math.imul(h ^ value.charCodeAt(index), 1597334677); | ||
} | ||
return "tw-" + ((h ^ h >>> 9) >>> 0).toString(36); | ||
}; | ||
var sortedInsertionIndex = (array, element) => { | ||
let high = array.length; | ||
if (high === 0) | ||
return 0; | ||
for (let low = 0; low < high; ) { | ||
const pivot = high + low >> 1; | ||
if (array[pivot] <= element) { | ||
low = pivot + 1; | ||
} else { | ||
high = pivot; | ||
} | ||
} | ||
return high; | ||
}; | ||
// src/tailwind/helpers.ts | ||
var positions = (resolve) => (value, position2, prefix2, suffix) => { | ||
if (value) { | ||
const properties = position2 && resolve(position2); | ||
if (properties && properties.length > 0) { | ||
return properties.reduce((declarations, property2) => { | ||
declarations[joinTruthy([prefix2, property2, suffix])] = value; | ||
return declarations; | ||
}, {}); | ||
} | ||
} | ||
}; | ||
var corners = positions((key) => ({ | ||
t: ["top-left", "top-right"], | ||
r: ["top-right", "bottom-right"], | ||
b: ["bottom-left", "bottom-right"], | ||
l: ["bottom-left", "top-left"], | ||
tl: ["top-left"], | ||
tr: ["top-right"], | ||
bl: ["bottom-left"], | ||
br: ["bottom-right"] | ||
})[key]); | ||
var expandEdges = (key) => { | ||
const parts = ({x: "lr", y: "tb"}[key] || key || "").split("").sort(); | ||
for (let index = parts.length; index--; ) { | ||
if (!(parts[index] = { | ||
t: "top", | ||
r: "right", | ||
b: "bottom", | ||
l: "left" | ||
}[parts[index]])) | ||
return; | ||
} | ||
if (parts.length) | ||
return parts; | ||
}; | ||
var edges = positions(expandEdges); | ||
// src/tailwind/plugins.ts | ||
var _; | ||
var __; | ||
var $; | ||
var property = (property2) => (params, context, id) => ({ | ||
[property2]: id + ((_ = join(params)) && "-" + _) | ||
}); | ||
var propertyValue = (property2, separator) => (params) => ({ | ||
[property2]: join(params, separator) | ||
}); | ||
var themeProperty = (section) => (params, {theme: theme3}, id) => ({ | ||
[section || id]: theme3(section || id, params) | ||
}); | ||
var alias = (directive, name) => (params, context) => directive(params, context, name); | ||
var display = property("display"); | ||
var position = property("position"); | ||
var textTransform = property("textTransform"); | ||
var textDecoration = property("textDecoration"); | ||
var fontStyle = property("fontStyle"); | ||
var fontVariantNumeric = (key) => (params, context, id) => ({ | ||
["--tw-" + key]: id, | ||
fontVariantNumeric: "var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)" | ||
}); | ||
var inset = (params, {theme: theme3}, id) => ({[id]: theme3("inset", params)}); | ||
var opacityProperty = (params, theme3, id, section = id) => ({ | ||
[`--tw-${id}-opacity`]: theme3(section + "Opacity", tail(params)) | ||
}); | ||
var parseColorComponent = (chars, factor) => Math.round(parseInt(chars, 16) * factor); | ||
var asRGBA = (color, opacityProperty2, opacityDefault) => { | ||
if (color && color[0] === "#") { | ||
return `rgba(${parseColorComponent(color.substr(1, _ = (color.length - 1) / 3), $ = [17, 1, 0.062272][_ - 1])},${parseColorComponent(color.substr(1 + _, _), $)},${parseColorComponent(color.substr(1 + 2 * _, _), $)},var(--tw-${opacityProperty2}${opacityDefault ? "," + opacityDefault : ""}))`; | ||
} | ||
return color; | ||
}; | ||
var withOpacityFallback = (property2, kind, color) => color && (_ = asRGBA(color, kind + "-opacity")) && _ !== color ? { | ||
[`--tw-${kind}-opacity`]: "1", | ||
[property2]: [color, _] | ||
} : {[property2]: color}; | ||
var reversableEdge = (params, {theme: theme3}, id, section, prefix2, suffix) => (_ = {x: ["right", "left"], y: ["bottom", "top"]}[params[0]]) && ($ = `--tw-${id}-${params[0]}-reverse`) ? params[1] === "reverse" ? { | ||
[$]: "1" | ||
} : { | ||
[$]: "0", | ||
[joinTruthy([prefix2, _[0], suffix])]: (__ = theme3(section, tail(params))) && `calc(${__} * var(${$}))`, | ||
[joinTruthy([prefix2, _[1], suffix])]: __ && [__, `calc(${__} * calc(1 - var(${$})))`] | ||
} : void 0; | ||
var placeHelper = (property2, params) => ({ | ||
[property2]: (includes("wun", (params[0] || "")[3]) ? "space-" : "") + params[0] | ||
}); | ||
var contentPluginFor = (property2) => (params) => includes(["start", "end"], params[0]) ? {[property2]: `flex-${params[0]}`} : placeHelper(property2, params); | ||
var gridPlugin = (kind) => (params) => { | ||
switch (params[0]) { | ||
case "auto": | ||
return {[`grid-${kind}`]: "auto"}; | ||
case "span": | ||
return { | ||
[`grid-${kind}`]: params[1] === "full" ? "1 / -1" : `span ${params[1]} / span ${params[1]}` | ||
}; | ||
case "start": | ||
case "end": | ||
return { | ||
[`grid-${kind}-${params[0]}`]: params[1] | ||
}; | ||
} | ||
}; | ||
var border = (params, {theme: theme3}, id) => { | ||
switch (params[0]) { | ||
case "solid": | ||
case "dashed": | ||
case "dotted": | ||
case "double": | ||
case "none": | ||
return propertyValue("borderStyle")(params); | ||
case "collapse": | ||
case "separate": | ||
return propertyValue("borderCollapse")(params); | ||
case "opacity": | ||
return opacityProperty(params, theme3, id); | ||
} | ||
return (_ = theme3(id + "Width", params, "")) ? {borderWidth: _} : withOpacityFallback("borderColor", id, theme3(id + "Color", params)); | ||
}; | ||
var transform = (gpu) => (gpu ? "translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)" : "translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))") + " rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))"; | ||
var transformXYFunction = (params, context, id) => (_ = context.theme(id, params[1] || params[0])) && { | ||
[`--tw-${id}-x`]: params[0] !== "y" && _, | ||
[`--tw-${id}-y`]: params[0] !== "x" && _, | ||
transform: [`${id}${params[1] ? params[0].toUpperCase() : ""}(${_})`, transform()] | ||
}; | ||
var boxShadow = () => `var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)`; | ||
var gradientColorStop = (params, {theme: theme3}, id) => (_ = theme3("gradientColorStops", params)) && { | ||
["--tw-gradient-" + id]: _ | ||
}; | ||
var edgesPluginFor = (key) => (params, context, id) => id[1] ? edges(context.theme(key, params), id[1], key) : themeProperty(key)(params, context, id); | ||
var padding = edgesPluginFor("padding"); | ||
var margin = edgesPluginFor("margin"); | ||
var minMax = (params, {theme: theme3}, id) => (_ = {w: "width", h: "height"}[params[0]]) && { | ||
[_ = `${id}${capitalize(_)}`]: theme3(_, tail(params)) | ||
}; | ||
var corePlugins = { | ||
group: (params, {tag}) => tag("group"), | ||
hidden: alias(display, "none"), | ||
inline: display, | ||
block: display, | ||
contents: display, | ||
flow: display, | ||
table: (params, context, id) => includes(["auto", "fixed"], params[0]) ? {tableLayout: params[0]} : display(params, context, id), | ||
flex(params, context, id) { | ||
switch (params[0]) { | ||
case "row": | ||
case "col": | ||
return { | ||
flexDirection: join(params[0] === "col" ? ["column", ...tail(params)] : params) | ||
}; | ||
case "nowrap": | ||
case "wrap": | ||
return {flexWrap: join(params)}; | ||
case "grow": | ||
case "shrink": | ||
return {[`flex-${params[0]}`]: params[1] || "1"}; | ||
} | ||
return (_ = context.theme("flex", params, "")) ? {flex: _} : display(params, context, id); | ||
}, | ||
grid(params, context, id) { | ||
switch (params[0]) { | ||
case "cols": | ||
case "rows": | ||
return params.length > 1 && { | ||
[`grid-template-${params[0] === "cols" ? "columns" : params[0]}`]: params.length === 2 && Number(params[1]) ? `repeat(${params[1]},minmax(0,1fr))` : join(tail(params), " ") | ||
}; | ||
case "flow": | ||
return params.length > 1 && { | ||
gridAutoFlow: join(params[1] === "col" ? ["column", ...tail(params, 2)] : tail(params), " ") | ||
}; | ||
} | ||
return display(params, context, id); | ||
}, | ||
auto: (params) => includes(["cols", "rows"], params[0]) && (_ = params.length === 2 ? { | ||
auto: "auto", | ||
min: "min-content", | ||
max: "max-content", | ||
fr: "minmax(0,1fr)" | ||
}[params[1]] || `minmax(0,${params[1]})` : params.length > 2 && `minmax(${join(tail(params), ",")})`) && { | ||
[`grid-auto-${params[0] === "cols" ? "columns" : "rows"}`]: _ | ||
}, | ||
static: position, | ||
fixed: position, | ||
absolute: position, | ||
relative: position, | ||
sticky: position, | ||
visible: {visibility: "visible"}, | ||
invisible: {visibility: "hidden"}, | ||
antialiased: { | ||
WebkitFontSmoothing: "antialiased", | ||
MozOsxFontSmoothing: "grayscale" | ||
}, | ||
"subpixel-antialiased": { | ||
WebkitFontSmoothing: "auto", | ||
MozOsxFontSmoothing: "auto" | ||
}, | ||
truncate: { | ||
overflow: "hidden", | ||
whiteSpace: "nowrap", | ||
textOverflow: "ellipsis" | ||
}, | ||
"sr-only": { | ||
position: "absolute", | ||
width: "1px", | ||
height: "1px", | ||
padding: "0", | ||
margin: "-1px", | ||
overflow: "hidden", | ||
whiteSpace: "nowrap", | ||
clip: "rect(0,0,0,0)", | ||
borderWidth: "0" | ||
}, | ||
"not-sr-only": { | ||
position: "static", | ||
width: "auto", | ||
height: "auto", | ||
padding: "0", | ||
margin: "0", | ||
overflow: "visible", | ||
whiteSpace: "normal", | ||
clip: "auto" | ||
}, | ||
resize: (params) => ({ | ||
resize: {x: "vertical", y: "horizontal"}[params[0]] || params[0] || "both" | ||
}), | ||
box: (params) => ({"box-sizing": `${params[0]}-box`}), | ||
appearance: propertyValue("appearance"), | ||
cursor: propertyValue("cursor"), | ||
float: propertyValue("float"), | ||
clear: propertyValue("clear"), | ||
top: inset, | ||
right: inset, | ||
bottom: inset, | ||
left: inset, | ||
inset: (params, {theme: theme3}) => (_ = expandEdges(params[0])) ? edges(theme3("inset", tail(params)), params[0]) : (_ = theme3("inset", params)) && { | ||
top: _, | ||
right: _, | ||
bottom: _, | ||
left: _ | ||
}, | ||
underline: textDecoration, | ||
"line-through": textDecoration, | ||
"no-underline": alias(textDecoration, "none"), | ||
"text-underline": alias(textDecoration, "underline"), | ||
"text-no-underline": alias(textDecoration, "none"), | ||
"text-line-through": alias(textDecoration, "line-through"), | ||
uppercase: textTransform, | ||
lowercase: textTransform, | ||
capitalize: textTransform, | ||
"normal-case": alias(textTransform, "none"), | ||
"text-normal-case": alias(textTransform, "none"), | ||
italic: fontStyle, | ||
"not-italic": alias(fontStyle, "normal"), | ||
"font-italic": alias(fontStyle, "italic"), | ||
"font-not-italic": alias(fontStyle, "normal"), | ||
font: (params, context, id) => (_ = context.theme("fontFamily", params, "")) ? {fontFamily: _} : themeProperty("fontWeight")(params, context, id), | ||
items: (params) => ({ | ||
alignItems: includes(["start", "end"], params[0]) ? `flex-${params[0]}` : join(params) | ||
}), | ||
content: contentPluginFor("alignContent"), | ||
justify: contentPluginFor("justifyContent"), | ||
self: contentPluginFor("alignSelf"), | ||
place: (params) => placeHelper("place-" + params[0], tail(params)), | ||
overscroll: (params) => ({ | ||
["overscrollBehavior" + (params[1] ? "-" + params[0] : "")]: params[1] || params[0] | ||
}), | ||
col: gridPlugin("column"), | ||
row: gridPlugin("row"), | ||
duration: themeProperty("transitionDuration"), | ||
delay: themeProperty("transitionDelay"), | ||
tracking: themeProperty("letterSpacing"), | ||
leading: themeProperty("lineHeight"), | ||
z: themeProperty("zIndex"), | ||
opacity: themeProperty(), | ||
ease: themeProperty("transitionTimingFunction"), | ||
p: padding, | ||
py: padding, | ||
px: padding, | ||
pt: padding, | ||
pr: padding, | ||
pb: padding, | ||
pl: padding, | ||
m: margin, | ||
my: margin, | ||
mx: margin, | ||
mt: margin, | ||
mr: margin, | ||
mb: margin, | ||
ml: margin, | ||
w: themeProperty("width"), | ||
h: themeProperty("height"), | ||
min: minMax, | ||
max: minMax, | ||
fill: themeProperty(), | ||
order: themeProperty(), | ||
origin: propertyValue("transformOrigin", " "), | ||
select: propertyValue("userSelect"), | ||
"pointer-events": propertyValue("pointerEvents"), | ||
align: propertyValue("verticalAlign"), | ||
whitespace: propertyValue("whiteSpace"), | ||
"normal-nums": {fontVariantNumeric: "normal"}, | ||
ordinal: fontVariantNumeric("ordinal"), | ||
"slashed-zero": fontVariantNumeric("slashed-zero"), | ||
"lining-nums": fontVariantNumeric("numeric-figure"), | ||
"oldstyle-nums": fontVariantNumeric("numeric-figure"), | ||
"proportional-nums": fontVariantNumeric("numeric-spacing"), | ||
"tabular-nums": fontVariantNumeric("numeric-spacing"), | ||
"diagonal-fractions": fontVariantNumeric("numeric-fraction"), | ||
"stacked-fractions": fontVariantNumeric("numeric-fraction"), | ||
overflow: (params) => includes(["ellipsis", "clip"], params[0]) ? propertyValue("textOverflow")(params) : params[1] ? {[`overflow-${params[0]}`]: params[1]} : propertyValue("overflow")(params), | ||
transform: (params) => params[0] === "none" ? {transform: "none"} : { | ||
"--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", | ||
transform: transform(params[0] === "gpu") | ||
}, | ||
rotate: (params, {theme: theme3}) => (_ = theme3("rotate", params)) && { | ||
"--tw-rotate": _, | ||
transform: [`rotate(${_})`, transform()] | ||
}, | ||
scale: transformXYFunction, | ||
translate: transformXYFunction, | ||
skew: transformXYFunction, | ||
gap: (params, context, id) => (_ = {x: "column", y: "row"}[params[0]]) ? {[_ + "Gap"]: context.theme("gap", tail(params))} : themeProperty("gap")(params, context, id), | ||
stroke: (params, context, id) => (_ = context.theme("stroke", params, "")) ? {stroke: _} : themeProperty("strokeWidth")(params, context, id), | ||
outline: (params, {theme: theme3}) => (_ = theme3("outline", params)) && { | ||
outline: _[0], | ||
outlineOffset: _[1] | ||
}, | ||
break(params) { | ||
switch (params[0]) { | ||
case "normal": | ||
return { | ||
wordBreak: "normal", | ||
overflowWrap: "normal" | ||
}; | ||
case "words": | ||
return {overflowWrap: "break-word"}; | ||
case "all": | ||
return {wordBreak: "break-all"}; | ||
} | ||
}, | ||
text(params, {theme: theme3}, id) { | ||
switch (params[0]) { | ||
case "left": | ||
case "center": | ||
case "right": | ||
case "justify": | ||
return {textAlign: params[0]}; | ||
case "uppercase": | ||
case "lowercase": | ||
case "capitalize": | ||
return textTransform([], _, params[0]); | ||
case "opacity": | ||
return opacityProperty(params, theme3, id); | ||
} | ||
const fontSize = theme3("fontSize", params, ""); | ||
if (fontSize) { | ||
return string(fontSize) ? {fontSize} : { | ||
fontSize: fontSize[0], | ||
...string(fontSize[1]) ? {lineHeight: fontSize[1]} : fontSize[1] | ||
}; | ||
} | ||
return withOpacityFallback("color", "text", theme3("textColor", params)); | ||
}, | ||
bg(params, {theme: theme3}, id) { | ||
switch (params[0]) { | ||
case "fixed": | ||
case "local": | ||
case "scroll": | ||
return propertyValue("backgroundAttachment", ",")(params); | ||
case "bottom": | ||
case "center": | ||
case "left": | ||
case "right": | ||
case "top": | ||
return propertyValue("backgroundPosition", " ")(params); | ||
case "no": | ||
return params[1] === "repeat" && propertyValue("backgroundRepeat")(params); | ||
case "auto": | ||
case "cover": | ||
case "contain": | ||
return propertyValue("backgroundSize")(params); | ||
case "repeat": | ||
return includes("xy", params[1]) ? propertyValue("backgroundRepeat")(params) : {"background-repeat": params[1] || params[0]}; | ||
case "opacity": | ||
return opacityProperty(params, theme3, id, "background"); | ||
case "clip": | ||
return {backgroundClip: params[1] + (params[1] === "text" ? "" : "-box")}; | ||
case "gradient": | ||
if (params[1] === "to" && (_ = expandEdges(params[2]))) { | ||
return { | ||
backgroundImage: `linear-gradient(to ${join(_, " ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-radient-to,transparent)))` | ||
}; | ||
} | ||
} | ||
return (_ = theme3("backgroundImage", params, "")) ? {backgroundImage: _} : withOpacityFallback("backgroundColor", "bg", theme3("backgroundColor", params)); | ||
}, | ||
from: gradientColorStop, | ||
to: gradientColorStop, | ||
via: (params, {theme: theme3}) => (_ = theme3("gradientColorStops", params)) && { | ||
"--tw-gradient-stops": `var(--tw-gradient-from,transparent),${_},var(--tw-gradient-to,transparent)` | ||
}, | ||
border: (params, context, id) => expandEdges(params[0]) ? edges(context.theme("borderWidth", tail(params)), params[0], "border", "width") : border(params, context, id), | ||
divide: (params, context, id) => (_ = reversableEdge(params, context, id, "divideWidth", "border", "width") || border(params, context, id)) && { | ||
"&>:not([hidden])~:not([hidden])": _ | ||
}, | ||
space: (params, context, id) => (_ = reversableEdge(params, context, id, "space", "margin")) && { | ||
"&>:not([hidden])~:not([hidden])": _ | ||
}, | ||
placeholder: (params, {theme: theme3}, id) => (_ = params[0] === "opacity" ? opacityProperty(params, theme3, id) : withOpacityFallback("color", "placeholder", theme3("placeholderColor", params))) && { | ||
"&::placeholder": _ | ||
}, | ||
shadow: (params, {theme: theme3}) => (_ = theme3("boxShadow", params)) && { | ||
"--tw-shadow": _, | ||
boxShadow: [_, boxShadow()] | ||
}, | ||
animate: (params, {theme: theme3, tag}) => { | ||
if ($ = theme3("animation", params)) { | ||
const parts = $.split(" "); | ||
if ((_ = theme3("keyframes", parts[0], __ = {})) !== __) { | ||
return ($ = tag(parts[0])) && { | ||
animation: $ + " " + join(tail(parts), " "), | ||
["@keyframes " + $]: _ | ||
}; | ||
} | ||
return {animation: $}; | ||
} | ||
}, | ||
ring(params, {theme: theme3}, id) { | ||
switch (params[0]) { | ||
case "inset": | ||
return {"--tw-ring-inset": "inset"}; | ||
case "opacity": | ||
return opacityProperty(params, theme3, id); | ||
case "offset": | ||
return (_ = theme3("ringOffsetWidth", tail(params), "")) ? { | ||
"--tw-ring-offset-width": _ | ||
} : { | ||
"--tw-ring-offset-color": theme3("ringOffsetColor", tail(params)) | ||
}; | ||
} | ||
return (_ = theme3("ringWidth", params, "")) ? { | ||
"--tw-ring-offset-shadow": `var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${theme3("ringOffsetWidth", "", "0px")}) var(--tw-ring-offset-color,${theme3("ringOffsetColor", "", "#fff")})`, | ||
"--tw-ring-shadow": `var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${_} + var(--tw-ring-offset-width,${theme3("ringOffsetWidth", "", "0px")})) var(--tw-ring-color,${asRGBA(theme3("ringColor", "", "#93c5fd"), "ring-opacity", theme3("ringOpacity", "", "0.5"))})`, | ||
"box-shadow": boxShadow() | ||
} : { | ||
"--tw-ring-opacity": "1", | ||
"--tw-ring-color": asRGBA(theme3("ringColor", params), "ring-opacity") | ||
}; | ||
}, | ||
object: (params) => includes(["contain", "cover", "fill", "none", "scale"], params[0]) ? propertyValue("objectFit")(params) : propertyValue("objectPosition", " ")(params), | ||
list: (params) => propertyValue(includes(["inside", "outside"], params[0]) ? "listStylePosition" : "listStyleType")(params), | ||
rounded: (params, context, id) => corners(context.theme("borderRadius", tail(params), ""), params[0], "border", "radius") || themeProperty("borderRadius")(params, context, id), | ||
"transition-none": {"transition-property": "none"}, | ||
transition: (params, {theme: theme3}) => ({ | ||
transition: joinTruthy([ | ||
theme3("transitionProperty", params), | ||
theme3("transitionDuration", ""), | ||
theme3("transitionTimingFunction", "") | ||
], " ") | ||
}), | ||
container: (params, {theme: theme3}) => { | ||
const {screens = theme3("screens"), center, padding: padding2} = theme3("container"); | ||
const paddingFor = (screen) => (_ = padding2 && (string(padding2) ? padding2 : padding2[screen] || padding2.DEFAULT)) ? { | ||
paddingRight: _, | ||
paddingLeft: _ | ||
} : {}; | ||
return Object.keys(screens).reduce((rules2, screen) => { | ||
if (_ = screens[screen]) { | ||
rules2[`@media (min-width: ${_})`] = { | ||
"&": { | ||
"max-width": _, | ||
...paddingFor(screen) | ||
} | ||
}; | ||
} | ||
return rules2; | ||
}, { | ||
width: "100%", | ||
...center ? {marginRight: "auto", marginLeft: "auto"} : {}, | ||
...paddingFor("xs") | ||
}); | ||
} | ||
}; | ||
// src/tailwind/preflight.ts | ||
var createPreflight = (theme3) => ({ | ||
":root": {tabSize: 4}, | ||
"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul": {margin: "0"}, | ||
button: {backgroundColor: "transparent", backgroundImage: "none"}, | ||
'button,[type="button"],[type="reset"],[type="submit"]': {WebkitAppearance: "button"}, | ||
"button:focus": {outline: ["1px dotted", "5px auto -webkit-focus-ring-color"]}, | ||
"fieldset,ol,ul,legend": {padding: "0"}, | ||
"ol,ul": {listStyle: "none"}, | ||
html: { | ||
lineHeight: "1.5", | ||
WebkitTextSizeAdjust: "100%", | ||
fontFamily: theme3("fontFamily", "sans", "ui-sans-serif,system-ui,sans-serif") | ||
}, | ||
body: {fontFamily: "inherit", lineHeight: "inherit"}, | ||
"*,::before,::after": { | ||
boxSizing: "border-box", | ||
border: `0 solid ${theme3("borderColor", "DEFAULT", "currentColor")}` | ||
}, | ||
hr: {height: "0", color: "inherit", borderTopWidth: "1px"}, | ||
img: {borderStyle: "solid"}, | ||
textarea: {resize: "vertical"}, | ||
"input::placeholder,textarea::placeholder": { | ||
color: theme3("placeholderColor", "DEFAULT", "#a1a1aa") | ||
}, | ||
'button,[role="button"]': {cursor: "pointer"}, | ||
table: {textIndent: "0", borderColor: "inherit", borderCollapse: "collapse"}, | ||
"h1,h2,h3,h4,h5,h6": {fontSize: "inherit", fontWeight: "inherit"}, | ||
a: {color: "inherit", textDecoration: "inherit"}, | ||
"button,input,optgroup,select,textarea": { | ||
fontFamily: "inherit", | ||
fontSize: "100%", | ||
margin: "0", | ||
padding: "0", | ||
lineHeight: "inherit", | ||
color: "inherit" | ||
}, | ||
"button,select": {textTransform: "none"}, | ||
"::-moz-focus-inner": {borderStyle: "none", padding: "0"}, | ||
":-moz-focusring": {outline: "1px dotted ButtonText"}, | ||
":-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"}, | ||
"abbr[title]": {textDecoration: "underline dotted"}, | ||
"b,strong": {fontWeight: "bolder"}, | ||
"pre,code,kbd,samp": { | ||
fontFamily: theme3("fontFamily", "mono", "ui-monospace,monospace"), | ||
fontSize: "1em" | ||
}, | ||
"sub,sup": {fontSize: "75%", lineHeight: "0", position: "relative", verticalAlign: "baseline"}, | ||
sub: {bottom: "-0.25em"}, | ||
sup: {top: "-0.5em"}, | ||
"img,svg,video,canvas,audio,iframe,embed,object": {display: "block", verticalAlign: "middle"}, | ||
"img,video": {maxWidth: "100%", height: "auto"} | ||
}); | ||
// src/injectors.ts | ||
var STYLE_ELEMENT_ID = "__tw-in-js"; | ||
var getStyleElement = (nonce) => { | ||
let element = self[STYLE_ELEMENT_ID]; | ||
if (!element) { | ||
element = document.head.appendChild(document.createElement("style")); | ||
element.id = STYLE_ELEMENT_ID; | ||
nonce && (element.nonce = nonce); | ||
} | ||
return element; | ||
}; | ||
var virtualInjector = ({ | ||
target = [] | ||
} = {}) => ({ | ||
target, | ||
insert: (rule, index) => target.splice(index, 0, rule) | ||
}); | ||
var cssomInjector = ({ | ||
nonce, | ||
target = getStyleElement(nonce).sheet | ||
} = {}) => ({ | ||
target, | ||
insert: target.insertRule.bind(target) | ||
}); | ||
var noOpInjector = () => ({ | ||
insert: () => { | ||
} | ||
}); | ||
// src/modes.ts | ||
var mode = (report) => ({ | ||
unknown(section, key = [], optional, context) { | ||
if (!optional) { | ||
this.report({id: "UNKNOWN_THEME_VALUE", key: join([section, ...key], ".")}, context); | ||
} | ||
}, | ||
report({id, ...info}) { | ||
const message = `[${id}] ${JSON.stringify(info)}`; | ||
const stack = (new Error(message).stack || message).split("at "); | ||
for (let frame; (frame = stack.splice(1, 1)[0]) && !/(^|\.)(tw|setup) /.test(frame); ) { | ||
} | ||
report(stack.join("at ")); | ||
} | ||
}); | ||
var warn = mode((message) => console.warn(message)); | ||
var strict = mode((message) => { | ||
throw new Error(message); | ||
}); | ||
// src/prefix.ts | ||
import {prefixProperty, prefixValue} from "tiny-css-prefixer"; | ||
var autoprefix = (property2, value) => { | ||
const declaration = `${property2}:${prefixValue(property2, value)}`; | ||
let cssText = declaration; | ||
const flag = prefixProperty(property2); | ||
if (flag & 1) | ||
cssText += `;-ms-${declaration}`; | ||
if (flag & 2) | ||
cssText += `;-moz-${declaration}`; | ||
if (flag & 4) | ||
cssText += `;-webkit-${declaration}`; | ||
return cssText; | ||
}; | ||
var noprefix = (property2, value) => `${property2}:${value}`; | ||
// src/tailwind/theme.ts | ||
var ratios = (start, end) => { | ||
const result = {}; | ||
do { | ||
for (let dividend = 1; dividend < start; dividend++) { | ||
result[`${dividend}/${start}`] = Number((dividend / start * 100).toFixed(6)) + "%"; | ||
} | ||
} while (++start <= end); | ||
return result; | ||
}; | ||
var exponential = (stop, unit, start = 0) => { | ||
const result = {}; | ||
for (; start <= stop; start = start * 2 || 1) { | ||
result[start] = start + unit; | ||
} | ||
return result; | ||
}; | ||
var linear = (stop, unit = "", divideBy = 1, start = 0, step = 1) => { | ||
const result = {}; | ||
for (; start <= stop; start += step) { | ||
result[start] = start / divideBy + unit; | ||
} | ||
return result; | ||
}; | ||
var alias2 = (key) => (theme3) => theme3(key); | ||
var defaultTheme = { | ||
screens: { | ||
sm: "640px", | ||
md: "768px", | ||
lg: "1024px", | ||
xl: "1280px", | ||
"2xl": "1536px" | ||
}, | ||
colors: { | ||
transparent: "transparent", | ||
current: "currentColor", | ||
black: "#000", | ||
white: "#fff", | ||
gray: { | ||
50: "#f9fafb", | ||
100: "#f3f4f6", | ||
200: "#e5e7eb", | ||
300: "#d1d5db", | ||
400: "#9ca3af", | ||
500: "#6b7280", | ||
600: "#4b5563", | ||
700: "#374151", | ||
800: "#1f2937", | ||
900: "#111827" | ||
}, | ||
red: { | ||
50: "#fef2f2", | ||
100: "#fee2e2", | ||
200: "#fecaca", | ||
300: "#fca5a5", | ||
400: "#f87171", | ||
500: "#ef4444", | ||
600: "#dc2626", | ||
700: "#b91c1c", | ||
800: "#991b1b", | ||
900: "#7f1d1d" | ||
}, | ||
yellow: { | ||
50: "#fffbeb", | ||
100: "#fef3c7", | ||
200: "#fde68a", | ||
300: "#fcd34d", | ||
400: "#fbbf24", | ||
500: "#f59e0b", | ||
600: "#d97706", | ||
700: "#b45309", | ||
800: "#92400e", | ||
900: "#78350f" | ||
}, | ||
green: { | ||
50: "#ecfdf5", | ||
100: "#d1fae5", | ||
200: "#a7f3d0", | ||
300: "#6ee7b7", | ||
400: "#34d399", | ||
500: "#10b981", | ||
600: "#059669", | ||
700: "#047857", | ||
800: "#065f46", | ||
900: "#064e3b" | ||
}, | ||
blue: { | ||
50: "#eff6ff", | ||
100: "#dbeafe", | ||
200: "#bfdbfe", | ||
300: "#93c5fd", | ||
400: "#60a5fa", | ||
500: "#3b82f6", | ||
600: "#2563eb", | ||
700: "#1d4ed8", | ||
800: "#1e40af", | ||
900: "#1e3a8a" | ||
}, | ||
indigo: { | ||
50: "#eef2ff", | ||
100: "#e0e7ff", | ||
200: "#c7d2fe", | ||
300: "#a5b4fc", | ||
400: "#818cf8", | ||
500: "#6366f1", | ||
600: "#4f46e5", | ||
700: "#4338ca", | ||
800: "#3730a3", | ||
900: "#312e81" | ||
}, | ||
purple: { | ||
50: "#f5f3ff", | ||
100: "#ede9fe", | ||
200: "#ddd6fe", | ||
300: "#c4b5fd", | ||
400: "#a78bfa", | ||
500: "#8b5cf6", | ||
600: "#7c3aed", | ||
700: "#6d28d9", | ||
800: "#5b21b6", | ||
900: "#4c1d95" | ||
}, | ||
pink: { | ||
50: "#fdf2f8", | ||
100: "#fce7f3", | ||
200: "#fbcfe8", | ||
300: "#f9a8d4", | ||
400: "#f472b6", | ||
500: "#ec4899", | ||
600: "#db2777", | ||
700: "#be185d", | ||
800: "#9d174d", | ||
900: "#831843" | ||
} | ||
}, | ||
spacing: { | ||
px: "1px", | ||
0: "0px", | ||
...linear(4, "rem", 4, 0.5, 0.5), | ||
...linear(12, "rem", 4, 5), | ||
14: "3.5rem", | ||
...linear(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" | ||
}, | ||
backgroundColor: alias2("colors"), | ||
backgroundImage: { | ||
none: "none" | ||
}, | ||
backgroundOpacity: alias2("opacity"), | ||
borderColor: (theme3) => ({ | ||
...theme3("colors"), | ||
DEFAULT: theme3("colors.gray.200", "currentColor") | ||
}), | ||
borderOpacity: alias2("opacity"), | ||
borderRadius: { | ||
none: "0px", | ||
sm: "0.125rem", | ||
DEFAULT: "0.25rem", | ||
md: "0.375rem", | ||
lg: "0.5rem", | ||
xl: "0.75rem", | ||
"2xl": "1rem", | ||
"3xl": "1.5rem", | ||
full: "9999px" | ||
}, | ||
borderWidth: { | ||
DEFAULT: "1px", | ||
...exponential(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 0 rgba(0, 0, 0, 0.06)", | ||
md: "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)", | ||
lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)", | ||
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)", | ||
"2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)", | ||
inner: "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)", | ||
none: "none" | ||
}, | ||
container: {}, | ||
divideColor: alias2("borderColor"), | ||
divideOpacity: alias2("borderOpacity"), | ||
divideWidth: alias2("borderWidth"), | ||
fill: {current: "currentColor"}, | ||
flex: { | ||
1: "1 1 0%", | ||
auto: "1 1 auto", | ||
initial: "0 1 auto", | ||
none: "none" | ||
}, | ||
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: alias2("spacing"), | ||
gradientColorStops: alias2("colors"), | ||
height: (theme3) => ({ | ||
auto: "auto", | ||
...theme3("spacing"), | ||
...ratios(2, 6), | ||
full: "100%", | ||
screen: "100vh" | ||
}), | ||
inset: (theme3) => ({ | ||
auto: "auto", | ||
...theme3("spacing"), | ||
...ratios(2, 4), | ||
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: { | ||
none: "1", | ||
tight: "1.25", | ||
snug: "1.375", | ||
normal: "1.5", | ||
relaxed: "1.625", | ||
loose: "2", | ||
...linear(10, "rem", 4, 3) | ||
}, | ||
margin: (theme3) => ({ | ||
auto: "auto", | ||
...theme3("spacing") | ||
}), | ||
maxHeight: (theme3) => ({ | ||
...theme3("spacing"), | ||
full: "100%", | ||
screen: "100vh" | ||
}), | ||
maxWidth: (theme3, {breakpoints}) => ({ | ||
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", | ||
prose: "65ch", | ||
...breakpoints(theme3("screens")) | ||
}), | ||
minHeight: { | ||
0: "0px", | ||
full: "100%", | ||
screen: "100vh" | ||
}, | ||
minWidth: { | ||
0: "0px", | ||
full: "100%", | ||
min: "min-content", | ||
max: "max-content" | ||
}, | ||
opacity: { | ||
...linear(100, "", 100, 0, 10), | ||
5: "0.05", | ||
25: "0.25", | ||
75: "0.75", | ||
95: "0.95" | ||
}, | ||
order: { | ||
first: "-9999", | ||
last: "9999", | ||
none: "0", | ||
...linear(12, "", 1, 1) | ||
}, | ||
outline: { | ||
none: ["2px solid transparent", "2px"], | ||
white: ["2px dotted white", "2px"], | ||
black: ["2px dotted black", "2px"] | ||
}, | ||
padding: alias2("spacing"), | ||
placeholderColor: alias2("colors"), | ||
placeholderOpacity: alias2("opacity"), | ||
ringColor: (theme3) => ({ | ||
DEFAULT: theme3("colors.blue.500", "#3b82f6"), | ||
...theme3("colors") | ||
}), | ||
ringOffsetColor: alias2("colors"), | ||
ringOffsetWidth: exponential(8, "px"), | ||
ringOpacity: (theme3) => ({ | ||
DEFAULT: "0.5", | ||
...theme3("opacity") | ||
}), | ||
ringWidth: { | ||
DEFAULT: "3px", | ||
...exponential(8, "px") | ||
}, | ||
rotate: { | ||
...exponential(2, "deg"), | ||
...exponential(12, "deg", 3), | ||
...exponential(180, "deg", 45) | ||
}, | ||
scale: { | ||
0: "0", | ||
50: ".5", | ||
75: ".75", | ||
...linear(110, "", 100, 90, 5), | ||
125: "1.25", | ||
150: "1.5" | ||
}, | ||
skew: { | ||
...exponential(2, "deg"), | ||
...exponential(12, "deg", 3) | ||
}, | ||
space: alias2("spacing"), | ||
stroke: { | ||
current: "currentColor" | ||
}, | ||
strokeWidth: linear(2), | ||
textColor: alias2("colors"), | ||
textOpacity: alias2("opacity"), | ||
transitionDuration: (theme3) => ({ | ||
DEFAULT: "150ms", | ||
...theme3("durations") | ||
}), | ||
transitionDelay: alias2("durations"), | ||
transitionProperty: { | ||
none: "none", | ||
all: "all", | ||
DEFAULT: "background-color,border-color,color,fill,stroke,opacity,box-shadow,transform", | ||
colors: "background-color,border-color,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: (theme3) => ({ | ||
...theme3("spacing"), | ||
...ratios(2, 4), | ||
full: "100%" | ||
}), | ||
width: (theme3) => ({ | ||
auto: "auto", | ||
...theme3("spacing"), | ||
...ratios(2, 6), | ||
...ratios(12, 12), | ||
screen: "100vw", | ||
full: "100%", | ||
min: "min-content", | ||
max: "max-content" | ||
}), | ||
zIndex: { | ||
auto: "auto", | ||
...linear(50, "", 1, 0, 10) | ||
} | ||
}; | ||
// src/internal/theme.ts | ||
var flattenColorPalette = (colors) => Object.keys(colors).reduce((flatColors, key) => { | ||
const value = colors[key]; | ||
flatColors[key] = value; | ||
return object(value) ? Object.keys(value).reduce((flatColors2, number) => { | ||
if (number === "DEFAULT") { | ||
flatColors2[key] = value[number]; | ||
} | ||
flatColors2[key + "-" + number] = value[number]; | ||
flatColors2[key + "." + number] = value[number]; | ||
return flatColors2; | ||
}, flatColors) : flatColors; | ||
}, {}); | ||
var resolveContext = { | ||
negative: () => ({}), | ||
breakpoints: (source) => Object.keys(source).reduce((target, key) => { | ||
target["screen-" + key] = source[key]; | ||
return target; | ||
}, {}) | ||
}; | ||
var makeThemeResolver = (config) => { | ||
const cache = new Map(); | ||
const theme3 = {...defaultTheme, ...config}; | ||
const themeResolver = (key, defaultValue) => { | ||
const keypath = key.split("."); | ||
return resolve(keypath[0], keypath.length > 1 ? tail(keypath) : void 0, defaultValue); | ||
}; | ||
const deref = (theme4, section) => { | ||
const base = theme4 && theme4[section]; | ||
const value = fn(base) ? base(themeResolver, resolveContext) : base; | ||
return value && section === "colors" ? flattenColorPalette(value) : value; | ||
}; | ||
const resolve = (section, key, defaultValue) => { | ||
let base = cache.get(section); | ||
if (!base) { | ||
cache.set(section, base = { | ||
...deref(theme3, section), | ||
...deref(theme3.extend, section) | ||
}); | ||
} | ||
if (key != null) { | ||
const value = base[(Array.isArray(key) ? join(key) : key) || "DEFAULT"]; | ||
return value == null ? defaultValue : Array.isArray(value) && !includes(["fontSize", "outline"], section) ? join(value, ",") : value; | ||
} | ||
return base; | ||
}; | ||
return resolve; | ||
}; | ||
// src/process/parse.ts | ||
var groupings; | ||
var rules; | ||
var startGrouping = (value = "") => { | ||
groupings.push(value); | ||
return ""; | ||
}; | ||
var endGrouping = (isWhitespace) => { | ||
groupings.length = Math.max(groupings.lastIndexOf("") + ~~isWhitespace, 0); | ||
}; | ||
var onlyPrefixes = (s) => s && s[0] !== ":"; | ||
var onlyVariants = (s) => s[0] === ":"; | ||
var addRule = (directive, negate) => { | ||
rules.push({ | ||
v: groupings.filter(onlyVariants), | ||
d: directive, | ||
n: negate, | ||
$: "" | ||
}); | ||
}; | ||
var saveRule = (buffer) => { | ||
const negate = buffer[0] === "-"; | ||
if (negate) { | ||
buffer = tail(buffer); | ||
} | ||
const prefix2 = join(groupings.filter(onlyPrefixes)); | ||
addRule(buffer === "&" ? prefix2 : (prefix2 && prefix2 + "-") + buffer, negate); | ||
return ""; | ||
}; | ||
var parseString = (token, isVariant) => { | ||
let char; | ||
let buffer = ""; | ||
for (let position2 = 0; position2 < token.length; ) { | ||
switch (char = token[position2++]) { | ||
case ":": | ||
buffer = buffer && startGrouping(":" + buffer); | ||
break; | ||
case "(": | ||
buffer = buffer && startGrouping(buffer); | ||
startGrouping(); | ||
break; | ||
case ")": | ||
case " ": | ||
case " ": | ||
case "\n": | ||
case "\r": | ||
buffer = buffer && saveRule(buffer); | ||
endGrouping(char !== ")"); | ||
break; | ||
default: | ||
buffer += char; | ||
} | ||
} | ||
if (buffer) { | ||
if (isVariant) { | ||
startGrouping(":" + buffer); | ||
} else if (buffer.slice(-1) === "-") { | ||
startGrouping(buffer.slice(0, -1)); | ||
} else { | ||
saveRule(buffer); | ||
} | ||
} | ||
}; | ||
var parseGroupedToken = (token) => { | ||
startGrouping(); | ||
parseToken(token); | ||
endGrouping(); | ||
}; | ||
var parseGroup = (key, token) => { | ||
if (token) { | ||
startGrouping(); | ||
const isVariant = includes("tbu", (typeof token)[1]); | ||
parseString(key, isVariant); | ||
if (isVariant) { | ||
parseGroupedToken(token); | ||
} | ||
endGrouping(); | ||
} | ||
}; | ||
var parseToken = (token) => { | ||
switch (typeof token) { | ||
case "string": | ||
parseString(token); | ||
break; | ||
case "function": | ||
addRule(token); | ||
break; | ||
case "object": | ||
if (Array.isArray(token)) { | ||
token.forEach(parseGroupedToken); | ||
} else if (token) { | ||
Object.keys(token).forEach((key) => { | ||
parseGroup(key, token[key]); | ||
}); | ||
} | ||
} | ||
}; | ||
var staticsCaches = new WeakMap(); | ||
var buildStatics = (strings) => { | ||
let statics = staticsCaches.get(strings); | ||
if (!statics) { | ||
statics = strings.map((token) => { | ||
const staticRules = rules = []; | ||
parseString(token); | ||
const activeGroupings = [...groupings]; | ||
rules = []; | ||
return (interpolation) => { | ||
rules.push(...staticRules); | ||
groupings = [...activeGroupings]; | ||
interpolation && parseToken(interpolation); | ||
}; | ||
}); | ||
staticsCaches.set(strings, statics); | ||
} | ||
return statics; | ||
}; | ||
var parse = (tokens) => { | ||
groupings = []; | ||
rules = []; | ||
if (Array.isArray(tokens[0]) && Array.isArray(tokens[0].raw)) { | ||
buildStatics(tokens[0]).forEach((apply, index) => apply(tokens[index + 1])); | ||
} else { | ||
; | ||
tokens.forEach(parseToken); | ||
} | ||
return rules; | ||
}; | ||
// src/process/translate.ts | ||
var translate = (plugins2, context) => (rule) => { | ||
if (fn(rule.d)) { | ||
return rule.d(context); | ||
} | ||
const parameters = rule.d.split("-"); | ||
for (let index = parameters.length; index; index--) { | ||
const id = join(parameters.slice(0, index)); | ||
const plugin = plugins2[id]; | ||
if (plugin) { | ||
return fn(plugin) ? plugin(tail(parameters, index), context, id) : string(plugin) ? context.tw(plugin) : plugin; | ||
} | ||
} | ||
}; | ||
// src/tailwind/variants.ts | ||
var variants = { | ||
":dark": "@media (prefers-color-scheme:dark)", | ||
":sticky": "@supports ((position: -webkit-sticky) or (position:sticky))", | ||
":motion-reduce": "@media (prefers-reduced-motion:reduce)", | ||
":motion-safe": "@media (prefers-reduced-motion:no-preference)", | ||
":first": "&:first-child", | ||
":last": "&:last-child", | ||
":even": "&:nth-child(2n)", | ||
":odd": "&:nth-child(odd)" | ||
}; | ||
// src/process/decorate.ts | ||
var decorate = (darkMode, {theme: theme3, tag}) => { | ||
const applyVariant = (translation, variant) => { | ||
const size = theme3("screens", tail(variant), ""); | ||
if (size) { | ||
return {[`@media (min-width: ${size})`]: translation}; | ||
} | ||
if (variant === ":dark" && darkMode === "class") { | ||
return {[`.dark &`]: translation}; | ||
} | ||
if (variant.slice(1, 7) === "group-") { | ||
return {[`.${escape(tag("group"))}:${tail(variant, 7)} &`]: translation}; | ||
} | ||
return {[variants[variant] || "&" + variant]: translation}; | ||
}; | ||
return (translation, rule) => rule.v.reduceRight(applyVariant, translation); | ||
}; | ||
// src/internal/presedence.ts | ||
var _2; | ||
var responsivePrecedence = (css) => (((_2 = /(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(css)) ? +_2[1] / (_2[2] ? 15 : 1) / 10 : 0) & 31) << 23; | ||
var seperatorPrecedence = (string2) => { | ||
_2 = 0; | ||
for (let index = string2.length; index--; ) { | ||
_2 += includes("-:,", string2[index]); | ||
} | ||
return _2; | ||
}; | ||
var atRulePresedence = (css) => (seperatorPrecedence(css) & 15) << 18; | ||
var PRECEDENCES_BY_PSEUDO_CLASS = [ | ||
"rst", | ||
"st", | ||
"en", | ||
"d", | ||
"nk", | ||
"sited", | ||
"pty", | ||
"ecked", | ||
"cus-w", | ||
"ver", | ||
"cus", | ||
"cus-v", | ||
"tive", | ||
"sable", | ||
"ad-on", | ||
"tiona", | ||
"quire" | ||
]; | ||
var pseudoPrecedence = (pseudoClass) => 1 << (~(_2 = PRECEDENCES_BY_PSEUDO_CLASS.indexOf(pseudoClass.replace(/^:group-/, ":").slice(3, 8))) ? _2 : 17); | ||
var makeVariantPresedenceCalculator = (theme3, variants4) => (presedence2, variant) => presedence2 | ((_2 = theme3("screens", tail(variant), "")) ? responsivePrecedence(_2) : variant === ":dark" ? 1 << 22 : (_2 = variants4[variant] || variant)[0] === "@" ? atRulePresedence(_2) : pseudoPrecedence(variant)); | ||
var PROPERTY_PRECEDENCE_CORRECTION_GROUPS = /^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/; | ||
var declarationPropertyPrecedence = (property2) => property2[0] === "-" ? 0 : seperatorPrecedence(property2) + ((_2 = PROPERTY_PRECEDENCE_CORRECTION_GROUPS.exec(property2)) ? +!!_2[1] || -!!_2[2] : 0) + 1; | ||
// src/process/serialize.ts | ||
var stringifyBlock = (body, selector) => selector + "{" + body + "}"; | ||
var serialize = (prefix2, {theme: theme3, tag}) => { | ||
const tagVar = (_3, property2) => "--" + tag(property2); | ||
const tagVars = (value) => `${value}`.replace(/--(tw-[\w-]+)\b/g, tagVar); | ||
const stringifyDeclaration = (property2, value) => { | ||
property2 = tagVars(property2); | ||
return Array.isArray(value) ? join(value.filter(Boolean).map((value2) => prefix2(property2, tagVars(value2))), ";") : prefix2(property2, tagVars(value)); | ||
}; | ||
let rules2; | ||
const stringify = (atRules, selector, presedence2, css) => { | ||
let declarations = ""; | ||
let maxPropertyPresedence = 0; | ||
let numberOfDeclarations = 0; | ||
Object.keys(css).forEach((key) => { | ||
const value = css[key]; | ||
if (includes("rg", (typeof value)[5]) || Array.isArray(value)) { | ||
const property2 = hyphenate(key); | ||
numberOfDeclarations += 1; | ||
maxPropertyPresedence = Math.max(maxPropertyPresedence, declarationPropertyPrecedence(property2)); | ||
declarations = (declarations && declarations + ";") + stringifyDeclaration(property2, value); | ||
} else if (value) { | ||
if (key[0] === "@") { | ||
if (key[1] === "f") { | ||
stringify([], key, 0, value); | ||
} else if (key[1] === "k") { | ||
const currentSize = rules2.length; | ||
stringify([], "", 0, value); | ||
const waypoints = rules2.splice(currentSize, rules2.length - currentSize); | ||
rules2.push({ | ||
r: stringifyBlock(join(waypoints.map((p) => p.r), ""), key), | ||
p: waypoints.reduce((sum, p) => sum + p.p, 0) | ||
}); | ||
} else { | ||
stringify([...atRules, key], selector, presedence2 | (responsivePrecedence(key) || atRulePresedence(key)), value); | ||
} | ||
} else { | ||
const hasNestedSelector = selector && includes(key, "&"); | ||
stringify(atRules, hasNestedSelector ? selector.replace(/([^,])+/g, (selectorPart) => key.replace(/([^,])+/g, (keyPart) => includes(keyPart, "&") ? keyPart.replace(/&/g, selectorPart) : keyPart)) : key, hasNestedSelector ? presedence2 : 0, value); | ||
} | ||
} | ||
}); | ||
if (numberOfDeclarations) { | ||
rules2.push({ | ||
r: atRules.reduceRight(stringifyBlock, stringifyBlock(declarations, selector)), | ||
p: presedence2 * (1 << 8) + (((maxPropertyPresedence || 15) & 15) << 4 | Math.max(0, 15 - numberOfDeclarations) & 15) | ||
}); | ||
} | ||
}; | ||
const variantPresedence = makeVariantPresedenceCalculator(theme3, variants); | ||
return (css, className, rule) => { | ||
rules2 = []; | ||
stringify([], className ? "." + escape(className) : "", rule ? rule.v.reduceRight(variantPresedence, 0) : 0, css); | ||
return rules2; | ||
}; | ||
}; | ||
// src/process/inject.ts | ||
var inject = (injector, mode2, context) => { | ||
const sortedPrecedences = []; | ||
const insertedRules = new Set(); | ||
return ({r: css, p: presedence2}) => { | ||
if (!insertedRules.has(css)) { | ||
const index = sortedInsertionIndex(sortedPrecedences, presedence2); | ||
try { | ||
injector.insert(css, index); | ||
insertedRules.add(css); | ||
sortedPrecedences.splice(index, 0, presedence2); | ||
} catch (error) { | ||
if (!/:-[mwo]/.test(css)) { | ||
mode2.report({id: "INJECT_CSS_ERROR", css, error}, context); | ||
} | ||
} | ||
} | ||
}; | ||
}; | ||
// src/process/index.ts | ||
var sanitize = (value, defaultValue, disabled, enabled = defaultValue) => value === false ? disabled : value === true ? enabled : value || defaultValue; | ||
var toString = (rule, directive = rule.d) => { | ||
if (fn(directive)) | ||
return ""; | ||
const base = join(rule.v, ""); | ||
return (base && tail(base) + ":") + (rule.n ? "-" : "") + directive; | ||
}; | ||
var configure = (config = {}) => { | ||
const theme3 = makeThemeResolver(config.theme); | ||
const mode2 = config.mode || warn; | ||
const hash = sanitize(config.hash, false, false, cyrb32); | ||
let activeRule = {}; | ||
const context = { | ||
tw: (...tokens) => process2(tokens), | ||
theme: (section, key, defaultValue) => { | ||
if (key != null && !key.length) { | ||
key = "DEFAULT"; | ||
} | ||
const value = theme3(section, key, defaultValue) || mode2.unknown(section, key == null || Array.isArray(key) ? key : key.split("."), defaultValue != null, context); | ||
return activeRule.n && value && string(value) ? `calc(${value} * -1)` : value; | ||
}, | ||
tag: (value) => hash ? hash(value) : value | ||
}; | ||
const translate3 = translate({...corePlugins, ...config.plugins}, context); | ||
const tryTranslate = (rule) => { | ||
const parentRule = activeRule; | ||
activeRule = rule; | ||
try { | ||
return translate3(rule); | ||
} finally { | ||
activeRule = parentRule; | ||
} | ||
}; | ||
const decorate3 = decorate(config.darkMode || "media", context); | ||
const serialize3 = serialize(sanitize(config.prefix, autoprefix, noprefix), context); | ||
const inject3 = inject(config.injector || (typeof window === "undefined" ? noOpInjector() : cssomInjector(config)), mode2, context); | ||
const idToClassName = new Map(); | ||
const inlineDirectiveName = new WeakMap(); | ||
const convert = (rule) => { | ||
if (activeRule.v?.length) { | ||
rule = {...rule, v: [...activeRule.v, ...rule.v], $: ""}; | ||
} | ||
if (!rule.$) { | ||
rule.$ = toString(rule) || toString(rule, inlineDirectiveName.get(rule.d)); | ||
} | ||
let className = idToClassName.get(rule.$); | ||
if (className == null) { | ||
let translation = tryTranslate(rule); | ||
if (!rule.$) { | ||
rule.$ = cyrb32(JSON.stringify(translation)); | ||
inlineDirectiveName.set(rule.d, rule.$); | ||
rule.$ = toString(rule, rule.$); | ||
} | ||
if (string(translation)) { | ||
className = translation; | ||
} else if (translation) { | ||
translation = decorate3(translation, rule); | ||
className = hash ? hash(JSON.stringify(translation)) : rule.$; | ||
serialize3(translation, className, rule).forEach(inject3); | ||
} else { | ||
mode2.report({id: "UNKNOWN_DIRECTIVE", rule: rule.$}, context); | ||
className = ""; | ||
} | ||
idToClassName.set(rule.$, className); | ||
} | ||
return className; | ||
}; | ||
const process2 = (tokens) => parse(tokens).map(convert).filter(Boolean).join(" "); | ||
const preflight2 = sanitize(config.preflight, identity, false); | ||
if (preflight2) { | ||
const css = createPreflight(theme3); | ||
serialize3(preflight2(css, context) || css).forEach(inject3); | ||
} | ||
return { | ||
init: () => mode2.report({id: "LATE_SETUP_CALL"}, context), | ||
process: process2 | ||
}; | ||
}; | ||
// src/instance.ts | ||
var create = (config) => { | ||
let process2 = (tokens) => { | ||
init(); | ||
return process2(tokens); | ||
}; | ||
let init = (config2) => { | ||
; | ||
({process: process2, init} = configure(config2)); | ||
}; | ||
if (config) | ||
init(config); | ||
return { | ||
tw: (...tokens) => process2(tokens), | ||
setup: (config2) => init(config2) | ||
}; | ||
}; | ||
// src/index.ts | ||
var instance2 = create(); | ||
var {tw} = instance2; | ||
var {setup} = instance2; | ||
export { | ||
autoprefix, | ||
create, | ||
cssomInjector, | ||
mode, | ||
noOpInjector, | ||
noprefix, | ||
setup, | ||
strict, | ||
tw, | ||
virtualInjector, | ||
warn | ||
}; |
@@ -1,2 +0,2 @@ | ||
var ct=Object.prototype.hasOwnProperty,Re=Object.getOwnPropertySymbols,lt=Object.prototype.propertyIsEnumerable,a=Object.assign,ke=(e,t)=>{var n={};for(var r in e)ct.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Re)for(var r of Re(e))t.indexOf(r)<0&<.call(e,r)&&(n[r]=e[r]);return n},$=e=>typeof e=="string",$e=e=>e!=null&&typeof e=="object",O=e=>typeof e=="function",x=(e,t)=>!!~e.indexOf(t),p=(e,t="-")=>e.join(t),U=(e,t)=>p(e.filter(Boolean),t),d=(e,t=1)=>e.slice(t),Pe=e=>e,Ee=e=>e[0].toUpperCase()+d(e),Ae=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),Z=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=d(e)),n+e.replace(/[!./:#]/g,"\\$&")}),oe=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},je=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Ie=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((l,u)=>(l[U([r,u,i])]=t,l),{})}},Fe=Ie(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),K=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Q=Ie(K),o,D,v,Y=e=>(t,n,r)=>({[e]:r+((o=p(t))&&"-"+o)}),h=(e,t)=>n=>({[e]:p(n,t)}),b=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),k=(e,t)=>(n,r)=>e(n,r,t),E=Y("display"),J=Y("position"),_=Y("textTransform"),V=Y("textDecoration"),ee=Y("fontStyle"),A=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),te=(e,{theme:t},n)=>({[n]:t("inset",e)}),X=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",d(e))}),ie=(e,t)=>Math.round(parseInt(e,16)*t),se=(e,t,n)=>e&&e[0]==="#"?`rgba(${ie(e.substr(1,o=(e.length-1)/3),v=[17,1,.062272][o-1])},${ie(e.substr(1+o,o),v)},${ie(e.substr(1+2*o,o),v)},var(--tw-${t}${n?","+n:""}))`:e,ne=(e,t,n)=>n&&(o=se(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},Oe=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(v=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[v]:"1"}:{[v]:"0",[U([i,o[0],s])]:(D=t(r,d(e)))&&`calc(${D} * var(${v}))`,[U([i,o[1],s])]:D&&[D,`calc(${D} * calc(1 - var(${v})))`]}:void 0,De=(e,t)=>({[e]:(x("wun",(t[0]||"")[3])?"space-":"")+t[0]}),ae=e=>t=>x(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:De(e,t),We=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},ze=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return h("borderStyle")(e);case"collapse":case"separate":return h("borderCollapse")(e);case"opacity":return X(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:ne("borderColor",n,t(n+"Color",e))},ce=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",le=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,ce()]},He=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",Me=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},Ne=e=>(t,n,r)=>r[1]?Q(n.theme(e,t),r[1],e):b(e)(t,n,r),W=Ne("padding"),z=Ne("margin"),Le=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${Ee(o)}`]:t(o,d(e))},Ue={group:(e,{tag:t})=>t("group"),hidden:k(E,"none"),inline:E,block:E,contents:E,flow:E,table:(e,t,n)=>x(["auto","fixed"],e[0])?{tableLayout:e[0]}:E(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:p(e[0]==="col"?["column",...d(e)]:e)};case"nowrap":case"wrap":return{flexWrap:p(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:E(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:p(d(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:p(e[1]==="col"?["column",...d(e,2)]:d(e)," ")}}return E(e,t,n)},auto:e=>x(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${p(d(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:J,fixed:J,absolute:J,relative:J,sticky:J,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:h("appearance"),cursor:h("cursor"),float:h("float"),clear:h("clear"),top:te,right:te,bottom:te,left:te,inset:(e,{theme:t})=>(o=K(e[0]))?Q(t("inset",d(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:V,"line-through":V,"no-underline":k(V,"none"),"text-underline":k(V,"underline"),"text-no-underline":k(V,"none"),"text-line-through":k(V,"line-through"),uppercase:_,lowercase:_,capitalize:_,"normal-case":k(_,"none"),"text-normal-case":k(_,"none"),italic:ee,"not-italic":k(ee,"normal"),"font-italic":k(ee,"italic"),"font-not-italic":k(ee,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:b("fontWeight")(e,t,n),items:e=>({alignItems:x(["start","end"],e[0])?`flex-${e[0]}`:p(e)}),content:ae("alignContent"),justify:ae("justifyContent"),self:ae("alignSelf"),place:e=>De("place-"+e[0],d(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:We("column"),row:We("row"),duration:b("transitionDuration"),delay:b("transitionDelay"),tracking:b("letterSpacing"),leading:b("lineHeight"),z:b("zIndex"),opacity:b(),ease:b("transitionTimingFunction"),p:W,py:W,px:W,pt:W,pr:W,pb:W,pl:W,m:z,my:z,mx:z,mt:z,mr:z,mb:z,ml:z,w:b("width"),h:b("height"),min:Le,max:Le,fill:b(),order:b(),origin:h("transformOrigin"," "),select:h("userSelect"),"pointer-events":h("pointerEvents"),align:h("verticalAlign"),whitespace:h("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:A("ordinal"),"slashed-zero":A("slashed-zero"),"lining-nums":A("numeric-figure"),"oldstyle-nums":A("numeric-figure"),"proportional-nums":A("numeric-spacing"),"tabular-nums":A("numeric-spacing"),"diagonal-fractions":A("numeric-fraction"),"stacked-fractions":A("numeric-fraction"),overflow:e=>x(["ellipsis","clip"],e[0])?h("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:h("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--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",transform:ce(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,ce()]},scale:le,translate:le,skew:le,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",d(e))}:b("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:b("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return _([],o,e[0]);case"opacity":return X(e,t,n)}let r=t("fontSize",e,"");return r?$(r)?{fontSize:r}:a({fontSize:r[0]},$(r[1])?{lineHeight:r[1]}:r[1]):ne("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return h("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return h("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&h("backgroundRepeat")(e);case"auto":case"cover":case"contain":return h("backgroundSize")(e);case"repeat":return x("xy",e[1])?h("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return X(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=K(e[2])))return{backgroundImage:`linear-gradient(to ${p(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-radient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:ne("backgroundColor","bg",t("backgroundColor",e))},from:Me,to:Me,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>K(e[0])?Q(t.theme("borderWidth",d(e)),e[0],"border","width"):ze(e,t,n),divide:(e,t,n)=>(o=Oe(e,t,n,"divideWidth","border","width")||ze(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=Oe(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?X(e,t,n):ne("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,He()]},animate:(e,{theme:t,tag:n})=>{if(v=t("animation",e)){let r=v.split(" ");return(o=t("keyframes",r[0],D={}))!==D?(v=n(r[0]))&&{animation:v+" "+p(d(r)," "),["@keyframes "+v]:o}:{animation:v}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return X(e,t,n);case"offset":return(o=t("ringOffsetWidth",d(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",d(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${se(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":He()}:{"--tw-ring-opacity":"1","--tw-ring-color":se(t("ringColor",e),"ring-opacity")}},object:e=>x(["contain","cover","fill","none","scale"],e[0])?h("objectFit")(e):h("objectPosition"," ")(e),list:e=>h(x(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>Fe(t.theme("borderRadius",d(e),""),e[0],"border","radius")||b("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:U([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=l=>(o=i&&($(i)?i:i[l]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((l,u)=>((o=n[u])&&(l[`@media (min-width: ${o})`]={"&":a({"max-width":o},s(u))}),l),a(a({width:"100%"},r?{marginRight:"auto",marginLeft:"auto"}:{}),s("xs")))}},_e=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-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"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Ve="__tw-in-js",dt=e=>{let t=self[Ve];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Ve,e&&(t.nonce=e)),t},gt=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),de=({nonce:e,target:t=dt(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),ge=()=>({insert:()=>{}}),pe=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:p([t,...n],".")},i)},report(r){var{id:t}=r,n=ke(r,["id"]);let i=`[${t}] ${JSON.stringify(n)}`,s=(new Error(i).stack||i).split("at ");for(let l;(l=s.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(l););e(s.join("at "))}}),ue=pe(e=>console.warn(e)),pt=pe(e=>{throw new Error(e)});import{prefixProperty as ut,prefixValue as ft}from"tiny-css-prefixer";var fe=(e,t)=>{let n=`${e}:${ft(e,t)}`,r=n,i=ut(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},me=(e,t)=>`${e}:${t}`,q=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},j=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},P=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},y=e=>t=>t(e),Be={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:a(a(a(a(a({px:"1px",0:"0px"},P(4,"rem",4,.5,.5)),P(12,"rem",4,5)),{14:"3.5rem"}),P(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"},backgroundColor:y("colors"),backgroundImage:{none:"none"},backgroundOpacity:y("opacity"),borderColor:e=>a(a({},e("colors")),{DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:y("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:a({DEFAULT:"1px"},j(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 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:y("borderColor"),divideOpacity:y("borderOpacity"),divideWidth:y("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},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:y("spacing"),gradientColorStops:y("colors"),height:e=>a(a(a({auto:"auto"},e("spacing")),q(2,6)),{full:"100%",screen:"100vh"}),inset:e=>a(a(a({auto:"auto"},e("spacing")),q(2,4)),{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:a({none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},P(10,"rem",4,3)),margin:e=>a({auto:"auto"},e("spacing")),maxHeight:e=>a(a({},e("spacing")),{full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>a({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",prose:"65ch"},t(e("screens"))),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:a(a({},P(100,"",100,0,10)),{5:"0.05",25:"0.25",75:"0.75",95:"0.95"}),order:a({first:"-9999",last:"9999",none:"0"},P(12,"",1,1)),outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:y("spacing"),placeholderColor:y("colors"),placeholderOpacity:y("opacity"),ringColor:e=>a({DEFAULT:e("colors.blue.500","#3b82f6")},e("colors")),ringOffsetColor:y("colors"),ringOffsetWidth:j(8,"px"),ringOpacity:e=>a({DEFAULT:"0.5"},e("opacity")),ringWidth:a({DEFAULT:"3px"},j(8,"px")),rotate:a(a(a({},j(2,"deg")),j(12,"deg",3)),j(180,"deg",45)),scale:a(a({0:"0",50:".5",75:".75"},P(110,"",100,90,5)),{125:"1.25",150:"1.5"}),skew:a(a({},j(2,"deg")),j(12,"deg",3)),space:y("spacing"),stroke:{current:"currentColor"},strokeWidth:P(2),textColor:y("colors"),textOpacity:y("opacity"),transitionDuration:e=>a({DEFAULT:"150ms"},e("durations")),transitionDelay:y("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,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:e=>a(a(a({},e("spacing")),q(2,4)),{full:"100%"}),width:e=>a(a(a(a({auto:"auto"},e("spacing")),q(2,6)),q(12,12)),{screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:a({auto:"auto"},P(50,"",1,0,10))},mt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,$e(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),ht={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},Ge=e=>{let t=new Map,n=a(a({},Be),e),r=(l,u)=>{let T=l.split(".");return s(T[0],T.length>1?d(T):void 0,u)},i=(l,u)=>{let T=l&&l[u],f=O(T)?T(r,ht):T;return f&&u==="colors"?mt(f):f},s=(l,u,T)=>{let f=t.get(l);if(f||t.set(l,f=a(a({},i(n,l)),i(n.extend,l))),u!=null){let m=f[(Array.isArray(u)?p(u):u)||"DEFAULT"];return m==null?T:Array.isArray(m)&&!x(["fontSize","outline"],l)?p(m,","):m}return f};return s},I,B,H=(e="")=>(I.push(e),""),he=e=>{I.length=Math.max(I.lastIndexOf("")+~~e,0)},xt=e=>e&&e[0]!==":",St=e=>e[0]===":",Ke=(e,t)=>{B.push({v:I.filter(St),d:e,n:t,$:""})},Ye=e=>{let t=e[0]==="-";t&&(e=d(e));let n=p(I.filter(xt));return Ke(e==="&"?n:(n&&n+"-")+e,t),""},xe=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&H(":"+r);break;case"(":r=r&&H(r),H();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&Ye(r),he(n!==")");break;default:r+=n}r&&(t?H(":"+r):r.slice(-1)==="-"?H(r.slice(0,-1)):Ye(r))},Je=e=>{H(),Se(e),he()},bt=(e,t)=>{if(t){H();let n=x("tbu",(typeof t)[1]);xe(e,n),n&&Je(t),he()}},Se=e=>{switch(typeof e){case"string":xe(e);break;case"function":Ke(e);break;case"object":Array.isArray(e)?e.forEach(Je):e&&Object.keys(e).forEach(t=>{bt(t,e[t])})}},Xe=new WeakMap,yt=e=>{let t=Xe.get(e);return t||(t=e.map(n=>{let r=B=[];xe(n);let i=[...I];return B=[],s=>{B.push(...r),I=[...i],s&&Se(s)}}),Xe.set(e,t)),t},qe=e=>(I=[],B=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?yt(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(Se),B),Ze=(e,t)=>n=>{if(O(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=p(r.slice(0,i)),l=e[s];if(l)return O(l)?l(d(r,i),t,s):$(l)?t.tw(l):l}},re={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)"},Qe=(e,{theme:t,tag:n})=>{let r=(i,s)=>{let l=t("screens",d(s),"");return l?{[`@media (min-width: ${l})`]:i}:s===":dark"&&e==="class"?{[".dark &"]:i}:s.slice(1,7)==="group-"?{[`.${Z(n("group"))}:${d(s,7)} &`]:i}:{[re[s]||"&"+s]:i}};return(i,s)=>s.v.reduceRight(r,i)},w,be=e=>(((w=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+w[1]/(w[2]?15:1)/10:0)&31)<<23,et=e=>{w=0;for(let t=e.length;t--;)w+=x("-:,",e[t]);return w},ye=e=>(et(e)&15)<<18,Tt=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],wt=e=>1<<(~(w=Tt.indexOf(e.replace(/^:group-/,":").slice(3,8)))?w:17),tt=(e,t)=>(n,r)=>n|((w=e("screens",d(r),""))?be(w):r===":dark"?1<<22:(w=t[r]||r)[0]==="@"?ye(w):wt(r)),Ct=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,nt=e=>e[0]==="-"?0:et(e)+((w=Ct.exec(e))?+!!w[1]||-!!w[2]:0)+1,Te=(e,t)=>t+"{"+e+"}",rt=(e,{theme:t,tag:n})=>{let r=(f,m)=>"--"+n(m),i=f=>`${f}`.replace(/--(tw-[\w-]+)\b/g,r),s=(f,m)=>(f=i(f),Array.isArray(m)?p(m.filter(Boolean).map(R=>e(f,i(R))),";"):e(f,i(m))),l,u=(f,m,R,G)=>{let M="",N=0,L=0;Object.keys(G).forEach(c=>{let g=G[c];if(x("rg",(typeof g)[5])||Array.isArray(g)){let C=Ae(c);L+=1,N=Math.max(N,nt(C)),M=(M&&M+";")+s(C,g)}else if(g)if(c[0]==="@")if(c[1]==="f")u([],c,0,g);else if(c[1]==="k"){let C=l.length;u([],"",0,g);let S=l.splice(C,l.length-C);l.push({r:Te(p(S.map(F=>F.r),""),c),p:S.reduce((F,at)=>F+at.p,0)})}else u([...f,c],m,R|(be(c)||ye(c)),g);else{let C=m&&x(c,"&");u(f,C?m.replace(/([^,])+/g,S=>c.replace(/([^,])+/g,F=>x(F,"&")?F.replace(/&/g,S):F)):c,C?R:0,g)}}),L&&l.push({r:f.reduceRight(Te,Te(M,m)),p:R*(1<<8)+(((N||15)&15)<<4|Math.max(0,15-L)&15)})},T=tt(t,re);return(f,m,R)=>(l=[],u([],m?"."+Z(m):"",R?R.v.reduceRight(T,0):0,f),l)},ot=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:l})=>{if(!i.has(s)){let u=je(r,l);try{e.insert(s,u),i.add(s),r.splice(u,0,l)}catch(T){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:T},n)}}}},we=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,Ce=(e,t=e.d)=>{if(O(t))return"";let n=p(e.v,"");return(n&&d(n)+":")+(e.n?"-":"")+t},it=(e={})=>{let t=Ge(e.theme),n=e.mode||ue,r=we(e.hash,!1,!1,oe),i={},s={tw:(...c)=>N(c),theme:(c,g,C)=>{g!=null&&!g.length&&(g="DEFAULT");let S=t(c,g,C)||n.unknown(c,g==null||Array.isArray(g)?g:g.split("."),C!=null,s);return i.n&&S&&$(S)?`calc(${S} * -1)`:S},tag:c=>r?r(c):c},l=Ze(a(a({},Ue),e.plugins),s),u=c=>{let g=i;i=c;try{return l(c)}finally{i=g}},T=Qe(e.darkMode||"media",s),f=rt(we(e.prefix,fe,me),s),m=ot(e.injector||(typeof window=="undefined"?ge():de(e)),n,s),R=new Map,G=new WeakMap,M=c=>{var C;((C=i.v)==null?void 0:C.length)&&(c=a(a({},c),{v:[...i.v,...c.v],$:""})),c.$||(c.$=Ce(c)||Ce(c,G.get(c.d)));let g=R.get(c.$);if(g==null){let S=u(c);c.$||(c.$=oe(JSON.stringify(S)),G.set(c.d,c.$),c.$=Ce(c,c.$)),$(S)?g=S:S?(S=T(S,c),g=r?r(JSON.stringify(S)):c.$,f(S,g,c).forEach(m)):(n.report({id:"UNKNOWN_DIRECTIVE",rule:c.$},s),g=""),R.set(c.$,g)}return g},N=c=>qe(c).map(M).filter(Boolean).join(" "),L=we(e.preflight,Pe,!1);if(L){let c=_e(t);f(L(c,s)||c).forEach(m)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:N}},ve=e=>{let t=r=>(n(),t(r)),n=r=>{({process:t,init:n}=it(r))};return e&&n(e),{tw:(...r)=>t(r),setup:r=>n(r)}};var st=ve(),{tw:vt}=st,{setup:Rt}=st;export{fe as autoprefix,ve as create,de as cssomInjector,pe as mode,ge as noOpInjector,me as noprefix,Rt as setup,pt as strict,vt as tw,gt as virtualInjector,ue as warn}; | ||
var k=e=>typeof e=="string",ve=e=>e!=null&&typeof e=="object",F=e=>typeof e=="function",h=(e,t)=>!!~e.indexOf(t),g=(e,t="-")=>e.join(t),L=(e,t)=>g(e.filter(Boolean),t),l=(e,t=1)=>e.slice(t),Re=e=>e,ke=e=>e[0].toUpperCase()+l(e),$e=e=>e.replace(/[A-Z]/g,"-$&").toLowerCase(),q=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),n="";return t>=48&&t<=57&&(n="\\"+t.toString(16)+" ",e=l(e)),n+e.replace(/[!./:#]/g,"\\$&")}),re=e=>{let t=9;for(let n=e.length;n--;)t=Math.imul(t^e.charCodeAt(n),1597334677);return"tw-"+((t^t>>>9)>>>0).toString(36)},Pe=(e,t)=>{let n=e.length;if(n===0)return 0;for(let r=0;r<n;){let i=n+r>>1;e[i]<=t?r=i+1:n=i}return n},Ee=e=>(t,n,r,i)=>{if(t){let s=n&&e(n);if(s&&s.length>0)return s.reduce((c,p)=>(c[L([r,p,i])]=t,c),{})}},Ae=Ee(e=>({t:["top-left","top-right"],r:["top-right","bottom-right"],b:["bottom-left","bottom-right"],l:["bottom-left","top-left"],tl:["top-left"],tr:["top-right"],bl:["bottom-left"],br:["bottom-right"]})[e]),G=e=>{let t=({x:"lr",y:"tb"}[e]||e||"").split("").sort();for(let n=t.length;n--;)if(!(t[n]={t:"top",r:"right",b:"bottom",l:"left"}[t[n]]))return;if(t.length)return t},Z=Ee(G),o,O,C,K=e=>(t,n,r)=>({[e]:r+((o=g(t))&&"-"+o)}),m=(e,t)=>n=>({[e]:g(n,t)}),S=e=>(t,{theme:n},r)=>({[e||r]:n(e||r,t)}),R=(e,t)=>(n,r)=>e(n,r,t),P=K("display"),Y=K("position"),U=K("textTransform"),_=K("textDecoration"),Q=K("fontStyle"),E=e=>(t,n,r)=>({["--tw-"+e]:r,fontVariantNumeric:"var(--tw-ordinal,/*!*/ /*!*/) var(--tw-slashed-zero,/*!*/ /*!*/) var(--tw-numeric-figure,/*!*/ /*!*/) var(--tw-numeric-spacing,/*!*/ /*!*/) var(--tw-numeric-fraction,/*!*/ /*!*/)"}),ee=(e,{theme:t},n)=>({[n]:t("inset",e)}),J=(e,t,n,r=n)=>({[`--tw-${n}-opacity`]:t(r+"Opacity",l(e))}),oe=(e,t)=>Math.round(parseInt(e,16)*t),ie=(e,t,n)=>e&&e[0]==="#"?`rgba(${oe(e.substr(1,o=(e.length-1)/3),C=[17,1,.062272][o-1])},${oe(e.substr(1+o,o),C)},${oe(e.substr(1+2*o,o),C)},var(--tw-${t}${n?","+n:""}))`:e,te=(e,t,n)=>n&&(o=ie(n,t+"-opacity"))&&o!==n?{[`--tw-${t}-opacity`]:"1",[e]:[n,o]}:{[e]:n},je=(e,{theme:t},n,r,i,s)=>(o={x:["right","left"],y:["bottom","top"]}[e[0]])&&(C=`--tw-${n}-${e[0]}-reverse`)?e[1]==="reverse"?{[C]:"1"}:{[C]:"0",[L([i,o[0],s])]:(O=t(r,l(e)))&&`calc(${O} * var(${C}))`,[L([i,o[1],s])]:O&&[O,`calc(${O} * calc(1 - var(${C})))`]}:void 0,Ie=(e,t)=>({[e]:(h("wun",(t[0]||"")[3])?"space-":"")+t[0]}),se=e=>t=>h(["start","end"],t[0])?{[e]:`flex-${t[0]}`}:Ie(e,t),Fe=e=>t=>{switch(t[0]){case"auto":return{[`grid-${e}`]:"auto"};case"span":return{[`grid-${e}`]:t[1]==="full"?"1 / -1":`span ${t[1]} / span ${t[1]}`};case"start":case"end":return{[`grid-${e}-${t[0]}`]:t[1]}}},Oe=(e,{theme:t},n)=>{switch(e[0]){case"solid":case"dashed":case"dotted":case"double":case"none":return m("borderStyle")(e);case"collapse":case"separate":return m("borderCollapse")(e);case"opacity":return J(e,t,n)}return(o=t(n+"Width",e,""))?{borderWidth:o}:te("borderColor",n,t(n+"Color",e))},ae=e=>(e?"translate3d(var(--tw-translate-x,0),var(--tw-translate-y,0),0)":"translateX(var(--tw-translate-x,0)) translateY(var(--tw-translate-y,0))")+" rotate(var(--tw-rotate,0)) skewX(var(--tw-skew-x,0)) skewY(var(--tw-skew-y,0)) scaleX(var(--tw-scale-x,1)) scaleY(var(--tw-scale-y,1))",ce=(e,t,n)=>(o=t.theme(n,e[1]||e[0]))&&{[`--tw-${n}-x`]:e[0]!=="y"&&o,[`--tw-${n}-y`]:e[0]!=="x"&&o,transform:[`${n}${e[1]?e[0].toUpperCase():""}(${o})`,ae()]},De=()=>"var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow,0 0 transparent)",We=(e,{theme:t},n)=>(o=t("gradientColorStops",e))&&{["--tw-gradient-"+n]:o},ze=e=>(t,n,r)=>r[1]?Z(n.theme(e,t),r[1],e):S(e)(t,n,r),D=ze("padding"),W=ze("margin"),He=(e,{theme:t},n)=>(o={w:"width",h:"height"}[e[0]])&&{[o=`${n}${ke(o)}`]:t(o,l(e))},Me={group:(e,{tag:t})=>t("group"),hidden:R(P,"none"),inline:P,block:P,contents:P,flow:P,table:(e,t,n)=>h(["auto","fixed"],e[0])?{tableLayout:e[0]}:P(e,t,n),flex(e,t,n){switch(e[0]){case"row":case"col":return{flexDirection:g(e[0]==="col"?["column",...l(e)]:e)};case"nowrap":case"wrap":return{flexWrap:g(e)};case"grow":case"shrink":return{[`flex-${e[0]}`]:e[1]||"1"}}return(o=t.theme("flex",e,""))?{flex:o}:P(e,t,n)},grid(e,t,n){switch(e[0]){case"cols":case"rows":return e.length>1&&{[`grid-template-${e[0]==="cols"?"columns":e[0]}`]:e.length===2&&Number(e[1])?`repeat(${e[1]},minmax(0,1fr))`:g(l(e)," ")};case"flow":return e.length>1&&{gridAutoFlow:g(e[1]==="col"?["column",...l(e,2)]:l(e)," ")}}return P(e,t,n)},auto:e=>h(["cols","rows"],e[0])&&(o=e.length===2?{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"}[e[1]]||`minmax(0,${e[1]})`:e.length>2&&`minmax(${g(l(e),",")})`)&&{[`grid-auto-${e[0]==="cols"?"columns":"rows"}`]:o},static:Y,fixed:Y,absolute:Y,relative:Y,sticky:Y,visible:{visibility:"visible"},invisible:{visibility:"hidden"},antialiased:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},"subpixel-antialiased":{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"},truncate:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"},"not-sr-only":{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"},resize:e=>({resize:{x:"vertical",y:"horizontal"}[e[0]]||e[0]||"both"}),box:e=>({"box-sizing":`${e[0]}-box`}),appearance:m("appearance"),cursor:m("cursor"),float:m("float"),clear:m("clear"),top:ee,right:ee,bottom:ee,left:ee,inset:(e,{theme:t})=>(o=G(e[0]))?Z(t("inset",l(e)),e[0]):(o=t("inset",e))&&{top:o,right:o,bottom:o,left:o},underline:_,"line-through":_,"no-underline":R(_,"none"),"text-underline":R(_,"underline"),"text-no-underline":R(_,"none"),"text-line-through":R(_,"line-through"),uppercase:U,lowercase:U,capitalize:U,"normal-case":R(U,"none"),"text-normal-case":R(U,"none"),italic:Q,"not-italic":R(Q,"normal"),"font-italic":R(Q,"italic"),"font-not-italic":R(Q,"normal"),font:(e,t,n)=>(o=t.theme("fontFamily",e,""))?{fontFamily:o}:S("fontWeight")(e,t,n),items:e=>({alignItems:h(["start","end"],e[0])?`flex-${e[0]}`:g(e)}),content:se("alignContent"),justify:se("justifyContent"),self:se("alignSelf"),place:e=>Ie("place-"+e[0],l(e)),overscroll:e=>({["overscrollBehavior"+(e[1]?"-"+e[0]:"")]:e[1]||e[0]}),col:Fe("column"),row:Fe("row"),duration:S("transitionDuration"),delay:S("transitionDelay"),tracking:S("letterSpacing"),leading:S("lineHeight"),z:S("zIndex"),opacity:S(),ease:S("transitionTimingFunction"),p:D,py:D,px:D,pt:D,pr:D,pb:D,pl:D,m:W,my:W,mx:W,mt:W,mr:W,mb:W,ml:W,w:S("width"),h:S("height"),min:He,max:He,fill:S(),order:S(),origin:m("transformOrigin"," "),select:m("userSelect"),"pointer-events":m("pointerEvents"),align:m("verticalAlign"),whitespace:m("whiteSpace"),"normal-nums":{fontVariantNumeric:"normal"},ordinal:E("ordinal"),"slashed-zero":E("slashed-zero"),"lining-nums":E("numeric-figure"),"oldstyle-nums":E("numeric-figure"),"proportional-nums":E("numeric-spacing"),"tabular-nums":E("numeric-spacing"),"diagonal-fractions":E("numeric-fraction"),"stacked-fractions":E("numeric-fraction"),overflow:e=>h(["ellipsis","clip"],e[0])?m("textOverflow")(e):e[1]?{[`overflow-${e[0]}`]:e[1]}:m("overflow")(e),transform:e=>e[0]==="none"?{transform:"none"}:{"--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",transform:ae(e[0]==="gpu")},rotate:(e,{theme:t})=>(o=t("rotate",e))&&{"--tw-rotate":o,transform:[`rotate(${o})`,ae()]},scale:ce,translate:ce,skew:ce,gap:(e,t,n)=>(o={x:"column",y:"row"}[e[0]])?{[o+"Gap"]:t.theme("gap",l(e))}:S("gap")(e,t,n),stroke:(e,t,n)=>(o=t.theme("stroke",e,""))?{stroke:o}:S("strokeWidth")(e,t,n),outline:(e,{theme:t})=>(o=t("outline",e))&&{outline:o[0],outlineOffset:o[1]},break(e){switch(e[0]){case"normal":return{wordBreak:"normal",overflowWrap:"normal"};case"words":return{overflowWrap:"break-word"};case"all":return{wordBreak:"break-all"}}},text(e,{theme:t},n){switch(e[0]){case"left":case"center":case"right":case"justify":return{textAlign:e[0]};case"uppercase":case"lowercase":case"capitalize":return U([],o,e[0]);case"opacity":return J(e,t,n)}let r=t("fontSize",e,"");return r?k(r)?{fontSize:r}:{fontSize:r[0],...k(r[1])?{lineHeight:r[1]}:r[1]}:te("color","text",t("textColor",e))},bg(e,{theme:t},n){switch(e[0]){case"fixed":case"local":case"scroll":return m("backgroundAttachment",",")(e);case"bottom":case"center":case"left":case"right":case"top":return m("backgroundPosition"," ")(e);case"no":return e[1]==="repeat"&&m("backgroundRepeat")(e);case"auto":case"cover":case"contain":return m("backgroundSize")(e);case"repeat":return h("xy",e[1])?m("backgroundRepeat")(e):{"background-repeat":e[1]||e[0]};case"opacity":return J(e,t,n,"background");case"clip":return{backgroundClip:e[1]+(e[1]==="text"?"":"-box")};case"gradient":if(e[1]==="to"&&(o=G(e[2])))return{backgroundImage:`linear-gradient(to ${g(o," ")},var(--tw-gradient-stops,var(--tw-gradient-from,transparent),var(--tw-radient-to,transparent)))`}}return(o=t("backgroundImage",e,""))?{backgroundImage:o}:te("backgroundColor","bg",t("backgroundColor",e))},from:We,to:We,via:(e,{theme:t})=>(o=t("gradientColorStops",e))&&{"--tw-gradient-stops":`var(--tw-gradient-from,transparent),${o},var(--tw-gradient-to,transparent)`},border:(e,t,n)=>G(e[0])?Z(t.theme("borderWidth",l(e)),e[0],"border","width"):Oe(e,t,n),divide:(e,t,n)=>(o=je(e,t,n,"divideWidth","border","width")||Oe(e,t,n))&&{"&>:not([hidden])~:not([hidden])":o},space:(e,t,n)=>(o=je(e,t,n,"space","margin"))&&{"&>:not([hidden])~:not([hidden])":o},placeholder:(e,{theme:t},n)=>(o=e[0]==="opacity"?J(e,t,n):te("color","placeholder",t("placeholderColor",e)))&&{"&::placeholder":o},shadow:(e,{theme:t})=>(o=t("boxShadow",e))&&{"--tw-shadow":o,boxShadow:[o,De()]},animate:(e,{theme:t,tag:n})=>{if(C=t("animation",e)){let r=C.split(" ");return(o=t("keyframes",r[0],O={}))!==O?(C=n(r[0]))&&{animation:C+" "+g(l(r)," "),["@keyframes "+C]:o}:{animation:C}}},ring(e,{theme:t},n){switch(e[0]){case"inset":return{"--tw-ring-inset":"inset"};case"opacity":return J(e,t,n);case"offset":return(o=t("ringOffsetWidth",l(e),""))?{"--tw-ring-offset-width":o}:{"--tw-ring-offset-color":t("ringOffsetColor",l(e))}}return(o=t("ringWidth",e,""))?{"--tw-ring-offset-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")}) var(--tw-ring-offset-color,${t("ringOffsetColor","","#fff")})`,"--tw-ring-shadow":`var(--tw-ring-inset,/*!*/ /*!*/) 0 0 0 calc(${o} + var(--tw-ring-offset-width,${t("ringOffsetWidth","","0px")})) var(--tw-ring-color,${ie(t("ringColor","","#93c5fd"),"ring-opacity",t("ringOpacity","","0.5"))})`,"box-shadow":De()}:{"--tw-ring-opacity":"1","--tw-ring-color":ie(t("ringColor",e),"ring-opacity")}},object:e=>h(["contain","cover","fill","none","scale"],e[0])?m("objectFit")(e):m("objectPosition"," ")(e),list:e=>m(h(["inside","outside"],e[0])?"listStylePosition":"listStyleType")(e),rounded:(e,t,n)=>Ae(t.theme("borderRadius",l(e),""),e[0],"border","radius")||S("borderRadius")(e,t,n),"transition-none":{"transition-property":"none"},transition:(e,{theme:t})=>({transition:L([t("transitionProperty",e),t("transitionDuration",""),t("transitionTimingFunction","")]," ")}),container:(e,{theme:t})=>{let{screens:n=t("screens"),center:r,padding:i}=t("container"),s=c=>(o=i&&(k(i)?i:i[c]||i.DEFAULT))?{paddingRight:o,paddingLeft:o}:{};return Object.keys(n).reduce((c,p)=>((o=n[p])&&(c[`@media (min-width: ${o})`]={"&":{"max-width":o,...s(p)}}),c),{width:"100%",...r?{marginRight:"auto",marginLeft:"auto"}:{},...s("xs")})}},Ne=e=>({":root":{tabSize:4},"body,blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre,fieldset,ol,ul":{margin:"0"},button:{backgroundColor:"transparent",backgroundImage:"none"},'button,[type="button"],[type="reset"],[type="submit"]':{WebkitAppearance:"button"},"button:focus":{outline:["1px dotted","5px auto -webkit-focus-ring-color"]},"fieldset,ol,ul,legend":{padding:"0"},"ol,ul":{listStyle:"none"},html:{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",fontFamily:e("fontFamily","sans","ui-sans-serif,system-ui,sans-serif")},body:{fontFamily:"inherit",lineHeight:"inherit"},"*,::before,::after":{boxSizing:"border-box",border:`0 solid ${e("borderColor","DEFAULT","currentColor")}`},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},img:{borderStyle:"solid"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{color:e("placeholderColor","DEFAULT","#a1a1aa")},'button,[role="button"]':{cursor:"pointer"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",margin:"0",padding:"0",lineHeight:"inherit",color:"inherit"},"button,select":{textTransform:"none"},"::-moz-focus-inner":{borderStyle:"none",padding:"0"},":-moz-focusring":{outline:"1px dotted ButtonText"},":-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"},"abbr[title]":{textDecoration:"underline dotted"},"b,strong":{fontWeight:"bolder"},"pre,code,kbd,samp":{fontFamily:e("fontFamily","mono","ui-monospace,monospace"),fontSize:"1em"},"sub,sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"}}),Le="__tw-in-js",it=e=>{let t=self[Le];return t||(t=document.head.appendChild(document.createElement("style")),t.id=Le,e&&(t.nonce=e)),t},st=({target:e=[]}={})=>({target:e,insert:(t,n)=>e.splice(n,0,t)}),le=({nonce:e,target:t=it(e).sheet}={})=>({target:t,insert:t.insertRule.bind(t)}),de=()=>({insert:()=>{}}),ge=e=>({unknown(t,n=[],r,i){r||this.report({id:"UNKNOWN_THEME_VALUE",key:g([t,...n],".")},i)},report({id:t,...n}){let r=`[${t}] ${JSON.stringify(n)}`,i=(new Error(r).stack||r).split("at ");for(let s;(s=i.splice(1,1)[0])&&!/(^|\.)(tw|setup) /.test(s););e(i.join("at "))}}),pe=ge(e=>console.warn(e)),at=ge(e=>{throw new Error(e)});import{prefixProperty as ct,prefixValue as lt}from"tiny-css-prefixer";var ue=(e,t)=>{let n=`${e}:${lt(e,t)}`,r=n,i=ct(e);return i&1&&(r+=`;-ms-${n}`),i&2&&(r+=`;-moz-${n}`),i&4&&(r+=`;-webkit-${n}`),r},fe=(e,t)=>`${e}:${t}`,X=(e,t)=>{let n={};do for(let r=1;r<e;r++)n[`${r}/${e}`]=Number((r/e*100).toFixed(6))+"%";while(++e<=t);return n},A=(e,t,n=0)=>{let r={};for(;n<=e;n=n*2||1)r[n]=n+t;return r},$=(e,t="",n=1,r=0,i=1)=>{let s={};for(;r<=e;r+=i)s[r]=r/n+t;return s},b=e=>t=>t(e),Ue={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},colors:{transparent:"transparent",current:"currentColor",black:"#000",white:"#fff",gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},yellow:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},green:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},purple:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"}},spacing:{px:"1px",0:"0px",...$(4,"rem",4,.5,.5),...$(12,"rem",4,5),14:"3.5rem",...$(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"},backgroundColor:b("colors"),backgroundImage:{none:"none"},backgroundOpacity:b("opacity"),borderColor:e=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:b("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderWidth:{DEFAULT:"1px",...A(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 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",inner:"inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",none:"none"},container:{},divideColor:b("borderColor"),divideOpacity:b("borderOpacity"),divideWidth:b("borderWidth"),fill:{current:"currentColor"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},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:b("spacing"),gradientColorStops:b("colors"),height:e=>({auto:"auto",...e("spacing"),...X(2,6),full:"100%",screen:"100vh"}),inset:e=>({auto:"auto",...e("spacing"),...X(2,4),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:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",...$(10,"rem",4,3)},margin:e=>({auto:"auto",...e("spacing")}),maxHeight:e=>({...e("spacing"),full:"100%",screen:"100vh"}),maxWidth:(e,{breakpoints:t})=>({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",prose:"65ch",...t(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content"},opacity:{...$(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0",...$(12,"",1,1)},outline:{none:["2px solid transparent","2px"],white:["2px dotted white","2px"],black:["2px dotted black","2px"]},padding:b("spacing"),placeholderColor:b("colors"),placeholderOpacity:b("opacity"),ringColor:e=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:b("colors"),ringOffsetWidth:A(8,"px"),ringOpacity:e=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",...A(8,"px")},rotate:{...A(2,"deg"),...A(12,"deg",3),...A(180,"deg",45)},scale:{0:"0",50:".5",75:".75",...$(110,"",100,90,5),125:"1.25",150:"1.5"},skew:{...A(2,"deg"),...A(12,"deg",3)},space:b("spacing"),stroke:{current:"currentColor"},strokeWidth:$(2),textColor:b("colors"),textOpacity:b("opacity"),transitionDuration:e=>({DEFAULT:"150ms",...e("durations")}),transitionDelay:b("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"background-color,border-color,color,fill,stroke,opacity,box-shadow,transform",colors:"background-color,border-color,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:e=>({...e("spacing"),...X(2,4),full:"100%"}),width:e=>({auto:"auto",...e("spacing"),...X(2,6),...X(12,12),screen:"100vw",full:"100%",min:"min-content",max:"max-content"}),zIndex:{auto:"auto",...$(50,"",1,0,10)}},dt=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=r,ve(r)?Object.keys(r).reduce((i,s)=>(s==="DEFAULT"&&(i[n]=r[s]),i[n+"-"+s]=r[s],i[n+"."+s]=r[s],i),t):t},{}),gt={negative:()=>({}),breakpoints:e=>Object.keys(e).reduce((t,n)=>(t["screen-"+n]=e[n],t),{})},_e=e=>{let t=new Map,n={...Ue,...e},r=(c,p)=>{let y=c.split(".");return s(y[0],y.length>1?l(y):void 0,p)},i=(c,p)=>{let y=c&&c[p],u=F(y)?y(r,gt):y;return u&&p==="colors"?dt(u):u},s=(c,p,y)=>{let u=t.get(c);if(u||t.set(c,u={...i(n,c),...i(n.extend,c)}),p!=null){let f=u[(Array.isArray(p)?g(p):p)||"DEFAULT"];return f==null?y:Array.isArray(f)&&!h(["fontSize","outline"],c)?g(f,","):f}return u};return s},j,V,z=(e="")=>(j.push(e),""),me=e=>{j.length=Math.max(j.lastIndexOf("")+~~e,0)},pt=e=>e&&e[0]!==":",ut=e=>e[0]===":",Ve=(e,t)=>{V.push({v:j.filter(ut),d:e,n:t,$:""})},Be=e=>{let t=e[0]==="-";t&&(e=l(e));let n=g(j.filter(pt));return Ve(e==="&"?n:(n&&n+"-")+e,t),""},he=(e,t)=>{let n,r="";for(let i=0;i<e.length;)switch(n=e[i++]){case":":r=r&&z(":"+r);break;case"(":r=r&&z(r),z();break;case")":case" ":case" ":case` | ||
`:case"\r":r=r&&Be(r),me(n!==")");break;default:r+=n}r&&(t?z(":"+r):r.slice(-1)==="-"?z(r.slice(0,-1)):Be(r))},Ge=e=>{z(),xe(e),me()},ft=(e,t)=>{if(t){z();let n=h("tbu",(typeof t)[1]);he(e,n),n&&Ge(t),me()}},xe=e=>{switch(typeof e){case"string":he(e);break;case"function":Ve(e);break;case"object":Array.isArray(e)?e.forEach(Ge):e&&Object.keys(e).forEach(t=>{ft(t,e[t])})}},Ke=new WeakMap,mt=e=>{let t=Ke.get(e);return t||(t=e.map(n=>{let r=V=[];he(n);let i=[...j];return V=[],s=>{V.push(...r),j=[...i],s&&xe(s)}}),Ke.set(e,t)),t},Ye=e=>(j=[],V=[],Array.isArray(e[0])&&Array.isArray(e[0].raw)?mt(e[0]).forEach((t,n)=>t(e[n+1])):e.forEach(xe),V),Je=(e,t)=>n=>{if(F(n.d))return n.d(t);let r=n.d.split("-");for(let i=r.length;i;i--){let s=g(r.slice(0,i)),c=e[s];if(c)return F(c)?c(l(r,i),t,s):k(c)?t.tw(c):c}},ne={":dark":"@media (prefers-color-scheme:dark)",":sticky":"@supports ((position: -webkit-sticky) or (position:sticky))",":motion-reduce":"@media (prefers-reduced-motion:reduce)",":motion-safe":"@media (prefers-reduced-motion:no-preference)",":first":"&:first-child",":last":"&:last-child",":even":"&:nth-child(2n)",":odd":"&:nth-child(odd)"},Xe=(e,{theme:t,tag:n})=>{let r=(i,s)=>{let c=t("screens",l(s),"");return c?{[`@media (min-width: ${c})`]:i}:s===":dark"&&e==="class"?{[".dark &"]:i}:s.slice(1,7)==="group-"?{[`.${q(n("group"))}:${l(s,7)} &`]:i}:{[ne[s]||"&"+s]:i}};return(i,s)=>s.v.reduceRight(r,i)},T,Se=e=>(((T=/(?:^|min-width: *)(\d+(?:.\d+)?)(p)?/.exec(e))?+T[1]/(T[2]?15:1)/10:0)&31)<<23,qe=e=>{T=0;for(let t=e.length;t--;)T+=h("-:,",e[t]);return T},be=e=>(qe(e)&15)<<18,ht=["rst","st","en","d","nk","sited","pty","ecked","cus-w","ver","cus","cus-v","tive","sable","ad-on","tiona","quire"],xt=e=>1<<(~(T=ht.indexOf(e.replace(/^:group-/,":").slice(3,8)))?T:17),Ze=(e,t)=>(n,r)=>n|((T=e("screens",l(r),""))?Se(T):r===":dark"?1<<22:(T=t[r]||r)[0]==="@"?be(T):xt(r)),St=/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7}$)|([fl].{5}l|g.{8}$|pl))/,Qe=e=>e[0]==="-"?0:qe(e)+((T=St.exec(e))?+!!T[1]||-!!T[2]:0)+1,ye=(e,t)=>t+"{"+e+"}",et=(e,{theme:t,tag:n})=>{let r=(u,f)=>"--"+n(f),i=u=>`${u}`.replace(/--(tw-[\w-]+)\b/g,r),s=(u,f)=>(u=i(u),Array.isArray(f)?g(f.filter(Boolean).map(v=>e(u,i(v))),";"):e(u,i(f))),c,p=(u,f,v,B)=>{let H="",M=0,N=0;Object.keys(B).forEach(a=>{let d=B[a];if(h("rg",(typeof d)[5])||Array.isArray(d)){let w=$e(a);N+=1,M=Math.max(M,Qe(w)),H=(H&&H+";")+s(w,d)}else if(d)if(a[0]==="@")if(a[1]==="f")p([],a,0,d);else if(a[1]==="k"){let w=c.length;p([],"",0,d);let x=c.splice(w,c.length-w);c.push({r:ye(g(x.map(I=>I.r),""),a),p:x.reduce((I,ot)=>I+ot.p,0)})}else p([...u,a],f,v|(Se(a)||be(a)),d);else{let w=f&&h(a,"&");p(u,w?f.replace(/([^,])+/g,x=>a.replace(/([^,])+/g,I=>h(I,"&")?I.replace(/&/g,x):I)):a,w?v:0,d)}}),N&&c.push({r:u.reduceRight(ye,ye(H,f)),p:v*(1<<8)+(((M||15)&15)<<4|Math.max(0,15-N)&15)})},y=Ze(t,ne);return(u,f,v)=>(c=[],p([],f?"."+q(f):"",v?v.v.reduceRight(y,0):0,u),c)},tt=(e,t,n)=>{let r=[],i=new Set;return({r:s,p:c})=>{if(!i.has(s)){let p=Pe(r,c);try{e.insert(s,p),i.add(s),r.splice(p,0,c)}catch(y){/:-[mwo]/.test(s)||t.report({id:"INJECT_CSS_ERROR",css:s,error:y},n)}}}},Te=(e,t,n,r=t)=>e===!1?n:e===!0?r:e||t,we=(e,t=e.d)=>{if(F(t))return"";let n=g(e.v,"");return(n&&l(n)+":")+(e.n?"-":"")+t},nt=(e={})=>{let t=_e(e.theme),n=e.mode||pe,r=Te(e.hash,!1,!1,re),i={},s={tw:(...a)=>M(a),theme:(a,d,w)=>{d!=null&&!d.length&&(d="DEFAULT");let x=t(a,d,w)||n.unknown(a,d==null||Array.isArray(d)?d:d.split("."),w!=null,s);return i.n&&x&&k(x)?`calc(${x} * -1)`:x},tag:a=>r?r(a):a},c=Je({...Me,...e.plugins},s),p=a=>{let d=i;i=a;try{return c(a)}finally{i=d}},y=Xe(e.darkMode||"media",s),u=et(Te(e.prefix,ue,fe),s),f=tt(e.injector||(typeof window=="undefined"?de():le(e)),n,s),v=new Map,B=new WeakMap,H=a=>{var w;((w=i.v)==null?void 0:w.length)&&(a={...a,v:[...i.v,...a.v],$:""}),a.$||(a.$=we(a)||we(a,B.get(a.d)));let d=v.get(a.$);if(d==null){let x=p(a);a.$||(a.$=re(JSON.stringify(x)),B.set(a.d,a.$),a.$=we(a,a.$)),k(x)?d=x:x?(x=y(x,a),d=r?r(JSON.stringify(x)):a.$,u(x,d,a).forEach(f)):(n.report({id:"UNKNOWN_DIRECTIVE",rule:a.$},s),d=""),v.set(a.$,d)}return d},M=a=>Ye(a).map(H).filter(Boolean).join(" "),N=Te(e.preflight,Re,!1);if(N){let a=Ne(t);u(N(a,s)||a).forEach(f)}return{init:()=>n.report({id:"LATE_SETUP_CALL"},s),process:M}},Ce=e=>{let t=r=>(n(),t(r)),n=r=>{({process:t,init:n}=nt(r))};return e&&n(e),{tw:(...r)=>t(r),setup:r=>n(r)}};var rt=Ce(),{tw:bt}=rt,{setup:yt}=rt;export{ue as autoprefix,Ce as create,le as cssomInjector,ge as mode,de as noOpInjector,fe as noprefix,yt as setup,at as strict,bt as tw,st as virtualInjector,pe as warn}; |
{ | ||
"name": "twind", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "compiles tailwind like shorthand syntax into css at runtime", | ||
@@ -44,2 +44,2 @@ "keywords": [ | ||
"sideEffects": false | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
668941
3618