@tailwindcss/upgrade 4.0.0-beta.5 → 4.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +21 -21
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var ln=Object.create;var Ft=Object.defineProperty;var an=Object.getOwnPropertyDescriptor;var sn=Object.getOwnPropertyNames;var un=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty;var fn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var pn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sn(t))!cn.call(e,i)&&i!==r&&Ft(e,i,{get:()=>t[i],enumerable:!(n=an(t,i))||n.enumerable});return e};var dn=(e,t,r)=>(r=e!=null?ln(un(e)):{},pn(t||!e||!e.__esModule?Ft(r,"default",{value:e,enumerable:!0}):r,e));var Ii=fn((gm,ji)=>{"use strict";var al=["anchor-size"],um=new RegExp(`(${al.join("|")})\\(`,"g"),Xe=new Uint8Array(256);function sl(e,t){let r=0,n=[],i=0,l=e.length,a=t.charCodeAt(0);for(let s=0;s<l;s++){let o=e.charCodeAt(s);if(r===0&&o===a){n.push(e.slice(i,s)),i=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:Xe[r]=41,r++;break;case 91:Xe[r]=93,r++;break;case 123:Xe[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===Xe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var fe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,cm=new RegExp(`^${fe.source}$`),fm=new RegExp(`^${fe.source}%$`),ul=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],pm=new RegExp(`^${fe.source}(${ul.join("|")})$`),cl=["deg","rad","grad","turn"],dm=new RegExp(`^${fe.source}(${cl.join("|")})$`),mm=new RegExp(`^${fe.source} +${fe.source} +${fe.source}$`);function re(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var fl={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function pe(e){return{__BARE_VALUE__:e}}var z=pe(e=>{if(re(e.value))return e.value}),P=pe(e=>{if(re(e.value))return`${e.value}%`}),te=pe(e=>{if(re(e.value))return`${e.value}px`}),Oi=pe(e=>{if(re(e.value))return`${e.value}ms`}),et=pe(e=>{if(re(e.value))return`${e.value}deg`}),pl=pe(e=>{if(e.fraction===null)return;let[t,r]=sl(e.fraction,"/");if(!(!re(t)||!re(r)))return e.fraction}),Di=pe(e=>{if(re(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),dl={accentColor:({theme:e})=>e("colors"),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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...pl},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...P}),backdropContrast:({theme:e})=>({...e("contrast"),...P}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...P}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...et}),backdropInvert:({theme:e})=>({...e("invert"),...P}),backdropOpacity:({theme:e})=>({...e("opacity"),...P}),backdropSaturate:({theme:e})=>({...e("saturate"),...P}),backdropSepia:({theme:e})=>({...e("sepia"),...P}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("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"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...te},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...P},caretColor:({theme:e})=>e("colors"),colors:()=>({...fl}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...z},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...P},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...te}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...z},flexShrink:{0:"0",DEFAULT:"1",...z},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...P},grayscale:{0:"0",DEFAULT:"100%",...P},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Di},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Di},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...et},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...P},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...z},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...P},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...z},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...et},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...P},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...P},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...P},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...et},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...z},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Oi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Oi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...z}};ji.exports=dl});import{globby as rn}from"globby";import nn from"node:fs/promises";import Yl from"node:path";import Ql from"postcss";import Lt from"postcss";import{format as zt}from"prettier";function S(e,t){let r;return e.each?.((n,i)=>{let l=t(n,i,e)??0;if(l===2)return r=!1,r;if(l!==1)return r=S(n,t),r}),r}function ut(e,t){e?.each?.(r=>{ut(r,t),t(r)})}var Kt={parser:"css",semi:!0,singleQuote:!0};function Mt(){async function e(t){let r=[];S(t,(i,l,a)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=a,r.unshift(i))});let n=[];for(let i of r){let l=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(l);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await zt(l,Kt));continue}i.replaceWith(Lt.parse(`${i.raws.before??""}${(await zt(l,Kt)).trim()}`))}t.removeAll(),t.append(Lt.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
2
|
+
var ln=Object.create;var Ft=Object.defineProperty;var an=Object.getOwnPropertyDescriptor;var sn=Object.getOwnPropertyNames;var un=Object.getPrototypeOf,cn=Object.prototype.hasOwnProperty;var fn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var pn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sn(t))!cn.call(e,i)&&i!==r&&Ft(e,i,{get:()=>t[i],enumerable:!(n=an(t,i))||n.enumerable});return e};var dn=(e,t,r)=>(r=e!=null?ln(un(e)):{},pn(t||!e||!e.__esModule?Ft(r,"default",{value:e,enumerable:!0}):r,e));var Ii=fn((gm,ji)=>{"use strict";var sl=["anchor-size"],um=new RegExp(`(${sl.join("|")})\\(`,"g"),Xe=new Uint8Array(256);function ul(e,t){let r=0,n=[],i=0,l=e.length,a=t.charCodeAt(0);for(let s=0;s<l;s++){let o=e.charCodeAt(s);if(r===0&&o===a){n.push(e.slice(i,s)),i=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:Xe[r]=41,r++;break;case 91:Xe[r]=93,r++;break;case 123:Xe[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===Xe[r-1]&&r--;break}}return n.push(e.slice(i)),n}var fe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,cm=new RegExp(`^${fe.source}$`),fm=new RegExp(`^${fe.source}%$`),cl=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],pm=new RegExp(`^${fe.source}(${cl.join("|")})$`),fl=["deg","rad","grad","turn"],dm=new RegExp(`^${fe.source}(${fl.join("|")})$`),mm=new RegExp(`^${fe.source} +${fe.source} +${fe.source}$`);function re(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var pl={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function pe(e){return{__BARE_VALUE__:e}}var L=pe(e=>{if(re(e.value))return e.value}),P=pe(e=>{if(re(e.value))return`${e.value}%`}),te=pe(e=>{if(re(e.value))return`${e.value}px`}),Oi=pe(e=>{if(re(e.value))return`${e.value}ms`}),et=pe(e=>{if(re(e.value))return`${e.value}deg`}),dl=pe(e=>{if(e.fraction===null)return;let[t,r]=ul(e.fraction,"/");if(!(!re(t)||!re(r)))return e.fraction}),Di=pe(e=>{if(re(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ml={accentColor:({theme:e})=>e("colors"),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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...dl},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...P}),backdropContrast:({theme:e})=>({...e("contrast"),...P}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...P}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...et}),backdropInvert:({theme:e})=>({...e("invert"),...P}),backdropOpacity:({theme:e})=>({...e("opacity"),...P}),backdropSaturate:({theme:e})=>({...e("saturate"),...P}),backdropSepia:({theme:e})=>({...e("sepia"),...P}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("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"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...te},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...P},caretColor:({theme:e})=>e("colors"),colors:()=>({...pl}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...L},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...P},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...te}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...L},flexShrink:{0:"0",DEFAULT:"1",...L},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...P},grayscale:{0:"0",DEFAULT:"100%",...P},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Di},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...Di},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...et},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...P},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...L},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...P},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...L},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...et},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...P},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...P},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...P},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...et},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...L},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...te},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Oi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Oi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...L}};ji.exports=ml});import{globby as rn}from"globby";import nn from"node:fs/promises";import Ql from"node:path";import Zl from"postcss";import zt from"postcss";import{format as Lt}from"prettier";function S(e,t){let r;return e.each?.((n,i)=>{let l=t(n,i,e)??0;if(l===2)return r=!1,r;if(l!==1)return r=S(n,t),r}),r}function ut(e,t){e?.each?.(r=>{ut(r,t),t(r)})}var Kt={parser:"css",semi:!0,singleQuote:!0};function Mt(){async function e(t){let r=[];S(t,(i,l,a)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=a,r.unshift(i))});let n=[];for(let i of r){let l=i.type==="atrule"&&i.name==="tw-bucket"?i.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):i.toString();if(i.type==="atrule"&&i.name==="tw-bucket"&&i.params==="user"){n.push(l);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await Lt(l,Kt));continue}i.replaceWith(zt.parse(`${i.raws.before??""}${(await Lt(l,Kt)).trim()}`))}t.removeAll(),t.append(zt.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
3
3
|
|
|
4
4
|
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import mn from"postcss";var k=class extends Map{constructor(r){super();this.factory=r}get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var Wt=["import","config","plugin","source","variant","theme","compatibility","utility","user"];function Ht(){async function e(t){{let s=function(o,...u){a=o,l.get(o).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],l=new k(o=>{let u=mn.atRule({name:"tw-bucket",params:o,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",o=>{l.set(o.params,o)});let a="user";S(t,o=>{if(o.type==="atrule"&&o.name==="tw-bucket")return 1;if(o.type==="comment"){if(i.length>0){i.push(o);return}let u=Bt(o.prev(),o)??1/0,c=Bt(o,o.next())??1/0;u<c?l.get(a).nodes?.push(o):i.push(o)}else o.type==="atrule"&&["config","plugin","source","theme","utility","variant"].includes(o.name)?s(o.name,o):o.type==="atrule"&&o.name==="layer"&&!o.nodes||o.type==="atrule"&&o.name==="import"||o.type==="atrule"&&o.name==="charset"||o.type==="atrule"&&o.name==="tailwind"?s("import",o):(o.type==="rule"||o.type,s("user",o));return 1}),i.length>0&&s(a)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let l=r.get(i.params);if(!l){r.set(i.params,i);return}i.nodes&&l.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((l,a)=>{let s=Wt.indexOf(l.params),o=Wt.indexOf(a.params);return s-o});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Bt(e,t){return!e||!t||!e.source||!t.source||!e.source.start||!t.source.start||!e.source.end||!t.source.end?null:Math.abs(e.source.end.line-t.source.start.line)}import H from"picocolors";import wn from"node:fs";import Yt from"node:path";import{stripVTControlCharacters as Qt}from"node:util";import O from"picocolors";import de from"enhanced-resolve";import ct from"node:fs";import{createRequire as gn}from"node:module";var hn=gn(import.meta.url).resolve;function Jt(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return hn(e)}var yn=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ct,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),vn=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ct,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Gt(e,t){try{return yn.resolveSync({},t,e)}catch{return vn.resolveSync({},t,e)}}var bn=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ct,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function ft(e,t){return bn.resolveSync({},t,e)}var _e={indent:2};function Ee(){return`${O.italic(O.bold(O.blue("\u2248")))} tailwindcss ${O.blue(`v${kn()}`)}`}function v(e){return`${O.dim(O.blue("`"))}${O.blue(e)}${O.dim(O.blue("`"))}`}function _(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Yt.relative(t,e);return n.startsWith("..")||(n=`.${Yt.sep}${n}`),r&&n.length>e.length?e:n}function we(e,t){if(e.includes(`
|
|
5
5
|
`))return e.split(`
|
|
6
6
|
`).flatMap(a=>we(a,t));let r=e.split(" "),n=[],i="",l=0;for(let a of r){let s=Qt(a).length;l+s+1>t&&(n.push(i),i="",l=0),i+=(l?" ":"")+a,l+=s+(l?1:0)}return l&&n.push(i),n}function ke(e,t=0){return`${" ".repeat(t+_e.indent)}${e}`}function Oe(e,{art:t=O.gray("\u2502"),prefix:r="",print:n=q}){let i=r.length,l=" ",a=l.length,s=Qt(t).length,u=process.stderr.columns-i-a*2-s;we(e,u).map((c,f)=>n(`${t}${l}${f===0?r:" ".repeat(i)}${c}${l}`)),n()}function T(e,{prefix:t="",print:r=q}={}){Oe(e,{art:O.green("\u2502"),prefix:t,print:r})}function j(e,{prefix:t="",print:r=q}={}){Oe(e,{art:O.blue("\u2502"),prefix:t,print:r})}function D(e,{prefix:t="",print:r=q}={}){Oe(e,{art:O.red("\u2502"),prefix:t,print:r})}function De(e,{prefix:t="",print:r=q}={}){Oe(e,{art:O.yellow("\u2502"),prefix:t,print:r})}function q(e=""){process.stderr.write(`${e}
|
|
7
7
|
`)}function I(e=""){process.stdout.write(`${e}
|
|
8
|
-
`)}function kn(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(wn.readFileSync(Jt("tailwindcss/package.json"),"utf-8"));return e}function Zt({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(I(Ee()),e&&(I(),I(`${H.dim("Invalid command:")} ${e}`)),t&&t.length>0){I(),I(H.dim("Usage:"));for(let[i,l]of t.entries()){let a=l.slice(0,l.indexOf("[")),s=l.slice(l.indexOf("["));s=s.replace(/\[.*?\]/g,c=>H.dim(c));let u=we(s,n-_e.indent-a.length-1);u.length>1&&i!==0&&I(),I(ke(`${a}${u.shift()}`));for(let c of u)I(ke(c,a.length))}}if(r){let i=0;for(let{alias:o}of Object.values(r))o&&(i=Math.max(i,o.length));let l=[],a=0;for(let[o,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?o:" ".repeat(i+2)+o].filter(Boolean).join(", ");l.push(c),a=Math.max(a,c.length)}I(),I(H.dim("Options:"));let s=8;for(let{description:o,default:u=null}of Object.values(r)){let c=l.shift(),f=s+(a-c.length),p=2,d=n-c.length-f-p-_e.indent,m=we(u!==null?`${o} ${H.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,d);I(ke(`${H.blue(c)} ${H.dim(H.gray("\xB7")).repeat(f)} ${m.shift()}`));for(let h of m)I(ke(`${" ".repeat(c.length+f+p)}${h}`))}}}import{normalizePath as
|
|
8
|
+
`)}function kn(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(wn.readFileSync(Jt("tailwindcss/package.json"),"utf-8"));return e}function Zt({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(I(Ee()),e&&(I(),I(`${H.dim("Invalid command:")} ${e}`)),t&&t.length>0){I(),I(H.dim("Usage:"));for(let[i,l]of t.entries()){let a=l.slice(0,l.indexOf("[")),s=l.slice(l.indexOf("["));s=s.replace(/\[.*?\]/g,c=>H.dim(c));let u=we(s,n-_e.indent-a.length-1);u.length>1&&i!==0&&I(),I(ke(`${a}${u.shift()}`));for(let c of u)I(ke(c,a.length))}}if(r){let i=0;for(let{alias:o}of Object.values(r))o&&(i=Math.max(i,o.length));let l=[],a=0;for(let[o,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?o:" ".repeat(i+2)+o].filter(Boolean).join(", ");l.push(c),a=Math.max(a,c.length)}I(),I(H.dim("Options:"));let s=8;for(let{description:o,default:u=null}of Object.values(r)){let c=l.shift(),f=s+(a-c.length),p=2,d=n-c.length-f-p-_e.indent,m=we(u!==null?`${o} ${H.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,d);I(ke(`${H.blue(c)} ${H.dim(H.gray("\xB7")).repeat(f)} ${m.shift()}`));for(let h of m)I(ke(`${" ".repeat(c.length+f+p)}${h}`))}}}import{normalizePath as ol}from"@tailwindcss/node";import{isGitIgnored as ll}from"globby";import ee from"node:path";import Ze from"postcss";var je=new Uint8Array(256);function y(e,t){let r=0,n=[],i=0,l=e.length,a=t.charCodeAt(0);for(let s=0;s<l;s++){let o=e.charCodeAt(s);if(r===0&&o===a){n.push(e.slice(i,s)),i=s+1;continue}switch(o){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===o)break}break;case 40:je[r]=41,r++;break;case 91:je[r]=93,r++;break;case 123:je[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===je[r-1]&&r--;break}}return n.push(e.slice(i)),n}import Kr from"node:fs/promises";import Mr,{extname as go}from"node:path";import{Scanner as Rn}from"@tailwindcss/oxide";function pt(e){return{kind:"word",value:e}}function xn(e,t){return{kind:"function",value:e,nodes:t}}function Cn(e){return{kind:"separator",value:e}}function F(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],l=t(i,{parent:r,replaceWith(a){e.splice(n,1,...Array.isArray(a)?a:[a]),n--}})??0;if(l===2)return 2;if(l!==1&&i.kind==="function"&&F(i.nodes,t,i)===2)return 2}}function C(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+C(r.nodes)+")"}return t}var An=92,Sn=41,Xt=58,er=44,$n=34,tr=61,rr=62,ir=60,nr=10,Tn=40,Nn=39,or=47,lr=32,ar=9;function N(e){e=e.replaceAll(`\r
|
|
9
9
|
`,`
|
|
10
|
-
`);let t=[],r=[],n=null,i="",l;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);switch(s){case Xt:case er:case tr:case rr:case ir:case nr:case or:case lr:case ar:{if(i.length>0){let f=pt(i);n?n.nodes.push(f):t.push(f),i=""}let o=a,u=a+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Xt&&l!==er&&l!==tr&&l!==rr&&l!==ir&&l!==nr&&l!==or&&l!==lr&&l!==ar));u++);a=u-1;let c=Cn(e.slice(o,u));n?n.nodes.push(c):t.push(c);break}case Nn:case $n:{let o=a;for(let u=a+1;u<e.length;u++)if(l=e.charCodeAt(u),l===An)u+=1;else if(l===s){a=u;break}i+=e.slice(o,a+1);break}case Tn:{let o=xn(i,[]);i="",n?n.nodes.push(o):t.push(o),r.push(o),n=o;break}case Sn:{let o=r.pop();if(i.length>0){let u=pt(i);o.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(pt(i)),t}async function sr(e,t="html"){let n=new Rn({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:l,position:a}of n)i.push({rawCandidate:l,start:a,end:a+l.length});return i}function w(e,t){let r=[];for(let i of t.variants)r.unshift(ur(i));e.theme.prefix&&r.unshift(e.theme.prefix);let n="";if(t.kind==="static"&&(n+=t.root),t.kind==="functional"&&(n+=t.root,t.value))if(t.value.kind==="arbitrary"){if(t.value!==null){let i=mt(t.value.value),l=i?t.value.value.slice(4,-1):t.value.value,[a,s]=i?["(",")"]:["[","]"];t.value.dataType?n+=`-${a}${t.value.dataType}:${oe(l)}${s}`:n+=`-${a}${oe(l)}${s}`}}else t.value.kind==="named"&&(n+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(n+=`[${t.property}:${oe(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let i=mt(t.modifier.value),l=i?t.modifier.value.slice(4,-1):t.modifier.value,[a,s]=i?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?n+=`/${a}${oe(l)}${s}`:t.modifier.kind==="named"&&(n+=`/${t.modifier.value}`)}return t.important&&(n+="!"),r.push(n),r.join(":")}function ur(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${oe(Vn(e.selector))}]`;let t="";if(e.kind==="functional"&&(t+=e.root,e.value))if(e.value.kind==="arbitrary"){let r=mt(e.value.value),n=r?e.value.value.slice(4,-1):e.value.value,[i,l]=r?["(",")"]:["[","]"];t+=`-${i}${oe(n)}${l}`}else e.value.kind==="named"&&(t+=`-${e.value.value}`);return e.kind==="compound"&&(t+=e.root,t+="-",t+=ur(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${oe(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function oe(e){let t=N(e),r=new Set;return F(t,(n,{parent:i})=>{let l=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let a=l.indexOf(n)??-1;if(a===-1)return;let s=l[a-1];if(s?.kind!=="separator"||s.value!==" ")return;let o=l[a+1];if(o?.kind!=="separator"||o.value!==" ")return;r.add(s),r.add(o)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(l[0]===n||l[l.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&F(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),dt(t),C(t)}function Vn(e){let t=N(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?C(t[2].nodes):e}function dt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=xe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=xe(t.value);for(let r=0;r<t.nodes.length;r++)r==0&&t.nodes[r].kind==="word"||dt([t.nodes[r]]);break}t.value=xe(t.value),dt(t.nodes);break}case"separator":t.value=xe(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=xe(t.value));break}default:Pn(t)}}function mt(e){let t=N(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function Pn(e){throw new Error(`Unexpected value: ${e}`)}function xe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var cr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ie=["anchor-size"],fr=new RegExp(`(${Ie.join("|")})\\(`,"g");function pr(e){if(!cr.some(i=>e.includes(i)))return e;let t=!1;Ie.some(i=>e.includes(i))&&(fr.lastIndex=0,e=e.replace(fr,(i,l)=>(t=!0,`$${Ie.indexOf(l)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let l=e[i];if(l==="("){r+=l;let a=i;for(let o=i-1;o>=0;o--){let u=e.charCodeAt(o);if(u>=48&&u<=57)a=o;else if(u>=97&&u<=122)a=o;else break}let s=e.slice(a,i);if(cr.includes(s)){n.unshift(!0);continue}else if(n[0]&&s===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(l===")")r+=l,n.shift();else if(l===","&&n[0]){r+=", ";continue}else{if(l===" "&&n[0]&&r[r.length-1]===" ")continue;if((l==="+"||l==="*"||l==="/"||l==="-")&&n[0]){let a=r.trimEnd(),s=a[a.length-1];if(s==="+"||s==="*"||s==="/"||s==="-"){r+=l;continue}else if(s==="("||s===","){r+=l;continue}else e[i-1]===" "?r+=`${l} `:r+=` ${l} `}else if(n[0]&&e.startsWith("to-zero",i)){let a=i;i+=7,r+=e.slice(a,i+1)}else r+=l}}return t?r.replace(/\$(\d+)\$/g,(i,l)=>Ie[l]??i):r}function Ae(e){if(e.indexOf("(")===-1)return Ce(e);let t=N(e);return gt(t),e=C(t),e=pr(e),e}function Ce(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];n==="\\"&&e[r+1]==="_"?(t+="_",r+=1):n==="_"?t+=" ":t+=n}return t}function gt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ce(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ce(t.value);for(let r=0;r<t.nodes.length;r++)r==0&&t.nodes[r].kind==="word"||gt([t.nodes[r]]);break}t.value=Ce(t.value),gt(t.nodes);break}case"separator":case"word":{t.value=Ce(t.value);break}default:_n(t)}}function _n(e){throw new Error(`Unexpected value: ${e}`)}var En=58,dr=45,mr=97,gr=122;function*U(e,t){let r=y(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let f=r.length-1;f>=0;--f){let p=t.parseVariant(r[f]);if(p===null)return;i.push(p)}let l=!1;n[n.length-1]==="!"?(l=!0,n=n.slice(0,-1)):n[0]==="!"&&(l=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:l,raw:e});let[a,s=null,o]=y(n,"/");if(o)return;let u=s===null?null:On(s);if(s!==null&&u===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let f=a.charCodeAt(1);if(f!==dr&&!(f>=mr&&f<=gr))return;a=a.slice(1,-1);let p=a.indexOf(":");if(p===-1||p===0||p===a.length-1)return;let d=a.slice(0,p),m=Ae(a.slice(p+1));yield{kind:"arbitrary",property:d,value:m,modifier:u,variants:i,important:l,raw:e};return}let c;if(a[a.length-1]==="]"){let f=a.indexOf("-[");if(f===-1)return;let p=a.slice(0,f);if(!t.utilities.has(p,"functional"))return;let d=a.slice(f+1);c=[[p,d]]}else if(a[a.length-1]===")"){let f=a.indexOf("-(");if(f===-1)return;let p=a.slice(0,f);if(!t.utilities.has(p,"functional"))return;let d=a.slice(f+2,-1),m=y(d,":"),h=null;if(m.length===2&&(h=m[0],d=m[1]),d[0]!=="-"&&d[1]!=="-")return;c=[[p,h===null?`[var(${d})]`:`[${h}:var(${d})]`]]}else c=Dn(a,f=>t.utilities.has(f,"functional"));for(let[f,p]of c){let d={kind:"functional",root:f,modifier:u,value:null,variants:i,important:l,raw:e};if(p===null){yield d;continue}{let m=p.indexOf("[");if(m!==-1){let g=Ae(p.slice(m+1,-1)),b="";for(let x=0;x<g.length;x++){let K=g.charCodeAt(x);if(K===En){b=g.slice(0,x),g=g.slice(x+1);break}if(!(K===dr||K>=mr&&K<=gr))break}if(g.length===0||g.trim().length===0)continue;d.value={kind:"arbitrary",dataType:b||null,value:g}}else{let g=s===null||d.modifier?.kind==="arbitrary"?null:`${p}/${s}`;d.value={kind:"named",value:p,fraction:g}}}yield d}}function On(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ae(e.slice(1,-1));return t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Ae(e.slice(1,-1));return t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*Dn(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");if(r===-1){e[0]==="@"&&t("@")&&(yield["@",e.slice(1)]);return}do{let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]==="")break;yield i}r=e.lastIndexOf("-",r-1)}while(r>0)}var le=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,za=new RegExp(`^${le.source}$`);var Ka=new RegExp(`^${le.source}%$`);var jn=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Ma=new RegExp(`^${le.source}(${jn.join("|")})$`);var In=["deg","rad","grad","turn"],Wa=new RegExp(`^${le.source}(${In.join("|")})$`);var Ba=new RegExp(`^${le.source} +${le.source} +${le.source}$`);function $(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Se(e){return hr(e,.25)}function ht(e){return hr(e,.25)}function hr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function yr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.value==="subgrid"&&(i.root==="grid-cols"||i.root=="grid-rows")&&(l=!0,i.value={kind:"named",value:"subgrid",fraction:null}),i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null&&(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch")){if(i.value.value.endsWith("%")&&$(i.value.value.slice(0,-1))){let a=parseInt(i.value.value);(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch"&&a>=50&&a<=200)&&(l=!0,i.value={kind:"named",value:i.value.value,fraction:null})}}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null){let a=y(i.value.value,"/");if(a.every(s=>$(s))){l=!0;let s=i.value,o=i.modifier;a.length===1?i.value={kind:"named",value:i.value.value,fraction:null}:(i.value={kind:"named",value:a[0],fraction:i.value.value},i.modifier={kind:"named",value:a[1]}),e.compileAstNodes(i).length===0&&(i.value=s,i.modifier=o,l=!1)}}for(let a of Un(i))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))l=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[s,o]=y(a.value.value,"=");if(s[s.length-1]==="~"||s[s.length-1]==="|"||s[s.length-1]==="^"||s[s.length-1]==="$"||s[s.length-1]==="*")continue;l=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(l=!0,a.value={kind:"named",value:a.value.value});return l?w(e,i):r}return r}function*Un(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}var Fn=32;var Ln=40;function vr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Fn||n===Ln){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return A(i,l,t)}}return A(e.trim(),"",t)}var Kn=64;function me(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function A(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function J(e,t=[]){return e.charCodeAt(0)===Kn?vr(e,t):me(e,t)}function R(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function E(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let l=e[i],a=[...r,l],s=r.at(-1)??null;if(l.kind==="context"){if(E(l.nodes,t,r,{...n,...l.context})===2)return 2;continue}let o=t(l,{parent:s,context:n,path:a,replaceWith(u){e.splice(i,1,...Array.isArray(u)?u:[u]),i--}})??0;if(o===2)return 2;if(o!==1&&(l.kind==="rule"||l.kind==="at-rule")&&E(l.nodes,t,a,n)===2)return 2}}function ae(e){function t(n,i=0){let l="",a=" ".repeat(i);if(n.kind==="declaration")l+=`${a}${n.property}: ${n.value}${n.important?" !important":""};
|
|
10
|
+
`);let t=[],r=[],n=null,i="",l;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);switch(s){case Xt:case er:case tr:case rr:case ir:case nr:case or:case lr:case ar:{if(i.length>0){let f=pt(i);n?n.nodes.push(f):t.push(f),i=""}let o=a,u=a+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Xt&&l!==er&&l!==tr&&l!==rr&&l!==ir&&l!==nr&&l!==or&&l!==lr&&l!==ar));u++);a=u-1;let c=Cn(e.slice(o,u));n?n.nodes.push(c):t.push(c);break}case Nn:case $n:{let o=a;for(let u=a+1;u<e.length;u++)if(l=e.charCodeAt(u),l===An)u+=1;else if(l===s){a=u;break}i+=e.slice(o,a+1);break}case Tn:{let o=xn(i,[]);i="",n?n.nodes.push(o):t.push(o),r.push(o),n=o;break}case Sn:{let o=r.pop();if(i.length>0){let u=pt(i);o.nodes.push(u),i=""}r.length>0?n=r[r.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&t.push(pt(i)),t}async function sr(e,t="html"){let n=new Rn({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:l,position:a}of n)i.push({rawCandidate:l,start:a,end:a+l.length});return i}function w(e,t){let r=[];for(let i of t.variants)r.unshift(ur(i));e.theme.prefix&&r.unshift(e.theme.prefix);let n="";if(t.kind==="static"&&(n+=t.root),t.kind==="functional"&&(n+=t.root,t.value))if(t.value.kind==="arbitrary"){if(t.value!==null){let i=mt(t.value.value),l=i?t.value.value.slice(4,-1):t.value.value,[a,s]=i?["(",")"]:["[","]"];t.value.dataType?n+=`-${a}${t.value.dataType}:${oe(l)}${s}`:n+=`-${a}${oe(l)}${s}`}}else t.value.kind==="named"&&(n+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(n+=`[${t.property}:${oe(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let i=mt(t.modifier.value),l=i?t.modifier.value.slice(4,-1):t.modifier.value,[a,s]=i?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?n+=`/${a}${oe(l)}${s}`:t.modifier.kind==="named"&&(n+=`/${t.modifier.value}`)}return t.important&&(n+="!"),r.push(n),r.join(":")}function ur(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${oe(Vn(e.selector))}]`;let t="";if(e.kind==="functional"&&(t+=e.root,e.value))if(e.value.kind==="arbitrary"){let r=mt(e.value.value),n=r?e.value.value.slice(4,-1):e.value.value,[i,l]=r?["(",")"]:["[","]"];t+=`-${i}${oe(n)}${l}`}else e.value.kind==="named"&&(t+=`-${e.value.value}`);return e.kind==="compound"&&(t+=e.root,t+="-",t+=ur(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${oe(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function oe(e){let t=N(e),r=new Set;return F(t,(n,{parent:i})=>{let l=i===null?t:i.nodes??[];if(n.kind==="word"&&(n.value==="+"||n.value==="-"||n.value==="*"||n.value==="/")){let a=l.indexOf(n)??-1;if(a===-1)return;let s=l[a-1];if(s?.kind!=="separator"||s.value!==" ")return;let o=l[a+1];if(o?.kind!=="separator"||o.value!==" ")return;r.add(s),r.add(o)}else n.kind==="separator"&&n.value.trim()==="/"?n.value="/":n.kind==="separator"&&n.value.length>0&&n.value.trim()===""?(l[0]===n||l[l.length-1]===n)&&r.add(n):n.kind==="separator"&&n.value.trim()===","&&(n.value=",")}),r.size>0&&F(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),dt(t),C(t)}function Vn(e){let t=N(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?C(t[2].nodes):e}function dt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=xe(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=xe(t.value);for(let r=0;r<t.nodes.length;r++)r==0&&t.nodes[r].kind==="word"||dt([t.nodes[r]]);break}t.value=xe(t.value),dt(t.nodes);break}case"separator":t.value=xe(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=xe(t.value));break}default:Pn(t)}}function mt(e){let t=N(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function Pn(e){throw new Error(`Unexpected value: ${e}`)}function xe(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var cr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],Ie=["anchor-size"],fr=new RegExp(`(${Ie.join("|")})\\(`,"g");function pr(e){if(!cr.some(i=>e.includes(i)))return e;let t=!1;Ie.some(i=>e.includes(i))&&(fr.lastIndex=0,e=e.replace(fr,(i,l)=>(t=!0,`$${Ie.indexOf(l)}$(`)));let r="",n=[];for(let i=0;i<e.length;i++){let l=e[i];if(l==="("){r+=l;let a=i;for(let o=i-1;o>=0;o--){let u=e.charCodeAt(o);if(u>=48&&u<=57)a=o;else if(u>=97&&u<=122)a=o;else break}let s=e.slice(a,i);if(cr.includes(s)){n.unshift(!0);continue}else if(n[0]&&s===""){n.unshift(!0);continue}n.unshift(!1);continue}else if(l===")")r+=l,n.shift();else if(l===","&&n[0]){r+=", ";continue}else{if(l===" "&&n[0]&&r[r.length-1]===" ")continue;if((l==="+"||l==="*"||l==="/"||l==="-")&&n[0]){let a=r.trimEnd(),s=a[a.length-1];if(s==="+"||s==="*"||s==="/"||s==="-"){r+=l;continue}else if(s==="("||s===","){r+=l;continue}else e[i-1]===" "?r+=`${l} `:r+=` ${l} `}else if(n[0]&&e.startsWith("to-zero",i)){let a=i;i+=7,r+=e.slice(a,i+1)}else r+=l}}return t?r.replace(/\$(\d+)\$/g,(i,l)=>Ie[l]??i):r}function Ae(e){if(e.indexOf("(")===-1)return Ce(e);let t=N(e);return gt(t),e=C(t),e=pr(e),e}function Ce(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];n==="\\"&&e[r+1]==="_"?(t+="_",r+=1):n==="_"?t+=" ":t+=n}return t}function gt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ce(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ce(t.value);for(let r=0;r<t.nodes.length;r++)r==0&&t.nodes[r].kind==="word"||gt([t.nodes[r]]);break}t.value=Ce(t.value),gt(t.nodes);break}case"separator":case"word":{t.value=Ce(t.value);break}default:_n(t)}}function _n(e){throw new Error(`Unexpected value: ${e}`)}var En=58,dr=45,mr=97,gr=122;function*U(e,t){let r=y(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let n=r.pop(),i=[];for(let f=r.length-1;f>=0;--f){let p=t.parseVariant(r[f]);if(p===null)return;i.push(p)}let l=!1;n[n.length-1]==="!"?(l=!0,n=n.slice(0,-1)):n[0]==="!"&&(l=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:l,raw:e});let[a,s=null,o]=y(n,"/");if(o)return;let u=s===null?null:On(s);if(s!==null&&u===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let f=a.charCodeAt(1);if(f!==dr&&!(f>=mr&&f<=gr))return;a=a.slice(1,-1);let p=a.indexOf(":");if(p===-1||p===0||p===a.length-1)return;let d=a.slice(0,p),m=Ae(a.slice(p+1));yield{kind:"arbitrary",property:d,value:m,modifier:u,variants:i,important:l,raw:e};return}let c;if(a[a.length-1]==="]"){let f=a.indexOf("-[");if(f===-1)return;let p=a.slice(0,f);if(!t.utilities.has(p,"functional"))return;let d=a.slice(f+1);c=[[p,d]]}else if(a[a.length-1]===")"){let f=a.indexOf("-(");if(f===-1)return;let p=a.slice(0,f);if(!t.utilities.has(p,"functional"))return;let d=a.slice(f+2,-1),m=y(d,":"),h=null;if(m.length===2&&(h=m[0],d=m[1]),d[0]!=="-"&&d[1]!=="-")return;c=[[p,h===null?`[var(${d})]`:`[${h}:var(${d})]`]]}else c=Dn(a,f=>t.utilities.has(f,"functional"));for(let[f,p]of c){let d={kind:"functional",root:f,modifier:u,value:null,variants:i,important:l,raw:e};if(p===null){yield d;continue}{let m=p.indexOf("[");if(m!==-1){let g=Ae(p.slice(m+1,-1)),b="";for(let x=0;x<g.length;x++){let K=g.charCodeAt(x);if(K===En){b=g.slice(0,x),g=g.slice(x+1);break}if(!(K===dr||K>=mr&&K<=gr))break}if(g.length===0||g.trim().length===0)continue;d.value={kind:"arbitrary",dataType:b||null,value:g}}else{let g=s===null||d.modifier?.kind==="arbitrary"?null:`${p}/${s}`;d.value={kind:"named",value:p,fraction:g}}}yield d}}function On(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Ae(e.slice(1,-1));return t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}if(e[0]==="("&&e[e.length-1]===")"){let t=Ae(e.slice(1,-1));return t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*Dn(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");if(r===-1){e[0]==="@"&&t("@")&&(yield["@",e.slice(1)]);return}do{let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]==="")break;yield i}r=e.lastIndexOf("-",r-1)}while(r>0)}var le=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Ka=new RegExp(`^${le.source}$`);var Ma=new RegExp(`^${le.source}%$`);var jn=["cm","mm","Q","in","pc","pt","px","em","ex","ch","rem","lh","rlh","vw","vh","vmin","vmax","vb","vi","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax"],Wa=new RegExp(`^${le.source}(${jn.join("|")})$`);var In=["deg","rad","grad","turn"],Ba=new RegExp(`^${le.source}(${In.join("|")})$`);var qa=new RegExp(`^${le.source} +${le.source} +${le.source}$`);function $(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Se(e){return hr(e,.25)}function ht(e){return hr(e,.25)}function hr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function yr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.value==="subgrid"&&(i.root==="grid-cols"||i.root=="grid-rows")&&(l=!0,i.value={kind:"named",value:"subgrid",fraction:null}),i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null&&(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch")){if(i.value.value.endsWith("%")&&$(i.value.value.slice(0,-1))){let a=parseInt(i.value.value);(i.root==="from"||i.root==="via"||i.root==="to"||i.root==="font-stretch"&&a>=50&&a<=200)&&(l=!0,i.value={kind:"named",value:i.value.value,fraction:null})}}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"&&i.value.dataType===null){let a=y(i.value.value,"/");if(a.every(s=>$(s))){l=!0;let s=i.value,o=i.modifier;a.length===1?i.value={kind:"named",value:i.value.value,fraction:null}:(i.value={kind:"named",value:a[0],fraction:i.value.value},i.modifier={kind:"named",value:a[1]}),e.compileAstNodes(i).length===0&&(i.value=s,i.modifier=o,l=!1)}}for(let a of Un(i))if(a.kind==="functional"&&a.root==="data"&&a.value?.kind==="arbitrary"&&!a.value.value.includes("="))l=!0,a.value={kind:"named",value:a.value.value};else if(a.kind==="functional"&&a.root==="aria"&&a.value?.kind==="arbitrary"&&(a.value.value.endsWith("=true")||a.value.value.endsWith('="true"')||a.value.value.endsWith("='true'"))){let[s,o]=y(a.value.value,"=");if(s[s.length-1]==="~"||s[s.length-1]==="|"||s[s.length-1]==="^"||s[s.length-1]==="$"||s[s.length-1]==="*")continue;l=!0,a.value={kind:"named",value:a.value.value.slice(0,a.value.value.indexOf("="))}}else a.kind==="functional"&&a.root==="supports"&&a.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(a.value.value)&&(l=!0,a.value={kind:"named",value:a.value.value});return l?w(e,i):r}return r}function*Un(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}var Fn=32;var zn=40;function vr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===Fn||n===zn){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return A(i,l,t)}}return A(e.trim(),"",t)}var Kn=64;function me(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function A(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function J(e,t=[]){return e.charCodeAt(0)===Kn?vr(e,t):me(e,t)}function R(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function E(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let l=e[i],a=[...r,l],s=r.at(-1)??null;if(l.kind==="context"){if(E(l.nodes,t,r,{...n,...l.context})===2)return 2;continue}let o=t(l,{parent:s,context:n,path:a,replaceWith(u){e.splice(i,1,...Array.isArray(u)?u:[u]),i--}})??0;if(o===2)return 2;if(o!==1&&(l.kind==="rule"||l.kind==="at-rule")&&E(l.nodes,t,a,n)===2)return 2}}function ae(e){function t(n,i=0){let l="",a=" ".repeat(i);if(n.kind==="declaration")l+=`${a}${n.property}: ${n.value}${n.important?" !important":""};
|
|
11
11
|
`;else if(n.kind==="rule"){l+=`${a}${n.selector} {
|
|
12
12
|
`;for(let s of n.nodes)l+=t(s,i+1);l+=`${a}}
|
|
13
13
|
`}else if(n.kind==="at-rule"){if(n.nodes.length===0)return`${a}${n.name} ${n.params};
|
|
14
14
|
`;l+=`${a}${n.name}${n.params?` ${n.params} `:" "}{
|
|
15
15
|
`;for(let s of n.nodes)l+=t(s,i+1);l+=`${a}}
|
|
16
16
|
`}else if(n.kind==="comment")l+=`${a}/*${n.value}*/
|
|
17
|
-
`;else if(n.kind==="context"||n.kind==="at-root")return"";return l}let r="";for(let n of e){let i=t(n);i!==""&&(r+=i)}return r}function br(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),l=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Fe(e,i,i.modifier.value)){let{value:a,didChange:s}=Ue(i.modifier.value);i.modifier.value=a,l||=s}for(let a of i.variants)wr(e,a)&&(l=!0);if(i.kind==="arbitrary"&&!Fe(e,i,i.value)){let{value:a,didChange:s}=Ue(i.value);i.value=a,l||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Fe(e,i,i.value.value)){let{value:a,didChange:s}=Ue(i.value.value);i.value.value=a,l||=s}if(l)return w(e,i)}return r}function Ue(e){let t=!1;return e.startsWith("--")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function wr(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Fe(e,Mn(t),t.value.value)){let{value:n,didChange:i}=Ue(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&wr(e,t.variant)&&(r=!0),r}function Mn(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Wn=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function Fe(e,t,r){let n=e.compileAstNodes(t).map(l=>l.node),i=!1;return E(n,l=>{if(l.kind==="declaration"&&Wn.has(l.property)&&l.value==r)return i=!0,2}),i}var Bn=["t","tr","r","br","b","bl","l","tl"];function kr(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="static"&&n.root.startsWith("bg-gradient-to-")){let i=n.root.slice(15);if(!Bn.includes(i))continue;return w(e,{...n,root:`bg-linear-to-${i}`})}return r}function xr(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Cr=['"',"'","`"],qn=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Hn=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/];function
|
|
17
|
+
`;else if(n.kind==="context"||n.kind==="at-root")return"";return l}let r="";for(let n of e){let i=t(n);i!==""&&(r+=i)}return r}function br(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),l=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Fe(e,i,i.modifier.value)){let{value:a,didChange:s}=Ue(i.modifier.value);i.modifier.value=a,l||=s}for(let a of i.variants)wr(e,a)&&(l=!0);if(i.kind==="arbitrary"&&!Fe(e,i,i.value)){let{value:a,didChange:s}=Ue(i.value);i.value=a,l||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Fe(e,i,i.value.value)){let{value:a,didChange:s}=Ue(i.value.value);i.value.value=a,l||=s}if(l)return w(e,i)}return r}function Ue(e){let t=!1;return e.startsWith("--")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function wr(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Fe(e,Mn(t),t.value.value)){let{value:n,didChange:i}=Ue(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&wr(e,t.variant)&&(r=!0),r}function Mn(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Wn=new Set(["scroll-timeline-name","timeline-scope","view-timeline-name","font-palette","anchor-name","anchor-scope","position-anchor","position-try-options","scroll-timeline","animation-timeline","view-timeline","position-try"]);function Fe(e,t,r){let n=e.compileAstNodes(t).map(l=>l.node),i=!1;return E(n,l=>{if(l.kind==="declaration"&&Wn.has(l.property)&&l.value==r)return i=!0,2}),i}var Bn=["t","tr","r","br","b","bl","l","tl"];function kr(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="static"&&n.root.startsWith("bg-gradient-to-")){let i=n.root.slice(15);if(!Bn.includes(i))continue;return w(e,{...n,root:`bg-linear-to-${i}`})}return r}function xr(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Cr=['"',"'","`"],qn=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Hn=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/];function ze(e){let t="";for(let l=e.start-1;l>=0;l--){let a=e.contents.at(l);if(a===`
|
|
18
18
|
`)break;t=a+t}let r="";for(let l=e.end;l<e.contents.length;l++){let a=e.contents.at(l);if(a===`
|
|
19
|
-
`)break;r+=a}let n=Cr.some(l=>t.includes(l)),i=Cr.some(l=>r.includes(l));if(!n||!i||r[0]===".")return!1;for(let l of qn)if(r.trim().startsWith(l)||t.trim().endsWith(l))return!1;for(let l of Hn)if(l.test(t))return!1;return!0}function Ar(e,t,r,n){e:for(let i of U(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!Le(n))continue e;return w(e,i)}return r}function Sr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(l=!0,i.value.value=y(i.value.value,",").join(" ")),l?w(e,i):r}return r}import{__unstable__loadDesignSystem as Jn}from"@tailwindcss/node";import Gn from"node:path";import Yn from"node:url";var Qn=Yn.fileURLToPath(import.meta.url),Zn=Gn.dirname(Qn),Xn=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"]]),$r=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),eo=new k(e=>Jn('@import "tailwindcss";',{base:e}));async function Tr(e,t,r,n){let i=await eo.get(Zn);function*l(a){for(let s of e.parseCandidate(a)){let o=structuredClone(s);o.variants=[],o.important=!1;let u=w(e,o),c=Xn.get(u);if(!c)continue;let[f]=e.parseCandidate(c);if(!f)continue;let p=structuredClone(f);p.variants=s.variants,p.important=s.important,yield[s,p,$r.get(u),$r.get(c)]}}for(let[a,s,o,u]of l(r)){let c=a.variants.length>0||a.kind==="arbitrary"?!1:a.kind==="static"?!a.root.includes("-"):a.kind==="functional"?a.value===null||!a.root.includes("-"):!1;if(!(n&&c&&!Le(n))){if(o&&u){let f=e.resolveThemeValue(o),p=i.resolveThemeValue(o),d=e.resolveThemeValue(u),m=i.resolveThemeValue(u);if(d===void 0&&m!==void 0||f!==p||d!==m)continue}return w(e,s)}}return r}function Nr(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return w(e,{...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import to from"postcss-selector-parser";function G(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Rr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;for(let[a,s]of ro(i)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(l=!0,G(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(l=!0,G(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let o=to().astSync(a.selector);if(o.nodes.length!==1)continue;if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="universal"){l=!0,G(a,e.parseVariant("*"));continue}if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="universal"){l=!0,G(a,e.parseVariant("**"));continue}if(s===null&&o.nodes[0].nodes.length===3&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="nesting"){o.nodes[0].nodes.pop(),o.nodes[0].nodes.pop(),l=!0,G(a,e.parseVariant(`in-[${o.toString()}]`));continue}let u=null;s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("*")),s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("**"));let c=o.nodes[0].filter(p=>p.type!=="nesting");if(c.length!==1)continue;let f=c[0];if(f.type==="pseudo"&&f.value===":is"){if(f.nodes.length!==1||f.nodes[0].nodes.length!==1)continue;f=f.nodes[0].nodes[0]}if(f.type==="pseudo"){let p=f,d=!1;if(f.value===":not"){if(d=!0,f.nodes.length!==1||f.nodes[0].type!=="selector"||f.nodes[0].nodes.length!==1||f.nodes[0].nodes[0].type!=="pseudo")continue;p=f.nodes[0].nodes[0]}let m=(g=>{if(g===":first-letter")return"first-letter";if(g===":first-line")return"first-line";if(g===":file-selector-button")return"file";if(g===":placeholder")return"placeholder";if(g===":backdrop")return"backdrop";if(g===":first-child")return"first";if(g===":last-child")return"last";if(g===":only-child")return"only";if(g===":first-of-type")return"first-of-type";if(g===":last-of-type")return"last-of-type";if(g===":only-of-type")return"only-of-type";if(g===":visited")return"visited";if(g===":target")return"target";if(g===":default")return"default";if(g===":checked")return"checked";if(g===":indeterminate")return"indeterminate";if(g===":placeholder-shown")return"placeholder-shown";if(g===":autofill")return"autofill";if(g===":optional")return"optional";if(g===":required")return"required";if(g===":valid")return"valid";if(g===":invalid")return"invalid";if(g===":in-range")return"in-range";if(g===":out-of-range")return"out-of-range";if(g===":read-only")return"read-only";if(g===":empty")return"empty";if(g===":focus-within")return"focus-within";if(g===":focus")return"focus";if(g===":focus-visible")return"focus-visible";if(g===":active")return"active";if(g===":enabled")return"enabled";if(g===":disabled")return"disabled";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,x]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===b&&p.nodes.length===1)return p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&$(p.nodes[0].nodes[0].value)?`${x}-${p.nodes[0].nodes[0].value}`:`${x}-[${p.nodes[0].toString()}]`;return null})(p.value);if(m===null)continue;d&&(m=`not-${m}`);let h=e.parseVariant(m);if(h===null)continue;l=!0,G(a,h)}else if(f.type==="attribute"){let p=f.attribute,d=f.value?f.quoted?`${f.quoteMark}${f.value}${f.quoteMark}`:f.value:null;f.insensitive&&d&&(d+=" i");let m=f.operator??"=";p.startsWith("data-")?(l=!0,p=p.slice(5),G(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}})):p.startsWith("aria-")&&(l=!0,p=p.slice(5),G(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:p}:m==="="&&f.value==="true"&&!f.insensitive?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}}))}if(u){let p=i.variants.indexOf(a);if(p===-1)continue;i.variants.splice(p,1,a,u)}}}return l?w(e,i):r}return r}function*ro(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}var Vr=new WeakSet;function Pr(e,t,r){if(!e.theme.prefix)return r;Vr.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Vr.add(e));let n=io(e,t,r);if(!n)return r;let i=e.theme.prefix,l=null;try{e.theme.prefix=null;let a=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...U(a,e)];s.length>0&&(l=s[0])}finally{e.theme.prefix=i}return l?w(e,l):r}function io(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=y(r,":").pop(),l=r.length-i.length,a=l+i.length,s=!1,o=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!0,i=i.slice(1)),i[0]==="-"&&(o=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),o&&(i="-"+i),s&&(i+="!"),{base:i,start:l,end:a})}var no=/([a-z]+)/;function _r(e){let t=no.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var vt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","outline-none":"outline-hidden"},Er=new WeakSet;function Or(e,t,r){if(!Er.has(e)){for(let n in vt)e.utilities.static(n,()=>[]);Er.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(vt,n.root))return w(e,{...n,root:vt[n.root]});return r}function Y(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var t=String(e),r=t.length,n=-1,i,l="",a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i==0){l+="\uFFFD";continue}if(i>=1&&i<=31||i==127||n==0&&i>=48&&i<=57||n==1&&i>=48&&i<=57&&a==45){l+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){l+=t.charAt(n);continue}l+="\\"+t.charAt(n)}return l}function Dr(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function Ir(e){let t=[];return Ur(e,[],(r,n)=>{if(lo(r))return t.push([n,r]),1;if(ao(r)){t.push([n,r[0]]);for(let i of Reflect.ownKeys(r[1]))t.push([[...n,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return t.push([n,r.join(", ")]),1}),t}var oo=/^[a-zA-Z0-9-_%/\.]+$/;function M(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!oo.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function lo(e){return typeof e=="number"||typeof e=="string"}function ao(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Ur(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let l=[...t,n],a=r(i,l)??0;if(a!==1){if(a===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Ur(i,l,r)===2)return 2}}}function Q(e){let t=[];for(let r of y(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),l=r.indexOf("]",i);if(i===-1||l===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,l)),n=l+1}n<=r.length-1&&t.push(r.slice(n))}return t}function Fr(e,t,r){let n=bt(e);for(let i of U(r,e)){let l=structuredClone(i),a=!1;if(l.kind==="arbitrary"){let[s,o]=n(l.value,l.modifier===null?1:0);s!==l.value&&(a=!0,l.value=s,o!==null&&(l.modifier=o))}else if(l.kind==="functional"&&l.value?.kind==="arbitrary"){let[s,o]=n(l.value.value,l.modifier===null?1:0);s!==l.value.value&&(a=!0,l.value.value=s,o!==null&&(l.modifier=o))}for(let s of uo(l))if(s.kind==="arbitrary"){let[o]=n(s.selector,2);o!==s.selector&&(a=!0,s.selector=o)}else if(s.kind==="functional"&&s.value?.kind==="arbitrary"){let[o]=n(s.value.value,2);o!==s.value.value&&(a=!0,s.value.value=o)}return a?w(e,l):r}return r}function bt(e,{prettyPrint:t=!1}={}){function r(a,s=0){let o=N(a);if(s&2)return[ze(o,l),null];let u=0,c=0;if(F(o,d=>{d.kind==="function"&&d.value==="theme"&&(u+=1,F(d.nodes,m=>m.kind==="separator"&&m.value.includes(",")?2:m.kind==="separator"&&m.value.trim()==="/"?(c+=1,2):1))}),u===0)return[a,null];if(c===0)return[ze(o,i),null];if(c>1)return[ze(o,l),null];let f=null;return[ze(o,(d,m)=>{let h=y(d,"/").map(g=>g.trim());if(h.length>2)return null;if(o.length===1&&h.length===2&&s&1){let[g,b]=h;if(/^\d+%$/.test(b))f={kind:"named",value:b.slice(0,-1)};else if(/^0?\.\d+$/.test(b)){let x=Number(b)*100;f={kind:Number.isInteger(x)?"named":"arbitrary",value:x.toString()}}else f={kind:"arbitrary",value:b};d=g}return i(d,m)||l(d,m)}),f]}function n(a){let s=`--${M(Q(a))}`;return e.theme.get([s])?s:null}function i(a,s){let o=n(a);if(o)return s?`var(${o}, ${s})`:`var(${o})`;let u=Q(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Se(c)?"calc(var(--spacing) * "+c+")":null}return null}function l(a,s){let o=y(a,"/").map(f=>f.trim());a=o.shift();let u=n(a);if(!u)return null;let c=o.length>0?t?` / ${o.join(" / ")}`:`/${o.join("/")}`:"";return s?`theme(${u}${c}, ${s})`:`theme(${u}${c})`}return r}function ze(e,t){return F(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let l=i.value,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=C([r.nodes[u]]),a=u+1;l=so(l);let s=r.nodes.slice(a+1),o=s.length>0?t(l,C(s)):t(l);if(o===null)return;n(N(o))}}),C(e)}function so(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],l=e[n+1];i==="\\"&&(l===r||l==="\\")?(t+=l,n++):t+=i}return t}function*uo(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function Lr(e,t,r){for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],l=[],a=[],s=n.variants;for(let c of n.variants)co(e,c)?i.push(c):po(e,c)?a.push(c):l.push(c);let o=l.some(c=>fo(e,c)),u=[...a,...o?l.reverse():l,...i];if(!mo(s,u))return w(e,{...n,variants:u})}return r}function co(e,t){return t.kind==="static"&&t.root==="dark"?!0:wt(e,t).every(n=>n.kind==="at-rule")}function fo(e,t){return wt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function po(e,t){return wt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes("::after")||n.selector.includes("::backdrop")||n.selector.includes("::before")||n.selector.includes("::first-letter")||n.selector.includes("::first-line")||n.selector.includes("::marker")||n.selector.includes("::placeholder")||n.selector.includes("::selection")))}function wt(e,t){let r=[],n=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(i=>i.node);return E(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function mo(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}function zr(e,t){if(!t[0])return e;t.sort((i,l)=>i.end-l.end||i.start-l.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let l=t[i];r+=e.slice(n.end,l.start),r+=l.replacement,n=l}return r+=e.slice(n.end),r}var ho=[xr,Pr,Ar,kr,Or,Tr,Nr,Fr,Lr,br,Sr,yr,Rr];async function kt(e,t,r,n){for(let i of ho)r=await i(e,t,r,n);return r}async function Wr(e,t,r,n){let i=await sr(r,n),l=[];for(let{rawCandidate:a,start:s,end:o}of i){let u=await kt(e,t,a,{contents:r,start:s,end:o});u!==a&&l.push({start:s,end:o,replacement:u})}return zr(r,l)}async function Br(e,t,r){let n=Mr.isAbsolute(r)?r:Mr.resolve(process.cwd(),r),i=await Kr.readFile(n,"utf-8");await Kr.writeFile(n,await Wr(e,t,i,go(r)))}function qr({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),l=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";l&&i.pop();let a=i.map(s=>{if(s.trim()==="")return s;let o=y(s,":"),u=o.pop();return l&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...o,u].join(":")});return async()=>{a=await Promise.all(a.map(async s=>await kt(e,t,s))),n.params=a.join("").trim()}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",l=>{i.push(r(l))}),await Promise.allSettled(i.map(l=>l()))}}}import"postcss";import Me from"postcss-selector-parser";import*as Hr from"node:fs";import*as Jr from"node:fs/promises";import*as Te from"node:path";import*as Gr from"node:util";import*as Ke from"postcss";var Z=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=Te.resolve(process.cwd(),t);let r=await Jr.readFile(t,"utf-8"),n=Ke.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Te.resolve(process.cwd(),t);let r=Hr.readFileSync(t,"utf-8"),n=Ke.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=Ke.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=Te.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of $e(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of $e(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of $e(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let l of i.layers)t.add(l);return t}*pathsToRoot(){for(let{item:t,path:r}of $e(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:l}of n)for(let a of l.layers)i||=a==="utilities"||a==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}[Gr.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*$e(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*$e(n.item,t,i),yield{item:n.item,path:i}}}function Yr(e){function t(r){if(r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();S(r,a=>{if(a.type!=="rule")return;let s=y(a.selector,",");if(s.length>1){let o=[];for(let u of s){let c=a.clone({selector:u});o.push(c)}a.replaceWith(o)}return 1});let i=new Set;S(r,a=>{if(a.type==="rule")return Me(s=>{s.each(o=>{S(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(a.selector,{updateSelector:!1}),1}),S(n,a=>{a.type==="rule"&&Me(s=>{s.each(o=>{S(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return a.remove(),2})})}).processSync(a,{updateSelector:!0})});let l=[n];for(let a of i){let s=r.clone();l.push(s),S(s,o=>{if(o.type==="atrule"&&(!o.nodes||o.nodes?.length===0)&&o.remove(),o.type!=="rule")return;let u=!1;if(Me(c=>{c.each(f=>{S(f,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===a){u=!0;let d=f.atPosition(p.source.start.line,p.source.start.column),m=d.parent,h=(d.parent?.index(d)??0)-1;for(;h>=0&&m.at(h)?.type!=="combinator";){let g=m.at(h+1),b=m.at(h);m.at(h+1).replaceWith(b),m.at(h).replaceWith(g),h--}d.replaceWith(Me.nesting())}})})}).processSync(o,{updateSelector:!0}),!u){let c=[o],f=o.parent?.index(o)??null;if(f!==null)for(let p=f-1;p>=0&&o.parent?.nodes.at(p)?.type!=="rule";p--)o.parent?.nodes.at(p)?.type==="comment"&&c.push(o.parent?.nodes.at(p));for(let p of c)p.remove()}return 1}),s.name="utility",s.params=a,s.raws.before=`${s.raws.before??""}
|
|
19
|
+
`)break;r+=a}let n=Cr.some(l=>t.includes(l)),i=Cr.some(l=>r.includes(l));if(!n||!i||r[0]===".")return!1;for(let l of qn)if(r.trim().startsWith(l)||t.trim().endsWith(l))return!1;for(let l of Hn)if(l.test(t))return!1;return!0}function Ar(e,t,r,n){e:for(let i of U(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!ze(n))continue e;return w(e,i)}return r}function Sr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(l=!0,i.value.value=y(i.value.value,",").join(" ")),l?w(e,i):r}return r}import{__unstable__loadDesignSystem as Jn}from"@tailwindcss/node";import Gn from"node:path";import Yn from"node:url";var Qn=Yn.fileURLToPath(import.meta.url),Zn=Gn.dirname(Qn),Xn=new Map([["shadow","shadow-sm"],["shadow-sm","shadow-xs"],["shadow-xs","shadow-2xs"],["inset-shadow","inset-shadow-sm"],["inset-shadow-sm","inset-shadow-xs"],["inset-shadow-xs","inset-shadow-2xs"],["drop-shadow","drop-shadow-sm"],["drop-shadow-sm","drop-shadow-xs"],["rounded","rounded-sm"],["rounded-sm","rounded-xs"],["blur","blur-sm"],["blur-sm","blur-xs"],["backdrop-blur","backdrop-blur-sm"],["backdrop-blur-sm","backdrop-blur-xs"],["ring","ring-3"]]),$r=new Map([["shadow","--shadow"],["shadow-sm","--shadow-sm"],["shadow-xs","--shadow-xs"],["shadow-2xs","--shadow-2xs"],["drop-shadow","--drop-shadow"],["drop-shadow-sm","--drop-shadow-sm"],["drop-shadow-xs","--drop-shadow-xs"],["rounded","--radius"],["rounded-sm","--radius-sm"],["rounded-xs","--radius-xs"],["blur","--blur"],["blur-sm","--blur-sm"],["blur-xs","--blur-xs"],["backdrop-blur","--backdrop-blur"],["backdrop-blur-sm","--backdrop-blur-sm"],["backdrop-blur-xs","--backdrop-blur-xs"],["ring","--ring-width"],["ring-3","--ring-width-3"]]),eo=new k(e=>Jn('@import "tailwindcss";',{base:e}));async function Tr(e,t,r,n){let i=await eo.get(Zn);function*l(a){for(let s of e.parseCandidate(a)){let o=structuredClone(s);o.variants=[],o.important=!1;let u=w(e,o),c=Xn.get(u);if(!c)continue;let[f]=e.parseCandidate(c);if(!f)continue;let p=structuredClone(f);p.variants=s.variants,p.important=s.important,yield[s,p,$r.get(u),$r.get(c)]}}for(let[a,s,o,u]of l(r)){let c=a.variants.length>0||a.kind==="arbitrary"?!1:a.kind==="static"?!a.root.includes("-"):a.kind==="functional"?a.value===null||!a.root.includes("-"):!1;if(!(n&&c&&!ze(n))){if(o&&u){let f=e.resolveThemeValue(o),p=i.resolveThemeValue(o),d=e.resolveThemeValue(u),m=i.resolveThemeValue(u);if(d===void 0&&m!==void 0||f!==p||d!==m)continue}return w(e,s)}}return r}function Nr(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return w(e,{...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}import to from"postcss-selector-parser";function G(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Rr(e,t,r){for(let n of U(r,e)){let i=structuredClone(n),l=!1;for(let[a,s]of ro(i)){if(a.kind==="compound"&&(a.root==="has"||a.root==="not"||a.root==="in")&&a.modifier!==null&&"modifier"in a.variant&&(a.variant.modifier=a.modifier,a.modifier=null),a.kind==="compound"&&a.root==="group"&&a.variant.kind==="arbitrary"&&a.variant.selector==="&"){a.modifier===null?(l=!0,G(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(l=!0,G(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${a.modifier.value}]`:`in-[.group\\/${a.modifier.value}]`)));continue}if(a.kind==="arbitrary"){if(a.relative)continue;let o=to().astSync(a.selector);if(o.nodes.length!==1)continue;if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="universal"){l=!0,G(a,e.parseVariant("*"));continue}if(s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="universal"){l=!0,G(a,e.parseVariant("**"));continue}if(s===null&&o.nodes[0].nodes.length===3&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="nesting"){o.nodes[0].nodes.pop(),o.nodes[0].nodes.pop(),l=!0,G(a,e.parseVariant(`in-[${o.toString()}]`));continue}let u=null;s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===">"&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("*")),s===null&&o.nodes[0].length===3&&o.nodes[0].nodes[0].type==="nesting"&&o.nodes[0].nodes[0].value==="&"&&o.nodes[0].nodes[1].type==="combinator"&&o.nodes[0].nodes[1].value===" "&&o.nodes[0].nodes[2].type==="attribute"&&(o.nodes[0].nodes=[o.nodes[0].nodes[2]],u=e.parseVariant("**"));let c=o.nodes[0].filter(p=>p.type!=="nesting");if(c.length!==1)continue;let f=c[0];if(f.type==="pseudo"&&f.value===":is"){if(f.nodes.length!==1||f.nodes[0].nodes.length!==1)continue;f=f.nodes[0].nodes[0]}if(f.type==="pseudo"){let p=f,d=!1;if(f.value===":not"){if(d=!0,f.nodes.length!==1||f.nodes[0].type!=="selector"||f.nodes[0].nodes.length!==1||f.nodes[0].nodes[0].type!=="pseudo")continue;p=f.nodes[0].nodes[0]}let m=(g=>{if(g===":first-letter")return"first-letter";if(g===":first-line")return"first-line";if(g===":file-selector-button")return"file";if(g===":placeholder")return"placeholder";if(g===":backdrop")return"backdrop";if(g===":first-child")return"first";if(g===":last-child")return"last";if(g===":only-child")return"only";if(g===":first-of-type")return"first-of-type";if(g===":last-of-type")return"last-of-type";if(g===":only-of-type")return"only-of-type";if(g===":visited")return"visited";if(g===":target")return"target";if(g===":default")return"default";if(g===":checked")return"checked";if(g===":indeterminate")return"indeterminate";if(g===":placeholder-shown")return"placeholder-shown";if(g===":autofill")return"autofill";if(g===":optional")return"optional";if(g===":required")return"required";if(g===":valid")return"valid";if(g===":invalid")return"invalid";if(g===":in-range")return"in-range";if(g===":out-of-range")return"out-of-range";if(g===":read-only")return"read-only";if(g===":empty")return"empty";if(g===":focus-within")return"focus-within";if(g===":focus")return"focus";if(g===":focus-visible")return"focus-visible";if(g===":active")return"active";if(g===":enabled")return"enabled";if(g===":disabled")return"disabled";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="odd")return d?(d=!1,"even"):"odd";if(g===":nth-child"&&p.nodes.length===1&&p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&p.nodes[0].nodes[0].value==="even")return d?(d=!1,"odd"):"even";for(let[b,x]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(g===b&&p.nodes.length===1)return p.nodes[0].nodes.length===1&&p.nodes[0].nodes[0].type==="tag"&&$(p.nodes[0].nodes[0].value)?`${x}-${p.nodes[0].nodes[0].value}`:`${x}-[${p.nodes[0].toString()}]`;return null})(p.value);if(m===null)continue;d&&(m=`not-${m}`);let h=e.parseVariant(m);if(h===null)continue;l=!0,G(a,h)}else if(f.type==="attribute"){let p=f.attribute,d=f.value?f.quoted?`${f.quoteMark}${f.value}${f.quoteMark}`:f.value:null;f.insensitive&&d&&(d+=" i");let m=f.operator??"=";p.startsWith("data-")?(l=!0,p=p.slice(5),G(a,{kind:"functional",root:"data",modifier:null,value:d===null?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}})):p.startsWith("aria-")&&(l=!0,p=p.slice(5),G(a,{kind:"functional",root:"aria",modifier:null,value:d===null?{kind:"arbitrary",value:p}:m==="="&&f.value==="true"&&!f.insensitive?{kind:"named",value:p}:{kind:"arbitrary",value:`${p}${m}${d}`}}))}if(u){let p=i.variants.indexOf(a);if(p===-1)continue;i.variants.splice(p,1,a,u)}}}return l?w(e,i):r}return r}function*ro(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}var Vr=new WeakSet;function Pr(e,t,r){if(!e.theme.prefix)return r;Vr.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Vr.add(e));let n=io(e,t,r);if(!n)return r;let i=e.theme.prefix,l=null;try{e.theme.prefix=null;let a=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...U(a,e)];s.length>0&&(l=s[0])}finally{e.theme.prefix=i}return l?w(e,l):r}function io(e,t,r){if(!e.theme.prefix)return null;if(!t.prefix)throw new Error("Could not find the Tailwind CSS v3 `prefix` configuration inside the JavaScript config.");let i=y(r,":").pop(),l=r.length-i.length,a=l+i.length,s=!1,o=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!0,i=i.slice(1)),i[0]==="-"&&(o=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),o&&(i="-"+i),s&&(i+="!"),{base:i,start:l,end:a})}var no=/([a-z]+)/;function _r(e){let t=no.exec(e.toLocaleLowerCase());return t?t[0]:(console.warn(`The prefix "${e} can not be used with Tailwind CSS v4 and cannot be converted to a valid one automatically. We've updated it to "tw" for you.`),"tw")}var vt={"overflow-ellipsis":"text-ellipsis","flex-grow":"grow","flex-grow-0":"grow-0","flex-shrink":"shrink","flex-shrink-0":"shrink-0","decoration-clone":"box-decoration-clone","decoration-slice":"box-decoration-slice","outline-none":"outline-hidden"},Er=new WeakSet;function Or(e,t,r){if(!Er.has(e)){for(let n in vt)e.utilities.static(n,()=>[]);Er.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(vt,n.root))return w(e,{...n,root:vt[n.root]});return r}function Y(e){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var t=String(e),r=t.length,n=-1,i,l="",a=t.charCodeAt(0);if(r==1&&a==45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i==0){l+="\uFFFD";continue}if(i>=1&&i<=31||i==127||n==0&&i>=48&&i<=57||n==1&&i>=48&&i<=57&&a==45){l+="\\"+i.toString(16)+" ";continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){l+=t.charAt(n);continue}l+="\\"+t.charAt(n)}return l}function Dr(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>t.length>2?String.fromCodePoint(Number.parseInt(t.slice(1).trim(),16)):t[1])}function Ir(e){let t=[];return Ur(e,[],(r,n)=>{if(lo(r))return t.push([n,r]),1;if(ao(r)){t.push([n,r[0]]);for(let i of Reflect.ownKeys(r[1]))t.push([[...n,`-${i}`],r[1][i]]);return 1}if(Array.isArray(r)&&r.every(i=>typeof i=="string"))return t.push([n,r.join(", ")]),1}),t}var oo=/^[a-zA-Z0-9-_%/\.]+$/;function M(e){if(e[0]==="container")return null;e=structuredClone(e),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let t of e)if(!oo.test(t))return null;return e.map((t,r,n)=>t==="1"&&r!==n.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,n,i)=>`${n}-${i.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function lo(e){return typeof e=="number"||typeof e=="string"}function ao(e){if(!Array.isArray(e)||e.length!==2||typeof e[0]!="string"&&typeof e[0]!="number"||e[1]===void 0||e[1]===null||typeof e[1]!="object")return!1;for(let t of Reflect.ownKeys(e[1]))if(typeof t!="string"||typeof e[1][t]!="string"&&typeof e[1][t]!="number")return!1;return!0}function Ur(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let l=[...t,n],a=r(i,l)??0;if(a!==1){if(a===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&Ur(i,l,r)===2)return 2}}}function Q(e){let t=[];for(let r of y(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),l=r.indexOf("]",i);if(i===-1||l===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,l)),n=l+1}n<=r.length-1&&t.push(r.slice(n))}return t}function Fr(e,t,r){let n=bt(e);for(let i of U(r,e)){let l=structuredClone(i),a=!1;if(l.kind==="arbitrary"){let[s,o]=n(l.value,l.modifier===null?1:0);s!==l.value&&(a=!0,l.value=s,o!==null&&(l.modifier=o))}else if(l.kind==="functional"&&l.value?.kind==="arbitrary"){let[s,o]=n(l.value.value,l.modifier===null?1:0);s!==l.value.value&&(a=!0,l.value.value=s,o!==null&&(l.modifier=o))}for(let s of uo(l))if(s.kind==="arbitrary"){let[o]=n(s.selector,2);o!==s.selector&&(a=!0,s.selector=o)}else if(s.kind==="functional"&&s.value?.kind==="arbitrary"){let[o]=n(s.value.value,2);o!==s.value.value&&(a=!0,s.value.value=o)}return a?w(e,l):r}return r}function bt(e,{prettyPrint:t=!1}={}){function r(a,s=0){let o=N(a);if(s&2)return[Le(o,l),null];let u=0,c=0;if(F(o,d=>{d.kind==="function"&&d.value==="theme"&&(u+=1,F(d.nodes,m=>m.kind==="separator"&&m.value.includes(",")?2:m.kind==="separator"&&m.value.trim()==="/"?(c+=1,2):1))}),u===0)return[a,null];if(c===0)return[Le(o,i),null];if(c>1)return[Le(o,l),null];let f=null;return[Le(o,(d,m)=>{let h=y(d,"/").map(g=>g.trim());if(h.length>2)return null;if(o.length===1&&h.length===2&&s&1){let[g,b]=h;if(/^\d+%$/.test(b))f={kind:"named",value:b.slice(0,-1)};else if(/^0?\.\d+$/.test(b)){let x=Number(b)*100;f={kind:Number.isInteger(x)?"named":"arbitrary",value:x.toString()}}else f={kind:"arbitrary",value:b};d=g}return i(d,m)||l(d,m)}),f]}function n(a){let s=`--${M(Q(a))}`;return e.theme.get([s])?s:null}function i(a,s){let o=n(a);if(o)return s?`var(${o}, ${s})`:`var(${o})`;let u=Q(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Se(c)?"calc(var(--spacing) * "+c+")":null}return null}function l(a,s){let o=y(a,"/").map(f=>f.trim());a=o.shift();let u=n(a);if(!u)return null;let c=o.length>0?t?` / ${o.join(" / ")}`:`/${o.join("/")}`:"";return s?`theme(${u}${c}, ${s})`:`theme(${u}${c})`}return r}function Le(e,t){return F(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let l=i.value,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=C([r.nodes[u]]),a=u+1;l=so(l);let s=r.nodes.slice(a+1),o=s.length>0?t(l,C(s)):t(l);if(o===null)return;n(N(o))}}),C(e)}function so(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],l=e[n+1];i==="\\"&&(l===r||l==="\\")?(t+=l,n++):t+=i}return t}function*uo(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}function zr(e,t,r){for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],l=[],a=[],s=n.variants;for(let c of n.variants)co(e,c)?i.push(c):po(e,c)?a.push(c):l.push(c);let o=l.some(c=>fo(e,c)),u=[...a,...o?l.reverse():l,...i];if(!mo(s,u))return w(e,{...n,variants:u})}return r}function co(e,t){return t.kind==="static"&&t.root==="dark"?!0:wt(e,t).every(n=>n.kind==="at-rule")}function fo(e,t){return wt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function po(e,t){return wt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes("::after")||n.selector.includes("::backdrop")||n.selector.includes("::before")||n.selector.includes("::first-letter")||n.selector.includes("::first-line")||n.selector.includes("::marker")||n.selector.includes("::placeholder")||n.selector.includes("::selection")))}function wt(e,t){let r=[],n=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(i=>i.node);return E(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function mo(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}function Lr(e,t){if(!t[0])return e;t.sort((i,l)=>i.end-l.end||i.start-l.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let l=t[i];r+=e.slice(n.end,l.start),r+=l.replacement,n=l}return r+=e.slice(n.end),r}var ho=[xr,Pr,Ar,kr,Or,Tr,Nr,Fr,zr,br,Sr,yr,Rr];async function kt(e,t,r,n){for(let i of ho)r=await i(e,t,r,n);return r}async function Wr(e,t,r,n){let i=await sr(r,n),l=[];for(let{rawCandidate:a,start:s,end:o}of i){let u=await kt(e,t,a,{contents:r,start:s,end:o});u!==a&&l.push({start:s,end:o,replacement:u})}return Lr(r,l)}async function Br(e,t,r){let n=Mr.isAbsolute(r)?r:Mr.resolve(process.cwd(),r),i=await Kr.readFile(n,"utf-8");await Kr.writeFile(n,await Wr(e,t,i,go(r)))}function qr({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),l=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";l&&i.pop();let a=i.map(s=>{if(s.trim()==="")return s;let o=y(s,":"),u=o.pop();return l&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...o,u].join(":")});return async()=>{a=await Promise.all(a.map(async s=>await kt(e,t,s))),n.params=a.join("").trim()}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",l=>{i.push(r(l))}),await Promise.allSettled(i.map(l=>l()))}}}import"postcss";import Me from"postcss-selector-parser";import*as Hr from"node:fs";import*as Jr from"node:fs/promises";import*as Te from"node:path";import*as Gr from"node:util";import*as Ke from"postcss";var Z=class e{id;root;isTailwindRoot=!1;linkedConfigPath=null;file=null;parents=new Set;children=new Set;canMigrate=!0;extension=null;static async load(t){t=Te.resolve(process.cwd(),t);let r=await Jr.readFile(t,"utf-8"),n=Ke.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Te.resolve(process.cwd(),t);let r=Hr.readFileSync(t,"utf-8"),n=Ke.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=Ke.parse(t);return new e(r)}static async fromRoot(t,r){return new e(t,r)}constructor(t,r){this.id=Math.random().toString(36).slice(2),this.root=t,this.file=r??null,r&&(this.extension=Te.extname(r))}get importRules(){let t=new Set;return this.root.walkAtRules("import",r=>{t.add(r)}),t}get isEmpty(){return this.root.toString().trim()===""}*ancestors(){for(let{item:t}of $e(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of $e(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of $e(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let l of i.layers)t.add(l);return t}*pathsToRoot(){for(let{item:t,path:r}of $e(this,n=>n.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let n of this.pathsToRoot()){let i=!1;for(let{meta:l}of n)for(let a of l.layers)i||=a==="utilities"||a==="components";i?t.push(n):r.push(n)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(n=>{if(t(n))return r=!0,!1}),r)return!0;for(let n of this.children)if(n.item.containsRule(t))return!0;return!1}[Gr.inspect.custom](){return{...this,root:this.root.toString(),layers:Array.from(this.layers()),parents:Array.from(this.parents,t=>t.item.id),children:Array.from(this.children,t=>t.item.id),parentsMeta:Array.from(this.parents,t=>t.meta),childrenMeta:Array.from(this.children,t=>t.meta)}}};function*$e(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*$e(n.item,t,i),yield{item:n.item,path:i}}}function Yr(e){function t(r){if(r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();S(r,a=>{if(a.type!=="rule")return;let s=y(a.selector,",");if(s.length>1){let o=[];for(let u of s){let c=a.clone({selector:u});o.push(c)}a.replaceWith(o)}return 1});let i=new Set;S(r,a=>{if(a.type==="rule")return Me(s=>{s.each(o=>{S(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(a.selector,{updateSelector:!1}),1}),S(n,a=>{a.type==="rule"&&Me(s=>{s.each(o=>{S(o,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return a.remove(),2})})}).processSync(a,{updateSelector:!0})});let l=[n];for(let a of i){let s=r.clone();l.push(s),S(s,o=>{if(o.type==="atrule"&&(!o.nodes||o.nodes?.length===0)&&o.remove(),o.type!=="rule")return;let u=!1;if(Me(c=>{c.each(f=>{S(f,p=>{if(p.type==="pseudo"&&p.value===":not")return 1;if(p.type==="class"&&p.value===a){u=!0;let d=f.atPosition(p.source.start.line,p.source.start.column),m=d.parent,h=(d.parent?.index(d)??0)-1;for(;h>=0&&m.at(h)?.type!=="combinator";){let g=m.at(h+1),b=m.at(h);m.at(h+1).replaceWith(b),m.at(h).replaceWith(g),h--}d.replaceWith(Me.nesting())}})})}).processSync(o,{updateSelector:!0}),!u){let c=[o],f=o.parent?.index(o)??null;if(f!==null)for(let p=f-1;p>=0&&o.parent?.nodes.at(p)?.type!=="rule";p--)o.parent?.nodes.at(p)?.type==="comment"&&c.push(o.parent?.nodes.at(p));for(let p of c)p.remove()}return 1}),s.name="utility",s.params=a,s.raws.before=`${s.raws.before??""}
|
|
20
20
|
|
|
21
21
|
`}for(let a=l.length-1;a>=0;a--){let s=l[a];ut(s,o=>{if(s===n&&o.type==="comment"){let u=!1;for(let c of l)if(c!==n&&(S(c,f=>{if(f.type==="comment"&&f.source?.start?.offset===o.source?.start?.offset)return o.remove(),u=!0,2}),u))return 1}if((o.type==="rule"||o.type==="atrule")&&o.nodes?.length===0)o.remove();else if(o.type==="rule"&&o.selector==="&"){let u=o.parent,c=!1;for(;u;){if(u.type==="rule"){c=!0;break}u=u.parent}c||o.replaceWith(o.nodes)}}),s.nodes?.length===0&&l.splice(a,1)}r.replaceWith(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),l=i.has("utilities")||i.has("components");if(l){let a=n({name:"layer",params:"utilities"});a.append(r.nodes),r.append(a)}r.walkAtRules("layer",t);{let a=new Map;S(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let o=a.get(s.params);o?(o.append(s.nodes),s.remove()):a.set(s.params,s)}})}l&&r.each(a=>{a.type==="atrule"&&a.name==="layer"&&a.params==="utilities"&&a.replaceWith(a.nodes??[])})}}}import We from"node:path";import vo,{AtRule as bo}from"postcss";function yo(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var r=e.length;if(r<=1)return e;var n="";if(r>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),n+l.join("/")}function xt(e){let t=yo(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var Qr=new WeakMap;function ei(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot)return;let i=Qr.get(e);if(i&&i.includes(t))return;i?i.push(t):Qr.set(e,[t]);let l=e.root;if(!e.file)return;let a=new bo;if(r!==null){l.walkAtRules("config",o=>{o.remove()});let s=`
|
|
22
22
|
|
|
@@ -30,7 +30,7 @@ var ln=Object.create;var Ft=Object.defineProperty;var an=Object.getOwnPropertyDe
|
|
|
30
30
|
`;for(let[c,f]of Object.entries(o.options)){let p="";typeof f=="string"?p=Xr(f):Array.isArray(f)?p=f.map(d=>typeof d=="string"?Xr(d):""+d).join(", "):p=""+f,s+=` ${c}: ${p};
|
|
31
31
|
`}s+=`}
|
|
32
32
|
`}}s+=`}
|
|
33
|
-
`,a.append(vo.parse(s+r.css))}l.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Zr(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=We.relative(We.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),xt(n)}function Xr(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Po from"node:fs/promises";import{dirname as _o,resolve as Eo}from"node:path";import"postcss";function Ne(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),l=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),a=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(l===a?0:l<a?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}function Be(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),`color-mix(in oklab, ${e} ${t}, transparent)`}function he(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Re(e,t,r,n=[]){for(let i of t)if(i!=null)for(let l of Reflect.ownKeys(i)){let a=[...n,l],s=r(e[l],i[l],a);s!==void 0?e[l]=s:!he(e[l])||!he(i[l])?e[l]=i[l]:e[l]=Re({},[e[l],i[l]],r,a)}return e}function St(e,t,r){return function(i,l){let a=i.lastIndexOf("/"),s=null;a!==-1&&(s=i.slice(a+1).trim(),i=i.slice(0,a).trim());let o=(()=>{let u=Q(i),[c,f]=ko(e.theme,u),p=r(ii(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof c!="object")return typeof f!="object"&&f&4?p??c:c;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let d=Re({},[p],(m,h)=>h);if(c===null&&Object.hasOwn(p,"__CSS_VALUES__")){let m={};for(let h in p.__CSS_VALUES__)m[h]=p[h],delete d[h];c=m}for(let m in c)m!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[m]&4&&ii(d,m.split("-"))!==void 0||(d[Dr(m)]=c[m]));return d}if(Array.isArray(c)&&Array.isArray(f)&&Array.isArray(p)){let d=c[0],m=c[1];f[0]&4&&(d=p[0]??d);for(let h of Object.keys(m))f[1][h]&4&&(m[h]=p[1][h]??m[h]);return[d,m]}return c??p})();return s&&typeof o=="string"&&(o=Be(o,s)),o??l}}function ko(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=M(t),n=new Map,i=new k(()=>new Map),l=e.namespace(`--${r}`);if(l.size===0)return[null,0];let a=new Map;for(let[c,f]of l){if(!c||!c.includes("--")){n.set(c,f),a.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let p=c.indexOf("--"),d=c.slice(0,p),m=c.slice(p+2);m=m.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),i.get(d===""?null:d).set(m,[f,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,f]of i){let p=n.get(c);if(typeof p!="string")continue;let d={},m={};for(let[h,[g,b]]of f)d[h]=g,m[h]=b;n.set(c,[p,d]),a.set(c,[s,m])}let o={},u={};for(let[c,f]of n)ni(o,[c??"DEFAULT"],f);for(let[c,f]of a)ni(u,[c??"DEFAULT"],f);return t[t.length-1]==="DEFAULT"?[o?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in o&&Object.keys(o).length===1?[o.DEFAULT,u.DEFAULT??0]:(o.__CSS_VALUES__=u,[o,u])}function ii(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e[n]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function ni(e,t,r){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=r}function qe(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object")!n.startsWith("--")&&i==="@slot"?t.push(J(n,[A("@slot")])):(n=n.replace(/([A-Z])/g,"-$1").toLowerCase(),t.push(R(n,String(i))));else if(Array.isArray(i))for(let l of i)typeof l=="string"?t.push(R(n,l)):t.push(J(n,qe(l)));else i!==null&&t.push(J(n,qe(i)));return t}function oi(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(A("@keyframes",r,qe(n)));return t}var He={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function se(e){return{__BARE_VALUE__:e}}var L=se(e=>{if($(e.value))return e.value}),V=se(e=>{if($(e.value))return`${e.value}%`}),X=se(e=>{if($(e.value))return`${e.value}px`}),li=se(e=>{if($(e.value))return`${e.value}ms`}),Je=se(e=>{if($(e.value))return`${e.value}deg`}),So=se(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!$(t)||!$(r)))return e.fraction}),ai=se(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),$o={accentColor:({theme:e})=>e("colors"),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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...So},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Je}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("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"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...X},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...He}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...L},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...X}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...L},flexShrink:{0:"0",DEFAULT:"1",...L},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...L},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...ai},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...ai},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Je},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...L},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...L},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Je},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Je},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...L},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...li},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...li},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...L}};var To={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function ue(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(To)};for(let i of t)Tt(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=Ro(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function No(e,t){if(Array.isArray(e)&&he(e[0]))return e.concat(t);if(Array.isArray(t)&&he(t[0])&&he(e))return[e,...t];if(Array.isArray(t))return t}function Tt(e,{config:t,base:r,path:n,reference:i}){let l=[];for(let o of t.plugins??[])"__isOptionsFunction"in o?l.push({...o(),reference:i}):"handler"in o?l.push({...o,reference:i}):l.push({handler:o,reference:i});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Tt(e,{path:n,base:r,config:o,reference:i});for(let o of l)e.plugins.push(o),o.config&&Tt(e,{path:n,base:r,config:o.config,reference:!!o.reference});let a=t.content??[],s=Array.isArray(a)?a:a.files;for(let o of s)e.content.files.push(typeof o=="object"?o:{base:r,pattern:o});e.configs.push(t)}function Ro(e){let t=new Set,r=St(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:He});function i(l){return typeof l=="function"?l(n)??null:l??null}for(let l of e.configs){let a=l.theme??{},s=a.extend??{};for(let o in a)o!=="extend"&&t.add(o);Object.assign(e.theme,a);for(let o in s)e.extend[o]??=[],e.extend[o].push(s[o])}delete e.theme.extend;for(let l in e.extend){let a=[e.theme[l],...e.extend[l]];e.theme[l]=()=>{let s=a.map(i);return Re({},s,No)}}for(let l in e.theme)e.theme[l]=i(e.theme[l]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let l of Object.keys(e.theme.screens)){let a=e.theme.screens[l];a&&typeof a=="object"&&("raw"in a||"max"in a||"min"in a&&(e.theme.screens[l]=a.min))}return t}function si({center:e,padding:t,screens:r},n){let i=[],l=null;if(e&&i.push(R("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(R("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){l=new Map;let a=Array.from(n.theme.namespace("--breakpoint").entries());if(a.sort((s,o)=>Ne(s[1],o[1],"asc")),a.length>0){let[s]=a[0];i.push(A("@media",`(width >= theme(--breakpoint-${s}))`,[R("max-width","none")]))}for(let[s,o]of Object.entries(r)){if(typeof o=="object")if("min"in o)o=o.min;else continue;l.set(s,A("@media",`(width >= ${o})`,[R("max-width",o)]))}}if(typeof t=="object"&&t!==null){let a=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,o])=>[s,n.theme.resolveValue(s,["--breakpoint"]),o]).filter(Boolean);a.sort((s,o)=>Ne(s[1],o[1],"asc"));for(let[s,,o]of a)if(l&&l.has(s))l.get(s).nodes.push(R("padding-inline",o));else{if(l)continue;i.push(A("@media",`(width >= theme(--breakpoint-${s}))`,[R("padding-inline",o)]))}}if(l)for(let[,a]of l)i.push(a);return i}function Nt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let l;if(Array.isArray(i)||typeof i=="function"?l=i:typeof i=="string"&&(l=[i]),Array.isArray(l))for(let a of l)a===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):a.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=l}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function ui(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}function ci(e){let t,r=null,n=null,i=null;for(let l=0;l<e.length;l++){let a=e[l];if(a.kind!=="separator"){if(a.kind==="word"&&!t){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;t=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!t)return null;if((a.kind==="word"||a.kind==="function")&&a.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?r=C(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=C(a.nodes);continue}n=C(e.slice(l));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function fi(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[l,...a]=y(i.params," "),s=ci(N(l)),o=s.uri[0]===".",u=s.uri.endsWith(".css");if(o&&u)return;let c=Eo(_o(r),s.uri);u||(c+=".css"),n.push(Po.stat(c).then(()=>{let f=u?"":".css",p=o?s.uri:`./${s.uri}`;i.params=[`'${p}${f}'`,...a].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function pi({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=ue(e,[{base:"",config:t}]),l=i?.theme?.screens||{},a=new k(s=>{let o=e?.resolveThemeValue(`--breakpoint-${s}`)??l?.[s];return typeof o=="string"?`(width >= theme(--breakpoint-${s}))`:o?ui(o):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let o=s.params.match(/screen\(([^)]+)\)/);if(!o)return;let u=a.get(o[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Oo}from"postcss";function di(){function e(t){let r="",n=[],i=[],l=null;t.each(a=>{if(a.type==="atrule"){if(a.name==="config"||a.name==="source"||a.name==="theme"||a.name==="utility"||a.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="tailwind"&&a.params==="base"||a.name==="import"&&a.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="base",r="base";return}if(a.name==="tailwind"&&a.params==="components"||a.name==="import"&&a.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="components",r="components";return}if(a.name==="tailwind"&&a.params==="utilities"||a.name==="import"&&a.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="utilities",r="utilities";return}if(a.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[a]]);return}}r===""&&(a.type==="comment"||a.type==="atrule"&&!a.nodes||a.type==="atrule"&&a.name==="charset")||n.push(a)});for(let[a,s]of i){let o=a||l||"";if(o===""||s.every(f=>f.type==="comment"))continue;if(s.every(f=>f.type==="atrule"&&f.name==="import")){for(let f of s)if(!(f.type!=="atrule"||f.name!=="import")&&!f.params.includes("layer(")){let p=y(f.params," ");p.splice(1,0,`layer(${o})`),f.params=p.join(" "),f.raws.tailwind_injected_layer=!0}continue}let u=s[0],c=new Oo({name:"layer",params:o,nodes:s.map(f=>f===u?f:f.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Do from"dedent";import jo from"postcss";var Io="currentColor",Uo=Do,Fo=Uo`
|
|
33
|
+
`,a.append(vo.parse(s+r.css))}l.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Zr(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=We.relative(We.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),xt(n)}function Xr(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import _o from"node:fs/promises";import{dirname as Eo,resolve as Oo}from"node:path";import"postcss";function Ne(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),l=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),a=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(l===a?0:l<a?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}function Be(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),`color-mix(in oklab, ${e} ${t}, transparent)`}function he(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Re(e,t,r,n=[]){for(let i of t)if(i!=null)for(let l of Reflect.ownKeys(i)){let a=[...n,l],s=r(e[l],i[l],a);s!==void 0?e[l]=s:!he(e[l])||!he(i[l])?e[l]=i[l]:e[l]=Re({},[e[l],i[l]],r,a)}return e}function St(e,t,r){return function(i,l){let a=i.lastIndexOf("/"),s=null;a!==-1&&(s=i.slice(a+1).trim(),i=i.slice(0,a).trim());let o=(()=>{let u=Q(i),[c,f]=xo(e.theme,u),p=r(ii(t()??{},u)??null);if(typeof p=="string"&&(p=p.replace("<alpha-value>","1")),typeof c!="object")return typeof f!="object"&&f&4?p??c:c;if(p!==null&&typeof p=="object"&&!Array.isArray(p)){let d=Re({},[p],(m,h)=>h);if(c===null&&Object.hasOwn(p,"__CSS_VALUES__")){let m={};for(let h in p.__CSS_VALUES__)m[h]=p[h],delete d[h];c=m}for(let m in c)m!=="__CSS_VALUES__"&&(p?.__CSS_VALUES__?.[m]&4&&ii(d,m.split("-"))!==void 0||(d[Dr(m)]=c[m]));return d}if(Array.isArray(c)&&Array.isArray(f)&&Array.isArray(p)){let d=c[0],m=c[1];f[0]&4&&(d=p[0]??d);for(let h of Object.keys(m))f[1][h]&4&&(m[h]=p[1][h]??m[h]);return[d,m]}return c??p})();return s&&typeof o=="string"&&(o=Be(o,s)),o??l}}function xo(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=M(t),n=new Map,i=new k(()=>new Map),l=e.namespace(`--${r}`);if(l.size===0)return[null,0];let a=new Map;for(let[c,f]of l){if(!c||!c.includes("--")){n.set(c,f),a.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let p=c.indexOf("--"),d=c.slice(0,p),m=c.slice(p+2);m=m.replace(/-([a-z])/g,(h,g)=>g.toUpperCase()),i.get(d===""?null:d).set(m,[f,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,f]of i){let p=n.get(c);if(typeof p!="string")continue;let d={},m={};for(let[h,[g,b]]of f)d[h]=g,m[h]=b;n.set(c,[p,d]),a.set(c,[s,m])}let o={},u={};for(let[c,f]of n)ni(o,[c??"DEFAULT"],f);for(let[c,f]of a)ni(u,[c??"DEFAULT"],f);return t[t.length-1]==="DEFAULT"?[o?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in o&&Object.keys(o).length===1?[o.DEFAULT,u.DEFAULT??0]:(o.__CSS_VALUES__=u,[o,u])}function ii(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e[n]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function ni(e,t,r){for(let n of t.slice(0,-1))e[n]===void 0&&(e[n]={}),e=e[n];e[t[t.length-1]]=r}function qe(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(typeof i!="object")!n.startsWith("--")&&i==="@slot"?t.push(J(n,[A("@slot")])):(n=n.replace(/([A-Z])/g,"-$1").toLowerCase(),t.push(R(n,String(i))));else if(Array.isArray(i))for(let l of i)typeof l=="string"?t.push(R(n,l)):t.push(J(n,qe(l)));else i!==null&&t.push(J(n,qe(i)));return t}function oi(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(A("@keyframes",r,qe(n)));return t}var He={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(0.984 0.003 247.858)",100:"oklch(0.968 0.007 247.896)",200:"oklch(0.929 0.013 255.508)",300:"oklch(0.869 0.022 252.894)",400:"oklch(0.704 0.04 256.788)",500:"oklch(0.554 0.046 257.417)",600:"oklch(0.446 0.043 257.281)",700:"oklch(0.372 0.044 257.287)",800:"oklch(0.279 0.041 260.031)",900:"oklch(0.208 0.042 265.755)",950:"oklch(0.129 0.042 264.695)"},gray:{50:"oklch(0.985 0.002 247.839)",100:"oklch(0.967 0.003 264.542)",200:"oklch(0.928 0.006 264.531)",300:"oklch(0.872 0.01 258.338)",400:"oklch(0.707 0.022 261.325)",500:"oklch(0.551 0.027 264.364)",600:"oklch(0.446 0.03 256.802)",700:"oklch(0.373 0.034 259.733)",800:"oklch(0.278 0.033 256.848)",900:"oklch(0.21 0.034 264.665)",950:"oklch(0.13 0.028 261.692)"},zinc:{50:"oklch(0.985 0 0)",100:"oklch(0.967 0.001 286.375)",200:"oklch(0.92 0.004 286.32)",300:"oklch(0.871 0.006 286.286)",400:"oklch(0.705 0.015 286.067)",500:"oklch(0.552 0.016 285.938)",600:"oklch(0.442 0.017 285.786)",700:"oklch(0.37 0.013 285.805)",800:"oklch(0.274 0.006 286.033)",900:"oklch(0.21 0.006 285.885)",950:"oklch(0.141 0.005 285.823)"},neutral:{50:"oklch(0.985 0 0)",100:"oklch(0.97 0 0)",200:"oklch(0.922 0 0)",300:"oklch(0.87 0 0)",400:"oklch(0.708 0 0)",500:"oklch(0.556 0 0)",600:"oklch(0.439 0 0)",700:"oklch(0.371 0 0)",800:"oklch(0.269 0 0)",900:"oklch(0.205 0 0)",950:"oklch(0.145 0 0)"},stone:{50:"oklch(0.985 0.001 106.423)",100:"oklch(0.97 0.001 106.424)",200:"oklch(0.923 0.003 48.717)",300:"oklch(0.869 0.005 56.366)",400:"oklch(0.709 0.01 56.259)",500:"oklch(0.553 0.013 58.071)",600:"oklch(0.444 0.011 73.639)",700:"oklch(0.374 0.01 67.558)",800:"oklch(0.268 0.007 34.298)",900:"oklch(0.216 0.006 56.043)",950:"oklch(0.147 0.004 49.25)"},red:{50:"oklch(0.971 0.013 17.38)",100:"oklch(0.936 0.032 17.717)",200:"oklch(0.885 0.062 18.334)",300:"oklch(0.808 0.114 19.571)",400:"oklch(0.704 0.191 22.216)",500:"oklch(0.637 0.237 25.331)",600:"oklch(0.577 0.245 27.325)",700:"oklch(0.505 0.213 27.518)",800:"oklch(0.444 0.177 26.899)",900:"oklch(0.396 0.141 25.723)",950:"oklch(0.258 0.092 26.042)"},orange:{50:"oklch(0.98 0.016 73.684)",100:"oklch(0.954 0.038 75.164)",200:"oklch(0.901 0.076 70.697)",300:"oklch(0.837 0.128 66.29)",400:"oklch(0.75 0.183 55.934)",500:"oklch(0.705 0.213 47.604)",600:"oklch(0.646 0.222 41.116)",700:"oklch(0.553 0.195 38.402)",800:"oklch(0.47 0.157 37.304)",900:"oklch(0.408 0.123 38.172)",950:"oklch(0.266 0.079 36.259)"},amber:{50:"oklch(0.987 0.022 95.277)",100:"oklch(0.962 0.059 95.617)",200:"oklch(0.924 0.12 95.746)",300:"oklch(0.879 0.169 91.605)",400:"oklch(0.828 0.189 84.429)",500:"oklch(0.769 0.188 70.08)",600:"oklch(0.666 0.179 58.318)",700:"oklch(0.555 0.163 48.998)",800:"oklch(0.473 0.137 46.201)",900:"oklch(0.414 0.112 45.904)",950:"oklch(0.279 0.077 45.635)"},yellow:{50:"oklch(0.987 0.026 102.212)",100:"oklch(0.973 0.071 103.193)",200:"oklch(0.945 0.129 101.54)",300:"oklch(0.905 0.182 98.111)",400:"oklch(0.852 0.199 91.936)",500:"oklch(0.795 0.184 86.047)",600:"oklch(0.681 0.162 75.834)",700:"oklch(0.554 0.135 66.442)",800:"oklch(0.476 0.114 61.907)",900:"oklch(0.421 0.095 57.708)",950:"oklch(0.286 0.066 53.813)"},lime:{50:"oklch(0.986 0.031 120.757)",100:"oklch(0.967 0.067 122.328)",200:"oklch(0.938 0.127 124.321)",300:"oklch(0.897 0.196 126.665)",400:"oklch(0.841 0.238 128.85)",500:"oklch(0.768 0.233 130.85)",600:"oklch(0.648 0.2 131.684)",700:"oklch(0.532 0.157 131.589)",800:"oklch(0.453 0.124 130.933)",900:"oklch(0.405 0.101 131.063)",950:"oklch(0.274 0.072 132.109)"},green:{50:"oklch(0.982 0.018 155.826)",100:"oklch(0.962 0.044 156.743)",200:"oklch(0.925 0.084 155.995)",300:"oklch(0.871 0.15 154.449)",400:"oklch(0.792 0.209 151.711)",500:"oklch(0.723 0.219 149.579)",600:"oklch(0.627 0.194 149.214)",700:"oklch(0.527 0.154 150.069)",800:"oklch(0.448 0.119 151.328)",900:"oklch(0.393 0.095 152.535)",950:"oklch(0.266 0.065 152.934)"},emerald:{50:"oklch(0.979 0.021 166.113)",100:"oklch(0.95 0.052 163.051)",200:"oklch(0.905 0.093 164.15)",300:"oklch(0.845 0.143 164.978)",400:"oklch(0.765 0.177 163.223)",500:"oklch(0.696 0.17 162.48)",600:"oklch(0.596 0.145 163.225)",700:"oklch(0.508 0.118 165.612)",800:"oklch(0.432 0.095 166.913)",900:"oklch(0.378 0.077 168.94)",950:"oklch(0.262 0.051 172.552)"},teal:{50:"oklch(0.984 0.014 180.72)",100:"oklch(0.953 0.051 180.801)",200:"oklch(0.91 0.096 180.426)",300:"oklch(0.855 0.138 181.071)",400:"oklch(0.777 0.152 181.912)",500:"oklch(0.704 0.14 182.503)",600:"oklch(0.6 0.118 184.704)",700:"oklch(0.511 0.096 186.391)",800:"oklch(0.437 0.078 188.216)",900:"oklch(0.386 0.063 188.416)",950:"oklch(0.277 0.046 192.524)"},cyan:{50:"oklch(0.984 0.019 200.873)",100:"oklch(0.956 0.045 203.388)",200:"oklch(0.917 0.08 205.041)",300:"oklch(0.865 0.127 207.078)",400:"oklch(0.789 0.154 211.53)",500:"oklch(0.715 0.143 215.221)",600:"oklch(0.609 0.126 221.723)",700:"oklch(0.52 0.105 223.128)",800:"oklch(0.45 0.085 224.283)",900:"oklch(0.398 0.07 227.392)",950:"oklch(0.302 0.056 229.695)"},sky:{50:"oklch(0.977 0.013 236.62)",100:"oklch(0.951 0.026 236.824)",200:"oklch(0.901 0.058 230.902)",300:"oklch(0.828 0.111 230.318)",400:"oklch(0.746 0.16 232.661)",500:"oklch(0.685 0.169 237.323)",600:"oklch(0.588 0.158 241.966)",700:"oklch(0.5 0.134 242.749)",800:"oklch(0.443 0.11 240.79)",900:"oklch(0.391 0.09 240.876)",950:"oklch(0.293 0.066 243.157)"},blue:{50:"oklch(0.97 0.014 254.604)",100:"oklch(0.932 0.032 255.585)",200:"oklch(0.882 0.059 254.128)",300:"oklch(0.809 0.105 251.813)",400:"oklch(0.707 0.165 254.624)",500:"oklch(0.623 0.214 259.815)",600:"oklch(0.546 0.245 262.881)",700:"oklch(0.488 0.243 264.376)",800:"oklch(0.424 0.199 265.638)",900:"oklch(0.379 0.146 265.522)",950:"oklch(0.282 0.091 267.935)"},indigo:{50:"oklch(0.962 0.018 272.314)",100:"oklch(0.93 0.034 272.788)",200:"oklch(0.87 0.065 274.039)",300:"oklch(0.785 0.115 274.713)",400:"oklch(0.673 0.182 276.935)",500:"oklch(0.585 0.233 277.117)",600:"oklch(0.511 0.262 276.966)",700:"oklch(0.457 0.24 277.023)",800:"oklch(0.398 0.195 277.366)",900:"oklch(0.359 0.144 278.697)",950:"oklch(0.257 0.09 281.288)"},violet:{50:"oklch(0.969 0.016 293.756)",100:"oklch(0.943 0.029 294.588)",200:"oklch(0.894 0.057 293.283)",300:"oklch(0.811 0.111 293.571)",400:"oklch(0.702 0.183 293.541)",500:"oklch(0.606 0.25 292.717)",600:"oklch(0.541 0.281 293.009)",700:"oklch(0.491 0.27 292.581)",800:"oklch(0.432 0.232 292.759)",900:"oklch(0.38 0.189 293.745)",950:"oklch(0.283 0.141 291.089)"},purple:{50:"oklch(0.977 0.014 308.299)",100:"oklch(0.946 0.033 307.174)",200:"oklch(0.902 0.063 306.703)",300:"oklch(0.827 0.119 306.383)",400:"oklch(0.714 0.203 305.504)",500:"oklch(0.627 0.265 303.9)",600:"oklch(0.558 0.288 302.321)",700:"oklch(0.496 0.265 301.924)",800:"oklch(0.438 0.218 303.724)",900:"oklch(0.381 0.176 304.987)",950:"oklch(0.291 0.149 302.717)"},fuchsia:{50:"oklch(0.977 0.017 320.058)",100:"oklch(0.952 0.037 318.852)",200:"oklch(0.903 0.076 319.62)",300:"oklch(0.833 0.145 321.434)",400:"oklch(0.74 0.238 322.16)",500:"oklch(0.667 0.295 322.15)",600:"oklch(0.591 0.293 322.896)",700:"oklch(0.518 0.253 323.949)",800:"oklch(0.452 0.211 324.591)",900:"oklch(0.401 0.17 325.612)",950:"oklch(0.293 0.136 325.661)"},pink:{50:"oklch(0.971 0.014 343.198)",100:"oklch(0.948 0.028 342.258)",200:"oklch(0.899 0.061 343.231)",300:"oklch(0.823 0.12 346.018)",400:"oklch(0.718 0.202 349.761)",500:"oklch(0.656 0.241 354.308)",600:"oklch(0.592 0.249 0.584)",700:"oklch(0.525 0.223 3.958)",800:"oklch(0.459 0.187 3.815)",900:"oklch(0.408 0.153 2.432)",950:"oklch(0.284 0.109 3.907)"},rose:{50:"oklch(0.969 0.015 12.422)",100:"oklch(0.941 0.03 12.58)",200:"oklch(0.892 0.058 10.001)",300:"oklch(0.81 0.117 11.638)",400:"oklch(0.712 0.194 13.428)",500:"oklch(0.645 0.246 16.439)",600:"oklch(0.586 0.253 17.585)",700:"oklch(0.514 0.222 16.935)",800:"oklch(0.455 0.188 13.697)",900:"oklch(0.41 0.159 10.272)",950:"oklch(0.271 0.105 12.094)"}};function se(e){return{__BARE_VALUE__:e}}var z=se(e=>{if($(e.value))return e.value}),V=se(e=>{if($(e.value))return`${e.value}%`}),X=se(e=>{if($(e.value))return`${e.value}px`}),li=se(e=>{if($(e.value))return`${e.value}ms`}),Je=se(e=>{if($(e.value))return`${e.value}deg`}),$o=se(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!$(t)||!$(r)))return e.fraction}),ai=se(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),To={accentColor:({theme:e})=>e("colors"),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"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",...$o},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Je}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),borderOpacity:({theme:e})=>e("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"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...X},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...He}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",...z},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...X}),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>e("colors"),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",...e("spacing")}),flexGrow:{0:"0",DEFAULT:"1",...z},flexShrink:{0:"0",DEFAULT:"1",...z},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...z},gridTemplateColumns:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...ai},gridTemplateRows:{none:"none",subgrid:"subgrid",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))",...ai},height:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg",...Je},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"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",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...z},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...z},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:"currentColor",...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Je},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Je},space:({theme:e})=>e("spacing"),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2",...z},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...X},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...li},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...li},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),size:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),width:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",svw:"100svw",lvw:"100lvw",dvw:"100dvw",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50",...z}};var No={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function ue(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(No)};for(let i of t)Tt(r,i);for(let i of r.configs)"darkMode"in i&&i.darkMode!==void 0&&(r.result.darkMode=i.darkMode??null),"prefix"in i&&i.prefix!==void 0&&(r.result.prefix=i.prefix??""),"blocklist"in i&&i.blocklist!==void 0&&(r.result.blocklist=i.blocklist??[]),"important"in i&&i.important!==void 0&&(r.result.important=i.important??!1);let n=Vo(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Ro(e,t){if(Array.isArray(e)&&he(e[0]))return e.concat(t);if(Array.isArray(t)&&he(t[0])&&he(e))return[e,...t];if(Array.isArray(t))return t}function Tt(e,{config:t,base:r,path:n,reference:i}){let l=[];for(let o of t.plugins??[])"__isOptionsFunction"in o?l.push({...o(),reference:i}):"handler"in o?l.push({...o,reference:i}):l.push({handler:o,reference:i});if(Array.isArray(t.presets)&&t.presets.length===0)throw new Error("Error in the config file/plugin/preset. An empty preset (`preset: []`) is not currently supported.");for(let o of t.presets??[])Tt(e,{path:n,base:r,config:o,reference:i});for(let o of l)e.plugins.push(o),o.config&&Tt(e,{path:n,base:r,config:o.config,reference:!!o.reference});let a=t.content??[],s=Array.isArray(a)?a:a.files;for(let o of s)e.content.files.push(typeof o=="object"?o:{base:r,pattern:o});e.configs.push(t)}function Vo(e){let t=new Set,r=St(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:He});function i(l){return typeof l=="function"?l(n)??null:l??null}for(let l of e.configs){let a=l.theme??{},s=a.extend??{};for(let o in a)o!=="extend"&&t.add(o);Object.assign(e.theme,a);for(let o in s)e.extend[o]??=[],e.extend[o].push(s[o])}delete e.theme.extend;for(let l in e.extend){let a=[e.theme[l],...e.extend[l]];e.theme[l]=()=>{let s=a.map(i);return Re({},s,Ro)}}for(let l in e.theme)e.theme[l]=i(e.theme[l]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let l of Object.keys(e.theme.screens)){let a=e.theme.screens[l];a&&typeof a=="object"&&("raw"in a||"max"in a||"min"in a&&(e.theme.screens[l]=a.min))}return t}function si({center:e,padding:t,screens:r},n){let i=[],l=null;if(e&&i.push(R("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(R("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){l=new Map;let a=Array.from(n.theme.namespace("--breakpoint").entries());if(a.sort((s,o)=>Ne(s[1],o[1],"asc")),a.length>0){let[s]=a[0];i.push(A("@media",`(width >= theme(--breakpoint-${s}))`,[R("max-width","none")]))}for(let[s,o]of Object.entries(r)){if(typeof o=="object")if("min"in o)o=o.min;else continue;l.set(s,A("@media",`(width >= ${o})`,[R("max-width",o)]))}}if(typeof t=="object"&&t!==null){let a=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,o])=>[s,n.theme.resolveValue(s,["--breakpoint"]),o]).filter(Boolean);a.sort((s,o)=>Ne(s[1],o[1],"asc"));for(let[s,,o]of a)if(l&&l.has(s))l.get(s).nodes.push(R("padding-inline",o));else{if(l)continue;i.push(A("@media",`(width >= theme(--breakpoint-${s}))`,[R("padding-inline",o)]))}}if(l)for(let[,a]of l)i.push(a);return i}function Nt({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let l;if(Array.isArray(i)||typeof i=="function"?l=i:typeof i=="string"&&(l=[i]),Array.isArray(l))for(let a of l)a===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):a.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=l}n===null||(n==="selector"?e("dark",`&:where(${i}, ${i} *)`):n==="media"?e("dark","@media (prefers-color-scheme: dark)"):n==="variant"?e("dark",i):n==="class"&&e("dark",`&:is(${i} *)`))}function ui(e){return(Array.isArray(e)?e:[e]).map(r=>typeof r=="string"?{min:r}:r&&typeof r=="object"?r:null).map(r=>{if(r===null)return null;if("raw"in r)return r.raw;let n="";return r.max!==void 0&&(n+=`${r.max} >= `),n+="width",r.min!==void 0&&(n+=` >= ${r.min}`),`(${n})`}).filter(Boolean).join(", ")}function ci(e){let t,r=null,n=null,i=null;for(let l=0;l<e.length;l++){let a=e[l];if(a.kind!=="separator"){if(a.kind==="word"&&!t){if(!a.value||a.value[0]!=='"'&&a.value[0]!=="'")return null;t=a.value.slice(1,-1);continue}if(a.kind==="function"&&a.value.toLowerCase()==="url"||!t)return null;if((a.kind==="word"||a.kind==="function")&&a.value.toLowerCase()==="layer"){if(r)return null;if(i)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in a?r=C(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=C(a.nodes);continue}n=C(e.slice(l));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function fi(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[l,...a]=y(i.params," "),s=ci(N(l)),o=s.uri[0]===".",u=s.uri.endsWith(".css");if(o&&u)return;let c=Oo(Eo(r),s.uri);u||(c+=".css"),n.push(_o.stat(c).then(()=>{let f=u?"":".css",p=o?s.uri:`./${s.uri}`;i.params=[`'${p}${f}'`,...a].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function pi({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=ue(e,[{base:"",config:t}]),l=i?.theme?.screens||{},a=new k(s=>{let o=e?.resolveThemeValue(`--breakpoint-${s}`)??l?.[s];return typeof o=="string"?`(width >= theme(--breakpoint-${s}))`:o?ui(o):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let o=s.params.match(/screen\(([^)]+)\)/);if(!o)return;let u=a.get(o[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as Do}from"postcss";function di(){function e(t){let r="",n=[],i=[],l=null;t.each(a=>{if(a.type==="atrule"){if(a.name==="config"||a.name==="source"||a.name==="theme"||a.name==="utility"||a.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="tailwind"&&a.params==="base"||a.name==="import"&&a.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="base",r="base";return}if(a.name==="tailwind"&&a.params==="components"||a.name==="import"&&a.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="components",r="components";return}if(a.name==="tailwind"&&a.params==="utilities"||a.name==="import"&&a.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),l??="utilities",r="utilities";return}if(a.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(a.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[a]]);return}}r===""&&(a.type==="comment"||a.type==="atrule"&&!a.nodes||a.type==="atrule"&&a.name==="charset")||n.push(a)});for(let[a,s]of i){let o=a||l||"";if(o===""||s.every(f=>f.type==="comment"))continue;if(s.every(f=>f.type==="atrule"&&f.name==="import")){for(let f of s)if(!(f.type!=="atrule"||f.name!=="import")&&!f.params.includes("layer(")){let p=y(f.params," ");p.splice(1,0,`layer(${o})`),f.params=p.join(" "),f.raws.tailwind_injected_layer=!0}continue}let u=s[0],c=new Do({name:"layer",params:o,nodes:s.map(f=>f===u?f:f.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import jo from"dedent";import Io from"postcss";var Uo="currentColor",Fo=jo,zo=Fo`
|
|
34
34
|
/*
|
|
35
35
|
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
|
|
36
36
|
so we've added these compatibility styles to make sure everything still
|
|
@@ -48,23 +48,23 @@ var ln=Object.create;var Ft=Object.defineProperty;var an=Object.getOwnPropertyDe
|
|
|
48
48
|
border-color: theme(borderColor.DEFAULT);
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
`;function mi({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(l){let a=`--${M(Q(l))}`;return!!e.theme.get([a])}function i(l){let a=!1;if(l.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return a=!0,!1}),!a)return;let s="";r!==
|
|
51
|
+
`;function mi({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(l){let a=`--${M(Q(l))}`;return!!e.theme.get([a])}function i(l){let a=!1;if(l.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return a=!0,!1}),!a)return;let s="";r!==Uo&&(s+=zo,s+=`
|
|
52
52
|
|
|
53
53
|
`),s=`
|
|
54
54
|
@tw-bucket compatibility {
|
|
55
55
|
${s}
|
|
56
56
|
}
|
|
57
|
-
`;let o=
|
|
57
|
+
`;let o=Io.parse(s);o.walkDecls(u=>{u.value.includes("theme(")&&(u.value=Lo(N(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentColor)":null))}),l.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),l.append(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function Lo(e,t){return F(e,(r,{replaceWith:n})=>{if(r.kind==="function"&&r.value==="theme"){if(r.nodes.length<1)return;r.nodes[0].kind==="separator"&&r.nodes[0].value.trim()===""&&r.nodes.shift();let i=r.nodes[0];if(i.kind!=="word")return;let l=i.value,a=1;for(let u=a;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)l+=C([r.nodes[u]]),a=u+1;l=Ko(l);let s=r.nodes.slice(a+1),o=s.length>0?t(l,C(s)):t(l);if(o===null)return;n(N(o))}}),C(e)}function Ko(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let n=1;n<e.length-1;n++){let i=e[n],l=e[n+1];i==="\\"&&(l===r||l==="\\")?(t+=l,n++):t+=i}return t}import{AtRule as Ge}from"postcss";var Rt=["theme","base","components","utilities"];function gi(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,l=null,a=[],s=null,o=null,u=null,c=null,f=[];n.walkAtRules(p=>{if(p.name==="import"&&p.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(p.params=p.params.replace("tailwindcss/tailwind.css","tailwindcss")),p.name==="import"&&p.params.match(/^["']tailwindcss["']/))p.params+=t;else if(p.name==="tailwind"&&p.params==="base"||p.name==="import"&&p.params.match(/^["']tailwindcss\/base["']$/))f.push("base"),a.push(p),i=p;else if(p.name==="tailwind"&&p.params==="utilities"||p.name==="import"&&p.params.match(/^["']tailwindcss\/utilities["']$/))f.push("utilities"),a.push(p),l=p;else if(p.name==="tailwind"&&p.params==="components"||p.name==="tailwind"&&p.params==="screens"||p.name==="tailwind"&&p.params==="variants"||p.name==="import"&&p.params.match(/^["']tailwindcss\/components["']$/))p.remove();else if(p.name==="responsive")if(p.nodes){for(let d of p.nodes)d.raws.tailwind_pretty=!0;p.replaceWith(p.nodes)}else p.remove()}),i!==null&&l!==null?(s||Ye(a).before(new Ge({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),l?.remove()):l!==null?(o||Ye(a).before(new Ge({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),l?.remove()):i!==null&&(c||Ye(a).before(new Ge({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Ye(a).before(new Ge({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=f.toSorted((d,m)=>Rt.indexOf(d)-Rt.indexOf(m));if(f.some((d,m)=>d!==p[m])){let d=Rt.toSorted((m,h)=>f.indexOf(m)-f.indexOf(h));n.prepend({name:"layer",params:d.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Ye(e){let t=e.at(0),r=t.prev();for(;r;){if(r.type==="rule"&&(t=r),r.type==="atrule")if(r.name==="charset"||r.name==="import"){r=r.prev();continue}else if(r.name==="layer"&&!r.nodes){r=r.prev();continue}else t=r;r=r.prev()}return t}import"postcss";function hi({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=bt(e,{prettyPrint:!0});t.walkDecls(n=>{let[i]=r(n.value);n.value=i}),t.walkAtRules(n=>{if(n.name==="media"||n.name==="custom-media"||n.name==="container"||n.name==="supports"){let[i]=r(n.params,2);n.params=i}})}}}import"postcss";function yi(){function e(t){t.walkAtRules("variants",r=>{r.name==="variants"&&(r.name="layer",r.params="utilities")})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-variants-directive",OnceExit:e}}import{__unstable__loadDesignSystem as $i,compile as Zo}from"@tailwindcss/node";import Xo from"node:fs/promises";import ce,{dirname as Ti}from"node:path";import{fileURLToPath as el}from"node:url";import ye from"enhanced-resolve";import{createJiti as Go}from"jiti";import Pt from"node:fs";import bd from"node:fs/promises";import kd,{dirname as wi}from"node:path";import{pathToFileURL as ki}from"node:url";import{__unstable__loadDesignSystem as Ad,compile as Sd,compileAst as $d,Features as Td}from"tailwindcss";import Vt from"node:fs/promises";import Ve from"node:path";var Mo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Wo=[".js",".cjs",".mjs"],Bo=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],qo=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Ho(e,t){for(let r of t){let n=`${e}${r}`;if((await Vt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Vt.access(n).then(()=>!0,()=>!1))return n}return null}async function vi(e,t,r,n){let i=Wo.includes(n)?Bo:qo,l=await Ho(Ve.resolve(r,t),i);if(l===null||e.has(l))return;e.add(l),r=Ve.dirname(l),n=Ve.extname(l);let a=await Vt.readFile(l,"utf-8"),s=[];for(let o of Mo)for(let u of a.matchAll(o))u[1].startsWith(".")&&s.push(vi(e,u[1],r,n));await Promise.all(s)}async function bi(e){let t=new Set;return await vi(t,e,Ve.dirname(e),Ve.extname(e)),Array.from(t)}import*as Jo from"node:path";async function Qe(e,t,r,n){if(e[0]!=="."){let s=await Ai(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await Ci(ki(s).href);return{base:wi(s),module:o.default??o}}let i=await Ai(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,a]=await Promise.all([Ci(ki(i).href+"?id="+Date.now()),bi(i)]);for(let s of a)r(s);return{base:wi(i),module:l.default??l}}var xi=null;async function Ci(e){if(typeof globalThis.__tw_load=="function"){let t=await globalThis.__tw_load(e);if(t)return t}try{return await import(e)}catch{return xi??=Go(import.meta.url,{moduleCache:!1,fsCache:!1}),await xi.import(e)}}var Vd=ye.ResolverFactory.createResolver({fileSystem:new ye.CachedInputFileSystem(Pt,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});var Yo=ye.ResolverFactory.createResolver({fileSystem:new ye.CachedInputFileSystem(Pt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Qo=ye.ResolverFactory.createResolver({fileSystem:new ye.CachedInputFileSystem(Pt,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});async function Ai(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let n=globalThis.__tw_resolve(e,t);if(n)return Promise.resolve(n)}if(r){let n=await r(e,t);if(n)return n}return Si(Yo,e,t).catch(()=>Si(Qo,e,t))}function Si(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(l,a)=>{if(l)return i(l);n(a)}))}var tl=el(import.meta.url),Pe=Ti(tl),Ni=String.raw;async function Ri(e,t){try{e===null?e=await _t(t.base):ce.isAbsolute(e)||(e=ce.resolve(t.base,e));let r=ce.relative(Pe,e);r.startsWith(".")||(r="./"+r);let n=await rl(e),i=n.prefix?_r(n.prefix):null,l=Ni`
|
|
58
58
|
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
59
59
|
@config './${r}';
|
|
60
|
-
`,[a,s]=await Promise.all([
|
|
60
|
+
`,[a,s]=await Promise.all([Zo(l,{base:Pe,onDependency:()=>{}}),$i(l,{base:Pe})]);return{designSystem:s,globs:a.globs,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){D("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function rl(e){let[t,r]=await Promise.all([$i(Ni`
|
|
61
61
|
@import 'tailwindcss';
|
|
62
|
-
`,{base:Pe}),Qe(e,Pe,()=>{}).then(n=>n.module)]);return ue(t,[{base:Ti(e),config:r}]).resolvedConfig}var
|
|
62
|
+
`,{base:Pe}),Qe(e,Pe,()=>{}).then(n=>n.module)]);return ue(t,[{base:Ti(e),config:r}]).resolvedConfig}var il=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function _t(e,t=e){for(let r of nl(e,t))for(let n of il){let i=ce.resolve(r,n);try{return await Xo.access(i),i}catch{}}throw new Error(`No configuration file found for ${v(_(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${v("--config")} option.`)}function*nl(e,t=e){let r=ce.resolve(e),n=ce.resolve(t);if(!r.startsWith(n))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===n){yield r;return}let i=r;do yield i,i=ce.dirname(i);while(i!==n);yield n}async function al(e,t,r){return typeof e=="string"&&(e=await Z.fromString(e),e.file=r??null),Ze().use(fi()).use(qr(t)).use(pi(t)).use(yi()).use(Yr(e)).use(di()).use(gi(t)).use(ei(e,t)).use(mi(t)).use(hi(t)).process(e.root,{from:e.file??void 0})}async function Vi(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await al(e,t)}async function Pi(e){let t=await ll(),r=[],n=new k(o=>{if(t(o))return null;try{let u=Z.loadSync(o);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Ze([{postcssPlugin:"mark-import-nodes",AtRule:{import(o){let u=o.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let c=o.source?.input.file?ee.dirname(o.source.input.file):process.cwd(),f=!1;try{if(u[0]!==".")try{f=ft(`./${u}`,c)}catch{}f||(f=ft(u,c))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;D(`Failed to resolve import: ${v(u)} in ${v(_(o.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!f)return;let p=n.get(f);if(!p)return;o.raws.tailwind_destination_sheet_id=p.id;let d=o.source?.input.file?n.get(o.source.input.file):void 0,m=[];for(let h of y(o.params," "))h.startsWith("layer(")&&h.endsWith(")")&&m.push(h.slice(6,-1).trim());if(d){let h={layers:m};p.parents.add({item:d,meta:h}),d.children.add({item:p,meta:h})}}}}]);for(let o of e)o.file&&(n.set(o.file,o),r.push(()=>i.process(o.root,{from:o.file??void 0})));for(;r.length>0;)await r.shift()();let l=process.cwd();function a(o){let u=[];for(let c of o){if(!c.item.file)continue;let f=c.item.file.replace(l,""),p=c.meta.layers.join(", ");p.length>0?u.push(`${f} (layers: ${p})`):u.push(f)}return u.join(" <- ")}let s=[];for(let o of e){if(!o.file)continue;let{convertiblePaths:u,nonConvertiblePaths:c}=o.analyzeImportPaths();if(!(u.length>0&&c.length>0))continue;o.canMigrate=!1;let p=o.file.replace(l,"");for(let d of u)s.push(`- ${p} <- ${a(d)}`);for(let d of c)s.push(`- ${p} <- ${a(d)}`)}if(s.length===0){let o=new Set;for(let u of e)u.root.walkAtRules("config",()=>(u.isTailwindRoot=!0,!1)),!u.isTailwindRoot&&u.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(u.isTailwindRoot=!0,o.add(u))});if(o.size<=1)return;{let u=new k(()=>new Set);for(let f of o)u.get(f).add(f);let c=!0;e:for(;c;){c=!1;for(let[f,p]of u)for(let[d,m]of u){if(f===d)continue;let h=[f].concat(Array.from(f.ancestors()).reverse()),g=[d].concat(Array.from(d.ancestors()).reverse());for(let b of h)for(let x of g){if(b!==x)continue;let K=b;u.delete(f),u.delete(d);for(let B of p)u.get(K).add(B);for(let B of m)u.get(K).add(B);c=!0;continue e}}}for(let[f,p]of u){f.isTailwindRoot=!0;for(let d of p)f!==d&&(d.isTailwindRoot=!1)}return}}{let o=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
|
|
63
63
|
`;throw o+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
64
64
|
`,new Error(o+s.join(`
|
|
65
65
|
`))}}async function _i(e,{configPath:t,base:r}){let n=e.filter(u=>u.isTailwindRoot);if(n.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
|
|
66
66
|
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${v("@tailwind")}.`);let i=n.filter(u=>{let c=!1;return u.root.walkAtRules("config",f=>{let p=ee.resolve(ee.dirname(u.file),f.params.slice(1,-1));return u.linkedConfigPath=p,c=!0,!1}),!c});if(i.length===0)return;let l=new Map,a=new k(()=>new Set);for(let u of i){if(!u.file)continue;let c=t;t===null?c=await _t(ee.dirname(u.file),r):ee.isAbsolute(c)||(c=ee.resolve(r,c)),l.set(u,c),a.get(c).add(u)}let s=new Set;for(let u of a.values())if(u.size>1)for(let c of u)s.add(c);if(s.size>1){for(let u of s)D(`Could not determine configuration file for: ${v(_(u.file,r))}
|
|
67
|
-
Update your stylesheet to use ${v("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let o=_;for(let[u,c]of l)try{if(!u||!u.file)return;T(`Linked ${v(o(c,r))} to ${v(o(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let f=ee.relative(ee.dirname(u.file),c);f.startsWith(".")||(f="./"+f),f=
|
|
67
|
+
Update your stylesheet to use ${v("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let o=_;for(let[u,c]of l)try{if(!u||!u.file)return;T(`Linked ${v(o(c,r))} to ${v(o(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let f=ee.relative(ee.dirname(u.file),c);f.startsWith(".")||(f="./"+f),f=ol(f);{let p=u.root,d=Ze.atRule({name:"config",params:`'${f}'`});u.root.walkAtRules(m=>{(m.name==="tailwind"||m.name==="import")&&(p=m)}),p.type==="root"?u.root.prepend(d):p.type==="atrule"&&p.after(d)}}catch(f){D("Could not load the configuration file: "+f.message,{prefix:"\u21B3 "}),process.exit(1)}}async function Ei(e){let t=new Map,r=new Map;for(let s of e)t.set(s.id,s),s.file&&r.set(s.file,s);let n=new Set;for(let s of e){if(s.isTailwindRoot)continue;let o=!1,u=s.layers().size>0;S(s.root,c=>{if(c.type==="atrule"&&c.name==="utility")o=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;u=!0}return o&&u?2:1}),o&&u&&n.add(s)}let i=new Map;for(let s of e){if(!s.file||s.parents.size===0||!n.has(s)&&!Array.from(s.descendants()).some(p=>n.has(p)))continue;let o=Ze.root();S(s.root,p=>{if(p.type==="atrule"&&p.name==="utility")return o.append(p),1});let u=s.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(u);)c+=1,u=s.file.replace(/\.css$/,`.utilities.${c}.css`);let f=await Z.fromRoot(o,u);f.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(s,f),t.set(f.id,f)}for(let[s,o]of i){for(let u of s.parents){let c=i.get(u.item);c&&o.parents.add({item:c,meta:u.meta})}for(let u of s.children){let c=i.get(u.item);c&&o.children.add({item:c,meta:u.meta})}}for(let s of e){let o=i.get(s),u=new Set;for(let c of s.importRules){let f=c.raws.tailwind_destination_sheet_id;if(!f)continue;let p=t.get(f);if(!p)continue;let d=i.get(p);if(!d)continue;let m=c.params.match(/(['"])(.*)\1/);if(!m)return;let h=m[1],g=m[2],b=g.replace(/\.css$/,d.extension),x=c.clone({params:`${h}${b}${h}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${h}${g}${h}`,tailwind_destination_sheet_id:d.id}});o?u.add(x):c.after(x)}o&&u.size>0&&o.root.prepend(Array.from(u))}let l=new k(()=>new Set);for(let s of t.values())for(let o of s.importRules){let u=o.raws.tailwind_destination_sheet_id;if(!u)continue;let c=t.get(u);c&&l.get(c).add(o)}let a=[];for(let s of e.slice()){for(let o of s.descendants())a.push(o);a.push(s)}for(let s of a){let o=i.get(s);if(o&&s.isEmpty){s.root=o.root;for(let u of l.get(o))u.params=u.raws.tailwind_original_params;for(let u of l.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import{Scanner as Li}from"@tailwindcss/oxide";import bl from"node:fs/promises";import Ki from"node:path";import{fileURLToPath as wl}from"node:url";var Mi=dn(Ii());import tt from"tree-sitter";import rt from"tree-sitter-typescript";var Et=new tt;Et.setLanguage(rt.typescript);var Ot=String.raw,gl=new tt.Query(rt.typescript,Ot`
|
|
68
68
|
; export default {}
|
|
69
69
|
(export_statement
|
|
70
70
|
value: [
|
|
@@ -115,7 +115,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
115
115
|
]
|
|
116
116
|
)
|
|
117
117
|
)
|
|
118
|
-
`),
|
|
118
|
+
`),hl=new tt.Query(rt.typescript,Ot`
|
|
119
119
|
(call_expression
|
|
120
120
|
function: [
|
|
121
121
|
(call_expression
|
|
@@ -168,7 +168,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
168
168
|
(string (string_fragment) @module_string)
|
|
169
169
|
)
|
|
170
170
|
)
|
|
171
|
-
`);function Dt(e){try{let r=Et.parse(e).rootNode,n=
|
|
171
|
+
`);function Dt(e){try{let r=Et.parse(e).rootNode,n=vl(e),i=gl.matches(r),l=[];for(let a of i)for(let s of a.captures)if(s.name==="imports"){for(let o of s.node.children)if(!(o.type==="["||o.type==="]"||o.type===","))switch(o.type){case"identifier":let u=n[o.text];if(!u||u.export!==null)return null;l.push([u.module,null]);break;case"string":l.push([o.children[1].text,null]);break;case"call_expression":let c=hl.matches(o);if(c.length===0)return null;let f=null,p=null,d=null,m=null,h=c.flatMap(g=>g.captures);for(let g=0;g<h.length;g++){let b=h[g];switch(b.name){case"module_identifier":{p=b.node.text;break}case"module_string":{f=b.node.text;break}case"property":{if(m!==null)return null;m=b.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(m===null)return null;d??={},d[m]=Ui(b),m=null;break}case"array_value":{if(m===null)return null;d??={};let x=[],K=g;e:for(let B=g+1;B<h.length;B++){let st=h[B];switch(st.name){case"property":{if(st.node.text!==m)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":x.push(Ui(st)),K=B}}g=K,d[m]=x,m=null;break}case"_name":case"_empty_args":break;default:return null}}if(m!==null)return null;if(p!==null){let g=n[p];if(!g||g.export!==null&&g.export!=="*")return null;f=g.module}if(f===null)return null;l.push([f,d]);break;default:return null}}return l}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var yl=new tt.Query(rt.typescript,Ot`
|
|
172
172
|
; ESM import
|
|
173
173
|
(import_statement
|
|
174
174
|
(import_clause
|
|
@@ -207,23 +207,23 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
207
207
|
)
|
|
208
208
|
)
|
|
209
209
|
)
|
|
210
|
-
`);function
|
|
211
|
-
`)}}async function
|
|
210
|
+
`);function vl(e){let r=Et.parse(e).rootNode,n=yl.matches(r),i={};for(let l of n){let a=[],s="";for(let o=0;o<l.captures.length;o++){let u=l.captures[o];switch(u.name){case"default":a.push({name:u.node.text,export:null});break;case"imported-name":a.push({name:u.node.text,export:u.node.text});break;case"imported-from":s=u.node.text;break;case"imported-namespace":a.push({name:u.node.text,export:"*"});break;case"imported-alias":if(a.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let c=a[a.length-1],f=c.name;c.export=f,c.name=u.node.text;break}}for(let{name:o,export:u}of a)i[o]={module:s,export:u}}return i}function Ui(e){return e.name==="num_value"?parseFloat(e.node.text):e.name==="null_value"?null:e.name==="true_value"?!0:e.name==="false_value"?!1:e.node.text}var kl=wl(import.meta.url),xl=Ki.dirname(kl);async function Wi(e,t,r){let[n,i]=await Promise.all([Qe(t,xl,()=>{}).then(u=>u.module),bl.readFile(t,"utf-8")]);if(!Tl(n,i))return j(`The configuration file at ${v(_(t,r))} could not be automatically migrated to the new CSS configuration format, so your CSS has been updated to load your existing configuration file.`,{prefix:"\u21B3 "}),null;let l=[],a=[],s=[];if("darkMode"in n&&s.push(Al(n)),"content"in n&&(l=await $l(n,t,r)),"theme"in n){let u=await Cl(e,n,r);u&&s.push(u)}"corePlugins"in n&&j("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let o=Dt(i);if(o!==null)for(let[u,c]of o)a.push({base:r,path:u,options:c});return{sources:l,plugins:a,css:s.join(`
|
|
211
|
+
`)}}async function Cl(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0}},{resolvedConfig:i,replacedThemeKeys:l}=ue(e,[n]),a=new Map(Array.from(l.entries()).map(([c])=>[c,!1]));El(e,i,l);let s="",o=`
|
|
212
212
|
@tw-bucket theme {
|
|
213
213
|
`;o+=`
|
|
214
214
|
@theme {
|
|
215
|
-
`;let u=!1;for(let[c,f]of Ir(i.theme)){if(typeof f!="string"&&typeof f!="number")continue;if(typeof f=="string"&&(f=f.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),c[0]==="opacity"&&(typeof f=="number"||typeof f=="string")){let m=typeof f=="string"?parseFloat(f):f;if(m>=0&&m<=1&&(f=m*100+"%"),typeof f=="string"&&c[1]===f.replace(/%$/,"")&&ht(c[1]))continue}if(c[0]==="keyframes")continue;u=!0;let p=
|
|
215
|
+
`;let u=!1;for(let[c,f]of Ir(i.theme)){if(typeof f!="string"&&typeof f!="number")continue;if(typeof f=="string"&&(f=f.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),c[0]==="opacity"&&(typeof f=="number"||typeof f=="string")){let m=typeof f=="string"?parseFloat(f):f;if(m>=0&&m<=1&&(f=m*100+"%"),typeof f=="string"&&c[1]===f.replace(/%$/,"")&&ht(c[1]))continue}if(c[0]==="keyframes")continue;u=!0;let p=Sl(c);if(p!==s&&(o+=`
|
|
216
216
|
`,s=p),a.has(c[0])&&a.get(c[0])===!1){a.set(c[0],!0);let m=M([c[0]]);m!==null&&(o+=` ${Y(`--${m}`)}-*: initial;
|
|
217
217
|
`)}let d=M(c);d!==null&&(o+=` ${Y(`--${d}`)}: ${f};
|
|
218
218
|
`)}if("keyframes"in i.theme&&(u=!0,o+=`
|
|
219
|
-
`+
|
|
219
|
+
`+Vl(i.theme.keyframes)),!u)return null;if(o+=`}
|
|
220
220
|
`,"container"in i.theme){let c=si(i.theme.container,e);c.length>0&&(o+=`
|
|
221
221
|
`+ae([A("@utility","container",c)]))}return o+=`}
|
|
222
|
-
`,o}function
|
|
222
|
+
`,o}function Al(e){let t="";return Nt({config:()=>e.darkMode,addVariant:(i,l)=>t=l}),t===""?"":`
|
|
223
223
|
@tw-bucket variant {
|
|
224
224
|
@variant dark (${t});
|
|
225
225
|
}
|
|
226
|
-
`}function
|
|
227
|
-
`}function
|
|
226
|
+
`}function Sl(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function $l(e,t,r){let n=Pl(r),i=[],l=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,a=Array.isArray(e.content)?e.content.map(s=>({base:r,pattern:s})):(e.content?.files??[]).map(s=>typeof s=="string"&&l?{base:Ki.dirname(t),pattern:s}:{base:r,pattern:s});for(let{base:s,pattern:o}of a){if(typeof o!="string")throw new Error("Unsupported content value: "+o);let u=_l({base:s,pattern:o}),c=!0;for(let f of u)if(!n.includes(f)){c=!1;break}c||i.push({base:s,pattern:o})}return i}function Tl(e,t){function r(s){return typeof s=="function"?!1:Array.isArray(s)?s.every(r):typeof s=="object"&&s!==null?Object.values(s).every(r):["string","number","boolean","undefined"].includes(typeof s)}let{plugins:n,theme:i,...l}=e;if(!r(l))return!1;let a=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(s=>!a.includes(s))||Dt(t)===null||e.presets&&e.presets.length>0)return!1;if(i&&typeof i=="object"){if(i.extend&&!Fi(i.extend))return!1;let{extend:s,...o}=i;if(!Fi(o))return!1}return!0}var Nl=[...Object.keys(Mi.default),"containers"],Rl=["supports","data","aria"];function Fi(e){for(let t of Object.keys(e))if(!Nl.includes(t)||Rl.includes(t))return!1;if("screens"in e&&typeof e.screens=="object"&&e.screens!==null){for(let t of Object.values(e.screens))if(typeof t=="object"&&t!==null&&("max"in t||"raw"in t))return!1}return!0}function Vl(e){let t=oi({theme:{keyframes:e}});return ae(t).trim()+`
|
|
227
|
+
`}function Pl(e){let t=new Li({sources:[{base:e,pattern:"**/*"}]});return t.scan(),t.files}function _l(e){let t=new Li({sources:[e]});return t.scan(),t.files}function El(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,l]=zi(n);if(!(!i||!l)&&n&&!r.has("spacing"))for(let[a,s]of Object.entries(t.theme.spacing??{})){let[o,u]=zi(s);o!==null&&Se(a)&&u===l&&parseFloat(o)===Number(a)*parseFloat(i)&&(delete t.theme.spacing[a],e.theme.clearNamespace(Y(`--spacing-${a.replaceAll(".","_")}`),0))}}function zi(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import W from"node:fs/promises";import jt from"node:path";import{exec as Ol}from"node:child_process";import ve from"node:fs/promises";import{dirname as Dl,resolve as be}from"node:path";import{promisify as jl}from"node:util";var Bi=jl(Ol),qi={default:"-D",bun:"-d"};function ie(e){return{async add(t,r="dependencies"){let n=await Ji.get(e),i=t.slice();return r==="devDependencies"&&i.push(qi[n]||qi.default),Bi(`${n} add ${i.join(" ")}`,{cwd:e})},async remove(t){let r=await Ji.get(e);return Bi(`${r} remove ${t.join(" ")}`,{cwd:e})}}}var Hi=!1,Ji=new k(async e=>{do{let t=be(e,"package.json");try{let n=await ve.readFile(t,"utf-8"),i=JSON.parse(n);if(i.packageManager){if(i.packageManager.includes("bun"))return"bun";if(i.packageManager.includes("yarn"))return"yarn";if(i.packageManager.includes("pnpm"))return"pnpm";if(i.packageManager.includes("npm"))return"npm"}}catch{}try{return await ve.access(be(e,"bun.lockb")),"bun"}catch{}try{return await ve.access(be(e,"bun.lock")),"bun"}catch{}try{return await ve.access(be(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await ve.access(be(e,"yarn.lock")),"yarn"}catch{}try{return await ve.access(be(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=Dl(e),r===e)return Hi||(Hi=!0,De("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Yi(e){let t=!1,r=!1,n=!1,i=!1,l=!1,a=jt.resolve(e,"package.json"),s;try{s=JSON.parse(await W.readFile(a,"utf-8"))}catch{}let o=await Fl(e);if(o){let u=await Il(o);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,l=u.didRemovePostCSSImport)}if(!t&&s&&"postcss"in s){let u=await Gi(s.postcss);t=!0,u&&(await W.writeFile(a,JSON.stringify({...s,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,l=u.didRemovePostCSSImport)}if(!t){let u=await Ll(e),c=null;if(u){try{c=JSON.parse(await W.readFile(u,"utf-8"))}catch{}if(c){let f=await Gi(c);t=!0,f&&(await W.writeFile(u,JSON.stringify(f.json,null,2)),r=!0,n=f.didAddPostcssClient,i=f.didRemoveAutoprefixer,l=f.didRemovePostCSSImport)}}}if(!t){j("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(s?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(s?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await ie(e).add(["@tailwindcss/postcss@next"],u),T(`Installed package: ${v("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await ie(e).remove(["autoprefixer"]),T(`Removed package: ${v("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(l)try{await ie(e).remove(["postcss-import"]),T(`Removed package: ${v("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&o&&T(`Migrated PostCSS configuration: ${v(_(o,e))}`,{prefix:"\u21B3 "})}async function Il(e){function t(p){return/['"]?tailwindcss['"]?\: ?\{\}/.test(p)}function r(p){return/['"]?postcss-import['"]?\: ?\{\}/.test(p)}function n(p){return/['"]?autoprefixer['"]?\: ?\{\}/.test(p)}function i(p){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(p)}if(j("Migrating PostCSS configuration\u2026"),!await Kl(e))return De("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let a=!1,s=!1,o=!1,c=(await W.readFile(e,"utf-8")).split(`
|
|
228
228
|
`),f=[];for(let p=0;p<c.length;p++){let d=c[p];if(t(d))a=!0,f.push(d.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(d))s=!0;else if(r(d)){let m=!1;for(let h=p+1;h<c.length;h++){let g=c[h];if(t(g))break;if(!i(g)){m=!0;break}}m?f.push(d):o=!0}else if(i(d)){let m=c[p+1];t(m)||f.push(d)}else f.push(d)}return await W.writeFile(e,f.join(`
|
|
229
|
-
`)),{didAddPostcssClient:a,didRemoveAutoprefixer:s,didRemovePostCSSImport:o}}async function Gi(e){function t(c,f){return c==="tailwindcss"&&it(f)}function r(c,f){return c==="postcss-import"&&it(f)}function n(c,f){return c==="autoprefixer"&&it(f)}function i(c,f){return c==="tailwindcss/nesting"&&(f==="postcss-nesting"||it(f))}let l=!1,a=!1,s=!1,o=Object.entries(e.plugins||{}),u=[];for(let c=0;c<o.length;c++){let[f,p]=o[c];if(t(f,p))l=!0,u.push(["@tailwindcss/postcss",p]);else if(n(f,p))a=!0;else if(r(f,p)){let d=!1;for(let m=c+1;m<o.length;m++){let[h,g]=o[m];if(t(h,g))break;if(!i(h,g)){d=!0;break}}d?u.push([f,p]):s=!0}else if(i(f,p)){let[d,m]=o[c+1];t(d,m)||u.push([f,p])}else u.push([f,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:l,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}var
|
|
229
|
+
`)),{didAddPostcssClient:a,didRemoveAutoprefixer:s,didRemovePostCSSImport:o}}async function Gi(e){function t(c,f){return c==="tailwindcss"&&it(f)}function r(c,f){return c==="postcss-import"&&it(f)}function n(c,f){return c==="autoprefixer"&&it(f)}function i(c,f){return c==="tailwindcss/nesting"&&(f==="postcss-nesting"||it(f))}let l=!1,a=!1,s=!1,o=Object.entries(e.plugins||{}),u=[];for(let c=0;c<o.length;c++){let[f,p]=o[c];if(t(f,p))l=!0,u.push(["@tailwindcss/postcss",p]);else if(n(f,p))a=!0;else if(r(f,p)){let d=!1;for(let m=c+1;m<o.length;m++){let[h,g]=o[m];if(t(h,g))break;if(!i(h,g)){d=!0;break}}d?u.push([f,p]):s=!0}else if(i(f,p)){let[d,m]=o[c+1];t(d,m)||u.push([f,p])}else u.push([f,p])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:l,didRemoveAutoprefixer:a,didRemovePostCSSImport:s}}var Ul=[".postcssrc.js",".postcssrc.mjs",".postcssrc.cjs",".postcssrc.ts",".postcssrc.mts",".postcssrc.cts","postcss.config.js","postcss.config.mjs","postcss.config.cjs","postcss.config.ts","postcss.config.mts","postcss.config.cts"];async function Fl(e){for(let t of Ul){let r=jt.resolve(e,t);try{return await W.access(r),r}catch{}}return null}var zl=[".postcssrc",".postcssrc.json"];async function Ll(e){for(let t of zl){let r=jt.resolve(e,t);try{return await W.access(r),r}catch{}}return null}async function Kl(e){let t=await W.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function it(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import Ml from"node:fs/promises";import Wl from"node:path";async function Qi(e){let t=Wl.resolve(e,"package.json");try{(await Ml.readFile(t,"utf-8")).includes("prettier-plugin-tailwindcss")&&(await ie(e).add(["prettier-plugin-tailwindcss@latest"]),T(`Updated package: ${v("prettier-plugin-tailwindcss")}`,{prefix:"\u21B3 "}))}catch{}}import Bl from"mri";function Xi(e,t=process.argv.slice(2)){let r=Bl(t),n={_:r._};for(let[i,{type:l,alias:a,default:s=l==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,a){let o=a.slice(1);r[o]!==void 0&&(n[i]=Zi(r[o],l))}{let o=i.slice(2);r[o]!==void 0&&(n[i]=Zi(r[o],l))}}return n}function Zi(e,t){switch(t){case"string":return lt(e);case"boolean":return nt(e);case"number":return ot(e);case"boolean | string":return nt(e)??lt(e);case"number | string":return ot(e)??lt(e);case"boolean | number":return nt(e)??ot(e);case"boolean | number | string":return nt(e)??ot(e)??lt(e);default:throw new Error(`Unhandled type: ${t}`)}}function nt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function ot(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function lt(e){return`${e}`}import{execSync as ql}from"node:child_process";function It(){try{return ql("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}import{normalizePath as Hl}from"@tailwindcss/node";import Jl from"braces";import Ut from"node:path";function en(e){return Jl(e.pattern,{expand:!0}).map(t=>{let r={...e},[n,i]=Gl(t),l=Hl(e.base);n!==null?r.base=Ut.posix.join(l,n):r.base=l,i===null?r.pattern="**/*":r.pattern=i;let a=Ut.basename(r.base);return a.includes(".")&&(r.pattern=a,r.base=Ut.dirname(r.base)),r})}function Gl(e){if(!e.includes("*"))return[e,null];let t=null;for(let i=0;i<e.length;i++){let l=e[i];if(l==="/"&&(t=i),l==="*"||l==="!")break}if(t===null)return[null,e];let r=e.slice(0,t).trim(),n=e.slice(t+1).trim();return[r||null,n||null]}import Yl from"node:fs/promises";async function tn(e,t){try{let r=Gt(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(await Yl.readFile(r,"utf8"));return n}catch{return null}}var on={"--config":{type:"string",description:"Path to the configuration file",alias:"-c"},"--help":{type:"boolean",description:"Display usage information",alias:"-h"},"--force":{type:"boolean",description:"Force the migration",alias:"-f"},"--version":{type:"boolean",description:"Display the version number",alias:"-v"}},at=Xi(on);at["--help"]&&(Zt({usage:["npx @tailwindcss/upgrade"],options:on}),process.exit(0));async function Xl(){let e=process.cwd();q(Ee()),q();let t=[];at["--force"]||It()&&(D("Git directory is not clean. Please stash or commit your changes before migrating."),j(`You may use the ${v("--force")} flag to silence this warning and perform the migration.`),process.exit(1));let r=await tn("tailwindcss",e);r&&Number(r.split(".")[0])!==3&&(D(`Tailwind CSS v${r} found. The migration tool can only be run on v3 projects.`),process.exit(1));{let n=at._.map(o=>Ql.resolve(e,o));n.length===0&&(j("Searching for CSS files in the current directory and its subdirectories\u2026"),n=await rn(["**/*.css"],{absolute:!0,gitignore:!0})),n=n.filter(o=>o.endsWith(".css"));let i=await Promise.allSettled(n.map(o=>Z.load(o)));for(let o of i)o.status==="rejected"&&D(`${o.reason?.message??o.reason}`,{prefix:"\u21B3 "});let l=i.filter(o=>o.status==="fulfilled").map(o=>o.value);try{await Pi(l)}catch(o){D(`${o?.message??o}`,{prefix:"\u21B3 "})}try{await _i(l,{configPath:at["--config"],base:e})}catch(o){D(`${o?.message??o}`,{prefix:"\u21B3 "})}l.some(o=>o.isTailwindRoot)&&j("Migrating JavaScript configuration files\u2026");let a=new Map,s=new Map;for(let o of l){if(!o.isTailwindRoot)continue;let u=await Ri(o.linkedConfigPath,{base:e});a.set(o,u);let c=await Wi(u.designSystem,u.configFilePath,e);s.set(o,c),c!==null&&t.push(()=>nn.rm(u.configFilePath)),c!==null&&T(`Migrated configuration file: ${v(_(u.configFilePath,e))}`,{prefix:"\u21B3 "})}a.size>0&&j("Migrating templates\u2026");for(let o of a.values()){let u=new Set;for(let f of o.globs.flatMap(p=>en(p))){let p=await rn([f.pattern],{absolute:!0,gitignore:!0,cwd:f.base});for(let d of p)u.add(d)}let c=Array.from(u);c.sort(),await Promise.allSettled(c.map(f=>Br(o.designSystem,o.userConfig,f))),T(`Migrated templates for configuration file: ${v(_(o.configFilePath,e))}`,{prefix:"\u21B3 "})}l.length>0&&j("Migrating stylesheets\u2026"),await Promise.all(l.map(async o=>{try{let u=a.get(o),c=s.get(o);if(!u){for(let f of o.ancestors())if(f.isTailwindRoot){u??=a.get(f),c??=s.get(f);break}}await Vi(o,{...u,jsConfigMigration:c})}catch(u){D(`${u?.message??u} in ${v(_(o.file,e))}`,{prefix:"\u21B3 "})}}));try{await Ei(l)}catch(o){D(`${o?.message??o}`,{prefix:"\u21B3 "})}for(let o of l)for(let u of o.importRules){if(!u.raws.tailwind_injected_layer)continue;let c=l.find(f=>f.id===u.raws.tailwind_destination_sheet_id);c&&c.containsRule(f=>f.type==="atrule"&&f.name==="utility")&&(u.params=u.params.replace(/ layer\([^)]+\)/,"").trim())}for(let o of l)await Zl([Ht(),Mt()]).process(o.root,{from:o.file});for(let o of l)o.file&&(await nn.writeFile(o.file,o.root.toString()),o.isTailwindRoot&&T(`Migrated stylesheet: ${v(_(o.file,e))}`,{prefix:"\u21B3 "}))}await Yi(e),j("Updating dependencies\u2026"),await Qi(e);try{await ie(e).add(["tailwindcss@next"]),T(`Updated package: ${v("tailwindcss")}`,{prefix:"\u21B3 "})}catch{}await Promise.allSettled(t.map(n=>n())),It()?T("Verify the changes and commit them to your repository."):T("No changes were made to your repository.")}Xl().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/upgrade",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.7",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"prettier": "^3.3.3",
|
|
36
36
|
"tree-sitter": "^0.22.1",
|
|
37
37
|
"tree-sitter-typescript": "^0.23.2",
|
|
38
|
-
"
|
|
39
|
-
"tailwindcss": "4.0.0-beta.
|
|
40
|
-
"@tailwindcss/oxide": "4.0.0-beta.
|
|
38
|
+
"tailwindcss": "4.0.0-beta.7",
|
|
39
|
+
"@tailwindcss/node": "4.0.0-beta.7",
|
|
40
|
+
"@tailwindcss/oxide": "4.0.0-beta.7"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/braces": "^3.0.4",
|