, options?: Object)`
-Returns: `(id: string | unknown) => boolean`
-
-#### `include` and `exclude`
-
-Type: `String | RegExp | Array[...String|RegExp]`
-
-A valid [`picomatch`](https://github.com/micromatch/picomatch#globbing-features) pattern, or array of patterns. If `options.include` is omitted or has zero length, filter will return `true` by default. Otherwise, an ID must match one or more of the `picomatch` patterns, and must not match any of the `options.exclude` patterns.
-
-Note that `picomatch` patterns are very similar to [`minimatch`](https://github.com/isaacs/minimatch#readme) patterns, and in most use cases, they are interchangeable. If you have more specific pattern matching needs, you can view [this comparison table](https://github.com/micromatch/picomatch#library-comparisons) to learn more about where the libraries differ.
-
-#### `options`
-
-##### `resolve`
-
-Type: `String | Boolean | null`
-
-Optionally resolves the patterns against a directory other than `process.cwd()`. If a `String` is specified, then the value will be used as the base directory. Relative paths will be resolved against `process.cwd()` first. If `false`, then the patterns will not be resolved against any directory. This can be useful if you want to create a filter for virtual module names.
-
-#### Usage
-
-```js
-import { createFilter } from '@rollup/pluginutils';
-
-export default function myPlugin(options = {}) {
- // assume that the myPlugin accepts options of `options.include` and `options.exclude`
- var filter = createFilter(options.include, options.exclude, {
- resolve: '/my/base/dir'
- });
-
- return {
- transform(code, id) {
- if (!filter(id)) return;
-
- // proceed with the transformation...
- }
- };
-}
-```
-
-### dataToEsm
-
-Transforms objects into tree-shakable ES Module imports.
-
-Parameters: `(data: Object, options: DataToEsmOptions)`
-Returns: `String`
-
-#### `data`
-
-Type: `Object`
-
-An object to transform into an ES module.
-
-#### `options`
-
-Type: `DataToEsmOptions`
-
-_Note: Please see the TypeScript definition for complete documentation of these options_
-
-#### Usage
-
-```js
-import { dataToEsm } from '@rollup/pluginutils';
-
-const esModuleSource = dataToEsm(
- {
- custom: 'data',
- to: ['treeshake']
- },
- {
- compact: false,
- indent: '\t',
- preferConst: true,
- objectShorthand: true,
- namedExports: true,
- includeArbitraryNames: false
- }
-);
-/*
-Outputs the string ES module source:
- export const custom = 'data';
- export const to = ['treeshake'];
- export default { custom, to };
-*/
-```
-
-### extractAssignedNames
-
-Extracts the names of all assignment targets based upon specified patterns.
-
-Parameters: `(param: Node)`
-Returns: `Array[...String]`
-
-#### `param`
-
-Type: `Node`
-
-An `acorn` AST Node.
-
-#### Usage
-
-```js
-import { extractAssignedNames } from '@rollup/pluginutils';
-import { walk } from 'estree-walker';
-
-export default function myPlugin(options = {}) {
- return {
- transform(code) {
- const ast = this.parse(code);
-
- walk(ast, {
- enter(node) {
- if (node.type === 'VariableDeclarator') {
- const declaredNames = extractAssignedNames(node.id);
- // do something with the declared names
- // e.g. for `const {x, y: z} = ...` => declaredNames = ['x', 'z']
- }
- }
- });
- }
- };
-}
-```
-
-### makeLegalIdentifier
-
-Constructs a bundle-safe identifier from a `String`.
-
-Parameters: `(str: String)`
-Returns: `String`
-
-#### Usage
-
-```js
-import { makeLegalIdentifier } from '@rollup/pluginutils';
-
-makeLegalIdentifier('foo-bar'); // 'foo_bar'
-makeLegalIdentifier('typeof'); // '_typeof'
-```
-
-### normalizePath
-
-Converts path separators to forward slash.
-
-Parameters: `(filename: String)`
-Returns: `String`
-
-#### Usage
-
-```js
-import { normalizePath } from '@rollup/pluginutils';
-
-normalizePath('foo\\bar'); // 'foo/bar'
-normalizePath('foo/bar'); // 'foo/bar'
-```
-
-## Meta
-
-[CONTRIBUTING](/.github/CONTRIBUTING.md)
-
-[LICENSE (MIT)](/LICENSE)
diff --git a/node_modules/@rollup/pluginutils/dist/cjs/index.js b/node_modules/@rollup/pluginutils/dist/cjs/index.js
deleted file mode 100644
index 800bd456..00000000
--- a/node_modules/@rollup/pluginutils/dist/cjs/index.js
+++ /dev/null
@@ -1,377 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-var path = require('path');
-var estreeWalker = require('estree-walker');
-var pm = require('picomatch');
-
-const addExtension = function addExtension(filename, ext = '.js') {
- let result = `${filename}`;
- if (!path.extname(filename))
- result += ext;
- return result;
-};
-
-const extractors = {
- ArrayPattern(names, param) {
- for (const element of param.elements) {
- if (element)
- extractors[element.type](names, element);
- }
- },
- AssignmentPattern(names, param) {
- extractors[param.left.type](names, param.left);
- },
- Identifier(names, param) {
- names.push(param.name);
- },
- MemberExpression() { },
- ObjectPattern(names, param) {
- for (const prop of param.properties) {
- // @ts-ignore Typescript reports that this is not a valid type
- if (prop.type === 'RestElement') {
- extractors.RestElement(names, prop);
- }
- else {
- extractors[prop.value.type](names, prop.value);
- }
- }
- },
- RestElement(names, param) {
- extractors[param.argument.type](names, param.argument);
- }
-};
-const extractAssignedNames = function extractAssignedNames(param) {
- const names = [];
- extractors[param.type](names, param);
- return names;
-};
-
-const blockDeclarations = {
- const: true,
- let: true
-};
-class Scope {
- constructor(options = {}) {
- this.parent = options.parent;
- this.isBlockScope = !!options.block;
- this.declarations = Object.create(null);
- if (options.params) {
- options.params.forEach((param) => {
- extractAssignedNames(param).forEach((name) => {
- this.declarations[name] = true;
- });
- });
- }
- }
- addDeclaration(node, isBlockDeclaration, isVar) {
- if (!isBlockDeclaration && this.isBlockScope) {
- // it's a `var` or function node, and this
- // is a block scope, so we need to go up
- this.parent.addDeclaration(node, isBlockDeclaration, isVar);
- }
- else if (node.id) {
- extractAssignedNames(node.id).forEach((name) => {
- this.declarations[name] = true;
- });
- }
- }
- contains(name) {
- return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
- }
-}
-const attachScopes = function attachScopes(ast, propertyName = 'scope') {
- let scope = new Scope();
- estreeWalker.walk(ast, {
- enter(n, parent) {
- const node = n;
- // function foo () {...}
- // class Foo {...}
- if (/(?:Function|Class)Declaration/.test(node.type)) {
- scope.addDeclaration(node, false, false);
- }
- // var foo = 1
- if (node.type === 'VariableDeclaration') {
- const { kind } = node;
- const isBlockDeclaration = blockDeclarations[kind];
- node.declarations.forEach((declaration) => {
- scope.addDeclaration(declaration, isBlockDeclaration, true);
- });
- }
- let newScope;
- // create new function scope
- if (node.type.includes('Function')) {
- const func = node;
- newScope = new Scope({
- parent: scope,
- block: false,
- params: func.params
- });
- // named function expressions - the name is considered
- // part of the function's scope
- if (func.type === 'FunctionExpression' && func.id) {
- newScope.addDeclaration(func, false, false);
- }
- }
- // create new for scope
- if (/For(?:In|Of)?Statement/.test(node.type)) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // create new block scope
- if (node.type === 'BlockStatement' && !parent.type.includes('Function')) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // catch clause has its own block scope
- if (node.type === 'CatchClause') {
- newScope = new Scope({
- parent: scope,
- params: node.param ? [node.param] : [],
- block: true
- });
- }
- if (newScope) {
- Object.defineProperty(node, propertyName, {
- value: newScope,
- configurable: true
- });
- scope = newScope;
- }
- },
- leave(n) {
- const node = n;
- if (node[propertyName])
- scope = scope.parent;
- }
- });
- return scope;
-};
-
-// Helper since Typescript can't detect readonly arrays with Array.isArray
-function isArray(arg) {
- return Array.isArray(arg);
-}
-function ensureArray(thing) {
- if (isArray(thing))
- return thing;
- if (thing == null)
- return [];
- return [thing];
-}
-
-const normalizePathRegExp = new RegExp(`\\${path.win32.sep}`, 'g');
-const normalizePath = function normalizePath(filename) {
- return filename.replace(normalizePathRegExp, path.posix.sep);
-};
-
-function getMatcherString(id, resolutionBase) {
- if (resolutionBase === false || path.isAbsolute(id) || id.startsWith('**')) {
- return normalizePath(id);
- }
- // resolve('') is valid and will default to process.cwd()
- const basePath = normalizePath(path.resolve(resolutionBase || ''))
- // escape all possible (posix + win) path characters that might interfere with regex
- .replace(/[-^$*+?.()|[\]{}]/g, '\\$&');
- // Note that we use posix.join because:
- // 1. the basePath has been normalized to use /
- // 2. the incoming glob (id) matcher, also uses /
- // otherwise Node will force backslash (\) on windows
- return path.posix.join(basePath, normalizePath(id));
-}
-const createFilter = function createFilter(include, exclude, options) {
- const resolutionBase = options && options.resolve;
- const getMatcher = (id) => id instanceof RegExp
- ? id
- : {
- test: (what) => {
- // this refactor is a tad overly verbose but makes for easy debugging
- const pattern = getMatcherString(id, resolutionBase);
- const fn = pm(pattern, { dot: true });
- const result = fn(what);
- return result;
- }
- };
- const includeMatchers = ensureArray(include).map(getMatcher);
- const excludeMatchers = ensureArray(exclude).map(getMatcher);
- if (!includeMatchers.length && !excludeMatchers.length)
- return (id) => typeof id === 'string' && !id.includes('\0');
- return function result(id) {
- if (typeof id !== 'string')
- return false;
- if (id.includes('\0'))
- return false;
- const pathId = normalizePath(id);
- for (let i = 0; i < excludeMatchers.length; ++i) {
- const matcher = excludeMatchers[i];
- if (matcher instanceof RegExp) {
- matcher.lastIndex = 0;
- }
- if (matcher.test(pathId))
- return false;
- }
- for (let i = 0; i < includeMatchers.length; ++i) {
- const matcher = includeMatchers[i];
- if (matcher instanceof RegExp) {
- matcher.lastIndex = 0;
- }
- if (matcher.test(pathId))
- return true;
- }
- return !includeMatchers.length;
- };
-};
-
-const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public';
-const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl';
-const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' '));
-forbiddenIdentifiers.add('');
-const makeLegalIdentifier = function makeLegalIdentifier(str) {
- let identifier = str
- .replace(/-(\w)/g, (_, letter) => letter.toUpperCase())
- .replace(/[^$_a-zA-Z0-9]/g, '_');
- if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) {
- identifier = `_${identifier}`;
- }
- return identifier || '_';
-};
-
-function stringify(obj) {
- return (JSON.stringify(obj) || 'undefined').replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`);
-}
-function serializeArray(arr, indent, baseIndent) {
- let output = '[';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- for (let i = 0; i < arr.length; i++) {
- const key = arr[i];
- output += `${i > 0 ? ',' : ''}${separator}${serialize(key, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}]`;
-}
-function serializeObject(obj, indent, baseIndent) {
- let output = '{';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- const entries = Object.entries(obj);
- for (let i = 0; i < entries.length; i++) {
- const [key, value] = entries[i];
- const stringKey = makeLegalIdentifier(key) === key ? key : stringify(key);
- output += `${i > 0 ? ',' : ''}${separator}${stringKey}:${indent ? ' ' : ''}${serialize(value, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}}`;
-}
-function serialize(obj, indent, baseIndent) {
- if (typeof obj === 'object' && obj !== null) {
- if (Array.isArray(obj))
- return serializeArray(obj, indent, baseIndent);
- if (obj instanceof Date)
- return `new Date(${obj.getTime()})`;
- if (obj instanceof RegExp)
- return obj.toString();
- return serializeObject(obj, indent, baseIndent);
- }
- if (typeof obj === 'number') {
- if (obj === Infinity)
- return 'Infinity';
- if (obj === -Infinity)
- return '-Infinity';
- if (obj === 0)
- return 1 / obj === Infinity ? '0' : '-0';
- if (obj !== obj)
- return 'NaN'; // eslint-disable-line no-self-compare
- }
- if (typeof obj === 'symbol') {
- const key = Symbol.keyFor(obj);
- // eslint-disable-next-line no-undefined
- if (key !== undefined)
- return `Symbol.for(${stringify(key)})`;
- }
- if (typeof obj === 'bigint')
- return `${obj}n`;
- return stringify(obj);
-}
-// isWellFormed exists from Node.js 20
-const hasStringIsWellFormed = 'isWellFormed' in String.prototype;
-function isWellFormedString(input) {
- // @ts-expect-error String::isWellFormed exists from ES2024. tsconfig lib is set to ES6
- if (hasStringIsWellFormed)
- return input.isWellFormed();
- // https://github.com/tc39/proposal-is-usv-string/blob/main/README.md#algorithm
- return !/\p{Surrogate}/u.test(input);
-}
-const dataToEsm = function dataToEsm(data, options = {}) {
- var _a, _b;
- const t = options.compact ? '' : 'indent' in options ? options.indent : '\t';
- const _ = options.compact ? '' : ' ';
- const n = options.compact ? '' : '\n';
- const declarationType = options.preferConst ? 'const' : 'var';
- if (options.namedExports === false ||
- typeof data !== 'object' ||
- Array.isArray(data) ||
- data instanceof Date ||
- data instanceof RegExp ||
- data === null) {
- const code = serialize(data, options.compact ? null : t, '');
- const magic = _ || (/^[{[\-\/]/.test(code) ? '' : ' '); // eslint-disable-line no-useless-escape
- return `export default${magic}${code};`;
- }
- let maxUnderbarPrefixLength = 0;
- for (const key of Object.keys(data)) {
- const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
- if (underbarPrefixLength > maxUnderbarPrefixLength) {
- maxUnderbarPrefixLength = underbarPrefixLength;
- }
- }
- const arbitraryNamePrefix = `${'_'.repeat(maxUnderbarPrefixLength + 1)}arbitrary`;
- let namedExportCode = '';
- const defaultExportRows = [];
- const arbitraryNameExportRows = [];
- for (const [key, value] of Object.entries(data)) {
- if (key === makeLegalIdentifier(key)) {
- if (options.objectShorthand)
- defaultExportRows.push(key);
- else
- defaultExportRows.push(`${key}:${_}${key}`);
- namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- }
- else {
- defaultExportRows.push(`${stringify(key)}:${_}${serialize(value, options.compact ? null : t, '')}`);
- if (options.includeArbitraryNames && isWellFormedString(key)) {
- const variableName = `${arbitraryNamePrefix}${arbitraryNameExportRows.length}`;
- namedExportCode += `${declarationType} ${variableName}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- arbitraryNameExportRows.push(`${variableName} as ${JSON.stringify(key)}`);
- }
- }
- }
- const arbitraryExportCode = arbitraryNameExportRows.length > 0
- ? `export${_}{${n}${t}${arbitraryNameExportRows.join(`,${n}${t}`)}${n}};${n}`
- : '';
- const defaultExportCode = `export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`;
- return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`;
-};
-
-// TODO: remove this in next major
-var index = {
- addExtension,
- attachScopes,
- createFilter,
- dataToEsm,
- extractAssignedNames,
- makeLegalIdentifier,
- normalizePath
-};
-
-exports.addExtension = addExtension;
-exports.attachScopes = attachScopes;
-exports.createFilter = createFilter;
-exports.dataToEsm = dataToEsm;
-exports.default = index;
-exports.extractAssignedNames = extractAssignedNames;
-exports.makeLegalIdentifier = makeLegalIdentifier;
-exports.normalizePath = normalizePath;
-module.exports = Object.assign(exports.default, exports);
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@rollup/pluginutils/dist/es/index.js b/node_modules/@rollup/pluginutils/dist/es/index.js
deleted file mode 100644
index 3d8f2561..00000000
--- a/node_modules/@rollup/pluginutils/dist/es/index.js
+++ /dev/null
@@ -1,365 +0,0 @@
-import { extname, win32, posix, isAbsolute, resolve } from 'path';
-import { walk } from 'estree-walker';
-import pm from 'picomatch';
-
-const addExtension = function addExtension(filename, ext = '.js') {
- let result = `${filename}`;
- if (!extname(filename))
- result += ext;
- return result;
-};
-
-const extractors = {
- ArrayPattern(names, param) {
- for (const element of param.elements) {
- if (element)
- extractors[element.type](names, element);
- }
- },
- AssignmentPattern(names, param) {
- extractors[param.left.type](names, param.left);
- },
- Identifier(names, param) {
- names.push(param.name);
- },
- MemberExpression() { },
- ObjectPattern(names, param) {
- for (const prop of param.properties) {
- // @ts-ignore Typescript reports that this is not a valid type
- if (prop.type === 'RestElement') {
- extractors.RestElement(names, prop);
- }
- else {
- extractors[prop.value.type](names, prop.value);
- }
- }
- },
- RestElement(names, param) {
- extractors[param.argument.type](names, param.argument);
- }
-};
-const extractAssignedNames = function extractAssignedNames(param) {
- const names = [];
- extractors[param.type](names, param);
- return names;
-};
-
-const blockDeclarations = {
- const: true,
- let: true
-};
-class Scope {
- constructor(options = {}) {
- this.parent = options.parent;
- this.isBlockScope = !!options.block;
- this.declarations = Object.create(null);
- if (options.params) {
- options.params.forEach((param) => {
- extractAssignedNames(param).forEach((name) => {
- this.declarations[name] = true;
- });
- });
- }
- }
- addDeclaration(node, isBlockDeclaration, isVar) {
- if (!isBlockDeclaration && this.isBlockScope) {
- // it's a `var` or function node, and this
- // is a block scope, so we need to go up
- this.parent.addDeclaration(node, isBlockDeclaration, isVar);
- }
- else if (node.id) {
- extractAssignedNames(node.id).forEach((name) => {
- this.declarations[name] = true;
- });
- }
- }
- contains(name) {
- return this.declarations[name] || (this.parent ? this.parent.contains(name) : false);
- }
-}
-const attachScopes = function attachScopes(ast, propertyName = 'scope') {
- let scope = new Scope();
- walk(ast, {
- enter(n, parent) {
- const node = n;
- // function foo () {...}
- // class Foo {...}
- if (/(?:Function|Class)Declaration/.test(node.type)) {
- scope.addDeclaration(node, false, false);
- }
- // var foo = 1
- if (node.type === 'VariableDeclaration') {
- const { kind } = node;
- const isBlockDeclaration = blockDeclarations[kind];
- node.declarations.forEach((declaration) => {
- scope.addDeclaration(declaration, isBlockDeclaration, true);
- });
- }
- let newScope;
- // create new function scope
- if (node.type.includes('Function')) {
- const func = node;
- newScope = new Scope({
- parent: scope,
- block: false,
- params: func.params
- });
- // named function expressions - the name is considered
- // part of the function's scope
- if (func.type === 'FunctionExpression' && func.id) {
- newScope.addDeclaration(func, false, false);
- }
- }
- // create new for scope
- if (/For(?:In|Of)?Statement/.test(node.type)) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // create new block scope
- if (node.type === 'BlockStatement' && !parent.type.includes('Function')) {
- newScope = new Scope({
- parent: scope,
- block: true
- });
- }
- // catch clause has its own block scope
- if (node.type === 'CatchClause') {
- newScope = new Scope({
- parent: scope,
- params: node.param ? [node.param] : [],
- block: true
- });
- }
- if (newScope) {
- Object.defineProperty(node, propertyName, {
- value: newScope,
- configurable: true
- });
- scope = newScope;
- }
- },
- leave(n) {
- const node = n;
- if (node[propertyName])
- scope = scope.parent;
- }
- });
- return scope;
-};
-
-// Helper since Typescript can't detect readonly arrays with Array.isArray
-function isArray(arg) {
- return Array.isArray(arg);
-}
-function ensureArray(thing) {
- if (isArray(thing))
- return thing;
- if (thing == null)
- return [];
- return [thing];
-}
-
-const normalizePathRegExp = new RegExp(`\\${win32.sep}`, 'g');
-const normalizePath = function normalizePath(filename) {
- return filename.replace(normalizePathRegExp, posix.sep);
-};
-
-function getMatcherString(id, resolutionBase) {
- if (resolutionBase === false || isAbsolute(id) || id.startsWith('**')) {
- return normalizePath(id);
- }
- // resolve('') is valid and will default to process.cwd()
- const basePath = normalizePath(resolve(resolutionBase || ''))
- // escape all possible (posix + win) path characters that might interfere with regex
- .replace(/[-^$*+?.()|[\]{}]/g, '\\$&');
- // Note that we use posix.join because:
- // 1. the basePath has been normalized to use /
- // 2. the incoming glob (id) matcher, also uses /
- // otherwise Node will force backslash (\) on windows
- return posix.join(basePath, normalizePath(id));
-}
-const createFilter = function createFilter(include, exclude, options) {
- const resolutionBase = options && options.resolve;
- const getMatcher = (id) => id instanceof RegExp
- ? id
- : {
- test: (what) => {
- // this refactor is a tad overly verbose but makes for easy debugging
- const pattern = getMatcherString(id, resolutionBase);
- const fn = pm(pattern, { dot: true });
- const result = fn(what);
- return result;
- }
- };
- const includeMatchers = ensureArray(include).map(getMatcher);
- const excludeMatchers = ensureArray(exclude).map(getMatcher);
- if (!includeMatchers.length && !excludeMatchers.length)
- return (id) => typeof id === 'string' && !id.includes('\0');
- return function result(id) {
- if (typeof id !== 'string')
- return false;
- if (id.includes('\0'))
- return false;
- const pathId = normalizePath(id);
- for (let i = 0; i < excludeMatchers.length; ++i) {
- const matcher = excludeMatchers[i];
- if (matcher instanceof RegExp) {
- matcher.lastIndex = 0;
- }
- if (matcher.test(pathId))
- return false;
- }
- for (let i = 0; i < includeMatchers.length; ++i) {
- const matcher = includeMatchers[i];
- if (matcher instanceof RegExp) {
- matcher.lastIndex = 0;
- }
- if (matcher.test(pathId))
- return true;
- }
- return !includeMatchers.length;
- };
-};
-
-const reservedWords = 'break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public';
-const builtins = 'arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl';
-const forbiddenIdentifiers = new Set(`${reservedWords} ${builtins}`.split(' '));
-forbiddenIdentifiers.add('');
-const makeLegalIdentifier = function makeLegalIdentifier(str) {
- let identifier = str
- .replace(/-(\w)/g, (_, letter) => letter.toUpperCase())
- .replace(/[^$_a-zA-Z0-9]/g, '_');
- if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) {
- identifier = `_${identifier}`;
- }
- return identifier || '_';
-};
-
-function stringify(obj) {
- return (JSON.stringify(obj) || 'undefined').replace(/[\u2028\u2029]/g, (char) => `\\u${`000${char.charCodeAt(0).toString(16)}`.slice(-4)}`);
-}
-function serializeArray(arr, indent, baseIndent) {
- let output = '[';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- for (let i = 0; i < arr.length; i++) {
- const key = arr[i];
- output += `${i > 0 ? ',' : ''}${separator}${serialize(key, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}]`;
-}
-function serializeObject(obj, indent, baseIndent) {
- let output = '{';
- const separator = indent ? `\n${baseIndent}${indent}` : '';
- const entries = Object.entries(obj);
- for (let i = 0; i < entries.length; i++) {
- const [key, value] = entries[i];
- const stringKey = makeLegalIdentifier(key) === key ? key : stringify(key);
- output += `${i > 0 ? ',' : ''}${separator}${stringKey}:${indent ? ' ' : ''}${serialize(value, indent, baseIndent + indent)}`;
- }
- return `${output}${indent ? `\n${baseIndent}` : ''}}`;
-}
-function serialize(obj, indent, baseIndent) {
- if (typeof obj === 'object' && obj !== null) {
- if (Array.isArray(obj))
- return serializeArray(obj, indent, baseIndent);
- if (obj instanceof Date)
- return `new Date(${obj.getTime()})`;
- if (obj instanceof RegExp)
- return obj.toString();
- return serializeObject(obj, indent, baseIndent);
- }
- if (typeof obj === 'number') {
- if (obj === Infinity)
- return 'Infinity';
- if (obj === -Infinity)
- return '-Infinity';
- if (obj === 0)
- return 1 / obj === Infinity ? '0' : '-0';
- if (obj !== obj)
- return 'NaN'; // eslint-disable-line no-self-compare
- }
- if (typeof obj === 'symbol') {
- const key = Symbol.keyFor(obj);
- // eslint-disable-next-line no-undefined
- if (key !== undefined)
- return `Symbol.for(${stringify(key)})`;
- }
- if (typeof obj === 'bigint')
- return `${obj}n`;
- return stringify(obj);
-}
-// isWellFormed exists from Node.js 20
-const hasStringIsWellFormed = 'isWellFormed' in String.prototype;
-function isWellFormedString(input) {
- // @ts-expect-error String::isWellFormed exists from ES2024. tsconfig lib is set to ES6
- if (hasStringIsWellFormed)
- return input.isWellFormed();
- // https://github.com/tc39/proposal-is-usv-string/blob/main/README.md#algorithm
- return !/\p{Surrogate}/u.test(input);
-}
-const dataToEsm = function dataToEsm(data, options = {}) {
- var _a, _b;
- const t = options.compact ? '' : 'indent' in options ? options.indent : '\t';
- const _ = options.compact ? '' : ' ';
- const n = options.compact ? '' : '\n';
- const declarationType = options.preferConst ? 'const' : 'var';
- if (options.namedExports === false ||
- typeof data !== 'object' ||
- Array.isArray(data) ||
- data instanceof Date ||
- data instanceof RegExp ||
- data === null) {
- const code = serialize(data, options.compact ? null : t, '');
- const magic = _ || (/^[{[\-\/]/.test(code) ? '' : ' '); // eslint-disable-line no-useless-escape
- return `export default${magic}${code};`;
- }
- let maxUnderbarPrefixLength = 0;
- for (const key of Object.keys(data)) {
- const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
- if (underbarPrefixLength > maxUnderbarPrefixLength) {
- maxUnderbarPrefixLength = underbarPrefixLength;
- }
- }
- const arbitraryNamePrefix = `${'_'.repeat(maxUnderbarPrefixLength + 1)}arbitrary`;
- let namedExportCode = '';
- const defaultExportRows = [];
- const arbitraryNameExportRows = [];
- for (const [key, value] of Object.entries(data)) {
- if (key === makeLegalIdentifier(key)) {
- if (options.objectShorthand)
- defaultExportRows.push(key);
- else
- defaultExportRows.push(`${key}:${_}${key}`);
- namedExportCode += `export ${declarationType} ${key}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- }
- else {
- defaultExportRows.push(`${stringify(key)}:${_}${serialize(value, options.compact ? null : t, '')}`);
- if (options.includeArbitraryNames && isWellFormedString(key)) {
- const variableName = `${arbitraryNamePrefix}${arbitraryNameExportRows.length}`;
- namedExportCode += `${declarationType} ${variableName}${_}=${_}${serialize(value, options.compact ? null : t, '')};${n}`;
- arbitraryNameExportRows.push(`${variableName} as ${JSON.stringify(key)}`);
- }
- }
- }
- const arbitraryExportCode = arbitraryNameExportRows.length > 0
- ? `export${_}{${n}${t}${arbitraryNameExportRows.join(`,${n}${t}`)}${n}};${n}`
- : '';
- const defaultExportCode = `export default${_}{${n}${t}${defaultExportRows.join(`,${n}${t}`)}${n}};${n}`;
- return `${namedExportCode}${arbitraryExportCode}${defaultExportCode}`;
-};
-
-// TODO: remove this in next major
-var index = {
- addExtension,
- attachScopes,
- createFilter,
- dataToEsm,
- extractAssignedNames,
- makeLegalIdentifier,
- normalizePath
-};
-
-export { addExtension, attachScopes, createFilter, dataToEsm, index as default, extractAssignedNames, makeLegalIdentifier, normalizePath };
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@rollup/pluginutils/dist/es/package.json b/node_modules/@rollup/pluginutils/dist/es/package.json
deleted file mode 100644
index 7c34deb5..00000000
--- a/node_modules/@rollup/pluginutils/dist/es/package.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type":"module"}
\ No newline at end of file
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/LICENSE b/node_modules/@rollup/pluginutils/node_modules/picomatch/LICENSE
deleted file mode 100644
index 3608dca2..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2017-present, Jon Schlinkert.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/README.md b/node_modules/@rollup/pluginutils/node_modules/picomatch/README.md
deleted file mode 100644
index 5062654b..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/README.md
+++ /dev/null
@@ -1,738 +0,0 @@
-Picomatch
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Blazing fast and accurate glob matcher written in JavaScript.
-No dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
-
-
-
-
-
-## Why picomatch?
-
-* **Lightweight** - No dependencies
-* **Minimal** - Tiny API surface. Main export is a function that takes a glob pattern and returns a matcher function.
-* **Fast** - Loads in about 2ms (that's several times faster than a [single frame of a HD movie](http://www.endmemo.com/sconvert/framespersecondframespermillisecond.php) at 60fps)
-* **Performant** - Use the returned matcher function to speed up repeat matching (like when watching files)
-* **Accurate matching** - Using wildcards (`*` and `?`), globstars (`**`) for nested directories, [advanced globbing](#advanced-globbing) with extglobs, braces, and POSIX brackets, and support for escaping special characters with `\` or quotes.
-* **Well tested** - Thousands of unit tests
-
-See the [library comparison](#library-comparisons) to other libraries.
-
-
-
-
-## Table of Contents
-
- Click to expand
-
-- [Install](#install)
-- [Usage](#usage)
-- [API](#api)
- * [picomatch](#picomatch)
- * [.test](#test)
- * [.matchBase](#matchbase)
- * [.isMatch](#ismatch)
- * [.parse](#parse)
- * [.scan](#scan)
- * [.compileRe](#compilere)
- * [.makeRe](#makere)
- * [.toRegex](#toregex)
-- [Options](#options)
- * [Picomatch options](#picomatch-options)
- * [Scan Options](#scan-options)
- * [Options Examples](#options-examples)
-- [Globbing features](#globbing-features)
- * [Basic globbing](#basic-globbing)
- * [Advanced globbing](#advanced-globbing)
- * [Braces](#braces)
- * [Matching special characters as literals](#matching-special-characters-as-literals)
-- [Library Comparisons](#library-comparisons)
-- [Benchmarks](#benchmarks)
-- [Philosophies](#philosophies)
-- [About](#about)
- * [Author](#author)
- * [License](#license)
-
-_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_
-
-
-
-
-
-
-## Install
-
-Install with [npm](https://www.npmjs.com/):
-
-```sh
-npm install --save picomatch
-```
-
-
-
-## Usage
-
-The main export is a function that takes a glob pattern and an options object and returns a function for matching strings.
-
-```js
-const pm = require('picomatch');
-const isMatch = pm('*.js');
-
-console.log(isMatch('abcd')); //=> false
-console.log(isMatch('a.js')); //=> true
-console.log(isMatch('a.md')); //=> false
-console.log(isMatch('a/b.js')); //=> false
-```
-
-
-
-## API
-
-### [picomatch](lib/picomatch.js#L31)
-
-Creates a matcher function from one or more glob patterns. The returned function takes a string to match as its first argument, and returns true if the string is a match. The returned matcher function also takes a boolean as the second argument that, when true, returns an object with additional information.
-
-**Params**
-
-* `globs` **{String|Array}**: One or more glob patterns.
-* `options` **{Object=}**
-* `returns` **{Function=}**: Returns a matcher function.
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch(glob[, options]);
-
-const isMatch = picomatch('*.!(*a)');
-console.log(isMatch('a.a')); //=> false
-console.log(isMatch('a.b')); //=> true
-```
-
-**Example without node.js**
-
-For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
-
-```js
-const picomatch = require('picomatch/posix');
-// the same API, defaulting to posix paths
-const isMatch = picomatch('a/*');
-console.log(isMatch('a\\b')); //=> false
-console.log(isMatch('a/b')); //=> true
-
-// you can still configure the matcher function to accept windows paths
-const isMatch = picomatch('a/*', { options: windows });
-console.log(isMatch('a\\b')); //=> true
-console.log(isMatch('a/b')); //=> true
-```
-
-### [.test](lib/picomatch.js#L116)
-
-Test `input` with the given `regex`. This is used by the main `picomatch()` function to test the input string.
-
-**Params**
-
-* `input` **{String}**: String to test.
-* `regex` **{RegExp}**
-* `returns` **{Object}**: Returns an object with matching info.
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch.test(input, regex[, options]);
-
-console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
-// { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
-```
-
-### [.matchBase](lib/picomatch.js#L160)
-
-Match the basename of a filepath.
-
-**Params**
-
-* `input` **{String}**: String to test.
-* `glob` **{RegExp|String}**: Glob pattern or regex created by [.makeRe](#makeRe).
-* `returns` **{Boolean}**
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch.matchBase(input, glob[, options]);
-console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
-```
-
-### [.isMatch](lib/picomatch.js#L182)
-
-Returns true if **any** of the given glob `patterns` match the specified `string`.
-
-**Params**
-
-* **{String|Array}**: str The string to test.
-* **{String|Array}**: patterns One or more glob patterns to use for matching.
-* **{Object}**: See available [options](#options).
-* `returns` **{Boolean}**: Returns true if any patterns match `str`
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch.isMatch(string, patterns[, options]);
-
-console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
-console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
-```
-
-### [.parse](lib/picomatch.js#L198)
-
-Parse a glob pattern to create the source string for a regular expression.
-
-**Params**
-
-* `pattern` **{String}**
-* `options` **{Object}**
-* `returns` **{Object}**: Returns an object with useful properties and output to be used as a regex source string.
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-const result = picomatch.parse(pattern[, options]);
-```
-
-### [.scan](lib/picomatch.js#L230)
-
-Scan a glob pattern to separate the pattern into segments.
-
-**Params**
-
-* `input` **{String}**: Glob pattern to scan.
-* `options` **{Object}**
-* `returns` **{Object}**: Returns an object with
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch.scan(input[, options]);
-
-const result = picomatch.scan('!./foo/*.js');
-console.log(result);
-{ prefix: '!./',
- input: '!./foo/*.js',
- start: 3,
- base: 'foo',
- glob: '*.js',
- isBrace: false,
- isBracket: false,
- isGlob: true,
- isExtglob: false,
- isGlobstar: false,
- negated: true }
-```
-
-### [.compileRe](lib/picomatch.js#L244)
-
-Compile a regular expression from the `state` object returned by the
-[parse()](#parse) method.
-
-**Params**
-
-* `state` **{Object}**
-* `options` **{Object}**
-* `returnOutput` **{Boolean}**: Intended for implementors, this argument allows you to return the raw output from the parser.
-* `returnState` **{Boolean}**: Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
-* `returns` **{RegExp}**
-
-### [.makeRe](lib/picomatch.js#L285)
-
-Create a regular expression from a parsed glob pattern.
-
-**Params**
-
-* `state` **{String}**: The object returned from the `.parse` method.
-* `options` **{Object}**
-* `returnOutput` **{Boolean}**: Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
-* `returnState` **{Boolean}**: Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
-* `returns` **{RegExp}**: Returns a regex created from the given pattern.
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-const state = picomatch.parse('*.js');
-// picomatch.compileRe(state[, options]);
-
-console.log(picomatch.compileRe(state));
-//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
-```
-
-### [.toRegex](lib/picomatch.js#L320)
-
-Create a regular expression from the given regex source string.
-
-**Params**
-
-* `source` **{String}**: Regular expression source string.
-* `options` **{Object}**
-* `returns` **{RegExp}**
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-// picomatch.toRegex(source[, options]);
-
-const { output } = picomatch.parse('*.js');
-console.log(picomatch.toRegex(output));
-//=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
-```
-
-
-
-## Options
-
-### Picomatch options
-
-The following options may be used with the main `picomatch()` function or any of the methods on the picomatch API.
-
-| **Option** | **Type** | **Default value** | **Description** |
-| --- | --- | --- | --- |
-| `basename` | `boolean` | `false` | If set, then patterns without slashes will be matched against the basename of the path if it contains slashes. For example, `a?b` would match the path `/xyz/123/acb`, but not `/xyz/acb/123`. |
-| `bash` | `boolean` | `false` | Follow bash matching rules more strictly - disallows backslashes as escape characters, and treats single stars as globstars (`**`). |
-| `capture` | `boolean` | `undefined` | Return regex matches in supporting methods. |
-| `contains` | `boolean` | `undefined` | Allows glob to match any part of the given string(s). |
-| `cwd` | `string` | `process.cwd()` | Current working directory. Used by `picomatch.split()` |
-| `debug` | `boolean` | `undefined` | Debug regular expressions when an error is thrown. |
-| `dot` | `boolean` | `false` | Enable dotfile matching. By default, dotfiles are ignored unless a `.` is explicitly defined in the pattern, or `options.dot` is true |
-| `expandRange` | `function` | `undefined` | Custom function for expanding ranges in brace patterns, such as `{a..z}`. The function receives the range values as two arguments, and it must return a string to be used in the generated regex. It's recommended that returned strings be wrapped in parentheses. |
-| `failglob` | `boolean` | `false` | Throws an error if no matches are found. Based on the bash option of the same name. |
-| `fastpaths` | `boolean` | `true` | To speed up processing, full parsing is skipped for a handful common glob patterns. Disable this behavior by setting this option to `false`. |
-| `flags` | `string` | `undefined` | Regex flags to use in the generated regex. If defined, the `nocase` option will be overridden. |
-| [format](#optionsformat) | `function` | `undefined` | Custom function for formatting the returned string. This is useful for removing leading slashes, converting Windows paths to Posix paths, etc. |
-| `ignore` | `array\|string` | `undefined` | One or more glob patterns for excluding strings that should not be matched from the result. |
-| `keepQuotes` | `boolean` | `false` | Retain quotes in the generated regex, since quotes may also be used as an alternative to backslashes. |
-| `literalBrackets` | `boolean` | `undefined` | When `true`, brackets in the glob pattern will be escaped so that only literal brackets will be matched. |
-| `matchBase` | `boolean` | `false` | Alias for `basename` |
-| `maxLength` | `boolean` | `65536` | Limit the max length of the input string. An error is thrown if the input string is longer than this value. |
-| `nobrace` | `boolean` | `false` | Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters. |
-| `nobracket` | `boolean` | `undefined` | Disable matching with regex brackets. |
-| `nocase` | `boolean` | `false` | Make matching case-insensitive. Equivalent to the regex `i` flag. Note that this option is overridden by the `flags` option. |
-| `nodupes` | `boolean` | `true` | Deprecated, use `nounique` instead. This option will be removed in a future major release. By default duplicates are removed. Disable uniquification by setting this option to false. |
-| `noext` | `boolean` | `false` | Alias for `noextglob` |
-| `noextglob` | `boolean` | `false` | Disable support for matching with extglobs (like `+(a\|b)`) |
-| `noglobstar` | `boolean` | `false` | Disable support for matching nested directories with globstars (`**`) |
-| `nonegate` | `boolean` | `false` | Disable support for negating with leading `!` |
-| `noquantifiers` | `boolean` | `false` | Disable support for regex quantifiers (like `a{1,2}`) and treat them as brace patterns to be expanded. |
-| [onIgnore](#optionsonIgnore) | `function` | `undefined` | Function to be called on ignored items. |
-| [onMatch](#optionsonMatch) | `function` | `undefined` | Function to be called on matched items. |
-| [onResult](#optionsonResult) | `function` | `undefined` | Function to be called on all items, regardless of whether or not they are matched or ignored. |
-| `posix` | `boolean` | `false` | Support POSIX character classes ("posix brackets"). |
-| `posixSlashes` | `boolean` | `undefined` | Convert all slashes in file paths to forward slashes. This does not convert slashes in the glob pattern itself |
-| `prepend` | `boolean` | `undefined` | String to prepend to the generated regex used for matching. |
-| `regex` | `boolean` | `false` | Use regular expression rules for `+` (instead of matching literal `+`), and for stars that follow closing parentheses or brackets (as in `)*` and `]*`). |
-| `strictBrackets` | `boolean` | `undefined` | Throw an error if brackets, braces, or parens are imbalanced. |
-| `strictSlashes` | `boolean` | `undefined` | When true, picomatch won't match trailing slashes with single stars. |
-| `unescape` | `boolean` | `undefined` | Remove backslashes preceding escaped characters in the glob pattern. By default, backslashes are retained. |
-| `unixify` | `boolean` | `undefined` | Alias for `posixSlashes`, for backwards compatibility. |
-| `windows` | `boolean` | `false` | Also accept backslashes as the path separator. |
-
-### Scan Options
-
-In addition to the main [picomatch options](#picomatch-options), the following options may also be used with the [.scan](#scan) method.
-
-| **Option** | **Type** | **Default value** | **Description** |
-| --- | --- | --- | --- |
-| `tokens` | `boolean` | `false` | When `true`, the returned object will include an array of tokens (objects), representing each path "segment" in the scanned glob pattern |
-| `parts` | `boolean` | `false` | When `true`, the returned object will include an array of strings representing each path "segment" in the scanned glob pattern. This is automatically enabled when `options.tokens` is true |
-
-**Example**
-
-```js
-const picomatch = require('picomatch');
-const result = picomatch.scan('!./foo/*.js', { tokens: true });
-console.log(result);
-// {
-// prefix: '!./',
-// input: '!./foo/*.js',
-// start: 3,
-// base: 'foo',
-// glob: '*.js',
-// isBrace: false,
-// isBracket: false,
-// isGlob: true,
-// isExtglob: false,
-// isGlobstar: false,
-// negated: true,
-// maxDepth: 2,
-// tokens: [
-// { value: '!./', depth: 0, isGlob: false, negated: true, isPrefix: true },
-// { value: 'foo', depth: 1, isGlob: false },
-// { value: '*.js', depth: 1, isGlob: true }
-// ],
-// slashes: [ 2, 6 ],
-// parts: [ 'foo', '*.js' ]
-// }
-```
-
-
-
-### Options Examples
-
-#### options.expandRange
-
-**Type**: `function`
-
-**Default**: `undefined`
-
-Custom function for expanding ranges in brace patterns. The [fill-range](https://github.com/jonschlinkert/fill-range) library is ideal for this purpose, or you can use custom code to do whatever you need.
-
-**Example**
-
-The following example shows how to create a glob that matches a folder
-
-```js
-const fill = require('fill-range');
-const regex = pm.makeRe('foo/{01..25}/bar', {
- expandRange(a, b) {
- return `(${fill(a, b, { toRegex: true })})`;
- }
-});
-
-console.log(regex);
-//=> /^(?:foo\/((?:0[1-9]|1[0-9]|2[0-5]))\/bar)$/
-
-console.log(regex.test('foo/00/bar')) // false
-console.log(regex.test('foo/01/bar')) // true
-console.log(regex.test('foo/10/bar')) // true
-console.log(regex.test('foo/22/bar')) // true
-console.log(regex.test('foo/25/bar')) // true
-console.log(regex.test('foo/26/bar')) // false
-```
-
-#### options.format
-
-**Type**: `function`
-
-**Default**: `undefined`
-
-Custom function for formatting strings before they're matched.
-
-**Example**
-
-```js
-// strip leading './' from strings
-const format = str => str.replace(/^\.\//, '');
-const isMatch = picomatch('foo/*.js', { format });
-console.log(isMatch('./foo/bar.js')); //=> true
-```
-
-#### options.onMatch
-
-```js
-const onMatch = ({ glob, regex, input, output }) => {
- console.log({ glob, regex, input, output });
-};
-
-const isMatch = picomatch('*', { onMatch });
-isMatch('foo');
-isMatch('bar');
-isMatch('baz');
-```
-
-#### options.onIgnore
-
-```js
-const onIgnore = ({ glob, regex, input, output }) => {
- console.log({ glob, regex, input, output });
-};
-
-const isMatch = picomatch('*', { onIgnore, ignore: 'f*' });
-isMatch('foo');
-isMatch('bar');
-isMatch('baz');
-```
-
-#### options.onResult
-
-```js
-const onResult = ({ glob, regex, input, output }) => {
- console.log({ glob, regex, input, output });
-};
-
-const isMatch = picomatch('*', { onResult, ignore: 'f*' });
-isMatch('foo');
-isMatch('bar');
-isMatch('baz');
-```
-
-
-
-
-## Globbing features
-
-* [Basic globbing](#basic-globbing) (Wildcard matching)
-* [Advanced globbing](#advanced-globbing) (extglobs, posix brackets, brace matching)
-
-### Basic globbing
-
-| **Character** | **Description** |
-| --- | --- |
-| `*` | Matches any character zero or more times, excluding path separators. Does _not match_ path separators or hidden files or directories ("dotfiles"), unless explicitly enabled by setting the `dot` option to `true`. |
-| `**` | Matches any character zero or more times, including path separators. Note that `**` will only match path separators (`/`, and `\\` with the `windows` option) when they are the only characters in a path segment. Thus, `foo**/bar` is equivalent to `foo*/bar`, and `foo/a**b/bar` is equivalent to `foo/a*b/bar`, and _more than two_ consecutive stars in a glob path segment are regarded as _a single star_. Thus, `foo/***/bar` is equivalent to `foo/*/bar`. |
-| `?` | Matches any character excluding path separators one time. Does _not match_ path separators or leading dots. |
-| `[abc]` | Matches any characters inside the brackets. For example, `[abc]` would match the characters `a`, `b` or `c`, and nothing else. |
-
-#### Matching behavior vs. Bash
-
-Picomatch's matching features and expected results in unit tests are based on Bash's unit tests and the Bash 4.3 specification, with the following exceptions:
-
-* Bash will match `foo/bar/baz` with `*`. Picomatch only matches nested directories with `**`.
-* Bash greedily matches with negated extglobs. For example, Bash 4.3 says that `!(foo)*` should match `foo` and `foobar`, since the trailing `*` bracktracks to match the preceding pattern. This is very memory-inefficient, and IMHO, also incorrect. Picomatch would return `false` for both `foo` and `foobar`.
-
-
-
-### Advanced globbing
-
-* [extglobs](#extglobs)
-* [POSIX brackets](#posix-brackets)
-* [Braces](#brace-expansion)
-
-#### Extglobs
-
-| **Pattern** | **Description** |
-| --- | --- |
-| `@(pattern)` | Match _only one_ consecutive occurrence of `pattern` |
-| `*(pattern)` | Match _zero or more_ consecutive occurrences of `pattern` |
-| `+(pattern)` | Match _one or more_ consecutive occurrences of `pattern` |
-| `?(pattern)` | Match _zero or **one**_ consecutive occurrences of `pattern` |
-| `!(pattern)` | Match _anything but_ `pattern` |
-
-**Examples**
-
-```js
-const pm = require('picomatch');
-
-// *(pattern) matches ZERO or more of "pattern"
-console.log(pm.isMatch('a', 'a*(z)')); // true
-console.log(pm.isMatch('az', 'a*(z)')); // true
-console.log(pm.isMatch('azzz', 'a*(z)')); // true
-
-// +(pattern) matches ONE or more of "pattern"
-console.log(pm.isMatch('a', 'a+(z)')); // false
-console.log(pm.isMatch('az', 'a+(z)')); // true
-console.log(pm.isMatch('azzz', 'a+(z)')); // true
-
-// supports multiple extglobs
-console.log(pm.isMatch('foo.bar', '!(foo).!(bar)')); // false
-
-// supports nested extglobs
-console.log(pm.isMatch('foo.bar', '!(!(foo)).!(!(bar))')); // true
-```
-
-#### POSIX brackets
-
-POSIX classes are disabled by default. Enable this feature by setting the `posix` option to true.
-
-**Enable POSIX bracket support**
-
-```js
-console.log(pm.makeRe('[[:word:]]+', { posix: true }));
-//=> /^(?:(?=.)[A-Za-z0-9_]+\/?)$/
-```
-
-**Supported POSIX classes**
-
-The following named POSIX bracket expressions are supported:
-
-* `[:alnum:]` - Alphanumeric characters, equ `[a-zA-Z0-9]`
-* `[:alpha:]` - Alphabetical characters, equivalent to `[a-zA-Z]`.
-* `[:ascii:]` - ASCII characters, equivalent to `[\\x00-\\x7F]`.
-* `[:blank:]` - Space and tab characters, equivalent to `[ \\t]`.
-* `[:cntrl:]` - Control characters, equivalent to `[\\x00-\\x1F\\x7F]`.
-* `[:digit:]` - Numerical digits, equivalent to `[0-9]`.
-* `[:graph:]` - Graph characters, equivalent to `[\\x21-\\x7E]`.
-* `[:lower:]` - Lowercase letters, equivalent to `[a-z]`.
-* `[:print:]` - Print characters, equivalent to `[\\x20-\\x7E ]`.
-* `[:punct:]` - Punctuation and symbols, equivalent to `[\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~]`.
-* `[:space:]` - Extended space characters, equivalent to `[ \\t\\r\\n\\v\\f]`.
-* `[:upper:]` - Uppercase letters, equivalent to `[A-Z]`.
-* `[:word:]` - Word characters (letters, numbers and underscores), equivalent to `[A-Za-z0-9_]`.
-* `[:xdigit:]` - Hexadecimal digits, equivalent to `[A-Fa-f0-9]`.
-
-See the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html) for more information.
-
-### Braces
-
-Picomatch does not do brace expansion. For [brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html) and advanced matching with braces, use [micromatch](https://github.com/micromatch/micromatch) instead. Picomatch has very basic support for braces.
-
-### Matching special characters as literals
-
-If you wish to match the following special characters in a filepath, and you want to use these characters in your glob pattern, they must be escaped with backslashes or quotes:
-
-**Special Characters**
-
-Some characters that are used for matching in regular expressions are also regarded as valid file path characters on some platforms.
-
-To match any of the following characters as literals: `$^*+?()[]
-
-Examples:
-
-```js
-console.log(pm.makeRe('foo/bar \\(1\\)'));
-console.log(pm.makeRe('foo/bar \\(1\\)'));
-```
-
-
-
-
-## Library Comparisons
-
-The following table shows which features are supported by [minimatch](https://github.com/isaacs/minimatch), [micromatch](https://github.com/micromatch/micromatch), [picomatch](https://github.com/micromatch/picomatch), [nanomatch](https://github.com/micromatch/nanomatch), [extglob](https://github.com/micromatch/extglob), [braces](https://github.com/micromatch/braces), and [expand-brackets](https://github.com/micromatch/expand-brackets).
-
-| **Feature** | `minimatch` | `micromatch` | `picomatch` | `nanomatch` | `extglob` | `braces` | `expand-brackets` |
-| --- | --- | --- | --- | --- | --- | --- | --- |
-| Wildcard matching (`*?+`) | ✔ | ✔ | ✔ | ✔ | - | - | - |
-| Advancing globbing | ✔ | ✔ | ✔ | - | - | - | - |
-| Brace _matching_ | ✔ | ✔ | ✔ | - | - | ✔ | - |
-| Brace _expansion_ | ✔ | ✔ | - | - | - | ✔ | - |
-| Extglobs | partial | ✔ | ✔ | - | ✔ | - | - |
-| Posix brackets | - | ✔ | ✔ | - | - | - | ✔ |
-| Regular expression syntax | - | ✔ | ✔ | ✔ | ✔ | - | ✔ |
-| File system operations | - | - | - | - | - | - | - |
-
-
-
-
-## Benchmarks
-
-Performance comparison of picomatch and minimatch.
-
-_(Pay special attention to the last three benchmarks. Minimatch freezes on long ranges.)_
-
-```
-# .makeRe star (*)
- picomatch x 4,449,159 ops/sec ±0.24% (97 runs sampled)
- minimatch x 632,772 ops/sec ±0.14% (98 runs sampled)
-
-# .makeRe star; dot=true (*)
- picomatch x 3,500,079 ops/sec ±0.26% (99 runs sampled)
- minimatch x 564,916 ops/sec ±0.23% (96 runs sampled)
-
-# .makeRe globstar (**)
- picomatch x 3,261,000 ops/sec ±0.27% (98 runs sampled)
- minimatch x 1,664,766 ops/sec ±0.20% (100 runs sampled)
-
-# .makeRe globstars (**/**/**)
- picomatch x 3,284,469 ops/sec ±0.18% (97 runs sampled)
- minimatch x 1,435,880 ops/sec ±0.34% (95 runs sampled)
-
-# .makeRe with leading star (*.txt)
- picomatch x 3,100,197 ops/sec ±0.35% (99 runs sampled)
- minimatch x 428,347 ops/sec ±0.42% (94 runs sampled)
-
-# .makeRe - basic braces ({a,b,c}*.txt)
- picomatch x 443,578 ops/sec ±1.33% (89 runs sampled)
- minimatch x 107,143 ops/sec ±0.35% (94 runs sampled)
-
-# .makeRe - short ranges ({a..z}*.txt)
- picomatch x 415,484 ops/sec ±0.76% (96 runs sampled)
- minimatch x 14,299 ops/sec ±0.26% (96 runs sampled)
-
-# .makeRe - medium ranges ({1..100000}*.txt)
- picomatch x 395,020 ops/sec ±0.87% (89 runs sampled)
- minimatch x 2 ops/sec ±4.59% (10 runs sampled)
-
-# .makeRe - long ranges ({1..10000000}*.txt)
- picomatch x 400,036 ops/sec ±0.83% (90 runs sampled)
- minimatch (FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory)
-```
-
-
-
-
-## Philosophies
-
-The goal of this library is to be blazing fast, without compromising on accuracy.
-
-**Accuracy**
-
-The number one of goal of this library is accuracy. However, it's not unusual for different glob implementations to have different rules for matching behavior, even with simple wildcard matching. It gets increasingly more complicated when combinations of different features are combined, like when extglobs are combined with globstars, braces, slashes, and so on: `!(**/{a,b,*/c})`.
-
-Thus, given that there is no canonical glob specification to use as a single source of truth when differences of opinion arise regarding behavior, sometimes we have to implement our best judgement and rely on feedback from users to make improvements.
-
-**Performance**
-
-Although this library performs well in benchmarks, and in most cases it's faster than other popular libraries we benchmarked against, we will always choose accuracy over performance. It's not helpful to anyone if our library is faster at returning the wrong answer.
-
-
-
-
-## About
-
-
-Contributing
-
-Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
-
-Please read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.
-
-
-
-
-Running Tests
-
-Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
-
-```sh
-npm install && npm test
-```
-
-
-
-
-Building docs
-
-_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
-
-To generate the readme, run the following command:
-
-```sh
-npm install -g verbose/verb#dev verb-generate-readme && verb
-```
-
-
-
-### Author
-
-**Jon Schlinkert**
-
-* [GitHub Profile](https://github.com/jonschlinkert)
-* [Twitter Profile](https://twitter.com/jonschlinkert)
-* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
-
-### License
-
-Copyright © 2017-present, [Jon Schlinkert](https://github.com/jonschlinkert).
-Released under the [MIT License](LICENSE).
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/index.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/index.js
deleted file mode 100644
index a753b1d9..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-const pico = require('./lib/picomatch');
-const utils = require('./lib/utils');
-
-function picomatch(glob, options, returnState = false) {
- // default to os.platform()
- if (options && (options.windows === null || options.windows === undefined)) {
- // don't mutate the original options object
- options = { ...options, windows: utils.isWindows() };
- }
-
- return pico(glob, options, returnState);
-}
-
-Object.assign(picomatch, pico);
-module.exports = picomatch;
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js
deleted file mode 100644
index 27b3e20f..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/constants.js
+++ /dev/null
@@ -1,179 +0,0 @@
-'use strict';
-
-const WIN_SLASH = '\\\\/';
-const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
-
-/**
- * Posix glob regex
- */
-
-const DOT_LITERAL = '\\.';
-const PLUS_LITERAL = '\\+';
-const QMARK_LITERAL = '\\?';
-const SLASH_LITERAL = '\\/';
-const ONE_CHAR = '(?=.)';
-const QMARK = '[^/]';
-const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
-const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
-const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
-const NO_DOT = `(?!${DOT_LITERAL})`;
-const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
-const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
-const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
-const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
-const STAR = `${QMARK}*?`;
-const SEP = '/';
-
-const POSIX_CHARS = {
- DOT_LITERAL,
- PLUS_LITERAL,
- QMARK_LITERAL,
- SLASH_LITERAL,
- ONE_CHAR,
- QMARK,
- END_ANCHOR,
- DOTS_SLASH,
- NO_DOT,
- NO_DOTS,
- NO_DOT_SLASH,
- NO_DOTS_SLASH,
- QMARK_NO_DOT,
- STAR,
- START_ANCHOR,
- SEP
-};
-
-/**
- * Windows glob regex
- */
-
-const WINDOWS_CHARS = {
- ...POSIX_CHARS,
-
- SLASH_LITERAL: `[${WIN_SLASH}]`,
- QMARK: WIN_NO_SLASH,
- STAR: `${WIN_NO_SLASH}*?`,
- DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
- NO_DOT: `(?!${DOT_LITERAL})`,
- NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
- NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
- NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
- QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
- START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
- END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
- SEP: '\\'
-};
-
-/**
- * POSIX Bracket Regex
- */
-
-const POSIX_REGEX_SOURCE = {
- alnum: 'a-zA-Z0-9',
- alpha: 'a-zA-Z',
- ascii: '\\x00-\\x7F',
- blank: ' \\t',
- cntrl: '\\x00-\\x1F\\x7F',
- digit: '0-9',
- graph: '\\x21-\\x7E',
- lower: 'a-z',
- print: '\\x20-\\x7E ',
- punct: '\\-!"#$%&\'()\\*+,./:;<=>?@[\\]^_`{|}~',
- space: ' \\t\\r\\n\\v\\f',
- upper: 'A-Z',
- word: 'A-Za-z0-9_',
- xdigit: 'A-Fa-f0-9'
-};
-
-module.exports = {
- MAX_LENGTH: 1024 * 64,
- POSIX_REGEX_SOURCE,
-
- // regular expressions
- REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
- REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
- REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
- REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
- REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
- REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
-
- // Replace globs with equivalent patterns to reduce parsing time.
- REPLACEMENTS: {
- '***': '*',
- '**/**': '**',
- '**/**/**': '**'
- },
-
- // Digits
- CHAR_0: 48, /* 0 */
- CHAR_9: 57, /* 9 */
-
- // Alphabet chars.
- CHAR_UPPERCASE_A: 65, /* A */
- CHAR_LOWERCASE_A: 97, /* a */
- CHAR_UPPERCASE_Z: 90, /* Z */
- CHAR_LOWERCASE_Z: 122, /* z */
-
- CHAR_LEFT_PARENTHESES: 40, /* ( */
- CHAR_RIGHT_PARENTHESES: 41, /* ) */
-
- CHAR_ASTERISK: 42, /* * */
-
- // Non-alphabetic chars.
- CHAR_AMPERSAND: 38, /* & */
- CHAR_AT: 64, /* @ */
- CHAR_BACKWARD_SLASH: 92, /* \ */
- CHAR_CARRIAGE_RETURN: 13, /* \r */
- CHAR_CIRCUMFLEX_ACCENT: 94, /* ^ */
- CHAR_COLON: 58, /* : */
- CHAR_COMMA: 44, /* , */
- CHAR_DOT: 46, /* . */
- CHAR_DOUBLE_QUOTE: 34, /* " */
- CHAR_EQUAL: 61, /* = */
- CHAR_EXCLAMATION_MARK: 33, /* ! */
- CHAR_FORM_FEED: 12, /* \f */
- CHAR_FORWARD_SLASH: 47, /* / */
- CHAR_GRAVE_ACCENT: 96, /* ` */
- CHAR_HASH: 35, /* # */
- CHAR_HYPHEN_MINUS: 45, /* - */
- CHAR_LEFT_ANGLE_BRACKET: 60, /* < */
- CHAR_LEFT_CURLY_BRACE: 123, /* { */
- CHAR_LEFT_SQUARE_BRACKET: 91, /* [ */
- CHAR_LINE_FEED: 10, /* \n */
- CHAR_NO_BREAK_SPACE: 160, /* \u00A0 */
- CHAR_PERCENT: 37, /* % */
- CHAR_PLUS: 43, /* + */
- CHAR_QUESTION_MARK: 63, /* ? */
- CHAR_RIGHT_ANGLE_BRACKET: 62, /* > */
- CHAR_RIGHT_CURLY_BRACE: 125, /* } */
- CHAR_RIGHT_SQUARE_BRACKET: 93, /* ] */
- CHAR_SEMICOLON: 59, /* ; */
- CHAR_SINGLE_QUOTE: 39, /* ' */
- CHAR_SPACE: 32, /* */
- CHAR_TAB: 9, /* \t */
- CHAR_UNDERSCORE: 95, /* _ */
- CHAR_VERTICAL_LINE: 124, /* | */
- CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, /* \uFEFF */
-
- /**
- * Create EXTGLOB_CHARS
- */
-
- extglobChars(chars) {
- return {
- '!': { type: 'negate', open: '(?:(?!(?:', close: `))${chars.STAR})` },
- '?': { type: 'qmark', open: '(?:', close: ')?' },
- '+': { type: 'plus', open: '(?:', close: ')+' },
- '*': { type: 'star', open: '(?:', close: ')*' },
- '@': { type: 'at', open: '(?:', close: ')' }
- };
- },
-
- /**
- * Create GLOB_CHARS
- */
-
- globChars(win32) {
- return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
- }
-};
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/parse.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/parse.js
deleted file mode 100644
index 8fd8ff49..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/parse.js
+++ /dev/null
@@ -1,1085 +0,0 @@
-'use strict';
-
-const constants = require('./constants');
-const utils = require('./utils');
-
-/**
- * Constants
- */
-
-const {
- MAX_LENGTH,
- POSIX_REGEX_SOURCE,
- REGEX_NON_SPECIAL_CHARS,
- REGEX_SPECIAL_CHARS_BACKREF,
- REPLACEMENTS
-} = constants;
-
-/**
- * Helpers
- */
-
-const expandRange = (args, options) => {
- if (typeof options.expandRange === 'function') {
- return options.expandRange(...args, options);
- }
-
- args.sort();
- const value = `[${args.join('-')}]`;
-
- try {
- /* eslint-disable-next-line no-new */
- new RegExp(value);
- } catch (ex) {
- return args.map(v => utils.escapeRegex(v)).join('..');
- }
-
- return value;
-};
-
-/**
- * Create the message for a syntax error
- */
-
-const syntaxError = (type, char) => {
- return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
-};
-
-/**
- * Parse the given input string.
- * @param {String} input
- * @param {Object} options
- * @return {Object}
- */
-
-const parse = (input, options) => {
- if (typeof input !== 'string') {
- throw new TypeError('Expected a string');
- }
-
- input = REPLACEMENTS[input] || input;
-
- const opts = { ...options };
- const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
-
- let len = input.length;
- if (len > max) {
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
- }
-
- const bos = { type: 'bos', value: '', output: opts.prepend || '' };
- const tokens = [bos];
-
- const capture = opts.capture ? '' : '?:';
-
- // create constants based on platform, for windows or posix
- const PLATFORM_CHARS = constants.globChars(opts.windows);
- const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
-
- const {
- DOT_LITERAL,
- PLUS_LITERAL,
- SLASH_LITERAL,
- ONE_CHAR,
- DOTS_SLASH,
- NO_DOT,
- NO_DOT_SLASH,
- NO_DOTS_SLASH,
- QMARK,
- QMARK_NO_DOT,
- STAR,
- START_ANCHOR
- } = PLATFORM_CHARS;
-
- const globstar = opts => {
- return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
- };
-
- const nodot = opts.dot ? '' : NO_DOT;
- const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
- let star = opts.bash === true ? globstar(opts) : STAR;
-
- if (opts.capture) {
- star = `(${star})`;
- }
-
- // minimatch options support
- if (typeof opts.noext === 'boolean') {
- opts.noextglob = opts.noext;
- }
-
- const state = {
- input,
- index: -1,
- start: 0,
- dot: opts.dot === true,
- consumed: '',
- output: '',
- prefix: '',
- backtrack: false,
- negated: false,
- brackets: 0,
- braces: 0,
- parens: 0,
- quotes: 0,
- globstar: false,
- tokens
- };
-
- input = utils.removePrefix(input, state);
- len = input.length;
-
- const extglobs = [];
- const braces = [];
- const stack = [];
- let prev = bos;
- let value;
-
- /**
- * Tokenizing helpers
- */
-
- const eos = () => state.index === len - 1;
- const peek = state.peek = (n = 1) => input[state.index + n];
- const advance = state.advance = () => input[++state.index] || '';
- const remaining = () => input.slice(state.index + 1);
- const consume = (value = '', num = 0) => {
- state.consumed += value;
- state.index += num;
- };
-
- const append = token => {
- state.output += token.output != null ? token.output : token.value;
- consume(token.value);
- };
-
- const negate = () => {
- let count = 1;
-
- while (peek() === '!' && (peek(2) !== '(' || peek(3) === '?')) {
- advance();
- state.start++;
- count++;
- }
-
- if (count % 2 === 0) {
- return false;
- }
-
- state.negated = true;
- state.start++;
- return true;
- };
-
- const increment = type => {
- state[type]++;
- stack.push(type);
- };
-
- const decrement = type => {
- state[type]--;
- stack.pop();
- };
-
- /**
- * Push tokens onto the tokens array. This helper speeds up
- * tokenizing by 1) helping us avoid backtracking as much as possible,
- * and 2) helping us avoid creating extra tokens when consecutive
- * characters are plain text. This improves performance and simplifies
- * lookbehinds.
- */
-
- const push = tok => {
- if (prev.type === 'globstar') {
- const isBrace = state.braces > 0 && (tok.type === 'comma' || tok.type === 'brace');
- const isExtglob = tok.extglob === true || (extglobs.length && (tok.type === 'pipe' || tok.type === 'paren'));
-
- if (tok.type !== 'slash' && tok.type !== 'paren' && !isBrace && !isExtglob) {
- state.output = state.output.slice(0, -prev.output.length);
- prev.type = 'star';
- prev.value = '*';
- prev.output = star;
- state.output += prev.output;
- }
- }
-
- if (extglobs.length && tok.type !== 'paren') {
- extglobs[extglobs.length - 1].inner += tok.value;
- }
-
- if (tok.value || tok.output) append(tok);
- if (prev && prev.type === 'text' && tok.type === 'text') {
- prev.output = (prev.output || prev.value) + tok.value;
- prev.value += tok.value;
- return;
- }
-
- tok.prev = prev;
- tokens.push(tok);
- prev = tok;
- };
-
- const extglobOpen = (type, value) => {
- const token = { ...EXTGLOB_CHARS[value], conditions: 1, inner: '' };
-
- token.prev = prev;
- token.parens = state.parens;
- token.output = state.output;
- const output = (opts.capture ? '(' : '') + token.open;
-
- increment('parens');
- push({ type, value, output: state.output ? '' : ONE_CHAR });
- push({ type: 'paren', extglob: true, value: advance(), output });
- extglobs.push(token);
- };
-
- const extglobClose = token => {
- let output = token.close + (opts.capture ? ')' : '');
- let rest;
-
- if (token.type === 'negate') {
- let extglobStar = star;
-
- if (token.inner && token.inner.length > 1 && token.inner.includes('/')) {
- extglobStar = globstar(opts);
- }
-
- if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) {
- output = token.close = `)$))${extglobStar}`;
- }
-
- if (token.inner.includes('*') && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
- // Any non-magical string (`.ts`) or even nested expression (`.{ts,tsx}`) can follow after the closing parenthesis.
- // In this case, we need to parse the string and use it in the output of the original pattern.
- // Suitable patterns: `/!(*.d).ts`, `/!(*.d).{ts,tsx}`, `**/!(*-dbg).@(js)`.
- //
- // Disabling the `fastpaths` option due to a problem with parsing strings as `.ts` in the pattern like `**/!(*.d).ts`.
- const expression = parse(rest, { ...options, fastpaths: false }).output;
-
- output = token.close = `)${expression})${extglobStar})`;
- }
-
- if (token.prev.type === 'bos') {
- state.negatedExtglob = true;
- }
- }
-
- push({ type: 'paren', extglob: true, value, output });
- decrement('parens');
- };
-
- /**
- * Fast paths
- */
-
- if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
- let backslashes = false;
-
- let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
- if (first === '\\') {
- backslashes = true;
- return m;
- }
-
- if (first === '?') {
- if (esc) {
- return esc + first + (rest ? QMARK.repeat(rest.length) : '');
- }
- if (index === 0) {
- return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : '');
- }
- return QMARK.repeat(chars.length);
- }
-
- if (first === '.') {
- return DOT_LITERAL.repeat(chars.length);
- }
-
- if (first === '*') {
- if (esc) {
- return esc + first + (rest ? star : '');
- }
- return star;
- }
- return esc ? m : `\\${m}`;
- });
-
- if (backslashes === true) {
- if (opts.unescape === true) {
- output = output.replace(/\\/g, '');
- } else {
- output = output.replace(/\\+/g, m => {
- return m.length % 2 === 0 ? '\\\\' : (m ? '\\' : '');
- });
- }
- }
-
- if (output === input && opts.contains === true) {
- state.output = input;
- return state;
- }
-
- state.output = utils.wrapOutput(output, state, options);
- return state;
- }
-
- /**
- * Tokenize input until we reach end-of-string
- */
-
- while (!eos()) {
- value = advance();
-
- if (value === '\u0000') {
- continue;
- }
-
- /**
- * Escaped characters
- */
-
- if (value === '\\') {
- const next = peek();
-
- if (next === '/' && opts.bash !== true) {
- continue;
- }
-
- if (next === '.' || next === ';') {
- continue;
- }
-
- if (!next) {
- value += '\\';
- push({ type: 'text', value });
- continue;
- }
-
- // collapse slashes to reduce potential for exploits
- const match = /^\\+/.exec(remaining());
- let slashes = 0;
-
- if (match && match[0].length > 2) {
- slashes = match[0].length;
- state.index += slashes;
- if (slashes % 2 !== 0) {
- value += '\\';
- }
- }
-
- if (opts.unescape === true) {
- value = advance();
- } else {
- value += advance();
- }
-
- if (state.brackets === 0) {
- push({ type: 'text', value });
- continue;
- }
- }
-
- /**
- * If we're inside a regex character class, continue
- * until we reach the closing bracket.
- */
-
- if (state.brackets > 0 && (value !== ']' || prev.value === '[' || prev.value === '[^')) {
- if (opts.posix !== false && value === ':') {
- const inner = prev.value.slice(1);
- if (inner.includes('[')) {
- prev.posix = true;
-
- if (inner.includes(':')) {
- const idx = prev.value.lastIndexOf('[');
- const pre = prev.value.slice(0, idx);
- const rest = prev.value.slice(idx + 2);
- const posix = POSIX_REGEX_SOURCE[rest];
- if (posix) {
- prev.value = pre + posix;
- state.backtrack = true;
- advance();
-
- if (!bos.output && tokens.indexOf(prev) === 1) {
- bos.output = ONE_CHAR;
- }
- continue;
- }
- }
- }
- }
-
- if ((value === '[' && peek() !== ':') || (value === '-' && peek() === ']')) {
- value = `\\${value}`;
- }
-
- if (value === ']' && (prev.value === '[' || prev.value === '[^')) {
- value = `\\${value}`;
- }
-
- if (opts.posix === true && value === '!' && prev.value === '[') {
- value = '^';
- }
-
- prev.value += value;
- append({ value });
- continue;
- }
-
- /**
- * If we're inside a quoted string, continue
- * until we reach the closing double quote.
- */
-
- if (state.quotes === 1 && value !== '"') {
- value = utils.escapeRegex(value);
- prev.value += value;
- append({ value });
- continue;
- }
-
- /**
- * Double quotes
- */
-
- if (value === '"') {
- state.quotes = state.quotes === 1 ? 0 : 1;
- if (opts.keepQuotes === true) {
- push({ type: 'text', value });
- }
- continue;
- }
-
- /**
- * Parentheses
- */
-
- if (value === '(') {
- increment('parens');
- push({ type: 'paren', value });
- continue;
- }
-
- if (value === ')') {
- if (state.parens === 0 && opts.strictBrackets === true) {
- throw new SyntaxError(syntaxError('opening', '('));
- }
-
- const extglob = extglobs[extglobs.length - 1];
- if (extglob && state.parens === extglob.parens + 1) {
- extglobClose(extglobs.pop());
- continue;
- }
-
- push({ type: 'paren', value, output: state.parens ? ')' : '\\)' });
- decrement('parens');
- continue;
- }
-
- /**
- * Square brackets
- */
-
- if (value === '[') {
- if (opts.nobracket === true || !remaining().includes(']')) {
- if (opts.nobracket !== true && opts.strictBrackets === true) {
- throw new SyntaxError(syntaxError('closing', ']'));
- }
-
- value = `\\${value}`;
- } else {
- increment('brackets');
- }
-
- push({ type: 'bracket', value });
- continue;
- }
-
- if (value === ']') {
- if (opts.nobracket === true || (prev && prev.type === 'bracket' && prev.value.length === 1)) {
- push({ type: 'text', value, output: `\\${value}` });
- continue;
- }
-
- if (state.brackets === 0) {
- if (opts.strictBrackets === true) {
- throw new SyntaxError(syntaxError('opening', '['));
- }
-
- push({ type: 'text', value, output: `\\${value}` });
- continue;
- }
-
- decrement('brackets');
-
- const prevValue = prev.value.slice(1);
- if (prev.posix !== true && prevValue[0] === '^' && !prevValue.includes('/')) {
- value = `/${value}`;
- }
-
- prev.value += value;
- append({ value });
-
- // when literal brackets are explicitly disabled
- // assume we should match with a regex character class
- if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
- continue;
- }
-
- const escaped = utils.escapeRegex(prev.value);
- state.output = state.output.slice(0, -prev.value.length);
-
- // when literal brackets are explicitly enabled
- // assume we should escape the brackets to match literal characters
- if (opts.literalBrackets === true) {
- state.output += escaped;
- prev.value = escaped;
- continue;
- }
-
- // when the user specifies nothing, try to match both
- prev.value = `(${capture}${escaped}|${prev.value})`;
- state.output += prev.value;
- continue;
- }
-
- /**
- * Braces
- */
-
- if (value === '{' && opts.nobrace !== true) {
- increment('braces');
-
- const open = {
- type: 'brace',
- value,
- output: '(',
- outputIndex: state.output.length,
- tokensIndex: state.tokens.length
- };
-
- braces.push(open);
- push(open);
- continue;
- }
-
- if (value === '}') {
- const brace = braces[braces.length - 1];
-
- if (opts.nobrace === true || !brace) {
- push({ type: 'text', value, output: value });
- continue;
- }
-
- let output = ')';
-
- if (brace.dots === true) {
- const arr = tokens.slice();
- const range = [];
-
- for (let i = arr.length - 1; i >= 0; i--) {
- tokens.pop();
- if (arr[i].type === 'brace') {
- break;
- }
- if (arr[i].type !== 'dots') {
- range.unshift(arr[i].value);
- }
- }
-
- output = expandRange(range, opts);
- state.backtrack = true;
- }
-
- if (brace.comma !== true && brace.dots !== true) {
- const out = state.output.slice(0, brace.outputIndex);
- const toks = state.tokens.slice(brace.tokensIndex);
- brace.value = brace.output = '\\{';
- value = output = '\\}';
- state.output = out;
- for (const t of toks) {
- state.output += (t.output || t.value);
- }
- }
-
- push({ type: 'brace', value, output });
- decrement('braces');
- braces.pop();
- continue;
- }
-
- /**
- * Pipes
- */
-
- if (value === '|') {
- if (extglobs.length > 0) {
- extglobs[extglobs.length - 1].conditions++;
- }
- push({ type: 'text', value });
- continue;
- }
-
- /**
- * Commas
- */
-
- if (value === ',') {
- let output = value;
-
- const brace = braces[braces.length - 1];
- if (brace && stack[stack.length - 1] === 'braces') {
- brace.comma = true;
- output = '|';
- }
-
- push({ type: 'comma', value, output });
- continue;
- }
-
- /**
- * Slashes
- */
-
- if (value === '/') {
- // if the beginning of the glob is "./", advance the start
- // to the current index, and don't add the "./" characters
- // to the state. This greatly simplifies lookbehinds when
- // checking for BOS characters like "!" and "." (not "./")
- if (prev.type === 'dot' && state.index === state.start + 1) {
- state.start = state.index + 1;
- state.consumed = '';
- state.output = '';
- tokens.pop();
- prev = bos; // reset "prev" to the first token
- continue;
- }
-
- push({ type: 'slash', value, output: SLASH_LITERAL });
- continue;
- }
-
- /**
- * Dots
- */
-
- if (value === '.') {
- if (state.braces > 0 && prev.type === 'dot') {
- if (prev.value === '.') prev.output = DOT_LITERAL;
- const brace = braces[braces.length - 1];
- prev.type = 'dots';
- prev.output += value;
- prev.value += value;
- brace.dots = true;
- continue;
- }
-
- if ((state.braces + state.parens) === 0 && prev.type !== 'bos' && prev.type !== 'slash') {
- push({ type: 'text', value, output: DOT_LITERAL });
- continue;
- }
-
- push({ type: 'dot', value, output: DOT_LITERAL });
- continue;
- }
-
- /**
- * Question marks
- */
-
- if (value === '?') {
- const isGroup = prev && prev.value === '(';
- if (!isGroup && opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
- extglobOpen('qmark', value);
- continue;
- }
-
- if (prev && prev.type === 'paren') {
- const next = peek();
- let output = value;
-
- if ((prev.value === '(' && !/[!=<:]/.test(next)) || (next === '<' && !/<([!=]|\w+>)/.test(remaining()))) {
- output = `\\${value}`;
- }
-
- push({ type: 'text', value, output });
- continue;
- }
-
- if (opts.dot !== true && (prev.type === 'slash' || prev.type === 'bos')) {
- push({ type: 'qmark', value, output: QMARK_NO_DOT });
- continue;
- }
-
- push({ type: 'qmark', value, output: QMARK });
- continue;
- }
-
- /**
- * Exclamation
- */
-
- if (value === '!') {
- if (opts.noextglob !== true && peek() === '(') {
- if (peek(2) !== '?' || !/[!=<:]/.test(peek(3))) {
- extglobOpen('negate', value);
- continue;
- }
- }
-
- if (opts.nonegate !== true && state.index === 0) {
- negate();
- continue;
- }
- }
-
- /**
- * Plus
- */
-
- if (value === '+') {
- if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
- extglobOpen('plus', value);
- continue;
- }
-
- if ((prev && prev.value === '(') || opts.regex === false) {
- push({ type: 'plus', value, output: PLUS_LITERAL });
- continue;
- }
-
- if ((prev && (prev.type === 'bracket' || prev.type === 'paren' || prev.type === 'brace')) || state.parens > 0) {
- push({ type: 'plus', value });
- continue;
- }
-
- push({ type: 'plus', value: PLUS_LITERAL });
- continue;
- }
-
- /**
- * Plain text
- */
-
- if (value === '@') {
- if (opts.noextglob !== true && peek() === '(' && peek(2) !== '?') {
- push({ type: 'at', extglob: true, value, output: '' });
- continue;
- }
-
- push({ type: 'text', value });
- continue;
- }
-
- /**
- * Plain text
- */
-
- if (value !== '*') {
- if (value === '$' || value === '^') {
- value = `\\${value}`;
- }
-
- const match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
- if (match) {
- value += match[0];
- state.index += match[0].length;
- }
-
- push({ type: 'text', value });
- continue;
- }
-
- /**
- * Stars
- */
-
- if (prev && (prev.type === 'globstar' || prev.star === true)) {
- prev.type = 'star';
- prev.star = true;
- prev.value += value;
- prev.output = star;
- state.backtrack = true;
- state.globstar = true;
- consume(value);
- continue;
- }
-
- let rest = remaining();
- if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
- extglobOpen('star', value);
- continue;
- }
-
- if (prev.type === 'star') {
- if (opts.noglobstar === true) {
- consume(value);
- continue;
- }
-
- const prior = prev.prev;
- const before = prior.prev;
- const isStart = prior.type === 'slash' || prior.type === 'bos';
- const afterStar = before && (before.type === 'star' || before.type === 'globstar');
-
- if (opts.bash === true && (!isStart || (rest[0] && rest[0] !== '/'))) {
- push({ type: 'star', value, output: '' });
- continue;
- }
-
- const isBrace = state.braces > 0 && (prior.type === 'comma' || prior.type === 'brace');
- const isExtglob = extglobs.length && (prior.type === 'pipe' || prior.type === 'paren');
- if (!isStart && prior.type !== 'paren' && !isBrace && !isExtglob) {
- push({ type: 'star', value, output: '' });
- continue;
- }
-
- // strip consecutive `/**/`
- while (rest.slice(0, 3) === '/**') {
- const after = input[state.index + 4];
- if (after && after !== '/') {
- break;
- }
- rest = rest.slice(3);
- consume('/**', 3);
- }
-
- if (prior.type === 'bos' && eos()) {
- prev.type = 'globstar';
- prev.value += value;
- prev.output = globstar(opts);
- state.output = prev.output;
- state.globstar = true;
- consume(value);
- continue;
- }
-
- if (prior.type === 'slash' && prior.prev.type !== 'bos' && !afterStar && eos()) {
- state.output = state.output.slice(0, -(prior.output + prev.output).length);
- prior.output = `(?:${prior.output}`;
-
- prev.type = 'globstar';
- prev.output = globstar(opts) + (opts.strictSlashes ? ')' : '|$)');
- prev.value += value;
- state.globstar = true;
- state.output += prior.output + prev.output;
- consume(value);
- continue;
- }
-
- if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
- const end = rest[1] !== void 0 ? '|$' : '';
-
- state.output = state.output.slice(0, -(prior.output + prev.output).length);
- prior.output = `(?:${prior.output}`;
-
- prev.type = 'globstar';
- prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
- prev.value += value;
-
- state.output += prior.output + prev.output;
- state.globstar = true;
-
- consume(value + advance());
-
- push({ type: 'slash', value: '/', output: '' });
- continue;
- }
-
- if (prior.type === 'bos' && rest[0] === '/') {
- prev.type = 'globstar';
- prev.value += value;
- prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
- state.output = prev.output;
- state.globstar = true;
- consume(value + advance());
- push({ type: 'slash', value: '/', output: '' });
- continue;
- }
-
- // remove single star from output
- state.output = state.output.slice(0, -prev.output.length);
-
- // reset previous token to globstar
- prev.type = 'globstar';
- prev.output = globstar(opts);
- prev.value += value;
-
- // reset output with globstar
- state.output += prev.output;
- state.globstar = true;
- consume(value);
- continue;
- }
-
- const token = { type: 'star', value, output: star };
-
- if (opts.bash === true) {
- token.output = '.*?';
- if (prev.type === 'bos' || prev.type === 'slash') {
- token.output = nodot + token.output;
- }
- push(token);
- continue;
- }
-
- if (prev && (prev.type === 'bracket' || prev.type === 'paren') && opts.regex === true) {
- token.output = value;
- push(token);
- continue;
- }
-
- if (state.index === state.start || prev.type === 'slash' || prev.type === 'dot') {
- if (prev.type === 'dot') {
- state.output += NO_DOT_SLASH;
- prev.output += NO_DOT_SLASH;
-
- } else if (opts.dot === true) {
- state.output += NO_DOTS_SLASH;
- prev.output += NO_DOTS_SLASH;
-
- } else {
- state.output += nodot;
- prev.output += nodot;
- }
-
- if (peek() !== '*') {
- state.output += ONE_CHAR;
- prev.output += ONE_CHAR;
- }
- }
-
- push(token);
- }
-
- while (state.brackets > 0) {
- if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ']'));
- state.output = utils.escapeLast(state.output, '[');
- decrement('brackets');
- }
-
- while (state.parens > 0) {
- if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', ')'));
- state.output = utils.escapeLast(state.output, '(');
- decrement('parens');
- }
-
- while (state.braces > 0) {
- if (opts.strictBrackets === true) throw new SyntaxError(syntaxError('closing', '}'));
- state.output = utils.escapeLast(state.output, '{');
- decrement('braces');
- }
-
- if (opts.strictSlashes !== true && (prev.type === 'star' || prev.type === 'bracket')) {
- push({ type: 'maybe_slash', value: '', output: `${SLASH_LITERAL}?` });
- }
-
- // rebuild the output if we had to backtrack at any point
- if (state.backtrack === true) {
- state.output = '';
-
- for (const token of state.tokens) {
- state.output += token.output != null ? token.output : token.value;
-
- if (token.suffix) {
- state.output += token.suffix;
- }
- }
- }
-
- return state;
-};
-
-/**
- * Fast paths for creating regular expressions for common glob patterns.
- * This can significantly speed up processing and has very little downside
- * impact when none of the fast paths match.
- */
-
-parse.fastpaths = (input, options) => {
- const opts = { ...options };
- const max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
- const len = input.length;
- if (len > max) {
- throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
- }
-
- input = REPLACEMENTS[input] || input;
-
- // create constants based on platform, for windows or posix
- const {
- DOT_LITERAL,
- SLASH_LITERAL,
- ONE_CHAR,
- DOTS_SLASH,
- NO_DOT,
- NO_DOTS,
- NO_DOTS_SLASH,
- STAR,
- START_ANCHOR
- } = constants.globChars(opts.windows);
-
- const nodot = opts.dot ? NO_DOTS : NO_DOT;
- const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
- const capture = opts.capture ? '' : '?:';
- const state = { negated: false, prefix: '' };
- let star = opts.bash === true ? '.*?' : STAR;
-
- if (opts.capture) {
- star = `(${star})`;
- }
-
- const globstar = opts => {
- if (opts.noglobstar === true) return star;
- return `(${capture}(?:(?!${START_ANCHOR}${opts.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
- };
-
- const create = str => {
- switch (str) {
- case '*':
- return `${nodot}${ONE_CHAR}${star}`;
-
- case '.*':
- return `${DOT_LITERAL}${ONE_CHAR}${star}`;
-
- case '*.*':
- return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
-
- case '*/*':
- return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
-
- case '**':
- return nodot + globstar(opts);
-
- case '**/*':
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
-
- case '**/*.*':
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
-
- case '**/.*':
- return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
-
- default: {
- const match = /^(.*?)\.(\w+)$/.exec(str);
- if (!match) return;
-
- const source = create(match[1]);
- if (!source) return;
-
- return source + DOT_LITERAL + match[2];
- }
- }
- };
-
- const output = utils.removePrefix(input, state);
- let source = create(output);
-
- if (source && opts.strictSlashes !== true) {
- source += `${SLASH_LITERAL}?`;
- }
-
- return source;
-};
-
-module.exports = parse;
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/picomatch.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/picomatch.js
deleted file mode 100644
index d0ebd9f1..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/picomatch.js
+++ /dev/null
@@ -1,341 +0,0 @@
-'use strict';
-
-const scan = require('./scan');
-const parse = require('./parse');
-const utils = require('./utils');
-const constants = require('./constants');
-const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
-
-/**
- * Creates a matcher function from one or more glob patterns. The
- * returned function takes a string to match as its first argument,
- * and returns true if the string is a match. The returned matcher
- * function also takes a boolean as the second argument that, when true,
- * returns an object with additional information.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch(glob[, options]);
- *
- * const isMatch = picomatch('*.!(*a)');
- * console.log(isMatch('a.a')); //=> false
- * console.log(isMatch('a.b')); //=> true
- * ```
- * @name picomatch
- * @param {String|Array} `globs` One or more glob patterns.
- * @param {Object=} `options`
- * @return {Function=} Returns a matcher function.
- * @api public
- */
-
-const picomatch = (glob, options, returnState = false) => {
- if (Array.isArray(glob)) {
- const fns = glob.map(input => picomatch(input, options, returnState));
- const arrayMatcher = str => {
- for (const isMatch of fns) {
- const state = isMatch(str);
- if (state) return state;
- }
- return false;
- };
- return arrayMatcher;
- }
-
- const isState = isObject(glob) && glob.tokens && glob.input;
-
- if (glob === '' || (typeof glob !== 'string' && !isState)) {
- throw new TypeError('Expected pattern to be a non-empty string');
- }
-
- const opts = options || {};
- const posix = opts.windows;
- const regex = isState
- ? picomatch.compileRe(glob, options)
- : picomatch.makeRe(glob, options, false, true);
-
- const state = regex.state;
- delete regex.state;
-
- let isIgnored = () => false;
- if (opts.ignore) {
- const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
- isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
- }
-
- const matcher = (input, returnObject = false) => {
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
- const result = { glob, state, regex, posix, input, output, match, isMatch };
-
- if (typeof opts.onResult === 'function') {
- opts.onResult(result);
- }
-
- if (isMatch === false) {
- result.isMatch = false;
- return returnObject ? result : false;
- }
-
- if (isIgnored(input)) {
- if (typeof opts.onIgnore === 'function') {
- opts.onIgnore(result);
- }
- result.isMatch = false;
- return returnObject ? result : false;
- }
-
- if (typeof opts.onMatch === 'function') {
- opts.onMatch(result);
- }
- return returnObject ? result : true;
- };
-
- if (returnState) {
- matcher.state = state;
- }
-
- return matcher;
-};
-
-/**
- * Test `input` with the given `regex`. This is used by the main
- * `picomatch()` function to test the input string.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch.test(input, regex[, options]);
- *
- * console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
- * // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
- * ```
- * @param {String} `input` String to test.
- * @param {RegExp} `regex`
- * @return {Object} Returns an object with matching info.
- * @api public
- */
-
-picomatch.test = (input, regex, options, { glob, posix } = {}) => {
- if (typeof input !== 'string') {
- throw new TypeError('Expected input to be a string');
- }
-
- if (input === '') {
- return { isMatch: false, output: '' };
- }
-
- const opts = options || {};
- const format = opts.format || (posix ? utils.toPosixSlashes : null);
- let match = input === glob;
- let output = (match && format) ? format(input) : input;
-
- if (match === false) {
- output = format ? format(input) : input;
- match = output === glob;
- }
-
- if (match === false || opts.capture === true) {
- if (opts.matchBase === true || opts.basename === true) {
- match = picomatch.matchBase(input, regex, options, posix);
- } else {
- match = regex.exec(output);
- }
- }
-
- return { isMatch: Boolean(match), match, output };
-};
-
-/**
- * Match the basename of a filepath.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch.matchBase(input, glob[, options]);
- * console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
- * ```
- * @param {String} `input` String to test.
- * @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
- * @return {Boolean}
- * @api public
- */
-
-picomatch.matchBase = (input, glob, options) => {
- const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
- return regex.test(utils.basename(input));
-};
-
-/**
- * Returns true if **any** of the given glob `patterns` match the specified `string`.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch.isMatch(string, patterns[, options]);
- *
- * console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
- * console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
- * ```
- * @param {String|Array} str The string to test.
- * @param {String|Array} patterns One or more glob patterns to use for matching.
- * @param {Object} [options] See available [options](#options).
- * @return {Boolean} Returns true if any patterns match `str`
- * @api public
- */
-
-picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
-
-/**
- * Parse a glob pattern to create the source string for a regular
- * expression.
- *
- * ```js
- * const picomatch = require('picomatch');
- * const result = picomatch.parse(pattern[, options]);
- * ```
- * @param {String} `pattern`
- * @param {Object} `options`
- * @return {Object} Returns an object with useful properties and output to be used as a regex source string.
- * @api public
- */
-
-picomatch.parse = (pattern, options) => {
- if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options));
- return parse(pattern, { ...options, fastpaths: false });
-};
-
-/**
- * Scan a glob pattern to separate the pattern into segments.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch.scan(input[, options]);
- *
- * const result = picomatch.scan('!./foo/*.js');
- * console.log(result);
- * { prefix: '!./',
- * input: '!./foo/*.js',
- * start: 3,
- * base: 'foo',
- * glob: '*.js',
- * isBrace: false,
- * isBracket: false,
- * isGlob: true,
- * isExtglob: false,
- * isGlobstar: false,
- * negated: true }
- * ```
- * @param {String} `input` Glob pattern to scan.
- * @param {Object} `options`
- * @return {Object} Returns an object with
- * @api public
- */
-
-picomatch.scan = (input, options) => scan(input, options);
-
-/**
- * Compile a regular expression from the `state` object returned by the
- * [parse()](#parse) method.
- *
- * @param {Object} `state`
- * @param {Object} `options`
- * @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
- * @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
- * @return {RegExp}
- * @api public
- */
-
-picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
- if (returnOutput === true) {
- return state.output;
- }
-
- const opts = options || {};
- const prepend = opts.contains ? '' : '^';
- const append = opts.contains ? '' : '$';
-
- let source = `${prepend}(?:${state.output})${append}`;
- if (state && state.negated === true) {
- source = `^(?!${source}).*$`;
- }
-
- const regex = picomatch.toRegex(source, options);
- if (returnState === true) {
- regex.state = state;
- }
-
- return regex;
-};
-
-/**
- * Create a regular expression from a parsed glob pattern.
- *
- * ```js
- * const picomatch = require('picomatch');
- * const state = picomatch.parse('*.js');
- * // picomatch.compileRe(state[, options]);
- *
- * console.log(picomatch.compileRe(state));
- * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
- * ```
- * @param {String} `state` The object returned from the `.parse` method.
- * @param {Object} `options`
- * @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
- * @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
- * @return {RegExp} Returns a regex created from the given pattern.
- * @api public
- */
-
-picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
- if (!input || typeof input !== 'string') {
- throw new TypeError('Expected a non-empty string');
- }
-
- let parsed = { negated: false, fastpaths: true };
-
- if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
- parsed.output = parse.fastpaths(input, options);
- }
-
- if (!parsed.output) {
- parsed = parse(input, options);
- }
-
- return picomatch.compileRe(parsed, options, returnOutput, returnState);
-};
-
-/**
- * Create a regular expression from the given regex source string.
- *
- * ```js
- * const picomatch = require('picomatch');
- * // picomatch.toRegex(source[, options]);
- *
- * const { output } = picomatch.parse('*.js');
- * console.log(picomatch.toRegex(output));
- * //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
- * ```
- * @param {String} `source` Regular expression source string.
- * @param {Object} `options`
- * @return {RegExp}
- * @api public
- */
-
-picomatch.toRegex = (source, options) => {
- try {
- const opts = options || {};
- return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
- } catch (err) {
- if (options && options.debug === true) throw err;
- return /$^/;
- }
-};
-
-/**
- * Picomatch constants.
- * @return {Object}
- */
-
-picomatch.constants = constants;
-
-/**
- * Expose "picomatch"
- */
-
-module.exports = picomatch;
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/scan.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/scan.js
deleted file mode 100644
index e59cd7a1..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/scan.js
+++ /dev/null
@@ -1,391 +0,0 @@
-'use strict';
-
-const utils = require('./utils');
-const {
- CHAR_ASTERISK, /* * */
- CHAR_AT, /* @ */
- CHAR_BACKWARD_SLASH, /* \ */
- CHAR_COMMA, /* , */
- CHAR_DOT, /* . */
- CHAR_EXCLAMATION_MARK, /* ! */
- CHAR_FORWARD_SLASH, /* / */
- CHAR_LEFT_CURLY_BRACE, /* { */
- CHAR_LEFT_PARENTHESES, /* ( */
- CHAR_LEFT_SQUARE_BRACKET, /* [ */
- CHAR_PLUS, /* + */
- CHAR_QUESTION_MARK, /* ? */
- CHAR_RIGHT_CURLY_BRACE, /* } */
- CHAR_RIGHT_PARENTHESES, /* ) */
- CHAR_RIGHT_SQUARE_BRACKET /* ] */
-} = require('./constants');
-
-const isPathSeparator = code => {
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
-};
-
-const depth = token => {
- if (token.isPrefix !== true) {
- token.depth = token.isGlobstar ? Infinity : 1;
- }
-};
-
-/**
- * Quickly scans a glob pattern and returns an object with a handful of
- * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
- * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
- * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
- *
- * ```js
- * const pm = require('picomatch');
- * console.log(pm.scan('foo/bar/*.js'));
- * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
- * ```
- * @param {String} `str`
- * @param {Object} `options`
- * @return {Object} Returns an object with tokens and regex source string.
- * @api public
- */
-
-const scan = (input, options) => {
- const opts = options || {};
-
- const length = input.length - 1;
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
- const slashes = [];
- const tokens = [];
- const parts = [];
-
- let str = input;
- let index = -1;
- let start = 0;
- let lastIndex = 0;
- let isBrace = false;
- let isBracket = false;
- let isGlob = false;
- let isExtglob = false;
- let isGlobstar = false;
- let braceEscaped = false;
- let backslashes = false;
- let negated = false;
- let negatedExtglob = false;
- let finished = false;
- let braces = 0;
- let prev;
- let code;
- let token = { value: '', depth: 0, isGlob: false };
-
- const eos = () => index >= length;
- const peek = () => str.charCodeAt(index + 1);
- const advance = () => {
- prev = code;
- return str.charCodeAt(++index);
- };
-
- while (index < length) {
- code = advance();
- let next;
-
- if (code === CHAR_BACKWARD_SLASH) {
- backslashes = token.backslashes = true;
- code = advance();
-
- if (code === CHAR_LEFT_CURLY_BRACE) {
- braceEscaped = true;
- }
- continue;
- }
-
- if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
- braces++;
-
- while (eos() !== true && (code = advance())) {
- if (code === CHAR_BACKWARD_SLASH) {
- backslashes = token.backslashes = true;
- advance();
- continue;
- }
-
- if (code === CHAR_LEFT_CURLY_BRACE) {
- braces++;
- continue;
- }
-
- if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
- isBrace = token.isBrace = true;
- isGlob = token.isGlob = true;
- finished = true;
-
- if (scanToEnd === true) {
- continue;
- }
-
- break;
- }
-
- if (braceEscaped !== true && code === CHAR_COMMA) {
- isBrace = token.isBrace = true;
- isGlob = token.isGlob = true;
- finished = true;
-
- if (scanToEnd === true) {
- continue;
- }
-
- break;
- }
-
- if (code === CHAR_RIGHT_CURLY_BRACE) {
- braces--;
-
- if (braces === 0) {
- braceEscaped = false;
- isBrace = token.isBrace = true;
- finished = true;
- break;
- }
- }
- }
-
- if (scanToEnd === true) {
- continue;
- }
-
- break;
- }
-
- if (code === CHAR_FORWARD_SLASH) {
- slashes.push(index);
- tokens.push(token);
- token = { value: '', depth: 0, isGlob: false };
-
- if (finished === true) continue;
- if (prev === CHAR_DOT && index === (start + 1)) {
- start += 2;
- continue;
- }
-
- lastIndex = index + 1;
- continue;
- }
-
- if (opts.noext !== true) {
- const isExtglobChar = code === CHAR_PLUS
- || code === CHAR_AT
- || code === CHAR_ASTERISK
- || code === CHAR_QUESTION_MARK
- || code === CHAR_EXCLAMATION_MARK;
-
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
- isGlob = token.isGlob = true;
- isExtglob = token.isExtglob = true;
- finished = true;
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
- negatedExtglob = true;
- }
-
- if (scanToEnd === true) {
- while (eos() !== true && (code = advance())) {
- if (code === CHAR_BACKWARD_SLASH) {
- backslashes = token.backslashes = true;
- code = advance();
- continue;
- }
-
- if (code === CHAR_RIGHT_PARENTHESES) {
- isGlob = token.isGlob = true;
- finished = true;
- break;
- }
- }
- continue;
- }
- break;
- }
- }
-
- if (code === CHAR_ASTERISK) {
- if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
- isGlob = token.isGlob = true;
- finished = true;
-
- if (scanToEnd === true) {
- continue;
- }
- break;
- }
-
- if (code === CHAR_QUESTION_MARK) {
- isGlob = token.isGlob = true;
- finished = true;
-
- if (scanToEnd === true) {
- continue;
- }
- break;
- }
-
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
- while (eos() !== true && (next = advance())) {
- if (next === CHAR_BACKWARD_SLASH) {
- backslashes = token.backslashes = true;
- advance();
- continue;
- }
-
- if (next === CHAR_RIGHT_SQUARE_BRACKET) {
- isBracket = token.isBracket = true;
- isGlob = token.isGlob = true;
- finished = true;
- break;
- }
- }
-
- if (scanToEnd === true) {
- continue;
- }
-
- break;
- }
-
- if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
- negated = token.negated = true;
- start++;
- continue;
- }
-
- if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
- isGlob = token.isGlob = true;
-
- if (scanToEnd === true) {
- while (eos() !== true && (code = advance())) {
- if (code === CHAR_LEFT_PARENTHESES) {
- backslashes = token.backslashes = true;
- code = advance();
- continue;
- }
-
- if (code === CHAR_RIGHT_PARENTHESES) {
- finished = true;
- break;
- }
- }
- continue;
- }
- break;
- }
-
- if (isGlob === true) {
- finished = true;
-
- if (scanToEnd === true) {
- continue;
- }
-
- break;
- }
- }
-
- if (opts.noext === true) {
- isExtglob = false;
- isGlob = false;
- }
-
- let base = str;
- let prefix = '';
- let glob = '';
-
- if (start > 0) {
- prefix = str.slice(0, start);
- str = str.slice(start);
- lastIndex -= start;
- }
-
- if (base && isGlob === true && lastIndex > 0) {
- base = str.slice(0, lastIndex);
- glob = str.slice(lastIndex);
- } else if (isGlob === true) {
- base = '';
- glob = str;
- } else {
- base = str;
- }
-
- if (base && base !== '' && base !== '/' && base !== str) {
- if (isPathSeparator(base.charCodeAt(base.length - 1))) {
- base = base.slice(0, -1);
- }
- }
-
- if (opts.unescape === true) {
- if (glob) glob = utils.removeBackslashes(glob);
-
- if (base && backslashes === true) {
- base = utils.removeBackslashes(base);
- }
- }
-
- const state = {
- prefix,
- input,
- start,
- base,
- glob,
- isBrace,
- isBracket,
- isGlob,
- isExtglob,
- isGlobstar,
- negated,
- negatedExtglob
- };
-
- if (opts.tokens === true) {
- state.maxDepth = 0;
- if (!isPathSeparator(code)) {
- tokens.push(token);
- }
- state.tokens = tokens;
- }
-
- if (opts.parts === true || opts.tokens === true) {
- let prevIndex;
-
- for (let idx = 0; idx < slashes.length; idx++) {
- const n = prevIndex ? prevIndex + 1 : start;
- const i = slashes[idx];
- const value = input.slice(n, i);
- if (opts.tokens) {
- if (idx === 0 && start !== 0) {
- tokens[idx].isPrefix = true;
- tokens[idx].value = prefix;
- } else {
- tokens[idx].value = value;
- }
- depth(tokens[idx]);
- state.maxDepth += tokens[idx].depth;
- }
- if (idx !== 0 || value !== '') {
- parts.push(value);
- }
- prevIndex = i;
- }
-
- if (prevIndex && prevIndex + 1 < input.length) {
- const value = input.slice(prevIndex + 1);
- parts.push(value);
-
- if (opts.tokens) {
- tokens[tokens.length - 1].value = value;
- depth(tokens[tokens.length - 1]);
- state.maxDepth += tokens[tokens.length - 1].depth;
- }
- }
-
- state.slashes = slashes;
- state.parts = parts;
- }
-
- return state;
-};
-
-module.exports = scan;
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/utils.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/utils.js
deleted file mode 100644
index 9c97cae2..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/lib/utils.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/*global navigator*/
-'use strict';
-
-const {
- REGEX_BACKSLASH,
- REGEX_REMOVE_BACKSLASH,
- REGEX_SPECIAL_CHARS,
- REGEX_SPECIAL_CHARS_GLOBAL
-} = require('./constants');
-
-exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
-exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
-exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
-exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
-exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
-
-exports.isWindows = () => {
- if (typeof navigator !== 'undefined' && navigator.platform) {
- const platform = navigator.platform.toLowerCase();
- return platform === 'win32' || platform === 'windows';
- }
-
- if (typeof process !== 'undefined' && process.platform) {
- return process.platform === 'win32';
- }
-
- return false;
-};
-
-exports.removeBackslashes = str => {
- return str.replace(REGEX_REMOVE_BACKSLASH, match => {
- return match === '\\' ? '' : match;
- });
-};
-
-exports.escapeLast = (input, char, lastIdx) => {
- const idx = input.lastIndexOf(char, lastIdx);
- if (idx === -1) return input;
- if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
- return `${input.slice(0, idx)}\\${input.slice(idx)}`;
-};
-
-exports.removePrefix = (input, state = {}) => {
- let output = input;
- if (output.startsWith('./')) {
- output = output.slice(2);
- state.prefix = './';
- }
- return output;
-};
-
-exports.wrapOutput = (input, state = {}, options = {}) => {
- const prepend = options.contains ? '' : '^';
- const append = options.contains ? '' : '$';
-
- let output = `${prepend}(?:${input})${append}`;
- if (state.negated === true) {
- output = `(?:^(?!${output}).*$)`;
- }
- return output;
-};
-
-exports.basename = (path, { windows } = {}) => {
- const segs = path.split(windows ? /[\\/]/ : '/');
- const last = segs[segs.length - 1];
-
- if (last === '') {
- return segs[segs.length - 2];
- }
-
- return last;
-};
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/package.json b/node_modules/@rollup/pluginutils/node_modules/picomatch/package.json
deleted file mode 100644
index 703a83dc..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/package.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "name": "picomatch",
- "description": "Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.",
- "version": "4.0.2",
- "homepage": "https://github.com/micromatch/picomatch",
- "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
- "funding": "https://github.com/sponsors/jonschlinkert",
- "repository": "micromatch/picomatch",
- "bugs": {
- "url": "https://github.com/micromatch/picomatch/issues"
- },
- "license": "MIT",
- "files": [
- "index.js",
- "posix.js",
- "lib"
- ],
- "sideEffects": false,
- "main": "index.js",
- "engines": {
- "node": ">=12"
- },
- "scripts": {
- "lint": "eslint --cache --cache-location node_modules/.cache/.eslintcache --report-unused-disable-directives --ignore-path .gitignore .",
- "mocha": "mocha --reporter dot",
- "test": "npm run lint && npm run mocha",
- "test:ci": "npm run test:cover",
- "test:cover": "nyc npm run mocha"
- },
- "devDependencies": {
- "eslint": "^8.57.0",
- "fill-range": "^7.0.1",
- "gulp-format-md": "^2.0.0",
- "mocha": "^10.4.0",
- "nyc": "^15.1.0",
- "time-require": "github:jonschlinkert/time-require"
- },
- "keywords": [
- "glob",
- "match",
- "picomatch"
- ],
- "nyc": {
- "reporter": [
- "html",
- "lcov",
- "text-summary"
- ]
- },
- "verb": {
- "toc": {
- "render": true,
- "method": "preWrite",
- "maxdepth": 3
- },
- "layout": "empty",
- "tasks": [
- "readme"
- ],
- "plugins": [
- "gulp-format-md"
- ],
- "lint": {
- "reflinks": true
- },
- "related": {
- "list": [
- "braces",
- "micromatch"
- ]
- },
- "reflinks": [
- "braces",
- "expand-brackets",
- "extglob",
- "fill-range",
- "micromatch",
- "minimatch",
- "nanomatch",
- "picomatch"
- ]
- }
-}
diff --git a/node_modules/@rollup/pluginutils/node_modules/picomatch/posix.js b/node_modules/@rollup/pluginutils/node_modules/picomatch/posix.js
deleted file mode 100644
index d2f2bc59..00000000
--- a/node_modules/@rollup/pluginutils/node_modules/picomatch/posix.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = require('./lib/picomatch');
diff --git a/node_modules/@rollup/pluginutils/package.json b/node_modules/@rollup/pluginutils/package.json
deleted file mode 100644
index a3a6318e..00000000
--- a/node_modules/@rollup/pluginutils/package.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "name": "@rollup/pluginutils",
- "version": "5.1.4",
- "publishConfig": {
- "access": "public"
- },
- "description": "A set of utility functions commonly used by Rollup plugins",
- "license": "MIT",
- "repository": {
- "url": "rollup/plugins",
- "directory": "packages/pluginutils"
- },
- "author": "Rich Harris ",
- "homepage": "https://github.com/rollup/plugins/tree/master/packages/pluginutils#readme",
- "bugs": {
- "url": "https://github.com/rollup/plugins/issues"
- },
- "main": "./dist/cjs/index.js",
- "module": "./dist/es/index.js",
- "type": "commonjs",
- "exports": {
- "types": "./types/index.d.ts",
- "import": "./dist/es/index.js",
- "default": "./dist/cjs/index.js"
- },
- "engines": {
- "node": ">=14.0.0"
- },
- "files": [
- "dist",
- "!dist/**/*.map",
- "types",
- "README.md",
- "LICENSE"
- ],
- "keywords": [
- "rollup",
- "plugin",
- "utils"
- ],
- "peerDependencies": {
- "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"
- },
- "peerDependenciesMeta": {
- "rollup": {
- "optional": true
- }
- },
- "dependencies": {
- "@types/estree": "^1.0.0",
- "estree-walker": "^2.0.2",
- "picomatch": "^4.0.2"
- },
- "devDependencies": {
- "@rollup/plugin-commonjs": "^23.0.0",
- "@rollup/plugin-node-resolve": "^15.0.0",
- "@rollup/plugin-typescript": "^9.0.1",
- "@types/node": "^14.18.30",
- "@types/picomatch": "^2.3.0",
- "acorn": "^8.8.0",
- "rollup": "^4.0.0-24",
- "typescript": "^4.8.3"
- },
- "types": "./types/index.d.ts",
- "ava": {
- "extensions": [
- "ts"
- ],
- "require": [
- "ts-node/register"
- ],
- "workerThreads": false,
- "files": [
- "!**/fixtures/**",
- "!**/helpers/**",
- "!**/recipes/**",
- "!**/types.ts"
- ]
- },
- "nyc": {
- "extension": [
- ".js",
- ".ts"
- ]
- },
- "scripts": {
- "build": "rollup -c",
- "ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov",
- "ci:lint": "pnpm build && pnpm lint",
- "ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}",
- "ci:test": "pnpm test -- --verbose",
- "prebuild": "del-cli dist",
- "prerelease": "pnpm build",
- "pretest": "pnpm build --sourcemap",
- "release": "pnpm --workspace-root package:release $(pwd)",
- "test": "ava",
- "test:ts": "tsc --noEmit"
- }
-}
\ No newline at end of file
diff --git a/node_modules/@rollup/pluginutils/types/index.d.ts b/node_modules/@rollup/pluginutils/types/index.d.ts
deleted file mode 100644
index 4bdf3a2a..00000000
--- a/node_modules/@rollup/pluginutils/types/index.d.ts
+++ /dev/null
@@ -1,98 +0,0 @@
-import type { BaseNode } from 'estree';
-
-export interface AttachedScope {
- parent?: AttachedScope;
- isBlockScope: boolean;
- declarations: { [key: string]: boolean };
- addDeclaration(node: BaseNode, isBlockDeclaration: boolean, isVar: boolean): void;
- contains(name: string): boolean;
-}
-
-export interface DataToEsmOptions {
- compact?: boolean;
- /**
- * @desc When this option is set, dataToEsm will generate a named export for keys that
- * are not a valid identifier, by leveraging the "Arbitrary Module Namespace Identifier
- * Names" feature. See: https://github.com/tc39/ecma262/pull/2154
- */
- includeArbitraryNames?: boolean;
- indent?: string;
- namedExports?: boolean;
- objectShorthand?: boolean;
- preferConst?: boolean;
-}
-
-/**
- * A valid `picomatch` glob pattern, or array of patterns.
- */
-export type FilterPattern = ReadonlyArray | string | RegExp | null;
-
-/**
- * Adds an extension to a module ID if one does not exist.
- */
-export function addExtension(filename: string, ext?: string): string;
-
-/**
- * Attaches `Scope` objects to the relevant nodes of an AST.
- * Each `Scope` object has a `scope.contains(name)` method that returns `true`
- * if a given name is defined in the current scope or a parent scope.
- */
-export function attachScopes(ast: BaseNode, propertyName?: string): AttachedScope;
-
-/**
- * Constructs a filter function which can be used to determine whether or not
- * certain modules should be operated upon.
- * @param include If `include` is omitted or has zero length, filter will return `true` by default.
- * @param exclude ID must not match any of the `exclude` patterns.
- * @param options Optionally resolves the patterns against a directory other than `process.cwd()`.
- * If a `string` is specified, then the value will be used as the base directory.
- * Relative paths will be resolved against `process.cwd()` first.
- * If `false`, then the patterns will not be resolved against any directory.
- * This can be useful if you want to create a filter for virtual module names.
- */
-export function createFilter(
- include?: FilterPattern,
- exclude?: FilterPattern,
- options?: { resolve?: string | false | null }
-): (id: string | unknown) => boolean;
-
-/**
- * Transforms objects into tree-shakable ES Module imports.
- * @param data An object to transform into an ES module.
- */
-export function dataToEsm(data: unknown, options?: DataToEsmOptions): string;
-
-/**
- * Extracts the names of all assignment targets based upon specified patterns.
- * @param param An `acorn` AST Node.
- */
-export function extractAssignedNames(param: BaseNode): string[];
-
-/**
- * Constructs a bundle-safe identifier from a `string`.
- */
-export function makeLegalIdentifier(str: string): string;
-
-/**
- * Converts path separators to forward slash.
- */
-export function normalizePath(filename: string): string;
-
-export type AddExtension = typeof addExtension;
-export type AttachScopes = typeof attachScopes;
-export type CreateFilter = typeof createFilter;
-export type ExtractAssignedNames = typeof extractAssignedNames;
-export type MakeLegalIdentifier = typeof makeLegalIdentifier;
-export type NormalizePath = typeof normalizePath;
-export type DataToEsm = typeof dataToEsm;
-
-declare const defaultExport: {
- addExtension: AddExtension;
- attachScopes: AttachScopes;
- createFilter: CreateFilter;
- dataToEsm: DataToEsm;
- extractAssignedNames: ExtractAssignedNames;
- makeLegalIdentifier: MakeLegalIdentifier;
- normalizePath: NormalizePath;
-};
-export default defaultExport;
diff --git a/node_modules/@sveltejs/adapter-vercel/LICENSE b/node_modules/@sveltejs/adapter-static/LICENSE
similarity index 100%
rename from node_modules/@sveltejs/adapter-vercel/LICENSE
rename to node_modules/@sveltejs/adapter-static/LICENSE
diff --git a/node_modules/@sveltejs/adapter-static/README.md b/node_modules/@sveltejs/adapter-static/README.md
new file mode 100644
index 00000000..b612f2aa
--- /dev/null
+++ b/node_modules/@sveltejs/adapter-static/README.md
@@ -0,0 +1,15 @@
+# @sveltejs/adapter-static
+
+[Adapter](https://svelte.dev/docs/kit/adapters) for SvelteKit apps that prerenders your entire site as a collection of static files. It's also possible to create an SPA with it by specifying a fallback page which renders an empty shell. If you'd like to prerender only some pages and not create an SPA for those left out, you will need to use a different adapter together with [the `prerender` option](https://svelte.dev/docs/kit/page-options#prerender).
+
+## Docs
+
+[Docs](https://svelte.dev/docs/kit/adapter-static)
+
+## Changelog
+
+[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md).
+
+## License
+
+[MIT](LICENSE)
diff --git a/node_modules/@sveltejs/adapter-static/index.d.ts b/node_modules/@sveltejs/adapter-static/index.d.ts
new file mode 100644
index 00000000..101e02fd
--- /dev/null
+++ b/node_modules/@sveltejs/adapter-static/index.d.ts
@@ -0,0 +1,11 @@
+import { Adapter } from '@sveltejs/kit';
+
+export interface AdapterOptions {
+ pages?: string;
+ assets?: string;
+ fallback?: string;
+ precompress?: boolean;
+ strict?: boolean;
+}
+
+export default function plugin(options?: AdapterOptions): Adapter;
diff --git a/node_modules/@sveltejs/adapter-static/index.js b/node_modules/@sveltejs/adapter-static/index.js
new file mode 100644
index 00000000..cfeb7fba
--- /dev/null
+++ b/node_modules/@sveltejs/adapter-static/index.js
@@ -0,0 +1,91 @@
+import path from 'node:path';
+import { platforms } from './platforms.js';
+
+/** @type {import('./index.js').default} */
+export default function (options) {
+ return {
+ name: '@sveltejs/adapter-static',
+
+ async adapt(builder) {
+ if (!options?.fallback && builder.config.kit.router?.type !== 'hash') {
+ const dynamic_routes = builder.routes.filter((route) => route.prerender !== true);
+ if (dynamic_routes.length > 0 && options?.strict !== false) {
+ const prefix = path.relative('.', builder.config.kit.files.routes);
+ const has_param_routes = builder.routes.some((route) => route.id.includes('['));
+ const config_option =
+ has_param_routes || JSON.stringify(builder.config.kit.prerender.entries) !== '["*"]'
+ ? ` - adjust the \`prerender.entries\` config option ${
+ has_param_routes
+ ? '(routes with parameters are not part of entry points by default)'
+ : ''
+ } — see https://svelte.dev/docs/kit/configuration#prerender for more info.`
+ : '';
+
+ builder.log.error(
+ `@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic:
+${dynamic_routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')}
+
+You have the following options:
+ - set the \`fallback\` option — see https://svelte.dev/docs/kit/single-page-apps#usage for more info.
+ - add \`export const prerender = true\` to your root \`+layout.js/.ts\` or \`+layout.server.js/.ts\` file. This will try to prerender all pages.
+ - add \`export const prerender = true\` to any \`+server.js/ts\` files that are not fetched by page \`load\` functions.
+${config_option}
+ - pass \`strict: false\` to \`adapter-static\` to ignore this error. Only do this if you are sure you don't need the routes in question in your final app, as they will be unavailable. See https://github.com/sveltejs/kit/tree/main/packages/adapter-static#strict for more info.
+
+If this doesn't help, you may need to use a different adapter. @sveltejs/adapter-static can only be used for sites that don't need a server for dynamic rendering, and can run on just a static file server.
+See https://svelte.dev/docs/kit/page-options#prerender for more details`
+ );
+ throw new Error('Encountered dynamic routes');
+ }
+ }
+
+ const platform = platforms.find((platform) => platform.test());
+
+ if (platform) {
+ if (options) {
+ builder.log.warn(
+ `Detected ${platform.name}. Please remove adapter-static options to enable zero-config mode`
+ );
+ } else {
+ builder.log.info(`Detected ${platform.name}, using zero-config mode`);
+ }
+ }
+
+ const {
+ // @ts-ignore
+ pages = 'build',
+ assets = pages,
+ fallback,
+ precompress
+ } = options ?? platform?.defaults ?? /** @type {import('./index.js').AdapterOptions} */ ({});
+
+ builder.rimraf(assets);
+ builder.rimraf(pages);
+
+ builder.generateEnvModule();
+ builder.writeClient(assets);
+ builder.writePrerendered(pages);
+
+ if (fallback) {
+ await builder.generateFallback(path.join(pages, fallback));
+ }
+
+ if (precompress) {
+ builder.log.minor('Compressing assets and pages');
+ if (pages === assets) {
+ await builder.compress(assets);
+ } else {
+ await Promise.all([builder.compress(assets), builder.compress(pages)]);
+ }
+ }
+
+ if (pages === assets) {
+ builder.log(`Wrote site to "${pages}"`);
+ } else {
+ builder.log(`Wrote pages to "${pages}" and assets to "${assets}"`);
+ }
+
+ if (!options) platform?.done(builder);
+ }
+ };
+}
diff --git a/node_modules/@sveltejs/adapter-vercel/package.json b/node_modules/@sveltejs/adapter-static/package.json
similarity index 57%
rename from node_modules/@sveltejs/adapter-vercel/package.json
rename to node_modules/@sveltejs/adapter-static/package.json
index d6c9e137..68c39542 100644
--- a/node_modules/@sveltejs/adapter-vercel/package.json
+++ b/node_modules/@sveltejs/adapter-static/package.json
@@ -1,19 +1,20 @@
{
- "name": "@sveltejs/adapter-vercel",
- "version": "5.6.3",
- "description": "A SvelteKit adapter that creates a Vercel app",
+ "name": "@sveltejs/adapter-static",
+ "version": "3.0.8",
+ "description": "Adapter for SvelteKit apps that prerenders your entire site as a collection of static files",
"keywords": [
"adapter",
"deploy",
"hosting",
+ "ssg",
+ "static site generation",
"svelte",
- "sveltekit",
- "vercel"
+ "sveltekit"
],
"repository": {
"type": "git",
"url": "https://github.com/sveltejs/kit",
- "directory": "packages/adapter-vercel"
+ "directory": "packages/adapter-static"
},
"license": "MIT",
"homepage": "https://svelte.dev",
@@ -27,30 +28,27 @@
},
"types": "index.d.ts",
"files": [
- "files",
"index.js",
- "utils.js",
"index.d.ts",
- "ambient.d.ts"
+ "platforms.js"
],
- "dependencies": {
- "@vercel/nft": "^0.29.2",
- "esbuild": "^0.24.0"
- },
"devDependencies": {
+ "@playwright/test": "^1.44.1",
"@sveltejs/vite-plugin-svelte": "^5.0.1",
"@types/node": "^18.19.48",
+ "sirv": "^3.0.0",
+ "svelte": "^5.2.9",
"typescript": "^5.3.3",
- "vitest": "^3.0.1",
- "@sveltejs/kit": "^2.17.2"
+ "vite": "^6.0.1",
+ "@sveltejs/kit": "^2.14.0"
},
"peerDependencies": {
- "@sveltejs/kit": "^2.4.0"
+ "@sveltejs/kit": "^2.0.0"
},
"scripts": {
"lint": "prettier --check .",
- "format": "pnpm lint --write",
"check": "tsc",
- "test": "vitest run"
+ "format": "pnpm lint --write",
+ "test": "pnpm -r --workspace-concurrency 1 --filter=\"./test/**\" test"
}
}
\ No newline at end of file
diff --git a/node_modules/@sveltejs/adapter-static/platforms.js b/node_modules/@sveltejs/adapter-static/platforms.js
new file mode 100644
index 00000000..51a6bf0a
--- /dev/null
+++ b/node_modules/@sveltejs/adapter-static/platforms.js
@@ -0,0 +1,76 @@
+import fs from 'node:fs';
+import process from 'node:process';
+
+/**
+ * @typedef {{
+ * name: string;
+ * test: () => boolean;
+ * defaults: import('./index.js').AdapterOptions;
+ * done: (builder: import('@sveltejs/kit').Builder) => void;
+ * }}
+ * Platform */
+
+// This function is duplicated in adapter-vercel
+/** @param {import('@sveltejs/kit').Builder} builder */
+function static_vercel_config(builder) {
+ /** @type {any[]} */
+ const prerendered_redirects = [];
+
+ /** @type {Record} */
+ const overrides = {};
+
+ for (const [src, redirect] of builder.prerendered.redirects) {
+ prerendered_redirects.push({
+ src,
+ headers: {
+ Location: redirect.location
+ },
+ status: redirect.status
+ });
+ }
+
+ for (const [path, page] of builder.prerendered.pages) {
+ if (path.endsWith('/') && path !== '/') {
+ prerendered_redirects.push(
+ { src: path, dest: path.slice(0, -1) },
+ { src: path.slice(0, -1), status: 308, headers: { Location: path } }
+ );
+
+ overrides[page.file] = { path: path.slice(1, -1) };
+ } else {
+ overrides[page.file] = { path: path.slice(1) };
+ }
+ }
+
+ return {
+ version: 3,
+ routes: [
+ ...prerendered_redirects,
+ {
+ src: `/${builder.getAppPath()}/immutable/.+`,
+ headers: {
+ 'cache-control': 'public, immutable, max-age=31536000'
+ }
+ },
+ {
+ handle: 'filesystem'
+ }
+ ],
+ overrides
+ };
+}
+
+/** @type {Platform[]} */
+export const platforms = [
+ {
+ name: 'Vercel',
+ test: () => !!process.env.VERCEL,
+ defaults: {
+ pages: '.vercel/output/static'
+ },
+ done: (builder) => {
+ const config = static_vercel_config(builder);
+ fs.writeFileSync('.vercel/output/config.json', JSON.stringify(config, null, ' '));
+ }
+ }
+];
diff --git a/node_modules/@sveltejs/adapter-vercel/README.md b/node_modules/@sveltejs/adapter-vercel/README.md
deleted file mode 100644
index ce1a3c89..00000000
--- a/node_modules/@sveltejs/adapter-vercel/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# adapter-vercel
-
-A SvelteKit adapter that creates a Vercel app.
-
-## Docs
-
-[Docs](https://svelte.dev/docs/kit/adapter-vercel)
-
-## Changelog
-
-[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/main/packages/adapter-vercel/CHANGELOG.md).
diff --git a/node_modules/@sveltejs/adapter-vercel/ambient.d.ts b/node_modules/@sveltejs/adapter-vercel/ambient.d.ts
deleted file mode 100644
index a106f64e..00000000
--- a/node_modules/@sveltejs/adapter-vercel/ambient.d.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { RequestContext } from './index.js';
-
-declare global {
- namespace App {
- export interface Platform {
- /**
- * `context` is only available in Edge Functions
- */
- context?: RequestContext;
- }
- }
-}
diff --git a/node_modules/@sveltejs/adapter-vercel/files/edge.js b/node_modules/@sveltejs/adapter-vercel/files/edge.js
deleted file mode 100644
index 1098fbf3..00000000
--- a/node_modules/@sveltejs/adapter-vercel/files/edge.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/* eslint-disable n/prefer-global/process --
- Vercel Edge Runtime does not support node:process */
-import { Server } from 'SERVER';
-import { manifest } from 'MANIFEST';
-
-const server = new Server(manifest);
-const initialized = server.init({
- env: /** @type {Record} */ (process.env)
-});
-
-/**
- * @param {Request} request
- * @param {import('../index.js').RequestContext} context
- */
-export default async (request, context) => {
- await initialized;
-
- return server.respond(request, {
- getClientAddress() {
- return /** @type {string} */ (request.headers.get('x-forwarded-for'));
- },
- platform: {
- context
- }
- });
-};
diff --git a/node_modules/@sveltejs/adapter-vercel/files/serverless.js b/node_modules/@sveltejs/adapter-vercel/files/serverless.js
deleted file mode 100644
index a8f774be..00000000
--- a/node_modules/@sveltejs/adapter-vercel/files/serverless.js
+++ /dev/null
@@ -1,47 +0,0 @@
-import { installPolyfills } from '@sveltejs/kit/node/polyfills';
-import { getRequest, setResponse, createReadableStream } from '@sveltejs/kit/node';
-import { Server } from 'SERVER';
-import { manifest } from 'MANIFEST';
-import process from 'node:process';
-
-installPolyfills();
-
-const server = new Server(manifest);
-
-await server.init({
- env: /** @type {Record} */ (process.env),
- read: createReadableStream
-});
-
-const DATA_SUFFIX = '/__data.json';
-
-/**
- * @param {import('http').IncomingMessage} req
- * @param {import('http').ServerResponse} res
- */
-export default async (req, res) => {
- if (req.url) {
- const [path, search] = req.url.split('?');
-
- const params = new URLSearchParams(search);
- let pathname = params.get('__pathname');
-
- if (pathname) {
- params.delete('__pathname');
- // Optional routes' pathname replacements look like `/foo/$1/bar` which means we could end up with an url like /foo//bar
- pathname = pathname.replace(/\/+/g, '/');
- req.url = `${pathname}${path.endsWith(DATA_SUFFIX) ? DATA_SUFFIX : ''}?${params}`;
- }
- }
-
- const request = await getRequest({ base: `https://${req.headers.host}`, request: req });
-
- setResponse(
- res,
- await server.respond(request, {
- getClientAddress() {
- return /** @type {string} */ (request.headers.get('x-forwarded-for'));
- }
- })
- );
-};
diff --git a/node_modules/@sveltejs/adapter-vercel/index.d.ts b/node_modules/@sveltejs/adapter-vercel/index.d.ts
deleted file mode 100644
index ffd6ae11..00000000
--- a/node_modules/@sveltejs/adapter-vercel/index.d.ts
+++ /dev/null
@@ -1,159 +0,0 @@
-import { Adapter } from '@sveltejs/kit';
-import './ambient.js';
-
-export default function plugin(config?: Config): Adapter;
-
-export interface ServerlessConfig {
- /**
- * Whether to use [Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions) (`'edge'`) or [Serverless Functions](https://vercel.com/docs/concepts/functions/serverless-functions) (`'nodejs18.x'`, `'nodejs20.x'` etc).
- * @default Same as the build environment
- */
- runtime?: `nodejs${number}.x`;
- /**
- * To which regions to deploy the app. A list of regions.
- * More info: https://vercel.com/docs/concepts/edge-network/regions
- */
- regions?: string[];
- /**
- * Maximum execution duration (in seconds) that will be allowed for the Serverless Function.
- * Serverless only.
- */
- maxDuration?: number;
- /**
- * Amount of memory (RAM in MB) that will be allocated to the Serverless Function.
- * Serverless only.
- */
- memory?: number;
- /**
- * If `true`, this route will always be deployed as its own separate function
- */
- split?: boolean;
-
- /**
- * [Incremental Static Regeneration](https://vercel.com/docs/concepts/incremental-static-regeneration/overview) configuration.
- * Serverless only.
- */
- isr?:
- | {
- /**
- * Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to `false` means it will never expire.
- */
- expiration: number | false;
- /**
- * Random token that can be provided in the URL to bypass the cached version of the asset, by requesting the asset
- * with a __prerender_bypass= cookie.
- *
- * Making a `GET` or `HEAD` request with `x-prerender-revalidate: ` will force the asset to be re-validated.
- */
- bypassToken?: string;
- /**
- * List of query string parameter names that will be cached independently. If an empty array, query values are not considered for caching. If undefined each unique query value is cached independently
- */
- allowQuery?: string[] | undefined;
- }
- | false;
-}
-
-type ImageFormat = 'image/avif' | 'image/webp';
-
-type RemotePattern = {
- protocol?: 'http' | 'https';
- hostname: string;
- port?: string;
- pathname?: string;
-};
-
-type ImagesConfig = {
- sizes: number[];
- domains: string[];
- remotePatterns?: RemotePattern[];
- minimumCacheTTL?: number; // seconds
- formats?: ImageFormat[];
- dangerouslyAllowSVG?: boolean;
- contentSecurityPolicy?: string;
- contentDispositionType?: string;
-};
-
-export interface EdgeConfig {
- /**
- * Whether to use [Edge Functions](https://vercel.com/docs/concepts/functions/edge-functions) (`'edge'`) or [Serverless Functions](https://vercel.com/docs/concepts/functions/serverless-functions) (`'nodejs18.x'`, `'nodejs20.x'` etc).
- */
- runtime?: 'edge';
- /**
- * To which regions to deploy the app. A list of regions or `'all'`.
- * More info: https://vercel.com/docs/concepts/edge-network/regions
- */
- regions?: string[] | 'all';
- /**
- * List of packages that should not be bundled into the Edge Function.
- * Edge only.
- */
- external?: string[];
- /**
- * If `true`, this route will always be deployed as its own separate function
- */
- split?: boolean;
-}
-
-export type Config = (EdgeConfig | ServerlessConfig) & {
- /**
- * https://vercel.com/docs/build-output-api/v3/configuration#images
- */
- images?: ImagesConfig;
-};
-
-// we copy the RequestContext interface from `@vercel/edge` because that package can't co-exist with `@types/node`.
-// see https://github.com/sveltejs/kit/pull/9280#issuecomment-1452110035
-
-/**
- * An extension to the standard `Request` object that is passed to every Edge Function.
- *
- * @example
- * ```ts
- * import type { RequestContext } from '@vercel/edge';
- *
- * export default async function handler(request: Request, ctx: RequestContext): Promise {
- * // ctx is the RequestContext
- * }
- * ```
- */
-export interface RequestContext {
- /**
- * A method that can be used to keep the function running after a response has been sent.
- * This is useful when you have an async task that you want to keep running even after the
- * response has been sent and the request has ended.
- *
- * @example
- *
- * Sending an internal error to an error tracking service
- *
- * ```ts
- * import type { RequestContext } from '@vercel/edge';
- *
- * export async function handleRequest(request: Request, ctx: RequestContext): Promise {
- * try {
- * return await myFunctionThatReturnsResponse();
- * } catch (e) {
- * ctx.waitUntil((async () => {
- * // report this error to your error tracking service
- * await fetch('https://my-error-tracking-service.com', {
- * method: 'POST',
- * body: JSON.stringify({
- * stack: e.stack,
- * message: e.message,
- * name: e.name,
- * url: request.url,
- * }),
- * });
- * })());
- * return new Response('Internal Server Error', { status: 500 });
- * }
- * }
- * ```
- */
- waitUntil(
- /**
- * A promise that will be kept alive until it resolves or rejects.
- */ promise: Promise
- ): void;
-}
diff --git a/node_modules/@sveltejs/adapter-vercel/index.js b/node_modules/@sveltejs/adapter-vercel/index.js
deleted file mode 100644
index d87f6946..00000000
--- a/node_modules/@sveltejs/adapter-vercel/index.js
+++ /dev/null
@@ -1,761 +0,0 @@
-import fs from 'node:fs';
-import path from 'node:path';
-import process from 'node:process';
-import { fileURLToPath } from 'node:url';
-import { nodeFileTrace } from '@vercel/nft';
-import esbuild from 'esbuild';
-import { get_pathname, pattern_to_src } from './utils.js';
-import { VERSION } from '@sveltejs/kit';
-
-const name = '@sveltejs/adapter-vercel';
-const DEFAULT_FUNCTION_NAME = 'fn';
-
-const get_default_runtime = () => {
- const major = Number(process.version.slice(1).split('.')[0]);
-
- // If we're building on Vercel, we know that the version will be fine because Vercel
- // provides Node (and Vercel won't provide something it doesn't support).
- // Also means we're not on the hook for updating the adapter every time a new Node
- // version is added to Vercel.
- if (!process.env.VERCEL) {
- if (major < 18 || major > 22) {
- throw new Error(
- `Building locally with unsupported Node.js version: ${process.version}. Please use Node 18, 20 or 22 to build your project, or explicitly specify a runtime in your adapter configuration.`
- );
- }
-
- if (major % 2 !== 0) {
- throw new Error(
- `Unsupported Node.js version: ${process.version}. Please use an even-numbered Node version to build your project, or explicitly specify a runtime in your adapter configuration.`
- );
- }
- }
-
- return `nodejs${major}.x`;
-};
-
-// https://vercel.com/docs/functions/edge-functions/edge-runtime#compatible-node.js-modules
-const compatible_node_modules = ['async_hooks', 'events', 'buffer', 'assert', 'util'];
-
-/** @type {import('./index.js').default} **/
-const plugin = function (defaults = {}) {
- if ('edge' in defaults) {
- throw new Error("{ edge: true } has been removed in favour of { runtime: 'edge' }");
- }
-
- return {
- name,
-
- async adapt(builder) {
- if (!builder.routes) {
- throw new Error(
- '@sveltejs/adapter-vercel >=2.x (possibly installed through @sveltejs/adapter-auto) requires @sveltejs/kit version 1.5 or higher. ' +
- 'Either downgrade the adapter or upgrade @sveltejs/kit'
- );
- }
-
- const dir = '.vercel/output';
- const tmp = builder.getBuildDirectory('vercel-tmp');
-
- builder.rimraf(dir);
- builder.rimraf(tmp);
-
- if (fs.existsSync('vercel.json')) {
- const vercel_file = fs.readFileSync('vercel.json', 'utf-8');
- const vercel_config = JSON.parse(vercel_file);
- validate_vercel_json(builder, vercel_config);
- }
-
- const files = fileURLToPath(new URL('./files', import.meta.url).href);
-
- const dirs = {
- static: `${dir}/static${builder.config.kit.paths.base}`,
- functions: `${dir}/functions`
- };
-
- builder.log.minor('Copying assets...');
-
- builder.writeClient(dirs.static);
- builder.writePrerendered(dirs.static);
-
- const static_config = static_vercel_config(builder, defaults, dirs.static);
-
- builder.log.minor('Generating serverless function...');
-
- /**
- * @param {string} name
- * @param {import('./index.js').ServerlessConfig} config
- * @param {import('@sveltejs/kit').RouteDefinition[]} routes
- */
- async function generate_serverless_function(name, config, routes) {
- const dir = `${dirs.functions}/${name}.func`;
-
- const relativePath = path.posix.relative(tmp, builder.getServerDirectory());
-
- builder.copy(`${files}/serverless.js`, `${tmp}/index.js`, {
- replace: {
- SERVER: `${relativePath}/index.js`,
- MANIFEST: './manifest.js'
- }
- });
-
- write(
- `${tmp}/manifest.js`,
- `export const manifest = ${builder.generateManifest({ relativePath, routes })};\n`
- );
-
- await create_function_bundle(builder, `${tmp}/index.js`, dir, config);
-
- for (const asset of builder.findServerAssets(routes)) {
- // TODO use symlinks, once Build Output API supports doing so
- builder.copy(`${builder.getServerDirectory()}/${asset}`, `${dir}/${asset}`);
- }
- }
-
- /**
- * @param {string} name
- * @param {import('./index.js').EdgeConfig} config
- * @param {import('@sveltejs/kit').RouteDefinition[]} routes
- */
- async function generate_edge_function(name, config, routes) {
- const tmp = builder.getBuildDirectory(`vercel-tmp/${name}`);
- const relativePath = path.posix.relative(tmp, builder.getServerDirectory());
-
- builder.copy(`${files}/edge.js`, `${tmp}/edge.js`, {
- replace: {
- SERVER: `${relativePath}/index.js`,
- MANIFEST: './manifest.js'
- }
- });
-
- write(
- `${tmp}/manifest.js`,
- `export const manifest = ${builder.generateManifest({ relativePath, routes })};\n`
- );
-
- try {
- const result = await esbuild.build({
- entryPoints: [`${tmp}/edge.js`],
- outfile: `${dirs.functions}/${name}.func/index.js`,
- target: 'es2020', // TODO verify what the edge runtime supports
- bundle: true,
- platform: 'browser',
- format: 'esm',
- external: [
- ...compatible_node_modules,
- ...compatible_node_modules.map((id) => `node:${id}`),
- ...(config.external || [])
- ],
- sourcemap: 'linked',
- banner: { js: 'globalThis.global = globalThis;' },
- loader: {
- '.wasm': 'copy',
- '.woff': 'copy',
- '.woff2': 'copy',
- '.ttf': 'copy',
- '.eot': 'copy',
- '.otf': 'copy'
- }
- });
-
- if (result.warnings.length > 0) {
- const formatted = await esbuild.formatMessages(result.warnings, {
- kind: 'warning',
- color: true
- });
-
- console.error(formatted.join('\n'));
- }
- } catch (err) {
- const error = /** @type {import('esbuild').BuildFailure} */ (err);
- for (const e of error.errors) {
- for (const node of e.notes) {
- const match =
- /The package "(.+)" wasn't found on the file system but is built into node/.exec(
- node.text
- );
-
- if (match) {
- node.text = `Cannot use "${match[1]}" when deploying to Vercel Edge Functions.`;
- }
- }
- }
-
- const formatted = await esbuild.formatMessages(error.errors, {
- kind: 'error',
- color: true
- });
-
- console.error(formatted.join('\n'));
-
- throw new Error(
- `Bundling with esbuild failed with ${error.errors.length} ${
- error.errors.length === 1 ? 'error' : 'errors'
- }`
- );
- }
-
- write(
- `${dirs.functions}/${name}.func/.vc-config.json`,
- JSON.stringify(
- {
- runtime: config.runtime,
- regions: config.regions,
- entrypoint: 'index.js',
- framework: {
- slug: 'sveltekit',
- version: VERSION
- }
- },
- null,
- '\t'
- )
- );
- }
-
- /** @type {Map[] }>} */
- const groups = new Map();
-
- /** @type {Map} */
- const conflicts = new Map();
-
- /** @type {Map} */
- const functions = new Map();
-
- /** @type {Map, { expiration: number | false, bypassToken: string | undefined, allowQuery: string[], group: number, passQuery: true }>} */
- const isr_config = new Map();
-
- /** @type {Set} */
- const ignored_isr = new Set();
-
- // group routes by config
- for (const route of builder.routes) {
- const runtime = route.config?.runtime ?? defaults?.runtime ?? get_default_runtime();
- const config = { runtime, ...defaults, ...route.config };
-
- if (is_prerendered(route)) {
- if (config.isr) {
- ignored_isr.add(route.id);
- }
- continue;
- }
-
- const node_runtime = /nodejs([0-9]+)\.x/.exec(runtime);
- if (runtime !== 'edge' && (!node_runtime || parseInt(node_runtime[1]) < 18)) {
- throw new Error(
- `Invalid runtime '${runtime}' for route ${route.id}. Valid runtimes are 'edge' and 'nodejs18.x' or higher ` +
- '(see the Node.js Version section in your Vercel project settings for info on the currently supported versions).'
- );
- }
-
- if (config.isr) {
- const directory = path.relative('.', builder.config.kit.files.routes + route.id);
-
- if (!runtime.startsWith('nodejs')) {
- throw new Error(
- `${directory}: Routes using \`isr\` must use a Node.js runtime (for example 'nodejs20.x')`
- );
- }
-
- if (config.isr.allowQuery?.includes('__pathname')) {
- throw new Error(
- `${directory}: \`__pathname\` is a reserved query parameter for \`isr.allowQuery\``
- );
- }
-
- isr_config.set(route, {
- expiration: config.isr.expiration,
- bypassToken: config.isr.bypassToken,
- allowQuery: ['__pathname', ...(config.isr.allowQuery ?? [])],
- group: isr_config.size + 1,
- passQuery: true
- });
- }
-
- const hash = hash_config(config);
-
- // first, check there are no routes with incompatible configs that will be merged
- const pattern = route.pattern.toString();
- const existing = conflicts.get(pattern);
- if (existing) {
- if (existing.hash !== hash) {
- throw new Error(
- `The ${route.id} and ${existing.route_id} routes must be merged into a single function that matches the ${route.pattern} regex, but they have incompatible configs. You must either rename one of the routes, or make their configs match.`
- );
- }
- } else {
- conflicts.set(pattern, { hash, route_id: route.id });
- }
-
- // then, create a group for each config
- const id = config.split ? `${hash}-${groups.size}` : hash;
- let group = groups.get(id);
- if (!group) {
- group = { i: groups.size, config, routes: [] };
- groups.set(id, group);
- }
-
- group.routes.push(route);
- }
-
- if (ignored_isr.size) {
- builder.log.warn(
- '\nWarning: The following routes have an ISR config which is ignored because the route is prerendered:'
- );
-
- for (const ignored of ignored_isr) {
- console.log(` - ${ignored}`);
- }
-
- console.log(
- 'Either remove the "prerender" option from these routes to use ISR, or remove the ISR config.\n'
- );
- }
-
- const singular = groups.size === 1;
-
- for (const group of groups.values()) {
- const generate_function =
- group.config.runtime === 'edge' ? generate_edge_function : generate_serverless_function;
-
- // generate one function for the group
- const name = singular ? DEFAULT_FUNCTION_NAME : `fn-${group.i}`;
-
- await generate_function(
- name,
- /** @type {any} */ (group.config),
- /** @type {import('@sveltejs/kit').RouteDefinition[]} */ (group.routes)
- );
-
- for (const route of group.routes) {
- functions.set(route.pattern.toString(), name);
- }
- }
-
- for (const route of builder.routes) {
- if (is_prerendered(route)) continue;
-
- const pattern = route.pattern.toString();
- const src = pattern_to_src(pattern);
- const name = functions.get(pattern) ?? 'fn-0';
-
- const isr = isr_config.get(route);
- if (isr) {
- const isr_name = route.id.slice(1) || '__root__'; // should we check that __root__ isn't a route?
- const base = `${dirs.functions}/${isr_name}`;
- builder.mkdirp(base);
-
- const target = `${dirs.functions}/${name}.func`;
- const relative = path.relative(path.dirname(base), target);
-
- // create a symlink to the actual function, but use the
- // route name so that we can derive the correct URL
- fs.symlinkSync(relative, `${base}.func`);
- fs.symlinkSync(`../${relative}`, `${base}/__data.json.func`);
-
- const pathname = get_pathname(route);
- const json = JSON.stringify(isr, null, '\t');
-
- write(`${base}.prerender-config.json`, json);
- write(`${base}/__data.json.prerender-config.json`, json);
-
- const q = `?__pathname=/${pathname}`;
-
- static_config.routes.push({
- src: src + '$',
- dest: `/${isr_name}${q}`
- });
-
- static_config.routes.push({
- src: src + '/__data.json$',
- dest: `/${isr_name}/__data.json${q}`
- });
- } else if (!singular) {
- static_config.routes.push({ src: src + '(?:/__data.json)?$', dest: `/${name}` });
- }
- }
-
- if (!singular) {
- // we need to create a catch-all route so that 404s are handled
- // by SvelteKit rather than Vercel
-
- const runtime = defaults.runtime ?? get_default_runtime();
- const generate_function =
- runtime === 'edge' ? generate_edge_function : generate_serverless_function;
-
- await generate_function(
- DEFAULT_FUNCTION_NAME,
- /** @type {any} */ ({ runtime, ...defaults }),
- []
- );
- }
-
- // optional chaining to support older versions that don't have this setting yet
- if (builder.config.kit.router?.resolution === 'server') {
- // Create a separate edge function just for server-side route resolution.
- // By omitting all routes we're ensuring it's small (the routes will still be available
- // to the route resolution, because it does not rely on the server routing manifest)
- await generate_edge_function(
- `${builder.config.kit.appDir}/route`,
- {
- external: 'external' in defaults ? defaults.external : undefined,
- runtime: 'edge'
- },
- []
- );
-
- static_config.routes.push({
- src: `${builder.config.kit.paths.base}/(|.+/)__route\\.js`,
- dest: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/route`
- });
- }
-
- // Catch-all route must come at the end, otherwise it will swallow all other routes,
- // including ISR aliases if there is only one function
- static_config.routes.push({ src: '/.*', dest: `/${DEFAULT_FUNCTION_NAME}` });
-
- builder.log.minor('Writing routes...');
-
- write(`${dir}/config.json`, JSON.stringify(static_config, null, '\t'));
- },
-
- supports: {
- // reading from the filesystem only works in serverless functions
- read: ({ config, route }) => {
- const runtime = config.runtime ?? defaults.runtime;
-
- if (runtime === 'edge') {
- throw new Error(
- `${name}: Cannot use \`read\` from \`$app/server\` in route \`${route.id}\` configured with \`runtime: 'edge'\``
- );
- }
-
- return true;
- }
- }
- };
-};
-
-/** @param {import('./index.js').EdgeConfig & import('./index.js').ServerlessConfig} config */
-function hash_config(config) {
- return [
- config.runtime ?? '',
- config.external ?? '',
- config.regions ?? '',
- config.memory ?? '',
- config.maxDuration ?? '',
- !!config.isr // need to distinguish ISR from non-ISR functions, because ISR functions can't use streaming mode
- ].join('/');
-}
-
-/**
- * @param {string} file
- * @param {string} data
- */
-function write(file, data) {
- try {
- fs.mkdirSync(path.dirname(file), { recursive: true });
- } catch {
- // do nothing
- }
-
- fs.writeFileSync(file, data);
-}
-
-// This function is duplicated in adapter-static
-/**
- * @param {import('@sveltejs/kit').Builder} builder
- * @param {import('./index.js').Config} config
- * @param {string} dir
- */
-function static_vercel_config(builder, config, dir) {
- /** @type {any[]} */
- const prerendered_redirects = [];
-
- /** @type {Record} */
- const overrides = {};
-
- /** @type {import('./index.js').ImagesConfig | undefined} */
- const images = config.images;
-
- for (let [src, redirect] of builder.prerendered.redirects) {
- if (src.replace(/\/$/, '') === redirect.location.replace(/\/$/, '')) {
- // ignore the extreme edge case of a `/foo` -> `/foo/` redirect,
- // which would only arise if the response was generated by a
- // `handle` hook or outside the app altogether (since you
- // can't declaratively create both routes)
- } else {
- // redirect both `/foo` and `/foo/` to `redirect.location`
- src = src.replace(/\/?$/, '/?');
- }
-
- prerendered_redirects.push({
- src,
- headers: {
- Location: redirect.location
- },
- status: redirect.status
- });
- }
-
- for (const [path, page] of builder.prerendered.pages) {
- let overrides_path = path.slice(1);
-
- if (path !== '/') {
- /** @type {string | undefined} */
- let counterpart_route = path + '/';
-
- if (path.endsWith('/')) {
- counterpart_route = path.slice(0, -1);
- overrides_path = path.slice(1, -1);
- }
-
- prerendered_redirects.push(
- { src: path, dest: counterpart_route },
- { src: counterpart_route, status: 308, headers: { Location: path } }
- );
- }
-
- overrides[page.file] = { path: overrides_path };
- }
-
- const routes = [
- ...prerendered_redirects,
- {
- src: `/${builder.getAppPath()}/immutable/.+`,
- headers: {
- 'cache-control': 'public, immutable, max-age=31536000'
- }
- }
- ];
-
- // https://vercel.com/docs/deployments/skew-protection
- if (process.env.VERCEL_SKEW_PROTECTION_ENABLED) {
- routes.push({
- src: '/.*',
- has: [
- {
- type: 'header',
- key: 'Sec-Fetch-Dest',
- value: 'document'
- }
- ],
- headers: {
- 'Set-Cookie': `__vdpl=${process.env.VERCEL_DEPLOYMENT_ID}; Path=${builder.config.kit.paths.base}/; SameSite=Strict; Secure; HttpOnly`
- },
- continue: true
- });
-
- // this is a dreadful hack that is necessary until the Vercel Build Output API
- // allows you to set multiple cookies for a single route. essentially, since we
- // know that the entry file will be requested immediately, we can set the second
- // cookie in _that_ response rather than the document response
- const base = `${dir}/${builder.config.kit.appDir}/immutable/entry`;
- const entry = fs.readdirSync(base).find((file) => file.startsWith('start.'));
-
- if (!entry) {
- throw new Error('Could not find entry point');
- }
-
- routes.splice(-2, 0, {
- src: `/${builder.getAppPath()}/immutable/entry/${entry}`,
- headers: {
- 'Set-Cookie': `__vdpl=; Path=/${builder.getAppPath()}/version.json; SameSite=Strict; Secure; HttpOnly`
- },
- continue: true
- });
- }
-
- routes.push({
- handle: 'filesystem'
- });
-
- return {
- version: 3,
- routes,
- overrides,
- images
- };
-}
-
-/**
- * @param {import('@sveltejs/kit').Builder} builder
- * @param {string} entry
- * @param {string} dir
- * @param {import('./index.js').ServerlessConfig} config
- */
-async function create_function_bundle(builder, entry, dir, config) {
- fs.rmSync(dir, { force: true, recursive: true });
-
- let base = entry;
- while (base !== (base = path.dirname(base)));
-
- const traced = await nodeFileTrace([entry], { base });
-
- /** @type {Map} */
- const resolution_failures = new Map();
-
- traced.warnings.forEach((error) => {
- // pending https://github.com/vercel/nft/issues/284
- if (error.message.startsWith('Failed to resolve dependency node:')) return;
-
- // parse errors are likely not js and can safely be ignored,
- // such as this html file in "main" meant for nw instead of node:
- // https://github.com/vercel/nft/issues/311
- if (error.message.startsWith('Failed to parse')) return;
-
- if (error.message.startsWith('Failed to resolve dependency')) {
- const match = /Cannot find module '(.+?)' loaded from (.+)/;
- const [, module, importer] = match.exec(error.message) ?? [, error.message, '(unknown)'];
-
- if (!resolution_failures.has(importer)) {
- resolution_failures.set(importer, []);
- }
-
- /** @type {string[]} */ (resolution_failures.get(importer)).push(module);
- } else {
- throw error;
- }
- });
-
- if (resolution_failures.size > 0) {
- const cwd = process.cwd();
- builder.log.warn(
- 'Warning: The following modules failed to locate dependencies that may (or may not) be required for your app to work:'
- );
-
- for (const [importer, modules] of resolution_failures) {
- console.error(` ${path.relative(cwd, importer)}`);
- for (const module of modules) {
- console.error(` - \u001B[1m\u001B[36m${module}\u001B[39m\u001B[22m`);
- }
- }
- }
-
- const files = Array.from(traced.fileList);
-
- // find common ancestor directory
- /** @type {string[]} */
- let common_parts = files[0]?.split(path.sep) ?? [];
-
- for (let i = 1; i < files.length; i += 1) {
- const file = files[i];
- const parts = file.split(path.sep);
-
- for (let j = 0; j < common_parts.length; j += 1) {
- if (parts[j] !== common_parts[j]) {
- common_parts = common_parts.slice(0, j);
- break;
- }
- }
- }
-
- const ancestor = base + common_parts.join(path.sep);
-
- for (const file of traced.fileList) {
- const source = base + file;
- const dest = path.join(dir, path.relative(ancestor, source));
-
- const stats = fs.statSync(source);
- const is_dir = stats.isDirectory();
-
- const realpath = fs.realpathSync(source);
-
- try {
- fs.mkdirSync(path.dirname(dest), { recursive: true });
- } catch {
- // do nothing
- }
-
- if (source !== realpath) {
- const realdest = path.join(dir, path.relative(ancestor, realpath));
- fs.symlinkSync(path.relative(path.dirname(dest), realdest), dest, is_dir ? 'dir' : 'file');
- } else if (!is_dir) {
- fs.copyFileSync(source, dest);
- }
- }
-
- write(
- `${dir}/.vc-config.json`,
- JSON.stringify(
- {
- runtime: config.runtime,
- regions: config.regions,
- memory: config.memory,
- maxDuration: config.maxDuration,
- handler: path.relative(base + ancestor, entry),
- launcherType: 'Nodejs',
- experimentalResponseStreaming: !config.isr,
- framework: {
- slug: 'sveltekit',
- version: VERSION
- }
- },
- null,
- '\t'
- )
- );
-
- write(`${dir}/package.json`, JSON.stringify({ type: 'module' }));
-}
-
-/**
- *
- * @param {import('@sveltejs/kit').Builder} builder
- * @param {any} vercel_config
- */
-function validate_vercel_json(builder, vercel_config) {
- if (builder.routes.length > 0 && !builder.routes[0].api) {
- // bail — we're on an older SvelteKit version that doesn't
- // populate `route.api.methods`, so we can't check
- // to see if cron paths are valid
- return;
- }
-
- const crons = /** @type {Array} */ (
- Array.isArray(vercel_config?.crons) ? vercel_config.crons : []
- );
-
- /** For a route to be considered 'valid', it must be an API route with a GET handler */
- const valid_routes = builder.routes.filter((route) => route.api.methods.includes('GET'));
-
- /** @type {Array} */
- const unmatched_paths = [];
-
- for (const cron of crons) {
- if (typeof cron !== 'object' || cron === null || !('path' in cron)) {
- continue;
- }
-
- const { path } = cron;
- if (typeof path !== 'string') {
- continue;
- }
-
- if (!valid_routes.some((route) => route.pattern.test(path))) {
- unmatched_paths.push(path);
- }
- }
-
- if (unmatched_paths.length) {
- builder.log.warn(
- '\nWarning: vercel.json defines cron tasks that use paths that do not correspond to an API route with a GET handler (ignore this if the request is handled in your `handle` hook):'
- );
-
- for (const path of unmatched_paths) {
- console.log(` - ${path}`);
- }
-
- console.log('');
- }
-}
-
-/** @param {import('@sveltejs/kit').RouteDefinition} route */
-function is_prerendered(route) {
- return (
- route.prerender === true ||
- (route.prerender === 'auto' && route.segments.every((segment) => !segment.dynamic))
- );
-}
-
-export default plugin;
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/.bin/esbuild b/node_modules/@sveltejs/adapter-vercel/node_modules/.bin/esbuild
deleted file mode 120000
index c83ac070..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/.bin/esbuild
+++ /dev/null
@@ -1 +0,0 @@
-../esbuild/bin/esbuild
\ No newline at end of file
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/README.md b/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/README.md
deleted file mode 100644
index b2f19300..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# esbuild
-
-This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/bin/esbuild b/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/bin/esbuild
deleted file mode 100755
index 3ae20d06..00000000
Binary files a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/bin/esbuild and /dev/null differ
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/package.json b/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/package.json
deleted file mode 100644
index ccc2a1e6..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/@esbuild/linux-x64/package.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "name": "@esbuild/linux-x64",
- "version": "0.24.2",
- "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/evanw/esbuild.git"
- },
- "license": "MIT",
- "preferUnplugged": true,
- "engines": {
- "node": ">=18"
- },
- "os": [
- "linux"
- ],
- "cpu": [
- "x64"
- ]
-}
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/LICENSE.md b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/LICENSE.md
deleted file mode 100644
index 2027e8dc..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/LICENSE.md
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Evan Wallace
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/README.md b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/README.md
deleted file mode 100644
index 93863d19..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# esbuild
-
-This is a JavaScript bundler and minifier. See https://github.com/evanw/esbuild and the [JavaScript API documentation](https://esbuild.github.io/api/) for details.
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/bin/esbuild b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/bin/esbuild
deleted file mode 100755
index 3ae20d06..00000000
Binary files a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/bin/esbuild and /dev/null differ
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/install.js b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/install.js
deleted file mode 100644
index 5954864e..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/install.js
+++ /dev/null
@@ -1,287 +0,0 @@
-"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 __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
-));
-
-// lib/npm/node-platform.ts
-var fs = require("fs");
-var os = require("os");
-var path = require("path");
-var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
-var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
-var knownWindowsPackages = {
- "win32 arm64 LE": "@esbuild/win32-arm64",
- "win32 ia32 LE": "@esbuild/win32-ia32",
- "win32 x64 LE": "@esbuild/win32-x64"
-};
-var knownUnixlikePackages = {
- "aix ppc64 BE": "@esbuild/aix-ppc64",
- "android arm64 LE": "@esbuild/android-arm64",
- "darwin arm64 LE": "@esbuild/darwin-arm64",
- "darwin x64 LE": "@esbuild/darwin-x64",
- "freebsd arm64 LE": "@esbuild/freebsd-arm64",
- "freebsd x64 LE": "@esbuild/freebsd-x64",
- "linux arm LE": "@esbuild/linux-arm",
- "linux arm64 LE": "@esbuild/linux-arm64",
- "linux ia32 LE": "@esbuild/linux-ia32",
- "linux mips64el LE": "@esbuild/linux-mips64el",
- "linux ppc64 LE": "@esbuild/linux-ppc64",
- "linux riscv64 LE": "@esbuild/linux-riscv64",
- "linux s390x BE": "@esbuild/linux-s390x",
- "linux x64 LE": "@esbuild/linux-x64",
- "linux loong64 LE": "@esbuild/linux-loong64",
- "netbsd arm64 LE": "@esbuild/netbsd-arm64",
- "netbsd x64 LE": "@esbuild/netbsd-x64",
- "openbsd arm64 LE": "@esbuild/openbsd-arm64",
- "openbsd x64 LE": "@esbuild/openbsd-x64",
- "sunos x64 LE": "@esbuild/sunos-x64"
-};
-var knownWebAssemblyFallbackPackages = {
- "android arm LE": "@esbuild/android-arm",
- "android x64 LE": "@esbuild/android-x64"
-};
-function pkgAndSubpathForCurrentPlatform() {
- let pkg;
- let subpath;
- let isWASM = false;
- let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
- if (platformKey in knownWindowsPackages) {
- pkg = knownWindowsPackages[platformKey];
- subpath = "esbuild.exe";
- } else if (platformKey in knownUnixlikePackages) {
- pkg = knownUnixlikePackages[platformKey];
- subpath = "bin/esbuild";
- } else if (platformKey in knownWebAssemblyFallbackPackages) {
- pkg = knownWebAssemblyFallbackPackages[platformKey];
- subpath = "bin/esbuild";
- isWASM = true;
- } else {
- throw new Error(`Unsupported platform: ${platformKey}`);
- }
- return { pkg, subpath, isWASM };
-}
-function downloadedBinPath(pkg, subpath) {
- const esbuildLibDir = path.dirname(require.resolve("esbuild"));
- return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
-}
-
-// lib/npm/node-install.ts
-var fs2 = require("fs");
-var os2 = require("os");
-var path2 = require("path");
-var zlib = require("zlib");
-var https = require("https");
-var child_process = require("child_process");
-var versionFromPackageJSON = require(path2.join(__dirname, "package.json")).version;
-var toPath = path2.join(__dirname, "bin", "esbuild");
-var isToPathJS = true;
-function validateBinaryVersion(...command) {
- command.push("--version");
- let stdout;
- try {
- stdout = child_process.execFileSync(command.shift(), command, {
- // Without this, this install script strangely crashes with the error
- // "EACCES: permission denied, write" but only on Ubuntu Linux when node is
- // installed from the Snap Store. This is not a problem when you download
- // the official version of node. The problem appears to be that stderr
- // (i.e. file descriptor 2) isn't writable?
- //
- // More info:
- // - https://snapcraft.io/ (what the Snap Store is)
- // - https://nodejs.org/dist/ (download the official version of node)
- // - https://github.com/evanw/esbuild/issues/1711#issuecomment-1027554035
- //
- stdio: "pipe"
- }).toString().trim();
- } catch (err) {
- if (os2.platform() === "darwin" && /_SecTrustEvaluateWithError/.test(err + "")) {
- let os3 = "this version of macOS";
- try {
- os3 = "macOS " + child_process.execFileSync("sw_vers", ["-productVersion"]).toString().trim();
- } catch {
- }
- throw new Error(`The "esbuild" package cannot be installed because ${os3} is too outdated.
-
-The Go compiler (which esbuild relies on) no longer supports ${os3},
-which means the "esbuild" binary executable can't be run. You can either:
-
- * Update your version of macOS to one that the Go compiler supports
- * Use the "esbuild-wasm" package instead of the "esbuild" package
- * Build esbuild yourself using an older version of the Go compiler
-`);
- }
- throw err;
- }
- if (stdout !== versionFromPackageJSON) {
- throw new Error(`Expected ${JSON.stringify(versionFromPackageJSON)} but got ${JSON.stringify(stdout)}`);
- }
-}
-function isYarn() {
- const { npm_config_user_agent } = process.env;
- if (npm_config_user_agent) {
- return /\byarn\//.test(npm_config_user_agent);
- }
- return false;
-}
-function fetch(url) {
- return new Promise((resolve, reject) => {
- https.get(url, (res) => {
- if ((res.statusCode === 301 || res.statusCode === 302) && res.headers.location)
- return fetch(res.headers.location).then(resolve, reject);
- if (res.statusCode !== 200)
- return reject(new Error(`Server responded with ${res.statusCode}`));
- let chunks = [];
- res.on("data", (chunk) => chunks.push(chunk));
- res.on("end", () => resolve(Buffer.concat(chunks)));
- }).on("error", reject);
- });
-}
-function extractFileFromTarGzip(buffer, subpath) {
- try {
- buffer = zlib.unzipSync(buffer);
- } catch (err) {
- throw new Error(`Invalid gzip data in archive: ${err && err.message || err}`);
- }
- let str = (i, n) => String.fromCharCode(...buffer.subarray(i, i + n)).replace(/\0.*$/, "");
- let offset = 0;
- subpath = `package/${subpath}`;
- while (offset < buffer.length) {
- let name = str(offset, 100);
- let size = parseInt(str(offset + 124, 12), 8);
- offset += 512;
- if (!isNaN(size)) {
- if (name === subpath) return buffer.subarray(offset, offset + size);
- offset += size + 511 & ~511;
- }
- }
- throw new Error(`Could not find ${JSON.stringify(subpath)} in archive`);
-}
-function installUsingNPM(pkg, subpath, binPath) {
- const env = { ...process.env, npm_config_global: void 0 };
- const esbuildLibDir = path2.dirname(require.resolve("esbuild"));
- const installDir = path2.join(esbuildLibDir, "npm-install");
- fs2.mkdirSync(installDir);
- try {
- fs2.writeFileSync(path2.join(installDir, "package.json"), "{}");
- child_process.execSync(
- `npm install --loglevel=error --prefer-offline --no-audit --progress=false ${pkg}@${versionFromPackageJSON}`,
- { cwd: installDir, stdio: "pipe", env }
- );
- const installedBinPath = path2.join(installDir, "node_modules", pkg, subpath);
- fs2.renameSync(installedBinPath, binPath);
- } finally {
- try {
- removeRecursive(installDir);
- } catch {
- }
- }
-}
-function removeRecursive(dir) {
- for (const entry of fs2.readdirSync(dir)) {
- const entryPath = path2.join(dir, entry);
- let stats;
- try {
- stats = fs2.lstatSync(entryPath);
- } catch {
- continue;
- }
- if (stats.isDirectory()) removeRecursive(entryPath);
- else fs2.unlinkSync(entryPath);
- }
- fs2.rmdirSync(dir);
-}
-function applyManualBinaryPathOverride(overridePath) {
- const pathString = JSON.stringify(overridePath);
- fs2.writeFileSync(toPath, `#!/usr/bin/env node
-require('child_process').execFileSync(${pathString}, process.argv.slice(2), { stdio: 'inherit' });
-`);
- const libMain = path2.join(__dirname, "lib", "main.js");
- const code = fs2.readFileSync(libMain, "utf8");
- fs2.writeFileSync(libMain, `var ESBUILD_BINARY_PATH = ${pathString};
-${code}`);
-}
-function maybeOptimizePackage(binPath) {
- if (os2.platform() !== "win32" && !isYarn()) {
- const tempPath = path2.join(__dirname, "bin-esbuild");
- try {
- fs2.linkSync(binPath, tempPath);
- fs2.renameSync(tempPath, toPath);
- isToPathJS = false;
- fs2.unlinkSync(tempPath);
- } catch {
- }
- }
-}
-async function downloadDirectlyFromNPM(pkg, subpath, binPath) {
- const url = `https://registry.npmjs.org/${pkg}/-/${pkg.replace("@esbuild/", "")}-${versionFromPackageJSON}.tgz`;
- console.error(`[esbuild] Trying to download ${JSON.stringify(url)}`);
- try {
- fs2.writeFileSync(binPath, extractFileFromTarGzip(await fetch(url), subpath));
- fs2.chmodSync(binPath, 493);
- } catch (e) {
- console.error(`[esbuild] Failed to download ${JSON.stringify(url)}: ${e && e.message || e}`);
- throw e;
- }
-}
-async function checkAndPreparePackage() {
- if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
- if (!fs2.existsSync(ESBUILD_BINARY_PATH)) {
- console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
- } else {
- applyManualBinaryPathOverride(ESBUILD_BINARY_PATH);
- return;
- }
- }
- const { pkg, subpath } = pkgAndSubpathForCurrentPlatform();
- let binPath;
- try {
- binPath = require.resolve(`${pkg}/${subpath}`);
- } catch (e) {
- console.error(`[esbuild] Failed to find package "${pkg}" on the file system
-
-This can happen if you use the "--no-optional" flag. The "optionalDependencies"
-package.json feature is used by esbuild to install the correct binary executable
-for your current platform. This install script will now attempt to work around
-this. If that fails, you need to remove the "--no-optional" flag to use esbuild.
-`);
- binPath = downloadedBinPath(pkg, subpath);
- try {
- console.error(`[esbuild] Trying to install package "${pkg}" using npm`);
- installUsingNPM(pkg, subpath, binPath);
- } catch (e2) {
- console.error(`[esbuild] Failed to install package "${pkg}" using npm: ${e2 && e2.message || e2}`);
- try {
- await downloadDirectlyFromNPM(pkg, subpath, binPath);
- } catch (e3) {
- throw new Error(`Failed to install package "${pkg}"`);
- }
- }
- }
- maybeOptimizePackage(binPath);
-}
-checkAndPreparePackage().then(() => {
- if (isToPathJS) {
- validateBinaryVersion(process.execPath, toPath);
- } else {
- validateBinaryVersion(toPath);
- }
-});
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.d.ts b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.d.ts
deleted file mode 100644
index c7053070..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.d.ts
+++ /dev/null
@@ -1,705 +0,0 @@
-export type Platform = 'browser' | 'node' | 'neutral'
-export type Format = 'iife' | 'cjs' | 'esm'
-export type Loader = 'base64' | 'binary' | 'copy' | 'css' | 'dataurl' | 'default' | 'empty' | 'file' | 'js' | 'json' | 'jsx' | 'local-css' | 'text' | 'ts' | 'tsx'
-export type LogLevel = 'verbose' | 'debug' | 'info' | 'warning' | 'error' | 'silent'
-export type Charset = 'ascii' | 'utf8'
-export type Drop = 'console' | 'debugger'
-
-interface CommonOptions {
- /** Documentation: https://esbuild.github.io/api/#sourcemap */
- sourcemap?: boolean | 'linked' | 'inline' | 'external' | 'both'
- /** Documentation: https://esbuild.github.io/api/#legal-comments */
- legalComments?: 'none' | 'inline' | 'eof' | 'linked' | 'external'
- /** Documentation: https://esbuild.github.io/api/#source-root */
- sourceRoot?: string
- /** Documentation: https://esbuild.github.io/api/#sources-content */
- sourcesContent?: boolean
-
- /** Documentation: https://esbuild.github.io/api/#format */
- format?: Format
- /** Documentation: https://esbuild.github.io/api/#global-name */
- globalName?: string
- /** Documentation: https://esbuild.github.io/api/#target */
- target?: string | string[]
- /** Documentation: https://esbuild.github.io/api/#supported */
- supported?: Record
- /** Documentation: https://esbuild.github.io/api/#platform */
- platform?: Platform
-
- /** Documentation: https://esbuild.github.io/api/#mangle-props */
- mangleProps?: RegExp
- /** Documentation: https://esbuild.github.io/api/#mangle-props */
- reserveProps?: RegExp
- /** Documentation: https://esbuild.github.io/api/#mangle-props */
- mangleQuoted?: boolean
- /** Documentation: https://esbuild.github.io/api/#mangle-props */
- mangleCache?: Record
- /** Documentation: https://esbuild.github.io/api/#drop */
- drop?: Drop[]
- /** Documentation: https://esbuild.github.io/api/#drop-labels */
- dropLabels?: string[]
- /** Documentation: https://esbuild.github.io/api/#minify */
- minify?: boolean
- /** Documentation: https://esbuild.github.io/api/#minify */
- minifyWhitespace?: boolean
- /** Documentation: https://esbuild.github.io/api/#minify */
- minifyIdentifiers?: boolean
- /** Documentation: https://esbuild.github.io/api/#minify */
- minifySyntax?: boolean
- /** Documentation: https://esbuild.github.io/api/#line-limit */
- lineLimit?: number
- /** Documentation: https://esbuild.github.io/api/#charset */
- charset?: Charset
- /** Documentation: https://esbuild.github.io/api/#tree-shaking */
- treeShaking?: boolean
- /** Documentation: https://esbuild.github.io/api/#ignore-annotations */
- ignoreAnnotations?: boolean
-
- /** Documentation: https://esbuild.github.io/api/#jsx */
- jsx?: 'transform' | 'preserve' | 'automatic'
- /** Documentation: https://esbuild.github.io/api/#jsx-factory */
- jsxFactory?: string
- /** Documentation: https://esbuild.github.io/api/#jsx-fragment */
- jsxFragment?: string
- /** Documentation: https://esbuild.github.io/api/#jsx-import-source */
- jsxImportSource?: string
- /** Documentation: https://esbuild.github.io/api/#jsx-development */
- jsxDev?: boolean
- /** Documentation: https://esbuild.github.io/api/#jsx-side-effects */
- jsxSideEffects?: boolean
-
- /** Documentation: https://esbuild.github.io/api/#define */
- define?: { [key: string]: string }
- /** Documentation: https://esbuild.github.io/api/#pure */
- pure?: string[]
- /** Documentation: https://esbuild.github.io/api/#keep-names */
- keepNames?: boolean
-
- /** Documentation: https://esbuild.github.io/api/#color */
- color?: boolean
- /** Documentation: https://esbuild.github.io/api/#log-level */
- logLevel?: LogLevel
- /** Documentation: https://esbuild.github.io/api/#log-limit */
- logLimit?: number
- /** Documentation: https://esbuild.github.io/api/#log-override */
- logOverride?: Record
-
- /** Documentation: https://esbuild.github.io/api/#tsconfig-raw */
- tsconfigRaw?: string | TsconfigRaw
-}
-
-export interface TsconfigRaw {
- compilerOptions?: {
- alwaysStrict?: boolean
- baseUrl?: string
- experimentalDecorators?: boolean
- importsNotUsedAsValues?: 'remove' | 'preserve' | 'error'
- jsx?: 'preserve' | 'react-native' | 'react' | 'react-jsx' | 'react-jsxdev'
- jsxFactory?: string
- jsxFragmentFactory?: string
- jsxImportSource?: string
- paths?: Record
- preserveValueImports?: boolean
- strict?: boolean
- target?: string
- useDefineForClassFields?: boolean
- verbatimModuleSyntax?: boolean
- }
-}
-
-export interface BuildOptions extends CommonOptions {
- /** Documentation: https://esbuild.github.io/api/#bundle */
- bundle?: boolean
- /** Documentation: https://esbuild.github.io/api/#splitting */
- splitting?: boolean
- /** Documentation: https://esbuild.github.io/api/#preserve-symlinks */
- preserveSymlinks?: boolean
- /** Documentation: https://esbuild.github.io/api/#outfile */
- outfile?: string
- /** Documentation: https://esbuild.github.io/api/#metafile */
- metafile?: boolean
- /** Documentation: https://esbuild.github.io/api/#outdir */
- outdir?: string
- /** Documentation: https://esbuild.github.io/api/#outbase */
- outbase?: string
- /** Documentation: https://esbuild.github.io/api/#external */
- external?: string[]
- /** Documentation: https://esbuild.github.io/api/#packages */
- packages?: 'bundle' | 'external'
- /** Documentation: https://esbuild.github.io/api/#alias */
- alias?: Record
- /** Documentation: https://esbuild.github.io/api/#loader */
- loader?: { [ext: string]: Loader }
- /** Documentation: https://esbuild.github.io/api/#resolve-extensions */
- resolveExtensions?: string[]
- /** Documentation: https://esbuild.github.io/api/#main-fields */
- mainFields?: string[]
- /** Documentation: https://esbuild.github.io/api/#conditions */
- conditions?: string[]
- /** Documentation: https://esbuild.github.io/api/#write */
- write?: boolean
- /** Documentation: https://esbuild.github.io/api/#allow-overwrite */
- allowOverwrite?: boolean
- /** Documentation: https://esbuild.github.io/api/#tsconfig */
- tsconfig?: string
- /** Documentation: https://esbuild.github.io/api/#out-extension */
- outExtension?: { [ext: string]: string }
- /** Documentation: https://esbuild.github.io/api/#public-path */
- publicPath?: string
- /** Documentation: https://esbuild.github.io/api/#entry-names */
- entryNames?: string
- /** Documentation: https://esbuild.github.io/api/#chunk-names */
- chunkNames?: string
- /** Documentation: https://esbuild.github.io/api/#asset-names */
- assetNames?: string
- /** Documentation: https://esbuild.github.io/api/#inject */
- inject?: string[]
- /** Documentation: https://esbuild.github.io/api/#banner */
- banner?: { [type: string]: string }
- /** Documentation: https://esbuild.github.io/api/#footer */
- footer?: { [type: string]: string }
- /** Documentation: https://esbuild.github.io/api/#entry-points */
- entryPoints?: string[] | Record | { in: string, out: string }[]
- /** Documentation: https://esbuild.github.io/api/#stdin */
- stdin?: StdinOptions
- /** Documentation: https://esbuild.github.io/plugins/ */
- plugins?: Plugin[]
- /** Documentation: https://esbuild.github.io/api/#working-directory */
- absWorkingDir?: string
- /** Documentation: https://esbuild.github.io/api/#node-paths */
- nodePaths?: string[]; // The "NODE_PATH" variable from Node.js
-}
-
-export interface StdinOptions {
- contents: string | Uint8Array
- resolveDir?: string
- sourcefile?: string
- loader?: Loader
-}
-
-export interface Message {
- id: string
- pluginName: string
- text: string
- location: Location | null
- notes: Note[]
-
- /**
- * Optional user-specified data that is passed through unmodified. You can
- * use this to stash the original error, for example.
- */
- detail: any
-}
-
-export interface Note {
- text: string
- location: Location | null
-}
-
-export interface Location {
- file: string
- namespace: string
- /** 1-based */
- line: number
- /** 0-based, in bytes */
- column: number
- /** in bytes */
- length: number
- lineText: string
- suggestion: string
-}
-
-export interface OutputFile {
- path: string
- contents: Uint8Array
- hash: string
- /** "contents" as text (changes automatically with "contents") */
- readonly text: string
-}
-
-export interface BuildResult {
- errors: Message[]
- warnings: Message[]
- /** Only when "write: false" */
- outputFiles: OutputFile[] | (ProvidedOptions['write'] extends false ? never : undefined)
- /** Only when "metafile: true" */
- metafile: Metafile | (ProvidedOptions['metafile'] extends true ? never : undefined)
- /** Only when "mangleCache" is present */
- mangleCache: Record | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
-}
-
-export interface BuildFailure extends Error {
- errors: Message[]
- warnings: Message[]
-}
-
-/** Documentation: https://esbuild.github.io/api/#serve-arguments */
-export interface ServeOptions {
- port?: number
- host?: string
- servedir?: string
- keyfile?: string
- certfile?: string
- fallback?: string
- onRequest?: (args: ServeOnRequestArgs) => void
-}
-
-export interface ServeOnRequestArgs {
- remoteAddress: string
- method: string
- path: string
- status: number
- /** The time to generate the response, not to send it */
- timeInMS: number
-}
-
-/** Documentation: https://esbuild.github.io/api/#serve-return-values */
-export interface ServeResult {
- port: number
- host: string
-}
-
-export interface TransformOptions extends CommonOptions {
- /** Documentation: https://esbuild.github.io/api/#sourcefile */
- sourcefile?: string
- /** Documentation: https://esbuild.github.io/api/#loader */
- loader?: Loader
- /** Documentation: https://esbuild.github.io/api/#banner */
- banner?: string
- /** Documentation: https://esbuild.github.io/api/#footer */
- footer?: string
-}
-
-export interface TransformResult {
- code: string
- map: string
- warnings: Message[]
- /** Only when "mangleCache" is present */
- mangleCache: Record | (ProvidedOptions['mangleCache'] extends Object ? never : undefined)
- /** Only when "legalComments" is "external" */
- legalComments: string | (ProvidedOptions['legalComments'] extends 'external' ? never : undefined)
-}
-
-export interface TransformFailure extends Error {
- errors: Message[]
- warnings: Message[]
-}
-
-export interface Plugin {
- name: string
- setup: (build: PluginBuild) => (void | Promise)
-}
-
-export interface PluginBuild {
- /** Documentation: https://esbuild.github.io/plugins/#build-options */
- initialOptions: BuildOptions
-
- /** Documentation: https://esbuild.github.io/plugins/#resolve */
- resolve(path: string, options?: ResolveOptions): Promise
-
- /** Documentation: https://esbuild.github.io/plugins/#on-start */
- onStart(callback: () =>
- (OnStartResult | null | void | Promise)): void
-
- /** Documentation: https://esbuild.github.io/plugins/#on-end */
- onEnd(callback: (result: BuildResult) =>
- (OnEndResult | null | void | Promise)): void
-
- /** Documentation: https://esbuild.github.io/plugins/#on-resolve */
- onResolve(options: OnResolveOptions, callback: (args: OnResolveArgs) =>
- (OnResolveResult | null | undefined | Promise)): void
-
- /** Documentation: https://esbuild.github.io/plugins/#on-load */
- onLoad(options: OnLoadOptions, callback: (args: OnLoadArgs) =>
- (OnLoadResult | null | undefined | Promise)): void
-
- /** Documentation: https://esbuild.github.io/plugins/#on-dispose */
- onDispose(callback: () => void): void
-
- // This is a full copy of the esbuild library in case you need it
- esbuild: {
- context: typeof context,
- build: typeof build,
- buildSync: typeof buildSync,
- transform: typeof transform,
- transformSync: typeof transformSync,
- formatMessages: typeof formatMessages,
- formatMessagesSync: typeof formatMessagesSync,
- analyzeMetafile: typeof analyzeMetafile,
- analyzeMetafileSync: typeof analyzeMetafileSync,
- initialize: typeof initialize,
- version: typeof version,
- }
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#resolve-options */
-export interface ResolveOptions {
- pluginName?: string
- importer?: string
- namespace?: string
- resolveDir?: string
- kind?: ImportKind
- pluginData?: any
- with?: Record
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#resolve-results */
-export interface ResolveResult {
- errors: Message[]
- warnings: Message[]
-
- path: string
- external: boolean
- sideEffects: boolean
- namespace: string
- suffix: string
- pluginData: any
-}
-
-export interface OnStartResult {
- errors?: PartialMessage[]
- warnings?: PartialMessage[]
-}
-
-export interface OnEndResult {
- errors?: PartialMessage[]
- warnings?: PartialMessage[]
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#on-resolve-options */
-export interface OnResolveOptions {
- filter: RegExp
- namespace?: string
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#on-resolve-arguments */
-export interface OnResolveArgs {
- path: string
- importer: string
- namespace: string
- resolveDir: string
- kind: ImportKind
- pluginData: any
- with: Record
-}
-
-export type ImportKind =
- | 'entry-point'
-
- // JS
- | 'import-statement'
- | 'require-call'
- | 'dynamic-import'
- | 'require-resolve'
-
- // CSS
- | 'import-rule'
- | 'composes-from'
- | 'url-token'
-
-/** Documentation: https://esbuild.github.io/plugins/#on-resolve-results */
-export interface OnResolveResult {
- pluginName?: string
-
- errors?: PartialMessage[]
- warnings?: PartialMessage[]
-
- path?: string
- external?: boolean
- sideEffects?: boolean
- namespace?: string
- suffix?: string
- pluginData?: any
-
- watchFiles?: string[]
- watchDirs?: string[]
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#on-load-options */
-export interface OnLoadOptions {
- filter: RegExp
- namespace?: string
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#on-load-arguments */
-export interface OnLoadArgs {
- path: string
- namespace: string
- suffix: string
- pluginData: any
- with: Record
-}
-
-/** Documentation: https://esbuild.github.io/plugins/#on-load-results */
-export interface OnLoadResult {
- pluginName?: string
-
- errors?: PartialMessage[]
- warnings?: PartialMessage[]
-
- contents?: string | Uint8Array
- resolveDir?: string
- loader?: Loader
- pluginData?: any
-
- watchFiles?: string[]
- watchDirs?: string[]
-}
-
-export interface PartialMessage {
- id?: string
- pluginName?: string
- text?: string
- location?: Partial | null
- notes?: PartialNote[]
- detail?: any
-}
-
-export interface PartialNote {
- text?: string
- location?: Partial | null
-}
-
-/** Documentation: https://esbuild.github.io/api/#metafile */
-export interface Metafile {
- inputs: {
- [path: string]: {
- bytes: number
- imports: {
- path: string
- kind: ImportKind
- external?: boolean
- original?: string
- with?: Record
- }[]
- format?: 'cjs' | 'esm'
- with?: Record
- }
- }
- outputs: {
- [path: string]: {
- bytes: number
- inputs: {
- [path: string]: {
- bytesInOutput: number
- }
- }
- imports: {
- path: string
- kind: ImportKind | 'file-loader'
- external?: boolean
- }[]
- exports: string[]
- entryPoint?: string
- cssBundle?: string
- }
- }
-}
-
-export interface FormatMessagesOptions {
- kind: 'error' | 'warning'
- color?: boolean
- terminalWidth?: number
-}
-
-export interface AnalyzeMetafileOptions {
- color?: boolean
- verbose?: boolean
-}
-
-export interface WatchOptions {
-}
-
-export interface BuildContext {
- /** Documentation: https://esbuild.github.io/api/#rebuild */
- rebuild(): Promise>
-
- /** Documentation: https://esbuild.github.io/api/#watch */
- watch(options?: WatchOptions): Promise
-
- /** Documentation: https://esbuild.github.io/api/#serve */
- serve(options?: ServeOptions): Promise
-
- cancel(): Promise
- dispose(): Promise
-}
-
-// This is a TypeScript type-level function which replaces any keys in "In"
-// that aren't in "Out" with "never". We use this to reject properties with
-// typos in object literals. See: https://stackoverflow.com/questions/49580725
-type SameShape = In & { [Key in Exclude]: never }
-
-/**
- * This function invokes the "esbuild" command-line tool for you. It returns a
- * promise that either resolves with a "BuildResult" object or rejects with a
- * "BuildFailure" object.
- *
- * - Works in node: yes
- * - Works in browser: yes
- *
- * Documentation: https://esbuild.github.io/api/#build
- */
-export declare function build(options: SameShape): Promise>
-
-/**
- * This is the advanced long-running form of "build" that supports additional
- * features such as watch mode and a local development server.
- *
- * - Works in node: yes
- * - Works in browser: no
- *
- * Documentation: https://esbuild.github.io/api/#build
- */
-export declare function context(options: SameShape): Promise>
-
-/**
- * This function transforms a single JavaScript file. It can be used to minify
- * JavaScript, convert TypeScript/JSX to JavaScript, or convert newer JavaScript
- * to older JavaScript. It returns a promise that is either resolved with a
- * "TransformResult" object or rejected with a "TransformFailure" object.
- *
- * - Works in node: yes
- * - Works in browser: yes
- *
- * Documentation: https://esbuild.github.io/api/#transform
- */
-export declare function transform(input: string | Uint8Array, options?: SameShape): Promise>
-
-/**
- * Converts log messages to formatted message strings suitable for printing in
- * the terminal. This allows you to reuse the built-in behavior of esbuild's
- * log message formatter. This is a batch-oriented API for efficiency.
- *
- * - Works in node: yes
- * - Works in browser: yes
- */
-export declare function formatMessages(messages: PartialMessage[], options: FormatMessagesOptions): Promise
-
-/**
- * Pretty-prints an analysis of the metafile JSON to a string. This is just for
- * convenience to be able to match esbuild's pretty-printing exactly. If you want
- * to customize it, you can just inspect the data in the metafile yourself.
- *
- * - Works in node: yes
- * - Works in browser: yes
- *
- * Documentation: https://esbuild.github.io/api/#analyze
- */
-export declare function analyzeMetafile(metafile: Metafile | string, options?: AnalyzeMetafileOptions): Promise
-
-/**
- * A synchronous version of "build".
- *
- * - Works in node: yes
- * - Works in browser: no
- *
- * Documentation: https://esbuild.github.io/api/#build
- */
-export declare function buildSync(options: SameShape): BuildResult
-
-/**
- * A synchronous version of "transform".
- *
- * - Works in node: yes
- * - Works in browser: no
- *
- * Documentation: https://esbuild.github.io/api/#transform
- */
-export declare function transformSync(input: string | Uint8Array, options?: SameShape): TransformResult
-
-/**
- * A synchronous version of "formatMessages".
- *
- * - Works in node: yes
- * - Works in browser: no
- */
-export declare function formatMessagesSync(messages: PartialMessage[], options: FormatMessagesOptions): string[]
-
-/**
- * A synchronous version of "analyzeMetafile".
- *
- * - Works in node: yes
- * - Works in browser: no
- *
- * Documentation: https://esbuild.github.io/api/#analyze
- */
-export declare function analyzeMetafileSync(metafile: Metafile | string, options?: AnalyzeMetafileOptions): string
-
-/**
- * This configures the browser-based version of esbuild. It is necessary to
- * call this first and wait for the returned promise to be resolved before
- * making other API calls when using esbuild in the browser.
- *
- * - Works in node: yes
- * - Works in browser: yes ("options" is required)
- *
- * Documentation: https://esbuild.github.io/api/#browser
- */
-export declare function initialize(options: InitializeOptions): Promise
-
-export interface InitializeOptions {
- /**
- * The URL of the "esbuild.wasm" file. This must be provided when running
- * esbuild in the browser.
- */
- wasmURL?: string | URL
-
- /**
- * The result of calling "new WebAssembly.Module(buffer)" where "buffer"
- * is a typed array or ArrayBuffer containing the binary code of the
- * "esbuild.wasm" file.
- *
- * You can use this as an alternative to "wasmURL" for environments where it's
- * not possible to download the WebAssembly module.
- */
- wasmModule?: WebAssembly.Module
-
- /**
- * By default esbuild runs the WebAssembly-based browser API in a web worker
- * to avoid blocking the UI thread. This can be disabled by setting "worker"
- * to false.
- */
- worker?: boolean
-}
-
-export let version: string
-
-// Call this function to terminate esbuild's child process. The child process
-// is not terminated and re-created after each API call because it's more
-// efficient to keep it around when there are multiple API calls.
-//
-// In node this happens automatically before the parent node process exits. So
-// you only need to call this if you know you will not make any more esbuild
-// API calls and you want to clean up resources.
-//
-// Unlike node, Deno lacks the necessary APIs to clean up child processes
-// automatically. You must manually call stop() in Deno when you're done
-// using esbuild or Deno will continue running forever.
-//
-// Another reason you might want to call this is if you are using esbuild from
-// within a Deno test. Deno fails tests that create a child process without
-// killing it before the test ends, so you have to call this function (and
-// await the returned promise) in every Deno test that uses esbuild.
-export declare function stop(): Promise
-
-// Note: These declarations exist to avoid type errors when you omit "dom" from
-// "lib" in your "tsconfig.json" file. TypeScript confusingly declares the
-// global "WebAssembly" type in "lib.dom.d.ts" even though it has nothing to do
-// with the browser DOM and is present in many non-browser JavaScript runtimes
-// (e.g. node and deno). Declaring it here allows esbuild's API to be used in
-// these scenarios.
-//
-// There's an open issue about getting this problem corrected (although these
-// declarations will need to remain even if this is fixed for backward
-// compatibility with older TypeScript versions):
-//
-// https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/826
-//
-declare global {
- namespace WebAssembly {
- interface Module {
- }
- }
- interface URL {
- }
-}
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.js b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.js
deleted file mode 100644
index 45daeda4..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/lib/main.js
+++ /dev/null
@@ -1,2245 +0,0 @@
-"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);
-
-// lib/npm/node.ts
-var node_exports = {};
-__export(node_exports, {
- analyzeMetafile: () => analyzeMetafile,
- analyzeMetafileSync: () => analyzeMetafileSync,
- build: () => build,
- buildSync: () => buildSync,
- context: () => context,
- default: () => node_default,
- formatMessages: () => formatMessages,
- formatMessagesSync: () => formatMessagesSync,
- initialize: () => initialize,
- stop: () => stop,
- transform: () => transform,
- transformSync: () => transformSync,
- version: () => version
-});
-module.exports = __toCommonJS(node_exports);
-
-// lib/shared/stdio_protocol.ts
-function encodePacket(packet) {
- let visit = (value) => {
- if (value === null) {
- bb.write8(0);
- } else if (typeof value === "boolean") {
- bb.write8(1);
- bb.write8(+value);
- } else if (typeof value === "number") {
- bb.write8(2);
- bb.write32(value | 0);
- } else if (typeof value === "string") {
- bb.write8(3);
- bb.write(encodeUTF8(value));
- } else if (value instanceof Uint8Array) {
- bb.write8(4);
- bb.write(value);
- } else if (value instanceof Array) {
- bb.write8(5);
- bb.write32(value.length);
- for (let item of value) {
- visit(item);
- }
- } else {
- let keys = Object.keys(value);
- bb.write8(6);
- bb.write32(keys.length);
- for (let key of keys) {
- bb.write(encodeUTF8(key));
- visit(value[key]);
- }
- }
- };
- let bb = new ByteBuffer();
- bb.write32(0);
- bb.write32(packet.id << 1 | +!packet.isRequest);
- visit(packet.value);
- writeUInt32LE(bb.buf, bb.len - 4, 0);
- return bb.buf.subarray(0, bb.len);
-}
-function decodePacket(bytes) {
- let visit = () => {
- switch (bb.read8()) {
- case 0:
- return null;
- case 1:
- return !!bb.read8();
- case 2:
- return bb.read32();
- case 3:
- return decodeUTF8(bb.read());
- case 4:
- return bb.read();
- case 5: {
- let count = bb.read32();
- let value2 = [];
- for (let i = 0; i < count; i++) {
- value2.push(visit());
- }
- return value2;
- }
- case 6: {
- let count = bb.read32();
- let value2 = {};
- for (let i = 0; i < count; i++) {
- value2[decodeUTF8(bb.read())] = visit();
- }
- return value2;
- }
- default:
- throw new Error("Invalid packet");
- }
- };
- let bb = new ByteBuffer(bytes);
- let id = bb.read32();
- let isRequest = (id & 1) === 0;
- id >>>= 1;
- let value = visit();
- if (bb.ptr !== bytes.length) {
- throw new Error("Invalid packet");
- }
- return { id, isRequest, value };
-}
-var ByteBuffer = class {
- constructor(buf = new Uint8Array(1024)) {
- this.buf = buf;
- this.len = 0;
- this.ptr = 0;
- }
- _write(delta) {
- if (this.len + delta > this.buf.length) {
- let clone = new Uint8Array((this.len + delta) * 2);
- clone.set(this.buf);
- this.buf = clone;
- }
- this.len += delta;
- return this.len - delta;
- }
- write8(value) {
- let offset = this._write(1);
- this.buf[offset] = value;
- }
- write32(value) {
- let offset = this._write(4);
- writeUInt32LE(this.buf, value, offset);
- }
- write(bytes) {
- let offset = this._write(4 + bytes.length);
- writeUInt32LE(this.buf, bytes.length, offset);
- this.buf.set(bytes, offset + 4);
- }
- _read(delta) {
- if (this.ptr + delta > this.buf.length) {
- throw new Error("Invalid packet");
- }
- this.ptr += delta;
- return this.ptr - delta;
- }
- read8() {
- return this.buf[this._read(1)];
- }
- read32() {
- return readUInt32LE(this.buf, this._read(4));
- }
- read() {
- let length = this.read32();
- let bytes = new Uint8Array(length);
- let ptr = this._read(bytes.length);
- bytes.set(this.buf.subarray(ptr, ptr + length));
- return bytes;
- }
-};
-var encodeUTF8;
-var decodeUTF8;
-var encodeInvariant;
-if (typeof TextEncoder !== "undefined" && typeof TextDecoder !== "undefined") {
- let encoder = new TextEncoder();
- let decoder = new TextDecoder();
- encodeUTF8 = (text) => encoder.encode(text);
- decodeUTF8 = (bytes) => decoder.decode(bytes);
- encodeInvariant = 'new TextEncoder().encode("")';
-} else if (typeof Buffer !== "undefined") {
- encodeUTF8 = (text) => Buffer.from(text);
- decodeUTF8 = (bytes) => {
- let { buffer, byteOffset, byteLength } = bytes;
- return Buffer.from(buffer, byteOffset, byteLength).toString();
- };
- encodeInvariant = 'Buffer.from("")';
-} else {
- throw new Error("No UTF-8 codec found");
-}
-if (!(encodeUTF8("") instanceof Uint8Array))
- throw new Error(`Invariant violation: "${encodeInvariant} instanceof Uint8Array" is incorrectly false
-
-This indicates that your JavaScript environment is broken. You cannot use
-esbuild in this environment because esbuild relies on this invariant. This
-is not a problem with esbuild. You need to fix your environment instead.
-`);
-function readUInt32LE(buffer, offset) {
- return buffer[offset++] | buffer[offset++] << 8 | buffer[offset++] << 16 | buffer[offset++] << 24;
-}
-function writeUInt32LE(buffer, value, offset) {
- buffer[offset++] = value;
- buffer[offset++] = value >> 8;
- buffer[offset++] = value >> 16;
- buffer[offset++] = value >> 24;
-}
-
-// lib/shared/common.ts
-var quote = JSON.stringify;
-var buildLogLevelDefault = "warning";
-var transformLogLevelDefault = "silent";
-function validateTarget(target) {
- validateStringValue(target, "target");
- if (target.indexOf(",") >= 0) throw new Error(`Invalid target: ${target}`);
- return target;
-}
-var canBeAnything = () => null;
-var mustBeBoolean = (value) => typeof value === "boolean" ? null : "a boolean";
-var mustBeString = (value) => typeof value === "string" ? null : "a string";
-var mustBeRegExp = (value) => value instanceof RegExp ? null : "a RegExp object";
-var mustBeInteger = (value) => typeof value === "number" && value === (value | 0) ? null : "an integer";
-var mustBeFunction = (value) => typeof value === "function" ? null : "a function";
-var mustBeArray = (value) => Array.isArray(value) ? null : "an array";
-var mustBeObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? null : "an object";
-var mustBeEntryPoints = (value) => typeof value === "object" && value !== null ? null : "an array or an object";
-var mustBeWebAssemblyModule = (value) => value instanceof WebAssembly.Module ? null : "a WebAssembly.Module";
-var mustBeObjectOrNull = (value) => typeof value === "object" && !Array.isArray(value) ? null : "an object or null";
-var mustBeStringOrBoolean = (value) => typeof value === "string" || typeof value === "boolean" ? null : "a string or a boolean";
-var mustBeStringOrObject = (value) => typeof value === "string" || typeof value === "object" && value !== null && !Array.isArray(value) ? null : "a string or an object";
-var mustBeStringOrArray = (value) => typeof value === "string" || Array.isArray(value) ? null : "a string or an array";
-var mustBeStringOrUint8Array = (value) => typeof value === "string" || value instanceof Uint8Array ? null : "a string or a Uint8Array";
-var mustBeStringOrURL = (value) => typeof value === "string" || value instanceof URL ? null : "a string or a URL";
-function getFlag(object, keys, key, mustBeFn) {
- let value = object[key];
- keys[key + ""] = true;
- if (value === void 0) return void 0;
- let mustBe = mustBeFn(value);
- if (mustBe !== null) throw new Error(`${quote(key)} must be ${mustBe}`);
- return value;
-}
-function checkForInvalidFlags(object, keys, where) {
- for (let key in object) {
- if (!(key in keys)) {
- throw new Error(`Invalid option ${where}: ${quote(key)}`);
- }
- }
-}
-function validateInitializeOptions(options) {
- let keys = /* @__PURE__ */ Object.create(null);
- let wasmURL = getFlag(options, keys, "wasmURL", mustBeStringOrURL);
- let wasmModule = getFlag(options, keys, "wasmModule", mustBeWebAssemblyModule);
- let worker = getFlag(options, keys, "worker", mustBeBoolean);
- checkForInvalidFlags(options, keys, "in initialize() call");
- return {
- wasmURL,
- wasmModule,
- worker
- };
-}
-function validateMangleCache(mangleCache) {
- let validated;
- if (mangleCache !== void 0) {
- validated = /* @__PURE__ */ Object.create(null);
- for (let key in mangleCache) {
- let value = mangleCache[key];
- if (typeof value === "string" || value === false) {
- validated[key] = value;
- } else {
- throw new Error(`Expected ${quote(key)} in mangle cache to map to either a string or false`);
- }
- }
- }
- return validated;
-}
-function pushLogFlags(flags, options, keys, isTTY2, logLevelDefault) {
- let color = getFlag(options, keys, "color", mustBeBoolean);
- let logLevel = getFlag(options, keys, "logLevel", mustBeString);
- let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
- if (color !== void 0) flags.push(`--color=${color}`);
- else if (isTTY2) flags.push(`--color=true`);
- flags.push(`--log-level=${logLevel || logLevelDefault}`);
- flags.push(`--log-limit=${logLimit || 0}`);
-}
-function validateStringValue(value, what, key) {
- if (typeof value !== "string") {
- throw new Error(`Expected value for ${what}${key !== void 0 ? " " + quote(key) : ""} to be a string, got ${typeof value} instead`);
- }
- return value;
-}
-function pushCommonFlags(flags, options, keys) {
- let legalComments = getFlag(options, keys, "legalComments", mustBeString);
- let sourceRoot = getFlag(options, keys, "sourceRoot", mustBeString);
- let sourcesContent = getFlag(options, keys, "sourcesContent", mustBeBoolean);
- let target = getFlag(options, keys, "target", mustBeStringOrArray);
- let format = getFlag(options, keys, "format", mustBeString);
- let globalName = getFlag(options, keys, "globalName", mustBeString);
- let mangleProps = getFlag(options, keys, "mangleProps", mustBeRegExp);
- let reserveProps = getFlag(options, keys, "reserveProps", mustBeRegExp);
- let mangleQuoted = getFlag(options, keys, "mangleQuoted", mustBeBoolean);
- let minify = getFlag(options, keys, "minify", mustBeBoolean);
- let minifySyntax = getFlag(options, keys, "minifySyntax", mustBeBoolean);
- let minifyWhitespace = getFlag(options, keys, "minifyWhitespace", mustBeBoolean);
- let minifyIdentifiers = getFlag(options, keys, "minifyIdentifiers", mustBeBoolean);
- let lineLimit = getFlag(options, keys, "lineLimit", mustBeInteger);
- let drop = getFlag(options, keys, "drop", mustBeArray);
- let dropLabels = getFlag(options, keys, "dropLabels", mustBeArray);
- let charset = getFlag(options, keys, "charset", mustBeString);
- let treeShaking = getFlag(options, keys, "treeShaking", mustBeBoolean);
- let ignoreAnnotations = getFlag(options, keys, "ignoreAnnotations", mustBeBoolean);
- let jsx = getFlag(options, keys, "jsx", mustBeString);
- let jsxFactory = getFlag(options, keys, "jsxFactory", mustBeString);
- let jsxFragment = getFlag(options, keys, "jsxFragment", mustBeString);
- let jsxImportSource = getFlag(options, keys, "jsxImportSource", mustBeString);
- let jsxDev = getFlag(options, keys, "jsxDev", mustBeBoolean);
- let jsxSideEffects = getFlag(options, keys, "jsxSideEffects", mustBeBoolean);
- let define = getFlag(options, keys, "define", mustBeObject);
- let logOverride = getFlag(options, keys, "logOverride", mustBeObject);
- let supported = getFlag(options, keys, "supported", mustBeObject);
- let pure = getFlag(options, keys, "pure", mustBeArray);
- let keepNames = getFlag(options, keys, "keepNames", mustBeBoolean);
- let platform = getFlag(options, keys, "platform", mustBeString);
- let tsconfigRaw = getFlag(options, keys, "tsconfigRaw", mustBeStringOrObject);
- if (legalComments) flags.push(`--legal-comments=${legalComments}`);
- if (sourceRoot !== void 0) flags.push(`--source-root=${sourceRoot}`);
- if (sourcesContent !== void 0) flags.push(`--sources-content=${sourcesContent}`);
- if (target) {
- if (Array.isArray(target)) flags.push(`--target=${Array.from(target).map(validateTarget).join(",")}`);
- else flags.push(`--target=${validateTarget(target)}`);
- }
- if (format) flags.push(`--format=${format}`);
- if (globalName) flags.push(`--global-name=${globalName}`);
- if (platform) flags.push(`--platform=${platform}`);
- if (tsconfigRaw) flags.push(`--tsconfig-raw=${typeof tsconfigRaw === "string" ? tsconfigRaw : JSON.stringify(tsconfigRaw)}`);
- if (minify) flags.push("--minify");
- if (minifySyntax) flags.push("--minify-syntax");
- if (minifyWhitespace) flags.push("--minify-whitespace");
- if (minifyIdentifiers) flags.push("--minify-identifiers");
- if (lineLimit) flags.push(`--line-limit=${lineLimit}`);
- if (charset) flags.push(`--charset=${charset}`);
- if (treeShaking !== void 0) flags.push(`--tree-shaking=${treeShaking}`);
- if (ignoreAnnotations) flags.push(`--ignore-annotations`);
- if (drop) for (let what of drop) flags.push(`--drop:${validateStringValue(what, "drop")}`);
- if (dropLabels) flags.push(`--drop-labels=${Array.from(dropLabels).map((what) => validateStringValue(what, "dropLabels")).join(",")}`);
- if (mangleProps) flags.push(`--mangle-props=${mangleProps.source}`);
- if (reserveProps) flags.push(`--reserve-props=${reserveProps.source}`);
- if (mangleQuoted !== void 0) flags.push(`--mangle-quoted=${mangleQuoted}`);
- if (jsx) flags.push(`--jsx=${jsx}`);
- if (jsxFactory) flags.push(`--jsx-factory=${jsxFactory}`);
- if (jsxFragment) flags.push(`--jsx-fragment=${jsxFragment}`);
- if (jsxImportSource) flags.push(`--jsx-import-source=${jsxImportSource}`);
- if (jsxDev) flags.push(`--jsx-dev`);
- if (jsxSideEffects) flags.push(`--jsx-side-effects`);
- if (define) {
- for (let key in define) {
- if (key.indexOf("=") >= 0) throw new Error(`Invalid define: ${key}`);
- flags.push(`--define:${key}=${validateStringValue(define[key], "define", key)}`);
- }
- }
- if (logOverride) {
- for (let key in logOverride) {
- if (key.indexOf("=") >= 0) throw new Error(`Invalid log override: ${key}`);
- flags.push(`--log-override:${key}=${validateStringValue(logOverride[key], "log override", key)}`);
- }
- }
- if (supported) {
- for (let key in supported) {
- if (key.indexOf("=") >= 0) throw new Error(`Invalid supported: ${key}`);
- const value = supported[key];
- if (typeof value !== "boolean") throw new Error(`Expected value for supported ${quote(key)} to be a boolean, got ${typeof value} instead`);
- flags.push(`--supported:${key}=${value}`);
- }
- }
- if (pure) for (let fn of pure) flags.push(`--pure:${validateStringValue(fn, "pure")}`);
- if (keepNames) flags.push(`--keep-names`);
-}
-function flagsForBuildOptions(callName, options, isTTY2, logLevelDefault, writeDefault) {
- var _a2;
- let flags = [];
- let entries = [];
- let keys = /* @__PURE__ */ Object.create(null);
- let stdinContents = null;
- let stdinResolveDir = null;
- pushLogFlags(flags, options, keys, isTTY2, logLevelDefault);
- pushCommonFlags(flags, options, keys);
- let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
- let bundle = getFlag(options, keys, "bundle", mustBeBoolean);
- let splitting = getFlag(options, keys, "splitting", mustBeBoolean);
- let preserveSymlinks = getFlag(options, keys, "preserveSymlinks", mustBeBoolean);
- let metafile = getFlag(options, keys, "metafile", mustBeBoolean);
- let outfile = getFlag(options, keys, "outfile", mustBeString);
- let outdir = getFlag(options, keys, "outdir", mustBeString);
- let outbase = getFlag(options, keys, "outbase", mustBeString);
- let tsconfig = getFlag(options, keys, "tsconfig", mustBeString);
- let resolveExtensions = getFlag(options, keys, "resolveExtensions", mustBeArray);
- let nodePathsInput = getFlag(options, keys, "nodePaths", mustBeArray);
- let mainFields = getFlag(options, keys, "mainFields", mustBeArray);
- let conditions = getFlag(options, keys, "conditions", mustBeArray);
- let external = getFlag(options, keys, "external", mustBeArray);
- let packages = getFlag(options, keys, "packages", mustBeString);
- let alias = getFlag(options, keys, "alias", mustBeObject);
- let loader = getFlag(options, keys, "loader", mustBeObject);
- let outExtension = getFlag(options, keys, "outExtension", mustBeObject);
- let publicPath = getFlag(options, keys, "publicPath", mustBeString);
- let entryNames = getFlag(options, keys, "entryNames", mustBeString);
- let chunkNames = getFlag(options, keys, "chunkNames", mustBeString);
- let assetNames = getFlag(options, keys, "assetNames", mustBeString);
- let inject = getFlag(options, keys, "inject", mustBeArray);
- let banner = getFlag(options, keys, "banner", mustBeObject);
- let footer = getFlag(options, keys, "footer", mustBeObject);
- let entryPoints = getFlag(options, keys, "entryPoints", mustBeEntryPoints);
- let absWorkingDir = getFlag(options, keys, "absWorkingDir", mustBeString);
- let stdin = getFlag(options, keys, "stdin", mustBeObject);
- let write = (_a2 = getFlag(options, keys, "write", mustBeBoolean)) != null ? _a2 : writeDefault;
- let allowOverwrite = getFlag(options, keys, "allowOverwrite", mustBeBoolean);
- let mangleCache = getFlag(options, keys, "mangleCache", mustBeObject);
- keys.plugins = true;
- checkForInvalidFlags(options, keys, `in ${callName}() call`);
- if (sourcemap) flags.push(`--sourcemap${sourcemap === true ? "" : `=${sourcemap}`}`);
- if (bundle) flags.push("--bundle");
- if (allowOverwrite) flags.push("--allow-overwrite");
- if (splitting) flags.push("--splitting");
- if (preserveSymlinks) flags.push("--preserve-symlinks");
- if (metafile) flags.push(`--metafile`);
- if (outfile) flags.push(`--outfile=${outfile}`);
- if (outdir) flags.push(`--outdir=${outdir}`);
- if (outbase) flags.push(`--outbase=${outbase}`);
- if (tsconfig) flags.push(`--tsconfig=${tsconfig}`);
- if (packages) flags.push(`--packages=${packages}`);
- if (resolveExtensions) {
- let values = [];
- for (let value of resolveExtensions) {
- validateStringValue(value, "resolve extension");
- if (value.indexOf(",") >= 0) throw new Error(`Invalid resolve extension: ${value}`);
- values.push(value);
- }
- flags.push(`--resolve-extensions=${values.join(",")}`);
- }
- if (publicPath) flags.push(`--public-path=${publicPath}`);
- if (entryNames) flags.push(`--entry-names=${entryNames}`);
- if (chunkNames) flags.push(`--chunk-names=${chunkNames}`);
- if (assetNames) flags.push(`--asset-names=${assetNames}`);
- if (mainFields) {
- let values = [];
- for (let value of mainFields) {
- validateStringValue(value, "main field");
- if (value.indexOf(",") >= 0) throw new Error(`Invalid main field: ${value}`);
- values.push(value);
- }
- flags.push(`--main-fields=${values.join(",")}`);
- }
- if (conditions) {
- let values = [];
- for (let value of conditions) {
- validateStringValue(value, "condition");
- if (value.indexOf(",") >= 0) throw new Error(`Invalid condition: ${value}`);
- values.push(value);
- }
- flags.push(`--conditions=${values.join(",")}`);
- }
- if (external) for (let name of external) flags.push(`--external:${validateStringValue(name, "external")}`);
- if (alias) {
- for (let old in alias) {
- if (old.indexOf("=") >= 0) throw new Error(`Invalid package name in alias: ${old}`);
- flags.push(`--alias:${old}=${validateStringValue(alias[old], "alias", old)}`);
- }
- }
- if (banner) {
- for (let type in banner) {
- if (type.indexOf("=") >= 0) throw new Error(`Invalid banner file type: ${type}`);
- flags.push(`--banner:${type}=${validateStringValue(banner[type], "banner", type)}`);
- }
- }
- if (footer) {
- for (let type in footer) {
- if (type.indexOf("=") >= 0) throw new Error(`Invalid footer file type: ${type}`);
- flags.push(`--footer:${type}=${validateStringValue(footer[type], "footer", type)}`);
- }
- }
- if (inject) for (let path3 of inject) flags.push(`--inject:${validateStringValue(path3, "inject")}`);
- if (loader) {
- for (let ext in loader) {
- if (ext.indexOf("=") >= 0) throw new Error(`Invalid loader extension: ${ext}`);
- flags.push(`--loader:${ext}=${validateStringValue(loader[ext], "loader", ext)}`);
- }
- }
- if (outExtension) {
- for (let ext in outExtension) {
- if (ext.indexOf("=") >= 0) throw new Error(`Invalid out extension: ${ext}`);
- flags.push(`--out-extension:${ext}=${validateStringValue(outExtension[ext], "out extension", ext)}`);
- }
- }
- if (entryPoints) {
- if (Array.isArray(entryPoints)) {
- for (let i = 0, n = entryPoints.length; i < n; i++) {
- let entryPoint = entryPoints[i];
- if (typeof entryPoint === "object" && entryPoint !== null) {
- let entryPointKeys = /* @__PURE__ */ Object.create(null);
- let input = getFlag(entryPoint, entryPointKeys, "in", mustBeString);
- let output = getFlag(entryPoint, entryPointKeys, "out", mustBeString);
- checkForInvalidFlags(entryPoint, entryPointKeys, "in entry point at index " + i);
- if (input === void 0) throw new Error('Missing property "in" for entry point at index ' + i);
- if (output === void 0) throw new Error('Missing property "out" for entry point at index ' + i);
- entries.push([output, input]);
- } else {
- entries.push(["", validateStringValue(entryPoint, "entry point at index " + i)]);
- }
- }
- } else {
- for (let key in entryPoints) {
- entries.push([key, validateStringValue(entryPoints[key], "entry point", key)]);
- }
- }
- }
- if (stdin) {
- let stdinKeys = /* @__PURE__ */ Object.create(null);
- let contents = getFlag(stdin, stdinKeys, "contents", mustBeStringOrUint8Array);
- let resolveDir = getFlag(stdin, stdinKeys, "resolveDir", mustBeString);
- let sourcefile = getFlag(stdin, stdinKeys, "sourcefile", mustBeString);
- let loader2 = getFlag(stdin, stdinKeys, "loader", mustBeString);
- checkForInvalidFlags(stdin, stdinKeys, 'in "stdin" object');
- if (sourcefile) flags.push(`--sourcefile=${sourcefile}`);
- if (loader2) flags.push(`--loader=${loader2}`);
- if (resolveDir) stdinResolveDir = resolveDir;
- if (typeof contents === "string") stdinContents = encodeUTF8(contents);
- else if (contents instanceof Uint8Array) stdinContents = contents;
- }
- let nodePaths = [];
- if (nodePathsInput) {
- for (let value of nodePathsInput) {
- value += "";
- nodePaths.push(value);
- }
- }
- return {
- entries,
- flags,
- write,
- stdinContents,
- stdinResolveDir,
- absWorkingDir,
- nodePaths,
- mangleCache: validateMangleCache(mangleCache)
- };
-}
-function flagsForTransformOptions(callName, options, isTTY2, logLevelDefault) {
- let flags = [];
- let keys = /* @__PURE__ */ Object.create(null);
- pushLogFlags(flags, options, keys, isTTY2, logLevelDefault);
- pushCommonFlags(flags, options, keys);
- let sourcemap = getFlag(options, keys, "sourcemap", mustBeStringOrBoolean);
- let sourcefile = getFlag(options, keys, "sourcefile", mustBeString);
- let loader = getFlag(options, keys, "loader", mustBeString);
- let banner = getFlag(options, keys, "banner", mustBeString);
- let footer = getFlag(options, keys, "footer", mustBeString);
- let mangleCache = getFlag(options, keys, "mangleCache", mustBeObject);
- checkForInvalidFlags(options, keys, `in ${callName}() call`);
- if (sourcemap) flags.push(`--sourcemap=${sourcemap === true ? "external" : sourcemap}`);
- if (sourcefile) flags.push(`--sourcefile=${sourcefile}`);
- if (loader) flags.push(`--loader=${loader}`);
- if (banner) flags.push(`--banner=${banner}`);
- if (footer) flags.push(`--footer=${footer}`);
- return {
- flags,
- mangleCache: validateMangleCache(mangleCache)
- };
-}
-function createChannel(streamIn) {
- const requestCallbacksByKey = {};
- const closeData = { didClose: false, reason: "" };
- let responseCallbacks = {};
- let nextRequestID = 0;
- let nextBuildKey = 0;
- let stdout = new Uint8Array(16 * 1024);
- let stdoutUsed = 0;
- let readFromStdout = (chunk) => {
- let limit = stdoutUsed + chunk.length;
- if (limit > stdout.length) {
- let swap = new Uint8Array(limit * 2);
- swap.set(stdout);
- stdout = swap;
- }
- stdout.set(chunk, stdoutUsed);
- stdoutUsed += chunk.length;
- let offset = 0;
- while (offset + 4 <= stdoutUsed) {
- let length = readUInt32LE(stdout, offset);
- if (offset + 4 + length > stdoutUsed) {
- break;
- }
- offset += 4;
- handleIncomingPacket(stdout.subarray(offset, offset + length));
- offset += length;
- }
- if (offset > 0) {
- stdout.copyWithin(0, offset, stdoutUsed);
- stdoutUsed -= offset;
- }
- };
- let afterClose = (error) => {
- closeData.didClose = true;
- if (error) closeData.reason = ": " + (error.message || error);
- const text = "The service was stopped" + closeData.reason;
- for (let id in responseCallbacks) {
- responseCallbacks[id](text, null);
- }
- responseCallbacks = {};
- };
- let sendRequest = (refs, value, callback) => {
- if (closeData.didClose) return callback("The service is no longer running" + closeData.reason, null);
- let id = nextRequestID++;
- responseCallbacks[id] = (error, response) => {
- try {
- callback(error, response);
- } finally {
- if (refs) refs.unref();
- }
- };
- if (refs) refs.ref();
- streamIn.writeToStdin(encodePacket({ id, isRequest: true, value }));
- };
- let sendResponse = (id, value) => {
- if (closeData.didClose) throw new Error("The service is no longer running" + closeData.reason);
- streamIn.writeToStdin(encodePacket({ id, isRequest: false, value }));
- };
- let handleRequest = async (id, request) => {
- try {
- if (request.command === "ping") {
- sendResponse(id, {});
- return;
- }
- if (typeof request.key === "number") {
- const requestCallbacks = requestCallbacksByKey[request.key];
- if (!requestCallbacks) {
- return;
- }
- const callback = requestCallbacks[request.command];
- if (callback) {
- await callback(id, request);
- return;
- }
- }
- throw new Error(`Invalid command: ` + request.command);
- } catch (e) {
- const errors = [extractErrorMessageV8(e, streamIn, null, void 0, "")];
- try {
- sendResponse(id, { errors });
- } catch {
- }
- }
- };
- let isFirstPacket = true;
- let handleIncomingPacket = (bytes) => {
- if (isFirstPacket) {
- isFirstPacket = false;
- let binaryVersion = String.fromCharCode(...bytes);
- if (binaryVersion !== "0.24.2") {
- throw new Error(`Cannot start service: Host version "${"0.24.2"}" does not match binary version ${quote(binaryVersion)}`);
- }
- return;
- }
- let packet = decodePacket(bytes);
- if (packet.isRequest) {
- handleRequest(packet.id, packet.value);
- } else {
- let callback = responseCallbacks[packet.id];
- delete responseCallbacks[packet.id];
- if (packet.value.error) callback(packet.value.error, {});
- else callback(null, packet.value);
- }
- };
- let buildOrContext = ({ callName, refs, options, isTTY: isTTY2, defaultWD: defaultWD2, callback }) => {
- let refCount = 0;
- const buildKey = nextBuildKey++;
- const requestCallbacks = {};
- const buildRefs = {
- ref() {
- if (++refCount === 1) {
- if (refs) refs.ref();
- }
- },
- unref() {
- if (--refCount === 0) {
- delete requestCallbacksByKey[buildKey];
- if (refs) refs.unref();
- }
- }
- };
- requestCallbacksByKey[buildKey] = requestCallbacks;
- buildRefs.ref();
- buildOrContextImpl(
- callName,
- buildKey,
- sendRequest,
- sendResponse,
- buildRefs,
- streamIn,
- requestCallbacks,
- options,
- isTTY2,
- defaultWD2,
- (err, res) => {
- try {
- callback(err, res);
- } finally {
- buildRefs.unref();
- }
- }
- );
- };
- let transform2 = ({ callName, refs, input, options, isTTY: isTTY2, fs: fs3, callback }) => {
- const details = createObjectStash();
- let start = (inputPath) => {
- try {
- if (typeof input !== "string" && !(input instanceof Uint8Array))
- throw new Error('The input to "transform" must be a string or a Uint8Array');
- let {
- flags,
- mangleCache
- } = flagsForTransformOptions(callName, options, isTTY2, transformLogLevelDefault);
- let request = {
- command: "transform",
- flags,
- inputFS: inputPath !== null,
- input: inputPath !== null ? encodeUTF8(inputPath) : typeof input === "string" ? encodeUTF8(input) : input
- };
- if (mangleCache) request.mangleCache = mangleCache;
- sendRequest(refs, request, (error, response) => {
- if (error) return callback(new Error(error), null);
- let errors = replaceDetailsInMessages(response.errors, details);
- let warnings = replaceDetailsInMessages(response.warnings, details);
- let outstanding = 1;
- let next = () => {
- if (--outstanding === 0) {
- let result = {
- warnings,
- code: response.code,
- map: response.map,
- mangleCache: void 0,
- legalComments: void 0
- };
- if ("legalComments" in response) result.legalComments = response == null ? void 0 : response.legalComments;
- if (response.mangleCache) result.mangleCache = response == null ? void 0 : response.mangleCache;
- callback(null, result);
- }
- };
- if (errors.length > 0) return callback(failureErrorWithLog("Transform failed", errors, warnings), null);
- if (response.codeFS) {
- outstanding++;
- fs3.readFile(response.code, (err, contents) => {
- if (err !== null) {
- callback(err, null);
- } else {
- response.code = contents;
- next();
- }
- });
- }
- if (response.mapFS) {
- outstanding++;
- fs3.readFile(response.map, (err, contents) => {
- if (err !== null) {
- callback(err, null);
- } else {
- response.map = contents;
- next();
- }
- });
- }
- next();
- });
- } catch (e) {
- let flags = [];
- try {
- pushLogFlags(flags, options, {}, isTTY2, transformLogLevelDefault);
- } catch {
- }
- const error = extractErrorMessageV8(e, streamIn, details, void 0, "");
- sendRequest(refs, { command: "error", flags, error }, () => {
- error.detail = details.load(error.detail);
- callback(failureErrorWithLog("Transform failed", [error], []), null);
- });
- }
- };
- if ((typeof input === "string" || input instanceof Uint8Array) && input.length > 1024 * 1024) {
- let next = start;
- start = () => fs3.writeFile(input, next);
- }
- start(null);
- };
- let formatMessages2 = ({ callName, refs, messages, options, callback }) => {
- if (!options) throw new Error(`Missing second argument in ${callName}() call`);
- let keys = {};
- let kind = getFlag(options, keys, "kind", mustBeString);
- let color = getFlag(options, keys, "color", mustBeBoolean);
- let terminalWidth = getFlag(options, keys, "terminalWidth", mustBeInteger);
- checkForInvalidFlags(options, keys, `in ${callName}() call`);
- if (kind === void 0) throw new Error(`Missing "kind" in ${callName}() call`);
- if (kind !== "error" && kind !== "warning") throw new Error(`Expected "kind" to be "error" or "warning" in ${callName}() call`);
- let request = {
- command: "format-msgs",
- messages: sanitizeMessages(messages, "messages", null, "", terminalWidth),
- isWarning: kind === "warning"
- };
- if (color !== void 0) request.color = color;
- if (terminalWidth !== void 0) request.terminalWidth = terminalWidth;
- sendRequest(refs, request, (error, response) => {
- if (error) return callback(new Error(error), null);
- callback(null, response.messages);
- });
- };
- let analyzeMetafile2 = ({ callName, refs, metafile, options, callback }) => {
- if (options === void 0) options = {};
- let keys = {};
- let color = getFlag(options, keys, "color", mustBeBoolean);
- let verbose = getFlag(options, keys, "verbose", mustBeBoolean);
- checkForInvalidFlags(options, keys, `in ${callName}() call`);
- let request = {
- command: "analyze-metafile",
- metafile
- };
- if (color !== void 0) request.color = color;
- if (verbose !== void 0) request.verbose = verbose;
- sendRequest(refs, request, (error, response) => {
- if (error) return callback(new Error(error), null);
- callback(null, response.result);
- });
- };
- return {
- readFromStdout,
- afterClose,
- service: {
- buildOrContext,
- transform: transform2,
- formatMessages: formatMessages2,
- analyzeMetafile: analyzeMetafile2
- }
- };
-}
-function buildOrContextImpl(callName, buildKey, sendRequest, sendResponse, refs, streamIn, requestCallbacks, options, isTTY2, defaultWD2, callback) {
- const details = createObjectStash();
- const isContext = callName === "context";
- const handleError = (e, pluginName) => {
- const flags = [];
- try {
- pushLogFlags(flags, options, {}, isTTY2, buildLogLevelDefault);
- } catch {
- }
- const message = extractErrorMessageV8(e, streamIn, details, void 0, pluginName);
- sendRequest(refs, { command: "error", flags, error: message }, () => {
- message.detail = details.load(message.detail);
- callback(failureErrorWithLog(isContext ? "Context failed" : "Build failed", [message], []), null);
- });
- };
- let plugins;
- if (typeof options === "object") {
- const value = options.plugins;
- if (value !== void 0) {
- if (!Array.isArray(value)) return handleError(new Error(`"plugins" must be an array`), "");
- plugins = value;
- }
- }
- if (plugins && plugins.length > 0) {
- if (streamIn.isSync) return handleError(new Error("Cannot use plugins in synchronous API calls"), "");
- handlePlugins(
- buildKey,
- sendRequest,
- sendResponse,
- refs,
- streamIn,
- requestCallbacks,
- options,
- plugins,
- details
- ).then(
- (result) => {
- if (!result.ok) return handleError(result.error, result.pluginName);
- try {
- buildOrContextContinue(result.requestPlugins, result.runOnEndCallbacks, result.scheduleOnDisposeCallbacks);
- } catch (e) {
- handleError(e, "");
- }
- },
- (e) => handleError(e, "")
- );
- return;
- }
- try {
- buildOrContextContinue(null, (result, done) => done([], []), () => {
- });
- } catch (e) {
- handleError(e, "");
- }
- function buildOrContextContinue(requestPlugins, runOnEndCallbacks, scheduleOnDisposeCallbacks) {
- const writeDefault = streamIn.hasFS;
- const {
- entries,
- flags,
- write,
- stdinContents,
- stdinResolveDir,
- absWorkingDir,
- nodePaths,
- mangleCache
- } = flagsForBuildOptions(callName, options, isTTY2, buildLogLevelDefault, writeDefault);
- if (write && !streamIn.hasFS) throw new Error(`The "write" option is unavailable in this environment`);
- const request = {
- command: "build",
- key: buildKey,
- entries,
- flags,
- write,
- stdinContents,
- stdinResolveDir,
- absWorkingDir: absWorkingDir || defaultWD2,
- nodePaths,
- context: isContext
- };
- if (requestPlugins) request.plugins = requestPlugins;
- if (mangleCache) request.mangleCache = mangleCache;
- const buildResponseToResult = (response, callback2) => {
- const result = {
- errors: replaceDetailsInMessages(response.errors, details),
- warnings: replaceDetailsInMessages(response.warnings, details),
- outputFiles: void 0,
- metafile: void 0,
- mangleCache: void 0
- };
- const originalErrors = result.errors.slice();
- const originalWarnings = result.warnings.slice();
- if (response.outputFiles) result.outputFiles = response.outputFiles.map(convertOutputFiles);
- if (response.metafile) result.metafile = JSON.parse(response.metafile);
- if (response.mangleCache) result.mangleCache = response.mangleCache;
- if (response.writeToStdout !== void 0) console.log(decodeUTF8(response.writeToStdout).replace(/\n$/, ""));
- runOnEndCallbacks(result, (onEndErrors, onEndWarnings) => {
- if (originalErrors.length > 0 || onEndErrors.length > 0) {
- const error = failureErrorWithLog("Build failed", originalErrors.concat(onEndErrors), originalWarnings.concat(onEndWarnings));
- return callback2(error, null, onEndErrors, onEndWarnings);
- }
- callback2(null, result, onEndErrors, onEndWarnings);
- });
- };
- let latestResultPromise;
- let provideLatestResult;
- if (isContext)
- requestCallbacks["on-end"] = (id, request2) => new Promise((resolve) => {
- buildResponseToResult(request2, (err, result, onEndErrors, onEndWarnings) => {
- const response = {
- errors: onEndErrors,
- warnings: onEndWarnings
- };
- if (provideLatestResult) provideLatestResult(err, result);
- latestResultPromise = void 0;
- provideLatestResult = void 0;
- sendResponse(id, response);
- resolve();
- });
- });
- sendRequest(refs, request, (error, response) => {
- if (error) return callback(new Error(error), null);
- if (!isContext) {
- return buildResponseToResult(response, (err, res) => {
- scheduleOnDisposeCallbacks();
- return callback(err, res);
- });
- }
- if (response.errors.length > 0) {
- return callback(failureErrorWithLog("Context failed", response.errors, response.warnings), null);
- }
- let didDispose = false;
- const result = {
- rebuild: () => {
- if (!latestResultPromise) latestResultPromise = new Promise((resolve, reject) => {
- let settlePromise;
- provideLatestResult = (err, result2) => {
- if (!settlePromise) settlePromise = () => err ? reject(err) : resolve(result2);
- };
- const triggerAnotherBuild = () => {
- const request2 = {
- command: "rebuild",
- key: buildKey
- };
- sendRequest(refs, request2, (error2, response2) => {
- if (error2) {
- reject(new Error(error2));
- } else if (settlePromise) {
- settlePromise();
- } else {
- triggerAnotherBuild();
- }
- });
- };
- triggerAnotherBuild();
- });
- return latestResultPromise;
- },
- watch: (options2 = {}) => new Promise((resolve, reject) => {
- if (!streamIn.hasFS) throw new Error(`Cannot use the "watch" API in this environment`);
- const keys = {};
- checkForInvalidFlags(options2, keys, `in watch() call`);
- const request2 = {
- command: "watch",
- key: buildKey
- };
- sendRequest(refs, request2, (error2) => {
- if (error2) reject(new Error(error2));
- else resolve(void 0);
- });
- }),
- serve: (options2 = {}) => new Promise((resolve, reject) => {
- if (!streamIn.hasFS) throw new Error(`Cannot use the "serve" API in this environment`);
- const keys = {};
- const port = getFlag(options2, keys, "port", mustBeInteger);
- const host = getFlag(options2, keys, "host", mustBeString);
- const servedir = getFlag(options2, keys, "servedir", mustBeString);
- const keyfile = getFlag(options2, keys, "keyfile", mustBeString);
- const certfile = getFlag(options2, keys, "certfile", mustBeString);
- const fallback = getFlag(options2, keys, "fallback", mustBeString);
- const onRequest = getFlag(options2, keys, "onRequest", mustBeFunction);
- checkForInvalidFlags(options2, keys, `in serve() call`);
- const request2 = {
- command: "serve",
- key: buildKey,
- onRequest: !!onRequest
- };
- if (port !== void 0) request2.port = port;
- if (host !== void 0) request2.host = host;
- if (servedir !== void 0) request2.servedir = servedir;
- if (keyfile !== void 0) request2.keyfile = keyfile;
- if (certfile !== void 0) request2.certfile = certfile;
- if (fallback !== void 0) request2.fallback = fallback;
- sendRequest(refs, request2, (error2, response2) => {
- if (error2) return reject(new Error(error2));
- if (onRequest) {
- requestCallbacks["serve-request"] = (id, request3) => {
- onRequest(request3.args);
- sendResponse(id, {});
- };
- }
- resolve(response2);
- });
- }),
- cancel: () => new Promise((resolve) => {
- if (didDispose) return resolve();
- const request2 = {
- command: "cancel",
- key: buildKey
- };
- sendRequest(refs, request2, () => {
- resolve();
- });
- }),
- dispose: () => new Promise((resolve) => {
- if (didDispose) return resolve();
- didDispose = true;
- const request2 = {
- command: "dispose",
- key: buildKey
- };
- sendRequest(refs, request2, () => {
- resolve();
- scheduleOnDisposeCallbacks();
- refs.unref();
- });
- })
- };
- refs.ref();
- callback(null, result);
- });
- }
-}
-var handlePlugins = async (buildKey, sendRequest, sendResponse, refs, streamIn, requestCallbacks, initialOptions, plugins, details) => {
- let onStartCallbacks = [];
- let onEndCallbacks = [];
- let onResolveCallbacks = {};
- let onLoadCallbacks = {};
- let onDisposeCallbacks = [];
- let nextCallbackID = 0;
- let i = 0;
- let requestPlugins = [];
- let isSetupDone = false;
- plugins = [...plugins];
- for (let item of plugins) {
- let keys = {};
- if (typeof item !== "object") throw new Error(`Plugin at index ${i} must be an object`);
- const name = getFlag(item, keys, "name", mustBeString);
- if (typeof name !== "string" || name === "") throw new Error(`Plugin at index ${i} is missing a name`);
- try {
- let setup = getFlag(item, keys, "setup", mustBeFunction);
- if (typeof setup !== "function") throw new Error(`Plugin is missing a setup function`);
- checkForInvalidFlags(item, keys, `on plugin ${quote(name)}`);
- let plugin = {
- name,
- onStart: false,
- onEnd: false,
- onResolve: [],
- onLoad: []
- };
- i++;
- let resolve = (path3, options = {}) => {
- if (!isSetupDone) throw new Error('Cannot call "resolve" before plugin setup has completed');
- if (typeof path3 !== "string") throw new Error(`The path to resolve must be a string`);
- let keys2 = /* @__PURE__ */ Object.create(null);
- let pluginName = getFlag(options, keys2, "pluginName", mustBeString);
- let importer = getFlag(options, keys2, "importer", mustBeString);
- let namespace = getFlag(options, keys2, "namespace", mustBeString);
- let resolveDir = getFlag(options, keys2, "resolveDir", mustBeString);
- let kind = getFlag(options, keys2, "kind", mustBeString);
- let pluginData = getFlag(options, keys2, "pluginData", canBeAnything);
- let importAttributes = getFlag(options, keys2, "with", mustBeObject);
- checkForInvalidFlags(options, keys2, "in resolve() call");
- return new Promise((resolve2, reject) => {
- const request = {
- command: "resolve",
- path: path3,
- key: buildKey,
- pluginName: name
- };
- if (pluginName != null) request.pluginName = pluginName;
- if (importer != null) request.importer = importer;
- if (namespace != null) request.namespace = namespace;
- if (resolveDir != null) request.resolveDir = resolveDir;
- if (kind != null) request.kind = kind;
- else throw new Error(`Must specify "kind" when calling "resolve"`);
- if (pluginData != null) request.pluginData = details.store(pluginData);
- if (importAttributes != null) request.with = sanitizeStringMap(importAttributes, "with");
- sendRequest(refs, request, (error, response) => {
- if (error !== null) reject(new Error(error));
- else resolve2({
- errors: replaceDetailsInMessages(response.errors, details),
- warnings: replaceDetailsInMessages(response.warnings, details),
- path: response.path,
- external: response.external,
- sideEffects: response.sideEffects,
- namespace: response.namespace,
- suffix: response.suffix,
- pluginData: details.load(response.pluginData)
- });
- });
- });
- };
- let promise = setup({
- initialOptions,
- resolve,
- onStart(callback) {
- let registeredText = `This error came from the "onStart" callback registered here:`;
- let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onStart");
- onStartCallbacks.push({ name, callback, note: registeredNote });
- plugin.onStart = true;
- },
- onEnd(callback) {
- let registeredText = `This error came from the "onEnd" callback registered here:`;
- let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onEnd");
- onEndCallbacks.push({ name, callback, note: registeredNote });
- plugin.onEnd = true;
- },
- onResolve(options, callback) {
- let registeredText = `This error came from the "onResolve" callback registered here:`;
- let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onResolve");
- let keys2 = {};
- let filter = getFlag(options, keys2, "filter", mustBeRegExp);
- let namespace = getFlag(options, keys2, "namespace", mustBeString);
- checkForInvalidFlags(options, keys2, `in onResolve() call for plugin ${quote(name)}`);
- if (filter == null) throw new Error(`onResolve() call is missing a filter`);
- let id = nextCallbackID++;
- onResolveCallbacks[id] = { name, callback, note: registeredNote };
- plugin.onResolve.push({ id, filter: filter.source, namespace: namespace || "" });
- },
- onLoad(options, callback) {
- let registeredText = `This error came from the "onLoad" callback registered here:`;
- let registeredNote = extractCallerV8(new Error(registeredText), streamIn, "onLoad");
- let keys2 = {};
- let filter = getFlag(options, keys2, "filter", mustBeRegExp);
- let namespace = getFlag(options, keys2, "namespace", mustBeString);
- checkForInvalidFlags(options, keys2, `in onLoad() call for plugin ${quote(name)}`);
- if (filter == null) throw new Error(`onLoad() call is missing a filter`);
- let id = nextCallbackID++;
- onLoadCallbacks[id] = { name, callback, note: registeredNote };
- plugin.onLoad.push({ id, filter: filter.source, namespace: namespace || "" });
- },
- onDispose(callback) {
- onDisposeCallbacks.push(callback);
- },
- esbuild: streamIn.esbuild
- });
- if (promise) await promise;
- requestPlugins.push(plugin);
- } catch (e) {
- return { ok: false, error: e, pluginName: name };
- }
- }
- requestCallbacks["on-start"] = async (id, request) => {
- details.clear();
- let response = { errors: [], warnings: [] };
- await Promise.all(onStartCallbacks.map(async ({ name, callback, note }) => {
- try {
- let result = await callback();
- if (result != null) {
- if (typeof result !== "object") throw new Error(`Expected onStart() callback in plugin ${quote(name)} to return an object`);
- let keys = {};
- let errors = getFlag(result, keys, "errors", mustBeArray);
- let warnings = getFlag(result, keys, "warnings", mustBeArray);
- checkForInvalidFlags(result, keys, `from onStart() callback in plugin ${quote(name)}`);
- if (errors != null) response.errors.push(...sanitizeMessages(errors, "errors", details, name, void 0));
- if (warnings != null) response.warnings.push(...sanitizeMessages(warnings, "warnings", details, name, void 0));
- }
- } catch (e) {
- response.errors.push(extractErrorMessageV8(e, streamIn, details, note && note(), name));
- }
- }));
- sendResponse(id, response);
- };
- requestCallbacks["on-resolve"] = async (id, request) => {
- let response = {}, name = "", callback, note;
- for (let id2 of request.ids) {
- try {
- ({ name, callback, note } = onResolveCallbacks[id2]);
- let result = await callback({
- path: request.path,
- importer: request.importer,
- namespace: request.namespace,
- resolveDir: request.resolveDir,
- kind: request.kind,
- pluginData: details.load(request.pluginData),
- with: request.with
- });
- if (result != null) {
- if (typeof result !== "object") throw new Error(`Expected onResolve() callback in plugin ${quote(name)} to return an object`);
- let keys = {};
- let pluginName = getFlag(result, keys, "pluginName", mustBeString);
- let path3 = getFlag(result, keys, "path", mustBeString);
- let namespace = getFlag(result, keys, "namespace", mustBeString);
- let suffix = getFlag(result, keys, "suffix", mustBeString);
- let external = getFlag(result, keys, "external", mustBeBoolean);
- let sideEffects = getFlag(result, keys, "sideEffects", mustBeBoolean);
- let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
- let errors = getFlag(result, keys, "errors", mustBeArray);
- let warnings = getFlag(result, keys, "warnings", mustBeArray);
- let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
- let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
- checkForInvalidFlags(result, keys, `from onResolve() callback in plugin ${quote(name)}`);
- response.id = id2;
- if (pluginName != null) response.pluginName = pluginName;
- if (path3 != null) response.path = path3;
- if (namespace != null) response.namespace = namespace;
- if (suffix != null) response.suffix = suffix;
- if (external != null) response.external = external;
- if (sideEffects != null) response.sideEffects = sideEffects;
- if (pluginData != null) response.pluginData = details.store(pluginData);
- if (errors != null) response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
- if (warnings != null) response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
- if (watchFiles != null) response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
- if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
- break;
- }
- } catch (e) {
- response = { id: id2, errors: [extractErrorMessageV8(e, streamIn, details, note && note(), name)] };
- break;
- }
- }
- sendResponse(id, response);
- };
- requestCallbacks["on-load"] = async (id, request) => {
- let response = {}, name = "", callback, note;
- for (let id2 of request.ids) {
- try {
- ({ name, callback, note } = onLoadCallbacks[id2]);
- let result = await callback({
- path: request.path,
- namespace: request.namespace,
- suffix: request.suffix,
- pluginData: details.load(request.pluginData),
- with: request.with
- });
- if (result != null) {
- if (typeof result !== "object") throw new Error(`Expected onLoad() callback in plugin ${quote(name)} to return an object`);
- let keys = {};
- let pluginName = getFlag(result, keys, "pluginName", mustBeString);
- let contents = getFlag(result, keys, "contents", mustBeStringOrUint8Array);
- let resolveDir = getFlag(result, keys, "resolveDir", mustBeString);
- let pluginData = getFlag(result, keys, "pluginData", canBeAnything);
- let loader = getFlag(result, keys, "loader", mustBeString);
- let errors = getFlag(result, keys, "errors", mustBeArray);
- let warnings = getFlag(result, keys, "warnings", mustBeArray);
- let watchFiles = getFlag(result, keys, "watchFiles", mustBeArray);
- let watchDirs = getFlag(result, keys, "watchDirs", mustBeArray);
- checkForInvalidFlags(result, keys, `from onLoad() callback in plugin ${quote(name)}`);
- response.id = id2;
- if (pluginName != null) response.pluginName = pluginName;
- if (contents instanceof Uint8Array) response.contents = contents;
- else if (contents != null) response.contents = encodeUTF8(contents);
- if (resolveDir != null) response.resolveDir = resolveDir;
- if (pluginData != null) response.pluginData = details.store(pluginData);
- if (loader != null) response.loader = loader;
- if (errors != null) response.errors = sanitizeMessages(errors, "errors", details, name, void 0);
- if (warnings != null) response.warnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
- if (watchFiles != null) response.watchFiles = sanitizeStringArray(watchFiles, "watchFiles");
- if (watchDirs != null) response.watchDirs = sanitizeStringArray(watchDirs, "watchDirs");
- break;
- }
- } catch (e) {
- response = { id: id2, errors: [extractErrorMessageV8(e, streamIn, details, note && note(), name)] };
- break;
- }
- }
- sendResponse(id, response);
- };
- let runOnEndCallbacks = (result, done) => done([], []);
- if (onEndCallbacks.length > 0) {
- runOnEndCallbacks = (result, done) => {
- (async () => {
- const onEndErrors = [];
- const onEndWarnings = [];
- for (const { name, callback, note } of onEndCallbacks) {
- let newErrors;
- let newWarnings;
- try {
- const value = await callback(result);
- if (value != null) {
- if (typeof value !== "object") throw new Error(`Expected onEnd() callback in plugin ${quote(name)} to return an object`);
- let keys = {};
- let errors = getFlag(value, keys, "errors", mustBeArray);
- let warnings = getFlag(value, keys, "warnings", mustBeArray);
- checkForInvalidFlags(value, keys, `from onEnd() callback in plugin ${quote(name)}`);
- if (errors != null) newErrors = sanitizeMessages(errors, "errors", details, name, void 0);
- if (warnings != null) newWarnings = sanitizeMessages(warnings, "warnings", details, name, void 0);
- }
- } catch (e) {
- newErrors = [extractErrorMessageV8(e, streamIn, details, note && note(), name)];
- }
- if (newErrors) {
- onEndErrors.push(...newErrors);
- try {
- result.errors.push(...newErrors);
- } catch {
- }
- }
- if (newWarnings) {
- onEndWarnings.push(...newWarnings);
- try {
- result.warnings.push(...newWarnings);
- } catch {
- }
- }
- }
- done(onEndErrors, onEndWarnings);
- })();
- };
- }
- let scheduleOnDisposeCallbacks = () => {
- for (const cb of onDisposeCallbacks) {
- setTimeout(() => cb(), 0);
- }
- };
- isSetupDone = true;
- return {
- ok: true,
- requestPlugins,
- runOnEndCallbacks,
- scheduleOnDisposeCallbacks
- };
-};
-function createObjectStash() {
- const map = /* @__PURE__ */ new Map();
- let nextID = 0;
- return {
- clear() {
- map.clear();
- },
- load(id) {
- return map.get(id);
- },
- store(value) {
- if (value === void 0) return -1;
- const id = nextID++;
- map.set(id, value);
- return id;
- }
- };
-}
-function extractCallerV8(e, streamIn, ident) {
- let note;
- let tried = false;
- return () => {
- if (tried) return note;
- tried = true;
- try {
- let lines = (e.stack + "").split("\n");
- lines.splice(1, 1);
- let location = parseStackLinesV8(streamIn, lines, ident);
- if (location) {
- note = { text: e.message, location };
- return note;
- }
- } catch {
- }
- };
-}
-function extractErrorMessageV8(e, streamIn, stash, note, pluginName) {
- let text = "Internal error";
- let location = null;
- try {
- text = (e && e.message || e) + "";
- } catch {
- }
- try {
- location = parseStackLinesV8(streamIn, (e.stack + "").split("\n"), "");
- } catch {
- }
- return { id: "", pluginName, text, location, notes: note ? [note] : [], detail: stash ? stash.store(e) : -1 };
-}
-function parseStackLinesV8(streamIn, lines, ident) {
- let at = " at ";
- if (streamIn.readFileSync && !lines[0].startsWith(at) && lines[1].startsWith(at)) {
- for (let i = 1; i < lines.length; i++) {
- let line = lines[i];
- if (!line.startsWith(at)) continue;
- line = line.slice(at.length);
- while (true) {
- let match = /^(?:new |async )?\S+ \((.*)\)$/.exec(line);
- if (match) {
- line = match[1];
- continue;
- }
- match = /^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(line);
- if (match) {
- line = match[1];
- continue;
- }
- match = /^(\S+):(\d+):(\d+)$/.exec(line);
- if (match) {
- let contents;
- try {
- contents = streamIn.readFileSync(match[1], "utf8");
- } catch {
- break;
- }
- let lineText = contents.split(/\r\n|\r|\n|\u2028|\u2029/)[+match[2] - 1] || "";
- let column = +match[3] - 1;
- let length = lineText.slice(column, column + ident.length) === ident ? ident.length : 0;
- return {
- file: match[1],
- namespace: "file",
- line: +match[2],
- column: encodeUTF8(lineText.slice(0, column)).length,
- length: encodeUTF8(lineText.slice(column, column + length)).length,
- lineText: lineText + "\n" + lines.slice(1).join("\n"),
- suggestion: ""
- };
- }
- break;
- }
- }
- }
- return null;
-}
-function failureErrorWithLog(text, errors, warnings) {
- let limit = 5;
- text += errors.length < 1 ? "" : ` with ${errors.length} error${errors.length < 2 ? "" : "s"}:` + errors.slice(0, limit + 1).map((e, i) => {
- if (i === limit) return "\n...";
- if (!e.location) return `
-error: ${e.text}`;
- let { file, line, column } = e.location;
- let pluginText = e.pluginName ? `[plugin: ${e.pluginName}] ` : "";
- return `
-${file}:${line}:${column}: ERROR: ${pluginText}${e.text}`;
- }).join("");
- let error = new Error(text);
- for (const [key, value] of [["errors", errors], ["warnings", warnings]]) {
- Object.defineProperty(error, key, {
- configurable: true,
- enumerable: true,
- get: () => value,
- set: (value2) => Object.defineProperty(error, key, {
- configurable: true,
- enumerable: true,
- value: value2
- })
- });
- }
- return error;
-}
-function replaceDetailsInMessages(messages, stash) {
- for (const message of messages) {
- message.detail = stash.load(message.detail);
- }
- return messages;
-}
-function sanitizeLocation(location, where, terminalWidth) {
- if (location == null) return null;
- let keys = {};
- let file = getFlag(location, keys, "file", mustBeString);
- let namespace = getFlag(location, keys, "namespace", mustBeString);
- let line = getFlag(location, keys, "line", mustBeInteger);
- let column = getFlag(location, keys, "column", mustBeInteger);
- let length = getFlag(location, keys, "length", mustBeInteger);
- let lineText = getFlag(location, keys, "lineText", mustBeString);
- let suggestion = getFlag(location, keys, "suggestion", mustBeString);
- checkForInvalidFlags(location, keys, where);
- if (lineText) {
- const relevantASCII = lineText.slice(
- 0,
- (column && column > 0 ? column : 0) + (length && length > 0 ? length : 0) + (terminalWidth && terminalWidth > 0 ? terminalWidth : 80)
- );
- if (!/[\x7F-\uFFFF]/.test(relevantASCII) && !/\n/.test(lineText)) {
- lineText = relevantASCII;
- }
- }
- return {
- file: file || "",
- namespace: namespace || "",
- line: line || 0,
- column: column || 0,
- length: length || 0,
- lineText: lineText || "",
- suggestion: suggestion || ""
- };
-}
-function sanitizeMessages(messages, property, stash, fallbackPluginName, terminalWidth) {
- let messagesClone = [];
- let index = 0;
- for (const message of messages) {
- let keys = {};
- let id = getFlag(message, keys, "id", mustBeString);
- let pluginName = getFlag(message, keys, "pluginName", mustBeString);
- let text = getFlag(message, keys, "text", mustBeString);
- let location = getFlag(message, keys, "location", mustBeObjectOrNull);
- let notes = getFlag(message, keys, "notes", mustBeArray);
- let detail = getFlag(message, keys, "detail", canBeAnything);
- let where = `in element ${index} of "${property}"`;
- checkForInvalidFlags(message, keys, where);
- let notesClone = [];
- if (notes) {
- for (const note of notes) {
- let noteKeys = {};
- let noteText = getFlag(note, noteKeys, "text", mustBeString);
- let noteLocation = getFlag(note, noteKeys, "location", mustBeObjectOrNull);
- checkForInvalidFlags(note, noteKeys, where);
- notesClone.push({
- text: noteText || "",
- location: sanitizeLocation(noteLocation, where, terminalWidth)
- });
- }
- }
- messagesClone.push({
- id: id || "",
- pluginName: pluginName || fallbackPluginName,
- text: text || "",
- location: sanitizeLocation(location, where, terminalWidth),
- notes: notesClone,
- detail: stash ? stash.store(detail) : -1
- });
- index++;
- }
- return messagesClone;
-}
-function sanitizeStringArray(values, property) {
- const result = [];
- for (const value of values) {
- if (typeof value !== "string") throw new Error(`${quote(property)} must be an array of strings`);
- result.push(value);
- }
- return result;
-}
-function sanitizeStringMap(map, property) {
- const result = /* @__PURE__ */ Object.create(null);
- for (const key in map) {
- const value = map[key];
- if (typeof value !== "string") throw new Error(`key ${quote(key)} in object ${quote(property)} must be a string`);
- result[key] = value;
- }
- return result;
-}
-function convertOutputFiles({ path: path3, contents, hash }) {
- let text = null;
- return {
- path: path3,
- contents,
- hash,
- get text() {
- const binary = this.contents;
- if (text === null || binary !== contents) {
- contents = binary;
- text = decodeUTF8(binary);
- }
- return text;
- }
- };
-}
-
-// lib/npm/node-platform.ts
-var fs = require("fs");
-var os = require("os");
-var path = require("path");
-var ESBUILD_BINARY_PATH = process.env.ESBUILD_BINARY_PATH || ESBUILD_BINARY_PATH;
-var isValidBinaryPath = (x) => !!x && x !== "/usr/bin/esbuild";
-var packageDarwin_arm64 = "@esbuild/darwin-arm64";
-var packageDarwin_x64 = "@esbuild/darwin-x64";
-var knownWindowsPackages = {
- "win32 arm64 LE": "@esbuild/win32-arm64",
- "win32 ia32 LE": "@esbuild/win32-ia32",
- "win32 x64 LE": "@esbuild/win32-x64"
-};
-var knownUnixlikePackages = {
- "aix ppc64 BE": "@esbuild/aix-ppc64",
- "android arm64 LE": "@esbuild/android-arm64",
- "darwin arm64 LE": "@esbuild/darwin-arm64",
- "darwin x64 LE": "@esbuild/darwin-x64",
- "freebsd arm64 LE": "@esbuild/freebsd-arm64",
- "freebsd x64 LE": "@esbuild/freebsd-x64",
- "linux arm LE": "@esbuild/linux-arm",
- "linux arm64 LE": "@esbuild/linux-arm64",
- "linux ia32 LE": "@esbuild/linux-ia32",
- "linux mips64el LE": "@esbuild/linux-mips64el",
- "linux ppc64 LE": "@esbuild/linux-ppc64",
- "linux riscv64 LE": "@esbuild/linux-riscv64",
- "linux s390x BE": "@esbuild/linux-s390x",
- "linux x64 LE": "@esbuild/linux-x64",
- "linux loong64 LE": "@esbuild/linux-loong64",
- "netbsd arm64 LE": "@esbuild/netbsd-arm64",
- "netbsd x64 LE": "@esbuild/netbsd-x64",
- "openbsd arm64 LE": "@esbuild/openbsd-arm64",
- "openbsd x64 LE": "@esbuild/openbsd-x64",
- "sunos x64 LE": "@esbuild/sunos-x64"
-};
-var knownWebAssemblyFallbackPackages = {
- "android arm LE": "@esbuild/android-arm",
- "android x64 LE": "@esbuild/android-x64"
-};
-function pkgAndSubpathForCurrentPlatform() {
- let pkg;
- let subpath;
- let isWASM = false;
- let platformKey = `${process.platform} ${os.arch()} ${os.endianness()}`;
- if (platformKey in knownWindowsPackages) {
- pkg = knownWindowsPackages[platformKey];
- subpath = "esbuild.exe";
- } else if (platformKey in knownUnixlikePackages) {
- pkg = knownUnixlikePackages[platformKey];
- subpath = "bin/esbuild";
- } else if (platformKey in knownWebAssemblyFallbackPackages) {
- pkg = knownWebAssemblyFallbackPackages[platformKey];
- subpath = "bin/esbuild";
- isWASM = true;
- } else {
- throw new Error(`Unsupported platform: ${platformKey}`);
- }
- return { pkg, subpath, isWASM };
-}
-function pkgForSomeOtherPlatform() {
- const libMainJS = require.resolve("esbuild");
- const nodeModulesDirectory = path.dirname(path.dirname(path.dirname(libMainJS)));
- if (path.basename(nodeModulesDirectory) === "node_modules") {
- for (const unixKey in knownUnixlikePackages) {
- try {
- const pkg = knownUnixlikePackages[unixKey];
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
- } catch {
- }
- }
- for (const windowsKey in knownWindowsPackages) {
- try {
- const pkg = knownWindowsPackages[windowsKey];
- if (fs.existsSync(path.join(nodeModulesDirectory, pkg))) return pkg;
- } catch {
- }
- }
- }
- return null;
-}
-function downloadedBinPath(pkg, subpath) {
- const esbuildLibDir = path.dirname(require.resolve("esbuild"));
- return path.join(esbuildLibDir, `downloaded-${pkg.replace("/", "-")}-${path.basename(subpath)}`);
-}
-function generateBinPath() {
- if (isValidBinaryPath(ESBUILD_BINARY_PATH)) {
- if (!fs.existsSync(ESBUILD_BINARY_PATH)) {
- console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${ESBUILD_BINARY_PATH}`);
- } else {
- return { binPath: ESBUILD_BINARY_PATH, isWASM: false };
- }
- }
- const { pkg, subpath, isWASM } = pkgAndSubpathForCurrentPlatform();
- let binPath;
- try {
- binPath = require.resolve(`${pkg}/${subpath}`);
- } catch (e) {
- binPath = downloadedBinPath(pkg, subpath);
- if (!fs.existsSync(binPath)) {
- try {
- require.resolve(pkg);
- } catch {
- const otherPkg = pkgForSomeOtherPlatform();
- if (otherPkg) {
- let suggestions = `
-Specifically the "${otherPkg}" package is present but this platform
-needs the "${pkg}" package instead. People often get into this
-situation by installing esbuild on Windows or macOS and copying "node_modules"
-into a Docker image that runs Linux, or by copying "node_modules" between
-Windows and WSL environments.
-
-If you are installing with npm, you can try not copying the "node_modules"
-directory when you copy the files over, and running "npm ci" or "npm install"
-on the destination platform after the copy. Or you could consider using yarn
-instead of npm which has built-in support for installing a package on multiple
-platforms simultaneously.
-
-If you are installing with yarn, you can try listing both this platform and the
-other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
-feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
-Keep in mind that this means multiple copies of esbuild will be present.
-`;
- if (pkg === packageDarwin_x64 && otherPkg === packageDarwin_arm64 || pkg === packageDarwin_arm64 && otherPkg === packageDarwin_x64) {
- suggestions = `
-Specifically the "${otherPkg}" package is present but this platform
-needs the "${pkg}" package instead. People often get into this
-situation by installing esbuild with npm running inside of Rosetta 2 and then
-trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
-2 is Apple's on-the-fly x86_64-to-arm64 translation service).
-
-If you are installing with npm, you can try ensuring that both npm and node are
-not running under Rosetta 2 and then reinstalling esbuild. This likely involves
-changing how you installed npm and/or node. For example, installing node with
-the universal installer here should work: https://nodejs.org/en/download/. Or
-you could consider using yarn instead of npm which has built-in support for
-installing a package on multiple platforms simultaneously.
-
-If you are installing with yarn, you can try listing both "arm64" and "x64"
-in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
-https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
-Keep in mind that this means multiple copies of esbuild will be present.
-`;
- }
- throw new Error(`
-You installed esbuild for another platform than the one you're currently using.
-This won't work because esbuild is written with native code and needs to
-install a platform-specific binary executable.
-${suggestions}
-Another alternative is to use the "esbuild-wasm" package instead, which works
-the same way on all platforms. But it comes with a heavy performance cost and
-can sometimes be 10x slower than the "esbuild" package, so you may also not
-want to do that.
-`);
- }
- throw new Error(`The package "${pkg}" could not be found, and is needed by esbuild.
-
-If you are installing esbuild with npm, make sure that you don't specify the
-"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
-of "package.json" is used by esbuild to install the correct binary executable
-for your current platform.`);
- }
- throw e;
- }
- }
- if (/\.zip\//.test(binPath)) {
- let pnpapi;
- try {
- pnpapi = require("pnpapi");
- } catch (e) {
- }
- if (pnpapi) {
- const root = pnpapi.getPackageInformation(pnpapi.topLevel).packageLocation;
- const binTargetPath = path.join(
- root,
- "node_modules",
- ".cache",
- "esbuild",
- `pnpapi-${pkg.replace("/", "-")}-${"0.24.2"}-${path.basename(subpath)}`
- );
- if (!fs.existsSync(binTargetPath)) {
- fs.mkdirSync(path.dirname(binTargetPath), { recursive: true });
- fs.copyFileSync(binPath, binTargetPath);
- fs.chmodSync(binTargetPath, 493);
- }
- return { binPath: binTargetPath, isWASM };
- }
- }
- return { binPath, isWASM };
-}
-
-// lib/npm/node.ts
-var child_process = require("child_process");
-var crypto = require("crypto");
-var path2 = require("path");
-var fs2 = require("fs");
-var os2 = require("os");
-var tty = require("tty");
-var worker_threads;
-if (process.env.ESBUILD_WORKER_THREADS !== "0") {
- try {
- worker_threads = require("worker_threads");
- } catch {
- }
- let [major, minor] = process.versions.node.split(".");
- if (
- // {
- if ((!ESBUILD_BINARY_PATH || false) && (path2.basename(__filename) !== "main.js" || path2.basename(__dirname) !== "lib")) {
- throw new Error(
- `The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
-
-More information: The file containing the code for esbuild's JavaScript API (${__filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`
- );
- }
- if (false) {
- return ["node", [path2.join(__dirname, "..", "bin", "esbuild")]];
- } else {
- const { binPath, isWASM } = generateBinPath();
- if (isWASM) {
- return ["node", [binPath]];
- } else {
- return [binPath, []];
- }
- }
-};
-var isTTY = () => tty.isatty(2);
-var fsSync = {
- readFile(tempFile, callback) {
- try {
- let contents = fs2.readFileSync(tempFile, "utf8");
- try {
- fs2.unlinkSync(tempFile);
- } catch {
- }
- callback(null, contents);
- } catch (err) {
- callback(err, null);
- }
- },
- writeFile(contents, callback) {
- try {
- let tempFile = randomFileName();
- fs2.writeFileSync(tempFile, contents);
- callback(tempFile);
- } catch {
- callback(null);
- }
- }
-};
-var fsAsync = {
- readFile(tempFile, callback) {
- try {
- fs2.readFile(tempFile, "utf8", (err, contents) => {
- try {
- fs2.unlink(tempFile, () => callback(err, contents));
- } catch {
- callback(err, contents);
- }
- });
- } catch (err) {
- callback(err, null);
- }
- },
- writeFile(contents, callback) {
- try {
- let tempFile = randomFileName();
- fs2.writeFile(tempFile, contents, (err) => err !== null ? callback(null) : callback(tempFile));
- } catch {
- callback(null);
- }
- }
-};
-var version = "0.24.2";
-var build = (options) => ensureServiceIsRunning().build(options);
-var context = (buildOptions) => ensureServiceIsRunning().context(buildOptions);
-var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
-var formatMessages = (messages, options) => ensureServiceIsRunning().formatMessages(messages, options);
-var analyzeMetafile = (messages, options) => ensureServiceIsRunning().analyzeMetafile(messages, options);
-var buildSync = (options) => {
- if (worker_threads && !isInternalWorkerThread) {
- if (!workerThreadService) workerThreadService = startWorkerThreadService(worker_threads);
- return workerThreadService.buildSync(options);
- }
- let result;
- runServiceSync((service) => service.buildOrContext({
- callName: "buildSync",
- refs: null,
- options,
- isTTY: isTTY(),
- defaultWD,
- callback: (err, res) => {
- if (err) throw err;
- result = res;
- }
- }));
- return result;
-};
-var transformSync = (input, options) => {
- if (worker_threads && !isInternalWorkerThread) {
- if (!workerThreadService) workerThreadService = startWorkerThreadService(worker_threads);
- return workerThreadService.transformSync(input, options);
- }
- let result;
- runServiceSync((service) => service.transform({
- callName: "transformSync",
- refs: null,
- input,
- options: options || {},
- isTTY: isTTY(),
- fs: fsSync,
- callback: (err, res) => {
- if (err) throw err;
- result = res;
- }
- }));
- return result;
-};
-var formatMessagesSync = (messages, options) => {
- if (worker_threads && !isInternalWorkerThread) {
- if (!workerThreadService) workerThreadService = startWorkerThreadService(worker_threads);
- return workerThreadService.formatMessagesSync(messages, options);
- }
- let result;
- runServiceSync((service) => service.formatMessages({
- callName: "formatMessagesSync",
- refs: null,
- messages,
- options,
- callback: (err, res) => {
- if (err) throw err;
- result = res;
- }
- }));
- return result;
-};
-var analyzeMetafileSync = (metafile, options) => {
- if (worker_threads && !isInternalWorkerThread) {
- if (!workerThreadService) workerThreadService = startWorkerThreadService(worker_threads);
- return workerThreadService.analyzeMetafileSync(metafile, options);
- }
- let result;
- runServiceSync((service) => service.analyzeMetafile({
- callName: "analyzeMetafileSync",
- refs: null,
- metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
- options,
- callback: (err, res) => {
- if (err) throw err;
- result = res;
- }
- }));
- return result;
-};
-var stop = () => {
- if (stopService) stopService();
- if (workerThreadService) workerThreadService.stop();
- return Promise.resolve();
-};
-var initializeWasCalled = false;
-var initialize = (options) => {
- options = validateInitializeOptions(options || {});
- if (options.wasmURL) throw new Error(`The "wasmURL" option only works in the browser`);
- if (options.wasmModule) throw new Error(`The "wasmModule" option only works in the browser`);
- if (options.worker) throw new Error(`The "worker" option only works in the browser`);
- if (initializeWasCalled) throw new Error('Cannot call "initialize" more than once');
- ensureServiceIsRunning();
- initializeWasCalled = true;
- return Promise.resolve();
-};
-var defaultWD = process.cwd();
-var longLivedService;
-var stopService;
-var ensureServiceIsRunning = () => {
- if (longLivedService) return longLivedService;
- let [command, args] = esbuildCommandAndArgs();
- let child = child_process.spawn(command, args.concat(`--service=${"0.24.2"}`, "--ping"), {
- windowsHide: true,
- stdio: ["pipe", "pipe", "inherit"],
- cwd: defaultWD
- });
- let { readFromStdout, afterClose, service } = createChannel({
- writeToStdin(bytes) {
- child.stdin.write(bytes, (err) => {
- if (err) afterClose(err);
- });
- },
- readFileSync: fs2.readFileSync,
- isSync: false,
- hasFS: true,
- esbuild: node_exports
- });
- child.stdin.on("error", afterClose);
- child.on("error", afterClose);
- const stdin = child.stdin;
- const stdout = child.stdout;
- stdout.on("data", readFromStdout);
- stdout.on("end", afterClose);
- stopService = () => {
- stdin.destroy();
- stdout.destroy();
- child.kill();
- initializeWasCalled = false;
- longLivedService = void 0;
- stopService = void 0;
- };
- let refCount = 0;
- child.unref();
- if (stdin.unref) {
- stdin.unref();
- }
- if (stdout.unref) {
- stdout.unref();
- }
- const refs = {
- ref() {
- if (++refCount === 1) child.ref();
- },
- unref() {
- if (--refCount === 0) child.unref();
- }
- };
- longLivedService = {
- build: (options) => new Promise((resolve, reject) => {
- service.buildOrContext({
- callName: "build",
- refs,
- options,
- isTTY: isTTY(),
- defaultWD,
- callback: (err, res) => err ? reject(err) : resolve(res)
- });
- }),
- context: (options) => new Promise((resolve, reject) => service.buildOrContext({
- callName: "context",
- refs,
- options,
- isTTY: isTTY(),
- defaultWD,
- callback: (err, res) => err ? reject(err) : resolve(res)
- })),
- transform: (input, options) => new Promise((resolve, reject) => service.transform({
- callName: "transform",
- refs,
- input,
- options: options || {},
- isTTY: isTTY(),
- fs: fsAsync,
- callback: (err, res) => err ? reject(err) : resolve(res)
- })),
- formatMessages: (messages, options) => new Promise((resolve, reject) => service.formatMessages({
- callName: "formatMessages",
- refs,
- messages,
- options,
- callback: (err, res) => err ? reject(err) : resolve(res)
- })),
- analyzeMetafile: (metafile, options) => new Promise((resolve, reject) => service.analyzeMetafile({
- callName: "analyzeMetafile",
- refs,
- metafile: typeof metafile === "string" ? metafile : JSON.stringify(metafile),
- options,
- callback: (err, res) => err ? reject(err) : resolve(res)
- }))
- };
- return longLivedService;
-};
-var runServiceSync = (callback) => {
- let [command, args] = esbuildCommandAndArgs();
- let stdin = new Uint8Array();
- let { readFromStdout, afterClose, service } = createChannel({
- writeToStdin(bytes) {
- if (stdin.length !== 0) throw new Error("Must run at most one command");
- stdin = bytes;
- },
- isSync: true,
- hasFS: true,
- esbuild: node_exports
- });
- callback(service);
- let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.24.2"}`), {
- cwd: defaultWD,
- windowsHide: true,
- input: stdin,
- // We don't know how large the output could be. If it's too large, the
- // command will fail with ENOBUFS. Reserve 16mb for now since that feels
- // like it should be enough. Also allow overriding this with an environment
- // variable.
- maxBuffer: +process.env.ESBUILD_MAX_BUFFER || 16 * 1024 * 1024
- });
- readFromStdout(stdout);
- afterClose(null);
-};
-var randomFileName = () => {
- return path2.join(os2.tmpdir(), `esbuild-${crypto.randomBytes(32).toString("hex")}`);
-};
-var workerThreadService = null;
-var startWorkerThreadService = (worker_threads2) => {
- let { port1: mainPort, port2: workerPort } = new worker_threads2.MessageChannel();
- let worker = new worker_threads2.Worker(__filename, {
- workerData: { workerPort, defaultWD, esbuildVersion: "0.24.2" },
- transferList: [workerPort],
- // From node's documentation: https://nodejs.org/api/worker_threads.html
- //
- // Take care when launching worker threads from preload scripts (scripts loaded
- // and run using the `-r` command line flag). Unless the `execArgv` option is
- // explicitly set, new Worker threads automatically inherit the command line flags
- // from the running process and will preload the same preload scripts as the main
- // thread. If the preload script unconditionally launches a worker thread, every
- // thread spawned will spawn another until the application crashes.
- //
- execArgv: []
- });
- let nextID = 0;
- let fakeBuildError = (text) => {
- let error = new Error(`Build failed with 1 error:
-error: ${text}`);
- let errors = [{ id: "", pluginName: "", text, location: null, notes: [], detail: void 0 }];
- error.errors = errors;
- error.warnings = [];
- return error;
- };
- let validateBuildSyncOptions = (options) => {
- if (!options) return;
- let plugins = options.plugins;
- if (plugins && plugins.length > 0) throw fakeBuildError(`Cannot use plugins in synchronous API calls`);
- };
- let applyProperties = (object, properties) => {
- for (let key in properties) {
- object[key] = properties[key];
- }
- };
- let runCallSync = (command, args) => {
- let id = nextID++;
- let sharedBuffer = new SharedArrayBuffer(8);
- let sharedBufferView = new Int32Array(sharedBuffer);
- let msg = { sharedBuffer, id, command, args };
- worker.postMessage(msg);
- let status = Atomics.wait(sharedBufferView, 0, 0);
- if (status !== "ok" && status !== "not-equal") throw new Error("Internal error: Atomics.wait() failed: " + status);
- let { message: { id: id2, resolve, reject, properties } } = worker_threads2.receiveMessageOnPort(mainPort);
- if (id !== id2) throw new Error(`Internal error: Expected id ${id} but got id ${id2}`);
- if (reject) {
- applyProperties(reject, properties);
- throw reject;
- }
- return resolve;
- };
- worker.unref();
- return {
- buildSync(options) {
- validateBuildSyncOptions(options);
- return runCallSync("build", [options]);
- },
- transformSync(input, options) {
- return runCallSync("transform", [input, options]);
- },
- formatMessagesSync(messages, options) {
- return runCallSync("formatMessages", [messages, options]);
- },
- analyzeMetafileSync(metafile, options) {
- return runCallSync("analyzeMetafile", [metafile, options]);
- },
- stop() {
- worker.terminate();
- workerThreadService = null;
- }
- };
-};
-var startSyncServiceWorker = () => {
- let workerPort = worker_threads.workerData.workerPort;
- let parentPort = worker_threads.parentPort;
- let extractProperties = (object) => {
- let properties = {};
- if (object && typeof object === "object") {
- for (let key in object) {
- properties[key] = object[key];
- }
- }
- return properties;
- };
- try {
- let service = ensureServiceIsRunning();
- defaultWD = worker_threads.workerData.defaultWD;
- parentPort.on("message", (msg) => {
- (async () => {
- let { sharedBuffer, id, command, args } = msg;
- let sharedBufferView = new Int32Array(sharedBuffer);
- try {
- switch (command) {
- case "build":
- workerPort.postMessage({ id, resolve: await service.build(args[0]) });
- break;
- case "transform":
- workerPort.postMessage({ id, resolve: await service.transform(args[0], args[1]) });
- break;
- case "formatMessages":
- workerPort.postMessage({ id, resolve: await service.formatMessages(args[0], args[1]) });
- break;
- case "analyzeMetafile":
- workerPort.postMessage({ id, resolve: await service.analyzeMetafile(args[0], args[1]) });
- break;
- default:
- throw new Error(`Invalid command: ${command}`);
- }
- } catch (reject) {
- workerPort.postMessage({ id, reject, properties: extractProperties(reject) });
- }
- Atomics.add(sharedBufferView, 0, 1);
- Atomics.notify(sharedBufferView, 0, Infinity);
- })();
- });
- } catch (reject) {
- parentPort.on("message", (msg) => {
- let { sharedBuffer, id } = msg;
- let sharedBufferView = new Int32Array(sharedBuffer);
- workerPort.postMessage({ id, reject, properties: extractProperties(reject) });
- Atomics.add(sharedBufferView, 0, 1);
- Atomics.notify(sharedBufferView, 0, Infinity);
- });
- }
-};
-if (isInternalWorkerThread) {
- startSyncServiceWorker();
-}
-var node_default = node_exports;
-// Annotate the CommonJS export names for ESM import in node:
-0 && (module.exports = {
- analyzeMetafile,
- analyzeMetafileSync,
- build,
- buildSync,
- context,
- formatMessages,
- formatMessagesSync,
- initialize,
- stop,
- transform,
- transformSync,
- version
-});
diff --git a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/package.json b/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/package.json
deleted file mode 100644
index 163880f3..00000000
--- a/node_modules/@sveltejs/adapter-vercel/node_modules/esbuild/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "esbuild",
- "version": "0.24.2",
- "description": "An extremely fast JavaScript and CSS bundler and minifier.",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/evanw/esbuild.git"
- },
- "scripts": {
- "postinstall": "node install.js"
- },
- "main": "lib/main.js",
- "types": "lib/main.d.ts",
- "engines": {
- "node": ">=18"
- },
- "bin": {
- "esbuild": "bin/esbuild"
- },
- "optionalDependencies": {
- "@esbuild/aix-ppc64": "0.24.2",
- "@esbuild/android-arm": "0.24.2",
- "@esbuild/android-arm64": "0.24.2",
- "@esbuild/android-x64": "0.24.2",
- "@esbuild/darwin-arm64": "0.24.2",
- "@esbuild/darwin-x64": "0.24.2",
- "@esbuild/freebsd-arm64": "0.24.2",
- "@esbuild/freebsd-x64": "0.24.2",
- "@esbuild/linux-arm": "0.24.2",
- "@esbuild/linux-arm64": "0.24.2",
- "@esbuild/linux-ia32": "0.24.2",
- "@esbuild/linux-loong64": "0.24.2",
- "@esbuild/linux-mips64el": "0.24.2",
- "@esbuild/linux-ppc64": "0.24.2",
- "@esbuild/linux-riscv64": "0.24.2",
- "@esbuild/linux-s390x": "0.24.2",
- "@esbuild/linux-x64": "0.24.2",
- "@esbuild/netbsd-arm64": "0.24.2",
- "@esbuild/netbsd-x64": "0.24.2",
- "@esbuild/openbsd-arm64": "0.24.2",
- "@esbuild/openbsd-x64": "0.24.2",
- "@esbuild/sunos-x64": "0.24.2",
- "@esbuild/win32-arm64": "0.24.2",
- "@esbuild/win32-ia32": "0.24.2",
- "@esbuild/win32-x64": "0.24.2"
- },
- "license": "MIT"
-}
diff --git a/node_modules/@sveltejs/adapter-vercel/utils.js b/node_modules/@sveltejs/adapter-vercel/utils.js
deleted file mode 100644
index a41a9cb7..00000000
--- a/node_modules/@sveltejs/adapter-vercel/utils.js
+++ /dev/null
@@ -1,69 +0,0 @@
-/** @param {import("@sveltejs/kit").RouteDefinition} route */
-export function get_pathname(route) {
- let i = 1;
-
- const pathname = route.segments
- .map((segment) => {
- if (!segment.dynamic) {
- return '/' + segment.content;
- }
-
- const parts = segment.content.split(/\[(.+?)\](?!\])/);
- let result = '';
-
- if (
- parts.length === 3 &&
- !parts[0] &&
- !parts[2] &&
- (parts[1].startsWith('...') || parts[1][0] === '[')
- ) {
- // Special case: segment is a single optional or rest parameter.
- // In that case we don't prepend a slash (also see comment in pattern_to_src).
- result = `$${i++}`;
- } else {
- result =
- '/' +
- parts
- .map((content, j) => {
- if (j % 2) {
- return `$${i++}`;
- } else {
- return content;
- }
- })
- .join('');
- }
-
- return result;
- })
- .join('');
-
- return pathname[0] === '/' ? pathname.slice(1) : pathname;
-}
-
-/**
- * Adjusts the stringified route regex for Vercel's routing system
- * @param {string} pattern stringified route regex
- */
-export function pattern_to_src(pattern) {
- let src = pattern
- // remove leading / and trailing $/
- .slice(1, -2)
- // replace escaped \/ with /
- .replace(/\\\//g, '/');
-
- // replace the root route "^/" with "^/?"
- if (src === '^/') {
- src = '^/?';
- }
-
- // Move non-capturing groups that swallow slashes into their following capturing groups.
- // This is necessary because during ISR we're using the regex to construct the __pathname
- // query parameter: In case of a route like [required]/[...rest] we need to turn them
- // into $1$2 and not $1/$2, because if [...rest] is empty, we don't want to have a trailing
- // slash in the __pathname query parameter which wasn't there in the original URL, as that
- // could result in a false trailing slash redirect in the SvelteKit runtime, leading to infinite redirects.
- src = src.replace(/\(\?:\/\((.+?)\)\)/g, '(/$1)');
-
- return src;
-}
diff --git a/node_modules/@vercel/nft/LICENSE b/node_modules/@vercel/nft/LICENSE
deleted file mode 100644
index 682f390b..00000000
--- a/node_modules/@vercel/nft/LICENSE
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright 2019 Vercel, Inc.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/.bin/glob b/node_modules/@vercel/nft/node_modules/.bin/glob
deleted file mode 120000
index 85c9c1db..00000000
--- a/node_modules/@vercel/nft/node_modules/.bin/glob
+++ /dev/null
@@ -1 +0,0 @@
-../glob/dist/esm/bin.mjs
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/LICENSE b/node_modules/@vercel/nft/node_modules/glob/LICENSE
deleted file mode 100644
index ec7df933..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/LICENSE
+++ /dev/null
@@ -1,15 +0,0 @@
-The ISC License
-
-Copyright (c) 2009-2023 Isaac Z. Schlueter and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
-IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/@vercel/nft/node_modules/glob/README.md b/node_modules/@vercel/nft/node_modules/glob/README.md
deleted file mode 100644
index 023cd779..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/README.md
+++ /dev/null
@@ -1,1265 +0,0 @@
-# Glob
-
-Match files using the patterns the shell uses.
-
-The most correct and second fastest glob implementation in
-JavaScript. (See **Comparison to Other JavaScript Glob
-Implementations** at the bottom of this readme.)
-
-
-
-## Usage
-
-Install with npm
-
-```
-npm i glob
-```
-
-**Note** the npm package name is _not_ `node-glob` that's a
-different thing that was abandoned years ago. Just `glob`.
-
-```js
-// load using import
-import { glob, globSync, globStream, globStreamSync, Glob } from 'glob'
-// or using commonjs, that's fine, too
-const {
- glob,
- globSync,
- globStream,
- globStreamSync,
- Glob,
-} = require('glob')
-
-// the main glob() and globSync() resolve/return array of filenames
-
-// all js files, but don't look in node_modules
-const jsfiles = await glob('**/*.js', { ignore: 'node_modules/**' })
-
-// pass in a signal to cancel the glob walk
-const stopAfter100ms = await glob('**/*.css', {
- signal: AbortSignal.timeout(100),
-})
-
-// multiple patterns supported as well
-const images = await glob(['css/*.{png,jpeg}', 'public/*.{png,jpeg}'])
-
-// but of course you can do that with the glob pattern also
-// the sync function is the same, just returns a string[] instead
-// of Promise
-const imagesAlt = globSync('{css,public}/*.{png,jpeg}')
-
-// you can also stream them, this is a Minipass stream
-const filesStream = globStream(['**/*.dat', 'logs/**/*.log'])
-
-// construct a Glob object if you wanna do it that way, which
-// allows for much faster walks if you have to look in the same
-// folder multiple times.
-const g = new Glob('**/foo', {})
-// glob objects are async iterators, can also do globIterate() or
-// g.iterate(), same deal
-for await (const file of g) {
- console.log('found a foo file:', file)
-}
-// pass a glob as the glob options to reuse its settings and caches
-const g2 = new Glob('**/bar', g)
-// sync iteration works as well
-for (const file of g2) {
- console.log('found a bar file:', file)
-}
-
-// you can also pass withFileTypes: true to get Path objects
-// these are like a Dirent, but with some more added powers
-// check out http://npm.im/path-scurry for more info on their API
-const g3 = new Glob('**/baz/**', { withFileTypes: true })
-g3.stream().on('data', path => {
- console.log(
- 'got a path object',
- path.fullpath(),
- path.isDirectory(),
- path.readdirSync().map(e => e.name),
- )
-})
-
-// if you use stat:true and withFileTypes, you can sort results
-// by things like modified time, filter by permission mode, etc.
-// All Stats fields will be available in that case. Slightly
-// slower, though.
-// For example:
-const results = await glob('**', { stat: true, withFileTypes: true })
-
-const timeSortedFiles = results
- .sort((a, b) => a.mtimeMs - b.mtimeMs)
- .map(path => path.fullpath())
-
-const groupReadableFiles = results
- .filter(path => path.mode & 0o040)
- .map(path => path.fullpath())
-
-// custom ignores can be done like this, for example by saying
-// you'll ignore all markdown files, and all folders named 'docs'
-const customIgnoreResults = await glob('**', {
- ignore: {
- ignored: p => /\.md$/.test(p.name),
- childrenIgnored: p => p.isNamed('docs'),
- },
-})
-
-// another fun use case, only return files with the same name as
-// their parent folder, plus either `.ts` or `.js`
-const folderNamedModules = await glob('**/*.{ts,js}', {
- ignore: {
- ignored: p => {
- const pp = p.parent
- return !(p.isNamed(pp.name + '.ts') || p.isNamed(pp.name + '.js'))
- },
- },
-})
-
-// find all files edited in the last hour, to do this, we ignore
-// all of them that are more than an hour old
-const newFiles = await glob('**', {
- // need stat so we have mtime
- stat: true,
- // only want the files, not the dirs
- nodir: true,
- ignore: {
- ignored: p => {
- return new Date() - p.mtime > 60 * 60 * 1000
- },
- // could add similar childrenIgnored here as well, but
- // directory mtime is inconsistent across platforms, so
- // probably better not to, unless you know the system
- // tracks this reliably.
- },
-})
-```
-
-**Note** Glob patterns should always use `/` as a path separator,
-even on Windows systems, as `\` is used to escape glob
-characters. If you wish to use `\` as a path separator _instead
-of_ using it as an escape character on Windows platforms, you may
-set `windowsPathsNoEscape:true` in the options. In this mode,
-special glob characters cannot be escaped, making it impossible
-to match a literal `*` `?` and so on in filenames.
-
-## Command Line Interface
-
-```
-$ glob -h
-
-Usage:
- glob [options] [ [ ...]]
-
-Expand the positional glob expression arguments into any matching file system
-paths found.
-
- -c --cmd=
- Run the command provided, passing the glob expression
- matches as arguments.
-
- -A --all By default, the glob cli command will not expand any
- arguments that are an exact match to a file on disk.
-
- This prevents double-expanding, in case the shell
- expands an argument whose filename is a glob
- expression.
-
- For example, if 'app/*.ts' would match 'app/[id].ts',
- then on Windows powershell or cmd.exe, 'glob app/*.ts'
- will expand to 'app/[id].ts', as expected. However, in
- posix shells such as bash or zsh, the shell will first
- expand 'app/*.ts' to a list of filenames. Then glob
- will look for a file matching 'app/[id].ts' (ie,
- 'app/i.ts' or 'app/d.ts'), which is unexpected.
-
- Setting '--all' prevents this behavior, causing glob to
- treat ALL patterns as glob expressions to be expanded,
- even if they are an exact match to a file on disk.
-
- When setting this option, be sure to enquote arguments
- so that the shell will not expand them prior to passing
- them to the glob command process.
-
- -a --absolute Expand to absolute paths
- -d --dot-relative Prepend './' on relative matches
- -m --mark Append a / on any directories matched
- -x --posix Always resolve to posix style paths, using '/' as the
- directory separator, even on Windows. Drive letter
- absolute matches on Windows will be expanded to their
- full resolved UNC maths, eg instead of 'C:\foo\bar', it
- will expand to '//?/C:/foo/bar'.
-
- -f --follow Follow symlinked directories when expanding '**'
- -R --realpath Call 'fs.realpath' on all of the results. In the case
- of an entry that cannot be resolved, the entry is
- omitted. This incurs a slight performance penalty, of
- course, because of the added system calls.
-
- -s --stat Call 'fs.lstat' on all entries, whether required or not
- to determine if it's a valid match.
-
- -b --match-base Perform a basename-only match if the pattern does not
- contain any slash characters. That is, '*.js' would be
- treated as equivalent to '**/*.js', matching js files
- in all directories.
-
- --dot Allow patterns to match files/directories that start
- with '.', even if the pattern does not start with '.'
-
- --nobrace Do not expand {...} patterns
- --nocase Perform a case-insensitive match. This defaults to
- 'true' on macOS and Windows platforms, and false on all
- others.
-
- Note: 'nocase' should only be explicitly set when it is
- known that the filesystem's case sensitivity differs
- from the platform default. If set 'true' on
- case-insensitive file systems, then the walk may return
- more or less results than expected.
-
- --nodir Do not match directories, only files.
-
- Note: to *only* match directories, append a '/' at the
- end of the pattern.
-
- --noext Do not expand extglob patterns, such as '+(a|b)'
- --noglobstar Do not expand '**' against multiple path portions. Ie,
- treat it as a normal '*' instead.
-
- --windows-path-no-escape
- Use '\' as a path separator *only*, and *never* as an
- escape character. If set, all '\' characters are
- replaced with '/' in the pattern.
-
- -D --max-depth= Maximum depth to traverse from the current working
- directory
-
- -C --cwd= Current working directory to execute/match in
- -r --root= A string path resolved against the 'cwd', which is used
- as the starting point for absolute patterns that start
- with '/' (but not drive letters or UNC paths on
- Windows).
-
- Note that this *doesn't* necessarily limit the walk to
- the 'root' directory, and doesn't affect the cwd
- starting point for non-absolute patterns. A pattern
- containing '..' will still be able to traverse out of
- the root directory, if it is not an actual root
- directory on the filesystem, and any non-absolute
- patterns will still be matched in the 'cwd'.
-
- To start absolute and non-absolute patterns in the same
- path, you can use '--root=' to set it to the empty
- string. However, be aware that on Windows systems, a
- pattern like 'x:/*' or '//host/share/*' will *always*
- start in the 'x:/' or '//host/share/' directory,
- regardless of the --root setting.
-
- --platform= Defaults to the value of 'process.platform' if
- available, or 'linux' if not. Setting --platform=win32
- on non-Windows systems may cause strange behavior!
-
- -i --ignore=
- Glob patterns to ignore Can be set multiple times
- -v --debug Output a huge amount of noisy debug information about
- patterns as they are parsed and used to match files.
-
- -h --help Show this usage information
-```
-
-## `glob(pattern: string | string[], options?: GlobOptions) => Promise`
-
-Perform an asynchronous glob search for the pattern(s) specified.
-Returns
-[Path](https://isaacs.github.io/path-scurry/classes/PathBase)
-objects if the `withFileTypes` option is set to `true`. See below
-for full options field desciptions.
-
-## `globSync(pattern: string | string[], options?: GlobOptions) => string[] | Path[]`
-
-Synchronous form of `glob()`.
-
-Alias: `glob.sync()`
-
-## `globIterate(pattern: string | string[], options?: GlobOptions) => AsyncGenerator`
-
-Return an async iterator for walking glob pattern matches.
-
-Alias: `glob.iterate()`
-
-## `globIterateSync(pattern: string | string[], options?: GlobOptions) => Generator`
-
-Return a sync iterator for walking glob pattern matches.
-
-Alias: `glob.iterate.sync()`, `glob.sync.iterate()`
-
-## `globStream(pattern: string | string[], options?: GlobOptions) => Minipass`
-
-Return a stream that emits all the strings or `Path` objects and
-then emits `end` when completed.
-
-Alias: `glob.stream()`
-
-## `globStreamSync(pattern: string | string[], options?: GlobOptions) => Minipass`
-
-Syncronous form of `globStream()`. Will read all the matches as
-fast as you consume them, even all in a single tick if you
-consume them immediately, but will still respond to backpressure
-if they're not consumed immediately.
-
-Alias: `glob.stream.sync()`, `glob.sync.stream()`
-
-## `hasMagic(pattern: string | string[], options?: GlobOptions) => boolean`
-
-Returns `true` if the provided pattern contains any "magic" glob
-characters, given the options provided.
-
-Brace expansion is not considered "magic" unless the
-`magicalBraces` option is set, as brace expansion just turns one
-string into an array of strings. So a pattern like `'x{a,b}y'`
-would return `false`, because `'xay'` and `'xby'` both do not
-contain any magic glob characters, and it's treated the same as
-if you had called it on `['xay', 'xby']`. When
-`magicalBraces:true` is in the options, brace expansion _is_
-treated as a pattern having magic.
-
-## `escape(pattern: string, options?: GlobOptions) => string`
-
-Escape all magic characters in a glob pattern, so that it will
-only ever match literal strings
-
-If the `windowsPathsNoEscape` option is used, then characters are
-escaped by wrapping in `[]`, because a magic character wrapped in
-a character class can only be satisfied by that exact character.
-
-Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot
-be escaped or unescaped.
-
-## `unescape(pattern: string, options?: GlobOptions) => string`
-
-Un-escape a glob string that may contain some escaped characters.
-
-If the `windowsPathsNoEscape` option is used, then square-brace
-escapes are removed, but not backslash escapes. For example, it
-will turn the string `'[*]'` into `*`, but it will not turn
-`'\\*'` into `'*'`, because `\` is a path separator in
-`windowsPathsNoEscape` mode.
-
-When `windowsPathsNoEscape` is not set, then both brace escapes
-and backslash escapes are removed.
-
-Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot
-be escaped or unescaped.
-
-## Class `Glob`
-
-An object that can perform glob pattern traversals.
-
-### `const g = new Glob(pattern: string | string[], options: GlobOptions)`
-
-Options object is required.
-
-See full options descriptions below.
-
-Note that a previous `Glob` object can be passed as the
-`GlobOptions` to another `Glob` instantiation to re-use settings
-and caches with a new pattern.
-
-Traversal functions can be called multiple times to run the walk
-again.
-
-### `g.stream()`
-
-Stream results asynchronously,
-
-### `g.streamSync()`
-
-Stream results synchronously.
-
-### `g.iterate()`
-
-Default async iteration function. Returns an AsyncGenerator that
-iterates over the results.
-
-### `g.iterateSync()`
-
-Default sync iteration function. Returns a Generator that
-iterates over the results.
-
-### `g.walk()`
-
-Returns a Promise that resolves to the results array.
-
-### `g.walkSync()`
-
-Returns a results array.
-
-### Properties
-
-All options are stored as properties on the `Glob` object.
-
-- `opts` The options provided to the constructor.
-- `patterns` An array of parsed immutable `Pattern` objects.
-
-## Options
-
-Exported as `GlobOptions` TypeScript interface. A `GlobOptions`
-object may be provided to any of the exported methods, and must
-be provided to the `Glob` constructor.
-
-All options are optional, boolean, and false by default, unless
-otherwise noted.
-
-All resolved options are added to the Glob object as properties.
-
-If you are running many `glob` operations, you can pass a Glob
-object as the `options` argument to a subsequent operation to
-share the previously loaded cache.
-
-- `cwd` String path or `file://` string or URL object. The
- current working directory in which to search. Defaults to
- `process.cwd()`. See also: "Windows, CWDs, Drive Letters, and
- UNC Paths", below.
-
- This option may be either a string path or a `file://` URL
- object or string.
-
-- `root` A string path resolved against the `cwd` option, which
- is used as the starting point for absolute patterns that start
- with `/`, (but not drive letters or UNC paths on Windows).
-
- Note that this _doesn't_ necessarily limit the walk to the
- `root` directory, and doesn't affect the cwd starting point for
- non-absolute patterns. A pattern containing `..` will still be
- able to traverse out of the root directory, if it is not an
- actual root directory on the filesystem, and any non-absolute
- patterns will be matched in the `cwd`. For example, the
- pattern `/../*` with `{root:'/some/path'}` will return all
- files in `/some`, not all files in `/some/path`. The pattern
- `*` with `{root:'/some/path'}` will return all the entries in
- the cwd, not the entries in `/some/path`.
-
- To start absolute and non-absolute patterns in the same
- path, you can use `{root:''}`. However, be aware that on
- Windows systems, a pattern like `x:/*` or `//host/share/*` will
- _always_ start in the `x:/` or `//host/share` directory,
- regardless of the `root` setting.
-
-- `windowsPathsNoEscape` Use `\\` as a path separator _only_, and
- _never_ as an escape character. If set, all `\\` characters are
- replaced with `/` in the pattern.
-
- Note that this makes it **impossible** to match against paths
- containing literal glob pattern characters, but allows matching
- with patterns constructed using `path.join()` and
- `path.resolve()` on Windows platforms, mimicking the (buggy!)
- behavior of Glob v7 and before on Windows. Please use with
- caution, and be mindful of [the caveat below about Windows
- paths](#windows). (For legacy reasons, this is also set if
- `allowWindowsEscape` is set to the exact value `false`.)
-
-- `dot` Include `.dot` files in normal matches and `globstar`
- matches. Note that an explicit dot in a portion of the pattern
- will always match dot files.
-
-- `magicalBraces` Treat brace expansion like `{a,b}` as a "magic"
- pattern. Has no effect if {@link nobrace} is set.
-
- Only has effect on the {@link hasMagic} function, no effect on
- glob pattern matching itself.
-
-- `dotRelative` Prepend all relative path strings with `./` (or
- `.\` on Windows).
-
- Without this option, returned relative paths are "bare", so
- instead of returning `'./foo/bar'`, they are returned as
- `'foo/bar'`.
-
- Relative patterns starting with `'../'` are not prepended with
- `./`, even if this option is set.
-
-- `mark` Add a `/` character to directory matches. Note that this
- requires additional stat calls.
-
-- `nobrace` Do not expand `{a,b}` and `{1..3}` brace sets.
-
-- `noglobstar` Do not match `**` against multiple filenames. (Ie,
- treat it as a normal `*` instead.)
-
-- `noext` Do not match "extglob" patterns such as `+(a|b)`.
-
-- `nocase` Perform a case-insensitive match. This defaults to
- `true` on macOS and Windows systems, and `false` on all others.
-
- **Note** `nocase` should only be explicitly set when it is
- known that the filesystem's case sensitivity differs from the
- platform default. If set `true` on case-sensitive file
- systems, or `false` on case-insensitive file systems, then the
- walk may return more or less results than expected.
-
-- `maxDepth` Specify a number to limit the depth of the directory
- traversal to this many levels below the `cwd`.
-
-- `matchBase` Perform a basename-only match if the pattern does
- not contain any slash characters. That is, `*.js` would be
- treated as equivalent to `**/*.js`, matching all js files in
- all directories.
-
-- `nodir` Do not match directories, only files. (Note: to match
- _only_ directories, put a `/` at the end of the pattern.)
-
- Note: when `follow` and `nodir` are both set, then symbolic
- links to directories are also omitted.
-
-- `stat` Call `lstat()` on all entries, whether required or not
- to determine whether it's a valid match. When used with
- `withFileTypes`, this means that matches will include data such
- as modified time, permissions, and so on. Note that this will
- incur a performance cost due to the added system calls.
-
-- `ignore` string or string[], or an object with `ignore` and
- `ignoreChildren` methods.
-
- If a string or string[] is provided, then this is treated as a
- glob pattern or array of glob patterns to exclude from matches.
- To ignore all children within a directory, as well as the entry
- itself, append `'/**'` to the ignore pattern.
-
- **Note** `ignore` patterns are _always_ in `dot:true` mode,
- regardless of any other settings.
-
- If an object is provided that has `ignored(path)` and/or
- `childrenIgnored(path)` methods, then these methods will be
- called to determine whether any Path is a match or if its
- children should be traversed, respectively.
-
-- `follow` Follow symlinked directories when expanding `**`
- patterns. This can result in a lot of duplicate references in
- the presence of cyclic links, and make performance quite bad.
-
- By default, a `**` in a pattern will follow 1 symbolic link if
- it is not the first item in the pattern, or none if it is the
- first item in the pattern, following the same behavior as Bash.
-
- Note: when `follow` and `nodir` are both set, then symbolic
- links to directories are also omitted.
-
-- `realpath` Set to true to call `fs.realpath` on all of the
- results. In the case of an entry that cannot be resolved, the
- entry is omitted. This incurs a slight performance penalty, of
- course, because of the added system calls.
-
-- `absolute` Set to true to always receive absolute paths for
- matched files. Set to `false` to always receive relative paths
- for matched files.
-
- By default, when this option is not set, absolute paths are
- returned for patterns that are absolute, and otherwise paths
- are returned that are relative to the `cwd` setting.
-
- This does _not_ make an extra system call to get the realpath,
- it only does string path resolution.
-
- `absolute` may not be used along with `withFileTypes`.
-
-- `posix` Set to true to use `/` as the path separator in
- returned results. On posix systems, this has no effect. On
- Windows systems, this will return `/` delimited path results,
- and absolute paths will be returned in their full resolved UNC
- path form, eg insted of `'C:\\foo\\bar'`, it will return
- `//?/C:/foo/bar`.
-
-- `platform` Defaults to value of `process.platform` if
- available, or `'linux'` if not. Setting `platform:'win32'` on
- non-Windows systems may cause strange behavior.
-
-- `withFileTypes` Return [PathScurry](http://npm.im/path-scurry)
- `Path` objects instead of strings. These are similar to a
- NodeJS `Dirent` object, but with additional methods and
- properties.
-
- `withFileTypes` may not be used along with `absolute`.
-
-- `signal` An AbortSignal which will cancel the Glob walk when
- triggered.
-
-- `fs` An override object to pass in custom filesystem methods.
- See [PathScurry docs](http://npm.im/path-scurry) for what can
- be overridden.
-
-- `scurry` A [PathScurry](http://npm.im/path-scurry) object used
- to traverse the file system. If the `nocase` option is set
- explicitly, then any provided `scurry` object must match this
- setting.
-
-- `includeChildMatches` boolean, default `true`. Do not match any
- children of any matches. For example, the pattern `**\/foo`
- would match `a/foo`, but not `a/foo/b/foo` in this mode.
-
- This is especially useful for cases like "find all
- `node_modules` folders, but not the ones in `node_modules`".
-
- In order to support this, the `Ignore` implementation must
- support an `add(pattern: string)` method. If using the default
- `Ignore` class, then this is fine, but if this is set to
- `false`, and a custom `Ignore` is provided that does not have
- an `add()` method, then it will throw an error.
-
- **Caveat** It _only_ ignores matches that would be a descendant
- of a previous match, and only if that descendant is matched
- _after_ the ancestor is encountered. Since the file system walk
- happens in indeterminate order, it's possible that a match will
- already be added before its ancestor, if multiple or braced
- patterns are used.
-
- For example:
-
- ```js
- const results = await glob(
- [
- // likely to match first, since it's just a stat
- 'a/b/c/d/e/f',
-
- // this pattern is more complicated! It must to various readdir()
- // calls and test the results against a regular expression, and that
- // is certainly going to take a little bit longer.
- //
- // So, later on, it encounters a match at 'a/b/c/d/e', but it's too
- // late to ignore a/b/c/d/e/f, because it's already been emitted.
- 'a/[bdf]/?/[a-z]/*',
- ],
- { includeChildMatches: false },
- )
- ```
-
- It's best to only set this to `false` if you can be reasonably
- sure that no components of the pattern will potentially match
- one another's file system descendants, or if the occasional
- included child entry will not cause problems.
-
-## Glob Primer
-
-Much more information about glob pattern expansion can be found
-by running `man bash` and searching for `Pattern Matching`.
-
-"Globs" are the patterns you type when you do stuff like `ls
-*.js` on the command line, or put `build/*` in a `.gitignore`
-file.
-
-Before parsing the path part patterns, braced sections are
-expanded into a set. Braced sections start with `{` and end with
-`}`, with 2 or more comma-delimited sections within. Braced
-sections may contain slash characters, so `a{/b/c,bcd}` would
-expand into `a/b/c` and `abcd`.
-
-The following characters have special magic meaning when used in
-a path portion. With the exception of `**`, none of these match
-path separators (ie, `/` on all platforms, and `\` on Windows).
-
-- `*` Matches 0 or more characters in a single path portion.
- When alone in a path portion, it must match at least 1
- character. If `dot:true` is not specified, then `*` will not
- match against a `.` character at the start of a path portion.
-- `?` Matches 1 character. If `dot:true` is not specified, then
- `?` will not match against a `.` character at the start of a
- path portion.
-- `[...]` Matches a range of characters, similar to a RegExp
- range. If the first character of the range is `!` or `^` then
- it matches any character not in the range. If the first
- character is `]`, then it will be considered the same as `\]`,
- rather than the end of the character class.
-- `!(pattern|pattern|pattern)` Matches anything that does not
- match any of the patterns provided. May _not_ contain `/`
- characters. Similar to `*`, if alone in a path portion, then
- the path portion must have at least one character.
-- `?(pattern|pattern|pattern)` Matches zero or one occurrence of
- the patterns provided. May _not_ contain `/` characters.
-- `+(pattern|pattern|pattern)` Matches one or more occurrences of
- the patterns provided. May _not_ contain `/` characters.
-- `*(a|b|c)` Matches zero or more occurrences of the patterns
- provided. May _not_ contain `/` characters.
-- `@(pattern|pat*|pat?erN)` Matches exactly one of the patterns
- provided. May _not_ contain `/` characters.
-- `**` If a "globstar" is alone in a path portion, then it
- matches zero or more directories and subdirectories searching
- for matches. It does not crawl symlinked directories, unless
- `{follow:true}` is passed in the options object. A pattern
- like `a/b/**` will only match `a/b` if it is a directory.
- Follows 1 symbolic link if not the first item in the pattern,
- or 0 if it is the first item, unless `follow:true` is set, in
- which case it follows all symbolic links.
-
-`[:class:]` patterns are supported by this implementation, but
-`[=c=]` and `[.symbol.]` style class patterns are not.
-
-### Dots
-
-If a file or directory path portion has a `.` as the first
-character, then it will not match any glob pattern unless that
-pattern's corresponding path part also has a `.` as its first
-character.
-
-For example, the pattern `a/.*/c` would match the file at
-`a/.b/c`. However the pattern `a/*/c` would not, because `*` does
-not start with a dot character.
-
-You can make glob treat dots as normal characters by setting
-`dot:true` in the options.
-
-### Basename Matching
-
-If you set `matchBase:true` in the options, and the pattern has
-no slashes in it, then it will seek for any file anywhere in the
-tree with a matching basename. For example, `*.js` would match
-`test/simple/basic.js`.
-
-### Empty Sets
-
-If no matching files are found, then an empty array is returned.
-This differs from the shell, where the pattern itself is
-returned. For example:
-
-```sh
-$ echo a*s*d*f
-a*s*d*f
-```
-
-## Comparisons to other fnmatch/glob implementations
-
-While strict compliance with the existing standards is a
-worthwhile goal, some discrepancies exist between node-glob and
-other implementations, and are intentional.
-
-The double-star character `**` is supported by default, unless
-the `noglobstar` flag is set. This is supported in the manner of
-bsdglob and bash 5, where `**` only has special significance if
-it is the only thing in a path part. That is, `a/**/b` will match
-`a/x/y/b`, but `a/**b` will not.
-
-Note that symlinked directories are not traversed as part of a
-`**`, though their contents may match against subsequent portions
-of the pattern. This prevents infinite loops and duplicates and
-the like. You can force glob to traverse symlinks with `**` by
-setting `{follow:true}` in the options.
-
-There is no equivalent of the `nonull` option. A pattern that
-does not find any matches simply resolves to nothing. (An empty
-array, immediately ended stream, etc.)
-
-If brace expansion is not disabled, then it is performed before
-any other interpretation of the glob pattern. Thus, a pattern
-like `+(a|{b),c)}`, which would not be valid in bash or zsh, is
-expanded **first** into the set of `+(a|b)` and `+(a|c)`, and
-those patterns are checked for validity. Since those two are
-valid, matching proceeds.
-
-The character class patterns `[:class:]` (posix standard named
-classes) style class patterns are supported and unicode-aware,
-but `[=c=]` (locale-specific character collation weight), and
-`[.symbol.]` (collating symbol), are not.
-
-### Repeated Slashes
-
-Unlike Bash and zsh, repeated `/` are always coalesced into a
-single path separator.
-
-### Comments and Negation
-
-Previously, this module let you mark a pattern as a "comment" if
-it started with a `#` character, or a "negated" pattern if it
-started with a `!` character.
-
-These options were deprecated in version 5, and removed in
-version 6.
-
-To specify things that should not match, use the `ignore` option.
-
-## Windows
-
-**Please only use forward-slashes in glob expressions.**
-
-Though windows uses either `/` or `\` as its path separator, only
-`/` characters are used by this glob implementation. You must use
-forward-slashes **only** in glob expressions. Back-slashes will
-always be interpreted as escape characters, not path separators.
-
-Results from absolute patterns such as `/foo/*` are mounted onto
-the root setting using `path.join`. On windows, this will by
-default result in `/foo/*` matching `C:\foo\bar.txt`.
-
-To automatically coerce all `\` characters to `/` in pattern
-strings, **thus making it impossible to escape literal glob
-characters**, you may set the `windowsPathsNoEscape` option to
-`true`.
-
-### Windows, CWDs, Drive Letters, and UNC Paths
-
-On posix systems, when a pattern starts with `/`, any `cwd`
-option is ignored, and the traversal starts at `/`, plus any
-non-magic path portions specified in the pattern.
-
-On Windows systems, the behavior is similar, but the concept of
-an "absolute path" is somewhat more involved.
-
-#### UNC Paths
-
-A UNC path may be used as the start of a pattern on Windows
-platforms. For example, a pattern like: `//?/x:/*` will return
-all file entries in the root of the `x:` drive. A pattern like
-`//ComputerName/Share/*` will return all files in the associated
-share.
-
-UNC path roots are always compared case insensitively.
-
-#### Drive Letters
-
-A pattern starting with a drive letter, like `c:/*`, will search
-in that drive, regardless of any `cwd` option provided.
-
-If the pattern starts with `/`, and is not a UNC path, and there
-is an explicit `cwd` option set with a drive letter, then the
-drive letter in the `cwd` is used as the root of the directory
-traversal.
-
-For example, `glob('/tmp', { cwd: 'c:/any/thing' })` will return
-`['c:/tmp']` as the result.
-
-If an explicit `cwd` option is not provided, and the pattern
-starts with `/`, then the traversal will run on the root of the
-drive provided as the `cwd` option. (That is, it is the result of
-`path.resolve('/')`.)
-
-## Race Conditions
-
-Glob searching, by its very nature, is susceptible to race
-conditions, since it relies on directory walking.
-
-As a result, it is possible that a file that exists when glob
-looks for it may have been deleted or modified by the time it
-returns the result.
-
-By design, this implementation caches all readdir calls that it
-makes, in order to cut down on system overhead. However, this
-also makes it even more susceptible to races, especially if the
-cache object is reused between glob calls.
-
-Users are thus advised not to use a glob result as a guarantee of
-filesystem state in the face of rapid changes. For the vast
-majority of operations, this is never a problem.
-
-### See Also:
-
-- `man sh`
-- `man bash` [Pattern
- Matching](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html)
-- `man 3 fnmatch`
-- `man 5 gitignore`
-- [minimatch documentation](https://github.com/isaacs/minimatch)
-
-## Glob Logo
-
-Glob's logo was created by [Tanya
-Brassie](http://tanyabrassie.com/). Logo files can be found
-[here](https://github.com/isaacs/node-glob/tree/master/logo).
-
-The logo is licensed under a [Creative Commons
-Attribution-ShareAlike 4.0 International
-License](https://creativecommons.org/licenses/by-sa/4.0/).
-
-## Contributing
-
-Any change to behavior (including bugfixes) must come with a
-test.
-
-Patches that fail tests or reduce performance will be rejected.
-
-```sh
-# to run tests
-npm test
-
-# to re-generate test fixtures
-npm run test-regen
-
-# run the benchmarks
-npm run bench
-
-# to profile javascript
-npm run prof
-```
-
-## Comparison to Other JavaScript Glob Implementations
-
-**tl;dr**
-
-- If you want glob matching that is as faithful as possible to
- Bash pattern expansion semantics, and as fast as possible
- within that constraint, _use this module_.
-- If you are reasonably sure that the patterns you will encounter
- are relatively simple, and want the absolutely fastest glob
- matcher out there, _use [fast-glob](http://npm.im/fast-glob)_.
-- If you are reasonably sure that the patterns you will encounter
- are relatively simple, and want the convenience of
- automatically respecting `.gitignore` files, _use
- [globby](http://npm.im/globby)_.
-
-There are some other glob matcher libraries on npm, but these
-three are (in my opinion, as of 2023) the best.
-
----
-
-**full explanation**
-
-Every library reflects a set of opinions and priorities in the
-trade-offs it makes. Other than this library, I can personally
-recommend both [globby](http://npm.im/globby) and
-[fast-glob](http://npm.im/fast-glob), though they differ in their
-benefits and drawbacks.
-
-Both have very nice APIs and are reasonably fast.
-
-`fast-glob` is, as far as I am aware, the fastest glob
-implementation in JavaScript today. However, there are many
-cases where the choices that `fast-glob` makes in pursuit of
-speed mean that its results differ from the results returned by
-Bash and other sh-like shells, which may be surprising.
-
-In my testing, `fast-glob` is around 10-20% faster than this
-module when walking over 200k files nested 4 directories
-deep[1](#fn-webscale). However, there are some inconsistencies
-with Bash matching behavior that this module does not suffer
-from:
-
-- `**` only matches files, not directories
-- `..` path portions are not handled unless they appear at the
- start of the pattern
-- `./!()` will not match any files that _start_ with
- ``, even if they do not match ``. For
- example, `!(9).txt` will not match `9999.txt`.
-- Some brace patterns in the middle of a pattern will result in
- failing to find certain matches.
-- Extglob patterns are allowed to contain `/` characters.
-
-Globby exhibits all of the same pattern semantics as fast-glob,
-(as it is a wrapper around fast-glob) and is slightly slower than
-node-glob (by about 10-20% in the benchmark test set, or in other
-words, anywhere from 20-50% slower than fast-glob). However, it
-adds some API conveniences that may be worth the costs.
-
-- Support for `.gitignore` and other ignore files.
-- Support for negated globs (ie, patterns starting with `!`
- rather than using a separate `ignore` option).
-
-The priority of this module is "correctness" in the sense of
-performing a glob pattern expansion as faithfully as possible to
-the behavior of Bash and other sh-like shells, with as much speed
-as possible.
-
-Note that prior versions of `node-glob` are _not_ on this list.
-Former versions of this module are far too slow for any cases
-where performance matters at all, and were designed with APIs
-that are extremely dated by current JavaScript standards.
-
----
-
-[1]: In the cases where this module
-returns results and `fast-glob` doesn't, it's even faster, of
-course.
-
-
-
-### Benchmark Results
-
-First number is time, smaller is better.
-
-Second number is the count of results returned.
-
-```
---- pattern: '**' ---
-~~ sync ~~
-node fast-glob sync 0m0.598s 200364
-node globby sync 0m0.765s 200364
-node current globSync mjs 0m0.683s 222656
-node current glob syncStream 0m0.649s 222656
-~~ async ~~
-node fast-glob async 0m0.350s 200364
-node globby async 0m0.509s 200364
-node current glob async mjs 0m0.463s 222656
-node current glob stream 0m0.411s 222656
-
---- pattern: '**/..' ---
-~~ sync ~~
-node fast-glob sync 0m0.486s 0
-node globby sync 0m0.769s 200364
-node current globSync mjs 0m0.564s 2242
-node current glob syncStream 0m0.583s 2242
-~~ async ~~
-node fast-glob async 0m0.283s 0
-node globby async 0m0.512s 200364
-node current glob async mjs 0m0.299s 2242
-node current glob stream 0m0.312s 2242
-
---- pattern: './**/0/**/0/**/0/**/0/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.490s 10
-node globby sync 0m0.517s 10
-node current globSync mjs 0m0.540s 10
-node current glob syncStream 0m0.550s 10
-~~ async ~~
-node fast-glob async 0m0.290s 10
-node globby async 0m0.296s 10
-node current glob async mjs 0m0.278s 10
-node current glob stream 0m0.302s 10
-
---- pattern: './**/[01]/**/[12]/**/[23]/**/[45]/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.500s 160
-node globby sync 0m0.528s 160
-node current globSync mjs 0m0.556s 160
-node current glob syncStream 0m0.573s 160
-~~ async ~~
-node fast-glob async 0m0.283s 160
-node globby async 0m0.301s 160
-node current glob async mjs 0m0.306s 160
-node current glob stream 0m0.322s 160
-
---- pattern: './**/0/**/0/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.502s 5230
-node globby sync 0m0.527s 5230
-node current globSync mjs 0m0.544s 5230
-node current glob syncStream 0m0.557s 5230
-~~ async ~~
-node fast-glob async 0m0.285s 5230
-node globby async 0m0.305s 5230
-node current glob async mjs 0m0.304s 5230
-node current glob stream 0m0.310s 5230
-
---- pattern: '**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.580s 200023
-node globby sync 0m0.771s 200023
-node current globSync mjs 0m0.685s 200023
-node current glob syncStream 0m0.649s 200023
-~~ async ~~
-node fast-glob async 0m0.349s 200023
-node globby async 0m0.509s 200023
-node current glob async mjs 0m0.427s 200023
-node current glob stream 0m0.388s 200023
-
---- pattern: '{**/*.txt,**/?/**/*.txt,**/?/**/?/**/*.txt,**/?/**/?/**/?/**/*.txt,**/?/**/?/**/?/**/?/**/*.txt}' ---
-~~ sync ~~
-node fast-glob sync 0m0.589s 200023
-node globby sync 0m0.771s 200023
-node current globSync mjs 0m0.716s 200023
-node current glob syncStream 0m0.684s 200023
-~~ async ~~
-node fast-glob async 0m0.351s 200023
-node globby async 0m0.518s 200023
-node current glob async mjs 0m0.462s 200023
-node current glob stream 0m0.468s 200023
-
---- pattern: '**/5555/0000/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.496s 1000
-node globby sync 0m0.519s 1000
-node current globSync mjs 0m0.539s 1000
-node current glob syncStream 0m0.567s 1000
-~~ async ~~
-node fast-glob async 0m0.285s 1000
-node globby async 0m0.299s 1000
-node current glob async mjs 0m0.305s 1000
-node current glob stream 0m0.301s 1000
-
---- pattern: './**/0/**/../[01]/**/0/../**/0/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.484s 0
-node globby sync 0m0.507s 0
-node current globSync mjs 0m0.577s 4880
-node current glob syncStream 0m0.586s 4880
-~~ async ~~
-node fast-glob async 0m0.280s 0
-node globby async 0m0.298s 0
-node current glob async mjs 0m0.327s 4880
-node current glob stream 0m0.324s 4880
-
---- pattern: '**/????/????/????/????/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.547s 100000
-node globby sync 0m0.673s 100000
-node current globSync mjs 0m0.626s 100000
-node current glob syncStream 0m0.618s 100000
-~~ async ~~
-node fast-glob async 0m0.315s 100000
-node globby async 0m0.414s 100000
-node current glob async mjs 0m0.366s 100000
-node current glob stream 0m0.345s 100000
-
---- pattern: './{**/?{/**/?{/**/?{/**/?,,,,},,,,},,,,},,,}/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.588s 100000
-node globby sync 0m0.670s 100000
-node current globSync mjs 0m0.717s 200023
-node current glob syncStream 0m0.687s 200023
-~~ async ~~
-node fast-glob async 0m0.343s 100000
-node globby async 0m0.418s 100000
-node current glob async mjs 0m0.519s 200023
-node current glob stream 0m0.451s 200023
-
---- pattern: '**/!(0|9).txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.573s 160023
-node globby sync 0m0.731s 160023
-node current globSync mjs 0m0.680s 180023
-node current glob syncStream 0m0.659s 180023
-~~ async ~~
-node fast-glob async 0m0.345s 160023
-node globby async 0m0.476s 160023
-node current glob async mjs 0m0.427s 180023
-node current glob stream 0m0.388s 180023
-
---- pattern: './{*/**/../{*/**/../{*/**/../{*/**/../{*/**,,,,},,,,},,,,},,,,},,,,}/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.483s 0
-node globby sync 0m0.512s 0
-node current globSync mjs 0m0.811s 200023
-node current glob syncStream 0m0.773s 200023
-~~ async ~~
-node fast-glob async 0m0.280s 0
-node globby async 0m0.299s 0
-node current glob async mjs 0m0.617s 200023
-node current glob stream 0m0.568s 200023
-
---- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.485s 0
-node globby sync 0m0.507s 0
-node current globSync mjs 0m0.759s 200023
-node current glob syncStream 0m0.740s 200023
-~~ async ~~
-node fast-glob async 0m0.281s 0
-node globby async 0m0.297s 0
-node current glob async mjs 0m0.544s 200023
-node current glob stream 0m0.464s 200023
-
---- pattern: './*/**/../*/**/../*/**/../*/**/../*/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.486s 0
-node globby sync 0m0.513s 0
-node current globSync mjs 0m0.734s 200023
-node current glob syncStream 0m0.696s 200023
-~~ async ~~
-node fast-glob async 0m0.286s 0
-node globby async 0m0.296s 0
-node current glob async mjs 0m0.506s 200023
-node current glob stream 0m0.483s 200023
-
---- pattern: './0/**/../1/**/../2/**/../3/**/../4/**/../5/**/../6/**/../7/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.060s 0
-node globby sync 0m0.074s 0
-node current globSync mjs 0m0.067s 0
-node current glob syncStream 0m0.066s 0
-~~ async ~~
-node fast-glob async 0m0.060s 0
-node globby async 0m0.075s 0
-node current glob async mjs 0m0.066s 0
-node current glob stream 0m0.067s 0
-
---- pattern: './**/?/**/?/**/?/**/?/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.568s 100000
-node globby sync 0m0.651s 100000
-node current globSync mjs 0m0.619s 100000
-node current glob syncStream 0m0.617s 100000
-~~ async ~~
-node fast-glob async 0m0.332s 100000
-node globby async 0m0.409s 100000
-node current glob async mjs 0m0.372s 100000
-node current glob stream 0m0.351s 100000
-
---- pattern: '**/*/**/*/**/*/**/*/**' ---
-~~ sync ~~
-node fast-glob sync 0m0.603s 200113
-node globby sync 0m0.798s 200113
-node current globSync mjs 0m0.730s 222137
-node current glob syncStream 0m0.693s 222137
-~~ async ~~
-node fast-glob async 0m0.356s 200113
-node globby async 0m0.525s 200113
-node current glob async mjs 0m0.508s 222137
-node current glob stream 0m0.455s 222137
-
---- pattern: './**/*/**/*/**/*/**/*/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.622s 200000
-node globby sync 0m0.792s 200000
-node current globSync mjs 0m0.722s 200000
-node current glob syncStream 0m0.695s 200000
-~~ async ~~
-node fast-glob async 0m0.369s 200000
-node globby async 0m0.527s 200000
-node current glob async mjs 0m0.502s 200000
-node current glob stream 0m0.481s 200000
-
---- pattern: '**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.588s 200023
-node globby sync 0m0.771s 200023
-node current globSync mjs 0m0.684s 200023
-node current glob syncStream 0m0.658s 200023
-~~ async ~~
-node fast-glob async 0m0.352s 200023
-node globby async 0m0.516s 200023
-node current glob async mjs 0m0.432s 200023
-node current glob stream 0m0.384s 200023
-
---- pattern: './**/**/**/**/**/**/**/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.589s 200023
-node globby sync 0m0.766s 200023
-node current globSync mjs 0m0.682s 200023
-node current glob syncStream 0m0.652s 200023
-~~ async ~~
-node fast-glob async 0m0.352s 200023
-node globby async 0m0.523s 200023
-node current glob async mjs 0m0.436s 200023
-node current glob stream 0m0.380s 200023
-
---- pattern: '**/*/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.592s 200023
-node globby sync 0m0.776s 200023
-node current globSync mjs 0m0.691s 200023
-node current glob syncStream 0m0.659s 200023
-~~ async ~~
-node fast-glob async 0m0.357s 200023
-node globby async 0m0.513s 200023
-node current glob async mjs 0m0.471s 200023
-node current glob stream 0m0.424s 200023
-
---- pattern: '**/*/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.585s 200023
-node globby sync 0m0.766s 200023
-node current globSync mjs 0m0.694s 200023
-node current glob syncStream 0m0.664s 200023
-~~ async ~~
-node fast-glob async 0m0.350s 200023
-node globby async 0m0.514s 200023
-node current glob async mjs 0m0.472s 200023
-node current glob stream 0m0.424s 200023
-
---- pattern: '**/[0-9]/**/*.txt' ---
-~~ sync ~~
-node fast-glob sync 0m0.544s 100000
-node globby sync 0m0.636s 100000
-node current globSync mjs 0m0.626s 100000
-node current glob syncStream 0m0.621s 100000
-~~ async ~~
-node fast-glob async 0m0.322s 100000
-node globby async 0m0.404s 100000
-node current glob async mjs 0m0.360s 100000
-node current glob stream 0m0.352s 100000
-```
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts
deleted file mode 100644
index 25262b3d..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts
+++ /dev/null
@@ -1,388 +0,0 @@
-import { Minimatch } from 'minimatch';
-import { Minipass } from 'minipass';
-import { FSOption, Path, PathScurry } from 'path-scurry';
-import { IgnoreLike } from './ignore.js';
-import { Pattern } from './pattern.js';
-export type MatchSet = Minimatch['set'];
-export type GlobParts = Exclude;
-/**
- * A `GlobOptions` object may be provided to any of the exported methods, and
- * must be provided to the `Glob` constructor.
- *
- * All options are optional, boolean, and false by default, unless otherwise
- * noted.
- *
- * All resolved options are added to the Glob object as properties.
- *
- * If you are running many `glob` operations, you can pass a Glob object as the
- * `options` argument to a subsequent operation to share the previously loaded
- * cache.
- */
-export interface GlobOptions {
- /**
- * Set to `true` to always receive absolute paths for
- * matched files. Set to `false` to always return relative paths.
- *
- * When this option is not set, absolute paths are returned for patterns
- * that are absolute, and otherwise paths are returned that are relative
- * to the `cwd` setting.
- *
- * This does _not_ make an extra system call to get
- * the realpath, it only does string path resolution.
- *
- * Conflicts with {@link withFileTypes}
- */
- absolute?: boolean;
- /**
- * Set to false to enable {@link windowsPathsNoEscape}
- *
- * @deprecated
- */
- allowWindowsEscape?: boolean;
- /**
- * The current working directory in which to search. Defaults to
- * `process.cwd()`.
- *
- * May be eiher a string path or a `file://` URL object or string.
- */
- cwd?: string | URL;
- /**
- * Include `.dot` files in normal matches and `globstar`
- * matches. Note that an explicit dot in a portion of the pattern
- * will always match dot files.
- */
- dot?: boolean;
- /**
- * Prepend all relative path strings with `./` (or `.\` on Windows).
- *
- * Without this option, returned relative paths are "bare", so instead of
- * returning `'./foo/bar'`, they are returned as `'foo/bar'`.
- *
- * Relative patterns starting with `'../'` are not prepended with `./`, even
- * if this option is set.
- */
- dotRelative?: boolean;
- /**
- * Follow symlinked directories when expanding `**`
- * patterns. This can result in a lot of duplicate references in
- * the presence of cyclic links, and make performance quite bad.
- *
- * By default, a `**` in a pattern will follow 1 symbolic link if
- * it is not the first item in the pattern, or none if it is the
- * first item in the pattern, following the same behavior as Bash.
- */
- follow?: boolean;
- /**
- * string or string[], or an object with `ignore` and `ignoreChildren`
- * methods.
- *
- * If a string or string[] is provided, then this is treated as a glob
- * pattern or array of glob patterns to exclude from matches. To ignore all
- * children within a directory, as well as the entry itself, append `'/**'`
- * to the ignore pattern.
- *
- * **Note** `ignore` patterns are _always_ in `dot:true` mode, regardless of
- * any other settings.
- *
- * If an object is provided that has `ignored(path)` and/or
- * `childrenIgnored(path)` methods, then these methods will be called to
- * determine whether any Path is a match or if its children should be
- * traversed, respectively.
- */
- ignore?: string | string[] | IgnoreLike;
- /**
- * Treat brace expansion like `{a,b}` as a "magic" pattern. Has no
- * effect if {@link nobrace} is set.
- *
- * Only has effect on the {@link hasMagic} function.
- */
- magicalBraces?: boolean;
- /**
- * Add a `/` character to directory matches. Note that this requires
- * additional stat calls in some cases.
- */
- mark?: boolean;
- /**
- * Perform a basename-only match if the pattern does not contain any slash
- * characters. That is, `*.js` would be treated as equivalent to
- * `**\/*.js`, matching all js files in all directories.
- */
- matchBase?: boolean;
- /**
- * Limit the directory traversal to a given depth below the cwd.
- * Note that this does NOT prevent traversal to sibling folders,
- * root patterns, and so on. It only limits the maximum folder depth
- * that the walk will descend, relative to the cwd.
- */
- maxDepth?: number;
- /**
- * Do not expand `{a,b}` and `{1..3}` brace sets.
- */
- nobrace?: boolean;
- /**
- * Perform a case-insensitive match. This defaults to `true` on macOS and
- * Windows systems, and `false` on all others.
- *
- * **Note** `nocase` should only be explicitly set when it is
- * known that the filesystem's case sensitivity differs from the
- * platform default. If set `true` on case-sensitive file
- * systems, or `false` on case-insensitive file systems, then the
- * walk may return more or less results than expected.
- */
- nocase?: boolean;
- /**
- * Do not match directories, only files. (Note: to match
- * _only_ directories, put a `/` at the end of the pattern.)
- */
- nodir?: boolean;
- /**
- * Do not match "extglob" patterns such as `+(a|b)`.
- */
- noext?: boolean;
- /**
- * Do not match `**` against multiple filenames. (Ie, treat it as a normal
- * `*` instead.)
- *
- * Conflicts with {@link matchBase}
- */
- noglobstar?: boolean;
- /**
- * Defaults to value of `process.platform` if available, or `'linux'` if
- * not. Setting `platform:'win32'` on non-Windows systems may cause strange
- * behavior.
- */
- platform?: NodeJS.Platform;
- /**
- * Set to true to call `fs.realpath` on all of the
- * results. In the case of an entry that cannot be resolved, the
- * entry is omitted. This incurs a slight performance penalty, of
- * course, because of the added system calls.
- */
- realpath?: boolean;
- /**
- *
- * A string path resolved against the `cwd` option, which
- * is used as the starting point for absolute patterns that start
- * with `/`, (but not drive letters or UNC paths on Windows).
- *
- * Note that this _doesn't_ necessarily limit the walk to the
- * `root` directory, and doesn't affect the cwd starting point for
- * non-absolute patterns. A pattern containing `..` will still be
- * able to traverse out of the root directory, if it is not an
- * actual root directory on the filesystem, and any non-absolute
- * patterns will be matched in the `cwd`. For example, the
- * pattern `/../*` with `{root:'/some/path'}` will return all
- * files in `/some`, not all files in `/some/path`. The pattern
- * `*` with `{root:'/some/path'}` will return all the entries in
- * the cwd, not the entries in `/some/path`.
- *
- * To start absolute and non-absolute patterns in the same
- * path, you can use `{root:''}`. However, be aware that on
- * Windows systems, a pattern like `x:/*` or `//host/share/*` will
- * _always_ start in the `x:/` or `//host/share` directory,
- * regardless of the `root` setting.
- */
- root?: string;
- /**
- * A [PathScurry](http://npm.im/path-scurry) object used
- * to traverse the file system. If the `nocase` option is set
- * explicitly, then any provided `scurry` object must match this
- * setting.
- */
- scurry?: PathScurry;
- /**
- * Call `lstat()` on all entries, whether required or not to determine
- * if it's a valid match. When used with {@link withFileTypes}, this means
- * that matches will include data such as modified time, permissions, and
- * so on. Note that this will incur a performance cost due to the added
- * system calls.
- */
- stat?: boolean;
- /**
- * An AbortSignal which will cancel the Glob walk when
- * triggered.
- */
- signal?: AbortSignal;
- /**
- * Use `\\` as a path separator _only_, and
- * _never_ as an escape character. If set, all `\\` characters are
- * replaced with `/` in the pattern.
- *
- * Note that this makes it **impossible** to match against paths
- * containing literal glob pattern characters, but allows matching
- * with patterns constructed using `path.join()` and
- * `path.resolve()` on Windows platforms, mimicking the (buggy!)
- * behavior of Glob v7 and before on Windows. Please use with
- * caution, and be mindful of [the caveat below about Windows
- * paths](#windows). (For legacy reasons, this is also set if
- * `allowWindowsEscape` is set to the exact value `false`.)
- */
- windowsPathsNoEscape?: boolean;
- /**
- * Return [PathScurry](http://npm.im/path-scurry)
- * `Path` objects instead of strings. These are similar to a
- * NodeJS `Dirent` object, but with additional methods and
- * properties.
- *
- * Conflicts with {@link absolute}
- */
- withFileTypes?: boolean;
- /**
- * An fs implementation to override some or all of the defaults. See
- * http://npm.im/path-scurry for details about what can be overridden.
- */
- fs?: FSOption;
- /**
- * Just passed along to Minimatch. Note that this makes all pattern
- * matching operations slower and *extremely* noisy.
- */
- debug?: boolean;
- /**
- * Return `/` delimited paths, even on Windows.
- *
- * On posix systems, this has no effect. But, on Windows, it means that
- * paths will be `/` delimited, and absolute paths will be their full
- * resolved UNC forms, eg instead of `'C:\\foo\\bar'`, it would return
- * `'//?/C:/foo/bar'`
- */
- posix?: boolean;
- /**
- * Do not match any children of any matches. For example, the pattern
- * `**\/foo` would match `a/foo`, but not `a/foo/b/foo` in this mode.
- *
- * This is especially useful for cases like "find all `node_modules`
- * folders, but not the ones in `node_modules`".
- *
- * In order to support this, the `Ignore` implementation must support an
- * `add(pattern: string)` method. If using the default `Ignore` class, then
- * this is fine, but if this is set to `false`, and a custom `Ignore` is
- * provided that does not have an `add()` method, then it will throw an
- * error.
- *
- * **Caveat** It *only* ignores matches that would be a descendant of a
- * previous match, and only if that descendant is matched *after* the
- * ancestor is encountered. Since the file system walk happens in
- * indeterminate order, it's possible that a match will already be added
- * before its ancestor, if multiple or braced patterns are used.
- *
- * For example:
- *
- * ```ts
- * const results = await glob([
- * // likely to match first, since it's just a stat
- * 'a/b/c/d/e/f',
- *
- * // this pattern is more complicated! It must to various readdir()
- * // calls and test the results against a regular expression, and that
- * // is certainly going to take a little bit longer.
- * //
- * // So, later on, it encounters a match at 'a/b/c/d/e', but it's too
- * // late to ignore a/b/c/d/e/f, because it's already been emitted.
- * 'a/[bdf]/?/[a-z]/*',
- * ], { includeChildMatches: false })
- * ```
- *
- * It's best to only set this to `false` if you can be reasonably sure that
- * no components of the pattern will potentially match one another's file
- * system descendants, or if the occasional included child entry will not
- * cause problems.
- *
- * @default true
- */
- includeChildMatches?: boolean;
-}
-export type GlobOptionsWithFileTypesTrue = GlobOptions & {
- withFileTypes: true;
- absolute?: undefined;
- mark?: undefined;
- posix?: undefined;
-};
-export type GlobOptionsWithFileTypesFalse = GlobOptions & {
- withFileTypes?: false;
-};
-export type GlobOptionsWithFileTypesUnset = GlobOptions & {
- withFileTypes?: undefined;
-};
-export type Result = Opts extends GlobOptionsWithFileTypesTrue ? Path : Opts extends GlobOptionsWithFileTypesFalse ? string : Opts extends GlobOptionsWithFileTypesUnset ? string : string | Path;
-export type Results = Result[];
-export type FileTypes = Opts extends GlobOptionsWithFileTypesTrue ? true : Opts extends GlobOptionsWithFileTypesFalse ? false : Opts extends GlobOptionsWithFileTypesUnset ? false : boolean;
-/**
- * An object that can perform glob pattern traversals.
- */
-export declare class Glob implements GlobOptions {
- absolute?: boolean;
- cwd: string;
- root?: string;
- dot: boolean;
- dotRelative: boolean;
- follow: boolean;
- ignore?: string | string[] | IgnoreLike;
- magicalBraces: boolean;
- mark?: boolean;
- matchBase: boolean;
- maxDepth: number;
- nobrace: boolean;
- nocase: boolean;
- nodir: boolean;
- noext: boolean;
- noglobstar: boolean;
- pattern: string[];
- platform: NodeJS.Platform;
- realpath: boolean;
- scurry: PathScurry;
- stat: boolean;
- signal?: AbortSignal;
- windowsPathsNoEscape: boolean;
- withFileTypes: FileTypes;
- includeChildMatches: boolean;
- /**
- * The options provided to the constructor.
- */
- opts: Opts;
- /**
- * An array of parsed immutable {@link Pattern} objects.
- */
- patterns: Pattern[];
- /**
- * All options are stored as properties on the `Glob` object.
- *
- * See {@link GlobOptions} for full options descriptions.
- *
- * Note that a previous `Glob` object can be passed as the
- * `GlobOptions` to another `Glob` instantiation to re-use settings
- * and caches with a new pattern.
- *
- * Traversal functions can be called multiple times to run the walk
- * again.
- */
- constructor(pattern: string | string[], opts: Opts);
- /**
- * Returns a Promise that resolves to the results array.
- */
- walk(): Promise>;
- /**
- * synchronous {@link Glob.walk}
- */
- walkSync(): Results;
- /**
- * Stream results asynchronously.
- */
- stream(): Minipass, Result>;
- /**
- * Stream results synchronously.
- */
- streamSync(): Minipass, Result>;
- /**
- * Default sync iteration function. Returns a Generator that
- * iterates over the results.
- */
- iterateSync(): Generator, void, void>;
- [Symbol.iterator](): Generator, void, void>;
- /**
- * Default async iteration function. Returns an AsyncGenerator that
- * iterates over the results.
- */
- iterate(): AsyncGenerator, void, void>;
- [Symbol.asyncIterator](): AsyncGenerator, void, void>;
-}
-//# sourceMappingURL=glob.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts.map
deleted file mode 100644
index c32dc74c..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,UAAU,EAIX,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;AACvC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAA;AAalE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU,CAAA;IAEvC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;OAI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el/nft/node_modules/glob/dist/commonjs/glob.js
deleted file mode 100644
index e1339bbb..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.js
+++ /dev/null
@@ -1,247 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Glob = void 0;
-const minimatch_1 = require("minimatch");
-const node_url_1 = require("node:url");
-const path_scurry_1 = require("path-scurry");
-const pattern_js_1 = require("./pattern.js");
-const walker_js_1 = require("./walker.js");
-// if no process global, just call it linux.
-// so we default to case-sensitive, / separators
-const defaultPlatform = (typeof process === 'object' &&
- process &&
- typeof process.platform === 'string') ?
- process.platform
- : 'linux';
-/**
- * An object that can perform glob pattern traversals.
- */
-class Glob {
- absolute;
- cwd;
- root;
- dot;
- dotRelative;
- follow;
- ignore;
- magicalBraces;
- mark;
- matchBase;
- maxDepth;
- nobrace;
- nocase;
- nodir;
- noext;
- noglobstar;
- pattern;
- platform;
- realpath;
- scurry;
- stat;
- signal;
- windowsPathsNoEscape;
- withFileTypes;
- includeChildMatches;
- /**
- * The options provided to the constructor.
- */
- opts;
- /**
- * An array of parsed immutable {@link Pattern} objects.
- */
- patterns;
- /**
- * All options are stored as properties on the `Glob` object.
- *
- * See {@link GlobOptions} for full options descriptions.
- *
- * Note that a previous `Glob` object can be passed as the
- * `GlobOptions` to another `Glob` instantiation to re-use settings
- * and caches with a new pattern.
- *
- * Traversal functions can be called multiple times to run the walk
- * again.
- */
- constructor(pattern, opts) {
- /* c8 ignore start */
- if (!opts)
- throw new TypeError('glob options required');
- /* c8 ignore stop */
- this.withFileTypes = !!opts.withFileTypes;
- this.signal = opts.signal;
- this.follow = !!opts.follow;
- this.dot = !!opts.dot;
- this.dotRelative = !!opts.dotRelative;
- this.nodir = !!opts.nodir;
- this.mark = !!opts.mark;
- if (!opts.cwd) {
- this.cwd = '';
- }
- else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {
- opts.cwd = (0, node_url_1.fileURLToPath)(opts.cwd);
- }
- this.cwd = opts.cwd || '';
- this.root = opts.root;
- this.magicalBraces = !!opts.magicalBraces;
- this.nobrace = !!opts.nobrace;
- this.noext = !!opts.noext;
- this.realpath = !!opts.realpath;
- this.absolute = opts.absolute;
- this.includeChildMatches = opts.includeChildMatches !== false;
- this.noglobstar = !!opts.noglobstar;
- this.matchBase = !!opts.matchBase;
- this.maxDepth =
- typeof opts.maxDepth === 'number' ? opts.maxDepth : Infinity;
- this.stat = !!opts.stat;
- this.ignore = opts.ignore;
- if (this.withFileTypes && this.absolute !== undefined) {
- throw new Error('cannot set absolute and withFileTypes:true');
- }
- if (typeof pattern === 'string') {
- pattern = [pattern];
- }
- this.windowsPathsNoEscape =
- !!opts.windowsPathsNoEscape ||
- opts.allowWindowsEscape ===
- false;
- if (this.windowsPathsNoEscape) {
- pattern = pattern.map(p => p.replace(/\\/g, '/'));
- }
- if (this.matchBase) {
- if (opts.noglobstar) {
- throw new TypeError('base matching requires globstar');
- }
- pattern = pattern.map(p => (p.includes('/') ? p : `./**/${p}`));
- }
- this.pattern = pattern;
- this.platform = opts.platform || defaultPlatform;
- this.opts = { ...opts, platform: this.platform };
- if (opts.scurry) {
- this.scurry = opts.scurry;
- if (opts.nocase !== undefined &&
- opts.nocase !== opts.scurry.nocase) {
- throw new Error('nocase option contradicts provided scurry option');
- }
- }
- else {
- const Scurry = opts.platform === 'win32' ? path_scurry_1.PathScurryWin32
- : opts.platform === 'darwin' ? path_scurry_1.PathScurryDarwin
- : opts.platform ? path_scurry_1.PathScurryPosix
- : path_scurry_1.PathScurry;
- this.scurry = new Scurry(this.cwd, {
- nocase: opts.nocase,
- fs: opts.fs,
- });
- }
- this.nocase = this.scurry.nocase;
- // If you do nocase:true on a case-sensitive file system, then
- // we need to use regexps instead of strings for non-magic
- // path portions, because statting `aBc` won't return results
- // for the file `AbC` for example.
- const nocaseMagicOnly = this.platform === 'darwin' || this.platform === 'win32';
- const mmo = {
- // default nocase based on platform
- ...opts,
- dot: this.dot,
- matchBase: this.matchBase,
- nobrace: this.nobrace,
- nocase: this.nocase,
- nocaseMagicOnly,
- nocomment: true,
- noext: this.noext,
- nonegate: true,
- optimizationLevel: 2,
- platform: this.platform,
- windowsPathsNoEscape: this.windowsPathsNoEscape,
- debug: !!this.opts.debug,
- };
- const mms = this.pattern.map(p => new minimatch_1.Minimatch(p, mmo));
- const [matchSet, globParts] = mms.reduce((set, m) => {
- set[0].push(...m.set);
- set[1].push(...m.globParts);
- return set;
- }, [[], []]);
- this.patterns = matchSet.map((set, i) => {
- const g = globParts[i];
- /* c8 ignore start */
- if (!g)
- throw new Error('invalid pattern object');
- /* c8 ignore stop */
- return new pattern_js_1.Pattern(set, g, 0, this.platform);
- });
- }
- async walk() {
- // Walkers always return array of Path objects, so we just have to
- // coerce them into the right shape. It will have already called
- // realpath() if the option was set to do so, so we know that's cached.
- // start out knowing the cwd, at least
- return [
- ...(await new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
- ...this.opts,
- maxDepth: this.maxDepth !== Infinity ?
- this.maxDepth + this.scurry.cwd.depth()
- : Infinity,
- platform: this.platform,
- nocase: this.nocase,
- includeChildMatches: this.includeChildMatches,
- }).walk()),
- ];
- }
- walkSync() {
- return [
- ...new walker_js_1.GlobWalker(this.patterns, this.scurry.cwd, {
- ...this.opts,
- maxDepth: this.maxDepth !== Infinity ?
- this.maxDepth + this.scurry.cwd.depth()
- : Infinity,
- platform: this.platform,
- nocase: this.nocase,
- includeChildMatches: this.includeChildMatches,
- }).walkSync(),
- ];
- }
- stream() {
- return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
- ...this.opts,
- maxDepth: this.maxDepth !== Infinity ?
- this.maxDepth + this.scurry.cwd.depth()
- : Infinity,
- platform: this.platform,
- nocase: this.nocase,
- includeChildMatches: this.includeChildMatches,
- }).stream();
- }
- streamSync() {
- return new walker_js_1.GlobStream(this.patterns, this.scurry.cwd, {
- ...this.opts,
- maxDepth: this.maxDepth !== Infinity ?
- this.maxDepth + this.scurry.cwd.depth()
- : Infinity,
- platform: this.platform,
- nocase: this.nocase,
- includeChildMatches: this.includeChildMatches,
- }).streamSync();
- }
- /**
- * Default sync iteration function. Returns a Generator that
- * iterates over the results.
- */
- iterateSync() {
- return this.streamSync()[Symbol.iterator]();
- }
- [Symbol.iterator]() {
- return this.iterateSync();
- }
- /**
- * Default async iteration function. Returns an AsyncGenerator that
- * iterates over the results.
- */
- iterate() {
- return this.stream()[Symbol.asyncIterator]();
- }
- [Symbol.asyncIterator]() {
- return this.iterate();
- }
-}
-exports.Glob = Glob;
-//# sourceMappingURL=glob.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.js.map
deleted file mode 100644
index ddab4197..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/glob.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"glob.js","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":";;;AAAA,yCAAuD;AAEvD,uCAAwC;AACxC,6CAOoB;AAEpB,6CAAsC;AACtC,2CAAoD;AAKpD,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,eAAe,GACnB,CACE,OAAO,OAAO,KAAK,QAAQ;IAC3B,OAAO;IACP,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CACrC,CAAC,CAAC;IACD,OAAO,CAAC,QAAQ;IAClB,CAAC,CAAC,OAAO,CAAA;AAyVX;;GAEG;AACH,MAAa,IAAI;IACf,QAAQ,CAAU;IAClB,GAAG,CAAQ;IACX,IAAI,CAAS;IACb,GAAG,CAAS;IACZ,WAAW,CAAS;IACpB,MAAM,CAAS;IACf,MAAM,CAAiC;IACvC,aAAa,CAAS;IACtB,IAAI,CAAU;IACd,SAAS,CAAS;IAClB,QAAQ,CAAQ;IAChB,OAAO,CAAS;IAChB,MAAM,CAAS;IACf,KAAK,CAAS;IACd,KAAK,CAAS;IACd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,CAAC,MAAM;YACnB,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;SAC9C,CAAC,CAAC,UAAU,EAAE,CAAA;IACjB,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAA;IAC7C,CAAC;IACD,CAAC,MAAM,CAAC,QAAQ,CAAC;QACf,OAAO,IAAI,CAAC,WAAW,EAAE,CAAA;IAC3B,CAAC;IAED;;;OAGG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAA;IAC9C,CAAC;IACD,CAAC,MAAM,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAA;IACvB,CAAC;CACF;AA7QD,oBA6QC","sourcesContent":["import { Minimatch, MinimatchOptions } from 'minimatch'\nimport { Minipass } from 'minipass'\nimport { fileURLToPath } from 'node:url'\nimport {\n FSOption,\n Path,\n PathScurry,\n PathScurryDarwin,\n PathScurryPosix,\n PathScurryWin32,\n} from 'path-scurry'\nimport { IgnoreLike } from './ignore.js'\nimport { Pattern } from './pattern.js'\nimport { GlobStream, GlobWalker } from './walker.js'\n\nexport type MatchSet = Minimatch['set']\nexport type GlobParts = Exclude\n\n// if no process global, just call it linux.\n// so we default to case-sensitive, / separators\nconst defaultPlatform: NodeJS.Platform =\n (\n typeof process === 'object' &&\n process &&\n typeof process.platform === 'string'\n ) ?\n process.platform\n : 'linux'\n\n/**\n * A `GlobOptions` object may be provided to any of the exported methods, and\n * must be provided to the `Glob` constructor.\n *\n * All options are optional, boolean, and false by default, unless otherwise\n * noted.\n *\n * All resolved options are added to the Glob object as properties.\n *\n * If you are running many `glob` operations, you can pass a Glob object as the\n * `options` argument to a subsequent operation to share the previously loaded\n * cache.\n */\nexport interface GlobOptions {\n /**\n * Set to `true` to always receive absolute paths for\n * matched files. Set to `false` to always return relative paths.\n *\n * When this option is not set, absolute paths are returned for patterns\n * that are absolute, and otherwise paths are returned that are relative\n * to the `cwd` setting.\n *\n * This does _not_ make an extra system call to get\n * the realpath, it only does string path resolution.\n *\n * Conflicts with {@link withFileTypes}\n */\n absolute?: boolean\n\n /**\n * Set to false to enable {@link windowsPathsNoEscape}\n *\n * @deprecated\n */\n allowWindowsEscape?: boolean\n\n /**\n * The current working directory in which to search. Defaults to\n * `process.cwd()`.\n *\n * May be eiher a string path or a `file://` URL object or string.\n */\n cwd?: string | URL\n\n /**\n * Include `.dot` files in normal matches and `globstar`\n * matches. Note that an explicit dot in a portion of the pattern\n * will always match dot files.\n */\n dot?: boolean\n\n /**\n * Prepend all relative path strings with `./` (or `.\\` on Windows).\n *\n * Without this option, returned relative paths are \"bare\", so instead of\n * returning `'./foo/bar'`, they are returned as `'foo/bar'`.\n *\n * Relative patterns starting with `'../'` are not prepended with `./`, even\n * if this option is set.\n */\n dotRelative?: boolean\n\n /**\n * Follow symlinked directories when expanding `**`\n * patterns. This can result in a lot of duplicate references in\n * the presence of cyclic links, and make performance quite bad.\n *\n * By default, a `**` in a pattern will follow 1 symbolic link if\n * it is not the first item in the pattern, or none if it is the\n * first item in the pattern, following the same behavior as Bash.\n */\n follow?: boolean\n\n /**\n * string or string[], or an object with `ignore` and `ignoreChildren`\n * methods.\n *\n * If a string or string[] is provided, then this is treated as a glob\n * pattern or array of glob patterns to exclude from matches. To ignore all\n * children within a directory, as well as the entry itself, append `'/**'`\n * to the ignore pattern.\n *\n * **Note** `ignore` patterns are _always_ in `dot:true` mode, regardless of\n * any other settings.\n *\n * If an object is provided that has `ignored(path)` and/or\n * `childrenIgnored(path)` methods, then these methods will be called to\n * determine whether any Path is a match or if its children should be\n * traversed, respectively.\n */\n ignore?: string | string[] | IgnoreLike\n\n /**\n * Treat brace expansion like `{a,b}` as a \"magic\" pattern. Has no\n * effect if {@link nobrace} is set.\n *\n * Only has effect on the {@link hasMagic} function.\n */\n magicalBraces?: boolean\n\n /**\n * Add a `/` character to directory matches. Note that this requires\n * additional stat calls in some cases.\n */\n mark?: boolean\n\n /**\n * Perform a basename-only match if the pattern does not contain any slash\n * characters. That is, `*.js` would be treated as equivalent to\n * `**\\/*.js`, matching all js files in all directories.\n */\n matchBase?: boolean\n\n /**\n * Limit the directory traversal to a given depth below the cwd.\n * Note that this does NOT prevent traversal to sibling folders,\n * root patterns, and so on. It only limits the maximum folder depth\n * that the walk will descend, relative to the cwd.\n */\n maxDepth?: number\n\n /**\n * Do not expand `{a,b}` and `{1..3}` brace sets.\n */\n nobrace?: boolean\n\n /**\n * Perform a case-insensitive match. This defaults to `true` on macOS and\n * Windows systems, and `false` on all others.\n *\n * **Note** `nocase` should only be explicitly set when it is\n * known that the filesystem's case sensitivity differs from the\n * platform default. If set `true` on case-sensitive file\n * systems, or `false` on case-insensitive file systems, then the\n * walk may return more or less results than expected.\n */\n nocase?: boolean\n\n /**\n * Do not match directories, only files. (Note: to match\n * _only_ directories, put a `/` at the end of the pattern.)\n */\n nodir?: boolean\n\n /**\n * Do not match \"extglob\" patterns such as `+(a|b)`.\n */\n noext?: boolean\n\n /**\n * Do not match `**` against multiple filenames. (Ie, treat it as a normal\n * `*` instead.)\n *\n * Conflicts with {@link matchBase}\n */\n noglobstar?: boolean\n\n /**\n * Defaults to value of `process.platform` if available, or `'linux'` if\n * not. Setting `platform:'win32'` on non-Windows systems may cause strange\n * behavior.\n */\n platform?: NodeJS.Platform\n\n /**\n * Set to true to call `fs.realpath` on all of the\n * results. In the case of an entry that cannot be resolved, the\n * entry is omitted. This incurs a slight performance penalty, of\n * course, because of the added system calls.\n */\n realpath?: boolean\n\n /**\n *\n * A string path resolved against the `cwd` option, which\n * is used as the starting point for absolute patterns that start\n * with `/`, (but not drive letters or UNC paths on Windows).\n *\n * Note that this _doesn't_ necessarily limit the walk to the\n * `root` directory, and doesn't affect the cwd starting point for\n * non-absolute patterns. A pattern containing `..` will still be\n * able to traverse out of the root directory, if it is not an\n * actual root directory on the filesystem, and any non-absolute\n * patterns will be matched in the `cwd`. For example, the\n * pattern `/../*` with `{root:'/some/path'}` will return all\n * files in `/some`, not all files in `/some/path`. The pattern\n * `*` with `{root:'/some/path'}` will return all the entries in\n * the cwd, not the entries in `/some/path`.\n *\n * To start absolute and non-absolute patterns in the same\n * path, you can use `{root:''}`. However, be aware that on\n * Windows systems, a pattern like `x:/*` or `//host/share/*` will\n * _always_ start in the `x:/` or `//host/share` directory,\n * regardless of the `root` setting.\n */\n root?: string\n\n /**\n * A [PathScurry](http://npm.im/path-scurry) object used\n * to traverse the file system. If the `nocase` option is set\n * explicitly, then any provided `scurry` object must match this\n * setting.\n */\n scurry?: PathScurry\n\n /**\n * Call `lstat()` on all entries, whether required or not to determine\n * if it's a valid match. When used with {@link withFileTypes}, this means\n * that matches will include data such as modified time, permissions, and\n * so on. Note that this will incur a performance cost due to the added\n * system calls.\n */\n stat?: boolean\n\n /**\n * An AbortSignal which will cancel the Glob walk when\n * triggered.\n */\n signal?: AbortSignal\n\n /**\n * Use `\\\\` as a path separator _only_, and\n * _never_ as an escape character. If set, all `\\\\` characters are\n * replaced with `/` in the pattern.\n *\n * Note that this makes it **impossible** to match against paths\n * containing literal glob pattern characters, but allows matching\n * with patterns constructed using `path.join()` and\n * `path.resolve()` on Windows platforms, mimicking the (buggy!)\n * behavior of Glob v7 and before on Windows. Please use with\n * caution, and be mindful of [the caveat below about Windows\n * paths](#windows). (For legacy reasons, this is also set if\n * `allowWindowsEscape` is set to the exact value `false`.)\n */\n windowsPathsNoEscape?: boolean\n\n /**\n * Return [PathScurry](http://npm.im/path-scurry)\n * `Path` objects instead of strings. These are similar to a\n * NodeJS `Dirent` object, but with additional methods and\n * properties.\n *\n * Conflicts with {@link absolute}\n */\n withFileTypes?: boolean\n\n /**\n * An fs implementation to override some or all of the defaults. See\n * http://npm.im/path-scurry for details about what can be overridden.\n */\n fs?: FSOption\n\n /**\n * Just passed along to Minimatch. Note that this makes all pattern\n * matching operations slower and *extremely* noisy.\n */\n debug?: boolean\n\n /**\n * Return `/` delimited paths, even on Windows.\n *\n * On posix systems, this has no effect. But, on Windows, it means that\n * paths will be `/` delimited, and absolute paths will be their full\n * resolved UNC forms, eg instead of `'C:\\\\foo\\\\bar'`, it would return\n * `'//?/C:/foo/bar'`\n */\n posix?: boolean\n\n /**\n * Do not match any children of any matches. For example, the pattern\n * `**\\/foo` would match `a/foo`, but not `a/foo/b/foo` in this mode.\n *\n * This is especially useful for cases like \"find all `node_modules`\n * folders, but not the ones in `node_modules`\".\n *\n * In order to support this, the `Ignore` implementation must support an\n * `add(pattern: string)` method. If using the default `Ignore` class, then\n * this is fine, but if this is set to `false`, and a custom `Ignore` is\n * provided that does not have an `add()` method, then it will throw an\n * error.\n *\n * **Caveat** It *only* ignores matches that would be a descendant of a\n * previous match, and only if that descendant is matched *after* the\n * ancestor is encountered. Since the file system walk happens in\n * indeterminate order, it's possible that a match will already be added\n * before its ancestor, if multiple or braced patterns are used.\n *\n * For example:\n *\n * ```ts\n * const results = await glob([\n * // likely to match first, since it's just a stat\n * 'a/b/c/d/e/f',\n *\n * // this pattern is more complicated! It must to various readdir()\n * // calls and test the results against a regular expression, and that\n * // is certainly going to take a little bit longer.\n * //\n * // So, later on, it encounters a match at 'a/b/c/d/e', but it's too\n * // late to ignore a/b/c/d/e/f, because it's already been emitted.\n * 'a/[bdf]/?/[a-z]/*',\n * ], { includeChildMatches: false })\n * ```\n *\n * It's best to only set this to `false` if you can be reasonably sure that\n * no components of the pattern will potentially match one another's file\n * system descendants, or if the occasional included child entry will not\n * cause problems.\n *\n * @default true\n */\n includeChildMatches?: boolean\n}\n\nexport type GlobOptionsWithFileTypesTrue = GlobOptions & {\n withFileTypes: true\n // string options not relevant if returning Path objects.\n absolute?: undefined\n mark?: undefined\n posix?: undefined\n}\n\nexport type GlobOptionsWithFileTypesFalse = GlobOptions & {\n withFileTypes?: false\n}\n\nexport type GlobOptionsWithFileTypesUnset = GlobOptions & {\n withFileTypes?: undefined\n}\n\nexport type Result =\n Opts extends GlobOptionsWithFileTypesTrue ? Path\n : Opts extends GlobOptionsWithFileTypesFalse ? string\n : Opts extends GlobOptionsWithFileTypesUnset ? string\n : string | Path\nexport type Results = Result[]\n\nexport type FileTypes =\n Opts extends GlobOptionsWithFileTypesTrue ? true\n : Opts extends GlobOptionsWithFileTypesFalse ? false\n : Opts extends GlobOptionsWithFileTypesUnset ? false\n : boolean\n\n/**\n * An object that can perform glob pattern traversals.\n */\nexport class Glob implements GlobOptions {\n absolute?: boolean\n cwd: string\n root?: string\n dot: boolean\n dotRelative: boolean\n follow: boolean\n ignore?: string | string[] | IgnoreLike\n magicalBraces: boolean\n mark?: boolean\n matchBase: boolean\n maxDepth: number\n nobrace: boolean\n nocase: boolean\n nodir: boolean\n noext: boolean\n noglobstar: boolean\n pattern: string[]\n platform: NodeJS.Platform\n realpath: boolean\n scurry: PathScurry\n stat: boolean\n signal?: AbortSignal\n windowsPathsNoEscape: boolean\n withFileTypes: FileTypes\n includeChildMatches: boolean\n\n /**\n * The options provided to the constructor.\n */\n opts: Opts\n\n /**\n * An array of parsed immutable {@link Pattern} objects.\n */\n patterns: Pattern[]\n\n /**\n * All options are stored as properties on the `Glob` object.\n *\n * See {@link GlobOptions} for full options descriptions.\n *\n * Note that a previous `Glob` object can be passed as the\n * `GlobOptions` to another `Glob` instantiation to re-use settings\n * and caches with a new pattern.\n *\n * Traversal functions can be called multiple times to run the walk\n * again.\n */\n constructor(pattern: string | string[], opts: Opts) {\n /* c8 ignore start */\n if (!opts) throw new TypeError('glob options required')\n /* c8 ignore stop */\n this.withFileTypes = !!opts.withFileTypes as FileTypes\n this.signal = opts.signal\n this.follow = !!opts.follow\n this.dot = !!opts.dot\n this.dotRelative = !!opts.dotRelative\n this.nodir = !!opts.nodir\n this.mark = !!opts.mark\n if (!opts.cwd) {\n this.cwd = ''\n } else if (opts.cwd instanceof URL || opts.cwd.startsWith('file://')) {\n opts.cwd = fileURLToPath(opts.cwd)\n }\n this.cwd = opts.cwd || ''\n this.root = opts.root\n this.magicalBraces = !!opts.magicalBraces\n this.nobrace = !!opts.nobrace\n this.noext = !!opts.noext\n this.realpath = !!opts.realpath\n this.absolute = opts.absolute\n this.includeChildMatches = opts.includeChildMatches !== false\n\n this.noglobstar = !!opts.noglobstar\n this.matchBase = !!opts.matchBase\n this.maxDepth =\n typeof opts.maxDepth === 'number' ? opts.maxDepth : Infinity\n this.stat = !!opts.stat\n this.ignore = opts.ignore\n\n if (this.withFileTypes && this.absolute !== undefined) {\n throw new Error('cannot set absolute and withFileTypes:true')\n }\n\n if (typeof pattern === 'string') {\n pattern = [pattern]\n }\n\n this.windowsPathsNoEscape =\n !!opts.windowsPathsNoEscape ||\n (opts as { allowWindowsEscape?: boolean }).allowWindowsEscape ===\n false\n\n if (this.windowsPathsNoEscape) {\n pattern = pattern.map(p => p.replace(/\\\\/g, '/'))\n }\n\n if (this.matchBase) {\n if (opts.noglobstar) {\n throw new TypeError('base matching requires globstar')\n }\n pattern = pattern.map(p => (p.includes('/') ? p : `./**/${p}`))\n }\n\n this.pattern = pattern\n\n this.platform = opts.platform || defaultPlatform\n this.opts = { ...opts, platform: this.platform }\n if (opts.scurry) {\n this.scurry = opts.scurry\n if (\n opts.nocase !== undefined &&\n opts.nocase !== opts.scurry.nocase\n ) {\n throw new Error('nocase option contradicts provided scurry option')\n }\n } else {\n const Scurry =\n opts.platform === 'win32' ? PathScurryWin32\n : opts.platform === 'darwin' ? PathScurryDarwin\n : opts.platform ? PathScurryPosix\n : PathScurry\n this.scurry = new Scurry(this.cwd, {\n nocase: opts.nocase,\n fs: opts.fs,\n })\n }\n this.nocase = this.scurry.nocase\n\n // If you do nocase:true on a case-sensitive file system, then\n // we need to use regexps instead of strings for non-magic\n // path portions, because statting `aBc` won't return results\n // for the file `AbC` for example.\n const nocaseMagicOnly =\n this.platform === 'darwin' || this.platform === 'win32'\n\n const mmo: MinimatchOptions = {\n // default nocase based on platform\n ...opts,\n dot: this.dot,\n matchBase: this.matchBase,\n nobrace: this.nobrace,\n nocase: this.nocase,\n nocaseMagicOnly,\n nocomment: true,\n noext: this.noext,\n nonegate: true,\n optimizationLevel: 2,\n platform: this.platform,\n windowsPathsNoEscape: this.windowsPathsNoEscape,\n debug: !!this.opts.debug,\n }\n\n const mms = this.pattern.map(p => new Minimatch(p, mmo))\n const [matchSet, globParts] = mms.reduce(\n (set: [MatchSet, GlobParts], m) => {\n set[0].push(...m.set)\n set[1].push(...m.globParts)\n return set\n },\n [[], []],\n )\n this.patterns = matchSet.map((set, i) => {\n const g = globParts[i]\n /* c8 ignore start */\n if (!g) throw new Error('invalid pattern object')\n /* c8 ignore stop */\n return new Pattern(set, g, 0, this.platform)\n })\n }\n\n /**\n * Returns a Promise that resolves to the results array.\n */\n async walk(): Promise>\n async walk(): Promise<(string | Path)[]> {\n // Walkers always return array of Path objects, so we just have to\n // coerce them into the right shape. It will have already called\n // realpath() if the option was set to do so, so we know that's cached.\n // start out knowing the cwd, at least\n return [\n ...(await new GlobWalker(this.patterns, this.scurry.cwd, {\n ...this.opts,\n maxDepth:\n this.maxDepth !== Infinity ?\n this.maxDepth + this.scurry.cwd.depth()\n : Infinity,\n platform: this.platform,\n nocase: this.nocase,\n includeChildMatches: this.includeChildMatches,\n }).walk()),\n ]\n }\n\n /**\n * synchronous {@link Glob.walk}\n */\n walkSync(): Results\n walkSync(): (string | Path)[] {\n return [\n ...new GlobWalker(this.patterns, this.scurry.cwd, {\n ...this.opts,\n maxDepth:\n this.maxDepth !== Infinity ?\n this.maxDepth + this.scurry.cwd.depth()\n : Infinity,\n platform: this.platform,\n nocase: this.nocase,\n includeChildMatches: this.includeChildMatches,\n }).walkSync(),\n ]\n }\n\n /**\n * Stream results asynchronously.\n */\n stream(): Minipass, Result>\n stream(): Minipass {\n return new GlobStream(this.patterns, this.scurry.cwd, {\n ...this.opts,\n maxDepth:\n this.maxDepth !== Infinity ?\n this.maxDepth + this.scurry.cwd.depth()\n : Infinity,\n platform: this.platform,\n nocase: this.nocase,\n includeChildMatches: this.includeChildMatches,\n }).stream()\n }\n\n /**\n * Stream results synchronously.\n */\n streamSync(): Minipass, Result>\n streamSync(): Minipass {\n return new GlobStream(this.patterns, this.scurry.cwd, {\n ...this.opts,\n maxDepth:\n this.maxDepth !== Infinity ?\n this.maxDepth + this.scurry.cwd.depth()\n : Infinity,\n platform: this.platform,\n nocase: this.nocase,\n includeChildMatches: this.includeChildMatches,\n }).streamSync()\n }\n\n /**\n * Default sync iteration function. Returns a Generator that\n * iterates over the results.\n */\n iterateSync(): Generator, void, void> {\n return this.streamSync()[Symbol.iterator]()\n }\n [Symbol.iterator]() {\n return this.iterateSync()\n }\n\n /**\n * Default async iteration function. Returns an AsyncGenerator that\n * iterates over the results.\n */\n iterate(): AsyncGenerator, void, void> {\n return this.stream()[Symbol.asyncIterator]()\n }\n [Symbol.asyncIterator]() {\n return this.iterate()\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts
deleted file mode 100644
index 8aec3bd9..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { GlobOptions } from './glob.js';
-/**
- * Return true if the patterns provided contain any magic glob characters,
- * given the options provided.
- *
- * Brace expansion is not considered "magic" unless the `magicalBraces` option
- * is set, as brace expansion just turns one string into an array of strings.
- * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and
- * `'xby'` both do not contain any magic glob characters, and it's treated the
- * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`
- * is in the options, brace expansion _is_ treated as a pattern having magic.
- */
-export declare const hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
-//# sourceMappingURL=has-magic.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts.map
deleted file mode 100644
index b24dd4ec..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,YACV,MAAM,GAAG,MAAM,EAAE,YACjB,WAAW,KACnB,OAQF,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js
deleted file mode 100644
index 0918bd57..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.hasMagic = void 0;
-const minimatch_1 = require("minimatch");
-/**
- * Return true if the patterns provided contain any magic glob characters,
- * given the options provided.
- *
- * Brace expansion is not considered "magic" unless the `magicalBraces` option
- * is set, as brace expansion just turns one string into an array of strings.
- * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and
- * `'xby'` both do not contain any magic glob characters, and it's treated the
- * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`
- * is in the options, brace expansion _is_ treated as a pattern having magic.
- */
-const hasMagic = (pattern, options = {}) => {
- if (!Array.isArray(pattern)) {
- pattern = [pattern];
- }
- for (const p of pattern) {
- if (new minimatch_1.Minimatch(p, options).hasMagic())
- return true;
- }
- return false;
-};
-exports.hasMagic = hasMagic;
-//# sourceMappingURL=has-magic.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js.map
deleted file mode 100644
index 44deab29..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/has-magic.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"has-magic.js","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAGrC;;;;;;;;;;GAUG;AACI,MAAM,QAAQ,GAAG,CACtB,OAA0B,EAC1B,UAAuB,EAAE,EAChB,EAAE;IACX,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,GAAG,CAAC,OAAO,CAAC,CAAA;IACrB,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;QACxB,IAAI,IAAI,qBAAS,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE;YAAE,OAAO,IAAI,CAAA;IACvD,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAXY,QAAA,QAAQ,YAWpB","sourcesContent":["import { Minimatch } from 'minimatch'\nimport { GlobOptions } from './glob.js'\n\n/**\n * Return true if the patterns provided contain any magic glob characters,\n * given the options provided.\n *\n * Brace expansion is not considered \"magic\" unless the `magicalBraces` option\n * is set, as brace expansion just turns one string into an array of strings.\n * So a pattern like `'x{a,b}y'` would return `false`, because `'xay'` and\n * `'xby'` both do not contain any magic glob characters, and it's treated the\n * same as if you had called it on `['xay', 'xby']`. When `magicalBraces:true`\n * is in the options, brace expansion _is_ treated as a pattern having magic.\n */\nexport const hasMagic = (\n pattern: string | string[],\n options: GlobOptions = {},\n): boolean => {\n if (!Array.isArray(pattern)) {\n pattern = [pattern]\n }\n for (const p of pattern) {\n if (new Minimatch(p, options).hasMagic()) return true\n }\n return false\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts
deleted file mode 100644
index 1893b16d..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Minimatch, MinimatchOptions } from 'minimatch';
-import { Path } from 'path-scurry';
-import { GlobWalkerOpts } from './walker.js';
-export interface IgnoreLike {
- ignored?: (p: Path) => boolean;
- childrenIgnored?: (p: Path) => boolean;
- add?: (ignore: string) => void;
-}
-/**
- * Class used to process ignored patterns
- */
-export declare class Ignore implements IgnoreLike {
- relative: Minimatch[];
- relativeChildren: Minimatch[];
- absolute: Minimatch[];
- absoluteChildren: Minimatch[];
- platform: NodeJS.Platform;
- mmopts: MinimatchOptions;
- constructor(ignored: string[], { nobrace, nocase, noext, noglobstar, platform, }: GlobWalkerOpts);
- add(ign: string): void;
- ignored(p: Path): boolean;
- childrenIgnored(p: Path): boolean;
-}
-//# sourceMappingURL=ignore.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts.map
deleted file mode 100644
index 57d6ab61..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ignore.d.ts","sourceRoot":"","sources":["../../src/ignore.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,OAAO,CAAA;IAC9B,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,KAAK,OAAO,CAAA;IACtC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAWD;;GAEG;AACH,qBAAa,MAAO,YAAW,UAAU;IACvC,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,gBAAgB,EAAE,SAAS,EAAE,CAAA;IAC7B,QAAQ,EAAE,SAAS,EAAE,CAAA;IACrB,gBAAgB,EAAE,SAAS,EAAE,CAAA;IAC7B,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;IACzB,MAAM,EAAE,gBAAgB,CAAA;gBAGtB,OAAO,EAAE,MAAM,EAAE,EACjB,EACE,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAA0B,GAC3B,EAAE,cAAc;IAqBnB,GAAG,CAAC,GAAG,EAAE,MAAM;IAyCf,OAAO,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO;IAczB,eAAe,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO;CAWlC"}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js
deleted file mode 100644
index 5f1fde06..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js
+++ /dev/null
@@ -1,119 +0,0 @@
-"use strict";
-// give it a pattern, and it'll be able to tell you if
-// a given path should be ignored.
-// Ignoring a path ignores its children if the pattern ends in /**
-// Ignores are always parsed in dot:true mode
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Ignore = void 0;
-const minimatch_1 = require("minimatch");
-const pattern_js_1 = require("./pattern.js");
-const defaultPlatform = (typeof process === 'object' &&
- process &&
- typeof process.platform === 'string') ?
- process.platform
- : 'linux';
-/**
- * Class used to process ignored patterns
- */
-class Ignore {
- relative;
- relativeChildren;
- absolute;
- absoluteChildren;
- platform;
- mmopts;
- constructor(ignored, { nobrace, nocase, noext, noglobstar, platform = defaultPlatform, }) {
- this.relative = [];
- this.absolute = [];
- this.relativeChildren = [];
- this.absoluteChildren = [];
- this.platform = platform;
- this.mmopts = {
- dot: true,
- nobrace,
- nocase,
- noext,
- noglobstar,
- optimizationLevel: 2,
- platform,
- nocomment: true,
- nonegate: true,
- };
- for (const ign of ignored)
- this.add(ign);
- }
- add(ign) {
- // this is a little weird, but it gives us a clean set of optimized
- // minimatch matchers, without getting tripped up if one of them
- // ends in /** inside a brace section, and it's only inefficient at
- // the start of the walk, not along it.
- // It'd be nice if the Pattern class just had a .test() method, but
- // handling globstars is a bit of a pita, and that code already lives
- // in minimatch anyway.
- // Another way would be if maybe Minimatch could take its set/globParts
- // as an option, and then we could at least just use Pattern to test
- // for absolute-ness.
- // Yet another way, Minimatch could take an array of glob strings, and
- // a cwd option, and do the right thing.
- const mm = new minimatch_1.Minimatch(ign, this.mmopts);
- for (let i = 0; i < mm.set.length; i++) {
- const parsed = mm.set[i];
- const globParts = mm.globParts[i];
- /* c8 ignore start */
- if (!parsed || !globParts) {
- throw new Error('invalid pattern object');
- }
- // strip off leading ./ portions
- // https://github.com/isaacs/node-glob/issues/570
- while (parsed[0] === '.' && globParts[0] === '.') {
- parsed.shift();
- globParts.shift();
- }
- /* c8 ignore stop */
- const p = new pattern_js_1.Pattern(parsed, globParts, 0, this.platform);
- const m = new minimatch_1.Minimatch(p.globString(), this.mmopts);
- const children = globParts[globParts.length - 1] === '**';
- const absolute = p.isAbsolute();
- if (absolute)
- this.absolute.push(m);
- else
- this.relative.push(m);
- if (children) {
- if (absolute)
- this.absoluteChildren.push(m);
- else
- this.relativeChildren.push(m);
- }
- }
- }
- ignored(p) {
- const fullpath = p.fullpath();
- const fullpaths = `${fullpath}/`;
- const relative = p.relative() || '.';
- const relatives = `${relative}/`;
- for (const m of this.relative) {
- if (m.match(relative) || m.match(relatives))
- return true;
- }
- for (const m of this.absolute) {
- if (m.match(fullpath) || m.match(fullpaths))
- return true;
- }
- return false;
- }
- childrenIgnored(p) {
- const fullpath = p.fullpath() + '/';
- const relative = (p.relative() || '.') + '/';
- for (const m of this.relativeChildren) {
- if (m.match(relative))
- return true;
- }
- for (const m of this.absoluteChildren) {
- if (m.match(fullpath))
- return true;
- }
- return false;
- }
-}
-exports.Ignore = Ignore;
-//# sourceMappingURL=ignore.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js.map
deleted file mode 100644
index d9dfdfa3..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/ignore.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../src/ignore.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,kCAAkC;AAClC,kEAAkE;AAClE,6CAA6C;;;AAE7C,yCAAuD;AAEvD,6CAAsC;AAStC,MAAM,eAAe,GACnB,CACE,OAAO,OAAO,KAAK,QAAQ;IAC3B,OAAO;IACP,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CACrC,CAAC,CAAC;IACD,OAAO,CAAC,QAAQ;IAClB,CAAC,CAAC,OAAO,CAAA;AAEX;;GAEG;AACH,MAAa,MAAM;IACjB,QAAQ,CAAa;IACrB,gBAAgB,CAAa;IAC7B,QAAQ,CAAa;IACrB,gBAAgB,CAAa;IAC7B,QAAQ,CAAiB;IACzB,MAAM,CAAkB;IAExB,YACE,OAAiB,EACjB,EACE,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,QAAQ,GAAG,eAAe,GACX;QAEjB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAA;QAClB,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAA;QAC1B,IAAI,CAAC,gBAAgB,GAAG,EAAE,CAAA;QAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,MAAM,GAAG;YACZ,GAAG,EAAE,IAAI;YACT,OAAO;YACP,MAAM;YACN,KAAK;YACL,UAAU;YACV,iBAAiB,EAAE,CAAC;YACpB,QAAQ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MAAM,QAAQ,GAAG,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,CAAA;QACnC,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,GAAG,CAAC,GAAG,GAAG,CAAA;QAC5C,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;gBAAE,OAAO,IAAI,CAAA;QACpC,CAAC;QACD,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtC,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;gBAAE,OAAO,IAAI,CAAA;QACpC,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;CACF;AAvGD,wBAuGC","sourcesContent":["// give it a pattern, and it'll be able to tell you if\n// a given path should be ignored.\n// Ignoring a path ignores its children if the pattern ends in /**\n// Ignores are always parsed in dot:true mode\n\nimport { Minimatch, MinimatchOptions } from 'minimatch'\nimport { Path } from 'path-scurry'\nimport { Pattern } from './pattern.js'\nimport { GlobWalkerOpts } from './walker.js'\n\nexport interface IgnoreLike {\n ignored?: (p: Path) => boolean\n childrenIgnored?: (p: Path) => boolean\n add?: (ignore: string) => void\n}\n\nconst defaultPlatform: NodeJS.Platform =\n (\n typeof process === 'object' &&\n process &&\n typeof process.platform === 'string'\n ) ?\n process.platform\n : 'linux'\n\n/**\n * Class used to process ignored patterns\n */\nexport class Ignore implements IgnoreLike {\n relative: Minimatch[]\n relativeChildren: Minimatch[]\n absolute: Minimatch[]\n absoluteChildren: Minimatch[]\n platform: NodeJS.Platform\n mmopts: MinimatchOptions\n\n constructor(\n ignored: string[],\n {\n nobrace,\n nocase,\n noext,\n noglobstar,\n platform = defaultPlatform,\n }: GlobWalkerOpts,\n ) {\n this.relative = []\n this.absolute = []\n this.relativeChildren = []\n this.absoluteChildren = []\n this.platform = platform\n this.mmopts = {\n dot: true,\n nobrace,\n nocase,\n noext,\n noglobstar,\n optimizationLevel: 2,\n platform,\n nocomment: true,\n nonegate: true,\n }\n for (const ign of ignored) this.add(ign)\n }\n\n add(ign: string) {\n // this is a little weird, but it gives us a clean set of optimized\n // minimatch matchers, without getting tripped up if one of them\n // ends in /** inside a brace section, and it's only inefficient at\n // the start of the walk, not along it.\n // It'd be nice if the Pattern class just had a .test() method, but\n // handling globstars is a bit of a pita, and that code already lives\n // in minimatch anyway.\n // Another way would be if maybe Minimatch could take its set/globParts\n // as an option, and then we could at least just use Pattern to test\n // for absolute-ness.\n // Yet another way, Minimatch could take an array of glob strings, and\n // a cwd option, and do the right thing.\n const mm = new Minimatch(ign, this.mmopts)\n for (let i = 0; i < mm.set.length; i++) {\n const parsed = mm.set[i]\n const globParts = mm.globParts[i]\n /* c8 ignore start */\n if (!parsed || !globParts) {\n throw new Error('invalid pattern object')\n }\n // strip off leading ./ portions\n // https://github.com/isaacs/node-glob/issues/570\n while (parsed[0] === '.' && globParts[0] === '.') {\n parsed.shift()\n globParts.shift()\n }\n /* c8 ignore stop */\n const p = new Pattern(parsed, globParts, 0, this.platform)\n const m = new Minimatch(p.globString(), this.mmopts)\n const children = globParts[globParts.length - 1] === '**'\n const absolute = p.isAbsolute()\n if (absolute) this.absolute.push(m)\n else this.relative.push(m)\n if (children) {\n if (absolute) this.absoluteChildren.push(m)\n else this.relativeChildren.push(m)\n }\n }\n }\n\n ignored(p: Path): boolean {\n const fullpath = p.fullpath()\n const fullpaths = `${fullpath}/`\n const relative = p.relative() || '.'\n const relatives = `${relative}/`\n for (const m of this.relative) {\n if (m.match(relative) || m.match(relatives)) return true\n }\n for (const m of this.absolute) {\n if (m.match(fullpath) || m.match(fullpaths)) return true\n }\n return false\n }\n\n childrenIgnored(p: Path): boolean {\n const fullpath = p.fullpath() + '/'\n const relative = (p.relative() || '.') + '/'\n for (const m of this.relativeChildren) {\n if (m.match(relative)) return true\n }\n for (const m of this.absoluteChildren) {\n if (m.match(fullpath)) return true\n }\n return false\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts
deleted file mode 100644
index 9c326ddc..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-import { Minipass } from 'minipass';
-import { Path } from 'path-scurry';
-import type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset } from './glob.js';
-import { Glob } from './glob.js';
-export { escape, unescape } from 'minimatch';
-export type { FSOption, Path, WalkOptions, WalkOptionsWithFileTypesTrue, WalkOptionsWithFileTypesUnset, } from 'path-scurry';
-export { Glob } from './glob.js';
-export type { GlobOptions, GlobOptionsWithFileTypesFalse, GlobOptionsWithFileTypesTrue, GlobOptionsWithFileTypesUnset, } from './glob.js';
-export { hasMagic } from './has-magic.js';
-export { Ignore } from './ignore.js';
-export type { IgnoreLike } from './ignore.js';
-export type { MatchStream } from './walker.js';
-/**
- * Syncronous form of {@link globStream}. Will read all the matches as fast as
- * you consume them, even all in a single tick if you consume them immediately,
- * but will still respond to backpressure if they're not consumed immediately.
- */
-export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass;
-export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Minipass;
-export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesUnset): Minipass;
-export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass | Minipass;
-/**
- * Return a stream that emits all the strings or `Path` objects and
- * then emits `end` when completed.
- */
-export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Minipass;
-export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass;
-export declare function globStream(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Minipass;
-export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass | Minipass;
-/**
- * Synchronous form of {@link glob}
- */
-export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): string[];
-export declare function globSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Path[];
-export declare function globSync(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): string[];
-export declare function globSync(pattern: string | string[], options: GlobOptions): Path[] | string[];
-/**
- * Perform an asynchronous glob search for the pattern(s) specified. Returns
- * [Path](https://isaacs.github.io/path-scurry/classes/PathBase) objects if the
- * {@link withFileTypes} option is set to `true`. See {@link GlobOptions} for
- * full option descriptions.
- */
-declare function glob_(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Promise;
-declare function glob_(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Promise;
-declare function glob_(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Promise;
-declare function glob_(pattern: string | string[], options: GlobOptions): Promise;
-/**
- * Return a sync iterator for walking glob pattern matches.
- */
-export declare function globIterateSync(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): Generator;
-export declare function globIterateSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Generator;
-export declare function globIterateSync(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): Generator;
-export declare function globIterateSync(pattern: string | string[], options: GlobOptions): Generator | Generator;
-/**
- * Return an async iterator for walking glob pattern matches.
- */
-export declare function globIterate(pattern: string | string[], options?: GlobOptionsWithFileTypesUnset | undefined): AsyncGenerator;
-export declare function globIterate(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): AsyncGenerator;
-export declare function globIterate(pattern: string | string[], options: GlobOptionsWithFileTypesFalse): AsyncGenerator;
-export declare function globIterate(pattern: string | string[], options: GlobOptions): AsyncGenerator | AsyncGenerator;
-export declare const streamSync: typeof globStreamSync;
-export declare const stream: typeof globStream & {
- sync: typeof globStreamSync;
-};
-export declare const iterateSync: typeof globIterateSync;
-export declare const iterate: typeof globIterate & {
- sync: typeof globIterateSync;
-};
-export declare const sync: typeof globSync & {
- stream: typeof globStreamSync;
- iterate: typeof globIterateSync;
-};
-export declare const glob: typeof glob_ & {
- glob: typeof glob_;
- globSync: typeof globSync;
- sync: typeof globSync & {
- stream: typeof globStreamSync;
- iterate: typeof globIterateSync;
- };
- globStream: typeof globStream;
- stream: typeof globStream & {
- sync: typeof globStreamSync;
- };
- globStreamSync: typeof globStreamSync;
- streamSync: typeof globStreamSync;
- globIterate: typeof globIterate;
- iterate: typeof globIterate & {
- sync: typeof globIterateSync;
- };
- globIterateSync: typeof globIterateSync;
- iterateSync: typeof globIterateSync;
- Glob: typeof Glob;
- hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
- escape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
- unescape: (s: string, { windowsPathsNoEscape, }?: Pick) => string;
-};
-//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts.map
deleted file mode 100644
index 5fb32252..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,KAAK,EACV,WAAW,EACX,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC5C,YAAY,EACV,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,4BAA4B,EAC5B,6BAA6B,GAC9B,MAA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IAAI,CAAC,CAAA;AACnC,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,6BAA6B,GACrC,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACrC,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAC1B,OAAO,EAAE,WAAW,GACnB,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AASxE,eAAO,MAAM,UAAU,uBAAiB,CAAA;AACxC,eAAO,MAAM,MAAM;;CAAsD,CAAA;AACzE,eAAO,MAAM,WAAW,wBAAkB,CAAA;AAC1C,eAAO,MAAM,OAAO;;CAElB,CAAA;AACF,eAAO,MAAM,IAAI;;;CAGf,CAAA;AAEF,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;CAgBf,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js
deleted file mode 100644
index 151495d1..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js
+++ /dev/null
@@ -1,68 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.glob = exports.sync = exports.iterate = exports.iterateSync = exports.stream = exports.streamSync = exports.Ignore = exports.hasMagic = exports.Glob = exports.unescape = exports.escape = void 0;
-exports.globStreamSync = globStreamSync;
-exports.globStream = globStream;
-exports.globSync = globSync;
-exports.globIterateSync = globIterateSync;
-exports.globIterate = globIterate;
-const minimatch_1 = require("minimatch");
-const glob_js_1 = require("./glob.js");
-const has_magic_js_1 = require("./has-magic.js");
-var minimatch_2 = require("minimatch");
-Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return minimatch_2.escape; } });
-Object.defineProperty(exports, "unescape", { enumerable: true, get: function () { return minimatch_2.unescape; } });
-var glob_js_2 = require("./glob.js");
-Object.defineProperty(exports, "Glob", { enumerable: true, get: function () { return glob_js_2.Glob; } });
-var has_magic_js_2 = require("./has-magic.js");
-Object.defineProperty(exports, "hasMagic", { enumerable: true, get: function () { return has_magic_js_2.hasMagic; } });
-var ignore_js_1 = require("./ignore.js");
-Object.defineProperty(exports, "Ignore", { enumerable: true, get: function () { return ignore_js_1.Ignore; } });
-function globStreamSync(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).streamSync();
-}
-function globStream(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).stream();
-}
-function globSync(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).walkSync();
-}
-async function glob_(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).walk();
-}
-function globIterateSync(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).iterateSync();
-}
-function globIterate(pattern, options = {}) {
- return new glob_js_1.Glob(pattern, options).iterate();
-}
-// aliases: glob.sync.stream() glob.stream.sync() glob.sync() etc
-exports.streamSync = globStreamSync;
-exports.stream = Object.assign(globStream, { sync: globStreamSync });
-exports.iterateSync = globIterateSync;
-exports.iterate = Object.assign(globIterate, {
- sync: globIterateSync,
-});
-exports.sync = Object.assign(globSync, {
- stream: globStreamSync,
- iterate: globIterateSync,
-});
-exports.glob = Object.assign(glob_, {
- glob: glob_,
- globSync,
- sync: exports.sync,
- globStream,
- stream: exports.stream,
- globStreamSync,
- streamSync: exports.streamSync,
- globIterate,
- iterate: exports.iterate,
- globIterateSync,
- iterateSync: exports.iterateSync,
- Glob: glob_js_1.Glob,
- hasMagic: has_magic_js_1.hasMagic,
- escape: minimatch_1.escape,
- unescape: minimatch_1.unescape,
-});
-exports.glob.glob = exports.glob;
-//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js.map
deleted file mode 100644
index e648b1d0..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAqDA,wCAKC;AAsBD,gCAKC;AAqBD,4BAKC;AAkDD,0CAKC;AAqBD,kCAKC;AAhMD,yCAA4C;AAS5C,uCAAgC;AAChC,iDAAyC;AAEzC,uCAA4C;AAAnC,mGAAA,MAAM,OAAA;AAAE,qGAAA,QAAQ,OAAA;AAQzB,qCAAgC;AAAvB,+FAAA,IAAI,OAAA;AAOb,+CAAyC;AAAhC,wGAAA,QAAQ,OAAA;AACjB,yCAAoC;AAA3B,mGAAA,MAAM,OAAA;AAyBf,SAAgB,cAAc,CAC5B,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,UAAU,EAAE,CAAA;AAChD,CAAC;AAsBD,SAAgB,UAAU,CACxB,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,EAAE,CAAA;AAC5C,CAAC;AAqBD,SAAgB,QAAQ,CACtB,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAA;AAC9C,CAAC;AAwBD,KAAK,UAAU,KAAK,CAClB,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAA;AAC1C,CAAC;AAqBD,SAAgB,eAAe,CAC7B,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,WAAW,EAAE,CAAA;AACjD,CAAC;AAqBD,SAAgB,WAAW,CACzB,OAA0B,EAC1B,UAAuB,EAAE;IAEzB,OAAO,IAAI,cAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,OAAO,EAAE,CAAA;AAC7C,CAAC;AAED,iEAAiE;AACpD,QAAA,UAAU,GAAG,cAAc,CAAA;AAC3B,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAA;AAC5D,QAAA,WAAW,GAAG,eAAe,CAAA;AAC7B,QAAA,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;IAChD,IAAI,EAAE,eAAe;CACtB,CAAC,CAAA;AACW,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,cAAc;IACtB,OAAO,EAAE,eAAe;CACzB,CAAC,CAAA;AAEW,QAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;IACvC,IAAI,EAAE,KAAK;IACX,QAAQ;IACR,IAAI,EAAJ,YAAI;IACJ,UAAU;IACV,MAAM,EAAN,cAAM;IACN,cAAc;IACd,UAAU,EAAV,kBAAU;IACV,WAAW;IACX,OAAO,EAAP,eAAO;IACP,eAAe;IACf,WAAW,EAAX,mBAAW;IACX,IAAI,EAAJ,cAAI;IACJ,QAAQ,EAAR,uBAAQ;IACR,MAAM,EAAN,kBAAM;IACN,QAAQ,EAAR,oBAAQ;CACT,CAAC,CAAA;AACF,YAAI,CAAC,IAAI,GAAG,YAAI,CAAA","sourcesContent":["import { escape, unescape } from 'minimatch'\nimport { Minipass } from 'minipass'\nimport { Path } from 'path-scurry'\nimport type {\n GlobOptions,\n GlobOptionsWithFileTypesFalse,\n GlobOptionsWithFileTypesTrue,\n GlobOptionsWithFileTypesUnset,\n} from './glob.js'\nimport { Glob } from './glob.js'\nimport { hasMagic } from './has-magic.js'\n\nexport { escape, unescape } from 'minimatch'\nexport type {\n FSOption,\n Path,\n WalkOptions,\n WalkOptionsWithFileTypesTrue,\n WalkOptionsWithFileTypesUnset,\n} from 'path-scurry'\nexport { Glob } from './glob.js'\nexport type {\n GlobOptions,\n GlobOptionsWithFileTypesFalse,\n GlobOptionsWithFileTypesTrue,\n GlobOptionsWithFileTypesUnset,\n} from './glob.js'\nexport { hasMagic } from './has-magic.js'\nexport { Ignore } from './ignore.js'\nexport type { IgnoreLike } from './ignore.js'\nexport type { MatchStream } from './walker.js'\n\n/**\n * Syncronous form of {@link globStream}. Will read all the matches as fast as\n * you consume them, even all in a single tick if you consume them immediately,\n * but will still respond to backpressure if they're not consumed immediately.\n */\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): Minipass\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): Minipass\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesUnset,\n): Minipass\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptions,\n): Minipass | Minipass\nexport function globStreamSync(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).streamSync()\n}\n\n/**\n * Return a stream that emits all the strings or `Path` objects and\n * then emits `end` when completed.\n */\nexport function globStream(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): Minipass\nexport function globStream(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): Minipass\nexport function globStream(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined,\n): Minipass\nexport function globStream(\n pattern: string | string[],\n options: GlobOptions,\n): Minipass | Minipass\nexport function globStream(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).stream()\n}\n\n/**\n * Synchronous form of {@link glob}\n */\nexport function globSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): Path[]\nexport function globSync(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined,\n): string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptions,\n): Path[] | string[]\nexport function globSync(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).walkSync()\n}\n\n/**\n * Perform an asynchronous glob search for the pattern(s) specified. Returns\n * [Path](https://isaacs.github.io/path-scurry/classes/PathBase) objects if the\n * {@link withFileTypes} option is set to `true`. See {@link GlobOptions} for\n * full option descriptions.\n */\nasync function glob_(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined,\n): Promise\nasync function glob_(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): Promise\nasync function glob_(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): Promise\nasync function glob_(\n pattern: string | string[],\n options: GlobOptions,\n): Promise\nasync function glob_(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).walk()\n}\n\n/**\n * Return a sync iterator for walking glob pattern matches.\n */\nexport function globIterateSync(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined,\n): Generator\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): Generator\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): Generator\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptions,\n): Generator | Generator\nexport function globIterateSync(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).iterateSync()\n}\n\n/**\n * Return an async iterator for walking glob pattern matches.\n */\nexport function globIterate(\n pattern: string | string[],\n options?: GlobOptionsWithFileTypesUnset | undefined,\n): AsyncGenerator\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesTrue,\n): AsyncGenerator\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptionsWithFileTypesFalse,\n): AsyncGenerator\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptions,\n): AsyncGenerator | AsyncGenerator\nexport function globIterate(\n pattern: string | string[],\n options: GlobOptions = {},\n) {\n return new Glob(pattern, options).iterate()\n}\n\n// aliases: glob.sync.stream() glob.stream.sync() glob.sync() etc\nexport const streamSync = globStreamSync\nexport const stream = Object.assign(globStream, { sync: globStreamSync })\nexport const iterateSync = globIterateSync\nexport const iterate = Object.assign(globIterate, {\n sync: globIterateSync,\n})\nexport const sync = Object.assign(globSync, {\n stream: globStreamSync,\n iterate: globIterateSync,\n})\n\nexport const glob = Object.assign(glob_, {\n glob: glob_,\n globSync,\n sync,\n globStream,\n stream,\n globStreamSync,\n streamSync,\n globIterate,\n iterate,\n globIterateSync,\n iterateSync,\n Glob,\n hasMagic,\n escape,\n unescape,\n})\nglob.glob = glob\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/package.json b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/package.json
deleted file mode 100644
index 5bbefffb..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/package.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "type": "commonjs"
-}
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts
deleted file mode 100644
index 9636df3b..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts
+++ /dev/null
@@ -1,76 +0,0 @@
-import { GLOBSTAR } from 'minimatch';
-export type MMPattern = string | RegExp | typeof GLOBSTAR;
-export type PatternList = [p: MMPattern, ...rest: MMPattern[]];
-export type UNCPatternList = [
- p0: '',
- p1: '',
- p2: string,
- p3: string,
- ...rest: MMPattern[]
-];
-export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
-export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
-export type GlobList = [p: string, ...rest: string[]];
-/**
- * An immutable-ish view on an array of glob parts and their parsed
- * results
- */
-export declare class Pattern {
- #private;
- readonly length: number;
- constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
- /**
- * The first entry in the parsed list of patterns
- */
- pattern(): MMPattern;
- /**
- * true of if pattern() returns a string
- */
- isString(): boolean;
- /**
- * true of if pattern() returns GLOBSTAR
- */
- isGlobstar(): boolean;
- /**
- * true if pattern() returns a regexp
- */
- isRegExp(): boolean;
- /**
- * The /-joined set of glob parts that make up this pattern
- */
- globString(): string;
- /**
- * true if there are more pattern parts after this one
- */
- hasMore(): boolean;
- /**
- * The rest of the pattern after this part, or null if this is the end
- */
- rest(): Pattern | null;
- /**
- * true if the pattern represents a //unc/path/ on windows
- */
- isUNC(): boolean;
- /**
- * True if the pattern starts with a drive letter on Windows
- */
- isDrive(): boolean;
- /**
- * True if the pattern is rooted on an absolute path
- */
- isAbsolute(): boolean;
- /**
- * consume the root of the pattern, and return it
- */
- root(): string;
- /**
- * Check to see if the current globstar pattern is allowed to follow
- * a symbolic link.
- */
- checkFollowGlobstar(): boolean;
- /**
- * Mark that the current globstar pattern is following a symbolic link
- */
- markFollowGlobstar(): boolean;
-}
-//# sourceMappingURL=pattern.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts.map
deleted file mode 100644
index cdf32234..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,QAAQ,CAAA;AAGzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,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node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js
deleted file mode 100644
index f0de35fb..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js
+++ /dev/null
@@ -1,219 +0,0 @@
-"use strict";
-// this is just a very light wrapper around 2 arrays with an offset index
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Pattern = void 0;
-const minimatch_1 = require("minimatch");
-const isPatternList = (pl) => pl.length >= 1;
-const isGlobList = (gl) => gl.length >= 1;
-/**
- * An immutable-ish view on an array of glob parts and their parsed
- * results
- */
-class Pattern {
- #patternList;
- #globList;
- #index;
- length;
- #platform;
- #rest;
- #globString;
- #isDrive;
- #isUNC;
- #isAbsolute;
- #followGlobstar = true;
- constructor(patternList, globList, index, platform) {
- if (!isPatternList(patternList)) {
- throw new TypeError('empty pattern list');
- }
- if (!isGlobList(globList)) {
- throw new TypeError('empty glob list');
- }
- if (globList.length !== patternList.length) {
- throw new TypeError('mismatched pattern list and glob list lengths');
- }
- this.length = patternList.length;
- if (index < 0 || index >= this.length) {
- throw new TypeError('index out of range');
- }
- this.#patternList = patternList;
- this.#globList = globList;
- this.#index = index;
- this.#platform = platform;
- // normalize root entries of absolute patterns on initial creation.
- if (this.#index === 0) {
- // c: => ['c:/']
- // C:/ => ['C:/']
- // C:/x => ['C:/', 'x']
- // //host/share => ['//host/share/']
- // //host/share/ => ['//host/share/']
- // //host/share/x => ['//host/share/', 'x']
- // /etc => ['/', 'etc']
- // / => ['/']
- if (this.isUNC()) {
- // '' / '' / 'host' / 'share'
- const [p0, p1, p2, p3, ...prest] = this.#patternList;
- const [g0, g1, g2, g3, ...grest] = this.#globList;
- if (prest[0] === '') {
- // ends in /
- prest.shift();
- grest.shift();
- }
- const p = [p0, p1, p2, p3, ''].join('/');
- const g = [g0, g1, g2, g3, ''].join('/');
- this.#patternList = [p, ...prest];
- this.#globList = [g, ...grest];
- this.length = this.#patternList.length;
- }
- else if (this.isDrive() || this.isAbsolute()) {
- const [p1, ...prest] = this.#patternList;
- const [g1, ...grest] = this.#globList;
- if (prest[0] === '') {
- // ends in /
- prest.shift();
- grest.shift();
- }
- const p = p1 + '/';
- const g = g1 + '/';
- this.#patternList = [p, ...prest];
- this.#globList = [g, ...grest];
- this.length = this.#patternList.length;
- }
- }
- }
- /**
- * The first entry in the parsed list of patterns
- */
- pattern() {
- return this.#patternList[this.#index];
- }
- /**
- * true of if pattern() returns a string
- */
- isString() {
- return typeof this.#patternList[this.#index] === 'string';
- }
- /**
- * true of if pattern() returns GLOBSTAR
- */
- isGlobstar() {
- return this.#patternList[this.#index] === minimatch_1.GLOBSTAR;
- }
- /**
- * true if pattern() returns a regexp
- */
- isRegExp() {
- return this.#patternList[this.#index] instanceof RegExp;
- }
- /**
- * The /-joined set of glob parts that make up this pattern
- */
- globString() {
- return (this.#globString =
- this.#globString ||
- (this.#index === 0 ?
- this.isAbsolute() ?
- this.#globList[0] + this.#globList.slice(1).join('/')
- : this.#globList.join('/')
- : this.#globList.slice(this.#index).join('/')));
- }
- /**
- * true if there are more pattern parts after this one
- */
- hasMore() {
- return this.length > this.#index + 1;
- }
- /**
- * The rest of the pattern after this part, or null if this is the end
- */
- rest() {
- if (this.#rest !== undefined)
- return this.#rest;
- if (!this.hasMore())
- return (this.#rest = null);
- this.#rest = new Pattern(this.#patternList, this.#globList, this.#index + 1, this.#platform);
- this.#rest.#isAbsolute = this.#isAbsolute;
- this.#rest.#isUNC = this.#isUNC;
- this.#rest.#isDrive = this.#isDrive;
- return this.#rest;
- }
- /**
- * true if the pattern represents a //unc/path/ on windows
- */
- isUNC() {
- const pl = this.#patternList;
- return this.#isUNC !== undefined ?
- this.#isUNC
- : (this.#isUNC =
- this.#platform === 'win32' &&
- this.#index === 0 &&
- pl[0] === '' &&
- pl[1] === '' &&
- typeof pl[2] === 'string' &&
- !!pl[2] &&
- typeof pl[3] === 'string' &&
- !!pl[3]);
- }
- // pattern like C:/...
- // split = ['C:', ...]
- // XXX: would be nice to handle patterns like `c:*` to test the cwd
- // in c: for *, but I don't know of a way to even figure out what that
- // cwd is without actually chdir'ing into it?
- /**
- * True if the pattern starts with a drive letter on Windows
- */
- isDrive() {
- const pl = this.#patternList;
- return this.#isDrive !== undefined ?
- this.#isDrive
- : (this.#isDrive =
- this.#platform === 'win32' &&
- this.#index === 0 &&
- this.length > 1 &&
- typeof pl[0] === 'string' &&
- /^[a-z]:$/i.test(pl[0]));
- }
- // pattern = '/' or '/...' or '/x/...'
- // split = ['', ''] or ['', ...] or ['', 'x', ...]
- // Drive and UNC both considered absolute on windows
- /**
- * True if the pattern is rooted on an absolute path
- */
- isAbsolute() {
- const pl = this.#patternList;
- return this.#isAbsolute !== undefined ?
- this.#isAbsolute
- : (this.#isAbsolute =
- (pl[0] === '' && pl.length > 1) ||
- this.isDrive() ||
- this.isUNC());
- }
- /**
- * consume the root of the pattern, and return it
- */
- root() {
- const p = this.#patternList[0];
- return (typeof p === 'string' && this.isAbsolute() && this.#index === 0) ?
- p
- : '';
- }
- /**
- * Check to see if the current globstar pattern is allowed to follow
- * a symbolic link.
- */
- checkFollowGlobstar() {
- return !(this.#index === 0 ||
- !this.isGlobstar() ||
- !this.#followGlobstar);
- }
- /**
- * Mark that the current globstar pattern is following a symbolic link
- */
- markFollowGlobstar() {
- if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)
- return false;
- this.#followGlobstar = false;
- return true;
- }
-}
-exports.Pattern = Pattern;
-//# sourceMappingURL=pattern.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js.map
deleted file mode 100644
index fc10ea5d..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/pattern.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"pattern.js","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":";A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AE,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC/B,IAAI,CAAC,OAAO,EAAE;oBACd,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;IACrB,CAAC;IAED;;OAEG;IACH,IAAI;QACF,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;QAC9B,OAAO,CACH,OAAO,CAAC,KAAK,QAAQ,IAAI,IAAI,CAAC,UAAU,EAAE,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,CAChE,CAAC,CAAC;YACD,CAAC;YACH,CAAC,CAAC,EAAE,CAAA;IACR,CAAC;IAED;;;OAGG;IACH,mBAAmB;QACjB,OAAO,CAAC,CACN,IAAI,CAAC,MAAM,KAAK,CAAC;YACjB,CAAC,IAAI,CAAC,UAAU,EAAE;YAClB,CAAC,IAAI,CAAC,eAAe,CACtB,CAAA;IACH,CAAC;IAED;;OAEG;IACH,kBAAkB;QAChB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,eAAe;YAClE,OAAO,KAAK,CAAA;QACd,IAAI,CAAC,eAAe,GAAG,KAAK,CAAA;QAC5B,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AArOD,0BAqOC","sourcesContent":["// this is just a very light wrapper around 2 arrays with an offset index\n\nimport { GLOBSTAR } from 'minimatch'\nexport type MMPattern = string | RegExp | typeof GLOBSTAR\n\n// an array of length >= 1\nexport type PatternList = [p: MMPattern, ...rest: MMPattern[]]\nexport type UNCPatternList = [\n p0: '',\n p1: '',\n p2: string,\n p3: string,\n ...rest: MMPattern[],\n]\nexport type DrivePatternList = [p0: string, ...rest: MMPattern[]]\nexport type AbsolutePatternList = [p0: '', ...rest: MMPattern[]]\nexport type GlobList = [p: string, ...rest: string[]]\n\nconst isPatternList = (pl: MMPattern[]): pl is PatternList =>\n pl.length >= 1\nconst isGlobList = (gl: string[]): gl is GlobList => gl.length >= 1\n\n/**\n * An immutable-ish view on an array of glob parts and their parsed\n * results\n */\nexport class Pattern {\n readonly #patternList: PatternList\n readonly #globList: GlobList\n readonly #index: number\n readonly length: number\n readonly #platform: NodeJS.Platform\n #rest?: Pattern | null\n #globString?: string\n #isDrive?: boolean\n #isUNC?: boolean\n #isAbsolute?: boolean\n #followGlobstar: boolean = true\n\n constructor(\n patternList: MMPattern[],\n globList: string[],\n index: number,\n platform: NodeJS.Platform,\n ) {\n if (!isPatternList(patternList)) {\n throw new TypeError('empty pattern list')\n }\n if (!isGlobList(globList)) {\n throw new TypeError('empty glob list')\n }\n if (globList.length !== patternList.length) {\n throw new TypeError('mismatched pattern list and glob list lengths')\n }\n this.length = patternList.length\n if (index < 0 || index >= this.length) {\n throw new TypeError('index out of range')\n }\n this.#patternList = patternList\n this.#globList = globList\n this.#index = index\n this.#platform = platform\n\n // normalize root entries of absolute patterns on initial creation.\n if (this.#index === 0) {\n // c: => ['c:/']\n // C:/ => ['C:/']\n // C:/x => ['C:/', 'x']\n // //host/share => ['//host/share/']\n // //host/share/ => ['//host/share/']\n // //host/share/x => ['//host/share/', 'x']\n // /etc => ['/', 'etc']\n // / => ['/']\n if (this.isUNC()) {\n // '' / '' / 'host' / 'share'\n const [p0, p1, p2, p3, ...prest] = this.#patternList\n const [g0, g1, g2, g3, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = [p0, p1, p2, p3, ''].join('/')\n const g = [g0, g1, g2, g3, ''].join('/')\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n } else if (this.isDrive() || this.isAbsolute()) {\n const [p1, ...prest] = this.#patternList\n const [g1, ...grest] = this.#globList\n if (prest[0] === '') {\n // ends in /\n prest.shift()\n grest.shift()\n }\n const p = (p1 as string) + '/'\n const g = g1 + '/'\n this.#patternList = [p, ...prest]\n this.#globList = [g, ...grest]\n this.length = this.#patternList.length\n }\n }\n }\n\n /**\n * The first entry in the parsed list of patterns\n */\n pattern(): MMPattern {\n return this.#patternList[this.#index] as MMPattern\n }\n\n /**\n * true of if pattern() returns a string\n */\n isString(): boolean {\n return typeof this.#patternList[this.#index] === 'string'\n }\n /**\n * true of if pattern() returns GLOBSTAR\n */\n isGlobstar(): boolean {\n return this.#patternList[this.#index] === GLOBSTAR\n }\n /**\n * true if pattern() returns a regexp\n */\n isRegExp(): boolean {\n return this.#patternList[this.#index] instanceof RegExp\n }\n\n /**\n * The /-joined set of glob parts that make up this pattern\n */\n globString(): string {\n return (this.#globString =\n this.#globString ||\n (this.#index === 0 ?\n this.isAbsolute() ?\n this.#globList[0] + this.#globList.slice(1).join('/')\n : this.#globList.join('/')\n : this.#globList.slice(this.#index).join('/')))\n }\n\n /**\n * true if there are more pattern parts after this one\n */\n hasMore(): boolean {\n return this.length > this.#index + 1\n }\n\n /**\n * The rest of the pattern after this part, or null if this is the end\n */\n rest(): Pattern | null {\n if (this.#rest !== undefined) return this.#rest\n if (!this.hasMore()) return (this.#rest = null)\n this.#rest = new Pattern(\n this.#patternList,\n this.#globList,\n this.#index + 1,\n this.#platform,\n )\n this.#rest.#isAbsolute = this.#isAbsolute\n this.#rest.#isUNC = this.#isUNC\n this.#rest.#isDrive = this.#isDrive\n return this.#rest\n }\n\n /**\n * true if the pattern represents a //unc/path/ on windows\n */\n isUNC(): boolean {\n const pl = this.#patternList\n return this.#isUNC !== undefined ?\n this.#isUNC\n : (this.#isUNC =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n pl[0] === '' &&\n pl[1] === '' &&\n typeof pl[2] === 'string' &&\n !!pl[2] &&\n typeof pl[3] === 'string' &&\n !!pl[3])\n }\n\n // pattern like C:/...\n // split = ['C:', ...]\n // XXX: would be nice to handle patterns like `c:*` to test the cwd\n // in c: for *, but I don't know of a way to even figure out what that\n // cwd is without actually chdir'ing into it?\n /**\n * True if the pattern starts with a drive letter on Windows\n */\n isDrive(): boolean {\n const pl = this.#patternList\n return this.#isDrive !== undefined ?\n this.#isDrive\n : (this.#isDrive =\n this.#platform === 'win32' &&\n this.#index === 0 &&\n this.length > 1 &&\n typeof pl[0] === 'string' &&\n /^[a-z]:$/i.test(pl[0]))\n }\n\n // pattern = '/' or '/...' or '/x/...'\n // split = ['', ''] or ['', ...] or ['', 'x', ...]\n // Drive and UNC both considered absolute on windows\n /**\n * True if the pattern is rooted on an absolute path\n */\n isAbsolute(): boolean {\n const pl = this.#patternList\n return this.#isAbsolute !== undefined ?\n this.#isAbsolute\n : (this.#isAbsolute =\n (pl[0] === '' && pl.length > 1) ||\n this.isDrive() ||\n this.isUNC())\n }\n\n /**\n * consume the root of the pattern, and return it\n */\n root(): string {\n const p = this.#patternList[0]\n return (\n typeof p === 'string' && this.isAbsolute() && this.#index === 0\n ) ?\n p\n : ''\n }\n\n /**\n * Check to see if the current globstar pattern is allowed to follow\n * a symbolic link.\n */\n checkFollowGlobstar(): boolean {\n return !(\n this.#index === 0 ||\n !this.isGlobstar() ||\n !this.#followGlobstar\n )\n }\n\n /**\n * Mark that the current globstar pattern is following a symbolic link\n */\n markFollowGlobstar(): boolean {\n if (this.#index === 0 || !this.isGlobstar() || !this.#followGlobstar)\n return false\n this.#followGlobstar = false\n return true\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts
deleted file mode 100644
index ccedfbf2..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-import { MMRegExp } from 'minimatch';
-import { Path } from 'path-scurry';
-import { Pattern } from './pattern.js';
-import { GlobWalkerOpts } from './walker.js';
-/**
- * A cache of which patterns have been processed for a given Path
- */
-export declare class HasWalkedCache {
- store: Map>;
- constructor(store?: Map>);
- copy(): HasWalkedCache;
- hasWalked(target: Path, pattern: Pattern): boolean | undefined;
- storeWalked(target: Path, pattern: Pattern): void;
-}
-/**
- * A record of which paths have been matched in a given walk step,
- * and whether they only are considered a match if they are a directory,
- * and whether their absolute or relative path should be returned.
- */
-export declare class MatchRecord {
- store: Map;
- add(target: Path, absolute: boolean, ifDir: boolean): void;
- entries(): [Path, boolean, boolean][];
-}
-/**
- * A collection of patterns that must be processed in a subsequent step
- * for a given path.
- */
-export declare class SubWalks {
- store: Map;
- add(target: Path, pattern: Pattern): void;
- get(target: Path): Pattern[];
- entries(): [Path, Pattern[]][];
- keys(): Path[];
-}
-/**
- * The class that processes patterns for a given path.
- *
- * Handles child entry filtering, and determining whether a path's
- * directory contents must be read.
- */
-export declare class Processor {
- hasWalkedCache: HasWalkedCache;
- matches: MatchRecord;
- subwalks: SubWalks;
- patterns?: Pattern[];
- follow: boolean;
- dot: boolean;
- opts: GlobWalkerOpts;
- constructor(opts: GlobWalkerOpts, hasWalkedCache?: HasWalkedCache);
- processPatterns(target: Path, patterns: Pattern[]): this;
- subwalkTargets(): Path[];
- child(): Processor;
- filterEntries(parent: Path, entries: Path[]): Processor;
- testGlobstar(e: Path, pattern: Pattern, rest: Pattern | null, absolute: boolean): void;
- testRegExp(e: Path, p: MMRegExp, rest: Pattern | null, absolute: boolean): void;
- testString(e: Path, p: string, rest: Pattern | null, absolute: boolean): void;
-}
-//# sourceMappingURL=processor.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts.map
deleted file mode 100644
index aa266fee..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAA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Ac,EAAE,cAAc,CAAC,EAAE,cAAc;IAQjE,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE;IAmGjD,cAAc,IAAI,IAAI,EAAE;IAIxB,KAAK;IAQL,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,SAAS;IAqBvD,YAAY,CACV,CAAC,EAAE,IAAI,EACP,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,GAAG,IAAI,EACpB,QAAQ,EAAE,OAAO;IA8CnB,UAAU,CACR,CAAC,EAAE,IAAI,EACP,CAAC,EAAE,QAAQ,EACX,IAAI,EAAE,OAAO,GAAG,IAAI,EACpB,QAAQ,EAAE,OAAO;IAUnB,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,OAAO;CASvE"}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js
deleted file mode 100644
index ee3bb439..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js
+++ /dev/null
@@ -1,301 +0,0 @@
-"use strict";
-// synchronous utility for filtering entries and calculating subwalks
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.Processor = exports.SubWalks = exports.MatchRecord = exports.HasWalkedCache = void 0;
-const minimatch_1 = require("minimatch");
-/**
- * A cache of which patterns have been processed for a given Path
- */
-class HasWalkedCache {
- store;
- constructor(store = new Map()) {
- this.store = store;
- }
- copy() {
- return new HasWalkedCache(new Map(this.store));
- }
- hasWalked(target, pattern) {
- return this.store.get(target.fullpath())?.has(pattern.globString());
- }
- storeWalked(target, pattern) {
- const fullpath = target.fullpath();
- const cached = this.store.get(fullpath);
- if (cached)
- cached.add(pattern.globString());
- else
- this.store.set(fullpath, new Set([pattern.globString()]));
- }
-}
-exports.HasWalkedCache = HasWalkedCache;
-/**
- * A record of which paths have been matched in a given walk step,
- * and whether they only are considered a match if they are a directory,
- * and whether their absolute or relative path should be returned.
- */
-class MatchRecord {
- store = new Map();
- add(target, absolute, ifDir) {
- const n = (absolute ? 2 : 0) | (ifDir ? 1 : 0);
- const current = this.store.get(target);
- this.store.set(target, current === undefined ? n : n & current);
- }
- // match, absolute, ifdir
- entries() {
- return [...this.store.entries()].map(([path, n]) => [
- path,
- !!(n & 2),
- !!(n & 1),
- ]);
- }
-}
-exports.MatchRecord = MatchRecord;
-/**
- * A collection of patterns that must be processed in a subsequent step
- * for a given path.
- */
-class SubWalks {
- store = new Map();
- add(target, pattern) {
- if (!target.canReaddir()) {
- return;
- }
- const subs = this.store.get(target);
- if (subs) {
- if (!subs.find(p => p.globString() === pattern.globString())) {
- subs.push(pattern);
- }
- }
- else
- this.store.set(target, [pattern]);
- }
- get(target) {
- const subs = this.store.get(target);
- /* c8 ignore start */
- if (!subs) {
- throw new Error('attempting to walk unknown path');
- }
- /* c8 ignore stop */
- return subs;
- }
- entries() {
- return this.keys().map(k => [k, this.store.get(k)]);
- }
- keys() {
- return [...this.store.keys()].filter(t => t.canReaddir());
- }
-}
-exports.SubWalks = SubWalks;
-/**
- * The class that processes patterns for a given path.
- *
- * Handles child entry filtering, and determining whether a path's
- * directory contents must be read.
- */
-class Processor {
- hasWalkedCache;
- matches = new MatchRecord();
- subwalks = new SubWalks();
- patterns;
- follow;
- dot;
- opts;
- constructor(opts, hasWalkedCache) {
- this.opts = opts;
- this.follow = !!opts.follow;
- this.dot = !!opts.dot;
- this.hasWalkedCache =
- hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache();
- }
- processPatterns(target, patterns) {
- this.patterns = patterns;
- const processingSet = patterns.map(p => [target, p]);
- // map of paths to the magic-starting subwalks they need to walk
- // first item in patterns is the filter
- for (let [t, pattern] of processingSet) {
- this.hasWalkedCache.storeWalked(t, pattern);
- const root = pattern.root();
- const absolute = pattern.isAbsolute() && this.opts.absolute !== false;
- // start absolute patterns at root
- if (root) {
- t = t.resolve(root === '/' && this.opts.root !== undefined ?
- this.opts.root
- : root);
- const rest = pattern.rest();
- if (!rest) {
- this.matches.add(t, true, false);
- continue;
- }
- else {
- pattern = rest;
- }
- }
- if (t.isENOENT())
- continue;
- let p;
- let rest;
- let changed = false;
- while (typeof (p = pattern.pattern()) === 'string' &&
- (rest = pattern.rest())) {
- const c = t.resolve(p);
- t = c;
- pattern = rest;
- changed = true;
- }
- p = pattern.pattern();
- rest = pattern.rest();
- if (changed) {
- if (this.hasWalkedCache.hasWalked(t, pattern))
- continue;
- this.hasWalkedCache.storeWalked(t, pattern);
- }
- // now we have either a final string for a known entry,
- // more strings for an unknown entry,
- // or a pattern starting with magic, mounted on t.
- if (typeof p === 'string') {
- // must not be final entry, otherwise we would have
- // concatenated it earlier.
- const ifDir = p === '..' || p === '' || p === '.';
- this.matches.add(t.resolve(p), absolute, ifDir);
- continue;
- }
- else if (p === minimatch_1.GLOBSTAR) {
- // if no rest, match and subwalk pattern
- // if rest, process rest and subwalk pattern
- // if it's a symlink, but we didn't get here by way of a
- // globstar match (meaning it's the first time THIS globstar
- // has traversed a symlink), then we follow it. Otherwise, stop.
- if (!t.isSymbolicLink() ||
- this.follow ||
- pattern.checkFollowGlobstar()) {
- this.subwalks.add(t, pattern);
- }
- const rp = rest?.pattern();
- const rrest = rest?.rest();
- if (!rest || ((rp === '' || rp === '.') && !rrest)) {
- // only HAS to be a dir if it ends in **/ or **/.
- // but ending in ** will match files as well.
- this.matches.add(t, absolute, rp === '' || rp === '.');
- }
- else {
- if (rp === '..') {
- // this would mean you're matching **/.. at the fs root,
- // and no thanks, I'm not gonna test that specific case.
- /* c8 ignore start */
- const tp = t.parent || t;
- /* c8 ignore stop */
- if (!rrest)
- this.matches.add(tp, absolute, true);
- else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {
- this.subwalks.add(tp, rrest);
- }
- }
- }
- }
- else if (p instanceof RegExp) {
- this.subwalks.add(t, pattern);
- }
- }
- return this;
- }
- subwalkTargets() {
- return this.subwalks.keys();
- }
- child() {
- return new Processor(this.opts, this.hasWalkedCache);
- }
- // return a new Processor containing the subwalks for each
- // child entry, and a set of matches, and
- // a hasWalkedCache that's a copy of this one
- // then we're going to call
- filterEntries(parent, entries) {
- const patterns = this.subwalks.get(parent);
- // put matches and entry walks into the results processor
- const results = this.child();
- for (const e of entries) {
- for (const pattern of patterns) {
- const absolute = pattern.isAbsolute();
- const p = pattern.pattern();
- const rest = pattern.rest();
- if (p === minimatch_1.GLOBSTAR) {
- results.testGlobstar(e, pattern, rest, absolute);
- }
- else if (p instanceof RegExp) {
- results.testRegExp(e, p, rest, absolute);
- }
- else {
- results.testString(e, p, rest, absolute);
- }
- }
- }
- return results;
- }
- testGlobstar(e, pattern, rest, absolute) {
- if (this.dot || !e.name.startsWith('.')) {
- if (!pattern.hasMore()) {
- this.matches.add(e, absolute, false);
- }
- if (e.canReaddir()) {
- // if we're in follow mode or it's not a symlink, just keep
- // testing the same pattern. If there's more after the globstar,
- // then this symlink consumes the globstar. If not, then we can
- // follow at most ONE symlink along the way, so we mark it, which
- // also checks to ensure that it wasn't already marked.
- if (this.follow || !e.isSymbolicLink()) {
- this.subwalks.add(e, pattern);
- }
- else if (e.isSymbolicLink()) {
- if (rest && pattern.checkFollowGlobstar()) {
- this.subwalks.add(e, rest);
- }
- else if (pattern.markFollowGlobstar()) {
- this.subwalks.add(e, pattern);
- }
- }
- }
- }
- // if the NEXT thing matches this entry, then also add
- // the rest.
- if (rest) {
- const rp = rest.pattern();
- if (typeof rp === 'string' &&
- // dots and empty were handled already
- rp !== '..' &&
- rp !== '' &&
- rp !== '.') {
- this.testString(e, rp, rest.rest(), absolute);
- }
- else if (rp === '..') {
- /* c8 ignore start */
- const ep = e.parent || e;
- /* c8 ignore stop */
- this.subwalks.add(ep, rest);
- }
- else if (rp instanceof RegExp) {
- this.testRegExp(e, rp, rest.rest(), absolute);
- }
- }
- }
- testRegExp(e, p, rest, absolute) {
- if (!p.test(e.name))
- return;
- if (!rest) {
- this.matches.add(e, absolute, false);
- }
- else {
- this.subwalks.add(e, rest);
- }
- }
- testString(e, p, rest, absolute) {
- // should never happen?
- if (!e.isNamed(p))
- return;
- if (!rest) {
- this.matches.add(e, absolute, false);
- }
- else {
- this.subwalks.add(e, rest);
- }
- }
-}
-exports.Processor = Processor;
-//# sourceMappingURL=processor.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js.map
deleted file mode 100644
index 58a70882..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/processor.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"processor.js","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":";AAAA,qEAAqE;;;AAErE,yCAA8C;AAK9C;;GAEG;AACH,MAAa,cAAc;IACzB,KAAK,CAA0B;IAC/B,YAAY,QAAkC,IAAI,GAAG,EAAE;QACrD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACpB,CAAC;IACD,IAAI;QACF,OAAO,IAAI,cAAc,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;IAChD,CAAC;IACD,SAAS,CAAC,MAAY,EAAE,OAAgB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IACrE,CAAC;IACD,WAAW,CAAC,MAAY,EAAE,OAAgB;QACxC,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAA;QAClC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAA;QACvC,IAAI,MAAM;YAAE,MAAM,CAAC,GAAG,C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YAAE,OAAM;QACzB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QAC5B,CAAC;IACH,CAAC;CACF;AA9ND,8BA8NC","sourcesContent":["// synchronous utility for filtering entries and calculating subwalks\n\nimport { GLOBSTAR, MMRegExp } from 'minimatch'\nimport { Path } from 'path-scurry'\nimport { MMPattern, Pattern } from './pattern.js'\nimport { GlobWalkerOpts } from './walker.js'\n\n/**\n * A cache of which patterns have been processed for a given Path\n */\nexport class HasWalkedCache {\n store: Map>\n constructor(store: Map> = new Map()) {\n this.store = store\n }\n copy() {\n return new HasWalkedCache(new Map(this.store))\n }\n hasWalked(target: Path, pattern: Pattern) {\n return this.store.get(target.fullpath())?.has(pattern.globString())\n }\n storeWalked(target: Path, pattern: Pattern) {\n const fullpath = target.fullpath()\n const cached = this.store.get(fullpath)\n if (cached) cached.add(pattern.globString())\n else this.store.set(fullpath, new Set([pattern.globString()]))\n }\n}\n\n/**\n * A record of which paths have been matched in a given walk step,\n * and whether they only are considered a match if they are a directory,\n * and whether their absolute or relative path should be returned.\n */\nexport class MatchRecord {\n store: Map = new Map()\n add(target: Path, absolute: boolean, ifDir: boolean) {\n const n = (absolute ? 2 : 0) | (ifDir ? 1 : 0)\n const current = this.store.get(target)\n this.store.set(target, current === undefined ? n : n & current)\n }\n // match, absolute, ifdir\n entries(): [Path, boolean, boolean][] {\n return [...this.store.entries()].map(([path, n]) => [\n path,\n !!(n & 2),\n !!(n & 1),\n ])\n }\n}\n\n/**\n * A collection of patterns that must be processed in a subsequent step\n * for a given path.\n */\nexport class SubWalks {\n store: Map = new Map()\n add(target: Path, pattern: Pattern) {\n if (!target.canReaddir()) {\n return\n }\n const subs = this.store.get(target)\n if (subs) {\n if (!subs.find(p => p.globString() === pattern.globString())) {\n subs.push(pattern)\n }\n } else this.store.set(target, [pattern])\n }\n get(target: Path): Pattern[] {\n const subs = this.store.get(target)\n /* c8 ignore start */\n if (!subs) {\n throw new Error('attempting to walk unknown path')\n }\n /* c8 ignore stop */\n return subs\n }\n entries(): [Path, Pattern[]][] {\n return this.keys().map(k => [k, this.store.get(k) as Pattern[]])\n }\n keys(): Path[] {\n return [...this.store.keys()].filter(t => t.canReaddir())\n }\n}\n\n/**\n * The class that processes patterns for a given path.\n *\n * Handles child entry filtering, and determining whether a path's\n * directory contents must be read.\n */\nexport class Processor {\n hasWalkedCache: HasWalkedCache\n matches = new MatchRecord()\n subwalks = new SubWalks()\n patterns?: Pattern[]\n follow: boolean\n dot: boolean\n opts: GlobWalkerOpts\n\n constructor(opts: GlobWalkerOpts, hasWalkedCache?: HasWalkedCache) {\n this.opts = opts\n this.follow = !!opts.follow\n this.dot = !!opts.dot\n this.hasWalkedCache =\n hasWalkedCache ? hasWalkedCache.copy() : new HasWalkedCache()\n }\n\n processPatterns(target: Path, patterns: Pattern[]) {\n this.patterns = patterns\n const processingSet: [Path, Pattern][] = patterns.map(p => [target, p])\n\n // map of paths to the magic-starting subwalks they need to walk\n // first item in patterns is the filter\n\n for (let [t, pattern] of processingSet) {\n this.hasWalkedCache.storeWalked(t, pattern)\n\n const root = pattern.root()\n const absolute = pattern.isAbsolute() && this.opts.absolute !== false\n\n // start absolute patterns at root\n if (root) {\n t = t.resolve(\n root === '/' && this.opts.root !== undefined ?\n this.opts.root\n : root,\n )\n const rest = pattern.rest()\n if (!rest) {\n this.matches.add(t, true, false)\n continue\n } else {\n pattern = rest\n }\n }\n\n if (t.isENOENT()) continue\n\n let p: MMPattern\n let rest: Pattern | null\n let changed = false\n while (\n typeof (p = pattern.pattern()) === 'string' &&\n (rest = pattern.rest())\n ) {\n const c = t.resolve(p)\n t = c\n pattern = rest\n changed = true\n }\n p = pattern.pattern()\n rest = pattern.rest()\n if (changed) {\n if (this.hasWalkedCache.hasWalked(t, pattern)) continue\n this.hasWalkedCache.storeWalked(t, pattern)\n }\n\n // now we have either a final string for a known entry,\n // more strings for an unknown entry,\n // or a pattern starting with magic, mounted on t.\n if (typeof p === 'string') {\n // must not be final entry, otherwise we would have\n // concatenated it earlier.\n const ifDir = p === '..' || p === '' || p === '.'\n this.matches.add(t.resolve(p), absolute, ifDir)\n continue\n } else if (p === GLOBSTAR) {\n // if no rest, match and subwalk pattern\n // if rest, process rest and subwalk pattern\n // if it's a symlink, but we didn't get here by way of a\n // globstar match (meaning it's the first time THIS globstar\n // has traversed a symlink), then we follow it. Otherwise, stop.\n if (\n !t.isSymbolicLink() ||\n this.follow ||\n pattern.checkFollowGlobstar()\n ) {\n this.subwalks.add(t, pattern)\n }\n const rp = rest?.pattern()\n const rrest = rest?.rest()\n if (!rest || ((rp === '' || rp === '.') && !rrest)) {\n // only HAS to be a dir if it ends in **/ or **/.\n // but ending in ** will match files as well.\n this.matches.add(t, absolute, rp === '' || rp === '.')\n } else {\n if (rp === '..') {\n // this would mean you're matching **/.. at the fs root,\n // and no thanks, I'm not gonna test that specific case.\n /* c8 ignore start */\n const tp = t.parent || t\n /* c8 ignore stop */\n if (!rrest) this.matches.add(tp, absolute, true)\n else if (!this.hasWalkedCache.hasWalked(tp, rrest)) {\n this.subwalks.add(tp, rrest)\n }\n }\n }\n } else if (p instanceof RegExp) {\n this.subwalks.add(t, pattern)\n }\n }\n\n return this\n }\n\n subwalkTargets(): Path[] {\n return this.subwalks.keys()\n }\n\n child() {\n return new Processor(this.opts, this.hasWalkedCache)\n }\n\n // return a new Processor containing the subwalks for each\n // child entry, and a set of matches, and\n // a hasWalkedCache that's a copy of this one\n // then we're going to call\n filterEntries(parent: Path, entries: Path[]): Processor {\n const patterns = this.subwalks.get(parent)\n // put matches and entry walks into the results processor\n const results = this.child()\n for (const e of entries) {\n for (const pattern of patterns) {\n const absolute = pattern.isAbsolute()\n const p = pattern.pattern()\n const rest = pattern.rest()\n if (p === GLOBSTAR) {\n results.testGlobstar(e, pattern, rest, absolute)\n } else if (p instanceof RegExp) {\n results.testRegExp(e, p, rest, absolute)\n } else {\n results.testString(e, p, rest, absolute)\n }\n }\n }\n return results\n }\n\n testGlobstar(\n e: Path,\n pattern: Pattern,\n rest: Pattern | null,\n absolute: boolean,\n ) {\n if (this.dot || !e.name.startsWith('.')) {\n if (!pattern.hasMore()) {\n this.matches.add(e, absolute, false)\n }\n if (e.canReaddir()) {\n // if we're in follow mode or it's not a symlink, just keep\n // testing the same pattern. If there's more after the globstar,\n // then this symlink consumes the globstar. If not, then we can\n // follow at most ONE symlink along the way, so we mark it, which\n // also checks to ensure that it wasn't already marked.\n if (this.follow || !e.isSymbolicLink()) {\n this.subwalks.add(e, pattern)\n } else if (e.isSymbolicLink()) {\n if (rest && pattern.checkFollowGlobstar()) {\n this.subwalks.add(e, rest)\n } else if (pattern.markFollowGlobstar()) {\n this.subwalks.add(e, pattern)\n }\n }\n }\n }\n // if the NEXT thing matches this entry, then also add\n // the rest.\n if (rest) {\n const rp = rest.pattern()\n if (\n typeof rp === 'string' &&\n // dots and empty were handled already\n rp !== '..' &&\n rp !== '' &&\n rp !== '.'\n ) {\n this.testString(e, rp, rest.rest(), absolute)\n } else if (rp === '..') {\n /* c8 ignore start */\n const ep = e.parent || e\n /* c8 ignore stop */\n this.subwalks.add(ep, rest)\n } else if (rp instanceof RegExp) {\n this.testRegExp(e, rp, rest.rest(), absolute)\n }\n }\n }\n\n testRegExp(\n e: Path,\n p: MMRegExp,\n rest: Pattern | null,\n absolute: boolean,\n ) {\n if (!p.test(e.name)) return\n if (!rest) {\n this.matches.add(e, absolute, false)\n } else {\n this.subwalks.add(e, rest)\n }\n }\n\n testString(e: Path, p: string, rest: Pattern | null, absolute: boolean) {\n // should never happen?\n if (!e.isNamed(p)) return\n if (!rest) {\n this.matches.add(e, absolute, false)\n } else {\n this.subwalks.add(e, rest)\n }\n }\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts
deleted file mode 100644
index 499c8f49..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * Single-use utility classes to provide functionality to the {@link Glob}
- * methods.
- *
- * @module
- */
-import { Minipass } from 'minipass';
-import { Path } from 'path-scurry';
-import { IgnoreLike } from './ignore.js';
-import { Pattern } from './pattern.js';
-import { Processor } from './processor.js';
-export interface GlobWalkerOpts {
- absolute?: boolean;
- allowWindowsEscape?: boolean;
- cwd?: string | URL;
- dot?: boolean;
- dotRelative?: boolean;
- follow?: boolean;
- ignore?: string | string[] | IgnoreLike;
- mark?: boolean;
- matchBase?: boolean;
- maxDepth?: number;
- nobrace?: boolean;
- nocase?: boolean;
- nodir?: boolean;
- noext?: boolean;
- noglobstar?: boolean;
- platform?: NodeJS.Platform;
- posix?: boolean;
- realpath?: boolean;
- root?: string;
- stat?: boolean;
- signal?: AbortSignal;
- windowsPathsNoEscape?: boolean;
- withFileTypes?: boolean;
- includeChildMatches?: boolean;
-}
-export type GWOFileTypesTrue = GlobWalkerOpts & {
- withFileTypes: true;
-};
-export type GWOFileTypesFalse = GlobWalkerOpts & {
- withFileTypes: false;
-};
-export type GWOFileTypesUnset = GlobWalkerOpts & {
- withFileTypes?: undefined;
-};
-export type Result = O extends GWOFileTypesTrue ? Path : O extends GWOFileTypesFalse ? string : O extends GWOFileTypesUnset ? string : Path | string;
-export type Matches = O extends GWOFileTypesTrue ? Set : O extends GWOFileTypesFalse ? Set : O extends GWOFileTypesUnset ? Set : Set;
-export type MatchStream = Minipass, Result>;
-/**
- * basic walking utilities that all the glob walker types use
- */
-export declare abstract class GlobUtil {
- #private;
- path: Path;
- patterns: Pattern[];
- opts: O;
- seen: Set;
- paused: boolean;
- aborted: boolean;
- signal?: AbortSignal;
- maxDepth: number;
- includeChildMatches: boolean;
- constructor(patterns: Pattern[], path: Path, opts: O);
- pause(): void;
- resume(): void;
- onResume(fn: () => any): void;
- matchCheck(e: Path, ifDir: boolean): Promise;
- matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined;
- matchCheckSync(e: Path, ifDir: boolean): Path | undefined;
- abstract matchEmit(p: Result): void;
- abstract matchEmit(p: string | Path): void;
- matchFinish(e: Path, absolute: boolean): void;
- match(e: Path, absolute: boolean, ifDir: boolean): Promise;
- matchSync(e: Path, absolute: boolean, ifDir: boolean): void;
- walkCB(target: Path, patterns: Pattern[], cb: () => any): void;
- walkCB2(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
- walkCB3(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
- walkCBSync(target: Path, patterns: Pattern[], cb: () => any): void;
- walkCB2Sync(target: Path, patterns: Pattern[], processor: Processor, cb: () => any): any;
- walkCB3Sync(target: Path, entries: Path[], processor: Processor, cb: () => any): void;
-}
-export declare class GlobWalker extends GlobUtil {
- matches: Set>;
- constructor(patterns: Pattern[], path: Path, opts: O);
- matchEmit(e: Result): void;
- walk(): Promise>>;
- walkSync(): Set>;
-}
-export declare class GlobStream extends GlobUtil {
- results: Minipass, Result>;
- constructor(patterns: Pattern[], path: Path, opts: O);
- matchEmit(e: Result): void;
- stream(): MatchStream;
- streamSync(): MatchStream;
-}
-//# sourceMappingURL=walker.d.ts.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts.map
deleted file mode 100644
index 769957bd..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"walker.d.ts","sourceRoot":"","sources":["../../src/walker.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnC,OAAO,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GAAG;IAO3D,WAAW,CACT,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,OAAO,EAAE,EACnB,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,MAAM,GAAG;IAqCf,WAAW,CACT,MAAM,EAAE,IAAI,EACZ,OAAO,EAAE,IAAI,EAAE,EACf,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,MAAM,GAAG;CAoBhB;AAED,qBAAa,UAAU,CACrB,CAAC,SAAS,cAAc,GAAG,cAAc,CACzC,SAAQ,QAAQ,CAAC,CAAC,CAAC;IACnB,OAAO,iBAAuB;gBAElB,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAIpD,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI;IAIvB,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAiBrC,QAAQ,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAW3B;AAED,qBAAa,UAAU,CACrB,CAAC,SAAS,cAAc,GAAG,cAAc,CACzC,SAAQ,QAAQ,CAAC,CAAC,CAAC;IACnB,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;gBAE3B,QAAQ,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAUpD,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,IAAI;IAK7B,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC;IAYxB,UAAU,IAAI,WAAW,CAAC,CAAC,CAAC;CAO7B"}
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js
deleted file mode 100644
index cb15946d..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js
+++ /dev/null
@@ -1,387 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-exports.GlobStream = exports.GlobWalker = exports.GlobUtil = void 0;
-/**
- * Single-use utility classes to provide functionality to the {@link Glob}
- * methods.
- *
- * @module
- */
-const minipass_1 = require("minipass");
-const ignore_js_1 = require("./ignore.js");
-const processor_js_1 = require("./processor.js");
-const makeIgnore = (ignore, opts) => typeof ignore === 'string' ? new ignore_js_1.Ignore([ignore], opts)
- : Array.isArray(ignore) ? new ignore_js_1.Ignore(ignore, opts)
- : ignore;
-/**
- * basic walking utilities that all the glob walker types use
- */
-class GlobUtil {
- path;
- patterns;
- opts;
- seen = new Set();
- paused = false;
- aborted = false;
- #onResume = [];
- #ignore;
- #sep;
- signal;
- maxDepth;
- includeChildMatches;
- constructor(patterns, path, opts) {
- this.patterns = patterns;
- this.path = path;
- this.opts = opts;
- this.#sep = !opts.posix && opts.platform === 'win32' ? '\\' : '/';
- this.includeChildMatches = opts.includeChildMatches !== false;
- if (opts.ignore || !this.includeChildMatches) {
- this.#ignore = makeIgnore(opts.ignore ?? [], opts);
- if (!this.includeChildMatches &&
- typeof this.#ignore.add !== 'function') {
- const m = 'cannot ignore child matches, ignore lacks add() method.';
- throw new Error(m);
- }
- }
- // ignore, always set with maxDepth, but it's optional on the
- // GlobOptions type
- /* c8 ignore start */
- this.maxDepth = opts.maxDepth || Infinity;
- /* c8 ignore stop */
- if (opts.signal) {
- this.signal = opts.signal;
- this.signal.addEventListener('abort', () => {
- this.#onResume.length = 0;
- });
- }
- }
- #ignored(path) {
- return this.seen.has(path) || !!this.#ignore?.ignored?.(path);
- }
- #childrenIgnored(path) {
- return !!this.#ignore?.childrenIgnored?.(path);
- }
- // backpressure mechanism
- pause() {
- this.paused = true;
- }
- resume() {
- /* c8 ignore start */
- if (this.signal?.aborted)
- return;
- /* c8 ignore stop */
- this.paused = false;
- let fn = undefined;
- while (!this.paused && (fn = this.#onResume.shift())) {
- fn();
- }
- }
- onResume(fn) {
- if (this.signal?.aborted)
- return;
- /* c8 ignore start */
- if (!this.paused) {
- fn();
- }
- else {
- /* c8 ignore stop */
- this.#onResume.push(fn);
- }
- }
- // do the requisite realpath/stat checking, and return the path
- // to add or undefined to filter it out.
- async matchCheck(e, ifDir) {
- if (ifDir && this.opts.nodir)
- return undefined;
- let rpc;
- if (this.opts.realpath) {
- rpc = e.realpathCached() || (await e.realpath());
- if (!rpc)
- return undefined;
- e = rpc;
- }
- const needStat = e.isUnknown() || this.opts.stat;
- const s = needStat ? await e.lstat() : e;
- if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
- const target = await s.realpath();
- /* c8 ignore start */
- if (target && (target.isUnknown() || this.opts.stat)) {
- await target.lstat();
- }
- /* c8 ignore stop */
- }
- return this.matchCheckTest(s, ifDir);
- }
- matchCheckTest(e, ifDir) {
- return (e &&
- (this.maxDepth === Infinity || e.depth() <= this.maxDepth) &&
- (!ifDir || e.canReaddir()) &&
- (!this.opts.nodir || !e.isDirectory()) &&
- (!this.opts.nodir ||
- !this.opts.follow ||
- !e.isSymbolicLink() ||
- !e.realpathCached()?.isDirectory()) &&
- !this.#ignored(e)) ?
- e
- : undefined;
- }
- matchCheckSync(e, ifDir) {
- if (ifDir && this.opts.nodir)
- return undefined;
- let rpc;
- if (this.opts.realpath) {
- rpc = e.realpathCached() || e.realpathSync();
- if (!rpc)
- return undefined;
- e = rpc;
- }
- const needStat = e.isUnknown() || this.opts.stat;
- const s = needStat ? e.lstatSync() : e;
- if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {
- const target = s.realpathSync();
- if (target && (target?.isUnknown() || this.opts.stat)) {
- target.lstatSync();
- }
- }
- return this.matchCheckTest(s, ifDir);
- }
- matchFinish(e, absolute) {
- if (this.#ignored(e))
- return;
- // we know we have an ignore if this is false, but TS doesn't
- if (!this.includeChildMatches && this.#ignore?.add) {
- const ign = `${e.relativePosix()}/**`;
- this.#ignore.add(ign);
- }
- const abs = this.opts.absolute === undefined ? absolute : this.opts.absolute;
- this.seen.add(e);
- const mark = this.opts.mark && e.isDirectory() ? this.#sep : '';
- // ok, we have what we need!
- if (this.opts.withFileTypes) {
- this.matchEmit(e);
- }
- else if (abs) {
- const abs = this.opts.posix ? e.fullpathPosix() : e.fullpath();
- this.matchEmit(abs + mark);
- }
- else {
- const rel = this.opts.posix ? e.relativePosix() : e.relative();
- const pre = this.opts.dotRelative && !rel.startsWith('..' + this.#sep) ?
- '.' + this.#sep
- : '';
- this.matchEmit(!rel ? '.' + mark : pre + rel + mark);
- }
- }
- async match(e, absolute, ifDir) {
- const p = await this.matchCheck(e, ifDir);
- if (p)
- this.matchFinish(p, absolute);
- }
- matchSync(e, absolute, ifDir) {
- const p = this.matchCheckSync(e, ifDir);
- if (p)
- this.matchFinish(p, absolute);
- }
- walkCB(target, patterns, cb) {
- /* c8 ignore start */
- if (this.signal?.aborted)
- cb();
- /* c8 ignore stop */
- this.walkCB2(target, patterns, new processor_js_1.Processor(this.opts), cb);
- }
- walkCB2(target, patterns, processor, cb) {
- if (this.#childrenIgnored(target))
- return cb();
- if (this.signal?.aborted)
- cb();
- if (this.paused) {
- this.onResume(() => this.walkCB2(target, patterns, processor, cb));
- return;
- }
- processor.processPatterns(target, patterns);
- // done processing. all of the above is sync, can be abstracted out.
- // subwalks is a map of paths to the entry filters they need
- // matches is a map of paths to [absolute, ifDir] tuples.
- let tasks = 1;
- const next = () => {
- if (--tasks === 0)
- cb();
- };
- for (const [m, absolute, ifDir] of processor.matches.entries()) {
- if (this.#ignored(m))
- continue;
- tasks++;
- this.match(m, absolute, ifDir).then(() => next());
- }
- for (const t of processor.subwalkTargets()) {
- if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
- continue;
- }
- tasks++;
- const childrenCached = t.readdirCached();
- if (t.calledReaddir())
- this.walkCB3(t, childrenCached, processor, next);
- else {
- t.readdirCB((_, entries) => this.walkCB3(t, entries, processor, next), true);
- }
- }
- next();
- }
- walkCB3(target, entries, processor, cb) {
- processor = processor.filterEntries(target, entries);
- let tasks = 1;
- const next = () => {
- if (--tasks === 0)
- cb();
- };
- for (const [m, absolute, ifDir] of processor.matches.entries()) {
- if (this.#ignored(m))
- continue;
- tasks++;
- this.match(m, absolute, ifDir).then(() => next());
- }
- for (const [target, patterns] of processor.subwalks.entries()) {
- tasks++;
- this.walkCB2(target, patterns, processor.child(), next);
- }
- next();
- }
- walkCBSync(target, patterns, cb) {
- /* c8 ignore start */
- if (this.signal?.aborted)
- cb();
- /* c8 ignore stop */
- this.walkCB2Sync(target, patterns, new processor_js_1.Processor(this.opts), cb);
- }
- walkCB2Sync(target, patterns, processor, cb) {
- if (this.#childrenIgnored(target))
- return cb();
- if (this.signal?.aborted)
- cb();
- if (this.paused) {
- this.onResume(() => this.walkCB2Sync(target, patterns, processor, cb));
- return;
- }
- processor.processPatterns(target, patterns);
- // done processing. all of the above is sync, can be abstracted out.
- // subwalks is a map of paths to the entry filters they need
- // matches is a map of paths to [absolute, ifDir] tuples.
- let tasks = 1;
- const next = () => {
- if (--tasks === 0)
- cb();
- };
- for (const [m, absolute, ifDir] of processor.matches.entries()) {
- if (this.#ignored(m))
- continue;
- this.matchSync(m, absolute, ifDir);
- }
- for (const t of processor.subwalkTargets()) {
- if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {
- continue;
- }
- tasks++;
- const children = t.readdirSync();
- this.walkCB3Sync(t, children, processor, next);
- }
- next();
- }
- walkCB3Sync(target, entries, processor, cb) {
- processor = processor.filterEntries(target, entries);
- let tasks = 1;
- const next = () => {
- if (--tasks === 0)
- cb();
- };
- for (const [m, absolute, ifDir] of processor.matches.entries()) {
- if (this.#ignored(m))
- continue;
- this.matchSync(m, absolute, ifDir);
- }
- for (const [target, patterns] of processor.subwalks.entries()) {
- tasks++;
- this.walkCB2Sync(target, patterns, processor.child(), next);
- }
- next();
- }
-}
-exports.GlobUtil = GlobUtil;
-class GlobWalker extends GlobUtil {
- matches = new Set();
- constructor(patterns, path, opts) {
- super(patterns, path, opts);
- }
- matchEmit(e) {
- this.matches.add(e);
- }
- async walk() {
- if (this.signal?.aborted)
- throw this.signal.reason;
- if (this.path.isUnknown()) {
- await this.path.lstat();
- }
- await new Promise((res, rej) => {
- this.walkCB(this.path, this.patterns, () => {
- if (this.signal?.aborted) {
- rej(this.signal.reason);
- }
- else {
- res(this.matches);
- }
- });
- });
- return this.matches;
- }
- walkSync() {
- if (this.signal?.aborted)
- throw this.signal.reason;
- if (this.path.isUnknown()) {
- this.path.lstatSync();
- }
- // nothing for the callback to do, because this never pauses
- this.walkCBSync(this.path, this.patterns, () => {
- if (this.signal?.aborted)
- throw this.signal.reason;
- });
- return this.matches;
- }
-}
-exports.GlobWalker = GlobWalker;
-class GlobStream extends GlobUtil {
- results;
- constructor(patterns, path, opts) {
- super(patterns, path, opts);
- this.results = new minipass_1.Minipass({
- signal: this.signal,
- objectMode: true,
- });
- this.results.on('drain', () => this.resume());
- this.results.on('resume', () => this.resume());
- }
- matchEmit(e) {
- this.results.write(e);
- if (!this.results.flowing)
- this.pause();
- }
- stream() {
- const target = this.path;
- if (target.isUnknown()) {
- target.lstat().then(() => {
- this.walkCB(target, this.patterns, () => this.results.end());
- });
- }
- else {
- this.walkCB(target, this.patterns, () => this.results.end());
- }
- return this.results;
- }
- streamSync() {
- if (this.path.isUnknown()) {
- this.path.lstatSync();
- }
- this.walkCBSync(this.path, this.patterns, () => this.results.end());
- return this.results;
- }
-}
-exports.GlobStream = GlobStream;
-//# sourceMappingURL=walker.js.map
\ No newline at end of file
diff --git a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js.map b/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js.map
deleted file mode 100644
index 49b01386..00000000
--- a/node_modules/@vercel/nft/node_modules/glob/dist/commonjs/walker.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"walker.js","sourceRoot":"","sources":["../../src/walker.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\n * Single-use utility classes to provide functionality to the {@link Glob}\n * methods.\n *\n * @module\n */\nimport { Minipass } from 'minipass'\nimport { Path } from 'path-scurry'\nimport { Ignore, IgnoreLike } from './ignore.js'\n\n// XXX can we somehow make it so that it NEVER processes a given path more than\n// once, enough that the match set tracking is no longer needed? that'd speed\n// things up a lot. Or maybe bring back nounique, and skip it in that case?\n\n// a single minimatch set entry with 1 or more parts\nimport { Pattern } from './pattern.js'\nimport { Processor } from './processor.js'\n\nexport interface GlobWalkerOpts {\n absolute?: boolean\n allowWindowsEscape?: boolean\n cwd?: string | URL\n dot?: boolean\n dotRelative?: boolean\n follow?: boolean\n ignore?: string | string[] | IgnoreLike\n mark?: boolean\n matchBase?: boolean\n // Note: maxDepth here means \"maximum actual Path.depth()\",\n // not \"maximum depth beyond cwd\"\n maxDepth?: number\n nobrace?: boolean\n nocase?: boolean\n nodir?: boolean\n noext?: boolean\n noglobstar?: boolean\n platform?: NodeJS.Platform\n posix?: boolean\n realpath?: boolean\n root?: string\n stat?: boolean\n signal?: AbortSignal\n windowsPathsNoEscape?: boolean\n withFileTypes?: boolean\n includeChildMatches?: boolean\n}\n\nexport type GWOFileTypesTrue = GlobWalkerOpts & {\n withFileTypes: true\n}\nexport type GWOFileTypesFalse = GlobWalkerOpts & {\n withFileTypes: false\n}\nexport type GWOFileTypesUnset = GlobWalkerOpts & {\n withFileTypes?: undefined\n}\n\nexport type Result =\n O extends GWOFileTypesTrue ? Path\n : O extends GWOFileTypesFalse ? string\n : O extends GWOFileTypesUnset ? string\n : Path | string\n\nexport type Matches =\n O extends GWOFileTypesTrue ? Set\n : O extends GWOFileTypesFalse ? Set\n : O extends GWOFileTypesUnset ? Set\n : Set\n\nexport type MatchStream = Minipass<\n Result,\n Result\n>\n\nconst makeIgnore = (\n ignore: string | string[] | IgnoreLike,\n opts: GlobWalkerOpts,\n): IgnoreLike =>\n typeof ignore === 'string' ? new Ignore([ignore], opts)\n : Array.isArray(ignore) ? new Ignore(ignore, opts)\n : ignore\n\n/**\n * basic walking utilities that all the glob walker types use\n */\nexport abstract class GlobUtil {\n path: Path\n patterns: Pattern[]\n opts: O\n seen: Set = new Set()\n paused: boolean = false\n aborted: boolean = false\n #onResume: (() => any)[] = []\n #ignore?: IgnoreLike\n #sep: '\\\\' | '/'\n signal?: AbortSignal\n maxDepth: number\n includeChildMatches: boolean\n\n constructor(patterns: Pattern[], path: Path, opts: O)\n constructor(patterns: Pattern[], path: Path, opts: O) {\n this.patterns = patterns\n this.path = path\n this.opts = opts\n this.#sep = !opts.posix && opts.platform === 'win32' ? '\\\\' : '/'\n this.includeChildMatches = opts.includeChildMatches !== false\n if (opts.ignore || !this.includeChildMatches) {\n this.#ignore = makeIgnore(opts.ignore ?? [], opts)\n if (\n !this.includeChildMatches &&\n typeof this.#ignore.add !== 'function'\n ) {\n const m = 'cannot ignore child matches, ignore lacks add() method.'\n throw new Error(m)\n }\n }\n // ignore, always set with maxDepth, but it's optional on the\n // GlobOptions type\n /* c8 ignore start */\n this.maxDepth = opts.maxDepth || Infinity\n /* c8 ignore stop */\n if (opts.signal) {\n this.signal = opts.signal\n this.signal.addEventListener('abort', () => {\n this.#onResume.length = 0\n })\n }\n }\n\n #ignored(path: Path): boolean {\n return this.seen.has(path) || !!this.#ignore?.ignored?.(path)\n }\n #childrenIgnored(path: Path): boolean {\n return !!this.#ignore?.childrenIgnored?.(path)\n }\n\n // backpressure mechanism\n pause() {\n this.paused = true\n }\n resume() {\n /* c8 ignore start */\n if (this.signal?.aborted) return\n /* c8 ignore stop */\n this.paused = false\n let fn: (() => any) | undefined = undefined\n while (!this.paused && (fn = this.#onResume.shift())) {\n fn()\n }\n }\n onResume(fn: () => any) {\n if (this.signal?.aborted) return\n /* c8 ignore start */\n if (!this.paused) {\n fn()\n } else {\n /* c8 ignore stop */\n this.#onResume.push(fn)\n }\n }\n\n // do the requisite realpath/stat checking, and return the path\n // to add or undefined to filter it out.\n async matchCheck(e: Path, ifDir: boolean): Promise