@tailwindcss/upgrade 0.0.0-insiders.fadf442 → 0.0.0-insiders.fc63ce7
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/README.md +1 -5
- package/dist/index.mjs +103 -88
- package/package.json +14 -12
package/dist/index.mjs
CHANGED
|
@@ -1,70 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var fn=Object.create;var Kt=Object.defineProperty;var pn=Object.getOwnPropertyDescriptor;var dn=Object.getOwnPropertyNames;var mn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty;var hn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yn=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of dn(t))!gn.call(e,i)&&i!==r&&Kt(e,i,{get:()=>t[i],enumerable:!(n=pn(t,i))||n.enumerable});return e};var vn=(e,t,r)=>(r=e!=null?fn(mn(e)):{},yn(t||!e||!e.__esModule?Kt(r,"default",{value:e,enumerable:!0}):r,e));var Ki=hn((Km,Mi)=>{"use strict";var kl=["anchor-size"],Dm=new RegExp(`(${kl.join("|")})\\(`,"g"),et=new Uint8Array(256);function xl(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:et[r]=41,r++;break;case 91:et[r]=93,r++;break;case 123:et[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===et[r-1]&&r--;break}}return n.push(e.slice(i)),n}var J=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Im=new RegExp(`^${J.source}$`),Um=new RegExp(`^${J.source}%$`),jm=new RegExp(`^${J.source}s*/s*${J.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"],Fm=new RegExp(`^${J.source}(${Cl.join("|")})$`),Al=["deg","rad","grad","turn"],Lm=new RegExp(`^${J.source}(${Al.join("|")})$`),Mm=new RegExp(`^${J.source} +${J.source} +${J.source}$`);function ae(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var Sl={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 M=pe(e=>{if(ae(e.value))return e.value}),_=pe(e=>{if(ae(e.value))return`${e.value}%`}),le=pe(e=>{if(ae(e.value))return`${e.value}px`}),Fi=pe(e=>{if(ae(e.value))return`${e.value}ms`}),tt=pe(e=>{if(ae(e.value))return`${e.value}deg`}),$l=pe(e=>{if(e.fraction===null)return;let[t,r]=xl(e.fraction,"/");if(!(!ae(t)||!ae(r)))return e.fraction}),Li=pe(e=>{if(ae(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Tl={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",...$l},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),..._}),backdropContrast:({theme:e})=>({...e("contrast"),..._}),backdropGrayscale:({theme:e})=>({...e("grayscale"),..._}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...tt}),backdropInvert:({theme:e})=>({...e("invert"),..._}),backdropOpacity:({theme:e})=>({...e("opacity"),..._}),backdropSaturate:({theme:e})=>({...e("saturate"),..._}),backdropSepia:({theme:e})=>({...e("sepia"),..._}),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",...le},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",..._},caretColor:({theme:e})=>e("colors"),colors:()=>({...Sl}),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",...M},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",..._},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"),...le}),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",...M},flexShrink:{0:"0",DEFAULT:"1",...M},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%",..._},grayscale:{0:"0",DEFAULT:"100%",..._},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",...M},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",...M},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",...M},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",...M},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))",...Li},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))",...Li},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",...tt},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%",..._},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",...M},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",..._},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",...M},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},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",...le},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...tt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",..._},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",..._},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%",..._},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...tt},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",...M},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",...le},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...le},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",...Fi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Fi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-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",...M}};Mi.exports=Tl});import{globby as sn}from"globby";import un from"node:fs/promises";import ca from"node:path";import fa from"postcss";import zt from"postcss";import{format as Wt}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 ct(e,t){e?.each?.(r=>{ct(r,t),t(r)})}var Bt={parser:"css",semi:!0,singleQuote:!0};function qt(){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 Wt(l,Bt));continue}i.replaceWith(zt.parse(`${i.raws.before??""}${(await Wt(l,Bt)).trim()}`))}t.removeAll(),t.append(zt.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
3
|
-
|
|
4
|
-
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import bn 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 Ht=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Yt(){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=bn.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=Jt(o.prev(),o)??1/0,c=Jt(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","custom-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=Ht.indexOf(l.params),o=Ht.indexOf(a.params);return s-o});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Jt(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 Z from"picocolors";import Sn from"node:fs";import Xt from"node:path";import{stripVTControlCharacters as er}from"node:util";import D from"picocolors";import de from"enhanced-resolve";import ft from"node:fs";import{createRequire as wn}from"node:module";var kn=wn(import.meta.url).resolve;function Qt(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return kn(e)}var xn=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ft,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),Cn=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ft,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Zt(e,t){try{return xn.resolveSync({},t,e)}catch{return Cn.resolveSync({},t,e)}}var An=de.ResolverFactory.createResolver({fileSystem:new de.CachedInputFileSystem(ft,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function pt(e,t){return An.resolveSync({},t,e)}var _e={indent:2};function Oe(){return`${D.italic(D.bold(D.blue("\u2248")))} tailwindcss ${D.blue(`v${$n()}`)}`}function v(e){return`${D.dim(D.blue("`"))}${D.blue(e)}${D.dim(D.blue("`"))}`}function O(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=Xt.relative(t,e);return n.startsWith("..")||(n=`.${Xt.sep}${n}`),r&&n.length>e.length?e:n}function xe(e,t){if(e.includes(`
|
|
5
|
-
`))return e.split(`
|
|
6
|
-
`).flatMap(a=>xe(a,t));let r=e.split(" "),n=[],i="",l=0;for(let a of r){let s=er(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 Ce(e,t=0){return`${" ".repeat(t+_e.indent)}${e}`}function De(e,{art:t=D.gray("\u2502"),prefix:r="",print:n=Q}){let i=r.length,l=" ",a=l.length,s=er(t).length,u=process.stderr.columns-i-a*2-s;xe(e,u).map((c,f)=>n(`${t}${l}${f===0?r:" ".repeat(i)}${c}${l}`)),n()}function N(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.green("\u2502"),prefix:t,print:r})}function I(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.blue("\u2502"),prefix:t,print:r})}function T(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.red("\u2502"),prefix:t,print:r})}function Ie(e,{prefix:t="",print:r=Q}={}){De(e,{art:D.yellow("\u2502"),prefix:t,print:r})}function Q(e=""){process.stderr.write(`${e}
|
|
7
|
-
`)}function U(e=""){process.stdout.write(`${e}
|
|
8
|
-
`)}function $n(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Sn.readFileSync(Qt("tailwindcss/package.json"),"utf-8"));return e}function tr({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(U(Oe()),e&&(U(),U(`${Z.dim("Invalid command:")} ${e}`)),t&&t.length>0){U(),U(Z.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=>Z.dim(c));let u=xe(s,n-_e.indent-a.length-1);u.length>1&&i!==0&&U(),U(Ce(`${a}${u.shift()}`));for(let c of u)U(Ce(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)}U(),U(Z.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=xe(u!==null?`${o} ${Z.dim(`[default:\u202F${v(`${u}`)}]`)}`:o,d);U(Ce(`${Z.blue(c)} ${Z.dim(Z.gray("\xB7")).repeat(f)} ${m.shift()}`));for(let h of m)U(Ce(`${" ".repeat(c.length+f+p)}${h}`))}}}import{normalizePath as vl}from"@tailwindcss/node";import{isGitIgnored as bl}from"globby";import H from"node:path";import Xe from"postcss";var Ue=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:Ue[r]=41,r++;break;case 91:Ue[r]=93,r++;break;case 123:Ue[r]=125,r++;break;case 93:case 125:case 41:r>0&&o===Ue[r-1]&&r--;break}}return n.push(e.slice(i)),n}import Br from"node:fs/promises";import qr,{extname as ko}from"node:path";import{Scanner as _n}from"@tailwindcss/oxide";function dt(e){return{kind:"word",value:e}}function Tn(e,t){return{kind:"function",value:e,nodes:t}}function Vn(e){return{kind:"separator",value:e}}function j(e,t,r=null){for(let n=0;n<e.length;n++){let i=e[n],l=!1,a=0,s=t(i,{parent:r,replaceWith(o){l=!0,Array.isArray(o)?o.length===0?(e.splice(n,1),a=0):o.length===1?(e[n]=o[0],a=1):(e.splice(n,1,...o),a=o.length):e[n]=o}})??0;if(l){s===0?n--:n+=a-1;continue}if(s===2)return 2;if(s!==1&&i.kind==="function"&&j(i.nodes,t,i)===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var rr=92,Nn=41,ir=58,nr=44,Rn=34,or=61,lr=62,ar=60,sr=10,Pn=40,En=39,ur=47,cr=32,fr=9;function $(e){e=e.replaceAll(`\r
|
|
2
|
+
var so=Object.create;var br=Object.defineProperty;var uo=Object.getOwnPropertyDescriptor;var co=Object.getOwnPropertyNames;var fo=Object.getPrototypeOf,po=Object.prototype.hasOwnProperty;var mo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var go=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of co(t))!po.call(e,n)&&n!==r&&br(e,n,{get:()=>t[n],enumerable:!(i=uo(t,n))||i.enumerable});return e};var ho=(e,t,r)=>(r=e!=null?so(fo(e)):{},go(t||!e||!e.__esModule?br(r,"default",{value:e,enumerable:!0}):r,e));var Ni=mo((Nd,Ti)=>{"use strict";var ht=new Uint8Array(256);function ll(e,t){let r=0,i=[],n=0,l=e.length,o=t.charCodeAt(0);for(let u=0;u<l;u++){let a=e.charCodeAt(u);if(r===0&&a===o){i.push(e.slice(n,u)),n=u+1;continue}switch(a){case 92:u+=1;break;case 39:case 34:for(;++u<l;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===a)break}break;case 40:ht[r]=41,r++;break;case 91:ht[r]=93,r++;break;case 123:ht[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===ht[r-1]&&r--;break}}return i.push(e.slice(n)),i}var se=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Cd=new RegExp(`^${se.source}$`),Ad=new RegExp(`^${se.source}%$`),Sd=new RegExp(`^${se.source}s*/s*${se.source}$`),sl=["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"],$d=new RegExp(`^${se.source}(${sl.join("|")})$`),ul=["deg","rad","grad","turn"],Vd=new RegExp(`^${se.source}(${ul.join("|")})$`),Td=new RegExp(`^${se.source} +${se.source} +${se.source}$`);function ve(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var cl={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Te(e){return{__BARE_VALUE__:e}}var Z=Te(e=>{if(ve(e.value))return e.value}),I=Te(e=>{if(ve(e.value))return`${e.value}%`}),ye=Te(e=>{if(ve(e.value))return`${e.value}px`}),$i=Te(e=>{if(ve(e.value))return`${e.value}ms`}),yt=Te(e=>{if(ve(e.value))return`${e.value}deg`}),fl=Te(e=>{if(e.fraction===null)return;let[t,r]=ll(e.fraction,"/");if(!(!ve(t)||!ve(r)))return e.fraction}),Vi=Te(e=>{if(ve(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),pl={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",...fl},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...I}),backdropContrast:({theme:e})=>({...e("contrast"),...I}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...I}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...yt}),backdropInvert:({theme:e})=>({...e("invert"),...I}),backdropOpacity:({theme:e})=>({...e("opacity"),...I}),backdropSaturate:({theme:e})=>({...e("saturate"),...I}),backdropSepia:({theme:e})=>({...e("sepia"),...I}),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",...ye},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",...I},caretColor:({theme:e})=>e("colors"),colors:()=>({...cl}),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",...I},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"),...ye}),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%",...I},grayscale:{0:"0",DEFAULT:"100%",...I},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))",...Vi},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))",...Vi},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",...yt},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%",...I},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",...I},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",...ye},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ye},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",...ye},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ye},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...yt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...I},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",...I},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%",...I},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...yt},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",...ye},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ye},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",...$i},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...$i},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-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}};Ti.exports=pl});import{Scanner as lu}from"@tailwindcss/oxide";import{globby as su}from"globby";import ao from"fs/promises";import uu from"path";import H from"picocolors";import cu from"postcss";import{Scanner as Ui}from"@tailwindcss/oxide";import Al from"fs/promises";import Li from"path";import{fileURLToPath as Sl}from"url";import je from"enhanced-resolve";import{createJiti as nl}from"jiti";import nr from"fs";import cd from"fs/promises";import ki from"path";import{pathToFileURL as bi}from"url";import{__unstable__loadDesignSystem as dd,compile as gd,compileAst as hd,Features as yd,Polyfills as vd}from"tailwindcss";import Mt from"fs/promises";import Ke from"path";var yo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],vo=[".js",".cjs",".mjs"],wo=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],ko=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function bo(e,t){for(let r of t){let i=`${e}${r}`;if((await Mt.stat(i).catch(()=>null))?.isFile())return i}for(let r of t){let i=`${e}/index${r}`;if(await Mt.access(i).then(()=>!0,()=>!1))return i}return null}async function xr(e,t,r,i){let n=vo.includes(i)?wo:ko,l=await bo(Ke.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=Ke.dirname(l),i=Ke.extname(l);let o=await Mt.readFile(l,"utf-8"),u=[];for(let a of yo)for(let s of o.matchAll(a))s[1].startsWith(".")&&u.push(xr(e,s[1],r,i));await Promise.all(u)}async function Cr(e){let t=new Set;return await xr(t,e,Ke.dirname(e),Ke.extname(e)),Array.from(t)}import*as il from"path";function B(e){return{kind:"word",value:e}}function xo(e,t){return{kind:"function",value:e,nodes:t}}function Co(e){return{kind:"separator",value:e}}function S(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],l=!1,o=0,u=t(n,{parent:r,replaceWith(a){l||(l=!0,Array.isArray(a)?a.length===0?(e.splice(i,1),o=0):a.length===1?(e[i]=a[0],o=1):(e.splice(i,1,...a),o=a.length):e[i]=a)}})??0;if(l){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&n.kind==="function"&&S(n.nodes,t,n)===2)return 2}}function jt(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i];if(n.kind==="function"&&jt(n.nodes,t,n)===2)return 2;let l=!1,o=0,u=t(n,{parent:r,replaceWith(a){l||(l=!0,Array.isArray(a)?a.length===0?(e.splice(i,1),o=0):a.length===1?(e[i]=a[0],o=1):(e.splice(i,1,...a),o=a.length):e[i]=a)}})??0;if(l){u===0?i--:i+=o-1;continue}if(u===2)return 2}}function x(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+x(r.nodes)+")"}return t}var Ar=92,Ao=41,Sr=58,$r=44,So=34,Vr=61,Tr=62,Nr=60,Er=10,$o=40,Vo=39,To=47,Pr=32,Rr=9;function k(e){e=e.replaceAll(`\r
|
|
9
3
|
`,`
|
|
10
|
-
`);let t=[],r=[],n=null,i="",l;for(let a=0;a<e.length;a++){let s=e.charCodeAt(a);switch(s){case rr:{i+=e[a]+e[a+1],a++;break}case ir:case nr:case or:case lr:case ar:case sr:case ur:case cr:case fr:{if(i.length>0){let f=dt(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!==ir&&l!==nr&&l!==or&&l!==lr&&l!==ar&&l!==sr&&l!==ur&&l!==cr&&l!==fr));u++);a=u-1;let c=Vn(e.slice(o,u));n?n.nodes.push(c):t.push(c);break}case En:case Rn:{let o=a;for(let u=a+1;u<e.length;u++)if(l=e.charCodeAt(u),l===rr)u+=1;else if(l===s){a=u;break}i+=e.slice(o,a+1);break}case Pn:{let o=Tn(i,[]);i="",n?n.nodes.push(o):t.push(o),r.push(o),n=o;break}case Nn:{let o=r.pop();if(i.length>0){let u=dt(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(dt(i)),t}async function pr(e,t="html"){let n=new _n({}).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(dr(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=gt(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}:${ue(l)}${s}`:n+=`-${a}${ue(l)}${s}`}}else t.value.kind==="named"&&(n+=`-${t.value.value}`);if(t.kind==="arbitrary"&&(n+=`[${t.property}:${ue(t.value)}]`),(t.kind==="arbitrary"||t.kind==="functional")&&t.modifier){let i=gt(t.modifier.value),l=i?t.modifier.value.slice(4,-1):t.modifier.value,[a,s]=i?["(",")"]:["[","]"];t.modifier.kind==="arbitrary"?n+=`/${a}${ue(l)}${s}`:t.modifier.kind==="named"&&(n+=`/${t.modifier.value}`)}return t.important&&(n+="!"),r.push(n),r.join(":")}function dr(e){if(e.kind==="static")return e.root;if(e.kind==="arbitrary")return`[${ue(On(e.selector))}]`;let t="";if(e.kind==="functional"&&(t+=e.root,e.value))if(e.value.kind==="arbitrary"){let r=gt(e.value.value),n=r?e.value.value.slice(4,-1):e.value.value,[i,l]=r?["(",")"]:["[","]"];t+=`-${i}${ue(n)}${l}`}else e.value.kind==="named"&&(t+=`-${e.value.value}`);return e.kind==="compound"&&(t+=e.root,t+="-",t+=dr(e.variant)),(e.kind==="functional"||e.kind==="compound")&&e.modifier&&(e.modifier.kind==="arbitrary"?t+=`/[${ue(e.modifier.value)}]`:e.modifier.kind==="named"&&(t+=`/${e.modifier.value}`)),t}function ue(e){let t=$(e),r=new Set;return j(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&&j(t,(n,{replaceWith:i})=>{r.has(n)&&(r.delete(n),i([]))}),mt(t),x(t)}function On(e){let t=$(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"?x(t[2].nodes):e}function mt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Ae(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Ae(t.value);for(let r=0;r<t.nodes.length;r++)mt([t.nodes[r]]);break}t.value=Ae(t.value),mt(t.nodes);break}case"separator":t.value=Ae(t.value);break;case"word":{t.value[0]!=="-"&&t.value[1]!=="-"&&(t.value=Ae(t.value));break}default:Dn(t)}}function gt(e){let t=$(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"}function Dn(e){throw new Error(`Unexpected value: ${e}`)}function Ae(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var mr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"],je=["anchor-size"],gr=new RegExp(`(${je.join("|")})\\(`,"g");function hr(e){if(!mr.some(i=>e.includes(i)))return e;let t=!1;je.some(i=>e.includes(i))&&(gr.lastIndex=0,e=e.replace(gr,(i,l)=>(t=!0,`$${je.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(mr.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)=>je[l]??i):r}function Se(e){if(e.indexOf("(")===-1)return me(e);let t=$(e);return ht(t),e=x(t),e=hr(e),e}function me(e,t=!1){let r="";for(let n=0;n<e.length;n++){let i=e[n];i==="\\"&&e[n+1]==="_"?(r+="_",n+=1):i==="_"&&!t?r+=" ":r+=i}return r}function ht(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=me(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=me(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=me(t.nodes[r].value,!0);continue}ht([t.nodes[r]])}break}t.value=me(t.value),ht(t.nodes);break}case"separator":case"word":{t.value=me(t.value);break}default:In(t)}}function In(e){throw new Error(`Unexpected value: ${e}`)}var Un=58,yr=45,vr=97,br=122;function*F(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:jn(s);if(s!==null&&u===null)return;if(a[0]==="["){if(a[a.length-1]!=="]")return;let f=a.charCodeAt(1);if(f!==yr&&!(f>=vr&&f<=br))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=Se(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=Fn(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){if(p[p.length-1]!=="]")return;let g=Se(p.slice(m+1,-1)),b="";for(let C=0;C<g.length;C++){let K=g.charCodeAt(C);if(K===Un){b=g.slice(0,C),g=g.slice(C+1);break}if(!(K===yr||K>=vr&&K<=br))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 jn(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=Se(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=Se(e.slice(1,-1));return t.length===0||t.trim().length===0||t[0]!=="-"&&t[1]!=="-"?null:{kind:"arbitrary",value:`var(${t})`}}return{kind:"named",value:e}}function*Fn(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 W=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ts=new RegExp(`^${W.source}$`);var rs=new RegExp(`^${W.source}%$`);var is=new RegExp(`^${W.source}s*/s*${W.source}$`);var Ln=["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"],ns=new RegExp(`^${W.source}(${Ln.join("|")})$`);var Mn=["deg","rad","grad","turn"],os=new RegExp(`^${W.source}(${Mn.join("|")})$`);var ls=new RegExp(`^${W.source} +${W.source} +${W.source}$`);function V(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function $e(e){return wr(e,.25)}function yt(e){return wr(e,.25)}function wr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function kr(e,t,r){for(let n of F(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("%")&&V(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){if(i.root==="leading")if(i.value.value==="1")l=!0,i.value={kind:"named",value:"none",fraction:null};else continue;let a=y(i.value.value,"/");if(a.every(s=>V(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 Kn(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*Kn(e){function*t(r){yield r,r.kind==="compound"&&(yield*t(r.variant))}for(let r of e.variants)yield*t(r)}var zn=32;var Wn=40;function xr(e,t=[]){for(let r=5;r<e.length;r++){let n=e.charCodeAt(r);if(n===zn||n===Wn){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return A(i,l,t)}}return A(e.trim(),"",t)}var qn=process.env.FEATURES_ENV!=="stable";function X(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 Fe(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])}var Hn=64;function ge(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 B(e,t=[]){return e.charCodeAt(0)===Hn?xr(e,t):ge(e,t)}function R(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function P(e,t,r=[],n={}){for(let i=0;i<e.length;i++){let l=e[i],a=r[r.length-1]??null;if(l.kind==="context"){if(P(l.nodes,t,r,{...n,...l.context})===2)return 2;continue}r.push(l);let s=!1,o=0,u=t(l,{parent:a,context:n,path:r,replaceWith(c){s=!0,Array.isArray(c)?c.length===0?(e.splice(i,1),o=0):c.length===1?(e[i]=c[0],o=1):(e.splice(i,1,...c),o=c.length):(e[i]=c,o=1)}})??0;if(r.pop(),s){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in l){r.push(l);let c=P(l.nodes,t,r,n);if(r.pop(),c===2)return 2}}}function ee(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
|
-
|
|
12
|
-
`;for(let s of n.nodes)l+=t(s,i+1);l+=`${a}}
|
|
13
|
-
`}else if(n.kind==="
|
|
14
|
-
`;l+=`${a}${n.name}${n.params?` ${n.params} `:" "}{
|
|
15
|
-
`;for(let s of n.nodes)l+=t(s,i+1);l+=`${a}}
|
|
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 Cr(e,t,r){for(let n of e.parseCandidate(r)){let i=structuredClone(n),l=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Me(e,i,i.modifier.value)){let{value:a,didChange:s}=Le(i.modifier.value);i.modifier.value=a,l||=s}for(let a of i.variants)Ar(e,a)&&(l=!0);if(i.kind==="arbitrary"&&!Me(e,i,i.value)){let{value:a,didChange:s}=Le(i.value);i.value=a,l||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Me(e,i,i.value.value)){let{value:a,didChange:s}=Le(i.value.value);i.value.value=a,l||=s}if(l)return w(e,i)}return r}function Le(e){let t=!1;return e.startsWith("--")&&!e.includes("(")?(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function Ar(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Me(e,Jn(t),t.value.value)){let{value:n,didChange:i}=Le(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&Ar(e,t.variant)&&(r=!0),r}function Jn(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Gn=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 Me(e,t,r){let n=e.compileAstNodes(t).map(l=>l.node),i=!1;return P(n,l=>{if(l.kind==="declaration"&&Gn.has(l.property)&&l.value==r)return i=!0,2}),i}var Yn=["t","tr","r","br","b","bl","l","tl"];function Sr(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(!Yn.includes(i))continue;return w(e,{...n,root:`bg-linear-to-${i}`})}return r}function $r(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}var Tr=['"',"'","`"],Qn=["&&","||","?","===","==","!=","!==",">",">=","<","<="],Zn=[/v-else-if=['"]$/,/v-if=['"]$/,/v-show=['"]$/,/x-if=['"]$/,/x-show=['"]$/],Xn=/placeholder=\{?['"]$/;function Ke(e){let t="";for(let l=e.start-1;l>=0;l--){let a=e.contents.at(l);if(a===`
|
|
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=Tr.some(l=>t.includes(l)),i=Tr.some(l=>r.includes(l));if(!n||!i||r[0]==="."||r.trim().startsWith("("))return!1;for(let l of Qn)if(r.trim().startsWith(l)||t.trim().endsWith(l))return!1;for(let l of Zn)if(l.test(t))return!1;return!Xn.test(t)}function Vr(e,t,r,n){e:for(let i of F(r,e))if(i.important&&i.raw[i.raw.length-1]!=="!"){if(n&&!Ke(n))continue e;return w(e,i)}return r}function Nr(e,t,r){for(let n of F(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 eo}from"@tailwindcss/node";import to from"node:path";import ro from"node:url";var io=ro.fileURLToPath(import.meta.url),no=to.dirname(io),oo=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"]]),Rr=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"]]),lo=new k(e=>eo('@import "tailwindcss";',{base:e}));async function Pr(e,t,r,n){let i=await lo.get(no);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=oo.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,Rr.get(u),Rr.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&&!Ke(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 Er(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 ao from"postcss-selector-parser";function te(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function _r(e,t,r){for(let n of F(r,e)){let i=structuredClone(n),l=!1;for(let[a,s]of so(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,te(a,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):a.modifier.kind==="named"&&(l=!0,te(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=ao().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,te(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,te(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,te(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,C]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"&&V(p.nodes[0].nodes[0].value)?`${C}-${p.nodes[0].nodes[0].value}`:`${C}-[${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,te(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),te(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),te(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*so(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 Or=new WeakSet;function Dr(e,t,r){if(!e.theme.prefix)return r;Or.has(e)||(e.utilities.functional("group",()=>null),e.utilities.functional("peer",()=>null),Or.add(e));let n=uo(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=[...F(a,e)];s.length>0&&(l=s[0])}finally{e.theme.prefix=i}return l?w(e,l):r}function uo(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 co=/([a-z]+)/;function Ir(e){let t=co.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 wt={"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"},Ur=new WeakSet;function jr(e,t,r){if(!Ur.has(e)){for(let n in wt)e.utilities.static(n,()=>[]);Ur.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(wt,n.root))return w(e,{...n,root:wt[n.root]});return r}function Fr(e){let t=[];return Lr(e,[],(r,n)=>{if(po(r))return t.push([n,r]),1;if(mo(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 fo=/^[a-zA-Z0-9-_%/\.]+$/;function q(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]==="containers"&&(e[0]="container"),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(!fo.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 po(e){return typeof e=="number"||typeof e=="string"}function mo(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 Lr(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")&&Lr(i,l,r)===2)return 2}}}function re(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 Kr(e,t,r){let n=kt(e);for(let i of F(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 ho(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 kt(e,{prettyPrint:t=!1}={}){function r(a,s=0){let o=$(a);if(s&2)return[ze(o,l),null];let u=0,c=0;if(j(o,d=>{d.kind==="function"&&d.value==="theme"&&(u+=1,j(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 C=Number(b)*100;f={kind:Number.isInteger(C)?"named":"arbitrary",value:C.toString()}}else f={kind:"arbitrary",value:b};d=g}return i(d,m)||l(d,m)}),f]}function n(a){let s=`--${q(re(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=re(a);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return $e(c)?`--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 j(e,(r,{parent:n,replaceWith:i})=>{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 l=r.nodes[0];if(l.kind!=="word")return;let a=l.value,s=1;for(let c=s;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)a+=x([r.nodes[c]]),s=c+1;a=go(a);let o=r.nodes.slice(s+1),u=o.length>0?t(a,x(o)):t(a);if(u===null)return;if(n){let c=n.nodes.indexOf(r)-1;for(;c!==-1;){let f=n.nodes[c];if(f.kind==="separator"&&f.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(f.value.trim())&&(u=`(${u})`);break}}i($(u))}}),x(e)}function go(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*ho(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)yo(e,c)?i.push(c):bo(e,c)?a.push(c):l.push(c);let o=l.some(c=>vo(e,c)),u=[...a,...o?l.reverse():l,...i];if(!wo(s,u))return w(e,{...n,variants:u})}return r}function yo(e,t){return t.kind==="static"&&t.root==="dark"?!0:xt(e,t).every(n=>n.kind==="at-rule")}function vo(e,t){return xt(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function bo(e,t){return xt(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 xt(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 P(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function wo(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}function Wr(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 xo=[$r,Dr,Vr,Sr,jr,Pr,Er,Kr,zr,Cr,Nr,kr,_r];async function Ct(e,t,r,n){for(let i of xo)r=await i(e,t,r,n);return r}async function Hr(e,t,r,n){let i=await pr(r,n),l=[];for(let{rawCandidate:a,start:s,end:o}of i){let u=await Ct(e,t,a,{contents:r,start:s,end:o});u!==a&&l.push({start:s,end:o,replacement:u})}return Wr(r,l)}async function Jr(e,t,r){let n=qr.isAbsolute(r)?r:qr.resolve(process.cwd(),r),i=await Br.readFile(n,"utf-8");await Br.writeFile(n,await Hr(e,t,i,ko(r)))}function Gr({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 Ct(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 Be from"postcss-selector-parser";import*as Yr from"node:fs";import*as Qr from"node:fs/promises";import*as Ve from"node:path";import*as Zr from"node:util";import*as We from"postcss";var ie=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=Ve.resolve(process.cwd(),t);let r=await Qr.readFile(t,"utf-8"),n=We.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Ve.resolve(process.cwd(),t);let r=Yr.readFileSync(t,"utf-8"),n=We.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=We.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=Ve.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 Te(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of Te(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of Te(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 Te(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}[Zr.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*Te(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*Te(n.item,t,i),yield{item:n.item,path:i}}}function Xr(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 Be(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"&&Be(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(Be(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(Be.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
|
-
|
|
21
|
-
`}for(let a=l.length-1;a>=0;a--){let s=l[a];ct(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 qe from"node:path";import Ao,{AtRule as So}from"postcss";function Co(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 At(e){let t=Co(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}var ei=new WeakMap;function ii(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot)return;let i=ei.get(e);if(i&&i.includes(t))return;i?i.push(t):ei.set(e,[t]);let l=e.root;if(!e.file)return;let a=new So;if(r!==null){l.walkAtRules("config",o=>{o.remove()});let s=`
|
|
4
|
+
`);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let u=e.charCodeAt(o);switch(u){case Ar:{n+=e[o]+e[o+1],o++;break}case To:{if(n.length>0){let s=B(n);i?i.nodes.push(s):t.push(s),n=""}let a=B(e[o]);i?i.nodes.push(a):t.push(a);break}case Sr:case $r:case Vr:case Tr:case Nr:case Er:case Pr:case Rr:{if(n.length>0){let p=B(n);i?i.nodes.push(p):t.push(p),n=""}let a=o,s=o+1;for(;s<e.length&&(l=e.charCodeAt(s),!(l!==Sr&&l!==$r&&l!==Vr&&l!==Tr&&l!==Nr&&l!==Er&&l!==Pr&&l!==Rr));s++);o=s-1;let c=Co(e.slice(a,s));i?i.nodes.push(c):t.push(c);break}case Vo:case So:{let a=o;for(let s=o+1;s<e.length;s++)if(l=e.charCodeAt(s),l===Ar)s+=1;else if(l===u){o=s;break}n+=e.slice(a,o+1);break}case $o:{let a=xo(n,[]);n="",i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Ao:{let a=r.pop();if(n.length>0){let s=B(n);a?.nodes.push(s),n=""}r.length>0?i=r[r.length-1]:i=null;break}default:n+=String.fromCharCode(u)}}return n.length>0&&t.push(B(n)),t}var Ft=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function _r(e){return e.indexOf("(")!==-1&&Ft.some(t=>e.includes(`${t}(`))}function Or(e){if(!Ft.some(l=>e.includes(l)))return e;let t="",r=[],i=null,n=null;for(let l=0;l<e.length;l++){let o=e.charCodeAt(l);if(o>=48&&o<=57||i!==null&&(o===37||o>=97&&o<=122||o>=65&&o<=90)?i=l:(n=i,i=null),o===40){t+=e[l];let u=l;for(let s=l-1;s>=0;s--){let c=e.charCodeAt(s);if(c>=48&&c<=57)u=s;else if(c>=97&&c<=122)u=s;else break}let a=e.slice(u,l);if(Ft.includes(a)){r.unshift(!0);continue}else if(r[0]&&a===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(o===41)t+=e[l],r.shift();else if(o===44&&r[0]){t+=", ";continue}else{if(o===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((o===43||o===42||o===47||o===45)&&r[0]){let u=t.trimEnd(),a=u.charCodeAt(u.length-1),s=u.charCodeAt(u.length-2),c=e.charCodeAt(l+1);if((a===101||a===69)&&s>=48&&s<=57){t+=e[l];continue}else if(a===43||a===42||a===47||a===45){t+=e[l];continue}else if(a===40||a===44){t+=e[l];continue}else e.charCodeAt(l-1)===32?t+=`${e[l]} `:a>=48&&a<=57||c>=48&&c<=57||a===41||c===40||c===43||c===42||c===47||c===45||n!==null&&n===l-1?t+=` ${e[l]} `:t+=e[l]}else t+=e[l]}}return t}function We(e){if(e.indexOf("(")===-1)return _e(e);let t=k(e);return zt(t),e=x(t),e=Or(e),e}function _e(e,t=!1){let r="";for(let i=0;i<e.length;i++){let n=e[i];n==="\\"&&e[i+1]==="_"?(r+="_",i+=1):n==="_"&&!t?r+=" ":r+=n}return r}function zt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=_e(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=_e(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=_e(t.nodes[r].value,!0);continue}zt([t.nodes[r]])}break}t.value=_e(t.value),zt(t.nodes);break}case"separator":case"word":{t.value=_e(t.value);break}default:No(t)}}function No(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}get(r){let i=super.get(r);return i===void 0&&(i=this.factory(r,this),this.set(r,i)),i}};var Kt=new Uint8Array(256);function Oe(e){let t=0,r=e.length;for(let i=0;i<r;i++){let n=e.charCodeAt(i);switch(n){case 92:i+=1;break;case 39:case 34:for(;++i<r;){let l=e.charCodeAt(i);if(l===92){i+=1;continue}if(l===n)break}break;case 40:Kt[t]=41,t++;break;case 91:Kt[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&n===Kt[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var it=new Uint8Array(256);function w(e,t){let r=0,i=[],n=0,l=e.length,o=t.charCodeAt(0);for(let u=0;u<l;u++){let a=e.charCodeAt(u);if(r===0&&a===o){i.push(e.slice(n,u)),n=u+1;continue}switch(a){case 92:u+=1;break;case 39:case 34:for(;++u<l;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===a)break}break;case 40:it[r]=41,r++;break;case 91:it[r]=93,r++;break;case 123:it[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===it[r-1]&&r--;break}}return i.push(e.slice(n)),i}var Eo=58,Dr=45,Ir=97,Ur=122;function M(e){switch(e.kind){case"arbitrary":return{kind:e.kind,property:e.property,value:e.value,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(De),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(De),important:e.important,raw:e.raw};case"functional":return{kind:e.kind,root:e.root,value:e.value?e.value.kind==="arbitrary"?{kind:e.value.kind,dataType:e.value.dataType,value:e.value.value}:{kind:e.value.kind,value:e.value.value,fraction:e.value.fraction}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null,variants:e.variants.map(De),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function De(e){switch(e.kind){case"arbitrary":return{kind:e.kind,selector:e.selector,relative:e.relative};case"static":return{kind:e.kind,root:e.root};case"functional":return{kind:e.kind,root:e.root,value:e.value?{kind:e.value.kind,value:e.value.value}:null,modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};case"compound":return{kind:e.kind,root:e.root,variant:De(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ne(e,t){let r=w(e,":");if(t.theme.prefix){if(r.length===1||r[0]!==t.theme.prefix)return null;r.shift()}let i=r.pop(),n=[];for(let p=r.length-1;p>=0;--p){let f=t.parseVariant(r[p]);if(f===null)return;n.push(f)}let l=!1;i[i.length-1]==="!"?(l=!0,i=i.slice(0,-1)):i[0]==="!"&&(l=!0,i=i.slice(1)),t.utilities.has(i,"static")&&!i.includes("[")&&(yield{kind:"static",root:i,variants:n,important:l,raw:e});let[o,u=null,a]=w(i,"/");if(a)return;let s=u===null?null:Po(u);if(u!==null&&s===null)return;if(o[0]==="["){if(o[o.length-1]!=="]")return;let p=o.charCodeAt(1);if(p!==Dr&&!(p>=Ir&&p<=Ur))return;o=o.slice(1,-1);let f=o.indexOf(":");if(f===-1||f===0||f===o.length-1)return;let m=o.slice(0,f),d=We(o.slice(f+1));if(!Oe(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:s,variants:n,important:l,raw:e};return}let c;if(o[o.length-1]==="]"){let p=o.indexOf("-[");if(p===-1)return;let f=o.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=o.slice(p+1);c=[[f,m]]}else if(o[o.length-1]===")"){let p=o.indexOf("-(");if(p===-1)return;let f=o.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=o.slice(p+2,-1),d=w(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Oe(m))return;c=[[f,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=Ro(o,p=>t.utilities.has(p,"functional"));for(let[p,f]of c){let m={kind:"functional",root:p,modifier:s,value:null,variants:n,important:l,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let h=We(f.slice(d+1,-1));if(!Oe(h))continue;let v="";for(let b=0;b<h.length;b++){let N=h.charCodeAt(b);if(N===Eo){v=h.slice(0,b),h=h.slice(b+1);break}if(!(N===Dr||N>=Ir&&N<=Ur))break}if(h.length===0||h.trim().length===0)continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=u===null||m.modifier?.kind==="arbitrary"?null:`${f}/${u}`;m.value={kind:"named",value:f,fraction:h}}}yield m}}function Po(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=We(e.slice(1,-1));return!Oe(t)||t.length===0||t.trim().length===0?null:{kind:"arbitrary",value:t}}return e[0]==="("&&e[e.length-1]===")"?(e=e.slice(1,-1),e[0]!=="-"||e[1]!=="-"||!Oe(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:We(e)})):{kind:"named",value:e}}function*Ro(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let i=e.slice(0,r);if(t(i)){let n=[i,e.slice(r+1)];if(n[1]===""||n[0]==="@"&&t("@")&&e[r]==="-")break;yield n}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function Bt(e){if(e===null)return"";let t=Do(e.value),r=t?e.value.slice(4,-1):e.value,[i,n]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${qt(r)}${n}`:e.kind==="named"?`/${e.value}`:""}var _o=new y(e=>{let t=k(e),r=new Set;return S(t,(i,{parent:n})=>{let l=n===null?t:n.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let o=l.indexOf(i)??-1;if(o===-1)return;let u=l[o-1];if(u?.kind!=="separator"||u.value!==" ")return;let a=l[o+1];if(a?.kind!=="separator"||a.value!==" ")return;r.add(u),r.add(a)}else i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(l[0]===i||l[l.length-1]===i)&&r.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),r.size>0&&S(t,(i,{replaceWith:n})=>{r.has(i)&&(r.delete(i),n([]))}),Wt(t),x(t)});function qt(e){return _o.get(e)}var $u=new y(e=>{let t=k(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"?x(t[2].nodes):e});function Wt(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Be(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Be(t.value);for(let r=0;r<t.nodes.length;r++)Wt([t.nodes[r]]);break}t.value=Be(t.value),Wt(t.nodes);break}case"separator":t.value=Be(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Be(t.value));break}default:Io(t)}}var Oo=new y(e=>{let t=k(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function Do(e){return Oo.get(e)}function Io(e){throw new Error(`Unexpected value: ${e}`)}function Be(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Uo=process.env.FEATURES_ENV!=="stable";function qe(e,t,r){if(e===t)return 0;let i=e.indexOf("("),n=t.indexOf("("),l=i===-1?e.replace(/[\d.]+/g,""):e.slice(0,i),o=n===-1?t.replace(/[\d.]+/g,""):t.slice(0,n),u=(l===o?0:l<o?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(u)?e<t?-1:1:u}var oe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Du=new RegExp(`^${oe.source}$`);var Iu=new RegExp(`^${oe.source}%$`);var Uu=new RegExp(`^${oe.source}s*/s*${oe.source}$`);var Lo=["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"],Mo=new RegExp(`^${oe.source}(${Lo.join("|")})$`);function Lr(e){return Mo.test(e)||_r(e)}var jo=["deg","rad","grad","turn"],Lu=new RegExp(`^${oe.source}(${jo.join("|")})$`);var Mu=new RegExp(`^${oe.source} +${oe.source} +${oe.source}$`);function O(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function ee(e){return Mr(e,.25)}function Ht(e){return Mr(e,.25)}function Mr(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function Ie(e,t){if(t===null)return e;let r=Number(t);return Number.isNaN(r)||(t=`${r*100}%`),t==="100%"?e:`color-mix(in oklab, ${e} ${t}, transparent)`}var zo={"--alpha":Ko,"--spacing":Wo,"--theme":Bo,theme:qo};function Ko(e,t,r,...i){let[n,l]=w(r,"/").map(o=>o.trim());if(!n||!l)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${l||"50%"})\``);return Ie(n,l)}function Wo(e,t,r,...i){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${r})`}function Bo(e,t,r,...i){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let n=!1;r.endsWith(" inline")&&(n=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(n=!0);let l=e.resolveThemeValue(r,n);if(!l){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return l;let o=i.join(", ");if(o==="initial")return l;if(l==="initial")return o;if(l.startsWith("var(")||l.startsWith("theme(")||l.startsWith("--theme(")){let u=k(l);return Go(u,o),x(u)}return l}function qo(e,t,r,...i){r=Ho(r);let n=e.resolveThemeValue(r);if(!n&&i.length>0)return i.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${r})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var ic=new RegExp(Object.keys(zo).map(e=>`${e}\\(`).join("|"));function Ho(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function Go(e,t){S(e,r=>{if(r.kind==="function"&&!(r.value!=="var"&&r.value!=="theme"&&r.value!=="--theme"))if(r.nodes.length===1)r.nodes.push({kind:"word",value:`, ${t}`});else{let i=r.nodes[r.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=t)}})}function Jt(e,t){let r=e.length,i=t.length,n=r<i?r:i;for(let l=0;l<n;l++){let o=e.charCodeAt(l),u=t.charCodeAt(l);if(o>=48&&o<=57&&u>=48&&u<=57){let a=l,s=l+1,c=l,p=l+1;for(o=e.charCodeAt(s);o>=48&&o<=57;)o=e.charCodeAt(++s);for(u=t.charCodeAt(p);u>=48&&u<=57;)u=t.charCodeAt(++p);let f=e.slice(a,s),m=t.slice(c,p),d=Number(f)-Number(m);if(d)return d;if(f<m)return-1;if(f>m)return 1;continue}if(o!==u)return o-u}return e.length-t.length}function Fr(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,i=e.length-1;for(;Ue(e.charCodeAt(t));)t++;{for(r=t;t<i;t++){let c=e.charCodeAt(t);if(c===92){t++;continue}if(!(c>=65&&c<=90)&&!(c>=97&&c<=122)&&!(c>=48&&c<=57)&&!(c===45||c===95))break}if(r===t)return null}let n=e.slice(r,t);for(;Ue(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:null,quote:null,value:null,sensitivity:null};let l=null,o=e.charCodeAt(t);if(o===61)l="=",t++;else if((o===126||o===124||o===94||o===36||o===42)&&e.charCodeAt(t+1)===61)l=e[t]+"=",t+=2;else return null;for(;Ue(e.charCodeAt(t));)t++;if(t===i)return null;let u="",a=null;if(o=e.charCodeAt(t),o===39||o===34){a=e[t],t++,r=t;for(let c=t;c<i;c++){let p=e.charCodeAt(c);p===o?t=c+1:p===92&&c++}u=e.slice(r,t-1)}else{for(r=t;t<i&&!Ue(e.charCodeAt(t));)t++;u=e.slice(r,t)}for(;Ue(e.charCodeAt(t));)t++;if(t===i)return{attribute:n,operator:l,quote:a,value:u,sensitivity:null};let s=null;switch(e.charCodeAt(t)){case 105:case 73:{s="i",t++;break}case 115:case 83:{s="s",t++;break}default:return null}for(;Ue(e.charCodeAt(t));)t++;return t!==i?null:{attribute:n,operator:l,quote:a,value:u,sensitivity:s}}function Ue(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function me(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,i=-1,n,l="",o=t.charCodeAt(0);if(r===1&&o===45)return"\\"+t;for(;++i<r;){if(n=t.charCodeAt(i),n===0){l+="\uFFFD";continue}if(n>=1&&n<=31||n===127||i===0&&n>=48&&n<=57||i===1&&n>=48&&n<=57&&o===45){l+="\\"+n.toString(16)+" ";continue}if(n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){l+=t.charAt(i);continue}l+="\\"+t.charAt(i)}return l}function ot(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 zr(e){let t=[];return Kr(e,[],(r,i)=>{if(Qo(r))return t.push([i,r]),1;if(Zo(r)){t.push([i,r[0]]);for(let n of Reflect.ownKeys(r[1]))t.push([[...i,`-${n}`],r[1][n]]);return 1}if(Array.isArray(r)&&r.every(n=>typeof n=="string"))return i[0]==="fontSize"?(t.push([i,r[0]]),r.length>=2&&t.push([[...i,"-line-height"],r[1]])):t.push([i,r.join(", ")]),1}),t}var Yo=/^[a-zA-Z0-9-_%/\.]+$/;function J(e){if(e[0]==="container")return null;e=e.slice(),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]==="containers"&&(e[0]="container"),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(!Yo.test(t))return null;return e.map((t,r,i)=>t==="1"&&r!==i.length-1?"":t).map(t=>t.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(r,i,n)=>`${i}-${n.toLowerCase()}`)).filter((t,r)=>t!=="DEFAULT"||r!==e.length-1).join("-")}function Qo(e){return typeof e=="number"||typeof e=="string"}function Zo(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 Kr(e,t=[],r){for(let i of Reflect.ownKeys(e)){let n=e[i];if(n==null)continue;let l=[...t,i],o=r(n,l)??0;if(o!==1){if(o===2)return 2;if(!(!Array.isArray(n)&&typeof n!="object")&&Kr(n,l,r)===2)return 2}}}function Xo(e){return{kind:"combinator",value:e}}function ea(e,t){return{kind:"function",value:e,nodes:t}}function de(e){return{kind:"selector",value:e}}function ta(e){return{kind:"separator",value:e}}function ra(e){return{kind:"value",value:e}}function at(e,t,r=null){for(let i=0;i<e.length;i++){let n=e[i],l=!1,o=0,u=t(n,{parent:r,replaceWith(a){l||(l=!0,Array.isArray(a)?a.length===0?(e.splice(i,1),o=0):a.length===1?(e[i]=a[0],o=1):(e.splice(i,1,...a),o=a.length):(e[i]=a,o=1))}})??0;if(l){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&n.kind==="function"&&at(n.nodes,t,n)===2)return 2}}function ge(e){let t="";for(let r of e)switch(r.kind){case"combinator":case"selector":case"separator":case"value":{t+=r.value;break}case"function":t+=r.value+"("+ge(r.nodes)+")"}return t}var Wr=92,ia=93,Br=41,na=58,qr=44,oa=34,aa=46,Hr=62,Gr=10,la=35,Jr=91,Yr=40,Qr=43,sa=39,Zr=32,Xr=9,ei=126,ua=38,ca=42;function Ge(e){e=e.replaceAll(`\r
|
|
5
|
+
`,`
|
|
6
|
+
`);let t=[],r=[],i=null,n="",l;for(let o=0;o<e.length;o++){let u=e.charCodeAt(o);switch(u){case qr:case Hr:case Gr:case Zr:case Qr:case Xr:case ei:{if(n.length>0){let f=de(n);i?i.nodes.push(f):t.push(f),n=""}let a=o,s=o+1;for(;s<e.length&&(l=e.charCodeAt(s),!(l!==qr&&l!==Hr&&l!==Gr&&l!==Zr&&l!==Qr&&l!==Xr&&l!==ei));s++);o=s-1;let c=e.slice(a,s),p=c.trim()===","?ta(c):Xo(c);i?i.nodes.push(p):t.push(p);break}case Yr:{let a=ea(n,[]);if(n="",a.value!==":not"&&a.value!==":where"&&a.value!==":has"&&a.value!==":is"){let s=o+1,c=0;for(let f=o+1;f<e.length;f++){if(l=e.charCodeAt(f),l===Yr){c++;continue}if(l===Br){if(c===0){o=f;break}c--}}let p=o;a.nodes.push(ra(e.slice(s,p))),n="",o=p,i?i.nodes.push(a):t.push(a);break}i?i.nodes.push(a):t.push(a),r.push(a),i=a;break}case Br:{let a=r.pop();if(n.length>0){let s=de(n);a.nodes.push(s),n=""}r.length>0?i=r[r.length-1]:i=null;break}case aa:case na:case la:{if(n.length>0){let a=de(n);i?i.nodes.push(a):t.push(a)}n=e[o];break}case Jr:{if(n.length>0){let c=de(n);i?i.nodes.push(c):t.push(c)}n="";let a=o,s=0;for(let c=o+1;c<e.length;c++){if(l=e.charCodeAt(c),l===Jr){s++;continue}if(l===ia){if(s===0){o=c;break}s--}}n+=e.slice(a,o+1);break}case sa:case oa:{let a=o;for(let s=o+1;s<e.length;s++)if(l=e.charCodeAt(s),l===Wr)s+=1;else if(l===u){o=s;break}n+=e.slice(a,o+1);break}case ua:case ca:{if(n.length>0){let a=de(n);i?i.nodes.push(a):t.push(a),n=""}i?i.nodes.push(de(e[o])):t.push(de(e[o]));break}case Wr:{n+=e[o]+e[o+1],o+=1;break}default:n+=e[o]}}return n.length>0&&t.push(de(n)),t}var fa=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,Se=new y(e=>{let t=fa.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let i=Number(r);if(Number.isNaN(i))return null;let n=t.groups?.unit;return n===void 0?[i,null]:[i,n]});function ti(e,t=null){let r=!1,i=k(e);return jt(i,(n,{replaceWith:l})=>{if(n.kind==="word"&&n.value!=="0"){let o=pa(n.value,t);if(o===null||o===n.value)return;r=!0,l(B(o));return}else if(n.kind==="function"&&(n.value==="calc"||n.value==="")){if(n.nodes.length!==5)return;let o=Se.get(n.nodes[0].value),u=n.nodes[2].value,a=Se.get(n.nodes[4].value);if(u==="*"&&(o?.[0]===0&&o?.[1]===null||a?.[0]===0&&a?.[1]===null)){r=!0,l(B("0"));return}if(o===null||a===null)return;switch(u){case"*":{(o[1]===a[1]||o[1]===null&&a[1]!==null||o[1]!==null&&a[1]===null)&&(r=!0,l(B(`${o[0]*a[0]}${o[1]??""}`)));break}case"+":{o[1]===a[1]&&(r=!0,l(B(`${o[0]+a[0]}${o[1]??""}`)));break}case"-":{o[1]===a[1]&&(r=!0,l(B(`${o[0]-a[0]}${o[1]??""}`)));break}case"/":{a[0]!==0&&(o[1]===null&&a[1]===null||o[1]!==null&&a[1]===null)&&(r=!0,l(B(`${o[0]/a[0]}${o[1]??""}`)));break}}}}),r?x(i):e}function pa(e,t=null){let r=Se.get(e);if(r===null)return null;let[i,n]=r;if(n===null)return`${i}`;if(i===0&&Lr(e))return"0";switch(n.toLowerCase()){case"in":return`${i*96}px`;case"cm":return`${i*96/2.54}px`;case"mm":return`${i*96/2.54/10}px`;case"q":return`${i*96/2.54/10/4}px`;case"pc":return`${i*96/6}px`;case"pt":return`${i*96/72}px`;case"rem":return t!==null?`${i*t}px`:null;case"grad":return`${i*.9}deg`;case"rad":return`${i*180/Math.PI}deg`;case"turn":return`${i*360}deg`;case"ms":return`${i/1e3}s`;case"khz":return`${i*1e3}hz`;default:return`${i}${n}`}}var ri=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,re=new y(e=>{let{rem:t,designSystem:r}=e;return new y(i=>{try{i=r.theme.prefix&&!i.startsWith(r.theme.prefix)?`${r.theme.prefix}:${i}`:i;let n=[ae(".x",[$("@apply",i)])];return ma(r,()=>{for(let o of r.parseCandidate(i))r.compileAstNodes(o,1);Je(n,r)}),A(n,(o,{replaceWith:u})=>{o.kind==="declaration"?o.value===void 0||o.property==="--tw-sort"?u([]):o.value.includes("%")&&(ri.lastIndex=0,o.value=o.value.replaceAll(ri,a=>`${Number(a.slice(0,-1))}%`)):o.kind==="context"||o.kind==="at-root"?u(o.nodes):o.kind==="comment"?u([]):o.kind==="at-rule"&&o.name==="@property"&&u([])}),A(n,o=>{if(o.kind==="declaration"&&o.value!==void 0){if(o.value.includes("var(")){let u=!1,a=k(o.value),s=new Set;S(a,(c,{replaceWith:p})=>{if(c.kind!=="function"||c.value!=="var"||c.nodes.length!==1&&c.nodes.length<3)return;let f=c.nodes[0].value;r.theme.prefix&&f.startsWith(`--${r.theme.prefix}-`)&&(f=f.slice(`--${r.theme.prefix}-`.length));let m=r.resolveThemeValue(f);if(!s.has(f)&&(s.add(f),m!==void 0&&(c.nodes.length===1&&(u=!0,c.nodes.push(...k(`,${m}`))),c.nodes.length>=3))){let d=x(c.nodes),g=`${c.nodes[0].value},${m}`;d===g&&(u=!0,p(k(m)))}}),u&&(o.value=x(a))}o.value=ti(o.value,t),o.value=qt(o.value)}}),K(n)}catch{return Symbol()}})}),Qt=new y(e=>{let{designSystem:t}=e,r=re.get(e),i=new y(()=>[]);for(let[n,l]of t.getClassList()){let o=r.get(n);if(typeof o=="string"){if(n[0]==="-"&&n.endsWith("-0")){let u=r.get(n.slice(1));if(typeof u=="string"&&o===u)continue}i.get(o).push(n);for(let u of l.modifiers){if(ee(u))continue;let a=`${n}/${u}`,s=r.get(a);typeof s=="string"&&i.get(s).push(a)}}}return i}),lt=new y(e=>{let{designSystem:t}=e;return new y(r=>{try{r=t.theme.prefix&&!r.startsWith(t.theme.prefix)?`${t.theme.prefix}:${r}`:r;let i=[ae(".x",[$("@apply",`${r}:flex`)])];return Je(i,t),A(i,l=>{if(l.kind==="at-rule"&&l.params.includes(" "))l.params=l.params.replaceAll(" ","");else if(l.kind==="rule"){let o=Ge(l.selector),u=!1;at(o,(a,{replaceWith:s})=>{a.kind==="separator"&&a.value!==" "?(a.value=a.value.trim(),u=!0):a.kind==="function"&&a.value===":is"?a.nodes.length===1?(u=!0,s(a.nodes)):a.nodes.length===2&&a.nodes[0].kind==="selector"&&a.nodes[0].value==="*"&&a.nodes[1].kind==="selector"&&a.nodes[1].value[0]===":"&&(u=!0,s(a.nodes[1])):a.kind==="function"&&a.value[0]===":"&&a.nodes[0]?.kind==="selector"&&a.nodes[0]?.value[0]===":"&&(u=!0,a.nodes.unshift({kind:"selector",value:"*"}))}),u&&(l.selector=ge(o))}}),K(i)}catch{return Symbol()}})}),ii=new y(e=>{let{designSystem:t}=e,r=lt.get(e),i=new y(()=>[]);for(let[n,l]of t.variants.entries())if(l.kind==="static"){let o=r.get(n);if(typeof o!="string")continue;i.get(o).push(n)}return i});function ma(e,t){let r=e.theme.values.get,i=new Set;e.theme.values.get=n=>{let l=r.call(e.theme.values,n);return l===void 0||l.options&1&&(i.add(l),l.options&=-2),l};try{return t()}finally{e.theme.values.get=r;for(let n of i)n.options|=1}}function q(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function Y(e){let t=[];for(let r of w(e,".")){if(!r.includes("[")){t.push(r);continue}let i=0;for(;;){let n=r.indexOf("[",i),l=r.indexOf("]",n);if(n===-1||l===-1)break;n>i&&t.push(r.slice(i,n)),t.push(r.slice(n+1,l)),i=l+1}i<=r.length-1&&t.push(r.slice(i))}return t}var ga=new y(e=>new y((t=null)=>({designSystem:e,rem:t})));function oi(e,t){return ga.get(e).get(t?.rem??null)}var Lc=new y(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",i=ya.get(e),n=wa.get(e);return new y((l,o)=>{for(let u of t.parseCandidate(l)){let a=u.variants.slice().reverse().flatMap(p=>i.get(p)),s=u.important;if(s||a.length>0){let f=o.get(t.printCandidate({...u,variants:[],important:!1}));return t.theme.prefix!==null&&a.length>0&&(f=f.slice(r.length)),a.length>0&&(f=`${a.map(m=>t.printVariant(m)).join(":")}:${f}`),s&&(f+="!"),t.theme.prefix!==null&&a.length>0&&(f=`${r}${f}`),f}let c=n.get(l);if(c!==l)return c}return l})}),ha=[Ca,Da,Ia,Ra],ya=new y(e=>new y(t=>{let r=[t];for(let i of ha)for(let n of r.splice(0)){let l=i(De(n),e);if(Array.isArray(l)){r.push(...l);continue}else r.push(l)}return r})),va=[ba,xa,Va,Na,Pa,_a,Oa,Ua],wa=new y(e=>{let t=e.designSystem;return new y(r=>{for(let i of t.parseCandidate(r)){let n=M(i);for(let o of va)n=o(n,e);let l=t.printCandidate(n);if(r!==l)return l}return r})}),ka=["t","tr","r","br","b","bl","l","tl"];function ba(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return ka.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function xa(e,t){let r=ai.get(t.designSystem);if(e.kind==="arbitrary"){let[i,n]=r(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,n!==null&&(e.modifier=n))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,n]=r(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,n!==null&&(e.modifier=n))}return e}function Ca(e,t){let r=ai.get(t.designSystem),i=ct(e);for(let[n]of i)if(n.kind==="arbitrary"){let[l]=r(n.selector,2);l!==n.selector&&(n.selector=l)}else if(n.kind==="functional"&&n.value?.kind==="arbitrary"){let[l]=r(n.value.value,2);l!==n.value.value&&(n.value.value=l)}return e}var ai=new y(e=>{return t(e);function t(r){function i(u,a=0){let s=k(u);if(a&2)return[st(s,o),null];let c=0,p=0;if(S(s,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,S(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="word"&&g.value==="/"?(p+=1,2):1))}),c===0)return[u,null];if(p===0)return[st(s,l),null];if(p>1)return[st(s,o),null];let f=null;return[st(s,(d,g)=>{let h=w(d,"/").map(v=>v.trim());if(h.length>2)return null;if(s.length===1&&h.length===2&&a&1){let[v,b]=h;if(/^\d+%$/.test(b))f={kind:"named",value:b.slice(0,-1)};else if(/^0?\.\d+$/.test(b)){let N=Number(b)*100;f={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else f={kind:"arbitrary",value:b};d=v}return l(d,g)||o(d,g)}),f]}function n(u,a=!0){let s=`--${J(Y(u))}`;return r.theme.get([s])?a&&r.theme.prefix?`--${r.theme.prefix}-${s.slice(2)}`:s:null}function l(u,a){let s=n(u);if(s)return a?`var(${s}, ${a})`:`var(${s})`;let c=Y(u);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let p=c[1];return ee(p)?`--spacing(${p})`:null}return null}function o(u,a){let s=w(u,"/").map(f=>f.trim());u=s.shift();let c=n(u,!1);if(!c)return null;let p=s.length>0?`/${s.join("/")}`:"";return a?`--theme(${c}${p}, ${a})`:`--theme(${c}${p})`}return i}});function st(e,t){return S(e,(r,{parent:i,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 l=r.nodes[0];if(l.kind!=="word")return;let o=l.value,u=1;for(let c=u;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)o+=x([r.nodes[c]]),u=c+1;o=Aa(o);let a=r.nodes.slice(u+1),s=a.length>0?t(o,x(a)):t(o);if(s===null)return;if(i){let c=i.nodes.indexOf(r)-1;for(;c!==-1;){let p=i.nodes[c];if(p.kind==="separator"&&p.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(s=`(${s})`);break}}n(k(s))}}),x(e)}function Aa(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function*ct(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function le(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function Sa(e,t){let r=e.printCandidate(t);return e.theme.prefix&&r.startsWith(`${e.theme.prefix}:`)?r.slice(e.theme.prefix.length+1):r}var $a=new y(e=>{let t=e.resolveThemeValue("--spacing");if(t===void 0)return null;let r=Se.get(t);if(!r)return null;let[i,n]=r;return new y(l=>{let o=Se.get(l);if(!o)return null;let[u,a]=o;return a!==n?null:u/i})});function Va(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,i=Qt.get(t),n=re.get(t),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of u(o,e)){let s=r.printCandidate(a);if(n.get(s)===o&&Ta(r,e,a))return a}return e;function*u(a,s){let c=i.get(a);if(!(c.length>1)){if(c.length===0&&s.modifier){let p={...s,modifier:null},f=n.get(r.printCandidate(p));if(typeof f=="string")for(let m of u(f,p))yield Object.assign({},m,{modifier:s.modifier})}if(c.length===1)for(let p of le(r,c[0]))yield p;else if(c.length===0){let p=s.kind==="arbitrary"?s.value:s.value?.value??null;if(p===null)return;let f=$a.get(r)?.get(p)??null,m="";f!==null&&f<0&&(m="-",f=Math.abs(f));for(let d of Array.from(r.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){m&&(d=`${m}${d}`);for(let g of le(r,`${d}-${p}`))yield g;if(s.modifier)for(let g of le(r,`${d}-${p}${s.modifier}`))yield g;if(f!==null){for(let g of le(r,`${d}-${f}`))yield g;if(s.modifier)for(let g of le(r,`${d}-${f}${Bt(s.modifier)}`))yield g}for(let g of le(r,`${d}-[${p}]`))yield g;if(s.modifier)for(let g of le(r,`${d}-[${p}]${Bt(s.modifier)}`))yield g}}}}}function Ta(e,t,r){let i=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?i=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(i=t.value),i===null)return!0;let n=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
7
|
+
`),l=!0;return S(k(i),o=>{if(o.kind==="function"&&o.value==="var"){let u=o.nodes[0].value;if(!new RegExp(`var\\(${u}[,)]\\s*`,"g").test(n)||n.includes(`${u}:`))return l=!1,2}}),l}function Na(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,i=Qt.get(t),n=re.get(t),l=r.printCandidate(e),o=n.get(l);if(typeof o!="string")return e;for(let a of u(o,e)){let s=r.printCandidate(a);if(n.get(s)===o)return a}return e;function*u(a,s){let c=i.get(a);if(!(c.length>1)){if(c.length===0&&s.modifier){let p={...s,modifier:null},f=n.get(r.printCandidate(p));if(typeof f=="string")for(let m of u(f,p))yield Object.assign({},m,{modifier:s.modifier})}if(c.length===1)for(let p of le(r,c[0]))yield p}}}var Ea=new Map([["order-none","order-0"]]);function Pa(e,t){let r=t.designSystem,i=re.get(t),n=Sa(r,e),l=Ea.get(n)??null;if(l===null)return e;let o=i.get(n);if(typeof o!="string")return e;let u=i.get(l);if(typeof u!="string"||o!==u)return e;let[a]=le(r,l);return a}function Ra(e,t){let r=t.designSystem,i=lt.get(t),n=ii.get(t),l=ct(e);for(let[o]of l){if(o.kind==="compound")continue;let u=r.printVariant(o),a=i.get(u);if(typeof a!="string")continue;let s=n.get(a);if(s.length!==1)continue;let c=s[0],p=r.parseVariant(c);p!==null&&q(o,p)}return e}function _a(e,t){let r=t.designSystem,i=re.get(t);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let n=r.printCandidate({...e,value:{...e.value,dataType:null}});i.get(r.printCandidate(e))===i.get(n)&&(e.value.dataType=null)}return e}function Oa(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,i=re.get(t),n=i.get(r.printCandidate(e));if(n===null)return e;for(let l of li(e))if(i.get(r.printCandidate({...e,value:l}))===n)return e.value=l,e;return e}function Da(e){let t=ct(e);for(let[r]of t)if(r.kind==="functional"&&r.root==="data"&&r.value?.kind==="arbitrary"&&!r.value.value.includes("="))r.value={kind:"named",value:r.value.value};else if(r.kind==="functional"&&r.root==="aria"&&r.value?.kind==="arbitrary"&&(r.value.value.endsWith("=true")||r.value.value.endsWith('="true"')||r.value.value.endsWith("='true'"))){let[i,n]=w(r.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;r.value={kind:"named",value:r.value.value.slice(0,r.value.value.indexOf("="))}}else r.kind==="functional"&&r.root==="supports"&&r.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(r.value.value)&&(r.value={kind:"named",value:r.value.value});return e}function*li(e,t=e.value?.value??"",r=new Set){if(r.has(t))return;if(r.add(t),yield{kind:"named",value:t,fraction:null},t.endsWith("%")&&ee(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[l,o]=t.split("/");O(l)&&O(o)&&(yield{kind:"named",value:l,fraction:`${l}/${o}`})}let i=new Set;for(let l of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(l[0].trim());let n=Array.from(i).sort((l,o)=>l.length-o.length);for(let l of n)yield*li(e,l,r)}function ni(e){return!e.some(t=>t.kind==="separator"&&t.value.trim()===",")}function ut(e){let t=e.value.trim();return e.kind==="selector"&&t[0]==="["&&t[t.length-1]==="]"}function Ia(e,t){let r=[e],i=t.designSystem,n=lt.get(t),l=ct(e);for(let[o,u]of l)if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="arbitrary"){if(o.relative)continue;let a=Ge(o.selector.trim());if(!ni(a))continue;if(u===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&a[2].value==="*"){q(o,i.parseVariant("*"));continue}if(u===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="*"){q(o,i.parseVariant("**"));continue}if(u===null&&a.length===3&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),q(o,i.parseVariant(`in-[${ge(a)}]`));continue}if(u===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let f=n.get(i.printVariant(o)),m=k(ge(a)),d=!1;if(S(m,(g,{replaceWith:h})=>{g.kind==="word"&&g.value==="not"&&(d=!0,h([]))}),m=k(x(m)),S(m,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),d){let g=i.parseVariant(`not-[${x(m)}]`);if(g===null)continue;let h=n.get(i.printVariant(g));if(f===h){q(o,g);continue}}}let s=null;u===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===">"&&a[2].kind==="selector"&&ut(a[2])&&(a=[a[2]],s=i.parseVariant("*")),u===null&&a.length===3&&a[0].kind==="selector"&&a[0].value.trim()==="&"&&a[1].kind==="combinator"&&a[1].value.trim()===""&&a[2].kind==="selector"&&ut(a[2])&&(a=[a[2]],s=i.parseVariant("**"));let c=a.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!ni(p.nodes)||p.nodes.length!==1||!ut(p.nodes[0]))continue;p=p.nodes[0]}if(p.kind==="function"&&p.value[0]===":"||p.kind==="selector"&&p.value[0]===":"){let f=p,m=!1;if(f.kind==="function"&&f.value===":not"){if(m=!0,f.nodes.length!==1||f.nodes[0].kind!=="selector"&&f.nodes[0].kind!=="function"||f.nodes[0].value[0]!==":")continue;f=f.nodes[0]}let d=(h=>{if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return m?(m=!1,"even"):"odd";if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="even")return m?(m=!1,"odd"):"even";for(let[v,b]of[[":nth-child","nth"],[":nth-last-child","nth-last"],[":nth-of-type","nth-of-type"],[":nth-last-of-type","nth-of-last-type"]])if(h===v&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&O(f.nodes[0].value)?`${b}-${f.nodes[0].value}`:`${b}-[${ge(f.nodes)}]`;if(m){let v=n.get(i.printVariant(o)),b=n.get(`not-[${h}]`);if(v===b)return`[&${h}]`}return null})(f.value);if(d===null)continue;m&&(d=`not-${d}`);let g=i.parseVariant(d);if(g===null)continue;q(o,g)}else if(ut(p)){let f=Fr(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);q(o,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${m}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let m=f.attribute.slice(5);q(o,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:m}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:m}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}}if(s)return[s,o]}return r}function Ua(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,i=re.get(t),n=i.get(r.printCandidate(e)),l=e.modifier;if(n===i.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let o={kind:"named",value:l.value.endsWith("%")?l.value.includes(".")?`${Number(l.value.slice(0,-1))}`:l.value.slice(0,-1):l.value,fraction:null};if(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}{let o={kind:"named",value:`${parseFloat(l.value)*100}`,fraction:null};if(n===i.get(r.printCandidate({...e,modifier:o})))return e.modifier=o,e}return e}function Ye(e,t,{onInvalidCandidate:r,respectImportant:i}={}){let n=new Map,l=[],o=new Map;for(let s of e){if(t.invalidCandidates.has(s)){r?.(s);continue}let c=t.parseCandidate(s);if(c.length===0){r?.(s);continue}o.set(s,c)}let u=0;(i??!0)&&(u|=1);let a=t.getVariantOrder();for(let[s,c]of o){let p=!1;for(let f of c){let m=t.compileAstNodes(f,u);if(m.length!==0){p=!0;for(let{node:d,propertySort:g}of m){let h=0n;for(let v of f.variants)h|=1n<<BigInt(a.get(v));n.set(d,{properties:g,variants:h,candidate:s}),l.push(d)}}}p||r?.(s)}return l.sort((s,c)=>{let p=n.get(s),f=n.get(c);if(p.variants-f.variants!==0n)return Number(p.variants-f.variants);let m=0;for(;m<p.properties.order.length&&m<f.properties.order.length&&p.properties.order[m]===f.properties.order[m];)m+=1;return(p.properties.order[m]??1/0)-(f.properties.order[m]??1/0)||f.properties.count-p.properties.count||Jt(p.candidate,f.candidate)}),{astNodes:l,nodeSorting:n}}function Je(e,t){let r=0,i=z("&",e),n=new Set,l=new y(()=>new Set),o=new y(()=>new Set);A([i],(p,{parent:f,path:m})=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return A(p.nodes,d=>{if(d.kind==="at-rule"&&d.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(p.name==="@utility"){let d=p.params.replace(/-\*$/,"");o.get(d).add(p),A(p.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){n.add(p);for(let h of ui(g,t))l.get(p).add(h)}});return}if(p.name==="@apply"){if(f===null)return;r|=1,n.add(f);for(let d of ui(p,t))for(let g of m)g!==p&&n.has(g)&&l.get(g).add(d)}}});let u=new Set,a=[],s=new Set;function c(p,f=[]){if(!u.has(p)){if(s.has(p)){let m=f[(f.indexOf(p)+1)%f.length];throw p.kind==="at-rule"&&p.name==="@utility"&&m.kind==="at-rule"&&m.name==="@utility"&&A(p.nodes,d=>{if(d.kind!=="at-rule"||d.name!=="@apply")return;let g=d.params.split(/\s+/g);for(let h of g)for(let v of t.parseCandidate(h))switch(v.kind){case"arbitrary":break;case"static":case"functional":if(m.params.replace(/-\*$/,"")===v.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
22
8
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`}s+=`}
|
|
26
|
-
`,s+=`
|
|
27
|
-
@tw-bucket plugin {
|
|
28
|
-
`;for(let o of r.plugins){let u=o.path[0]==="."?ti(e,qe.resolve(o.base,o.path)):o.path;if(o.options===null)s+=`@plugin '${u}';
|
|
29
|
-
`;else{s+=`@plugin '${u}' {
|
|
30
|
-
`;for(let[c,f]of Object.entries(o.options)){let p="";typeof f=="string"?p=ri(f):Array.isArray(f)?p=f.map(d=>typeof d=="string"?ri(d):""+d).join(", "):p=""+f,s+=` ${c}: ${p};
|
|
31
|
-
`}s+=`}
|
|
32
|
-
`}}s+=`}
|
|
33
|
-
`,a.append(Ao.parse(s+r.css))}l.append(a.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function ti(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=qe.relative(qe.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),At(n)}function ri(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Bo from"node:fs/promises";import{dirname as qo,resolve as Ho}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 ye(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)`}var To={"--alpha":Vo,"--spacing":No,"--theme":Ro,theme:oi};function Vo(e,t,...r){let[n,i]=y(t,"/").map(l=>l.trim());if(!n||!i)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${n||"var(--my-color)"} / ${i||"50%"})\``);if(r.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${n||"var(--my-color)"} / ${i||"50%"})\``);return ye(n,i)}function No(e,t,...r){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(r.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${r.length+1}.`);let n=e.theme.resolve(null,["--spacing"]);if(!n)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${n} * ${t})`}function Ro(e,t,...r){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");return oi(e,t,...r)}function oi(e,t,...r){t=Po(t);let n=e.resolveThemeValue(t);if(!n&&r.length>0)return r.join(", ");if(!n)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return n}var bc=new RegExp(Object.keys(To).map(e=>`${e}\\(`).join("|"));function Po(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 ve(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)){n.push(l);let a=r(e[l],i[l],n);a!==void 0?e[l]=a:!ve(e[l])||!ve(i[l])?e[l]=i[l]:e[l]=Re({},[e[l],i[l]],r,n),n.pop()}return e}function Tt(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=re(i),[c,f]=Do(e.theme,u),p=r(ai(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&&ai(d,m.split("-"))!==void 0||(d[Fe(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=ye(o,s)),o??l}}function Do(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=q(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)si(o,[c??"DEFAULT"],f);for(let[c,f]of a)si(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 ai(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 si(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 He(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"){if(!n.startsWith("--")){if(i==="@slot"){t.push(B(n,[A("@slot")]));continue}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(B(n,He(l)));else i!==null&&t.push(B(n,He(i)));return t}function ui(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(A("@keyframes",r,He(n)));return t}var Je={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 ce(e){return{__BARE_VALUE__:e}}var L=ce(e=>{if(V(e.value))return e.value}),E=ce(e=>{if(V(e.value))return`${e.value}%`}),ne=ce(e=>{if(V(e.value))return`${e.value}px`}),ci=ce(e=>{if(V(e.value))return`${e.value}ms`}),Ge=ce(e=>{if(V(e.value))return`${e.value}deg`}),Lo=ce(e=>{if(e.fraction===null)return;let[t,r]=y(e.fraction,"/");if(!(!V(t)||!V(r)))return e.fraction}),fi=ce(e=>{if(V(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Mo={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",...Lo},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...E}),backdropContrast:({theme:e})=>({...e("contrast"),...E}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...E}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ge}),backdropInvert:({theme:e})=>({...e("invert"),...E}),backdropOpacity:({theme:e})=>({...e("opacity"),...E}),backdropSaturate:({theme:e})=>({...e("saturate"),...E}),backdropSepia:({theme:e})=>({...e("sepia"),...E}),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",...ne},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",...E},caretColor:({theme:e})=>e("colors"),colors:()=>({...Je}),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",...E},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"),...ne}),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%",...E},grayscale:{0:"0",DEFAULT:"100%",...E},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))",...fi},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))",...fi},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",...Ge},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%",...E},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",...E},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",...ne},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},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",...ne},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ge},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...E},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",...E},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%",...E},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ge},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",...ne},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ne},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",...ci},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...ci},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-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 Ko={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function fe(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Ko)};for(let i of t)Nt(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=Wo(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function zo(e,t){if(Array.isArray(e)&&ve(e[0]))return e.concat(t);if(Array.isArray(t)&&ve(t[0])&&ve(e))return[e,...t];if(Array.isArray(t))return t}function Nt(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??[])Nt(e,{path:n,base:r,config:o,reference:i});for(let o of l)e.plugins.push(o),o.config&&Nt(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 Wo(e){let t=new Set,r=Tt(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:Je});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,zo)}}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 pi({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 Rt({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 di(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 gi(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=x(a.nodes):r="";continue}if(a.kind==="function"&&a.value.toLowerCase()==="supports"){if(i)return null;i=x(a.nodes);continue}n=x(e.slice(l));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function hi(){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=gi($(l)),o=s.uri[0]===".",u=s.uri.endsWith(".css");if(o&&u)return;let c=Ho(qo(r),s.uri);u||(c+=".css"),n.push(Bo.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 yi({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=fe(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?di(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 Jo}from"postcss";function vi(){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==="custom-variant"||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 Jo({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 Go from"dedent";import Yo from"postcss";var Qo="currentColor",Zo=Go,Xo=Zo`
|
|
34
|
-
/*
|
|
35
|
-
The default border color has changed to \`currentColor\` in Tailwind CSS v4,
|
|
36
|
-
so we've added these compatibility styles to make sure everything still
|
|
37
|
-
looks the same as it did with Tailwind CSS v3.
|
|
9
|
+
${K([p])}
|
|
10
|
+
Relies on:
|
|
38
11
|
|
|
39
|
-
If we ever want to remove these styles, we need to add an explicit border
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
::file-selector-button {
|
|
48
|
-
border-color: theme(borderColor.DEFAULT);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`;function bi({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(l){let a=`--${q(re(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!==Qo&&(s+=Xo,s+=`
|
|
52
|
-
|
|
53
|
-
`),s=`
|
|
54
|
-
@tw-bucket compatibility {
|
|
55
|
-
${s}
|
|
56
|
-
}
|
|
57
|
-
`;let o=Yo.parse(s);o.walkDecls(u=>{u.value.includes("theme(")&&(u.value=el($(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 el(e,t){return j(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+=x([r.nodes[u]]),a=u+1;l=tl(l);let s=r.nodes.slice(a+1),o=s.length>0?t(l,x(s)):t(l);if(o===null)return;n($(o))}}),x(e)}function tl(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 Ye}from"postcss";var Pt=["theme","base","components","utilities"];function wi(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||Qe(a).before(new Ye({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),l?.remove()):l!==null?(o||Qe(a).before(new Ye({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),l?.remove()):i!==null&&(c||Qe(a).before(new Ye({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Qe(a).before(new Ye({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let p=f.toSorted((d,m)=>Pt.indexOf(d)-Pt.indexOf(m));if(f.some((d,m)=>d!==p[m])){let d=Pt.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 Qe(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 ki({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=kt(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 xi(){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 Pi,compile as fl}from"@tailwindcss/node";import pl from"node:fs/promises";import oe,{dirname as Ei}from"node:path";import{fileURLToPath as dl}from"node:url";import be from"enhanced-resolve";import{createJiti as sl}from"jiti";import _t from"node:fs";import Bd from"node:fs/promises";import Hd,{dirname as Si}from"node:path";import{pathToFileURL as $i}from"node:url";import{__unstable__loadDesignSystem as Yd,compile as Qd,compileAst as Zd,Features as Xd}from"tailwindcss";import Et from"node:fs/promises";import Pe from"node:path";var rl=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],il=[".js",".cjs",".mjs"],nl=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],ol=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function ll(e,t){for(let r of t){let n=`${e}${r}`;if((await Et.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Et.access(n).then(()=>!0,()=>!1))return n}return null}async function Ci(e,t,r,n){let i=il.includes(n)?nl:ol,l=await ll(Pe.resolve(r,t),i);if(l===null||e.has(l))return;e.add(l),r=Pe.dirname(l),n=Pe.extname(l);let a=await Et.readFile(l,"utf-8"),s=[];for(let o of rl)for(let u of a.matchAll(o))u[1].startsWith(".")&&s.push(Ci(e,u[1],r,n));await Promise.all(s)}async function Ai(e){let t=new Set;return await Ci(t,e,Pe.dirname(e),Pe.extname(e)),Array.from(t)}import*as al from"node:path";async function Ze(e,t,r,n){if(e[0]!=="."){let s=await Ni(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let o=await Vi($i(s).href);return{base:Si(s),module:o.default??o}}let i=await Ni(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,a]=await Promise.all([Vi($i(i).href+"?id="+Date.now()),Ai(i)]);for(let s of a)r(s);return{base:Si(i),module:l.default??l}}var Ti=null;async function Vi(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 Ti??=sl(import.meta.url,{moduleCache:!1,fsCache:!1}),await Ti.import(e)}}var Ot=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],rm=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Ot});var ul=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Ot}),cl=be.ResolverFactory.createResolver({fileSystem:new be.CachedInputFileSystem(_t,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Ot});async function Ni(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 Ri(ul,e,t).catch(()=>Ri(cl,e,t))}function Ri(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(l,a)=>{if(l)return i(l);n(a)}))}var ml=dl(import.meta.url),Ee=Ei(ml),_i=String.raw;async function Oi(e,t){try{e===null?e=await Dt(t.base):oe.isAbsolute(e)||(e=oe.resolve(t.base,e));let r=oe.relative(Ee,e);!r.startsWith(".")&&!oe.isAbsolute(r)&&(r="./"+r);let n=await gl(e),i=n.prefix?Ir(n.prefix):null,l=_i`
|
|
58
|
-
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
59
|
-
@config '${r}';
|
|
60
|
-
`,[a,s]=await Promise.all([fl(l,{base:Ee,onDependency:()=>{}}),Pi(l,{base:Ee})]);return{designSystem:s,globs:a.globs,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){T("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function gl(e){let[t,r]=await Promise.all([Pi(_i`
|
|
61
|
-
@import 'tailwindcss';
|
|
62
|
-
`,{base:Ee}),Ze(e,Ee,()=>{}).then(n=>n.module)]);return fe(t,[{base:Ei(e),config:r}]).resolvedConfig}var hl=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function Dt(e,t=e){for(let r of yl(e,t))for(let n of hl){let i=oe.resolve(r,n);try{return await pl.access(i),i}catch{}}throw new Error(`No configuration file found for ${v(O(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${v("--config")} option.`)}function*yl(e,t=e){let r=oe.resolve(e),n=oe.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=oe.dirname(i);while(i!==n);yield n}async function wl(e,t,r){return typeof e=="string"&&(e=await ie.fromString(e),e.file=r??null),Xe().use(hi()).use(Gr(t)).use(yi(t)).use(xi()).use(Xr(e)).use(vi()).use(wi(t)).use(ii(e,t)).use(bi(t)).use(ki(t)).process(e.root,{from:e.file??void 0})}async function Di(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await wl(e,t)}async function Ii(e){let t=await bl(),r=[],n=new k(o=>{if(t(o))return null;try{let u=ie.loadSync(o);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=Xe([{postcssPlugin:"mark-import-nodes",AtRule:{import(o){let u=o.params.match(/['"](.*)['"]/)?.[1];if(!u)return;let c=o.source?.input.file?H.dirname(o.source.input.file):process.cwd(),f=!1;try{if(u[0]!==".")try{f=pt(`./${u}`,c)}catch{}f||(f=pt(u,c))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;T(`Failed to resolve import: ${v(u)} in ${v(O(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 C of g){if(b!==C)continue;let K=b;u.delete(f),u.delete(d);for(let Y of p)u.get(K).add(Y);for(let Y of m)u.get(K).add(Y);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
|
-
`;throw o+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
64
|
-
`,new Error(o+s.join(`
|
|
65
|
-
`))}}async function Ui(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
|
-
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=H.resolve(H.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 Dt(H.dirname(u.file),r):H.isAbsolute(c)||(c=H.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)T(`Could not determine configuration file for: ${v(O(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=O;for(let[u,c]of l)try{if(!u||!u.file)return;N(`Linked ${v(o(c,r))} to ${v(o(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let f=H.relative(H.dirname(u.file),c);!f.startsWith(".")&&!H.isAbsolute(f)&&(f="./"+f),f=vl(f);{let p=u.root,d=Xe.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){T("Could not load the configuration file: "+f.message,{prefix:"\u21B3 "}),process.exit(1)}}async function ji(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=Xe.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 ie.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),C=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(C):c.after(C)}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 qi}from"@tailwindcss/oxide";import El from"node:fs/promises";import Hi from"node:path";import{fileURLToPath as _l}from"node:url";var Ji=vn(Ki());import rt from"tree-sitter";import it from"tree-sitter-typescript";var It=new rt;It.setLanguage(it.typescript);var Ut=String.raw,Vl=new rt.Query(it.typescript,Ut`
|
|
12
|
+
${K([m])}`)}s.add(p);for(let m of l.get(p))for(let d of o.get(m))f.push(p),c(d,f),f.pop();u.add(p),s.delete(p),a.push(p)}}for(let p of n)c(p);for(let p of a)"nodes"in p&&A(p.nodes,(f,{replaceWith:m})=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let d=f.params.split(/(\s+)/g),g={},h=0;for(let[v,b]of d.entries())v%2===0&&(g[b]=h),h+=b.length;{let v=Object.keys(g),b=Ye(v,t,{respectImportant:!1,onInvalidCandidate:T=>{if(t.theme.prefix&&!T.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${T}\`. Did you mean \`${t.theme.prefix}:${T}\`?`);if(t.invalidCandidates.has(T))throw new Error(`Cannot apply utility class \`${T}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let G=w(T,":");if(G.length>1){let rt=G.pop();if(t.candidatesToCss([rt])[0]){let Pe=t.candidatesToCss(G.map(Re=>`${Re}:[--tw-variant-check:1]`)),pe=G.filter((Re,Lt)=>Pe[Lt]===null);if(pe.length>0){if(pe.length===1)throw new Error(`Cannot apply utility class \`${T}\` because the ${pe.map(Re=>`\`${Re}\``)} variant does not exist.`);{let Re=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${T}\` because the ${Re.format(pe.map(Lt=>`\`${Lt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${T}\`. Are you using CSS modules or similar and missing \`@reference\`? https://tailwindcss.com/docs/functions-and-directives#reference-directive`):new Error(`Cannot apply unknown utility class \`${T}\``)}}),N=f.src,X=b.astNodes.map(T=>{let G=b.nodeSorting.get(T)?.candidate,rt=G?g[G]:void 0;if(T=te(T),!N||!G||rt===void 0)return A([T],pe=>{pe.src=N}),T;let Pe=[N[0],N[1],N[2]];return Pe[1]+=7+rt,Pe[2]=Pe[1]+G.length,A([T],pe=>{pe.src=Pe}),T}),Ae=[];for(let T of X)if(T.kind==="rule")for(let G of T.nodes)Ae.push(G);else Ae.push(T);m(Ae)}});return r}function*ui(e,t){for(let r of e.params.split(/\s+/g))for(let i of t.parseCandidate(r))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var Ka=32,Wa=9;var Ba=40;function ci(e,t=[]){let r=e,i="";for(let n=5;n<e.length;n++){let l=e.charCodeAt(n);if(l===Ka||l===Wa||l===Ba){r=e.slice(0,n),i=e.slice(n);break}}return $(r.trim(),i.trim(),t)}function fi(e){let t,r=null,i=null,n=null;for(let l=0;l<e.length;l++){let o=e[l];if(o.kind!=="separator"){if(o.kind==="word"&&!t){if(!o.value||o.value[0]!=='"'&&o.value[0]!=="'")return null;t=o.value.slice(1,-1);continue}if(o.kind==="function"&&o.value.toLowerCase()==="url"||!t)return null;if((o.kind==="word"||o.kind==="function")&&o.value.toLowerCase()==="layer"){if(r)return null;if(n)throw new Error("`layer(\u2026)` in an `@import` should come before any other functions or conditions");"nodes"in o?r=x(o.nodes):r="";continue}if(o.kind==="function"&&o.value.toLowerCase()==="supports"){if(n)return null;n=x(o.nodes);continue}i=x(e.slice(l));break}}return t?{uri:t,layer:r,media:i,supports:n}:null}function Me(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Qe(e,t,r,i=[]){for(let n of t)if(n!=null)for(let l of Reflect.ownKeys(n)){i.push(l);let o=r(e[l],n[l],i);o!==void 0?e[l]=o:!Me(e[l])||!Me(n[l])?e[l]=n[l]:e[l]=Qe({},[e[l],n[l]],r,i),i.pop()}return e}function er(e,t,r){return function(n,l){let o=n.lastIndexOf("/"),u=null;o!==-1&&(u=n.slice(o+1).trim(),n=n.slice(0,o).trim());let a=(()=>{let s=Y(n),[c,p]=qa(e.theme,s),f=r(mi(t()??{},s)??null);if(typeof f=="string"&&(f=f.replace("<alpha-value>","1")),typeof c!="object")return typeof p!="object"&&p&4?f??c:c;if(f!==null&&typeof f=="object"&&!Array.isArray(f)){let m=Qe({},[f],(d,g)=>g);if(c===null&&Object.hasOwn(f,"__CSS_VALUES__")){let d={};for(let g in f.__CSS_VALUES__)d[g]=f[g],delete m[g];c=d}for(let d in c)d!=="__CSS_VALUES__"&&(f?.__CSS_VALUES__?.[d]&4&&mi(m,d.split("-"))!==void 0||(m[ot(d)]=c[d]));return m}if(Array.isArray(c)&&Array.isArray(p)&&Array.isArray(f)){let m=c[0],d=c[1];p[0]&4&&(m=f[0]??m);for(let g of Object.keys(d))p[1][g]&4&&(d[g]=f[1][g]??d[g]);return[m,d]}return c??f})();return u&&typeof a=="string"&&(a=Ie(a,u)),a??l}}function qa(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=J(t),i=new Map,n=new y(()=>new Map),l=e.namespace(`--${r}`);if(l.size===0)return[null,0];let o=new Map;for(let[c,p]of l){if(!c||!c.includes("--")){i.set(c,p),o.set(c,e.getOptions(c?`--${r}-${c}`:`--${r}`));continue}let f=c.indexOf("--"),m=c.slice(0,f),d=c.slice(f+2);d=d.replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),n.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let u=e.getOptions(`--${r}`);for(let[c,p]of n){let f=i.get(c);if(typeof f!="string")continue;let m={},d={};for(let[g,[h,v]]of p)m[g]=h,d[g]=v;i.set(c,[f,m]),o.set(c,[u,d])}let a={},s={};for(let[c,p]of i)di(a,[c??"DEFAULT"],p);for(let[c,p]of o)di(s,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[a?.DEFAULT??null,s.DEFAULT??0]:"DEFAULT"in a&&Object.keys(a).length===1?[a.DEFAULT,s.DEFAULT??0]:(a.__CSS_VALUES__=s,[a,s])}function mi(e,t){for(let r=0;r<t.length;++r){let i=t[r];if(e?.[i]===void 0){if(t[r+1]===void 0)return;t[r+1]=`${i}-${t[r+1]}`;continue}if(typeof e=="string")return;e=e[i]}return e}function di(e,t,r){for(let i of t.slice(0,-1))e[i]===void 0&&(e[i]={}),e=e[i];e[t[t.length-1]]=r}function pt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(i=>Object.entries(i));for(let[i,n]of r)if(n!=null&&n!==!1)if(typeof n!="object"){if(!i.startsWith("--")){if(n==="@slot"){t.push(z(i,[$("@slot")]));continue}i=i.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(V(i,String(n)))}else if(Array.isArray(n))for(let l of n)typeof l=="string"?t.push(V(i,l)):t.push(z(i,pt(l)));else t.push(z(i,pt(n)));return t}function gi(e){let t=[];if("keyframes"in e.theme)for(let[r,i]of Object.entries(e.theme.keyframes))t.push($("@keyframes",r,pt(i)));return t}var mt={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function $e(e){return{__BARE_VALUE__:e}}var Q=$e(e=>{if(O(e.value))return e.value}),D=$e(e=>{if(O(e.value))return`${e.value}%`}),he=$e(e=>{if(O(e.value))return`${e.value}px`}),hi=$e(e=>{if(O(e.value))return`${e.value}ms`}),dt=$e(e=>{if(O(e.value))return`${e.value}deg`}),Ja=$e(e=>{if(e.fraction===null)return;let[t,r]=w(e.fraction,"/");if(!(!O(t)||!O(r)))return e.fraction}),yi=$e(e=>{if(O(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Ya={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",...Ja},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...D}),backdropContrast:({theme:e})=>({...e("contrast"),...D}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...D}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...dt}),backdropInvert:({theme:e})=>({...e("invert"),...D}),backdropOpacity:({theme:e})=>({...e("opacity"),...D}),backdropSaturate:({theme:e})=>({...e("saturate"),...D}),backdropSepia:({theme:e})=>({...e("sepia"),...D}),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",...he},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",...D},caretColor:({theme:e})=>e("colors"),colors:()=>({...mt}),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",...Q},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...D},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"),...he}),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",...Q},flexShrink:{0:"0",DEFAULT:"1",...Q},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%",...D},grayscale:{0:"0",DEFAULT:"100%",...D},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",...Q},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",...Q},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",...Q},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",...Q},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))",...yi},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))",...yi},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",...dt},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%",...D},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",...Q},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",...D},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",...Q},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...he},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...dt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...D},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",...D},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%",...D},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...dt},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",...Q},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",...he},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...he},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",...hi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...hi},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, outline-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",...Q}};var Qa={blocklist:[],future:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Ve(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Qa)};for(let n of t)tr(r,n);for(let n of r.configs)"darkMode"in n&&n.darkMode!==void 0&&(r.result.darkMode=n.darkMode??null),"prefix"in n&&n.prefix!==void 0&&(r.result.prefix=n.prefix??""),"blocklist"in n&&n.blocklist!==void 0&&(r.result.blocklist=n.blocklist??[]),"important"in n&&n.important!==void 0&&(r.result.important=n.important??!1);let i=Xa(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:i}}function Za(e,t){if(Array.isArray(e)&&Me(e[0]))return e.concat(t);if(Array.isArray(t)&&Me(t[0])&&Me(e))return[e,...t];if(Array.isArray(t))return t}function tr(e,{config:t,base:r,path:i,reference:n,src:l}){let o=[];for(let s of t.plugins??[])"__isOptionsFunction"in s?o.push({...s(),reference:n,src:l}):"handler"in s?o.push({...s,reference:n,src:l}):o.push({handler:s,reference:n,src:l});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 s of t.presets??[])tr(e,{path:i,base:r,config:s,reference:n,src:l});for(let s of o)e.plugins.push(s),s.config&&tr(e,{path:i,base:r,config:s.config,reference:!!s.reference,src:s.src??l});let u=t.content??[],a=Array.isArray(u)?u:u.files;for(let s of a)e.content.files.push(typeof s=="object"?s:{base:r,pattern:s});e.configs.push(t)}function Xa(e){let t=new Set,r=er(e.design,()=>e.theme,n),i=Object.assign(r,{theme:r,colors:mt});function n(l){return typeof l=="function"?l(i)??null:l??null}for(let l of e.configs){let o=l.theme??{},u=o.extend??{};for(let a in o)a!=="extend"&&t.add(a);Object.assign(e.theme,o);for(let a in u)e.extend[a]??=[],e.extend[a].push(u[a])}delete e.theme.extend;for(let l in e.extend){let o=[e.theme[l],...e.extend[l]];e.theme[l]=()=>{let u=o.map(n);return Qe({},u,Za)}}for(let l in e.theme)e.theme[l]=n(e.theme[l]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let l of Object.keys(e.theme.screens)){let o=e.theme.screens[l];o&&typeof o=="object"&&("raw"in o||"max"in o||"min"in o&&(e.theme.screens[l]=o.min))}return t}function vi({center:e,padding:t,screens:r},i){let n=[],l=null;if(e&&n.push(V("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&n.push(V("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){l=new Map;let o=Array.from(i.theme.namespace("--breakpoint").entries());if(o.sort((u,a)=>qe(u[1],a[1],"asc")),o.length>0){let[u]=o[0];n.push($("@media",`(width >= --theme(--breakpoint-${u}))`,[V("max-width","none")]))}for(let[u,a]of Object.entries(r)){if(typeof a=="object")if("min"in a)a=a.min;else continue;l.set(u,$("@media",`(width >= ${a})`,[V("max-width",a)]))}}if(typeof t=="object"&&t!==null){let o=Object.entries(t).filter(([u])=>u!=="DEFAULT").map(([u,a])=>[u,i.theme.resolveValue(u,["--breakpoint"]),a]).filter(Boolean);o.sort((u,a)=>qe(u[1],a[1],"asc"));for(let[u,,a]of o)if(l&&l.has(u))l.get(u).nodes.push(V("padding-inline",a));else{if(l)continue;n.push($("@media",`(width >= theme(--breakpoint-${u}))`,[V("padding-inline",a)]))}}if(l)for(let[,o]of l)n.push(o);return n}function rr({addVariant:e,config:t}){let r=t("darkMode",null),[i,n=".dark"]=Array.isArray(r)?r:[r];if(i==="variant"){let l;if(Array.isArray(n)||typeof n=="function"?l=n:typeof n=="string"&&(l=[n]),Array.isArray(l))for(let o of l)o===".dark"?(i=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):o.includes("&")||(i=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));n=l}i===null||(i==="selector"?e("dark",`&:where(${n}, ${n} *)`):i==="media"?e("dark","@media (prefers-color-scheme: dark)"):i==="variant"?e("dark",n):i==="class"&&e("dark",`&:is(${n} *)`))}function wi(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 i="";return r.max!==void 0&&(i+=`${r.max} >= `),i+="width",r.min!==void 0&&(i+=` >= ${r.min}`),`(${i})`}).filter(Boolean).join(", ")}var tl=64;function ae(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function $(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function z(e,t=[]){return e.charCodeAt(0)===tl?ci(e,t):ae(e,t)}function V(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ft(e){return{kind:"comment",value:e}}function te(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(te),src:e.src,dst:e.dst};case"declaration":return{kind:e.kind,property:e.property,value:e.value,important:e.important,src:e.src,dst:e.dst};case"comment":return{kind:e.kind,value:e.value,src:e.src,dst:e.dst};default:throw new Error(`Unknown node kind: ${e.kind}`)}}function A(e,t,r=[],i={}){for(let n=0;n<e.length;n++){let l=e[n],o=r[r.length-1]??null;if(l.kind==="context"){if(A(l.nodes,t,r,{...i,...l.context})===2)return 2;continue}r.push(l);let u=!1,a=0,s=t(l,{parent:o,context:i,path:r,replaceWith(c){u||(u=!0,Array.isArray(c)?c.length===0?(e.splice(n,1),a=0):c.length===1?(e[n]=c[0],a=1):(e.splice(n,1,...c),a=c.length):(e[n]=c,a=1))}})??0;if(r.pop(),u){s===0?n--:n+=a-1;continue}if(s===2)return 2;if(s!==1&&"nodes"in l){r.push(l);let c=A(l.nodes,t,r,i);if(r.pop(),c===2)return 2}}}function K(e,t){let r=0,i={file:null,code:""};function n(o,u=0){let a="",s=" ".repeat(u);if(o.kind==="declaration"){if(a+=`${s}${o.property}: ${o.value}${o.important?" !important":""};
|
|
13
|
+
`,t){r+=s.length;let c=r;r+=o.property.length,r+=2,r+=o.value?.length??0,o.important&&(r+=11);let p=r;r+=2,o.dst=[i,c,p]}}else if(o.kind==="rule"){if(a+=`${s}${o.selector} {
|
|
14
|
+
`,t){r+=s.length;let c=r;r+=o.selector.length,r+=1;let p=r;o.dst=[i,c,p],r+=2}for(let c of o.nodes)a+=n(c,u+1);a+=`${s}}
|
|
15
|
+
`,t&&(r+=s.length,r+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let c=`${s}${o.name} ${o.params};
|
|
16
|
+
`;if(t){r+=s.length;let p=r;r+=o.name.length,r+=1,r+=o.params.length;let f=r;r+=2,o.dst=[i,p,f]}return c}if(a+=`${s}${o.name}${o.params?` ${o.params} `:" "}{
|
|
17
|
+
`,t){r+=s.length;let c=r;r+=o.name.length,o.params&&(r+=1,r+=o.params.length),r+=1;let p=r;o.dst=[i,c,p],r+=2}for(let c of o.nodes)a+=n(c,u+1);a+=`${s}}
|
|
18
|
+
`,t&&(r+=s.length,r+=2)}else if(o.kind==="comment"){if(a+=`${s}/*${o.value}*/
|
|
19
|
+
`,t){r+=s.length;let c=r;r+=2+o.value.length+2;let p=r;o.dst=[i,c,p],r+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return a}let l="";for(let o of e)l+=n(o,0);return i.code=l,l}function rl(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 i="";if(r>4&&e[3]==="\\"){var n=e[2];(n==="?"||n===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var l=e.split(/[/\\]+/);return t!==!1&&l[l.length-1]===""&&l.pop(),i+l.join("/")}function ir(e){let t=rl(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function gt(e,t,r,i){if(e[0]!=="."){let u=await Ai(e,t,i);if(!u)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await Ci(bi(u).href);return{path:u,base:ki.dirname(u),module:a.default??a}}let n=await Ai(e,t,i);if(!n)throw new Error(`Could not resolve '${e}' from '${t}'`);let[l,o]=await Promise.all([Ci(bi(n).href+"?id="+Date.now()),Cr(n)]);for(let u of o)r(u);return{path:n,base:ki.dirname(n),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??=nl(import.meta.url,{moduleCache:!1,fsCache:!1}),await xi.import(e)}}var or=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],bd=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:or});var ol=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:or}),al=je.ResolverFactory.createResolver({fileSystem:new je.CachedInputFileSystem(nr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:or});async function Ai(e,t,r){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,t);if(i)return Promise.resolve(i)}if(r){let i=await r(e,t);if(i)return i}return Si(ol,e,t).catch(()=>Si(al,e,t))}function Si(e,t,r){return new Promise((i,n)=>e.resolve({},r,t,{},(l,o)=>{if(l)return n(l);i(o)}))}var Mi=ho(Ni());import vt from"tree-sitter";import wt from"tree-sitter-typescript";var ar=new vt;ar.setLanguage(wt.typescript);var lr=String.raw,ml=new vt.Query(wt.typescript,lr`
|
|
68
20
|
; export default {}
|
|
69
21
|
(export_statement
|
|
70
22
|
value: [
|
|
@@ -115,7 +67,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
115
67
|
]
|
|
116
68
|
)
|
|
117
69
|
)
|
|
118
|
-
`),
|
|
70
|
+
`),dl=new vt.Query(wt.typescript,lr`
|
|
119
71
|
(call_expression
|
|
120
72
|
function: [
|
|
121
73
|
(call_expression
|
|
@@ -168,7 +120,7 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
168
120
|
(string (string_fragment) @module_string)
|
|
169
121
|
)
|
|
170
122
|
)
|
|
171
|
-
`);function
|
|
123
|
+
`);function sr(e){try{let r=ar.parse(e).rootNode,i=hl(e),n=ml.matches(r),l=[];for(let o of n)for(let u of o.captures)if(u.name==="imports"){for(let a of u.node.children)if(!(a.type==="["||a.type==="]"||a.type===","))switch(a.type){case"identifier":let s=i[a.text];if(!s||s.export!==null)return null;l.push([s.module,null]);break;case"string":l.push([a.children[1].text,null]);break;case"call_expression":let c=dl.matches(a);if(c.length===0)return null;let p=null,f=null,m=null,d=null,g=c.flatMap(h=>h.captures);for(let h=0;h<g.length;h++){let v=g[h];switch(v.name){case"module_identifier":{f=v.node.text;break}case"module_string":{p=v.node.text;break}case"property":{if(d!==null)return null;d=v.node.text;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":{if(d===null)return null;m??={},m[d]=Ei(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let b=[],N=h;e:for(let X=h+1;X<g.length;X++){let Ae=g[X];switch(Ae.name){case"property":{if(Ae.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":b.push(Ei(Ae)),N=X}}h=N,m[d]=b,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(f!==null){let h=i[f];if(!h||h.export!==null&&h.export!=="*")return null;p=h.module}if(p===null)return null;l.push([p,m]);break;default:return null}}return l}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var gl=new vt.Query(wt.typescript,lr`
|
|
172
124
|
; ESM import
|
|
173
125
|
(import_statement
|
|
174
126
|
(import_clause
|
|
@@ -207,35 +159,98 @@ Update your stylesheet to use ${v("@config")} to specify the correct configurati
|
|
|
207
159
|
)
|
|
208
160
|
)
|
|
209
161
|
)
|
|
210
|
-
`);function
|
|
211
|
-
`)
|
|
162
|
+
`);function hl(e){let r=ar.parse(e).rootNode,i=gl.matches(r),n={};for(let l of i){let o=[],u="";for(let a=0;a<l.captures.length;a++){let s=l.captures[a];switch(s.name){case"default":o.push({name:s.node.text,export:null});break;case"imported-name":o.push({name:s.node.text,export:s.node.text});break;case"imported-from":u=s.node.text;break;case"imported-namespace":o.push({name:s.node.text,export:"*"});break;case"imported-alias":if(o.length<1)throw new Error("Unexpected alias: "+JSON.stringify(i,null,2));let c=o[o.length-1],p=c.name;c.export=p,c.name=s.node.text;break}}for(let{name:a,export:s}of o)n[a]={module:u,export:s}}return n}function Ei(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}import xl from"fs";import _i from"path";import{stripVTControlCharacters as Oi}from"util";import j from"picocolors";import Fe from"enhanced-resolve";import ur from"fs";import{createRequire as yl}from"module";var vl=yl(import.meta.url).resolve;function Pi(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return vl(e)}var wl=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),kl=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function Ri(e,t){try{return wl.resolveSync({},t,e)}catch{return kl.resolveSync({},t,e)}}var bl=Fe.ResolverFactory.createResolver({fileSystem:new Fe.CachedInputFileSystem(ur,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function cr(e,t){return bl.resolveSync({},t,e)}var kt={indent:2};function bt(){return`${j.italic(j.bold(j.blue("\u2248")))} tailwindcss ${j.blue(`v${Cl()}`)}`}function C(e){return`${j.dim(j.blue("`"))}${j.blue(e)}${j.dim(j.blue("`"))}`}function _(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let i=_i.relative(t,e);return i.startsWith("..")||(i=`.${_i.sep}${i}`),r&&i.length>e.length?e:i}function Ze(e,t){if(e.includes(`
|
|
163
|
+
`))return e.split(`
|
|
164
|
+
`).flatMap(o=>o?Ze(o,t):[""]);let r=e.split(" "),i=[],n="",l=0;for(let o of r){let u=Oi(o).length;l+u+1>t&&(i.push(n),n="",l=0),n+=(l?" ":"")+o,l+=u+(l?1:0)}return l&&i.push(n),i}function Xe(e,t=0){return`${" ".repeat(t+kt.indent)}${e}`}function xt(e,{art:t=j.gray("\u2502"),prefix:r="",print:i=we}){let n=r.length,l=" ",o=l.length,u=Oi(t).length,s=process.stderr.columns-n-o*2-u;Ze(e,s).map((c,p)=>i(`${t}${l}${p===0?r:" ".repeat(n)}${c}${l}`)),i()}function L(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.green("\u2502"),prefix:t,print:r})}function F(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.blue("\u2502"),prefix:t,print:r})}function P(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.red("\u2502"),prefix:t,print:r})}function Ct(e,{prefix:t="",print:r=we}={}){xt(e,{art:j.yellow("\u2502"),prefix:t,print:r})}function we(e=""){process.stderr.write(`${e}
|
|
165
|
+
`)}function W(e=""){process.stdout.write(`${e}
|
|
166
|
+
`)}function Cl(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(xl.readFileSync(Pi("tailwindcss/package.json"),"utf-8"));return e}var $l=Sl(import.meta.url),Vl=Li.dirname($l);async function ji(e,t,r){let[i,n]=await Promise.all([gt(t,Vl,()=>{}).then(s=>s.module),Al.readFile(t,"utf-8")]);if(!Rl(i,n))return F(`The configuration file at ${C(_(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=[],o=[],u=[];if("darkMode"in i&&u.push(Nl(i)),"content"in i&&(l=await Pl(i,t,r)),"theme"in i){let s=await Tl(e,i,r);s&&u.push(s)}"corePlugins"in i&&F("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let a=sr(n);if(a!==null)for(let[s,c]of a)o.push({base:r,path:s,options:c});return{sources:l,plugins:o,css:u.join(`
|
|
167
|
+
`)}}async function Tl(e,t,r){let i={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:n,replacedThemeKeys:l}=Ve(e,[i]),o=new Map(Array.from(l.entries()).map(([f])=>[f,!1]));Ul(e,n,l);let u="",a="",s=[],c="",p=new Map;{if("keyframes"in n.theme&&(c+=Ol(n.theme.keyframes),delete n.theme.keyframes),"container"in n.theme){let f=vi(n.theme.container,e);f.length>0&&(u+=`
|
|
168
|
+
@tw-bucket theme {
|
|
169
|
+
`,u+=K([$("@utility","container",f)]),u+=`}
|
|
170
|
+
`),delete n.theme.container}if("aria"in n.theme){for(let[f,m]of Object.entries(n.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete n.theme.aria}if("data"in n.theme){for(let[f,m]of Object.entries(n.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete n.theme.data}if("supports"in n.theme){for(let[f,m]of Object.entries(n.theme.supports??{})){let d=k(`${m}`);d.length===1&&d[0].kind==="function"&&d[0].value===""&&(d=d[0].nodes),!(d.length===3&&d[0].kind==="word"&&d[0].value===f&&d[2].kind==="function"&&d[2].value==="var")&&p.set(`supports-${f}`,`{@supports(${m}){@slot;}}`)}delete n.theme.supports}}for(let[f,m]of zr(n.theme)){if(typeof m!="string"&&typeof m!="number")continue;if(typeof m=="string"&&(m=m.replace(/\s*\/\s*<alpha-value>/,"").replace(/<alpha-value>/,"1")),f[0]==="opacity"&&(typeof m=="number"||typeof m=="string")){let h=typeof m=="string"?parseFloat(m):m;if(h>=0&&h<=1&&(m=h*100+"%"),typeof m=="string"&&f[1]===m.replace(/%$/,"")&&Ht(f[1]))continue}let d=El(f);if(d!==a&&(s.push(""),a=d),o.has(f[0])&&o.get(f[0])===!1){o.set(f[0],!0);let h=J([f[0]]);h!==null&&s.push(` ${me(`--${h}`)}-*: initial;`)}let g=J(f);g!==null&&s.push(` ${me(`--${g}`)}: ${m};`)}if(c&&s.push("",c),s.length>0&&(u+=`
|
|
212
171
|
@tw-bucket theme {
|
|
213
|
-
|
|
172
|
+
`,u+=`
|
|
214
173
|
@theme {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
174
|
+
`,u+=s.join(`
|
|
175
|
+
`)+`
|
|
176
|
+
`,u+=`}
|
|
177
|
+
`,u+=`}
|
|
178
|
+
`),p.size>0){u+=`
|
|
179
|
+
@tw-bucket custom-variant {
|
|
180
|
+
`;let f="";for(let[m,d]of p){let g=m.split("-")[0];f!==g&&(u+=`
|
|
181
|
+
`),f=g,d.startsWith("{")?u+=`@custom-variant ${m} ${d}
|
|
182
|
+
`:u+=`@custom-variant ${m} (${d});
|
|
183
|
+
`}u+=`}
|
|
184
|
+
`}return u}function Nl(e){let t="";if(rr({config:()=>e.darkMode,addVariant:(l,o)=>t=o}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
|
|
223
185
|
@tw-bucket custom-variant {
|
|
224
186
|
@custom-variant dark (${t[0]});
|
|
225
187
|
}
|
|
226
|
-
`;let
|
|
227
|
-
`:
|
|
228
|
-
`;return
|
|
188
|
+
`;let n="";for(let l of t)l.includes("{")?n+=l.replace("}","{ @slot }}")+`
|
|
189
|
+
`:n+=l+`{ @slot }
|
|
190
|
+
`;return n!==""?`
|
|
229
191
|
@tw-bucket custom-variant {
|
|
230
|
-
@custom-variant dark {${
|
|
192
|
+
@custom-variant dark {${n}};
|
|
231
193
|
}
|
|
232
|
-
`:""}function
|
|
233
|
-
`}function
|
|
194
|
+
`:""}function El(e){let t=[];for(let r=0;r<e.length-1;r++){let i=e[r];if(e[r+1][0]==="-")break;t.push(i)}return t.join("-")}async function Pl(e,t,r){let i=Dl(r),n=[],l=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,o=Array.isArray(e.content)?e.content.map(u=>({base:r,pattern:u})):(e.content?.files??[]).map(u=>typeof u=="string"&&l?{base:Li.dirname(t),pattern:u}:{base:r,pattern:u});for(let{base:u,pattern:a}of o){if(typeof a!="string")throw new Error("Unsupported content value: "+a);let s=Il({base:u,pattern:a[0]==="!"?a.slice(1):a,negated:a[0]==="!"}),c=!0;for(let p of s)if(!i.includes(p)){c=!1;break}c||n.push({base:u,pattern:a})}return n}function Rl(e,t){function r(u){return typeof u=="function"?!1:Array.isArray(u)?u.every(r):typeof u=="object"&&u!==null?Object.values(u).every(r):["string","number","boolean","undefined"].includes(typeof u)}let{plugins:i,theme:n,...l}=e;if(!r(l))return!1;let o=["darkMode","content","theme","plugins","presets","prefix","corePlugins"];if(Object.keys(e).some(u=>!o.includes(u))||sr(t)===null||e.presets&&e.presets.length>0)return!1;if(n&&typeof n=="object"){if(n.extend&&!Di(n.extend))return!1;let{extend:u,...a}=n;if(!Di(a))return!1}return!0}var _l=[...Object.keys(Mi.default),"containers"];function Di(e){for(let t of Object.keys(e))if(!_l.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 Ol(e){let t=gi({theme:{keyframes:e}});return K(t).trim()+`
|
|
195
|
+
`}function Dl(e){let t=new Ui({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Il(e){let t=new Ui({sources:[e]});return t.scan(),t.files}function Ul(e,t,r){if(r.has("spacing"))return;let i=e.theme.get(["--spacing"]);if(!i)return;let[n,l]=Ii(i);if(!(!n||!l)&&i&&!r.has("spacing"))for(let[o,u]of Object.entries(t.theme.spacing??{})){let[a,s]=Ii(u);a!==null&&ee(o)&&s===l&&parseFloat(a)===Number(o)*parseFloat(n)&&(delete t.theme.spacing[o],e.theme.clearNamespace(me(`--spacing-${o.replaceAll(".","_")}`),0))}}function Ii(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import ue from"fs/promises";import mr from"path";import{exec as Ll}from"child_process";import{readFileSync as Ml}from"fs";import ze from"fs/promises";import{dirname as jl,resolve as Ne}from"path";import{promisify as Fl}from"util";var Fi=Fl(Ll),zi={default:"-D",bun:"-d"},fr=new y(e=>{try{let t=Ne(e,"package.json");return Ml(t,"utf-8")}catch{return""}});function Ee(e){return{async manager(){return await pr.get(e)},async add(t,r="dependencies"){let i=await pr.get(e),n=t.slice();r==="devDependencies"&&n.push(zi[i]||zi.default),i==="pnpm"&&n.push("--ignore-workspace-root-check");let l=`${i} add ${n.join(" ")}`;try{return await Fi(l,{cwd:e})}catch(o){throw P(`An error occurred while running \`${l}\`
|
|
196
|
+
|
|
197
|
+
${o.stdout}
|
|
198
|
+
${o.stderr}`,{prefix:"\u21B3 "}),o}finally{fr.delete(e)}},has(t){return fr.get(e).includes(`"${t}":`)},async remove(t){let i=`${await pr.get(e)} remove ${t.join(" ")}`;try{return await Fi(i,{cwd:e})}catch(n){throw P(`An error occurred while running \`${i}\`
|
|
199
|
+
|
|
200
|
+
${n.stdout}
|
|
201
|
+
${n.stderr}`,{prefix:"\u21B3 "}),n}finally{fr.delete(e)}}}}var Ki=!1,pr=new y(async e=>{do{let t=Ne(e,"package.json");try{let i=await ze.readFile(t,"utf-8"),n=JSON.parse(i);if(n.packageManager){if(n.packageManager.includes("bun"))return"bun";if(n.packageManager.includes("yarn"))return"yarn";if(n.packageManager.includes("pnpm"))return"pnpm";if(n.packageManager.includes("npm"))return"npm"}}catch{}try{return await ze.access(Ne(e,"bun.lockb")),"bun"}catch{}try{return await ze.access(Ne(e,"bun.lock")),"bun"}catch{}try{return await ze.access(Ne(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await ze.access(Ne(e,"yarn.lock")),"yarn"}catch{}try{return await ze.access(Ne(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=jl(e),r===e)return Ki||(Ki=!0,Ct("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});async function Bi(e){let t=!1,r=!1,i=!1,n=!1,l=!1,o=mr.resolve(e,"package.json"),u;try{u=JSON.parse(await ue.readFile(o,"utf-8"))}catch{}let a=await Wl(e);if(a){let s=await zl(a);t=!0,s&&(r=!0,i=s.didAddPostcssClient,n=s.didRemoveAutoprefixer,l=s.didRemovePostCSSImport)}if(!t&&u&&"postcss"in u){let s=await Wi(u.postcss);t=!0,s&&(await ue.writeFile(o,JSON.stringify({...u,postcss:s?.json},null,2)),r=!0,i=s.didAddPostcssClient,n=s.didRemoveAutoprefixer,l=s.didRemovePostCSSImport)}if(!t){let s=await ql(e),c=null;if(s){try{c=JSON.parse(await ue.readFile(s,"utf-8"))}catch{}if(c){let p=await Wi(c);t=!0,p&&(await ue.writeFile(s,JSON.stringify(p.json,null,2)),r=!0,i=p.didAddPostcssClient,n=p.didRemoveAutoprefixer,l=p.didRemovePostCSSImport)}}}if(!t){F("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(i){let s=Object.hasOwn(u?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(u?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(s!==null)try{await Ee(e).add(["@tailwindcss/postcss@latest"],s),L(`Installed package: ${C("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(n)try{await Ee(e).remove(["autoprefixer"]),L(`Removed package: ${C("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(l)try{await Ee(e).remove(["postcss-import"]),L(`Removed package: ${C("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&a&&L(`Migrated PostCSS configuration: ${C(_(a,e))}`,{prefix:"\u21B3 "})}async function zl(e){function t(f){return/['"]?tailwindcss['"]?\: ?\{\}/.test(f)}function r(f){return/['"]?postcss-import['"]?\: ?\{\}/.test(f)}function i(f){return/['"]?autoprefixer['"]?\: ?\{\}/.test(f)}function n(f){return/['"]tailwindcss\/nesting['"]\: ?(\{\}|['"]postcss-nesting['"])/.test(f)}if(F("Migrating PostCSS configuration\u2026"),!await Hl(e))return Ct("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let o=!1,u=!1,a=!1,c=(await ue.readFile(e,"utf-8")).split(`
|
|
202
|
+
`),p=[];for(let f=0;f<c.length;f++){let m=c[f];if(t(m))o=!0,p.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(i(m))u=!0;else if(r(m)){let d=!1;for(let g=f+1;g<c.length;g++){let h=c[g];if(t(h))break;if(!n(h)){d=!0;break}}d?p.push(m):a=!0}else if(n(m)){let d=c[f+1];t(d)||p.push(m)}else p.push(m)}return await ue.writeFile(e,p.join(`
|
|
203
|
+
`)),{didAddPostcssClient:o,didRemoveAutoprefixer:u,didRemovePostCSSImport:a}}async function Wi(e){function t(c,p){return c==="tailwindcss"&&At(p)}function r(c,p){return c==="postcss-import"&&At(p)}function i(c,p){return c==="autoprefixer"&&At(p)}function n(c,p){return c==="tailwindcss/nesting"&&(p==="postcss-nesting"||At(p))}let l=!1,o=!1,u=!1,a=Object.entries(e.plugins||{}),s=[];for(let c=0;c<a.length;c++){let[p,f]=a[c];if(t(p,f))l=!0,s.push(["@tailwindcss/postcss",f]);else if(i(p,f))o=!0;else if(r(p,f)){let m=!1;for(let d=c+1;d<a.length;d++){let[g,h]=a[d];if(t(g,h))break;if(!n(g,h)){m=!0;break}}m?s.push([p,f]):u=!0}else if(n(p,f)){let[m,d]=a[c+1];t(m,d)||s.push([p,f])}else s.push([p,f])}return{json:{...e,plugins:Object.fromEntries(s)},didAddPostcssClient:l,didRemoveAutoprefixer:o,didRemovePostCSSImport:u}}var Kl=[".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 Wl(e){for(let t of Kl){let r=mr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}var Bl=[".postcssrc",".postcssrc.json"];async function ql(e){for(let t of Bl){let r=mr.resolve(e,t);try{return await ue.access(r),r}catch{}}return null}async function Hl(e){let t=await ue.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function At(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Ql}from"globby";import Zl from"path";import Xl from"postcss";import{__unstable__loadDesignSystem as Jl,compileAst as Yl}from"@tailwindcss/node";import*as Hi from"fs";import*as Gi from"fs/promises";import*as ke from"path";import*as Ji from"util";import*as St from"postcss";var Gl=33;function qi(e){let t=new y(l=>({file:l.file??l.id??null,code:l.css}));function r(l){let o=l.source;if(!o)return;let u=o.input;if(u&&o.start!==void 0&&o.end!==void 0)return[t.get(u),o.start.offset,o.end.offset]}function i(l,o){if(l.type==="decl"){let u=V(l.prop,l.value,l.important);u.src=r(l),o.push(u)}else if(l.type==="rule"){let u=z(l.selector);u.src=r(l),l.each(a=>i(a,u.nodes)),o.push(u)}else if(l.type==="atrule"){let u=$(`@${l.name}`,l.params);u.src=r(l),l.each(a=>i(a,u.nodes)),o.push(u)}else if(l.type==="comment"){if(l.text.charCodeAt(0)!==Gl)return;let u=ft(l.text);u.src=r(l),o.push(u)}}let n=[];return e.each(l=>i(l,n)),n}var ie=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=ke.resolve(process.cwd(),t);let r=await Gi.readFile(t,"utf-8"),i=St.parse(r,{from:t});return new e(i,t)}static loadSync(t){t=ke.resolve(process.cwd(),t);let r=Hi.readFileSync(t,"utf-8"),i=St.parse(r,{from:t});return new e(i,t)}static async fromString(t){let r=St.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=ke.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 et(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of et(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:i}of et(this,n=>n.parents))if(!(r.parents.size>0))for(let{meta:n}of i)for(let l of n.layers)t.add(l);return t}*pathsToRoot(){for(let{item:t,path:r}of et(this,i=>i.parents))t.parents.size>0||(yield r)}analyzeImportPaths(){let t=[],r=[];for(let i of this.pathsToRoot()){let n=!1;for(let{meta:l}of i)for(let o of l.layers)n||=o==="utilities"||o==="components";n?t.push(i):r.push(i)}return{convertiblePaths:t,nonConvertiblePaths:r}}containsRule(t){let r=!1;if(this.root.walk(i=>{if(t(i))return r=!0,!1}),r)return!0;for(let i of this.children)if(i.item.containsRule(t))return!0;return!1}async compiler(){return!this.isTailwindRoot||!this.file?null:Yl(qi(this.root),{base:ke.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:Jl(this.root.toString(),{base:ke.dirname(this.file)})}[Ji.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*et(e,t,r=[]){for(let i of t(e)){let n=[...r,i];yield*et(i.item,t,n),yield{item:i.item,path:n}}}async function Yi(e){let t=await Ql(),r=[],i=new y(a=>{try{if(t(a))return null}catch{return null}try{let s=ie.loadSync(a);return e.push(s),r.push(()=>n.process(s.root,{from:s.file})),s}catch{return null}}),n=Xl([{postcssPlugin:"mark-import-nodes",AtRule:{import(a){let s=a.params.match(/['"](.*?)['"]/)?.[1];if(!s)return;let c=a.source?.input.file?Zl.dirname(a.source.input.file):process.cwd(),p=!1;try{if(s[0]!==".")try{p=cr(`./${s}`,c)}catch{}p||(p=cr(s,c))}catch{if(s.startsWith("http://")||s.startsWith("https://")||s.startsWith("//"))return;P(`Failed to resolve import: ${C(s)} in ${C(_(a.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!p)return;let f=i.get(p);if(!f)return;a.raws.tailwind_destination_sheet_id=f.id;let m=a.source?.input.file?i.get(a.source.input.file):void 0,d=[];for(let g of w(a.params," "))g.startsWith("layer(")&&g.endsWith(")")&&d.push(g.slice(6,-1).trim());if(m){let g={layers:d};f.parents.add({item:m,meta:g}),m.children.add({item:f,meta:g})}}}}]);for(let a of e)a.file&&(i.set(a.file,a),r.push(()=>n.process(a.root,{from:a.file??void 0})));for(;r.length>0;)await r.shift()();let l=process.cwd();function o(a){let s=[];for(let c of a){if(!c.item.file)continue;let p=c.item.file.replace(l,""),f=c.meta.layers.join(", ");f.length>0?s.push(`${p} (layers: ${f})`):s.push(p)}return s.join(" <- ")}let u=[];for(let a of e){if(!a.file)continue;let{convertiblePaths:s,nonConvertiblePaths:c}=a.analyzeImportPaths();if(!(s.length>0&&c.length>0))continue;a.canMigrate=!1;let f=a.file.replace(l,"");for(let m of s)u.push(`- ${f} <- ${o(m)}`);for(let m of c)u.push(`- ${f} <- ${o(m)}`)}if(u.length===0){let a=new Set;for(let s of e)s.root.walkAtRules("config",()=>(s.isTailwindRoot=!0,!1)),!s.isTailwindRoot&&s.root.walkAtRules(c=>{(c.name==="tailwind"||c.name==="import"&&c.params.match(/^["']tailwindcss["']/)||c.name==="import"&&c.params.match(/^["']tailwindcss\/.*?["']$/))&&(s.isTailwindRoot=!0,a.add(s))});if(a.size<=1)return;{let s=new y(()=>new Set);for(let p of a)s.get(p).add(p);let c=!0;e:for(;c;){c=!1;for(let[p,f]of s)for(let[m,d]of s){if(p===m)continue;let g=[p].concat(Array.from(p.ancestors()).reverse()),h=[m].concat(Array.from(m.ancestors()).reverse());for(let v of g)for(let b of h){if(v!==b)continue;let N=v;s.delete(p),s.delete(m);for(let X of f)s.get(N).add(X);for(let X of d)s.get(N).add(X);c=!0;continue e}}}for(let[p,f]of s){p.isTailwindRoot=!0;for(let m of f)p!==m&&(m.isTailwindRoot=!1)}return}}{let a=`You have one or more stylesheets that are imported into a utility layer and non-utility layer.
|
|
204
|
+
`;throw a+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
205
|
+
`,new Error(a+u.join(`
|
|
206
|
+
`))}}import Qi from"postcss";import{format as Zi}from"prettier";function R(e,t){let r;return e.each?.((i,n)=>{let l=t(i,n,e)??0;if(l===2)return r=!1,r;if(l!==1)return r=R(i,t),r}),r}function dr(e,t){e?.each?.(r=>{dr(r,t),t(r)})}var Xi={parser:"css",semi:!0,singleQuote:!0};function en(){async function e(t){let r=[];R(t,(n,l,o)=>{n.type==="atrule"&&(n.raws.semicolon=!0),n.type==="atrule"&&n.name==="tw-bucket"?r.push(n):n.raws.tailwind_pretty&&(n.parent??=o,r.unshift(n))});let i=[];for(let n of r){let l=n.type==="atrule"&&n.name==="tw-bucket"?n.toString().trim().replace(/@tw-bucket(.*?){([\s\S]*)}/,"$2"):n.toString();if(n.type==="atrule"&&n.name==="tw-bucket"&&n.params==="user"){i.push(l);continue}if(n.type==="atrule"&&n.name==="tw-bucket"){i.push(await Zi(l,Xi));continue}n.replaceWith(Qi.parse(`${n.raws.before??""}${(await Zi(l,Xi)).trim()}`))}t.removeAll(),t.append(Qi.parse(i.map(n=>n.trim()).filter(Boolean).join(`
|
|
207
|
+
|
|
208
|
+
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as ms}from"@tailwindcss/node";import xe from"path";import ds from"postcss";import{__unstable__loadDesignSystem as sn,compile as as}from"@tailwindcss/node";import ls from"fs/promises";import be,{dirname as un}from"path";import{fileURLToPath as ss}from"url";import{execSync as ts}from"child_process";import rn from"semver";import{readFileSync as es}from"fs";import Wg from"fs/promises";function tn(e,t){try{let r=Ri(`${e}/package.json`,t);if(!r)return null;let{version:i}=JSON.parse(es(r,"utf8"));return i}catch{return null}}function E(e){return rn.satisfies(ce(),`>=${e}.0.0 <${e+1}.0.0`)}function nn(e){return rn.gte(ce(),`${e+1}.0.0`)}var rs=new y(e=>{let t=tn("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function ce(e=process.cwd()){return rs.get(e)}var is=new y(e=>{try{return ts("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),ce(e)}catch(t){try{let i=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(i.dependencies.tailwindcss.invalid)?.[1]??ce(e)}catch{return ce(e)}}});function gr(e=process.cwd()){return is.get(e)}var on=new WeakSet;function an(e,t,r){if(!e.theme.prefix||!t||!E(3))return r;on.has(e)||(e.utilities.functional("group",o=>[V("--phantom-class","group"),V("--phantom-modifier",o.modifier?.value)]),e.utilities.functional("peer",o=>[V("--phantom-class","peer"),V("--phantom-modifier",o.modifier?.value)]),on.add(e));let i=ns(e,t,r);if(!i)return r;let n=e.theme.prefix,l=null;try{e.theme.prefix=null;let o=r.slice(0,i.start)+i.base+r.slice(i.end),u=[...ne(o,e)];u.length>0&&(l=u[0])}finally{e.theme.prefix=n}return l?e.printCandidate(l):r}function ns(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 n=w(r,":").pop(),l=r.length-n.length,o=l+n.length,u=!1,a=!1;return n[n.length-1]==="!"?(u=!0,n=n.slice(0,-1)):n[0]==="!"&&(u=!0,n=n.slice(1)),n[0]==="-"&&(a=!0,n=n.slice(1)),!n.startsWith(t.prefix)&&n[0]!=="["?null:(n[0]!=="["&&(n=n.slice(t.prefix.length)),a&&(n="-"+n),u&&(n+="!"),{base:n,start:l,end:o})}var os=/([a-z]+)/;function ln(e){let t=os.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 us=ss(import.meta.url),tt=un(us),cn=String.raw;async function fn(e,t){try{e===null?e=await hr(t.base):be.isAbsolute(e)||(e=be.resolve(t.base,e));let r=be.relative(tt,e);!r.startsWith(".")&&!be.isAbsolute(r)&&(r="./"+r);let i=await cs(e),n=i.prefix?ln(i.prefix):null,l=cn`
|
|
209
|
+
@import 'tailwindcss' ${n?`prefix(${n})`:""};
|
|
210
|
+
@config '${r}';
|
|
211
|
+
`,[o,u]=await Promise.all([as(l,{base:tt,onDependency:()=>{}}),sn(l,{base:tt})]);return{designSystem:u,sources:o.sources,userConfig:i,newPrefix:n,configFilePath:e}}catch(r){P("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function cs(e){let[t,r]=await Promise.all([sn(cn`
|
|
212
|
+
@import 'tailwindcss';
|
|
213
|
+
`,{base:tt}),gt(e,tt,()=>{}).then(i=>i.module)]);return Ve(t,[{base:un(e),config:r,reference:!1}]).resolvedConfig}var fs=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function hr(e,t=e){for(let r of ps(e,t))for(let i of fs){let n=be.resolve(r,i);try{return await ls.access(n),n}catch{}}throw new Error(`No configuration file found for ${C(_(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${C("--config")} option.`)}function*ps(e,t=e){let r=be.resolve(e),i=be.resolve(t);if(!r.startsWith(i))throw new Error(`The path ${e} is not a parent of ${t}`);if(r===i){yield r;return}let n=r;do yield n,n=be.dirname(n);while(n!==i);yield i}async function pn(e,{configPath:t,base:r}){let i=e.filter(s=>s.isTailwindRoot);if(i.length===0)throw new Error(`Cannot find any CSS files that reference Tailwind CSS.
|
|
214
|
+
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${C("@tailwind")}.`);let n=i.filter(s=>{let c=!1;return s.root.walkAtRules("config",p=>{let f=xe.resolve(xe.dirname(s.file),p.params.slice(1,-1));return s.linkedConfigPath=f,c=!0,!1}),!c});if(n.length===0)return;let l=new Map,o=new y(()=>new Set);for(let s of n){if(!s.file)continue;let c=t;t===null?c=await hr(xe.dirname(s.file),r):xe.isAbsolute(c)||(c=xe.resolve(r,c)),l.set(s,c),o.get(c).add(s)}let u=new Set;for(let s of o.values())if(s.size>1)for(let c of s)u.add(c);if(u.size>1){for(let s of u)P(`Could not determine configuration file for: ${C(_(s.file,r))}
|
|
215
|
+
Update your stylesheet to use ${C("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let a=_;for(let[s,c]of l)try{if(!s||!s.file)return;L(`Linked ${C(a(c,r))} to ${C(a(s.file,r))}`,{prefix:"\u21B3 "}),s.linkedConfigPath=c;let p=xe.relative(xe.dirname(s.file),c);!p.startsWith(".")&&!xe.isAbsolute(p)&&(p="./"+p),p=ms(p);{let f=s.root,m=ds.atRule({name:"config",params:`'${p}'`});s.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(f=d)}),f.type==="root"?s.root.prepend(m):f.type==="atrule"&&f.after(m)}}catch(p){P("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import tu from"postcss";import _n from"fs/promises";import On,{extname as Ls}from"path";function mn(e,t){if(!t[0])return e;t.sort((n,l)=>n.end-l.end||n.start-l.start);let r="",i=t[0];r+=e.slice(0,i.start),r+=i.replacement;for(let n=1;n<t.length;++n){let l=t[n];r+=e.slice(i.end,l.start),r+=l.replacement,i=l}return r+=e.slice(i.end),r}import{Scanner as gs}from"@tailwindcss/oxide";async function dn(e,t="html"){let i=new gs({}).getCandidatesWithPositions({content:e,extension:t}),n=[];for(let{candidate:l,position:o}of i)n.push({rawCandidate:l,start:o,end:o+l.length});return n}function gn(e){let t=M(e);return t.important=!1,t.variants=[],t}var hs=["&&","||","?","===","==","!=","!==",">",">=","<","<="],ys=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],vs=/placeholder=\{?['"`]$/,ws=/\b\$?emit\(['"`]$/;function yn(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let a=ks.get(t.contents);for(let s=0;s<a.length;s+=2){let c=a[s],p=a[s+1];if(t.start>=c&&t.end<=p)return!1}}let[i]=ne(e,r);if(!i&&nn(3))return!1;if(i&&(i.variants.length>0||i.kind==="arbitrary"||i.kind==="static"&&i.root.includes("-")||i.kind==="functional"&&i.value!==null||i.kind==="functional"&&i.root.includes("-")||i.kind==="functional"&&i.modifier))return!0;let n="";for(let a=t.start-1;a>=0;a--){let s=t.contents.at(a);if(s===`
|
|
216
|
+
`)break;n=s+n}let l="";for(let a=t.end;a<t.contents.length;a++){let s=t.contents.at(a);if(s===`
|
|
217
|
+
`)break;l+=s}let o=hn(n),u=hn(l);if(!o||!u||l[0]==="."||l.trim().startsWith("("))return!1;for(let a of hs)if(l.trim().startsWith(a)||n.trim().endsWith(a))return!1;for(let a of ys)if(a.test(n))return!1;return!(vs.test(n)||ws.test(n))}var ks=new y(e=>{let t=[],r=0;for(;;){let i=e.indexOf("<style",r);if(i===-1)return t;if(r=i+1,!e[i+6].match(/[>\s]/))continue;let n=e.indexOf("</style>",r);if(n===-1)return t;r=n+1,t.push(i,n)}}),bs=92,xs=34,Cs=39,As=96;function hn(e){let t=null;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);switch(i){case bs:r++;break;case Cs:case xs:case As:t===i?t=null:t===null&&(t=i);break}}return t!==null}function vn(e,t,r){for(let i of e.parseCandidate(r)){let n=M(i),l=!1;if("modifier"in n&&n.modifier?.kind==="arbitrary"&&!Vt(e,n,n.modifier.value)){let{value:o,didChange:u}=$t(n.modifier.value);n.modifier.value=o,l||=u}for(let o of n.variants)wn(e,o)&&(l=!0);if(n.kind==="arbitrary"&&!Vt(e,n,n.value)){let{value:o,didChange:u}=$t(n.value);n.value=o,l||=u}if(n.kind==="functional"&&n.value&&n.value.kind==="arbitrary"&&!Vt(e,n,n.value.value)){let{value:o,didChange:u}=$t(n.value.value);n.value.value=o,l||=u}if(l)return e.printCandidate(n)}return r}function $t(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||k(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function wn(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Vt(e,Ss(t),t.value.value)){let{value:i,didChange:n}=$t(t.value.value);t.value.value=i,r||=n}return t.kind==="compound"&&wn(e,t.variant)&&(r=!0),r}function Ss(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var $s=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 Vt(e,t,r){let i=e.compileAstNodes(t).map(l=>l.node),n=!1;return A(i,l=>{if(l.kind==="declaration"&&$s.has(l.property)&&l.value==r)return n=!0,2}),n}function bn(e,t,r){if(!E(3))return r;for(let i of e.parseCandidate(r)){if(i.kind!=="functional")continue;let n=M(i),l=!1;if(i.value&&n.value&&i.value.kind==="named"&&n.value.kind==="named"&&i.value.value.match(/[A-Z]/)&&(n.value.value=kn(i.value.value),l=!0),i.modifier&&n.modifier&&i.modifier.kind==="named"&&n.modifier.kind==="named"&&i.modifier.value.match(/[A-Z]/)&&(n.modifier.value=kn(i.modifier.value),l=!0),l)return e.printCandidate(n)}return r}function kn(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function xn(e,t,r){for(let i of e.parseCandidate(r)){let n=e.printCandidate(i);if(n!==r)return n}return r}function Cn(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function An(e,t,r){for(let i of ne(r,e)){let n=M(i),l=!1;return n.kind==="functional"&&n.value?.kind==="arbitrary"&&(n.root==="grid-cols"||n.root=="grid-rows"||n.root=="object")&&(l=!0,n.value.value=w(n.value.value,",").join(" ")),l?e.printCandidate(n):r}return r}import{__unstable__loadDesignSystem as Vs}from"@tailwindcss/node";import Ts from"path";import Ns from"url";var Es=Ns.fileURLToPath(import.meta.url),Ps=Ts.dirname(Es),Rs=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"],["outline","outline-solid"]]),Sn=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"]]),_s=new y(e=>Vs('@import "tailwindcss";',{base:e}));async function $n(e,t,r){if(!E(3))return r;let i=await _s.get(Ps);function*n(l){for(let o of e.parseCandidate(l)){let u=gn(o),a=e.printCandidate(u),s=Rs.get(a);if(!s)continue;let[c]=e.parseCandidate(s);if(!c)continue;let p=M(c);p.variants=o.variants,p.important=o.important,yield[p,Sn.get(a),Sn.get(s)]}}for(let[l,o,u]of n(r)){if(o&&u){let a=e.resolveThemeValue(o,!0),s=i.resolveThemeValue(o,!0),c=e.resolveThemeValue(u,!0),p=i.resolveThemeValue(u);if(c===void 0&&p!==void 0||a!==s||c!==p)continue}return e.printCandidate(l)}return r}function Vn(e,t,r){for(let i of e.parseCandidate(r))if(i.kind==="functional"&&i.root==="max-w"&&i.value?.value.startsWith("screen-"))return e.printCandidate({...i,value:{...i.value,value:`[theme(screens.${i.value.value.slice(7)})]`}});return r}function*Tn(e){function*t(r,i=null){yield[r,i],r.kind==="compound"&&(yield*t(r.variant,r))}for(let r of e.variants)yield*t(r,null)}function Nn(e,t,r){for(let i of ne(r,e)){let n=M(i),l=!1;for(let[o]of Tn(n))if(o.kind==="compound"&&(o.root==="has"||o.root==="not"||o.root==="in")&&o.modifier!==null&&"modifier"in o.variant&&(o.variant.modifier=o.modifier,o.modifier=null),o.kind==="compound"&&o.root==="group"&&o.variant.kind==="arbitrary"&&o.variant.selector==="&"){o.modifier===null?(l=!0,q(o,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):o.modifier.kind==="named"&&(l=!0,q(o,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${o.modifier.value}]`:`in-[.group\\/${o.modifier.value}]`)));continue}return l?e.printCandidate(n):r}return r}var Tt={"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","bg-left-top":"bg-top-left","bg-left-bottom":"bg-bottom-left","bg-right-top":"bg-top-right","bg-right-bottom":"bg-bottom-right","object-left-top":"object-top-left","object-left-bottom":"object-bottom-left","object-right-top":"object-top-right","object-right-bottom":"object-bottom-right"},En=new WeakSet;function Pn(e,t,r){if(E(3)&&(Tt["outline-none"]="outline-hidden"),!En.has(e)){for(let i in Tt)e.utilities.static(i,()=>[]);En.add(e)}for(let i of e.parseCandidate(r))if(i.kind==="static"&&Object.hasOwn(Tt,i.root))return e.printCandidate({...i,root:Tt[i.root]});return r}function Rn(e,t,r){if(!E(3))return r;for(let i of e.parseCandidate(r)){if(i.variants.length<=1)continue;let n=[],l=[],o=[],u=i.variants;for(let c of i.variants)Os(e,c)?n.push(c):Is(e,c)?o.push(c):l.push(c);let a=l.some(c=>Ds(e,c)),s=[...o,...a?l.reverse():l,...n];if(!Us(u,s))return e.printCandidate({...i,variants:s})}return r}function Os(e,t){return t.kind==="static"&&t.root==="dark"?!0:yr(e,t).every(i=>i.kind==="at-rule")}function Ds(e,t){return yr(e,t).some(i=>i.kind==="rule"&&(i.selector.includes(" ")||i.selector.includes(">")||i.selector.includes("+")||i.selector.includes("~")))}function Is(e,t){return yr(e,t).some(i=>i.kind==="rule"&&(i.selector.includes("::after")||i.selector.includes("::backdrop")||i.selector.includes("::before")||i.selector.includes("::first-letter")||i.selector.includes("::first-line")||i.selector.includes("::marker")||i.selector.includes("::placeholder")||i.selector.includes("::selection")))}function yr(e,t){let r=[],i=e.compileAstNodes({kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[t],important:!1,raw:"candidate"}).map(n=>n.node);return A(i,n=>{n.kind==="rule"&&n.selector===".candidate"||n.kind==="declaration"&&n.property==="color"&&n.value==="red"||r.push(n)}),r}function Us(e,t){return e.length!==t.length?!1:e.every((r,i)=>t[i]===r)}var Ms=[Cn,an,xn,Pn,bn,$n,Vn,Rn,vn,An,Nn],js=new y(e=>{let t=oi(e);return new y(r=>new y(async i=>{let n=i;for(let o of Ms)i=await o(e,r,i);return i=e.canonicalizeCandidates([i]).pop(),typeof re.get(t).get(i)!="string"?n:i}))});async function vr(e,t,r,i){return i&&!yn(r,i,e)?r:js.get(e).get(t).get(r)}async function Dn(e,t,r,i){let n=await dn(r,i),l=[];for(let{rawCandidate:o,start:u,end:a}of n){let s=await vr(e,t,o,{contents:r,start:u,end:a});s!==o&&l.push({start:u,end:a,replacement:s})}return mn(r,l)}async function In(e,t,r){let i=On.isAbsolute(r)?r:On.resolve(process.cwd(),r),n=await _n.readFile(i,"utf-8");await _n.writeFile(i,await Dn(e,t,n,Ls(r)))}function Un({designSystem:e,userConfig:t}){function r(i){let n=i.params.split(/(\s+)/),l=n[n.length-1]==="!important"||n[n.length-1]==="#{!important}";l&&n.pop();let o=n.map(u=>{if(u.trim()==="")return u;let a=w(u,":"),s=a.pop();return l&&s[0]!=="!"&&s[s.length-1]!=="!"&&(s+="!"),[...a,s].join(":")});return async()=>{e&&(o=await Promise.all(o.map(async u=>await vr(e,t,u))),i.params=o.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(i){let n=[];i.walkAtRules("apply",l=>{n.push(r(l))}),await Promise.allSettled(n.map(l=>l()))}}}import"postcss";import Nt from"postcss-selector-parser";function Mn(e){function t(r){if(!E(3)||r.params!=="utilities"&&r.params!=="components")return;let i=r.clone();R(r,o=>{if(o.type!=="rule")return;let u=w(o.selector,",");if(u.length>1){let a=[];for(let s of u){let c=o.clone({selector:s});a.push(c)}o.replaceWith(a)}return 1});let n=new Set;R(r,o=>{if(o.type==="rule")return Nt(u=>{u.each(a=>{R(a,s=>{if(s.type==="pseudo"&&s.value===":not")return 1;s.type==="class"&&n.add(s.value)})})}).processSync(o.selector,{updateSelector:!1}),1}),R(i,o=>{o.type==="rule"&&Nt(u=>{u.each(a=>{R(a,s=>{if(s.type==="pseudo"&&s.value===":not")return 1;if(s.type==="class"&&n.has(s.value))return o.remove(),2})})}).processSync(o,{updateSelector:!0})});let l=[i];for(let o of n){let u=r.clone();l.push(u),R(u,a=>{if(a.type==="atrule"&&(!a.nodes||a.nodes?.length===0)&&a.remove(),a.type!=="rule")return;let s=!1;if(Nt(c=>{c.each(p=>{R(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===o){s=!0;let m=p.atPosition(f.source.start.line,f.source.start.column),d=m.parent,g=(m.parent?.index(m)??0)-1;for(;g>=0&&d.at(g)?.type!=="combinator";){let h=d.at(g+1),v=d.at(g);d.at(g+1).replaceWith(v),d.at(g).replaceWith(h),g--}m.replaceWith(Nt.nesting())}})})}).processSync(a,{updateSelector:!0}),!s){let c=[a],p=a.parent?.index(a)??null;if(p!==null)for(let f=p-1;f>=0&&a.parent?.nodes.at(f)?.type!=="rule";f--)a.parent?.nodes.at(f)?.type==="comment"&&c.push(a.parent?.nodes.at(f));for(let f of c)f.remove()}return 1}),u.name="utility",u.params=o,u.raws.before=`${u.raws.before??""}
|
|
218
|
+
|
|
219
|
+
`}for(let o=l.length-1;o>=0;o--){let u=l[o];dr(u,a=>{if(u===i&&a.type==="comment"){let s=!1;for(let c of l)if(c!==i&&(R(c,p=>{if(p.type==="comment"&&p.source?.start?.offset===a.source?.start?.offset)return a.remove(),s=!0,2}),s))return 1}if((a.type==="rule"||a.type==="atrule")&&a.nodes?.length===0)a.remove();else if(a.type==="rule"&&a.selector==="&"){let s=a.parent,c=!1;for(;s;){if(s.type==="rule"){c=!0;break}s=s.parent}c||a.replaceWith(a.nodes)}}),u.nodes?.length===0&&l.splice(o,1)}r.replaceWith(l)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:i})=>{let n=e.layers(),l=n.has("utilities")||n.has("components");if(l){let o=i({name:"layer",params:"utilities"});o.append(r.nodes),r.append(o)}r.walkAtRules("layer",t);{let o=new Map;R(r,u=>{if(u.type==="atrule"&&u.name==="utility"){let a=o.get(u.params);a?(a.append(u.nodes),u.remove()):o.set(u.params,u)}})}l&&r.each(o=>{o.type==="atrule"&&o.name==="layer"&&o.params==="utilities"&&o.replaceWith(o.nodes??[])})}}}import Et from"path";import Fs,{AtRule as zs}from"postcss";var jn=new WeakMap;function Kn(e,{configFilePath:t,jsConfigMigration:r}){function i(){if(!e.isTailwindRoot||!t)return;let n=jn.get(e);if(n&&n.includes(t))return;n?n.push(t):jn.set(e,[t]);let l=e.root;if(!e.file)return;let o=new zs;if(r!==null){l.walkAtRules("config",a=>{a.remove()});let u=`
|
|
234
220
|
|
|
235
|
-
|
|
236
|
-
|
|
221
|
+
`;u+=`
|
|
222
|
+
@tw-bucket source {`;for(let a of r.sources){let s=Et.resolve(a.base,a.pattern);u+=`@source '${Fn(e,s)}';
|
|
223
|
+
`}u+=`}
|
|
224
|
+
`,u+=`
|
|
225
|
+
@tw-bucket plugin {
|
|
226
|
+
`;for(let a of r.plugins){let s=a.path[0]==="."?Fn(e,Et.resolve(a.base,a.path)):a.path;if(a.options===null)u+=`@plugin '${s}';
|
|
227
|
+
`;else{u+=`@plugin '${s}' {
|
|
228
|
+
`;for(let[c,p]of Object.entries(a.options)){let f="";typeof p=="string"?f=zn(p):Array.isArray(p)?f=p.map(m=>typeof m=="string"?zn(m):""+m).join(", "):f=""+p,u+=` ${c}: ${f};
|
|
229
|
+
`}u+=`}
|
|
230
|
+
`}}u+=`}
|
|
231
|
+
`,o.append(Fs.parse(u+r.css))}l.append(o.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:i}}function Fn(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,i=Et.relative(Et.dirname(r),t);return i[0]!=="."&&(i=`./${i}`),ir(i)}function zn(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Ks from"fs/promises";import{dirname as Ws,resolve as Bs}from"path";import"postcss";function Wn(){async function e(t){let r=t.source?.input.file;if(!r)return;let i=[];t.walkAtRules("import",n=>{try{let[l,...o]=w(n.params," "),u=fi(k(l));if(!u)return;let a=u.uri[0]===".",s=u.uri.endsWith(".css");if(a&&s)return;let c=Bs(Ws(r),u.uri);s||(c+=".css"),i.push(Ks.stat(c).then(()=>{let p=s?"":".css",f=a?u.uri:`./${u.uri}`;n.params=[`'${f}${p}'`,...o].join(" ")}))}catch{}}),await Promise.allSettled(i)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function Bn({designSystem:e,userConfig:t}={}){function r(i){if(!e||!t)return;let{resolvedConfig:n}=Ve(e,[{base:"",config:t,reference:!1,src:void 0}]),l=n?.theme?.screens||{},o=new y(u=>{let a=e?.resolveThemeValue(`--breakpoint-${u}`,!0)??l?.[u];return typeof a=="string"?`(width >= theme(--breakpoint-${u}))`:a?wi(a):null});i.walkAtRules("screen",u=>{u.name="media",u.params=`screen(${u.params})`}),i.walkAtRules(u=>{if(u.name!=="media")return;let a=u.params.match(/screen\(([^)]+)\)/);if(!a)return;let s=o.get(a[1]);s&&(u.params=s)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as qs}from"postcss";function qn(){function e(t){let r="",i=[],n=[],l=null;t.each(o=>{if(o.type==="atrule"){if(o.name==="config"||o.name==="source"||o.name==="theme"||o.name==="utility"||o.name==="custom-variant"||o.name==="variant"){i.length>0&&n.push([r,i.splice(0)]);return}if(o.name==="tailwind"&&o.params==="base"||o.name==="import"&&o.params.match(/^["']tailwindcss\/base["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="base",r="base";return}if(o.name==="tailwind"&&o.params==="components"||o.name==="import"&&o.params.match(/^["']tailwindcss\/components["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="components",r="components";return}if(o.name==="tailwind"&&o.params==="utilities"||o.name==="import"&&o.params.match(/^["']tailwindcss\/utilities["']/)){i.length>0&&n.push([r,i.splice(0)]),l??="utilities",r="utilities";return}if(o.name==="layer"){i.length>0&&n.push([r,i.splice(0)]);return}if(o.name==="import"){i.length>0&&n.push([r,i.splice(0)]),n.push([r,[o]]);return}}r===""&&(o.type==="comment"||o.type==="atrule"&&!o.nodes||o.type==="atrule"&&o.name==="charset")||i.push(o)});for(let[o,u]of n){let a=o||l||"";if(a===""||u.every(p=>p.type==="comment"))continue;if(u.every(p=>p.type==="atrule"&&p.name==="import")){for(let p of u)if(!(p.type!=="atrule"||p.name!=="import")&&!p.params.includes("layer(")){let f=w(p.params," ");f.splice(1,0,`layer(${a})`),p.params=f.join(" "),p.raws.tailwind_injected_layer=!0}continue}let s=u[0],c=new qs({name:"layer",params:a,nodes:u.map(p=>p===s?p:p.remove()),raws:{tailwind_pretty:!0}});s.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import Hs from"dedent";import Gs from"postcss";var Js="currentcolor",Ys=Hs,Qs=Ys`
|
|
232
|
+
/*
|
|
233
|
+
The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
|
|
234
|
+
so we've added these compatibility styles to make sure everything still
|
|
235
|
+
looks the same as it did with Tailwind CSS v3.
|
|
236
|
+
|
|
237
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
238
|
+
color utility to any element that depends on these defaults.
|
|
239
|
+
*/
|
|
240
|
+
@layer base {
|
|
241
|
+
*,
|
|
242
|
+
::after,
|
|
243
|
+
::before,
|
|
244
|
+
::backdrop,
|
|
245
|
+
::file-selector-button {
|
|
246
|
+
border-color: theme(borderColor.DEFAULT);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
`;function Hn({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function i(l){if(!e)return!1;let o=`--${J(Y(l))}`;return!!e.theme.get([o])}function n(l){if(!E(3))return;let o=!1;if(l.walkAtRules("import",s=>{if(/['"]tailwindcss['"]/.test(s.params)||/['"]tailwindcss\/preflight['"]/.test(s.params))return o=!0,!1}),!o)return;let u="";r!==Js&&(u+=Qs,u+=`
|
|
237
250
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
251
|
+
`),u=`
|
|
252
|
+
@tw-bucket compatibility {
|
|
253
|
+
${u}
|
|
254
|
+
}
|
|
255
|
+
`;let a=Gs.parse(u);a.walkDecls(s=>{s.value.includes("theme(")&&(s.value=Zs(k(s.value),c=>i(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),l.walkAtRules("theme",s=>{s.walkDecls("--border-color",c=>{c.remove()}),s.nodes?.length===0&&s.remove()}),l.append(a)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:n}}function Zs(e,t){return S(e,(r,{replaceWith:i})=>{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 n=r.nodes[0];if(n.kind!=="word")return;let l=n.value,o=1;for(let s=o;s<r.nodes.length&&!r.nodes[s].value.includes(",");s++)l+=x([r.nodes[s]]),o=s+1;l=Xs(l);let u=r.nodes.slice(o+1),a=u.length>0?t(l,x(u)):t(l);if(a===null)return;i(k(a))}}),x(e)}function Xs(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}import{AtRule as Pt}from"postcss";var wr=["theme","base","components","utilities"];function Gn(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(i){let n=null,l=null,o=[],u=null,a=null,s=null,c=null,p=[];i.walkAtRules(f=>{if(f.name==="import"&&f.params.match(/^["']tailwindcss\/tailwind\.css["']$/)&&(f.params=f.params.replace("tailwindcss/tailwind.css","tailwindcss")),f.name==="import"&&f.params.match(/^["']tailwindcss["']/))f.params+=t;else if(f.name==="tailwind"&&f.params==="base"||f.name==="import"&&f.params.match(/^["']tailwindcss\/base["']$/))p.push("base"),o.push(f),n=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),o.push(f),l=f;else if(f.name==="tailwind"&&f.params==="components"||f.name==="tailwind"&&f.params==="screens"||f.name==="tailwind"&&f.params==="variants"||f.name==="import"&&f.params.match(/^["']tailwindcss\/components["']$/))f.remove();else if(f.name==="responsive")if(f.nodes){for(let m of f.nodes)m.raws.tailwind_pretty=!0;f.replaceWith(f.nodes)}else f.remove()}),n!==null&&l!==null?(u||Rt(o).before(new Pt({name:"import",params:`'tailwindcss'${t}`})),n?.remove(),l?.remove()):l!==null?(a||Rt(o).before(new Pt({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),l?.remove()):n!==null&&(c||Rt(o).before(new Pt({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),s||Rt(o).before(new Pt({name:"import",params:"'tailwindcss/preflight' layer(base)"})),n?.remove());{let f=p.toSorted((m,d)=>wr.indexOf(m)-wr.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=wr.toSorted((d,g)=>p.indexOf(d)-p.indexOf(g));i.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Rt(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 Jn(e,{prettyPrint:t=!1}={}){function r(o,u=0){let a=k(o);if(u&2)return[_t(a,l),null];let s=0,c=0;if(S(a,m=>{m.kind==="function"&&m.value==="theme"&&(s+=1,S(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?2:d.kind==="word"&&d.value==="/"?(c+=1,2):1))}),s===0)return[o,null];if(c===0)return[_t(a,n),null];if(c>1)return[_t(a,l),null];let p=null;return[_t(a,(m,d)=>{let g=w(m,"/").map(h=>h.trim());if(g.length>2)return null;if(a.length===1&&g.length===2&&u&1){let[h,v]=g;if(/^\d+%$/.test(v))p={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let b=Number(v)*100;p={kind:Number.isInteger(b)?"named":"arbitrary",value:b.toString()}}else p={kind:"arbitrary",value:v};m=h}return n(m,d)||l(m,d)}),p]}function i(o){let u=`--${J(Y(o))}`;return e.theme.get([u])?e.theme.prefix?`--${e.theme.prefix}-${u.slice(2)}`:u:null}function n(o,u){let a=i(o);if(a)return u?`var(${a}, ${u})`:`var(${a})`;let s=Y(o);if(s[0]==="spacing"&&e.theme.get(["--spacing"])){let c=s[1];return ee(c)?`--spacing(${c})`:null}return null}function l(o,u){let a=w(o,"/").map(p=>p.trim());o=a.shift();let s=i(o);if(!s)return null;let c=a.length>0?t?` / ${a.join(" / ")}`:`/${a.join("/")}`:"";return u?`--theme(${s}${c}, ${u})`:`--theme(${s}${c})`}return r}function _t(e,t){return S(e,(r,{parent:i,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 l=r.nodes[0];if(l.kind!=="word")return;let o=l.value,u=1;for(let c=u;c<r.nodes.length&&!r.nodes[c].value.includes(",");c++)o+=x([r.nodes[c]]),u=c+1;o=eu(o);let a=r.nodes.slice(u+1),s=a.length>0?t(o,x(a)):t(o);if(s===null)return;if(i){let c=i.nodes.indexOf(r)-1;for(;c!==-1;){let p=i.nodes[c];if(p.kind==="separator"&&p.value.trim()===""){c-=1;continue}/^[-+*/]$/.test(p.value.trim())&&(s=`(${s})`);break}}n(k(s))}}),x(e)}function eu(e){if(e[0]!=="'"&&e[0]!=='"')return e;let t="",r=e[0];for(let i=1;i<e.length-1;i++){let n=e[i],l=e[i+1];n==="\\"&&(l===r||l==="\\")?(t+=l,i++):t+=n}return t}function Yn({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=Jn(e,{prettyPrint:!0});t.walkDecls(i=>{let[n]=r(i.value);i.value=n}),t.walkAtRules(i=>{if(i.name==="media"||i.name==="custom-media"||i.name==="container"||i.name==="supports"){let[n]=r(i.params,2);i.params=n}})}}}import"postcss";function Qn(){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}}async function Zn(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await ru(e,t)}async function ru(e,t,r){return typeof e=="string"&&(e=await ie.fromString(e),e.file=r??null),tu().use(Wn()).use(Un(t)).use(Bn(t)).use(Qn()).use(Mn(e)).use(qn()).use(Gn(t)).use(Kn(e,t)).use(Hn(t)).use(Yn(t)).process(e.root,{from:e.file??void 0})}import iu from"postcss";var Xn=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function to(){async function e(t){{let u=function(a,...s){o=a,l.get(a).nodes?.push(...n.splice(0),...s)};var i=u;let n=[],l=new y(a=>{let s=iu.atRule({name:"tw-bucket",params:a,nodes:[]});return t.append(s),s});t.walkAtRules("tw-bucket",a=>{l.set(a.params,a)});let o="user";R(t,a=>{if(a.type==="atrule"&&a.name==="tw-bucket")return 1;if(a.type==="comment"){if(n.length>0){n.push(a);return}let s=eo(a.prev(),a)??1/0,c=eo(a,a.next())??1/0;s<c?l.get(o).nodes?.push(a):n.push(a)}else a.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(a.name)?u(a.name,a):a.type==="atrule"&&a.name==="layer"&&!a.nodes||a.type==="atrule"&&a.name==="import"||a.type==="atrule"&&a.name==="charset"||a.type==="atrule"&&a.name==="tailwind"?u("import",a):(a.type==="rule"||a.type,u("user",a));return 1}),n.length>0&&u(o)}let r=new Map;t.walkAtRules("tw-bucket",n=>{let l=r.get(n.params);if(!l){r.set(n.params,n);return}n.nodes&&l.append(...n.nodes)}),t.walkAtRules("tw-bucket",n=>{n.nodes?.length||n.remove()});{let n=Array.from(r.values()).sort((l,o)=>{let u=Xn.indexOf(l.params),a=Xn.indexOf(o.params);return u-a});t.removeAll(),t.append(n)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function eo(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 nu from"postcss";async function ro(e){let t=new Map,r=new Map;for(let u of e)t.set(u.id,u),u.file&&r.set(u.file,u);let i=new Set;for(let u of e){if(u.isTailwindRoot)continue;let a=!1,s=u.layers().size>0;R(u.root,c=>{if(c.type==="atrule"&&c.name==="utility")a=!0;else{if(c.type==="atrule"&&c.name==="import"&&c.params.includes("layer(")||c.type==="atrule"&&c.name==="layer"||c.type==="comment")return 1;s=!0}return a&&s?2:1}),a&&s&&i.add(u)}let n=new Map;for(let u of e){if(!u.file||u.parents.size===0||!i.has(u)&&!Array.from(u.descendants()).some(f=>i.has(f)))continue;let a=nu.root();R(u.root,f=>{if(f.type==="atrule"&&f.name==="utility")return a.append(f),1});let s=u.file.replace(/\.css$/,".utilities.css"),c=0;for(;r.has(s);)c+=1,s=u.file.replace(/\.css$/,`.utilities.${c}.css`);let p=await ie.fromRoot(a,s);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",n.set(u,p),t.set(p.id,p)}for(let[u,a]of n){for(let s of u.parents){let c=n.get(s.item);c&&a.parents.add({item:c,meta:s.meta})}for(let s of u.children){let c=n.get(s.item);c&&a.children.add({item:c,meta:s.meta})}}for(let u of e){let a=n.get(u),s=new Set;for(let c of u.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=n.get(f);if(!m)continue;let d=c.params.match(/(['"])(.*)\1/);if(!d)return;let g=d[1],h=d[2],v=h.replace(/\.css$/,m.extension),b=c.clone({params:`${g}${v}${g}`,raws:{tailwind_injected_layer:c.raws.tailwind_injected_layer,tailwind_original_params:`${g}${h}${g}`,tailwind_destination_sheet_id:m.id}});a?s.add(b):c.after(b)}a&&s.size>0&&a.root.prepend(Array.from(s))}let l=new y(()=>new Set);for(let u of t.values())for(let a of u.importRules){let s=a.raws.tailwind_destination_sheet_id;if(!s)continue;let c=t.get(s);c&&l.get(c).add(a)}let o=[];for(let u of e.slice()){for(let a of u.descendants())o.push(a);o.push(u)}for(let u of o){let a=n.get(u);if(a&&u.isEmpty){u.root=a.root;for(let s of l.get(a))s.params=s.raws.tailwind_original_params;for(let s of l.get(u))s.remove();n.delete(u)}}e.push(...n.values())}import Ce from"picocolors";function io({invalid:e,usage:t,options:r}){let i=process.stdout.columns;if(W(bt()),e&&(W(),W(`${Ce.dim("Invalid command:")} ${e}`)),t&&t.length>0){W(),W(Ce.dim("Usage:"));for(let[n,l]of t.entries()){let o=l.slice(0,l.indexOf("[")),u=l.slice(l.indexOf("["));u=u.replace(/\[.*?\]/g,c=>Ce.dim(c));let s=Ze(u,i-kt.indent-o.length-1);s.length>1&&n!==0&&W(),W(Xe(`${o}${s.shift()}`));for(let c of s)W(Xe(c,o.length))}}if(r){let n=0;for(let{alias:a}of Object.values(r))a&&(n=Math.max(n,a.length));let l=[],o=0;for(let[a,{alias:s}]of Object.entries(r)){let c=[s&&`${s.padStart(n)}`,s?a:" ".repeat(n+2)+a].filter(Boolean).join(", ");l.push(c),o=Math.max(o,c.length)}W(),W(Ce.dim("Options:"));let u=8;for(let{description:a,default:s=null}of Object.values(r)){let c=l.shift(),p=u+(o-c.length),f=2,m=i-c.length-p-f-kt.indent,d=Ze(s!==null?`${a} ${Ce.dim(`[default:\u202F${C(`${s}`)}]`)}`:a,m);W(Xe(`${Ce.blue(c)} ${Ce.dim(Ce.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let g of d)W(Xe(`${" ".repeat(c.length+p+f)}${g}`))}}}import ou from"mri";function oo(e,t=process.argv.slice(2)){let r=ou(t),i={_:r._};for(let[n,{type:l,alias:o,default:u=l==="boolean"?!1:null}]of Object.entries(e)){if(i[n]=u,o){let a=o.slice(1);r[a]!==void 0&&(i[n]=no(r[a],l))}{let a=n.slice(2);r[a]!==void 0&&(i[n]=no(r[a],l))}}return i}function no(e,t){switch(t){case"string":return It(e);case"boolean":return Ot(e);case"number":return Dt(e);case"boolean | string":return Ot(e)??It(e);case"number | string":return Dt(e)??It(e);case"boolean | number":return Ot(e)??Dt(e);case"boolean | number | string":return Ot(e)??Dt(e)??It(e);default:throw new Error(`Unhandled type: ${t}`)}}function Ot(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Dt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function It(e){return`${e}`}import{execSync as au}from"child_process";function kr(){try{return au("git status --porcelain",{encoding:"utf-8"}).trim()!==""}catch(e){return!e?.toString?.().includes("not a git repository")}}var lo={"--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"}},Ut=oo(lo);Ut["--help"]&&(io({usage:["npx @tailwindcss/upgrade"],options:lo}),process.exit(0));async function fu(){let e=process.cwd();we(bt()),we();let t=[];if(Ut["--force"]||kr()&&(P("Git directory is not clean. Please stash or commit your changes before migrating."),F(`You may use the ${C("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),F(`Upgrading from Tailwind CSS ${C(`v${ce(e)}`)}`,{prefix:"\u21B3 "}),ce(e)!==gr(e)){let r=await Ee(e).manager();P(["Version mismatch","",H.dim("```diff"),`${H.red("-")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(gr(e))}${H.dim('"')}`}`} (expected version in ${C("package.json")})`,`${H.green("+")} ${`${H.dim('"tailwindcss":')} ${`${H.dim('"')}${H.blue(ce(e))}${H.dim('"')}`}`} (installed version in ${C("node_modules")})`,H.dim("```"),"",`Make sure to run ${C(`${r} install`)} and try again.`].join(`
|
|
256
|
+
`),{prefix:"\u21B3 "}),process.exit(1)}{let r=Ut._.map(s=>uu.resolve(e,s));r.length===0&&(F("Searching for CSS files in the current directory and its subdirectories\u2026"),r=await su(["**/*.css"],{absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),r=r.filter(s=>s.endsWith(".css"));let i=await Promise.allSettled(r.map(s=>ie.load(s)));for(let s of i)s.status==="rejected"&&P(`${s.reason?.message??s.reason}`,{prefix:"\u21B3 "});let n=i.filter(s=>s.status==="fulfilled").map(s=>s.value),l=new Map(n.map(s=>[s,s.root.toString()]));try{await Yi(n)}catch(s){P(`${s?.message??s}`,{prefix:"\u21B3 "})}if(E(3))try{await pn(n,{configPath:Ut["--config"],base:e})}catch(s){P(`${s?.message??s}`,{prefix:"\u21B3 "})}n.some(s=>s.isTailwindRoot&&s.linkedConfigPath)&&F("Migrating JavaScript configuration files\u2026");let o=new Map,u=new Map;for(let s of n){if(!s.isTailwindRoot||!E(3)&&!s.linkedConfigPath)continue;let c=await fn(s.linkedConfigPath,{base:e});o.set(s,c);let p=await ji(c.designSystem,c.configFilePath,e);u.set(s,p),p!==null&&t.push(()=>ao.rm(c.configFilePath)),p!==null&&L(`Migrated configuration file: ${C(_(c.configFilePath,e))}`,{prefix:"\u21B3 "})}if(n.length>0&&F("Migrating stylesheets\u2026"),await Promise.all(n.map(async s=>{try{let c=o.get(s),p=u.get(s)??null;if(!c){for(let f of s.ancestors())if(f.isTailwindRoot){c??=o.get(f),p??=u.get(f)??null;break}}await Zn(s,{newPrefix:c?.newPrefix??null,designSystem:c?.designSystem??await s.designSystem(),userConfig:c?.userConfig??null,configFilePath:c?.configFilePath??null,jsConfigMigration:p})}catch(c){P(`${c?.message??c} in ${C(_(s.file,e))}`,{prefix:"\u21B3 "})}})),E(3)){try{await ro(n)}catch(s){P(`${s?.message??s}`,{prefix:"\u21B3 "})}for(let s of n)for(let c of s.importRules){if(!c.raws.tailwind_injected_layer)continue;let p=n.find(f=>f.id===c.raws.tailwind_destination_sheet_id);p&&p.containsRule(f=>f.type==="atrule"&&f.name==="utility")&&(c.params=c.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let s of n)l.get(s)!==s.root.toString()&&await cu([to(),en()]).process(s.root,{from:s.file});for(let s of n)s.file&&(await ao.writeFile(s.file,s.root.toString()),s.isTailwindRoot&&L(`Migrated stylesheet: ${C(_(s.file,e))}`,{prefix:"\u21B3 "}));F("Updating dependencies\u2026");{let s=Ee(e),c=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(p=>p==="tailwindcss"||s.has(p));try{await s.add(c.map(p=>`${p}@latest`));for(let p of c)L(`Updated package: ${C(p)}`,{prefix:"\u21B3 "})}catch{}}let a=n.filter(s=>s.isTailwindRoot&&s.file);a.length>0&&F("Migrating templates\u2026");{let s=new Set;for(let c of a){let p=await c.compiler();if(!p)continue;let f=await c.designSystem();if(!f)continue;let m=(p.root==="none"?[]:p.root===null?[{base:e,pattern:"**/*",negated:!1}]:[{...p.root,negated:!1}]).concat(p.sources),d=o.get(c),g=new lu({sources:m}),h=[];for(let v of g.files)v.endsWith(".css")||s.has(v)||(s.add(v),h.push(v));await Promise.allSettled(h.map(v=>In(f,d?.userConfig??null,v))),d?.configFilePath?L(`Migrated templates for configuration file: ${C(_(d.configFilePath,e))}`,{prefix:"\u21B3 "}):L(`Migrated templates for: ${C(_(c.file??"<unknown>",e))}`,{prefix:"\u21B3 "})}}}E(3)&&await Bi(e),await Promise.allSettled(t.map(r=>r())),kr()?L("Verify the changes and commit them to your repository."):L("No changes were made to your repository.")}fu().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
|