@tailwindcss/upgrade 0.0.0-insiders.e46b3d7 → 0.0.0-insiders.e48c5e8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +36 -36
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Wo=Object.create;var Wr=Object.defineProperty;var Bo=Object.getOwnPropertyDescriptor;var Go=Object.getOwnPropertyNames;var Yo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var Ho=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Jo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Go(t))!qo.call(e,i)&&i!==r&&Wr(e,i,{get:()=>t[i],enumerable:!(n=Bo(t,i))||n.enumerable});return e};var Zo=(e,t,r)=>(r=e!=null?Wo(Yo(e)):{},Jo(t||!e||!e.__esModule?Wr(r,"default",{value:e,enumerable:!0}):r,e));var pn=Ho((c0,fn)=>{"use strict";var xt=new Uint8Array(256);function ss(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:xt[r]=41,r++;break;case 91:xt[r]=93,r++;break;case 123:xt[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===xt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var pe=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,n0=new RegExp(`^${pe.source}$`),o0=new RegExp(`^${pe.source}%$`),l0=new RegExp(`^${pe.source}\\s*/\\s*${pe.source}$`),us=["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"],a0=new RegExp(`^${pe.source}(${us.join("|")})$`),cs=["deg","rad","grad","turn"],s0=new RegExp(`^${pe.source}(${cs.join("|")})$`),u0=new RegExp(`^${pe.source} +${pe.source} +${pe.source}$`);function be(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var fs={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)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Ne(e){return{__BARE_VALUE__:e}}var oe=Ne(e=>{if(be(e.value))return e.value}),F=Ne(e=>{if(be(e.value))return`${e.value}%`}),we=Ne(e=>{if(be(e.value))return`${e.value}px`}),un=Ne(e=>{if(be(e.value))return`${e.value}ms`}),Ct=Ne(e=>{if(be(e.value))return`${e.value}deg`}),ps=Ne(e=>{if(e.fraction===null)return;let[t,r]=ss(e.fraction,"/");if(!(!be(t)||!be(r)))return e.fraction}),cn=Ne(e=>{if(be(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ms={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",...ps},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...F}),backdropContrast:({theme:e})=>({...e("contrast"),...F}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...F}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ct}),backdropInvert:({theme:e})=>({...e("invert"),...F}),backdropOpacity:({theme:e})=>({...e("opacity"),...F}),backdropSaturate:({theme:e})=>({...e("saturate"),...F}),backdropSepia:({theme:e})=>({...e("sepia"),...F}),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",...we},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",...F},caretColor:({theme:e})=>e("colors"),colors:()=>({...fs}),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",...oe},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...F},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"),...we}),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",...oe},flexShrink:{0:"0",DEFAULT:"1",...oe},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%",...F},grayscale:{0:"0",DEFAULT:"100%",...F},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",...oe},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",...oe},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",...oe},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",...oe},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))",...cn},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))",...cn},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",...Ct},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%",...F},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",...oe},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",...F},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",...oe},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...we},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ct},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...F},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",...F},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%",...F},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ct},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",...oe},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",...we},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...un},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...un},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",...oe}};fn.exports=ms});import{Scanner as gc}from"@tailwindcss/oxide";import{globby as hc,isGitIgnored as yc}from"globby";import Ko from"fs/promises";import Fr from"path";import X from"picocolors";import kc from"postcss";import{Scanner as wn}from"@tailwindcss/oxide";import Ss from"fs/promises";import bn from"path";import{fileURLToPath as $s}from"url";import Fe from"enhanced-resolve";import{createJiti as os}from"jiti";import Sr from"fs";import Bg from"fs/promises";import Ar from"path";import{pathToFileURL as nn}from"url";import{__unstable__loadDesignSystem as Hg,compile as Jg,compileAst as Zg,Features as Qg,Polyfills as Xg}from"tailwindcss";import Zt from"fs/promises";import Ye from"path";var Qo=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Xo=[".js",".cjs",".mjs"],el=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],tl=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function rl(e,t){for(let r of t){let n=`${e}${r}`;if((await Zt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Zt.access(n).then(()=>!0,()=>!1))return n}return null}async function Br(e,t,r,n){let i=Xo.includes(n)?el:tl,o=await rl(Ye.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=Ye.dirname(o),n=Ye.extname(o);let l=await Zt.readFile(o,"utf-8"),s=[];for(let a of Qo)for(let u of l.matchAll(a))u[1].startsWith(".")&&s.push(Br(e,u[1],r,n));await Promise.all(s)}async function Gr(e){let t=new Set;return await Br(t,e,Ye.dirname(e),Ye.extname(e)),Array.from(t)}import*as ns from"path";function O(e){return{kind:"word",value:e}}function il(e,t){return{kind:"function",value:e,nodes:t}}function nl(e){return{kind:"separator",value:e}}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 Yr=92,ol=41,qr=58,Hr=44,ll=34,Jr=61,Zr=62,Qr=60,Xr=10,al=40,sl=39,ul=47,ei=32,ti=9;function C(e){e=e.replaceAll(`\r
|
|
2
|
+
var Go=Object.create;var Gr=Object.defineProperty;var Yo=Object.getOwnPropertyDescriptor;var qo=Object.getOwnPropertyNames;var Ho=Object.getPrototypeOf,Jo=Object.prototype.hasOwnProperty;var Zo=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qo(t))!Jo.call(e,i)&&i!==r&&Gr(e,i,{get:()=>t[i],enumerable:!(n=Yo(t,i))||n.enumerable});return e};var Xo=(e,t,r)=>(r=e!=null?Go(Ho(e)):{},Qo(t||!e||!e.__esModule?Gr(r,"default",{value:e,enumerable:!0}):r,e));var dn=Zo((g0,mn)=>{"use strict";var xt=new Uint8Array(256);function ss(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:xt[r]=41,r++;break;case 91:xt[r]=93,r++;break;case 123:xt[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===xt[r-1]&&r--;break}}return n.push(e.slice(i)),n}var me=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,u0=new RegExp(`^${me.source}$`),c0=new RegExp(`^${me.source}%$`),f0=new RegExp(`^${me.source}\\s*/\\s*${me.source}$`),us=["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"],p0=new RegExp(`^${me.source}(${us.join("|")})$`),cs=["deg","rad","grad","turn"],m0=new RegExp(`^${me.source}(${cs.join("|")})$`),d0=new RegExp(`^${me.source} +${me.source} +${me.source}$`);function be(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}var fs={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},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)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Re(e){return{__BARE_VALUE__:e}}var le=Re(e=>{if(be(e.value))return e.value}),F=Re(e=>{if(be(e.value))return`${e.value}%`}),we=Re(e=>{if(be(e.value))return`${e.value}px`}),fn=Re(e=>{if(be(e.value))return`${e.value}ms`}),Ct=Re(e=>{if(be(e.value))return`${e.value}deg`}),ps=Re(e=>{if(e.fraction===null)return;let[t,r]=ss(e.fraction,"/");if(!(!be(t)||!be(r)))return e.fraction}),pn=Re(e=>{if(be(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),ms={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",...ps},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...F}),backdropContrast:({theme:e})=>({...e("contrast"),...F}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...F}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ct}),backdropInvert:({theme:e})=>({...e("invert"),...F}),backdropOpacity:({theme:e})=>({...e("opacity"),...F}),backdropSaturate:({theme:e})=>({...e("saturate"),...F}),backdropSepia:({theme:e})=>({...e("sepia"),...F}),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",...we},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",...F},caretColor:({theme:e})=>e("colors"),colors:()=>({...fs}),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",...le},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...F},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"),...we}),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",...le},flexShrink:{0:"0",DEFAULT:"1",...le},fontFamily:{sans:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"','"Noto Sans"',"Arial","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%",...F},grayscale:{0:"0",DEFAULT:"100%",...F},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",...le},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",...le},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",...le},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",...le},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))",...pn},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))",...pn},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",...Ct},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%",...F},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",...le},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",...F},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",...le},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...we},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ct},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...F},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",...F},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%",...F},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ct},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",...le},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",...we},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...we},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",...fn},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...fn},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",...le}};mn.exports=ms});import{Scanner as gc}from"@tailwindcss/oxide";import{globby as hc,isGitIgnored as kc}from"globby";import Wo from"fs/promises";import Br from"path";import X from"picocolors";import yc from"postcss";import{Scanner as xn}from"@tailwindcss/oxide";import As from"fs/promises";import Cn from"path";import{fileURLToPath as $s}from"url";import We from"enhanced-resolve";import{createJiti as os}from"jiti";import Tr from"fs";import Jg from"fs/promises";import $r from"path";import{pathToFileURL as ln}from"url";import{__unstable__loadDesignSystem as e0,compile as t0,compileAst as r0,Features as i0,Polyfills as n0}from"tailwindcss";import Zt from"fs/promises";import qe from"path";var el=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],tl=[".js",".cjs",".mjs"],rl=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],il=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function nl(e,t){for(let r of t){let n=`${e}${r}`;if((await Zt.stat(n).catch(()=>null))?.isFile())return n}for(let r of t){let n=`${e}/index${r}`;if(await Zt.access(n).then(()=>!0,()=>!1))return n}return null}async function Yr(e,t,r,n){let i=tl.includes(n)?rl:il,o=await nl(qe.resolve(r,t),i);if(o===null||e.has(o))return;e.add(o),r=qe.dirname(o),n=qe.extname(o);let l=await Zt.readFile(o,"utf-8"),s=[];for(let a of el)for(let u of l.matchAll(a))u[1].startsWith(".")&&s.push(Yr(e,u[1],r,n));await Promise.all(s)}async function qr(e){let t=new Set;return await Yr(t,e,qe.dirname(e),qe.extname(e)),Array.from(t)}import*as ns from"path";function O(e){return{kind:"word",value:e}}function ol(e,t){return{kind:"function",value:e,nodes:t}}function ll(e){return{kind:"separator",value:e}}function C(e){let t="";for(let r of e)switch(r.kind){case"word":case"separator":{t+=r.value;break}case"function":t+=r.value+"("+C(r.nodes)+")"}return t}var Hr=92,al=41,Jr=58,Zr=44,sl=34,Qr=61,Xr=62,ei=60,ti=10,ul=40,cl=39,fl=47,ri=32,ii=9;function x(e){e=e.replaceAll(`\r
|
|
3
3
|
`,`
|
|
4
|
-
`);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case Yr:{i+=e[l]+e[l+1],l++;break}case ul:{if(i.length>0){let u=O(i);n?n.nodes.push(u):t.push(u),i=""}let a=O(e[l]);n?n.nodes.push(a):t.push(a);break}case qr:case Hr:case Jr:case Zr:case Qr:case Xr:case ei:case ti:{if(i.length>0){let p=O(i);n?n.nodes.push(p):t.push(p),i=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==qr&&o!==Hr&&o!==Jr&&o!==Zr&&o!==Qr&&o!==Xr&&o!==ei&&o!==ti));u++);l=u-1;let c=nl(e.slice(a,u));n?n.nodes.push(c):t.push(c);break}case sl:case ll:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Yr)u+=1;else if(o===s){l=u;break}i+=e.slice(a,l+1);break}case al:{let a=il(i,[]);i="",n?n.nodes.push(a):t.push(a),r.push(a),n=a;break}case ol:{let a=r.pop();if(i.length>0){let u=O(i);a?.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(O(i)),t}var Qt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function ri(e){return e.indexOf("(")!==-1&&Qt.some(t=>e.includes(`${t}(`))}function Xt(e){if(!Qt.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let l=e.charCodeAt(o);if(l>=48&&l<=57||n!==null&&(l===37||l>=97&&l<=122||l>=65&&l<=90)?n=o:(i=n,n=null),l===40){t+=e[o];let s=o;for(let u=o-1;u>=0;u--){let c=e.charCodeAt(u);if(c>=48&&c<=57)s=u;else if(c>=97&&c<=122)s=u;else break}let a=e.slice(s,o);if(Qt.includes(a)){r.unshift(!0);continue}else if(r[0]&&a===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(l===41)t+=e[o],r.shift();else if(l===44&&r[0]){t+=", ";continue}else{if(l===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((l===43||l===42||l===47||l===45)&&r[0]){let s=t.trimEnd(),a=s.charCodeAt(s.length-1),u=s.charCodeAt(s.length-2),c=e.charCodeAt(o+1);if((a===101||a===69)&&u>=48&&u<=57){t+=e[o];continue}else if(a===43||a===42||a===47||a===45){t+=e[o];continue}else if(a===40||a===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:a>=48&&a<=57||c>=48&&c<=57||a===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function qe(e){if(e.indexOf("(")===-1)return Le(e);let t=C(e);return er(t),e=x(t),e=Xt(e),e}function Le(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 er(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Le(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Le(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=Le(t.nodes[r].value,!0);continue}er([t.nodes[r]])}break}t.value=Le(t.value),er(t.nodes);break}case"separator":case"word":{t.value=Le(t.value);break}default:cl(t)}}function cl(e){throw new Error(`Unexpected value: ${e}`)}var y=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var tr=new Uint8Array(256);function Ue(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:tr[t]=41,t++;break;case 91:tr[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===tr[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var ut=new Uint8Array(256);function b(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:ut[r]=41,r++;break;case 91:ut[r]=93,r++;break;case 123:ut[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===ut[r-1]&&r--;break}}return n.push(e.slice(i)),n}var rr=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(rr||{}),k={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function w(e,t){typeof t=="function"?ii(e,t):ii(e,t.enter,t.exit)}function ii(e,t=()=>k.Continue,r=()=>k.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let o=[],l=n;for(;l;){let s=l.value[2];s&&o.push(s),l=l.prev}return o.reverse(),o}};for(;n!==null;){let o=n.value,l=o[0],s=o[1],a=o[2];if(s>=l.length){n=n.prev,i.depth-=1;continue}if(i.parent=a,i.siblings=l,s>=0){i.index=s;let f=l[s],m=t(f,i)??k.Continue;switch(m.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),o[1]=~s;continue}case 2:return;case 1:{o[1]=~s;continue}case 3:{l.splice(s,1,...m.nodes);continue}case 5:{l.splice(s,1,...m.nodes);return}case 4:{l.splice(s,1,...m.nodes),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${rr[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let u=~s;i.index=u;let c=l[u],p=r(c,i)??k.Continue;switch(p.kind){case 0:o[1]=u+1;continue;case 2:return;case 3:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}case 5:{l.splice(u,1,...p.nodes);return}case 4:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${rr[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}var fl=58,ni=45,oi=97,li=122,ai=/^[a-zA-Z0-9_.%-]+$/;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(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),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(Me),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Me(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:Me(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ue(e,t){let r=b(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 p=r.length-1;p>=0;--p){let f=t.parseVariant(r[p]);if(f===null)return;i.push(f)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[l,s=null,a]=b(n,"/");if(a)return;let u=s===null?null:pl(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let p=l.charCodeAt(1);if(p!==ni&&!(p>=oi&&p<=li))return;l=l.slice(1,-1);let f=l.indexOf(":");if(f===-1||f===0||f===l.length-1)return;let m=l.slice(0,f),d=qe(l.slice(f+1));if(!Ue(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let c;if(l[l.length-1]==="]"){let p=l.indexOf("-[");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+1);c=[[f,m]]}else if(l[l.length-1]===")"){let p=l.indexOf("-(");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+2,-1),d=b(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Ue(m))return;c=[[f,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=ml(l,p=>t.utilities.has(p,"functional"));for(let[p,f]of c){let m={kind:"functional",root:p,modifier:u,value:null,variants:i,important:o,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let h=qe(f.slice(d+1,-1));if(!Ue(h))continue;let v=null;for(let $=0;$<h.length;$++){let T=h.charCodeAt($);if(T===fl){v=h.slice(0,$),h=h.slice($+1);break}if(!(T===ni||T>=oi&&T<=li))break}if(h.length===0||h.trim().length===0||v==="")continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=s===null||m.modifier?.kind==="arbitrary"?null:`${f}/${s}`;if(!ai.test(f))continue;m.value={kind:"named",value:f,fraction:h}}}yield m}}function pl(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=qe(e.slice(1,-1));return!Ue(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]!=="-"||!Ue(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:qe(e)})):ai.test(e)?{kind:"named",value:e}:null}function*ml(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function nr(e){if(e===null)return"";let t=hl(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${or(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var dl=new y(e=>{let t=C(e),r=new Set,n=new Set(["~",">","+","-","*","/"]);return w(t,(i,o)=>{if(i.kind==="word"&&n.has(i.value)){let l=o.index;if(l===-1)return;let s=o.siblings[l-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=o.siblings[l+1];if(a?.kind!=="separator"||a.value!==" ")return;let u=o.siblings[l-2];if(u&&n.has(u.value))return;let c=o.siblings[l+2];if(c&&n.has(c.value))return;r.add(s),r.add(a)}else if(i.kind==="separator"&&i.value.length>0&&i.value.trim()==="")(o.siblings[0]===i||o.siblings[o.siblings.length-1]===i)&&r.add(i);else if(i.kind==="separator"&&i.value.trim()===",")i.value=",";else if(i.kind==="function"&&i.value.startsWith("--")){let l=o.index;if(l<=0)return;let s=o.siblings[l-1];if(s?.kind==="separator"&&s.value===",")return;let a=o.siblings[l-2];return a&&!n.has(a.value)?void 0:k.ReplaceSkip({kind:"function",value:"",nodes:[i]})}}),r.size>0&&w(t,i=>{if(r.has(i))return r.delete(i),k.ReplaceSkip([])}),ir(t),x(t)});function or(e){return dl.get(e)}var Ic=new y(e=>{let t=C(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 ir(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=He(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=He(t.value);for(let r=0;r<t.nodes.length;r++)ir([t.nodes[r]]);break}t.value=He(t.value),ir(t.nodes);break}case"separator":t.value=He(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=He(t.value));break}default:yl(t)}}var gl=new y(e=>{let t=C(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function hl(e){return gl.get(e)}function yl(e){throw new Error(`Unexpected value: ${e}`)}function He(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Je(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(o===l?0:o<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var kl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,z=new y(e=>{let t=kl.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=Number(r);if(Number.isNaN(n))return null;let i=t.groups?.unit;return i===void 0?[n,null]:[n,i]});function ye(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",l=t.charCodeAt(0);if(r===1&&l===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&l===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function Ze(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>{if(t.length<=2)return t[1];let r=Number.parseInt(t.slice(1).trim(),16);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}var ce=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Yc=new RegExp(`^${ce.source}$`);var qc=new RegExp(`^${ce.source}%$`);var Hc=new RegExp(`^${ce.source}\\s*/\\s*${ce.source}$`);var vl=["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"],wl=new RegExp(`^${ce.source}(${vl.join("|")})$`),bl=/^(--spacing)\(/i;function lr(e){return wl.test(e)||bl.test(e)||ri(e)}var xl=["deg","rad","grad","turn"],Jc=new RegExp(`^${ce.source}(${xl.join("|")})$`);var Zc=new RegExp(`^${ce.source} +${ce.source} +${ce.source}$`);function j(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Z(e){return si(e,.25)}function ar(e){return si(e,.25)}function si(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ze(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 Al={"--alpha":Sl,"--spacing":$l,"--theme":Tl,theme:El};function Sl(e,t,r,...n){let[i,o]=b(r,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return ze(i,o)}function $l(e,t,r,...n){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(n.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${n.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");let o=z.get(r);if(o){if(o[0]===0)return"0";if(o[0]===1)return i}return`calc(${i} * ${r})`}function Tl(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.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(n.length===0)return o;let l=n.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=C(o);return Rl(s,l),x(s)}return o}function El(e,t,r,...n){r=Vl(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)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 i}var Af=new RegExp(Object.keys(Al).map(e=>`${e}\\(`).join("|"));function Vl(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Rl(e,t){w(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 n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function sr(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let l=e.charCodeAt(o),s=t.charCodeAt(o);if(l>=48&&l<=57&&s>=48&&s<=57){let a=o,u=o+1,c=o,p=o+1;for(l=e.charCodeAt(u);l>=48&&l<=57;)l=e.charCodeAt(++u);for(s=t.charCodeAt(p);s>=48&&s<=57;)s=t.charCodeAt(++p);let f=e.slice(a,u),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(l!==s)return l-s}return e.length-t.length}function ci(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;je(e.charCodeAt(t));)t++;{for(r=t;t<n;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 i=e.slice(r,t);for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(t);if(l===61)o="=",t++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;je(e.charCodeAt(t));)t++;if(t===n)return null;let s="",a=null;if(l=e.charCodeAt(t),l===39||l===34){a=e[t],t++,r=t;for(let c=t;c<n;c++){let p=e.charCodeAt(c);p===l?t=c+1:p===92&&c++}s=e.slice(r,t-1)}else{for(r=t;t<n&&!je(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:o,quote:a,value:s,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;je(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:o,quote:a,value:s,sensitivity:u}}function je(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function fi(e){let t=!1;return w(e,{exit(r){if(r.kind!=="function"||r.value!=="calc"&&r.value!==""||r.nodes.length!==5||r.nodes[2].kind!=="word"||r.nodes[2].value!=="*"&&r.nodes[2].value!=="+")return;let n=r.nodes[0],i=r.nodes[4];if(Pl(n,i)){t=!0;let o={kind:"function",value:r.value,nodes:[i,r.nodes[1],r.nodes[2],r.nodes[3],n]};return k.ReplaceSkip(o)}}}),[t,e]}function Pl(e,t){let r=e.kind==="word"?z.get(e.value):null,n=t.kind==="word"?z.get(t.value):null;if(r!==null&&n===null)return!0;if(r===null&&n!==null)return!1;if(r!==null&&n!==null){let[i,o]=r,[l,s]=n;if(o===null&&s!==null)return!0;if(o!==null&&s===null)return!1;if(i!==l)return i-l>0;if(o!==s)return(o??"").localeCompare(s??"")>0}return x([e]).localeCompare(x([t]))>0}function pi(e){let t=[];return mi(e,[],(r,n)=>{if(Il(r))return t.push([n,r]),1;if(Ll(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 n[0]==="fontSize"?(t.push([n,r[0]]),r.length>=2&&t.push([[...n,"-line-height"],r[1]])):t.push([n,r.join(", ")]),1}),t}var _l={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},Ol={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},Dl=/^[a-zA-Z0-9-_%/.]+$/;function te(e){let t=_l[e[0]];if(t&&e[1]==="DEFAULT")return`default-${t}`;if(e[0]==="container")return null;for(let n of e)if(!Dl.test(n))return null;let r=Ol[e[0]];return r&&(e=e.slice(),e[0]=r),e.map((n,i,o)=>n==="1"&&i!==o.length-1?"":n).map((n,i)=>(n=n.replaceAll(".","_"),(i===0||n.startsWith("-")||n==="lineHeight")&&(n=n.replace(/([a-z])([A-Z])/g,(l,s,a)=>`${s}-${a.toLowerCase()}`)),n)).filter((n,i)=>n!=="DEFAULT"||i!==e.length-1).join("-")}function Il(e){return typeof e=="number"||typeof e=="string"}function Ll(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 mi(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],l=r(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&mi(i,o,r)===2)return 2}}}function ft(e,t=null,r=!0){let[n,i]=Xe(C(e),t,r);return n?x(i):e}function Xe(e,t=null,r=!0){let n=!1;return w(e,{exit(i,o){if(i.kind==="word"&&i.value!=="0"){let l=di(i.value,t,r);if(l===null||l===i.value)return;if(l==="0"&&o.parent?.kind==="function"){let s=di(i.value,t,!1);return s===null?void 0:(n=!0,k.ReplaceSkip(O(s)))}return n=!0,k.ReplaceSkip(O(l))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5||i.nodes[2].kind!=="word")return;let l=i.nodes[0],s=i.nodes[2].value,a=i.nodes[4],u=l.kind==="word"?z.get(l.value):null,c=a.kind==="word"?z.get(a.value):null;if(s==="*"&&(u?.[0]===0&&u?.[1]===null||c?.[0]===0&&c?.[1]===null))return n=!0,k.ReplaceSkip(O("0"));if(s==="*"&&u?.[0]===0&&u?.[1]!==null&&c?.[1]===null)return n=!0,o.parent?.kind==="function"?k.ReplaceSkip(O(`0${u[1]}`)):k.ReplaceSkip(O("0"));if(s==="*"&&c?.[0]===0&&c?.[1]!==null&&u?.[1]===null)return n=!0,o.parent?.kind==="function"?k.ReplaceSkip(O(`0${c[1]}`)):k.ReplaceSkip(O("0"));if(s==="*"){if(u?.[0]===1&&u?.[1]===null)return n=!0,k.ReplaceSkip(a);if(c?.[0]===1&&c?.[1]===null)return n=!0,k.ReplaceSkip(l)}if(s==="*"||s==="+"){let p=u??c,f=u===null?l:c===null?a:null;if(p!==null&&f!==null&&f.kind==="function"&&(f.value==="calc"||f.value==="")&&f.nodes.length===5&&f.nodes[2].kind==="word"&&f.nodes[2].value===s){let m=f.nodes[0],d=f.nodes[4],g=m.kind==="word"?z.get(m.value):null,h=d.kind==="word"?z.get(d.value):null,v=g??h,$=g===null?m:h===null?d:null;if(v!==null&&$!==null){if(s==="*"&&!(p[1]===null&&v[1]===null||p[1]===null&&v[1]!==null||p[1]!==null&&v[1]===null)||s==="+"&&p[1]!==v[1])return;let T;switch(s){case"*":{T=`${p[0]*v[0]}${p[1]??v[1]??""}`;break}case"+":{T=`${p[0]+v[0]}${p[1]??v[1]??""}`;break}default:return}if(n=!0,s==="*"&&T==="1")return k.ReplaceSkip($);let A={kind:"function",value:i.value,nodes:[O(T),i.nodes[1],i.nodes[2],i.nodes[3],$]};return k.ReplaceSkip(A)}}}if(u===null||c===null)return;switch(s){case"*":{if(u[1]===c[1]||u[1]===null&&c[1]!==null||u[1]!==null&&c[1]===null)return n=!0,k.ReplaceSkip(O(`${u[0]*c[0]}${u[1]??c[1]??""}`));break}case"+":{if(u[1]===c[1])return n=!0,k.ReplaceSkip(O(`${u[0]+c[0]}${u[1]??""}`));break}case"-":{if(u[1]===c[1])return n=!0,k.ReplaceSkip(O(`${u[0]-c[0]}${u[1]??""}`));break}case"/":{if(c[0]!==0&&(u[1]===null&&c[1]===null||u[1]!==null&&c[1]===null)){let p=u[0]/c[0];if(Math.round(p*100)/100!==p)break;return n=!0,k.ReplaceSkip(O(`${p}${u[1]??""}`))}break}}}}}),[n,e]}function di(e,t=null,r=!0){let n=z.get(e);if(n===null)return null;let[i,o]=n;if(o===null)return`${i}`;if(i===0&&lr(e))return r?"0":`0${o}`;if(!r)return`${e}`;switch(o.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}${o}`}}function Ee(e,t="top",r="right",n="bottom",i="left"){return ki(`${e}-${t}`,`${e}-${r}`,`${e}-${n}`,`${e}-${i}`)}function ki(e="top",t="right",r="bottom",n="left"){return{1:[[e,0],[t,0],[r,0],[n,0]],2:[[e,0],[t,1],[r,0],[n,1]],3:[[e,0],[t,1],[r,2],[n,1]],4:[[e,0],[t,1],[r,2],[n,3]]}}function q(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var gi={inset:ki(),margin:Ee("margin"),padding:Ee("padding"),"scroll-margin":Ee("scroll-margin"),"scroll-padding":Ee("scroll-padding"),"border-width":Ee("border","top-width","right-width","bottom-width","left-width"),"border-style":Ee("border","top-style","right-style","bottom-style","left-style"),"border-color":Ee("border","top-color","right-color","bottom-color","left-color"),gap:q("row-gap","column-gap"),overflow:q("overflow-x","overflow-y"),"overscroll-behavior":q("overscroll-behavior-x","overscroll-behavior-y")},hi={"inset-block":q("top","bottom"),"inset-inline":q("left","right"),"margin-block":q("margin-top","margin-bottom"),"margin-inline":q("margin-left","margin-right"),"padding-block":q("padding-top","padding-bottom"),"padding-inline":q("padding-left","padding-right"),"scroll-margin-block":q("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":q("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":q("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":q("scroll-padding-left","scroll-padding-right")},yi={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function vi(e,t){if(t&2){if(e.property in hi){let r=b(e.value," ");return hi[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}if(e.property in yi)return yi[e.property]?.map(r=>E(r,e.value,e.important))}if(e.property in gi){let r=b(e.value," ");return gi[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}return null}function Ul(e){return{kind:"combinator",value:e}}function ur(e){return{kind:"complex",nodes:e}}function wi(e){return{kind:"compound",nodes:e}}function Ml(e,t){return{kind:"function",value:e,nodes:t}}function zl(e){return{kind:"list",nodes:e}}function ke(e){return{kind:"selector",value:e}}function jl(e){return{kind:"value",value:e}}function le(e,t=!1){let r="";for(let n of e)switch(n.kind){case"selector":case"value":{r+=n.value;break}case"combinator":{t||n.value===" "?r+=n.value:r+=` ${n.value} `;break}case"function":{r+=`${n.value}(${le(n.nodes,t)})`;break}case"complex":case"compound":{r+=le(n.nodes,t);break}case"list":{r+=n.nodes.map(i=>le([i],t)).join(t?",":", ");break}}return r}var bi=92,Kl=93,xi=41,Ci=58,Ai=44,Fl=34,Wl=46,Si=62,cr=10,Bl=35,$i=91,Ti=40,Ei=43,Gl=39,fr=32,pr=9,Vi=126,Yl=38,ql=42;function pt(e){e=e.replaceAll(`\r
|
|
4
|
+
`);let t=[],r=[],n=null,i="",o;for(let l=0;l<e.length;l++){let s=e.charCodeAt(l);switch(s){case Hr:{i+=e[l]+e[l+1],l++;break}case fl:{if(i.length>0){let u=O(i);n?n.nodes.push(u):t.push(u),i=""}let a=O(e[l]);n?n.nodes.push(a):t.push(a);break}case Jr:case Zr:case Qr:case Xr:case ei:case ti:case ri:case ii:{if(i.length>0){let p=O(i);n?n.nodes.push(p):t.push(p),i=""}let a=l,u=l+1;for(;u<e.length&&(o=e.charCodeAt(u),!(o!==Jr&&o!==Zr&&o!==Qr&&o!==Xr&&o!==ei&&o!==ti&&o!==ri&&o!==ii));u++);l=u-1;let c=ll(e.slice(a,u));n?n.nodes.push(c):t.push(c);break}case cl:case sl:{let a=l;for(let u=l+1;u<e.length;u++)if(o=e.charCodeAt(u),o===Hr)u+=1;else if(o===s){l=u;break}i+=e.slice(a,l+1);break}case ul:{let a=ol(i,[]);i="",n?n.nodes.push(a):t.push(a),r.push(a),n=a;break}case al:{let a=r.pop();if(i.length>0){let u=O(i);a?.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(O(i)),t}var Qt=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function ni(e){return e.indexOf("(")!==-1&&Qt.some(t=>e.includes(`${t}(`))}function Xt(e){if(!Qt.some(o=>e.includes(o)))return e;let t="",r=[],n=null,i=null;for(let o=0;o<e.length;o++){let l=e.charCodeAt(o);if(l>=48&&l<=57||n!==null&&(l===37||l>=97&&l<=122||l>=65&&l<=90)?n=o:(i=n,n=null),l===40){t+=e[o];let s=o;for(let u=o-1;u>=0;u--){let c=e.charCodeAt(u);if(c>=48&&c<=57)s=u;else if(c>=97&&c<=122)s=u;else break}let a=e.slice(s,o);if(Qt.includes(a)){r.unshift(!0);continue}else if(r[0]&&a===""){r.unshift(!0);continue}r.unshift(!1);continue}else if(l===41)t+=e[o],r.shift();else if(l===44&&r[0]){t+=", ";continue}else{if(l===32&&r[0]&&t.charCodeAt(t.length-1)===32)continue;if((l===43||l===42||l===47||l===45)&&r[0]){let s=t.trimEnd(),a=s.charCodeAt(s.length-1),u=s.charCodeAt(s.length-2),c=e.charCodeAt(o+1);if((a===101||a===69)&&u>=48&&u<=57){t+=e[o];continue}else if(a===43||a===42||a===47||a===45){t+=e[o];continue}else if(a===40||a===44){t+=e[o];continue}else e.charCodeAt(o-1)===32?t+=`${e[o]} `:a>=48&&a<=57||c>=48&&c<=57||a===41||c===40||c===43||c===42||c===47||c===45||i!==null&&i===o-1?t+=` ${e[o]} `:t+=e[o]}else t+=e[o]}}return t}function He(e){if(e.indexOf("(")===-1)return Le(e);let t=x(e);return er(t),e=C(t),e=Xt(e),e}function Le(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 er(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Le(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Le(t.value);for(let r=0;r<t.nodes.length;r++){if(r==0&&t.nodes[r].kind==="word"){t.nodes[r].value=Le(t.nodes[r].value,!0);continue}er([t.nodes[r]])}break}t.value=Le(t.value),er(t.nodes);break}case"separator":case"word":{t.value=Le(t.value);break}default:pl(t)}}function pl(e){throw new Error(`Unexpected value: ${e}`)}var k=class extends Map{constructor(r){super();this.factory=r}factory;get(r){let n=super.get(r);return n===void 0&&(n=this.factory(r,this),this.set(r,n)),n}};var tr=new Uint8Array(256);function Ue(e){let t=0,r=e.length;for(let n=0;n<r;n++){let i=e.charCodeAt(n);switch(i){case 92:n+=1;break;case 39:case 34:for(;++n<r;){let o=e.charCodeAt(n);if(o===92){n+=1;continue}if(o===i)break}break;case 40:tr[t]=41,t++;break;case 91:tr[t]=93,t++;break;case 123:break;case 93:case 125:case 41:if(t===0)return!1;t>0&&i===tr[t-1]&&t--;break;case 59:if(t===0)return!1;break}}return!0}var ct=new Uint8Array(256);function b(e,t){let r=0,n=[],i=0,o=e.length,l=t.charCodeAt(0);for(let s=0;s<o;s++){let a=e.charCodeAt(s);if(r===0&&a===l){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<o;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:ct[r]=41,r++;break;case 91:ct[r]=93,r++;break;case 123:ct[r]=125,r++;break;case 93:case 125:case 41:r>0&&a===ct[r-1]&&r--;break}}return n.push(e.slice(i)),n}var rr=(l=>(l[l.Continue=0]="Continue",l[l.Skip=1]="Skip",l[l.Stop=2]="Stop",l[l.Replace=3]="Replace",l[l.ReplaceSkip=4]="ReplaceSkip",l[l.ReplaceStop=5]="ReplaceStop",l))(rr||{}),y={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function w(e,t){typeof t=="function"?oi(e,t):oi(e,t.enter,t.exit)}function oi(e,t=()=>y.Continue,r=()=>y.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let o=[],l=n;for(;l;){let s=l.value[2];s&&o.push(s),l=l.prev}return o.reverse(),o}};for(;n!==null;){let o=n.value,l=o[0],s=o[1],a=o[2];if(s>=l.length){n=n.prev,i.depth-=1;continue}if(i.parent=a,i.siblings=l,s>=0){i.index=s;let f=l[s],m=t(f,i)??y.Continue;switch(m.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),o[1]=~s;continue}case 2:return;case 1:{o[1]=~s;continue}case 3:{l.splice(s,1,...m.nodes);continue}case 5:{l.splice(s,1,...m.nodes);return}case 4:{l.splice(s,1,...m.nodes),o[1]+=m.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${rr[m.kind]??`Unknown(${m.kind})`}\` in enter.`)}}let u=~s;i.index=u;let c=l[u],p=r(c,i)??y.Continue;switch(p.kind){case 0:o[1]=u+1;continue;case 2:return;case 3:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}case 5:{l.splice(u,1,...p.nodes);return}case 4:{l.splice(u,1,...p.nodes),o[1]=u+p.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${rr[p.kind]??`Unknown(${p.kind})`}\` in exit.`)}}}var ml=58,li=45,ai=97,si=122,ui=/^[a-zA-Z0-9_.%-]+$/;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(Me),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Me),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(Me),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Me(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:Me(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function*ue(e,t){let r=b(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 p=r.length-1;p>=0;--p){let f=t.parseVariant(r[p]);if(f===null)return;i.push(f)}let o=!1;n[n.length-1]==="!"?(o=!0,n=n.slice(0,-1)):n[0]==="!"&&(o=!0,n=n.slice(1)),t.utilities.has(n,"static")&&!n.includes("[")&&(yield{kind:"static",root:n,variants:i,important:o,raw:e});let[l,s=null,a]=b(n,"/");if(a)return;let u=s===null?null:dl(s);if(s!==null&&u===null)return;if(l[0]==="["){if(l[l.length-1]!=="]")return;let p=l.charCodeAt(1);if(p!==li&&!(p>=ai&&p<=si))return;l=l.slice(1,-1);let f=l.indexOf(":");if(f===-1||f===0||f===l.length-1)return;let m=l.slice(0,f),d=He(l.slice(f+1));if(!Ue(d))return;yield{kind:"arbitrary",property:m,value:d,modifier:u,variants:i,important:o,raw:e};return}let c;if(l[l.length-1]==="]"){let p=l.indexOf("-[");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+1);c=[[f,m]]}else if(l[l.length-1]===")"){let p=l.indexOf("-(");if(p===-1)return;let f=l.slice(0,p);if(!t.utilities.has(f,"functional"))return;let m=l.slice(p+2,-1),d=b(m,":"),g=null;if(d.length===2&&(g=d[0],m=d[1]),m[0]!=="-"||m[1]!=="-"||!Ue(m))return;c=[[f,g===null?`[var(${m})]`:`[${g}:var(${m})]`]]}else c=gl(l,p=>t.utilities.has(p,"functional"));for(let[p,f]of c){let m={kind:"functional",root:p,modifier:u,value:null,variants:i,important:o,raw:e};if(f===null){yield m;continue}{let d=f.indexOf("[");if(d!==-1){if(f[f.length-1]!=="]")return;let h=He(f.slice(d+1,-1));if(!Ue(h))continue;let v=null;for(let $=0;$<h.length;$++){let T=h.charCodeAt($);if(T===ml){v=h.slice(0,$),h=h.slice($+1);break}if(!(T===li||T>=ai&&T<=si))break}if(h.length===0||h.trim().length===0||v==="")continue;m.value={kind:"arbitrary",dataType:v||null,value:h}}else{let h=s===null||m.modifier?.kind==="arbitrary"?null:`${f}/${s}`;if(!ui.test(f))continue;m.value={kind:"named",value:f,fraction:h}}}yield m}}function dl(e){if(e[0]==="["&&e[e.length-1]==="]"){let t=He(e.slice(1,-1));return!Ue(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]!=="-"||!Ue(e)?null:(e=`var(${e})`,{kind:"arbitrary",value:He(e)})):ui.test(e)?{kind:"named",value:e}:null}function*gl(e,t){t(e)&&(yield[e,null]);let r=e.lastIndexOf("-");for(;r>0;){let n=e.slice(0,r);if(t(n)){let i=[n,e.slice(r+1)];if(i[1]===""||i[0]==="@"&&t("@")&&e[r]==="-")break;yield i}r=e.lastIndexOf("-",r-1)}e[0]==="@"&&t("@")&&(yield["@",e.slice(1)])}function nr(e){if(e===null)return"";let t=yl(e.value),r=t?e.value.slice(4,-1):e.value,[n,i]=t?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${n}${or(r)}${i}`:e.kind==="named"?`/${e.value}`:""}var hl=new k(e=>{let t=x(e),r=new Set,n=new Set(["~",">","+","-","*","/"]);return w(t,(i,o)=>{if(i.kind==="word"&&n.has(i.value)){let l=o.index;if(l===-1)return;let s=o.siblings[l-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=o.siblings[l+1];if(a?.kind!=="separator"||a.value!==" ")return;let u=o.siblings[l-2];if(u&&n.has(u.value))return;let c=o.siblings[l+2];if(c&&n.has(c.value))return;r.add(s),r.add(a)}else if(i.kind==="separator"&&i.value.length>0&&i.value.trim()==="")(o.siblings[0]===i||o.siblings[o.siblings.length-1]===i)&&r.add(i);else if(i.kind==="separator"&&i.value.trim()===",")i.value=",";else if(i.kind==="function"&&i.value.startsWith("--")){let l=o.index;if(l<=0)return;let s=o.siblings[l-1];if(s?.kind==="separator"&&s.value===",")return;let a=o.siblings[l-2];return a&&!n.has(a.value)?void 0:y.ReplaceSkip({kind:"function",value:"",nodes:[i]})}}),r.size>0&&w(t,i=>{if(r.has(i))return r.delete(i),y.ReplaceSkip([])}),ir(t),C(t)});function or(e){return hl.get(e)}var Ic=new k(e=>{let t=x(e);return t.length===3&&t[0].kind==="word"&&t[0].value==="&"&&t[1].kind==="separator"&&t[1].value===":"&&t[2].kind==="function"&&t[2].value==="is"?C(t[2].nodes):e});function ir(e){for(let t of e)switch(t.kind){case"function":{if(t.value==="url"||t.value.endsWith("_url")){t.value=Je(t.value);break}if(t.value==="var"||t.value.endsWith("_var")||t.value==="theme"||t.value.endsWith("_theme")){t.value=Je(t.value);for(let r=0;r<t.nodes.length;r++)ir([t.nodes[r]]);break}t.value=Je(t.value),ir(t.nodes);break}case"separator":t.value=Je(t.value);break;case"word":{(t.value[0]!=="-"||t.value[1]!=="-")&&(t.value=Je(t.value));break}default:vl(t)}}var kl=new k(e=>{let t=x(e);return t.length===1&&t[0].kind==="function"&&t[0].value==="var"});function yl(e){return kl.get(e)}function vl(e){throw new Error(`Unexpected value: ${e}`)}function Je(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}function Ze(e,t,r){if(e===t)return 0;let n=e.indexOf("("),i=t.indexOf("("),o=n===-1?e.replace(/[\d.]+/g,""):e.slice(0,n),l=i===-1?t.replace(/[\d.]+/g,""):t.slice(0,i),s=(o===l?0:o<l?-1:1)||(r==="asc"?parseInt(e)-parseInt(t):parseInt(t)-parseInt(e));return Number.isNaN(s)?e<t?-1:1:s}var wl=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,z=new k(e=>{let t=wl.exec(e);if(!t)return null;let r=t.groups?.value;if(r===void 0)return null;let n=Number(r);if(Number.isNaN(n))return null;let i=t.groups?.unit;return i===void 0?[n,null]:[n,i]});function ye(e){if(arguments.length===0)throw new TypeError("`CSS.escape` requires an argument.");let t=String(e),r=t.length,n=-1,i,o="",l=t.charCodeAt(0);if(r===1&&l===45)return"\\"+t;for(;++n<r;){if(i=t.charCodeAt(n),i===0){o+="\uFFFD";continue}if(i>=1&&i<=31||i===127||n===0&&i>=48&&i<=57||n===1&&i>=48&&i<=57&&l===45){o+="\\"+i.toString(16)+" ";continue}if(i>=128||i===45||i===95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){o+=t.charAt(n);continue}o+="\\"+t.charAt(n)}return o}function Qe(e){return e.replace(/\\([\dA-Fa-f]{1,6}[\t\n\f\r ]?|[\S\s])/g,t=>{if(t.length<=2)return t[1];let r=Number.parseInt(t.slice(1).trim(),16);return r===0||r>1114111||r>=55296&&r<=57343?"\uFFFD":String.fromCodePoint(r)})}var ce=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,Yc=new RegExp(`^${ce.source}$`);var qc=new RegExp(`^${ce.source}%$`);var Hc=new RegExp(`^${ce.source}\\s*/\\s*${ce.source}$`);var bl=["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"],xl=new RegExp(`^${ce.source}(${bl.join("|")})$`),Cl=/^(--spacing)\(/i;function lr(e){return xl.test(e)||Cl.test(e)||ni(e)}var Sl=["deg","rad","grad","turn"],Jc=new RegExp(`^${ce.source}(${Sl.join("|")})$`);var Zc=new RegExp(`^${ce.source} +${ce.source} +${ce.source}$`);function j(e){let t=Number(e);return Number.isInteger(t)&&t>=0&&String(t)===String(e)}function Z(e){return ci(e,.25)}function ar(e){return ci(e,.25)}function ci(e,t){let r=Number(e);return r>=0&&r%t===0&&String(r)===String(e)}function ze(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 $l={"--alpha":Tl,"--spacing":El,"--theme":Nl,theme:Vl};function Tl(e,t,r,...n){let[i,o]=b(r,"/").map(l=>l.trim());if(!i||!o)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);if(n.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${i||"var(--my-color)"} / ${o||"50%"})\``);return ze(i,o)}function El(e,t,r,...n){if(!r)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(n.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${n.length+1}.`);let i=e.theme.resolve(null,["--spacing"]);if(!i)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");let o=z.get(r);if(o){if(o[0]===0)return"0px";if(o[0]===1)return i}return`calc(${i} * ${r})`}function Nl(e,t,r,...n){if(!r.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let i=!1;r.endsWith(" inline")&&(i=!0,r=r.slice(0,-7)),t.kind==="at-rule"&&(i=!0);let o=e.resolveThemeValue(r,i);if(!o){if(n.length>0)return n.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(n.length===0)return o;let l=n.join(", ");if(l==="initial")return o;if(o==="initial")return l;if(o.startsWith("var(")||o.startsWith("theme(")||o.startsWith("--theme(")){let s=x(o);return Pl(s,l),C(s)}return o}function Vl(e,t,r,...n){r=Rl(r);let i=e.resolveThemeValue(r);if(!i&&n.length>0)return n.join(", ");if(!i)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 i}var Sf=new RegExp(Object.keys($l).map(e=>`${e}\\(`).join("|"));function Rl(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Pl(e,t){w(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 n=r.nodes[r.nodes.length-1];n.kind==="word"&&n.value==="initial"&&(n.value=t)}})}function sr(e,t){let r=e.length,n=t.length,i=r<n?r:n;for(let o=0;o<i;o++){let l=e.charCodeAt(o),s=t.charCodeAt(o);if(l>=48&&l<=57&&s>=48&&s<=57){let a=o,u=o+1,c=o,p=o+1;for(l=e.charCodeAt(u);l>=48&&l<=57;)l=e.charCodeAt(++u);for(s=t.charCodeAt(p);s>=48&&s<=57;)s=t.charCodeAt(++p);let f=e.slice(a,u),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(l!==s)return l-s}return e.length-t.length}function ur(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let t=1,r=t,n=e.length-1;for(;je(e.charCodeAt(t));)t++;{for(r=t;t<n;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)&&!(c>=128))break}if(r===t)return null}let i=e.slice(r,t);for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:null,quote:null,value:null,sensitivity:null};let o=null,l=e.charCodeAt(t);if(l===61)o="=",t++;else if((l===126||l===124||l===94||l===36||l===42)&&e.charCodeAt(t+1)===61)o=e[t]+"=",t+=2;else return null;for(;je(e.charCodeAt(t));)t++;if(t===n)return null;let s="",a=null;if(l=e.charCodeAt(t),l===39||l===34){a=e[t],t++,r=t;for(let c=t;c<n;c++){let p=e.charCodeAt(c);p===l?t=c+1:p===92&&c++}s=e.slice(r,t-1)}else{for(r=t;t<n&&!je(e.charCodeAt(t));)t++;s=e.slice(r,t)}for(;je(e.charCodeAt(t));)t++;if(t===n)return{attribute:i,operator:o,quote:a,value:s,sensitivity:null};let u=null;switch(e.charCodeAt(t)){case 105:case 73:{u="i",t++;break}case 115:case 83:{u="s",t++;break}default:return null}for(;je(e.charCodeAt(t));)t++;return t!==n?null:{attribute:i,operator:o,quote:a,value:s,sensitivity:u}}function je(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}function mi(e){let t=!1;return w(e,{exit(r){if(r.kind!=="function"||r.value!=="calc"&&r.value!==""||r.nodes.length!==5||r.nodes[2].kind!=="word"||r.nodes[2].value!=="*"&&r.nodes[2].value!=="+")return;let n=r.nodes[0],i=r.nodes[4];if(_l(n,i)){t=!0;let o={kind:"function",value:r.value,nodes:[i,r.nodes[1],r.nodes[2],r.nodes[3],n]};return y.ReplaceSkip(o)}}}),[t,e]}function _l(e,t){let r=e.kind==="word"?z.get(e.value):null,n=t.kind==="word"?z.get(t.value):null;if(r!==null&&n===null)return!0;if(r===null&&n!==null)return!1;if(r!==null&&n!==null){let[i,o]=r,[l,s]=n;if(o===null&&s!==null)return!0;if(o!==null&&s===null)return!1;if(i!==l)return i-l>0;if(o!==s)return(o??"").localeCompare(s??"")>0}return C([e]).localeCompare(C([t]))>0}function di(e){let t=[];return gi(e,[],(r,n)=>{if(Ll(r))return t.push([n,r]),1;if(Ul(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 n[0]==="fontSize"?(t.push([n,r[0]]),r.length>=2&&t.push([[...n,"-line-height"],r[1]])):t.push([n,r.join(", ")]),1}),t}var Ol={borderWidth:"border-width",outlineWidth:"outline-width",ringColor:"ring-color",ringWidth:"ring-width",transitionDuration:"transition-duration",transitionTimingFunction:"transition-timing-function"},Dl={animation:"animate",aspectRatio:"aspect",borderRadius:"radius",boxShadow:"shadow",colors:"color",containers:"container",fontFamily:"font",fontSize:"text",letterSpacing:"tracking",lineHeight:"leading",maxWidth:"container",screens:"breakpoint",transitionTimingFunction:"ease"},Il=/^[a-zA-Z0-9-_%/.]+$/;function te(e){let t=Ol[e[0]];if(t&&e[1]==="DEFAULT")return`default-${t}`;if(e[0]==="container")return null;for(let n of e)if(!Il.test(n))return null;let r=Dl[e[0]];return r&&(e=e.slice(),e[0]=r),e.map((n,i,o)=>n==="1"&&i!==o.length-1?"":n).map((n,i)=>(n=n.replaceAll(".","_"),(i===0||n.startsWith("-")||n==="lineHeight")&&(n=n.replace(/([a-z])([A-Z])/g,(l,s,a)=>`${s}-${a.toLowerCase()}`)),n)).filter((n,i)=>n!=="DEFAULT"||i!==e.length-1).join("-")}function Ll(e){return typeof e=="number"||typeof e=="string"}function Ul(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 gi(e,t=[],r){for(let n of Reflect.ownKeys(e)){let i=e[n];if(i==null)continue;let o=[...t,n],l=r(i,o)??0;if(l!==1){if(l===2)return 2;if(!(!Array.isArray(i)&&typeof i!="object")&&gi(i,o,r)===2)return 2}}}function pt(e,t=null,r=!0){let[n,i]=et(x(e),t,r);return n?C(i):e}function et(e,t=null,r=!0){let n=!1;return w(e,{exit(i,o){if(i.kind==="word"&&i.value!=="0"){let l=hi(i.value,t,r);if(l===null||l===i.value)return;if(l==="0"&&o.parent?.kind==="function"){let s=hi(i.value,t,!1);return s===null?void 0:(n=!0,y.ReplaceSkip(O(s)))}return n=!0,y.ReplaceSkip(O(l))}else if(i.kind==="function"&&(i.value==="calc"||i.value==="")){if(i.nodes.length!==5||i.nodes[2].kind!=="word")return;let l=i.nodes[0],s=i.nodes[2].value,a=i.nodes[4],u=l.kind==="word"?z.get(l.value):null,c=a.kind==="word"?z.get(a.value):null;if(s==="*"&&(u?.[0]===0&&u?.[1]===null||c?.[0]===0&&c?.[1]===null))return n=!0,y.ReplaceSkip(O("0"));if(s==="*"&&u?.[0]===0&&u?.[1]!==null&&c?.[1]===null)return n=!0,o.parent?.kind==="function"?y.ReplaceSkip(O(`0${u[1]}`)):y.ReplaceSkip(O("0"));if(s==="*"&&c?.[0]===0&&c?.[1]!==null&&u?.[1]===null)return n=!0,o.parent?.kind==="function"?y.ReplaceSkip(O(`0${c[1]}`)):y.ReplaceSkip(O("0"));if(s==="*"){if(u?.[0]===1&&u?.[1]===null)return n=!0,y.ReplaceSkip(a);if(c?.[0]===1&&c?.[1]===null)return n=!0,y.ReplaceSkip(l)}if(s==="*"||s==="+"){let p=u??c,f=u===null?l:c===null?a:null;if(p!==null&&f!==null&&f.kind==="function"&&(f.value==="calc"||f.value==="")&&f.nodes.length===5&&f.nodes[2].kind==="word"&&f.nodes[2].value===s){let m=f.nodes[0],d=f.nodes[4],g=m.kind==="word"?z.get(m.value):null,h=d.kind==="word"?z.get(d.value):null,v=g??h,$=g===null?m:h===null?d:null;if(v!==null&&$!==null){if(s==="*"&&!(p[1]===null&&v[1]===null||p[1]===null&&v[1]!==null||p[1]!==null&&v[1]===null)||s==="+"&&p[1]!==v[1])return;let T;switch(s){case"*":{T=`${p[0]*v[0]}${p[1]??v[1]??""}`;break}case"+":{T=`${p[0]+v[0]}${p[1]??v[1]??""}`;break}default:return}if(n=!0,s==="*"&&T==="1")return y.ReplaceSkip($);let S={kind:"function",value:i.value,nodes:[O(T),i.nodes[1],i.nodes[2],i.nodes[3],$]};return y.ReplaceSkip(S)}}}if(u===null||c===null)return;switch(s){case"*":{if(u[1]===c[1]||u[1]===null&&c[1]!==null||u[1]!==null&&c[1]===null)return n=!0,y.ReplaceSkip(O(`${u[0]*c[0]}${u[1]??c[1]??""}`));break}case"+":{if(u[1]===c[1])return n=!0,y.ReplaceSkip(O(`${u[0]+c[0]}${u[1]??""}`));break}case"-":{if(u[1]===c[1])return n=!0,y.ReplaceSkip(O(`${u[0]-c[0]}${u[1]??""}`));break}case"/":{if(c[0]!==0&&(u[1]===null&&c[1]===null||u[1]!==null&&c[1]===null)){let p=u[0]/c[0];if(Math.round(p*100)/100!==p)break;return n=!0,y.ReplaceSkip(O(`${p}${u[1]??""}`))}break}}}}}),[n,e]}function hi(e,t=null,r=!0){let n=z.get(e);if(n===null)return null;let[i,o]=n;if(o===null)return`${i}`;if(i===0&&lr(e))return r?"0":`0${o}`;if(!r)return`${e}`;switch(o.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}${o}`}}function Ee(e,t="top",r="right",n="bottom",i="left"){return wi(`${e}-${t}`,`${e}-${r}`,`${e}-${n}`,`${e}-${i}`)}function wi(e="top",t="right",r="bottom",n="left"){return{1:[[e,0],[t,0],[r,0],[n,0]],2:[[e,0],[t,1],[r,0],[n,1]],3:[[e,0],[t,1],[r,2],[n,1]],4:[[e,0],[t,1],[r,2],[n,3]]}}function q(e,t){return{1:[[e,0],[t,0]],2:[[e,0],[t,1]]}}var ki={inset:wi(),margin:Ee("margin"),padding:Ee("padding"),"scroll-margin":Ee("scroll-margin"),"scroll-padding":Ee("scroll-padding"),"border-width":Ee("border","top-width","right-width","bottom-width","left-width"),"border-style":Ee("border","top-style","right-style","bottom-style","left-style"),"border-color":Ee("border","top-color","right-color","bottom-color","left-color"),gap:q("row-gap","column-gap"),overflow:q("overflow-x","overflow-y"),"overscroll-behavior":q("overscroll-behavior-x","overscroll-behavior-y")},yi={"inset-block":q("top","bottom"),"inset-inline":q("left","right"),"margin-block":q("margin-top","margin-bottom"),"margin-inline":q("margin-left","margin-right"),"padding-block":q("padding-top","padding-bottom"),"padding-inline":q("padding-left","padding-right"),"scroll-margin-block":q("scroll-margin-top","scroll-margin-bottom"),"scroll-margin-inline":q("scroll-margin-left","scroll-margin-right"),"scroll-padding-block":q("scroll-padding-top","scroll-padding-bottom"),"scroll-padding-inline":q("scroll-padding-left","scroll-padding-right")},vi={"border-block":["border-bottom","border-top"],"border-block-color":["border-bottom-color","border-top-color"],"border-block-style":["border-bottom-style","border-top-style"],"border-block-width":["border-bottom-width","border-top-width"],"border-inline":["border-left","border-right"],"border-inline-color":["border-left-color","border-right-color"],"border-inline-style":["border-left-style","border-right-style"],"border-inline-width":["border-left-width","border-right-width"]};function bi(e,t){if(t&2){if(e.property in yi){let r=b(e.value," ");return yi[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}if(e.property in vi)return vi[e.property]?.map(r=>E(r,e.value,e.important))}if(e.property in ki){let r=b(e.value," ");return ki[e.property][r.length]?.map(([n,i])=>E(n,r[i],e.important))}return null}function Ml(e){return{kind:"combinator",value:e}}function cr(e){return{kind:"complex",nodes:e}}function xi(e){return{kind:"compound",nodes:e}}function zl(e,t){return{kind:"function",value:e,nodes:t}}function jl(e){return{kind:"list",nodes:e}}function pe(e){return{kind:"selector",value:e}}function Ci(e){return{kind:"value",value:e}}function re(e,t=!1){let r="";for(let n of e)switch(n.kind){case"selector":case"value":{r+=n.value;break}case"combinator":{t||n.value===" "?r+=n.value:r+=` ${n.value} `;break}case"function":{r+=`${n.value}(${re(n.nodes,t)})`;break}case"complex":case"compound":{r+=re(n.nodes,t);break}case"list":{r+=n.nodes.map(i=>re([i],t)).join(t?",":", ");break}}return r}var Si=92,Kl=93,Ai=41,$i=58,Ti=44,Fl=34,Wl=46,Ei=62,fr=10,Bl=35,Ni=91,Vi=40,Ri=43,Gl=39,pr=32,mr=9,Pi=126,Yl=38,ql=42;function Ke(e){e=e.replaceAll(`\r
|
|
5
5
|
`,`
|
|
6
|
-
`);let t=[],r=t,n=!1,i=[],o=null,l="",s;function a(c=r){return c.length===1?c[0]:n?ur(c):wi(c)}function u(c){let p=r[r.length-1];p?.kind==="compound"?p.nodes.push(c):p&&p.kind!=="list"&&p.kind!=="combinator"?r[r.length-1]=wi([p,c]):r.push(c)}for(let c=0;c<e.length;c++){let p=e.charCodeAt(c);switch(p){case Ai:{for(l.length>0&&(u(ke(l)),l="");c+1<e.length&&(s=e.charCodeAt(c+1),!(s!==cr&&s!==fr&&s!==pr));c++);if(o)o.nodes.push(a()),r=[],n=!1;else{let f=r.splice(0),m=a(f),d=zl([m]);r.push(d),o=d,r=[],n=!1}break}case Si:case cr:case fr:case Ei:case pr:case Vi:{l.length>0&&(u(ke(l)),l="");let f=c,m=c+1;for(;m<e.length&&(s=e.charCodeAt(m),!(s!==Si&&s!==cr&&s!==fr&&s!==Ei&&s!==pr&&s!==Vi));m++);c=m-1;let d=e.slice(f,m).trim();if(d===""&&(r.length===0||m>=e.length||e.charCodeAt(m)===Ai))break;r.push(Ul(d===""?" ":d)),n=!0;break}case Ti:{let f=Ml(l,[]);if(l="",f.value!==":not"&&f.value!==":where"&&f.value!==":has"&&f.value!==":is"){let m=c+1,d=0;for(let h=c+1;h<e.length;h++){if(s=e.charCodeAt(h),s===Ti){d++;continue}if(s===xi){if(d===0){c=h;break}d--}}let g=c;f.nodes.push(jl(e.slice(m,g))),l="",c=g,u(f);break}u(f),i.push({target:r,currentList:o,containsCombinator:n}),r=f.nodes,n=!1,o=null;break}case xi:{l.length>0&&(u(ke(l)),l=""),o?o.nodes.push(a()):n&&r.splice(0,r.length,ur(r.splice(0)));let f=i.pop();r=f?.target??t,o=f?.currentList??null,n=f?.containsCombinator??!1;break}case Wl:case Ci:case Bl:{if(p===Ci&&l===":"){l+=e[c];break}l.length>0&&u(ke(l)),l=e[c];break}case $i:{l.length>0&&u(ke(l)),l="";let f=c,m=0;for(let d=c+1;d<e.length;d++){if(s=e.charCodeAt(d),s===$i){m++;continue}if(s===Kl){if(m===0){c=d;break}m--}}l+=e.slice(f,c+1);break}case Gl:case Fl:{let f=c;for(let m=c+1;m<e.length;m++)if(s=e.charCodeAt(m),s===bi)m+=1;else if(s===p){c=m;break}l+=e.slice(f,c+1);break}case Yl:case ql:{l.length>0&&(u(ke(l)),l=""),u(ke(e[c]));break}case bi:{l+=e[c]+e[c+1],c+=1;break}default:l+=e[c]}}return l.length>0&&u(ke(l)),o?o.nodes.push(a()):n&&r.splice(0,r.length,ur(r.splice(0))),t}function W(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function re(e){let t=[];for(let r of b(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}function gr(e,t){let r=e;return r.storage[Di]??=Hl(),r.storage[Zl]??=Ql(r),r.storage[Xl]??=ea(),r.storage[Li]??=ra(),r.storage[Ui]??=na(),r.storage[hr]??=ca(r),r.storage[mr]??=da(r,t),r.storage[ae]??=Va(r),r.storage[Ki]??=Na(),r.storage[dr]??=Pa(r),r.storage[yr]??=_a(r),r.storage[ht]??=Oa(r),r.storage[Fi]??=Da(r),r.storage[et]??=Jl(r),r}var Di=Symbol();function Hl(){return new y(e=>new y(t=>({rem:e,features:t})))}var et=Symbol();function Jl(e){return new y(t=>{let r=e.storage[ae].get(t);return function(i,o){let l=typeof i=="string"?i:e.printCandidate(i),s=r.get(l);if(typeof s!="string")return!1;let a=typeof o=="string"?o:e.printCandidate(o),u=r.get(a);return typeof u!="string"?!1:s===u}})}function Ii(e,t){let r=0;return t?.collapse&&(r|=1),t?.logicalToPhysical&&(r|=2),gr(e,t).storage[Di].get(t?.rem??null).get(r)}var Zl=Symbol();function Ql(e){return new y(t=>new y(r=>({features:r,designSystem:e,signatureOptions:t})))}var Xl=Symbol();function ea(){return new y(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",n=t.storage[Li].get(e),i=t.storage[Ui].get(e);return new y((o,l)=>{for(let s of t.parseCandidate(o)){let a=s.variants.slice().reverse().flatMap(p=>n.get(p)),u=s.important;if(u||a.length>0){let f=l.get(t.printCandidate({...s,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}`),u&&(f+="!"),t.theme.prefix!==null&&a.length>0&&(f=`${r}${f}`),f}let c=i.get(o);if(c!==o)return c}return o})})}var ta=[sa,Sa,$a,xa],Li=Symbol();function ra(){return new y(e=>new y(t=>{let r=[t];for(let n of ta)for(let i of r.splice(0)){let o=n(Me(i),e);if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r}))}var ia=[la,aa,ua,Ta,ga,ya,ba,Ca,Aa,Ea],Ui=Symbol();function na(){return new y(e=>{let t=e.designSystem;return new y(r=>{for(let n of t.parseCandidate(r)){let i=M(n);for(let l of ia)i=l(i,e);let o=t.printCandidate(i);if(r!==o)return o}return r})})}var oa=["t","tr","r","br","b","bl","l","tl"];function la(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return oa.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function aa(e,t){let r=t.designSystem.storage[hr];if(e.kind==="arbitrary"){let[n,i]=r(e.value,e.modifier===null?1:0);n!==e.value&&(e.value=n,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[n,i]=r(e.value.value,e.modifier===null?1:0);n!==e.value.value&&(e.value.value=n,i!==null&&(e.modifier=i))}return e}function sa(e,t){let r=t.designSystem.storage[hr],n=gt(e);for(let[i]of n)if(i.kind==="arbitrary"){let[o]=r(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=r(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function ua(e,t){return e.kind==="arbitrary"?e.value=Ni(e.value,t.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=Ni(e.value.value,t.designSystem)),e}function Ni(e,t){let r=t.theme.prefix?`--${t.theme.prefix}-spacing`:"--spacing",n=C(e);return w(n,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==r))return k.Replace(C(`--spacing(${x([i.nodes[4]])})`))}),x(n)}var hr=Symbol();function ca(e){return t(e);function t(r){function n(s,a=0){let u=C(s);if(a&2)return[mt(u,l),null];let c=0,p=0;if(w(u,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,w(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?k.Stop:g.kind==="word"&&g.value==="/"?(p+=1,k.Stop):k.Skip))}),c===0)return[s,null];if(p===0)return[mt(u,o),null];if(p>1)return[mt(u,l),null];let f=null;return[mt(u,(d,g)=>{let h=b(d,"/").map(v=>v.trim());if(h.length>2)return null;if(u.length===1&&h.length===2&&a&1){let[v,$]=h;if(/^\d+%$/.test($))f={kind:"named",value:$.slice(0,-1)};else if(/^0?\.\d+$/.test($)){let T=Number($)*100;f={kind:Number.isInteger(T)?"named":"arbitrary",value:T.toString()}}else f={kind:"arbitrary",value:$};d=v}return o(d,g)||l(d,g)}),f]}function i(s,a=!0){let u=`--${te(re(s))}`;return r.theme.get([u])?a&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function o(s,a){let u=i(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let c=re(s);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let p=c[1];return Z(p)?`--spacing(${p})`:null}return null}function l(s,a){let u=b(s,"/").map(f=>f.trim());s=u.shift();let c=i(s,!1);if(!c)return null;let p=u.length>0?`/${u.join("/")}`:"";return a?`--theme(${c}${p}, ${a})`:`--theme(${c}${p})`}return n}}function mt(e,t){return w(e,(r,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 o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=x([r.nodes[u]]),l=u+1;o=fa(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,x(s)):t(o);if(a===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return k.Replace(C(a))}}),x(e)}function fa(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function*gt(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function ie(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function pa(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 mr=Symbol(),Mi=1536,ma=Mi/16;function Pi(e,t,r){let n=t.resolveThemeValue("--spacing");if(n===void 0)return!1;let i=z.get(ft(n,r));if(i===null)return!1;let[o,l]=i,s=e*o;return l==="px"?s<=Mi:l==="rem"?s<=ma:!1}function da(e,t){let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;r=ft(r,t?.rem??null);let n=z.get(r);if(!n)return null;let[i,o]=n;return new y(l=>{if(i===0)return null;let s=z.get(ft(l,t?.rem??null));if(!s)return null;let[a,u]=s;return u!==o?null:a/i})}function ga(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,n=r.storage[yr].get(t.signatureOptions),i=r.storage[ae].get(t.signatureOptions),o=r.storage[et].get(t.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let u of a(s,e))if(o(e,u)&&ha(r,e,u))return u;return e;function*a(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ie(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of a(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ie(r,p[0]))yield f;else if(p.length===0){let f=c.kind==="arbitrary"?c.value:c.value?.value??null;if(f===null)return;if(t.signatureOptions.rem!==null&&c.kind==="functional"&&c.value?.kind==="arbitrary"){let g=r.storage[mr]?.get(f)??null;g!==null&&Z(g)&&Pi(g,r,t.signatureOptions.rem)&&(yield Object.assign({},c,{value:{kind:"named",value:g,fraction:null}}))}let m=r.storage[mr]?.get(f)??null,d="";m!==null&&m<0&&(d="-",m=Math.abs(m));for(let g of Array.from(r.utilities.keys("functional")).sort((h,v)=>+(h[0]==="-")-+(v[0]==="-"))){d&&(g=`${d}${g}`);for(let h of ie(r,`${g}-${f}`))yield h;if(c.modifier)for(let h of ie(r,`${g}-${f}${c.modifier}`))yield h;if(m!==null&&Z(m)&&Pi(m,r,t.signatureOptions.rem)){for(let h of ie(r,`${g}-${m}`))yield h;if(c.modifier)for(let h of ie(r,`${g}-${m}${nr(c.modifier)}`))yield h}for(let h of ie(r,`${g}-[${f}]`))yield h;if(c.modifier)for(let h of ie(r,`${g}-[${f}]${nr(c.modifier)}`))yield h}}}}function ha(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
7
|
-
`),o=!0;return w(C(n),l=>{if(l.kind==="function"&&l.value==="var"){let s=l.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(i)||i.includes(`${s}:`))return o=!1,k.Stop}}),o}function ya(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,n=r.storage[yr].get(t.signatureOptions),i=r.storage[ae].get(t.signatureOptions),o=r.storage[et].get(t.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let u of a(s,e))if(o(e,u))return u;return e;function*a(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ie(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of a(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ie(r,p[0]))yield f}}var ka=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),va=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*wa(e){let t=ka.get(e);t&&(yield t);for(let[r,n]of va){let i=e.replace(r,n);i!==e&&(yield i)}}function ba(e,t){let r=t.designSystem,n=r.storage[et].get(t.signatureOptions),i=pa(r,e);for(let o of wa(i)){if(!n(e,o))continue;let[l]=ie(r,o);return l}return e}function xa(e,t){let r=t.designSystem,n=r.storage[ht],i=r.storage[Fi],o=gt(e);for(let[l]of o){if(l.kind==="compound")continue;let s=r.printVariant(l),a=n.get(s);if(typeof a!="string")continue;let u=i.get(a);if(u.length!==1)continue;let c=u[0],p=r.parseVariant(c);p!==null&&W(l,p)}return e}function Ca(e,t){let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});n.get(r.printCandidate(e))===n.get(i)&&(e.value.dataType=null)}return e}function Aa(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions),i=n.get(r.printCandidate(e));if(i===null)return e;for(let o of zi(e))if(n.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Sa(e){let t=gt(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[n,i]=b(r.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.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*zi(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("%")&&Z(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");j(o)&&j(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,l)=>o.length-l.length);for(let o of i)yield*zi(e,o,r)}function _i(e){return!(e.length===1&&e[0].kind==="list")}function dt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function $a(e,t){let r=[e],n=t.designSystem,i=n.storage[ht],o=gt(e);for(let[l,s]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let a=pt(l.selector);if(!_i(a))continue;if(a.length===1&&a[0].kind==="complex"&&(a=a[0].nodes),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===">"&&a[2].kind==="selector"&&a[2].value==="*"){W(l,n.parseVariant("*"));continue}if(s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&a[2].value==="*"){W(l,n.parseVariant("**"));continue}if(s===null&&a.length===1&&a[0].kind==="compound"&&a[0].nodes.length===2&&a[0].nodes[0].kind==="selector"&&a[0].nodes[0].value==="&"&&a[0].nodes[1].kind==="function"&&a[0].nodes[1].value===":has"&&a[0].nodes[1].nodes.length===1&&a[0].nodes[1].nodes[0].kind==="selector"){W(l,n.parseVariant(`has-[${le(a[0].nodes[1].nodes,!0)}]`));continue}if(s===null&&a.length===3&&a[0].kind==="selector"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),W(l,n.parseVariant(`in-[${le(a,!0)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let f=i.get(n.printVariant(l)),m=C(le(a,!0)),d=!1;if(w(m,g=>{if(g.kind==="word"&&g.value==="not")return d=!0,k.Replace([])}),m=C(x(m)),w(m,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),d){let g=n.parseVariant(`not-[${x(m)}]`);if(g===null)continue;let h=i.get(n.printVariant(g));if(f===h){W(l,g);continue}}}let u=null;s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===">"&&a[2].kind==="selector"&&(a[2].value[0]===":"||dt(a[2]))&&(a=[a[2]],u=n.parseVariant("*")),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&(a[2].value[0]===":"||dt(a[2]))&&(a=[a[2]],u=n.parseVariant("**"));let c=a;if(w(c,{enter(f){if(f.kind==="selector"&&f.value==="&")return k.Replace([]);if(f.kind==="function")return k.Skip},exit(f){if(f.kind==="compound"&&f.nodes.length===1)return k.ReplaceSkip(f.nodes)}}),c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!_i(p.nodes)||p.nodes.length!==1||p.nodes[0].kind==="selector"&&!dt(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,$]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"&&j(f.nodes[0].value)?`${$}-${f.nodes[0].value}`:`${$}-[${le(f.nodes,!0)}]`;if(m){let v=i.get(n.printVariant(l)),$=i.get(`not-[${h}]`);if(v===$)return`[&${h}]`}return null})(f.value);if(d===null){if(u)return W(l,{kind:"arbitrary",selector:p.value,relative:!1}),[u,l];continue}m&&(d=`not-${d}`);let g=n.parseVariant(d);if(g===null)continue;W(l,g)}else if(p.kind==="selector"&&dt(p)){let f=ci(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);W(l,{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);W(l,{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}`:""}`}})}else W(l,{kind:"arbitrary",selector:p.value,relative:!1})}if(u)return[u,l]}return r}function Ta(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let n=t.designSystem.storage[et].get(t.signatureOptions),i=C(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=Xe(i,null,!1);if(o){let s=M(e);s.value.value=x(l),n(e,s)&&(e=s,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=C(`calc(${e.value.value} * -1)`),[l,s]=Xe(o,null,!1);if(l){let a=M(e);a.root=a.root.slice(1),a.value.value=x(s),n(e,a)&&(e=a,i=s)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let s=M(e);s.root=`-${e.root}`,s.value.value=x([l]),n(e,s)&&(e=s)}}}return e}function Ea(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions),i=n.get(r.printCandidate(e)),o=e.modifier;if(i===n.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var ae=Symbol();function Va(e){return new y(t=>new y(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let n=[fe(".x",[V("@apply",r)])];return Ia(e,()=>{for(let o of e.parseCandidate(r))e.compileAstNodes(o,1);tt(n,e)}),ji(e,n,t),H(n)}catch{return Symbol()}}))}var Oi=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi;function ji(e,t,r){let{rem:n}=r;return w(t,{enter(i,o){if(i.kind==="declaration"){if(i.value===void 0||i.property==="--tw-sort")return k.Replace([]);if(i.property.startsWith("--tw-")&&o.siblings.some(p=>p.kind==="declaration"&&i.value===p.value&&i.important===p.important&&!p.property.startsWith("--tw-")))return k.Replace([]);if(r.features&1){let p=vi(i,r.features);if(p)return k.Replace(p)}i.value.includes("var(")&&(i.value=Ra(i.value,e));let l=C(i.value),[s,a]=Xe(l,n),[u,c]=fi(a);(s||u)&&(i.value=x(c)),i.value=or(i.value)}else{if(i.kind==="context"||i.kind==="at-root")return k.Replace(i.nodes);if(i.kind==="comment")return k.Replace([]);if(i.kind==="at-rule"&&i.name==="@property")return k.Replace([])}},exit(i){if(i.kind==="rule"||i.kind==="at-rule"){if(i.nodes.length>1){let o=new Set;for(let l=i.nodes.length-1;l>=0;l--){let s=i.nodes[l];s.kind==="declaration"&&s.value!==void 0&&(o.has(s.property)&&i.nodes.splice(l,1),o.add(s.property))}}i.nodes.sort((o,l)=>o.kind!=="declaration"||l.kind!=="declaration"?0:o.property.localeCompare(l.property))}else if(i.kind==="declaration"&&i.value){if(i.property[0]==="-"&&i.property[1]==="-")return;Oi.lastIndex=0,i.value=i.value.replace(Oi,o=>o.toLowerCase())}}}),t}function Ra(e,t){let r=!1,n=C(e),i=new Set;return w(n,o=>{if(o.kind!=="function"||o.value!=="var"||o.nodes.length!==1&&o.nodes.length<3)return;let l=o.nodes[0].value;t.theme.prefix&&l.startsWith(`--${t.theme.prefix}-`)&&(l=l.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(l);if(!i.has(l)&&(i.add(l),s!==void 0&&(o.nodes.length===1&&(r=!0,o.nodes.push(...C(`,${s}`))),o.nodes.length>=3))){let a=x(o.nodes),u=`${o.nodes[0].value},${s}`;if(a===u)return r=!0,k.Replace(C(s))}}),r?x(n):e}var Ki=Symbol();function Na(){return new y(e=>new y(t=>new y(r=>new Set)))}var dr=Symbol();function Pa(e){return new y(t=>new y(r=>{let n=new y(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);if(i.length===0)return n;try{let o=e.compileAstNodes(i[0]).map(l=>Q(l.node));w(ji(e,o,t),l=>{l.kind==="declaration"&&(n.get(l.property).add(l.value),e.storage[Ki].get(t).get(l.property).get(l.value).add(r))})}catch{}return n}))}var yr=Symbol();function _a(e){return new y(t=>{let r=e.storage[ae].get(t),n=new y(()=>[]);for(let[i,o]of e.getClassList()){let l=r.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let s=r.get(i.slice(1));if(typeof s=="string"&&l===s)continue}n.get(l).push(i),e.storage[dr].get(t).get(i);for(let s of o.modifiers){if(Z(s))continue;let a=`${i}/${s}`,u=r.get(a);typeof u=="string"&&(n.get(u).push(a),e.storage[dr].get(t).get(a))}}}return n})}var ht=Symbol();function Oa(e){return new y(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[fe(".x",[V("@apply",`${t}:flex`)])];return tt(r,e),w(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=pt(i.selector),l=!1;w(o,s=>{if(s.kind==="list"||s.kind==="combinator")l=!0;else if(s.kind==="function"&&s.value===":is"){if(s.nodes.length===1)return l=!0,k.Replace(s.nodes);if(s.nodes.length===2&&s.nodes[0].kind==="selector"&&s.nodes[0].value==="*"&&s.nodes[1].kind==="selector"&&s.nodes[1].value[0]===":")return l=!0,k.Replace(s.nodes[1])}else s.kind==="function"&&s.value[0]===":"&&s.nodes[0]?.kind==="selector"&&s.nodes[0]?.value[0]===":"&&(l=!0,s.nodes.unshift({kind:"selector",value:"*"}))}),l&&(i.selector=le(o,!0))}}),H(r)}catch{return Symbol()}})}var Fi=Symbol();function Da(e){let t=e.storage[ht],r=new y(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r}function Ia(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}function rt(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],l=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let c=t.parseCandidate(u);if(c.length===0){r?.(u);continue}l.set(u,c)}let s=0;(n??!0)&&(s|=1);let a=t.getVariantOrder();for(let[u,c]of l){let p=!1;for(let f of c){let m=t.compileAstNodes(f,s);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));i.set(d,{properties:g,variants:h,candidate:u}),o.push(d)}}}p||r?.(u)}return o.sort((u,c)=>{let p=i.get(u),f=i.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||sr(p.candidate,f.candidate)}),{astNodes:o,nodeSorting:i}}function tt(e,t){let r=0,n=Y("&",e),i=new Set,o=new y(()=>new Set),l=new y(()=>new Set);w([n],(p,f)=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return w(p.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),k.Skip;if(p.name==="@utility"){let m=p.params.replace(/-\*$/,"");l.get(m).add(p),w(p.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(p);for(let g of Bi(d,t))o.get(p).add(g)}});return}if(p.name==="@apply"){if(f.parent===null)return;r|=1,i.add(f.parent);for(let m of Bi(p,t))for(let d of f.path())i.has(d)&&o.get(d).add(m)}}});let s=new Set,a=[],u=new Set;function c(p,f=[]){if(!s.has(p)){if(u.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"&&w(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:
|
|
6
|
+
`);let t=[],r=t,n=!1,i=[],o=null,l="",s;function a(c=r){return c.length===1?c[0]:n?cr(c):xi(c)}function u(c){let p=r[r.length-1];p?.kind==="compound"?p.nodes.push(c):p&&p.kind!=="list"&&p.kind!=="combinator"?r[r.length-1]=xi([p,c]):r.push(c)}for(let c=0;c<e.length;c++){let p=e.charCodeAt(c);switch(p){case Ti:{for(l.length>0&&(u(pe(l)),l="");c+1<e.length&&(s=e.charCodeAt(c+1),!(s!==fr&&s!==pr&&s!==mr));c++);if(o)o.nodes.push(a()),r=[],n=!1;else{let f=r.splice(0),m=a(f),d=jl([m]);r.push(d),o=d,r=[],n=!1}break}case Ei:case fr:case pr:case Ri:case mr:case Pi:{l.length>0&&(u(pe(l)),l="");let f=c,m=c+1;for(;m<e.length&&(s=e.charCodeAt(m),!(s!==Ei&&s!==fr&&s!==pr&&s!==Ri&&s!==mr&&s!==Pi));m++);c=m-1;let d=e.slice(f,m).trim();if(d===""&&(r.length===0||m>=e.length||e.charCodeAt(m)===Ti))break;r.push(Ml(d===""?" ":d)),n=!0;break}case Vi:{let f=zl(l,[]);if(l="",f.value!==":not"&&f.value!==":where"&&f.value!==":has"&&f.value!==":is"){let m=c+1,d=0;for(let v=c+1;v<e.length;v++){if(s=e.charCodeAt(v),s===Vi){d++;continue}if(s===Ai){if(d===0){c=v;break}d--}}let g=c,h=e.slice(m,g);if(f.value===":nth-child"||f.value===":nth-last-child"){let v=h.indexOf("of ");if(v!==-1){f.nodes.push(Ci(h.slice(0,v+3)),...Ke(h.slice(v+3))),l="",c=g,u(f);break}}f.nodes.push(Ci(h)),l="",c=g,u(f);break}u(f),i.push({target:r,currentList:o,containsCombinator:n}),r=f.nodes,n=!1,o=null;break}case Ai:{l.length>0&&(u(pe(l)),l=""),o?o.nodes.push(a()):n&&r.splice(0,r.length,cr(r.splice(0)));let f=i.pop();r=f?.target??t,o=f?.currentList??null,n=f?.containsCombinator??!1;break}case Wl:case $i:case Bl:{if(p===$i&&l===":"){l+=e[c];break}l.length>0&&u(pe(l)),l=e[c];break}case Ni:{l.length>0&&(u(pe(l)),l="");let f=c,m=0;for(let d=c+1;d<e.length;d++){if(s=e.charCodeAt(d),s===Ni){m++;continue}if(s===Kl){if(m===0){c=d;break}m--}}u(pe(e.slice(f,c+1)));break}case Gl:case Fl:{let f=c;for(let m=c+1;m<e.length;m++)if(s=e.charCodeAt(m),s===Si)m+=1;else if(s===p){c=m;break}l+=e.slice(f,c+1);break}case Yl:case ql:{l.length>0&&(u(pe(l)),l=""),u(pe(e[c]));break}case Si:{l+=e[c]+e[c+1],c+=1;break}default:l+=e[c]}}return l.length>0&&u(pe(l)),o?o.nodes.push(a()):n&&r.splice(0,r.length,cr(r.splice(0))),t}function W(e,t){for(let r in e)delete e[r];return Object.assign(e,t)}function ie(e){let t=[];for(let r of b(e,".")){if(!r.includes("[")){t.push(r);continue}let n=0;for(;;){let i=r.indexOf("[",n),o=r.indexOf("]",i);if(i===-1||o===-1)break;i>n&&t.push(r.slice(n,i)),t.push(r.slice(i+1,o)),n=o+1}n<=r.length-1&&t.push(r.slice(n))}return t}function kr(e,t){let r=e;return r.storage[Li]??=Hl(),r.storage[Zl]??=Ql(r),r.storage[Xl]??=ea(),r.storage[Mi]??=ra(),r.storage[zi]??=na(),r.storage[yr]??=ca(r),r.storage[gr]??=da(r,t),r.storage[ae]??=Na(r),r.storage[Wi]??=Ra(),r.storage[hr]??=Pa(r),r.storage[vr]??=_a(r),r.storage[ht]??=Oa(r),r.storage[Bi]??=Da(r),r.storage[tt]??=Jl(r),r}var Li=Symbol();function Hl(){return new k(e=>new k(t=>({rem:e,features:t})))}var tt=Symbol();function Jl(e){return new k(t=>{let r=e.storage[ae].get(t);return function(i,o){let l=typeof i=="string"?i:e.printCandidate(i),s=r.get(l);if(typeof s!="string")return!1;let a=typeof o=="string"?o:e.printCandidate(o),u=r.get(a);return typeof u!="string"?!1:s===u}})}function Ui(e,t){let r=0;return t?.collapse&&(r|=1),t?.logicalToPhysical&&(r|=2),kr(e,t).storage[Li].get(t?.rem??null).get(r)}var Zl=Symbol();function Ql(e){return new k(t=>new k(r=>({features:r,designSystem:e,signatureOptions:t})))}var Xl=Symbol();function ea(){return new k(e=>{let t=e.designSystem,r=t.theme.prefix?`${t.theme.prefix}:`:"",n=t.storage[Mi].get(e),i=t.storage[zi].get(e);return new k((o,l)=>{for(let s of t.parseCandidate(o)){let a=s.variants.slice().reverse().flatMap(p=>n.get(p)),u=s.important;if(u||a.length>0){let f=l.get(t.printCandidate({...s,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}`),u&&(f+="!"),t.theme.prefix!==null&&a.length>0&&(f=`${r}${f}`),f}let c=i.get(o);if(c!==o)return c}return o})})}var ta=[sa,Aa,$a,xa],Mi=Symbol();function ra(){return new k(e=>new k(t=>{let r=[t];for(let n of ta)for(let i of r.splice(0)){let o=n(Me(i),e);if(Array.isArray(o)){r.push(...o);continue}else r.push(o)}return r}))}var ia=[la,aa,ua,Ta,ga,ka,ba,Ca,Sa,Ea],zi=Symbol();function na(){return new k(e=>{let t=e.designSystem;return new k(r=>{for(let n of t.parseCandidate(r)){let i=M(n);for(let l of ia)i=l(i,e);let o=t.printCandidate(i);if(r!==o)return o}return r})})}var oa=["t","tr","r","br","b","bl","l","tl"];function la(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let t=e.root.slice(15);return oa.includes(t)&&(e.root=`bg-linear-to-${t}`),e}return e}function aa(e,t){let r=t.designSystem.storage[yr];if(e.kind==="arbitrary"){let[n,i]=r(e.value,e.modifier===null?1:0);n!==e.value&&(e.value=n,i!==null&&(e.modifier=i))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[n,i]=r(e.value.value,e.modifier===null?1:0);n!==e.value.value&&(e.value.value=n,i!==null&&(e.modifier=i))}return e}function sa(e,t){let r=t.designSystem.storage[yr],n=gt(e);for(let[i]of n)if(i.kind==="arbitrary"){let[o]=r(i.selector,2);o!==i.selector&&(i.selector=o)}else if(i.kind==="functional"&&i.value?.kind==="arbitrary"){let[o]=r(i.value.value,2);o!==i.value.value&&(i.value.value=o)}return e}function ua(e,t){return e.kind==="arbitrary"?e.value=_i(e.value,t.designSystem):e.kind==="functional"&&e.value?.kind==="arbitrary"&&(e.value.value=_i(e.value.value,t.designSystem)),e}function _i(e,t){let r=t.theme.prefix?`--${t.theme.prefix}-spacing`:"--spacing",n=x(e);return w(n,i=>{if(!(i.kind!=="function"||i.value!=="calc")&&i.nodes.length===5&&!(i.nodes[2].kind!=="word"||i.nodes[2].value!=="*")&&!(i.nodes[0].kind!=="function"||i.nodes[0].value!=="var"||i.nodes[0].nodes.length!==1||i.nodes[0].nodes[0].kind!=="word"||i.nodes[0].nodes[0].value!==r))return y.Replace(x(`--spacing(${C([i.nodes[4]])})`))}),C(n)}var yr=Symbol();function ca(e){return t(e);function t(r){function n(s,a=0){let u=x(s);if(a&2)return[mt(u,l),null];let c=0,p=0;if(w(u,d=>{d.kind==="function"&&d.value==="theme"&&(c+=1,w(d.nodes,g=>g.kind==="separator"&&g.value.includes(",")?y.Stop:g.kind==="word"&&g.value==="/"?(p+=1,y.Stop):y.Skip))}),c===0)return[s,null];if(p===0)return[mt(u,o),null];if(p>1)return[mt(u,l),null];let f=null;return[mt(u,(d,g)=>{let h=b(d,"/").map(v=>v.trim());if(h.length>2)return null;if(u.length===1&&h.length===2&&a&1){let[v,$]=h;if(/^\d+%$/.test($))f={kind:"named",value:$.slice(0,-1)};else if(/^0?\.\d+$/.test($)){let T=Number($)*100;f={kind:Number.isInteger(T)?"named":"arbitrary",value:T.toString()}}else f={kind:"arbitrary",value:$};d=v}return o(d,g)||l(d,g)}),f]}function i(s,a=!0){let u=`--${te(ie(s))}`;return r.theme.get([u])?a&&r.theme.prefix?`--${r.theme.prefix}-${u.slice(2)}`:u:null}function o(s,a){let u=i(s);if(u)return a?`var(${u}, ${a})`:`var(${u})`;let c=ie(s);if(c[0]==="spacing"&&r.theme.get(["--spacing"])){let p=c[1];return Z(p)?`--spacing(${p})`:null}return null}function l(s,a){let u=b(s,"/").map(f=>f.trim());s=u.shift();let c=i(s,!1);if(!c)return null;let p=u.length>0?`/${u.join("/")}`:"";return a?`--theme(${c}${p}, ${a})`:`--theme(${c}${p})`}return n}}function mt(e,t){return w(e,(r,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 o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=C([r.nodes[u]]),l=u+1;o=fa(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,C(s)):t(o);if(a===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return y.Replace(x(a))}}),C(e)}function fa(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function*gt(e){function*t(r,n=null){yield[r,n],r.kind==="compound"&&(yield*t(r.variant,r))}yield*t(e,null)}function ne(e,t){return e.parseCandidate(e.theme.prefix&&!t.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${t}`:t)}function pa(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 gr=Symbol(),ji=1536,ma=ji/16;function Oi(e,t,r){let n=t.resolveThemeValue("--spacing");if(n===void 0)return!1;let i=z.get(pt(n,r));if(i===null)return!1;let[o,l]=i,s=e*o;return l==="px"?s<=ji:l==="rem"?s<=ma:!1}function da(e,t){let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;r=pt(r,t?.rem??null);let n=z.get(r);if(!n)return null;let[i,o]=n;return new k(l=>{if(i===0)return null;let s=z.get(pt(l,t?.rem??null));if(!s)return null;let[a,u]=s;return u!==o?null:a/i})}function ga(e,t){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let r=t.designSystem,n=r.storage[vr].get(t.signatureOptions),i=r.storage[ae].get(t.signatureOptions),o=r.storage[tt].get(t.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let u of a(s,e))if(o(e,u)&&ha(r,e,u))return u;return e;function*a(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ne(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of a(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ne(r,p[0]))yield f;else if(p.length===0){let f=c.kind==="arbitrary"?c.value:c.value?.value??null;if(f===null)return;if(t.signatureOptions.rem!==null&&c.kind==="functional"&&c.value?.kind==="arbitrary"){let g=r.storage[gr]?.get(f)??null;g!==null&&Z(g)&&Oi(g,r,t.signatureOptions.rem)&&(yield Object.assign({},c,{value:{kind:"named",value:g,fraction:null}}))}let m=r.storage[gr]?.get(f)??null,d="";m!==null&&m<0&&(d="-",m=Math.abs(m));for(let g of Array.from(r.utilities.keys("functional")).sort((h,v)=>+(h[0]==="-")-+(v[0]==="-"))){d&&(g=`${d}${g}`);for(let h of ne(r,`${g}-${f}`))yield h;if(c.modifier)for(let h of ne(r,`${g}-${f}${c.modifier}`))yield h;if(m!==null&&Z(m)&&Oi(m,r,t.signatureOptions.rem)){for(let h of ne(r,`${g}-${m}`))yield h;if(c.modifier)for(let h of ne(r,`${g}-${m}${nr(c.modifier)}`))yield h}for(let h of ne(r,`${g}-[${f}]`))yield h;if(c.modifier)for(let h of ne(r,`${g}-[${f}]${nr(c.modifier)}`))yield h}}}}function ha(e,t,r){let n=null;if(t.kind==="functional"&&t.value?.kind==="arbitrary"&&t.value.value.includes("var(--")?n=t.value.value:t.kind==="arbitrary"&&t.value.includes("var(--")&&(n=t.value),n===null)return!0;let i=e.candidatesToCss([e.printCandidate(r)]).join(`
|
|
7
|
+
`),o=!0;return w(x(n),l=>{if(l.kind==="function"&&l.value==="var"){let s=l.nodes[0].value;if(!new RegExp(`var\\(${s}[,)]\\s*`,"g").test(i)||i.includes(`${s}:`))return o=!1,y.Stop}}),o}function ka(e,t){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let r=t.designSystem,n=r.storage[vr].get(t.signatureOptions),i=r.storage[ae].get(t.signatureOptions),o=r.storage[tt].get(t.signatureOptions),l=r.printCandidate(e),s=i.get(l);if(typeof s!="string")return e;for(let u of a(s,e))if(o(e,u))return u;return e;function*a(u,c){let p=n.get(u);if(p.length>1){let f;for(let m of p)if(m[0]!=="-"){if(f)return;f=m}if(f)for(let m of ne(r,f))yield m;return}if(p.length===0&&c.modifier){let f={...c,modifier:null},m=i.get(r.printCandidate(f));if(typeof m=="string")for(let d of a(m,f))yield Object.assign({},d,{modifier:c.modifier})}if(p.length===1)for(let f of ne(r,p[0]))yield f}}var ya=new Map([["order-none","order-0"],["break-words","wrap-break-word"],["overflow-ellipsis","text-ellipsis"]]),va=new Map([[/^(-)?start-(.*?)$/,"$1inset-s-$2"],[/^(-)?end-(.*?)$/,"$1inset-e-$2"]]);function*wa(e){let t=ya.get(e);t&&(yield t);for(let[r,n]of va){let i=e.replace(r,n);i!==e&&(yield i)}}function ba(e,t){let r=t.designSystem,n=r.storage[tt].get(t.signatureOptions),i=pa(r,e);for(let o of wa(i)){if(!n(e,o))continue;let[l]=ne(r,o);return l}return e}function xa(e,t){let r=t.designSystem,n=r.storage[ht],i=r.storage[Bi],o=gt(e);for(let[l]of o){if(l.kind==="compound")continue;let s=r.printVariant(l),a=n.get(s);if(typeof a!="string")continue;let u=i.get(a);if(u.length!==1)continue;let c=u[0],p=r.parseVariant(c);p!==null&&W(l,p)}return e}function Ca(e,t){let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let i=r.printCandidate({...e,value:{...e.value,dataType:null}});n.get(r.printCandidate(e))===n.get(i)&&(e.value.dataType=null)}return e}function Sa(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions),i=n.get(r.printCandidate(e));if(i===null)return e;for(let o of Ki(e))if(n.get(r.printCandidate({...e,value:o}))===i)return e.value=o,e;return e}function Aa(e){let t=gt(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[n,i]=b(r.value.value,"=");if(n[n.length-1]==="~"||n[n.length-1]==="|"||n[n.length-1]==="^"||n[n.length-1]==="$"||n[n.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*Ki(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("%")&&Z(t.slice(0,-1))&&(yield{kind:"named",value:t.slice(0,-1),fraction:null}),t.includes("/")){let[o,l]=t.split("/");j(o)&&j(l)&&(yield{kind:"named",value:o,fraction:`${o}/${l}`})}let n=new Set;for(let o of t.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))n.add(o[0].trim());let i=Array.from(n).sort((o,l)=>o.length-l.length);for(let o of i)yield*Ki(e,o,r)}function Di(e){return!(e.length===1&&e[0].kind==="list")}function dt(e){return e.value[0]==="["&&e.value[e.value.length-1]==="]"}function $a(e,t){let r=[e],n=t.designSystem,i=n.storage[ht],o=gt(e);for(let[l,s]of o)if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="arbitrary"){if(l.relative)continue;let a=Ke(l.selector);if(!Di(a))continue;if(a.length===1&&a[0].kind==="complex"&&(a=a[0].nodes),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===">"&&a[2].kind==="selector"&&a[2].value==="*"){W(l,n.parseVariant("*"));continue}if(s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&a[2].value==="*"){W(l,n.parseVariant("**"));continue}if(s===null&&a.length===1&&a[0].kind==="compound"&&a[0].nodes.length===2&&a[0].nodes[0].kind==="selector"&&a[0].nodes[0].value==="&"&&a[0].nodes[1].kind==="function"&&a[0].nodes[1].value===":has"&&a[0].nodes[1].nodes.length===1&&a[0].nodes[1].nodes[0].kind==="selector"){W(l,n.parseVariant(`has-[${re(a[0].nodes[1].nodes,!0)}]`));continue}if(s===null&&a.length===3&&a[0].kind==="selector"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&a[2].value==="&"){a.pop(),a.pop(),W(l,n.parseVariant(`in-[${re(a,!0)}]`));continue}if(s===null&&a[0].kind==="selector"&&(a[0].value==="@media"||a[0].value==="@supports")){let f=i.get(n.printVariant(l)),m=x(re(a,!0)),d=!1;if(w(m,g=>{if(g.kind==="word"&&g.value==="not")return d=!0,y.Replace([])}),m=x(C(m)),w(m,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),d){let g=n.parseVariant(`not-[${C(m)}]`);if(g===null)continue;let h=i.get(n.printVariant(g));if(f===h){W(l,g);continue}}}let u=null;s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===">"&&a[2].kind==="selector"&&(a[2].value[0]===":"||dt(a[2]))&&(a=[a[2]],u=n.parseVariant("*")),s===null&&a.length===3&&a[0].kind==="selector"&&a[0].value==="&"&&a[1].kind==="combinator"&&a[1].value===" "&&a[2].kind==="selector"&&(a[2].value[0]===":"||dt(a[2]))&&(a=[a[2]],u=n.parseVariant("**"));let c=a;if(w(c,{enter(f){if(f.kind==="selector"&&f.value==="&")return y.Replace([]);if(f.kind==="function")return y.Skip},exit(f){if(f.kind==="compound"&&f.nodes.length===1)return y.ReplaceSkip(f.nodes)}}),c.length!==1)continue;let p=c[0];if(p.kind==="function"&&p.value===":is"){if(!Di(p.nodes)||p.nodes.length!==1||p.nodes[0].kind==="selector"&&!dt(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,$]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"&&j(f.nodes[0].value)?`${$}-${f.nodes[0].value}`:`${$}-[${re(f.nodes,!0)}]`;if(m){let v=i.get(n.printVariant(l)),$=i.get(`not-[${h}]`);if(v===$)return`[&${h}]`}return null})(f.value);if(d===null){if(u)return W(l,{kind:"arbitrary",selector:p.value,relative:!1}),[u,l];continue}m&&(d=`not-${d}`);let g=n.parseVariant(d);if(g===null)continue;W(l,g)}else if(p.kind==="selector"&&dt(p)){let f=ur(p.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let m=f.attribute.slice(5);W(l,{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);W(l,{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}`:""}`}})}else W(l,{kind:"arbitrary",selector:p.value,relative:!1})}if(u)return[u,l]}return r}function Ta(e,t){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let n=t.designSystem.storage[tt].get(t.signatureOptions),i=x(e.value.value);if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let[o,l]=et(i,null,!1);if(o){let s=M(e);s.value.value=C(l),n(e,s)&&(e=s,i=l)}}if(e.root[0]==="-"){if(i.length===1&&i[0].kind==="function"&&i[0].value==="var")return e;let o=x(`calc(${e.value.value} * -1)`),[l,s]=et(o,null,!1);if(l){let a=M(e);a.root=a.root.slice(1),a.value.value=C(s),n(e,a)&&(e=a,i=s)}}if(i.length===1&&i[0].kind==="function"&&i[0].value==="calc"){let o=i[0].nodes;if(o.length===5&&o[1].kind==="separator"&&o[1].value===" "&&o[2].kind==="word"&&o[2].value==="*"&&o[3].kind==="separator"&&o[3].value===" "){let l=o[4].kind==="word"&&o[4].value==="-1"?o[0]:o[0].kind==="word"&&o[0].value==="-1"?o[4]:null;if(l){let s=M(e);s.root=`-${e.root}`,s.value.value=C([l]),n(e,s)&&(e=s)}}}return e}function Ea(e,t){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let r=t.designSystem,n=r.storage[ae].get(t.signatureOptions),i=n.get(r.printCandidate(e)),o=e.modifier;if(i===n.get(r.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let l={kind:"named",value:o.value.endsWith("%")?o.value.includes(".")?`${Number(o.value.slice(0,-1))}`:o.value.slice(0,-1):o.value,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}{let l={kind:"named",value:`${parseFloat(o.value)*100}`,fraction:null};if(i===n.get(r.printCandidate({...e,modifier:l})))return e.modifier=l,e}return e}var ae=Symbol();function Na(e){return new k(t=>new k(r=>{try{r=e.theme.prefix&&!r.startsWith(e.theme.prefix)?`${e.theme.prefix}:${r}`:r;let n=[fe(".x",[N("@apply",r)])];return Ia(e,()=>{for(let o of e.parseCandidate(r))e.compileAstNodes(o,1);rt(n,e)}),Fi(e,n,t),H(n)}catch{return Symbol()}}))}var Ii=/#(?:[a-f0-9]{8}|[a-f0-9]{6}|[a-f0-9]{4}|[a-f0-9]{3})/gi;function Fi(e,t,r){let{rem:n}=r;return w(t,{enter(i,o){if(i.kind==="declaration"){if(i.value===void 0||i.property==="--tw-sort")return y.Replace([]);if(i.property.startsWith("--tw-")&&o.siblings.some(p=>p.kind==="declaration"&&i.value===p.value&&i.important===p.important&&!p.property.startsWith("--tw-")))return y.Replace([]);if(r.features&1){let p=bi(i,r.features);if(p)return y.Replace(p)}i.value.includes("var(")&&(i.value=Va(i.value,e));let l=x(i.value),[s,a]=et(l,n),[u,c]=mi(a);(s||u)&&(i.value=C(c)),i.value=or(i.value)}else{if(i.kind==="context"||i.kind==="at-root")return y.Replace(i.nodes);if(i.kind==="comment")return y.Replace([]);if(i.kind==="at-rule"&&i.name==="@property")return y.Replace([])}},exit(i){if(i.kind==="rule"||i.kind==="at-rule"){if(i.nodes.length>1){let o=new Set;for(let l=i.nodes.length-1;l>=0;l--){let s=i.nodes[l];s.kind==="declaration"&&s.value!==void 0&&(o.has(s.property)&&i.nodes.splice(l,1),o.add(s.property))}}i.nodes.sort((o,l)=>o.kind!=="declaration"||l.kind!=="declaration"?0:o.property.localeCompare(l.property))}else if(i.kind==="declaration"&&i.value){if(i.property[0]==="-"&&i.property[1]==="-")return;Ii.lastIndex=0,i.value=i.value.replace(Ii,o=>o.toLowerCase())}}}),t}function Va(e,t){let r=!1,n=x(e),i=new Set;return w(n,o=>{if(o.kind!=="function"||o.value!=="var"||o.nodes.length!==1&&o.nodes.length<3)return;let l=o.nodes[0].value;t.theme.prefix&&l.startsWith(`--${t.theme.prefix}-`)&&(l=l.slice(`--${t.theme.prefix}-`.length));let s=t.resolveThemeValue(l);if(!i.has(l)&&(i.add(l),s!==void 0&&(o.nodes.length===1&&(r=!0,o.nodes.push(...x(`,${s}`))),o.nodes.length>=3))){let a=C(o.nodes),u=`${o.nodes[0].value},${s}`;if(a===u)return r=!0,y.Replace(x(s))}}),r?C(n):e}var Wi=Symbol();function Ra(){return new k(e=>new k(t=>new k(r=>new Set)))}var hr=Symbol();function Pa(e){return new k(t=>new k(r=>{let n=new k(o=>new Set);e.theme.prefix&&!r.startsWith(e.theme.prefix)&&(r=`${e.theme.prefix}:${r}`);let i=e.parseCandidate(r);if(i.length===0)return n;try{let o=e.compileAstNodes(i[0]).map(l=>Q(l.node));w(Fi(e,o,t),l=>{l.kind==="declaration"&&(n.get(l.property).add(l.value),e.storage[Wi].get(t).get(l.property).get(l.value).add(r))})}catch{}return n}))}var vr=Symbol();function _a(e){return new k(t=>{let r=e.storage[ae].get(t),n=new k(()=>[]);for(let[i,o]of e.getClassList()){let l=r.get(i);if(typeof l=="string"){if(i[0]==="-"&&i.endsWith("-0")){let s=r.get(i.slice(1));if(typeof s=="string"&&l===s)continue}n.get(l).push(i),e.storage[hr].get(t).get(i);for(let s of o.modifiers){if(Z(s))continue;let a=`${i}/${s}`,u=r.get(a);typeof u=="string"&&(n.get(u).push(a),e.storage[hr].get(t).get(a))}}}return n})}var ht=Symbol();function Oa(e){return new k(t=>{try{t=e.theme.prefix&&!t.startsWith(e.theme.prefix)?`${e.theme.prefix}:${t}`:t;let r=[fe(".x",[N("@apply",`${t}:flex`)])];return rt(r,e),w(r,i=>{if(i.kind==="at-rule"&&i.params.includes(" "))i.params=i.params.replaceAll(" ","");else if(i.kind==="rule"){let o=Ke(i.selector),l=!1;w(o,s=>{if(s.kind==="list"||s.kind==="combinator")l=!0;else if(s.kind==="function"&&s.value===":is"){if(s.nodes.length===1)return l=!0,y.Replace(s.nodes);if(s.nodes.length===2&&s.nodes[0].kind==="selector"&&s.nodes[0].value==="*"&&s.nodes[1].kind==="selector"&&s.nodes[1].value[0]===":")return l=!0,y.Replace(s.nodes[1])}else s.kind==="function"&&s.value[0]===":"&&s.nodes[0]?.kind==="selector"&&s.nodes[0]?.value[0]===":"&&(l=!0,s.nodes.unshift({kind:"selector",value:"*"}))}),l&&(i.selector=re(o,!0))}}),H(r)}catch{return Symbol()}})}var Bi=Symbol();function Da(e){let t=e.storage[ht],r=new k(()=>[]);for(let[n,i]of e.variants.entries())if(i.kind==="static"){let o=t.get(n);if(typeof o!="string")continue;r.get(o).push(n)}return r}function Ia(e,t){let r=e.theme.values.get,n=new Set;e.theme.values.get=i=>{let o=r.call(e.theme.values,i);return o===void 0||o.options&1&&(n.add(o),o.options&=-2),o};try{return t()}finally{e.theme.values.get=r;for(let i of n)i.options|=1}}var bp=new k(e=>{let t=[];return w(x(e),r=>{if(!(r.kind!=="function"||r.value!=="var"))return w(r.nodes,n=>{n.kind!=="word"||n.value[0]!=="-"||n.value[1]!=="-"||t.push(n.value)}),y.Skip}),t});function it(e,t,{onInvalidCandidate:r,respectImportant:n}={}){let i=new Map,o=[],l=new Map;for(let u of e){if(t.invalidCandidates.has(u)){r?.(u);continue}let c=t.parseCandidate(u);if(c.length===0){r?.(u);continue}l.set(u,c)}let s=0;(n??!0)&&(s|=1);let a=t.getVariantOrder();for(let[u,c]of l){let p=!1;for(let f of c){let m=t.compileAstNodes(f,s);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));i.set(d,{properties:g,variants:h,candidate:u}),o.push(d)}}}p||r?.(u)}return o.sort((u,c)=>{let p=i.get(u),f=i.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||sr(p.candidate,f.candidate)}),{astNodes:o,nodeSorting:i}}function rt(e,t){let r=0,n=Y("&",e),i=new Set,o=new k(()=>new Set),l=new k(()=>new Set);w([n],(p,f)=>{if(p.kind==="at-rule"){if(p.name==="@keyframes")return w(p.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),y.Skip;if(p.name==="@utility"){let m=p.params.replace(/-\*$/,"");l.get(m).add(p),w(p.nodes,d=>{if(!(d.kind!=="at-rule"||d.name!=="@apply")){i.add(p);for(let g of Yi(d,t))o.get(p).add(g)}});return}if(p.name==="@apply"){if(f.parent===null)return;r|=1,i.add(f.parent);for(let m of Yi(p,t))for(let d of f.path())i.has(d)&&o.get(d).add(m)}}});let s=new Set,a=[],u=new Set;function c(p,f=[]){if(!s.has(p)){if(u.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"&&w(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:
|
|
8
8
|
|
|
9
9
|
${H([p])}
|
|
10
10
|
Relies on:
|
|
11
11
|
|
|
12
|
-
${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f),f.pop();s.add(p),u.delete(p),a.push(p)}}for(let p of i)c(p);for(let p of a)"nodes"in p&&w(p.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),d={},g=[],h=[],v=0;for(let[T,A]of m.entries())T%2===0&&(A[0]==="-"&&A[1]==="-"?h.push(A):g.push(A),d[A]=v),v+=A.length;if(h.length){if(g.length===0)return k.Skip;let T=h.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${T}\` into a separate rule.`)}if(f.nodes.length>0&&g.length){let T=g.join(" ");throw new Error(`The rule \`@apply ${T}\` must not have a body.`)}{let T=Object.keys(d),A=rt(T,t,{respectImportant:!1,onInvalidCandidate:R=>{if(t.theme.prefix&&!R.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${R}\`. Did you mean \`${t.theme.prefix}:${R}\`?`);if(t.invalidCandidates.has(R))throw new Error(`Cannot apply utility class \`${R}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let ee=b(R,":");if(ee.length>1){let st=ee.pop();if(t.candidatesToCss([st])[0]){let De=t.candidatesToCss(ee.map(Ie=>`${Ie}:[--tw-variant-check:1]`)),he=ee.filter((Ie,Jt)=>De[Jt]===null);if(he.length>0){if(he.length===1)throw new Error(`Cannot apply utility class \`${R}\` because the ${he.map(Ie=>`\`${Ie}\``)} variant does not exist.`);{let Ie=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${R}\` because the ${Ie.format(he.map(Jt=>`\`${Jt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${R}\`. 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 \`${R}\``)}}),_=f.src,ge=A.astNodes.map(R=>{let ee=A.nodeSorting.get(R)?.candidate,st=ee?d[ee]:void 0;if(R=Q(R),!_||!ee||st===void 0)return w([R],he=>{he.src=_}),R;let De=[_[0],_[1],_[2]];return De[1]+=7+st,De[2]=De[1]+ee.length,w([R],he=>{he.src=De}),R}),Oe=[];for(let R of ge)if(R.kind==="rule")for(let ee of R.nodes)Oe.push(ee);else Oe.push(R);return k.Replace(Oe)}});return r}function*Bi(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var Wa=32,Ba=9;var Ga=40;function Yi(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Wa||o===Ba||o===Ga){r=e.slice(0,i),n=e.slice(i);break}}return V(r.trim(),n.trim(),t)}function qi(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let l=e[o];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.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 l?r=x(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=x(l.nodes);continue}n=x(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Ke(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function it(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let l=r(e[o],i[o],n);l!==void 0?e[o]=l:!Ke(e[o])||!Ke(i[o])?e[o]=i[o]:e[o]=it({},[e[o],i[o]],r,n),n.pop()}return e}function wr(e,t,r){return function(i,o){let l=i.lastIndexOf("/"),s=null;l!==-1&&(s=i.slice(l+1).trim(),i=i.slice(0,l).trim());let a=(()=>{let u=re(i),[c,p]=Ya(e.theme,u),f=r(Ji(t()??{},u)??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=it({},[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&&Ji(m,d.split("-"))!==void 0||(m[Ze(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 s&&typeof a=="string"&&(a=ze(a,s)),a??o}}function Ya(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=te(t),n=new Map,i=new y(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let l=new Map;for(let[c,p]of o){if(!c||!c.includes("--")){n.set(c,p),l.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()),i.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,p]of i){let f=n.get(c);if(typeof f!="string")continue;let m={},d={};for(let[g,[h,v]]of p)m[g]=h,d[g]=v;n.set(c,[f,m]),l.set(c,[s,d])}let a={},u={};for(let[c,p]of n)Zi(a,[c??"DEFAULT"],p);for(let[c,p]of l)Zi(u,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[a?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in a&&Object.keys(a).length===1?[a.DEFAULT,u.DEFAULT??0]:(a.__CSS_VALUES__=u,[a,u])}function Ji(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e==null||typeof e!="object"||!Object.hasOwn(e,n)){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function Zi(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 kt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(Y(n,[V("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(E(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(E(n,o)):t.push(Y(n,kt(o)));else t.push(Y(n,kt(i)));return t}function Qi(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(V("@keyframes",r,kt(n)));return t}var vt={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)"},mauve:{50:"oklch(98.5% 0 0)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Ve(e){return{__BARE_VALUE__:e}}var ne=Ve(e=>{if(j(e.value))return e.value}),K=Ve(e=>{if(j(e.value))return`${e.value}%`}),ve=Ve(e=>{if(j(e.value))return`${e.value}px`}),Xi=Ve(e=>{if(j(e.value))return`${e.value}ms`}),wt=Ve(e=>{if(j(e.value))return`${e.value}deg`}),Ja=Ve(e=>{if(e.fraction===null)return;let[t,r]=b(e.fraction,"/");if(!(!j(t)||!j(r)))return e.fraction}),en=Ve(e=>{if(j(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Za={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"),...K}),backdropContrast:({theme:e})=>({...e("contrast"),...K}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...K}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...wt}),backdropInvert:({theme:e})=>({...e("invert"),...K}),backdropOpacity:({theme:e})=>({...e("opacity"),...K}),backdropSaturate:({theme:e})=>({...e("saturate"),...K}),backdropSepia:({theme:e})=>({...e("sepia"),...K}),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",...ve},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",...K},caretColor:({theme:e})=>e("colors"),colors:()=>({...vt}),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",...ne},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...K},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"),...ve}),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",...ne},flexShrink:{0:"0",DEFAULT:"1",...ne},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%",...K},grayscale:{0:"0",DEFAULT:"100%",...K},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",...ne},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",...ne},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",...ne},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",...ne},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))",...en},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))",...en},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",...wt},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%",...K},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",...ne},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",...K},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",...ne},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...ve},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...wt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...K},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",...K},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%",...K},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...wt},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",...ne},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",...ve},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...Xi},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Xi},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",...ne}};var Qa={blocklist:[],future:{},experimental:{},prefix:"",important:!1,darkMode:null,theme:{},plugins:[],content:{files:[]}};function Re(e,t){let r={design:e,configs:[],plugins:[],content:{files:[]},theme:{},extend:{},result:structuredClone(Qa)};for(let i of t)br(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=es(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Xa(e,t){if(Array.isArray(e)&&Ke(e[0]))return e.concat(t);if(Array.isArray(t)&&Ke(t[0])&&Ke(e))return[e,...t];if(Array.isArray(t))return t}function br(e,{config:t,base:r,path:n,reference:i,src:o}){let l=[];for(let u of t.plugins??[])"__isOptionsFunction"in u?l.push({...u(),reference:i,src:o}):"handler"in u?l.push({...u,reference:i,src:o}):l.push({handler:u,reference:i,src:o});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 u of t.presets??[])br(e,{path:n,base:r,config:u,reference:i,src:o});for(let u of l)e.plugins.push(u),u.config&&br(e,{path:n,base:r,config:u.config,reference:!!u.reference,src:u.src??o});let s=t.content??[],a=Array.isArray(s)?s:s.files;for(let u of a)e.content.files.push(typeof u=="object"?u:{base:r,pattern:u});e.configs.push(t)}function es(e){let t=new Set,r=wr(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:vt});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let l=o.theme??{},s=l.extend??{};for(let a in l)a!=="extend"&&t.add(a);Object.assign(e.theme,l);for(let a in s)e.extend[a]??=[],e.extend[a].push(s[a])}delete e.theme.extend;for(let o in e.extend){let l=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let s=l.map(i);return it({},s,Xa)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let l=e.theme.screens[o];l&&typeof l=="object"&&("raw"in l||"max"in l||"min"in l&&(e.theme.screens[o]=l.min))}return t}function tn({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(E("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(E("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((s,a)=>Je(s[1],a[1],"asc")),l.length>0){let[s]=l[0];i.push(V("@media",`(width >= --theme(--breakpoint-${s}))`,[E("max-width","none")]))}for(let[s,a]of Object.entries(r)){if(typeof a=="object")if("min"in a)a=a.min;else continue;o.set(s,V("@media",`(width >= ${a})`,[E("max-width",a)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,a])=>[s,n.theme.resolveValue(s,["--breakpoint"]),a]).filter(Boolean);l.sort((s,a)=>Je(s[1],a[1],"asc"));for(let[s,,a]of l)if(o&&o.has(s))o.get(s).nodes.push(E("padding-inline",a));else{if(o)continue;i.push(V("@media",`(width >= theme(--breakpoint-${s}))`,[E("padding-inline",a)]))}}if(o)for(let[,l]of o)i.push(l);return i}function xr({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let l of o)l===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):l.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}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 rn(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(", ")}var rs=64;function fe(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function V(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function Y(e,t=[]){return e.charCodeAt(0)===rs?Yi(e,t):fe(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function yt(e){return{kind:"comment",value:e}}function Q(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Q),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 H(e,t){let r=0,n={file:null,code:""};function i(l,s=0){let a="",u=" ".repeat(s);if(l.kind==="declaration"){if(a+=`${u}${l.property}: ${l.value}${l.important?" !important":""};
|
|
12
|
+
${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f),f.pop();s.add(p),u.delete(p),a.push(p)}}for(let p of i)c(p);for(let p of a)"nodes"in p&&w(p.nodes,f=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),d={},g=[],h=[],v=0;for(let[T,S]of m.entries())T%2===0&&(S[0]==="-"&&S[1]==="-"?h.push(S):g.push(S),d[S]=v),v+=S.length;if(h.length){if(g.length===0)return y.Skip;let T=h.join(" ");throw new Error(`You cannot use \`@apply\` with both mixins and utilities. Please move \`@apply ${T}\` into a separate rule.`)}if(f.nodes.length>0&&g.length){let T=g.join(" ");throw new Error(`The rule \`@apply ${T}\` must not have a body.`)}{let T=Object.keys(d),S=it(T,t,{respectImportant:!1,onInvalidCandidate:V=>{if(t.theme.prefix&&!V.startsWith(t.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${V}\`. Did you mean \`${t.theme.prefix}:${V}\`?`);if(t.invalidCandidates.has(V))throw new Error(`Cannot apply utility class \`${V}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let ee=b(V,":");if(ee.length>1){let ut=ee.pop();if(t.candidatesToCss([ut])[0]){let De=t.candidatesToCss(ee.map(Ie=>`${Ie}:[--tw-variant-check:1]`)),ke=ee.filter((Ie,Jt)=>De[Jt]===null);if(ke.length>0){if(ke.length===1)throw new Error(`Cannot apply utility class \`${V}\` because the ${ke.map(Ie=>`\`${Ie}\``)} variant does not exist.`);{let Ie=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${V}\` because the ${Ie.format(ke.map(Jt=>`\`${Jt}\``))} variants do not exist.`)}}}}throw t.theme.size===0?new Error(`Cannot apply unknown utility class \`${V}\`. 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 \`${V}\``)}}),_=f.src,he=S.astNodes.map(V=>{let ee=S.nodeSorting.get(V)?.candidate,ut=ee?d[ee]:void 0;if(V=Q(V),!_||!ee||ut===void 0)return w([V],ke=>{ke.src=_}),V;let De=[_[0],_[1],_[2]];return De[1]+=7+ut,De[2]=De[1]+ee.length,w([V],ke=>{ke.src=De}),V}),Oe=[];for(let V of he)if(V.kind==="rule")for(let ee of V.nodes)Oe.push(ee);else Oe.push(V);return y.Replace(Oe)}});return r}function*Yi(e,t){for(let r of e.params.split(/\s+/g))for(let n of t.parseCandidate(r))switch(n.kind){case"arbitrary":break;case"static":case"functional":yield n.root;break;default:}}var Wa=32,Ba=9;var Ga=40;function Hi(e,t=[]){let r=e,n="";for(let i=5;i<e.length;i++){let o=e.charCodeAt(i);if(o===Wa||o===Ba||o===Ga){r=e.slice(0,i),n=e.slice(i);break}}return N(r.trim(),n.trim(),t)}function Ji(e){let t,r=null,n=null,i=null;for(let o=0;o<e.length;o++){let l=e[o];if(l.kind!=="separator"){if(l.kind==="word"&&!t){if(!l.value||l.value[0]!=='"'&&l.value[0]!=="'")return null;t=l.value.slice(1,-1);continue}if(l.kind==="function"&&l.value.toLowerCase()==="url"||!t)return null;if((l.kind==="word"||l.kind==="function")&&l.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 l?r=C(l.nodes):r="";continue}if(l.kind==="function"&&l.value.toLowerCase()==="supports"){if(i)return null;i=C(l.nodes);continue}n=C(e.slice(o));break}}return t?{uri:t,layer:r,media:n,supports:i}:null}function Fe(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function nt(e,t,r,n=[]){for(let i of t)if(i!=null)for(let o of Reflect.ownKeys(i)){n.push(o);let l=r(e[o],i[o],n);l!==void 0?e[o]=l:!Fe(e[o])||!Fe(i[o])?e[o]=i[o]:e[o]=nt({},[e[o],i[o]],r,n),n.pop()}return e}function xr(e,t,r){return function(i,o){let l=i.lastIndexOf("/"),s=null;l!==-1&&(s=i.slice(l+1).trim(),i=i.slice(0,l).trim());let a=(()=>{let u=ie(i),[c,p]=Ya(e.theme,u),f=r(Qi(t()??{},u)??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=nt({},[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&&Qi(m,d.split("-"))!==void 0||(m[Qe(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!==null&&typeof c=="object"&&!Array.isArray(c)&&"DEFAULT"in c?c.DEFAULT:c??f})();return s&&typeof a=="string"&&(a=ze(a,s)),a??o}}function Ya(e,t){if(t.length===1&&t[0].startsWith("--"))return[e.get([t[0]]),e.getOptions(t[0])];let r=te(t),n=new Map,i=new k(()=>new Map),o=e.namespace(`--${r}`);if(o.size===0)return[null,0];let l=new Map;for(let[c,p]of o){if(!c||!c.includes("--")){n.set(c,p),l.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()),i.get(m===""?null:m).set(d,[p,e.getOptions(`--${r}${c}`)])}let s=e.getOptions(`--${r}`);for(let[c,p]of i){let f=n.get(c);if(typeof f!="string")continue;let m={},d={};for(let[g,[h,v]]of p)m[g]=h,d[g]=v;n.set(c,[f,m]),l.set(c,[s,d])}let a={},u={};for(let[c,p]of n)Xi(a,[c??"DEFAULT"],p);for(let[c,p]of l)Xi(u,[c??"DEFAULT"],p);return t[t.length-1]==="DEFAULT"?[a?.DEFAULT??null,u.DEFAULT??0]:"DEFAULT"in a&&Object.keys(a).length===1?[a.DEFAULT,u.DEFAULT??0]:(a.__CSS_VALUES__=u,[a,u])}function Qi(e,t){for(let r=0;r<t.length;++r){let n=t[r];if(e==null||typeof e!="object"||!Object.hasOwn(e,n)){if(t[r+1]===void 0)return;t[r+1]=`${n}-${t[r+1]}`;continue}e=e[n]}return e}function Xi(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 yt(e){let t=[];e=Array.isArray(e)?e:[e];let r=e.flatMap(n=>Object.entries(n));for(let[n,i]of r)if(i!=null&&i!==!1)if(typeof i!="object"){if(!n.startsWith("--")){if(i==="@slot"){t.push(Y(n,[N("@slot")]));continue}n=n.replace(/([A-Z])/g,"-$1").toLowerCase()}t.push(E(n,String(i)))}else if(Array.isArray(i))for(let o of i)typeof o=="string"?t.push(E(n,o)):t.push(Y(n,yt(o)));else t.push(Y(n,yt(i)));return t}function en(e){let t=[];if("keyframes"in e.theme)for(let[r,n]of Object.entries(e.theme.keyframes))t.push(N("@keyframes",r,yt(n)));return t}var vt={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 none)",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 none)",100:"oklch(97% 0 none)",200:"oklch(92.2% 0 none)",300:"oklch(87% 0 none)",400:"oklch(70.8% 0 none)",500:"oklch(55.6% 0 none)",600:"oklch(43.9% 0 none)",700:"oklch(37.1% 0 none)",800:"oklch(26.9% 0 none)",900:"oklch(20.5% 0 none)",950:"oklch(14.5% 0 none)"},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)"},mauve:{50:"oklch(98.5% 0 none)",100:"oklch(96% 0.003 325.6)",200:"oklch(92.2% 0.005 325.62)",300:"oklch(86.5% 0.012 325.68)",400:"oklch(71.1% 0.019 323.02)",500:"oklch(54.2% 0.034 322.5)",600:"oklch(43.5% 0.029 321.78)",700:"oklch(36.4% 0.029 323.89)",800:"oklch(26.3% 0.024 320.12)",900:"oklch(21.2% 0.019 322.12)",950:"oklch(14.5% 0.008 326)"},olive:{50:"oklch(98.8% 0.003 106.5)",100:"oklch(96.6% 0.005 106.5)",200:"oklch(93% 0.007 106.5)",300:"oklch(88% 0.011 106.6)",400:"oklch(73.7% 0.021 106.9)",500:"oklch(58% 0.031 107.3)",600:"oklch(46.6% 0.025 107.3)",700:"oklch(39.4% 0.023 107.4)",800:"oklch(28.6% 0.016 107.4)",900:"oklch(22.8% 0.013 107.4)",950:"oklch(15.3% 0.006 107.1)"},mist:{50:"oklch(98.7% 0.002 197.1)",100:"oklch(96.3% 0.002 197.1)",200:"oklch(92.5% 0.005 214.3)",300:"oklch(87.2% 0.007 219.6)",400:"oklch(72.3% 0.014 214.4)",500:"oklch(56% 0.021 213.5)",600:"oklch(45% 0.017 213.2)",700:"oklch(37.8% 0.015 216)",800:"oklch(27.5% 0.011 216.9)",900:"oklch(21.8% 0.008 223.9)",950:"oklch(14.8% 0.004 228.8)"},taupe:{50:"oklch(98.6% 0.002 67.8)",100:"oklch(96% 0.002 17.2)",200:"oklch(92.2% 0.005 34.3)",300:"oklch(86.8% 0.007 39.5)",400:"oklch(71.4% 0.014 41.2)",500:"oklch(54.7% 0.021 43.1)",600:"oklch(43.8% 0.017 39.3)",700:"oklch(36.7% 0.016 35.7)",800:"oklch(26.8% 0.011 36.5)",900:"oklch(21.4% 0.009 43.1)",950:"oklch(14.7% 0.004 49.3)"},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 Ne(e){return{__BARE_VALUE__:e}}var oe=Ne(e=>{if(j(e.value))return e.value}),K=Ne(e=>{if(j(e.value))return`${e.value}%`}),ve=Ne(e=>{if(j(e.value))return`${e.value}px`}),tn=Ne(e=>{if(j(e.value))return`${e.value}ms`}),wt=Ne(e=>{if(j(e.value))return`${e.value}deg`}),Ja=Ne(e=>{if(e.fraction===null)return;let[t,r]=b(e.fraction,"/");if(!(!j(t)||!j(r)))return e.fraction}),rn=Ne(e=>{if(j(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Za={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"),...K}),backdropContrast:({theme:e})=>({...e("contrast"),...K}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...K}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...wt}),backdropInvert:({theme:e})=>({...e("invert"),...K}),backdropOpacity:({theme:e})=>({...e("opacity"),...K}),backdropSaturate:({theme:e})=>({...e("saturate"),...K}),backdropSepia:({theme:e})=>({...e("sepia"),...K}),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",...ve},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",...K},caretColor:({theme:e})=>e("colors"),colors:()=>({...vt}),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",...oe},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...K},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"),...ve}),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",...oe},flexShrink:{0:"0",DEFAULT:"1",...oe},fontFamily:{sans:["-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"','"Noto Sans"',"Arial","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%",...K},grayscale:{0:"0",DEFAULT:"100%",...K},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",...oe},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",...oe},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",...oe},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",...oe},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))",...rn},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))",...rn},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",...wt},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%",...K},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",...oe},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",...K},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",...oe},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...ve},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...wt},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...K},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",...K},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%",...K},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...wt},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",...oe},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",...ve},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...ve},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",...tn},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...tn},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",...oe}};var Qa={blocklist:[],future:{},experimental:{},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 i of t)Cr(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=es(r);return{resolvedConfig:{...r.result,content:r.content,theme:r.theme,plugins:r.plugins},replacedThemeKeys:n}}function Xa(e,t){if(Array.isArray(e)&&Fe(e[0]))return e.concat(t);if(Array.isArray(t)&&Fe(t[0])&&Fe(e))return[e,...t];if(Array.isArray(t))return t}function Cr(e,{config:t,base:r,path:n,reference:i,src:o}){let l=[];for(let u of t.plugins??[])"__isOptionsFunction"in u?l.push({...u(),reference:i,src:o}):"handler"in u?l.push({...u,reference:i,src:o}):l.push({handler:u,reference:i,src:o});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 u of t.presets??[])Cr(e,{path:n,base:r,config:u,reference:i,src:o});for(let u of l)e.plugins.push(u),u.config&&Cr(e,{path:n,base:r,config:u.config,reference:!!u.reference,src:u.src??o});let s=t.content??[],a=Array.isArray(s)?s:s.files;for(let u of a)e.content.files.push(typeof u=="object"?u:{base:r,pattern:u});e.configs.push(t)}function es(e){let t=new Set,r=xr(e.design,()=>e.theme,i),n=Object.assign(r,{theme:r,colors:vt});function i(o){return typeof o=="function"?o(n)??null:o??null}for(let o of e.configs){let l=o.theme??{},s=l.extend??{};for(let a in l)a!=="extend"&&t.add(a);Object.assign(e.theme,l);for(let a in s)e.extend[a]??=[],e.extend[a].push(s[a])}delete e.theme.extend;for(let o in e.extend){let l=[e.theme[o],...e.extend[o]];e.theme[o]=()=>{let s=l.map(i);return nt({},s,Xa)}}for(let o in e.theme)e.theme[o]=i(e.theme[o]);if(e.theme.screens&&typeof e.theme.screens=="object")for(let o of Object.keys(e.theme.screens)){let l=e.theme.screens[o];l&&typeof l=="object"&&("raw"in l||"max"in l||"min"in l&&(e.theme.screens[o]=l.min))}return t}function nn({center:e,padding:t,screens:r},n){let i=[],o=null;if(e&&i.push(E("margin-inline","auto")),(typeof t=="string"||typeof t=="object"&&t!==null&&"DEFAULT"in t)&&i.push(E("padding-inline",typeof t=="string"?t:t.DEFAULT)),typeof r=="object"&&r!==null){o=new Map;let l=Array.from(n.theme.namespace("--breakpoint").entries());if(l.sort((s,a)=>Ze(s[1],a[1],"asc")),l.length>0){let[s]=l[0];i.push(N("@media",`(width >= --theme(--breakpoint-${s}))`,[E("max-width","none")]))}for(let[s,a]of Object.entries(r)){if(typeof a=="object")if("min"in a)a=a.min;else continue;o.set(s,N("@media",`(width >= ${a})`,[E("max-width",a)]))}}if(typeof t=="object"&&t!==null){let l=Object.entries(t).filter(([s])=>s!=="DEFAULT").map(([s,a])=>[s,n.theme.resolveValue(s,["--breakpoint"]),a]).filter(Boolean);l.sort((s,a)=>Ze(s[1],a[1],"asc"));for(let[s,,a]of l)if(o&&o.has(s))o.get(s).nodes.push(E("padding-inline",a));else{if(o)continue;i.push(N("@media",`(width >= theme(--breakpoint-${s}))`,[E("padding-inline",a)]))}}if(o)for(let[,l]of o)i.push(l);return i}function Sr({addVariant:e,config:t}){let r=t("darkMode",null),[n,i=".dark"]=Array.isArray(r)?r:[r];if(n==="variant"){let o;if(Array.isArray(i)||typeof i=="function"?o=i:typeof i=="string"&&(o=[i]),Array.isArray(o))for(let l of o)l===".dark"?(n=!1,console.warn('When using `variant` for `darkMode`, you must provide a selector.\nExample: `darkMode: ["variant", ".your-selector &"]`')):l.includes("&")||(n=!1,console.warn('When using `variant` for `darkMode`, your selector must contain `&`.\nExample `darkMode: ["variant", ".your-selector &"]`'));i=o}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 on(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(", ")}var rs=64;function fe(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function N(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function Y(e,t=[]){return e.charCodeAt(0)===rs?Hi(e,t):fe(e,t)}function E(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function kt(e){return{kind:"comment",value:e}}function Q(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(Q),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(Q),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 H(e,t){let r=0,n={file:null,code:""};function i(l,s=0){let a="",u=" ".repeat(s);if(l.kind==="declaration"){if(a+=`${u}${l.property}: ${l.value}${l.important?" !important":""};
|
|
13
13
|
`,t){r+=u.length;let c=r;r+=l.property.length,r+=2,r+=l.value?.length??0,l.important&&(r+=11);let p=r;r+=2,l.dst=[n,c,p]}}else if(l.kind==="rule"){if(a+=`${u}${l.selector} {
|
|
14
14
|
`,t){r+=u.length;let c=r;r+=l.selector.length,r+=1;let p=r;l.dst=[n,c,p],r+=2}for(let c of l.nodes)a+=i(c,s+1);a+=`${u}}
|
|
15
15
|
`,t&&(r+=u.length,r+=2)}else if(l.kind==="at-rule"){if(l.nodes.length===0){let c=`${u}${l.name} ${l.params};
|
|
16
16
|
`;if(t){r+=u.length;let p=r;r+=l.name.length,r+=1,r+=l.params.length;let f=r;r+=2,l.dst=[n,p,f]}return c}if(a+=`${u}${l.name}${l.params?` ${l.params} `:" "}{
|
|
17
17
|
`,t){r+=u.length;let c=r;r+=l.name.length,l.params&&(r+=1,r+=l.params.length),r+=1;let p=r;l.dst=[n,c,p],r+=2}for(let c of l.nodes)a+=i(c,s+1);a+=`${u}}
|
|
18
18
|
`,t&&(r+=u.length,r+=2)}else if(l.kind==="comment"){if(a+=`${u}/*${l.value}*/
|
|
19
|
-
`,t){r+=u.length;let c=r;r+=2+l.value.length+2;let p=r;l.dst=[n,c,p],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return a}let o="";for(let l of e)o+=i(l,0);return n.code=o,o}function is(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 o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),n+o.join("/")}function
|
|
19
|
+
`,t){r+=u.length;let c=r;r+=2+l.value.length+2;let p=r;l.dst=[n,c,p],r+=1}}else if(l.kind==="context"||l.kind==="at-root")return"";return a}let o="";for(let l of e)o+=i(l,0);return n.code=o,o}function is(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 o=e.split(/[/\\]+/);return t!==!1&&o[o.length-1]===""&&o.pop(),n+o.join("/")}function Ar(e){let t=is(e);return e.startsWith("\\\\")&&t.startsWith("/")&&!t.startsWith("//")?`/${t}`:t}async function bt(e,t,r,n){if(e[0]!=="."){let s=await un(e,t,n);if(!s)throw new Error(`Could not resolve '${e}' from '${t}'`);let a=await sn(ln(s).href);return{path:s,base:$r.dirname(s),module:a.default??a}}let i=await un(e,t,n);if(!i)throw new Error(`Could not resolve '${e}' from '${t}'`);let[o,l]=await Promise.all([sn(ln(i).href+"?id="+Date.now()),qr(i)]);for(let s of l)r(s);return{path:i,base:$r.dirname(i),module:o.default??o}}var an=null;async function sn(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 an??=os(import.meta.url,{moduleCache:!1,fsCache:!1}),await an.import(e)}}var Er=["node_modules",...process.env.NODE_PATH?[...process.env.NODE_PATH.split($r.delimiter)]:[]],a0=We.ResolverFactory.createResolver({fileSystem:new We.CachedInputFileSystem(Tr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Er});var ls=We.ResolverFactory.createResolver({fileSystem:new We.CachedInputFileSystem(Tr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:Er}),as=We.ResolverFactory.createResolver({fileSystem:new We.CachedInputFileSystem(Tr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:Er});async function un(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 cn(ls,e,t).catch(()=>cn(as,e,t))}function cn(e,t,r){return new Promise((n,i)=>e.resolve({},r,t,{},(o,l)=>{if(o)return i(o);n(l)}))}var Sn=Xo(dn());import St from"tree-sitter";import At from"tree-sitter-typescript";var Nr=new St;Nr.setLanguage(At.typescript);var Vr=String.raw,ds=new St.Query(At.typescript,Vr`
|
|
20
20
|
; export default {}
|
|
21
21
|
(export_statement
|
|
22
22
|
value: [
|
|
@@ -67,7 +67,7 @@ ${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f
|
|
|
67
67
|
]
|
|
68
68
|
)
|
|
69
69
|
)
|
|
70
|
-
`),gs=new
|
|
70
|
+
`),gs=new St.Query(At.typescript,Vr`
|
|
71
71
|
(call_expression
|
|
72
72
|
function: [
|
|
73
73
|
(call_expression
|
|
@@ -120,7 +120,7 @@ ${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f
|
|
|
120
120
|
(string (string_fragment) @module_string)
|
|
121
121
|
)
|
|
122
122
|
)
|
|
123
|
-
`);function
|
|
123
|
+
`);function Rr(e){try{let r=Nr.parse(e).rootNode,n=ks(e),i=ds.matches(r),o=[];for(let l of i)for(let s of l.captures)if(s.name==="imports"){for(let a of s.node.children)if(!(a.type==="["||a.type==="]"||a.type===","))switch(a.type){case"identifier":let u=n[a.text];if(!u||u.export!==null)return null;o.push([u.module,null]);break;case"string":o.push([a.children[1].text,null]);break;case"call_expression":let c=gs.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]=gn(v),d=null;break}case"array_value":{if(d===null)return null;m??={};let $=[],T=h;e:for(let S=h+1;S<g.length;S++){let _=g[S];switch(_.name){case"property":{if(_.node.text!==d)break e;break}case"str_value":case"num_value":case"null_value":case"true_value":case"false_value":$.push(gn(_)),T=S}}h=T,m[d]=$,d=null;break}case"_name":case"_empty_args":break;default:return null}}if(d!==null)return null;if(f!==null){let h=n[f];if(!h||h.export!==null&&h.export!=="*")return null;p=h.module}if(p===null)return null;o.push([p,m]);break;default:return null}}return o}catch(t){return t(`${t?.message??t}`,{prefix:"\u21B3 "}),null}}var hs=new St.Query(At.typescript,Vr`
|
|
124
124
|
; ESM import
|
|
125
125
|
(import_statement
|
|
126
126
|
(import_clause
|
|
@@ -159,15 +159,15 @@ ${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f
|
|
|
159
159
|
)
|
|
160
160
|
)
|
|
161
161
|
)
|
|
162
|
-
`);function
|
|
162
|
+
`);function ks(e){let r=Nr.parse(e).rootNode,n=hs.matches(r),i={};for(let o of n){let l=[],s="";for(let a=0;a<o.captures.length;a++){let u=o.captures[a];switch(u.name){case"default":l.push({name:u.node.text,export:null});break;case"imported-name":l.push({name:u.node.text,export:u.node.text});break;case"imported-from":s=u.node.text;break;case"imported-namespace":l.push({name:u.node.text,export:"*"});break;case"imported-alias":if(l.length<1)throw new Error("Unexpected alias: "+JSON.stringify(n,null,2));let c=l[l.length-1],p=c.name;c.export=p,c.name=u.node.text;break}}for(let{name:a,export:u}of l)i[a]={module:s,export:u}}return i}function gn(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 Cs from"fs";import yn from"path";import{stripVTControlCharacters as vn}from"util";import G from"picocolors";import Be from"enhanced-resolve";import Pr from"fs";import{createRequire as ys}from"module";var vs=ys(import.meta.url).resolve;function hn(e){if(typeof globalThis.__tw_resolve=="function"){let t=globalThis.__tw_resolve(e);if(t)return t}return vs(e)}var ws=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Pr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"]}),bs=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Pr,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"]});function kn(e,t){try{return ws.resolveSync({},t,e)}catch{return bs.resolveSync({},t,e)}}var xs=Be.ResolverFactory.createResolver({fileSystem:new Be.CachedInputFileSystem(Pr,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"]});function _r(e,t){return xs.resolveSync({},t,e)}var $t={indent:2};function Tt(){return`${G.italic(G.bold(G.blue("\u2248")))} tailwindcss ${G.blue(`v${Ss()}`)}`}function A(e){return`${G.dim(G.blue("`"))}${G.blue(e)}${G.dim(G.blue("`"))}`}function R(e,t=process.cwd(),{preferAbsoluteIfShorter:r=!0}={}){let n=yn.relative(t,e);return n.startsWith("..")||(n=`.${yn.sep}${n}`),r&&n.length>e.length?e:n}function ot(e,t){if(e.includes(`
|
|
163
163
|
`))return e.split(`
|
|
164
|
-
`).flatMap(l=>l?
|
|
164
|
+
`).flatMap(l=>l?ot(l,t):[""]);let r=e.split(" "),n=[],i="",o=0;for(let l of r){let s=vn(l).length;o+s+1>t&&(n.push(i),i="",o=0),i+=(o?" ":"")+l,o+=s+(o?1:0)}return o&&n.push(i),n}function lt(e,t=0){return`${" ".repeat(t+$t.indent)}${e}`}function Et(e,{art:t=G.gray("\u2502"),prefix:r="",print:n=xe}){let i=r.length,o=" ",l=o.length,s=vn(t).length,u=process.stderr.columns-i-l*2-s;ot(e,u).map((c,p)=>n(`${t}${o}${p===0?r:" ".repeat(i)}${c}${o}`)),n()}function B(e,{prefix:t="",print:r=xe}={}){Et(e,{art:G.green("\u2502"),prefix:t,print:r})}function D(e,{prefix:t="",print:r=xe}={}){Et(e,{art:G.blue("\u2502"),prefix:t,print:r})}function I(e,{prefix:t="",print:r=xe}={}){Et(e,{art:G.red("\u2502"),prefix:t,print:r})}function Nt(e,{prefix:t="",print:r=xe}={}){Et(e,{art:G.yellow("\u2502"),prefix:t,print:r})}function xe(e=""){process.stderr.write(`${e}
|
|
165
165
|
`)}function J(e=""){process.stdout.write(`${e}
|
|
166
|
-
`)}function
|
|
167
|
-
`)}}async function
|
|
166
|
+
`)}function Ss(){if(typeof globalThis.__tw_version=="string")return globalThis.__tw_version;let{version:e}=JSON.parse(Cs.readFileSync(hn("tailwindcss/package.json"),"utf-8"));return e}var Ts=$s(import.meta.url),Es=Cn.dirname(Ts);async function An(e,t,r){let[n,i]=await Promise.all([bt(t,Es,()=>{}).then(u=>u.module),As.readFile(t,"utf-8")]);if(!_s(n,i))return D(`The configuration file at ${A(R(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 o=[],l=[],s=[];if("darkMode"in n&&s.push(Vs(n)),"content"in n&&(o=await Ps(n,t,r)),"theme"in n){let u=await Ns(e,n,r);u&&s.push(u)}"corePlugins"in n&&D("The `corePlugins` option is no longer supported as of Tailwind CSS v4.0, so it's been removed from your configuration.");let a=Rr(i);if(a!==null)for(let[u,c]of a)l.push({base:r,path:u,options:c});return{sources:o,plugins:l,css:s.join(`
|
|
167
|
+
`)}}async function Ns(e,t,r){let n={base:r,config:{...t,plugins:[],presets:void 0},reference:!1,src:void 0},{resolvedConfig:i,replacedThemeKeys:o}=Ve(e,[n]),l=new Map(Array.from(o.entries()).map(([f])=>[f,!1]));Us(e,i,o);let s="",a="",u=[],c="",p=new Map;{if("keyframes"in i.theme&&(c+=Ds(i.theme.keyframes),delete i.theme.keyframes),"container"in i.theme){let f=nn(i.theme.container,e);f.length>0&&(s+=`
|
|
168
168
|
@tw-bucket theme {
|
|
169
|
-
`,s+=H([
|
|
170
|
-
`),delete i.theme.container}if("aria"in i.theme){for(let[f,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[f,m]of Object.entries(i.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[f,m]of Object.entries(i.theme.supports??{})){let d=
|
|
169
|
+
`,s+=H([N("@utility","container",f)]),s+=`}
|
|
170
|
+
`),delete i.theme.container}if("aria"in i.theme){for(let[f,m]of Object.entries(i.theme.aria??{}))new RegExp(`^${f}=(['"]?)true\\1$`).test(`${m}`)||p.set(`aria-${f}`,`&[aria-${m}]`);delete i.theme.aria}if("data"in i.theme){for(let[f,m]of Object.entries(i.theme.data??{}))f!==m&&p.set(`data-${f}`,`&[data-${m}]`);delete i.theme.data}if("supports"in i.theme){for(let[f,m]of Object.entries(i.theme.supports??{})){let d=x(`${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 i.theme.supports}}for(let[f,m]of di(i.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(/%$/,"")&&ar(f[1]))continue}let d=Rs(f);d!==a&&(u.push(""),a=d);let g=te(f);if(g!==null){if(!g.startsWith("default-")&&l.has(f[0])&&l.get(f[0])===!1){l.set(f[0],!0);let h=te([f[0]]);h!==null&&u.push(` ${ye(`--${h}`)}-*: initial;`)}u.push(` ${ye(`--${g}`)}: ${m};`)}}if(c&&u.push("",c),u.length>0&&(s+=`
|
|
171
171
|
@tw-bucket theme {
|
|
172
172
|
`,s+=`
|
|
173
173
|
@theme {
|
|
@@ -181,7 +181,7 @@ ${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f
|
|
|
181
181
|
`),f=g,d.startsWith("{")?s+=`@custom-variant ${m} ${d}
|
|
182
182
|
`:s+=`@custom-variant ${m} (${d});
|
|
183
183
|
`}s+=`}
|
|
184
|
-
`}return s}function
|
|
184
|
+
`}return s}function Vs(e){let t="";if(Sr({config:()=>e.darkMode,addVariant:(o,l)=>t=l}),t==="")return"";if(Array.isArray(t)||(t=[t]),t.length===1&&!t[0].includes("{"))return`
|
|
185
185
|
@tw-bucket custom-variant {
|
|
186
186
|
@custom-variant dark (${t[0]});
|
|
187
187
|
}
|
|
@@ -191,45 +191,45 @@ ${H([m])}`)}u.add(p);for(let m of o.get(p))for(let d of l.get(m))f.push(p),c(d,f
|
|
|
191
191
|
@tw-bucket custom-variant {
|
|
192
192
|
@custom-variant dark {${i}};
|
|
193
193
|
}
|
|
194
|
-
`:""}function
|
|
195
|
-
`}function Is(e){let t=new
|
|
194
|
+
`:""}function Rs(e){let t=[];for(let r=0;r<e.length-1;r++){let n=e[r];if(e[r+1][0]==="-")break;t.push(n)}return t.join("-")}async function Ps(e,t,r){let n=Is(r),i=[],o=!e.content||Array.isArray(e.content)?!1:e.content.relative?!0:e.future==="all"?!1:e.future?.relativeContentPathsByDefault??!1,l=Array.isArray(e.content)?e.content.map(s=>({base:r,pattern:s})):(e.content?.files??[]).map(s=>typeof s=="string"&&o?{base:Cn.dirname(t),pattern:s}:{base:r,pattern:s});for(let{base:s,pattern:a}of l){if(typeof a!="string")throw new Error("Unsupported content value: "+a);let u=Ls({base:s,pattern:a[0]==="!"?a.slice(1):a,negated:a[0]==="!"}),c=!0;for(let p of u)if(!n.includes(p)){c=!1;break}c||i.push({base:s,pattern:a})}return i}function _s(e,t){function r(s){return typeof s=="function"?!1:Array.isArray(s)?s.every(r):typeof s=="object"&&s!==null?Object.values(s).every(r):["string","number","boolean","undefined"].includes(typeof s)}let{plugins:n,theme:i,...o}=e;if(!r(o))return!1;let l=["darkMode","content","theme","plugins","presets","prefix","corePlugins","future","experimental"];if(Object.keys(e).some(s=>!l.includes(s))||Rr(t)===null||e.presets&&e.presets.length>0)return!1;if(e.future&&e.future!=="all"){let s=["hoverOnlyWhenSupported","respectDefaultRingColorOpacity","disableColorOpacityUtilitiesByDefault","relativeContentPathsByDefault"];if(Object.keys(e.future).some(a=>!s.includes(a)))return!1}if(e.experimental&&e.experimental!=="all"){let s=["generalizedModifiers"];if(Object.keys(e.experimental).some(a=>!s.includes(a)))return!1}if(i&&typeof i=="object"){if(i.extend&&!wn(i.extend))return!1;let{extend:s,...a}=i;if(!wn(a))return!1}return!0}var Os=[...Object.keys(Sn.default),"containers"];function wn(e){for(let t of Object.keys(e))if(!Os.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 Ds(e){let t=en({theme:{keyframes:e}});return H(t).trim()+`
|
|
195
|
+
`}function Is(e){let t=new xn({sources:[{base:e,pattern:"**/*",negated:!1}]});return t.scan(),t.files}function Ls(e){let t=new xn({sources:[e]});return t.scan(),t.files}function Us(e,t,r){if(r.has("spacing"))return;let n=e.theme.get(["--spacing"]);if(!n)return;let[i,o]=bn(n);if(!(!i||!o)&&n&&!r.has("spacing"))for(let[l,s]of Object.entries(t.theme.spacing??{})){let[a,u]=bn(s);a!==null&&Z(l)&&u===o&&parseFloat(a)===Number(l)*parseFloat(i)&&(delete t.theme.spacing[l],e.theme.clearNamespace(ye(`--spacing-${l.replaceAll(".","_")}`),0))}}function bn(e){let t=e.match(/^([0-9.]+)(.*)$/);return t?[t[1],t[2]]:[null,null]}import Ye from"fs/promises";import Lr from"path";import{exec as Ms}from"child_process";import{readFileSync as zs}from"fs";import Ge from"fs/promises";import{dirname as js,resolve as Pe}from"path";import{promisify as Ks}from"util";var $n=Ks(Ms),Tn={default:"-D",bun:"-d"},Or=new k(e=>{try{let t=Pe(e,"package.json");return zs(t,"utf-8")}catch{return""}});function _e(e){return{async manager(){return await Dr.get(e)},async add(t,r="dependencies"){let n=await Dr.get(e),i=t.slice();r==="devDependencies"&&i.push(Tn[n]||Tn.default),n==="pnpm"&&i.push("--ignore-workspace-root-check");let o=`${n} add ${i.join(" ")}`;try{return await $n(o,{cwd:e})}catch(l){throw I(`An error occurred while running \`${o}\`
|
|
196
196
|
|
|
197
197
|
${l.stdout}
|
|
198
|
-
${l.stderr}`,{prefix:"\u21B3 "}),l}finally{
|
|
198
|
+
${l.stderr}`,{prefix:"\u21B3 "}),l}finally{Or.delete(e)}},has(t){return Or.get(e).includes(`"${t}":`)},async remove(t){let n=`${await Dr.get(e)} remove ${t.join(" ")}`;try{return await $n(n,{cwd:e})}catch(i){throw I(`An error occurred while running \`${n}\`
|
|
199
199
|
|
|
200
200
|
${i.stdout}
|
|
201
|
-
${i.stderr}`,{prefix:"\u21B3 "}),i}finally{
|
|
201
|
+
${i.stderr}`,{prefix:"\u21B3 "}),i}finally{Or.delete(e)}}}}var En=!1,Dr=new k(async e=>{do{let t=Pe(e,"package.json");try{let n=await Ge.readFile(t,"utf-8"),i=JSON.parse(n);if(i.packageManager){if(i.packageManager.includes("bun"))return"bun";if(i.packageManager.includes("yarn"))return"yarn";if(i.packageManager.includes("pnpm"))return"pnpm";if(i.packageManager.includes("npm"))return"npm"}}catch{}try{return await Ge.access(Pe(e,"bun.lockb")),"bun"}catch{}try{return await Ge.access(Pe(e,"bun.lock")),"bun"}catch{}try{return await Ge.access(Pe(e,"pnpm-lock.yaml")),"pnpm"}catch{}try{return await Ge.access(Pe(e,"yarn.lock")),"yarn"}catch{}try{return await Ge.access(Pe(e,"package-lock.json")),"npm"}catch{}let r=e;if(e=js(e),r===e)return En||(En=!0,Nt("Could not detect a package manager. Please manually update `tailwindcss` to v4.")),Promise.reject("No package manager detected")}while(!0)});import{randomUUID as Fs}from"crypto";import Vt from"fs/promises";import Ir from"path";async function Ce(e,t){let r=await Vt.realpath(e).catch(()=>e),n=Ir.join(Ir.dirname(r),`.${Ir.basename(r)}.tailwind-upgrade.${process.pid}.${Fs()}.tmp`);try{await Vt.writeFile(n,t,"utf8"),await Vt.rename(n,r)}catch(i){throw await Vt.unlink(n).catch(()=>{}),i}}async function Vn(e){let t=!1,r=!1,n=!1,i=!1,o=!1,l=Lr.resolve(e,"package.json"),s;try{s=JSON.parse(await Ye.readFile(l,"utf-8"))}catch{}let a=await Gs(e);if(a){let u=await Ws(a);t=!0,u&&(r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t&&s&&"postcss"in s){let u=await Nn(s.postcss);t=!0,u&&(await Ce(l,JSON.stringify({...s,postcss:u?.json},null,2)),r=!0,n=u.didAddPostcssClient,i=u.didRemoveAutoprefixer,o=u.didRemovePostCSSImport)}if(!t){let u=await qs(e),c=null;if(u){try{c=JSON.parse(await Ye.readFile(u,"utf-8"))}catch{}if(c){let p=await Nn(c);t=!0,p&&(await Ce(u,JSON.stringify(p.json,null,2)),r=!0,n=p.didAddPostcssClient,i=p.didRemoveAutoprefixer,o=p.didRemovePostCSSImport)}}}if(!t){D("No PostCSS config found, skipping migration.",{prefix:"\u21B3 "});return}if(n){let u=Object.hasOwn(s?.dependencies??{},"tailwindcss")?"dependencies":Object.hasOwn(s?.devDependencies??{},"tailwindcss")?"devDependencies":null;if(u!==null)try{await _e(e).add(["@tailwindcss/postcss@latest"],u),B(`Installed package: ${A("@tailwindcss/postcss")}`,{prefix:"\u21B3 "})}catch{}}if(i)try{await _e(e).remove(["autoprefixer"]),B(`Removed package: ${A("autoprefixer")}`,{prefix:"\u21B3 "})}catch{}if(o)try{await _e(e).remove(["postcss-import"]),B(`Removed package: ${A("postcss-import")}`,{prefix:"\u21B3 "})}catch{}r&&a&&B(`Migrated PostCSS configuration: ${A(R(a,e))}`,{prefix:"\u21B3 "})}async function Ws(e){function t(f){return/['"]?tailwindcss['"]?: ?\{\}/.test(f)}function r(f){return/['"]?postcss-import['"]?: ?\{\}/.test(f)}function n(f){return/['"]?autoprefixer['"]?: ?\{\}/.test(f)}function i(f){return/['"]tailwindcss\/nesting['"]: ?(\{\}|['"]postcss-nesting['"])/.test(f)}if(D("Migrating PostCSS configuration\u2026"),!await Hs(e))return Nt("The PostCSS config contains dynamic JavaScript and can not be automatically migrated.",{prefix:"\u21B3 "}),null;let l=!1,s=!1,a=!1,c=(await Ye.readFile(e,"utf-8")).split(`
|
|
202
202
|
`),p=[];for(let f=0;f<c.length;f++){let m=c[f];if(t(m))l=!0,p.push(m.replace("tailwindcss:","'@tailwindcss/postcss':"));else if(n(m))s=!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(!i(h)){d=!0;break}}d?p.push(m):a=!0}else if(i(m)){let d=c[f+1];t(d)||p.push(m)}else p.push(m)}return await Ce(e,p.join(`
|
|
203
|
-
`)),{didAddPostcssClient:l,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}async function
|
|
203
|
+
`)),{didAddPostcssClient:l,didRemoveAutoprefixer:s,didRemovePostCSSImport:a}}async function Nn(e){function t(c,p){return c==="tailwindcss"&&Rt(p)}function r(c,p){return c==="postcss-import"&&Rt(p)}function n(c,p){return c==="autoprefixer"&&Rt(p)}function i(c,p){return c==="tailwindcss/nesting"&&(p==="postcss-nesting"||Rt(p))}let o=!1,l=!1,s=!1,a=Object.entries(e.plugins||{}),u=[];for(let c=0;c<a.length;c++){let[p,f]=a[c];if(t(p,f))o=!0,u.push(["@tailwindcss/postcss",f]);else if(n(p,f))l=!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(!i(g,h)){m=!0;break}}m?u.push([p,f]):s=!0}else if(i(p,f)){let[m,d]=a[c+1];t(m,d)||u.push([p,f])}else u.push([p,f])}return{json:{...e,plugins:Object.fromEntries(u)},didAddPostcssClient:o,didRemoveAutoprefixer:l,didRemovePostCSSImport:s}}var Bs=[".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 Gs(e){for(let t of Bs){let r=Lr.resolve(e,t);try{return await Ye.access(r),r}catch{}}return null}var Ys=[".postcssrc",".postcssrc.json"];async function qs(e){for(let t of Ys){let r=Lr.resolve(e,t);try{return await Ye.access(r),r}catch{}}return null}async function Hs(e){let t=await Ye.readFile(e,"utf-8");return t.includes("tailwindcss:")&&!(t.includes("require")||t.includes("import "))}function Rt(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===0}import{isGitIgnored as Xs}from"globby";import eu from"path";import tu from"postcss";import{__unstable__loadDesignSystem as Zs,compileAst as Qs}from"@tailwindcss/node";import*as Pn from"fs";import*as _n from"fs/promises";import*as Se from"path";import*as On from"util";import*as Pt from"postcss";var Js=33;function Rn(e){let t=new k(o=>({file:o.file??o.id??null,code:o.css}));function r(o){let l=o.source;if(!l)return;let s=l.input;if(s&&l.start!==void 0&&l.end!==void 0)return[t.get(s),l.start.offset,l.end.offset]}function n(o,l){if(o.type==="decl"){let s=E(o.prop,o.value,o.important);s.src=r(o),l.push(s)}else if(o.type==="rule"){let s=Y(o.selector);s.src=r(o),o.each(a=>n(a,s.nodes)),l.push(s)}else if(o.type==="atrule"){let s=N(`@${o.name}`,o.params);s.src=r(o),o.each(a=>n(a,s.nodes)),l.push(s)}else if(o.type==="comment"){if(o.text.charCodeAt(0)!==Js)return;let s=kt(o.text);s.src=r(o),l.push(s)}}let i=[];return e.each(o=>n(o,i)),i}var se=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=Se.resolve(process.cwd(),t);let r=await _n.readFile(t,"utf-8"),n=Pt.parse(r,{from:t});return new e(n,t)}static loadSync(t){t=Se.resolve(process.cwd(),t);let r=Pn.readFileSync(t,"utf-8"),n=Pt.parse(r,{from:t});return new e(n,t)}static async fromString(t){let r=Pt.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=Se.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 at(this,r=>r.parents))yield t}*descendants(){for(let{item:t}of at(this,r=>r.children))yield t}layers(){let t=new Set;for(let{item:r,path:n}of at(this,i=>i.parents))if(!(r.parents.size>0))for(let{meta:i}of n)for(let o of i.layers)t.add(o);return t}*pathsToRoot(){for(let{item:t,path:r}of at(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:o}of n)for(let l of o.layers)i||=l==="utilities"||l==="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}#e;#t;async compiler(){return!this.isTailwindRoot||!this.file?null:this.#e??=Qs(Rn(this.root),{base:Se.dirname(this.file),onDependency(){}})}async designSystem(){return!this.isTailwindRoot||!this.file?null:this.#t??=Zs(this.root.toString(),{base:Se.dirname(this.file)})}[On.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*at(e,t,r=[]){for(let n of t(e)){let i=[...r,n];yield*at(n.item,t,i),yield{item:n.item,path:i}}}async function Dn(e){let t=await Xs(),r=[],n=new k(a=>{try{if(t(a))return null}catch{return null}try{let u=se.loadSync(a);return e.push(u),r.push(()=>i.process(u.root,{from:u.file})),u}catch{return null}}),i=tu([{postcssPlugin:"mark-import-nodes",AtRule:{import(a){let u=a.params.match(/['"](.*?)['"]/)?.[1];if(!u)return;let c=a.source?.input.file?eu.dirname(a.source.input.file):process.cwd(),p=!1;try{if(u[0]!==".")try{p=_r(`./${u}`,c)}catch{}p||(p=_r(u,c))}catch{if(u.startsWith("http://")||u.startsWith("https://")||u.startsWith("//"))return;I(`Failed to resolve import: ${A(u)} in ${A(R(a.source?.input.file,c))}. Skipping.`,{prefix:"\u21B3 "});return}if(!p)return;let f=n.get(p);if(!f)return;a.raws.tailwind_destination_sheet_id=f.id;let m=a.source?.input.file?n.get(a.source.input.file):void 0,d=[];for(let g of b(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&&(n.set(a.file,a),r.push(()=>i.process(a.root,{from:a.file??void 0})));for(;r.length>0;)await r.shift()();let o=process.cwd();function l(a){let u=[];for(let c of a){if(!c.item.file)continue;let p=c.item.file.replace(o,""),f=c.meta.layers.join(", ");f.length>0?u.push(`${p} (layers: ${f})`):u.push(p)}return u.join(" <- ")}let s=[];for(let a of e){if(!a.file)continue;let{convertiblePaths:u,nonConvertiblePaths:c}=a.analyzeImportPaths();if(!(u.length>0&&c.length>0))continue;a.canMigrate=!1;let f=a.file.replace(o,"");for(let m of u)s.push(`- ${f} <- ${l(m)}`);for(let m of c)s.push(`- ${f} <- ${l(m)}`)}if(s.length===0){let a=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,a.add(u))});if(a.size<=1)return;{let u=new k(()=>new Set);for(let p of a)u.get(p).add(p);let c=!0;e:for(;c;){c=!1;for(let[p,f]of u)for(let[m,d]of u){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 $ of h){if(v!==$)continue;let T=v;u.delete(p),u.delete(m);for(let S of f)u.get(T).add(S);for(let S of d)u.get(T).add(S);c=!0;continue e}}}for(let[p,f]of u){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
204
|
`;throw a+=`We cannot convert stylesheets under these conditions. Please look at the following stylesheets:
|
|
205
205
|
`,new Error(a+s.join(`
|
|
206
|
-
`))}}import
|
|
206
|
+
`))}}import In from"postcss";import{format as Ln}from"prettier";function L(e,t){let r;return e.each?.((n,i)=>{let o=t(n,i,e)??0;if(o===2)return r=!1,r;if(o!==1)return r=L(n,t),r}),r}function Ur(e,t){e?.each?.(r=>{Ur(r,t),t(r)})}var Un={parser:"css",semi:!0,singleQuote:!0};function Mn(){async function e(t){let r=[];L(t,(i,o,l)=>{i.type==="atrule"&&(i.raws.semicolon=!0),i.type==="atrule"&&i.name==="tw-bucket"?r.push(i):i.raws.tailwind_pretty&&(i.parent??=l,r.unshift(i))});let n=[];for(let i of r){let o=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(o);continue}if(i.type==="atrule"&&i.name==="tw-bucket"){n.push(await Ln(o,Un));continue}i.replaceWith(In.parse(`${i.raws.before??""}${(await Ln(o,Un)).trim()}`))}t.removeAll(),t.append(In.parse(n.map(i=>i.trim()).filter(Boolean).join(`
|
|
207
207
|
|
|
208
|
-
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as gu}from"@tailwindcss/node";import $e from"path";import hu from"postcss";import{__unstable__loadDesignSystem as
|
|
208
|
+
`)))}return{postcssPlugin:"@tailwindcss/upgrade/format-nodes",OnceExit:e}}import{normalizePath as gu}from"@tailwindcss/node";import $e from"path";import hu from"postcss";import{__unstable__loadDesignSystem as Gn,compile as su}from"@tailwindcss/node";import uu from"fs/promises";import Ae,{dirname as Yn}from"path";import{fileURLToPath as cu}from"url";import{execSync as iu}from"child_process";import jn from"semver";import{readFileSync as ru}from"fs";import Dh from"fs/promises";function zn(e,t){try{let r=kn(`${e}/package.json`,t);if(!r)return null;let{version:n}=JSON.parse(ru(r,"utf8"));return n}catch{return null}}function P(e){return jn.satisfies(de(),`>=${e}.0.0 <${e+1}.0.0`)}function Kn(e){return jn.gte(de(),`${e+1}.0.0`)}var nu=new k(e=>{let t=zn("tailwindcss",e);if(!t)throw new Error("Tailwind CSS is not installed");return t});function de(e=process.cwd()){return nu.get(e)}var ou=new k(e=>{try{return iu("npm ls tailwindcss --json",{cwd:e,stdio:"pipe"}),de(e)}catch(t){try{let n=JSON.parse(t.stdout.toString());return/"(.*?)" from the root project/.exec(n.dependencies.tailwindcss.invalid)?.[1]??de(e)}catch{return de(e)}}});function Mr(e=process.cwd()){return ou.get(e)}var Fn=new WeakSet;function Wn(e,t,r){if(!e.theme.prefix||!t||!P(3))return r;Fn.has(e)||(e.utilities.functional("group",l=>[E("--phantom-class","group"),E("--phantom-modifier",l.modifier?.value)]),e.utilities.functional("peer",l=>[E("--phantom-class","peer"),E("--phantom-modifier",l.modifier?.value)]),Fn.add(e));let n=lu(e,t,r);if(!n)return r;let i=e.theme.prefix,o=null;try{e.theme.prefix=null;let l=r.slice(0,n.start)+n.base+r.slice(n.end),s=[...ue(l,e)];s.length>0&&(o=s[0])}finally{e.theme.prefix=i}return o?e.printCandidate(o):r}function lu(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=b(r,":").pop(),o=r.length-i.length,l=o+i.length,s=!1,a=!1;return i[i.length-1]==="!"?(s=!0,i=i.slice(0,-1)):i[0]==="!"&&(s=!0,i=i.slice(1)),i[0]==="-"&&(a=!0,i=i.slice(1)),!i.startsWith(t.prefix)&&i[0]!=="["?null:(i[0]!=="["&&(i=i.slice(t.prefix.length)),a&&(i="-"+i),s&&(i+="!"),{base:i,start:o,end:l})}var au=/([a-z]+)/;function Bn(e){let t=au.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 fu=cu(import.meta.url),st=Yn(fu),qn=String.raw;async function Hn(e,t){try{e===null?e=await zr(t.base):Ae.isAbsolute(e)||(e=Ae.resolve(t.base,e));let r=Ae.relative(st,e);!r.startsWith(".")&&!Ae.isAbsolute(r)&&(r="./"+r);let n=await pu(e),i=n.prefix?Bn(n.prefix):null,o=qn`
|
|
209
209
|
@import 'tailwindcss' ${i?`prefix(${i})`:""};
|
|
210
210
|
@config '${r}';
|
|
211
|
-
`,[l,s]=await Promise.all([su(o,{base:
|
|
211
|
+
`,[l,s]=await Promise.all([su(o,{base:st,onDependency:()=>{}}),Gn(o,{base:st})]);return{designSystem:s,sources:l.sources,userConfig:n,newPrefix:i,configFilePath:e}}catch(r){I("Could not load the configuration file: "+r.message,{prefix:"\u21B3 "}),process.exit(1)}}async function pu(e){let[t,r]=await Promise.all([Gn(qn`
|
|
212
212
|
@import 'tailwindcss';
|
|
213
|
-
`,{base:
|
|
214
|
-
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${
|
|
215
|
-
Update your stylesheet to use ${
|
|
213
|
+
`,{base:st}),bt(e,st,()=>{}).then(n=>n.module)]);return Ve(t,[{base:Yn(e),config:r,reference:!1}]).resolvedConfig}var mu=["./tailwind.config.js","./tailwind.config.cjs","./tailwind.config.mjs","./tailwind.config.ts","./tailwind.config.cts","./tailwind.config.mts"];async function zr(e,t=e){for(let r of du(e,t))for(let n of mu){let i=Ae.resolve(r,n);try{return await uu.access(i),i}catch{}}throw new Error(`No configuration file found for ${A(R(e))}. Please provide a path to the Tailwind CSS v3 config file via the ${A("--config")} option.`)}function*du(e,t=e){let r=Ae.resolve(e),n=Ae.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=Ae.dirname(i);while(i!==n);yield n}async function Jn(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.
|
|
214
|
+
Before your project can be upgraded you need to create a CSS file that imports Tailwind CSS or uses ${A("@tailwind")}.`);let i=n.filter(u=>{let c=!1;return u.root.walkAtRules("config",p=>{let f=$e.resolve($e.dirname(u.file),p.params.slice(1,-1));return u.linkedConfigPath=f,c=!0,!1}),!c});if(i.length===0)return;let o=new Map,l=new k(()=>new Set);for(let u of i){if(!u.file)continue;let c=t;t===null?c=await zr($e.dirname(u.file),r):$e.isAbsolute(c)||(c=$e.resolve(r,c)),o.set(u,c),l.get(c).add(u)}let s=new Set;for(let u of l.values())if(u.size>1)for(let c of u)s.add(c);if(s.size>1){for(let u of s)I(`Could not determine configuration file for: ${A(R(u.file,r))}
|
|
215
|
+
Update your stylesheet to use ${A("@config")} to specify the correct configuration file explicitly and then run the upgrade tool again.`,{prefix:"\u21B3 "});process.exit(1)}let a=R;for(let[u,c]of o)try{if(!u||!u.file)return;B(`Linked ${A(a(c,r))} to ${A(a(u.file,r))}`,{prefix:"\u21B3 "}),u.linkedConfigPath=c;let p=$e.relative($e.dirname(u.file),c);!p.startsWith(".")&&!$e.isAbsolute(p)&&(p="./"+p),p=gu(p);{let f=u.root,m=hu.atRule({name:"config",params:`'${p}'`});u.root.walkAtRules(d=>{(d.name==="tailwind"||d.name==="import")&&(f=d)}),f.type==="root"?u.root.prepend(m):f.type==="atrule"&&f.after(m)}}catch(p){I("Could not load the configuration file: "+p.message,{prefix:"\u21B3 "}),process.exit(1)}}import uc from"postcss";import Wu from"fs/promises";import yo,{extname as Bu}from"path";function Zn(e,t){if(!t[0])return e;t.sort((i,o)=>i.end-o.end||i.start-o.start);let r="",n=t[0];r+=e.slice(0,n.start),r+=n.replacement;for(let i=1;i<t.length;++i){let o=t[i];r+=e.slice(n.end,o.start),r+=o.replacement,n=o}return r+=e.slice(n.end),r}import{Scanner as ku}from"@tailwindcss/oxide";async function Qn(e,t="html"){let n=new ku({}).getCandidatesWithPositions({content:e,extension:t}),i=[];for(let{candidate:o,position:l}of n)i.push({rawCandidate:o,start:l,end:l+o.length});return i}function Xn(e){let t=M(e);return t.important=!1,t.variants=[],t}var yu=["&&","||","?","===","==","!=","!==",">",">=","<","<="],vu=[/(?<!:?class|className)=['"]$/i,/addEventListener\(['"`]$/,/wire:[^\s]*?$/,/variant\s*[:=]\s*\{?['"`]$/],wu=/placeholder=\{?['"`]$/,bu=/\b\$?emit\(['"`]$/;function to(e,t,r){if(t.contents[t.start-1]?.match(/\s/)&&t.contents.slice(t.end,t.end+2)?.match(/^:\s/)){let a=xu.get(t.contents);for(let u=0;u<a.length;u+=2){let c=a[u],p=a[u+1];if(t.start>=c&&t.end<=p)return!1}}let n="";for(let a=t.start-1;a>=0;a--){let u=t.contents.at(a);if(u===`
|
|
216
216
|
`)break;n=u+n}let i="";for(let a=t.end;a<t.contents.length;a++){let u=t.contents.at(a);if(u===`
|
|
217
|
-
`)break;i+=u}{let a=Ru.get(t.contents);for(let u=0;u<a.length;u+=2){let c=a[u],p=a[u+1];if(t.start>=c&&t.end<=p)return!1}}let[o]=ue(e,r);if(!o&&zn(3))return!1;if(o&&(o.variants.length>0||o.kind==="arbitrary"||o.kind==="static"&&o.root.includes("-")||o.kind==="functional"&&o.value!==null||o.kind==="functional"&&o.root.includes("-")||o.kind==="functional"&&o.modifier))return!0;let l=Qn(n),s=Qn(i);if(!l||!s||i[0]==="."||i.trim().startsWith("("))return!1;for(let a of ku)if(i.trim().startsWith(a)||n.trim().endsWith(a))return!1;for(let a of vu)if(a.test(n))return!1;return!(wu.test(n)||bu.test(n))}var xu=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),Cu=92,Au=34,Su=39,$u=96,_t=9,Ot=10,Dt=12,It=13,Lt=32,Tu=47,Eu=61,Vu=62;function Qn(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case Cu:r++;break;case Su:case Au:case $u:t===n?t=null:t===null&&(t=n);break}}return t!==null}var Ru=new y(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<",r);if(n===-1)return t;let i=e.indexOf(">",n+1);if(i===-1)return t;r=i+1;for(let o=n+1;o<i;o++){let l=e.charCodeAt(o);if(l===Lt||l===_t||l===Ot||l===It||l===Dt)continue;let s=o;for(;o<i;){let f=e.charCodeAt(o);if(f===Lt||f===_t||f===Ot||f===It||f===Dt||f===Eu||f===Vu||f===Tu)break;o++}let a=e.slice(s,o).toLowerCase();if(a!=="style"&&a!==":style")continue;for(;o<i;){let f=e.charCodeAt(o);if(f!==Lt&&f!==_t&&f!==Ot&&f!==It&&f!==Dt)break;o++}if(e[o]!=="=")continue;for(o++;o<i;){let f=e.charCodeAt(o);if(f!==Lt&&f!==_t&&f!==Ot&&f!==It&&f!==Dt)break;o++}let u=e[o];if(u!=='"'&&u!=="'")continue;let c=o+1,p=e.indexOf(u,c);if(p===-1||p>i)break;t.push(c,p),o=p}}});function eo(e,t,r){for(let n of e.parseCandidate(r)){let i=M(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Mt(e,i,i.modifier.value)){let{value:l,didChange:s}=Ut(i.modifier.value);i.modifier.value=l,o||=s}for(let l of i.variants)to(e,l)&&(o=!0);if(i.kind==="arbitrary"&&!Mt(e,i,i.value)){let{value:l,didChange:s}=Ut(i.value);i.value=l,o||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Mt(e,i,i.value.value)){let{value:l,didChange:s}=Ut(i.value.value);i.value.value=l,o||=s}if(o)return e.printCandidate(i)}return r}function Ut(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||C(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function to(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Mt(e,Nu(t),t.value.value)){let{value:n,didChange:i}=Ut(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&to(e,t.variant)&&(r=!0),r}function Nu(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Pu=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 Mt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return w(n,o=>{if(o.kind==="declaration"&&Pu.has(o.property)&&o.value==r)return i=!0,k.Stop}),i}function io(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=M(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=ro(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=ro(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function ro(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function no(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function oo(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function lo(e,t,r){for(let n of ue(r,e)){let i=M(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=b(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as _u}from"@tailwindcss/node";import Ou from"path";import Du from"url";var Iu=Du.fileURLToPath(import.meta.url),Lu=Ou.dirname(Iu),Uu=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"]]),ao=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","--default-ring-width"],["ring-3","--ring-width-3"]]),Mu=new y(e=>_u('@import "tailwindcss";',{base:e}));async function so(e,t,r){if(!P(3))return r;let n=await Mu.get(Lu);function*i(o){for(let l of e.parseCandidate(o)){let s=Zn(l),a=e.printCandidate(s),u=Uu.get(a);if(!u)continue;let[c]=e.parseCandidate(u);if(!c)continue;let p=M(c);p.variants=l.variants,p.important=l.important,yield[p,ao.get(a),ao.get(u)]}}for(let[o,l,s]of i(r)){if(l&&s){let a=e.resolveThemeValue(l,!0),u=n.resolveThemeValue(l,!0),c=e.resolveThemeValue(s,!0),p=n.resolveThemeValue(s);if(c===void 0&&p!==void 0||a!==u||c!==p)continue}return e.printCandidate(o)}return r}function uo(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}function*co(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)}function fo(e,t,r){for(let n of ue(r,e)){let i=M(n),o=!1;for(let[l]of co(i))if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="compound"&&l.root==="group"&&l.variant.kind==="arbitrary"&&l.variant.selector==="&"){l.modifier===null?(o=!0,W(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(o=!0,W(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${l.modifier.value}]`:`in-[.group\\/${l.modifier.value}]`)));continue}return o?e.printCandidate(i):r}return r}var zt={"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"},po=new WeakSet;function mo(e,t,r){if(P(3)&&(zt["outline-none"]="outline-hidden"),!po.has(e)){for(let n in zt)e.utilities.static(n,()=>[]);po.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(zt,n.root))return e.printCandidate({...n,root:zt[n.root]});return r}function go(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],l=[],s=n.variants;for(let c of n.variants)zu(e,c)?i.push(c):Ku(e,c)?l.push(c):o.push(c);let a=o.some(c=>ju(e,c)),u=[...l,...a?o.reverse():o,...i];if(!Fu(s,u))return e.printCandidate({...n,variants:u})}return r}function zu(e,t){return t.kind==="static"&&t.root==="dark"?!0:Mr(e,t).every(n=>n.kind==="at-rule")}function ju(e,t){return Mr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Ku(e,t){return Mr(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 Mr(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 w(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function Fu(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Gu=[oo,Kn,no,mo,io,so,uo,go,eo,lo,fo],Yu=new y(e=>{let t=gr(e),r=Ii(t);return new y(n=>new y(async i=>{let o=i;for(let s of Gu)i=await s(t,n,i);return i=t.canonicalizeCandidates([i]).pop(),typeof t.storage[ae].get(r).get(i)!="string"?o:i}))});async function zr(e,t,r,n){return n&&!Xn(r,n,e)?r:Yu.get(e).get(t).get(r)}async function yo(e,t,r,n){let i=await Jn(r,n),o=[];for(let{rawCandidate:l,start:s,end:a}of i){let u=await zr(e,t,l,{contents:r,start:s,end:a});u!==l&&o.push({start:s,end:a,replacement:u})}return Hn(r,o)}async function ko(e,t,r){let n=ho.isAbsolute(r)?r:ho.resolve(process.cwd(),r),i=await Wu.readFile(n,"utf-8"),o=await yo(e,t,i,Bu(r));return o===i||o.trim()===""?!1:(await Ce(n,o),!0)}function vo({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let l=i.map(s=>{if(s.trim()==="")return s;let a=b(s,":"),u=a.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...a,u].join(":")});return async()=>{e&&(l=await Promise.all(l.map(async s=>await zr(e,t,s))),n.params=l.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import jt from"postcss-selector-parser";function bo(e){function t(r){if(!P(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();L(r,l=>{if(l.type!=="rule")return;let s=b(l.selector,",");if(s.length>1){let a=[];for(let u of s){let c=l.clone({selector:u});a.push(c)}l.replaceWith(a)}return 1});let i=new Set;L(r,l=>{if(l.type==="rule"&&!qu(l))return jt(s=>{s.each(a=>{L(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),L(n,l=>{l.type==="rule"&&jt(s=>{s.each(a=>{L(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return l.remove(),2})})}).processSync(l,{updateSelector:!0})});let o=[n];for(let l of i){let s=r.clone();o.push(s),L(s,a=>{if(a.type==="atrule"&&(!a.nodes||a.nodes?.length===0)&&a.remove(),a.type!=="rule")return;let u=!1;if(jt(c=>{c.each(p=>{L(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===l){u=!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(jt.nesting())}})})}).processSync(a,{updateSelector:!0}),!u){let c=[a],p=a.parent?.index(a)??null;if(p!==null){for(let m=p-1;m>=0&&a.parent?.nodes.at(m)?.type!=="rule";m--)a.parent?.nodes.at(m)?.type==="comment"&&c.push(a.parent?.nodes.at(m));let f=[];for(let m=p+1;m<(a.parent?.nodes.length??0);m++){if(a.parent?.nodes.at(m)?.type==="rule"){f=[];break}a.parent?.nodes.at(m)?.type==="comment"&&f.push(a.parent?.nodes.at(m))}c.push(...f)}for(let f of c)f.remove()}return 1}),s.name="utility",s.params=l,s.raws.before=`${s.raws.before??""}
|
|
217
|
+
`)break;i+=u}{let a=Vu.get(t.contents);for(let u=0;u<a.length;u+=2){let c=a[u],p=a[u+1];if(t.start>=c&&t.end<=p)return!1}}let[o]=ue(e,r);if(!o&&Kn(3))return!1;if(o&&(o.variants.length>0||o.kind==="arbitrary"||o.kind==="static"&&o.root.includes("-")||o.kind==="functional"&&o.value!==null||o.kind==="functional"&&o.root.includes("-")||o.kind==="functional"&&o.modifier))return!0;let l=eo(n),s=eo(i);if(!l||!s||i[0]==="."||i.trim().startsWith("("))return!1;for(let a of yu)if(i.trim().startsWith(a)||n.trim().endsWith(a))return!1;for(let a of vu)if(a.test(n))return!1;return!(wu.test(n)||bu.test(n))}var xu=new k(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<style",r);if(n===-1)return t;if(r=n+1,!e[n+6].match(/[>\s]/))continue;let i=e.indexOf("</style>",r);if(i===-1)return t;r=i+1,t.push(n,i)}}),Cu=92,Su=34,Au=39,$u=96,_t=9,Ot=10,Dt=12,It=13,Lt=32,Tu=47,Eu=61,Nu=62;function eo(e){let t=null;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);switch(n){case Cu:r++;break;case Au:case Su:case $u:t===n?t=null:t===null&&(t=n);break}}return t!==null}var Vu=new k(e=>{let t=[],r=0;for(;;){let n=e.indexOf("<",r);if(n===-1)return t;let i=e.indexOf(">",n+1);if(i===-1)return t;r=i+1;for(let o=n+1;o<i;o++){let l=e.charCodeAt(o);if(l===Lt||l===_t||l===Ot||l===It||l===Dt)continue;let s=o;for(;o<i;){let f=e.charCodeAt(o);if(f===Lt||f===_t||f===Ot||f===It||f===Dt||f===Eu||f===Nu||f===Tu)break;o++}let a=e.slice(s,o).toLowerCase();if(a!=="style"&&a!==":style")continue;for(;o<i;){let f=e.charCodeAt(o);if(f!==Lt&&f!==_t&&f!==Ot&&f!==It&&f!==Dt)break;o++}if(e[o]!=="=")continue;for(o++;o<i;){let f=e.charCodeAt(o);if(f!==Lt&&f!==_t&&f!==Ot&&f!==It&&f!==Dt)break;o++}let u=e[o];if(u!=='"'&&u!=="'")continue;let c=o+1,p=e.indexOf(u,c);if(p===-1||p>i)break;t.push(c,p),o=p}}});function ro(e,t,r){for(let n of e.parseCandidate(r)){let i=M(n),o=!1;if("modifier"in i&&i.modifier?.kind==="arbitrary"&&!Mt(e,i,i.modifier.value)){let{value:l,didChange:s}=Ut(i.modifier.value);i.modifier.value=l,o||=s}for(let l of i.variants)io(e,l)&&(o=!0);if(i.kind==="arbitrary"&&!Mt(e,i,i.value)){let{value:l,didChange:s}=Ut(i.value);i.value=l,o||=s}if(i.kind==="functional"&&i.value&&i.value.kind==="arbitrary"&&!Mt(e,i,i.value.value)){let{value:l,didChange:s}=Ut(i.value.value);i.value.value=l,o||=s}if(o)return e.printCandidate(i)}return r}function Ut(e){let t=!1;return e.startsWith("--")?(!e.includes("(")||x(e)[0]?.kind!=="function")&&(e=`var(${e})`,t=!0):e.startsWith(" --")&&(e=e.slice(1),t=!0),{value:e,didChange:t}}function io(e,t){let r=!1;if(t.kind==="functional"&&t.value&&t.value.kind==="arbitrary"&&!Mt(e,Ru(t),t.value.value)){let{value:n,didChange:i}=Ut(t.value.value);t.value.value=n,r||=i}return t.kind==="compound"&&io(e,t.variant)&&(r=!0),r}function Ru(e){return{kind:"arbitrary",property:"color",value:"red",modifier:null,variants:[e],important:!1,raw:"candidate"}}var Pu=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 Mt(e,t,r){let n=e.compileAstNodes(t).map(o=>o.node),i=!1;return w(n,o=>{if(o.kind==="declaration"&&Pu.has(o.property)&&o.value==r)return i=!0,y.Stop}),i}function oo(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.kind!=="functional")continue;let i=M(n),o=!1;if(n.value&&i.value&&n.value.kind==="named"&&i.value.kind==="named"&&n.value.value.match(/[A-Z]/)&&(i.value.value=no(n.value.value),o=!0),n.modifier&&i.modifier&&n.modifier.kind==="named"&&i.modifier.kind==="named"&&n.modifier.value.match(/[A-Z]/)&&(i.modifier.value=no(n.modifier.value),o=!0),o)return e.printCandidate(i)}return r}function no(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function lo(e,t,r){for(let n of e.parseCandidate(r)){let i=e.printCandidate(n);if(i!==r)return i}return r}function ao(e,t,r){return e.parseCandidate(r).length>0||!r.includes("[]")?r:r.replaceAll("-[]:","-[&]:").replaceAll("-[]/","-[&]/")}function so(e,t,r){for(let n of ue(r,e)){let i=M(n),o=!1;return i.kind==="functional"&&i.value?.kind==="arbitrary"&&(i.root==="grid-cols"||i.root=="grid-rows"||i.root=="object")&&(o=!0,i.value.value=b(i.value.value,",").join(" ")),o?e.printCandidate(i):r}return r}import{__unstable__loadDesignSystem as _u}from"@tailwindcss/node";import Ou from"path";import Du from"url";var Iu=Du.fileURLToPath(import.meta.url),Lu=Ou.dirname(Iu),Uu=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"]]),uo=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","--default-ring-width"],["ring-3","--ring-width-3"]]),Mu=new k(e=>_u('@import "tailwindcss";',{base:e}));async function co(e,t,r){if(!P(3))return r;let n=await Mu.get(Lu);function*i(o){for(let l of e.parseCandidate(o)){let s=Xn(l),a=e.printCandidate(s),u=Uu.get(a);if(!u)continue;let[c]=e.parseCandidate(u);if(!c)continue;let p=M(c);p.variants=l.variants,p.important=l.important,yield[p,uo.get(a),uo.get(u)]}}for(let[o,l,s]of i(r)){if(l&&s){let a=e.resolveThemeValue(l,!0),u=n.resolveThemeValue(l,!0),c=e.resolveThemeValue(s,!0),p=n.resolveThemeValue(s);if(c===void 0&&p!==void 0||a!==u||c!==p)continue}return e.printCandidate(o)}return r}function fo(e,t,r){for(let n of e.parseCandidate(r))if(n.kind==="functional"&&n.root==="max-w"&&n.value?.value.startsWith("screen-"))return e.printCandidate({...n,value:{...n.value,value:`[theme(screens.${n.value.value.slice(7)})]`}});return r}function*po(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)}function mo(e,t,r){for(let n of ue(r,e)){let i=M(n),o=!1;for(let[l]of po(i))if(l.kind==="compound"&&(l.root==="has"||l.root==="not"||l.root==="in")&&l.modifier!==null&&"modifier"in l.variant&&(l.variant.modifier=l.modifier,l.modifier=null),l.kind==="compound"&&l.root==="group"&&l.variant.kind==="arbitrary"&&l.variant.selector==="&"){l.modifier===null?(o=!0,W(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group]`:"in-[.group]"))):l.modifier.kind==="named"&&(o=!0,W(l,e.parseVariant(e.theme.prefix?`in-[.${e.theme.prefix}\\:group\\/${l.modifier.value}]`:`in-[.group\\/${l.modifier.value}]`)));continue}return o?e.printCandidate(i):r}return r}var zt={"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"},go=new WeakSet;function ho(e,t,r){if(P(3)&&(zt["outline-none"]="outline-hidden"),!go.has(e)){for(let n in zt)e.utilities.static(n,()=>[]);go.add(e)}for(let n of e.parseCandidate(r))if(n.kind==="static"&&Object.hasOwn(zt,n.root))return e.printCandidate({...n,root:zt[n.root]});return r}function ko(e,t,r){if(!P(3))return r;for(let n of e.parseCandidate(r)){if(n.variants.length<=1)continue;let i=[],o=[],l=[],s=n.variants;for(let c of n.variants)zu(e,c)?i.push(c):Ku(e,c)?l.push(c):o.push(c);let a=o.some(c=>ju(e,c)),u=[...l,...a?o.reverse():o,...i];if(!Fu(s,u))return e.printCandidate({...n,variants:u})}return r}function zu(e,t){return t.kind==="static"&&t.root==="dark"?!0:jr(e,t).every(n=>n.kind==="at-rule")}function ju(e,t){return jr(e,t).some(n=>n.kind==="rule"&&(n.selector.includes(" ")||n.selector.includes(">")||n.selector.includes("+")||n.selector.includes("~")))}function Ku(e,t){return jr(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 jr(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 w(n,i=>{i.kind==="rule"&&i.selector===".candidate"||i.kind==="declaration"&&i.property==="color"&&i.value==="red"||r.push(i)}),r}function Fu(e,t){return e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}var Gu=[ao,Wn,lo,ho,oo,co,fo,ko,ro,so,mo],Yu=new k(e=>{let t=kr(e),r=Ui(t);return new k(n=>new k(async i=>{let o=i;for(let s of Gu)i=await s(t,n,i);return i=t.canonicalizeCandidates([i]).pop(),typeof t.storage[ae].get(r).get(i)!="string"?o:i}))});async function Kr(e,t,r,n){return n&&!to(r,n,e)?r:Yu.get(e).get(t).get(r)}async function vo(e,t,r,n){let i=await Qn(r,n),o=[];for(let{rawCandidate:l,start:s,end:a}of i){let u=await Kr(e,t,l,{contents:r,start:s,end:a});u!==l&&o.push({start:s,end:a,replacement:u})}return Zn(r,o)}async function wo(e,t,r){let n=yo.isAbsolute(r)?r:yo.resolve(process.cwd(),r),i=await Wu.readFile(n,"utf-8"),o=await vo(e,t,i,Bu(r));return o===i||o.trim()===""?!1:(await Ce(n,o),!0)}function bo({designSystem:e,userConfig:t}){function r(n){let i=n.params.split(/(\s+)/),o=i[i.length-1]==="!important"||i[i.length-1]==="#{!important}";o&&i.pop();let l=i.map(s=>{if(s.trim()==="")return s;let a=b(s,":"),u=a.pop();return o&&u[0]!=="!"&&u[u.length-1]!=="!"&&(u+="!"),[...a,u].join(":")});return async()=>{e&&(l=await Promise.all(l.map(async s=>await Kr(e,t,s))),n.params=l.join("").trim())}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-apply",async OnceExit(n){let i=[];n.walkAtRules("apply",o=>{i.push(r(o))}),await Promise.allSettled(i.map(o=>o()))}}}import"postcss";import jt from"postcss-selector-parser";function Co(e){function t(r){if(!P(3)||r.params!=="utilities"&&r.params!=="components")return;let n=r.clone();L(r,l=>{if(l.type!=="rule")return;let s=b(l.selector,",");if(s.length>1){let a=[];for(let u of s){let c=l.clone({selector:u});a.push(c)}l.replaceWith(a)}return 1});let i=new Set;L(r,l=>{if(l.type==="rule"&&!qu(l))return jt(s=>{s.each(a=>{L(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;u.type==="class"&&i.add(u.value)})})}).processSync(l.selector,{updateSelector:!1}),1}),L(n,l=>{l.type==="rule"&&jt(s=>{s.each(a=>{L(a,u=>{if(u.type==="pseudo"&&u.value===":not")return 1;if(u.type==="class"&&i.has(u.value))return l.remove(),2})})}).processSync(l,{updateSelector:!0})});let o=[n];for(let l of i){let s=r.clone();o.push(s),L(s,a=>{if(a.type==="atrule"&&(!a.nodes||a.nodes?.length===0)&&a.remove(),a.type!=="rule")return;let u=!1;if(jt(c=>{c.each(p=>{L(p,f=>{if(f.type==="pseudo"&&f.value===":not")return 1;if(f.type==="class"&&f.value===l){u=!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(jt.nesting())}})})}).processSync(a,{updateSelector:!0}),!u){let c=[a],p=a.parent?.index(a)??null;if(p!==null){for(let m=p-1;m>=0&&a.parent?.nodes.at(m)?.type!=="rule";m--)a.parent?.nodes.at(m)?.type==="comment"&&c.push(a.parent?.nodes.at(m));let f=[];for(let m=p+1;m<(a.parent?.nodes.length??0);m++){if(a.parent?.nodes.at(m)?.type==="rule"){f=[];break}a.parent?.nodes.at(m)?.type==="comment"&&f.push(a.parent?.nodes.at(m))}c.push(...f)}for(let f of c)f.remove()}return 1}),s.name="utility",s.params=l,s.raws.before=`${s.raws.before??""}
|
|
218
218
|
|
|
219
|
-
`}for(let l=o.length-1;l>=0;l--){let s=o[l];if(
|
|
220
|
-
`))}}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let l=n({name:"layer",params:"utilities"});l.append(r.nodes),r.append(l)}r.walkAtRules("layer",t);{let l=new Map;L(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let a=l.get(s.params);a?(a.append(s.nodes),s.remove()):l.set(s.params,s)}})}o&&r.each(l=>{l.type==="atrule"&&l.name==="layer"&&l.params==="utilities"&&l.replaceWith(l.nodes??[])})}}}function qu(e){return e.nodes===void 0?!1:!!(e.nodes.length===0||e.nodes.every(t=>t.type==="comment"))}import Kt from"path";import Hu,{AtRule as Ju}from"postcss";var
|
|
219
|
+
`}for(let l=o.length-1;l>=0;l--){let s=o[l];if(Ur(s,a=>{if(s===n&&a.type==="comment"){let u=!1;for(let c of o)if(c!==n&&(L(c,p=>{if(p.type==="comment"&&p.source?.start?.offset===a.source?.start?.offset)return a.remove(),u=!0,2}),u))return 1}if(a.type==="atrule"&&a.nodes?.length===0||s!==n&&a.type==="rule"&&a.nodes?.length===0)a.remove();else if(a.type==="rule"&&a.selector==="&"){let u=a.parent,c=!1;for(;u;){if(u.type==="rule"){c=!0;break}u=u.parent}c||a.replaceWith(a.nodes)}}),s.nodes?.length===0)o.splice(l,1);else if(s===n){let a=s.nodes?.[0];a&&(a.raws.before=a.raws.before?.replace(/\n\s*\n/g,`
|
|
220
|
+
`))}}r.replaceWith(o)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-at-layer-utilities",OnceExit:(r,{atRule:n})=>{let i=e.layers(),o=i.has("utilities")||i.has("components");if(o){let l=n({name:"layer",params:"utilities"});l.append(r.nodes),r.append(l)}r.walkAtRules("layer",t);{let l=new Map;L(r,s=>{if(s.type==="atrule"&&s.name==="utility"){let a=l.get(s.params);a?(a.append(s.nodes),s.remove()):l.set(s.params,s)}})}o&&r.each(l=>{l.type==="atrule"&&l.name==="layer"&&l.params==="utilities"&&l.replaceWith(l.nodes??[])})}}}function qu(e){return e.nodes===void 0?!1:!!(e.nodes.length===0||e.nodes.every(t=>t.type==="comment"))}import Kt from"path";import Hu,{AtRule as Ju}from"postcss";var So=new WeakMap;function To(e,{configFilePath:t,jsConfigMigration:r}){function n(){if(!e.isTailwindRoot||!t)return;let i=So.get(e);if(i&&i.includes(t))return;i?i.push(t):So.set(e,[t]);let o=e.root;if(!e.file)return;let l=new Ju;if(r!==null){o.walkAtRules("config",a=>{a.remove()});let s=`
|
|
221
221
|
|
|
222
222
|
`;s+=`
|
|
223
|
-
@tw-bucket source {`;for(let a of r.sources){let u=Kt.resolve(a.base,a.pattern);s+=`@source '${
|
|
223
|
+
@tw-bucket source {`;for(let a of r.sources){let u=Kt.resolve(a.base,a.pattern);s+=`@source '${Ao(e,u)}';
|
|
224
224
|
`}s+=`}
|
|
225
225
|
`,s+=`
|
|
226
226
|
@tw-bucket plugin {
|
|
227
|
-
`;for(let a of r.plugins){let u=a.path[0]==="."?
|
|
227
|
+
`;for(let a of r.plugins){let u=a.path[0]==="."?Ao(e,Kt.resolve(a.base,a.path)):a.path;if(a.options===null)s+=`@plugin '${u}';
|
|
228
228
|
`;else{s+=`@plugin '${u}' {
|
|
229
|
-
`;for(let[c,p]of Object.entries(a.options)){let f="";typeof p=="string"?f
|
|
229
|
+
`;for(let[c,p]of Object.entries(a.options)){let f="";typeof p=="string"?f=$o(p):Array.isArray(p)?f=p.map(m=>typeof m=="string"?$o(m):""+m).join(", "):f=""+p,s+=` ${c}: ${f};
|
|
230
230
|
`}s+=`}
|
|
231
231
|
`}}s+=`}
|
|
232
|
-
`,l.append(Hu.parse(s+r.css))}o.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function
|
|
232
|
+
`,l.append(Hu.parse(s+r.css))}o.append(l.nodes)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-config",OnceExit:n}}function Ao(e,t){if(!e.file)throw new Error("Can not find a path for the stylesheet");let r=e.file,n=Kt.relative(Kt.dirname(r),t);return n[0]!=="."&&(n=`./${n}`),Ar(n)}function $o(e){return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`}import Zu from"fs/promises";import{dirname as Qu,resolve as Xu}from"path";import"postcss";function Eo(){async function e(t){let r=t.source?.input.file;if(!r)return;let n=[];t.walkAtRules("import",i=>{try{let[o,...l]=b(i.params," "),s=Ji(x(o));if(!s)return;let a=s.uri[0]===".",u=s.uri.endsWith(".css");if(a&&u)return;let c=Xu(Qu(r),s.uri);u||(c+=".css"),n.push(Zu.stat(c).then(()=>{let p=u?"":".css",f=a?s.uri:`./${s.uri}`;i.params=[`'${f}${p}'`,...l].join(" ")}))}catch{}}),await Promise.allSettled(n)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-import",OnceExit:e}}import"postcss";function No({designSystem:e,userConfig:t}={}){function r(n){if(!e||!t)return;let{resolvedConfig:i}=Ve(e,[{base:"",config:t,reference:!1,src:void 0}]),o=i?.theme?.screens||{},l=new k(s=>{let a=e?.resolveThemeValue(`--breakpoint-${s}`,!0)??o?.[s];return typeof a=="string"?`(width >= theme(--breakpoint-${s}))`:a?on(a):null});n.walkAtRules("screen",s=>{s.name="media",s.params=`screen(${s.params})`}),n.walkAtRules(s=>{if(s.name!=="media")return;let a=s.params.match(/screen\(([^)]+)\)/);if(!a)return;let u=l.get(a[1]);u&&(s.params=u)})}return{postcssPlugin:"@tailwindcss/upgrade/migrate-media-screen",OnceExit:r}}import{AtRule as ec}from"postcss";function Vo(){function e(t){let r="",n=[],i=[],o=null;t.each(l=>{if(l.type==="atrule"){if(l.name==="config"||l.name==="source"||l.name==="theme"||l.name==="utility"||l.name==="custom-variant"||l.name==="variant"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="tailwind"&&l.params==="base"||l.name==="import"&&l.params.match(/^["']tailwindcss\/base["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="base",r="base";return}if(l.name==="tailwind"&&l.params==="components"||l.name==="import"&&l.params.match(/^["']tailwindcss\/components["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="components",r="components";return}if(l.name==="tailwind"&&l.params==="utilities"||l.name==="import"&&l.params.match(/^["']tailwindcss\/utilities["']/)){n.length>0&&i.push([r,n.splice(0)]),o??="utilities",r="utilities";return}if(l.name==="layer"){n.length>0&&i.push([r,n.splice(0)]);return}if(l.name==="import"){n.length>0&&i.push([r,n.splice(0)]),i.push([r,[l]]);return}}r===""&&(l.type==="comment"||l.type==="atrule"&&!l.nodes||l.type==="atrule"&&l.name==="charset")||n.push(l)});for(let[l,s]of i){let a=l||o||"";if(a===""||s.every(p=>p.type==="comment"))continue;if(s.every(p=>p.type==="atrule"&&p.name==="import")){for(let p of s)if(!(p.type!=="atrule"||p.name!=="import")&&!p.params.includes("layer(")){let f=b(p.params," ");f.splice(1,0,`layer(${a})`),p.params=f.join(" "),p.raws.tailwind_injected_layer=!0}continue}let u=s[0],c=new ec({name:"layer",params:a,nodes:s.map(p=>p===u?p:p.remove()),raws:{tailwind_pretty:!0}});u.replaceWith(c)}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-missing-layers",OnceExit:e}}import tc from"dedent";import rc from"postcss";var ic="currentcolor",nc=tc,oc=nc`
|
|
233
233
|
/*
|
|
234
234
|
The default border color has changed to \`currentcolor\` in Tailwind CSS v4,
|
|
235
235
|
so we've added these compatibility styles to make sure everything still
|
|
@@ -247,11 +247,11 @@ Update your stylesheet to use ${S("@config")} to specify the correct configurati
|
|
|
247
247
|
border-color: theme(borderColor.DEFAULT);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
`;function
|
|
250
|
+
`;function Ro({designSystem:e,userConfig:t}){let r=t?.theme?.borderColor?.DEFAULT;function n(o){if(!e)return!1;let l=`--${te(ie(o))}`;return!!e.theme.get([l])}function i(o){if(!P(3))return;let l=!1;if(o.walkAtRules("import",u=>{if(/['"]tailwindcss['"]/.test(u.params)||/['"]tailwindcss\/preflight['"]/.test(u.params))return l=!0,!1}),!l)return;let s="";r!==ic&&(s+=oc,s+=`
|
|
251
251
|
|
|
252
252
|
`),s=`
|
|
253
253
|
@tw-bucket compatibility {
|
|
254
254
|
${s}
|
|
255
255
|
}
|
|
256
|
-
`;let a=rc.parse(s);a.walkDecls(u=>{u.value.includes("theme(")&&(u.value=lc(C(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),o.append(a)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function lc(e,t){return w(e,r=>{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 i=n.value,o=1;for(let a=o;a<r.nodes.length&&!r.nodes[a].value.includes(",");a++)i+=x([r.nodes[a]]),o=a+1;i=ac(i);let l=r.nodes.slice(o+1),s=l.length>0?t(i,x(l)):t(i);return s===null?void 0:k.Replace(C(s))}}),x(e)}function ac(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as Ft}from"postcss";var jr=["theme","base","components","utilities"];function Ro(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,l=[],s=null,a=null,u=null,c=null,p=[];n.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"),l.push(f),i=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),l.push(f),o=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()}),i!==null&&o!==null?(s||Wt(l).before(new Ft({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(a||Wt(l).before(new Ft({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(c||Wt(l).before(new Ft({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Wt(l).before(new Ft({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let f=p.toSorted((m,d)=>jr.indexOf(m)-jr.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=jr.toSorted((d,g)=>p.indexOf(d)-p.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Wt(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 No(e,{prettyPrint:t=!1}={}){function r(l,s=0){let a=C(l);if(s&2)return[Bt(a,o),null];let u=0,c=0;if(w(a,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,w(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?k.Stop:d.kind==="word"&&d.value==="/"?(c+=1,k.Stop):k.Skip))}),u===0)return[l,null];if(c===0)return[Bt(a,i),null];if(c>1)return[Bt(a,o),null];let p=null;return[Bt(a,(m,d)=>{let g=b(m,"/").map(h=>h.trim());if(g.length>2)return null;if(a.length===1&&g.length===2&&s&1){let[h,v]=g;if(/^\d+%$/.test(v))p={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let $=Number(v)*100;p={kind:Number.isInteger($)?"named":"arbitrary",value:$.toString()}}else p={kind:"arbitrary",value:v};m=h}return i(m,d)||o(m,d)}),p]}function n(l){let s=`--${te(re(l))}`;return e.theme.get([s])?e.theme.prefix?`--${e.theme.prefix}-${s.slice(2)}`:s:null}function i(l,s){let a=n(l);if(a)return s?`var(${a}, ${s})`:`var(${a})`;let u=re(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Z(c)?`--spacing(${c})`:null}return null}function o(l,s){let a=b(l,"/").map(p=>p.trim());l=a.shift();let u=n(l);if(!u)return null;let c=a.length>0?t?` / ${a.join(" / ")}`:`/${a.join("/")}`:"";return s?`--theme(${u}${c}, ${s})`:`--theme(${u}${c})`}return r}function Bt(e,t){return w(e,(r,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 o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=x([r.nodes[u]]),l=u+1;o=sc(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,x(s)):t(o);if(a===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return k.Replace(C(a))}}),x(e)}function sc(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Po({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=No(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 _o(){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 Oo(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await cc(e,t)}async function cc(e,t,r){return typeof e=="string"&&(e=await se.fromString(e),e.file=r??null),uc().use($o()).use(vo(t)).use(To(t)).use(_o()).use(bo(e)).use(Eo()).use(Ro(t)).use(So(e,t)).use(Vo(t)).use(Po(t)).process(e.root,{from:e.file??void 0})}import fc from"postcss";var Do=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Lo(){async function e(t){{let s=function(a,...u){l=a,o.get(a).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],o=new y(a=>{let u=fc.atRule({name:"tw-bucket",params:a,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",a=>{o.set(a.params,a)});let l="user";L(t,a=>{if(a.type==="atrule"&&a.name==="tw-bucket")return 1;if(a.type==="comment"){if(i.length>0){i.push(a);return}let u=Io(a.prev(),a)??1/0,c=Io(a,a.next())??1/0;u<c?o.get(l).nodes?.push(a):i.push(a)}else a.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(a.name)?s(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"?s("import",a):(a.type==="rule"||a.type,s("user",a));return 1}),i.length>0&&s(l)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,l)=>{let s=Do.indexOf(o.params),a=Do.indexOf(l.params);return s-a});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Io(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 pc from"postcss";async function Uo(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 a=!1,u=s.layers().size>0;L(s.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;u=!0}return a&&u?2:1}),a&&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(f=>n.has(f)))continue;let a=pc.root();L(s.root,f=>{if(f.type==="atrule"&&f.name==="utility")return a.append(f),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 p=await se.fromRoot(a,u);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(s,p),t.set(p.id,p)}for(let[s,a]of i){for(let u of s.parents){let c=i.get(u.item);c&&a.parents.add({item:c,meta:u.meta})}for(let u of s.children){let c=i.get(u.item);c&&a.children.add({item:c,meta:u.meta})}}for(let s of e){let a=i.get(s),u=new Set;for(let c of s.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=i.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),$=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?u.add($):c.after($)}a&&u.size>0&&a.root.prepend(Array.from(u))}let o=new y(()=>new Set);for(let s of t.values())for(let a of s.importRules){let u=a.raws.tailwind_destination_sheet_id;if(!u)continue;let c=t.get(u);c&&o.get(c).add(a)}let l=[];for(let s of e.slice()){for(let a of s.descendants())l.push(a);l.push(s)}for(let s of l){let a=i.get(s);if(a&&s.isEmpty){s.root=a.root;for(let u of o.get(a))u.params=u.raws.tailwind_original_params;for(let u of o.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import Te from"picocolors";function Mo({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(J(Tt()),e&&(J(),J(`${Te.dim("Invalid command:")} ${e}`)),t&&t.length>0){J(),J(Te.dim("Usage:"));for(let[i,o]of t.entries()){let l=o.slice(0,o.indexOf("[")),s=o.slice(o.indexOf("["));s=s.replace(/\[.*?\]/g,c=>Te.dim(c));let u=nt(s,n-$t.indent-l.length-1);u.length>1&&i!==0&&J(),J(ot(`${l}${u.shift()}`));for(let c of u)J(ot(c,l.length))}}if(r){let i=0;for(let{alias:a}of Object.values(r))a&&(i=Math.max(i,a.length));let o=[],l=0;for(let[a,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?a:" ".repeat(i+2)+a].filter(Boolean).join(", ");o.push(c),l=Math.max(l,c.length)}J(),J(Te.dim("Options:"));let s=8;for(let{description:a,default:u=null}of Object.values(r)){let c=o.shift(),p=s+(l-c.length),f=2,m=n-c.length-p-f-$t.indent,d=nt(u!==null?`${a} ${Te.dim(`[default:\u202F${S(`${u}`)}]`)}`:a,m);J(ot(`${Te.blue(c)} ${Te.dim(Te.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let g of d)J(ot(`${" ".repeat(c.length+p+f)}${g}`))}}}import mc from"mri";function jo(e,t=process.argv.slice(2)){let r=mc(t),n={_:r._};for(let[i,{type:o,alias:l,default:s=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,l){let a=l.slice(1);r[a]!==void 0&&(n[i]=zo(r[a],o))}{let a=i.slice(2);r[a]!==void 0&&(n[i]=zo(r[a],o))}}return n}function zo(e,t){switch(t){case"string":return qt(e);case"boolean":return Gt(e);case"number":return Yt(e);case"boolean | string":return Gt(e)??qt(e);case"number | string":return Yt(e)??qt(e);case"boolean | number":return Gt(e)??Yt(e);case"boolean | number | string":return Gt(e)??Yt(e)??qt(e);default:throw new Error(`Unhandled type: ${t}`)}}function Gt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Yt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function qt(e){return`${e}`}import{execSync as dc}from"child_process";function Kr(e){try{return dc("git status --porcelain",{encoding:"utf-8",cwd:e}).trim()!==""}catch(t){return!t?.toString?.().includes("not a git repository")}}var Fo={"--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"}},Ht=jo(Fo);Ht["--help"]&&(Mo({usage:["npx @tailwindcss/upgrade"],options:Fo}),process.exit(0));async function vc(){let e=process.cwd(),t=await yc({cwd:e});xe(Tt()),xe();let r=[];if(Ht["--force"]||Kr()&&(I("Git directory is not clean. Please stash or commit your changes before migrating."),D(`You may use the ${S("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),D(`Upgrading from Tailwind CSS ${S(`v${me(e)}`)}`,{prefix:"\u21B3 "}),me(e)!==Lr(e)){let n=await _e(e).manager();I(["Version mismatch","",X.dim("```diff"),`${X.red("-")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(Lr(e))}${X.dim('"')}`}`} (expected version in ${S("package.json")})`,`${X.green("+")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(me(e))}${X.dim('"')}`}`} (installed version in ${S("node_modules")})`,X.dim("```"),"",`Make sure to run ${S(`${n} install`)} and try again.`].join(`
|
|
257
|
-
`),{prefix:"\u21B3 "}),process.exit(1)}{let n=Ht._.map(c=>
|
|
256
|
+
`;let a=rc.parse(s);a.walkDecls(u=>{u.value.includes("theme(")&&(u.value=lc(x(u.value),c=>n(c)?r:c==="borderColor.DEFAULT"?"var(--color-gray-200, currentcolor)":null))}),o.walkAtRules("theme",u=>{u.walkDecls("--border-color",c=>{c.remove()}),u.nodes?.length===0&&u.remove()}),o.append(a)}return{postcssPlugin:"@tailwindcss/upgrade/migrate-preflight",OnceExit:i}}function lc(e,t){return w(e,r=>{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 i=n.value,o=1;for(let a=o;a<r.nodes.length&&!r.nodes[a].value.includes(",");a++)i+=C([r.nodes[a]]),o=a+1;i=ac(i);let l=r.nodes.slice(o+1),s=l.length>0?t(i,C(l)):t(i);return s===null?void 0:y.Replace(x(s))}}),C(e)}function ac(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}import{AtRule as Ft}from"postcss";var Fr=["theme","base","components","utilities"];function Po(e){let t=e.newPrefix?` prefix(${e.newPrefix})`:"";function r(n){let i=null,o=null,l=[],s=null,a=null,u=null,c=null,p=[];n.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"),l.push(f),i=f;else if(f.name==="tailwind"&&f.params==="utilities"||f.name==="import"&&f.params.match(/^["']tailwindcss\/utilities["']$/))p.push("utilities"),l.push(f),o=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()}),i!==null&&o!==null?(s||Wt(l).before(new Ft({name:"import",params:`'tailwindcss'${t}`})),i?.remove(),o?.remove()):o!==null?(a||Wt(l).before(new Ft({name:"import",params:"'tailwindcss/utilities' layer(utilities)"})),o?.remove()):i!==null&&(c||Wt(l).before(new Ft({name:"import",params:`'tailwindcss/theme' layer(theme)${t}`})),u||Wt(l).before(new Ft({name:"import",params:"'tailwindcss/preflight' layer(base)"})),i?.remove());{let f=p.toSorted((m,d)=>Fr.indexOf(m)-Fr.indexOf(d));if(p.some((m,d)=>m!==f[d])){let m=Fr.toSorted((d,g)=>p.indexOf(d)-p.indexOf(g));n.prepend({name:"layer",params:m.join(", ")})}}}return{postcssPlugin:"@tailwindcss/upgrade/migrate-tailwind-directives",OnceExit:r}}function Wt(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 _o(e,{prettyPrint:t=!1}={}){function r(l,s=0){let a=x(l);if(s&2)return[Bt(a,o),null];let u=0,c=0;if(w(a,m=>{m.kind==="function"&&m.value==="theme"&&(u+=1,w(m.nodes,d=>d.kind==="separator"&&d.value.includes(",")?y.Stop:d.kind==="word"&&d.value==="/"?(c+=1,y.Stop):y.Skip))}),u===0)return[l,null];if(c===0)return[Bt(a,i),null];if(c>1)return[Bt(a,o),null];let p=null;return[Bt(a,(m,d)=>{let g=b(m,"/").map(h=>h.trim());if(g.length>2)return null;if(a.length===1&&g.length===2&&s&1){let[h,v]=g;if(/^\d+%$/.test(v))p={kind:"named",value:v.slice(0,-1)};else if(/^0?\.\d+$/.test(v)){let $=Number(v)*100;p={kind:Number.isInteger($)?"named":"arbitrary",value:$.toString()}}else p={kind:"arbitrary",value:v};m=h}return i(m,d)||o(m,d)}),p]}function n(l){let s=`--${te(ie(l))}`;return e.theme.get([s])?e.theme.prefix?`--${e.theme.prefix}-${s.slice(2)}`:s:null}function i(l,s){let a=n(l);if(a)return s?`var(${a}, ${s})`:`var(${a})`;let u=ie(l);if(u[0]==="spacing"&&e.theme.get(["--spacing"])){let c=u[1];return Z(c)?`--spacing(${c})`:null}return null}function o(l,s){let a=b(l,"/").map(p=>p.trim());l=a.shift();let u=n(l);if(!u)return null;let c=a.length>0?t?` / ${a.join(" / ")}`:`/${a.join("/")}`:"";return s?`--theme(${u}${c}, ${s})`:`--theme(${u}${c})`}return r}function Bt(e,t){return w(e,(r,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 o=i.value,l=1;for(let u=l;u<r.nodes.length&&!r.nodes[u].value.includes(",");u++)o+=C([r.nodes[u]]),l=u+1;o=sc(o);let s=r.nodes.slice(l+1),a=s.length>0?t(o,C(s)):t(o);if(a===null)return;{let u=n.index-1;for(;u!==-1;){let c=n.siblings[u];if(c.kind==="separator"&&c.value.trim()===""){u-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(a=`(${a})`);break}}return y.Replace(x(a))}}),C(e)}function sc(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],o=e[n+1];i==="\\"&&(o===r||o==="\\")?(t+=o,n++):t+=i}return t}function Oo({designSystem:e}={}){return{postcssPlugin:"@tailwindcss/upgrade/migrate-theme-to-var",OnceExit(t){if(!e)return;let r=_o(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 Do(){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 Io(e,t){if(!e.file)throw new Error("Cannot migrate a stylesheet without a file path");e.canMigrate&&await cc(e,t)}async function cc(e,t,r){return typeof e=="string"&&(e=await se.fromString(e),e.file=r??null),uc().use(Eo()).use(bo(t)).use(No(t)).use(Do()).use(Co(e)).use(Vo()).use(Po(t)).use(To(e,t)).use(Ro(t)).use(Oo(t)).process(e.root,{from:e.file??void 0})}import fc from"postcss";var Lo=["import","config","plugin","source","custom-variant","theme","compatibility","utility","user"];function Mo(){async function e(t){{let s=function(a,...u){l=a,o.get(a).nodes?.push(...i.splice(0),...u)};var n=s;let i=[],o=new k(a=>{let u=fc.atRule({name:"tw-bucket",params:a,nodes:[]});return t.append(u),u});t.walkAtRules("tw-bucket",a=>{o.set(a.params,a)});let l="user";L(t,a=>{if(a.type==="atrule"&&a.name==="tw-bucket")return 1;if(a.type==="comment"){if(i.length>0){i.push(a);return}let u=Uo(a.prev(),a)??1/0,c=Uo(a,a.next())??1/0;u<c?o.get(l).nodes?.push(a):i.push(a)}else a.type==="atrule"&&["config","plugin","source","theme","utility","custom-variant"].includes(a.name)?s(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"?s("import",a):(a.type==="rule"||a.type,s("user",a));return 1}),i.length>0&&s(l)}let r=new Map;t.walkAtRules("tw-bucket",i=>{let o=r.get(i.params);if(!o){r.set(i.params,i);return}i.nodes&&o.append(...i.nodes)}),t.walkAtRules("tw-bucket",i=>{i.nodes?.length||i.remove()});{let i=Array.from(r.values()).sort((o,l)=>{let s=Lo.indexOf(o.params),a=Lo.indexOf(l.params);return s-a});t.removeAll(),t.append(i)}}return{postcssPlugin:"@tailwindcss/upgrade/sort-buckets",OnceExit:e}}function Uo(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 pc from"postcss";async function zo(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 a=!1,u=s.layers().size>0;L(s.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;u=!0}return a&&u?2:1}),a&&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(f=>n.has(f)))continue;let a=pc.root();L(s.root,f=>{if(f.type==="atrule"&&f.name==="utility")return a.append(f),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 p=await se.fromRoot(a,u);p.extension=c>0?`.utilities.${c}.css`:".utilities.css",i.set(s,p),t.set(p.id,p)}for(let[s,a]of i){for(let u of s.parents){let c=i.get(u.item);c&&a.parents.add({item:c,meta:u.meta})}for(let u of s.children){let c=i.get(u.item);c&&a.children.add({item:c,meta:u.meta})}}for(let s of e){let a=i.get(s),u=new Set;for(let c of s.importRules){let p=c.raws.tailwind_destination_sheet_id;if(!p)continue;let f=t.get(p);if(!f)continue;let m=i.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),$=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?u.add($):c.after($)}a&&u.size>0&&a.root.prepend(Array.from(u))}let o=new k(()=>new Set);for(let s of t.values())for(let a of s.importRules){let u=a.raws.tailwind_destination_sheet_id;if(!u)continue;let c=t.get(u);c&&o.get(c).add(a)}let l=[];for(let s of e.slice()){for(let a of s.descendants())l.push(a);l.push(s)}for(let s of l){let a=i.get(s);if(a&&s.isEmpty){s.root=a.root;for(let u of o.get(a))u.params=u.raws.tailwind_original_params;for(let u of o.get(s))u.remove();i.delete(s)}}e.push(...i.values())}import Te from"picocolors";function jo({invalid:e,usage:t,options:r}){let n=process.stdout.columns;if(J(Tt()),e&&(J(),J(`${Te.dim("Invalid command:")} ${e}`)),t&&t.length>0){J(),J(Te.dim("Usage:"));for(let[i,o]of t.entries()){let l=o.slice(0,o.indexOf("[")),s=o.slice(o.indexOf("["));s=s.replace(/\[.*?\]/g,c=>Te.dim(c));let u=ot(s,n-$t.indent-l.length-1);u.length>1&&i!==0&&J(),J(lt(`${l}${u.shift()}`));for(let c of u)J(lt(c,l.length))}}if(r){let i=0;for(let{alias:a}of Object.values(r))a&&(i=Math.max(i,a.length));let o=[],l=0;for(let[a,{alias:u}]of Object.entries(r)){let c=[u&&`${u.padStart(i)}`,u?a:" ".repeat(i+2)+a].filter(Boolean).join(", ");o.push(c),l=Math.max(l,c.length)}J(),J(Te.dim("Options:"));let s=8;for(let{description:a,default:u=null}of Object.values(r)){let c=o.shift(),p=s+(l-c.length),f=2,m=n-c.length-p-f-$t.indent,d=ot(u!==null?`${a} ${Te.dim(`[default:\u202F${A(`${u}`)}]`)}`:a,m);J(lt(`${Te.blue(c)} ${Te.dim(Te.gray("\xB7")).repeat(p)} ${d.shift()}`));for(let g of d)J(lt(`${" ".repeat(c.length+p+f)}${g}`))}}}import mc from"mri";function Fo(e,t=process.argv.slice(2)){let r=mc(t),n={_:r._};for(let[i,{type:o,alias:l,default:s=o==="boolean"?!1:null}]of Object.entries(e)){if(n[i]=s,l){let a=l.slice(1);r[a]!==void 0&&(n[i]=Ko(r[a],o))}{let a=i.slice(2);r[a]!==void 0&&(n[i]=Ko(r[a],o))}}return n}function Ko(e,t){switch(t){case"string":return qt(e);case"boolean":return Gt(e);case"number":return Yt(e);case"boolean | string":return Gt(e)??qt(e);case"number | string":return Yt(e)??qt(e);case"boolean | number":return Gt(e)??Yt(e);case"boolean | number | string":return Gt(e)??Yt(e)??qt(e);default:throw new Error(`Unhandled type: ${t}`)}}function Gt(e){if(e===!0||e===!1)return e;if(e==="true")return!0;if(e==="false")return!1}function Yt(e){if(typeof e=="number")return e;{let t=Number(e);if(!Number.isNaN(t))return t}}function qt(e){return`${e}`}import{execSync as dc}from"child_process";function Wr(e){try{return dc("git status --porcelain",{encoding:"utf-8",cwd:e}).trim()!==""}catch(t){return!t?.toString?.().includes("not a git repository")}}var Bo={"--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"}},Ht=Fo(Bo);Ht["--help"]&&(jo({usage:["npx @tailwindcss/upgrade"],options:Bo}),process.exit(0));async function vc(){let e=process.cwd(),t=await kc({cwd:e});xe(Tt()),xe();let r=[];if(Ht["--force"]||Wr()&&(I("Git directory is not clean. Please stash or commit your changes before migrating."),D(`You may use the ${A("--force")} flag to silence this warning and perform the migration.`),process.exit(1)),D(`Upgrading from Tailwind CSS ${A(`v${de(e)}`)}`,{prefix:"\u21B3 "}),de(e)!==Mr(e)){let n=await _e(e).manager();I(["Version mismatch","",X.dim("```diff"),`${X.red("-")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(Mr(e))}${X.dim('"')}`}`} (expected version in ${A("package.json")})`,`${X.green("+")} ${`${X.dim('"tailwindcss":')} ${`${X.dim('"')}${X.blue(de(e))}${X.dim('"')}`}`} (installed version in ${A("node_modules")})`,X.dim("```"),"",`Make sure to run ${A(`${n} install`)} and try again.`].join(`
|
|
257
|
+
`),{prefix:"\u21B3 "}),process.exit(1)}{let n=Ht._.map(c=>Br.resolve(e,c));n.length===0&&(D("Searching for CSS files in the current directory and its subdirectories\u2026"),n=await hc(["**/*.css"],{cwd:e,absolute:!0,gitignore:!0,ignore:["**/node_modules/**"]})),n=n.filter(c=>c.endsWith(".css"));let i=await Promise.allSettled(n.map(c=>se.load(c)));for(let c of i)c.status==="rejected"&&I(`${c.reason?.message??c.reason}`,{prefix:"\u21B3 "});let o=i.filter(c=>c.status==="fulfilled").map(c=>c.value),l=new Map(o.map(c=>[c,c.root.toString()]));try{await Dn(o)}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}if(P(3))try{await Jn(o,{configPath:Ht["--config"],base:e})}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}o.some(c=>c.isTailwindRoot&&c.linkedConfigPath)&&D("Migrating JavaScript configuration files\u2026");let s=new Map,a=new Map;for(let c of o){if(!c.isTailwindRoot||!P(3)&&!c.linkedConfigPath)continue;let p=await Hn(c.linkedConfigPath,{base:e});s.set(c,p);let f=await An(p.designSystem,p.configFilePath,e);a.set(c,f),f!==null&&r.push(()=>Wo.rm(p.configFilePath)),f!==null&&B(`Migrated configuration file: ${A(R(p.configFilePath,e))}`,{prefix:"\u21B3 "})}if(o.length>0&&D("Migrating stylesheets\u2026"),await Promise.all(o.map(async c=>{try{let p=s.get(c),f=a.get(c)??null;if(!p){for(let m of c.ancestors())if(m.isTailwindRoot){p??=s.get(m),f??=a.get(m)??null;break}}!P(3)&&c.isTailwindRoot&&await Promise.all([c.compiler(),c.designSystem()]),await Io(c,{newPrefix:p?.newPrefix??null,designSystem:p?.designSystem??await c.designSystem(),userConfig:p?.userConfig??null,configFilePath:p?.configFilePath??null,jsConfigMigration:f})}catch(p){I(`${p?.message??p} in ${A(R(c.file,e))}`,{prefix:"\u21B3 "})}})),P(3)){try{await zo(o)}catch(c){I(`${c?.message??c}`,{prefix:"\u21B3 "})}for(let c of o)for(let p of c.importRules){if(!p.raws.tailwind_injected_layer)continue;let f=o.find(m=>m.id===p.raws.tailwind_destination_sheet_id);f&&f.containsRule(m=>m.type==="atrule"&&m.name==="utility")&&(p.params=p.params.replace(/ layer\([^)]+\)/,"").trim())}}for(let c of o)l.get(c)!==c.root.toString()&&await yc([Mo(),Mn()]).process(c.root,{from:c.file});for(let c of o)c.file&&(await Ce(c.file,c.root.toString()),c.isTailwindRoot&&B(`Migrated stylesheet: ${A(R(c.file,e))}`,{prefix:"\u21B3 "}));D("Updating dependencies\u2026");{let c=_e(e),p=["tailwindcss","@tailwindcss/cli","@tailwindcss/postcss","@tailwindcss/vite","@tailwindcss/node","@tailwindcss/oxide","prettier-plugin-tailwindcss"].filter(f=>f==="tailwindcss"||c.has(f));try{await c.add(p.map(f=>`${f}@latest`));for(let f of p)B(`Updated package: ${A(f)}`,{prefix:"\u21B3 "})}catch{}}let u=o.filter(c=>c.isTailwindRoot&&c.file);u.length>0&&D("Migrating templates\u2026");{let c=new Set;for(let p of u){let f=await p.compiler();if(!f)continue;let m=await p.designSystem();if(!m)continue;let d=s.get(p),g=(f.root==="none"?[]:f.root===null?P(3)?d?.sources?d.sources.map(S=>({...S,negated:!1})):[]:[{base:e,pattern:"**/*",negated:!1}]:[{...f.root,negated:!1}]).concat(f.sources),h=new gc({sources:g}),v=[],$=new Set;for(let S of h.files)if(S=await Wo.realpath(S).catch(()=>S),!S.endsWith(".css")){try{if(t(S)){let _=S,he=Br.dirname(S);do{try{t(he)&&(_=he)}catch{break}let Oe=Br.dirname(he);if(Oe===he)break;he=Oe}while(he);if($.has(_))continue;$.add(_),_===S?D(`Git ignored, skipping: ${A(R(_,e))}`,{prefix:"\u21B3 "}):D(`Git ignored folder, skipping: ${A(R(_,e))}`,{prefix:"\u21B3 "});continue}}catch{D(`Outside repository, skipping: ${A(R(S,e))}`,{prefix:"\u21B3 "});continue}c.has(S)||(c.add(S),v.push(S))}let T=0;await Promise.allSettled(v.map(async S=>{await wo(m,d?.userConfig??null,S)&&(T++,D(`Migrated ${A(R(S,e))}`,{prefix:"\u21B3 "}))})),d?.configFilePath?B(`Migrated templates for configuration file: ${A(R(d.configFilePath,e))} (${T} file${T===1?"":"s"} changed)`,{prefix:"\u21B3 "}):B(`Migrated templates for: ${A(R(p.file??"<unknown>",e))} (${T} file${T===1?"":"s"} changed)`,{prefix:"\u21B3 "})}}}P(3)&&await Vn(e),await Promise.allSettled(r.map(n=>n())),Wr()?B("Verify the changes and commit them to your repository."):B("No changes were made to your repository.")}vc().then(()=>process.exit(0)).catch(e=>{console.error(e),process.exit(1)});
|