docs: 仓库链接指向本镜像仓库
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run

This commit is contained in:
TanTan committed 2026-11-13 09:27:07 +08:00
1 parent fa9c73363d
commit 2a69b23b47
18210 files changed
+5101211 -16

No files matched your search

@@ -0,0 +1,402 @@
declare var ajv: {
(options?: ajv.Options): ajv.Ajv;
new(options?: ajv.Options): ajv.Ajv;
ValidationError: typeof AjvErrors.ValidationError;
MissingRefError: typeof AjvErrors.MissingRefError;
$dataMetaSchema: object;
}
declare namespace AjvErrors {
class ValidationError extends Error {
constructor(errors: Array<ajv.ErrorObject>);
message: string;
errors: Array<ajv.ErrorObject>;
ajv: true;
validation: true;
}
class MissingRefError extends Error {
constructor(baseId: string, ref: string, message?: string);
static message: (baseId: string, ref: string) => string;
message: string;
missingRef: string;
missingSchema: string;
}
}
declare namespace ajv {
type ValidationError = AjvErrors.ValidationError;
type MissingRefError = AjvErrors.MissingRefError;
interface Ajv {
/**
* Validate data using schema
* Schema will be compiled and cached (using serialized JSON as key, [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) is used to serialize by default).
* @param {string|object|Boolean} schemaKeyRef key, ref or schema object
* @param {Any} data to be validated
* @return {Boolean} validation result. Errors from the last validation will be available in `ajv.errors` (and also in compiled schema: `schema.errors`).
*/
validate(schemaKeyRef: object | string | boolean, data: any): boolean | PromiseLike<any>;
/**
* Create validating function for passed schema.
* @param {object|Boolean} schema schema object
* @return {Function} validating function
*/
compile(schema: object | boolean): ValidateFunction;
/**
* Creates validating function for passed schema with asynchronous loading of missing schemas.
* `loadSchema` option should be a function that accepts schema uri and node-style callback.
* @this Ajv
* @param {object|Boolean} schema schema object
* @param {Boolean} meta optional true to compile meta-schema; this parameter can be skipped
* @param {Function} callback optional node-style callback, it is always called with 2 parameters: error (or null) and validating function.
* @return {PromiseLike<ValidateFunction>} validating function
*/
compileAsync(schema: object | boolean, meta?: Boolean, callback?: (err: Error, validate: ValidateFunction) => any): PromiseLike<ValidateFunction>;
/**
* Adds schema to the instance.
* @param {object|Array} schema schema or array of schemas. If array is passed, `key` and other parameters will be ignored.
* @param {string} key Optional schema key. Can be passed to `validate` method instead of schema object or id/ref. One schema per instance can have empty `id` and `key`.
* @return {Ajv} this for method chaining
*/
addSchema(schema: Array<object> | object, key?: string): Ajv;
/**
* Add schema that will be used to validate other schemas
* options in META_IGNORE_OPTIONS are alway set to false
* @param {object} schema schema object
* @param {string} key optional schema key
* @return {Ajv} this for method chaining
*/
addMetaSchema(schema: object, key?: string): Ajv;
/**
* Validate schema
* @param {object|Boolean} schema schema to validate
* @return {Boolean} true if schema is valid
*/
validateSchema(schema: object | boolean): boolean;
/**
* Get compiled schema from the instance by `key` or `ref`.
* @param {string} keyRef `key` that was passed to `addSchema` or full schema reference (`schema.id` or resolved id).
* @return {Function} schema validating function (with property `schema`). Returns undefined if keyRef can't be resolved to an existing schema.
*/
getSchema(keyRef: string): ValidateFunction | undefined;
/**
* Remove cached schema(s).
* If no parameter is passed all schemas but meta-schemas are removed.
* If RegExp is passed all schemas with key/id matching pattern but meta-schemas are removed.
* Even if schema is referenced by other schemas it still can be removed as other schemas have local references.
* @param {string|object|RegExp|Boolean} schemaKeyRef key, ref, pattern to match key/ref or schema object
* @return {Ajv} this for method chaining
*/
removeSchema(schemaKeyRef?: object | string | RegExp | boolean): Ajv;
/**
* Add custom format
* @param {string} name format name
* @param {string|RegExp|Function} format string is converted to RegExp; function should return boolean (true when valid)
* @return {Ajv} this for method chaining
*/
addFormat(name: string, format: FormatValidator | FormatDefinition): Ajv;
/**
* Define custom keyword
* @this Ajv
* @param {string} keyword custom keyword, should be a valid identifier, should be different from all standard, custom and macro keywords.
* @param {object} definition keyword definition object with properties `type` (type(s) which the keyword applies to), `validate` or `compile`.
* @return {Ajv} this for method chaining
*/
addKeyword(keyword: string, definition: KeywordDefinition): Ajv;
/**
* Get keyword definition
* @this Ajv
* @param {string} keyword pre-defined or custom keyword.
* @return {object|Boolean} custom keyword definition, `true` if it is a predefined keyword, `false` otherwise.
*/
getKeyword(keyword: string): object | boolean;
/**
* Remove keyword
* @this Ajv
* @param {string} keyword pre-defined or custom keyword.
* @return {Ajv} this for method chaining
*/
removeKeyword(keyword: string): Ajv;
/**
* Validate keyword
* @this Ajv
* @param {object} definition keyword definition object
* @param {boolean} throwError true to throw exception if definition is invalid
* @return {boolean} validation result
*/
validateKeyword(definition: KeywordDefinition, throwError: boolean): boolean;
/**
* Convert array of error message objects to string
* @param {Array<object>} errors optional array of validation errors, if not passed errors from the instance are used.
* @param {object} options optional options with properties `separator` and `dataVar`.
* @return {string} human readable string with all errors descriptions
*/
errorsText(errors?: Array<ErrorObject> | null, options?: ErrorsTextOptions): string;
errors?: Array<ErrorObject> | null;
_opts: Options;
}
interface CustomLogger {
log(...args: any[]): any;
warn(...args: any[]): any;
error(...args: any[]): any;
}
interface ValidateFunction {
(
data: any,
dataPath?: string,
parentData?: object | Array<any>,
parentDataProperty?: string | number,
rootData?: object | Array<any>
): boolean | PromiseLike<any>;
schema?: object | boolean;
errors?: null | Array<ErrorObject>;
refs?: object;
refVal?: Array<any>;
root?: ValidateFunction | object;
$async?: true;
source?: object;
}
interface Options {
$data?: boolean;
allErrors?: boolean;
verbose?: boolean;
jsonPointers?: boolean;
uniqueItems?: boolean;
unicode?: boolean;
format?: false | string;
formats?: object;
keywords?: object;
unknownFormats?: true | string[] | 'ignore';
schemas?: Array<object> | object;
schemaId?: '$id' | 'id' | 'auto';
missingRefs?: true | 'ignore' | 'fail';
extendRefs?: true | 'ignore' | 'fail';
loadSchema?: (uri: string, cb?: (err: Error, schema: object) => void) => PromiseLike<object | boolean>;
removeAdditional?: boolean | 'all' | 'failing';
useDefaults?: boolean | 'empty' | 'shared';
coerceTypes?: boolean | 'array';
strictDefaults?: boolean | 'log';
strictKeywords?: boolean | 'log';
strictNumbers?: boolean;
async?: boolean | string;
transpile?: string | ((code: string) => string);
meta?: boolean | object;
validateSchema?: boolean | 'log';
addUsedSchema?: boolean;
inlineRefs?: boolean | number;
passContext?: boolean;
loopRequired?: number;
ownProperties?: boolean;
multipleOfPrecision?: boolean | number;
errorDataPath?: string,
messages?: boolean;
sourceCode?: boolean;
processCode?: (code: string, schema: object) => string;
cache?: object;
logger?: CustomLogger | false;
nullable?: boolean;
serialize?: ((schema: object | boolean) => any) | false;
regExp?: (pattern: string) => RegExpLike;
}
interface RegExpLike {
test: (s: string) => boolean;
}
type FormatValidator = string | RegExp | ((data: string) => boolean | PromiseLike<any>);
type NumberFormatValidator = ((data: number) => boolean | PromiseLike<any>);
interface NumberFormatDefinition {
type: "number",
validate: NumberFormatValidator;
compare?: (data1: number, data2: number) => number;
async?: boolean;
}
interface StringFormatDefinition {
type?: "string",
validate: FormatValidator;
compare?: (data1: string, data2: string) => number;
async?: boolean;
}
type FormatDefinition = NumberFormatDefinition | StringFormatDefinition;
interface KeywordDefinition {
type?: string | Array<string>;
async?: boolean;
$data?: boolean;
errors?: boolean | string;
metaSchema?: object;
// schema: false makes validate not to expect schema (ValidateFunction)
schema?: boolean;
statements?: boolean;
dependencies?: Array<string>;
modifying?: boolean;
valid?: boolean;
// one and only one of the following properties should be present
validate?: SchemaValidateFunction | ValidateFunction;
compile?: (schema: any, parentSchema: object, it: CompilationContext) => ValidateFunction;
macro?: (schema: any, parentSchema: object, it: CompilationContext) => object | boolean;
inline?: (it: CompilationContext, keyword: string, schema: any, parentSchema: object) => string;
}
interface CompilationContext {
level: number;
dataLevel: number;
dataPathArr: string[];
schema: any;
schemaPath: string;
baseId: string;
async: boolean;
opts: Options;
formats: {
[index: string]: FormatDefinition | undefined;
};
keywords: {
[index: string]: KeywordDefinition | undefined;
};
compositeRule: boolean;
validate: (schema: object) => boolean;
util: {
copy(obj: any, target?: any): any;
toHash(source: string[]): { [index: string]: true | undefined };
equal(obj: any, target: any): boolean;
getProperty(str: string): string;
schemaHasRules(schema: object, rules: any): string;
escapeQuotes(str: string): string;
toQuotedString(str: string): string;
getData(jsonPointer: string, dataLevel: number, paths: string[]): string;
escapeJsonPointer(str: string): string;
unescapeJsonPointer(str: string): string;
escapeFragment(str: string): string;
unescapeFragment(str: string): string;
};
self: Ajv;
}
interface SchemaValidateFunction {
(
schema: any,
data: any,
parentSchema?: object,
dataPath?: string,
parentData?: object | Array<any>,
parentDataProperty?: string | number,
rootData?: object | Array<any>
): boolean | PromiseLike<any>;
errors?: Array<ErrorObject>;
}
interface ErrorsTextOptions {
separator?: string;
dataVar?: string;
}
interface ErrorObject {
keyword: string;
dataPath: string;
schemaPath: string;
params: ErrorParameters;
// Added to validation errors of propertyNames keyword schema
propertyName?: string;
// Excluded if messages set to false.
message?: string;
// These are added with the `verbose` option.
schema?: any;
parentSchema?: object;
data?: any;
}
type ErrorParameters = RefParams | LimitParams | AdditionalPropertiesParams |
DependenciesParams | FormatParams | ComparisonParams |
MultipleOfParams | PatternParams | RequiredParams |
TypeParams | UniqueItemsParams | CustomParams |
PatternRequiredParams | PropertyNamesParams |
IfParams | SwitchParams | NoParams | EnumParams;
interface RefParams {
ref: string;
}
interface LimitParams {
limit: number;
}
interface AdditionalPropertiesParams {
additionalProperty: string;
}
interface DependenciesParams {
property: string;
missingProperty: string;
depsCount: number;
deps: string;
}
interface FormatParams {
format: string
}
interface ComparisonParams {
comparison: string;
limit: number | string;
exclusive: boolean;
}
interface MultipleOfParams {
multipleOf: number;
}
interface PatternParams {
pattern: string;
}
interface RequiredParams {
missingProperty: string;
}
interface TypeParams {
type: string;
}
interface UniqueItemsParams {
i: number;
j: number;
}
interface CustomParams {
keyword: string;
}
interface PatternRequiredParams {
missingPattern: string;
}
interface PropertyNamesParams {
propertyName: string;
}
interface IfParams {
failingKeyword: string;
}
interface SwitchParams {
caseIndex: number;
}
interface NoParams { }
interface EnumParams {
allowedValues: Array<any>;
}
}
export = ajv;
@@ -0,0 +1 @@
{"version":3,"file":"arrow-up-za.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1 @@
module.exports={C:{"78":0.00183,"115":0.0365,"120":0.0146,"121":0.02738,"123":0.00183,"124":0.00183,"140":0.00548,"147":0.00183,"149":0.00183,"150":0.00183,"151":0.00183,"152":0.00365,"153":0.00365,"154":0.0584,"155":0.2044,"156":0.19163,"157":0.00548,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 141 142 143 144 145 146 148 158 159 160 3.5 3.6"},D:{"79":0.00365,"80":0.00183,"87":0.00548,"88":0.00183,"91":0.00365,"95":0.00183,"101":0.0073,"102":0.0073,"103":0.01643,"104":0.01278,"105":0.01278,"106":0.0146,"107":0.0146,"108":0.0146,"109":0.39055,"110":0.0146,"111":0.01825,"112":0.01278,"113":0.00548,"114":0.0292,"115":0.00365,"116":0.03285,"117":0.0146,"118":0.0365,"119":0.0438,"120":0.04563,"121":0.00365,"122":0.01095,"123":0.00548,"124":0.02555,"125":0.00548,"126":0.00548,"127":0.01643,"128":0.00913,"129":0.00365,"130":0.00365,"131":0.03833,"132":0.01095,"133":0.04563,"134":0.02373,"135":0.03103,"136":0.03103,"137":0.0292,"138":0.11133,"139":0.03103,"140":0.0365,"141":0.03103,"142":0.0803,"143":0.01825,"144":0.04015,"145":0.01825,"146":0.0365,"147":0.0292,"148":0.04928,"149":0.0584,"150":0.11498,"151":0.71905,"152":4.29423,"153":3.3288,"154":0.73,"155":0.01095,"156":0.00183,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 83 84 85 86 89 90 92 93 94 96 97 98 99 100 157"},F:{"95":0.00365,"100":0.00183,"101":0.01095,"102":0.00183,"134":0.01278,"135":0.1095,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 131 132 133 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"109":0.00365,"119":0.0146,"120":0.01278,"122":0.00183,"130":0.00183,"132":0.00183,"138":0.00183,"139":0.00183,"140":0.00183,"141":0.00183,"142":0.00183,"143":0.00365,"144":0.00365,"145":0.00183,"146":0.00183,"147":0.00365,"148":0.00365,"149":0.00365,"150":0.01095,"151":0.0292,"152":0.41793,"153":0.47085,"154":0.13323,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 114 115 116 117 118 121 123 124 125 126 127 128 129 131 133 134 135 136 137"},E:{"27":0.04745,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.1 15.2-15.3 16.0 27.1 27.2 TP","13.1":0.00183,"14.1":0.00183,"15.4":0.00183,"15.5":0.00365,"15.6":0.0292,"16.1":0.00548,"16.2":0.00365,"16.3":0.0073,"16.4":0.00183,"16.5":0.00183,"16.6":0.04563,"17.0":0.00183,"17.1":0.04198,"17.2":0.00183,"17.3":0.00365,"17.4":0.00548,"17.5":0.01278,"17.6":0.02373,"18.0":0.00365,"18.1":0.00913,"18.2":0.00365,"18.3":0.01278,"18.4":0.00548,"18.5-18.7":0.02008,"26.0":0.01278,"26.1":0.00913,"26.2":0.03103,"26.3":0.03285,"26.4":0.04015,"26.5":0.15148,"26.6":0.75738},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00146,"5.0-5.1":0.00146,"6.0-6.1":0,"7.0-7.1":0.00292,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.0146,"11.0-11.2":0.00146,"11.3-11.4":0.00292,"12.0-12.1":0,"12.2-12.5":0.03797,"13.0-13.1":0,"13.2":0.0073,"13.3":0,"13.4-13.7":0.00146,"14.0-14.4":0.00584,"14.5-14.8":0.00876,"15.0-15.1":0.00876,"15.2-15.3":0.00584,"15.4":0.0073,"15.5":0.00876,"15.6-15.8":0.18983,"16.0":0.0146,"16.1":0.02628,"16.2":0.0146,"16.3":0.03213,"16.4":0.0073,"16.5":0.01168,"16.6-16.7":0.2643,"17.0":0.01022,"17.1":0.0146,"17.2":0.0146,"17.3":0.0219,"17.4":0.03066,"17.5":0.05987,"17.6-17.7":0.15478,"18.0":0.03213,"18.1":0.06425,"18.2":0.08761,"18.3":0.15186,"18.4":0.09492,"18.5-18.7":1.96109,"26.0":0.09492,"26.1":0.09638,"26.2":0.25116,"26.3":0.2716,"26.4":0.19859,"26.5":1.33027,"26.6":8.20797,"27.0":0.62936,"27.1":0,"27.2":0.01606},P:{"4":0.00894,"21":0.01788,"22":0.01788,"23":0.01788,"24":0.02681,"25":0.03575,"26":0.03575,"27":0.05363,"28":0.17875,"29":0.26813,"30":2.58297,_:"20 5.0-5.4 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","7.2-7.4":0.01788},I:{"0":0.01634,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.26163,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},L:{"0":65.71132},R:{_:"0"},M:{"0":0.24528},Q:{_:"14.9"},O:{"0":0.38427},H:{all:0}};
@@ -0,0 +1,88 @@
import type { SourceMapInput } from '@jridgewell/trace-mapping';
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
export type Options = {
file?: string | null;
sourceRoot?: string | null;
};
/**
* Provides the state to generate a sourcemap.
*/
export declare class GenMapping {
private _names;
private _sources;
private _sourcesContent;
private _mappings;
private _ignoreList;
file: string | null | undefined;
sourceRoot: string | null | undefined;
constructor({ file, sourceRoot }?: Options);
}
/**
* A low-level API to associate a generated position with an original source position. Line and
* column here are 0-based, unlike `addMapping`.
*/
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void;
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void;
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void;
/**
* A high-level API to associate a generated position with an original source position. Line is
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
*/
export declare function addMapping(map: GenMapping, mapping: {
generated: Pos;
source?: null;
original?: null;
name?: null;
content?: null;
}): void;
export declare function addMapping(map: GenMapping, mapping: {
generated: Pos;
source: string;
original: Pos;
name?: null;
content?: string | null;
}): void;
export declare function addMapping(map: GenMapping, mapping: {
generated: Pos;
source: string;
original: Pos;
name: string;
content?: string | null;
}): void;
/**
* Same as `addSegment`, but will only add the segment if it generates useful information in the
* resulting map. This only works correctly if segments are added **in order**, meaning you should
* not add a segment with a lower generated line/column than one that came before.
*/
export declare const maybeAddSegment: typeof addSegment;
/**
* Same as `addMapping`, but will only add the mapping if it generates useful information in the
* resulting map. This only works correctly if mappings are added **in order**, meaning you should
* not add a mapping with a lower generated line/column than one that came before.
*/
export declare const maybeAddMapping: typeof addMapping;
/**
* Adds/removes the content of the source file to the source map.
*/
export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void;
export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void;
/**
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
* a sourcemap, or to JSON.stringify.
*/
export declare function toDecodedMap(map: GenMapping): DecodedSourceMap;
/**
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
* a sourcemap, or to JSON.stringify.
*/
export declare function toEncodedMap(map: GenMapping): EncodedSourceMap;
/**
* Constructs a new GenMapping, using the already present mappings of the input.
*/
export declare function fromMap(input: SourceMapInput): GenMapping;
/**
* Returns an array of high-level mapping objects for every recorded segment, which could then be
* passed to the `source-map` library.
*/
export declare function allMappings(map: GenMapping): Mapping[];
@@ -0,0 +1,52 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.z = void 0;
const z = __importStar(require("./external.cjs"));
exports.z = z;
__exportStar(require("./external.cjs"), exports);
exports.default = z;
// seal-cjs-exports
(function () {
var keys = Object.getOwnPropertyNames(exports);
for (var i = 0; i < keys.length; i++) {
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
if (!desc || !desc.get || !desc.configurable) continue;
var value;
try {
value = desc.get();
} catch (e) {
continue;
}
// a circular require may not have settled this one yet, so leave it live
if (value === undefined) continue;
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
}
Object.freeze(exports);
})();
@@ -0,0 +1 @@
{"version":3,"file":"is-variant-label.mjs","sources":["../../../../src/render/utils/is-variant-label.ts"],"sourcesContent":["/**\n * Decides if the supplied variable is variant label\n */\nexport function isVariantLabel(v: unknown): v is string | string[] {\n return typeof v === \"string\" || Array.isArray(v)\n}\n"],"names":[],"mappings":"AAAA;;AAEG;AACG,SAAU,cAAc,CAAC,CAAU,EAAA;IACrC,OAAO,OAAO,CAAC,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACpD;;;;"}
@@ -0,0 +1,95 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.coerce = exports.ZodMiniISODuration = exports.ZodMiniISOTime = exports.ZodMiniISODate = exports.ZodMiniISODateTime = exports.iso = exports.locales = exports.toJSONSchema = exports.getDiscriminatedOption = exports.ZodCompileUnsupportedError = exports.ZodCompileAsyncError = exports.withParser = exports.compile = exports.toZod = exports.INVALID = exports.NEVER = exports.util = exports.TimePrecision = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.$brand = exports.$input = exports.$output = exports.memoizer = exports.config = exports.registry = exports.globalRegistry = exports.output = exports.input = exports.deepPartial = exports.core = void 0;
exports.core = __importStar(require("../core/index.cjs"));
__exportStar(require("./parse.cjs"), exports);
__exportStar(require("./schemas.cjs"), exports);
__exportStar(require("./checks.cjs"), exports);
var deep_partial_js_1 = require("./deep-partial.cjs");
Object.defineProperty(exports, "deepPartial", { enumerable: true, get: function () { return deep_partial_js_1.deepPartial; } });
var in_out_js_1 = require("./in-out.cjs");
Object.defineProperty(exports, "input", { enumerable: true, get: function () { return in_out_js_1.input; } });
Object.defineProperty(exports, "output", { enumerable: true, get: function () { return in_out_js_1.output; } });
var index_js_1 = require("../core/index.cjs");
Object.defineProperty(exports, "globalRegistry", { enumerable: true, get: function () { return index_js_1.globalRegistry; } });
Object.defineProperty(exports, "registry", { enumerable: true, get: function () { return index_js_1.registry; } });
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return index_js_1.config; } });
Object.defineProperty(exports, "memoizer", { enumerable: true, get: function () { return index_js_1.memoizer; } });
Object.defineProperty(exports, "$output", { enumerable: true, get: function () { return index_js_1.$output; } });
Object.defineProperty(exports, "$input", { enumerable: true, get: function () { return index_js_1.$input; } });
Object.defineProperty(exports, "$brand", { enumerable: true, get: function () { return index_js_1.$brand; } });
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return index_js_1.clone; } });
Object.defineProperty(exports, "regexes", { enumerable: true, get: function () { return index_js_1.regexes; } });
Object.defineProperty(exports, "treeifyError", { enumerable: true, get: function () { return index_js_1.treeifyError; } });
Object.defineProperty(exports, "prettifyError", { enumerable: true, get: function () { return index_js_1.prettifyError; } });
Object.defineProperty(exports, "formatError", { enumerable: true, get: function () { return index_js_1.formatError; } });
Object.defineProperty(exports, "flattenError", { enumerable: true, get: function () { return index_js_1.flattenError; } });
Object.defineProperty(exports, "TimePrecision", { enumerable: true, get: function () { return index_js_1.TimePrecision; } });
Object.defineProperty(exports, "util", { enumerable: true, get: function () { return index_js_1.util; } });
Object.defineProperty(exports, "NEVER", { enumerable: true, get: function () { return index_js_1.NEVER; } });
Object.defineProperty(exports, "INVALID", { enumerable: true, get: function () { return index_js_1.INVALID; } });
Object.defineProperty(exports, "toZod", { enumerable: true, get: function () { return index_js_1.toZod; } });
Object.defineProperty(exports, "compile", { enumerable: true, get: function () { return index_js_1.compile; } });
Object.defineProperty(exports, "withParser", { enumerable: true, get: function () { return index_js_1.withParser; } });
Object.defineProperty(exports, "ZodCompileAsyncError", { enumerable: true, get: function () { return index_js_1.ZodCompileAsyncError; } });
Object.defineProperty(exports, "ZodCompileUnsupportedError", { enumerable: true, get: function () { return index_js_1.ZodCompileUnsupportedError; } });
Object.defineProperty(exports, "getDiscriminatedOption", { enumerable: true, get: function () { return index_js_1.getDiscriminatedOption; } });
var json_schema_processors_js_1 = require("../core/json-schema-processors.cjs");
Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return json_schema_processors_js_1.toJSONSchema; } });
exports.locales = __importStar(require("../locales/index.cjs"));
/** A special constant with type `never` */
// export const NEVER = {} as never;
// iso
exports.iso = __importStar(require("./iso.cjs"));
var iso_js_1 = require("./iso.cjs");
Object.defineProperty(exports, "ZodMiniISODateTime", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODateTime; } });
Object.defineProperty(exports, "ZodMiniISODate", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODate; } });
Object.defineProperty(exports, "ZodMiniISOTime", { enumerable: true, get: function () { return iso_js_1.ZodMiniISOTime; } });
Object.defineProperty(exports, "ZodMiniISODuration", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODuration; } });
// coerce
exports.coerce = __importStar(require("./coerce.cjs"));
// seal-cjs-exports
(function () {
var keys = Object.getOwnPropertyNames(exports);
for (var i = 0; i < keys.length; i++) {
var desc = Object.getOwnPropertyDescriptor(exports, keys[i]);
if (!desc || !desc.get || !desc.configurable) continue;
var value;
try {
value = desc.get();
} catch (e) {
continue;
}
// a circular require may not have settled this one yet, so leave it live
if (value === undefined) continue;
Object.defineProperty(exports, keys[i], { value: value, writable: false, enumerable: desc.enumerable, configurable: false });
}
Object.freeze(exports);
})();
@@ -0,0 +1,97 @@
# MIME Type Parsing
<!--introduced_in=v4.13.0-->
<!--type=module-->
<!-- source_link=lib/web/fetch/data-url.js -->
> Stability: 2 - Stable
undici exposes helpers for parsing and serializing MIME types according to the
WHATWG [MIME Sniffing Standard][]. These are the same primitives undici uses
internally to interpret `Content-Type` headers and `data:` URLs.
Import the functions from `'undici'`:
```mjs
import { parseMIMEType, serializeAMimeType } from 'undici'
```
A parsed MIME type is represented as a plain object with the following shape:
* `type` {string} The lowercased type, for example `'text'`.
* `subtype` {string} The lowercased subtype, for example `'html'`.
* `parameters` {Map<string, string>} The parameters, keyed by lowercased
parameter name.
* `essence` {string} The concatenation of `type`, `'/'`, and `subtype`, for
example `'text/html'`.
## `parseMIMEType(input)`
<!-- YAML
added: v4.13.0
-->
* `input` {string} The MIME type string to parse.
* Returns: {Object|string} A parsed MIME type record, or the string literal
`'failure'` when `input` cannot be parsed.
* `type` {string} The lowercased type.
* `subtype` {string} The lowercased subtype.
* `parameters` {Map<string, string>} The parsed parameters, keyed by
lowercased parameter name.
* `essence` {string} The MIME type essence, `` `${type}/${subtype}` ``.
Implements the WHATWG [parse a MIME type][] algorithm. The `type` and `subtype`
are lowercased, and only the first occurrence of a duplicate parameter name is
retained. When `input` is empty, lacks a `/`, or otherwise violates the grammar,
the string literal `'failure'` is returned instead of a record.
```mjs
import { parseMIMEType } from 'undici'
parseMIMEType('text/html; charset=gbk')
// {
// type: 'text',
// subtype: 'html',
// parameters: Map(1) { 'charset' => 'gbk' },
// essence: 'text/html'
// }
parseMIMEType('not a mime type')
// 'failure'
```
## `serializeAMimeType(mimeType)`
<!-- YAML
added: v5.11.0
-->
* `mimeType` {Object} A MIME type record, as returned by [`parseMIMEType()`][].
* `type` {string} The type.
* `subtype` {string} The subtype.
* `parameters` {Map<string, string>} The parameters to serialize, in
insertion order.
* `essence` {string} The MIME type essence, `` `${type}/${subtype}` ``.
* Returns: {string} The serialized MIME type.
Implements the WHATWG [serialize a MIME type][] algorithm. The essence is
emitted followed by each parameter as `;name=value`. A parameter value that
contains characters outside the HTTP token set is quoted, and any `"` or `\`
characters within it are escaped.
```mjs
import { serializeAMimeType } from 'undici'
serializeAMimeType({
type: 'text',
subtype: 'html',
parameters: new Map([['charset', 'gbk']]),
essence: 'text/html'
})
// 'text/html;charset=gbk'
```
[MIME Sniffing Standard]: https://mimesniff.spec.whatwg.org/
[`parseMIMEType()`]: #parsemimetypeinput
[parse a MIME type]: https://mimesniff.spec.whatwg.org/#parse-a-mime-type
[serialize a MIME type]: https://mimesniff.spec.whatwg.org/#serialize-a-mime-type
@@ -0,0 +1,12 @@
import type * as JSONSchema from "../core/json-schema.js";
import { type $ZodRegistry } from "../core/registries.js";
import type { ZodType } from "./schemas.js";
type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
interface FromJSONSchemaParams {
defaultTarget?: JSONSchemaVersion;
registry?: $ZodRegistry<any>;
}
/**
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
export declare function fromJSONSchema(schema: JSONSchema.JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
export {};
@@ -0,0 +1 @@
["aaren","aarika","abagael","abagail","abbe","abbey","abbi","abbie","abby","abbye","abigael","abigail","abigale","abra","ada","adah","adaline","adan","adara","adda","addi","addia","addie","addy","adel","adela","adelaida","adelaide","adele","adelheid","adelice","adelina","adelind","adeline","adella","adelle","adena","adey","adi","adiana","adina","adora","adore","adoree","adorne","adrea","adria","adriaens","adrian","adriana","adriane","adrianna","adrianne","adriena","adrienne","aeriel","aeriela","aeriell","afton","ag","agace","agata","agatha","agathe","aggi","aggie","aggy","agna","agnella","agnes","agnese","agnesse","agneta","agnola","agretha","aida","aidan","aigneis","aila","aile","ailee","aileen","ailene","ailey","aili","ailina","ailis","ailsun","ailyn","aime","aimee","aimil","aindrea","ainslee","ainsley","ainslie","ajay","alaine","alameda","alana","alanah","alane","alanna","alayne","alberta","albertina","albertine","albina","alecia","aleda","aleece","aleen","alejandra","alejandrina","alena","alene","alessandra","aleta","alethea","alex","alexa","alexandra","alexandrina","alexi","alexia","alexina","alexine","alexis","alfi","alfie","alfreda","alfy","ali","alia","alica","alice","alicea","alicia","alida","alidia","alie","alika","alikee","alina","aline","alis","alisa","alisha","alison","alissa","alisun","alix","aliza","alla","alleen","allegra","allene","alli","allianora","allie","allina","allis","allison","allissa","allix","allsun","allx","ally","allyce","allyn","allys","allyson","alma","almeda","almeria","almeta","almira","almire","aloise","aloisia","aloysia","alta","althea","alvera","alverta","alvina","alvinia","alvira","alyce","alyda","alys","alysa","alyse","alysia","alyson","alyss","alyssa","amabel","amabelle","amalea","amalee","amaleta","amalia","amalie","amalita","amalle","amanda","amandi","amandie","amandy","amara","amargo","amata","amber","amberly","ambur","ame","amelia","amelie","amelina","ameline","amelita","ami","amie","amii","amil","amitie","amity","ammamaria","amy","amye","ana","anabal","anabel","anabella","anabelle","analiese","analise","anallese","anallise","anastasia","anastasie","anastassia","anatola","andee","andeee","anderea","andi","andie","andra","andrea","andreana","andree","andrei","andria","andriana","andriette","andromache","andy","anestassia","anet","anett","anetta","anette","ange","angel","angela","angele","angelia","angelica","angelika","angelina","angeline","angelique","angelita","angelle","angie","angil","angy","ania","anica","anissa","anita","anitra","anjanette","anjela","ann","ann-marie","anna","anna-diana","anna-diane","anna-maria","annabal","annabel","annabela","annabell","annabella","annabelle","annadiana","annadiane","annalee","annaliese","annalise","annamaria","annamarie","anne","anne-corinne","anne-marie","annecorinne","anneliese","annelise","annemarie","annetta","annette","anni","annice","annie","annis","annissa","annmaria","annmarie","annnora","annora","anny","anselma","ansley","anstice","anthe","anthea","anthia","anthiathia","antoinette","antonella","antonetta","antonia","antonie","antonietta","antonina","anya","appolonia","april","aprilette","ara","arabel","arabela","arabele","arabella","arabelle","arda","ardath","ardeen","ardelia","ardelis","ardella","ardelle","arden","ardene","ardenia","ardine","ardis","ardisj","ardith","ardra","ardyce","ardys","ardyth","aretha","ariadne","ariana","aridatha","ariel","ariela","ariella","arielle","arlana","arlee","arleen","arlen","arlena","arlene","arleta","arlette","arleyne","arlie","arliene","arlina","arlinda","arline","arluene","arly","arlyn","arlyne","aryn","ashely","ashia","ashien","ashil","ashla","ashlan","ashlee","ashleigh","ashlen","ashley","ashli","ashlie","ashly","asia","astra","astrid","astrix","atalanta","athena","athene","atlanta","atlante","auberta","aubine","aubree","aubrette","aubrey","aubrie","aubry","audi","audie","audra","audre","audrey","audrie","audry","audrye","audy","augusta","auguste","augustina","augustine","aundrea","aura","aurea","aurel","aurelea","aurelia","aurelie","auria","aurie","aurilia","aurlie","auroora","aurora","aurore","austin","austina","austine","ava","aveline","averil","averyl","avie","avis","aviva","avivah","avril","avrit","ayn","bab","babara","babb","babbette","babbie","babette","babita","babs","bambi","bambie","bamby","barb","barbabra","barbara","barbara-anne","barbaraanne","barbe","barbee","barbette","barbey","barbi","barbie","barbra","barby","bari","barrie","barry","basia","bathsheba","batsheva","bea","beatrice","beatrisa","beatrix","beatriz","bebe","becca","becka","becki","beckie","becky","bee","beilul","beitris","bekki","bel","belia","belicia","belinda","belita","bell","bella","bellanca","belle","bellina","belva","belvia","bendite","benedetta","benedicta","benedikta","benetta","benita","benni","bennie","benny","benoite","berenice","beret","berget","berna","bernadene","bernadette","bernadina","bernadine","bernardina","bernardine","bernelle","bernete","bernetta","bernette","berni","bernice","Line truncated
@@ -0,0 +1,91 @@
import getCleanPasswords from './unmunger/getCleanPasswords.mjs';
import MatchDictionary from '../../matching.mjs';
const getExtras = (passwordWithSubs, i, j) => {
const previousChanges = passwordWithSubs.changes.filter(changes => {
return changes.i < i;
});
const iUnsubbed = previousChanges.reduce((value, change) => {
return value - change.letter.length + change.substitution.length;
}, i);
const usedChanges = passwordWithSubs.changes.filter(changes => {
return changes.i >= i && changes.i <= j;
});
const jUnsubbed = usedChanges.reduce((value, change) => {
return value - change.letter.length + change.substitution.length;
}, j - i + iUnsubbed);
const filtered = [];
const subDisplay = [];
usedChanges.forEach(value => {
const existingIndex = filtered.findIndex(t => {
return t.letter === value.letter && t.substitution === value.substitution;
});
if (existingIndex < 0) {
filtered.push({
letter: value.letter,
substitution: value.substitution
});
subDisplay.push(`${value.substitution} -> ${value.letter}`);
}
});
return {
i: iUnsubbed,
j: jUnsubbed,
subs: filtered,
subDisplay: subDisplay.join(', ')
};
};
/*
* -------------------------------------------------------------------------------
* Dictionary l33t matching -----------------------------------------------------
* -------------------------------------------------------------------------------
*/
class MatchL33t extends MatchDictionary {
isAlreadyIncluded(matches, newMatch) {
return matches.some(l33tMatch => {
return Object.entries(l33tMatch).every(([key, value]) => {
return key === 'subs' || value === newMatch[key];
});
});
}
match(matchOptions) {
const matches = [];
const subbedPasswords = getCleanPasswords(matchOptions.password, this.options.l33tMaxSubstitutions, this.options.trieNodeRoot);
let hasFullMatch = false;
subbedPasswords.forEach(subbedPassword => {
if (hasFullMatch) {
return;
}
const matchedDictionary = super.match({
...matchOptions,
password: subbedPassword.password,
useLevenshtein: subbedPassword.isFullSubstitution
});
matchedDictionary.forEach(match => {
if (!hasFullMatch) {
hasFullMatch = match.i === 0 && match.j === matchOptions.password.length - 1;
}
const extras = getExtras(subbedPassword, match.i, match.j);
const token = matchOptions.password.slice(extras.i, extras.j + 1 || 9e9);
const newMatch = {
...match,
l33t: true,
token,
...extras
};
const alreadyIncluded = this.isAlreadyIncluded(matches, newMatch);
// only return the matches that contain an actual substitution
if (token.toLowerCase() !== match.matchedWord && !alreadyIncluded) {
matches.push(newMatch);
}
});
});
// filter single-character l33t matches to reduce noise.
// otherwise '1' matches 'i', '4' matches 'a', both very common English words
// with low dictionary rank.
return matches.filter(match => match.token.length > 1);
}
}
export { MatchL33t as default };
//# sourceMappingURL=l33t.mjs.map
@@ -0,0 +1,5 @@
import * as ts from 'typescript';
import type { ParseSettings } from '../parseSettings';
import type { ASTAndNoProgram } from './shared';
export declare function createSourceFile(parseSettings: ParseSettings): ts.SourceFile;
export declare function createNoProgram(parseSettings: ParseSettings): ASTAndNoProgram;
@@ -0,0 +1,837 @@
export default `flf2a� 3 3 7 -1 16
Pyramid by Claude Martins 02/95
Includes characters 128-255
figlet release 2.1 -- 12 Aug 1994
Permission is hereby given to modify this font, as long as the
modifier's name is placed on a comment line.
Explanation of first line:
flf2 - "magic number" for file identification
a - should always be \`a', for now
$ - the "hardblank" -- prints as a blank, but can't be smushed
3 - height of a character
3 - height of a character, not including descenders
7 - max line length (excluding comment lines) + a fudge factor
-1 - default smushmode for this font
16 - number of comment lines
���@
���@
���@@
^ @
/!\\ @
<___>@@
^ @
/"\\ @
<___>@@
^ @
/#\\ @
<___>@@
^ @
/$\\ @
<___>@@
^ @
/%\\ @
<___>@@
^ @
/&\\ @
<___>@@
^ @
/'\\ @
<___>@@
^ @
/(\\ @
<___>@@
^ @
/)\\ @
<___>@@
^ @
/*\\ @
<___>@@
^ @
/+\\ @
<___>@@
^ @
/,\\ @
<___>@@
^ @
/-\\ @
<___>@@
^ @
/.\\ @
<___>@@
^ @
//\\ @
<___>@@
^ @
/0\\ @
<___>@@
^ @
/1\\ @
<___>@@
^ @
/2\\ @
<___>@@
^ @
/3\\ @
<___>@@
^ @
/4\\ @
<___>@@
^ @
/5\\ @
<___>@@
^ @
/6\\ @
<___>@@
^ @
/7\\ @
<___>@@
^ @
/8\\ @
<___>@@
^ @
/9\\ @
<___>@@
^ @
/:\\ @
<___>@@
^ @
/;\\ @
<___>@@
^ @
/<\\ @
<___>@@
^ @
/=\\ @
<___>@@
^ @
/>\\ @
<___>@@
^ @
/?\\ @
<___>@@
^ @
/@\\ @
<___>@@
^ @
/A\\ @
<___>@@
^ @
/B\\ @
<___>@@
^ @
/C\\ @
<___>@@
^ @
/D\\ @
<___>@@
^ @
/E\\ @
<___>@@
^ @
/F\\ @
<___>@@
^ @
/G\\ @
<___>@@
^ @
/H\\ @
<___>@@
^ @
/I\\ @
<___>@@
^ @
/J\\ @
<___>@@
^ @
/K\\ @
<___>@@
^ @
/L\\ @
<___>@@
^ @
/M\\ @
<___>@@
^ @
/N\\ @
<___>@@
^ @
/O\\ @
<___>@@
^ @
/P\\ @
<___>@@
^ @
/Q\\ @
<___>@@
^ @
/R\\ @
<___>@@
^ @
/S\\ @
<___>@@
^ @
/T\\ @
<___>@@
^ @
/U\\ @
<___>@@
^ @
/V\\ @
<___>@@
^ @
/W\\ @
<___>@@
^ @
/X\\ @
<___>@@
^ @
/Y\\ @
<___>@@
^ @
/Z\\ @
<___>@@
^ @
/[\\ @
<___>@@
^ @
/\\\\ @
<___>@@
^ @
/]\\ @
<___>@@
^ @
/^\\ @
<___>@@
^ @
/_\\ @
<___>@@
^ @
/\`\\ @
<___>@@
^ @
/a\\ @
<___>@@
^ @
/b\\ @
<___>@@
^ @
/c\\ @
<___>@@
^ @
/d\\ @
<___>@@
^ @
/e\\ @
<___>@@
^ @
/f\\ @
<___>@@
^ @
/g\\ @
<___>@@
^ @
/h\\ @
<___>@@
^ @
/i\\ @
<___>@@
^ @
/j\\ @
<___>@@
^ @
/k\\ @
<___>@@
^ @
/l\\ @
<___>@@
^ @
/m\\ @
<___>@@
^ @
/n\\ @
<___>@@
^ @
/o\\ @
<___>@@
^ @
/p\\ @
<___>@@
^ @
/q\\ @
<___>@@
^ @
/r\\ @
<___>@@
^ @
/s\\ @
<___>@@
^ @
/t\\ @
<___>@@
^ @
/u\\ @
<___>@@
^ @
/v\\ @
<___>@@
^ @
/w\\ @
<___>@@
^ @
/x\\ @
<___>@@
^ @
/y\\ @
<___>@@
^ @
/z\\ @
<___>@@
^ @
/{\\ @
<___>@@
^ @
/|\\ @
<___>@@
^ @
/}\\ @
<___>@@
^ @
/~\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
^ @
/�\\ @
<___>@@
128
^ @
/�\\ @
<___>@@
129
^ @
/�\\ @
<___>@@
130
^ @
/�\\ @
<___>@@
131
^ @
/�\\ @
<___>@@
132
^ @
/�\\ @
<___>@@
133
^ @
/�\\ @
<___>@@
134
^ @
/�\\ @
<___>@@
135
^ @
/�\\ @
<___>@@
136
^ @
/�\\ @
<___>@@
137
^ @
/�\\ @
<___>@@
138
^ @
/�\\ @
<___>@@
139
^ @
/�\\ @
<___>@@
140
^ @
/�\\ @
<___>@@
141
^ @
/�\\ @
<___>@@
142
^ @
/�\\ @
<___>@@
143
^ @
/�\\ @
<___>@@
144
^ @
/�\\ @
<___>@@
145
^ @
/�\\ @
<___>@@
146
^ @
/�\\ @
<___>@@
147
^ @
/�\\ @
<___>@@
148
^ @
/�\\ @
<___>@@
149
^ @
/�\\ @
<___>@@
150
^ @
/�\\ @
<___>@@
151
^ @
/�\\ @
<___>@@
152
^ @
/�\\ @
<___>@@
153
^ @
/�\\ @
<___>@@
154
^ @
/�\\ @
<___>@@
155
^ @
/�\\ @
<___>@@
156
^ @
/�\\ @
<___>@@
157
^ @
/�\\ @
<___>@@
158
^ @
/�\\ @
<___>@@
159
^ @
/�\\ @
<___>@@
160
^ @
/�\\ @
<___>@@
161
^ @
/�\\ @
<___>@@
162
^ @
/�\\ @
<___>@@
163
^ @
/�\\ @
<___>@@
164
^ @
/�\\ @
<___>@@
165
^ @
/�\\ @
<___>@@
166
^ @
/�\\ @
<___>@@
167
^ @
/�\\ @
<___>@@
168
^ @
/�\\ @
<___>@@
169
^ @
/�\\ @
<___>@@
170
^ @
/�\\ @
<___>@@
171
^ @
/�\\ @
<___>@@
172
^ @
/�\\ @
<___>@@
173
^ @
/�\\ @
<___>@@
174
^ @
/�\\ @
<___>@@
175
^ @
/�\\ @
<___>@@
176
^ @
/�\\ @
<___>@@
177
^ @
/�\\ @
<___>@@
178
^ @
/�\\ @
<___>@@
179
^ @
/�\\ @
<___>@@
180
^ @
/�\\ @
<___>@@
181
^ @
/�\\ @
<___>@@
182
^ @
/�\\ @
<___>@@
183
^ @
/�\\ @
<___>@@
184
^ @
/�\\ @
<___>@@
185
^ @
/�\\ @
<___>@@
186
^ @
/�\\ @
<___>@@
187
^ @
/�\\ @
<___>@@
188
^ @
/�\\ @
<___>@@
189
^ @
/�\\ @
<___>@@
190
^ @
/�\\ @
<___>@@
191
^ @
/�\\ @
<___>@@
192
^ @
/�\\ @
<___>@@
193
^ @
/�\\ @
<___>@@
194
^ @
/�\\ @
<___>@@
195
^ @
/�\\ @
<___>@@
196
^ @
/�\\ @
<___>@@
197
^ @
/�\\ @
<___>@@
198
^ @
/�\\ @
<___>@@
199
^ @
/�\\ @
<___>@@
200
^ @
/�\\ @
<___>@@
201
^ @
/�\\ @
<___>@@
202
^ @
/�\\ @
<___>@@
203
^ @
/�\\ @
<___>@@
204
^ @
/�\\ @
<___>@@
205
^ @
/�\\ @
<___>@@
206
^ @
/�\\ @
<___>@@
207
^ @
/�\\ @
<___>@@
208
^ @
/�\\ @
<___>@@
209
^ @
/�\\ @
<___>@@
210
^ @
/�\\ @
<___>@@
211
^ @
/�\\ @
<___>@@
212
^ @
/�\\ @
<___>@@
213
^ @
/�\\ @
<___>@@
214
^ @
/�\\ @
<___>@@
215
^ @
/�\\ @
<___>@@
216
^ @
/�\\ @
<___>@@
217
^ @
/�\\ @
<___>@@
218
^ @
/�\\ @
<___>@@
219
^ @
/�\\ @
<___>@@
220
^ @
/�\\ @
<___>@@
221
^ @
/�\\ @
<___>@@
222
^ @
/�\\ @
<___>@@
223
^ @
/�\\ @
<___>@@
224
^ @
/�\\ @
<___>@@
225
^ @
/�\\ @
<___>@@
226
^ @
/�\\ @
<___>@@
227
^ @
/�\\ @
<___>@@
228
^ @
/�\\ @
<___>@@
229
^ @
/�\\ @
<___>@@
230
^ @
/�\\ @
<___>@@
231
^ @
/�\\ @
<___>@@
232
^ @
/�\\ @
<___>@@
233
^ @
/�\\ @
<___>@@
234
^ @
/�\\ @
<___>@@
235
^ @
/�\\ @
<___>@@
236
^ @
/�\\ @
<___>@@
237
^ @
/�\\ @
<___>@@
238
^ @
/�\\ @
<___>@@
239
^ @
/�\\ @
<___>@@
240
^ @
/\\ @
<___>@@
241
^ @
/�\\ @
<___>@@
242
^ @
/�\\ @
<___>@@
243
^ @
/\\ @
<___>@@
244
^ @
/�\\ @
<___>@@
245
^ @
/\\ @
<___>@@
246
^ @
/�\\ @
<___>@@
247
^ @
/�\\ @
<___>@@
248
^ @
/�\\ @
<___>@@
249
^ @
/�\\ @
<___>@@
250
^ @
/�\\ @
<___>@@
251
^ @
/�\\ @
<___>@@
252
^ @
/�\\ @
<___>@@
253
^ @
/�\\ @
<___>@@
254
^ @
/�\\ @
<___>@@
255
^ @
/�\\ @
<___>@@
`
@@ -0,0 +1,31 @@
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
var _base = require('./traverser/base');
var _index = require('./traverser/index');
class File {
constructor(tokens, scopes) {
this.tokens = tokens;
this.scopes = scopes;
}
} exports.File = File;
function parse(
input,
isJSXEnabled,
isTypeScriptEnabled,
isFlowEnabled,
) {
if (isFlowEnabled && isTypeScriptEnabled) {
throw new Error("Cannot combine flow and typescript plugins.");
}
_base.initParser.call(void 0, input, isJSXEnabled, isTypeScriptEnabled, isFlowEnabled);
const result = _index.parseFile.call(void 0, );
if (_base.state.error) {
throw _base.augmentError.call(void 0, _base.state.error);
}
return result;
} exports.parse = parse;
@@ -0,0 +1 @@
{"version":3,"file":"folder-clock.js","sources":["../../../src/icons/folder-clock.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name FolderClock\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8Y2lyY2xlIGN4PSIxNiIgY3k9IjE2IiByPSI2IiAvPgogIDxwYXRoIGQ9Ik03IDIwSDRhMiAyIDAgMCAxLTItMlY1YTIgMiAwIDAgMSAyLTJoMy45YTIgMiAwIDAgMSAxLjY5LjlsLjgxIDEuMmEyIDIgMCAwIDAgMS42Ny45SDIwYTIgMiAwIDAgMSAyIDIiIC8+CiAgPHBhdGggZD0iTTE2IDE0djJsMSAxIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/folder-clock\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst FolderClock = createLucideIcon('FolderClock', [\n ['circle', { cx: '16', cy: '16', r: '6', key: 'qoo3c4' }],\n [\n 'path',\n {\n d: 'M7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2',\n key: '1urifu',\n },\n ],\n ['path', { d: 'M16 14v2l1 1', key: 'xth2jh' }],\n]);\n\nexport default FolderClock;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,iBAAiB,aAAe,CAAA,CAAA,CAAA;AAAA,CAClD,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAM,CAAI,CAAA,CAAA,CAAA,IAAA,CAAM,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CACxD,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CAAA,CACA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AAC/C,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,47 @@
import { Env, MiddlewareHandler } from "../../types.js";
import { Context } from "../../context.js";
import { Hono } from "../../hono.js";
//#region src/middleware/method-not-allowed/index.d.ts
type MethodNotAllowedHandler<E extends Env> = (c: Context<E>, allowedMethods: string[]) => Response | Promise<Response>;
type MethodNotAllowedOptions<E extends Env> = {
app: Hono<E, any, any>;
onMethodNotAllowed?: MethodNotAllowedHandler<E>;
};
/**
* Method Not Allowed Middleware for Hono.
*
* Returns a `405 Method Not Allowed` response with an `Allow` header when the request path
* matches a registered route but the request method is not supported.
*
* @param {MethodNotAllowedOptions} options - The options for the middleware.
* @param {Hono} options.app - The Hono instance used by the application.
* @param {MethodNotAllowedHandler} [options.onMethodNotAllowed] - Generates the response, including its `Allow` header.
* @returns {MiddlewareHandler} The middleware handler function.
*
* @example
* ```ts
* const app = new Hono()
*
* app.use(methodNotAllowed({ app }))
*
* app.get('/hello', (c) => c.text('Hello!'))
* app.post('/hello', (c) => c.text('Posted!'))
*
* // PUT /hello -> 405 Method Not Allowed
* // Allow: GET, HEAD, POST
* ```
*
* @example
* ```ts
* app.use(
* methodNotAllowed({
* app,
* onMethodNotAllowed: (c, methods) =>
* c.json({ error: 'Method Not Allowed' }, 405, { Allow: methods.join(', ') }),
* })
* )
* ```
*/
export declare const methodNotAllowed: <E extends Env = Env>(options: MethodNotAllowedOptions<E>) => MiddlewareHandler<E>;
//#endregion
export {};
@@ -0,0 +1,911 @@
[
"AbortController",
"AbortSignal",
"AbsoluteOrientationSensor",
"AbstractRange",
"Accelerometer",
"AI",
"AICreateMonitor",
"AITextSession",
"AnalyserNode",
"Animation",
"AnimationEffect",
"AnimationEvent",
"AnimationPlaybackEvent",
"AnimationTimeline",
"AsyncDisposableStack",
"Attr",
"Audio",
"AudioBuffer",
"AudioBufferSourceNode",
"AudioContext",
"AudioData",
"AudioDecoder",
"AudioDestinationNode",
"AudioEncoder",
"AudioListener",
"AudioNode",
"AudioParam",
"AudioParamMap",
"AudioProcessingEvent",
"AudioScheduledSourceNode",
"AudioSinkInfo",
"AudioWorklet",
"AudioWorkletGlobalScope",
"AudioWorkletNode",
"AudioWorkletProcessor",
"AuthenticatorAssertionResponse",
"AuthenticatorAttestationResponse",
"AuthenticatorResponse",
"BackgroundFetchManager",
"BackgroundFetchRecord",
"BackgroundFetchRegistration",
"BarcodeDetector",
"BarProp",
"BaseAudioContext",
"BatteryManager",
"BeforeUnloadEvent",
"BiquadFilterNode",
"Blob",
"BlobEvent",
"Bluetooth",
"BluetoothCharacteristicProperties",
"BluetoothDevice",
"BluetoothRemoteGATTCharacteristic",
"BluetoothRemoteGATTDescriptor",
"BluetoothRemoteGATTServer",
"BluetoothRemoteGATTService",
"BluetoothUUID",
"BroadcastChannel",
"BrowserCaptureMediaStreamTrack",
"ByteLengthQueuingStrategy",
"Cache",
"CacheStorage",
"CanvasCaptureMediaStream",
"CanvasCaptureMediaStreamTrack",
"CanvasGradient",
"CanvasPattern",
"CanvasRenderingContext2D",
"CaptureController",
"CaretPosition",
"CDATASection",
"ChannelMergerNode",
"ChannelSplitterNode",
"ChapterInformation",
"CharacterBoundsUpdateEvent",
"CharacterData",
"Clipboard",
"ClipboardEvent",
"ClipboardItem",
"CloseEvent",
"CloseWatcher",
"CommandEvent",
"Comment",
"CompositionEvent",
"CompressionStream",
"ConstantSourceNode",
"ContentVisibilityAutoStateChangeEvent",
"ConvolverNode",
"CookieChangeEvent",
"CookieDeprecationLabel",
"CookieStore",
"CookieStoreManager",
"CountQueuingStrategy",
"Credential",
"CredentialsContainer",
"CropTarget",
"Crypto",
"CryptoKey",
"CSPViolationReportBody",
"CSS",
"CSSAnimation",
"CSSConditionRule",
"CSSContainerRule",
"CSSCounterStyleRule",
"CSSFontFaceRule",
"CSSFontFeatureValuesRule",
"CSSFontPaletteValuesRule",
"CSSGroupingRule",
"CSSImageValue",
"CSSImportRule",
"CSSKeyframeRule",
"CSSKeyframesRule",
"CSSKeywordValue",
"CSSLayerBlockRule",
"CSSLayerStatementRule",
"CSSMarginRule",
"CSSMathClamp",
"CSSMathInvert",
"CSSMathMax",
"CSSMathMin",
"CSSMathNegate",
"CSSMathProduct",
"CSSMathSum",
"CSSMathValue",
"CSSMatrixComponent",
"CSSMediaRule",
"CSSNamespaceRule",
"CSSNestedDeclarations",
"CSSNumericArray",
"CSSNumericValue",
"CSSPageDescriptors",
"CSSPageRule",
"CSSPerspective",
"CSSPositionTryDescriptors",
"CSSPositionTryRule",
"CSSPositionValue",
"CSSPropertyRule",
"CSSRotate",
"CSSRule",
"CSSRuleList",
"CSSScale",
"CSSScopeRule",
"CSSSkew",
"CSSSkewX",
"CSSSkewY",
"CSSStartingStyleRule",
"CSSStyleDeclaration",
"CSSStyleRule",
"CSSStyleSheet",
"CSSStyleValue",
"CSSSupportsRule",
"CSSTransformComponent",
"CSSTransformValue",
"CSSTransition",
"CSSTranslate",
"CSSUnitValue",
"CSSUnparsedValue",
"CSSVariableReferenceValue",
"CSSViewTransitionRule",
"CustomElementRegistry",
"CustomEvent",
"CustomStateSet",
"DataTransfer",
"DataTransferItem",
"DataTransferItemList",
"DecompressionStream",
"DelayNode",
"DelegatedInkTrailPresenter",
"DeviceMotionEvent",
"DeviceMotionEventAcceleration",
"DeviceMotionEventRotationRate",
"DeviceOrientationEvent",
"DevicePosture",
"DisposableStack",
"Document",
"DocumentFragment",
"DocumentPictureInPicture",
"DocumentPictureInPictureEvent",
"DocumentTimeline",
"DocumentType",
"DOMError",
"DOMException",
"DOMImplementation",
"DOMMatrix",
"DOMMatrixReadOnly",
"DOMParser",
"DOMPoint",
"DOMPointReadOnly",
"DOMQuad",
"DOMRect",
"DOMRectList",
"DOMRectReadOnly",
"DOMStringList",
"DOMStringMap",
"DOMTokenList",
"DragEvent",
"DynamicsCompressorNode",
"EditContext",
"Element",
"ElementInternals",
"EncodedAudioChunk",
"EncodedVideoChunk",
"ErrorEvent",
"Event",
"EventCounts",
"EventSource",
"EventTarget",
"External",
"EyeDropper",
"FeaturePolicy",
"FederatedCredential",
"Fence",
"FencedFrameConfig",
"FetchLaterResult",
"File",
"FileList",
"FileReader",
"FileSystem",
"FileSystemDirectoryEntry",
"FileSystemDirectoryHandle",
"FileSystemDirectoryReader",
"FileSystemEntry",
"FileSystemFileEntry",
"FileSystemFileHandle",
"FileSystemHandle",
"FileSystemObserver",
"FileSystemWritableFileStream",
"FocusEvent",
"FontData",
"FontFace",
"FontFaceSet",
"FontFaceSetLoadEvent",
"FormData",
"FormDataEvent",
"FragmentDirective",
"GainNode",
"Gamepad",
"GamepadAxisMoveEvent",
"GamepadButton",
"GamepadButtonEvent",
"GamepadEvent",
"GamepadHapticActuator",
"GamepadPose",
"Geolocation",
"GeolocationCoordinates",
"GeolocationPosition",
"GeolocationPositionError",
"GPU",
"GPUAdapter",
"GPUAdapterInfo",
"GPUBindGroup",
"GPUBindGroupLayout",
"GPUBuffer",
"GPUBufferUsage",
"GPUCanvasContext",
"GPUColorWrite",
"GPUCommandBuffer",
"GPUCommandEncoder",
"GPUCompilationInfo",
"GPUCompilationMessage",
"GPUComputePassEncoder",
"GPUComputePipeline",
"GPUDevice",
"GPUDeviceLostInfo",
"GPUError",
"GPUExternalTexture",
"GPUInternalError",
"GPUMapMode",
"GPUOutOfMemoryError",
"GPUPipelineError",
"GPUPipelineLayout",
"GPUQuerySet",
"GPUQueue",
"GPURenderBundle",
"GPURenderBundleEncoder",
"GPURenderPassEncoder",
"GPURenderPipeline",
"GPUSampler",
"GPUShaderModule",
"GPUShaderStage",
"GPUSupportedFeatures",
"GPUSupportedLimits",
"GPUTexture",
"GPUTextureUsage",
"GPUTextureView",
"GPUUncapturedErrorEvent",
"GPUValidationError",
"GravitySensor",
"Gyroscope",
"HashChangeEvent",
"Headers",
"HID",
"HIDConnectionEvent",
"HIDDevice",
"HIDInputReportEvent",
"Highlight",
"HighlightRegistry",
"History",
"HTMLAllCollection",
"HTMLAnchorElement",
"HTMLAreaElement",
"HTMLAudioElement",
"HTMLBaseElement",
"HTMLBodyElement",
"HTMLBRElement",
"HTMLButtonElement",
"HTMLCanvasElement",
"HTMLCollection",
"HTMLDataElement",
"HTMLDataListElement",
"HTMLDetailsElement",
"HTMLDialogElement",
"HTMLDirectoryElement",
"HTMLDivElement",
"HTMLDListElement",
"HTMLDocument",
"HTMLElement",
"HTMLEmbedElement",
"HTMLFencedFrameElement",
"HTMLFieldSetElement",
"HTMLFontElement",
"HTMLFormControlsCollection",
"HTMLFormElement",
"HTMLFrameElement",
"HTMLFrameSetElement",
"HTMLHeadElement",
"HTMLHeadingElement",
"HTMLHRElement",
"HTMLHtmlElement",
"HTMLIFrameElement",
"HTMLImageElement",
"HTMLInputElement",
"HTMLLabelElement",
"HTMLLegendElement",
"HTMLLIElement",
"HTMLLinkElement",
"HTMLMapElement",
"HTMLMarqueeElement",
"HTMLMediaElement",
"HTMLMenuElement",
"HTMLMetaElement",
"HTMLMeterElement",
"HTMLModElement",
"HTMLObjectElement",
"HTMLOListElement",
"HTMLOptGroupElement",
"HTMLOptionElement",
"HTMLOptionsCollection",
"HTMLOutputElement",
"HTMLParagraphElement",
"HTMLParamElement",
"HTMLPictureElement",
"HTMLPreElement",
"HTMLProgressElement",
"HTMLQuoteElement",
"HTMLScriptElement",
"HTMLSelectedContentElement",
"HTMLSelectElement",
"HTMLSlotElement",
"HTMLSourceElement",
"HTMLSpanElement",
"HTMLStyleElement",
"HTMLTableCaptionElement",
"HTMLTableCellElement",
"HTMLTableColElement",
"HTMLTableElement",
"HTMLTableRowElement",
"HTMLTableSectionElement",
"HTMLTemplateElement",
"HTMLTextAreaElement",
"HTMLTimeElement",
"HTMLTitleElement",
"HTMLTrackElement",
"HTMLUListElement",
"HTMLUnknownElement",
"HTMLVideoElement",
"IDBCursor",
"IDBCursorWithValue",
"IDBDatabase",
"IDBFactory",
"IDBIndex",
"IDBKeyRange",
"IDBObjectStore",
"IDBOpenDBRequest",
"IDBRequest",
"IDBTransaction",
"IDBVersionChangeEvent",
"IdentityCredential",
"IdentityCredentialError",
"IdentityProvider",
"IdleDeadline",
"IdleDetector",
"IIRFilterNode",
"Image",
"ImageBitmap",
"ImageBitmapRenderingContext",
"ImageCapture",
"ImageData",
"ImageDecoder",
"ImageTrack",
"ImageTrackList",
"Ink",
"InputDeviceCapabilities",
"InputDeviceInfo",
"InputEvent",
"IntersectionObserver",
"IntersectionObserverEntry",
"Keyboard",
"KeyboardEvent",
"KeyboardLayoutMap",
"KeyframeEffect",
"LanguageDetector",
"LargestContentfulPaint",
"LaunchParams",
"LaunchQueue",
"LayoutShift",
"LayoutShiftAttribution",
"LinearAccelerationSensor",
"Location",
"Lock",
"LockManager",
"MathMLElement",
"MediaCapabilities",
"MediaCapabilitiesInfo",
"MediaDeviceInfo",
"MediaDevices",
"MediaElementAudioSourceNode",
"MediaEncryptedEvent",
"MediaError",
"MediaKeyError",
"MediaKeyMessageEvent",
"MediaKeys",
"MediaKeySession",
"MediaKeyStatusMap",
"MediaKeySystemAccess",
"MediaList",
"MediaMetadata",
"MediaQueryList",
"MediaQueryListEvent",
"MediaRecorder",
"MediaRecorderErrorEvent",
"MediaSession",
"MediaSource",
"MediaSourceHandle",
"MediaStream",
"MediaStreamAudioDestinationNode",
"MediaStreamAudioSourceNode",
"MediaStreamEvent",
"MediaStreamTrack",
"MediaStreamTrackAudioSourceNode",
"MediaStreamTrackAudioStats",
"MediaStreamTrackEvent",
"MediaStreamTrackGenerator",
"MediaStreamTrackProcessor",
"MediaStreamTrackVideoStats",
"MessageChannel",
"MessageEvent",
"MessagePort",
"MIDIAccess",
"MIDIConnectionEvent",
"MIDIInput",
"MIDIInputMap",
"MIDIMessageEvent",
"MIDIOutput",
"MIDIOutputMap",
"MIDIPort",
"MimeType",
"MimeTypeArray",
"ModelGenericSession",
"ModelManager",
"MouseEvent",
"MutationEvent",
"MutationObserver",
"MutationRecord",
"NamedNodeMap",
"NavigateEvent",
"Navigation",
"NavigationActivation",
"NavigationCurrentEntryChangeEvent",
"NavigationDestination",
"NavigationHistoryEntry",
"NavigationPreloadManager",
"NavigationTransition",
"Navigator",
"NavigatorLogin",
"NavigatorManagedData",
"NavigatorUAData",
"NetworkInformation",
"Node",
"NodeFilter",
"NodeIterator",
"NodeList",
"Notification",
"NotifyPaintEvent",
"NotRestoredReasonDetails",
"NotRestoredReasons",
"Observable",
"OfflineAudioCompletionEvent",
"OfflineAudioContext",
"OffscreenCanvas",
"OffscreenCanvasRenderingContext2D",
"Option",
"OrientationSensor",
"OscillatorNode",
"OTPCredential",
"OverconstrainedError",
"PageRevealEvent",
"PageSwapEvent",
"PageTransitionEvent",
"PannerNode",
"PasswordCredential",
"Path2D",
"PaymentAddress",
"PaymentManager",
"PaymentMethodChangeEvent",
"PaymentRequest",
"PaymentRequestUpdateEvent",
"PaymentResponse",
"Performance",
"PerformanceElementTiming",
"PerformanceEntry",
"PerformanceEventTiming",
"PerformanceLongAnimationFrameTiming",
"PerformanceLongTaskTiming",
"PerformanceMark",
"PerformanceMeasure",
"PerformanceNavigation",
"PerformanceNavigationTiming",
"PerformanceObserver",
"PerformanceObserverEntryList",
"PerformancePaintTiming",
"PerformanceResourceTiming",
"PerformanceScriptTiming",
"PerformanceServerTiming",
"PerformanceTiming",
"PeriodicSyncManager",
"PeriodicWave",
"Permissions",
"PermissionStatus",
"PERSISTENT",
"PictureInPictureEvent",
"PictureInPictureWindow",
"Plugin",
"PluginArray",
"PointerEvent",
"PopStateEvent",
"Presentation",
"PresentationAvailability",
"PresentationConnection",
"PresentationConnectionAvailableEvent",
"PresentationConnectionCloseEvent",
"PresentationConnectionList",
"PresentationReceiver",
"PresentationRequest",
"PressureObserver",
"PressureRecord",
"ProcessingInstruction",
"Profiler",
"ProgressEvent",
"PromiseRejectionEvent",
"ProtectedAudience",
"PublicKeyCredential",
"PushManager",
"PushSubscription",
"PushSubscriptionOptions",
"RadioNodeList",
"Range",
"ReadableByteStreamController",
"ReadableStream",
"ReadableStreamBYOBReader",
"ReadableStreamBYOBRequest",
"ReadableStreamDefaultController",
"ReadableStreamDefaultReader",
"RelativeOrientationSensor",
"RemotePlayback",
"ReportBody",
"ReportingObserver",
"Request",
"ResizeObserver",
"ResizeObserverEntry",
"ResizeObserverSize",
"Response",
"RestrictionTarget",
"RTCCertificate",
"RTCDataChannel",
"RTCDataChannelEvent",
"RTCDtlsTransport",
"RTCDTMFSender",
"RTCDTMFToneChangeEvent",
"RTCEncodedAudioFrame",
"RTCEncodedVideoFrame",
"RTCError",
"RTCErrorEvent",
"RTCIceCandidate",
"RTCIceTransport",
"RTCPeerConnection",
"RTCPeerConnectionIceErrorEvent",
"RTCPeerConnectionIceEvent",
"RTCRtpReceiver",
"RTCRtpScriptTransform",
"RTCRtpSender",
"RTCRtpTransceiver",
"RTCSctpTransport",
"RTCSessionDescription",
"RTCStatsReport",
"RTCTrackEvent",
"Scheduler",
"Scheduling",
"Screen",
"ScreenDetailed",
"ScreenDetails",
"ScreenOrientation",
"ScriptProcessorNode",
"ScrollTimeline",
"SecurityPolicyViolationEvent",
"Selection",
"Sensor",
"SensorErrorEvent",
"Serial",
"SerialPort",
"ServiceWorker",
"ServiceWorkerContainer",
"ServiceWorkerRegistration",
"ShadowRoot",
"SharedStorage",
"SharedStorageAppendMethod",
"SharedStorageClearMethod",
"SharedStorageDeleteMethod",
"SharedStorageModifierMethod",
"SharedStorageSetMethod",
"SharedStorageWorklet",
"SharedWorker",
"SnapEvent",
"SourceBuffer",
"SourceBufferList",
"SpeechSynthesis",
"SpeechSynthesisErrorEvent",
"SpeechSynthesisEvent",
"SpeechSynthesisUtterance",
"SpeechSynthesisVoice",
"StaticRange",
"StereoPannerNode",
"Storage",
"StorageBucket",
"StorageBucketManager",
"StorageEvent",
"StorageManager",
"StylePropertyMap",
"StylePropertyMapReadOnly",
"StyleSheet",
"StyleSheetList",
"SubmitEvent",
"Subscriber",
"SubtleCrypto",
"SuppressedError",
"SVGAElement",
"SVGAngle",
"SVGAnimatedAngle",
"SVGAnimatedBoolean",
"SVGAnimatedEnumeration",
"SVGAnimatedInteger",
"SVGAnimatedLength",
"SVGAnimatedLengthList",
"SVGAnimatedNumber",
"SVGAnimatedNumberList",
"SVGAnimatedPreserveAspectRatio",
"SVGAnimatedRect",
"SVGAnimatedString",
"SVGAnimatedTransformList",
"SVGAnimateElement",
"SVGAnimateMotionElement",
"SVGAnimateTransformElement",
"SVGAnimationElement",
"SVGCircleElement",
"SVGClipPathElement",
"SVGComponentTransferFunctionElement",
"SVGDefsElement",
"SVGDescElement",
"SVGElement",
"SVGEllipseElement",
"SVGFEBlendElement",
"SVGFEColorMatrixElement",
"SVGFEComponentTransferElement",
"SVGFECompositeElement",
"SVGFEConvolveMatrixElement",
"SVGFEDiffuseLightingElement",
"SVGFEDisplacementMapElement",
"SVGFEDistantLightElement",
"SVGFEDropShadowElement",
"SVGFEFloodElement",
"SVGFEFuncAElement",
"SVGFEFuncBElement",
"SVGFEFuncGElement",
"SVGFEFuncRElement",
"SVGFEGaussianBlurElement",
"SVGFEImageElement",
"SVGFEMergeElement",
"SVGFEMergeNodeElement",
"SVGFEMorphologyElement",
"SVGFEOffsetElement",
"SVGFEPointLightElement",
"SVGFESpecularLightingElement",
"SVGFESpotLightElement",
"SVGFETileElement",
"SVGFETurbulenceElement",
"SVGFilterElement",
"SVGForeignObjectElement",
"SVGGElement",
"SVGGeometryElement",
"SVGGradientElement",
"SVGGraphicsElement",
"SVGImageElement",
"SVGLength",
"SVGLengthList",
"SVGLinearGradientElement",
"SVGLineElement",
"SVGMarkerElement",
"SVGMaskElement",
"SVGMatrix",
"SVGMetadataElement",
"SVGMPathElement",
"SVGNumber",
"SVGNumberList",
"SVGPathElement",
"SVGPatternElement",
"SVGPoint",
"SVGPointList",
"SVGPolygonElement",
"SVGPolylineElement",
"SVGPreserveAspectRatio",
"SVGRadialGradientElement",
"SVGRect",
"SVGRectElement",
"SVGScriptElement",
"SVGSetElement",
"SVGStopElement",
"SVGStringList",
"SVGStyleElement",
"SVGSVGElement",
"SVGSwitchElement",
"SVGSymbolElement",
"SVGTextContentElement",
"SVGTextElement",
"SVGTextPathElement",
"SVGTextPositioningElement",
"SVGTitleElement",
"SVGTransform",
"SVGTransformList",
"SVGTSpanElement",
"SVGUnitTypes",
"SVGUseElement",
"SVGViewElement",
"SyncManager",
"TaskAttributionTiming",
"TaskController",
"TaskPriorityChangeEvent",
"TaskSignal",
"TEMPORARY",
"Text",
"TextDecoder",
"TextDecoderStream",
"TextEncoder",
"TextEncoderStream",
"TextEvent",
"TextFormat",
"TextFormatUpdateEvent",
"TextMetrics",
"TextTrack",
"TextTrackCue",
"TextTrackCueList",
"TextTrackList",
"TextUpdateEvent",
"TimeEvent",
"TimeRanges",
"ToggleEvent",
"Touch",
"TouchEvent",
"TouchList",
"TrackEvent",
"TransformStream",
"TransformStreamDefaultController",
"TransitionEvent",
"TreeWalker",
"TrustedHTML",
"TrustedScript",
"TrustedScriptURL",
"TrustedTypePolicy",
"TrustedTypePolicyFactory",
"UIEvent",
"URL",
"URLPattern",
"URLSearchParams",
"USB",
"USBAlternateInterface",
"USBConfiguration",
"USBConnectionEvent",
"USBDevice",
"USBEndpoint",
"USBInterface",
"USBInTransferResult",
"USBIsochronousInTransferPacket",
"USBIsochronousInTransferResult",
"USBIsochronousOutTransferPacket",
"USBIsochronousOutTransferResult",
"USBOutTransferResult",
"UserActivation",
"ValidityState",
"VideoColorSpace",
"VideoDecoder",
"VideoEncoder",
"VideoFrame",
"VideoPlaybackQuality",
"ViewTimeline",
"ViewTransition",
"ViewTransitionTypeSet",
"VirtualKeyboard",
"VirtualKeyboardGeometryChangeEvent",
"VisibilityStateEntry",
"VisualViewport",
"VTTCue",
"VTTRegion",
"WakeLock",
"WakeLockSentinel",
"WaveShaperNode",
"WebAssembly",
"WebGL2RenderingContext",
"WebGLActiveInfo",
"WebGLBuffer",
"WebGLContextEvent",
"WebGLFramebuffer",
"WebGLObject",
"WebGLProgram",
"WebGLQuery",
"WebGLRenderbuffer",
"WebGLRenderingContext",
"WebGLSampler",
"WebGLShader",
"WebGLShaderPrecisionFormat",
"WebGLSync",
"WebGLTexture",
"WebGLTransformFeedback",
"WebGLUniformLocation",
"WebGLVertexArrayObject",
"WebSocket",
"WebSocketError",
"WebSocketStream",
"WebTransport",
"WebTransportBidirectionalStream",
"WebTransportDatagramDuplexStream",
"WebTransportError",
"WebTransportReceiveStream",
"WebTransportSendStream",
"WGSLLanguageFeatures",
"WheelEvent",
"Window",
"WindowControlsOverlay",
"WindowControlsOverlayGeometryChangeEvent",
"Worker",
"Worklet",
"WorkletGlobalScope",
"WritableStream",
"WritableStreamDefaultController",
"WritableStreamDefaultWriter",
"XMLDocument",
"XMLHttpRequest",
"XMLHttpRequestEventTarget",
"XMLHttpRequestUpload",
"XMLSerializer",
"XPathEvaluator",
"XPathExpression",
"XPathResult",
"XRAnchor",
"XRAnchorSet",
"XRBoundedReferenceSpace",
"XRCamera",
"XRCPUDepthInformation",
"XRDepthInformation",
"XRDOMOverlayState",
"XRFrame",
"XRHand",
"XRHitTestResult",
"XRHitTestSource",
"XRInputSource",
"XRInputSourceArray",
"XRInputSourceEvent",
"XRInputSourcesChangeEvent",
"XRJointPose",
"XRJointSpace",
"XRLayer",
"XRLightEstimate",
"XRLightProbe",
"XRPose",
"XRRay",
"XRReferenceSpace",
"XRReferenceSpaceEvent",
"XRRenderState",
"XRRigidTransform",
"XRSession",
"XRSessionEvent",
"XRSpace",
"XRSystem",
"XRTransientInputHitTestResult",
"XRTransientInputHitTestSource",
"XRView",
"XRViewerPose",
"XRViewport",
"XRWebGLBinding",
"XRWebGLDepthInformation",
"XRWebGLLayer",
"XSLTProcessor"
]
@@ -0,0 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isImmutable;
var _isType = require("./isType.js");
var _index = require("./generated/index.js");
function isImmutable(node) {
if ((0, _isType.default)(node.type, "Immutable")) return true;
if ((0, _index.isIdentifier)(node)) {
if (node.name === "undefined") {
return true;
} else {
return false;
}
}
return false;
}
//# sourceMappingURL=isImmutable.js.map
@@ -0,0 +1,8 @@
import { b as MS_IN_MINUTE } from "./constants-BuFquuHl.mjs";
import addMilliseconds from "./addMilliseconds.mjs";
function addMinutes(date, minutes) {
return addMilliseconds(date, minutes * MS_IN_MINUTE);
}
export {
addMinutes as default
};
@@ -0,0 +1,37 @@
/**
* @fileoverview Rule to flag use of with statement
* @author Nicholas C. Zakas
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
module.exports = {
meta: {
type: "suggestion",
docs: {
description: "Disallow `with` statements",
recommended: true,
url: "https://eslint.org/docs/latest/rules/no-with",
},
schema: [],
messages: {
unexpectedWith: "Unexpected use of 'with' statement.",
},
},
create(context) {
return {
WithStatement(node) {
context.report({ node, messageId: "unexpectedWith" });
},
};
},
};
@@ -0,0 +1 @@
{"version":3,"file":"abort-signal.d.ts","sourceRoot":"","sources":["../../../web/abort-signal.ts"],"names":[],"mappings":"AAwDA,QAAA,MAAM,iBAAiB,KAwErB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,25 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const VolumeOff = createLucideIcon("VolumeOff", [
["path", { d: "M16 9a5 5 0 0 1 .95 2.293", key: "1fgyg8" }],
["path", { d: "M19.364 5.636a9 9 0 0 1 1.889 9.96", key: "l3zxae" }],
["path", { d: "m2 2 20 20", key: "1ooewy" }],
[
"path",
{
d: "m7 7-.587.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298V11",
key: "1gbwow"
}
],
["path", { d: "M9.828 4.172A.686.686 0 0 1 11 4.657v.686", key: "s2je0y" }]
]);
export { VolumeOff as default };
//# sourceMappingURL=volume-off.js.map
@@ -0,0 +1,33 @@
'use strict'
let Container = require('./container')
let LazyResult, Processor
class Document extends Container {
constructor(defaults) {
// type needs to be passed to super, otherwise child roots won't be normalized correctly
super({ type: 'document', ...defaults })
if (!this.nodes) {
this.nodes = []
}
}
toResult(opts = {}) {
let lazy = new LazyResult(new Processor(), this, opts)
return lazy.stringify()
}
}
Document.registerLazyResult = dependant => {
LazyResult = dependant
}
Document.registerProcessor = dependant => {
Processor = dependant
}
module.exports = Document
Document.default = Document
@@ -0,0 +1,74 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var index_exports = {};
__export(index_exports, {
composeRefs: () => composeRefs,
useComposedRefs: () => useComposedRefs
});
module.exports = __toCommonJS(index_exports);
// src/compose-refs.tsx
var React = __toESM(require("react"));
function setRef(ref, value) {
if (typeof ref === "function") {
return ref(value);
} else if (ref !== null && ref !== void 0) {
ref.current = value;
}
}
function composeRefs(...refs) {
return (node) => {
let hasCleanup = false;
const cleanups = refs.map((ref) => {
const cleanup = setRef(ref, node);
if (!hasCleanup && typeof cleanup == "function") {
hasCleanup = true;
}
return cleanup;
});
if (hasCleanup) {
return () => {
for (let i = 0; i < cleanups.length; i++) {
const cleanup = cleanups[i];
if (typeof cleanup == "function") {
cleanup();
} else {
setRef(refs[i], null);
}
}
};
}
};
}
function useComposedRefs(...refs) {
return React.useCallback(composeRefs(...refs), refs);
}
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"shimsBrowser.d.mts","names":[],"sources":["../src/shimsBrowser.ts"],"sourcesContent":[],"mappings":";;;;;;;;;cAYa,gBAAA"}
@@ -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**.
@@ -0,0 +1,37 @@
const LOG10 = Math.log(10);
const LOG2 = Math.log(2);
var utils = {
// binomial coefficients
// src: http://blog.plover.com/math/choose.html
nCk(n, k) {
let count = n;
if (k > count) {
return 0;
}
if (k === 0) {
return 1;
}
let coEff = 1;
for (let i = 1; i <= k; i += 1) {
coEff *= count;
coEff /= i;
count -= 1;
}
return coEff;
},
log10(n) {
if (n === 0) return 0;
return Math.log(n) / LOG10; // IE doesn't support Math.log10 :(
},
log2(n) {
return Math.log(n) / LOG2;
},
factorial(num) {
let rval = 1;
for (let i = 2; i <= num; i += 1) rval *= i;
return rval;
}
};
export { utils as default };
//# sourceMappingURL=utils.mjs.map
@@ -0,0 +1,13 @@
import type {ErrorObject} from "../types"
export default class ValidationError extends Error {
readonly errors: Partial<ErrorObject>[]
readonly ajv: true
readonly validation: true
constructor(errors: Partial<ErrorObject>[]) {
super("validation failed")
this.errors = errors
this.ajv = this.validation = true
}
}
@@ -0,0 +1,7 @@
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
/**
* Recommended rules for code correctness that you can drop in without additional configuration.
* @see {@link https://typescript-eslint.io/users/configs#recommended}
*/
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
export default _default;
@@ -0,0 +1,16 @@
require('thenify-all').withCallback(
require('dns'),
exports, [
'lookup',
'resolve',
'resolve4',
'resolve6',
'resolveCname',
'resolveMx',
'resolveNs',
'resolveSrv',
'resolveTxt',
'reverse'
]
)
@@ -0,0 +1,61 @@
'use strict'
const test = require('tape')
const fastURI = require('..')
const malformedURNs = [
'urn:',
'URN:',
'urn:foo',
'urn::foo',
'urn:foo:',
'urn:%66oo:bar'
]
test('parse reports malformed ordinary URNs', (t) => {
for (const uri of malformedURNs) {
t.match(fastURI.parse(uri).error, /^URN can not be parsed\.?$/, uri)
}
t.end()
})
test('normalize preserves malformed ordinary URNs without throwing', (t) => {
for (const uri of malformedURNs) {
t.doesNotThrow(() => fastURI.normalize(uri), `${uri} does not throw`)
t.equal(fastURI.normalize(uri), uri, `${uri} is preserved`)
}
t.equal(
fastURI.normalize('urn:foo', { reference: 'relative' }),
'urn:foo',
'an earlier parse error does not hide the missing URN nid'
)
t.end()
})
test('equal returns false for malformed ordinary URNs', (t) => {
for (const uri of malformedURNs) {
t.equal(fastURI.equal(uri, uri, {}), false, `${uri} is not equal to itself as malformed input`)
t.equal(fastURI.equal(uri, 'urn:foo:bar', {}), false, `${uri} is not equal to a valid URN`)
}
t.end()
})
test('resolve handles malformed ordinary URNs without throwing', (t) => {
for (const uri of malformedURNs) {
t.doesNotThrow(() => fastURI.resolve('uri://base/', uri), `${uri} does not throw as a relative reference`)
t.doesNotThrow(() => fastURI.resolve(uri, ''), `${uri} does not throw as a base URI`)
}
// resolve preserves the malformed scheme-specific input rather than surfacing
// an uncaught 'URN without nid cannot be serialized' error (matches upstream uri-js)
t.equal(fastURI.resolve('uri://base/', 'urn:'), 'urn:', 'malformed relative URN is preserved')
t.equal(fastURI.resolve('URN:', ''), 'urn:', 'scheme case is normalized')
t.equal(fastURI.resolve('uri://base/', 'urn:%66oo:bar'), 'urn:foo:bar', 'percent-encoding is decoded')
t.end()
})
test('valid URNs retain their existing behavior', (t) => {
t.equal(fastURI.normalize('URN:FOO:a123,456'), 'urn:foo:a123,456')
t.equal(fastURI.equal('urn:foo:a123,456', 'URN:FOO:a123,456', {}), true)
t.equal(fastURI.resolve('uri://base/', 'urn:'), 'urn:', 'default resolve behavior is unchanged')
t.end()
})
@@ -0,0 +1,12 @@
"use strict";
// THIS CODE WAS AUTOMATICALLY GENERATED
// DO NOT EDIT THIS CODE BY HAND
// RUN THE FOLLOWING COMMAND FROM THE WORKSPACE ROOT TO REGENERATE:
// npx nx generate-lib repo
Object.defineProperty(exports, "__esModule", { value: true });
exports.es2023_collection = void 0;
const base_config_1 = require("./base-config");
exports.es2023_collection = {
libs: [],
variables: [['WeakKeyTypes', base_config_1.TYPE]],
};
@@ -0,0 +1,575 @@
// prettier-ignore
/* eslint-disable */
// @ts-nocheck
/* auto-generated by NAPI-RS */
const { readFileSync } = require('node:fs')
let nativeBinding = null
const loadErrors = []
const isMusl = () => {
let musl = false
if (process.platform === 'linux') {
musl = isMuslFromFilesystem()
if (musl === null) {
musl = isMuslFromReport()
}
if (musl === null) {
musl = isMuslFromChildProcess()
}
}
return musl
}
const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-')
const isMuslFromFilesystem = () => {
try {
return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl')
} catch {
return null
}
}
const isMuslFromReport = () => {
let report = null
if (typeof process.report?.getReport === 'function') {
process.report.excludeNetwork = true
report = process.report.getReport()
}
if (!report) {
return null
}
if (report.header && report.header.glibcVersionRuntime) {
return false
}
if (Array.isArray(report.sharedObjects)) {
if (report.sharedObjects.some(isFileMusl)) {
return true
}
}
return false
}
const isMuslFromChildProcess = () => {
try {
return require('child_process').execSync('ldd --version', { encoding: 'utf8' }).includes('musl')
} catch (e) {
// If we reach this case, we don't know if the system is musl or not, so is better to just fallback to false
return false
}
}
function requireNative() {
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
try {
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
} catch (err) {
loadErrors.push(err)
}
} else if (process.platform === 'android') {
if (process.arch === 'arm64') {
try {
return require('./tailwindcss-oxide.android-arm64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-android-arm64')
const bindingPackageVersion = require('@tailwindcss/oxide-android-arm64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'arm') {
try {
return require('./tailwindcss-oxide.android-arm-eabi.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-android-arm-eabi')
const bindingPackageVersion = require('@tailwindcss/oxide-android-arm-eabi/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`))
}
} else if (process.platform === 'win32') {
if (process.arch === 'x64') {
if (process.config?.variables?.shlib_suffix === 'dll.a' || process.config?.variables?.node_target_type === 'shared_library') {
try {
return require('./tailwindcss-oxide.win32-x64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-win32-x64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-win32-x64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.win32-x64-msvc.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-win32-x64-msvc')
const bindingPackageVersion = require('@tailwindcss/oxide-win32-x64-msvc/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'ia32') {
try {
return require('./tailwindcss-oxide.win32-ia32-msvc.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-win32-ia32-msvc')
const bindingPackageVersion = require('@tailwindcss/oxide-win32-ia32-msvc/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'arm64') {
try {
return require('./tailwindcss-oxide.win32-arm64-msvc.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-win32-arm64-msvc')
const bindingPackageVersion = require('@tailwindcss/oxide-win32-arm64-msvc/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`))
}
} else if (process.platform === 'darwin') {
try {
return require('./tailwindcss-oxide.darwin-universal.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-darwin-universal')
const bindingPackageVersion = require('@tailwindcss/oxide-darwin-universal/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
if (process.arch === 'x64') {
try {
return require('./tailwindcss-oxide.darwin-x64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-darwin-x64')
const bindingPackageVersion = require('@tailwindcss/oxide-darwin-x64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'arm64') {
try {
return require('./tailwindcss-oxide.darwin-arm64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-darwin-arm64')
const bindingPackageVersion = require('@tailwindcss/oxide-darwin-arm64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))
}
} else if (process.platform === 'freebsd') {
if (process.arch === 'x64') {
try {
return require('./tailwindcss-oxide.freebsd-x64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-freebsd-x64')
const bindingPackageVersion = require('@tailwindcss/oxide-freebsd-x64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'arm64') {
try {
return require('./tailwindcss-oxide.freebsd-arm64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-freebsd-arm64')
const bindingPackageVersion = require('@tailwindcss/oxide-freebsd-arm64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`))
}
} else if (process.platform === 'linux') {
if (process.arch === 'x64') {
if (isMusl()) {
try {
return require('./tailwindcss-oxide.linux-x64-musl.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-x64-musl')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-x64-musl/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.linux-x64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-x64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-x64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'arm64') {
if (isMusl()) {
try {
return require('./tailwindcss-oxide.linux-arm64-musl.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-arm64-musl')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-arm64-musl/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.linux-arm64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-arm64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-arm64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'arm') {
if (isMusl()) {
try {
return require('./tailwindcss-oxide.linux-arm-musleabihf.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-arm-musleabihf')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-arm-musleabihf/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.linux-arm-gnueabihf.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-arm-gnueabihf')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-arm-gnueabihf/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'loong64') {
if (isMusl()) {
try {
return require('./tailwindcss-oxide.linux-loong64-musl.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-loong64-musl')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-loong64-musl/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.linux-loong64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-loong64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-loong64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'riscv64') {
if (isMusl()) {
try {
return require('./tailwindcss-oxide.linux-riscv64-musl.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-riscv64-musl')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-riscv64-musl/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
try {
return require('./tailwindcss-oxide.linux-riscv64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-riscv64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-riscv64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
}
} else if (process.arch === 'ppc64') {
try {
return require('./tailwindcss-oxide.linux-ppc64-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-ppc64-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-ppc64-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 's390x') {
try {
return require('./tailwindcss-oxide.linux-s390x-gnu.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-linux-s390x-gnu')
const bindingPackageVersion = require('@tailwindcss/oxide-linux-s390x-gnu/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`))
}
} else if (process.platform === 'openharmony') {
if (process.arch === 'arm64') {
try {
return require('./tailwindcss-oxide.openharmony-arm64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-openharmony-arm64')
const bindingPackageVersion = require('@tailwindcss/oxide-openharmony-arm64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'x64') {
try {
return require('./tailwindcss-oxide.openharmony-x64.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-openharmony-x64')
const bindingPackageVersion = require('@tailwindcss/oxide-openharmony-x64/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else if (process.arch === 'arm') {
try {
return require('./tailwindcss-oxide.openharmony-arm.node')
} catch (e) {
loadErrors.push(e)
}
try {
const binding = require('@tailwindcss/oxide-openharmony-arm')
const bindingPackageVersion = require('@tailwindcss/oxide-openharmony-arm/package.json').version
if (bindingPackageVersion !== '4.2.2' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
throw new Error(`Native binding package version mismatch, expected 4.2.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
}
return binding
} catch (e) {
loadErrors.push(e)
}
} else {
loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`))
}
} else {
loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))
}
}
nativeBinding = requireNative()
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
let wasiBinding = null
let wasiBindingError = null
try {
wasiBinding = require('./tailwindcss-oxide.wasi.cjs')
nativeBinding = wasiBinding
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
wasiBindingError = err
}
}
if (!nativeBinding) {
try {
wasiBinding = require('@tailwindcss/oxide-wasm32-wasi')
nativeBinding = wasiBinding
} catch (err) {
if (process.env.NAPI_RS_FORCE_WASI) {
wasiBindingError.cause = err
loadErrors.push(err)
}
}
}
if (process.env.NAPI_RS_FORCE_WASI === 'error' && !wasiBinding) {
const error = new Error('WASI binding not found and NAPI_RS_FORCE_WASI is set to error')
error.cause = wasiBindingError
throw error
}
}
if (!nativeBinding) {
if (loadErrors.length > 0) {
throw new Error(
`Cannot find native binding. ` +
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
'Please try `npm i` again after removing both package-lock.json and node_modules directory.',
{
cause: loadErrors.reduce((err, cur) => {
cur.cause = err
return cur
}),
},
)
}
throw new Error(`Failed to load native binding`)
}
module.exports = nativeBinding
module.exports.Scanner = nativeBinding.Scanner
@@ -0,0 +1,13 @@
var currentNonce;
export var setNonce = function (nonce) {
currentNonce = nonce;
};
export var getNonce = function () {
if (currentNonce) {
return currentNonce;
}
if (typeof __webpack_nonce__ !== 'undefined') {
return __webpack_nonce__;
}
return undefined;
};
@@ -0,0 +1 @@
{"version":3,"file":"file-bar-chart.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1 @@
module.exports={A:{A:{"1":"_V","2":"_IB","260":"E"},B:{"1":"_J"},C:{"1":"_7M _hC _zE","2":"_g","516":"_aD"},D:{"1":"_CN _HC","2":"_6E"},E:{"1":"mB L _gT _wM","2":"_k","1025":"D"},F:{"1":"_a","2":"_VE","4":"aC"},G:{"1":"_YT _xC hD _s","16":"_sC","1025":"gD"},H:{"2":"1D"},I:{"1":"_SB","16":"_m"},J:{"1":"A","132":"D"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"1":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"_C"}},B:1,C:"Online/offline status",D:true};
@@ -0,0 +1,246 @@
(()=>{var e={"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files lazy recursive":function(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}webpackEmptyAsyncContext.keys=()=>[],webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext,webpackEmptyAsyncContext.id="./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files lazy recursive",e.exports=webpackEmptyAsyncContext},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files sync recursive":function(e){function webpackEmptyContext(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/files sync recursive",e.exports=webpackEmptyContext},"./node_modules/.pnpm/@babel+plugin-syntax-class-properties@7.12.13_@babel+core@7.28.4/node_modules/@babel/plugin-syntax-class-properties/lib/index.js":function(e,t,r){"use strict";t.default=void 0;var n=(0,r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.27.1/node_modules/@babel/helper-plugin-utils/lib/index.js").declare)(e=>(e.assertVersion(7),{name:"syntax-class-properties",manipulateOptions(e,t){t.plugins.push("classProperties","classPrivateProperties","classPrivateMethods")}}));t.default=n},"./node_modules/.pnpm/@jridgewell+gen-mapping@0.3.13/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js":function(e,t,r){var n;!function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,__commonJS=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},__export=(e,t)=>{for(var r in t)s(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of o(t))l.call(e,a)||a===r||s(e,a,{get:()=>t[a],enumerable:!(n=i(t,a))||n.enumerable});return e},__toESM=(e,t,r)=>(r=null!=e?n(a(e)):{},__copyProps(!t&&e&&e.__esModule?r:s(r,"default",{value:e,enumerable:!0}),e)),__toCommonJS=e=>__copyProps(s({},"__esModule",{value:!0}),e),p=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,r){r.exports=t}}),c=__commonJS({"umd:@jridgewell/trace-mapping"(e,t){t.exports=r}}),u={};__export(u,{GenMapping:()=>E,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap}),e.exports=__toCommonJS(u);var d=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function cast(e){return e}function get(e,t){return cast(e)._indexes[t]}function put(e,t){const r=get(e,t);if(void 0!==r)return r;const{array:n,_indexes:s}=cast(e),i=n.push(t);return s[t]=i-1}function remove(e,t){const r=get(e,t);if(void 0===r)return;const{array:n,_indexes:s}=cast(e);for(let e=r+1;e<n.length;e++){const t=n[e];n[e-1]=t,s[t]--}s[t]=void 0,n.pop()}var h=__toESM(p()),m=__toESM(c()),f=0,y=1,b=2,g=3,x=4,v=-1,E=class{constructor({file:e,sourceRoot:t}={}){this._names=new d,this._sources=new d,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new d}};function cast2(e){return e}function addSegment(e,t,r,n,s,i,o,a){return addSegmentInternal(!1,e,t,r,n,s,i,o,a)}function addMapping(e,t){return addMappingInternal(!1,e,t)}var maybeAddSegment=(e,t,r,n,s,i,o,a)=>addSegmentInternal(!0,e,t,r,n,s,i,o,a),maybeAddMapping=(e,t)=>addMappingInternal(!0,e,t);function setSourceContent(e,t,r){const{_sources:n,_sourcesContent:s}=cast2(e);s[put(n,t)]=r}function setIgnore(e,t,r=!0){const{_sources:n,_sourcesContent:s,_ignoreList:i}=cast2(e),o=put(n,t);o===s.length&&(s[o]=null),r?put(i,o):remove(i,o)}function toDecodedMap(e){const{_mappings:t,_sources:r,_sourcesContent:n,_names:s,_ignoreList:i}=cast2(e);return removeEmptyFinalLines(t),{version:3,file:e.file||void 0,names:s.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:n,mappings:t,ignoreList:i.array}}function toEncodedMap(e){const t=toDecodedMap(e);return Object.assign({},t,{mappings:(0,h.encode)(t.mappings)})}function fromMap(e){const t=new m.TraceMap(e),r=new E({file:t.file,sourceRoot:t.sourceRoot});return putAll(cast2(r)._names,t.names),putAll(cast2(r)._sources,t.sources),cast2(r)._sourcesContent=t.sourcesContent||t.sources.map(()=>null),cast2(r)._mappings=(0,m.decodedMappings)(t),t.ignoreList&&putAll(cast2(r)._ignoreList,t.ignoreList),r}function allMappings(e){const t=[],{_mappings:r,_sources:n,_names:s}=cast2(e);for(let e=0;e<r.length;e++){const i=r[e];for(let r=0;r<i.length;r++){const o=i[r],a={line:e+1,column:o[f]};let l,p,c;1!==o.length&&(l=n.array[oLine truncated
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(AMD_ARGUMENTS, factory);
} else if (typeof exports === "object") {
factory(COMMON_ARGUMENTS);
} else {
factory(BROWSER_ARGUMENTS);
}
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
FACTORY_BODY
});
`(e);function buildGlobal(e){const t=m("babelHelpers"),r=[],n=h(null,[m("global")],o(r)),l=b([d(a(n,[p(i("===",x("typeof",m("global")),g("undefined")),m("self"),m("global"))]))]);return r.push(v("var",[E(t,s("=",f(m("global"),t),y([])))])),buildHelpers(r,t,e),l}function buildModule(e){const t=[],r=buildHelpers(t,null,e);return t.unshift(c(null,Object.keys(r).map(e=>u(l(r[e]),m(e))))),b(t,[],"module")}function buildUmd(e){const t=m("babelHelpers"),r=[];return r.push(v("var",[E(t,m("global"))])),buildHelpers(r,t,e),b([buildUmdWrapper({FACTORY_PARAMETERS:m("global"),BROWSER_ARGUMENTS:s("=",f(m("root"),t),y([])),COMMON_ARGUMENTS:m("exports"),AMD_ARGUMENTS:n([g("exports")]),FACTORY_BODY:r,UMD_ROOT:m("this")})])}function buildVar(e){const t=m("babelHelpers"),r=[];r.push(v("var",[E(t,y([]))]));const n=b(r);return buildHelpers(r,t,e),r.push(d(t)),n}function buildHelpers(e,t,r){const getHelperReference=e=>t?f(t,m(e)):m(`_${e}`),n={};return helpers().list.forEach(function(i){if(r&&!r.includes(i))return;const o=n[i]=getHelperReference(i),{nodes:a}=helpers().get(i,getHelperReference,t?null:`_${i}`,[],t?(e,t,r)=>{r(e=>s("=",o,e)),e.body.push(d(s("=",o,m(t))))}:null);e.push(...a)}),n}},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform-ast.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFromAst=void 0,t.transformFromAstAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformFromAstSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const o=_gensync()(function*(e,t,r){const i=yield*(0,n.default)(r);if(null===i)return null;if(!e)throw new Error("No AST given");return yield*(0,s.run)(i,t,e)});t.transformFromAst=function(e,t,r,n){let s,a;if("function"==typeof r?(a=r,s=void 0):(s=r,a=n),void 0===a)return(0,i.beginHiddenCallStack)(o.sync)(e,t,s);(0,i.beginHiddenCallStack)(o.errback)(e,t,s,a)}},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform-file.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformFile=function(...e){o.errback(...e)},t.transformFileAsync=function(...e){return o.async(...e)},t.transformFileSync=function(...e){return o.sync(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/gensync-utils/fs.js");const o=_gensync()(function*(e,t){const r=Object.assign({},t,{filename:e}),o=yield*(0,n.default)(r);if(null===o)return null;const a=yield*i.readFile(e,"utf8");return yield*(0,s.run)(o,a)})},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transform.js":function(e,t,r){"use strict";function _gensync(){const e=r("./node_modules/.pnpm/gensync@1.0.0-beta.2/node_modules/gensync/index.js");return _gensync=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0,t.transformAsync=function(...e){return(0,i.beginHiddenCallStack)(o.async)(...e)},t.transformSync=function(...e){return(0,i.beginHiddenCallStack)(o.sync)(...e)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/index.js"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/index.js"),i=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js");const o=_gensync()(function*(e,t){const r=yield*(0,n.default)(t);return null===r?null:yield*(0,s.run)(r,e)});t.transform=function(e,t,r){let n,s;if("function"==typeof t?(s=t,n=void 0):(n=t,s=r),void 0===s)return(0,i.beginHiddenCallStack)(o.sync)(e,n);(0,i.beginHiddenCallStack)(o.errback)(e,n,s)}},"./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js":function(e,t,r){"use strict";function _traverse(){const e=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js");return _traverse=function(){return e},e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){s||(s=new n.default(Object.assign({},i,{visitor:_traverse().default.explode(i.visitor)}),{}));return s};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/config/plugin.js");let s;const i={name:"inLine truncated
${function(e){return e.addHelper("decorate")}(o)}(
${m||n.types.nullLiteral()},
function (${p}, ${d?n.types.cloneNode(h):null}) {
${a}
return { F: ${n.types.cloneNode(a.id)}, d: ${f} };
},
${d}
)
`;u||y.arguments[1].body.directives.push(n.types.directive(n.types.directiveLiteral("use strict")));let b=y,g="arguments.1.body.body.0";c&&(b=n.template.statement.ast`let ${e} = ${y}`,g="declarations.0.init."+g);return{instanceNodes:[n.template.statement.ast`
${n.types.cloneNode(p)}(this)
`],wrapClass:e=>(e.replaceWith(b),e.get(g))}};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-replace-supers@7.27.1_@babel+core@7.28.4/node_modules/@babel/helper-replace-supers/lib/index.js");function prop(e,t){return t?n.types.objectProperty(n.types.identifier(e),t):null}function takeDecorators(e){let t;return e.decorators&&e.decorators.length>0&&(t=n.types.arrayExpression(e.decorators.map(e=>e.expression))),e.decorators=void 0,t}function getKey(e){return e.computed?e.key:n.types.isIdentifier(e.key)?n.types.stringLiteral(e.key.name):n.types.stringLiteral(String(e.key.value))}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildNamedEvaluationVisitor=buildNamedEvaluationVisitor,t.default=function({assertVersion:e,assumption:t},{loose:i},c,y){var b,g;e("2023-11"===c||"2023-05"===c||"2023-01"===c?"^7.21.0":"2021-12"===c?"^7.16.0":"^7.19.0");const x=new WeakSet,v=null!=(b=t("constantSuper"))?b:i,E=null!=(g=t("ignoreFunctionLength"))?g:i,T=buildNamedEvaluationVisitor(isDecoratedAnonymousClassExpression,visitClass);function visitClass(e,t,r){var i;if(x.has(e))return;const{node:y}=e;null!=r||(r=null==(i=y.id)?void 0:i.name);const b=function(e,t,r,i,c,y,b){var g;const x=e.get("body.body"),v=e.node.decorators;let E=!1,T=!1,S=!1;const P=function(e){let t;return()=>(t||(t=function(e){const t=[],r=new Set;return e.traverse({PrivateName(e){r.add(e.node.id.name)}}),()=>{let e;do{incrementId(t),e=String.fromCharCode(...t)}while(r.has(e));return n.types.privateName(n.types.identifier(e))}}(e)),t())}(e),_=[],A=e.scope.parent,memoiseExpression=(e,t,r)=>{const s=generateLetUidIdentifier(A,t);return r.push(n.types.assignmentExpression("=",s,e)),n.types.cloneNode(s)};let C,w;const I=null==(g=e.node.id)?void 0:g.name,D="object"==typeof c?c:void 0,usesFunctionContextOrYieldAwait=e=>{try{return n.types.traverseFast(e,e=>{if(n.types.isThisExpression(e)||n.types.isSuper(e)||n.types.isYieldExpression(e)||n.types.isAwaitExpression(e)||n.types.isIdentifier(e,{name:"arguments"})||I&&n.types.isIdentifier(e,{name:I})||n.types.isMetaProperty(e)&&"import"!==e.meta.name)throw null}),!1}catch(e){return!0}},k=[];for(const r of x){if(!isClassDecoratableElementPath(r))continue;const s=r.node;if(!s.static&&n.types.isPrivateName(s.key)&&k.push(s.key.id.name),isDecorated(s)){switch(s.type){case"ClassProperty":y.ClassProperty(r,t);break;case"ClassPrivateProperty":y.ClassPrivateProperty(r,t);break;case"ClassAccessorProperty":if(y.ClassAccessorProperty(r,t),"2023-11"===b)break;default:s.static?null!=w||(w=generateLetUidIdentifier(A,"initStatic")):null!=C||(C=generateLetUidIdentifier(A,"initProto"))}E=!0,S||(S=s.decorators.some(usesFunctionContextOrYieldAwait))}else if("ClassAccessorProperty"===s.type){y.ClassAccessorProperty(r,t);const{key:i,value:o,static:l,computed:p}=s,u=P(),d=generateClassProperty(u,o,l),h=r.get("key"),[m]=r.replaceWith(d);let f,g;p&&!h.isConstantExpression()?(f=(0,a.memoiseComputedKey)(createToPropertyKeyCall(t,i),A,A.generateUid("computedKey")),g=n.types.cloneNode(f.left)):(f=n.types.cloneNode(i),g=n.types.cloneNode(i)),assignIdForAnonymousClass(e,c),addProxyAccessorsFor(e.node.id,m,f,g,u,p,l,b)}"computed"in r.node&&r.node.computed&&(T||(T=!A.isStatic(r.node.key)))}if(!v&&!E)return e.node.id||"string"!=typeof c||(e.node.id=n.types.identifier(c)),void(D&&e.node.body.body.unshift(createStaticBlockFromExpressions([createSetFunctionNameCall(t,D)])));const N=[];let O;const j=new Set;let F,L,M=null;function handleDecorators(e){let t=!1,r=!1;const s=[];for(const i of e){const{expression:e}=i;let o;"2023-11"!==b&&"2023-05"!==b||!n.types.isMemberExpression(e)||(n.types.isSuper(e.object)?o=n.types.thisExpression():A.isStatic(e.object)?o=n.types.cloneNode(e.object):(null!=M||(M=generateLetUidIdentifier(A,"obj")),o=n.types.assignmentExpression("=",n.types.cloneNode(M),e.object),e.object=n.types.cloneNode(M))),s.push(o),t||(t=!A.isStatic(e)),r||(r=usesFunctionContextOrYieldAwait(i))}return{hasSideEffects:t,usesFnContext:r,decoratorsThis:s}}const B=T||S||"2023-11"!==b;let R,U,V=!1,$=0,K=[],W=[];if(v){F=generateLetUidIdentifier(A,"initClass"),V=e.isClassDeclaration(),({id:L,path:e}=function(e,t){const r=e.node.id,s=e.scope;if("ClassDeclaration"===e.type){const t=r.name,i=s.generateUidIdentifierBasedOnNode(r),o=n.types.identifier(t);return s.rename(t,i.name),e.get("id").replaceWith(o),{id:n.types.cloneNode(i),path:e}}{let i;r?(t=r.name,i=generateLetUidIdentifier(s.parent,t),s.rename(t,i.name)):i=generateLetUidIdentifier(s.parent,"string"==typeof t?t:"decorated_class");const o=n.types.classExpression("string"==typeof t?n.types.identifier(t):null,e.node.superClass,e.node.body),[a]=e.replaceWith(n.types.sequenceExpression([o,i]));return{id:n.types.cloneNode(i),patLine truncated
class extends ${t.addHelper("identity")} {}
`;r.body.body=[n.types.classProperty(n.types.toExpression(re),void 0,void 0,void 0,!0,!0),...o];const s=[],i=n.types.newExpression(r,[]);z.length>0&&s.push(...z),ee&&(Z=!0,s.push(ee)),s.length>0?(s.unshift(n.types.callExpression(n.types.super(),[n.types.cloneNode(L)])),r.body.body.push(createConstructorFromExpressions(s,!1))):i.arguments.push(n.types.cloneNode(L));const[a]=e.replaceWith(i);te=a.get("callee").get("body").get("body.0.key")}}!Z&&ee&&e.node.body.body.push(n.types.staticBlock([n.types.expressionStatement(ee)]));let{superClass:se}=re;if(se&&("2023-11"===b||"2023-05"===b)){const t=e.scope.maybeGenerateMemoised(se);t&&(re.superClass=n.types.assignmentExpression("=",t,se),se=t)}const ie=n.types.staticBlock([]);re.body.body.unshift(ie);const oe=ie.body;if(W.length>0){const e=te.get("body.body");let t;for(const r of e)if((r.isClassProperty()||r.isClassMethod())&&"constructor"!==r.node.kind){t=r;break}null!=t?(!function(e){const{node:t}=e;t.computed=!0,n.types.isIdentifier(t.key)&&(t.key=n.types.stringLiteral(t.key.name))}(t),prependExpressionsToComputedKey(W,t)):(re.body.body.unshift(n.types.classProperty(n.types.sequenceExpression([...W,n.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),oe.push(n.types.expressionStatement(n.types.unaryExpression("delete",n.types.memberExpression(n.types.thisExpression(),n.types.identifier("_")))))),W=[]}oe.push(n.types.expressionStatement(function(e,t,r,s,i,o,a,l,p,c){let u,d;const h=[a?createSetFunctionNameCall(p,a):n.types.thisExpression(),s,r];"2023-11"!==c&&h.splice(1,2,r,s);if("2021-12"===c||"2022-03"===c&&!p.availableHelper("applyDecs2203R"))return u=n.types.arrayPattern([...e,...t]),d=n.types.callExpression(p.addHelper("2021-12"===c?"applyDecs":"applyDecs2203"),h),n.types.assignmentExpression("=",u,d);"2022-03"===c?d=n.types.callExpression(p.addHelper("applyDecs2203R"),h):"2023-01"===c?(o&&h.push(createPrivateBrandCheckClosure(o)),d=n.types.callExpression(p.addHelper("applyDecs2301"),h)):"2023-05"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2305"),h));"2023-11"===c&&((o||l||0!==i.value)&&h.push(i),o?h.push(createPrivateBrandCheckClosure(o)):l&&h.push(n.types.unaryExpression("void",n.types.numericLiteral(0))),l&&h.push(l),d=n.types.callExpression(p.addHelper("applyDecs2311"),h));e.length>0?t.length>0?u=n.types.objectPattern([n.types.objectProperty(n.types.identifier("e"),n.types.arrayPattern(e)),n.types.objectProperty(n.types.identifier("c"),n.types.arrayPattern(t))]):(u=n.types.arrayPattern(e),d=n.types.memberExpression(d,n.types.identifier("e"),!1,!1)):(u=n.types.arrayPattern(t),d=n.types.memberExpression(d,n.types.identifier("c"),!1,!1));return n.types.assignmentExpression("=",u,d)}(J,Q,X,null!=R?R:n.types.arrayExpression(K),n.types.numericLiteral($),q?U:null,D,n.types.cloneNode(se),t,b))),w&&oe.push(n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(w),[n.types.thisExpression()])));ne.length>0&&oe.push(...ne.map(e=>n.types.expressionStatement(e)));if(e.insertBefore(_.map(e=>n.types.expressionStatement(e))),V){if(A.getBinding(L.name).constantViolations.length){const t=A.generateUidIdentifier("t"+L.name),r=L;e.replaceWithMultiple([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(r)),n.types.variableDeclarator(t)]),n.types.blockStatement([n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(L))]),e.node,n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(t),n.types.cloneNode(L)))]),n.types.expressionStatement(n.types.assignmentExpression("=",n.types.cloneNode(r),n.types.cloneNode(t)))])}else e.insertBefore(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(L))]))}j.size>0&&function(e,t){const r=(0,o.privateNameVisitorFactory)({PrivateName(e,t){if(!t.privateNamesMap.has(e.node.id.name))return;const r=e.parentPath,n=r.parentPath;if("AssignmentExpression"===n.node.type&&n.node.left===r.node||"UpdateExpression"===n.node.type||"RestElement"===n.node.type||"ArrayPattern"===n.node.type||"ObjectProperty"===n.node.type&&n.node.value===r.node&&"ObjectPattern"===n.parentPath.type||"ForOfStatement"===n.node.type&&n.node.left===r.node)throw e.buildCodeFrameError(`Decorated private methods are read-only, but "#${e.node.id.name}" is updated via this expression.`)}}),n=new Map;for(const e of t)n.set(e,null);e.traverse(r,{privateNamesMap:n})}(e,j);return e.scope.crawl(),e}(e,t,v,E,r,T,c);b?x.add(b):x.add(e)}return{name:"proposal-decorators",inherits:y,visitor:Object.assign({ExportDefaultDeclaration(e,t){const{declaration:s}=e.node;if("ClassDeclaration"===(null==s?void 0:s.type)&&isDecorated(s)){const i=!s.id;null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js").NodePath.prototyLine truncated
function () {
return this.${n.types.cloneNode(e)};
}
`,n.template.expression.ast`
function (value) {
this.${n.types.cloneNode(e)} = value;
}
`]:[n.template.expression.ast`
o => o.${n.types.cloneNode(e)}
`,n.template.expression.ast`
(o, v) => o.${n.types.cloneNode(e)} = v
`]}function getComputedKeyLastElement(e){if((e=(0,i.skipTransparentExprWrappers)(e)).isSequenceExpression()){const t=e.get("expressions");return getComputedKeyLastElement(t[t.length-1])}return e}function getComputedKeyMemoiser(e){const t=getComputedKeyLastElement(e);if(t.isConstantExpression())return n.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return n.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return n.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function prependExpressionsToComputedKey(e,t){const r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToFieldInitializer(e,t){const r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=n.types.unaryExpression("void",e[e.length-1])),r.replaceWith(maybeSequenceExpression(e))}function prependExpressionsToStaticBlock(e,t){t.unshiftContainer("body",n.types.expressionStatement(maybeSequenceExpression(e)))}function isProtoInitCallExpression(e,t){return n.types.isCallExpression(e)&&n.types.isIdentifier(e.callee,{name:t.name})}function createConstructorFromExpressions(e,t){const r=[n.types.expressionStatement(maybeSequenceExpression(e))];return t&&r.unshift(n.types.expressionStatement(n.types.callExpression(n.types.super(),[n.types.spreadElement(n.types.identifier("args"))]))),n.types.classMethod("constructor",n.types.identifier("constructor"),t?[n.types.restElement(n.types.identifier("args"))]:[],n.types.blockStatement(r))}function createStaticBlockFromExpressions(e){return n.types.staticBlock([n.types.expressionStatement(maybeSequenceExpression(e))])}const l=0,p=1,c=2,u=3,d=4,h=5,m=8,f=16;function getElementKind(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return l;case"ClassAccessorProperty":return p;case"ClassMethod":case"ClassPrivateMethod":return"get"===e.node.kind?u:"set"===e.node.kind?d:c}}function generateDecorationList(e,t,r){const s=e.length,i=t.some(Boolean),o=[];for(let a=0;a<s;a++)"2023-11"!==r&&"2023-05"!==r||!i||o.push(t[a]||n.types.unaryExpression("void",n.types.numericLiteral(0))),o.push(e[a].expression);return{haveThis:i,decs:o}}function addCallAccessorsFor(e,t,r,s,i,o){t.insertAfter(n.types.classPrivateMethod("get",n.types.cloneNode(r),[],n.types.blockStatement([n.types.returnStatement(n.types.callExpression(n.types.cloneNode(s),"2023-11"===e&&o?[]:[n.types.thisExpression()]))]),o)),t.insertAfter(n.types.classPrivateMethod("set",n.types.cloneNode(r),[n.types.identifier("v")],n.types.blockStatement([n.types.expressionStatement(n.types.callExpression(n.types.cloneNode(i),"2023-11"===e&&o?[n.types.identifier("v")]:[n.types.thisExpression(),n.types.identifier("v")]))]),o))}function movePrivateAccessor(e,t,r,s){let i,o;"set"===e.node.kind?(i=[n.types.identifier("v")],o=[n.types.expressionStatement(n.types.callExpression(r,[n.types.thisExpression(),n.types.identifier("v")]))]):(i=[],o=[n.types.returnStatement(n.types.callExpression(r,[n.types.thisExpression()]))]),e.replaceWith(n.types.classPrivateMethod(e.node.kind,n.types.cloneNode(t),i,n.types.blockStatement(o),s))}function isClassDecoratableElementPath(e){const{type:t}=e;return"TSDeclareMethod"!==t&&"TSIndexSignature"!==t&&"StaticBlock"!==t}function maybeSequenceExpression(e){return 0===e.length?n.types.unaryExpression("void",n.types.numericLiteral(0)):1===e.length?e[0]:n.types.sequenceExpression(e)}function createFunctionExpressionFromPrivateMethod(e){const{params:t,body:r,generator:s,async:i}=e;return n.types.functionExpression(void 0,t,r,s,i)}function createSetFunctionNameCall(e,t){return n.types.callExpression(e.addHelper("setFunctionName"),[n.types.thisExpression(),t])}function createToPropertyKeyCall(e,t){return n.types.callExpression(e.addHelper("toPropertyKey"),[t])}function createPrivateBrandCheckClosure(e){return n.types.arrowFunctionExpression([n.types.identifier("_")],n.types.binaryExpression("in",n.types.cloneNode(e),n.types.identifier("_")))}function usesPrivateField(e){try{return n.types.traverseFast(e,e=>{if(n.types.isPrivateName(e))throw null}),!1}catch(e){return!0}}function hasInstancePrivateAccess(e,t){let r=!1;if(t.length>0){const n=(0,o.privateNameVisitorFactory)({PrivateName(e,t){t.privateNamesMap.has(e.node.id.name)&&(r=!0,e.stop())}}),s=new Map;for(const e of t)s.set(e,null);e.traverse(n,{privateNamesMap:s})}return r}function isProtoKey(e){return"Identifier"===e.type?"__proto__"===e.name:"__proto__"===e.value}function isDecorated(e){return e.decorators&&e.decorators.length>0}function shouldTransformElement(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return isDecorated(e);default:return!1}}function buildNamedEvaluationVisitor(e,t){function handleComputedProperty(e,t,r){switch(t.type){case"StLine truncated
Object.prototype.hasOwnProperty.call(${buildCheckInRHS(i,t)}, ${n.types.cloneNode(r)})
`)}const{id:c,static:u}=a.get(p);u?e.replaceWith(n.template.expression.ast`${buildCheckInRHS(i,t)} === ${n.types.cloneNode(this.classRef)}`):e.replaceWith(n.template.expression.ast`${n.types.cloneNode(c)}.has(${buildCheckInRHS(i,t)})`)}});function readOnlyError(e,t){return n.types.callExpression(e.addHelper("readOnlyError"),[n.types.stringLiteral(`#${t}`)])}function writeOnlyError(e,t){return e.availableHelper("writeOnlyError")?n.types.callExpression(e.addHelper("writeOnlyError"),[n.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),n.types.buildUndefinedNode())}function buildStaticPrivateFieldAccess(e,t){return t?e:n.types.memberExpression(e,n.types.identifier("_"))}function autoInherits(e){return function(t){return n.types.inherits(e.apply(this,arguments),t.node)}}const h={memoise(e,t){const{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){const{object:t}=e.node;return this.memoiser.has(t)?n.types.cloneNode(this.memoiser.get(t)):n.types.cloneNode(t)},get:autoInherits(function(e){const{classRef:t,privateNamesMap:r,file:s,innerBinding:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,methodId:d,getId:h,setId:m}=r.get(l),f=h||m,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(unshadow(t.name,e.scope,i),!newHelpers(s)){const r=u&&!f?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return n.types.callExpression(s.addHelper(r),[this.receiver(e),n.types.cloneNode(t),cloneId(p)])}const r=this.receiver(e),a=n.types.isIdentifier(r)&&r.name===t.name;if(!u)return buildStaticPrivateFieldAccess(a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)]),o);if(h)return a?n.types.callExpression(cloneId(h),[r]):n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(t),r,cloneId(h)]);if(m){const e=n.types.buildUndefinedNode();return a?e:n.types.sequenceExpression([n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r]),e])}return a?cloneId(p):n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(t),r,cloneId(p)])}return u?f?h?newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateGetter"),[n.types.cloneNode(p),this.receiver(e),cloneId(h)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)]):n.types.sequenceExpression([this.receiver(e),writeOnlyError(s,l)]):newHelpers(s)?n.types.callExpression(s.addHelper("assertClassBrand"),[n.types.cloneNode(p),this.receiver(e),cloneId(d)]):n.types.callExpression(s.addHelper("classPrivateMethodGet"),[this.receiver(e),n.types.cloneNode(p),cloneId(d)]):newHelpers(s)?n.types.callExpression(s.addHelper("classPrivateFieldGet2"),[cloneId(p),this.receiver(e)]):n.types.callExpression(s.addHelper("classPrivateFieldGet"),[this.receiver(e),cloneId(p)])}),boundGet(e){return this.memoise(e,1),n.types.callExpression(n.types.memberExpression(this.get(e),n.types.identifier("bind")),[this.receiver(e)])},set:autoInherits(function(e,t){const{classRef:r,privateNamesMap:s,file:i,noUninitializedPrivateFieldAccess:o}=this,a=e.node.property,{name:l}=a.id,{id:p,static:c,method:u,setId:d,getId:h}=s.get(l),m=h||d,cloneId=e=>n.types.inherits(n.types.cloneNode(e),a);if(c){if(!newHelpers(i)){const s=u&&!m?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return n.types.callExpression(i.addHelper(s),[this.receiver(e),n.types.cloneNode(r),cloneId(p),t])}const s=this.receiver(e),a=n.types.isIdentifier(s)&&s.name===r.name;if(u&&!d){const e=readOnlyError(i,l);return a?n.types.sequenceExpression([t,e]):n.types.sequenceExpression([t,n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s]),readOnlyError(i,l)])}return d?a?n.types.callExpression(n.types.cloneNode(d),[s,t]):n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(r),cloneId(d),s,t]):n.types.assignmentExpression("=",buildStaticPrivateFieldAccess(cloneId(p),o),a?t:n.types.callExpression(i.addHelper("assertClassBrand"),[n.types.cloneNode(r),s,t]))}return u?d?newHelpers(i)?n.types.callExpression(i.addHelper("classPrivateSetter"),[n.types.cloneNode(p),cloneId(d),this.receiver(e),t]):n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(p),t]):n.types.sequenceExpression([this.receiver(e),t,readOnlyError(i,l)]):newHelpers(i)?n.types.callExpression(i.addHelper("classPrivateFieldSet2"),[cloneId(p),this.receiver(e),t]):n.types.callExpression(i.addHelper("classPrivateFieldSet"),[this.receiver(e),cloneId(p),t])}),destructureSet(e){const{classRef:t,privateNamesMap:r,file:s,noUninitializedPrivateFieldAccess:i}=this,o=e.node.property,{name:a}=o.id,{id:l,static:p,method:c,setId:u}=r.get(a),cloneId=e=>n.types.inherits(n.types.cloneNode(e),o);if(!newHelpers(s)){if(p){try{var d=s.addHelper("classStaticPrivateFieldDestructureSet")}catch(e){throw new ErroLine truncated
Object.defineProperty(${e}, ${n.types.cloneNode(s)}, {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${i}
});
`,t)}function buildPrivateInstanceFieldInitSpec(e,t,r,s){const{id:i}=r.get(t.node.key.id.name),o=t.node.value||t.scope.buildUndefinedNode();if(!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`${n.types.cloneNode(i)}.set(${e}, {
// configurable is always false for private elements
// enumerable is always false for private elements
writable: true,
value: ${o},
})`,t);const a=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.types.expressionStatement(n.types.callExpression(a,[n.types.thisExpression(),inheritLoc(n.types.cloneNode(i),t.node.key),newHelpers(s)?o:n.template.expression.ast`{ writable: true, value: ${o} }`])),t),t.node)}function buildPrivateStaticFieldInitSpec(e,t,r){const s=t.get(e.node.key.id.name),i=r?e.node.value:n.template.expression.ast`{
_: ${e.node.value||n.types.buildUndefinedNode()}
}`;return inheritPropComments(n.types.variableDeclaration("var",[n.types.variableDeclarator(n.types.cloneNode(s.id),i)]),e)}var buildPrivateStaticFieldInitSpecOld=function(e,t){const r=t.get(e.node.key.id.name),{id:s,getId:i,setId:o,initAdded:a}=r,l=i||o;if(!e.isProperty()&&(a||!l))return;if(l)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
var ${n.types.cloneNode(s)} = {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${i?i.name:e.scope.buildUndefinedNode()},
set: ${o?o.name:e.scope.buildUndefinedNode()}
}
`,e);const p=e.node.value||e.scope.buildUndefinedNode();return inheritPropComments(n.template.statement.ast`
var ${n.types.cloneNode(s)} = {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${p}
};
`,e)};function buildPrivateMethodInitLoose(e,t,r){const s=r.get(t.node.key.id.name),{methodId:i,id:o,getId:a,setId:l,initAdded:p}=s;if(p)return;if(i)return inheritPropComments(n.template.statement.ast`
Object.defineProperty(${e}, ${o}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${i.name}
});
`,t);return a||l?(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
Object.defineProperty(${e}, ${o}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${l?l.name:t.scope.buildUndefinedNode()}
});
`,t)):void 0}function buildPrivateInstanceMethodInitSpec(e,t,r,s){const i=r.get(t.node.key.id.name);if(!i.initAdded){if(!newHelpers(s)){if(i.getId||i.setId)return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o,getId:a,setId:l}=i;if(r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),!s.availableHelper("classPrivateFieldInitSpec"))return inheritPropComments(n.template.statement.ast`
${o}.set(${e}, {
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${l?l.name:t.scope.buildUndefinedNode()}
});
`,t);const p=s.addHelper("classPrivateFieldInitSpec");return inheritLoc(inheritPropComments(n.template.statement.ast`${p}(
${n.types.thisExpression()},
${n.types.cloneNode(o)},
{
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${l?l.name:t.scope.buildUndefinedNode()}
},
)`,t),t.node)}(e,t,r,s)}return function(e,t,r,s){const i=r.get(t.node.key.id.name),{id:o}=i;if(!s.availableHelper("classPrivateMethodInitSpec"))return inheritPropComments(n.template.statement.ast`${o}.add(${e})`,t);const a=s.addHelper("classPrivateMethodInitSpec");return inheritPropComments(n.template.statement.ast`${a}(
${n.types.thisExpression()},
${n.types.cloneNode(o)}
)`,t)}(e,t,r,s)}}function buildPublicFieldInitLoose(e,t){const{key:r,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.assignmentExpression("=",n.types.memberExpression(e,r,s||n.types.isLiteral(r)),i)),t)}function buildPublicFieldInitSpec(e,t,r){const{key:s,computed:i}=t.node,o=t.node.value||t.scope.buildUndefinedNode();return inheritPropComments(n.types.expressionStatement(n.types.callExpression(r.addHelper("defineProperty"),[e,i||n.types.isLiteral(s)?s:n.types.stringLiteral(s.name),o])),t)}function buildPrivateStaticMethodInitLoose(e,t,r,s){const i=s.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,initAdded:c}=i;if(c)return;return l||p?(s.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),inheritPropComments(n.template.statement.ast`
Object.defineProperty(${e}, ${o}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${l?l.name:t.scope.buildUndefinedNode()},
set: ${p?p.name:t.scope.buildUndefinedNode()}
})
`,t)):inheritPropComments(n.template.statement.ast`
Object.defineProperty(${e}, ${o}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${a.name}
});
`,t)}function buildPrivateMethodDeclaration(e,t,r,s=!1){const i=r.get(t.node.key.id.name),{id:o,methodId:a,getId:l,setId:p,getterDeclared:c,setterDeclared:u,static:d}=i,{params:h,body:m,generator:y,async:b}=t.node,g=l&&0===h.length,x=p&&h.length>0;if(g&&c||x&&u)return r.set(t.node.key.id.name,Object.assign({},i,{initAdded:!0})),null;if(newHelpers(e)&&(g||x)&&!s){const e=t.get("body").scope,r=e.generateUidIdentifier("this"),s={thisRef:r,argumentsPath:[]};if(t.traverse(f,s),s.argumentsPath.length){const t=e.generateUidIdentifier("arguments");e.push({id:t,init:n.template.expression.ast`[].slice.call(arguments, 1)`});for(const e of s.argumentsPath)e.replaceWith(n.types.cloneNode(t))}h.unshift(n.types.cloneNode(r))}let v=a;return g?(r.set(t.node.key.id.name,Object.assign({},i,{getterDeclared:!0,initAdded:!0})),v=l):x?(r.set(t.node.key.id.name,Object.assign({},i,{setterDeclared:!0,initAdded:!0})),v=p):d&&!s&&(v=o),inheritPropComments(n.types.functionDeclaration(n.types.cloneNode(v),h,m,y,b),t)}const f=s.visitors.environmentVisitor({Identifier(e,t){t.argumentsPath&&"arguments"===e.node.name&&t.argumentsPath.push(e)},UnaryExpression(e){const{node:t}=e;if("delete"===t.operator){const r=(0,p.skipTransparentExprWrapperNodes)(t.argument);n.types.isThisExpression(r)&&e.replaceWith(n.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(n.types.cloneNode(t.thisRef))},MetaProperty(e){const{node:t,scope:r}=e;"new"===t.meta.name&&"target"===t.property.name&&e.replaceWith(r.buildUndefinedNode())}}),y={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function replaceThisContext(e,t,r){var n;const s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(f,s),null!=r&&null!=(n=s.thisRef)&&n.name&&s.thisRef.name!==r.name&&e.traverse(y,s),s.needsClassRef}function isNameOrLength({key:e,computed:t}){return"Identifier"===e.type?!t&&("name"===e.name||"length"===e.name):"StringLiteral"===e.type&&("name"===e.value||"length"===e.value)}function inheritPropComments(e,t){return n.types.inheritLeadingComments(e,t.node),n.types.inheritInnerComments(e,t.node),e}function inheritLoc(e,t){return e.start=t.start,e.end=t.end,e.loc=t.loc,e}},"./node_modules/.pnpm/@babel+helper-create-class-features-plugin@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-create-class-features-plugin/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FEATURES",{enumerable:!0,get:function(){return p.FEATURES}}),Object.defineProperty(t,"buildCheckInRHS",{enumerable:!0,get:function(){return i.buildCheckInRHS}}),Object.defineProperty(t,"buildNamedEvaluationVisitor",{enumerable:!0,get:function(){return o.buildNamedEvaluationVisitor}}),t.createClassFeaturePlugin=function({name:e,feature:t,loose:d,manipulateOptions:h,api:m,inherits:f,decoratorVersion:y}){var b;if(t&p.FEATURES.decorators&&("2023-11"===y||"2023-05"===y||"2023-01"===y||"2022-03"===y||"2021-12"===y))return(0,o.default)(m,{loose:d},y,f);null!=m||(m={assumption:()=>{}});const g=m.assumption("setPublicClassFields"),x=m.assumption("privateFieldsAsSymbols"),v=m.assumption("privateFieldsAsProperties"),E=null!=(b=m.assumption("noUninitializedPrivateFieldAccess"))&&b,T=m.assumption("constantSuper"),S=m.assumption("noDocumentAll");if(v&&x)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');const P=v||x;if(!0===d){const t=[];void 0!==g&&t.push('"setPublicClassFields"'),void 0!==v&&t.push('"privateFieldsAsProperties"'),void 0!==x&&t.push('"privateFieldsAsSymbols"'),0!==t.length&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${t.join(" and ")} assumption${t.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:\n\t"assumptions": {\n\t\t"setPublicClassFields": true,\n\t\t"privateFieldsAsSymbols": true\n\t}`)}return{name:e,manipulateOptions:h,inherits:f,pre(e){(0,p.enableFeature)(e,t,d),"number"!=typeof e.get(u)&&e.get(u)&&!s.lt(e.get(u),"7.28.3")||e.set(u,"7.28.3")},visitor:{Class(e,{file:s}){if("7.28.3"!==s.get(u))return;if(!(0,p.shouldTransform)(e,s))return;const d=e.isClassDeclaration();d&&(0,c.assertFieldTransformed)(e);const h=(0,p.isLoose)(s,t);let m;const f=(0,o.hasDecorators)(e.node),y=[],b=[],_=[],A=new Set,C=e.get("body");for(const e of C.get("body")){if((e.isClassProperty()||e.isClassMethod())&&e.node.computed&&_.push(e),e.isPrivate()){const{name:t}=e.node.key.id,r=`get ${t}`,n=`set ${t}`;if(e.isClassPrivateMethod()){if("get"===e.node.kind){if(A.has(r)||A.has(t)&&!A.has(n))throw e.buildCodeFrameError("Duplicate private field");A.add(r).add(t)}else if("set"===e.node.kind){if(A.has(n)||A.has(t)&&!A.has(r))throw e.buildCodeFrameError("Duplicate priLine truncated
Promise.resolve().then(() => ${s(i)})
`:s(i);const o=n.types.isTemplateLiteral(i)?n.types.identifier("specifier"):n.types.templateLiteral([n.types.templateElement({raw:""}),n.types.templateElement({raw:""})],[n.types.identifier("specifier")]);return t?n.template.expression.ast`
(specifier =>
new Promise(r => r(${o}))
.then(s => ${s(n.types.identifier("s"))})
)(${i})
`:r?n.template.expression.ast`
(specifier =>
new Promise(r => r(${s(o)}))
)(${i})
`:n.template.expression.ast`
(specifier => ${s(o)})(${i})
`};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js");t.getDynamicImportSource=function(e){const[t]=e.arguments;return n.types.isStringLiteral(t)||n.types.isTemplateLiteral(t)?t:n.template.expression.ast`\`\${${t}}\``}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/get-module-name.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=getModuleName;{const e=getModuleName;t.default=getModuleName=function(t,r){var n,s,i,o;return e(t,{moduleId:null!=(n=r.moduleId)?n:t.moduleId,moduleIds:null!=(s=r.moduleIds)?s:t.moduleIds,getModuleId:null!=(i=r.getModuleId)?i:t.getModuleId,moduleRoot:null!=(o=r.moduleRoot)?o:t.moduleRoot})}}function getModuleName(e,t){const{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:o=!!i,getModuleId:a,moduleRoot:l=s}=t;if(!o)return null;if(null!=i&&!a)return i;let p=null!=l?l+"/":"";if(n){const e=null!=s?new RegExp("^"+s+"/?"):"";p+=n.replace(e,"").replace(/\.\w*$/,"")}return p=p.replace(/\\/g,"/"),a&&a(p)||p}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"buildDynamicImport",{enumerable:!0,get:function(){return c.buildDynamicImport}}),t.buildNamespaceInitStatements=function(e,t,r=!1,n=p.wrapReference){var i;const o=[],a=s.types.identifier(t.name);for(const e of t.importsNamespace)e!==t.name&&o.push(s.template.statement`var NAME = SOURCE;`({NAME:e,SOURCE:s.types.cloneNode(a)}));const l=null!=(i=n(a,t.wrap))?i:a;r&&o.push(...buildReexportsFromMeta(e,t,!0,n));for(const r of t.reexportNamespace)o.push((s.types.isIdentifier(l)?s.template.statement`EXPORTS.NAME = NAMESPACE;`:s.template.statement`
Object.defineProperty(EXPORTS, "NAME", {
enumerable: true,
get: function() {
return NAMESPACE;
}
});
`)({EXPORTS:e.exportName,NAME:r,NAMESPACE:s.types.cloneNode(l)}));if(t.reexportAll){const n=function(e,t,r){return(r?s.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
EXPORTS[key] = NAMESPACE[key];
});
`:s.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
Object.defineProperty(EXPORTS, key, {
enumerable: true,
get: function() {
return NAMESPACE[key];
},
});
});
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?s.template`
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
`({EXPORTS_LIST:e.exportNameListName}):null})}(e,s.types.cloneNode(l),r);n.loc=t.reexportAll.loc,o.push(n)}return o},t.ensureStatementsHoisted=function(e){e.forEach(e=>{e._blockHoist=3})},Object.defineProperty(t,"getModuleName",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"hasExports",{enumerable:!0,get:function(){return l.hasExports}}),Object.defineProperty(t,"isModule",{enumerable:!0,get:function(){return i.isModule}}),Object.defineProperty(t,"isSideEffectImport",{enumerable:!0,get:function(){return l.isSideEffectImport}}),t.rewriteModuleStatementsAndPrepareHeader=function(e,{exportName:t,strict:r,allowTopLevelThis:c,strictMode:u,noInterop:d,importInterop:h=(d?"none":"babel"),lazy:m,getWrapperPayload:f=p.toGetWrapperPayload(null!=m&&m),wrapReference:y=p.wrapReference,esNamespaceOnly:b,filename:g,constantReexports:x=arguments[1].loose,enumerableModuleMeta:v=arguments[1].loose,noIncompleteNsImportDetection:E}){(0,l.validateImportInteropOption)(h),n((0,i.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";const T=(0,l.default)(e,t,{importInterop:h,initializeReexports:x,getWrapperPayload:f,esNamespaceOnly:b,filename:g});c||(0,o.default)(e);if((0,a.default)(e,T,y),!1!==u){e.node.directives.some(e=>"use strict"===e.value.value)||e.unshiftContainer("directives",s.types.directive(s.types.directiveLiteral("use strict")))}const S=[];(0,l.hasExports)(T)&&!r&&S.push(function(e,t=!1){return(t?s.template.statement`
EXPORTS.__esModule = true;
`:s.template.statement`
Object.defineProperty(EXPORTS, "__esModule", {
value: true,
});
`)({EXPORTS:e.exportName})}(T,v));const P=function(e,t){const r=Object.create(null);for(const e of t.local.values())for(const t of e.names)r[t]=!0;let n=!1;for(const e of t.source.values()){for(const t of e.reexports.keys())r[t]=!0;for(const t of e.reexportNamespace)r[t]=!0;n=n||!!e.reexportAll}if(!n||0===Object.keys(r).length)return null;const i=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:i.name,statement:s.types.variableDeclaration("var",[s.types.variableDeclarator(i,s.types.valueToNode(r))])}}(e,T);P&&(T.exportNameListName=P.name,S.push(P.statement));return S.push(...function(e,t,r,n=!1,i=!1){const o=[];for(const[e,r]of t.local)if("import"===r.kind);else if("hoisted"===r.kind)o.push([r.names[0],buildInitStatement(t,r.names,s.types.identifier(e))]);else if(!i)for(const e of r.names)o.push([e,null]);for(const e of t.source.values()){if(!n){const n=buildReexportsFromMeta(t,e,!1,r),s=[...e.reexports.keys()];for(let e=0;e<n.length;e++)o.push([s[e],n[e]])}if(!i)for(const t of e.reexportNamespace)o.push([t,null])}o.sort(([e],[t])=>e<t?-1:t<e?1:0);const a=[];if(i)for(const[,e]of o)a.push(e);else{const r=100;for(let n=0;n<o.length;n+=r){let s=[];for(let i=0;i<r&&n+i<o.length;i++){const[r,l]=o[n+i];null!==l?(s.length>0&&(a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode())),s=[]),a.push(l)):s.push(r)}s.length>0&&a.push(buildInitStatement(t,s,e.scope.buildUndefinedNode()))}}return a}(e,T,y,x,E)),{meta:T,headers:S}},Object.defineProperty(t,"rewriteThis",{enumerable:!0,get:function(){return o.default}}),t.wrapInterop=function(e,t,r){if("none"===r)return null;if("node-namespace"===r)return s.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,s.types.booleanLiteral(!0)]);if("node-default"===r)return null;let n;if("default"===r)n="interopRequireDefault";else{if("namespace"!==r)throw new Error(`Unknown interop: ${r}`);n="interopRequireWildcard"}return s.types.callExpression(e.hub.addHelper(n),[t])};var n=r("assert"),s=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),i=r("./node_modules/.pnpm/@babel+helper-module-imports@7.27.1/node_modules/@babel/helper-module-imports/lib/index.js"),o=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js"),a=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js"),l=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js"),p=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js"),c=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js"),u=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/get-module-name.js");t.getDynamicImportSource=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/dynamic-import.js").getDynamicImportSource;const d={constant:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
${e}.${t} = ${r};
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
${e}["${t}"] = ${r};
`,spec:({exports:e,exportName:t,namespaceImport:r})=>s.template.statement.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
get: function() {
return ${r};
},
});
`};function buildReexportsFromMeta(e,t,r,n){var i;let o=s.types.identifier(t.name);o=null!=(i=n(o,t.wrap))?i:o;const{stringSpecifiers:a}=e;return Array.from(t.reexports,([n,i])=>{let l=s.types.cloneNode(o);"default"===i&&"node-default"===t.interop||(l=a.has(i)?s.types.memberExpression(l,s.types.stringLiteral(i),!0):s.types.memberExpression(l,s.types.identifier(i)));const p={exports:e.exportName,exportName:n,namespaceImport:l};return r||s.types.isIdentifier(l)?a.has(n)?d.constantComputed(p):d.constant(p):d.spec(p)})}const h={computed:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>s.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>s.template.expression.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
value: void 0,
writable: true
})["${t}"] = ${r}`};function buildInitStatement(e,t,r){const{stringSpecifiers:n,exportName:i}=e;return s.types.expressionStatement(t.reduce((e,t)=>{const r={exports:i,name:t,value:e};return"__proto__"===t?h.define(r):n.has(t)?h.computed(r):h.default(r)},r))}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/lazy-modules.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGetWrapperPayload=function(e){return(t,r)=>{if(!1===e)return null;if((0,s.isSideEffectImport)(r)||r.reexportAll)return null;if(!0===e)return t.includes(".")?null:"lazy";if(Array.isArray(e))return e.includes(t)?"lazy":null;if("function"==typeof e)return e(t)?"lazy":null;throw new Error(".lazy must be a boolean, string array, or function")}},t.wrapReference=function(e,t){return"lazy"===t?n.types.callExpression(e,[]):null};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js")},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,{importInterop:s,initializeReexports:i=!1,getWrapperPayload:o,esNamespaceOnly:a=!1,filename:l}){t||(t=e.scope.generateUidIdentifier("exports").name);const p=new Set;!function(e){e.get("body").forEach(e=>{e.isExportDefaultDeclaration()&&(null!=e.splitExportDeclaration||(e.splitExportDeclaration=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js").NodePath.prototype.splitExportDeclaration),e.splitExportDeclaration())})}(e);const{local:c,sources:u,hasExports:d}=function(e,{getWrapperPayload:t,initializeReexports:r},s){const i=function(e,t,r){const n=new Map,s=e.scope,i=e.get("body");i.forEach(e=>{let r;if(e.isImportDeclaration())r="import";else{if(e.isExportDefaultDeclaration()&&(e=e.get("declaration")),e.isExportNamedDeclaration())if(e.node.declaration)e=e.get("declaration");else if(t&&e.node.source&&e.get("source").isStringLiteral())return void e.get("specifiers").forEach(e=>{assertExportSpecifier(e),n.set(e.get("local").node.name,"block")});if(e.isFunctionDeclaration())r="hoisted";else if(e.isClassDeclaration())r="block";else if(e.isVariableDeclaration({kind:"var"}))r="var";else{if(!e.isVariableDeclaration())return;r="block"}}Object.keys(e.getOuterBindingIdentifiers()).forEach(e=>{n.set(e,r)})});const o=new Map,getLocalMetadata=e=>{const t=e.node.name;let r=o.get(t);if(!r){var i,a;const l=null!=(i=n.get(t))?i:null==(a=s.getBinding(t))?void 0:a.kind;if(void 0===l)throw e.buildCodeFrameError(`Exporting local "${t}", which is not declared.`);r={names:[],kind:l},o.set(t,r)}return r};return i.forEach(e=>{if(!e.isExportNamedDeclaration()||!t&&e.node.source){if(e.isExportDefaultDeclaration()){const t=e.get("declaration");if(!t.isFunctionDeclaration()&&!t.isClassDeclaration())throw t.buildCodeFrameError("Unexpected default expression export.");getLocalMetadata(t.get("id")).names.push("default")}}else if(e.node.declaration){const t=e.get("declaration"),r=t.getOuterBindingIdentifierPaths();Object.keys(r).forEach(e=>{if("__esModule"===e)throw t.buildCodeFrameError('Illegal export "__esModule".');getLocalMetadata(r[e]).names.push(e)})}else e.get("specifiers").forEach(e=>{const t=e.get("local"),n=e.get("exported"),s=getLocalMetadata(t),i=getExportSpecifierName(n,r);if("__esModule"===i)throw n.buildCodeFrameError('Illegal export "__esModule".');s.names.push(i)})}),o}(e,r,s),o=new Map,a=new Map,getData=(t,r)=>{const s=t.value;let i=a.get(s);return i?o.get(s).push(r):(i={name:e.scope.generateUidIdentifier((0,n.basename)(s,(0,n.extname)(s))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){return"lazy"===this.wrap},referenced:!1},a.set(s,i),o.set(s,[r])),i};let l=!1;e.get("body").forEach(e=>{if(e.isImportDeclaration()){const t=getData(e.node.source,e.node);t.loc||(t.loc=e.node.loc),e.get("specifiers").forEach(e=>{if(e.isImportDefaultSpecifier()){const r=e.get("local").node.name;t.imports.set(r,"default");const n=i.get(r);n&&(i.delete(r),n.names.forEach(e=>{t.reexports.set(e,"default")}),t.referenced=!0)}else if(e.isImportNamespaceSpecifier()){const r=e.get("local").node.name;t.importsNamespace.add(r);const n=i.get(r);n&&(i.delete(r),n.names.forEach(e=>{t.reexportNamespace.add(e)}),t.referenced=!0)}else if(e.isImportSpecifier()){const r=getExportSpecifierName(e.get("imported"),s),n=e.get("local").node.name;t.imports.set(n,r);const o=i.get(n);o&&(i.delete(n),o.names.forEach(e=>{t.reexports.set(e,r)}),t.referenced=!0)}})}else if(e.isExportAllDeclaration()){l=!0;const t=getData(e.Line truncated
(function() {
throw new Error('"' + '${e}' + '" is read-only.');
})()
`,i={ReferencedIdentifier(e){const{seen:t,buildImportReference:r,scope:s,imported:i,requeueInParent:o}=this;if(t.has(e.node))return;t.add(e.node);const a=e.node.name,l=i.get(a);if(l){if(function(e){do{switch(e.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return"type"===e.parentPath.parent.exportKind;default:if(e.parentPath.isStatement()||e.parentPath.isExpression())return!1}}while(e=e.parentPath)}(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);const t=e.scope.getBinding(a);if(s.getBinding(a)!==t)return;const i=r(l,e.node);if(i.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&n.types.isMemberExpression(i))e.replaceWith(n.types.sequenceExpression([n.types.numericLiteral(0),i]));else if(e.isJSXIdentifier()&&n.types.isMemberExpression(i)){const{object:t,property:r}=i;e.replaceWith(n.types.jsxMemberExpression(n.types.jsxIdentifier(t.name),n.types.jsxIdentifier(r.name)))}else e.replaceWith(i);o(e),e.skip()}},UpdateExpression(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("argument");if(l.isMemberExpression())return;const p=e.node;if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const o=i.get(r),c=s.get(r);if((null==o?void 0:o.length)>0||c)if(c)e.replaceWith(n.types.assignmentExpression(p.operator[0]+"=",a(c,l.node),buildImportThrow(r)));else if(p.prefix)e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,o,n.types.cloneNode(p),e.scope));else{const s=t.generateDeclaredUidIdentifier(r);e.replaceWith(n.types.sequenceExpression([n.types.assignmentExpression("=",n.types.cloneNode(s),n.types.cloneNode(p)),buildBindingExportAssignmentExpression(this.metadata,o,n.types.identifier(r),e.scope),n.types.cloneNode(s)]))}}o(e),e.skip()},AssignmentExpression:{exit(e){const{scope:t,seen:r,imported:s,exported:i,requeueInParent:o,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isMemberExpression())if(l.isIdentifier()){const r=l.node.name;if(t.getBinding(r)!==e.scope.getBinding(r))return;const p=i.get(r),c=s.get(r);if((null==p?void 0:p.length)>0||c){const t=e.node;c&&(t.left=a(c,l.node),t.right=n.types.sequenceExpression([t.right,buildImportThrow(r)]));const{operator:s}=t;let i;i="="===s?t:"&&="===s||"||="===s||"??="===s?n.types.assignmentExpression("=",t.left,n.types.logicalExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)):n.types.assignmentExpression("=",t.left,n.types.binaryExpression(s.slice(0,-1),n.types.cloneNode(t.left),t.right)),e.replaceWith(buildBindingExportAssignmentExpression(this.metadata,p,i,e.scope)),o(e),e.skip()}}else{const r=l.getOuterBindingIdentifiers(),a=Object.keys(r).filter(r=>t.getBinding(r)===e.scope.getBinding(r)),p=a.find(e=>s.has(e));p&&(e.node.right=n.types.sequenceExpression([e.node.right,buildImportThrow(p)]));const c=[];if(a.forEach(t=>{const r=i.get(t)||[];r.length>0&&c.push(buildBindingExportAssignmentExpression(this.metadata,r,n.types.identifier(t),e.scope))}),c.length>0){let t=n.types.sequenceExpression(c);e.parentPath.isExpressionStatement()&&(t=n.types.expressionStatement(t),t._blockHoist=e.parentPath.node._blockHoist);o(e.insertAfter(t)[0])}}}},ForXStatement(e){const{scope:t,node:r}=e,{left:s}=r,{exported:i,imported:o,scope:a}=this;if(!n.types.isVariableDeclaration(s)){let r,l=!1;const p=e.get("body").scope;for(const e of Object.keys(n.types.getOuterBindingIdentifiers(s)))a.getBinding(e)===t.getBinding(e)&&(i.has(e)&&(l=!0,p.hasOwnBinding(e)&&p.rename(e)),o.has(e)&&!r&&(r=e));if(!l&&!r)return;e.ensureBlock();const c=e.get("body"),u=t.generateUidIdentifierBasedOnNode(s);e.get("left").replaceWith(n.types.variableDeclaration("let",[n.types.variableDeclarator(n.types.cloneNode(u))])),t.registerDeclaration(e.get("left")),l&&c.unshiftContainer("body",n.types.expressionStatement(n.types.assignmentExpression("=",s,u))),r&&c.unshiftContainer("body",n.types.expressionStatement(buildImportThrow(r)))}}}},"./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/rewrite-this.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){i||(i=s.visitors.environmentVisitor({ThisExpression(e){e.replaceWith(n.types.unaryExpression("void",n.types.numericLiteral(0),!0))}}),i.noScope=!0);(0,s.default)(e.node,i)};var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/index.js");let i},"./Line truncated
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]):i.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`}},g={memoise(e,t){const{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;const o=r.maybeGenerateMemoised(i);o&&this.memoiser.set(i,o,t)},prop(e){const{computed:t,property:r}=e.node;return this.memoiser.has(r)?p(this.memoiser.get(r)):t?p(r):h(r.name)},_getPrototypeOfExpression(){const e=p(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:u(e,c("prototype"));return l(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){const t=this._getPrototypeOfExpression();return l(this.file.addHelper("get"),[this.isDerivedConstructor?d([m(),t]):t,this.prop(e),m()])},set(e,t){const r=this._getPrototypeOfExpression();return l(this.file.addHelper("set"),[this.isDerivedConstructor?d([m(),r]):r,this.prop(e),t,m(),i.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return(0,s.default)(this._get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this._get(e),p(m()),t,!0)},delete(e){return e.node.computed?d([l(this.file.addHelper("toPropertyKey"),[p(e.node.property)]),i.template.expression.ast`
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]):i.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`}},x=Object.assign({},b,{prop(e){const{property:t}=e.node;return this.memoiser.has(t)?p(this.memoiser.get(t)):p(t)},get(e){const{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e);let i;var o,a;t?i=null!=(o=r())?o:u(c("Function"),c("prototype")):i=u(null!=(a=r())?a:c("Object"),c("prototype"));return u(i,s,n)},set(e,t){const{computed:r}=e.node,n=this.prop(e);return a("=",u(m(),n,r),t)},destructureSet(e){const{computed:t}=e.node,r=this.prop(e);return u(m(),r,t)},call(e,t){return(0,s.default)(this.get(e),m(),t,!1)},optionalCall(e,t){return(0,s.default)(this.get(e),m(),t,!0)}});t.default=class{constructor(e){var t;const r=e.methodPath;this.methodPath=r,this.isDerivedConstructor=r.isClassMethod({kind:"constructor"})&&!!e.superRef,this.isStatic=r.isObjectMethod()||r.node.static||(null==r.isStaticBlock?void 0:r.isStaticBlock()),this.isPrivateMethod=r.isPrivate()&&r.isMethod(),this.file=e.file,this.constantSuper=null!=(t=e.constantSuper)?t:e.isLoose,this.opts=e}getObjectRef(){return p(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){return this.opts.superRef?p(this.opts.superRef):this.opts.getSuperRef?p(this.opts.getSuperRef()):void 0}replace(){const{methodPath:e}=this;this.opts.refToPreserve&&e.traverse(y,{refName:this.opts.refToPreserve.name});const t=this.constantSuper?x:this.file.availableHelper("superPropSet")?b:g;f.shouldSkip=t=>{if(t.parentPath===e&&("decorators"===t.parentKey||"key"===t.parentKey))return!0},(0,n.default)(e,f,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}}},"./node_modules/.pnpm/@babel+helper-simple-access@7.27.1/node_modules/@babel/helper-simple-access/lib/index.js":function(e,t,r){"use strict";t.default=function(e,t){var r;e.traverse(h,{scope:e.scope,bindingNames:t,seen:new WeakSet,includeUpdateExpression:null==(r=arguments[2])||r})};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js");const{LOGICAL_OPERATORS:s,assignmentExpression:i,binaryExpression:o,cloneNode:a,identifier:l,logicalExpression:p,numericLiteral:c,sequenceExpression:u,unaryExpression:d}=n,h={AssignmentExpression:{exit(e){const{scope:t,seen:r,bindingNames:n}=this;if("="===e.node.operator)return;if(r.has(e.node))return;r.add(e.node);const l=e.get("left");if(!l.isIdentifier())return;const c=l.node.name;if(!n.has(c))return;if(t.getBinding(c)!==e.scope.getBinding(c))return;const u=e.node.operator.slice(0,-1);s.includes(u)?e.replaceWith(p(u,e.node.left,i("=",a(e.node.left),e.node.right))):(e.node.right=o(u,a(e.node.left),e.node.right),e.node.operator="=")}}};h.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;const{scope:t,bindingNames:r}=this,n=e.get("argument");if(!n.isIdentifier())return;const s=n.node.name;if(r.has(s)&&t.getBinding(s)===e.scope.getBinding(s))if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){const t="++"===e.node.operator?"+=":"-=";e.replaceWith(i(t,n.node,c(1)))}else if(e.node.prefix)e.replaceWith(i("=",l(s),o(e.node.operator[0],d("+",n.node),c(1))));else{const t=e.scope.generateUidIdentifierBasedOnNode(n.node,"old"),r=t.name;e.scope.push({id:t});const s=o(e.node.operator[0],l(r),c(1));e.replaceWith(u([i("=",l(r),d("+",n.node)),i("=",a(n.node),s),l(r)]))}}}},"./node_modules/.pnpm/@babel+helper-skip-transparent-expression-wrappers@7.27.1/node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransparentExprWrapper=isTransparentExprWrapper,t.skipTransparentExprWrapperNodes=function(e){for(;isTransparentExprWrapper(e);)e=e.expression;return e},t.skipTransparentExprWrappers=function(e){for(;isTransparentExprWrapper(e.node);)e=e.get("expression");return e};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js");const{isParenthesizedExpression:s,isTSAsExpression:i,isTSNonNullExpression:o,isTSSatisfiesExpression:a,isTSTypeAssertion:l,isTypeCastExpression:p}=n;function isTransparentExprWrapper(e){return i(e)||a(e)||l(e)||o(e)||p(e)||s(e)}},"./node_modules/.pnpm/@babel+helper-string-parser@7.27.1/node_modules/@babel/helper-string-parser/lib/index.js":function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=readCodePoint,t.readInt=readInt,t.readStringContents=function(e,t,r,n,s,i){const o=r,a=n,l=s;let p="",c=null,u=r;const{length:d}=t;for(;;){if(r>=d){i.unterminated(o,a,l),p+=t.slice(u,r);break}const h=t.charCodeAt(r);if(isStringEnd(e,h,t,r)){p+=t.slice(u,r);break}if(92===h){p+=t.slice(u,r);const o=readEscapedChar(t,r,n,s,"template"===e,i);null!==o.ch||c?p+=o.ch:c={pos:r,lineStart:n,curLine:s},({pos:r,lineStart:n,curLine:s}=o),u=r}else 8232===h||8233===h?(++s,n=++r):10===h||13===h?"template"===e?(p+=t.slice(u,r)+"\n",++r,13===Line truncated
(function(){
throw new Error(
"The CommonJS '" + "${e}" + "' variable is not available in ES6 modules." +
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
"Babel config for this file.");
})()
`,S={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(e){const t=e.get("argument");if(!t.isIdentifier())return;const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);this.scope.getBinding(r)===n&&e.replaceWith(i.types.assignmentExpression(e.node.operator[0]+"=",t.node,getAssertion(r)))},AssignmentExpression(e){const t=e.get("left");if(t.isIdentifier()){const r=t.node.name;if("module"!==r&&"exports"!==r)return;const n=e.scope.getBinding(r);if(this.scope.getBinding(r)!==n)return;const s=e.get("right");s.replaceWith(i.types.sequenceExpression([s.node,getAssertion(r)]))}else if(t.isPattern()){const r=t.getOuterBindingIdentifiers(),n=Object.keys(r).find(t=>("module"===t||"exports"===t)&&this.scope.getBinding(t)===e.scope.getBinding(t));if(n){const t=e.get("right");t.replaceWith(i.types.sequenceExpression([t.node,getAssertion(n)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),b&&(0,l.defineCommonJSHook)(this.file,(0,a.lazyImportsHook)(b))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](e){if(!this.file.has("@babel/plugin-proposal-dynamic-import"))return;if(e.isCallExpression()&&!i.types.isImport(e.node.callee))return;let{scope:t}=e;do{t.rename("require")}while(t=t.parent);(0,o.transformDynamicImport)(e,f,this.file)},Program:{exit(e,r){if(!(0,s.isModule)(e))return;e.scope.rename("exports"),e.scope.rename("module"),e.scope.rename("require"),e.scope.rename("__filename"),e.scope.rename("__dirname"),g||e.traverse(S,{scope:e.scope});let n=(0,s.getModuleName)(this.file.opts,t);n&&(n=i.types.stringLiteral(n));const o=(0,l.makeInvokers)(this.file),{meta:a,headers:p}=(0,s.rewriteModuleStatementsAndPrepareHeader)(e,{exportName:"exports",constantReexports:v,enumerableModuleMeta:E,strict:h,strictMode:m,allowTopLevelThis:d,noInterop:f,importInterop:y,wrapReference:o.wrapReference,getWrapperPayload:o.getWrapperPayload,esNamespaceOnly:"string"==typeof r.filename&&/\.mjs$/.test(r.filename)?u:c,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(const[t,r]of a.source){const n=i.types.callExpression(i.types.identifier("require"),[i.types.stringLiteral(t)]);let l;if((0,s.isSideEffectImport)(r)){if(b&&"function"===r.wrap)throw new Error("Assertion failure");l=i.types.expressionStatement(n)}else{const t=(0,s.wrapInterop)(e,n,r.interop)||n;if(r.wrap){const e=o.buildRequireWrapper(r.name,t,r.wrap,r.referenced);if(!1===e)continue;l=e}null!=l||(l=i.template.statement.ast`
var ${r.name} = ${t};
`)}l.loc=r.loc,p.push(l),p.push(...(0,s.buildNamespaceInitStatements)(a,r,v,o.wrapReference))}(0,s.ensureStatementsHoisted)(p),e.unshiftContainer("body",p),e.get("body").forEach(e=>{p.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}})},"./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lazyImportsHook=void 0;var n=r("./node_modules/.pnpm/@babel+core@7.28.4/node_modules/@babel/core/lib/index.js"),s=r("./node_modules/.pnpm/@babel+helper-module-transforms@7.28.3_@babel+core@7.28.4/node_modules/@babel/helper-module-transforms/lib/index.js");t.lazyImportsHook=e=>({name:"@babel/plugin-transform-modules-commonjs/lazy",version:"7.27.1",getWrapperPayload:(t,r)=>(0,s.isSideEffectImport)(r)||r.reexportAll?null:!0===e?t.includes(".")?null:"lazy/function":Array.isArray(e)?e.includes(t)?"lazy/function":null:"function"==typeof e?e(t)?"lazy/function":null:void 0,buildRequireWrapper(e,t,r,s){if("lazy/function"===r)return!!s&&n.template.statement.ast`
function ${e}() {
const data = ${t};
${e} = function(){ return data; };
return data;
}
`},wrapReference(e,t){if("lazy/function"===t)return n.types.callExpression(e,[])}})},"./node_modules/.pnpm/@babel+plugin-transform-react-jsx@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-react-jsx/lib/create-plugin.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({name:e,development:t}){return(0,s.declare)((r,s)=>{const{pure:h,throwIfNamespace:m=!0,filter:f,runtime:y=(t?"automatic":"classic"),importSource:b=l.importSource,pragma:g=l.pragma,pragmaFrag:x=l.pragmaFrag}=s;var{useSpread:v=!1,useBuiltIns:E=!1}=s;if("classic"===y){if("boolean"!=typeof v)throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if("boolean"!=typeof E)throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(v&&E)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}const T={JSXOpeningElement(e,t){const r=[];(function(e){do{const{path:t}=e;if(t.isFunctionParent()&&!t.isArrowFunctionExpression())return!t.isMethod()||("constructor"!==t.node.kind||!isDerivedClass(t.parentPath.parentPath));if(t.isTSModuleBlock())return!1}while(e=e.parent);return!0})(e.scope)&&r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__self"),i.types.jsxExpressionContainer(i.types.thisExpression()))),r.push(i.types.jsxAttribute(i.types.jsxIdentifier("__source"),i.types.jsxExpressionContainer(function(e,t){const r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){const{filename:r=""}=t,n=e.scope.generateUidIdentifier("_jsxFileName");e.scope.getProgramParent().push({id:n,init:i.types.stringLiteral(r)}),t.fileNameIdentifier=n}return function(e,t,r){const n=null!=t?i.types.numericLiteral(t):i.types.nullLiteral(),s=null!=r?i.types.numericLiteral(r+1):i.types.nullLiteral();return i.template.expression.ast`{
fileName: ${e},
lineNumber: ${n},
columnNumber: ${s},
}`}(i.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}(e,t)))),e.pushContainer("attributes",r)}};return{name:e,inherits:n.default,visitor:{JSXNamespacedName(e){if(m)throw e.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild(e){throw e.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter(e,r){const{file:n}=r;let a=y,h=b,m=g,f=x,v=!!s.importSource,E=!!s.pragma,S=!!s.pragmaFrag;if(n.ast.comments)for(const e of n.ast.comments){const t=p.exec(e.value);t&&(h=t[1],v=!0);const r=c.exec(e.value);r&&(a=r[1]);const n=u.exec(e.value);n&&(m=n[1],E=!0);const s=d.exec(e.value);s&&(f=s[1],S=!0)}if(set(r,"runtime",a),"classic"===a){if(v)throw e.buildCodeFrameError("importSource cannot be set when runtime is classic.");const t=toMemberExpression(m),n=toMemberExpression(f);set(r,"id/createElement",()=>i.types.cloneNode(t)),set(r,"id/fragment",()=>i.types.cloneNode(n)),set(r,"defaultPure",m===l.pragma)}else{if("automatic"!==a)throw e.buildCodeFrameError('Runtime must be either "classic" or "automatic".');{if(E||S)throw e.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");const define=(n,s)=>set(r,n,function(e,r,n,s){return()=>{const a=function(e,r){switch(r){case"Fragment":return`${e}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${e}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${e}/jsx-runtime`;case"createElement":return e}}(s,n);if((0,o.isModule)(r)){let t=get(e,`imports/${n}`);return t?i.types.cloneNode(t):(t=(0,o.addNamed)(r,n,a,{importedInterop:"uncompiled",importPosition:"after"}),set(e,`imports/${n}`,t),t)}{let t=get(e,`requires/${a}`);return t?t=i.types.cloneNode(t):(t=(0,o.addNamespace)(r,a,{importedInterop:"uncompiled"}),set(e,`requires/${a}`,t)),i.types.memberExpression(t,i.types.identifier(n))}}}(r,e,s,h));define("id/jsx",t?"jsxDEV":"jsx"),define("id/jsxs",t?"jsxDEV":"jsxs"),define("id/createElement","createElement"),define("id/fragment","Fragment"),set(r,"defaultPure",h===l.importSource)}}t&&e.traverse(T,r)}},JSXFragment:{exit(e,r){let n;n="classic"===get(r,"runtime")?function(e,t){if(f&&!f(e.node,t))return;return call(t,"createElement",[get(t,"id/fragment")(),i.types.nullLiteral(),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=[get(r,"id/fragment")()],s=i.types.react.buildChildren(e.node);n.push(i.types.objectExpression(s.length>0?[buildChildrenProperty(s)]:[])),t&&n.push(e.scope.buildUndefinedNode(),i.types.booleanLiteral(s.length>1));return call(r,s.length>1?"jsxs":"jsx",n)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXElement:{exit(e,r){let n;n="classic"===get(r,"runtime")||function(e){const t=e.get("openingElement"),r=t.node.attributes;let n=!1;for(let e=0;e<r.length;e++){const t=r[e];if(n&&i.types.isJSXAttribute(t)&&"key"===t.name.name)return!0;i.types.isJSXSpreadAttribute(t)&&(n=!0)}return!1}(e)?function(e,t){const r=e.get("openingElement");return call(t,"createElement",[getTag(r),buildCreateElementOpeningElementAttributes(t,e,r.get("attributes")),...i.types.react.buildChildren(e.node)])}(e,r):function(e,r){const n=e.get("openingElement"),s=[getTag(n)],o=[],a=Object.create(null);for(const t of n.get("attributes"))if(t.isJSXAttribute()&&i.types.isJSXIdentifier(t.node.name)){const{name:r}=t.node.name;switch(r){case"__source":case"__self":if(a[r])throw sourceSelfError(e,r);case"key":{const e=convertAttributeValue(t.node.value);if(null===e)throw t.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');a[r]=e;break}default:o.push(t)}}else o.push(t);const l=i.types.react.buildChildren(e.node);let p;p=o.length||l.length?function(e,t){const r=e.reduce(accumulateAttribute,[]);(null==t?void 0:t.length)>0&&r.push(buildChildrenProperty(t));return i.types.objectExpression(r)}(o,l):i.types.objectExpression([]);if(s.push(p),t){var c;s.push(null!=(c=a.key)?c:e.scope.buildUndefinedNode(),i.types.booleanLiteral(l.length>1)),a.__source?(s.push(a.__source),a.__self&&s.push(a.__self)):a.__self&&s.push(e.scope.buildUndefinedNode(),a.__self)}else void 0!==a.key&&s.push(a.key);return call(r,l.length>1?"jsxs":"jsx",s)}(e,r),e.replaceWith(i.types.inherits(n,e.node))}},JSXAttribute(e){i.types.isJSXElement(e.node.value)&&(e.node.value=i.types.jsxExpressionContainer(e.node.value))}}};function isDerivedClass(e){return null!==e.node.superClass}function call(e,t,r){const n=i.types.callExpression(get(e,`id/${t}`)(),r);return(null!=h?h:get(e,"defaultPure"))&&(0,a.default)(n),n}function convertJSXIdentifier(e,t){return i.types.isJSXIdentifier(e)?"this"===e.name&&i.types.isReferenced(e,t)?i.types.thisExpression():i.types.isValidIdentifier(e.name,!1)?(e.type="Identifier",e):i.types.stringLiteral(e.name):i.types.isJSXMemberExpression(e)?i.types.memberExpression(convertJSXIdentifier(e.object,e),convertJSXIdentifier(e.Line truncated
this.${r.cloneNode(a)} = ${r.cloneNode(a)}
`),t.replaceWith(t.get("parameter")),o.registerBinding("param",t)}}(0,i.injectInitialization)(t,e,s)}};return{name:"transform-typescript",inherits:s.default,visitor:{Pattern:visitPattern,Identifier:visitPattern,RestElement:visitPattern,Program:{enter(e,t){const{file:r}=t;let n=null,s=null;const i=e.scope;if(l.GLOBAL_TYPES.has(i)||l.GLOBAL_TYPES.set(i,new Set),r.ast.comments)for(const e of r.ast.comments){const t=d.exec(e.value);t&&(t[1]?s=t[2]:n=t[2])}let o=n||m;o&&([o]=o.split("."));let a=s||f;a&&([a]=a.split("."));for(let r of e.get("body")){if(r.isImportDeclaration()){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"===r.node.importKind){for(const e of r.node.specifiers)(0,l.registerGlobalType)(i,e.local.name);r.remove();continue}const n=new Set,s=r.node.specifiers.length,isAllSpecifiersElided=()=>s>0&&s===n.size;for(const e of r.node.specifiers)if("ImportSpecifier"===e.type&&"type"===e.importKind){(0,l.registerGlobalType)(i,e.local.name);const t=r.scope.getBinding(e.local.name);t&&n.add(t.path)}if(y)c.set(e.node,!1);else{if(0===r.node.specifiers.length){c.set(e.node,!1);continue}for(const t of r.node.specifiers){const s=r.scope.getBinding(t.local.name);s&&!n.has(s.path)&&(isImportTypeOnly({binding:s,programPath:e,pragmaImportName:o,pragmaFragImportName:a})?n.add(s.path):c.set(e.node,!1))}}if(isAllSpecifiersElided()&&!y)r.remove();else for(const e of n)e.remove();continue}if(!y&&r.isTSImportEqualsDeclaration()){const{id:t}=r.node,n=r.scope.getBinding(t.name);if(n&&!r.node.isExport&&isImportTypeOnly({binding:n,programPath:e,pragmaImportName:o,pragmaFragImportName:a})){r.remove();continue}}if(r.isExportDeclaration()&&(r=r.get("declaration")),r.isVariableDeclaration({declare:!0}))for(const e of Object.keys(r.getBindingIdentifiers()))(0,l.registerGlobalType)(i,e);else(r.isTSTypeAliasDeclaration()||r.isTSDeclareFunction()&&r.get("id").isIdentifier()||r.isTSInterfaceDeclaration()||r.isClassDeclaration({declare:!0})||r.isTSEnumDeclaration({declare:!0})||r.isTSModuleDeclaration({declare:!0})&&r.get("id").isIdentifier())&&(0,l.registerGlobalType)(i,r.node.id.name)}},exit(e){"module"===e.node.sourceType&&c.get(e.node)&&e.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(e,t){if(c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),"type"!==e.node.exportKind)if(e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(e=>"ExportSpecifier"===e.type&&"type"===e.exportKind))e.remove();else if(!e.node.source&&e.node.specifiers.length>0&&e.node.specifiers.every(t=>r.isExportSpecifier(t)&&(0,l.isGlobalType)(e,t.local.name)))e.remove();else{if(r.isTSModuleDeclaration(e.node.declaration)){const t=e.node.declaration;if(!r.isStringLiteral(t.id)){const n=(0,p.getFirstIdentifier)(t.id);if(e.scope.hasOwnBinding(n.name))e.replaceWith(t);else{const[s]=e.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(n))])),t]);e.scope.registerDeclaration(s)}}}c.set(t.file.ast.program,!1)}else e.remove()},ExportAllDeclaration(e){"type"===e.node.exportKind&&e.remove()},ExportSpecifier(e){(!e.parent.source&&(0,l.isGlobalType)(e,e.node.local.name)||"type"===e.node.exportKind)&&e.remove()},ExportDefaultDeclaration(e,t){c.has(t.file.ast.program)||c.set(t.file.ast.program,!0),r.isIdentifier(e.node.declaration)&&(0,l.isGlobalType)(e,e.node.declaration.name)?e.remove():c.set(t.file.ast.program,!1)},TSDeclareFunction(e){safeRemove(e)},TSDeclareMethod(e){safeRemove(e)},VariableDeclaration(e){e.node.declare&&safeRemove(e)},VariableDeclarator({node:e}){e.definite&&(e.definite=null)},TSIndexSignature(e){e.remove()},ClassDeclaration(e){const{node:t}=e;t.declare&&safeRemove(e)},Class(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.superTypeParameters&&(t.superTypeParameters=null),t.implements&&(t.implements=null),t.abstract&&(t.abstract=null),e.get("body.body").forEach(t=>{t.isClassMethod()||t.isClassPrivateMethod()?"constructor"===t.node.kind?x.constructor(t,e):x.method(t):(t.isClassProperty()||t.isClassPrivateProperty()||t.isClassAccessorProperty())&&x.field(t)})},Function(e){const{node:t}=e;t.typeParameters&&(t.typeParameters=null),t.returnType&&(t.returnType=null);const n=t.params;n.length>0&&r.isIdentifier(n[0],{name:"this"})&&n.shift()},TSModuleDeclaration(e){(0,p.default)(e,h)},TSInterfaceDeclaration(e){e.remove()},TSTypeAliasDeclaration(e){e.remove()},TSEnumDeclaration(e){b&&e.node.const?(0,o.default)(e,r):(0,a.default)(e,r)},TSImportEqualsDeclaration(e,t){const{id:n,moduleReference:s}=e.node;let i,o;r.isTSExternalModuleReference(s)?(assertCjsTransformEnabled(e,t,`import ${n.name} = require(...);`,`import ${n.name} from '...';`," alongside Typescript's --allowSyntheticDefaultImports option"),i=r.callExpression(r.identifier("require"),[s.expression]),o="const"):(i=entityNameToExpr(s),o="var");const a=r.variableDeclaration(o,[r.variableDeclarator(n,i)]);e.replaceWith(e.node.isExport?r.exportNamedDeclaration(a):a),e.scoLine truncated
${n.types.cloneNode(e)} ||
(${n.types.cloneNode(e)} = ${u})
`}return n.template.statement.ast`
(function (${n.types.identifier(a)}) {
${p}
})(${o} || (${n.types.cloneNode(o)} = ${u}));
`}},"./node_modules/.pnpm/@babel+preset-typescript@7.27.1_@babel+core@7.28.4/node_modules/@babel/preset-typescript/lib/index.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("./node_modules/.pnpm/@babel+helper-plugin-utils@7.27.1/node_modules/@babel/helper-plugin-utils/lib/index.js"),s=r("./node_modules/.pnpm/@babel+plugin-transform-typescript@7.28.0_@babel+core@7.28.4/node_modules/@babel/plugin-transform-typescript/lib/index.js");r("./node_modules/.pnpm/@babel+plugin-syntax-jsx@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-syntax-jsx/lib/index.js");var i=r("./node_modules/.pnpm/@babel+plugin-transform-modules-commonjs@7.27.1_@babel+core@7.28.4/node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js"),o=r("./node_modules/.pnpm/@babel+helper-validator-option@7.27.1/node_modules/@babel/helper-validator-option/lib/index.js");function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var a=_interopDefault(s),l=_interopDefault(i);const p=new o.OptionValidator("@babel/preset-typescript");var c=n.declare(function({types:e,template:t}){function maybeReplace(r,n,s){r&&(e.isStringLiteral(r)?/^\.\.?\//.test(r.value)&&(r.value=r.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(e,t,r,n,s){return t?".js":!r||n&&s?r+n+"."+s.toLowerCase()+"js":e})):s.availableHelper("tsRewriteRelativeImportExtensions")?n.replaceWith(e.callExpression(s.addHelper("tsRewriteRelativeImportExtensions"),[r])):n.replaceWith(t.expression.ast`(${r} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`))}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(t,r){const n=t.node;"value"===(e.isImportDeclaration(n)?n.importKind:n.exportKind)&&maybeReplace(n.source,t.get("source"),r)},CallExpression(t,r){e.isImport(t.node.callee)&&maybeReplace(t.node.arguments[0],t.get("arguments.0"),r)},ImportExpression(e,t){maybeReplace(e.node.source,e.get("source"),t)}}}}),u=n.declarePreset((e,t)=>{e.assertVersion(7);const{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:o,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m,rewriteImportExtensions:f}=function(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e;const s="ignoreExtensions",i="disallowAmbiguousJSXLike",o="jsxPragmaFrag",a="optimizeConstEnums",l="rewriteImportExtensions",c="allExtensions",u="isTSX",d=p.validateStringOption(o,e.jsxPragmaFrag,"React.Fragment");var h=p.validateBooleanOption(c,e.allExtensions,!1),m=p.validateBooleanOption(u,e.isTSX,!1);m&&p.invariant(h,"isTSX:true requires allExtensions:true");const f=p.validateBooleanOption(s,e.ignoreExtensions,!1),y=p.validateBooleanOption(i,e.disallowAmbiguousJSXLike,!1);y&&p.invariant(h,"disallowAmbiguousJSXLike:true requires allExtensions:true");const b={ignoreExtensions:f,allowNamespaces:t,disallowAmbiguousJSXLike:y,jsxPragma:r,jsxPragmaFrag:d,onlyRemoveTypeImports:n,optimizeConstEnums:p.validateBooleanOption(a,e.optimizeConstEnums,!1),rewriteImportExtensions:p.validateBooleanOption(l,e.rewriteImportExtensions,!1)};return b.allExtensions=h,b.isTSX=m,b}(t),pluginOptions=e=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:e,jsxPragma:u,jsxPragmaFrag:d,onlyRemoveTypeImports:h,optimizeConstEnums:m}),getPlugins=(e,t)=>[[a.default,Object.assign({isTSX:e},pluginOptions(t))]];return{plugins:f?[c]:[],overrides:r||n?[{plugins:getPlugins(o,i)}]:[{test:/\.ts$/,plugins:getPlugins(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:getPlugins(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[l.default,{allowTopLevelThis:!0}],[a.default,pluginOptions(!0)]]},{test:/\.tsx$/,plugins:getPlugins(!0,!1)}]}});t.default=u},"./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/builder.js":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function createTemplateBuilder(e,t){const r=new WeakMap,a=new WeakMap,l=t||(0,n.validate)(null);return Object.assign((t,...o)=>{if("string"==typeof t){if(o.length>1)throw new Error("Unexpected extra params.");return extendedTrace((0,s.default)(e,t,(0,n.merge)(l,(0,n.validate)(o[0]))))}if(Array.isArray(t)){let n=r.get(t);return n||(n=(0,i.default)(e,t,l),r.set(t,n)),extendedTrace(n(o))}if("object"==typeof t&&t){if(o.length>0)throw new Error("Unexpected extra params.");return createTemplateBuilder(e,(0,n.merge)(l,(0,n.validate)(t)))}throw new Error("Unexpected template param "+typeof t)},{ast:(t,...r)=>{if("string"==typeof t){if(r.length>1)throw new Error("Unexpected extra params.");return(0,s.default)(e,t,(0,n.merge)((0,n.merge)(l,(0,n.validate)(r[0])),o))()}if(Array.isArray(t)){let s=a.get(t);return s||(s=(0,i.default)(e,t,(0,n.merge)(l,o)),a.set(t,s)),s(r)()}throw new Error("Unexpected template param "+typeof t)}})};var n=r("./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/optiLine truncated
(function (${l}) {
function ${n}(${p}) {
return ${M(l)}.apply(this, arguments);
}
${M(n)}.toString = function () {
return ${M(l)}.toString();
}
return ${M(n)};
})(${D(this.node)})
`;return this.replaceWith(c)[0].get("arguments.0")},t.splitExportDeclaration=function(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const e=this.get("declaration");if(this.isExportDefaultDeclaration()){const t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),n=e.isScope()?e.scope.parent:e.scope;let s=e.node.id,i=!1;s?r&&n.hasBinding(s.name)&&(i=!0,s=n.generateUidIdentifier(s.name)):(i=!0,s=n.generateUidIdentifier("default"),(t||r)&&(e.node.id=M(s)));const o=t?e.node:B("var",[R(M(s),e.node)]),a=U(null,[V(M(s),m("default"))]);return this.insertAfter(a),this.replaceWith(o),i&&n.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");const t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(e=>V(m(e),m(e))),n=U(null,r);return this.insertAfter(n),this.replaceWith(e.node),this},t.toComputedKey=function(){let e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||f(e)&&(e=C(e.name));return e},t.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");hoistFunctionEnvironment(this)};var n=r("./node_modules/.pnpm/@babel+types@7.28.4/node_modules/@babel/types/lib/index.js"),s=r("./node_modules/.pnpm/@babel+template@7.27.2/node_modules/@babel/template/lib/index.js"),i=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/visitors.js"),o=r("./node_modules/.pnpm/@babel+traverse@7.28.4/node_modules/@babel/traverse/lib/path/context.js");const{arrowFunctionExpression:a,assignmentExpression:l,binaryExpression:p,blockStatement:c,callExpression:u,conditionalExpression:d,expressionStatement:h,identifier:m,isIdentifier:f,jsxIdentifier:y,logicalExpression:b,LOGICAL_OPERATORS:g,memberExpression:x,metaProperty:v,numericLiteral:E,objectExpression:T,restElement:S,returnStatement:P,sequenceExpression:_,spreadElement:A,stringLiteral:C,super:w,thisExpression:I,toExpression:D,unaryExpression:k,toBindingIdentifierName:N,isFunction:O,isAssignmentPattern:j,isRestElement:F,getFunctionName:L,cloneNode:M,variableDeclaration:B,variableDeclarator:R,exportNamedDeclaration:U,exportSpecifier:V,inherits:$}=n;t.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};const K=(0,i.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function hoistFunctionEnvironment(e,t=!0,r=!0,n=!0){let s,i=e.findParent(e=>e.isArrowFunctionExpression()?(null!=s||(s=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}));const o=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(s)i=s;else{if(!r)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(u(a([],D(e.node)),[])),i=e.get("callee"),e=i.get("body")}const{thisPaths:c,argumentsPaths:h,newTargetPaths:f,superProps:T,superCalls:P}=function(e){const t=[],r=[],n=[],s=[],i=[];return e.traverse(q,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}}(e);if(o&&P.length>0){if(!r)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!n)throw P[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");const e=[];i.traverse(K,{allSuperCalls:e});const t=function(e){return getBinding(e,"supercall",()=>{const t=e.scope.generateUidIdentifier("args");return a([S(t)],u(w(),[A(m(t.name))]))})}(i);e.forEach(e=>{const r=m(t);r.loc=e.node.callee.loc,e.get("callee").replaceWith(r)})}if(h.length>0){const e=getBinding(i,"arguments",()=>{const args=()=>m("arguments");return i.scope.path.isProgram()?d(p("===",k("typeof",args()),C("undefined")),i.scope.buildUndefinedNode(),args()):args()});h.forEach(t=>{const r=m(e);r.loc=t.node.loc,t.replaceWith(r)})}if(f.length>0){const e=getBinding(i,"newtarget",()=>v(m("new"),m("target")));f.forEach(t=>{const r=m(e);r.loc=t.node.loc,t.replaceWith(r)})}if(T.length>0){if(!r)throw T[0].buildCodeFrameError("When using '@babel/plugin-transfoLine truncated
(function(){
throw new Error(
"The CommonJS '" + "${t}" + "' variable is not available in ES6 modules." +
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
"Babel config for this file.");
})()
`,b={ReferencedIdentifier(e){const t=e.node.name;if("module"!==t&&"exports"!==t)return;const r=e.scope.getBinding(t);this.scope.getBinding(t)!==r||e.parentPath.isObjectProperty({value:e.node})&&e.parentPath.parentPath.isObjectPattern()||e.parentPath.isAssignmentExpression({left:e.node})||e.isAssignmentExpression({left:e.node})||e.replaceWith(getAssertion(t))},UpdateExpression(t){const r=t.get("argument");if(!r.isIdentifier())return;const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);this.scope.getBinding(n)===s&&t.replaceWith(e.types.assignmentExpression(t.node.operator[0]+"=",r.node,getAssertion(n)))},AssignmentExpression(t){const r=t.get("left");if(r.isIdentifier()){const n=r.node.name;if("module"!==n&&"exports"!==n)return;const s=t.scope.getBinding(n);if(this.scope.getBinding(n)!==s)return;const i=t.get("right");i.replaceWith(e.types.sequenceExpression([i.node,getAssertion(n)]))}else if(r.isPattern()){const n=r.getOuterBindingIdentifiers(),s=Object.keys(n).find(e=>("module"===e||"exports"===e)&&this.scope.getBinding(e)===t.scope.getBinding(e));if(s){const r=t.get("right");r.replaceWith(e.types.sequenceExpression([r.node,getAssertion(s)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),c&&function(e,t){let r=e.get(Ye);r||e.set(Ye,r=[]),r.push(t)}(this.file,(t=>({name:"babel-plugin-transform-modules-commonjs/lazy",version:"7.24.7",getWrapperPayload:(e,r)=>(0,Xe.isSideEffectImport)(r)||r.reexportAll?null:!0===t?e.includes(".")?null:"lazy/function":Array.isArray(t)?t.includes(e)?"lazy/function":null:"function"==typeof t?t(e)?"lazy/function":null:void 0,buildRequireWrapper(t,r,n,s){if("lazy/function"===n)return!!s&&e.template.statement.ast`
function ${t}() {
const data = ${r};
${t} = function(){ return data; };
return data;
}
`},wrapReference(t,r){if("lazy/function"===r)return e.types.callExpression(t,[])}}))(c))},visitor:{["CallExpression"+(t.types.importExpression?"|ImportExpression":"")](t){if(t.isCallExpression()&&!e.types.isImport(t.node.callee))return;let{scope:r}=t;do{r.rename("require")}while(r=r.parent);transformDynamicImport(t,l,this.file)},Program:{exit(t,d){if(!(0,Ge.isModule)(t))return;t.scope.rename("exports"),t.scope.rename("module"),t.scope.rename("require"),t.scope.rename("__filename"),t.scope.rename("__dirname"),u||(process.env.BABEL_8_BREAKING?(0,Je.default)(t,new Set(["module","exports"])):(0,Je.default)(t,new Set(["module","exports"]),!1),t.traverse(b,{scope:t.scope}));let g=(0,Xe.getModuleName)(this.file.opts,r);g&&(g=e.types.stringLiteral(g));const x=function(e){const t=e.get(Ye);return{getWrapperPayload:(...e)=>findMap(t,t=>t.getWrapperPayload?.(...e)),wrapReference:(...e)=>findMap(t,t=>t.wrapReference?.(...e)),buildRequireWrapper:(...e)=>findMap(t,t=>t.buildRequireWrapper?.(...e))}}(this.file),{meta:v,headers:E}=(0,Xe.rewriteModuleStatementsAndPrepareHeader)(t,{exportName:"exports",constantReexports:m,enumerableModuleMeta:f,strict:o,strictMode:a,allowTopLevelThis:i,noInterop:l,importInterop:p,wrapReference:x.wrapReference,getWrapperPayload:x.getWrapperPayload,esNamespaceOnly:"string"==typeof d.filename&&/\.mjs$/.test(d.filename)?s:n,noIncompleteNsImportDetection:y,filename:this.file.opts.filename});for(const[r,n]of v.source){const s=h?e.types.awaitExpression(e.types.callExpression(e.types.identifier("jitiImport"),[e.types.stringLiteral(r)])):e.types.callExpression(e.types.identifier("require"),[e.types.stringLiteral(r)]);let i;if((0,Xe.isSideEffectImport)(n)){if(c&&"function"===n.wrap)throw new Error("Assertion failure");i=e.types.expressionStatement(s)}else{const r=(0,Xe.wrapInterop)(t,s,n.interop)||s;if(n.wrap){const e=x.buildRequireWrapper(n.name,r,n.wrap,n.referenced);if(!1===e)continue;i=e}i??=e.template.statement.ast`
var ${n.name} = ${r};
`}i.loc=n.loc,E.push(i,...(0,Xe.buildNamespaceInitStatements)(v,n,m,x.wrapReference))}(0,Xe.ensureStatementsHoisted)(E),t.unshiftContainer("body",E),t.get("body").forEach(e=>{E.includes(e.node)&&e.isVariableDeclaration()&&e.scope.registerDeclaration(e)})}}}}});function transform(r){const p={babelrc:!1,configFile:!1,compact:!1,retainLines:"boolean"!=typeof r.retainLines||r.retainLines,filename:"",cwd:"/",...r.babel,plugins:[[Qe,{allowTopLevelThis:!0,noInterop:!r.interopDefault,async:r.async}],[importMetaPathsPlugin,{filename:r.filename}],[importMetaEnvPlugin],[importMetaResolvePlugin],[n.default],[o.default]]};r.jsx&&p.plugins.push([i.default],[a.default,Object.assign({},r.jsx)]),r.ts&&(p.plugins.push([l.default,{allowDeclareFields:!0,isTSX:r.jsx&&/\.[cm]?tsx$/.test(r.filename||"")}]),p.plugins.unshift([d],[t.default,{legacy:!0}]),p.plugins.push(c(),s.default)),r.babel&&Array.isArray(r.babel.plugins)&&p.plugins?.push(...r.babel.plugins);try{return{code:(0,e.transformSync)(r.source,p)?.code||""}}catch(e){return{error:e,code:"exports.__JITI_ERROR__ = "+JSON.stringify({filename:r.filename,line:e.loc?.line||0,column:e.loc?.column||0,code:e.code?.replace("BABEL_","").replace("PARSE_ERROR","ParseError"),message:e.message?.replace("/: ","").replace(/\(.+\)\s*$/,"")})}}}})(),module.exports=r.default})();
@@ -0,0 +1,68 @@
import { Response } from 'express';
import { OAuthRegisteredClientsStore } from './clients.js';
import { OAuthClientInformationFull, OAuthTokenRevocationRequest, OAuthTokens } from '../../shared/auth.js';
import { AuthInfo } from './types.js';
export type AuthorizationParams = {
state?: string;
scopes?: string[];
codeChallenge: string;
redirectUri: string;
resource?: URL;
};
/**
* Implements an end-to-end OAuth server.
*/
export interface OAuthServerProvider {
/**
* A store used to read information about registered OAuth clients.
*/
get clientsStore(): OAuthRegisteredClientsStore;
/**
* Begins the authorization flow, which can either be implemented by this server itself or via redirection to a separate authorization server.
*
* This server must eventually issue a redirect with an authorization response or an error response to the given redirect URI. Per OAuth 2.1:
* - In the successful case, the redirect MUST include the `code` and `state` (if present) query parameters.
* - In the error case, the redirect MUST include the `error` query parameter, and MAY include an optional `error_description` query parameter.
*/
authorize(client: OAuthClientInformationFull, params: AuthorizationParams, res: Response): Promise<void>;
/**
* Returns the `codeChallenge` that was used when the indicated authorization began.
*/
challengeForAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string): Promise<string>;
/**
* Exchanges an authorization code for an access token.
*/
exchangeAuthorizationCode(client: OAuthClientInformationFull, authorizationCode: string, codeVerifier?: string, redirectUri?: string, resource?: URL): Promise<OAuthTokens>;
/**
* Exchanges a refresh token for an access token.
*/
exchangeRefreshToken(client: OAuthClientInformationFull, refreshToken: string, scopes?: string[], resource?: URL): Promise<OAuthTokens>;
/**
* Verifies an access token and returns information about it.
*/
verifyAccessToken(token: string): Promise<AuthInfo>;
/**
* Revokes an access or refresh token. If unimplemented, token revocation is not supported (not recommended).
*
* If the given token is invalid or already revoked, this method should do nothing.
*/
revokeToken?(client: OAuthClientInformationFull, request: OAuthTokenRevocationRequest): Promise<void>;
/**
* Whether to skip local PKCE validation.
*
* If true, the server will not perform PKCE validation locally and will pass the code_verifier to the upstream server.
*
* NOTE: This should only be true if the upstream server is performing the actual PKCE validation.
*/
skipLocalPkceValidation?: boolean;
}
/**
* Slim implementation useful for token verification
*/
export interface OAuthTokenVerifier {
/**
* Verifies an access token and returns information about it.
*/
verifyAccessToken(token: string): Promise<AuthInfo>;
}
//# sourceMappingURL=provider.d.ts.map
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const CopyX = createLucideIcon("CopyX", [
["line", { x1: "12", x2: "18", y1: "12", y2: "18", key: "1rg63v" }],
["line", { x1: "12", x2: "18", y1: "18", y2: "12", key: "ebkxgr" }],
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
]);
export { CopyX as default };
//# sourceMappingURL=copy-x.js.map
@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setResponseValueAndErrors = exports.addErrorMessage = void 0;
function addErrorMessage(res, key, errorMessage, refs) {
if (!refs?.errorMessages)
return;
if (errorMessage) {
res.errorMessage = {
...res.errorMessage,
[key]: errorMessage,
};
}
}
exports.addErrorMessage = addErrorMessage;
function setResponseValueAndErrors(res, key, value, errorMessage, refs) {
res[key] = value;
addErrorMessage(res, key, errorMessage, refs);
}
exports.setResponseValueAndErrors = setResponseValueAndErrors;
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Heading2 = createLucideIcon("Heading2", [
["path", { d: "M4 12h8", key: "17cfdx" }],
["path", { d: "M4 18V6", key: "1rz3zl" }],
["path", { d: "M12 18V6", key: "zqpxq5" }],
["path", { d: "M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1", key: "9jr5yi" }]
]);
export { Heading2 as default };
//# sourceMappingURL=heading-2.js.map
@@ -0,0 +1,22 @@
import { BRUTEFORCE_CARDINALITY, MIN_SUBMATCH_GUESSES_SINGLE_CHAR, MIN_SUBMATCH_GUESSES_MULTI_CHAR } from '../../data/const.mjs';
var bruteforceMatcher = ({
token
}) => {
let guesses = BRUTEFORCE_CARDINALITY ** token.length;
if (guesses === Number.POSITIVE_INFINITY) {
guesses = Number.MAX_VALUE;
}
let minGuesses;
// small detail: make bruteforce matches at minimum one guess bigger than smallest allowed
// submatch guesses, such that non-bruteforce submatches over the same [i..j] take precedence.
if (token.length === 1) {
minGuesses = MIN_SUBMATCH_GUESSES_SINGLE_CHAR + 1;
} else {
minGuesses = MIN_SUBMATCH_GUESSES_MULTI_CHAR + 1;
}
return Math.max(guesses, minGuesses);
};
export { bruteforceMatcher as default };
//# sourceMappingURL=scoring.mjs.map
@@ -0,0 +1 @@
{"version":3,"file":"esquery.min.js","sources":["../node_modules/estraverse/estraverse.js","../parser.js","../esquery.js"],"sourcesContent":["/*\n Copyright (C) 2012-2013 Yusuke Suzuki <utatane.tea@gmail.com>\n Copyright (C) 2012 Ariya Hidayat <ariya.hidayat@gmail.com>\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n/*jslint vars:false, bitwise:true*/\n/*jshint indent:4*/\n/*global exports:true*/\n(function clone(exports) {\n 'use strict';\n\n var Syntax,\n VisitorOption,\n VisitorKeys,\n BREAK,\n SKIP,\n REMOVE;\n\n function deepCopy(obj) {\n var ret = {}, key, val;\n for (key in obj) {\n if (obj.hasOwnProperty(key)) {\n val = obj[key];\n if (typeof val === 'object' && val !== null) {\n ret[key] = deepCopy(val);\n } else {\n ret[key] = val;\n }\n }\n }\n return ret;\n }\n\n // based on LLVM libc++ upper_bound / lower_bound\n // MIT License\n\n function upperBound(array, func) {\n var diff, len, i, current;\n\n len = array.length;\n i = 0;\n\n while (len) {\n diff = len >>> 1;\n current = i + diff;\n if (func(array[current])) {\n len = diff;\n } else {\n i = current + 1;\n len -= diff + 1;\n }\n }\n return i;\n }\n\n Syntax = {\n AssignmentExpression: 'AssignmentExpression',\n AssignmentPattern: 'AssignmentPattern',\n ArrayExpression: 'ArrayExpression',\n ArrayPattern: 'ArrayPattern',\n ArrowFunctionExpression: 'ArrowFunctionExpression',\n AwaitExpression: 'AwaitExpression', // CAUTION: It's deferred to ES7.\n BlockStatement: 'BlockStatement',\n BinaryExpression: 'BinaryExpression',\n BreakStatement: 'BreakStatement',\n CallExpression: 'CallExpression',\n CatchClause: 'CatchClause',\n ChainExpression: 'ChainExpression',\n ClassBody: 'ClassBody',\n ClassDeclaration: 'ClassDeclaration',\n ClassExpression: 'ClassExpression',\n ComprehensionBlock: 'ComprehensionBlock', // CAUTION: It's deferred to ES7.\n ComprehensionExpression: 'ComprehensionExpression', // CAUTION: It's deferred to ES7.\n ConditionalExpression: 'ConditionalExpression',\n ContinueStatement: 'ContinueStatement',\n DebuggerStatement: 'DebuggerStatement',\n DirectiveStatement: 'DirectiveStatement',\n DoWhileStatement: 'DoWhileStatement',\n EmptyStatement: 'EmptyStatement',\n ExportAllDeclaration: 'ExportAllDeclaration',\n ExportDefaultDeclaration: 'ExportDefaultDeclaration',\n ExportNamedDeclaration: 'ExportNamedDeclaration',\n ExportSpecifier: 'ExportSpecifier',\n ExpressionStatement: 'ExpressionStatement',\n ForStatement: 'ForStatement',\n ForInStatement: 'ForInStatement',\n ForOfStatement: 'ForOfStatement',\n FunctionDeclaration: 'FunctionDeclaration',\n FunctionExpression: 'FunctionExpression',\n GeneratorExpression: 'GeneratorExpression', // CAUTION: It's deferred to ES7.\n Identifier: 'Identifier',\n IfStatement: 'IfStatement',\n ImportExpression: 'ImportExpression',\n ImportDeclaration: 'ImportDeclaration',\n ImportDefaultSpecifier: 'ImportDefaultSpecifier',\n ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',\n ImportSpecifier: 'ImportSpecifier',\n Literal: 'Literal',\n LabeledStatement: 'LabeledStatement',\n LogicalExpression: 'LogicalExpression',\n MembLine truncated
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const AlignHorizontalDistributeEnd = createLucideIcon("AlignHorizontalDistributeEnd", [
["rect", { width: "6", height: "14", x: "4", y: "5", rx: "2", key: "1wwnby" }],
["rect", { width: "6", height: "10", x: "14", y: "7", rx: "2", key: "1fe6j6" }],
["path", { d: "M10 2v20", key: "uyc634" }],
["path", { d: "M20 2v20", key: "1tx262" }]
]);
export { AlignHorizontalDistributeEnd as default };
//# sourceMappingURL=align-horizontal-distribute-end.js.map
@@ -0,0 +1 @@
{"version":3,"file":"transform-value.mjs","sources":["../../../src/value/transform-value.ts"],"sourcesContent":["import { MotionValue, collectMotionValues, motionValue } from \".\"\nimport { subscribeValue } from \"./subscribe-value\"\n\nexport type TransformInputRange = number[]\nexport type SingleTransformer<I, O> = (input: I) => O\nexport type MultiTransformer<I, O> = (input: I[]) => O\nexport type ValueTransformer<I, O> =\n | SingleTransformer<I, O>\n | MultiTransformer<I, O>\n\n/**\n * Create a `MotionValue` that transforms the output of other `MotionValue`s by\n * passing their latest values through a transform function.\n *\n * Whenever a `MotionValue` referred to in the provided function is updated,\n * it will be re-evaluated.\n *\n * ```jsx\n * const x = motionValue(0)\n * const y = transformValue(() => x.get() * 2) // double x\n * ```\n *\n * @param transformer - A transform function. This function must be pure with no side-effects or conditional statements.\n * @returns `MotionValue`\n *\n * @public\n */\nexport function transformValue<O>(transform: () => O): MotionValue<O> {\n const collectedValues: MotionValue[] = []\n\n /**\n * Open session of collectMotionValues. Any MotionValue that calls get()\n * inside transform will be saved into this array.\n */\n collectMotionValues.current = collectedValues\n const initialValue = transform()\n collectMotionValues.current = undefined\n\n const value = motionValue(initialValue)\n\n subscribeValue(collectedValues, value, transform)\n\n return value\n}\n"],"names":[],"mappings":";;;AAUA;;;;;;;;;;;;;;;;AAgBG;AACG,SAAU,cAAc,CAAI,SAAkB,EAAA;IAChD,MAAM,eAAe,GAAkB,EAAE;AAEzC;;;AAGG;AACH,IAAA,mBAAmB,CAAC,OAAO,GAAG,eAAe;AAC7C,IAAA,MAAM,YAAY,GAAG,SAAS,EAAE;AAChC,IAAA,mBAAmB,CAAC,OAAO,GAAG,SAAS;AAEvC,IAAA,MAAM,KAAK,GAAG,WAAW,CAAC,YAAY,CAAC;AAEvC,IAAA,cAAc,CAAC,eAAe,EAAE,KAAK,EAAE,SAAS,CAAC;AAEjD,IAAA,OAAO,KAAK;AAChB;;;;"}
@@ -0,0 +1 @@
module.exports={"0":"_I _FB","1":"_d eD","2":"_JC _s","3":"_wS _uI","4":"_5 _e","5":"J mB","6":"B C","7":"_Y _UF","8":"_1S _HG","9":"lD _AB",A:"A B",B:"D A",C:"LE ME",D:"_FE _lP",E:"_SC FD",F:"J _U",G:"_HD _xS",H:"_QC _UP",I:"_x _VB",J:"_XH _tI",K:"_H _tI",L:"KD LD",M:"_3 _s",N:"_FE _yS",O:"_SH _uE",P:"_IG _xS",Q:"_xI _DC",R:"_DU _VH",S:"_zS _zE",T:"_j _O",U:"_GB _wE",V:"F _A",W:"_HD _oK",X:"I _y",Y:"_5 _fC",Z:"_RC FD",a:"_H _tM",b:"_HB FD",c:"_0B _0S",d:"lC _FG",e:"MD lC",f:"_g _L",g:"GD fC",h:"_TM _PP",i:"_kI _CD",j:"F _6",k:"J _e",l:"_i _wC",m:"2D 3D",n:"_m 4D",o:"_g _7",p:"_l _gK",q:"_g _Y",r:"_d _xC",s:"_JD _AB",t:"E _2S",u:"_5 _UH",v:"_7 _eC",w:"_xI _uB",x:"C _CC",y:"6D 7D",z:"_3E FD",AB:"_vI _kB",BB:"_jD _AB",CB:"_6 _yS",DB:"_uM _wM",EB:"_r gD",FB:"R _8D",GB:"_HH _NB",HB:"_gD E",IB:"_gD FD",JB:"_0I _VH",KB:"C M",LB:"fC _n",MB:"_fE _WP",NB:"_CG _rB",OB:"_3 _gC",PB:"F _PD",QB:"_vM _VH",RB:"_1I _WH",SB:"_IG _6S",TB:"_UC _WH",UB:"_OG _zM",VB:"_BC _AC",WB:"_eC iC",XB:"_3 _JD",YB:"_EU _wM",ZB:"H aC",aB:"_x _BC",bB:"_o _WB",cB:"_FE _tB",dB:"_EU _nP",eB:"_8S _2S",fB:"F _iK",gB:"_A _tB",hB:"_GB _wU",iB:"_OB kD",jB:"_GU _nP",kB:"_nK _sE",lB:"_yE _uB",mB:"F YD",nB:"mB _YB",oB:"_xM _0S",pB:"_0I _3S",qB:"_RB mC",rB:"PB QB",sB:"HC IC",tB:"ZC DD",uB:"_WB _sM",vB:"_BE _kD",wB:"_5 L",xB:"_GB _FU",yB:"_GB _LU",zB:"_tE QD","0B":"_H _j","1B":"JB _EC","2B":"_cC _XK","3B":"J _RH","4B":"_1S GC","5B":"_x G","6B":"IB _1B","7B":"_gP _MU","8B":"_IG _yI","9B":"_lC _s",AC:"P Q",BC:"G O",CC:"M N",DC:"_eC _rE",EC:"_GH _NB",FC:"_Y G",GC:"_yE _DC",HC:"_UF _DC",IC:"_Y _lD",JC:"E _qM",KC:"_5 _gD",LC:"_vC _A",MC:"_OH _HG",NC:"_hK _mC",OC:"_g KD",PC:"_pK _3S",QC:"_PF _CH",RC:"_gD _vC",SC:"_RC _A",TC:"_cK _jI",UC:"_5 _RC",VC:"_GE _gE",WC:"_LD _sM",XC:"_UF _uB",YC:"_yC _qE",ZC:"_wB _tP",aC:"yB zB",bC:"0B 1B",cC:"_VB nB",dC:"_QF _TF",eC:"_kE _SF",fC:"_SC _x",gC:"iD jD",hC:"_mE _GD",iC:"D _vC",jC:"nB _GB",kC:"_SF _rE",lC:"E hD",mC:"_mP _kB",nC:"9B _hE",oC:"_DD LC",pC:"_3B AE",qC:"F _SH",rC:"J 8D",sC:"lC dD",tC:"_xI _zE",uC:"_GT _vE",vC:"E F",wC:"_sU YC",xC:"eD fD",yC:"_XB _vI",zC:"_q _lD","0C":"_XB mD","1C":"K _vE","2C":"_g _OU","3C":"_KG _PU","4C":"_wB _UH","5C":"_KC _tP","6C":"_QD _tB","7C":"_GU _KU","8C":"_SD _s","9C":"_uP _tI",AD:"_yK _sE",BD:"_MB _XM",CD:"_cM _EG",DD:"_sB _3T",ED:"gC GC",FD:"_oE _lS",GD:"_ED hC",HD:"fC J",ID:"mC ZC",JD:"_gC _jD",KD:"_MH _GD",LD:"_SF iC",MD:"_JG _QF",ND:"_XB _GG",OD:"J _rI",PD:"_vM _oP",QD:"_yM _SH",RD:"_MH _wI",SD:"E _HU",TD:"_nI _JE",UD:"ND _zB",VD:"_VF _pP",WD:"_zS _WB",XD:"C _ZB",YD:"I 7D",ZD:"_H _HC",aD:"_Y _aH",bD:"_6 _lP",cD:"_pD _qE",dD:"_sP _uK",eD:"_vK _4I",fD:"_xU _zE",gD:"L D",hD:"vB wB",iD:"_jE _hE",jD:"kD lD",kD:"_mE _wI",lD:"_CE _AE",mD:"_KD _DC",nD:"_RF _GD",oD:"_A _x",pD:"_FC _vU",qD:"_LD _qI",rD:"_HE _bM",sD:"_fE V",tD:"_fE _VP",uD:"_wC _gK",vD:"_sB JC",wD:"E _uI",xD:"_QC 4",yD:"_GB _zU",zD:"_bC 2B","0D":"_QD _jK","1D":"_AT _2E","2D":"_wP _5S","3D":"_eH R","4D":"_CN _5S","5D":"_RU _L","6D":"_yU _lK","7D":"_0U _HC","8D":"H S","9D":"_KH _iE",AE:"_LH _TC",BE:"_9D _dC",CE:"_nE _BE",DE:"aC RD",EE:"_sS _uS",FE:"_A C",GE:"_MB _ZK",HE:"_DD _dP",IE:"O _AC",JE:"_kK _kB",KE:"_hC _DC",LE:"_Y _CE",ME:"_BE _AE",NE:"_ID _DE",OE:"_HT _iM",PE:"J _UU",QE:"K _UT",RE:"_H _5S",SE:"_iD CC",TE:"_nS _TD",UE:"_AU _sE",VE:"_j _FJ",WE:"_ZH FE",XE:"_XF _XG",YE:"_5I _JU",ZE:"_QG _tI",aE:"_AT _mD",bE:"_zP _JU",cE:"_QT _kB",dE:"_VU _vE",eE:"AB BB",fE:"T U",gE:"_zT _aI",hE:"AC BC",iE:"rB sB",jE:"8B 9B",kE:"_DD _eK",lE:"_BD _i",mE:"_AE _MH",nE:"_cC _GB",oE:"eC zC",pE:"_gM _hM",qE:"cC _mI",rE:"_lE _wC",sE:"_mM _fK",tE:"OD PD",uE:"_jK aC",vE:"_mK _lK",wE:"_rI _rM",xE:"_ID _sI",yE:"_BE _hC",zE:"_uB _L","0E":"_cC _HH","1E":"_MB _WK","2E":"_KD _uB","3E":"_RC A","4E":"_FB iC","5E":"_iD _JH","6E":"_VF M","7E":"_lM VD","8E":"_Y _JG","9E":"_Y _MD",AF:"_yC _nK",BF:"_H _NG",CF:"_H _1M",DF:"_GB _rM",EF:"_CD _wC",FF:"_gC kD",GF:"_HD _PH",HF:"_q _YU",IF:"_ND pD",JF:"_oC MC",KF:"_5I _qP",LF:"_DT _2E",MF:"_1P _RD",NF:"_AN _GC",OF:"W X",PF:"0 1",QF:"tB uB",RF:"_JH _eM",SF:"_fM _FB",TF:"_lI _aC",UF:"_OH _GD",VF:"_KG C",WF:"_0E MB",XF:"_ND _pI",YF:"LB _NB",ZF:"_UP _eE",aF:"_MB _dS",bF:"_hC _uB",cF:"_j _lD",dF:"_rK rB",eF:"_jC _vB",fF:"_cC HB",gF:"_BC P",hF:"_MB _QP",iF:"_Y _7S",jF:"_GE _zT",kF:"_IC _5E",lF:"_ZH _jP",mF:"PD QD",nF:"_OD mC",oF:"J _PH",pF:"_H _2E",qF:"_H _NU",rF:"_GB _qS",sF:"_GB _ZU",tF:"_CD _uD",uF:"_Y _6M",vF:"_Y _fF",wF:"_TH _4S",xF:"_xI _eC",yF:"_a aC",zF:"_w LD","0F":"_sP _2K","1F":"_4B _O","2F":"_aB P","3F":"_XF vD","4F":"_pC BE","5F":"_CT _mD","6F":"_VG _YS","7F":"_FT _lB","8F":"_MT _qD","9F":"_1U _kP",AG:"v w",BG:"_ZS _TP",CG:"MB _0T",DG:"TC UC",EG:"_aK _gI",FG:"dD ED",GG:"mD _hK",HG:"GC _WB",IG:"_HD I",JG:"_nE _9D",KG:"_5 _SC",LG:"_hS _TC",MG:"OB _rB",NG:"_dC _kD",OG:"_5 _HB",PG:"_eM _GD",QG:"_H _IE",RG:"_BD _kI",SG:"_zI _DC",TG:"_kE _DG",UG:"_jE AC",VG:"_0M _EH",WG:"_yT _eE",XG:"_rS nC",YG:"_kM _fK",ZG:"_sK 6B",aG:"_lM yD",bG:"_H _1B",cG:"_LH _cK",dG:"_tK pB",eG:"_BE _mE",fG:"_kE TC",gG:"_pD _mK",hG:"B _tB",iG:Line truncated
@@ -0,0 +1,577 @@
"use strict";
"use client";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var index_exports = {};
__export(index_exports, {
createCollection: () => createCollection,
unstable_createCollection: () => createCollection2
});
module.exports = __toCommonJS(index_exports);
// src/collection-legacy.tsx
var import_react = __toESM(require("react"));
var import_react_context = require("@radix-ui/react-context");
var import_react_compose_refs = require("@radix-ui/react-compose-refs");
var import_react_slot = require("@radix-ui/react-slot");
var import_jsx_runtime = require("react/jsx-runtime");
function createCollection(name) {
const PROVIDER_NAME = name + "CollectionProvider";
const [createCollectionContext, createCollectionScope] = (0, import_react_context.createContextScope)(PROVIDER_NAME);
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
PROVIDER_NAME,
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
);
const CollectionProvider = (props) => {
const { scope, children } = props;
const ref = import_react.default.useRef(null);
const itemMap = import_react.default.useRef(/* @__PURE__ */ new Map()).current;
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
};
CollectionProvider.displayName = PROVIDER_NAME;
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
const CollectionSlotImpl = (0, import_react_slot.createSlot)(COLLECTION_SLOT_NAME);
const CollectionSlot = import_react.default.forwardRef(
(props, forwardedRef) => {
const { scope, children } = props;
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, context.collectionRef);
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionSlotImpl, { ref: composedRefs, children });
}
);
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
const ITEM_DATA_ATTR = "data-radix-collection-item";
const CollectionItemSlotImpl = (0, import_react_slot.createSlot)(ITEM_SLOT_NAME);
const CollectionItemSlot = import_react.default.forwardRef(
(props, forwardedRef) => {
const { scope, children, ...itemData } = props;
const ref = import_react.default.useRef(null);
const composedRefs = (0, import_react_compose_refs.useComposedRefs)(forwardedRef, ref);
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
import_react.default.useEffect(() => {
context.itemMap.set(ref, { ref, ...itemData });
return () => void context.itemMap.delete(ref);
});
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
}
);
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
function useCollection(scope) {
const context = useCollectionContext(name + "CollectionConsumer", scope);
const getItems = import_react.default.useCallback(() => {
const collectionNode = context.collectionRef.current;
if (!collectionNode) return [];
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
const items = Array.from(context.itemMap.values());
const orderedItems = items.sort(
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
);
return orderedItems;
}, [context.collectionRef, context.itemMap]);
return getItems;
}
return [
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
useCollection,
createCollectionScope
];
}
// src/collection.tsx
var import_react2 = __toESM(require("react"));
var import_react_context2 = require("@radix-ui/react-context");
var import_react_compose_refs2 = require("@radix-ui/react-compose-refs");
var import_react_slot2 = require("@radix-ui/react-slot");
// src/ordered-dictionary.ts
var __instanciated = /* @__PURE__ */ new WeakMap();
var OrderedDict = class _OrderedDict extends Map {
#keys;
constructor(entries) {
super(entries);
this.#keys = [...super.keys()];
__instanciated.set(this, true);
}
set(key, value) {
if (__instanciated.get(this)) {
if (this.has(key)) {
this.#keys[this.#keys.indexOf(key)] = key;
} else {
this.#keys.push(key);
}
}
super.set(key, value);
return this;
}
insert(index, key, value) {
const has = this.has(key);
const length = this.#keys.length;
const relativeIndex = toSafeInteger(index);
let actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
const safeIndex = actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
if (safeIndex === this.size || has && safeIndex === this.size - 1 || safeIndex === -1) {
this.set(key, value);
return this;
}
const size = this.size + (has ? 0 : 1);
if (relativeIndex < 0) {
actualIndex++;
}
const keys = [...this.#keys];
let nextValue;
let shouldSkip = false;
for (let i = actualIndex; i < size; i++) {
if (actualIndex === i) {
let nextKey = keys[i];
if (keys[i] === key) {
nextKey = keys[i + 1];
}
if (has) {
this.delete(key);
}
nextValue = this.get(nextKey);
this.set(key, value);
} else {
if (!shouldSkip && keys[i - 1] === key) {
shouldSkip = true;
}
const currentKey = keys[shouldSkip ? i : i - 1];
const currentValue = nextValue;
nextValue = this.get(currentKey);
this.delete(currentKey);
this.set(currentKey, currentValue);
}
}
return this;
}
with(index, key, value) {
const copy = new _OrderedDict(this);
copy.insert(index, key, value);
return copy;
}
before(key) {
const index = this.#keys.indexOf(key) - 1;
if (index < 0) {
return void 0;
}
return this.entryAt(index);
}
/**
* Sets a new key-value pair at the position before the given key.
*/
setBefore(key, newKey, value) {
const index = this.#keys.indexOf(key);
if (index === -1) {
return this;
}
return this.insert(index, newKey, value);
}
after(key) {
let index = this.#keys.indexOf(key);
index = index === -1 || index === this.size - 1 ? -1 : index + 1;
if (index === -1) {
return void 0;
}
return this.entryAt(index);
}
/**
* Sets a new key-value pair at the position after the given key.
*/
setAfter(key, newKey, value) {
const index = this.#keys.indexOf(key);
if (index === -1) {
return this;
}
return this.insert(index + 1, newKey, value);
}
first() {
return this.entryAt(0);
}
last() {
return this.entryAt(-1);
}
clear() {
this.#keys = [];
return super.clear();
}
delete(key) {
const deleted = super.delete(key);
if (deleted) {
this.#keys.splice(this.#keys.indexOf(key), 1);
}
return deleted;
}
deleteAt(index) {
const key = this.keyAt(index);
if (key !== void 0) {
return this.delete(key);
}
return false;
}
at(index) {
const key = at(this.#keys, index);
if (key !== void 0) {
return this.get(key);
}
}
entryAt(index) {
const key = at(this.#keys, index);
if (key !== void 0) {
return [key, this.get(key)];
}
}
indexOf(key) {
return this.#keys.indexOf(key);
}
keyAt(index) {
return at(this.#keys, index);
}
from(key, offset) {
const index = this.indexOf(key);
if (index === -1) {
return void 0;
}
let dest = index + offset;
if (dest < 0) dest = 0;
if (dest >= this.size) dest = this.size - 1;
return this.at(dest);
}
keyFrom(key, offset) {
const index = this.indexOf(key);
if (index === -1) {
return void 0;
}
let dest = index + offset;
if (dest < 0) dest = 0;
if (dest >= this.size) dest = this.size - 1;
return this.keyAt(dest);
}
find(predicate, thisArg) {
let index = 0;
for (const entry of this) {
if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
return entry;
}
index++;
}
return void 0;
}
findIndex(predicate, thisArg) {
let index = 0;
for (const entry of this) {
if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
return index;
}
index++;
}
return -1;
}
filter(predicate, thisArg) {
const entries = [];
let index = 0;
for (const entry of this) {
if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
entries.push(entry);
}
index++;
}
return new _OrderedDict(entries);
}
map(callbackfn, thisArg) {
const entries = [];
let index = 0;
for (const entry of this) {
entries.push([entry[0], Reflect.apply(callbackfn, thisArg, [entry, index, this])]);
index++;
}
return new _OrderedDict(entries);
}
reduce(...args) {
const [callbackfn, initialValue] = args;
let index = 0;
let accumulator = initialValue ?? this.at(0);
for (const entry of this) {
if (index === 0 && args.length === 1) {
accumulator = entry;
} else {
accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);
}
index++;
}
return accumulator;
}
reduceRight(...args) {
const [callbackfn, initialValue] = args;
let accumulator = initialValue ?? this.at(-1);
for (let index = this.size - 1; index >= 0; index--) {
const entry = this.at(index);
if (index === this.size - 1 && args.length === 1) {
accumulator = entry;
} else {
accumulator = Reflect.apply(callbackfn, this, [accumulator, entry, index, this]);
}
}
return accumulator;
}
toSorted(compareFn) {
const entries = [...this.entries()].sort(compareFn);
return new _OrderedDict(entries);
}
toReversed() {
const reversed = new _OrderedDict();
for (let index = this.size - 1; index >= 0; index--) {
const key = this.keyAt(index);
const element = this.get(key);
reversed.set(key, element);
}
return reversed;
}
toSpliced(...args) {
const entries = [...this.entries()];
entries.splice(...args);
return new _OrderedDict(entries);
}
slice(start, end) {
const result = new _OrderedDict();
let stop = this.size - 1;
if (start === void 0) {
return result;
}
if (start < 0) {
start = start + this.size;
}
if (end !== void 0 && end > 0) {
stop = end - 1;
}
for (let index = start; index <= stop; index++) {
const key = this.keyAt(index);
const element = this.get(key);
result.set(key, element);
}
return result;
}
every(predicate, thisArg) {
let index = 0;
for (const entry of this) {
if (!Reflect.apply(predicate, thisArg, [entry, index, this])) {
return false;
}
index++;
}
return true;
}
some(predicate, thisArg) {
let index = 0;
for (const entry of this) {
if (Reflect.apply(predicate, thisArg, [entry, index, this])) {
return true;
}
index++;
}
return false;
}
};
function at(array, index) {
if ("at" in Array.prototype) {
return Array.prototype.at.call(array, index);
}
const actualIndex = toSafeIndex(array, index);
return actualIndex === -1 ? void 0 : array[actualIndex];
}
function toSafeIndex(array, index) {
const length = array.length;
const relativeIndex = toSafeInteger(index);
const actualIndex = relativeIndex >= 0 ? relativeIndex : length + relativeIndex;
return actualIndex < 0 || actualIndex >= length ? -1 : actualIndex;
}
function toSafeInteger(number) {
return number !== number || number === 0 ? 0 : Math.trunc(number);
}
// src/collection.tsx
var import_jsx_runtime2 = require("react/jsx-runtime");
function createCollection2(name) {
const PROVIDER_NAME = name + "CollectionProvider";
const [createCollectionContext, createCollectionScope] = (0, import_react_context2.createContextScope)(PROVIDER_NAME);
const [CollectionContextProvider, useCollectionContext] = createCollectionContext(
PROVIDER_NAME,
{
collectionElement: null,
collectionRef: { current: null },
collectionRefObject: { current: null },
itemMap: new OrderedDict(),
setItemMap: () => void 0
}
);
const CollectionProvider = ({ state, ...props }) => {
return state ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionProviderImpl, { ...props, state }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionInit, { ...props });
};
CollectionProvider.displayName = PROVIDER_NAME;
const CollectionInit = (props) => {
const state = useInitCollection();
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionProviderImpl, { ...props, state });
};
CollectionInit.displayName = PROVIDER_NAME + "Init";
const CollectionProviderImpl = (props) => {
const { scope, children, state } = props;
const ref = import_react2.default.useRef(null);
const [collectionElement, setCollectionElement] = import_react2.default.useState(
null
);
const composeRefs = (0, import_react_compose_refs2.useComposedRefs)(ref, setCollectionElement);
const [itemMap, setItemMap] = state;
import_react2.default.useEffect(() => {
if (!collectionElement) return;
const observer = getChildListObserver(() => {
});
observer.observe(collectionElement, {
childList: true,
subtree: true
});
return () => {
observer.disconnect();
};
}, [collectionElement]);
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
CollectionContextProvider,
{
scope,
itemMap,
setItemMap,
collectionRef: composeRefs,
collectionRefObject: ref,
collectionElement,
children
}
);
};
CollectionProviderImpl.displayName = PROVIDER_NAME + "Impl";
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
const CollectionSlotImpl = (0, import_react_slot2.createSlot)(COLLECTION_SLOT_NAME);
const CollectionSlot = import_react2.default.forwardRef(
(props, forwardedRef) => {
const { scope, children } = props;
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
const composedRefs = (0, import_react_compose_refs2.useComposedRefs)(forwardedRef, context.collectionRef);
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionSlotImpl, { ref: composedRefs, children });
}
);
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
const ITEM_DATA_ATTR = "data-radix-collection-item";
const CollectionItemSlotImpl = (0, import_react_slot2.createSlot)(ITEM_SLOT_NAME);
const CollectionItemSlot = import_react2.default.forwardRef(
(props, forwardedRef) => {
const { scope, children, ...itemData } = props;
const ref = import_react2.default.useRef(null);
const [element, setElement] = import_react2.default.useState(null);
const composedRefs = (0, import_react_compose_refs2.useComposedRefs)(forwardedRef, ref, setElement);
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
const { setItemMap } = context;
const itemDataRef = import_react2.default.useRef(itemData);
if (!shallowEqual(itemDataRef.current, itemData)) {
itemDataRef.current = itemData;
}
const memoizedItemData = itemDataRef.current;
import_react2.default.useEffect(() => {
const itemData2 = memoizedItemData;
setItemMap((map) => {
if (!element) {
return map;
}
if (!map.has(element)) {
map.set(element, { ...itemData2, element });
return map.toSorted(sortByDocumentPosition);
}
return map.set(element, { ...itemData2, element }).toSorted(sortByDocumentPosition);
});
return () => {
setItemMap((map) => {
if (!element || !map.has(element)) {
return map;
}
map.delete(element);
return new OrderedDict(map);
});
};
}, [element, memoizedItemData, setItemMap]);
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
}
);
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
function useInitCollection() {
return import_react2.default.useState(new OrderedDict());
}
function useCollection(scope) {
const { itemMap } = useCollectionContext(name + "CollectionConsumer", scope);
return itemMap;
}
const functions = {
createCollectionScope,
useCollection,
useInitCollection
};
return [
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
functions
];
}
function shallowEqual(a, b) {
if (a === b) return true;
if (typeof a !== "object" || typeof b !== "object") return false;
if (a == null || b == null) return false;
const keysA = Object.keys(a);
const keysB = Object.keys(b);
if (keysA.length !== keysB.length) return false;
for (const key of keysA) {
if (!Object.prototype.hasOwnProperty.call(b, key)) return false;
if (a[key] !== b[key]) return false;
}
return true;
}
function isElementPreceding(a, b) {
return !!(b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_PRECEDING);
}
function sortByDocumentPosition(a, b) {
return !a[1].element || !b[1].element ? 0 : isElementPreceding(a[1].element, b[1].element) ? -1 : 1;
}
function getChildListObserver(callback) {
const observer = new MutationObserver((mutationsList) => {
for (const mutation of mutationsList) {
if (mutation.type === "childList") {
callback();
return;
}
}
});
return observer;
}
//# sourceMappingURL=index.js.map
@@ -0,0 +1,347 @@
'use client'
export {
defer,
isMatch,
joinPaths,
cleanPath,
trimPathLeft,
trimPathRight,
trimPath,
resolvePath,
interpolatePath,
rootRouteId,
defaultParseSearch,
defaultStringifySearch,
parseSearchWith,
stringifySearchWith,
functionalUpdate,
replaceEqualDeep,
isPlainObject,
isPlainArray,
deepEqual,
createControlledPromise,
retainSearchParams,
stripSearchParams,
createSerializationAdapter,
} from '@tanstack/router-core'
export type {
AnyRoute,
DeferredPromiseState,
DeferredPromise,
ParsedLocation,
RemoveTrailingSlashes,
RemoveLeadingSlashes,
ActiveOptions,
ResolveRelativePath,
RootRouteId,
AnyPathParams,
ResolveParams,
ResolveOptionalParams,
ResolveRequiredParams,
SearchSchemaInput,
AnyContext,
RouteContext,
PreloadableObj,
RoutePathOptions,
StaticDataRouteOption,
RoutePathOptionsIntersection,
UpdatableStaticRouteOption,
MetaDescriptor,
RouteLinkEntry,
ParseParamsFn,
SearchFilter,
ResolveId,
InferFullSearchSchema,
InferFullSearchSchemaInput,
ErrorRouteProps,
ErrorComponentProps,
NotFoundRouteProps,
TrimPath,
TrimPathLeft,
TrimPathRight,
StringifyParamsFn,
ParamsOptions,
InferAllParams,
InferAllContext,
LooseReturnType,
LooseAsyncReturnType,
ContextReturnType,
ContextAsyncReturnType,
ResolveLoaderData,
ResolveRouteContext,
SearchSerializer,
SearchParser,
SearchMiddleware,
TrailingSlashOption,
Manifest,
RouterManagedTag,
ControlledPromise,
Constrain,
Expand,
MergeAll,
Assign,
IntersectAssign,
ResolveValidatorInput,
ResolveValidatorOutput,
Register,
AnyValidator,
DefaultValidator,
ValidatorFn,
AnySchema,
AnyValidatorAdapter,
AnyValidatorFn,
AnyValidatorObj,
ResolveValidatorInputFn,
ResolveValidatorOutputFn,
ResolveSearchValidatorInput,
ResolveSearchValidatorInputFn,
Validator,
ValidatorAdapter,
ValidatorObj,
FileRoutesByPath,
RouteById,
RootRouteOptions,
CreateFileRoute,
SerializationAdapter,
AnySerializationAdapter,
SerializableExtensions,
} from '@tanstack/router-core'
export {
createHistory,
createBrowserHistory,
createHashHistory,
createMemoryHistory,
} from '@tanstack/history'
export type {
BlockerFn,
HistoryLocation,
RouterHistory,
ParsedPath,
HistoryState,
} from '@tanstack/history'
export { useAwaited, Await } from './awaited'
export type { AwaitOptions } from './awaited'
export { CatchBoundary, ErrorComponent } from './CatchBoundary'
export { ClientOnly, useHydrated } from './ClientOnly'
export {
FileRoute,
createFileRoute,
FileRouteLoader,
LazyRoute,
createLazyRoute,
createLazyFileRoute,
} from './fileRoute'
export * from './history'
export { lazyRouteComponent } from './lazyRouteComponent'
export { useLinkProps, createLink, Link, linkOptions } from './link'
export type {
InferDescendantToPaths,
RelativeToPath,
RelativeToParentPath,
RelativeToCurrentPath,
AbsoluteToPath,
RelativeToPathAutoComplete,
NavigateOptions,
ToOptions,
ToMaskOptions,
ToSubOptions,
ResolveRoute,
SearchParamOptions,
PathParamOptions,
ToPathOption,
LinkOptions,
MakeOptionalPathParams,
FileRouteTypes,
RouteContextParameter,
BeforeLoadContextParameter,
ResolveAllContext,
ResolveAllParamsFromParent,
ResolveFullSearchSchema,
ResolveFullSearchSchemaInput,
RouteIds,
NavigateFn,
BuildLocationFn,
FullSearchSchemaOption,
MakeRemountDepsOptionsUnion,
RemountDepsOptions,
ResolveFullPath,
AnyRouteWithContext,
AnyRouterWithContext,
CommitLocationOptions,
MatchLocation,
UseNavigateResult,
AnyRedirect,
Redirect,
RedirectOptions,
ResolvedRedirect,
MakeRouteMatch,
MakeRouteMatchUnion,
RouteMatch,
AnyRouteMatch,
RouteContextFn,
RouteContextOptions,
BeforeLoadContextOptions,
ContextOptions,
RouteOptions,
FileBaseRouteOptions,
BaseRouteOptions,
UpdatableRouteOptions,
RouteLoaderFn,
LoaderFnContext,
LazyRouteOptions,
AnyRouter,
RegisteredRouter,
RouterContextOptions,
ControllablePromise,
InjectedHtmlEntry,
RouterOptions,
RouterState,
ListenerFn,
BuildNextOptions,
RouterConstructorOptions,
RouterEvents,
RouterEvent,
RouterListener,
RouteConstraints,
RouteMask,
MatchRouteOptions,
CreateLazyFileRoute,
} from '@tanstack/router-core'
export type {
UseLinkPropsOptions,
ActiveLinkOptions,
LinkProps,
LinkComponent,
LinkComponentProps,
CreateLinkProps,
} from './link'
export {
Matches,
useMatchRoute,
MatchRoute,
useMatches,
useParentMatches,
useChildMatches,
} from './Matches'
export type { UseMatchRouteOptions, MakeMatchRouteOptions } from './Matches'
export { Match, Outlet } from './Match'
export { useMatch } from './useMatch'
export { useLoaderDeps } from './useLoaderDeps'
export { useLoaderData } from './useLoaderData'
export {
redirect,
isRedirect,
createRouterConfig,
DEFAULT_PROTOCOL_ALLOWLIST,
} from '@tanstack/router-core'
export {
RouteApi,
getRouteApi,
Route,
createRoute,
RootRoute,
rootRouteWithContext,
createRootRoute,
createRootRouteWithContext,
createRouteMask,
NotFoundRoute,
} from './route'
export type {
AnyRootRoute,
AsyncRouteComponent,
RouteComponent,
ErrorRouteComponent,
NotFoundRouteComponent,
DefaultRouteTypes,
RouteTypes,
} from './route'
export { createRouter, Router } from './router'
export { lazyFn, SearchParamError } from '@tanstack/router-core'
export { RouterProvider, RouterContextProvider } from './RouterProvider'
export type { RouterProps } from './RouterProvider'
export {
useElementScrollRestoration,
ScrollRestoration,
} from './ScrollRestoration'
export type { UseBlockerOpts, ShouldBlockFn } from './useBlocker'
export { useBlocker, Block } from './useBlocker'
export { useNavigate, Navigate } from './useNavigate'
export { useParams } from './useParams'
export { useSearch } from './useSearch'
export { useRouteContext } from './useRouteContext'
export { useRouter } from './useRouter'
export { useRouterState } from './useRouterState'
export { useLocation } from './useLocation'
export { useCanGoBack } from './useCanGoBack'
export { CatchNotFound, DefaultGlobalNotFound } from './not-found'
export { notFound, isNotFound } from '@tanstack/router-core'
export type { NotFoundError } from '@tanstack/router-core'
export type {
ValidateLinkOptions,
InferStructuralSharing,
ValidateUseSearchOptions,
ValidateUseParamsOptions,
ValidateLinkOptionsArray,
} from './typePrimitives'
export type {
ValidateFromPath,
ValidateToPath,
ValidateSearch,
ValidateParams,
InferFrom,
InferTo,
InferMaskTo,
InferMaskFrom,
ValidateNavigateOptions,
ValidateNavigateOptionsArray,
ValidateRedirectOptions,
ValidateRedirectOptionsArray,
ValidateId,
InferStrict,
InferShouldThrow,
InferSelected,
ValidateUseSearchResult,
ValidateUseParamsResult,
SerializerExtensions,
RegisteredSerializableInput,
Serializable,
} from '@tanstack/router-core'
export { ScriptOnce } from './ScriptOnce'
export { Asset } from './Asset'
export { HeadContent } from './HeadContent'
export { useTags } from './headContentUtils'
export { Scripts } from './Scripts'
export type * from './ssr/serializer'
export { composeRewrites } from '@tanstack/router-core'
export type {
LocationRewrite,
LocationRewriteFunction,
} from '@tanstack/router-core'
@@ -0,0 +1 @@
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/experimental/tasks/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACH,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,sBAAsB,EACtB,kCAAkC,EAClC,4BAA4B,EAC5B,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACR,IAAI,EACJ,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,4BAA4B,EAC5B,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,20 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SquareScissors = createLucideIcon("SquareScissors", [
["rect", { width: "20", height: "20", x: "2", y: "2", rx: "2", key: "1btzen" }],
["circle", { cx: "8", cy: "8", r: "2", key: "14cg06" }],
["path", { d: "M9.414 9.414 12 12", key: "qz4lzr" }],
["path", { d: "M14.8 14.8 18 18", key: "11flf1" }],
["circle", { cx: "8", cy: "16", r: "2", key: "1acxsx" }],
["path", { d: "m18 6-8.586 8.586", key: "11kzk1" }]
]);
export { SquareScissors as default };
//# sourceMappingURL=square-scissors.js.map
@@ -0,0 +1,4 @@
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"forInViolation", [], import("../../rules").ESLintPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
name: string;
};
export default _default;
@@ -0,0 +1,4 @@
import Options from '../Options';
import { MatchEstimated, MatchExtended } from '../types';
declare const _default: (options: Options, match: MatchExtended | MatchEstimated, password: string) => MatchEstimated;
export default _default;
@@ -0,0 +1,9 @@
export function stringify(obj: any, options?: StringifyOptions): string;
export function stripBom(content: string): string;
export interface StringifyOptions {
EOL?: string | undefined;
finalEOL?: boolean | undefined;
replacer?: ((key: string, value: any) => any) | undefined;
spaces?: string | number | undefined;
}
@@ -0,0 +1,107 @@
import * as util from "../core/util.js";
const error = () => {
const Sizable = {
string: { unit: "simwol", verb: "bolmaly" },
file: { unit: "baýt", verb: "bolmaly" },
array: { unit: "elementler", verb: "bolmaly" },
set: { unit: "elementler", verb: "bolmaly" },
map: { unit: "elementler", verb: "bolmaly" },
};
function getSizing(origin) {
return Sizable[origin] ?? null;
}
const FormatDictionary = {
regex: "giriş",
email: "e-poçta salgysy",
url: "URL",
emoji: "emoji",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "ISO sene we wagt",
date: "ISO sene",
time: "ISO wagt",
duration: "ISO wagt aralygy",
ipv4: "IPv4 salgysy",
ipv6: "IPv6 salgysy",
mac: "MAC salgysy",
cidrv4: "IPv4 aralygy",
cidrv6: "IPv6 aralygy",
base64: "base64 bilen şifrlenen setir",
base64url: "base64url bilen şifrlenen setir",
json_string: "JSON setiri",
e164: "E.164 nomeri",
credit_card: "kredit kartynyň nomeri",
currency_code: "walýuta kody",
iban: "IBAN",
jwt: "JWT",
template_literal: "şablon",
};
const TypeDictionary = {
nan: "NaN",
};
return (issue) => {
switch (issue.code) {
case "invalid_type": {
const expected = TypeDictionary[issue.expected] ?? issue.expected;
const receivedType = util.parsedType(issue.input);
const received = TypeDictionary[receivedType] ?? receivedType;
return `Nädogry baha: garaşylan ${expected} ýerine ${received} alyndy`;
}
case "invalid_value":
if (issue.values.length === 1)
return `Nädogry baha: ${util.stringifyPrimitive(issue.values[0])} bolmaly`;
return `Nädogry saýlaw: aşakdakylardan biri bolmaly: ${util.joinValues(issue.values, "|")}`;
case "too_big": {
const adj = issue.inclusive ? "<=" : "<";
const sizing = getSizing(issue.origin);
if (sizing)
return `Has uly: garaşylýan ${issue.origin ?? "baha"} ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "element"}`;
return `Has uly: garaşylýan ${issue.origin ?? "baha"} ${adj} ${issue.maximum.toString()}`;
}
case "too_small": {
const adj = issue.inclusive ? ">=" : ">";
const sizing = getSizing(issue.origin);
if (sizing)
return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()} ${sizing.unit}`;
return `Has kiçi: garaşylýan ${issue.origin} ${adj} ${issue.minimum.toString()}`;
}
case "invalid_format": {
const _issue = issue;
if (_issue.format === "starts_with")
return `Nädogry setir: "${_issue.prefix}" bilen başlamaly`;
if (_issue.format === "ends_with")
return `Nädogry setir: "${_issue.suffix}" bilen gutarmaly`;
if (_issue.format === "includes")
return `Nädogry setir: "${_issue.includes}" saklamaly`;
if (_issue.format === "regex")
return `Nädogry setir: ${_issue.pattern} nusga laýyk bolmaly`;
return `Nädogry ${FormatDictionary[_issue.format] ?? issue.format}`;
}
case "not_multiple_of":
return `Nädogry san: ${issue.divisor} bilen galyndysyz bölünmeli`;
case "unrecognized_keys":
return `Tanalmaýan açar${issue.keys.length > 1 ? "lar" : ""}: ${util.joinValues(issue.keys, ", ")}`;
case "invalid_key":
return `${issue.origin} içinde nädogry açar`;
case "invalid_union":
return "Nädogry baha";
case "invalid_element":
return `${issue.origin} içinde nädogry baha`;
default:
return `Nädogry baha`;
}
};
};
export default function () {
return {
localeError: error(),
};
}
@@ -0,0 +1 @@
{"version":3,"file":"_md.d.ts","sourceRoot":"","sources":["src/_md.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAML,KAAK,IAAI,EACT,KAAK,IAAI,EACT,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,8BAAsB,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC,CAAE,YAAW,IAAI,CAAC,CAAC,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAC/D,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,MAAM,EAAE;IAClC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI;IAC/C,QAAQ,CAAC,OAAO,IAAI,IAAI;IACxB,SAAS,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI;IAErC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,SAAS;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAGvB,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAC7B,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC;IACzB,SAAS,CAAC,QAAQ,UAAS;IAC3B,SAAS,CAAC,MAAM,SAAK;IACrB,SAAS,CAAC,GAAG,SAAK;IAClB,SAAS,CAAC,SAAS,UAAS;gBAEhB,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;IAQjF,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI;IA0BpC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI;IAkCvC,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC;IAS1B,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC;IAarB,KAAK,IAAI,CAAC;CAGX;AAED;;;GAGG;AAEH;;uEAEuE;AACvE,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,WAAW,CAEtC,CAAC;AAEH;6EAC6E;AAC7E,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,WAAW,CAEtC,CAAC;AAEH;;;wDAGwD;AACxD,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,WAAW,CAGtC,CAAC;AAEH;;;gDAGgD;AAChD,eAAO,MAAM,SAAS,EAAE,IAAI,CAAC,WAAW,CAGtC,CAAC"}
@@ -0,0 +1 @@
{"version":3,"file":"message-circle-off.js","sources":["../../../src/icons/message-circle-off.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name MessageCircleOff\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjAuNSAxNC45QTkgOSAwIDAgMCA5LjEgMy41IiAvPgogIDxwYXRoIGQ9Im0yIDIgMjAgMjAiIC8+CiAgPHBhdGggZD0iTTUuNiA1LjZDMyA4LjMgMi4yIDEyLjUgNCAxNmwtMiA2IDYtMmMzLjQgMS44IDcuNiAxLjEgMTAuMy0xLjciIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/message-circle-off\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst MessageCircleOff = createLucideIcon('MessageCircleOff', [\n ['path', { d: 'M20.5 14.9A9 9 0 0 0 9.1 3.5', key: '1iebmn' }],\n ['path', { d: 'm2 2 20 20', key: '1ooewy' }],\n ['path', { d: 'M5.6 5.6C3 8.3 2.2 12.5 4 16l-2 6 6-2c3.4 1.8 7.6 1.1 10.3-1.7', key: '1ov8ce' }],\n]);\n\nexport default MessageCircleOff;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmB,iBAAiB,kBAAoB,CAAA,CAAA,CAAA;AAAA,CAAA,CAC5D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAgC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC7D,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAc,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CAC3C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAkE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA;AACjG,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,30 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.describeFilePath = describeFilePath;
const node_path_1 = __importDefault(require("node:path"));
function describeFilePath(filePath, tsconfigRootDir) {
// If the TSConfig root dir is a parent of the filePath, use
// `<tsconfigRootDir>` as a prefix for the path.
const relative = node_path_1.default.relative(tsconfigRootDir, filePath);
if (relative && !relative.startsWith('..') && !node_path_1.default.isAbsolute(relative)) {
return `<tsconfigRootDir>/${relative}`;
}
// Root-like Mac/Linux (~/*, ~*) or Windows (C:/*, /) paths that aren't
// relative to the TSConfig root dir should be fully described.
// This avoids strings like <tsconfigRootDir>/../../../../repo/file.ts.
// https://github.com/typescript-eslint/typescript-eslint/issues/6289
if (/^[(\w+:)\\/~]/.test(filePath)) {
return filePath;
}
// Similarly, if the relative path would contain a lot of ../.., then
// ignore it and print the file path directly.
if (/\.\.[/\\]\.\./.test(relative)) {
return filePath;
}
// Lastly, since we've eliminated all special cases, we know the cleanest
// path to print is probably the prefixed relative one.
return `<tsconfigRootDir>/${relative}`;
}
@@ -0,0 +1 @@
module.exports={C:{"55":0.00655,"57":0.00655,"66":0.00655,"115":0.04583,"120":2.14742,"121":4.34721,"123":0.00655,"124":0.01964,"125":0.00655,"130":0.00655,"135":0.00655,"138":0.00655,"140":0.00655,"142":0.00655,"147":0.00655,"148":0.01309,"149":0.00655,"150":0.04583,"152":0.00655,"153":0.00655,"154":0.09166,"155":0.24879,"156":0.24224,"157":0.00655,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 116 117 118 119 122 126 127 128 129 131 132 133 134 136 137 139 141 143 144 145 146 151 158 159 160 3.5 3.6"},D:{"60":0.00655,"61":0.00655,"62":0.00655,"63":0.00655,"64":0.01309,"65":0.01309,"66":0.01309,"67":0.00655,"68":0.00655,"69":0.01309,"70":0.02619,"71":0.00655,"73":0.01964,"74":0.00655,"76":0.00655,"79":0.00655,"81":0.00655,"83":0.01309,"92":0.02619,"93":0.01309,"98":0.00655,"101":0.00655,"103":0.64161,"104":0.60887,"105":0.60232,"106":0.60232,"107":0.59578,"108":0.59578,"109":0.68089,"110":0.60232,"111":0.60887,"112":0.58923,"113":0.01309,"114":0.00655,"116":1.17846,"117":0.59578,"118":2.80866,"119":4.23591,"120":4.9168,"121":0.00655,"122":0.01309,"123":0.03274,"124":0.60887,"125":0.00655,"126":0.07202,"127":0.00655,"128":0.01309,"130":0.00655,"131":1.28976,"132":0.04583,"133":1.23738,"134":0.07202,"135":0.06547,"136":0.07202,"137":0.08511,"138":0.14403,"139":0.07202,"140":0.07202,"141":0.07856,"142":0.24879,"143":0.05238,"144":0.43865,"145":0.2095,"146":0.36009,"147":0.03928,"148":0.50412,"149":0.66779,"150":1.34868,"151":7.4243,"152":4.98881,"153":3.31933,"154":1.84625,"155":0.01309,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 72 75 77 78 80 84 85 86 87 88 89 90 91 94 95 96 97 99 100 102 115 129 156 157"},F:{"46":0.01309,"50":0.00655,"51":0.00655,"52":0.00655,"53":0.00655,"54":0.01309,"55":0.01309,"56":0.01309,"57":0.00655,"58":0.00655,"90":0.00655,"91":0.00655,"100":0.00655,"101":0.04583,"102":0.00655,"105":0.00655,"106":0.01309,"107":0.00655,"113":0.00655,"114":0.00655,"120":0.00655,"121":0.00655,"122":0.00655,"133":0.00655,"134":0.06547,"135":0.30116,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 92 93 94 95 96 97 98 99 103 104 108 109 110 111 112 115 116 117 118 119 123 124 125 126 127 131 132 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00655,"109":0.00655,"114":0.00655,"119":2.14087,"120":2.09504,"122":0.00655,"123":0.00655,"124":0.00655,"133":0.00655,"140":0.00655,"144":0.00655,"145":0.01309,"147":0.01309,"148":0.01964,"149":0.01309,"150":0.04583,"151":0.23569,"152":1.42725,"153":1.55819,"154":0.32735,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 113 115 116 117 118 121 125 126 127 128 129 130 131 132 134 135 136 137 138 139 141 142 143 146"},E:{"27":0.09821,_:"4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 13.1 15.1 15.2-15.3 15.4 15.5 16.0 16.1 16.2 16.3 16.4 16.5 17.2 18.0 18.2 27.1 27.2 TP","14.1":0.01309,"15.6":0.04583,"16.6":0.03274,"17.0":0.00655,"17.1":0.01964,"17.3":0.00655,"17.4":0.00655,"17.5":0.00655,"17.6":0.06547,"18.1":0.00655,"18.3":0.00655,"18.4":0.01309,"18.5-18.7":0.01309,"26.0":0.01309,"26.1":0.00655,"26.2":0.01964,"26.3":0.07202,"26.4":0.03274,"26.5":0.13094,"26.6":0.75945},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00105,"5.0-5.1":0.00105,"6.0-6.1":0,"7.0-7.1":0.00209,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0.01047,"11.0-11.2":0.00105,"11.3-11.4":0.00209,"12.0-12.1":0,"12.2-12.5":0.02723,"13.0-13.1":0,"13.2":0.00524,"13.3":0,"13.4-13.7":0.00105,"14.0-14.4":0.00419,"14.5-14.8":0.00628,"15.0-15.1":0.00628,"15.2-15.3":0.00419,"15.4":0.00524,"15.5":0.00628,"15.6-15.8":0.13615,"16.0":0.01047,"16.1":0.01885,"16.2":0.01047,"16.3":0.02304,"16.4":0.00524,"16.5":0.00838,"16.6-16.7":0.18957,"17.0":0.00733,"17.1":0.01047,"17.2":0.01047,"17.3":0.01571,"17.4":0.02199,"17.5":0.04294,"17.6-17.7":0.11102,"18.0":0.02304,"18.1":0.04608,"18.2":0.06284,"18.3":0.10892,"18.4":0.06808,"18.5-18.7":1.40657,"26.0":0.06808,"26.1":0.06912,"26.2":0.18014,"26.3":0.1948,"26.4":0.14244,"26.5":0.95412,"26.6":5.88708,"27.0":0.4514,"27.1":0,"27.2":0.01152},P:{"23":0.02878,"26":0.03838,"27":0.00959,"28":0.05757,"29":0.11514,"30":1.53517,_:"4 20 21 22 24 25 5.0-5.4 6.2-6.4 9.2 10.1 11.1-11.2 12.0 13.0 15.0 17.0 18.0 19.0","7.2-7.4":0.02878,"8.2":0.00959,"14.0":0.00959,"16.0":0.03838},I:{"0":0.01725,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.00001},K:{"0":0.18641,_:"10 11 12 11.1 11.5 12.1"},A:Line truncated
@@ -0,0 +1,721 @@
# Fetch
<!--introduced_in=v1.0.0-->
<!--type=module-->
<!-- source_link=lib/web/fetch/index.js -->
> Stability: 2 - Stable
undici implements the [WHATWG Fetch Standard][], providing `fetch()` together
with the `Request`, `Response`, `Headers`, and `FormData` classes that mirror
the browser APIs. The implementation follows the standard, so the
[MDN Fetch documentation][] applies as well.
```mjs
import { fetch, Request, Response, Headers, FormData } from 'undici'
const response = await fetch('https://example.com')
const text = await response.text()
```
When mixing these classes, keep them from the same implementation: use the
global `fetch()` with the global `FormData`, `Request`, `Response`, and
`Headers`, and use undici's `fetch()` with undici's classes. Passing a value
created by one implementation to the other can throw.
## `fetch(input[, init])`
<!-- YAML
added: v5.6.0
changes:
- version: v5.6.1
pr-url: https://github.com/nodejs/undici/pull/1529
description: No default value is assigned to `init.method`.
-->
* `input` {string|URL|Request} The resource to fetch. A string or {URL} is
treated as the URL to request; a {Request} is used as the request template.
* `init` {RequestInit} (optional) An options object that customizes the
request.
* `body` {string|Buffer|Uint8Array|Blob|FormData|URLSearchParams|ReadableStream|null}
The request body. **Default:** `null`.
* `cache` {string} The cache mode. One of `'default'`, `'force-cache'`,
`'no-cache'`, `'no-store'`, `'only-if-cached'`, or `'reload'`.
* `credentials` {string} How credentials are sent. One of `'omit'`,
`'include'`, or `'same-origin'`.
* `dispatcher` {Dispatcher} The {Dispatcher} used to perform the request.
**Default:** the global dispatcher.
* `duplex` {string} The duplex mode of the request. Must be `'half'` when a
streaming `body` is provided.
* `headers` {Headers|Object|Array} The request headers, as a {Headers}
instance, a plain object, or an array of `[name, value]` pairs.
* `integrity` {string} The subresource integrity metadata of the request.
* `keepalive` {boolean} Whether the connection may outlive the page.
**Default:** `false`.
* `method` {string} The request method, for example `'GET'` or `'POST'`.
* `mode` {string} The request mode. One of `'cors'`, `'navigate'`,
`'no-cors'`, or `'same-origin'`.
* `redirect` {string} How redirects are handled. One of `'error'`,
`'follow'`, or `'manual'`.
* `referrer` {string} The request referrer.
* `referrerPolicy` {string} The referrer policy. One of `''`,
`'no-referrer'`, `'no-referrer-when-downgrade'`, `'origin'`,
`'origin-when-cross-origin'`, `'same-origin'`, `'strict-origin'`,
`'strict-origin-when-cross-origin'`, or `'unsafe-url'`.
* `signal` {AbortSignal|null} An {AbortSignal} used to abort the request.
**Default:** `null`.
* `window` {null} Can only be `null`; reserved by the standard.
* Returns: {Promise} Fulfills with a {Response} once the response headers have
been received.
Starts the process of fetching a resource from the network and returns a
promise that fulfills with a {Response}. The promise rejects only on network
failures; an HTTP error status such as `404` still fulfills the promise, so
inspect [`response.ok`](#responseok) to detect failures.
```mjs
import { fetch } from 'undici'
const response = await fetch('https://example.com', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ hello: 'world' }),
})
console.log(response.status)
console.log(await response.json())
```
To route the request through a custom {Dispatcher} (for example a `ProxyAgent`
or `Agent` with specific options), pass it as `init.dispatcher`.
```mjs
import { fetch, Agent } from 'undici'
const response = await fetch('https://example.com', {
dispatcher: new Agent({ connect: { rejectUnauthorized: false } }),
})
```
## Class: `FormData`
<!-- YAML
added: v4.4.4
-->
A set of key/value pairs representing form fields and their values, suitable
for use as a `fetch()` request `body`. The implementation follows the
[WHATWG Fetch Standard][]; see the [MDN `FormData` documentation][].
When using `FormData` as a request body, keep `fetch` and `FormData` from the
same implementation: use the global `FormData` with the global `fetch()`, and
undici's `FormData` with undici's `fetch()`.
### `new FormData()`
<!-- YAML
added: v4.4.4
-->
Creates a new, empty `FormData` instance. Passing any argument other than
`undefined` throws; in particular, an `HTMLFormElement` argument is not
supported in this environment.
### `formData.append(name, value[, filename])`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field.
* `value` {string|Blob} The value of the field.
* `filename` {string} The filename reported to the server when `value` is a
{Blob}. (optional)
Appends a new value to an existing key, or adds the key if it does not exist.
Unlike [`formData.set()`](#formdatasetname-value-filename), `append()` keeps
any existing values for `name`.
### `formData.delete(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field to remove.
Deletes all values associated with `name`.
### `formData.get(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field to read.
* Returns: {string|File|null} The first value associated with `name`, or
`null` if there is none.
### `formData.getAll(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field to read.
* Returns: {Array} All values associated with `name`, as an array of
{string} and {File} entries.
### `formData.has(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field to look up.
* Returns: {boolean} `true` if at least one value is associated with `name`.
### `formData.set(name, value[, filename])`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the field.
* `value` {string|Blob} The value of the field.
* `filename` {string} The filename reported to the server when `value` is a
{Blob}. (optional)
Sets a new value for an existing key, or adds the key if it does not exist,
replacing any values previously associated with `name`.
## Class: `Response`
<!-- YAML
added: v4.4.0
-->
* Extends: {BodyMixin}
Represents the response to a request. Instances are typically obtained by
awaiting `fetch()`, but can also be constructed directly. The implementation
follows the [WHATWG Fetch Standard][]; see the
[MDN `Response` documentation][]. `Response` inherits the body-reading methods
described in [Body mixin](#body-mixin).
### `new Response([body[, init]])`
<!-- YAML
added: v4.4.0
-->
* `body` {string|Buffer|Uint8Array|Blob|FormData|URLSearchParams|ReadableStream|null}
The response body. **Default:** `null`.
* `init` {ResponseInit} (optional)
* `status` {number} The response status code. **Default:** `200`.
* `statusText` {string} The response status message. **Default:** `''`.
* `headers` {Headers|Object|Array} The response headers.
Creates a new `Response`.
### Static method: `Response.error()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Response} A network-error response.
Returns a new `Response` representing a network error, with its
[`type`](#responsetype) set to `'error'`.
### Static method: `Response.json(data[, init])`
<!-- YAML
added: v1.0.0
-->
* `data` {any} The value to serialize as JSON.
* `init` {ResponseInit} (optional)
* `status` {number} The response status code. **Default:** `200`.
* `statusText` {string} The response status message. **Default:** `''`.
* `headers` {Headers|Object|Array} The response headers.
* Returns: {Response} A response whose body is the JSON serialization of
`data` and whose `Content-Type` is `application/json`.
```mjs
import { Response } from 'undici'
const response = Response.json({ ok: true }, { status: 201 })
```
### Static method: `Response.redirect(url[, status])`
<!-- YAML
added: v1.0.0
-->
* `url` {string|URL} The URL to redirect to.
* `status` {number} The redirect status code. One of `301`, `302`, `303`,
`307`, or `308`. **Default:** `302`.
* Returns: {Response} A redirect response with the `Location` header set to
`url`.
### `response.clone()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Response} A copy of the response.
Creates a clone of the response. Throws a `TypeError` if the body has already
been read or is locked.
### `response.type`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The response type. One of `'basic'`, `'cors'`, `'default'`,
`'error'`, `'opaque'`, or `'opaqueredirect'`.
### `response.url`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The final URL of the response after any redirects, or the
empty string if not available.
### `response.redirected`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} `true` if the response is the result of one or more
redirects.
### `response.status`
<!-- YAML
added: v1.0.0
-->
* Type: {number} The HTTP status code of the response.
### `response.ok`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} `true` when [`status`](#responsestatus) is in the range
`200`–`299`.
### `response.statusText`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The status message corresponding to the status code.
### `response.headers`
<!-- YAML
added: v1.0.0
-->
* Type: {Headers} The {Headers} object associated with the response.
## Class: `Request`
<!-- YAML
added: v1.0.0
-->
* Extends: {BodyMixin}
Represents a resource request. Instances can be passed to `fetch()` in place
of a URL string. The implementation follows the [WHATWG Fetch Standard][]; see
the [MDN `Request` documentation][]. `Request` inherits the body-reading
methods described in [Body mixin](#body-mixin).
### `new Request(input[, init])`
<!-- YAML
added: v1.0.0
-->
* `input` {string|URL|Request} The resource to request, as a URL string,
{URL}, or another {Request} to copy.
* `init` {RequestInit} (optional) An options object with the same fields as
the `init` argument of [`fetch()`](#fetchinput-init).
* Returns: {Request}
Creates a new `Request`.
### `request.clone()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Request} A copy of the request.
Creates a clone of the request. Throws a `TypeError` if the body has already
been read or is locked.
### `request.method`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The request method, for example `'GET'`.
### `request.url`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The serialized URL of the request.
### `request.headers`
<!-- YAML
added: v1.0.0
-->
* Type: {Headers} The {Headers} object associated with the request.
### `request.destination`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The request destination, indicating the type of content being
requested, for example `''`, `'image'`, or `'script'`.
### `request.referrer`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The referrer of the request. May be `'about:client'` or a URL
string.
### `request.referrerPolicy`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The referrer policy of the request.
### `request.mode`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The mode of the request. One of `'cors'`, `'navigate'`,
`'no-cors'`, or `'same-origin'`.
### `request.credentials`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The credentials mode of the request. One of `'omit'`,
`'include'`, or `'same-origin'`.
### `request.cache`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The cache mode of the request.
### `request.redirect`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The redirect mode of the request. One of `'error'`,
`'follow'`, or `'manual'`.
### `request.integrity`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The subresource integrity metadata of the request.
### `request.keepalive`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} Whether the request may outlive the environment that created
it.
### `request.isReloadNavigation`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} `true` if the request is a reload navigation.
### `request.isHistoryNavigation`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} `true` if the request is a history navigation.
### `request.signal`
<!-- YAML
added: v1.0.0
-->
* Type: {AbortSignal} The {AbortSignal} associated with the request.
### `request.duplex`
<!-- YAML
added: v1.0.0
-->
* Type: {string} The duplex mode of the request. Always `'half'`.
## Class: `Headers`
<!-- YAML
added: v4.4.0
-->
Represents the header list of a request or response and provides methods to
read and modify it. The implementation follows the [WHATWG Fetch Standard][];
see the [MDN `Headers` documentation][]. `Headers` is iterable, yielding
`[name, value]` pairs sorted by name.
### `new Headers([init])`
<!-- YAML
added: v4.4.0
-->
* `init` {Headers|Object|Array} (optional) Initial headers, as a {Headers}
instance, a plain object of name/value pairs, or an array of `[name, value]`
pairs.
Creates a new `Headers` object.
### `headers.append(name, value)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the header.
* `value` {string} The value of the header.
Appends a value to a header, or adds the header if it does not exist. Existing
values for `name` are preserved.
### `headers.delete(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the header to remove.
Removes the header named `name`.
### `headers.get(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the header to read.
* Returns: {string|null} The combined values of the header, or `null` if it is
not present.
### `headers.has(name)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the header to look up.
* Returns: {boolean} `true` if the header is present.
### `headers.set(name, value)`
<!-- YAML
added: v1.0.0
-->
* `name` {string} The name of the header.
* `value` {string} The value of the header.
Sets a header to a single value, replacing any existing values for `name`.
### `headers.getSetCookie()`
<!-- YAML
added: v1.0.0
-->
* Returns: {string[]} An array of the values of all `Set-Cookie` headers.
Returns each `Set-Cookie` header as a separate string, without combining them.
## Body mixin
`Request` and `Response` both extend {BodyMixin}, which provides methods and
properties for reading a body. Each consuming method reads the body once; after
the body has been consumed, [`bodyUsed`](#bodybodyused) becomes `true` and
calling another consuming method throws a `TypeError`.
> [!WARNING]
> The `arrayBuffer()`, `blob()`, `bytes()`, `formData()`, `json()`, and `text()`
> methods buffer the entire body in memory before returning. Where applicable,
> they also decode or parse the payload and retain that representation in
> memory. Calling these methods therefore means trusting that the body is small
> enough to fit in the available memory. Do not use them for bodies received
> from untrusted or user-controlled sources. Instead, process `body.body` or
> `body.textStream()` incrementally and enforce an application-specific size
> limit.
### `body.arrayBuffer()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Promise} Fulfills with an {ArrayBuffer} containing the body bytes.
### `body.blob()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Promise} Fulfills with a {Blob} containing the body.
### `body.bytes()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Promise} Fulfills with a {Uint8Array} containing the body bytes.
### `body.formData()`
<!-- YAML
added: v1.0.0
-->
> Stability: 0 - Deprecated
* Returns: {Promise} Fulfills with a {FormData} parsed from the body.
Buffers and parses the entire body as `multipart/form-data` or
`application/x-www-form-urlencoded`. Because multipart parsing has inherent
security risks and the whole body is buffered, this method must only be called
on responses from trusted servers.
For responses from untrusted or user-controlled servers, use a dedicated
streaming parser such as [@fastify/busboy][] and apply application-specific
limits:
```mjs
import { Busboy } from '@fastify/busboy'
import { Readable } from 'node:stream'
const response = await fetch('...')
const busboy = new Busboy({
headers: { 'content-type': response.headers.get('content-type') },
})
// Handle the events emitted by `busboy`.
Readable.fromWeb(response.body).pipe(busboy)
```
### `body.json()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Promise} Fulfills with the result of parsing the body as JSON.
### `body.text()`
<!-- YAML
added: v1.0.0
-->
* Returns: {Promise} Fulfills with a {string} containing the body decoded as
UTF-8.
### `body.textStream()`
<!-- YAML
added: v1.0.0
-->
> Stability: 1 - Experimental
* Returns: {ReadableStream} A {ReadableStream} of {string} chunks produced by
decoding the body as UTF-8.
An undici-specific extension that exposes the body as a stream of decoded text
chunks rather than buffering it. It is not part of the [WHATWG Fetch
Standard][].
### `body.body`
<!-- YAML
added: v1.0.0
-->
* Type: {ReadableStream|null} The body as a {ReadableStream}, or `null` if the
message has no body.
### `body.bodyUsed`
<!-- YAML
added: v1.0.0
-->
* Type: {boolean} `true` once the body has been read.
[@fastify/busboy]: https://www.npmjs.com/package/@fastify/busboy
[MDN Fetch documentation]: https://developer.mozilla.org/en-US/docs/Web/API/fetch
[MDN `FormData` documentation]: https://developer.mozilla.org/en-US/docs/Web/API/FormData
[MDN `Headers` documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Headers
[MDN `Request` documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Request
[MDN `Response` documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Response
[WHATWG Fetch Standard]: https://fetch.spec.whatwg.org/
@@ -0,0 +1,488 @@
import { isPrimitive, notNullish } from './helpers.js';
import { r as resolve } from './chunk-pathe.M-eThtNZ.js';
import './constants.js';
// src/vlq.ts
var comma = ",".charCodeAt(0);
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var intToChar = new Uint8Array(64);
var charToInt = new Uint8Array(128);
for (let i = 0; i < chars.length; i++) {
const c = chars.charCodeAt(i);
intToChar[i] = c;
charToInt[c] = i;
}
function decodeInteger(reader, relative) {
let value = 0;
let shift = 0;
let integer = 0;
do {
const c = reader.next();
integer = charToInt[c];
value |= (integer & 31) << shift;
shift += 5;
} while (integer & 32);
const shouldNegate = value & 1;
value >>>= 1;
if (shouldNegate) {
value = -2147483648 | -value;
}
return relative + value;
}
function hasMoreVlq(reader, max) {
if (reader.pos >= max) return false;
return reader.peek() !== comma;
}
var StringReader = class {
constructor(buffer) {
this.pos = 0;
this.buffer = buffer;
}
next() {
return this.buffer.charCodeAt(this.pos++);
}
peek() {
return this.buffer.charCodeAt(this.pos);
}
indexOf(char) {
const { buffer, pos } = this;
const idx = buffer.indexOf(char, pos);
return idx === -1 ? buffer.length : idx;
}
};
// src/sourcemap-codec.ts
function decode(mappings) {
const { length } = mappings;
const reader = new StringReader(mappings);
const decoded = [];
let genColumn = 0;
let sourcesIndex = 0;
let sourceLine = 0;
let sourceColumn = 0;
let namesIndex = 0;
do {
const semi = reader.indexOf(";");
const line = [];
let sorted = true;
let lastCol = 0;
genColumn = 0;
while (reader.pos < semi) {
let seg;
genColumn = decodeInteger(reader, genColumn);
if (genColumn < lastCol) sorted = false;
lastCol = genColumn;
if (hasMoreVlq(reader, semi)) {
sourcesIndex = decodeInteger(reader, sourcesIndex);
sourceLine = decodeInteger(reader, sourceLine);
sourceColumn = decodeInteger(reader, sourceColumn);
if (hasMoreVlq(reader, semi)) {
namesIndex = decodeInteger(reader, namesIndex);
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
} else {
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
}
} else {
seg = [genColumn];
}
line.push(seg);
reader.pos++;
}
if (!sorted) sort(line);
decoded.push(line);
reader.pos = semi + 1;
} while (reader.pos <= length);
return decoded;
}
function sort(line) {
line.sort(sortComparator);
}
function sortComparator(a, b) {
return a[0] - b[0];
}
// src/trace-mapping.ts
// src/sourcemap-segment.ts
var COLUMN = 0;
var SOURCES_INDEX = 1;
var SOURCE_LINE = 2;
var SOURCE_COLUMN = 3;
var NAMES_INDEX = 4;
// src/binary-search.ts
var found = false;
function binarySearch(haystack, needle, low, high) {
while (low <= high) {
const mid = low + (high - low >> 1);
const cmp = haystack[mid][COLUMN] - needle;
if (cmp === 0) {
found = true;
return mid;
}
if (cmp < 0) {
low = mid + 1;
} else {
high = mid - 1;
}
}
found = false;
return low - 1;
}
function upperBound(haystack, needle, index) {
for (let i = index + 1; i < haystack.length; index = i++) {
if (haystack[i][COLUMN] !== needle) break;
}
return index;
}
function lowerBound(haystack, needle, index) {
for (let i = index - 1; i >= 0; index = i--) {
if (haystack[i][COLUMN] !== needle) break;
}
return index;
}
function memoizedBinarySearch(haystack, needle, state, key) {
const { lastKey, lastNeedle, lastIndex } = state;
let low = 0;
let high = haystack.length - 1;
if (key === lastKey) {
if (needle === lastNeedle) {
found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
return lastIndex;
}
if (needle >= lastNeedle) {
low = lastIndex === -1 ? 0 : lastIndex;
} else {
high = lastIndex;
}
}
state.lastKey = key;
state.lastNeedle = needle;
return state.lastIndex = binarySearch(haystack, needle, low, high);
}
// src/trace-mapping.ts
var LINE_GTR_ZERO = "`line` must be greater than 0 (lines start at line 1)";
var COL_GTR_EQ_ZERO = "`column` must be greater than or equal to 0 (columns start at column 0)";
var LEAST_UPPER_BOUND = -1;
var GREATEST_LOWER_BOUND = 1;
function cast(map) {
return map;
}
function decodedMappings(map) {
var _a;
return (_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded));
}
function originalPositionFor(map, needle) {
let { line, column, bias } = needle;
line--;
if (line < 0) throw new Error(LINE_GTR_ZERO);
if (column < 0) throw new Error(COL_GTR_EQ_ZERO);
const decoded = decodedMappings(map);
if (line >= decoded.length) return OMapping(null, null, null, null);
const segments = decoded[line];
const index = traceSegmentInternal(
segments,
cast(map)._decodedMemo,
line,
column,
bias || GREATEST_LOWER_BOUND
);
if (index === -1) return OMapping(null, null, null, null);
const segment = segments[index];
if (segment.length === 1) return OMapping(null, null, null, null);
const { names, resolvedSources } = map;
return OMapping(
resolvedSources[segment[SOURCES_INDEX]],
segment[SOURCE_LINE] + 1,
segment[SOURCE_COLUMN],
segment.length === 5 ? names[segment[NAMES_INDEX]] : null
);
}
function OMapping(source, line, column, name) {
return { source, line, column, name };
}
function traceSegmentInternal(segments, memo, line, column, bias) {
let index = memoizedBinarySearch(segments, column, memo, line);
if (found) {
index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
} else if (bias === LEAST_UPPER_BOUND) index++;
if (index === -1 || index === segments.length) return -1;
return index;
}
const CHROME_IE_STACK_REGEXP = /^\s*at .*(?:\S:\d+|\(native\))/m;
const SAFARI_NATIVE_CODE_REGEXP = /^(?:eval@)?(?:\[native code\])?$/;
const stackIgnorePatterns = [
"node:internal",
/\/packages\/\w+\/dist\//,
/\/@vitest\/\w+\/dist\//,
"/vitest/dist/",
"/vitest/src/",
"/node_modules/chai/",
"/node_modules/tinyspy/",
"/vite/dist/node/module-runner",
"/rolldown-vite/dist/node/module-runner",
"/deps/chunk-",
"/deps/@vitest",
"/deps/loupe",
"/deps/chai",
"/browser-playwright/dist/locators.js",
"/browser-webdriverio/dist/locators.js",
"/browser-preview/dist/locators.js",
/node:\w+/,
/__vitest_test__/,
/__vitest_browser__/,
"/@id/__x00__vitest/browser",
/\/deps\/vitest_/
];
const NOW_LENGTH = Date.now().toString().length;
const REGEXP_VITEST = new RegExp(`vitest=\\d{${NOW_LENGTH}}`);
function extractLocation(urlLike) {
// Fail-fast but return locations like "(native)"
if (!urlLike.includes(":")) {
return [urlLike];
}
const regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
const parts = regExp.exec(urlLike.replace(/^\(|\)$/g, ""));
if (!parts) {
return [urlLike];
}
let url = parts[1];
if (url.startsWith("async ")) {
url = url.slice(6);
}
if (url.startsWith("http:") || url.startsWith("https:")) {
const urlObj = new URL(url);
urlObj.searchParams.delete("import");
urlObj.searchParams.delete("browserv");
url = urlObj.pathname + urlObj.hash + urlObj.search;
}
if (url.startsWith("/@fs/")) {
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
url = url.slice(isWindows ? 5 : 4);
}
if (url.includes("vitest=")) {
url = url.replace(REGEXP_VITEST, "").replace(/[?&]$/, "");
}
return [
url,
parts[2] || undefined,
parts[3] || undefined
];
}
function parseSingleFFOrSafariStack(raw) {
let line = raw.trim();
if (SAFARI_NATIVE_CODE_REGEXP.test(line)) {
return null;
}
if (line.includes(" > eval")) {
line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1");
}
// Early return for lines that don't look like Firefox/Safari stack traces
// Firefox/Safari stack traces must contain '@' and should have location info after it
if (!line.includes("@")) {
return null;
}
// Find the correct @ that separates function name from location
// For cases like '@https://@fs/path' or 'functionName@https://@fs/path'
// we need to find the first @ that precedes a valid location (containing :)
let atIndex = -1;
let locationPart = "";
let functionName;
// Try each @ from left to right to find the one that gives us a valid location
for (let i = 0; i < line.length; i++) {
if (line[i] === "@") {
const candidateLocation = line.slice(i + 1);
// Minimum length 3 for valid location: 1 for filename + 1 for colon + 1 for line number (e.g., "a:1")
if (candidateLocation.includes(":") && candidateLocation.length >= 3) {
atIndex = i;
locationPart = candidateLocation;
functionName = i > 0 ? line.slice(0, i) : undefined;
break;
}
}
}
// Validate we found a valid location with minimum length (filename:line format)
if (atIndex === -1 || !locationPart.includes(":") || locationPart.length < 3) {
return null;
}
const [url, lineNumber, columnNumber] = extractLocation(locationPart);
if (!url || !lineNumber || !columnNumber) {
return null;
}
return {
file: url,
method: functionName || "",
line: Number.parseInt(lineNumber),
column: Number.parseInt(columnNumber)
};
}
function parseSingleStack(raw) {
const line = raw.trim();
if (!CHROME_IE_STACK_REGEXP.test(line)) {
return parseSingleFFOrSafariStack(line);
}
return parseSingleV8Stack(line);
}
// Based on https://github.com/stacktracejs/error-stack-parser
// Credit to stacktracejs
function parseSingleV8Stack(raw) {
let line = raw.trim();
if (!CHROME_IE_STACK_REGEXP.test(line)) {
return null;
}
if (line.includes("(eval ")) {
line = line.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, "");
}
let sanitizedLine = line.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, "");
// capture and preserve the parenthesized location "(/foo/my bar.js:12:87)" in
// case it has spaces in it, as the string is split on \s+ later on
const location = sanitizedLine.match(/ (\(.+\)$)/);
// remove the parenthesized location from the line, if it was matched
sanitizedLine = location ? sanitizedLine.replace(location[0], "") : sanitizedLine;
// if a location was matched, pass it to extractLocation() otherwise pass all sanitizedLine
// because this line doesn't have function name
const [url, lineNumber, columnNumber] = extractLocation(location ? location[1] : sanitizedLine);
let method = location && sanitizedLine || "";
let file = url && ["eval", "<anonymous>"].includes(url) ? undefined : url;
if (!file || !lineNumber || !columnNumber) {
return null;
}
if (method.startsWith("async ")) {
method = method.slice(6);
}
if (file.startsWith("file://")) {
file = file.slice(7);
}
// normalize Windows path (\ -> /)
file = file.startsWith("node:") || file.startsWith("internal:") ? file : resolve(file);
if (method) {
method = method.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g, "$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "").replace(/(Object\.)?__vite_ssr_export_default__\s?/g, "");
}
return {
method,
file,
line: Number.parseInt(lineNumber),
column: Number.parseInt(columnNumber)
};
}
function createStackString(stacks) {
return stacks.map((stack) => {
const line = `${stack.file}:${stack.line}:${stack.column}`;
if (stack.method) {
return ` at ${stack.method}(${line})`;
}
return ` at ${line}`;
}).join("\n");
}
function parseStacktrace(stack, options = {}) {
const { ignoreStackEntries = stackIgnorePatterns } = options;
let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
// remove vi.defineHelper's internal stacks
const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
if (helperIndex >= 0) {
stacks = stacks.slice(helperIndex + 1);
}
return stacks.map((stack) => {
if (options.getUrlId) {
stack.file = options.getUrlId(stack.file);
}
const map = options.getSourceMap?.(stack.file);
if (!map || typeof map !== "object" || !map.version) {
return shouldFilter(ignoreStackEntries, stack.file) ? null : stack;
}
const traceMap = new DecodedMap(map, stack.file);
const position = getOriginalPosition(traceMap, stack);
if (!position) {
return stack;
}
const { line, column, source, name } = position;
let file = source || stack.file;
if (file.match(/\/\w:\//)) {
file = file.slice(1);
}
if (shouldFilter(ignoreStackEntries, file)) {
return null;
}
if (line != null && column != null) {
return {
line,
column,
file,
method: name || stack.method
};
}
return stack;
}).filter((s) => s != null);
}
function shouldFilter(ignoreStackEntries, file) {
return ignoreStackEntries.some((p) => file.match(p));
}
function parseFFOrSafariStackTrace(stack) {
return stack.split("\n").map((line) => parseSingleFFOrSafariStack(line)).filter(notNullish);
}
function parseV8Stacktrace(stack) {
return stack.split("\n").map((line) => parseSingleV8Stack(line)).filter(notNullish);
}
function parseErrorStacktrace(e, options = {}) {
if (!e || isPrimitive(e)) {
return [];
}
if ("stacks" in e && e.stacks) {
return e.stacks;
}
const stackStr = e.stack || "";
// if "stack" property was overwritten at runtime to be something else,
// ignore the value because we don't know how to process it
let stackFrames = typeof stackStr === "string" ? parseStacktrace(stackStr, options) : [];
if (!stackFrames.length) {
const e_ = e;
if (e_.fileName != null && e_.lineNumber != null && e_.columnNumber != null) {
stackFrames = parseStacktrace(`${e_.fileName}:${e_.lineNumber}:${e_.columnNumber}`, options);
}
if (e_.sourceURL != null && e_.line != null && e_._column != null) {
stackFrames = parseStacktrace(`${e_.sourceURL}:${e_.line}:${e_.column}`, options);
}
}
if (options.frameFilter) {
stackFrames = stackFrames.filter((f) => options.frameFilter(e, f) !== false);
}
e.stacks = stackFrames;
return stackFrames;
}
class DecodedMap {
_encoded;
_decoded;
_decodedMemo;
url;
version;
names = [];
resolvedSources;
constructor(map, from) {
this.map = map;
const { mappings, names, sources } = map;
this.version = map.version;
this.names = names || [];
this._encoded = mappings || "";
this._decodedMemo = memoizedState();
this.url = from;
this.resolvedSources = (sources || []).map((s) => resolve(from, "..", s || ""));
}
}
function memoizedState() {
return {
lastKey: -1,
lastNeedle: -1,
lastIndex: -1
};
}
function getOriginalPosition(map, needle) {
const result = originalPositionFor(map, needle);
if (result.column == null) {
return null;
}
return result;
}
export { DecodedMap, createStackString, stackIgnorePatterns as defaultStackIgnorePatterns, getOriginalPosition, parseErrorStacktrace, parseSingleFFOrSafariStack, parseSingleStack, parseSingleV8Stack, parseStacktrace };
@@ -0,0 +1 @@
{"version":3,"file":"posix.js","sourceRoot":"","sources":["../../src/posix.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAS,QAAQ,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAGvC;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,EACxB,IAAY,EACZ,UAAwB,EAAE,EACR,EAAE;IACpB,MAAM,EAAE,YAAY,GAAG,KAAK,EAAE,GAAG,OAAO,CAAA;IACxC,IAAI,CAAC;QACH,OAAO,SAAS,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IAC7C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,EAAE,GAAG,CAA0B,CAAA;QACrC,IAAI,YAAY,IAAI,EAAE,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACtD,MAAM,EAAE,CAAA;IACV,CAAC;AACH,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,IAAY,EACZ,UAAwB,EAAE,EACjB,EAAE;IACX,MAAM,EAAE,YAAY,GAAG,KAAK,EAAE,GAAG,OAAO,CAAA;IACxC,IAAI,CAAC;QACH,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3C,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,EAAE,GAAG,CAA0B,CAAA;QACrC,IAAI,YAAY,IAAI,EAAE,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAA;QACtD,MAAM,EAAE,CAAA;IACV,CAAC;AACH,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,CAAC,IAAW,EAAE,OAAqB,EAAE,EAAE,CACvD,IAAI,CAAC,MAAM,EAAE,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AAE3C,MAAM,SAAS,GAAG,CAAC,IAAW,EAAE,OAAqB,EAAE,EAAE;IACvD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,MAAM,EAAE,EAAE,CAAA;IAC/C,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,CAAA;IAC9D,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,IAAI,OAAO,CAAC,MAAM,EAAE,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;QAC/C,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAA;IAC1C,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAA;IAE5C,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAA;IACrB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;IACpB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAA;IAEpB,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC5B,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC5B,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC5B,MAAM,EAAE,GAAG,CAAC,GAAG,CAAC,CAAA;IAEhB,OAAO,CAAC,CAAC,CACP,GAAG,GAAG,CAAC;QACP,CAAC,GAAG,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC,GAAG,GAAG,CAAC,IAAI,GAAG,KAAK,KAAK,CAAC;QAC1B,CAAC,GAAG,GAAG,EAAE,IAAI,KAAK,KAAK,CAAC,CAAC,CAC1B,CAAA;AACH,CAAC,CAAA","sourcesContent":["/**\n * This is the Posix implementation of isexe, which uses the file\n * mode and uid/gid values.\n *\n * @module\n */\n\nimport { Stats, statSync } from 'node:fs'\nimport { stat } from 'node:fs/promises'\nimport { IsexeOptions } from './options.js'\n\n/**\n * Determine whether a path is executable according to the mode and\n * current (or specified) user and group IDs.\n */\nexport const isexe = async (\n path: string,\n options: IsexeOptions = {},\n): Promise<boolean> => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(await stat(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\n/**\n * Synchronously determine whether a path is executable according to\n * the mode and current (or specified) user and group IDs.\n */\nexport const sync = (\n path: string,\n options: IsexeOptions = {},\n): boolean => {\n const { ignoreErrors = false } = options\n try {\n return checkStat(statSync(path), options)\n } catch (e) {\n const er = e as NodeJS.ErrnoException\n if (ignoreErrors || er.code === 'EACCES') return false\n throw er\n }\n}\n\nconst checkStat = (stat: Stats, options: IsexeOptions) =>\n stat.isFile() && checkMode(stat, options)\n\nconst checkMode = (stat: Stats, options: IsexeOptions) => {\n const myUid = options.uid ?? process.getuid?.()\n const myGroups = options.groups ?? process.getgroups?.() ?? []\n const myGid = options.gid ?? process.getgid?.() ?? myGroups[0]\n if (myUid === undefined || myGid === undefined) {\n throw new Error('cannot get uid or gid')\n }\n\n const groups = new Set([myGid, ...myGroups])\n\n const mod = stat.mode\n const uid = stat.uid\n const gid = stat.gid\n\n const u = parseInt('100', 8)\n const g = parseInt('010', 8)\n const o = parseInt('001', 8)\n const ug = u | g\n\n return !!(\n mod & o ||\n (mod & g && groups.has(gid)) ||\n (mod & u && uid === myUid) ||\n (mod & ug && myUid === 0)\n )\n}\n"]}
@@ -0,0 +1,328 @@
'use strict'
const { promises: fs, readFileSync } = require('graceful-fs')
const path = require('path')
const log = require('./log')
const os = require('os')
const processRelease = require('./process-release')
const win = process.platform === 'win32'
const findNodeDirectory = require('./find-node-directory')
const { createConfigGypi } = require('./create-config-gypi')
const { format: msgFormat } = require('util')
const { findAccessibleSync } = require('./util')
const { findPython } = require('./find-python')
const { findVisualStudio } = win ? require('./find-visualstudio') : {}
const majorRe = /^#define NODE_MAJOR_VERSION (\d+)/m
const minorRe = /^#define NODE_MINOR_VERSION (\d+)/m
const patchRe = /^#define NODE_PATCH_VERSION (\d+)/m
async function configure (gyp, argv) {
const buildDir = path.resolve('build')
const configNames = ['config.gypi', 'common.gypi']
const configs = []
let nodeDir
const release = processRelease(argv, gyp, process.version, process.release)
const python = await findPython(gyp.opts.python)
return getNodeDir()
async function getNodeDir () {
// 'python' should be set by now
process.env.PYTHON = python
if (!gyp.opts.nodedir &&
process.config.variables.use_prefix_to_find_headers) {
// check if the headers can be found using the prefix specified
// at build time. Use them if they match the version expected
const prefix = process.config.variables.node_prefix
let availVersion
try {
const nodeVersionH = readFileSync(path.join(prefix,
'include', 'node', 'node_version.h'), { encoding: 'utf8' })
const major = nodeVersionH.match(majorRe)[1]
const minor = nodeVersionH.match(minorRe)[1]
const patch = nodeVersionH.match(patchRe)[1]
availVersion = major + '.' + minor + '.' + patch
} catch {}
if (availVersion === release.version) {
// ok version matches, use the headers
gyp.opts.nodedir = prefix
log.verbose('using local node headers based on prefix',
'setting nodedir to ' + gyp.opts.nodedir)
}
}
if (gyp.opts.nodedir) {
// --nodedir was specified. use that for the dev files
nodeDir = gyp.opts.nodedir.replace(/^~/, os.homedir())
log.verbose('get node dir', 'compiling against specified --nodedir dev files: %s', nodeDir)
} else {
// if no --nodedir specified, ensure node dependencies are installed
if ('v' + release.version !== process.version) {
// if --target was given, then determine a target version to compile for
log.verbose('get node dir', 'compiling against --target node version: %s', release.version)
} else {
// if no --target was specified then use the current host node version
log.verbose('get node dir', 'no --target version specified, falling back to host node version: %s', release.version)
}
if (!release.semver) {
// could not parse the version string with semver
throw new Error('Invalid version number: ' + release.version)
}
// If the tarball option is set, always remove and reinstall the headers
// into devdir. Otherwise only install if they're not already there.
gyp.opts.ensure = !gyp.opts.tarball
await gyp.commands.install([release.version])
log.verbose('get node dir', 'target node version installed:', release.versionDir)
nodeDir = path.resolve(gyp.devDir, release.versionDir)
}
return createBuildDir()
}
async function createBuildDir () {
log.verbose('build dir', 'attempting to create "build" dir: %s', buildDir)
const isNew = await fs.mkdir(buildDir, { recursive: true })
log.verbose(
'build dir', '"build" dir needed to be created?', isNew ? 'Yes' : 'No'
)
if (win) {
let usingMakeGenerator = false
for (let i = argv.length - 1; i >= 0; --i) {
const arg = argv[i]
if (arg === '-f' || arg === '--format') {
const format = argv[i + 1]
if (typeof format === 'string' && format.startsWith('make')) {
usingMakeGenerator = true
break
}
} else if (arg.startsWith('--format=make')) {
usingMakeGenerator = true
break
}
}
let vsInfo = {}
if (!usingMakeGenerator) {
vsInfo = await findVisualStudio(release.semver, gyp.opts['msvs-version'])
}
return createConfigFile(vsInfo)
}
return createConfigFile(null)
}
async function createConfigFile (vsInfo) {
if (win) {
process.env.GYP_MSVS_VERSION = Math.min(vsInfo.versionYear, 2015)
process.env.GYP_MSVS_OVERRIDE_PATH = vsInfo.path
}
const configPath = await createConfigGypi({ gyp, buildDir, nodeDir, vsInfo, python })
configs.push(configPath)
return findConfigs()
}
async function findConfigs () {
const name = configNames.shift()
if (!name) {
return runGyp()
}
const fullPath = path.resolve(name)
log.verbose(name, 'checking for gypi file: %s', fullPath)
try {
await fs.stat(fullPath)
log.verbose(name, 'found gypi file')
configs.push(fullPath)
} catch (err) {
// ENOENT will check next gypi filename
if (err.code !== 'ENOENT') {
throw err
}
}
return findConfigs()
}
async function runGyp () {
if (!~argv.indexOf('-f') && !~argv.indexOf('--format')) {
if (win) {
log.verbose('gyp', 'gyp format was not specified; forcing "msvs"')
// force the 'make' target for non-Windows
argv.push('-f', 'msvs')
} else {
log.verbose('gyp', 'gyp format was not specified; forcing "make"')
// force the 'make' target for non-Windows
argv.push('-f', 'make')
}
}
// include all the ".gypi" files that were found
configs.forEach(function (config) {
argv.push('-I', config)
})
// For AIX and z/OS we need to set up the path to the exports file
// which contains the symbols needed for linking.
let nodeExpFile
let nodeRootDir
let candidates
let logprefix = 'find exports file'
if (process.platform === 'aix' || process.platform === 'os390' || process.platform === 'os400') {
const ext = process.platform === 'os390' ? 'x' : 'exp'
nodeRootDir = findNodeDirectory()
if (process.platform === 'aix' || process.platform === 'os400') {
candidates = [
'include/node/node',
'out/Release/node',
'out/Debug/node',
'node'
].map(function (file) {
return file + '.' + ext
})
} else {
candidates = [
'out/Release/lib.target/libnode',
'out/Debug/lib.target/libnode',
'out/Release/obj.target/libnode',
'out/Debug/obj.target/libnode',
'lib/libnode'
].map(function (file) {
return file + '.' + ext
})
}
nodeExpFile = findAccessibleSync(logprefix, nodeRootDir, candidates)
if (nodeExpFile !== undefined) {
log.verbose(logprefix, 'Found exports file: %s', nodeExpFile)
} else {
const msg = msgFormat('Could not find node.%s file in %s', ext, nodeRootDir)
log.error(logprefix, 'Could not find exports file')
throw new Error(msg)
}
}
// For z/OS we need to set up the path to zoslib include directory,
// which contains headers included in v8config.h.
let zoslibIncDir
if (process.platform === 'os390') {
logprefix = "find zoslib's zos-base.h:"
let msg
let zoslibIncPath = process.env.ZOSLIB_INCLUDES
if (zoslibIncPath) {
zoslibIncPath = findAccessibleSync(logprefix, zoslibIncPath, ['zos-base.h'])
if (zoslibIncPath === undefined) {
msg = msgFormat('Could not find zos-base.h file in the directory set ' +
'in ZOSLIB_INCLUDES environment variable: %s; set it ' +
'to the correct path, or unset it to search %s', process.env.ZOSLIB_INCLUDES, nodeRootDir)
}
} else {
candidates = [
'include/node/zoslib/zos-base.h',
'include/zoslib/zos-base.h',
'zoslib/include/zos-base.h',
'install/include/node/zoslib/zos-base.h'
]
zoslibIncPath = findAccessibleSync(logprefix, nodeRootDir, candidates)
if (zoslibIncPath === undefined) {
msg = msgFormat('Could not find any of %s in directory %s; set ' +
'environmant variable ZOSLIB_INCLUDES to the path ' +
'that contains zos-base.h', candidates.toString(), nodeRootDir)
}
}
if (zoslibIncPath !== undefined) {
zoslibIncDir = path.dirname(zoslibIncPath)
log.verbose(logprefix, "Found zoslib's zos-base.h in: %s", zoslibIncDir)
} else if (release.version.split('.')[0] >= 16) {
// zoslib is only shipped in Node v16 and above.
log.error(logprefix, msg)
throw new Error(msg)
}
}
// this logic ported from the old `gyp_addon` python file
const gypScript = path.resolve(__dirname, '..', 'gyp', 'gyp_main.py')
const addonGypi = path.resolve(__dirname, '..', 'addon.gypi')
let commonGypi = path.resolve(nodeDir, 'include/node/common.gypi')
try {
await fs.stat(commonGypi)
} catch (err) {
commonGypi = path.resolve(nodeDir, 'common.gypi')
}
let outputDir = 'build'
if (win) {
// Windows expects an absolute path
outputDir = buildDir
}
const nodeGypDir = path.resolve(__dirname, '..')
let nodeLibFile = path.join(nodeDir,
!gyp.opts.nodedir ? '<(target_arch)' : '$(Configuration)',
release.name + '.lib')
argv.push('-I', addonGypi)
argv.push('-I', commonGypi)
argv.push('-Dlibrary=shared_library')
argv.push('-Dvisibility=default')
argv.push('-Dnode_root_dir=' + nodeDir)
if (process.platform === 'aix' || process.platform === 'os390' || process.platform === 'os400') {
argv.push('-Dnode_exp_file=' + nodeExpFile)
if (process.platform === 'os390' && zoslibIncDir) {
argv.push('-Dzoslib_include_dir=' + zoslibIncDir)
}
}
argv.push('-Dnode_gyp_dir=' + nodeGypDir)
// Do this to keep Cygwin environments happy, else the unescaped '\' gets eaten up,
// resulting in bad paths, Ex c:parentFolderfolderanotherFolder instead of c:\parentFolder\folder\anotherFolder
if (win) {
nodeLibFile = nodeLibFile.replace(/\\/g, '\\\\')
}
argv.push('-Dnode_lib_file=' + nodeLibFile)
argv.push('-Dmodule_root_dir=' + process.cwd())
argv.push('-Dnode_engine=' +
(gyp.opts.node_engine || process.jsEngine || 'v8'))
argv.push('--depth=.')
argv.push('--no-parallel')
// tell gyp to write the Makefile/Solution files into output_dir
argv.push('--generator-output', outputDir)
// tell make to write its output into the same dir
argv.push('-Goutput_dir=.')
// enforce use of the "binding.gyp" file
argv.unshift('binding.gyp')
// execute `gyp` from the current target nodedir
argv.unshift(gypScript)
// make sure python uses files that came with this particular node package
const pypath = [path.join(__dirname, '..', 'gyp', 'pylib')]
if (process.env.PYTHONPATH) {
pypath.push(process.env.PYTHONPATH)
}
process.env.PYTHONPATH = pypath.join(win ? ';' : ':')
await new Promise((resolve, reject) => {
const cp = gyp.spawn(python, argv)
cp.on('exit', (code) => {
if (code !== 0) {
reject(new Error('`gyp` failed with exit code: ' + code))
} else {
// we're done
resolve()
}
})
})
}
}
module.exports = configure
module.exports.usage = 'Generates ' + (win ? 'MSVC project files' : 'a Makefile') + ' for the current module'
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SkipForward = createLucideIcon("SkipForward", [
["polygon", { points: "5 4 15 12 5 20 5 4", key: "16p6eg" }],
["line", { x1: "19", x2: "19", y1: "5", y2: "19", key: "futhcm" }]
]);
export { SkipForward as default };
//# sourceMappingURL=skip-forward.js.map
@@ -0,0 +1,16 @@
import semver = require("../index");
import SemVer = require("../classes/semver");
/**
* Pass in a comparison string, and it'll call the corresponding semver comparison function.
* "===" and "!==" do simple string comparison, but are included for completeness.
* Throws if an invalid comparison string is provided.
*/
declare function cmp(
v1: string | SemVer,
operator: semver.Operator,
v2: string | SemVer,
optionsOrLoose?: boolean | semver.Options,
): boolean;
export = cmp;
@@ -0,0 +1,15 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var full_jitter_1 = require("./full/full.jitter");
var no_jitter_1 = require("./no/no.jitter");
function JitterFactory(options) {
switch (options.jitter) {
case "full":
return full_jitter_1.fullJitter;
case "none":
default:
return no_jitter_1.noJitter;
}
}
exports.JitterFactory = JitterFactory;
//# sourceMappingURL=jitter.factory.js.map
@@ -0,0 +1,5 @@
declare function getDunderProto(target: {}): object | null;
declare const x: false | typeof getDunderProto;
export = x;
@@ -0,0 +1,8 @@
import { TimingVariables, endTime, setMetric, startTime, timing, wrapTime } from "./timing.js";
//#region src/middleware/timing/index.d.ts
declare module '../..' {
interface ContextVariableMap extends TimingVariables {}
}
//#endregion
export { type TimingVariables, endTime, setMetric, startTime, timing, wrapTime };
export {};
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const UsersRound = createLucideIcon("UsersRound", [
["path", { d: "M18 21a8 8 0 0 0-16 0", key: "3ypg7q" }],
["circle", { cx: "10", cy: "8", r: "5", key: "o932ke" }],
["path", { d: "M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3", key: "10s06x" }]
]);
export { UsersRound as default };
//# sourceMappingURL=users-round.js.map
@@ -0,0 +1 @@
module.exports={A:{A:{"2":"_E"},B:{"1":"_9C","2":"_x","322":"_BC"},C:{"1":"_YM _tF","2":"_ZI","194":"_WO 0B","1025":"_H 1B _nH 8B _zQ gC hC _JF _dK _LD _HK _aM","1537":"2B 9B GC NC"},D:{"1":"_FK","2":"_9E _hD","4":"_3I _bC"},E:{"1":"_PC","2":"_3C"},F:{"1":"_8J","2":"_JP","4":"_iH oB"},G:{"1":"_NC","2":"_0C"},H:{"2":"1D"},I:{"2":"_G","4":"I"},J:{"2":"_B"},K:{"1":"H","2":"_D"},L:{"1":"I"},M:{"1":"YC"},N:{"2":"_A"},O:{"1":"bC"},P:{"1":"_F"},Q:{"1":"JE"},R:{"1":"KE"},S:{"1":"ME","2":"LE"}},B:4,C:"Service Workers",D:true};
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const ToyBrick = createLucideIcon("ToyBrick", [
["rect", { width: "18", height: "12", x: "3", y: "8", rx: "1", key: "158fvp" }],
["path", { d: "M10 8V5c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v3", key: "s0042v" }],
["path", { d: "M19 8V5c0-.6-.4-1-1-1h-3a1 1 0 0 0-1 1v3", key: "9wmeh2" }]
]);
export { ToyBrick as default };
//# sourceMappingURL=toy-brick.js.map
@@ -0,0 +1,19 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const ArrowDown01 = createLucideIcon("ArrowDown01", [
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
["path", { d: "M7 20V4", key: "1yoxec" }],
["rect", { x: "15", y: "4", width: "4", height: "6", ry: "2", key: "1bwicg" }],
["path", { d: "M17 20v-6h-2", key: "1qp1so" }],
["path", { d: "M15 20h4", key: "1j968p" }]
]);
export { ArrowDown01 as default };
//# sourceMappingURL=arrow-down-0-1.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","sources":["../../../../src/components/LazyMotion/index.tsx"],"sourcesContent":["\"use client\"\n\nimport { useEffect, useRef, useState } from \"react\"\nimport { LazyContext } from \"../../context/LazyContext\"\nimport { loadFeatures } from \"../../motion/features/load-features\"\nimport { FeatureBundle, LazyFeatureBundle } from \"../../motion/features/types\"\nimport { CreateVisualElement } from \"../../render/types\"\nimport { LazyProps } from \"./types\"\n\n/**\n * Used in conjunction with the `m` component to reduce bundle size.\n *\n * `m` is a version of the `motion` component that only loads functionality\n * critical for the initial render.\n *\n * `LazyMotion` can then be used to either synchronously or asynchronously\n * load animation and gesture support.\n *\n * ```jsx\n * // Synchronous loading\n * import { LazyMotion, m, domAnimation } from \"framer-motion\"\n *\n * function App() {\n * return (\n * <LazyMotion features={domAnimation}>\n * <m.div animate={{ scale: 2 }} />\n * </LazyMotion>\n * )\n * }\n *\n * // Asynchronous loading\n * import { LazyMotion, m } from \"framer-motion\"\n *\n * function App() {\n * return (\n * <LazyMotion features={() => import('./path/to/domAnimation')}>\n * <m.div animate={{ scale: 2 }} />\n * </LazyMotion>\n * )\n * }\n * ```\n *\n * @public\n */\nexport function LazyMotion({ children, features, strict = false }: LazyProps) {\n const [, setIsLoaded] = useState(!isLazyBundle(features))\n const loadedRenderer = useRef<undefined | CreateVisualElement>(undefined)\n\n /**\n * If this is a synchronous load, load features immediately\n */\n if (!isLazyBundle(features)) {\n const { renderer, ...loadedFeatures } = features\n loadedRenderer.current = renderer\n loadFeatures(loadedFeatures)\n }\n\n useEffect(() => {\n if (isLazyBundle(features)) {\n features().then(({ renderer, ...loadedFeatures }) => {\n loadFeatures(loadedFeatures)\n loadedRenderer.current = renderer\n setIsLoaded(true)\n })\n }\n }, [])\n\n return (\n <LazyContext.Provider\n value={{ renderer: loadedRenderer.current, strict }}\n >\n {children}\n </LazyContext.Provider>\n )\n}\n\nfunction isLazyBundle(\n features: FeatureBundle | LazyFeatureBundle\n): features is LazyFeatureBundle {\n return typeof features === \"function\"\n}\n"],"names":[],"mappings":";;;;;;AASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACG;AACF;AACA;AAEA;;AAEG;AACH;;AAEI;;;;AAKA;AACI;;AAEI;;AAEJ;;;;AAWZ;AAEA;AAGI;AACJ;;"}
@@ -0,0 +1,7 @@
import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
/**
* Rules considered to be best practice for modern TypeScript codebases, but that do not impact program logic.
* @see {@link https://typescript-eslint.io/users/configs#stylistic}
*/
declare const _default: (plugin: FlatConfig.Plugin, parser: FlatConfig.Parser) => FlatConfig.ConfigArray;
export default _default;
@@ -0,0 +1,20 @@
/**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const LifeBuoy = createLucideIcon("LifeBuoy", [
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
["path", { d: "m4.93 4.93 4.24 4.24", key: "1ymg45" }],
["path", { d: "m14.83 9.17 4.24-4.24", key: "1cb5xl" }],
["path", { d: "m14.83 14.83 4.24 4.24", key: "q42g0n" }],
["path", { d: "m9.17 14.83-4.24 4.24", key: "bqpfvv" }],
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }]
]);
export { LifeBuoy as default };
//# sourceMappingURL=life-buoy.js.map
@@ -0,0 +1,8 @@
//#region src/utils/jwt/utf8.d.ts
/**
* @module
* Functions for encoding/decoding UTF8.
*/
export declare const utf8Encoder: TextEncoder;
export declare const utf8Decoder: TextDecoder;
//#endregion
@@ -0,0 +1 @@
{"version":3,"file":"ssr-client.js","names":[],"sources":["../../../src/ssr/ssr-client.ts"],"sourcesContent":["import { invariant } from '../invariant'\nimport { isNotFound } from '../not-found'\nimport { createControlledPromise } from '../utils'\nimport { hydrateSsrMatchId } from './ssr-match-id'\nimport type { GLOBAL_SEROVAL, GLOBAL_TSR } from './constants'\nimport type { DehydratedMatch, TsrSsrGlobal } from './types'\nimport type { AnyRouteMatch } from '../Matches'\nimport type { AnyRouter } from '../router'\nimport type { RouteContextOptions } from '../route'\nimport type { AnySerializationAdapter } from './serializer/transformer'\n\ndeclare global {\n interface Window {\n [GLOBAL_TSR]?: TsrSsrGlobal\n [GLOBAL_SEROVAL]?: any\n }\n}\n\nfunction hydrateMatch(\n match: AnyRouteMatch,\n deyhydratedMatch: DehydratedMatch,\n): void {\n match.id = deyhydratedMatch.i\n match.__beforeLoadContext = deyhydratedMatch.b\n match.loaderData = deyhydratedMatch.l\n match.status = deyhydratedMatch.s\n match.ssr = deyhydratedMatch.ssr\n match.updatedAt = deyhydratedMatch.u\n match.error = deyhydratedMatch.e\n // Only hydrate global-not-found when a defined value is present in the\n // dehydrated payload. If omitted, preserve the value computed from the\n // current client location (important for SPA fallback HTML served at unknown\n // URLs, where dehydrated matches may come from `/` but client matching marks\n // root as globalNotFound).\n if (deyhydratedMatch.g !== undefined) {\n match.globalNotFound = deyhydratedMatch.g\n }\n}\n\nexport async function hydrate(router: AnyRouter): Promise<any> {\n if (!window.$_TSR) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\n 'Invariant failed: Expected to find bootstrap data on window.$_TSR, but we did not. Please file an issue!',\n )\n }\n\n invariant()\n }\n\n const serializationAdapters = router.options.serializationAdapters as\n | Array<AnySerializationAdapter>\n | undefined\n\n if (serializationAdapters?.length) {\n const fromSerializableMap = new Map()\n serializationAdapters.forEach((adapter) => {\n fromSerializableMap.set(adapter.key, adapter.fromSerializable)\n })\n window.$_TSR.t = fromSerializableMap\n window.$_TSR.buffer.forEach((script) => script())\n }\n window.$_TSR.initialized = true\n\n if (!window.$_TSR.router) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(\n 'Invariant failed: Expected to find a dehydrated data on window.$_TSR.router, but we did not. Please file an issue!',\n )\n }\n\n invariant()\n }\n\n const dehydratedRouter = window.$_TSR.router\n dehydratedRouter.matches.forEach((dehydratedMatch) => {\n dehydratedMatch.i = hydrateSsrMatchId(dehydratedMatch.i)\n })\n if (dehydratedRouter.lastMatchId) {\n dehydratedRouter.lastMatchId = hydrateSsrMatchId(\n dehydratedRouter.lastMatchId,\n )\n }\n const { manifest, dehydratedData, lastMatchId } = dehydratedRouter\n\n router.ssr = {\n manifest,\n }\n const meta = document.querySelector('meta[property=\"csp-nonce\"]') as\n | HTMLMetaElement\n | undefined\n const nonce = meta?.content\n router.options.ssr = {\n nonce,\n }\n\n // Hydrate the router state\n const matches = router.matchRoutes(router.stores.location.get())\n\n // kick off loading the route chunks\n const routeChunkPromise = Promise.all(\n matches.map((match) =>\n router.loadRouteChunk(router.looseRoutesById[match.routeId]!),\n ),\n )\n\n function setMatchForcePending(match: AnyRouteMatch) {\n // usually the minPendingPromise is created in the Match component if a pending match is rendered\n // however, this might be too late if the match synchronously resolves\n const route = router.looseRoutesById[match.routeId]!\n const pendingMinMs =\n route.options.pendingMinMs ?? router.options.defaultPendingMinMs\n if (pendingMinMs) {\n const minPendingPromise = createControlledPromise<void>()\n match._nonReactive.minPendingPromise = minPendingPromise\n match._forcePending = true\n\n setTimeout(() => {\n minPendingPromise.resolve()\n // We've handled the minPendingPromise, so we can delete it\n router.updateMatch(match.id, (prev) => {\n prev._nonReactive.minPendingPromise = undefined\n return {\n ...prev,\n _forcePending: undefined,\n }\n })\n }, pendingMinMs)\n }\n }\n\n function setRouteSsr(match: AnyRouteMatch) {\n const route = router.looseRoutesById[match.routeId]\n if (route) {\n route.options.ssr = match.ssr\n }\n }\n // Right after hydration and before the first render, we need to rehydrate each match\n // First step is to reyhdrate loaderData and __beforeLoadContext\n let firstNonSsrMatchIndex: number | undefined = undefined\n matches.forEach((match) => {\n const dehydratedMatch = dehydratedRouter.matLine truncated