@tailwindcss/node 0.0.0-insiders.fadf442 → 0.0.0-insiders.fc63ce7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/dist/esm-cache.loader.mjs +1 -1
- package/dist/index.d.mts +143 -8
- package/dist/index.d.ts +139 -8
- package/dist/index.js +24 -13
- package/dist/index.mjs +24 -13
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -27,14 +27,10 @@ For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
|
|
|
27
27
|
|
|
28
28
|
## Community
|
|
29
29
|
|
|
30
|
-
For help, discussion about best practices, or
|
|
30
|
+
For help, discussion about best practices, or feature ideas:
|
|
31
31
|
|
|
32
32
|
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindcss/tailwindcss/discussions)
|
|
33
33
|
|
|
34
|
-
For chatting with others using the framework:
|
|
35
|
-
|
|
36
|
-
[Join the Tailwind CSS Discord Server](https://discord.gg/7NF8GNe)
|
|
37
|
-
|
|
38
34
|
## Contributing
|
|
39
35
|
|
|
40
36
|
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindcss/tailwindcss/blob/next/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isBuiltin as i}from"
|
|
1
|
+
import{isBuiltin as i}from"module";var o=async(a,e,u)=>{let r=await u(a,e);if(r.url===import.meta.url||i(r.url)||!e.parentURL)return r;let t=new URL(e.parentURL).searchParams.get("id");if(t===null)return r;let l=new URL(r.url);return l.searchParams.set("id",t),{...r,url:`${l}`}};export{o as resolve};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Candidate, Variant } from './candidate';
|
|
2
2
|
import { compileAstNodes } from './compile';
|
|
3
|
-
import { ClassEntry, VariantEntry } from './intellisense';
|
|
3
|
+
import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
|
|
4
4
|
import { Theme } from './theme';
|
|
5
5
|
import { Utilities } from './utilities';
|
|
6
6
|
import { Variants } from './variants';
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import * as tailwindcss from 'tailwindcss';
|
|
8
|
+
import { Polyfills, Features } from 'tailwindcss';
|
|
9
|
+
export { Features, Polyfills } from 'tailwindcss';
|
|
9
10
|
|
|
10
11
|
declare const DEBUG: boolean;
|
|
11
12
|
|
|
@@ -14,6 +15,10 @@ declare namespace env {
|
|
|
14
15
|
export { env_DEBUG as DEBUG };
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
declare const enum CompileAstFlags {
|
|
19
|
+
None = 0,
|
|
20
|
+
RespectImportant = 1
|
|
21
|
+
}
|
|
17
22
|
type DesignSystem = {
|
|
18
23
|
theme: Theme;
|
|
19
24
|
utilities: Utilities;
|
|
@@ -25,57 +30,152 @@ type DesignSystem = {
|
|
|
25
30
|
getVariants(): VariantEntry[];
|
|
26
31
|
parseCandidate(candidate: string): Readonly<Candidate>[];
|
|
27
32
|
parseVariant(variant: string): Readonly<Variant> | null;
|
|
28
|
-
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
|
33
|
+
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
|
34
|
+
printCandidate(candidate: Candidate): string;
|
|
35
|
+
printVariant(variant: Variant): string;
|
|
29
36
|
getVariantOrder(): Map<Variant, number>;
|
|
30
|
-
resolveThemeValue(path: string): string | undefined;
|
|
37
|
+
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
|
31
38
|
trackUsedVariables(raw: string): void;
|
|
39
|
+
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
|
32
40
|
candidatesToCss(classes: string[]): (string | null)[];
|
|
33
41
|
};
|
|
34
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The source code for one or more nodes in the AST
|
|
45
|
+
*
|
|
46
|
+
* This generally corresponds to a stylesheet
|
|
47
|
+
*/
|
|
48
|
+
interface Source {
|
|
49
|
+
/**
|
|
50
|
+
* The path to the file that contains the referenced source code
|
|
51
|
+
*
|
|
52
|
+
* If this references the *output* source code, this is `null`.
|
|
53
|
+
*/
|
|
54
|
+
file: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The referenced source code
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The file and offsets within it that this node covers
|
|
62
|
+
*
|
|
63
|
+
* This can represent either:
|
|
64
|
+
* - A location in the original CSS which caused this node to be created
|
|
65
|
+
* - A location in the output CSS where this node resides
|
|
66
|
+
*/
|
|
67
|
+
type SourceLocation = [source: Source, start: number, end: number];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Line offset tables are the key to generating our source maps. They allow us
|
|
71
|
+
* to store indexes with our AST nodes and later convert them into positions as
|
|
72
|
+
* when given the source that the indexes refer to.
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* A position in source code
|
|
76
|
+
*
|
|
77
|
+
* https://tc39.es/ecma426/#sec-position-record-type
|
|
78
|
+
*/
|
|
79
|
+
interface Position {
|
|
80
|
+
/** The line number, one-based */
|
|
81
|
+
line: number;
|
|
82
|
+
/** The column/character number, one-based */
|
|
83
|
+
column: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface OriginalPosition extends Position {
|
|
87
|
+
source: DecodedSource;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A "decoded" sourcemap
|
|
91
|
+
*
|
|
92
|
+
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
|
93
|
+
*/
|
|
94
|
+
interface DecodedSourceMap {
|
|
95
|
+
file: string | null;
|
|
96
|
+
sources: DecodedSource[];
|
|
97
|
+
mappings: DecodedMapping[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A "decoded" source
|
|
101
|
+
*
|
|
102
|
+
* @see https://tc39.es/ecma426/#decoded-source-record
|
|
103
|
+
*/
|
|
104
|
+
interface DecodedSource {
|
|
105
|
+
url: string | null;
|
|
106
|
+
content: string | null;
|
|
107
|
+
ignore: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A "decoded" mapping
|
|
111
|
+
*
|
|
112
|
+
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
|
113
|
+
*/
|
|
114
|
+
interface DecodedMapping {
|
|
115
|
+
originalPosition: OriginalPosition | null;
|
|
116
|
+
generatedPosition: Position;
|
|
117
|
+
name: string | null;
|
|
118
|
+
}
|
|
119
|
+
|
|
35
120
|
type StyleRule = {
|
|
36
121
|
kind: 'rule';
|
|
37
122
|
selector: string;
|
|
38
123
|
nodes: AstNode[];
|
|
124
|
+
src?: SourceLocation;
|
|
125
|
+
dst?: SourceLocation;
|
|
39
126
|
};
|
|
40
127
|
type AtRule = {
|
|
41
128
|
kind: 'at-rule';
|
|
42
129
|
name: string;
|
|
43
130
|
params: string;
|
|
44
131
|
nodes: AstNode[];
|
|
132
|
+
src?: SourceLocation;
|
|
133
|
+
dst?: SourceLocation;
|
|
45
134
|
};
|
|
46
135
|
type Declaration = {
|
|
47
136
|
kind: 'declaration';
|
|
48
137
|
property: string;
|
|
49
138
|
value: string | undefined;
|
|
50
139
|
important: boolean;
|
|
140
|
+
src?: SourceLocation;
|
|
141
|
+
dst?: SourceLocation;
|
|
51
142
|
};
|
|
52
143
|
type Comment = {
|
|
53
144
|
kind: 'comment';
|
|
54
145
|
value: string;
|
|
146
|
+
src?: SourceLocation;
|
|
147
|
+
dst?: SourceLocation;
|
|
55
148
|
};
|
|
56
149
|
type Context = {
|
|
57
150
|
kind: 'context';
|
|
58
151
|
context: Record<string, string | boolean>;
|
|
59
152
|
nodes: AstNode[];
|
|
153
|
+
src?: undefined;
|
|
154
|
+
dst?: undefined;
|
|
60
155
|
};
|
|
61
156
|
type AtRoot = {
|
|
62
157
|
kind: 'at-root';
|
|
63
158
|
nodes: AstNode[];
|
|
159
|
+
src?: undefined;
|
|
160
|
+
dst?: undefined;
|
|
64
161
|
};
|
|
65
162
|
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
|
66
163
|
|
|
67
164
|
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
|
68
165
|
interface CompileOptions {
|
|
69
166
|
base: string;
|
|
167
|
+
from?: string;
|
|
70
168
|
onDependency: (path: string) => void;
|
|
71
169
|
shouldRewriteUrls?: boolean;
|
|
170
|
+
polyfills?: Polyfills;
|
|
72
171
|
customCssResolver?: Resolver;
|
|
73
172
|
customJsResolver?: Resolver;
|
|
74
173
|
}
|
|
75
174
|
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
76
|
-
|
|
175
|
+
sources: {
|
|
77
176
|
base: string;
|
|
78
177
|
pattern: string;
|
|
178
|
+
negated: boolean;
|
|
79
179
|
}[];
|
|
80
180
|
root: "none" | {
|
|
81
181
|
base: string;
|
|
@@ -85,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
|
85
185
|
build(candidates: string[]): AstNode[];
|
|
86
186
|
}>;
|
|
87
187
|
declare function compile(css: string, options: CompileOptions): Promise<{
|
|
88
|
-
|
|
188
|
+
sources: {
|
|
89
189
|
base: string;
|
|
90
190
|
pattern: string;
|
|
191
|
+
negated: boolean;
|
|
91
192
|
}[];
|
|
92
193
|
root: "none" | {
|
|
93
194
|
base: string;
|
|
@@ -95,10 +196,16 @@ declare function compile(css: string, options: CompileOptions): Promise<{
|
|
|
95
196
|
} | null;
|
|
96
197
|
features: Features;
|
|
97
198
|
build(candidates: string[]): string;
|
|
199
|
+
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
|
98
200
|
}>;
|
|
99
201
|
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
|
100
202
|
base: string;
|
|
101
203
|
}): Promise<DesignSystem>;
|
|
204
|
+
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
|
205
|
+
path: string;
|
|
206
|
+
base: string;
|
|
207
|
+
module: any;
|
|
208
|
+
}>;
|
|
102
209
|
|
|
103
210
|
declare class Instrumentation implements Disposable {
|
|
104
211
|
#private;
|
|
@@ -114,4 +221,32 @@ declare class Instrumentation implements Disposable {
|
|
|
114
221
|
|
|
115
222
|
declare function normalizePath(originalPath: string): string;
|
|
116
223
|
|
|
117
|
-
|
|
224
|
+
interface OptimizeOptions {
|
|
225
|
+
/**
|
|
226
|
+
* The file being transformed
|
|
227
|
+
*/
|
|
228
|
+
file?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Enabled minified output
|
|
231
|
+
*/
|
|
232
|
+
minify?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The output source map before optimization
|
|
235
|
+
*
|
|
236
|
+
* If omitted a resulting source map will not be available
|
|
237
|
+
*/
|
|
238
|
+
map?: string;
|
|
239
|
+
}
|
|
240
|
+
interface TransformResult {
|
|
241
|
+
code: string;
|
|
242
|
+
map: string | undefined;
|
|
243
|
+
}
|
|
244
|
+
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
|
245
|
+
|
|
246
|
+
interface SourceMap {
|
|
247
|
+
readonly raw: string;
|
|
248
|
+
readonly inline: string;
|
|
249
|
+
}
|
|
250
|
+
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
|
251
|
+
|
|
252
|
+
export { type CompileOptions, type DecodedSource, type DecodedSourceMap, Instrumentation, type OptimizeOptions, type Resolver, type SourceMap, type TransformResult, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize, toSourceMap };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Candidate, Variant } from './candidate';
|
|
2
2
|
import { compileAstNodes } from './compile';
|
|
3
|
-
import { ClassEntry, VariantEntry } from './intellisense';
|
|
3
|
+
import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
|
|
4
4
|
import { Theme } from './theme';
|
|
5
5
|
import { Utilities } from './utilities';
|
|
6
6
|
import { Variants } from './variants';
|
|
7
|
-
import
|
|
8
|
-
|
|
7
|
+
import * as tailwindcss from 'tailwindcss';
|
|
8
|
+
import { Polyfills, Features } from 'tailwindcss';
|
|
9
|
+
export { Features, Polyfills } from 'tailwindcss';
|
|
9
10
|
|
|
10
11
|
declare const DEBUG: boolean;
|
|
11
12
|
|
|
@@ -14,6 +15,10 @@ declare namespace env {
|
|
|
14
15
|
export { env_DEBUG as DEBUG };
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
declare const enum CompileAstFlags {
|
|
19
|
+
None = 0,
|
|
20
|
+
RespectImportant = 1
|
|
21
|
+
}
|
|
17
22
|
type DesignSystem = {
|
|
18
23
|
theme: Theme;
|
|
19
24
|
utilities: Utilities;
|
|
@@ -25,57 +30,152 @@ type DesignSystem = {
|
|
|
25
30
|
getVariants(): VariantEntry[];
|
|
26
31
|
parseCandidate(candidate: string): Readonly<Candidate>[];
|
|
27
32
|
parseVariant(variant: string): Readonly<Variant> | null;
|
|
28
|
-
compileAstNodes(candidate: Candidate): ReturnType<typeof compileAstNodes>;
|
|
33
|
+
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
|
34
|
+
printCandidate(candidate: Candidate): string;
|
|
35
|
+
printVariant(variant: Variant): string;
|
|
29
36
|
getVariantOrder(): Map<Variant, number>;
|
|
30
|
-
resolveThemeValue(path: string): string | undefined;
|
|
37
|
+
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
|
31
38
|
trackUsedVariables(raw: string): void;
|
|
39
|
+
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
|
32
40
|
candidatesToCss(classes: string[]): (string | null)[];
|
|
33
41
|
};
|
|
34
42
|
|
|
43
|
+
/**
|
|
44
|
+
* The source code for one or more nodes in the AST
|
|
45
|
+
*
|
|
46
|
+
* This generally corresponds to a stylesheet
|
|
47
|
+
*/
|
|
48
|
+
interface Source {
|
|
49
|
+
/**
|
|
50
|
+
* The path to the file that contains the referenced source code
|
|
51
|
+
*
|
|
52
|
+
* If this references the *output* source code, this is `null`.
|
|
53
|
+
*/
|
|
54
|
+
file: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* The referenced source code
|
|
57
|
+
*/
|
|
58
|
+
code: string;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The file and offsets within it that this node covers
|
|
62
|
+
*
|
|
63
|
+
* This can represent either:
|
|
64
|
+
* - A location in the original CSS which caused this node to be created
|
|
65
|
+
* - A location in the output CSS where this node resides
|
|
66
|
+
*/
|
|
67
|
+
type SourceLocation = [source: Source, start: number, end: number];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Line offset tables are the key to generating our source maps. They allow us
|
|
71
|
+
* to store indexes with our AST nodes and later convert them into positions as
|
|
72
|
+
* when given the source that the indexes refer to.
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* A position in source code
|
|
76
|
+
*
|
|
77
|
+
* https://tc39.es/ecma426/#sec-position-record-type
|
|
78
|
+
*/
|
|
79
|
+
interface Position {
|
|
80
|
+
/** The line number, one-based */
|
|
81
|
+
line: number;
|
|
82
|
+
/** The column/character number, one-based */
|
|
83
|
+
column: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
interface OriginalPosition extends Position {
|
|
87
|
+
source: DecodedSource;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A "decoded" sourcemap
|
|
91
|
+
*
|
|
92
|
+
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
|
93
|
+
*/
|
|
94
|
+
interface DecodedSourceMap {
|
|
95
|
+
file: string | null;
|
|
96
|
+
sources: DecodedSource[];
|
|
97
|
+
mappings: DecodedMapping[];
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* A "decoded" source
|
|
101
|
+
*
|
|
102
|
+
* @see https://tc39.es/ecma426/#decoded-source-record
|
|
103
|
+
*/
|
|
104
|
+
interface DecodedSource {
|
|
105
|
+
url: string | null;
|
|
106
|
+
content: string | null;
|
|
107
|
+
ignore: boolean;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* A "decoded" mapping
|
|
111
|
+
*
|
|
112
|
+
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
|
113
|
+
*/
|
|
114
|
+
interface DecodedMapping {
|
|
115
|
+
originalPosition: OriginalPosition | null;
|
|
116
|
+
generatedPosition: Position;
|
|
117
|
+
name: string | null;
|
|
118
|
+
}
|
|
119
|
+
|
|
35
120
|
type StyleRule = {
|
|
36
121
|
kind: 'rule';
|
|
37
122
|
selector: string;
|
|
38
123
|
nodes: AstNode[];
|
|
124
|
+
src?: SourceLocation;
|
|
125
|
+
dst?: SourceLocation;
|
|
39
126
|
};
|
|
40
127
|
type AtRule = {
|
|
41
128
|
kind: 'at-rule';
|
|
42
129
|
name: string;
|
|
43
130
|
params: string;
|
|
44
131
|
nodes: AstNode[];
|
|
132
|
+
src?: SourceLocation;
|
|
133
|
+
dst?: SourceLocation;
|
|
45
134
|
};
|
|
46
135
|
type Declaration = {
|
|
47
136
|
kind: 'declaration';
|
|
48
137
|
property: string;
|
|
49
138
|
value: string | undefined;
|
|
50
139
|
important: boolean;
|
|
140
|
+
src?: SourceLocation;
|
|
141
|
+
dst?: SourceLocation;
|
|
51
142
|
};
|
|
52
143
|
type Comment = {
|
|
53
144
|
kind: 'comment';
|
|
54
145
|
value: string;
|
|
146
|
+
src?: SourceLocation;
|
|
147
|
+
dst?: SourceLocation;
|
|
55
148
|
};
|
|
56
149
|
type Context = {
|
|
57
150
|
kind: 'context';
|
|
58
151
|
context: Record<string, string | boolean>;
|
|
59
152
|
nodes: AstNode[];
|
|
153
|
+
src?: undefined;
|
|
154
|
+
dst?: undefined;
|
|
60
155
|
};
|
|
61
156
|
type AtRoot = {
|
|
62
157
|
kind: 'at-root';
|
|
63
158
|
nodes: AstNode[];
|
|
159
|
+
src?: undefined;
|
|
160
|
+
dst?: undefined;
|
|
64
161
|
};
|
|
65
162
|
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
|
66
163
|
|
|
67
164
|
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
|
68
165
|
interface CompileOptions {
|
|
69
166
|
base: string;
|
|
167
|
+
from?: string;
|
|
70
168
|
onDependency: (path: string) => void;
|
|
71
169
|
shouldRewriteUrls?: boolean;
|
|
170
|
+
polyfills?: Polyfills;
|
|
72
171
|
customCssResolver?: Resolver;
|
|
73
172
|
customJsResolver?: Resolver;
|
|
74
173
|
}
|
|
75
174
|
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
76
|
-
|
|
175
|
+
sources: {
|
|
77
176
|
base: string;
|
|
78
177
|
pattern: string;
|
|
178
|
+
negated: boolean;
|
|
79
179
|
}[];
|
|
80
180
|
root: "none" | {
|
|
81
181
|
base: string;
|
|
@@ -85,9 +185,10 @@ declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
|
|
85
185
|
build(candidates: string[]): AstNode[];
|
|
86
186
|
}>;
|
|
87
187
|
declare function compile(css: string, options: CompileOptions): Promise<{
|
|
88
|
-
|
|
188
|
+
sources: {
|
|
89
189
|
base: string;
|
|
90
190
|
pattern: string;
|
|
191
|
+
negated: boolean;
|
|
91
192
|
}[];
|
|
92
193
|
root: "none" | {
|
|
93
194
|
base: string;
|
|
@@ -95,11 +196,13 @@ declare function compile(css: string, options: CompileOptions): Promise<{
|
|
|
95
196
|
} | null;
|
|
96
197
|
features: Features;
|
|
97
198
|
build(candidates: string[]): string;
|
|
199
|
+
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
|
98
200
|
}>;
|
|
99
201
|
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
|
100
202
|
base: string;
|
|
101
203
|
}): Promise<DesignSystem>;
|
|
102
204
|
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
|
205
|
+
path: string;
|
|
103
206
|
base: string;
|
|
104
207
|
module: any;
|
|
105
208
|
}>;
|
|
@@ -118,4 +221,32 @@ declare class Instrumentation implements Disposable {
|
|
|
118
221
|
|
|
119
222
|
declare function normalizePath(originalPath: string): string;
|
|
120
223
|
|
|
121
|
-
|
|
224
|
+
interface OptimizeOptions {
|
|
225
|
+
/**
|
|
226
|
+
* The file being transformed
|
|
227
|
+
*/
|
|
228
|
+
file?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Enabled minified output
|
|
231
|
+
*/
|
|
232
|
+
minify?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* The output source map before optimization
|
|
235
|
+
*
|
|
236
|
+
* If omitted a resulting source map will not be available
|
|
237
|
+
*/
|
|
238
|
+
map?: string;
|
|
239
|
+
}
|
|
240
|
+
interface TransformResult {
|
|
241
|
+
code: string;
|
|
242
|
+
map: string | undefined;
|
|
243
|
+
}
|
|
244
|
+
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
|
245
|
+
|
|
246
|
+
interface SourceMap {
|
|
247
|
+
readonly raw: string;
|
|
248
|
+
readonly inline: string;
|
|
249
|
+
}
|
|
250
|
+
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
|
251
|
+
|
|
252
|
+
export { type CompileOptions, type DecodedSource, type DecodedSourceMap, Instrumentation, type OptimizeOptions, type Resolver, type SourceMap, type TransformResult, __unstable__loadDesignSystem, compile, compileAst, env, loadModule, normalizePath, optimize, toSourceMap };
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var Vr=Object.create;var xe=Object.defineProperty;var Nr=Object.getOwnPropertyDescriptor;var Er=Object.getOwnPropertyNames;var Tr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var dt=(e,r)=>{for(var t in r)xe(e,t,{get:r[t],enumerable:!0})},mt=(e,r,t,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of Er(r))!Rr.call(e,o)&&o!==t&&xe(e,o,{get:()=>r[o],enumerable:!(i=Nr(r,o))||i.enumerable});return e};var P=(e,r,t)=>(t=e!=null?Vr(Tr(e)):{},mt(r||!e||!e.__esModule?xe(t,"default",{value:e,enumerable:!0}):t,e)),Pr=e=>mt(xe({},"__esModule",{value:!0}),e);var zn={};dt(zn,{Features:()=>L.Features,Instrumentation:()=>pt,Polyfills:()=>L.Polyfills,__unstable__loadDesignSystem:()=>Tn,compile:()=>En,compileAst:()=>Nn,env:()=>Ae,loadModule:()=>ft,normalizePath:()=>Ie,optimize:()=>Un,toSourceMap:()=>Kn});module.exports=Pr(zn);var Cr=P(require("module")),Sr=require("url");var Ae={};dt(Ae,{DEBUG:()=>Fe});var Fe=Or(process.env.DEBUG);function Or(e){if(typeof e=="boolean")return e;if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let r=e.split(",").map(t=>t.split(":")[0]);return r.includes("-tailwindcss")?!1:!!r.includes("tailwindcss")}var X=P(require("enhanced-resolve")),hr=require("jiti"),Le=P(require("fs")),ut=P(require("fs/promises")),le=P(require("path")),at=require("url"),L=require("tailwindcss");var Ce=P(require("fs/promises")),re=P(require("path")),_r=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Dr=[".js",".cjs",".mjs"],Ur=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ir=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Lr(e,r){for(let t of r){let i=`${e}${t}`;if((await Ce.default.stat(i).catch(()=>null))?.isFile())return i}for(let t of r){let i=`${e}/index${t}`;if(await Ce.default.access(i).then(()=>!0,()=>!1))return i}return null}async function gt(e,r,t,i){let o=Dr.includes(i)?Ur:Ir,a=await Lr(re.default.resolve(t,r),o);if(a===null||e.has(a))return;e.add(a),t=re.default.dirname(a),i=re.default.extname(a);let n=await Ce.default.readFile(a,"utf-8"),u=[];for(let l of _r)for(let s of n.matchAll(l))s[1].startsWith(".")&&u.push(gt(e,s[1],t,i));await Promise.all(u)}async function ht(e){let r=new Set;return await gt(r,e,re.default.dirname(e),re.default.extname(e)),Array.from(r)}var ot=P(require("path"));function T(e){return{kind:"word",value:e}}function Kr(e,r){return{kind:"function",value:e,nodes:r}}function zr(e){return{kind:"separator",value:e}}function S(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i],a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):e[i]=l)}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2;if(u!==1&&o.kind==="function"&&S(o.nodes,r,o)===2)return 2}}function je(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i];if(o.kind==="function"&&je(o.nodes,r,o)===2)return 2;let a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):e[i]=l)}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2}}function A(e){let r="";for(let t of e)switch(t.kind){case"word":case"separator":{r+=t.value;break}case"function":r+=t.value+"("+A(t.nodes)+")"}return r}var vt=92,Mr=41,wt=58,kt=44,Fr=34,yt=61,bt=62,xt=60,At=10,jr=40,Wr=39,Br=47,Ct=32,St=9;function b(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let t=[],r=[],s=[],i=null,l=null,n="",a="",o;for(let u=0;u<e.length;u++){let f=e.charCodeAt(u);if(f===R)n+=e.slice(u,u+2),u+=1;else if(f===k&&e.charCodeAt(u+1)===T){let c=u;for(let d=u+2;d<e.length;d++)if(o=e.charCodeAt(d),o===R)d+=1;else if(o===T&&e.charCodeAt(d+1)===k){u=d+1;break}let p=e.slice(c,u+1);p.charCodeAt(2)===We&&r.push(ae(p.slice(2,-2)))}else if(f===Ke||f===Fe){let c=u;for(let p=u+1;p<e.length;p++)if(o=e.charCodeAt(p),o===R)p+=1;else if(o===f){u=p;break}else{if(o===_&&e.charCodeAt(p+1)===x)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(f)}`);if(o===x)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(f)}`)}n+=e.slice(c,u+1)}else{if((f===E||f===x||f===D)&&(o=e.charCodeAt(u+1))&&(o===E||o===x||o===D))continue;if(f===x){if(n.length===0)continue;o=n.charCodeAt(n.length-1),o!==E&&o!==x&&o!==D&&(n+=" ")}else if(f===ie&&e.charCodeAt(u+1)===ie&&n.length===0){let c="",p=u,d=-1;for(let m=u+2;m<e.length;m++)if(o=e.charCodeAt(m),o===R)m+=1;else if(o===k&&e.charCodeAt(m+1)===T){for(let A=m+2;A<e.length;A++)if(o=e.charCodeAt(A),o===R)A+=1;else if(o===T&&e.charCodeAt(A+1)===k){m=A+1;break}}else if(d===-1&&o===je)d=n.length+m-p;else if(o===_&&c.length===0){n+=e.slice(p,m),u=m;break}else if(o===W)c+=")";else if(o===Le)c+="]";else if(o===re)c+="}";else if((o===j||e.length-1===m)&&c.length===0){u=m-1,n+=e.slice(p,m);break}else(o===se||o===Me||o===j)&&c.length>0&&e[m]===c[c.length-1]&&(c=c.slice(0,-1));let F=M(n,d);if(!F)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(F):t.push(F),n=""}else if(f===_&&n.charCodeAt(0)===L)l=C(n),i?i.nodes.push(l):t.push(l),n="",l=null;else if(f===_&&a[a.length-1]!==")"){let c=M(n);if(!c)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(c):t.push(c),n=""}else if(f===re&&a[a.length-1]!==")")a+="}",l=le(n.trim()),i&&i.nodes.push(l),s.push(i),i=l,n="",l=null;else if(f===j&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),n.length>0)if(n.charCodeAt(0)===L)l=C(n),i?i.nodes.push(l):t.push(l),n="",l=null;else{let p=n.indexOf(":");if(i){let d=M(n,p);if(!d)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(d)}}let c=s.pop()??null;c===null&&i&&t.push(i),i=c,n="",l=null}else if(f===W)a+=")",n+="(";else if(f===se){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(f===E||f===x||f===D))continue;n+=String.fromCharCode(f)}}}if(n.charCodeAt(0)===L&&t.push(C(n)),a.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return r.length>0?r.concat(t):t}function C(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===E||s===W){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return B(i,l,t)}}return B(e.trim(),"",t)}function M(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return oe(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var yt=process.env.FEATURES_ENV!=="stable";var S=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var Be=64;function Ve(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function B(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function le(e,t=[]){return e.charCodeAt(0)===Be?C(e,t):Ve(e,t)}function oe(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ae(e){return{kind:"comment",value:e}}function U(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let l=e[i],n=r[r.length-1]??null;if(l.kind==="context"){if(U(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,u=t(l,{parent:n,context:s,path:r,replaceWith(f){a=!0,Array.isArray(f)?f.length===0?(e.splice(i,1),o=0):f.length===1?(e[i]=f[0],o=1):(e.splice(i,1,...f),o=f.length):(e[i]=f,o=1)}})??0;if(r.pop(),a){u===0?i--:i+=o-1;continue}if(u===2)return 2;if(u!==1&&"nodes"in l){r.push(l);let f=U(l.nodes,t,r,s);if(r.pop(),f===2)return 2}}}function fe(e){function t(s,i=0){let l="",n=" ".repeat(i);if(s.kind==="declaration")l+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
|
|
4
|
-
|
|
5
|
-
`;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
|
|
6
|
-
`}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`)){this.defaultFlush=t}#r=new S(()=>({value:0}));#t=new S(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(i=>i.label).join("//"),s=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(s).value++,this.#t.get(s),this.#e.push({id:s,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let s=this.#e.pop(),i=r-s.value;this.#t.get(s.id).value+=i}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:a}]of this.#r.entries()){if(this.#t.has(n))continue;r.length===0&&(s=!0,r.push("Hits:"));let o=n.split("//").length;r.push(`${" ".repeat(o)}${n} ${P(Se(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
`);let r=[],t=[],i=null,o="",a;for(let n=0;n<e.length;n++){let u=e.charCodeAt(n);switch(u){case vt:{o+=e[n]+e[n+1],n++;break}case Br:{if(o.length>0){let s=T(o);i?i.nodes.push(s):r.push(s),o=""}let l=T(e[n]);i?i.nodes.push(l):r.push(l);break}case wt:case kt:case yt:case bt:case xt:case At:case Ct:case St:{if(o.length>0){let c=T(o);i?i.nodes.push(c):r.push(c),o=""}let l=n,s=n+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==wt&&a!==kt&&a!==yt&&a!==bt&&a!==xt&&a!==At&&a!==Ct&&a!==St));s++);n=s-1;let p=zr(e.slice(l,s));i?i.nodes.push(p):r.push(p);break}case Wr:case Fr:{let l=n;for(let s=n+1;s<e.length;s++)if(a=e.charCodeAt(s),a===vt)s+=1;else if(a===u){n=s;break}o+=e.slice(l,n+1);break}case jr:{let l=Kr(o,[]);o="",i?i.nodes.push(l):r.push(l),t.push(l),i=l;break}case Mr:{let l=t.pop();if(o.length>0){let s=T(o);l?.nodes.push(s),o=""}t.length>0?i=t[t.length-1]:i=null;break}default:o+=String.fromCharCode(u)}}return o.length>0&&r.push(T(o)),r}var Gr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function $t(e){return e.indexOf("(")!==-1&&Gr.some(r=>e.includes(`${r}(`))}var v=class extends Map{constructor(t){super();this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t,this),this.set(t,i)),i}};var Hn=new Uint8Array(256);var Se=new Uint8Array(256);function C(e,r){let t=0,i=[],o=0,a=e.length,n=r.charCodeAt(0);for(let u=0;u<a;u++){let l=e.charCodeAt(u);if(t===0&&l===n){i.push(e.slice(o,u)),o=u+1;continue}switch(l){case 92:u+=1;break;case 39:case 34:for(;++u<a;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===l)break}break;case 40:Se[t]=41,t++;break;case 91:Se[t]=93,t++;break;case 123:Se[t]=125,t++;break;case 93:case 125:case 41:t>0&&l===Se[t-1]&&t--;break}}return i.push(e.slice(o)),i}function Vt(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(ie),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(ie),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(ie),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function ie(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:ie(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function Be(e){if(e===null)return"";let r=Zr(e.value),t=r?e.value.slice(4,-1):e.value,[i,o]=r?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${Ge(t)}${o}`:e.kind==="named"?`/${e.value}`:""}var qr=new v(e=>{let r=b(e),t=new Set;return S(r,(i,{parent:o})=>{let a=o===null?r:o.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let n=a.indexOf(i)??-1;if(n===-1)return;let u=a[n-1];if(u?.kind!=="separator"||u.value!==" ")return;let l=a[n+1];if(l?.kind!=="separator"||l.value!==" ")return;t.add(u),t.add(l)}else i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(a[0]===i||a[a.length-1]===i)&&t.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),t.size>0&&S(r,(i,{replaceWith:o})=>{t.has(i)&&(t.delete(i),o([]))}),We(r),A(r)});function Ge(e){return qr.get(e)}var io=new v(e=>{let r=b(e);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?A(r[2].nodes):e});function We(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ae(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ae(r.value);for(let t=0;t<r.nodes.length;t++)We([r.nodes[t]]);break}r.value=ae(r.value),We(r.nodes);break}case"separator":r.value=ae(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=ae(r.value));break}default:Yr(r)}}var Hr=new v(e=>{let r=b(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Zr(e){return Hr.get(e)}function Yr(e){throw new Error(`Unexpected value: ${e}`)}function ae(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Jr=process.env.FEATURES_ENV!=="stable";var K=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,po=new RegExp(`^${K.source}$`);var mo=new RegExp(`^${K.source}%$`);var go=new RegExp(`^${K.source}s*/s*${K.source}$`);var Qr=["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"],Xr=new RegExp(`^${K.source}(${Qr.join("|")})$`);function Nt(e){return Xr.test(e)||$t(e)}var ei=["deg","rad","grad","turn"],ho=new RegExp(`^${K.source}(${ei.join("|")})$`);var vo=new RegExp(`^${K.source} +${K.source} +${K.source}$`);function $(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function ne(e){return ti(e,.25)}function ti(e,r){let t=Number(e);return t>=0&&t%r===0&&String(t)===String(e)}function se(e,r){if(r===null)return e;let t=Number(r);return Number.isNaN(t)||(r=`${t*100}%`),r==="100%"?e:`color-mix(in oklab, ${e} ${r}, transparent)`}var ii={"--alpha":ni,"--spacing":oi,"--theme":li,theme:ai};function ni(e,r,t,...i){let[o,a]=C(t,"/").map(n=>n.trim());if(!o||!a)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${o||"var(--my-color)"} / ${a||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${o||"var(--my-color)"} / ${a||"50%"})\``);return se(o,a)}function oi(e,r,t,...i){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let o=e.theme.resolve(null,["--spacing"]);if(!o)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${o} * ${t})`}function li(e,r,t,...i){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let o=!1;t.endsWith(" inline")&&(o=!0,t=t.slice(0,-7)),r.kind==="at-rule"&&(o=!0);let a=e.resolveThemeValue(t,o);if(!a){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return a;let n=i.join(", ");if(n==="initial")return a;if(a==="initial")return n;if(a.startsWith("var(")||a.startsWith("theme(")||a.startsWith("--theme(")){let u=b(a);return ui(u,n),A(u)}return a}function ai(e,r,t,...i){t=si(t);let o=e.resolveThemeValue(t);if(!o&&i.length>0)return i.join(", ");if(!o)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return o}var Uo=new RegExp(Object.keys(ii).map(e=>`${e}\\(`).join("|"));function si(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],a=e[i+1];o==="\\"&&(a===t||a==="\\")?(r+=a,i++):r+=o}return r}function ui(e,r){S(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${r}`});else{let i=t.nodes[t.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=r)}})}function qe(e,r){let t=e.length,i=r.length,o=t<i?t:i;for(let a=0;a<o;a++){let n=e.charCodeAt(a),u=r.charCodeAt(a);if(n>=48&&n<=57&&u>=48&&u<=57){let l=a,s=a+1,p=a,c=a+1;for(n=e.charCodeAt(s);n>=48&&n<=57;)n=e.charCodeAt(++s);for(u=r.charCodeAt(c);u>=48&&u<=57;)u=r.charCodeAt(++c);let f=e.slice(l,s),d=r.slice(p,c),m=Number(f)-Number(d);if(m)return m;if(f<d)return-1;if(f>d)return 1;continue}if(n!==u)return n-u}return e.length-r.length}function Pt(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let r=1,t=r,i=e.length-1;for(;oe(e.charCodeAt(r));)r++;{for(t=r;r<i;r++){let p=e.charCodeAt(r);if(p===92){r++;continue}if(!(p>=65&&p<=90)&&!(p>=97&&p<=122)&&!(p>=48&&p<=57)&&!(p===45||p===95))break}if(t===r)return null}let o=e.slice(t,r);for(;oe(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:null,quote:null,value:null,sensitivity:null};let a=null,n=e.charCodeAt(r);if(n===61)a="=",r++;else if((n===126||n===124||n===94||n===36||n===42)&&e.charCodeAt(r+1)===61)a=e[r]+"=",r+=2;else return null;for(;oe(e.charCodeAt(r));)r++;if(r===i)return null;let u="",l=null;if(n=e.charCodeAt(r),n===39||n===34){l=e[r],r++,t=r;for(let p=r;p<i;p++){let c=e.charCodeAt(p);c===n?r=p+1:c===92&&p++}u=e.slice(t,r-1)}else{for(t=r;r<i&&!oe(e.charCodeAt(r));)r++;u=e.slice(t,r)}for(;oe(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:a,quote:l,value:u,sensitivity:null};let s=null;switch(e.charCodeAt(r)){case 105:case 73:{s="i",r++;break}case 115:case 83:{s="s",r++;break}default:return null}for(;oe(e.charCodeAt(r));)r++;return r!==i?null:{attribute:o,operator:a,quote:l,value:u,sensitivity:s}}function oe(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var ci=/^[a-zA-Z0-9-_%/\.]+$/;function Ze(e){if(e[0]==="container")return null;e=e.slice(),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let r of e)if(!ci.test(r))return null;return e.map((r,t,i)=>r==="1"&&t!==i.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(t,i,o)=>`${i}-${o.toLowerCase()}`)).filter((r,t)=>r!=="DEFAULT"||t!==e.length-1).join("-")}function pi(e){return{kind:"combinator",value:e}}function di(e,r){return{kind:"function",value:e,nodes:r}}function G(e){return{kind:"selector",value:e}}function mi(e){return{kind:"separator",value:e}}function gi(e){return{kind:"value",value:e}}function Ve(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i],a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):(e[i]=l,n=1))}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2;if(u!==1&&o.kind==="function"&&Ve(o.nodes,r,o)===2)return 2}}function q(e){let r="";for(let t of e)switch(t.kind){case"combinator":case"selector":case"separator":case"value":{r+=t.value;break}case"function":r+=t.value+"("+q(t.nodes)+")"}return r}var _t=92,hi=93,Dt=41,vi=58,Ut=44,wi=34,ki=46,It=62,Lt=10,yi=35,Kt=91,zt=40,Mt=43,bi=39,Ft=32,jt=9,Wt=126,xi=38,Ai=42;function fe(e){e=e.replaceAll(`\r
|
|
4
|
+
`,`
|
|
5
|
+
`);let r=[],t=[],i=null,o="",a;for(let n=0;n<e.length;n++){let u=e.charCodeAt(n);switch(u){case Ut:case It:case Lt:case Ft:case Mt:case jt:case Wt:{if(o.length>0){let f=G(o);i?i.nodes.push(f):r.push(f),o=""}let l=n,s=n+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==Ut&&a!==It&&a!==Lt&&a!==Ft&&a!==Mt&&a!==jt&&a!==Wt));s++);n=s-1;let p=e.slice(l,s),c=p.trim()===","?mi(p):pi(p);i?i.nodes.push(c):r.push(c);break}case zt:{let l=di(o,[]);if(o="",l.value!==":not"&&l.value!==":where"&&l.value!==":has"&&l.value!==":is"){let s=n+1,p=0;for(let f=n+1;f<e.length;f++){if(a=e.charCodeAt(f),a===zt){p++;continue}if(a===Dt){if(p===0){n=f;break}p--}}let c=n;l.nodes.push(gi(e.slice(s,c))),o="",n=c,i?i.nodes.push(l):r.push(l);break}i?i.nodes.push(l):r.push(l),t.push(l),i=l;break}case Dt:{let l=t.pop();if(o.length>0){let s=G(o);l.nodes.push(s),o=""}t.length>0?i=t[t.length-1]:i=null;break}case ki:case vi:case yi:{if(o.length>0){let l=G(o);i?i.nodes.push(l):r.push(l)}o=e[n];break}case Kt:{if(o.length>0){let p=G(o);i?i.nodes.push(p):r.push(p)}o="";let l=n,s=0;for(let p=n+1;p<e.length;p++){if(a=e.charCodeAt(p),a===Kt){s++;continue}if(a===hi){if(s===0){n=p;break}s--}}o+=e.slice(l,n+1);break}case bi:case wi:{let l=n;for(let s=n+1;s<e.length;s++)if(a=e.charCodeAt(s),a===_t)s+=1;else if(a===u){n=s;break}o+=e.slice(l,n+1);break}case xi:case Ai:{if(o.length>0){let l=G(o);i?i.nodes.push(l):r.push(l),o=""}i?i.nodes.push(G(e[n])):r.push(G(e[n]));break}case _t:{o+=e[n]+e[n+1],n+=1;break}default:o+=e[n]}}return o.length>0&&r.push(G(o)),r}var Ci=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,J=new v(e=>{let r=Ci.exec(e);if(!r)return null;let t=r.groups?.value;if(t===void 0)return null;let i=Number(t);if(Number.isNaN(i))return null;let o=r.groups?.unit;return o===void 0?[i,null]:[i,o]});function Bt(e,r=null){let t=!1,i=b(e);return je(i,(o,{replaceWith:a})=>{if(o.kind==="word"&&o.value!=="0"){let n=Si(o.value,r);if(n===null||n===o.value)return;t=!0,a(T(n));return}else if(o.kind==="function"&&(o.value==="calc"||o.value==="")){if(o.nodes.length!==5)return;let n=J.get(o.nodes[0].value),u=o.nodes[2].value,l=J.get(o.nodes[4].value);if(u==="*"&&(n?.[0]===0&&n?.[1]===null||l?.[0]===0&&l?.[1]===null)){t=!0,a(T("0"));return}if(n===null||l===null)return;switch(u){case"*":{(n[1]===l[1]||n[1]===null&&l[1]!==null||n[1]!==null&&l[1]===null)&&(t=!0,a(T(`${n[0]*l[0]}${n[1]??""}`)));break}case"+":{n[1]===l[1]&&(t=!0,a(T(`${n[0]+l[0]}${n[1]??""}`)));break}case"-":{n[1]===l[1]&&(t=!0,a(T(`${n[0]-l[0]}${n[1]??""}`)));break}case"/":{l[0]!==0&&(n[1]===null&&l[1]===null||n[1]!==null&&l[1]===null)&&(t=!0,a(T(`${n[0]/l[0]}${n[1]??""}`)));break}}}}),t?A(i):e}function Si(e,r=null){let t=J.get(e);if(t===null)return null;let[i,o]=t;if(o===null)return`${i}`;if(i===0&&Nt(e))return"0";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 r!==null?`${i*r}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}`}}var Gt=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,H=new v(e=>{let{rem:r,designSystem:t}=e;return new v(i=>{try{i=t.theme.prefix&&!i.startsWith(t.theme.prefix)?`${t.theme.prefix}:${i}`:i;let o=[z(".x",[E("@apply",i)])];return $i(t,()=>{for(let n of t.parseCandidate(i))t.compileAstNodes(n,1);ce(o,t)}),y(o,(n,{replaceWith:u})=>{n.kind==="declaration"?n.value===void 0||n.property==="--tw-sort"?u([]):n.value.includes("%")&&(Gt.lastIndex=0,n.value=n.value.replaceAll(Gt,l=>`${Number(l.slice(0,-1))}%`)):n.kind==="context"||n.kind==="at-root"?u(n.nodes):n.kind==="comment"?u([]):n.kind==="at-rule"&&n.name==="@property"&&u([])}),y(o,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let u=!1,l=b(n.value),s=new Set;S(l,(p,{replaceWith:c})=>{if(p.kind!=="function"||p.value!=="var"||p.nodes.length!==1&&p.nodes.length<3)return;let f=p.nodes[0].value;t.theme.prefix&&f.startsWith(`--${t.theme.prefix}-`)&&(f=f.slice(`--${t.theme.prefix}-`.length));let d=t.resolveThemeValue(f);if(!s.has(f)&&(s.add(f),d!==void 0&&(p.nodes.length===1&&(u=!0,p.nodes.push(...b(`,${d}`))),p.nodes.length>=3))){let m=A(p.nodes),g=`${p.nodes[0].value},${d}`;m===g&&(u=!0,c(b(d)))}}),u&&(n.value=A(l))}n.value=Bt(n.value,r),n.value=Ge(n.value)}}),O(o)}catch{return Symbol()}})}),Je=new v(e=>{let{designSystem:r}=e,t=H.get(e),i=new v(()=>[]);for(let[o,a]of r.getClassList()){let n=t.get(o);if(typeof n=="string"){if(o[0]==="-"&&o.endsWith("-0")){let u=t.get(o.slice(1));if(typeof u=="string"&&n===u)continue}i.get(n).push(o);for(let u of a.modifiers){if(ne(u))continue;let l=`${o}/${u}`,s=t.get(l);typeof s=="string"&&i.get(s).push(l)}}}return i}),Ne=new v(e=>{let{designSystem:r}=e;return new v(t=>{try{t=r.theme.prefix&&!t.startsWith(r.theme.prefix)?`${r.theme.prefix}:${t}`:t;let i=[z(".x",[E("@apply",`${t}:flex`)])];return ce(i,r),y(i,a=>{if(a.kind==="at-rule"&&a.params.includes(" "))a.params=a.params.replaceAll(" ","");else if(a.kind==="rule"){let n=fe(a.selector),u=!1;Ve(n,(l,{replaceWith:s})=>{l.kind==="separator"&&l.value!==" "?(l.value=l.value.trim(),u=!0):l.kind==="function"&&l.value===":is"?l.nodes.length===1?(u=!0,s(l.nodes)):l.nodes.length===2&&l.nodes[0].kind==="selector"&&l.nodes[0].value==="*"&&l.nodes[1].kind==="selector"&&l.nodes[1].value[0]===":"&&(u=!0,s(l.nodes[1])):l.kind==="function"&&l.value[0]===":"&&l.nodes[0]?.kind==="selector"&&l.nodes[0]?.value[0]===":"&&(u=!0,l.nodes.unshift({kind:"selector",value:"*"}))}),u&&(a.selector=q(n))}}),O(i)}catch{return Symbol()}})}),qt=new v(e=>{let{designSystem:r}=e,t=Ne.get(e),i=new v(()=>[]);for(let[o,a]of r.variants.entries())if(a.kind==="static"){let n=t.get(o);if(typeof n!="string")continue;i.get(n).push(o)}return i});function $i(e,r){let t=e.theme.values.get,i=new Set;e.theme.values.get=o=>{let a=t.call(e.theme.values,o);return a===void 0||a.options&1&&(i.add(a),a.options&=-2),a};try{return r()}finally{e.theme.values.get=t;for(let o of i)o.options|=1}}function j(e,r){for(let t in e)delete e[t];return Object.assign(e,r)}function pe(e){let r=[];for(let t of C(e,".")){if(!t.includes("[")){r.push(t);continue}let i=0;for(;;){let o=t.indexOf("[",i),a=t.indexOf("]",o);if(o===-1||a===-1)break;o>i&&r.push(t.slice(i,o)),r.push(t.slice(o+1,a)),i=a+1}i<=t.length-1&&r.push(t.slice(i))}return r}var vl=new v(e=>new v((r=null)=>({designSystem:e,rem:r})));var wl=new v(e=>{let r=e.designSystem,t=r.theme.prefix?`${r.theme.prefix}:`:"",i=Ei.get(e),o=Ri.get(e);return new v((a,n)=>{for(let u of r.parseCandidate(a)){let l=u.variants.slice().reverse().flatMap(c=>i.get(c)),s=u.important;if(s||l.length>0){let f=n.get(r.printCandidate({...u,variants:[],important:!1}));return r.theme.prefix!==null&&l.length>0&&(f=f.slice(t.length)),l.length>0&&(f=`${l.map(d=>r.printVariant(d)).join(":")}:${f}`),s&&(f+="!"),r.theme.prefix!==null&&l.length>0&&(f=`${t}${f}`),f}let p=o.get(a);if(p!==a)return p}return a})}),Ni=[Di,qi,Hi,Wi],Ei=new v(e=>new v(r=>{let t=[r];for(let i of Ni)for(let o of t.splice(0)){let a=i(ie(o),e);if(Array.isArray(a)){t.push(...a);continue}else t.push(a)}return t})),Ti=[Oi,_i,Ki,Mi,ji,Bi,Gi,Zi],Ri=new v(e=>{let r=e.designSystem;return new v(t=>{for(let i of r.parseCandidate(t)){let o=Vt(i);for(let n of Ti)o=n(o,e);let a=r.printCandidate(o);if(t!==a)return a}return t})}),Pi=["t","tr","r","br","b","bl","l","tl"];function Oi(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let r=e.root.slice(15);return Pi.includes(r)&&(e.root=`bg-linear-to-${r}`),e}return e}function _i(e,r){let t=Zt.get(r.designSystem);if(e.kind==="arbitrary"){let[i,o]=t(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,o!==null&&(e.modifier=o))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,o]=t(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,o!==null&&(e.modifier=o))}return e}function Di(e,r){let t=Zt.get(r.designSystem),i=Re(e);for(let[o]of i)if(o.kind==="arbitrary"){let[a]=t(o.selector,2);a!==o.selector&&(o.selector=a)}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a]=t(o.value.value,2);a!==o.value.value&&(o.value.value=a)}return e}var Zt=new v(e=>{return r(e);function r(t){function i(u,l=0){let s=b(u);if(l&2)return[Ee(s,n),null];let p=0,c=0;if(S(s,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,S(m.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="word"&&g.value==="/"?(c+=1,2):1))}),p===0)return[u,null];if(c===0)return[Ee(s,a),null];if(c>1)return[Ee(s,n),null];let f=null;return[Ee(s,(m,g)=>{let h=C(m,"/").map(k=>k.trim());if(h.length>2)return null;if(s.length===1&&h.length===2&&l&1){let[k,w]=h;if(/^\d+%$/.test(w))f={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let N=Number(w)*100;f={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else f={kind:"arbitrary",value:w};m=k}return a(m,g)||n(m,g)}),f]}function o(u,l=!0){let s=`--${Ze(pe(u))}`;return t.theme.get([s])?l&&t.theme.prefix?`--${t.theme.prefix}-${s.slice(2)}`:s:null}function a(u,l){let s=o(u);if(s)return l?`var(${s}, ${l})`:`var(${s})`;let p=pe(u);if(p[0]==="spacing"&&t.theme.get(["--spacing"])){let c=p[1];return ne(c)?`--spacing(${c})`:null}return null}function n(u,l){let s=C(u,"/").map(f=>f.trim());u=s.shift();let p=o(u,!1);if(!p)return null;let c=s.length>0?`/${s.join("/")}`:"";return l?`--theme(${p}${c}, ${l})`:`--theme(${p}${c})`}return i}});function Ee(e,r){return S(e,(t,{parent:i,replaceWith:o})=>{if(t.kind==="function"&&t.value==="theme"){if(t.nodes.length<1)return;t.nodes[0].kind==="separator"&&t.nodes[0].value.trim()===""&&t.nodes.shift();let a=t.nodes[0];if(a.kind!=="word")return;let n=a.value,u=1;for(let p=u;p<t.nodes.length&&!t.nodes[p].value.includes(",");p++)n+=A([t.nodes[p]]),u=p+1;n=Ui(n);let l=t.nodes.slice(u+1),s=l.length>0?r(n,A(l)):r(n);if(s===null)return;if(i){let p=i.nodes.indexOf(t)-1;for(;p!==-1;){let c=i.nodes[p];if(c.kind==="separator"&&c.value.trim()===""){p-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(s=`(${s})`);break}}o(b(s))}}),A(e)}function Ui(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],a=e[i+1];o==="\\"&&(a===t||a==="\\")?(r+=a,i++):r+=o}return r}function*Re(e){function*r(t,i=null){yield[t,i],t.kind==="compound"&&(yield*r(t.variant,t))}yield*r(e,null)}function W(e,r){return e.parseCandidate(e.theme.prefix&&!r.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${r}`:r)}function Ii(e,r){let t=e.printCandidate(r);return e.theme.prefix&&t.startsWith(`${e.theme.prefix}:`)?t.slice(e.theme.prefix.length+1):t}var Li=new v(e=>{let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;let t=J.get(r);if(!t)return null;let[i,o]=t;return new v(a=>{let n=J.get(a);if(!n)return null;let[u,l]=n;return l!==o?null:u/i})});function Ki(e,r){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let t=r.designSystem,i=Je.get(r),o=H.get(r),a=t.printCandidate(e),n=o.get(a);if(typeof n!="string")return e;for(let l of u(n,e)){let s=t.printCandidate(l);if(o.get(s)===n&&zi(t,e,l))return l}return e;function*u(l,s){let p=i.get(l);if(!(p.length>1)){if(p.length===0&&s.modifier){let c={...s,modifier:null},f=o.get(t.printCandidate(c));if(typeof f=="string")for(let d of u(f,c))yield Object.assign({},d,{modifier:s.modifier})}if(p.length===1)for(let c of W(t,p[0]))yield c;else if(p.length===0){let c=s.kind==="arbitrary"?s.value:s.value?.value??null;if(c===null)return;let f=Li.get(t)?.get(c)??null,d="";f!==null&&f<0&&(d="-",f=Math.abs(f));for(let m of Array.from(t.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){d&&(m=`${d}${m}`);for(let g of W(t,`${m}-${c}`))yield g;if(s.modifier)for(let g of W(t,`${m}-${c}${s.modifier}`))yield g;if(f!==null){for(let g of W(t,`${m}-${f}`))yield g;if(s.modifier)for(let g of W(t,`${m}-${f}${Be(s.modifier)}`))yield g}for(let g of W(t,`${m}-[${c}]`))yield g;if(s.modifier)for(let g of W(t,`${m}-[${c}]${Be(s.modifier)}`))yield g}}}}}function zi(e,r,t){let i=null;if(r.kind==="functional"&&r.value?.kind==="arbitrary"&&r.value.value.includes("var(--")?i=r.value.value:r.kind==="arbitrary"&&r.value.includes("var(--")&&(i=r.value),i===null)return!0;let o=e.candidatesToCss([e.printCandidate(t)]).join(`
|
|
6
|
+
`),a=!0;return S(b(i),n=>{if(n.kind==="function"&&n.value==="var"){let u=n.nodes[0].value;if(!new RegExp(`var\\(${u}[,)]\\s*`,"g").test(o)||o.includes(`${u}:`))return a=!1,2}}),a}function Mi(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let t=r.designSystem,i=Je.get(r),o=H.get(r),a=t.printCandidate(e),n=o.get(a);if(typeof n!="string")return e;for(let l of u(n,e)){let s=t.printCandidate(l);if(o.get(s)===n)return l}return e;function*u(l,s){let p=i.get(l);if(!(p.length>1)){if(p.length===0&&s.modifier){let c={...s,modifier:null},f=o.get(t.printCandidate(c));if(typeof f=="string")for(let d of u(f,c))yield Object.assign({},d,{modifier:s.modifier})}if(p.length===1)for(let c of W(t,p[0]))yield c}}}var Fi=new Map([["order-none","order-0"]]);function ji(e,r){let t=r.designSystem,i=H.get(r),o=Ii(t,e),a=Fi.get(o)??null;if(a===null)return e;let n=i.get(o);if(typeof n!="string")return e;let u=i.get(a);if(typeof u!="string"||n!==u)return e;let[l]=W(t,a);return l}function Wi(e,r){let t=r.designSystem,i=Ne.get(r),o=qt.get(r),a=Re(e);for(let[n]of a){if(n.kind==="compound")continue;let u=t.printVariant(n),l=i.get(u);if(typeof l!="string")continue;let s=o.get(l);if(s.length!==1)continue;let p=s[0],c=t.parseVariant(p);c!==null&&j(n,c)}return e}function Bi(e,r){let t=r.designSystem,i=H.get(r);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let o=t.printCandidate({...e,value:{...e.value,dataType:null}});i.get(t.printCandidate(e))===i.get(o)&&(e.value.dataType=null)}return e}function Gi(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=r.designSystem,i=H.get(r),o=i.get(t.printCandidate(e));if(o===null)return e;for(let a of Yt(e))if(i.get(t.printCandidate({...e,value:a}))===o)return e.value=a,e;return e}function qi(e){let r=Re(e);for(let[t]of r)if(t.kind==="functional"&&t.root==="data"&&t.value?.kind==="arbitrary"&&!t.value.value.includes("="))t.value={kind:"named",value:t.value.value};else if(t.kind==="functional"&&t.root==="aria"&&t.value?.kind==="arbitrary"&&(t.value.value.endsWith("=true")||t.value.value.endsWith('="true"')||t.value.value.endsWith("='true'"))){let[i,o]=C(t.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;t.value={kind:"named",value:t.value.value.slice(0,t.value.value.indexOf("="))}}else t.kind==="functional"&&t.root==="supports"&&t.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(t.value.value)&&(t.value={kind:"named",value:t.value.value});return e}function*Yt(e,r=e.value?.value??"",t=new Set){if(t.has(r))return;if(t.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&ne(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[a,n]=r.split("/");$(a)&&$(n)&&(yield{kind:"named",value:a,fraction:`${a}/${n}`})}let i=new Set;for(let a of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(a[0].trim());let o=Array.from(i).sort((a,n)=>a.length-n.length);for(let a of o)yield*Yt(e,a,t)}function Ht(e){return!e.some(r=>r.kind==="separator"&&r.value.trim()===",")}function Te(e){let r=e.value.trim();return e.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function Hi(e,r){let t=[e],i=r.designSystem,o=Ne.get(r),a=Re(e);for(let[n,u]of a)if(n.kind==="compound"&&(n.root==="has"||n.root==="not"||n.root==="in")&&n.modifier!==null&&"modifier"in n.variant&&(n.variant.modifier=n.modifier,n.modifier=null),n.kind==="arbitrary"){if(n.relative)continue;let l=fe(n.selector.trim());if(!Ht(l))continue;if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&l[2].value==="*"){j(n,i.parseVariant("*"));continue}if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="*"){j(n,i.parseVariant("**"));continue}if(u===null&&l.length===3&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="&"){l.pop(),l.pop(),j(n,i.parseVariant(`in-[${q(l)}]`));continue}if(u===null&&l[0].kind==="selector"&&(l[0].value==="@media"||l[0].value==="@supports")){let f=o.get(i.printVariant(n)),d=b(q(l)),m=!1;if(S(d,(g,{replaceWith:h})=>{g.kind==="word"&&g.value==="not"&&(m=!0,h([]))}),d=b(A(d)),S(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${A(d)}]`);if(g===null)continue;let h=o.get(i.printVariant(g));if(f===h){j(n,g);continue}}}let s=null;u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&Te(l[2])&&(l=[l[2]],s=i.parseVariant("*")),u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&Te(l[2])&&(l=[l[2]],s=i.parseVariant("**"));let p=l.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(p.length!==1)continue;let c=p[0];if(c.kind==="function"&&c.value===":is"){if(!Ht(c.nodes)||c.nodes.length!==1||!Te(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let f=c,d=!1;if(f.kind==="function"&&f.value===":not"){if(d=!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 m=(h=>{if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return d?(d=!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 d?(d=!1,"odd"):"even";for(let[k,w]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===k&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&$(f.nodes[0].value)?`${w}-${f.nodes[0].value}`:`${w}-[${q(f.nodes)}]`;if(d){let k=o.get(i.printVariant(n)),w=o.get(`not-[${h}]`);if(k===w)return`[&${h}]`}return null})(f.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;j(n,g)}else if(Te(c)){let f=Pt(c.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let d=f.attribute.slice(5);j(n,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let d=f.attribute.slice(5);j(n,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:d}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}}if(s)return[s,n]}return t}function Zi(e,r){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let t=r.designSystem,i=H.get(r),o=i.get(t.printCandidate(e)),a=e.modifier;if(o===i.get(t.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let n={kind:"named",value:a.value.endsWith("%")?a.value.includes(".")?`${Number(a.value.slice(0,-1))}`:a.value.slice(0,-1):a.value,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}{let n={kind:"named",value:`${parseFloat(a.value)*100}`,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}return e}function de(e,r,{onInvalidCandidate:t,respectImportant:i}={}){let o=new Map,a=[],n=new Map;for(let s of e){if(r.invalidCandidates.has(s)){t?.(s);continue}let p=r.parseCandidate(s);if(p.length===0){t?.(s);continue}n.set(s,p)}let u=0;(i??!0)&&(u|=1);let l=r.getVariantOrder();for(let[s,p]of n){let c=!1;for(let f of p){let d=r.compileAstNodes(f,u);if(d.length!==0){c=!0;for(let{node:m,propertySort:g}of d){let h=0n;for(let k of f.variants)h|=1n<<BigInt(l.get(k));o.set(m,{properties:g,variants:h,candidate:s}),a.push(m)}}}c||t?.(s)}return a.sort((s,p)=>{let c=o.get(s),f=o.get(p);if(c.variants-f.variants!==0n)return Number(c.variants-f.variants);let d=0;for(;d<c.properties.order.length&&d<f.properties.order.length&&c.properties.order[d]===f.properties.order[d];)d+=1;return(c.properties.order[d]??1/0)-(f.properties.order[d]??1/0)||f.properties.count-c.properties.count||qe(c.candidate,f.candidate)}),{astNodes:a,nodeSorting:o}}function ce(e,r){let t=0,i=M("&",e),o=new Set,a=new v(()=>new Set),n=new v(()=>new Set);y([i],(c,{parent:f,path:d})=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return y(c.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(c.name==="@utility"){let m=c.params.replace(/-\*$/,"");n.get(m).add(c),y(c.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){o.add(c);for(let h of Qt(g,r))a.get(c).add(h)}});return}if(c.name==="@apply"){if(f===null)return;t|=1,o.add(f);for(let m of Qt(c,r))for(let g of d)g!==c&&o.has(g)&&a.get(g).add(m)}}});let u=new Set,l=[],s=new Set;function p(c,f=[]){if(!u.has(c)){if(s.has(c)){let d=f[(f.indexOf(c)+1)%f.length];throw c.kind==="at-rule"&&c.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&y(c.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let h of g)for(let k of r.parseCandidate(h))switch(k.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===k.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
7
|
+
|
|
8
|
+
${O([c])}
|
|
9
|
+
Relies on:
|
|
10
|
+
|
|
11
|
+
${O([d])}`)}s.add(c);for(let d of a.get(c))for(let m of n.get(d))f.push(c),p(m,f),f.pop();u.add(c),s.delete(c),l.push(c)}}for(let c of o)p(c);for(let c of l)"nodes"in c&&y(c.nodes,(f,{replaceWith:d})=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),g={},h=0;for(let[k,w]of m.entries())k%2===0&&(g[w]=h),h+=w.length;{let k=Object.keys(g),w=de(k,r,{respectImportant:!1,onInvalidCandidate:x=>{if(r.theme.prefix&&!x.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${x}\`. Did you mean \`${r.theme.prefix}:${x}\`?`);if(r.invalidCandidates.has(x))throw new Error(`Cannot apply utility class \`${x}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let R=C(x,":");if(R.length>1){let be=R.pop();if(r.candidatesToCss([be])[0]){let ee=r.candidatesToCss(R.map(te=>`${te}:[--tw-variant-check:1]`)),B=R.filter((te,Me)=>ee[Me]===null);if(B.length>0){if(B.length===1)throw new Error(`Cannot apply utility class \`${x}\` because the ${B.map(te=>`\`${te}\``)} variant does not exist.`);{let te=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${x}\` because the ${te.format(B.map(Me=>`\`${Me}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${x}\`. 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 \`${x}\``)}}),N=f.src,$r=w.astNodes.map(x=>{let R=w.nodeSorting.get(x)?.candidate,be=R?g[R]:void 0;if(x=I(x),!N||!R||be===void 0)return y([x],B=>{B.src=N}),x;let ee=[N[0],N[1],N[2]];return ee[1]+=7+be,ee[2]=ee[1]+R.length,y([x],B=>{B.src=ee}),x}),ze=[];for(let x of $r)if(x.kind==="rule")for(let R of x.nodes)ze.push(R);else ze.push(x);d(ze)}});return t}function*Qt(e,r){for(let t of e.params.split(/\s+/g))for(let i of r.parseCandidate(t))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var ge=92,Pe=47,Oe=42,Xt=34,er=39,tn=58,_e=59,_=10,De=13,he=32,ve=9,tr=123,Qe=125,tt=40,rr=41,rn=91,nn=93,ir=45,Xe=64,on=33;function ke(e,r){let t=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],o=[],a=[],n=null,u=null,l="",s="",p=0,c;for(let f=0;f<e.length;f++){let d=e.charCodeAt(f);if(!(d===De&&(c=e.charCodeAt(f+1),c===_)))if(d===ge)l===""&&(p=f),l+=e.slice(f,f+2),f+=1;else if(d===Pe&&e.charCodeAt(f+1)===Oe){let m=f;for(let h=f+2;h<e.length;h++)if(c=e.charCodeAt(h),c===ge)h+=1;else if(c===Oe&&e.charCodeAt(h+1)===Pe){f=h+1;break}let g=e.slice(m,f+1);if(g.charCodeAt(2)===on){let h=it(g.slice(2,-2));o.push(h),t&&(h.src=[t,m,f+1],h.dst=[t,m,f+1])}}else if(d===er||d===Xt){let m=nr(e,f,d);l+=e.slice(f,m+1),f=m}else{if((d===he||d===_||d===ve)&&(c=e.charCodeAt(f+1))&&(c===he||c===_||c===ve||c===De&&(c=e.charCodeAt(f+2))&&c==_))continue;if(d===_){if(l.length===0)continue;c=l.charCodeAt(l.length-1),c!==he&&c!==_&&c!==ve&&(l+=" ")}else if(d===ir&&e.charCodeAt(f+1)===ir&&l.length===0){let m="",g=f,h=-1;for(let w=f+2;w<e.length;w++)if(c=e.charCodeAt(w),c===ge)w+=1;else if(c===er||c===Xt)w=nr(e,w,c);else if(c===Pe&&e.charCodeAt(w+1)===Oe){for(let N=w+2;N<e.length;N++)if(c=e.charCodeAt(N),c===ge)N+=1;else if(c===Oe&&e.charCodeAt(N+1)===Pe){w=N+1;break}}else if(h===-1&&c===tn)h=l.length+w-g;else if(c===_e&&m.length===0){l+=e.slice(g,w),f=w;break}else if(c===tt)m+=")";else if(c===rn)m+="]";else if(c===tr)m+="}";else if((c===Qe||e.length-1===w)&&m.length===0){f=w-1,l+=e.slice(g,w);break}else(c===rr||c===nn||c===Qe)&&m.length>0&&e[w]===m[m.length-1]&&(m=m.slice(0,-1));let k=et(l,h);if(!k)throw new Error("Invalid custom property, expected a value");t&&(k.src=[t,g,f],k.dst=[t,g,f]),n?n.nodes.push(k):i.push(k),l=""}else if(d===_e&&l.charCodeAt(0)===Xe)u=we(l),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n?n.nodes.push(u):i.push(u),l="",u=null;else if(d===_e&&s[s.length-1]!==")"){let m=et(l);if(!m){if(l.length===0)continue;throw new Error(`Invalid declaration: \`${l.trim()}\``)}t&&(m.src=[t,p,f],m.dst=[t,p,f]),n?n.nodes.push(m):i.push(m),l=""}else if(d===tr&&s[s.length-1]!==")")s+="}",u=M(l.trim()),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n&&n.nodes.push(u),a.push(n),n=u,l="",u=null;else if(d===Qe&&s[s.length-1]!==")"){if(s==="")throw new Error("Missing opening {");if(s=s.slice(0,-1),l.length>0)if(l.charCodeAt(0)===Xe)u=we(l),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n?n.nodes.push(u):i.push(u),l="",u=null;else{let g=l.indexOf(":");if(n){let h=et(l,g);if(!h)throw new Error(`Invalid declaration: \`${l.trim()}\``);t&&(h.src=[t,p,f],h.dst=[t,p,f]),n.nodes.push(h)}}let m=a.pop()??null;m===null&&n&&i.push(n),n=m,l="",u=null}else if(d===tt)s+=")",l+="(";else if(d===rr){if(s[s.length-1]!==")")throw new Error("Missing opening (");s=s.slice(0,-1),l+=")"}else{if(l.length===0&&(d===he||d===_||d===ve))continue;l===""&&(p=f),l+=String.fromCharCode(d)}}}if(l.charCodeAt(0)===Xe){let f=we(l);t&&(f.src=[t,p,e.length],f.dst=[t,p,e.length]),i.push(f)}if(s.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return o.length>0?o.concat(i):i}function we(e,r=[]){let t=e,i="";for(let o=5;o<e.length;o++){let a=e.charCodeAt(o);if(a===he||a===ve||a===tt){t=e.slice(0,o),i=e.slice(o);break}}return E(t.trim(),i.trim(),r)}function et(e,r=e.indexOf(":")){if(r===-1)return null;let t=e.indexOf("!important",r+1);return F(e.slice(0,r).trim(),e.slice(r+1,t===-1?e.length:t).trim(),t!==-1)}function nr(e,r,t){let i;for(let o=r+1;o<e.length;o++)if(i=e.charCodeAt(o),i===ge)o+=1;else{if(i===t)return o;if(i===_e&&(e.charCodeAt(o+1)===_||e.charCodeAt(o+1)===De&&e.charCodeAt(o+2)===_))throw new Error(`Unterminated string: ${e.slice(r,o+1)+String.fromCharCode(t)}`);if(i===_||i===De&&e.charCodeAt(o+1)===_)throw new Error(`Unterminated string: ${e.slice(r,o)+String.fromCharCode(t)}`)}return r}var nt={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Q(e){return{__BARE_VALUE__:e}}var D=Q(e=>{if($(e.value))return e.value}),V=Q(e=>{if($(e.value))return`${e.value}%`}),Z=Q(e=>{if($(e.value))return`${e.value}px`}),lr=Q(e=>{if($(e.value))return`${e.value}ms`}),Ue=Q(e=>{if($(e.value))return`${e.value}deg`}),fn=Q(e=>{if(e.fraction===null)return;let[r,t]=C(e.fraction,"/");if(!(!$(r)||!$(t)))return e.fraction}),ar=Q(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),cn={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",...fn},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Ue}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...Z},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...nt}),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",...D},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...Z}),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",...D},flexShrink:{0:"0",DEFAULT:"1",...D},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",...D},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",...D},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",...D},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",...D},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))",...ar},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))",...ar},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",...Ue},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",...D},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",...D},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},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",...Z},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Ue},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Ue},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",...D},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",...Z},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...Z},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",...lr},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...lr},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",...D}};var pn=64;function z(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function E(e,r="",t=[]){return{kind:"at-rule",name:e,params:r,nodes:t}}function M(e,r=[]){return e.charCodeAt(0)===pn?we(e,r):z(e,r)}function F(e,r,t=!1){return{kind:"declaration",property:e,value:r,important:t}}function it(e){return{kind:"comment",value:e}}function I(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(I),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(I),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 y(e,r,t=[],i={}){for(let o=0;o<e.length;o++){let a=e[o],n=t[t.length-1]??null;if(a.kind==="context"){if(y(a.nodes,r,t,{...i,...a.context})===2)return 2;continue}t.push(a);let u=!1,l=0,s=r(a,{parent:n,context:i,path:t,replaceWith(p){u||(u=!0,Array.isArray(p)?p.length===0?(e.splice(o,1),l=0):p.length===1?(e[o]=p[0],l=1):(e.splice(o,1,...p),l=p.length):(e[o]=p,l=1))}})??0;if(t.pop(),u){s===0?o--:o+=l-1;continue}if(s===2)return 2;if(s!==1&&"nodes"in a){t.push(a);let p=y(a.nodes,r,t,i);if(t.pop(),p===2)return 2}}}function O(e,r){let t=0,i={file:null,code:""};function o(n,u=0){let l="",s=" ".repeat(u);if(n.kind==="declaration"){if(l+=`${s}${n.property}: ${n.value}${n.important?" !important":""};
|
|
12
|
+
`,r){t+=s.length;let p=t;t+=n.property.length,t+=2,t+=n.value?.length??0,n.important&&(t+=11);let c=t;t+=2,n.dst=[i,p,c]}}else if(n.kind==="rule"){if(l+=`${s}${n.selector} {
|
|
13
|
+
`,r){t+=s.length;let p=t;t+=n.selector.length,t+=1;let c=t;n.dst=[i,p,c],t+=2}for(let p of n.nodes)l+=o(p,u+1);l+=`${s}}
|
|
14
|
+
`,r&&(t+=s.length,t+=2)}else if(n.kind==="at-rule"){if(n.nodes.length===0){let p=`${s}${n.name} ${n.params};
|
|
15
|
+
`;if(r){t+=s.length;let c=t;t+=n.name.length,t+=1,t+=n.params.length;let f=t;t+=2,n.dst=[i,c,f]}return p}if(l+=`${s}${n.name}${n.params?` ${n.params} `:" "}{
|
|
16
|
+
`,r){t+=s.length;let p=t;t+=n.name.length,n.params&&(t+=1,t+=n.params.length),t+=1;let c=t;n.dst=[i,p,c],t+=2}for(let p of n.nodes)l+=o(p,u+1);l+=`${s}}
|
|
17
|
+
`,r&&(t+=s.length,t+=2)}else if(n.kind==="comment"){if(l+=`${s}/*${n.value}*/
|
|
18
|
+
`,r){t+=s.length;let p=t;t+=2+n.value.length+2;let c=t;n.dst=[i,p,c],t+=1}}else if(n.kind==="context"||n.kind==="at-root")return"";return l}let a="";for(let n of e)a+=o(n,0);return i.code=a,a}function dn(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var t=e.length;if(t<=1)return e;var i="";if(t>4&&e[3]==="\\"){var o=e[2];(o==="?"||o===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var a=e.split(/[/\\]+/);return r!==!1&&a[a.length-1]===""&&a.pop(),i+a.join("/")}function Ie(e){let r=dn(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var lt=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,sr=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,mn=/(?:gradient|element|cross-fade|image)\(/,gn=/^\s*data:/i,hn=/^([a-z]+:)?\/\//,vn=/^[A-Z_][.\w-]*\(/i,wn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,kn=/(?<!\\)"/g,yn=/(?: |\\t|\\n|\\f|\\r)+/g,bn=e=>gn.test(e),xn=e=>hn.test(e);async function ur({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ke(e),o=[];function a(n){if(n[0]==="/")return n;let u=ot.posix.join(Ie(r),n),l=ot.posix.relative(Ie(t),u);return l.startsWith(".")||(l="./"+l),l}return y(i,n=>{if(n.kind!=="declaration"||!n.value)return;let u=lt.test(n.value),l=sr.test(n.value);if(u||l){let s=l?An:fr;o.push(s(n.value,a).then(p=>{n.value=p}))}}),o.length&&await Promise.all(o),O(i)}function fr(e,r){return pr(e,lt,async t=>{let[i,o]=t;return await cr(o.trim(),i,r)})}async function An(e,r){return await pr(e,sr,async t=>{let[,i]=t;return await Sn(i,async({url:a})=>lt.test(a)?await fr(a,r):mn.test(a)?a:await cr(a,a,r))})}async function cr(e,r,t,i="url"){let o="",a=e[0];if((a==='"'||a==="'")&&(o=a,e=e.slice(1,-1)),Cn(e))return r;let n=await t(e);return o===""&&n!==encodeURI(n)&&(o='"'),o==="'"&&n.includes("'")&&(o='"'),o==='"'&&n.includes('"')&&(n=n.replace(kn,'\\"')),`${i}(${o}${n}${o})`}function Cn(e,r){return xn(e)||bn(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||vn.test(e)}function Sn(e,r){return Promise.all($n(e).map(async({url:t,descriptor:i})=>({url:await r({url:t,descriptor:i}),descriptor:i}))).then(Vn)}function $n(e){let r=e.trim().replace(yn," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(wn);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function Vn(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function pr(e,r,t){let i,o=e,a="";for(;i=r.exec(o);)a+=o.slice(0,i.index),a+=await t(i),o=o.slice(i.index+i[0].length);return a+=o,a}var Dn={};function vr({base:e,from:r,polyfills:t,onDependency:i,shouldRewriteUrls:o,customCssResolver:a,customJsResolver:n}){return{base:e,polyfills:t,from:r,async loadModule(u,l){return ft(u,l,i,n)},async loadStylesheet(u,l){let s=await kr(u,l,i,a);return o&&(s.content=await ur({css:s.content,root:e,base:s.base})),s}}}async function wr(e,r){if(e.root&&e.root!=="none"){let t=/[*{]/,i=[];for(let a of e.root.pattern.split("/")){if(t.test(a))break;i.push(a)}if(!await ut.default.stat(le.default.resolve(r,i.join("/"))).then(a=>a.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Nn(e,r){let t=await(0,L.compileAst)(e,vr(r));return await wr(t,r.base),t}async function En(e,r){let t=await(0,L.compile)(e,vr(r));return await wr(t,r.base),t}async function Tn(e,{base:r}){return(0,L.__unstable__loadDesignSystem)(e,{base:r,async loadModule(t,i){return ft(t,i,()=>{})},async loadStylesheet(t,i){return kr(t,i,()=>{})}})}async function ft(e,r,t,i){if(e[0]!=="."){let u=await gr(e,r,i);if(!u)throw new Error(`Could not resolve '${e}' from '${r}'`);let l=await mr((0,at.pathToFileURL)(u).href);return{path:u,base:le.default.dirname(u),module:l.default??l}}let o=await gr(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);let[a,n]=await Promise.all([mr((0,at.pathToFileURL)(o).href+"?id="+Date.now()),ht(o)]);for(let u of n)t(u);return{path:o,base:le.default.dirname(o),module:a.default??a}}async function kr(e,r,t,i){let o=await Pn(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);if(t(o),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(o,"utf-8");if(n)return{path:o,base:le.default.dirname(o),content:n}}let a=await ut.default.readFile(o,"utf-8");return{path:o,base:le.default.dirname(o),content:a}}var dr=null;async function mr(e){if(typeof globalThis.__tw_load=="function"){let r=await globalThis.__tw_load(e);if(r)return r}try{return await import(e)}catch{return dr??=(0,hr.createJiti)(Dn.url,{moduleCache:!1,fsCache:!1}),await dr.import(e)}}var ct=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],Rn=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Le.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:ct});async function Pn(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return st(Rn,e,r)}var On=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Le.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:ct}),_n=X.default.ResolverFactory.createResolver({fileSystem:new X.default.CachedInputFileSystem(Le.default,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:ct});async function gr(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return st(On,e,r).catch(()=>st(_n,e,r))}function st(e,r,t){return new Promise((i,o)=>e.resolve({},t,r,{},(a,n)=>{if(a)return o(a);i(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var pt=class{constructor(r=t=>void process.stderr.write(`${t}
|
|
19
|
+
`)){this.defaultFlush=r}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(o=>o.label).join("//"),i=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:r,namespace:t,value:process.hrtime.bigint()})}end(r){let t=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==r)throw new Error(`Mismatched timer label: \`${r}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),o=t-i.value;this.#t.get(i.id).value+=o}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],i=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:u}]of this.#r.entries()){if(this.#t.has(n))continue;t.length===0&&(i=!0,t.push("Hits:"));let l=n.split("//").length;t.push(`${" ".repeat(l)}${n} ${Ke(yr(`\xD7 ${u}`))}`)}this.#t.size>0&&i&&t.push(`
|
|
20
|
+
Timers:`);let o=-1/0,a=new Map;for(let[n,{value:u}]of this.#t){let l=`${(Number(u)/1e6).toFixed(2)}ms`;a.set(n,l),o=Math.max(o,l.length)}for(let n of this.#t.keys()){let u=n.split("//").length;t.push(`${Ke(`[${a.get(n).padStart(o," ")}]`)}${" ".repeat(u-1)}${u===1?" ":Ke(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":Ke(yr(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}r(`
|
|
21
|
+
${t.join(`
|
|
14
22
|
`)}
|
|
15
|
-
`),this.reset()}[Symbol.dispose](){
|
|
23
|
+
`),this.reset()}[Symbol.dispose](){Fe&&this.report()}};function Ke(e){return`\x1B[2m${e}\x1B[22m`}function yr(e){return`\x1B[34m${e}\x1B[39m`}var br=P(require("@jridgewell/remapping")),Y=require("lightningcss"),xr=P(require("magic-string"));function Un(e,{file:r="input.css",minify:t=!1,map:i}={}){function o(l,s){return(0,Y.transform)({filename:r,code:l,minify:t,sourceMap:typeof s<"u",inputSourceMap:s,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:Y.Features.Nesting|Y.Features.MediaQueries,exclude:Y.Features.LogicalProperties|Y.Features.DirSelector|Y.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let a=o(Buffer.from(e),i);if(i=a.map?.toString(),a.warnings=a.warnings.filter(l=>!/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(l.message)),a.warnings.length>0){let l=e.split(`
|
|
24
|
+
`),s=[`Found ${a.warnings.length} ${a.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of a.warnings.entries()){s.push(""),a.warnings.length>1&&s.push(`Issue #${p+1}:`);let f=2,d=Math.max(0,c.loc.line-f-1),m=Math.min(l.length,c.loc.line+f),g=l.slice(d,m).map((h,k)=>d+k+1===c.loc.line?`${ye("\u2502")} ${h}`:ye(`\u2502 ${h}`));g.splice(c.loc.line-d,0,`${ye("\u2506")}${" ".repeat(c.loc.column-1)} ${In(`${ye("^--")} ${c.message}`)}`,`${ye("\u2506")}`),s.push(...g)}s.push(""),console.warn(s.join(`
|
|
25
|
+
`))}a=o(a.code,i),i=a.map?.toString();let n=a.code.toString(),u=new xr.default(n);if(u.replaceAll("@media not (","@media not all and ("),i!==void 0&&u.hasChanged()){let l=u.generateMap({source:"original",hires:"boundary"}).toString();i=(0,br.default)([l,i],()=>null).toString()}return n=u.toString(),{code:n,map:i}}function ye(e){return`\x1B[2m${e}\x1B[22m`}function In(e){return`\x1B[33m${e}\x1B[39m`}var Ar=require("source-map-js");function Ln(e){let r=new Ar.SourceMapGenerator,t=1,i=new v(o=>({url:o?.url??`<unknown ${t++}>`,content:o?.content??"<none>"}));for(let o of e.mappings){let a=i.get(o.originalPosition?.source??null);r.addMapping({generated:o.generatedPosition,original:o.originalPosition,source:a.url,name:o.name}),r.setSourceContent(a.url,a.content)}return r.toString()}function Kn(e){let r=typeof e=="string"?e:Ln(e);return{raw:r,get inline(){let t="";return t+="/*# sourceMappingURL=data:application/json;base64,",t+=Buffer.from(r,"utf-8").toString("base64"),t+=` */
|
|
26
|
+
`,t}}}process.versions.bun||Cr.register?.((0,Sr.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader")));0&&(module.exports={Features,Instrumentation,Polyfills,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath,optimize,toSourceMap});
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
|
-
var
|
|
1
|
+
var vr=Object.defineProperty;var wr=(e,r)=>{for(var t in r)vr(e,t,{get:r[t],enumerable:!0})};import*as Oe from"module";import{pathToFileURL as Nn}from"url";var Ie={};wr(Ie,{DEBUG:()=>Ue});var Ue=kr(process.env.DEBUG);function kr(e){if(typeof e=="boolean")return e;if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let r=e.split(",").map(t=>t.split(":")[0]);return r.includes("-tailwindcss")?!1:!!r.includes("tailwindcss")}import te from"enhanced-resolve";import{createJiti as mn}from"jiti";import ot from"fs";import ur from"fs/promises";import he from"path";import{pathToFileURL as or}from"url";import{__unstable__loadDesignSystem as gn,compile as hn,compileAst as vn,Features as Mu,Polyfills as Fu}from"tailwindcss";import Le from"fs/promises";import re from"path";var yr=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],br=[".js",".cjs",".mjs"],xr=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Ar=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Cr(e,r){for(let t of r){let i=`${e}${t}`;if((await Le.stat(i).catch(()=>null))?.isFile())return i}for(let t of r){let i=`${e}/index${t}`;if(await Le.access(i).then(()=>!0,()=>!1))return i}return null}async function at(e,r,t,i){let o=br.includes(i)?xr:Ar,a=await Cr(re.resolve(t,r),o);if(a===null||e.has(a))return;e.add(a),t=re.dirname(a),i=re.extname(a);let n=await Le.readFile(a,"utf-8"),u=[];for(let l of yr)for(let s of n.matchAll(l))s[1].startsWith(".")&&u.push(at(e,s[1],t,i));await Promise.all(u)}async function st(e){let r=new Set;return await at(r,e,re.dirname(e),re.extname(e)),Array.from(r)}import*as rt from"path";function T(e){return{kind:"word",value:e}}function Sr(e,r){return{kind:"function",value:e,nodes:r}}function $r(e){return{kind:"separator",value:e}}function S(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i],a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):e[i]=l)}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2;if(u!==1&&o.kind==="function"&&S(o.nodes,r,o)===2)return 2}}function Ke(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i];if(o.kind==="function"&&Ke(o.nodes,r,o)===2)return 2;let a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):e[i]=l)}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2}}function A(e){let r="";for(let t of e)switch(t.kind){case"word":case"separator":{r+=t.value;break}case"function":r+=t.value+"("+A(t.nodes)+")"}return r}var ut=92,Vr=41,ft=58,ct=44,Nr=34,pt=61,dt=62,mt=60,gt=10,Er=40,Tr=39,Rr=47,ht=32,vt=9;function b(e){e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let t=[],r=[],s=[],i=null,l=null,n="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===A)n+=e.slice(f,f+2),f+=1;else if(u===S&&e.charCodeAt(f+1)===E){let c=f;for(let d=f+2;d<e.length;d++)if(o=e.charCodeAt(d),o===A)d+=1;else if(o===E&&e.charCodeAt(d+1)===S){f=d+1;break}let m=e.slice(c,f+1);m.charCodeAt(2)===De&&r.push(ee(m.slice(2,-2)))}else if(u===_e||u===$e){let c=f;for(let m=f+1;m<e.length;m++)if(o=e.charCodeAt(m),o===A)m+=1;else if(o===u){f=m;break}else{if(o===C&&e.charCodeAt(m+1)===g)throw new Error(`Unterminated string: ${e.slice(c,m+1)+String.fromCharCode(u)}`);if(o===g)throw new Error(`Unterminated string: ${e.slice(c,m)+String.fromCharCode(u)}`)}n+=e.slice(c,f+1)}else{if((u===w||u===g||u===N)&&(o=e.charCodeAt(f+1))&&(o===w||o===g||o===N))continue;if(u===g){if(n.length===0)continue;o=n.charCodeAt(n.length-1),o!==w&&o!==g&&o!==N&&(n+=" ")}else if(u===Q&&e.charCodeAt(f+1)===Q&&n.length===0){let c="",m=f,d=-1;for(let p=f+2;p<e.length;p++)if(o=e.charCodeAt(p),o===A)p+=1;else if(o===S&&e.charCodeAt(p+1)===E){for(let h=p+2;h<e.length;h++)if(o=e.charCodeAt(h),o===A)h+=1;else if(o===E&&e.charCodeAt(h+1)===S){p=h+1;break}}else if(d===-1&&o===be)d=n.length+p-m;else if(o===C&&c.length===0){n+=e.slice(m,p),f=p;break}else if(o===F)c+=")";else if(o===ke)c+="]";else if(o===q)c+="}";else if((o===O||e.length-1===p)&&c.length===0){f=p-1,n+=e.slice(m,p);break}else(o===J||o===Te||o===O)&&c.length>0&&e[p]===c[c.length-1]&&(c=c.slice(0,-1));let k=P(n,d);if(!k)throw new Error("Invalid custom property, expected a value");i?i.nodes.push(k):t.push(k),n=""}else if(u===C&&n.charCodeAt(0)===I)l=R(n),i?i.nodes.push(l):t.push(l),n="",l=null;else if(u===C&&a[a.length-1]!==")"){let c=P(n);if(!c)throw n.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${n.trim()}\``);i?i.nodes.push(c):t.push(c),n=""}else if(u===q&&a[a.length-1]!==")")a+="}",l=X(n.trim()),i&&i.nodes.push(l),s.push(i),i=l,n="",l=null;else if(u===O&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),n.length>0)if(n.charCodeAt(0)===I)l=R(n),i?i.nodes.push(l):t.push(l),n="",l=null;else{let m=n.indexOf(":");if(i){let d=P(n,m);if(!d)throw new Error(`Invalid declaration: \`${n.trim()}\``);i.nodes.push(d)}}let c=s.pop()??null;c===null&&i&&t.push(i),i=c,n="",l=null}else if(u===F)a+=")",n+="(";else if(u===J){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),n+=")"}else{if(n.length===0&&(u===w||u===g||u===N))continue;n+=String.fromCharCode(u)}}}if(n.charCodeAt(0)===I&&t.push(R(n)),a.length>0&&i){if(i.kind==="rule")throw new Error(`Missing closing } at ${i.selector}`);if(i.kind==="at-rule")throw new Error(`Missing closing } at ${i.name} ${i.params}`)}return r.length>0?r.concat(t):t}function R(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===w||s===F){let i=e.slice(0,r).trim(),l=e.slice(r).trim();return K(i,l,t)}}return K(e.trim(),"",t)}function P(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return Z(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var gt=process.env.FEATURES_ENV!=="stable";var x=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var Ue=64;function Oe(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function K(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function X(e,t=[]){return e.charCodeAt(0)===Ue?R(e,t):Oe(e,t)}function Z(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ee(e){return{kind:"comment",value:e}}function $(e,t,r=[],s={}){for(let i=0;i<e.length;i++){let l=e[i],n=r[r.length-1]??null;if(l.kind==="context"){if($(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,f=t(l,{parent:n,context:s,path:r,replaceWith(u){a=!0,Array.isArray(u)?u.length===0?(e.splice(i,1),o=0):u.length===1?(e[i]=u[0],o=1):(e.splice(i,1,...u),o=u.length):(e[i]=u,o=1)}})??0;if(r.pop(),a){f===0?i--:i+=o-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in l){r.push(l);let u=$(l.nodes,t,r,s);if(r.pop(),u===2)return 2}}}function te(e){function t(s,i=0){let l="",n=" ".repeat(i);if(s.kind==="declaration")l+=`${n}${s.property}: ${s.value}${s.important?" !important":""};
|
|
4
|
-
|
|
5
|
-
`;for(let a of s.nodes)l+=t(a,i+1);l+=`${n}}
|
|
6
|
-
`}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`)){this.defaultFlush=t}#r=new x(()=>({value:0}));#t=new x(()=>({value:0n}));#e=[];hit(t){this.#r.get(t).value++}start(t){let r=this.#e.map(i=>i.label).join("//"),s=`${r}${r.length===0?"":"//"}${t}`;this.#r.get(s).value++,this.#t.get(s),this.#e.push({id:s,label:t,namespace:r,value:process.hrtime.bigint()})}end(t){let r=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==t)throw new Error(`Mismatched timer label: \`${t}\`, expected \`${this.#e[this.#e.length-1].label}\``);let s=this.#e.pop(),i=r-s.value;this.#t.get(s.id).value+=i}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(t=this.defaultFlush){let r=[],s=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:a}]of this.#r.entries()){if(this.#t.has(n))continue;r.length===0&&(s=!0,r.push("Hits:"));let o=n.split("//").length;r.push(`${" ".repeat(o)}${n} ${_(ye(`\xD7 ${a}`))}`)}this.#t.size>0&&s&&r.push(`
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
`);let r=[],t=[],i=null,o="",a;for(let n=0;n<e.length;n++){let u=e.charCodeAt(n);switch(u){case ut:{o+=e[n]+e[n+1],n++;break}case Rr:{if(o.length>0){let s=T(o);i?i.nodes.push(s):r.push(s),o=""}let l=T(e[n]);i?i.nodes.push(l):r.push(l);break}case ft:case ct:case pt:case dt:case mt:case gt:case ht:case vt:{if(o.length>0){let c=T(o);i?i.nodes.push(c):r.push(c),o=""}let l=n,s=n+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==ft&&a!==ct&&a!==pt&&a!==dt&&a!==mt&&a!==gt&&a!==ht&&a!==vt));s++);n=s-1;let p=$r(e.slice(l,s));i?i.nodes.push(p):r.push(p);break}case Tr:case Nr:{let l=n;for(let s=n+1;s<e.length;s++)if(a=e.charCodeAt(s),a===ut)s+=1;else if(a===u){n=s;break}o+=e.slice(l,n+1);break}case Er:{let l=Sr(o,[]);o="",i?i.nodes.push(l):r.push(l),t.push(l),i=l;break}case Vr:{let l=t.pop();if(o.length>0){let s=T(o);l?.nodes.push(s),o=""}t.length>0?i=t[t.length-1]:i=null;break}default:o+=String.fromCharCode(u)}}return o.length>0&&r.push(T(o)),r}var Pr=["calc","min","max","clamp","mod","rem","sin","cos","tan","asin","acos","atan","atan2","pow","sqrt","hypot","log","exp","round"];function wt(e){return e.indexOf("(")!==-1&&Pr.some(r=>e.includes(`${r}(`))}var v=class extends Map{constructor(t){super();this.factory=t}get(t){let i=super.get(t);return i===void 0&&(i=this.factory(t,this),this.set(t,i)),i}};var Ln=new Uint8Array(256);var ye=new Uint8Array(256);function C(e,r){let t=0,i=[],o=0,a=e.length,n=r.charCodeAt(0);for(let u=0;u<a;u++){let l=e.charCodeAt(u);if(t===0&&l===n){i.push(e.slice(o,u)),o=u+1;continue}switch(l){case 92:u+=1;break;case 39:case 34:for(;++u<a;){let s=e.charCodeAt(u);if(s===92){u+=1;continue}if(s===l)break}break;case 40:ye[t]=41,t++;break;case 91:ye[t]=93,t++;break;case 123:ye[t]=125,t++;break;case 93:case 125:case 41:t>0&&l===ye[t-1]&&t--;break}}return i.push(e.slice(o)),i}function kt(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(Q),important:e.important,raw:e.raw};case"static":return{kind:e.kind,root:e.root,variants:e.variants.map(Q),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(Q),important:e.important,raw:e.raw};default:throw new Error("Unknown candidate kind")}}function Q(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:Q(e.variant),modifier:e.modifier?{kind:e.modifier.kind,value:e.modifier.value}:null};default:throw new Error("Unknown variant kind")}}function Me(e){if(e===null)return"";let r=Dr(e.value),t=r?e.value.slice(4,-1):e.value,[i,o]=r?["(",")"]:["[","]"];return e.kind==="arbitrary"?`/${i}${Fe(t)}${o}`:e.kind==="named"?`/${e.value}`:""}var Or=new v(e=>{let r=b(e),t=new Set;return S(r,(i,{parent:o})=>{let a=o===null?r:o.nodes??[];if(i.kind==="word"&&(i.value==="+"||i.value==="-"||i.value==="*"||i.value==="/")){let n=a.indexOf(i)??-1;if(n===-1)return;let u=a[n-1];if(u?.kind!=="separator"||u.value!==" ")return;let l=a[n+1];if(l?.kind!=="separator"||l.value!==" ")return;t.add(u),t.add(l)}else i.kind==="separator"&&i.value.length>0&&i.value.trim()===""?(a[0]===i||a[a.length-1]===i)&&t.add(i):i.kind==="separator"&&i.value.trim()===","&&(i.value=",")}),t.size>0&&S(r,(i,{replaceWith:o})=>{t.has(i)&&(t.delete(i),o([]))}),ze(r),A(r)});function Fe(e){return Or.get(e)}var Gn=new v(e=>{let r=b(e);return r.length===3&&r[0].kind==="word"&&r[0].value==="&"&&r[1].kind==="separator"&&r[1].value===":"&&r[2].kind==="function"&&r[2].value==="is"?A(r[2].nodes):e});function ze(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=ie(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=ie(r.value);for(let t=0;t<r.nodes.length;t++)ze([r.nodes[t]]);break}r.value=ie(r.value),ze(r.nodes);break}case"separator":r.value=ie(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=ie(r.value));break}default:Ur(r)}}var _r=new v(e=>{let r=b(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Dr(e){return _r.get(e)}function Ur(e){throw new Error(`Unexpected value: ${e}`)}function ie(e){return e.replaceAll("_",String.raw`\_`).replaceAll(" ","_")}var Ir=process.env.FEATURES_ENV!=="stable";var I=/[+-]?\d*\.?\d+(?:[eE][+-]?\d+)?/,ro=new RegExp(`^${I.source}$`);var io=new RegExp(`^${I.source}%$`);var no=new RegExp(`^${I.source}s*/s*${I.source}$`);var Lr=["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"],Kr=new RegExp(`^${I.source}(${Lr.join("|")})$`);function yt(e){return Kr.test(e)||wt(e)}var zr=["deg","rad","grad","turn"],oo=new RegExp(`^${I.source}(${zr.join("|")})$`);var lo=new RegExp(`^${I.source} +${I.source} +${I.source}$`);function $(e){let r=Number(e);return Number.isInteger(r)&&r>=0&&String(r)===String(e)}function X(e){return Mr(e,.25)}function Mr(e,r){let t=Number(e);return t>=0&&t%r===0&&String(t)===String(e)}function ne(e,r){if(r===null)return e;let t=Number(r);return Number.isNaN(t)||(r=`${t*100}%`),r==="100%"?e:`color-mix(in oklab, ${e} ${r}, transparent)`}var jr={"--alpha":Wr,"--spacing":Br,"--theme":qr,theme:Gr};function Wr(e,r,t,...i){let[o,a]=C(t,"/").map(n=>n.trim());if(!o||!a)throw new Error(`The --alpha(\u2026) function requires a color and an alpha value, e.g.: \`--alpha(${o||"var(--my-color)"} / ${a||"50%"})\``);if(i.length>0)throw new Error(`The --alpha(\u2026) function only accepts one argument, e.g.: \`--alpha(${o||"var(--my-color)"} / ${a||"50%"})\``);return ne(o,a)}function Br(e,r,t,...i){if(!t)throw new Error("The --spacing(\u2026) function requires an argument, but received none.");if(i.length>0)throw new Error(`The --spacing(\u2026) function only accepts a single argument, but received ${i.length+1}.`);let o=e.theme.resolve(null,["--spacing"]);if(!o)throw new Error("The --spacing(\u2026) function requires that the `--spacing` theme variable exists, but it was not found.");return`calc(${o} * ${t})`}function qr(e,r,t,...i){if(!t.startsWith("--"))throw new Error("The --theme(\u2026) function can only be used with CSS variables from your theme.");let o=!1;t.endsWith(" inline")&&(o=!0,t=t.slice(0,-7)),r.kind==="at-rule"&&(o=!0);let a=e.resolveThemeValue(t,o);if(!a){if(i.length>0)return i.join(", ");throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the variable name is correct or provide a fallback value to silence this error.`)}if(i.length===0)return a;let n=i.join(", ");if(n==="initial")return a;if(a==="initial")return n;if(a.startsWith("var(")||a.startsWith("theme(")||a.startsWith("--theme(")){let u=b(a);return Zr(u,n),A(u)}return a}function Gr(e,r,t,...i){t=Hr(t);let o=e.resolveThemeValue(t);if(!o&&i.length>0)return i.join(", ");if(!o)throw new Error(`Could not resolve value for theme function: \`theme(${t})\`. Consider checking if the path is correct or provide a fallback value to silence this error.`);return o}var $o=new RegExp(Object.keys(jr).map(e=>`${e}\\(`).join("|"));function Hr(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],a=e[i+1];o==="\\"&&(a===t||a==="\\")?(r+=a,i++):r+=o}return r}function Zr(e,r){S(e,t=>{if(t.kind==="function"&&!(t.value!=="var"&&t.value!=="theme"&&t.value!=="--theme"))if(t.nodes.length===1)t.nodes.push({kind:"word",value:`, ${r}`});else{let i=t.nodes[t.nodes.length-1];i.kind==="word"&&i.value==="initial"&&(i.value=r)}})}function je(e,r){let t=e.length,i=r.length,o=t<i?t:i;for(let a=0;a<o;a++){let n=e.charCodeAt(a),u=r.charCodeAt(a);if(n>=48&&n<=57&&u>=48&&u<=57){let l=a,s=a+1,p=a,c=a+1;for(n=e.charCodeAt(s);n>=48&&n<=57;)n=e.charCodeAt(++s);for(u=r.charCodeAt(c);u>=48&&u<=57;)u=r.charCodeAt(++c);let f=e.slice(l,s),d=r.slice(p,c),m=Number(f)-Number(d);if(m)return m;if(f<d)return-1;if(f>d)return 1;continue}if(n!==u)return n-u}return e.length-r.length}function Ct(e){if(e[0]!=="["||e[e.length-1]!=="]")return null;let r=1,t=r,i=e.length-1;for(;ee(e.charCodeAt(r));)r++;{for(t=r;r<i;r++){let p=e.charCodeAt(r);if(p===92){r++;continue}if(!(p>=65&&p<=90)&&!(p>=97&&p<=122)&&!(p>=48&&p<=57)&&!(p===45||p===95))break}if(t===r)return null}let o=e.slice(t,r);for(;ee(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:null,quote:null,value:null,sensitivity:null};let a=null,n=e.charCodeAt(r);if(n===61)a="=",r++;else if((n===126||n===124||n===94||n===36||n===42)&&e.charCodeAt(r+1)===61)a=e[r]+"=",r+=2;else return null;for(;ee(e.charCodeAt(r));)r++;if(r===i)return null;let u="",l=null;if(n=e.charCodeAt(r),n===39||n===34){l=e[r],r++,t=r;for(let p=r;p<i;p++){let c=e.charCodeAt(p);c===n?r=p+1:c===92&&p++}u=e.slice(t,r-1)}else{for(t=r;r<i&&!ee(e.charCodeAt(r));)r++;u=e.slice(t,r)}for(;ee(e.charCodeAt(r));)r++;if(r===i)return{attribute:o,operator:a,quote:l,value:u,sensitivity:null};let s=null;switch(e.charCodeAt(r)){case 105:case 73:{s="i",r++;break}case 115:case 83:{s="s",r++;break}default:return null}for(;ee(e.charCodeAt(r));)r++;return r!==i?null:{attribute:o,operator:a,quote:l,value:u,sensitivity:s}}function ee(e){switch(e){case 32:case 9:case 10:case 13:return!0;default:return!1}}var Jr=/^[a-zA-Z0-9-_%/\.]+$/;function Be(e){if(e[0]==="container")return null;e=e.slice(),e[0]==="animation"&&(e[0]="animate"),e[0]==="aspectRatio"&&(e[0]="aspect"),e[0]==="borderRadius"&&(e[0]="radius"),e[0]==="boxShadow"&&(e[0]="shadow"),e[0]==="colors"&&(e[0]="color"),e[0]==="containers"&&(e[0]="container"),e[0]==="fontFamily"&&(e[0]="font"),e[0]==="fontSize"&&(e[0]="text"),e[0]==="letterSpacing"&&(e[0]="tracking"),e[0]==="lineHeight"&&(e[0]="leading"),e[0]==="maxWidth"&&(e[0]="container"),e[0]==="screens"&&(e[0]="breakpoint"),e[0]==="transitionTimingFunction"&&(e[0]="ease");for(let r of e)if(!Jr.test(r))return null;return e.map((r,t,i)=>r==="1"&&t!==i.length-1?"":r).map(r=>r.replaceAll(".","_").replace(/([a-z])([A-Z])/g,(t,i,o)=>`${i}-${o.toLowerCase()}`)).filter((r,t)=>r!=="DEFAULT"||t!==e.length-1).join("-")}function Qr(e){return{kind:"combinator",value:e}}function Xr(e,r){return{kind:"function",value:e,nodes:r}}function W(e){return{kind:"selector",value:e}}function ei(e){return{kind:"separator",value:e}}function ti(e){return{kind:"value",value:e}}function xe(e,r,t=null){for(let i=0;i<e.length;i++){let o=e[i],a=!1,n=0,u=r(o,{parent:t,replaceWith(l){a||(a=!0,Array.isArray(l)?l.length===0?(e.splice(i,1),n=0):l.length===1?(e[i]=l[0],n=1):(e.splice(i,1,...l),n=l.length):(e[i]=l,n=1))}})??0;if(a){u===0?i--:i+=n-1;continue}if(u===2)return 2;if(u!==1&&o.kind==="function"&&xe(o.nodes,r,o)===2)return 2}}function B(e){let r="";for(let t of e)switch(t.kind){case"combinator":case"selector":case"separator":case"value":{r+=t.value;break}case"function":r+=t.value+"("+B(t.nodes)+")"}return r}var $t=92,ri=93,Vt=41,ii=58,Nt=44,ni=34,oi=46,Et=62,Tt=10,li=35,Rt=91,Pt=40,Ot=43,ai=39,_t=32,Dt=9,Ut=126,si=38,ui=42;function le(e){e=e.replaceAll(`\r
|
|
4
|
+
`,`
|
|
5
|
+
`);let r=[],t=[],i=null,o="",a;for(let n=0;n<e.length;n++){let u=e.charCodeAt(n);switch(u){case Nt:case Et:case Tt:case _t:case Ot:case Dt:case Ut:{if(o.length>0){let f=W(o);i?i.nodes.push(f):r.push(f),o=""}let l=n,s=n+1;for(;s<e.length&&(a=e.charCodeAt(s),!(a!==Nt&&a!==Et&&a!==Tt&&a!==_t&&a!==Ot&&a!==Dt&&a!==Ut));s++);n=s-1;let p=e.slice(l,s),c=p.trim()===","?ei(p):Qr(p);i?i.nodes.push(c):r.push(c);break}case Pt:{let l=Xr(o,[]);if(o="",l.value!==":not"&&l.value!==":where"&&l.value!==":has"&&l.value!==":is"){let s=n+1,p=0;for(let f=n+1;f<e.length;f++){if(a=e.charCodeAt(f),a===Pt){p++;continue}if(a===Vt){if(p===0){n=f;break}p--}}let c=n;l.nodes.push(ti(e.slice(s,c))),o="",n=c,i?i.nodes.push(l):r.push(l);break}i?i.nodes.push(l):r.push(l),t.push(l),i=l;break}case Vt:{let l=t.pop();if(o.length>0){let s=W(o);l.nodes.push(s),o=""}t.length>0?i=t[t.length-1]:i=null;break}case oi:case ii:case li:{if(o.length>0){let l=W(o);i?i.nodes.push(l):r.push(l)}o=e[n];break}case Rt:{if(o.length>0){let p=W(o);i?i.nodes.push(p):r.push(p)}o="";let l=n,s=0;for(let p=n+1;p<e.length;p++){if(a=e.charCodeAt(p),a===Rt){s++;continue}if(a===ri){if(s===0){n=p;break}s--}}o+=e.slice(l,n+1);break}case ai:case ni:{let l=n;for(let s=n+1;s<e.length;s++)if(a=e.charCodeAt(s),a===$t)s+=1;else if(a===u){n=s;break}o+=e.slice(l,n+1);break}case si:case ui:{if(o.length>0){let l=W(o);i?i.nodes.push(l):r.push(l),o=""}i?i.nodes.push(W(e[n])):r.push(W(e[n]));break}case $t:{o+=e[n]+e[n+1],n+=1;break}default:o+=e[n]}}return o.length>0&&r.push(W(o)),r}var fi=/^(?<value>[-+]?(?:\d*\.)?\d+)(?<unit>[a-z]+|%)?$/i,H=new v(e=>{let r=fi.exec(e);if(!r)return null;let t=r.groups?.value;if(t===void 0)return null;let i=Number(t);if(Number.isNaN(i))return null;let o=r.groups?.unit;return o===void 0?[i,null]:[i,o]});function It(e,r=null){let t=!1,i=b(e);return Ke(i,(o,{replaceWith:a})=>{if(o.kind==="word"&&o.value!=="0"){let n=ci(o.value,r);if(n===null||n===o.value)return;t=!0,a(T(n));return}else if(o.kind==="function"&&(o.value==="calc"||o.value==="")){if(o.nodes.length!==5)return;let n=H.get(o.nodes[0].value),u=o.nodes[2].value,l=H.get(o.nodes[4].value);if(u==="*"&&(n?.[0]===0&&n?.[1]===null||l?.[0]===0&&l?.[1]===null)){t=!0,a(T("0"));return}if(n===null||l===null)return;switch(u){case"*":{(n[1]===l[1]||n[1]===null&&l[1]!==null||n[1]!==null&&l[1]===null)&&(t=!0,a(T(`${n[0]*l[0]}${n[1]??""}`)));break}case"+":{n[1]===l[1]&&(t=!0,a(T(`${n[0]+l[0]}${n[1]??""}`)));break}case"-":{n[1]===l[1]&&(t=!0,a(T(`${n[0]-l[0]}${n[1]??""}`)));break}case"/":{l[0]!==0&&(n[1]===null&&l[1]===null||n[1]!==null&&l[1]===null)&&(t=!0,a(T(`${n[0]/l[0]}${n[1]??""}`)));break}}}}),t?A(i):e}function ci(e,r=null){let t=H.get(e);if(t===null)return null;let[i,o]=t;if(o===null)return`${i}`;if(i===0&&yt(e))return"0";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 r!==null?`${i*r}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}`}}var Lt=/\d*\.\d+(?:[eE][+-]?\d+)?%/g,q=new v(e=>{let{rem:r,designSystem:t}=e;return new v(i=>{try{i=t.theme.prefix&&!i.startsWith(t.theme.prefix)?`${t.theme.prefix}:${i}`:i;let o=[L(".x",[E("@apply",i)])];return pi(t,()=>{for(let n of t.parseCandidate(i))t.compileAstNodes(n,1);ae(o,t)}),y(o,(n,{replaceWith:u})=>{n.kind==="declaration"?n.value===void 0||n.property==="--tw-sort"?u([]):n.value.includes("%")&&(Lt.lastIndex=0,n.value=n.value.replaceAll(Lt,l=>`${Number(l.slice(0,-1))}%`)):n.kind==="context"||n.kind==="at-root"?u(n.nodes):n.kind==="comment"?u([]):n.kind==="at-rule"&&n.name==="@property"&&u([])}),y(o,n=>{if(n.kind==="declaration"&&n.value!==void 0){if(n.value.includes("var(")){let u=!1,l=b(n.value),s=new Set;S(l,(p,{replaceWith:c})=>{if(p.kind!=="function"||p.value!=="var"||p.nodes.length!==1&&p.nodes.length<3)return;let f=p.nodes[0].value;t.theme.prefix&&f.startsWith(`--${t.theme.prefix}-`)&&(f=f.slice(`--${t.theme.prefix}-`.length));let d=t.resolveThemeValue(f);if(!s.has(f)&&(s.add(f),d!==void 0&&(p.nodes.length===1&&(u=!0,p.nodes.push(...b(`,${d}`))),p.nodes.length>=3))){let m=A(p.nodes),g=`${p.nodes[0].value},${d}`;m===g&&(u=!0,c(b(d)))}}),u&&(n.value=A(l))}n.value=It(n.value,r),n.value=Fe(n.value)}}),P(o)}catch{return Symbol()}})}),Ge=new v(e=>{let{designSystem:r}=e,t=q.get(e),i=new v(()=>[]);for(let[o,a]of r.getClassList()){let n=t.get(o);if(typeof n=="string"){if(o[0]==="-"&&o.endsWith("-0")){let u=t.get(o.slice(1));if(typeof u=="string"&&n===u)continue}i.get(n).push(o);for(let u of a.modifiers){if(X(u))continue;let l=`${o}/${u}`,s=t.get(l);typeof s=="string"&&i.get(s).push(l)}}}return i}),Ae=new v(e=>{let{designSystem:r}=e;return new v(t=>{try{t=r.theme.prefix&&!t.startsWith(r.theme.prefix)?`${r.theme.prefix}:${t}`:t;let i=[L(".x",[E("@apply",`${t}:flex`)])];return ae(i,r),y(i,a=>{if(a.kind==="at-rule"&&a.params.includes(" "))a.params=a.params.replaceAll(" ","");else if(a.kind==="rule"){let n=le(a.selector),u=!1;xe(n,(l,{replaceWith:s})=>{l.kind==="separator"&&l.value!==" "?(l.value=l.value.trim(),u=!0):l.kind==="function"&&l.value===":is"?l.nodes.length===1?(u=!0,s(l.nodes)):l.nodes.length===2&&l.nodes[0].kind==="selector"&&l.nodes[0].value==="*"&&l.nodes[1].kind==="selector"&&l.nodes[1].value[0]===":"&&(u=!0,s(l.nodes[1])):l.kind==="function"&&l.value[0]===":"&&l.nodes[0]?.kind==="selector"&&l.nodes[0]?.value[0]===":"&&(u=!0,l.nodes.unshift({kind:"selector",value:"*"}))}),u&&(a.selector=B(n))}}),P(i)}catch{return Symbol()}})}),Kt=new v(e=>{let{designSystem:r}=e,t=Ae.get(e),i=new v(()=>[]);for(let[o,a]of r.variants.entries())if(a.kind==="static"){let n=t.get(o);if(typeof n!="string")continue;i.get(n).push(o)}return i});function pi(e,r){let t=e.theme.values.get,i=new Set;e.theme.values.get=o=>{let a=t.call(e.theme.values,o);return a===void 0||a.options&1&&(i.add(a),a.options&=-2),a};try{return r()}finally{e.theme.values.get=t;for(let o of i)o.options|=1}}function M(e,r){for(let t in e)delete e[t];return Object.assign(e,r)}function se(e){let r=[];for(let t of C(e,".")){if(!t.includes("[")){r.push(t);continue}let i=0;for(;;){let o=t.indexOf("[",i),a=t.indexOf("]",o);if(o===-1||a===-1)break;o>i&&r.push(t.slice(i,o)),r.push(t.slice(o+1,a)),i=a+1}i<=t.length-1&&r.push(t.slice(i))}return r}var al=new v(e=>new v((r=null)=>({designSystem:e,rem:r})));var sl=new v(e=>{let r=e.designSystem,t=r.theme.prefix?`${r.theme.prefix}:`:"",i=gi.get(e),o=vi.get(e);return new v((a,n)=>{for(let u of r.parseCandidate(a)){let l=u.variants.slice().reverse().flatMap(c=>i.get(c)),s=u.important;if(s||l.length>0){let f=n.get(r.printCandidate({...u,variants:[],important:!1}));return r.theme.prefix!==null&&l.length>0&&(f=f.slice(t.length)),l.length>0&&(f=`${l.map(d=>r.printVariant(d)).join(":")}:${f}`),s&&(f+="!"),r.theme.prefix!==null&&l.length>0&&(f=`${t}${f}`),f}let p=o.get(a);if(p!==a)return p}return a})}),mi=[bi,Oi,_i,Ti],gi=new v(e=>new v(r=>{let t=[r];for(let i of mi)for(let o of t.splice(0)){let a=i(Q(o),e);if(Array.isArray(a)){t.push(...a);continue}else t.push(a)}return t})),hi=[ki,yi,Si,Vi,Ei,Ri,Pi,Di],vi=new v(e=>{let r=e.designSystem;return new v(t=>{for(let i of r.parseCandidate(t)){let o=kt(i);for(let n of hi)o=n(o,e);let a=r.printCandidate(o);if(t!==a)return a}return t})}),wi=["t","tr","r","br","b","bl","l","tl"];function ki(e){if(e.kind==="static"&&e.root.startsWith("bg-gradient-to-")){let r=e.root.slice(15);return wi.includes(r)&&(e.root=`bg-linear-to-${r}`),e}return e}function yi(e,r){let t=Mt.get(r.designSystem);if(e.kind==="arbitrary"){let[i,o]=t(e.value,e.modifier===null?1:0);i!==e.value&&(e.value=i,o!==null&&(e.modifier=o))}else if(e.kind==="functional"&&e.value?.kind==="arbitrary"){let[i,o]=t(e.value.value,e.modifier===null?1:0);i!==e.value.value&&(e.value.value=i,o!==null&&(e.modifier=o))}return e}function bi(e,r){let t=Mt.get(r.designSystem),i=$e(e);for(let[o]of i)if(o.kind==="arbitrary"){let[a]=t(o.selector,2);a!==o.selector&&(o.selector=a)}else if(o.kind==="functional"&&o.value?.kind==="arbitrary"){let[a]=t(o.value.value,2);a!==o.value.value&&(o.value.value=a)}return e}var Mt=new v(e=>{return r(e);function r(t){function i(u,l=0){let s=b(u);if(l&2)return[Ce(s,n),null];let p=0,c=0;if(S(s,m=>{m.kind==="function"&&m.value==="theme"&&(p+=1,S(m.nodes,g=>g.kind==="separator"&&g.value.includes(",")?2:g.kind==="word"&&g.value==="/"?(c+=1,2):1))}),p===0)return[u,null];if(c===0)return[Ce(s,a),null];if(c>1)return[Ce(s,n),null];let f=null;return[Ce(s,(m,g)=>{let h=C(m,"/").map(k=>k.trim());if(h.length>2)return null;if(s.length===1&&h.length===2&&l&1){let[k,w]=h;if(/^\d+%$/.test(w))f={kind:"named",value:w.slice(0,-1)};else if(/^0?\.\d+$/.test(w)){let N=Number(w)*100;f={kind:Number.isInteger(N)?"named":"arbitrary",value:N.toString()}}else f={kind:"arbitrary",value:w};m=k}return a(m,g)||n(m,g)}),f]}function o(u,l=!0){let s=`--${Be(se(u))}`;return t.theme.get([s])?l&&t.theme.prefix?`--${t.theme.prefix}-${s.slice(2)}`:s:null}function a(u,l){let s=o(u);if(s)return l?`var(${s}, ${l})`:`var(${s})`;let p=se(u);if(p[0]==="spacing"&&t.theme.get(["--spacing"])){let c=p[1];return X(c)?`--spacing(${c})`:null}return null}function n(u,l){let s=C(u,"/").map(f=>f.trim());u=s.shift();let p=o(u,!1);if(!p)return null;let c=s.length>0?`/${s.join("/")}`:"";return l?`--theme(${p}${c}, ${l})`:`--theme(${p}${c})`}return i}});function Ce(e,r){return S(e,(t,{parent:i,replaceWith:o})=>{if(t.kind==="function"&&t.value==="theme"){if(t.nodes.length<1)return;t.nodes[0].kind==="separator"&&t.nodes[0].value.trim()===""&&t.nodes.shift();let a=t.nodes[0];if(a.kind!=="word")return;let n=a.value,u=1;for(let p=u;p<t.nodes.length&&!t.nodes[p].value.includes(",");p++)n+=A([t.nodes[p]]),u=p+1;n=xi(n);let l=t.nodes.slice(u+1),s=l.length>0?r(n,A(l)):r(n);if(s===null)return;if(i){let p=i.nodes.indexOf(t)-1;for(;p!==-1;){let c=i.nodes[p];if(c.kind==="separator"&&c.value.trim()===""){p-=1;continue}/^[-+*/]$/.test(c.value.trim())&&(s=`(${s})`);break}}o(b(s))}}),A(e)}function xi(e){if(e[0]!=="'"&&e[0]!=='"')return e;let r="",t=e[0];for(let i=1;i<e.length-1;i++){let o=e[i],a=e[i+1];o==="\\"&&(a===t||a==="\\")?(r+=a,i++):r+=o}return r}function*$e(e){function*r(t,i=null){yield[t,i],t.kind==="compound"&&(yield*r(t.variant,t))}yield*r(e,null)}function F(e,r){return e.parseCandidate(e.theme.prefix&&!r.startsWith(`${e.theme.prefix}:`)?`${e.theme.prefix}:${r}`:r)}function Ai(e,r){let t=e.printCandidate(r);return e.theme.prefix&&t.startsWith(`${e.theme.prefix}:`)?t.slice(e.theme.prefix.length+1):t}var Ci=new v(e=>{let r=e.resolveThemeValue("--spacing");if(r===void 0)return null;let t=H.get(r);if(!t)return null;let[i,o]=t;return new v(a=>{let n=H.get(a);if(!n)return null;let[u,l]=n;return l!==o?null:u/i})});function Si(e,r){if(e.kind!=="arbitrary"&&!(e.kind==="functional"&&e.value?.kind==="arbitrary"))return e;let t=r.designSystem,i=Ge.get(r),o=q.get(r),a=t.printCandidate(e),n=o.get(a);if(typeof n!="string")return e;for(let l of u(n,e)){let s=t.printCandidate(l);if(o.get(s)===n&&$i(t,e,l))return l}return e;function*u(l,s){let p=i.get(l);if(!(p.length>1)){if(p.length===0&&s.modifier){let c={...s,modifier:null},f=o.get(t.printCandidate(c));if(typeof f=="string")for(let d of u(f,c))yield Object.assign({},d,{modifier:s.modifier})}if(p.length===1)for(let c of F(t,p[0]))yield c;else if(p.length===0){let c=s.kind==="arbitrary"?s.value:s.value?.value??null;if(c===null)return;let f=Ci.get(t)?.get(c)??null,d="";f!==null&&f<0&&(d="-",f=Math.abs(f));for(let m of Array.from(t.utilities.keys("functional")).sort((g,h)=>+(g[0]==="-")-+(h[0]==="-"))){d&&(m=`${d}${m}`);for(let g of F(t,`${m}-${c}`))yield g;if(s.modifier)for(let g of F(t,`${m}-${c}${s.modifier}`))yield g;if(f!==null){for(let g of F(t,`${m}-${f}`))yield g;if(s.modifier)for(let g of F(t,`${m}-${f}${Me(s.modifier)}`))yield g}for(let g of F(t,`${m}-[${c}]`))yield g;if(s.modifier)for(let g of F(t,`${m}-[${c}]${Me(s.modifier)}`))yield g}}}}}function $i(e,r,t){let i=null;if(r.kind==="functional"&&r.value?.kind==="arbitrary"&&r.value.value.includes("var(--")?i=r.value.value:r.kind==="arbitrary"&&r.value.includes("var(--")&&(i=r.value),i===null)return!0;let o=e.candidatesToCss([e.printCandidate(t)]).join(`
|
|
6
|
+
`),a=!0;return S(b(i),n=>{if(n.kind==="function"&&n.value==="var"){let u=n.nodes[0].value;if(!new RegExp(`var\\(${u}[,)]\\s*`,"g").test(o)||o.includes(`${u}:`))return a=!1,2}}),a}function Vi(e,r){if(e.kind!=="functional"||e.value?.kind!=="named")return e;let t=r.designSystem,i=Ge.get(r),o=q.get(r),a=t.printCandidate(e),n=o.get(a);if(typeof n!="string")return e;for(let l of u(n,e)){let s=t.printCandidate(l);if(o.get(s)===n)return l}return e;function*u(l,s){let p=i.get(l);if(!(p.length>1)){if(p.length===0&&s.modifier){let c={...s,modifier:null},f=o.get(t.printCandidate(c));if(typeof f=="string")for(let d of u(f,c))yield Object.assign({},d,{modifier:s.modifier})}if(p.length===1)for(let c of F(t,p[0]))yield c}}}var Ni=new Map([["order-none","order-0"]]);function Ei(e,r){let t=r.designSystem,i=q.get(r),o=Ai(t,e),a=Ni.get(o)??null;if(a===null)return e;let n=i.get(o);if(typeof n!="string")return e;let u=i.get(a);if(typeof u!="string"||n!==u)return e;let[l]=F(t,a);return l}function Ti(e,r){let t=r.designSystem,i=Ae.get(r),o=Kt.get(r),a=$e(e);for(let[n]of a){if(n.kind==="compound")continue;let u=t.printVariant(n),l=i.get(u);if(typeof l!="string")continue;let s=o.get(l);if(s.length!==1)continue;let p=s[0],c=t.parseVariant(p);c!==null&&M(n,c)}return e}function Ri(e,r){let t=r.designSystem,i=q.get(r);if(e.kind==="functional"&&e.value?.kind==="arbitrary"&&e.value.dataType!==null){let o=t.printCandidate({...e,value:{...e.value,dataType:null}});i.get(t.printCandidate(e))===i.get(o)&&(e.value.dataType=null)}return e}function Pi(e,r){if(e.kind!=="functional"||e.value?.kind!=="arbitrary")return e;let t=r.designSystem,i=q.get(r),o=i.get(t.printCandidate(e));if(o===null)return e;for(let a of Ft(e))if(i.get(t.printCandidate({...e,value:a}))===o)return e.value=a,e;return e}function Oi(e){let r=$e(e);for(let[t]of r)if(t.kind==="functional"&&t.root==="data"&&t.value?.kind==="arbitrary"&&!t.value.value.includes("="))t.value={kind:"named",value:t.value.value};else if(t.kind==="functional"&&t.root==="aria"&&t.value?.kind==="arbitrary"&&(t.value.value.endsWith("=true")||t.value.value.endsWith('="true"')||t.value.value.endsWith("='true'"))){let[i,o]=C(t.value.value,"=");if(i[i.length-1]==="~"||i[i.length-1]==="|"||i[i.length-1]==="^"||i[i.length-1]==="$"||i[i.length-1]==="*")continue;t.value={kind:"named",value:t.value.value.slice(0,t.value.value.indexOf("="))}}else t.kind==="functional"&&t.root==="supports"&&t.value?.kind==="arbitrary"&&/^[a-z-][a-z0-9-]*$/i.test(t.value.value)&&(t.value={kind:"named",value:t.value.value});return e}function*Ft(e,r=e.value?.value??"",t=new Set){if(t.has(r))return;if(t.add(r),yield{kind:"named",value:r,fraction:null},r.endsWith("%")&&X(r.slice(0,-1))&&(yield{kind:"named",value:r.slice(0,-1),fraction:null}),r.includes("/")){let[a,n]=r.split("/");$(a)&&$(n)&&(yield{kind:"named",value:a,fraction:`${a}/${n}`})}let i=new Set;for(let a of r.matchAll(/(\d+\/\d+)|(\d+\.?\d+)/g))i.add(a[0].trim());let o=Array.from(i).sort((a,n)=>a.length-n.length);for(let a of o)yield*Ft(e,a,t)}function zt(e){return!e.some(r=>r.kind==="separator"&&r.value.trim()===",")}function Se(e){let r=e.value.trim();return e.kind==="selector"&&r[0]==="["&&r[r.length-1]==="]"}function _i(e,r){let t=[e],i=r.designSystem,o=Ae.get(r),a=$e(e);for(let[n,u]of a)if(n.kind==="compound"&&(n.root==="has"||n.root==="not"||n.root==="in")&&n.modifier!==null&&"modifier"in n.variant&&(n.variant.modifier=n.modifier,n.modifier=null),n.kind==="arbitrary"){if(n.relative)continue;let l=le(n.selector.trim());if(!zt(l))continue;if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&l[2].value==="*"){M(n,i.parseVariant("*"));continue}if(u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="*"){M(n,i.parseVariant("**"));continue}if(u===null&&l.length===3&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&l[2].value==="&"){l.pop(),l.pop(),M(n,i.parseVariant(`in-[${B(l)}]`));continue}if(u===null&&l[0].kind==="selector"&&(l[0].value==="@media"||l[0].value==="@supports")){let f=o.get(i.printVariant(n)),d=b(B(l)),m=!1;if(S(d,(g,{replaceWith:h})=>{g.kind==="word"&&g.value==="not"&&(m=!0,h([]))}),d=b(A(d)),S(d,g=>{g.kind==="separator"&&g.value!==" "&&g.value.trim()===""&&(g.value=" ")}),m){let g=i.parseVariant(`not-[${A(d)}]`);if(g===null)continue;let h=o.get(i.printVariant(g));if(f===h){M(n,g);continue}}}let s=null;u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===">"&&l[2].kind==="selector"&&Se(l[2])&&(l=[l[2]],s=i.parseVariant("*")),u===null&&l.length===3&&l[0].kind==="selector"&&l[0].value.trim()==="&"&&l[1].kind==="combinator"&&l[1].value.trim()===""&&l[2].kind==="selector"&&Se(l[2])&&(l=[l[2]],s=i.parseVariant("**"));let p=l.filter(f=>!(f.kind==="selector"&&f.value.trim()==="&"));if(p.length!==1)continue;let c=p[0];if(c.kind==="function"&&c.value===":is"){if(!zt(c.nodes)||c.nodes.length!==1||!Se(c.nodes[0]))continue;c=c.nodes[0]}if(c.kind==="function"&&c.value[0]===":"||c.kind==="selector"&&c.value[0]===":"){let f=c,d=!1;if(f.kind==="function"&&f.value===":not"){if(d=!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 m=(h=>{if(h===":nth-child"&&f.kind==="function"&&f.nodes.length===1&&f.nodes[0].kind==="value"&&f.nodes[0].value==="odd")return d?(d=!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 d?(d=!1,"odd"):"even";for(let[k,w]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===k&&f.kind==="function"&&f.nodes.length===1)return f.nodes.length===1&&f.nodes[0].kind==="value"&&$(f.nodes[0].value)?`${w}-${f.nodes[0].value}`:`${w}-[${B(f.nodes)}]`;if(d){let k=o.get(i.printVariant(n)),w=o.get(`not-[${h}]`);if(k===w)return`[&${h}]`}return null})(f.value);if(m===null)continue;d&&(m=`not-${m}`);let g=i.parseVariant(m);if(g===null)continue;M(n,g)}else if(Se(c)){let f=Ct(c.value);if(f===null)continue;if(f.attribute.startsWith("data-")){let d=f.attribute.slice(5);M(n,{kind:"functional",root:"data",modifier:null,value:f.value===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${d}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}else if(f.attribute.startsWith("aria-")){let d=f.attribute.slice(5);M(n,{kind:"functional",root:"aria",modifier:null,value:f.value===null?{kind:"arbitrary",value:d}:f.operator==="="&&f.value==="true"&&f.sensitivity===null?{kind:"named",value:d}:{kind:"arbitrary",value:`${f.attribute}${f.operator}${f.quote??""}${f.value}${f.quote??""}${f.sensitivity?` ${f.sensitivity}`:""}`}})}}if(s)return[s,n]}return t}function Di(e,r){if(e.kind!=="functional"&&e.kind!=="arbitrary"||e.modifier===null)return e;let t=r.designSystem,i=q.get(r),o=i.get(t.printCandidate(e)),a=e.modifier;if(o===i.get(t.printCandidate({...e,modifier:null})))return e.modifier=null,e;{let n={kind:"named",value:a.value.endsWith("%")?a.value.includes(".")?`${Number(a.value.slice(0,-1))}`:a.value.slice(0,-1):a.value,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}{let n={kind:"named",value:`${parseFloat(a.value)*100}`,fraction:null};if(o===i.get(t.printCandidate({...e,modifier:n})))return e.modifier=n,e}return e}function ue(e,r,{onInvalidCandidate:t,respectImportant:i}={}){let o=new Map,a=[],n=new Map;for(let s of e){if(r.invalidCandidates.has(s)){t?.(s);continue}let p=r.parseCandidate(s);if(p.length===0){t?.(s);continue}n.set(s,p)}let u=0;(i??!0)&&(u|=1);let l=r.getVariantOrder();for(let[s,p]of n){let c=!1;for(let f of p){let d=r.compileAstNodes(f,u);if(d.length!==0){c=!0;for(let{node:m,propertySort:g}of d){let h=0n;for(let k of f.variants)h|=1n<<BigInt(l.get(k));o.set(m,{properties:g,variants:h,candidate:s}),a.push(m)}}}c||t?.(s)}return a.sort((s,p)=>{let c=o.get(s),f=o.get(p);if(c.variants-f.variants!==0n)return Number(c.variants-f.variants);let d=0;for(;d<c.properties.order.length&&d<f.properties.order.length&&c.properties.order[d]===f.properties.order[d];)d+=1;return(c.properties.order[d]??1/0)-(f.properties.order[d]??1/0)||f.properties.count-c.properties.count||je(c.candidate,f.candidate)}),{astNodes:a,nodeSorting:o}}function ae(e,r){let t=0,i=K("&",e),o=new Set,a=new v(()=>new Set),n=new v(()=>new Set);y([i],(c,{parent:f,path:d})=>{if(c.kind==="at-rule"){if(c.name==="@keyframes")return y(c.nodes,m=>{if(m.kind==="at-rule"&&m.name==="@apply")throw new Error("You cannot use `@apply` inside `@keyframes`.")}),1;if(c.name==="@utility"){let m=c.params.replace(/-\*$/,"");n.get(m).add(c),y(c.nodes,g=>{if(!(g.kind!=="at-rule"||g.name!=="@apply")){o.add(c);for(let h of Wt(g,r))a.get(c).add(h)}});return}if(c.name==="@apply"){if(f===null)return;t|=1,o.add(f);for(let m of Wt(c,r))for(let g of d)g!==c&&o.has(g)&&a.get(g).add(m)}}});let u=new Set,l=[],s=new Set;function p(c,f=[]){if(!u.has(c)){if(s.has(c)){let d=f[(f.indexOf(c)+1)%f.length];throw c.kind==="at-rule"&&c.name==="@utility"&&d.kind==="at-rule"&&d.name==="@utility"&&y(c.nodes,m=>{if(m.kind!=="at-rule"||m.name!=="@apply")return;let g=m.params.split(/\s+/g);for(let h of g)for(let k of r.parseCandidate(h))switch(k.kind){case"arbitrary":break;case"static":case"functional":if(d.params.replace(/-\*$/,"")===k.root)throw new Error(`You cannot \`@apply\` the \`${h}\` utility here because it creates a circular dependency.`);break;default:}}),new Error(`Circular dependency detected:
|
|
7
|
+
|
|
8
|
+
${P([c])}
|
|
9
|
+
Relies on:
|
|
10
|
+
|
|
11
|
+
${P([d])}`)}s.add(c);for(let d of a.get(c))for(let m of n.get(d))f.push(c),p(m,f),f.pop();u.add(c),s.delete(c),l.push(c)}}for(let c of o)p(c);for(let c of l)"nodes"in c&&y(c.nodes,(f,{replaceWith:d})=>{if(f.kind!=="at-rule"||f.name!=="@apply")return;let m=f.params.split(/(\s+)/g),g={},h=0;for(let[k,w]of m.entries())k%2===0&&(g[w]=h),h+=w.length;{let k=Object.keys(g),w=ue(k,r,{respectImportant:!1,onInvalidCandidate:x=>{if(r.theme.prefix&&!x.startsWith(r.theme.prefix))throw new Error(`Cannot apply unprefixed utility class \`${x}\`. Did you mean \`${r.theme.prefix}:${x}\`?`);if(r.invalidCandidates.has(x))throw new Error(`Cannot apply utility class \`${x}\` because it has been explicitly disabled: https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-excluding-classes`);let R=C(x,":");if(R.length>1){let ke=R.pop();if(r.candidatesToCss([ke])[0]){let Y=r.candidatesToCss(R.map(J=>`${J}:[--tw-variant-check:1]`)),j=R.filter((J,De)=>Y[De]===null);if(j.length>0){if(j.length===1)throw new Error(`Cannot apply utility class \`${x}\` because the ${j.map(J=>`\`${J}\``)} variant does not exist.`);{let J=new Intl.ListFormat("en",{style:"long",type:"conjunction"});throw new Error(`Cannot apply utility class \`${x}\` because the ${J.format(j.map(De=>`\`${De}\``))} variants do not exist.`)}}}}throw r.theme.size===0?new Error(`Cannot apply unknown utility class \`${x}\`. 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 \`${x}\``)}}),N=f.src,hr=w.astNodes.map(x=>{let R=w.nodeSorting.get(x)?.candidate,ke=R?g[R]:void 0;if(x=U(x),!N||!R||ke===void 0)return y([x],j=>{j.src=N}),x;let Y=[N[0],N[1],N[2]];return Y[1]+=7+ke,Y[2]=Y[1]+R.length,y([x],j=>{j.src=Y}),x}),_e=[];for(let x of hr)if(x.kind==="rule")for(let R of x.nodes)_e.push(R);else _e.push(x);d(_e)}});return t}function*Wt(e,r){for(let t of e.params.split(/\s+/g))for(let i of r.parseCandidate(t))switch(i.kind){case"arbitrary":break;case"static":case"functional":yield i.root;break;default:}}var ce=92,Ve=47,Ne=42,Bt=34,qt=39,Mi=58,Ee=59,O=10,Te=13,pe=32,de=9,Gt=123,He=125,Je=40,Ht=41,Fi=91,ji=93,Zt=45,Ze=64,Wi=33;function ge(e,r){let t=r?.from?{file:r.from,code:e}:null;e[0]==="\uFEFF"&&(e=" "+e.slice(1));let i=[],o=[],a=[],n=null,u=null,l="",s="",p=0,c;for(let f=0;f<e.length;f++){let d=e.charCodeAt(f);if(!(d===Te&&(c=e.charCodeAt(f+1),c===O)))if(d===ce)l===""&&(p=f),l+=e.slice(f,f+2),f+=1;else if(d===Ve&&e.charCodeAt(f+1)===Ne){let m=f;for(let h=f+2;h<e.length;h++)if(c=e.charCodeAt(h),c===ce)h+=1;else if(c===Ne&&e.charCodeAt(h+1)===Ve){f=h+1;break}let g=e.slice(m,f+1);if(g.charCodeAt(2)===Wi){let h=Xe(g.slice(2,-2));o.push(h),t&&(h.src=[t,m,f+1],h.dst=[t,m,f+1])}}else if(d===qt||d===Bt){let m=Yt(e,f,d);l+=e.slice(f,m+1),f=m}else{if((d===pe||d===O||d===de)&&(c=e.charCodeAt(f+1))&&(c===pe||c===O||c===de||c===Te&&(c=e.charCodeAt(f+2))&&c==O))continue;if(d===O){if(l.length===0)continue;c=l.charCodeAt(l.length-1),c!==pe&&c!==O&&c!==de&&(l+=" ")}else if(d===Zt&&e.charCodeAt(f+1)===Zt&&l.length===0){let m="",g=f,h=-1;for(let w=f+2;w<e.length;w++)if(c=e.charCodeAt(w),c===ce)w+=1;else if(c===qt||c===Bt)w=Yt(e,w,c);else if(c===Ve&&e.charCodeAt(w+1)===Ne){for(let N=w+2;N<e.length;N++)if(c=e.charCodeAt(N),c===ce)N+=1;else if(c===Ne&&e.charCodeAt(N+1)===Ve){w=N+1;break}}else if(h===-1&&c===Mi)h=l.length+w-g;else if(c===Ee&&m.length===0){l+=e.slice(g,w),f=w;break}else if(c===Je)m+=")";else if(c===Fi)m+="]";else if(c===Gt)m+="}";else if((c===He||e.length-1===w)&&m.length===0){f=w-1,l+=e.slice(g,w);break}else(c===Ht||c===ji||c===He)&&m.length>0&&e[w]===m[m.length-1]&&(m=m.slice(0,-1));let k=Ye(l,h);if(!k)throw new Error("Invalid custom property, expected a value");t&&(k.src=[t,g,f],k.dst=[t,g,f]),n?n.nodes.push(k):i.push(k),l=""}else if(d===Ee&&l.charCodeAt(0)===Ze)u=me(l),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n?n.nodes.push(u):i.push(u),l="",u=null;else if(d===Ee&&s[s.length-1]!==")"){let m=Ye(l);if(!m){if(l.length===0)continue;throw new Error(`Invalid declaration: \`${l.trim()}\``)}t&&(m.src=[t,p,f],m.dst=[t,p,f]),n?n.nodes.push(m):i.push(m),l=""}else if(d===Gt&&s[s.length-1]!==")")s+="}",u=K(l.trim()),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n&&n.nodes.push(u),a.push(n),n=u,l="",u=null;else if(d===He&&s[s.length-1]!==")"){if(s==="")throw new Error("Missing opening {");if(s=s.slice(0,-1),l.length>0)if(l.charCodeAt(0)===Ze)u=me(l),t&&(u.src=[t,p,f],u.dst=[t,p,f]),n?n.nodes.push(u):i.push(u),l="",u=null;else{let g=l.indexOf(":");if(n){let h=Ye(l,g);if(!h)throw new Error(`Invalid declaration: \`${l.trim()}\``);t&&(h.src=[t,p,f],h.dst=[t,p,f]),n.nodes.push(h)}}let m=a.pop()??null;m===null&&n&&i.push(n),n=m,l="",u=null}else if(d===Je)s+=")",l+="(";else if(d===Ht){if(s[s.length-1]!==")")throw new Error("Missing opening (");s=s.slice(0,-1),l+=")"}else{if(l.length===0&&(d===pe||d===O||d===de))continue;l===""&&(p=f),l+=String.fromCharCode(d)}}}if(l.charCodeAt(0)===Ze){let f=me(l);t&&(f.src=[t,p,e.length],f.dst=[t,p,e.length]),i.push(f)}if(s.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return o.length>0?o.concat(i):i}function me(e,r=[]){let t=e,i="";for(let o=5;o<e.length;o++){let a=e.charCodeAt(o);if(a===pe||a===de||a===Je){t=e.slice(0,o),i=e.slice(o);break}}return E(t.trim(),i.trim(),r)}function Ye(e,r=e.indexOf(":")){if(r===-1)return null;let t=e.indexOf("!important",r+1);return z(e.slice(0,r).trim(),e.slice(r+1,t===-1?e.length:t).trim(),t!==-1)}function Yt(e,r,t){let i;for(let o=r+1;o<e.length;o++)if(i=e.charCodeAt(o),i===ce)o+=1;else{if(i===t)return o;if(i===Ee&&(e.charCodeAt(o+1)===O||e.charCodeAt(o+1)===Te&&e.charCodeAt(o+2)===O))throw new Error(`Unterminated string: ${e.slice(r,o+1)+String.fromCharCode(t)}`);if(i===O||i===Te&&e.charCodeAt(o+1)===O)throw new Error(`Unterminated string: ${e.slice(r,o)+String.fromCharCode(t)}`)}return r}var et={inherit:"inherit",current:"currentcolor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"oklch(98.4% 0.003 247.858)",100:"oklch(96.8% 0.007 247.896)",200:"oklch(92.9% 0.013 255.508)",300:"oklch(86.9% 0.022 252.894)",400:"oklch(70.4% 0.04 256.788)",500:"oklch(55.4% 0.046 257.417)",600:"oklch(44.6% 0.043 257.281)",700:"oklch(37.2% 0.044 257.287)",800:"oklch(27.9% 0.041 260.031)",900:"oklch(20.8% 0.042 265.755)",950:"oklch(12.9% 0.042 264.695)"},gray:{50:"oklch(98.5% 0.002 247.839)",100:"oklch(96.7% 0.003 264.542)",200:"oklch(92.8% 0.006 264.531)",300:"oklch(87.2% 0.01 258.338)",400:"oklch(70.7% 0.022 261.325)",500:"oklch(55.1% 0.027 264.364)",600:"oklch(44.6% 0.03 256.802)",700:"oklch(37.3% 0.034 259.733)",800:"oklch(27.8% 0.033 256.848)",900:"oklch(21% 0.034 264.665)",950:"oklch(13% 0.028 261.692)"},zinc:{50:"oklch(98.5% 0 0)",100:"oklch(96.7% 0.001 286.375)",200:"oklch(92% 0.004 286.32)",300:"oklch(87.1% 0.006 286.286)",400:"oklch(70.5% 0.015 286.067)",500:"oklch(55.2% 0.016 285.938)",600:"oklch(44.2% 0.017 285.786)",700:"oklch(37% 0.013 285.805)",800:"oklch(27.4% 0.006 286.033)",900:"oklch(21% 0.006 285.885)",950:"oklch(14.1% 0.005 285.823)"},neutral:{50:"oklch(98.5% 0 0)",100:"oklch(97% 0 0)",200:"oklch(92.2% 0 0)",300:"oklch(87% 0 0)",400:"oklch(70.8% 0 0)",500:"oklch(55.6% 0 0)",600:"oklch(43.9% 0 0)",700:"oklch(37.1% 0 0)",800:"oklch(26.9% 0 0)",900:"oklch(20.5% 0 0)",950:"oklch(14.5% 0 0)"},stone:{50:"oklch(98.5% 0.001 106.423)",100:"oklch(97% 0.001 106.424)",200:"oklch(92.3% 0.003 48.717)",300:"oklch(86.9% 0.005 56.366)",400:"oklch(70.9% 0.01 56.259)",500:"oklch(55.3% 0.013 58.071)",600:"oklch(44.4% 0.011 73.639)",700:"oklch(37.4% 0.01 67.558)",800:"oklch(26.8% 0.007 34.298)",900:"oklch(21.6% 0.006 56.043)",950:"oklch(14.7% 0.004 49.25)"},red:{50:"oklch(97.1% 0.013 17.38)",100:"oklch(93.6% 0.032 17.717)",200:"oklch(88.5% 0.062 18.334)",300:"oklch(80.8% 0.114 19.571)",400:"oklch(70.4% 0.191 22.216)",500:"oklch(63.7% 0.237 25.331)",600:"oklch(57.7% 0.245 27.325)",700:"oklch(50.5% 0.213 27.518)",800:"oklch(44.4% 0.177 26.899)",900:"oklch(39.6% 0.141 25.723)",950:"oklch(25.8% 0.092 26.042)"},orange:{50:"oklch(98% 0.016 73.684)",100:"oklch(95.4% 0.038 75.164)",200:"oklch(90.1% 0.076 70.697)",300:"oklch(83.7% 0.128 66.29)",400:"oklch(75% 0.183 55.934)",500:"oklch(70.5% 0.213 47.604)",600:"oklch(64.6% 0.222 41.116)",700:"oklch(55.3% 0.195 38.402)",800:"oklch(47% 0.157 37.304)",900:"oklch(40.8% 0.123 38.172)",950:"oklch(26.6% 0.079 36.259)"},amber:{50:"oklch(98.7% 0.022 95.277)",100:"oklch(96.2% 0.059 95.617)",200:"oklch(92.4% 0.12 95.746)",300:"oklch(87.9% 0.169 91.605)",400:"oklch(82.8% 0.189 84.429)",500:"oklch(76.9% 0.188 70.08)",600:"oklch(66.6% 0.179 58.318)",700:"oklch(55.5% 0.163 48.998)",800:"oklch(47.3% 0.137 46.201)",900:"oklch(41.4% 0.112 45.904)",950:"oklch(27.9% 0.077 45.635)"},yellow:{50:"oklch(98.7% 0.026 102.212)",100:"oklch(97.3% 0.071 103.193)",200:"oklch(94.5% 0.129 101.54)",300:"oklch(90.5% 0.182 98.111)",400:"oklch(85.2% 0.199 91.936)",500:"oklch(79.5% 0.184 86.047)",600:"oklch(68.1% 0.162 75.834)",700:"oklch(55.4% 0.135 66.442)",800:"oklch(47.6% 0.114 61.907)",900:"oklch(42.1% 0.095 57.708)",950:"oklch(28.6% 0.066 53.813)"},lime:{50:"oklch(98.6% 0.031 120.757)",100:"oklch(96.7% 0.067 122.328)",200:"oklch(93.8% 0.127 124.321)",300:"oklch(89.7% 0.196 126.665)",400:"oklch(84.1% 0.238 128.85)",500:"oklch(76.8% 0.233 130.85)",600:"oklch(64.8% 0.2 131.684)",700:"oklch(53.2% 0.157 131.589)",800:"oklch(45.3% 0.124 130.933)",900:"oklch(40.5% 0.101 131.063)",950:"oklch(27.4% 0.072 132.109)"},green:{50:"oklch(98.2% 0.018 155.826)",100:"oklch(96.2% 0.044 156.743)",200:"oklch(92.5% 0.084 155.995)",300:"oklch(87.1% 0.15 154.449)",400:"oklch(79.2% 0.209 151.711)",500:"oklch(72.3% 0.219 149.579)",600:"oklch(62.7% 0.194 149.214)",700:"oklch(52.7% 0.154 150.069)",800:"oklch(44.8% 0.119 151.328)",900:"oklch(39.3% 0.095 152.535)",950:"oklch(26.6% 0.065 152.934)"},emerald:{50:"oklch(97.9% 0.021 166.113)",100:"oklch(95% 0.052 163.051)",200:"oklch(90.5% 0.093 164.15)",300:"oklch(84.5% 0.143 164.978)",400:"oklch(76.5% 0.177 163.223)",500:"oklch(69.6% 0.17 162.48)",600:"oklch(59.6% 0.145 163.225)",700:"oklch(50.8% 0.118 165.612)",800:"oklch(43.2% 0.095 166.913)",900:"oklch(37.8% 0.077 168.94)",950:"oklch(26.2% 0.051 172.552)"},teal:{50:"oklch(98.4% 0.014 180.72)",100:"oklch(95.3% 0.051 180.801)",200:"oklch(91% 0.096 180.426)",300:"oklch(85.5% 0.138 181.071)",400:"oklch(77.7% 0.152 181.912)",500:"oklch(70.4% 0.14 182.503)",600:"oklch(60% 0.118 184.704)",700:"oklch(51.1% 0.096 186.391)",800:"oklch(43.7% 0.078 188.216)",900:"oklch(38.6% 0.063 188.416)",950:"oklch(27.7% 0.046 192.524)"},cyan:{50:"oklch(98.4% 0.019 200.873)",100:"oklch(95.6% 0.045 203.388)",200:"oklch(91.7% 0.08 205.041)",300:"oklch(86.5% 0.127 207.078)",400:"oklch(78.9% 0.154 211.53)",500:"oklch(71.5% 0.143 215.221)",600:"oklch(60.9% 0.126 221.723)",700:"oklch(52% 0.105 223.128)",800:"oklch(45% 0.085 224.283)",900:"oklch(39.8% 0.07 227.392)",950:"oklch(30.2% 0.056 229.695)"},sky:{50:"oklch(97.7% 0.013 236.62)",100:"oklch(95.1% 0.026 236.824)",200:"oklch(90.1% 0.058 230.902)",300:"oklch(82.8% 0.111 230.318)",400:"oklch(74.6% 0.16 232.661)",500:"oklch(68.5% 0.169 237.323)",600:"oklch(58.8% 0.158 241.966)",700:"oklch(50% 0.134 242.749)",800:"oklch(44.3% 0.11 240.79)",900:"oklch(39.1% 0.09 240.876)",950:"oklch(29.3% 0.066 243.157)"},blue:{50:"oklch(97% 0.014 254.604)",100:"oklch(93.2% 0.032 255.585)",200:"oklch(88.2% 0.059 254.128)",300:"oklch(80.9% 0.105 251.813)",400:"oklch(70.7% 0.165 254.624)",500:"oklch(62.3% 0.214 259.815)",600:"oklch(54.6% 0.245 262.881)",700:"oklch(48.8% 0.243 264.376)",800:"oklch(42.4% 0.199 265.638)",900:"oklch(37.9% 0.146 265.522)",950:"oklch(28.2% 0.091 267.935)"},indigo:{50:"oklch(96.2% 0.018 272.314)",100:"oklch(93% 0.034 272.788)",200:"oklch(87% 0.065 274.039)",300:"oklch(78.5% 0.115 274.713)",400:"oklch(67.3% 0.182 276.935)",500:"oklch(58.5% 0.233 277.117)",600:"oklch(51.1% 0.262 276.966)",700:"oklch(45.7% 0.24 277.023)",800:"oklch(39.8% 0.195 277.366)",900:"oklch(35.9% 0.144 278.697)",950:"oklch(25.7% 0.09 281.288)"},violet:{50:"oklch(96.9% 0.016 293.756)",100:"oklch(94.3% 0.029 294.588)",200:"oklch(89.4% 0.057 293.283)",300:"oklch(81.1% 0.111 293.571)",400:"oklch(70.2% 0.183 293.541)",500:"oklch(60.6% 0.25 292.717)",600:"oklch(54.1% 0.281 293.009)",700:"oklch(49.1% 0.27 292.581)",800:"oklch(43.2% 0.232 292.759)",900:"oklch(38% 0.189 293.745)",950:"oklch(28.3% 0.141 291.089)"},purple:{50:"oklch(97.7% 0.014 308.299)",100:"oklch(94.6% 0.033 307.174)",200:"oklch(90.2% 0.063 306.703)",300:"oklch(82.7% 0.119 306.383)",400:"oklch(71.4% 0.203 305.504)",500:"oklch(62.7% 0.265 303.9)",600:"oklch(55.8% 0.288 302.321)",700:"oklch(49.6% 0.265 301.924)",800:"oklch(43.8% 0.218 303.724)",900:"oklch(38.1% 0.176 304.987)",950:"oklch(29.1% 0.149 302.717)"},fuchsia:{50:"oklch(97.7% 0.017 320.058)",100:"oklch(95.2% 0.037 318.852)",200:"oklch(90.3% 0.076 319.62)",300:"oklch(83.3% 0.145 321.434)",400:"oklch(74% 0.238 322.16)",500:"oklch(66.7% 0.295 322.15)",600:"oklch(59.1% 0.293 322.896)",700:"oklch(51.8% 0.253 323.949)",800:"oklch(45.2% 0.211 324.591)",900:"oklch(40.1% 0.17 325.612)",950:"oklch(29.3% 0.136 325.661)"},pink:{50:"oklch(97.1% 0.014 343.198)",100:"oklch(94.8% 0.028 342.258)",200:"oklch(89.9% 0.061 343.231)",300:"oklch(82.3% 0.12 346.018)",400:"oklch(71.8% 0.202 349.761)",500:"oklch(65.6% 0.241 354.308)",600:"oklch(59.2% 0.249 0.584)",700:"oklch(52.5% 0.223 3.958)",800:"oklch(45.9% 0.187 3.815)",900:"oklch(40.8% 0.153 2.432)",950:"oklch(28.4% 0.109 3.907)"},rose:{50:"oklch(96.9% 0.015 12.422)",100:"oklch(94.1% 0.03 12.58)",200:"oklch(89.2% 0.058 10.001)",300:"oklch(81% 0.117 11.638)",400:"oklch(71.2% 0.194 13.428)",500:"oklch(64.5% 0.246 16.439)",600:"oklch(58.6% 0.253 17.585)",700:"oklch(51.4% 0.222 16.935)",800:"oklch(45.5% 0.188 13.697)",900:"oklch(41% 0.159 10.272)",950:"oklch(27.1% 0.105 12.094)"}};function Z(e){return{__BARE_VALUE__:e}}var _=Z(e=>{if($(e.value))return e.value}),V=Z(e=>{if($(e.value))return`${e.value}%`}),G=Z(e=>{if($(e.value))return`${e.value}px`}),Qt=Z(e=>{if($(e.value))return`${e.value}ms`}),Re=Z(e=>{if($(e.value))return`${e.value}deg`}),Zi=Z(e=>{if(e.fraction===null)return;let[r,t]=C(e.fraction,"/");if(!(!$(r)||!$(t)))return e.fraction}),Xt=Z(e=>{if($(Number(e.value)))return`repeat(${e.value}, minmax(0, 1fr))`}),Yi={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",...Zi},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>({...e("brightness"),...V}),backdropContrast:({theme:e})=>({...e("contrast"),...V}),backdropGrayscale:({theme:e})=>({...e("grayscale"),...V}),backdropHueRotate:({theme:e})=>({...e("hueRotate"),...Re}),backdropInvert:({theme:e})=>({...e("invert"),...V}),backdropOpacity:({theme:e})=>({...e("opacity"),...V}),backdropSaturate:({theme:e})=>({...e("saturate"),...V}),backdropSepia:({theme:e})=>({...e("sepia"),...V}),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({DEFAULT:"currentcolor",...e("colors")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>e("spacing"),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px",...G},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2",...V},caretColor:({theme:e})=>e("colors"),colors:()=>({...et}),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",..._},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2",...V},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>({...e("borderWidth"),...G}),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",..._},flexShrink:{0:"0",DEFAULT:"1",..._},fontFamily:{sans:["ui-sans-serif","system-ui","sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%",...V},grayscale:{0:"0",DEFAULT:"100%",...V},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",..._},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",..._},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",..._},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",..._},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))",...Xt},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))",...Xt},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",...Re},inset:({theme:e})=>({auto:"auto","1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%",...e("spacing")}),invert:{0:"0",DEFAULT:"100%",...V},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",..._},maxHeight:({theme:e})=>({none:"none",full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),maxWidth:({theme:e})=>({none:"none",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...e("spacing")}),minHeight:({theme:e})=>({full:"100%",screen:"100vh",svh:"100svh",lvh:"100lvh",dvh:"100dvh",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),minWidth:({theme:e})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",...e("spacing")}),objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",15:"0.15",20:"0.2",25:"0.25",30:"0.3",35:"0.35",40:"0.4",45:"0.45",50:"0.5",55:"0.55",60:"0.6",65:"0.65",70:"0.7",75:"0.75",80:"0.8",85:"0.85",90:"0.9",95:"0.95",100:"1",...V},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",..._},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},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",...G},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg",...Re},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2",...V},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",...V},screens:{sm:"40rem",md:"48rem",lg:"64rem",xl:"80rem","2xl":"96rem"},scrollMargin:({theme:e})=>e("spacing"),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%",...V},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",...Re},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",..._},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",...G},textIndent:({theme:e})=>e("spacing"),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px",...G},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",...Qt},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms",...Qt},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",..._}};var Ji=64;function L(e,r=[]){return{kind:"rule",selector:e,nodes:r}}function E(e,r="",t=[]){return{kind:"at-rule",name:e,params:r,nodes:t}}function K(e,r=[]){return e.charCodeAt(0)===Ji?me(e,r):L(e,r)}function z(e,r,t=!1){return{kind:"declaration",property:e,value:r,important:t}}function Xe(e){return{kind:"comment",value:e}}function U(e){switch(e.kind){case"rule":return{kind:e.kind,selector:e.selector,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"at-rule":return{kind:e.kind,name:e.name,params:e.params,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"at-root":return{kind:e.kind,nodes:e.nodes.map(U),src:e.src,dst:e.dst};case"context":return{kind:e.kind,context:{...e.context},nodes:e.nodes.map(U),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 y(e,r,t=[],i={}){for(let o=0;o<e.length;o++){let a=e[o],n=t[t.length-1]??null;if(a.kind==="context"){if(y(a.nodes,r,t,{...i,...a.context})===2)return 2;continue}t.push(a);let u=!1,l=0,s=r(a,{parent:n,context:i,path:t,replaceWith(p){u||(u=!0,Array.isArray(p)?p.length===0?(e.splice(o,1),l=0):p.length===1?(e[o]=p[0],l=1):(e.splice(o,1,...p),l=p.length):(e[o]=p,l=1))}})??0;if(t.pop(),u){s===0?o--:o+=l-1;continue}if(s===2)return 2;if(s!==1&&"nodes"in a){t.push(a);let p=y(a.nodes,r,t,i);if(t.pop(),p===2)return 2}}}function P(e,r){let t=0,i={file:null,code:""};function o(n,u=0){let l="",s=" ".repeat(u);if(n.kind==="declaration"){if(l+=`${s}${n.property}: ${n.value}${n.important?" !important":""};
|
|
12
|
+
`,r){t+=s.length;let p=t;t+=n.property.length,t+=2,t+=n.value?.length??0,n.important&&(t+=11);let c=t;t+=2,n.dst=[i,p,c]}}else if(n.kind==="rule"){if(l+=`${s}${n.selector} {
|
|
13
|
+
`,r){t+=s.length;let p=t;t+=n.selector.length,t+=1;let c=t;n.dst=[i,p,c],t+=2}for(let p of n.nodes)l+=o(p,u+1);l+=`${s}}
|
|
14
|
+
`,r&&(t+=s.length,t+=2)}else if(n.kind==="at-rule"){if(n.nodes.length===0){let p=`${s}${n.name} ${n.params};
|
|
15
|
+
`;if(r){t+=s.length;let c=t;t+=n.name.length,t+=1,t+=n.params.length;let f=t;t+=2,n.dst=[i,c,f]}return p}if(l+=`${s}${n.name}${n.params?` ${n.params} `:" "}{
|
|
16
|
+
`,r){t+=s.length;let p=t;t+=n.name.length,n.params&&(t+=1,t+=n.params.length),t+=1;let c=t;n.dst=[i,p,c],t+=2}for(let p of n.nodes)l+=o(p,u+1);l+=`${s}}
|
|
17
|
+
`,r&&(t+=s.length,t+=2)}else if(n.kind==="comment"){if(l+=`${s}/*${n.value}*/
|
|
18
|
+
`,r){t+=s.length;let p=t;t+=2+n.value.length+2;let c=t;n.dst=[i,p,c],t+=1}}else if(n.kind==="context"||n.kind==="at-root")return"";return l}let a="";for(let n of e)a+=o(n,0);return i.code=a,a}function Qi(e,r){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var t=e.length;if(t<=1)return e;var i="";if(t>4&&e[3]==="\\"){var o=e[2];(o==="?"||o===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),i="//")}var a=e.split(/[/\\]+/);return r!==!1&&a[a.length-1]===""&&a.pop(),i+a.join("/")}function tt(e){let r=Qi(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var it=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,er=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Xi=/(?:gradient|element|cross-fade|image)\(/,en=/^\s*data:/i,tn=/^([a-z]+:)?\/\//,rn=/^[A-Z_][.\w-]*\(/i,nn=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,on=/(?<!\\)"/g,ln=/(?: |\\t|\\n|\\f|\\r)+/g,an=e=>en.test(e),sn=e=>tn.test(e);async function tr({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let i=ge(e),o=[];function a(n){if(n[0]==="/")return n;let u=rt.posix.join(tt(r),n),l=rt.posix.relative(tt(t),u);return l.startsWith(".")||(l="./"+l),l}return y(i,n=>{if(n.kind!=="declaration"||!n.value)return;let u=it.test(n.value),l=er.test(n.value);if(u||l){let s=l?un:rr;o.push(s(n.value,a).then(p=>{n.value=p}))}}),o.length&&await Promise.all(o),P(i)}function rr(e,r){return nr(e,it,async t=>{let[i,o]=t;return await ir(o.trim(),i,r)})}async function un(e,r){return await nr(e,er,async t=>{let[,i]=t;return await cn(i,async({url:a})=>it.test(a)?await rr(a,r):Xi.test(a)?a:await ir(a,a,r))})}async function ir(e,r,t,i="url"){let o="",a=e[0];if((a==='"'||a==="'")&&(o=a,e=e.slice(1,-1)),fn(e))return r;let n=await t(e);return o===""&&n!==encodeURI(n)&&(o='"'),o==="'"&&n.includes("'")&&(o='"'),o==='"'&&n.includes('"')&&(n=n.replace(on,'\\"')),`${i}(${o}${n}${o})`}function fn(e,r){return sn(e)||an(e)||!e[0].match(/[\.a-zA-Z0-9_]/)||rn.test(e)}function cn(e,r){return Promise.all(pn(e).map(async({url:t,descriptor:i})=>({url:await r({url:t,descriptor:i}),descriptor:i}))).then(dn)}function pn(e){let r=e.trim().replace(ln," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(nn);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function dn(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function nr(e,r,t){let i,o=e,a="";for(;i=r.exec(o);)a+=o.slice(0,i.index),a+=await t(i),o=o.slice(i.index+i[0].length);return a+=o,a}function fr({base:e,from:r,polyfills:t,onDependency:i,shouldRewriteUrls:o,customCssResolver:a,customJsResolver:n}){return{base:e,polyfills:t,from:r,async loadModule(u,l){return pr(u,l,i,n)},async loadStylesheet(u,l){let s=await dr(u,l,i,a);return o&&(s.content=await tr({css:s.content,root:e,base:s.base})),s}}}async function cr(e,r){if(e.root&&e.root!=="none"){let t=/[*{]/,i=[];for(let a of e.root.pattern.split("/")){if(t.test(a))break;i.push(a)}if(!await ur.stat(he.resolve(r,i.join("/"))).then(a=>a.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist`)}}async function Bu(e,r){let t=await vn(e,fr(r));return await cr(t,r.base),t}async function qu(e,r){let t=await hn(e,fr(r));return await cr(t,r.base),t}async function Gu(e,{base:r}){return gn(e,{base:r,async loadModule(t,i){return pr(t,i,()=>{})},async loadStylesheet(t,i){return dr(t,i,()=>{})}})}async function pr(e,r,t,i){if(e[0]!=="."){let u=await sr(e,r,i);if(!u)throw new Error(`Could not resolve '${e}' from '${r}'`);let l=await ar(or(u).href);return{path:u,base:he.dirname(u),module:l.default??l}}let o=await sr(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);let[a,n]=await Promise.all([ar(or(o).href+"?id="+Date.now()),st(o)]);for(let u of n)t(u);return{path:o,base:he.dirname(o),module:a.default??a}}async function dr(e,r,t,i){let o=await kn(e,r,i);if(!o)throw new Error(`Could not resolve '${e}' from '${r}'`);if(t(o),typeof globalThis.__tw_readFile=="function"){let n=await globalThis.__tw_readFile(o,"utf-8");if(n)return{path:o,base:he.dirname(o),content:n}}let a=await ur.readFile(o,"utf-8");return{path:o,base:he.dirname(o),content:a}}var lr=null;async function ar(e){if(typeof globalThis.__tw_load=="function"){let r=await globalThis.__tw_load(e);if(r)return r}try{return await import(e)}catch{return lr??=mn(import.meta.url,{moduleCache:!1,fsCache:!1}),await lr.import(e)}}var lt=["node_modules",...process.env.NODE_PATH?[process.env.NODE_PATH]:[]],wn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:lt});async function kn(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return nt(wn,e,r)}var yn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","import"],modules:lt}),bn=te.ResolverFactory.createResolver({fileSystem:new te.CachedInputFileSystem(ot,4e3),useSyncFileSystemCalls:!0,extensions:[".js",".json",".node",".ts"],conditionNames:["node","require"],modules:lt});async function sr(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let i=globalThis.__tw_resolve(e,r);if(i)return Promise.resolve(i)}if(t){let i=await t(e,r);if(i)return i}return nt(yn,e,r).catch(()=>nt(bn,e,r))}function nt(e,r,t){return new Promise((i,o)=>e.resolve({},t,r,{},(a,n)=>{if(a)return o(a);i(n)}))}Symbol.dispose??=Symbol("Symbol.dispose");Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");var mr=class{constructor(r=t=>void process.stderr.write(`${t}
|
|
19
|
+
`)){this.defaultFlush=r}#r=new v(()=>({value:0}));#t=new v(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(o=>o.label).join("//"),i=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(i).value++,this.#t.get(i),this.#e.push({id:i,label:r,namespace:t,value:process.hrtime.bigint()})}end(r){let t=process.hrtime.bigint();if(this.#e[this.#e.length-1].label!==r)throw new Error(`Mismatched timer label: \`${r}\`, expected \`${this.#e[this.#e.length-1].label}\``);let i=this.#e.pop(),o=t-i.value;this.#t.get(i.id).value+=o}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],i=!1;for(let n=this.#e.length-1;n>=0;n--)this.end(this.#e[n].label);for(let[n,{value:u}]of this.#r.entries()){if(this.#t.has(n))continue;t.length===0&&(i=!0,t.push("Hits:"));let l=n.split("//").length;t.push(`${" ".repeat(l)}${n} ${Pe(gr(`\xD7 ${u}`))}`)}this.#t.size>0&&i&&t.push(`
|
|
20
|
+
Timers:`);let o=-1/0,a=new Map;for(let[n,{value:u}]of this.#t){let l=`${(Number(u)/1e6).toFixed(2)}ms`;a.set(n,l),o=Math.max(o,l.length)}for(let n of this.#t.keys()){let u=n.split("//").length;t.push(`${Pe(`[${a.get(n).padStart(o," ")}]`)}${" ".repeat(u-1)}${u===1?" ":Pe(" \u21B3 ")}${n.split("//").pop()} ${this.#r.get(n).value===1?"":Pe(gr(`\xD7 ${this.#r.get(n).value}`))}`.trimEnd())}r(`
|
|
21
|
+
${t.join(`
|
|
14
22
|
`)}
|
|
15
|
-
`),this.reset()}[Symbol.dispose](){
|
|
23
|
+
`),this.reset()}[Symbol.dispose](){Ue&&this.report()}};function Pe(e){return`\x1B[2m${e}\x1B[22m`}function gr(e){return`\x1B[34m${e}\x1B[39m`}import xn from"@jridgewell/remapping";import{Features as ve,transform as An}from"lightningcss";import Cn from"magic-string";function ef(e,{file:r="input.css",minify:t=!1,map:i}={}){function o(l,s){return An({filename:r,code:l,minify:t,sourceMap:typeof s<"u",inputSourceMap:s,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:ve.Nesting|ve.MediaQueries,exclude:ve.LogicalProperties|ve.DirSelector|ve.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let a=o(Buffer.from(e),i);if(i=a.map?.toString(),a.warnings=a.warnings.filter(l=>!/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(l.message)),a.warnings.length>0){let l=e.split(`
|
|
24
|
+
`),s=[`Found ${a.warnings.length} ${a.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of a.warnings.entries()){s.push(""),a.warnings.length>1&&s.push(`Issue #${p+1}:`);let f=2,d=Math.max(0,c.loc.line-f-1),m=Math.min(l.length,c.loc.line+f),g=l.slice(d,m).map((h,k)=>d+k+1===c.loc.line?`${we("\u2502")} ${h}`:we(`\u2502 ${h}`));g.splice(c.loc.line-d,0,`${we("\u2506")}${" ".repeat(c.loc.column-1)} ${Sn(`${we("^--")} ${c.message}`)}`,`${we("\u2506")}`),s.push(...g)}s.push(""),console.warn(s.join(`
|
|
25
|
+
`))}a=o(a.code,i),i=a.map?.toString();let n=a.code.toString(),u=new Cn(n);if(u.replaceAll("@media not (","@media not all and ("),i!==void 0&&u.hasChanged()){let l=u.generateMap({source:"original",hires:"boundary"}).toString();i=xn([l,i],()=>null).toString()}return n=u.toString(),{code:n,map:i}}function we(e){return`\x1B[2m${e}\x1B[22m`}function Sn(e){return`\x1B[33m${e}\x1B[39m`}import{SourceMapGenerator as $n}from"source-map-js";function Vn(e){let r=new $n,t=1,i=new v(o=>({url:o?.url??`<unknown ${t++}>`,content:o?.content??"<none>"}));for(let o of e.mappings){let a=i.get(o.originalPosition?.source??null);r.addMapping({generated:o.generatedPosition,original:o.originalPosition,source:a.url,name:o.name}),r.setSourceContent(a.url,a.content)}return r.toString()}function of(e){let r=typeof e=="string"?e:Vn(e);return{raw:r,get inline(){let t="";return t+="/*# sourceMappingURL=data:application/json;base64,",t+=Buffer.from(r,"utf-8").toString("base64"),t+=` */
|
|
26
|
+
`,t}}}if(!process.versions.bun){let e=Oe.createRequire(import.meta.url);Oe.register?.(Nn(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{Mu as Features,mr as Instrumentation,Fu as Polyfills,Gu as __unstable__loadDesignSystem,qu as compile,Bu as compileAst,Ie as env,pr as loadModule,tt as normalizePath,ef as optimize,of as toSourceMap};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/node",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.fc63ce7",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,9 +33,13 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
36
|
+
"@jridgewell/remapping": "^2.3.4",
|
|
37
|
+
"enhanced-resolve": "^5.18.3",
|
|
38
|
+
"jiti": "^2.6.0",
|
|
39
|
+
"lightningcss": "1.30.1",
|
|
40
|
+
"magic-string": "^0.30.19",
|
|
41
|
+
"source-map-js": "^1.2.1",
|
|
42
|
+
"tailwindcss": "0.0.0-insiders.fc63ce7"
|
|
39
43
|
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"build": "tsup-node",
|