初始化了 Vue3 脚手架,开始了初步的 WWW 迁移(未完成)
This commit is contained in:
commit
eb53370c43
8714 files changed
+1751206
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Tailwind Labs, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<p align="center">
|
||||
<a href="https://tailwindcss.com" target="_blank">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-dark.svg">
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg">
|
||||
<img alt="Tailwind CSS" src="https://raw.githubusercontent.com/tailwindlabs/tailwindcss/HEAD/.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
|
||||
</picture>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
A utility-first CSS framework for rapidly building custom user interfaces.
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/actions"><img src="https://img.shields.io/github/actions/workflow/status/tailwindlabs/tailwindcss/ci.yml?branch=main" alt="Build Status"></a>
|
||||
<a href="https://www.npmjs.com/package/tailwindcss"><img src="https://img.shields.io/npm/dt/tailwindcss.svg" alt="Total Downloads"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/releases"><img src="https://img.shields.io/npm/v/tailwindcss.svg" alt="Latest Release"></a>
|
||||
<a href="https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss.svg" alt="License"></a>
|
||||
</p>
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
For full documentation, visit [tailwindcss.com](https://tailwindcss.com).
|
||||
|
||||
## Community
|
||||
|
||||
For help, discussion about best practices, or feature ideas:
|
||||
|
||||
[Discuss Tailwind CSS on GitHub](https://github.com/tailwindlabs/tailwindcss/discussions)
|
||||
|
||||
## Contributing
|
||||
|
||||
If you're interested in contributing to Tailwind CSS, please read our [contributing docs](https://github.com/tailwindlabs/tailwindcss/blob/main/.github/CONTRIBUTING.md) **before submitting a pull request**.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import { ResolveHook, ResolveHookSync } from 'node:module';
|
||||
|
||||
declare let resolve: ResolveHook;
|
||||
declare let resolveSync: ResolveHookSync;
|
||||
|
||||
export { resolve, resolveSync };
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{isBuiltin as a}from"module";var u=async(r,e,o)=>{let t=await o(r,e);return l(e,t)},i=(r,e,o)=>{let t=o(r,e);return l(e,t)};function l(r,e){try{if(e.url===import.meta.url||a(e.url)||!r.parentURL)return e;let t=new URL(r.parentURL).searchParams.get("id");if(t===null)return e;let n=new URL(e.url);return n.searchParams.set("id",t),{...e,url:`${n}`}}catch{return e}}export{u as resolve,i as resolveSync};
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
import { AstNode as AstNode$1 } from './ast';
|
||||
import { Candidate, Variant } from './candidate';
|
||||
import { compileAstNodes } from './compile';
|
||||
import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
|
||||
import { Theme } from './theme';
|
||||
import { Utilities } from './utilities';
|
||||
import { Variants } from './variants';
|
||||
import * as tailwindcss from 'tailwindcss';
|
||||
import { Polyfills, Features } from 'tailwindcss';
|
||||
export { Features, Polyfills } from 'tailwindcss';
|
||||
|
||||
declare const DEBUG: boolean;
|
||||
|
||||
declare const env_DEBUG: typeof DEBUG;
|
||||
declare namespace env {
|
||||
export { env_DEBUG as DEBUG };
|
||||
}
|
||||
|
||||
declare const enum CompileAstFlags {
|
||||
None = 0,
|
||||
RespectImportant = 1
|
||||
}
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
||||
printCandidate(candidate: Candidate): string;
|
||||
printVariant(variant: Variant): string;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
candidatesToAst(classes: string[]): AstNode$1[][];
|
||||
storage: Record<symbol, unknown>;
|
||||
};
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
/**
|
||||
* Line offset tables are the key to generating our source maps. They allow us
|
||||
* to store indexes with our AST nodes and later convert them into positions as
|
||||
* when given the source that the indexes refer to.
|
||||
*/
|
||||
/**
|
||||
* A position in source code
|
||||
*
|
||||
* https://tc39.es/ecma426/#sec-position-record-type
|
||||
*/
|
||||
interface Position {
|
||||
/** The line number, one-based */
|
||||
line: number;
|
||||
/** The column/character number, one-based */
|
||||
column: number;
|
||||
}
|
||||
|
||||
interface OriginalPosition extends Position {
|
||||
source: DecodedSource;
|
||||
}
|
||||
/**
|
||||
* A "decoded" sourcemap
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
||||
*/
|
||||
interface DecodedSourceMap {
|
||||
file: string | null;
|
||||
sources: DecodedSource[];
|
||||
mappings: DecodedMapping[];
|
||||
}
|
||||
/**
|
||||
* A "decoded" source
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-record
|
||||
*/
|
||||
interface DecodedSource {
|
||||
url: string | null;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
}
|
||||
/**
|
||||
* A "decoded" mapping
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
||||
*/
|
||||
interface DecodedMapping {
|
||||
originalPosition: OriginalPosition | null;
|
||||
generatedPosition: Position;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
||||
interface CompileOptions {
|
||||
base: string;
|
||||
from?: string;
|
||||
onDependency: (path: string) => void;
|
||||
shouldRewriteUrls?: boolean;
|
||||
polyfills?: Polyfills;
|
||||
customCssResolver?: Resolver;
|
||||
customJsResolver?: Resolver;
|
||||
}
|
||||
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
declare function compile(css: string, options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
||||
base: string;
|
||||
}): Promise<DesignSystem>;
|
||||
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
module: any;
|
||||
}>;
|
||||
|
||||
declare class Instrumentation implements Disposable {
|
||||
#private;
|
||||
private shouldReport;
|
||||
private defaultFlush;
|
||||
constructor(shouldReport?: boolean, defaultFlush?: (message: string) => undefined);
|
||||
hit(label: string): void;
|
||||
start(label: string): void;
|
||||
end(label: string): void;
|
||||
track(label: string): {
|
||||
[Symbol.dispose]: () => void;
|
||||
[Symbol.asyncDispose]: () => void;
|
||||
};
|
||||
span<T>(label: string, fn: () => T): T;
|
||||
reset(): void;
|
||||
report(flush?: (message: string) => undefined): void;
|
||||
[Symbol.dispose](): void;
|
||||
}
|
||||
|
||||
declare function normalizePath(originalPath: string): string;
|
||||
|
||||
interface OptimizeOptions {
|
||||
/**
|
||||
* The file being transformed
|
||||
*/
|
||||
file?: string;
|
||||
/**
|
||||
* Enabled minified output
|
||||
*/
|
||||
minify?: boolean;
|
||||
/**
|
||||
* The output source map before optimization
|
||||
*
|
||||
* If omitted a resulting source map will not be available
|
||||
*/
|
||||
map?: string;
|
||||
}
|
||||
interface TransformResult {
|
||||
code: string;
|
||||
map: string | undefined;
|
||||
}
|
||||
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
||||
|
||||
interface SourceMap {
|
||||
readonly raw: string;
|
||||
readonly inline: string;
|
||||
comment(url: string): string;
|
||||
}
|
||||
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
||||
|
||||
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 };
|
||||
+262
@@ -0,0 +1,262 @@
|
||||
import { AstNode as AstNode$1 } from './ast';
|
||||
import { Candidate, Variant } from './candidate';
|
||||
import { compileAstNodes } from './compile';
|
||||
import { ClassEntry, VariantEntry, CanonicalizeOptions } from './intellisense';
|
||||
import { Theme } from './theme';
|
||||
import { Utilities } from './utilities';
|
||||
import { Variants } from './variants';
|
||||
import * as tailwindcss from 'tailwindcss';
|
||||
import { Polyfills, Features } from 'tailwindcss';
|
||||
export { Features, Polyfills } from 'tailwindcss';
|
||||
|
||||
declare const DEBUG: boolean;
|
||||
|
||||
declare const env_DEBUG: typeof DEBUG;
|
||||
declare namespace env {
|
||||
export { env_DEBUG as DEBUG };
|
||||
}
|
||||
|
||||
declare const enum CompileAstFlags {
|
||||
None = 0,
|
||||
RespectImportant = 1
|
||||
}
|
||||
type DesignSystem = {
|
||||
theme: Theme;
|
||||
utilities: Utilities;
|
||||
variants: Variants;
|
||||
invalidCandidates: Set<string>;
|
||||
important: boolean;
|
||||
getClassOrder(classes: string[]): [string, bigint | null][];
|
||||
getClassList(): ClassEntry[];
|
||||
getVariants(): VariantEntry[];
|
||||
parseCandidate(candidate: string): Readonly<Candidate>[];
|
||||
parseVariant(variant: string): Readonly<Variant> | null;
|
||||
compileAstNodes(candidate: Candidate, flags?: CompileAstFlags): ReturnType<typeof compileAstNodes>;
|
||||
printCandidate(candidate: Candidate): string;
|
||||
printVariant(variant: Variant): string;
|
||||
getVariantOrder(): Map<Variant, number>;
|
||||
resolveThemeValue(path: string, forceInline?: boolean): string | undefined;
|
||||
trackUsedVariables(raw: string): void;
|
||||
canonicalizeCandidates(candidates: string[], options?: CanonicalizeOptions): string[];
|
||||
candidatesToCss(classes: string[]): (string | null)[];
|
||||
candidatesToAst(classes: string[]): AstNode$1[][];
|
||||
storage: Record<symbol, unknown>;
|
||||
};
|
||||
|
||||
/**
|
||||
* The source code for one or more nodes in the AST
|
||||
*
|
||||
* This generally corresponds to a stylesheet
|
||||
*/
|
||||
interface Source {
|
||||
/**
|
||||
* The path to the file that contains the referenced source code
|
||||
*
|
||||
* If this references the *output* source code, this is `null`.
|
||||
*/
|
||||
file: string | null;
|
||||
/**
|
||||
* The referenced source code
|
||||
*/
|
||||
code: string;
|
||||
}
|
||||
/**
|
||||
* The file and offsets within it that this node covers
|
||||
*
|
||||
* This can represent either:
|
||||
* - A location in the original CSS which caused this node to be created
|
||||
* - A location in the output CSS where this node resides
|
||||
*/
|
||||
type SourceLocation = [source: Source, start: number, end: number];
|
||||
|
||||
/**
|
||||
* Line offset tables are the key to generating our source maps. They allow us
|
||||
* to store indexes with our AST nodes and later convert them into positions as
|
||||
* when given the source that the indexes refer to.
|
||||
*/
|
||||
/**
|
||||
* A position in source code
|
||||
*
|
||||
* https://tc39.es/ecma426/#sec-position-record-type
|
||||
*/
|
||||
interface Position {
|
||||
/** The line number, one-based */
|
||||
line: number;
|
||||
/** The column/character number, one-based */
|
||||
column: number;
|
||||
}
|
||||
|
||||
interface OriginalPosition extends Position {
|
||||
source: DecodedSource;
|
||||
}
|
||||
/**
|
||||
* A "decoded" sourcemap
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-map-record
|
||||
*/
|
||||
interface DecodedSourceMap {
|
||||
file: string | null;
|
||||
sources: DecodedSource[];
|
||||
mappings: DecodedMapping[];
|
||||
}
|
||||
/**
|
||||
* A "decoded" source
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-source-record
|
||||
*/
|
||||
interface DecodedSource {
|
||||
url: string | null;
|
||||
content: string | null;
|
||||
ignore: boolean;
|
||||
}
|
||||
/**
|
||||
* A "decoded" mapping
|
||||
*
|
||||
* @see https://tc39.es/ecma426/#decoded-mapping-record
|
||||
*/
|
||||
interface DecodedMapping {
|
||||
originalPosition: OriginalPosition | null;
|
||||
generatedPosition: Position;
|
||||
name: string | null;
|
||||
}
|
||||
|
||||
type StyleRule = {
|
||||
kind: 'rule';
|
||||
selector: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type AtRule = {
|
||||
kind: 'at-rule';
|
||||
name: string;
|
||||
params: string;
|
||||
nodes: AstNode[];
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Declaration = {
|
||||
kind: 'declaration';
|
||||
property: string;
|
||||
value: string | undefined;
|
||||
important: boolean;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Comment = {
|
||||
kind: 'comment';
|
||||
value: string;
|
||||
src?: SourceLocation;
|
||||
dst?: SourceLocation;
|
||||
};
|
||||
type Context = {
|
||||
kind: 'context';
|
||||
context: Record<string, string | boolean>;
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AtRoot = {
|
||||
kind: 'at-root';
|
||||
nodes: AstNode[];
|
||||
src?: undefined;
|
||||
dst?: undefined;
|
||||
};
|
||||
type AstNode = StyleRule | AtRule | Declaration | Comment | Context | AtRoot;
|
||||
|
||||
type Resolver = (id: string, base: string) => Promise<string | false | undefined>;
|
||||
interface CompileOptions {
|
||||
base: string;
|
||||
from?: string;
|
||||
onDependency: (path: string) => void;
|
||||
shouldRewriteUrls?: boolean;
|
||||
polyfills?: Polyfills;
|
||||
customCssResolver?: Resolver;
|
||||
customJsResolver?: Resolver;
|
||||
}
|
||||
declare function compileAst(ast: AstNode[], options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): AstNode[];
|
||||
}>;
|
||||
declare function compile(css: string, options: CompileOptions): Promise<{
|
||||
sources: {
|
||||
base: string;
|
||||
pattern: string;
|
||||
negated: boolean;
|
||||
}[];
|
||||
root: "none" | {
|
||||
base: string;
|
||||
pattern: string;
|
||||
} | null;
|
||||
features: Features;
|
||||
build(candidates: string[]): string;
|
||||
buildSourceMap(): tailwindcss.DecodedSourceMap;
|
||||
}>;
|
||||
declare function __unstable__loadDesignSystem(css: string, { base }: {
|
||||
base: string;
|
||||
}): Promise<DesignSystem>;
|
||||
declare function loadModule(id: string, base: string, onDependency: (path: string) => void, customJsResolver?: Resolver): Promise<{
|
||||
path: string;
|
||||
base: string;
|
||||
module: any;
|
||||
}>;
|
||||
|
||||
declare class Instrumentation implements Disposable {
|
||||
#private;
|
||||
private shouldReport;
|
||||
private defaultFlush;
|
||||
constructor(shouldReport?: boolean, defaultFlush?: (message: string) => undefined);
|
||||
hit(label: string): void;
|
||||
start(label: string): void;
|
||||
end(label: string): void;
|
||||
track(label: string): {
|
||||
[Symbol.dispose]: () => void;
|
||||
[Symbol.asyncDispose]: () => void;
|
||||
};
|
||||
span<T>(label: string, fn: () => T): T;
|
||||
reset(): void;
|
||||
report(flush?: (message: string) => undefined): void;
|
||||
[Symbol.dispose](): void;
|
||||
}
|
||||
|
||||
declare function normalizePath(originalPath: string): string;
|
||||
|
||||
interface OptimizeOptions {
|
||||
/**
|
||||
* The file being transformed
|
||||
*/
|
||||
file?: string;
|
||||
/**
|
||||
* Enabled minified output
|
||||
*/
|
||||
minify?: boolean;
|
||||
/**
|
||||
* The output source map before optimization
|
||||
*
|
||||
* If omitted a resulting source map will not be available
|
||||
*/
|
||||
map?: string;
|
||||
}
|
||||
interface TransformResult {
|
||||
code: string;
|
||||
map: string | undefined;
|
||||
}
|
||||
declare function optimize(input: string, { file, minify, map }?: OptimizeOptions): TransformResult;
|
||||
|
||||
interface SourceMap {
|
||||
readonly raw: string;
|
||||
readonly inline: string;
|
||||
comment(url: string): string;
|
||||
}
|
||||
declare function toSourceMap(map: DecodedSourceMap | string): SourceMap;
|
||||
|
||||
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 };
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
"use strict";var Mt=Object.create;var ae=Object.defineProperty;var Ft=Object.getOwnPropertyDescriptor;var jt=Object.getOwnPropertyNames;var Wt=Object.getPrototypeOf,Bt=Object.prototype.hasOwnProperty;var je=(e,r)=>{for(var t in r)ae(e,t,{get:r[t],enumerable:!0})},We=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of jt(r))!Bt.call(e,i)&&i!==t&&ae(e,i,{get:()=>r[i],enumerable:!(n=Ft(r,i))||n.enumerable});return e};var N=(e,r,t)=>(t=e!=null?Mt(Wt(e)):{},We(r||!e||!e.__esModule?ae(t,"default",{value:e,enumerable:!0}):t,e)),Ht=e=>We(ae({},"__esModule",{value:!0}),e);var wn={};je(wn,{Features:()=>_.Features,Instrumentation:()=>Fe,Polyfills:()=>_.Polyfills,__unstable__loadDesignSystem:()=>un,compile:()=>sn,compileAst:()=>an,env:()=>se,loadModule:()=>Ke,normalizePath:()=>ve,optimize:()=>gn,toSourceMap:()=>kn});module.exports=Ht(wn);var le=N(require("module")),Kt=require("url");var se={};je(se,{DEBUG:()=>be});var be=Yt(process.env.DEBUG);function Yt(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 Be=require("module"),qt={};var He=(e,r,t)=>{let n=t(e,r);return Gt(r,n)};function Gt(e,r){try{if(r.url===qt.url||(0,Be.isBuiltin)(r.url)||!e.parentURL)return r;let n=new URL(e.parentURL).searchParams.get("id");if(n===null)return r;let i=new URL(r.url);return i.searchParams.set("id",n),{...r,url:`${i}`}}catch{return r}}var W=N(require("enhanced-resolve")),Pt=require("jiti"),ke=N(require("fs")),ze=N(require("fs/promises")),q=N(require("path")),Ue=require("url"),_=require("tailwindcss");var ue=N(require("fs/promises")),H=N(require("path")),Zt=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Qt=[".js",".cjs",".mjs"],Jt=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Xt=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function er(e,r){for(let t of r){let n=`${e}${t}`;if((await ue.default.stat(n).catch(()=>null))?.isFile())return n}for(let t of r){let n=`${e}/index${t}`;if(await ue.default.access(n).then(()=>!0,()=>!1))return n}return null}async function Ye(e,r,t,n){let i=Qt.includes(n)?Jt:Xt,l=await er(H.default.resolve(t,r),i);if(l===null||e.has(l))return;e.add(l),t=H.default.dirname(l),n=H.default.extname(l);let o=await ue.default.readFile(l,"utf-8"),s=[];for(let a of Zt)for(let u of o.matchAll(a))u[1].startsWith(".")&&s.push(Ye(e,u[1],t,n));await Promise.all(s)}async function Ge(e){let r=new Set;return await Ye(r,e,H.default.dirname(e),H.default.extname(e)),Array.from(r)}var De=N(require("path"));function Y(e){return{kind:"word",value:e}}function tr(e,r){return{kind:"function",value:e,nodes:r}}function rr(e){return{kind:"separator",value:e}}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 qe=92,nr=41,Ze=58,Qe=44,ir=34,Je=61,Xe=62,et=60,tt=10,or=40,lr=39,ar=47,rt=32,nt=9;function b(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],n=null,i="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case qe:{i+=e[o]+e[o+1],o++;break}case ar:{if(i.length>0){let u=Y(i);n?n.nodes.push(u):r.push(u),i=""}let a=Y(e[o]);n?n.nodes.push(a):r.push(a);break}case Ze:case Qe:case Je:case Xe:case et:case tt:case rt:case nt:{if(i.length>0){let c=Y(i);n?n.nodes.push(c):r.push(c),i=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Ze&&l!==Qe&&l!==Je&&l!==Xe&&l!==et&&l!==tt&&l!==rt&&l!==nt));u++);o=u-1;let p=rr(e.slice(a,u));n?n.nodes.push(p):r.push(p);break}case lr:case ir:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===qe)u+=1;else if(l===s){o=u;break}i+=e.slice(a,o+1);break}case or:{let a=tr(i,[]);i="",n?n.nodes.push(a):r.push(a),t.push(a),n=a;break}case nr:{let a=t.pop();if(i.length>0){let u=Y(i);a?.nodes.push(u),i=""}t.length>0?n=t[t.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&r.push(Y(i)),r}var h=class extends Map{constructor(t){super();this.factory=t}factory;get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t,this),this.set(t,n)),n}};var Tn=new Uint8Array(256);var ce=new Uint8Array(256);function w(e,r){let t=0,n=[],i=0,l=e.length,o=r.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(t===0&&a===o){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:ce[t]=41,t++;break;case 91:ce[t]=93,t++;break;case 123:ce[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===ce[t-1]&&t--;break}}return n.push(e.slice(i)),n}var ye=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(ye||{}),v={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function g(e,r){typeof r=="function"?it(e,r):it(e,r.enter,r.exit)}function it(e,r=()=>v.Continue,t=()=>v.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let l=[],o=n;for(;o;){let s=o.value[2];s&&l.push(s),o=o.prev}return l.reverse(),l}};for(;n!==null;){let l=n.value,o=l[0],s=l[1],a=l[2];if(s>=o.length){n=n.prev,i.depth-=1;continue}if(i.parent=a,i.siblings=o,s>=0){i.index=s;let f=o[s],d=r(f,i)??v.Continue;switch(d.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),l[1]=~s;continue}case 2:return;case 1:{l[1]=~s;continue}case 3:{o.splice(s,1,...d.nodes);continue}case 5:{o.splice(s,1,...d.nodes);return}case 4:{o.splice(s,1,...d.nodes),l[1]+=d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${ye[d.kind]??`Unknown(${d.kind})`}\` in enter.`)}}let u=~s;i.index=u;let p=o[u],c=t(p,i)??v.Continue;switch(c.kind){case 0:l[1]=u+1;continue;case 2:return;case 3:{o.splice(u,1,...c.nodes),l[1]=u+c.nodes.length;continue}case 5:{o.splice(u,1,...c.nodes);return}case 4:{o.splice(u,1,...c.nodes),l[1]=u+c.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${ye[c.kind]??`Unknown(${c.kind})`}\` in exit.`)}}}var Ln=new h(e=>{let r=b(e),t=new Set,n=new Set(["~",">","+","-","*","/"]);return g(r,(i,l)=>{if(i.kind==="word"&&n.has(i.value)){let o=l.index;if(o===-1)return;let s=l.siblings[o-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l.siblings[o+1];if(a?.kind!=="separator"||a.value!==" ")return;let u=l.siblings[o-2];if(u&&n.has(u.value))return;let p=l.siblings[o+2];if(p&&n.has(p.value))return;t.add(s),t.add(a)}else if(i.kind==="separator"&&i.value.length>0&&i.value.trim()==="")(l.siblings[0]===i||l.siblings[l.siblings.length-1]===i)&&t.add(i);else if(i.kind==="separator"&&i.value.trim()===",")i.value=",";else if(i.kind==="function"&&i.value.startsWith("--")){let o=l.index;if(o<=0)return;let s=l.siblings[o-1];if(s?.kind==="separator"&&s.value===",")return;let a=l.siblings[o-2];return a&&!n.has(a.value)?void 0:v.ReplaceSkip({kind:"function",value:"",nodes:[i]})}}),t.size>0&&g(r,i=>{if(t.has(i))return t.delete(i),v.ReplaceSkip([])}),xe(r),A(r)});var zn=new h(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 xe(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Z(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Z(r.value);for(let t=0;t<r.nodes.length;t++)xe([r.nodes[t]]);break}r.value=Z(r.value),xe(r.nodes);break}case"separator":r.value=Z(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=Z(r.value));break}default:ur(r)}}var Kn=new h(e=>{let r=b(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function ur(e){throw new Error(`Unexpected value: ${e}`)}function Z(e){retLine truncated
|
||||
`,r){t+=u.length;let p=t;t+=o.property.length,t+=2,t+=o.value?.length??0,o.important&&(t+=11);let c=t;t+=2,o.dst=[n,p,c]}}else if(o.kind==="rule"){if(a+=`${u}${o.selector} {
|
||||
`,r){t+=u.length;let p=t;t+=o.selector.length,t+=1;let c=t;o.dst=[n,p,c],t+=2}for(let p of o.nodes)a+=i(p,s+1);a+=`${u}}
|
||||
`,r&&(t+=u.length,t+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let p=`${u}${o.name} ${o.params};
|
||||
`;if(r){t+=u.length;let c=t;t+=o.name.length,t+=1,t+=o.params.length;let f=t;t+=2,o.dst=[n,c,f]}return p}if(a+=`${u}${o.name}${o.params?` ${o.params} `:" "}{
|
||||
`,r){t+=u.length;let p=t;t+=o.name.length,o.params&&(t+=1,t+=o.params.length),t+=1;let c=t;o.dst=[n,p,c],t+=2}for(let p of o.nodes)a+=i(p,s+1);a+=`${u}}
|
||||
`,r&&(t+=u.length,t+=2)}else if(o.kind==="comment"){if(a+=`${u}/*${o.value}*/
|
||||
`,r){t+=u.length;let p=t;t+=2+o.value.length+2;let c=t;o.dst=[n,p,c],t+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return a}let l="";for(let o of e)l+=i(o,0);return n.code=l,l}function Br(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 n="";if(t>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var l=e.split(/[/\\]+/);return r!==!1&&l[l.length-1]===""&&l.pop(),n+l.join("/")}function ve(e){let r=Br(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var Ie=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,Ct=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Hr=/(?:gradient|element|cross-fade|image)\(/,Yr=/^\s*data:/i,Gr=/^([a-z]+:)?\/\//,qr=/^[A-Z_][.\w-]*\(/i,Zr=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Qr=/(?<!\\)"/g,Jr=/(?: |\\t|\\n|\\f|\\r)+/g,Xr=e=>Yr.test(e),en=e=>Gr.test(e);async function St({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let n=ie(e),i=[];function l(o){if(o[0]==="/")return o;let s=De.posix.join(ve(r),o),a=De.posix.relative(ve(t),s);return a.startsWith(".")||(a="./"+a),a}return g(n,o=>{if(o.kind!=="declaration"||!o.value)return;let s=Ie.test(o.value),a=Ct.test(o.value);if(s||a){let u=a?tn:$t;i.push(u(o.value,l).then(p=>{o.value=p}))}}),i.length&&await Promise.all(i),F(n)}function $t(e,r){return Et(e,Ie,async t=>{let[n,i]=t;return await Tt(i.trim(),n,r)})}async function tn(e,r){return await Et(e,Ct,async t=>{let[,n]=t;return await nn(n,async({url:l})=>Ie.test(l)?await $t(l,r):Hr.test(l)?l:await Tt(l,l,r))})}async function Tt(e,r,t,n="url"){let i="",l=e[0];if((l==='"'||l==="'")&&(i=l,e=e.slice(1,-1)),rn(e))return r;let o=await t(e);return i===""&&o!==encodeURI(o)&&(i='"'),i==="'"&&o.includes("'")&&(i='"'),i==='"'&&o.includes('"')&&(o=o.replace(Qr,'\\"')),`${n}(${i}${o}${i})`}function rn(e,r){return en(e)||Xr(e)||!e[0].match(/[.a-zA-Z0-9_]/)||qr.test(e)}function nn(e,r){return Promise.all(on(e).map(async({url:t,descriptor:n})=>({url:await r({url:t,descriptor:n}),descriptor:n}))).then(ln)}function on(e){let r=e.trim().replace(Jr," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Zr);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function ln(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function Et(e,r,t){let n,i=e,l="";for(;n=r.exec(i);)l+=i.slice(0,n.index),l+=await t(n),i=i.slice(n.index+n[0].length);return l+=i,l}var mn={};function Ot({base:e,from:r,polyfills:t,onDependency:n,shouldRewriteUrls:i,customCssResolver:l,customJsResolver:o}){return{base:e,polyfills:t,from:r,async loadModule(s,a){return Ke(s,a,n,o)},async loadStylesheet(s,a){let u=await Dt(s,a,n,l);return i&&(u.content=await St({css:u.content,root:e,base:u.base})),u}}}async function _t(e){if(e.root&&e.root!=="none"){let r=/[*{]/,t=[];for(let i of e.root.pattern.split("/")){if(r.test(i))break;t.push(i)}if(!await ze.default.stat(q.default.resolve(e.root.base,t.join("/"))).then(i=>i.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist or is not a directory.`)}}async function an(e,r){let t=await(0,_.compileAst)(e,Ot(r));return await _t(t),t}async function sn(e,r){let t=await(0,_.compile)(e,Ot(r));return await _t(t),t}async function un(e,{base:r}){return(0,_.__unstable__loadDesignSystem)(e,{base:r,async loadModule(t,n){return Ke(t,n,()=>{})},async loadStylesheet(t,n){return Dt(t,n,()=>{})}})}async function Ke(e,r,t,n){if(e[0]!=="."){let s=await Rt(e,r,n);if(!s)throw new Error(`Could not resolve '${e}' from '${r}'`);let a=await Vt((0,Ue.pathToFileURL)(s).href);return{path:s,base:q.default.dirname(s),module:a.default??a}}let i=await Rt(e,r,n);if(!i)throw new Error(`Could not resolve '${e}' from '${r}'`);let[l,o]=await Promise.all([Vt((0,Ue.pathToFileURL)(i).href+"?id="+Date.now()),Ge(i)]);for(let s of o)t(s);return{path:i,base:q.default.dirname(i),module:l.default??l}}async function Dt(e,r,t,n){let i=await fn(e,r,n);if(!i)throw new Error(`Could not resolve '${e}' from '${r}'`);t(i);let l=await ze.default.readFile(i,"utf-8");return{path:i,base:q.default.dirname(i),content:l}}var Nt=null;async function Vt(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 Nt??=(0,Pt.createJiti)(mn.url,{moduleCache:!1,fsCache:!1}),await Nt.import(e)}}var Me=["node_modules",...process.env.NODE_PATH?[...process.env.NODE_PATH.split(q.default.delimiter)]:[]],cn=W.default.ResolverFactory.createResolver({fileSystem:new W.default.CachedInputFileSystem(ke.default,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:Me});async function fn(eLine truncated
|
||||
`)}){this.shouldReport=r;this.defaultFlush=t}shouldReport;defaultFlush;#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(i=>i.label).join("//"),n=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(n).value++,this.#t.get(n),this.#e.push({id:n,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 n=this.#e.pop(),i=t-n.value;this.#t.get(n.id).value+=i}track(r){this.start(r);let t=!1;return{[Symbol.dispose]:()=>{t||(this.end(r),t=!0)},[Symbol.asyncDispose]:()=>{t||(this.end(r),t=!0)}}}span(r,t){this.start(r);let n=!1;try{let i=t();return n=i&&typeof i.then=="function",n?i.finally(()=>this.end(r)):i}finally{n||this.end(r)}}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],n=!1;for(let o=this.#e.length-1;o>=0;o--)this.end(this.#e[o].label);for(let[o,{value:s}]of this.#r.entries()){if(this.#t.has(o))continue;t.length===0&&(n=!0,t.push("Hits:"));let a=o.split("//").length;t.push(`${" ".repeat(a)}${o} ${we(It(`\xD7 ${s}`))}`)}this.#t.size>0&&n&&t.push(`
|
||||
Timers:`);let i=-1/0,l=new Map;for(let[o,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(o,a),i=Math.max(i,a.length)}for(let o of this.#t.keys()){let s=o.split("//").length;t.push(`${we(`[${l.get(o).padStart(i," ")}]`)}${" ".repeat(s-1)}${s===1?" ":we(" \u21B3 ")}${o.split("//").pop()} ${this.#r.get(o).value===1?"":we(It(`\xD7 ${this.#r.get(o).value}`))}`.trimEnd())}r(`
|
||||
${t.join(`
|
||||
`)}
|
||||
`),this.reset()}[Symbol.dispose](){this.shouldReport&&this.report()}};function we(e){return`\x1B[2m${e}\x1B[22m`}function It(e){return`\x1B[34m${e}\x1B[39m`}var Ut=N(require("@jridgewell/remapping")),L=require("lightningcss"),Lt=N(require("magic-string"));function gn(e,{file:r="input.css",minify:t=!1,map:n}={}){function i(a,u){return(0,L.transform)({filename:r,code:a,minify:t,sourceMap:typeof u<"u",inputSourceMap:u,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:L.Features.Nesting|L.Features.MediaQueries,exclude:L.Features.LogicalProperties|L.Features.DirSelector|L.Features.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=i(Buffer.from(e),n);if(n=l.map?.toString(),l.warnings=l.warnings.filter(a=>!(/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(a.message)||/Unknown at rule: @position-try/.test(a.message))),l.warnings.length>0){let a=e.split(`
|
||||
`),u=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of l.warnings.entries()){u.push(""),l.warnings.length>1&&u.push(`Issue #${p+1}:`);let f=2,d=Math.max(0,c.loc.line-f-1),m=Math.min(a.length,c.loc.line+f),C=a.slice(d,m).map((k,z)=>d+z+1===c.loc.line?`${oe("\u2502")} ${k}`:oe(`\u2502 ${k}`));C.splice(c.loc.line-d,0,`${oe("\u2506")}${" ".repeat(c.loc.column-1)} ${hn(`${oe("^--")} ${c.message}`)}`,`${oe("\u2506")}`),u.push(...C)}u.push(""),console.warn(u.join(`
|
||||
`))}l=i(l.code,n),n=l.map?.toString();let o=l.code.toString(),s=new Lt.default(o);if(s.replaceAll("@media not (","@media not all and ("),n!==void 0&&s.hasChanged()){let a=s.generateMap({source:"original",hires:"boundary"}).toString();n=(0,Ut.default)([a,n],()=>null).toString()}return o=s.toString(),{code:o,map:n}}function oe(e){return`\x1B[2m${e}\x1B[22m`}function hn(e){return`\x1B[33m${e}\x1B[39m`}var zt=require("source-map-js");function vn(e){let r=new zt.SourceMapGenerator,t=1,n=new h(i=>({url:i?.url??`<unknown ${t++}>`,content:i?.content??"<none>"}));for(let i of e.mappings){let l=n.get(i.originalPosition?.source??null);r.addMapping({generated:i.generatedPosition,original:i.originalPosition,source:l.url,name:i.name}),r.setSourceContent(l.url,l.content)}return r.toString()}function kn(e){let r=typeof e=="string"?e:vn(e);function t(n){return`/*# sourceMappingURL=${n} */
|
||||
`}return{raw:r,get inline(){let n=Buffer.from(r,"utf-8").toString("base64");return t(`data:application/json;base64,${n}`)},comment:t}}process.versions.bun||(le.registerHooks?le.registerHooks({resolve:He}):le.register?.((0,Kt.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader"))));0&&(module.exports={Features,Instrumentation,Polyfills,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath,optimize,toSourceMap});
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
var Vt=Object.defineProperty;var Rt=(e,r)=>{for(var t in r)Vt(e,t,{get:r[t],enumerable:!0})};import*as M from"module";import{pathToFileURL as ln}from"url";var me={};Rt(me,{DEBUG:()=>de});var de=Pt(process.env.DEBUG);function Pt(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{isBuiltin as Ot}from"module";var Ie=(e,r,t)=>{let n=t(e,r);return _t(r,n)};function _t(e,r){try{if(r.url===import.meta.url||Ot(r.url)||!e.parentURL)return r;let n=new URL(e.parentURL).searchParams.get("id");if(n===null)return r;let i=new URL(r.url);return i.searchParams.set("id",n),{...r,url:`${i}`}}catch{return r}}import B from"enhanced-resolve";import{createJiti as Br}from"jiti";import _e from"fs";import At from"fs/promises";import re from"path";import{pathToFileURL as wt}from"url";import{__unstable__loadDesignSystem as Hr,compile as Yr,compileAst as Gr,Features as lu,Polyfills as au}from"tailwindcss";import ge from"fs/promises";import H from"path";var Dt=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],It=[".js",".cjs",".mjs"],Ut=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],Lt=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function zt(e,r){for(let t of r){let n=`${e}${t}`;if((await ge.stat(n).catch(()=>null))?.isFile())return n}for(let t of r){let n=`${e}/index${t}`;if(await ge.access(n).then(()=>!0,()=>!1))return n}return null}async function Ue(e,r,t,n){let i=It.includes(n)?Ut:Lt,l=await zt(H.resolve(t,r),i);if(l===null||e.has(l))return;e.add(l),t=H.dirname(l),n=H.extname(l);let o=await ge.readFile(l,"utf-8"),s=[];for(let a of Dt)for(let u of o.matchAll(a))u[1].startsWith(".")&&s.push(Ue(e,u[1],t,n));await Promise.all(s)}async function Le(e){let r=new Set;return await Ue(r,e,H.dirname(e),H.extname(e)),Array.from(r)}import*as Re from"path";function j(e){return{kind:"word",value:e}}function Kt(e,r){return{kind:"function",value:e,nodes:r}}function Mt(e){return{kind:"separator",value:e}}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 ze=92,Ft=41,Ke=58,Me=44,jt=34,Fe=61,je=62,We=60,Be=10,Wt=40,Bt=39,Ht=47,He=32,Ye=9;function b(e){e=e.replaceAll(`\r
|
||||
`,`
|
||||
`);let r=[],t=[],n=null,i="",l;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);switch(s){case ze:{i+=e[o]+e[o+1],o++;break}case Ht:{if(i.length>0){let u=j(i);n?n.nodes.push(u):r.push(u),i=""}let a=j(e[o]);n?n.nodes.push(a):r.push(a);break}case Ke:case Me:case Fe:case je:case We:case Be:case He:case Ye:{if(i.length>0){let c=j(i);n?n.nodes.push(c):r.push(c),i=""}let a=o,u=o+1;for(;u<e.length&&(l=e.charCodeAt(u),!(l!==Ke&&l!==Me&&l!==Fe&&l!==je&&l!==We&&l!==Be&&l!==He&&l!==Ye));u++);o=u-1;let p=Mt(e.slice(a,u));n?n.nodes.push(p):r.push(p);break}case Bt:case jt:{let a=o;for(let u=o+1;u<e.length;u++)if(l=e.charCodeAt(u),l===ze)u+=1;else if(l===s){o=u;break}i+=e.slice(a,o+1);break}case Wt:{let a=Kt(i,[]);i="",n?n.nodes.push(a):r.push(a),t.push(a),n=a;break}case Ft:{let a=t.pop();if(i.length>0){let u=j(i);a?.nodes.push(u),i=""}t.length>0?n=t[t.length-1]:n=null;break}default:i+=String.fromCharCode(s)}}return i.length>0&&r.push(j(i)),r}var h=class extends Map{constructor(t){super();this.factory=t}factory;get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t,this),this.set(t,n)),n}};var vn=new Uint8Array(256);var oe=new Uint8Array(256);function w(e,r){let t=0,n=[],i=0,l=e.length,o=r.charCodeAt(0);for(let s=0;s<l;s++){let a=e.charCodeAt(s);if(t===0&&a===o){n.push(e.slice(i,s)),i=s+1;continue}switch(a){case 92:s+=1;break;case 39:case 34:for(;++s<l;){let u=e.charCodeAt(s);if(u===92){s+=1;continue}if(u===a)break}break;case 40:oe[t]=41,t++;break;case 91:oe[t]=93,t++;break;case 123:oe[t]=125,t++;break;case 93:case 125:case 41:t>0&&a===oe[t-1]&&t--;break}}return n.push(e.slice(i)),n}var he=(o=>(o[o.Continue=0]="Continue",o[o.Skip=1]="Skip",o[o.Stop=2]="Stop",o[o.Replace=3]="Replace",o[o.ReplaceSkip=4]="ReplaceSkip",o[o.ReplaceStop=5]="ReplaceStop",o))(he||{}),v={Continue:{kind:0},Skip:{kind:1},Stop:{kind:2},Replace:e=>({kind:3,nodes:Array.isArray(e)?e:[e]}),ReplaceSkip:e=>({kind:4,nodes:Array.isArray(e)?e:[e]}),ReplaceStop:e=>({kind:5,nodes:Array.isArray(e)?e:[e]})};function g(e,r){typeof r=="function"?Ge(e,r):Ge(e,r.enter,r.exit)}function Ge(e,r=()=>v.Continue,t=()=>v.Continue){let n={value:[e,0,null],prev:null},i={parent:null,depth:0,index:0,siblings:e,path(){let l=[],o=n;for(;o;){let s=o.value[2];s&&l.push(s),o=o.prev}return l.reverse(),l}};for(;n!==null;){let l=n.value,o=l[0],s=l[1],a=l[2];if(s>=o.length){n=n.prev,i.depth-=1;continue}if(i.parent=a,i.siblings=o,s>=0){i.index=s;let f=o[s],d=r(f,i)??v.Continue;switch(d.kind){case 0:{f.nodes&&f.nodes.length>0&&(i.depth+=1,n={value:[f.nodes,0,f],prev:n}),l[1]=~s;continue}case 2:return;case 1:{l[1]=~s;continue}case 3:{o.splice(s,1,...d.nodes);continue}case 5:{o.splice(s,1,...d.nodes);return}case 4:{o.splice(s,1,...d.nodes),l[1]+=d.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${he[d.kind]??`Unknown(${d.kind})`}\` in enter.`)}}let u=~s;i.index=u;let p=o[u],c=t(p,i)??v.Continue;switch(c.kind){case 0:l[1]=u+1;continue;case 2:return;case 3:{o.splice(u,1,...c.nodes),l[1]=u+c.nodes.length;continue}case 5:{o.splice(u,1,...c.nodes);return}case 4:{o.splice(u,1,...c.nodes),l[1]=u+c.nodes.length;continue}default:throw new Error(`Invalid \`WalkAction.${he[c.kind]??`Unknown(${c.kind})`}\` in exit.`)}}}var En=new h(e=>{let r=b(e),t=new Set,n=new Set(["~",">","+","-","*","/"]);return g(r,(i,l)=>{if(i.kind==="word"&&n.has(i.value)){let o=l.index;if(o===-1)return;let s=l.siblings[o-1];if(s?.kind!=="separator"||s.value!==" ")return;let a=l.siblings[o+1];if(a?.kind!=="separator"||a.value!==" ")return;let u=l.siblings[o-2];if(u&&n.has(u.value))return;let p=l.siblings[o+2];if(p&&n.has(p.value))return;t.add(s),t.add(a)}else if(i.kind==="separator"&&i.value.length>0&&i.value.trim()==="")(l.siblings[0]===i||l.siblings[l.siblings.length-1]===i)&&t.add(i);else if(i.kind==="separator"&&i.value.trim()===",")i.value=",";else if(i.kind==="function"&&i.value.startsWith("--")){let o=l.index;if(o<=0)return;let s=l.siblings[o-1];if(s?.kind==="separator"&&s.value===",")return;let a=l.siblings[o-2];return a&&!n.has(a.value)?void 0:v.ReplaceSkip({kind:"function",value:"",nodes:[i]})}}),t.size>0&&g(r,i=>{if(t.has(i))return t.delete(i),v.ReplaceSkip([])}),ve(r),A(r)});var Nn=new h(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 ve(e){for(let r of e)switch(r.kind){case"function":{if(r.value==="url"||r.value.endsWith("_url")){r.value=Y(r.value);break}if(r.value==="var"||r.value.endsWith("_var")||r.value==="theme"||r.value.endsWith("_theme")){r.value=Y(r.value);for(let t=0;t<r.nodes.length;t++)ve([r.nodes[t]]);break}r.value=Y(r.value),ve(r.nodes);break}case"separator":r.value=Y(r.value);break;case"word":{(r.value[0]!=="-"||r.value[1]!=="-")&&(r.value=Y(r.value));break}default:Gt(r)}}var Vn=new h(e=>{let r=b(e);return r.length===1&&r[0].kind==="function"&&r[0].value==="var"});function Gt(e){throw new Error(`Unexpected value: ${e}`)}function Y(e){retLine truncated
|
||||
`,r){t+=u.length;let p=t;t+=o.property.length,t+=2,t+=o.value?.length??0,o.important&&(t+=11);let c=t;t+=2,o.dst=[n,p,c]}}else if(o.kind==="rule"){if(a+=`${u}${o.selector} {
|
||||
`,r){t+=u.length;let p=t;t+=o.selector.length,t+=1;let c=t;o.dst=[n,p,c],t+=2}for(let p of o.nodes)a+=i(p,s+1);a+=`${u}}
|
||||
`,r&&(t+=u.length,t+=2)}else if(o.kind==="at-rule"){if(o.nodes.length===0){let p=`${u}${o.name} ${o.params};
|
||||
`;if(r){t+=u.length;let c=t;t+=o.name.length,t+=1,t+=o.params.length;let f=t;t+=2,o.dst=[n,c,f]}return p}if(a+=`${u}${o.name}${o.params?` ${o.params} `:" "}{
|
||||
`,r){t+=u.length;let p=t;t+=o.name.length,o.params&&(t+=1,t+=o.params.length),t+=1;let c=t;o.dst=[n,p,c],t+=2}for(let p of o.nodes)a+=i(p,s+1);a+=`${u}}
|
||||
`,r&&(t+=u.length,t+=2)}else if(o.kind==="comment"){if(a+=`${u}/*${o.value}*/
|
||||
`,r){t+=u.length;let p=t;t+=2+o.value.length+2;let c=t;o.dst=[n,p,c],t+=1}}else if(o.kind==="context"||o.kind==="at-root")return"";return a}let l="";for(let o of e)l+=i(o,0);return n.code=l,l}function Vr(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 n="";if(t>4&&e[3]==="\\"){var i=e[2];(i==="?"||i===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var l=e.split(/[/\\]+/);return r!==!1&&l[l.length-1]===""&&l.pop(),n+l.join("/")}function Ve(e){let r=Vr(e);return e.startsWith("\\\\")&&r.startsWith("/")&&!r.startsWith("//")?`/${r}`:r}var Pe=/(?<!@import\s+)(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,mt=/(?<=image-set\()((?:[\w-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Rr=/(?:gradient|element|cross-fade|image)\(/,Pr=/^\s*data:/i,Or=/^([a-z]+:)?\/\//,_r=/^[A-Z_][.\w-]*\(/i,Dr=/(?:^|\s)(?<url>[\w-]+\([^)]*\)|"[^"]*"|'[^']*'|[^,]\S*[^,])\s*(?:\s(?<descriptor>\w[^,]+))?(?:,|$)/g,Ir=/(?<!\\)"/g,Ur=/(?: |\\t|\\n|\\f|\\r)+/g,Lr=e=>Pr.test(e),zr=e=>Or.test(e);async function gt({css:e,base:r,root:t}){if(!e.includes("url(")&&!e.includes("image-set("))return e;let n=te(e),i=[];function l(o){if(o[0]==="/")return o;let s=Re.posix.join(Ve(r),o),a=Re.posix.relative(Ve(t),s);return a.startsWith(".")||(a="./"+a),a}return g(n,o=>{if(o.kind!=="declaration"||!o.value)return;let s=Pe.test(o.value),a=mt.test(o.value);if(s||a){let u=a?Kr:ht;i.push(u(o.value,l).then(p=>{o.value=p}))}}),i.length&&await Promise.all(i),z(n)}function ht(e,r){return kt(e,Pe,async t=>{let[n,i]=t;return await vt(i.trim(),n,r)})}async function Kr(e,r){return await kt(e,mt,async t=>{let[,n]=t;return await Fr(n,async({url:l})=>Pe.test(l)?await ht(l,r):Rr.test(l)?l:await vt(l,l,r))})}async function vt(e,r,t,n="url"){let i="",l=e[0];if((l==='"'||l==="'")&&(i=l,e=e.slice(1,-1)),Mr(e))return r;let o=await t(e);return i===""&&o!==encodeURI(o)&&(i='"'),i==="'"&&o.includes("'")&&(i='"'),i==='"'&&o.includes('"')&&(o=o.replace(Ir,'\\"')),`${n}(${i}${o}${i})`}function Mr(e,r){return zr(e)||Lr(e)||!e[0].match(/[.a-zA-Z0-9_]/)||_r.test(e)}function Fr(e,r){return Promise.all(jr(e).map(async({url:t,descriptor:n})=>({url:await r({url:t,descriptor:n}),descriptor:n}))).then(Wr)}function jr(e){let r=e.trim().replace(Ur," ").replace(/\r?\n/,"").replace(/,\s+/,", ").replaceAll(/\s+/g," ").matchAll(Dr);return Array.from(r,({groups:t})=>({url:t?.url?.trim()??"",descriptor:t?.descriptor?.trim()??""})).filter(({url:t})=>!!t)}function Wr(e){return e.map(({url:r,descriptor:t})=>r+(t?` ${t}`:"")).join(", ")}async function kt(e,r,t){let n,i=e,l="";for(;n=r.exec(i);)l+=i.slice(0,n.index),l+=await t(n),i=i.slice(n.index+n[0].length);return l+=i,l}function Ct({base:e,from:r,polyfills:t,onDependency:n,shouldRewriteUrls:i,customCssResolver:l,customJsResolver:o}){return{base:e,polyfills:t,from:r,async loadModule(s,a){return $t(s,a,n,o)},async loadStylesheet(s,a){let u=await Tt(s,a,n,l);return i&&(u.content=await gt({css:u.content,root:e,base:u.base})),u}}}async function St(e){if(e.root&&e.root!=="none"){let r=/[*{]/,t=[];for(let i of e.root.pattern.split("/")){if(r.test(i))break;t.push(i)}if(!await At.stat(re.resolve(e.root.base,t.join("/"))).then(i=>i.isDirectory()).catch(()=>!1))throw new Error(`The \`source(${e.root.pattern})\` does not exist or is not a directory.`)}}async function cu(e,r){let t=await Gr(e,Ct(r));return await St(t),t}async function fu(e,r){let t=await Yr(e,Ct(r));return await St(t),t}async function pu(e,{base:r}){return Hr(e,{base:r,async loadModule(t,n){return $t(t,n,()=>{})},async loadStylesheet(t,n){return Tt(t,n,()=>{})}})}async function $t(e,r,t,n){if(e[0]!=="."){let s=await xt(e,r,n);if(!s)throw new Error(`Could not resolve '${e}' from '${r}'`);let a=await yt(wt(s).href);return{path:s,base:re.dirname(s),module:a.default??a}}let i=await xt(e,r,n);if(!i)throw new Error(`Could not resolve '${e}' from '${r}'`);let[l,o]=await Promise.all([yt(wt(i).href+"?id="+Date.now()),Le(i)]);for(let s of o)t(s);return{path:i,base:re.dirname(i),module:l.default??l}}async function Tt(e,r,t,n){let i=await Zr(e,r,n);if(!i)throw new Error(`Could not resolve '${e}' from '${r}'`);t(i);let l=await At.readFile(i,"utf-8");return{path:i,base:re.dirname(i),content:l}}var bt=null;async function yt(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 bt??=Br(import.meta.url,{moduleCache:!1,fsCache:!1}),await bt.import(e)}}var De=["node_modules",...process.env.NODE_PATH?[...process.env.NODE_PATH.split(re.delimiter)]:[]],qr=B.ResolverFactory.createResolver({fileSystem:new B.CachedInputFileSystem(_e,4e3),useSyncFileSystemCalls:!0,extensions:[".css"],mainFields:["style"],conditionNames:["style"],modules:De});async function Zr(e,r,t){if(typeof globalThis.__tw_resolve=="function"){let n=globalThis.__tw_resolve(e,r);if(n)return Promise.resolve(n)}if(t){let n=await t(e,r);if(n)return n}return Oe(qr,e,r)}var QLine truncated
|
||||
`)}){this.shouldReport=r;this.defaultFlush=t}shouldReport;defaultFlush;#r=new h(()=>({value:0}));#t=new h(()=>({value:0n}));#e=[];hit(r){this.#r.get(r).value++}start(r){let t=this.#e.map(i=>i.label).join("//"),n=`${t}${t.length===0?"":"//"}${r}`;this.#r.get(n).value++,this.#t.get(n),this.#e.push({id:n,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 n=this.#e.pop(),i=t-n.value;this.#t.get(n.id).value+=i}track(r){this.start(r);let t=!1;return{[Symbol.dispose]:()=>{t||(this.end(r),t=!0)},[Symbol.asyncDispose]:()=>{t||(this.end(r),t=!0)}}}span(r,t){this.start(r);let n=!1;try{let i=t();return n=i&&typeof i.then=="function",n?i.finally(()=>this.end(r)):i}finally{n||this.end(r)}}reset(){this.#r.clear(),this.#t.clear(),this.#e.splice(0)}report(r=this.defaultFlush){let t=[],n=!1;for(let o=this.#e.length-1;o>=0;o--)this.end(this.#e[o].label);for(let[o,{value:s}]of this.#r.entries()){if(this.#t.has(o))continue;t.length===0&&(n=!0,t.push("Hits:"));let a=o.split("//").length;t.push(`${" ".repeat(a)}${o} ${pe(Nt(`\xD7 ${s}`))}`)}this.#t.size>0&&n&&t.push(`
|
||||
Timers:`);let i=-1/0,l=new Map;for(let[o,{value:s}]of this.#t){let a=`${(Number(s)/1e6).toFixed(2)}ms`;l.set(o,a),i=Math.max(i,a.length)}for(let o of this.#t.keys()){let s=o.split("//").length;t.push(`${pe(`[${l.get(o).padStart(i," ")}]`)}${" ".repeat(s-1)}${s===1?" ":pe(" \u21B3 ")}${o.split("//").pop()} ${this.#r.get(o).value===1?"":pe(Nt(`\xD7 ${this.#r.get(o).value}`))}`.trimEnd())}r(`
|
||||
${t.join(`
|
||||
`)}
|
||||
`),this.reset()}[Symbol.dispose](){this.shouldReport&&this.report()}};function pe(e){return`\x1B[2m${e}\x1B[22m`}function Nt(e){return`\x1B[34m${e}\x1B[39m`}import Xr from"@jridgewell/remapping";import{Features as ne,transform as en}from"lightningcss";import tn from"magic-string";function wu(e,{file:r="input.css",minify:t=!1,map:n}={}){function i(a,u){return en({filename:r,code:a,minify:t,sourceMap:typeof u<"u",inputSourceMap:u,drafts:{customMedia:!0},nonStandard:{deepSelectorCombinator:!0},include:ne.Nesting|ne.MediaQueries,exclude:ne.LogicalProperties|ne.DirSelector|ne.LightDark,targets:{safari:16<<16|1024,ios_saf:16<<16|1024,firefox:8388608,chrome:7274496},errorRecovery:!0})}let l=i(Buffer.from(e),n);if(n=l.map?.toString(),l.warnings=l.warnings.filter(a=>!(/'(deep|slotted|global)' is not recognized as a valid pseudo-/.test(a.message)||/Unknown at rule: @position-try/.test(a.message))),l.warnings.length>0){let a=e.split(`
|
||||
`),u=[`Found ${l.warnings.length} ${l.warnings.length===1?"warning":"warnings"} while optimizing generated CSS:`];for(let[p,c]of l.warnings.entries()){u.push(""),l.warnings.length>1&&u.push(`Issue #${p+1}:`);let f=2,d=Math.max(0,c.loc.line-f-1),m=Math.min(a.length,c.loc.line+f),C=a.slice(d,m).map((k,I)=>d+I+1===c.loc.line?`${ie("\u2502")} ${k}`:ie(`\u2502 ${k}`));C.splice(c.loc.line-d,0,`${ie("\u2506")}${" ".repeat(c.loc.column-1)} ${rn(`${ie("^--")} ${c.message}`)}`,`${ie("\u2506")}`),u.push(...C)}u.push(""),console.warn(u.join(`
|
||||
`))}l=i(l.code,n),n=l.map?.toString();let o=l.code.toString(),s=new tn(o);if(s.replaceAll("@media not (","@media not all and ("),n!==void 0&&s.hasChanged()){let a=s.generateMap({source:"original",hires:"boundary"}).toString();n=Xr([a,n],()=>null).toString()}return o=s.toString(),{code:o,map:n}}function ie(e){return`\x1B[2m${e}\x1B[22m`}function rn(e){return`\x1B[33m${e}\x1B[39m`}import{SourceMapGenerator as nn}from"source-map-js";function on(e){let r=new nn,t=1,n=new h(i=>({url:i?.url??`<unknown ${t++}>`,content:i?.content??"<none>"}));for(let i of e.mappings){let l=n.get(i.originalPosition?.source??null);r.addMapping({generated:i.generatedPosition,original:i.originalPosition,source:l.url,name:i.name}),r.setSourceContent(l.url,l.content)}return r.toString()}function Au(e){let r=typeof e=="string"?e:on(e);function t(n){return`/*# sourceMappingURL=${n} */
|
||||
`}return{raw:r,get inline(){let n=Buffer.from(r,"utf-8").toString("base64");return t(`data:application/json;base64,${n}`)},comment:t}}if(!process.versions.bun)if(M.registerHooks)M.registerHooks({resolve:Ie});else{let e=M.createRequire(import.meta.url);M.register?.(ln(e.resolve("@tailwindcss/node/esm-cache-loader")))}export{lu as Features,Et as Instrumentation,au as Polyfills,pu as __unstable__loadDesignSystem,fu as compile,cu as compileAst,me as env,$t as loadModule,Ve as normalizePath,wu as optimize,Au as toSourceMap};
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
declare function clearRequireCache(files: string[]): void;
|
||||
|
||||
export { clearRequireCache };
|
||||
+1
@@ -0,0 +1 @@
|
||||
"use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var n=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},u=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of f(e))!l.call(r,c)&&c!==t&&i(r,c,{get:()=>e[c],enumerable:!(o=a(e,c))||o.enumerable});return r};var h=r=>u(i({},"__esModule",{value:!0}),r);var d={};n(d,{clearRequireCache:()=>q});module.exports=h(d);function q(r){for(let e of r)delete require.cache[e]}0&&(module.exports={clearRequireCache});
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "@tailwindcss/node",
|
||||
"version": "4.3.3",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tailwindlabs/tailwindcss.git",
|
||||
"directory": "packages/@tailwindcss-node"
|
||||
},
|
||||
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
||||
"homepage": "https://tailwindcss.com",
|
||||
"files": [
|
||||
"dist/"
|
||||
],
|
||||
"publishConfig": {
|
||||
"provenance": true,
|
||||
"access": "public"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./require-cache": {
|
||||
"types": "./dist/require-cache.d.ts",
|
||||
"default": "./dist/require-cache.js"
|
||||
},
|
||||
"./esm-cache-loader": {
|
||||
"types": "./dist/esm-cache.loader.d.mts",
|
||||
"default": "./dist/esm-cache.loader.mjs"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@jridgewell/remapping": "^2.3.5",
|
||||
"enhanced-resolve": "^5.24.1",
|
||||
"jiti": "^2.7.0",
|
||||
"lightningcss": "1.32.0",
|
||||
"magic-string": "^0.30.21",
|
||||
"source-map-js": "^1.2.1",
|
||||
"tailwindcss": "4.3.3"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup-node",
|
||||
"dev": "pnpm run build -- --watch"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user