diff --git a/node_modules/cssesc/package.json b/node_modules/cssesc/package.json
new file mode 100644
index 0000000..076c84d
--- /dev/null
+++ b/node_modules/cssesc/package.json
@@ -0,0 +1,51 @@
+{
+ "name": "cssesc",
+ "version": "3.0.0",
+ "description": "A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.",
+ "homepage": "https://mths.be/cssesc",
+ "engines": {
+ "node": ">=4"
+ },
+ "main": "cssesc.js",
+ "bin": "bin/cssesc",
+ "man": "man/cssesc.1",
+ "keywords": [
+ "css",
+ "escape",
+ "identifier",
+ "string",
+ "tool"
+ ],
+ "license": "MIT",
+ "author": {
+ "name": "Mathias Bynens",
+ "url": "https://mathiasbynens.be/"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/mathiasbynens/cssesc.git"
+ },
+ "bugs": "https://github.com/mathiasbynens/cssesc/issues",
+ "files": [
+ "LICENSE-MIT.txt",
+ "cssesc.js",
+ "bin/",
+ "man/"
+ ],
+ "scripts": {
+ "build": "grunt template && babel cssesc.js -o cssesc.js",
+ "test": "mocha tests",
+ "cover": "istanbul cover --report html node_modules/.bin/_mocha tests -- -u exports -R spec"
+ },
+ "devDependencies": {
+ "babel-cli": "^6.26.0",
+ "babel-preset-env": "^1.6.1",
+ "codecov": "^1.0.1",
+ "grunt": "^1.0.1",
+ "grunt-template": "^1.0.0",
+ "istanbul": "^0.4.4",
+ "mocha": "^2.5.3",
+ "regenerate": "^1.2.1",
+ "requirejs": "^2.1.16"
+ }
+}
diff --git a/node_modules/didyoumean/LICENSE b/node_modules/didyoumean/LICENSE
new file mode 100644
index 0000000..32c23db
--- /dev/null
+++ b/node_modules/didyoumean/LICENSE
@@ -0,0 +1,14 @@
+## License
+
+didYouMean.js copyright (c) 2013 Dave Porter.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License
+[here](http://www.apache.org/licenses/LICENSE-2.0).
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/node_modules/didyoumean/README.md b/node_modules/didyoumean/README.md
new file mode 100644
index 0000000..cd16698
--- /dev/null
+++ b/node_modules/didyoumean/README.md
@@ -0,0 +1,134 @@
+didYouMean.js - A simple JavaScript matching engine
+===================================================
+
+[Available on GitHub](https://github.com/dcporter/didyoumean.js).
+
+A super-simple, highly optimized JS library for matching human-quality input to a list of potential
+matches. You can use it to suggest a misspelled command-line utility option to a user, or to offer
+links to nearby valid URLs on your 404 page. (The examples below are taken from a personal project,
+my [HTML5 business card](http://dcporter.aws.af.cm/me), which uses didYouMean.js to suggest correct
+URLs from misspelled ones, such as [dcporter.aws.af.cm/me/instagarm](http://dcporter.aws.af.cm/me/instagarm).)
+Uses the [Levenshtein distance algorithm](https://en.wikipedia.org/wiki/Levenshtein_distance).
+
+didYouMean.js works in the browser as well as in node.js. To install it for use in node:
+
+```
+npm install didyoumean
+```
+
+
+Examples
+--------
+
+Matching against a list of strings:
+```
+var input = 'insargrm'
+var list = ['facebook', 'twitter', 'instagram', 'linkedin'];
+console.log(didYouMean(input, list));
+> 'instagram'
+// The method matches 'insargrm' to 'instagram'.
+
+input = 'google plus';
+console.log(didYouMean(input, list));
+> null
+// The method was unable to find 'google plus' in the list of options.
+```
+
+Matching against a list of objects:
+```
+var input = 'insargrm';
+var list = [ { id: 'facebook' }, { id: 'twitter' }, { id: 'instagram' }, { id: 'linkedin' } ];
+var key = 'id';
+console.log(didYouMean(input, list, key));
+> 'instagram'
+// The method returns the matching value.
+
+didYouMean.returnWinningObject = true;
+console.log(didYouMean(input, list, key));
+> { id: 'instagram' }
+// The method returns the matching object.
+```
+
+
+didYouMean(str, list, [key])
+----------------------------
+
+- str: The string input to match.
+- list: An array of strings or objects to match against.
+- key (OPTIONAL): If your list array contains objects, you must specify the key which contains the string
+ to match against.
+
+Returns: the closest matching string, or null if no strings exceed the threshold.
+
+
+Options
+-------
+
+Options are set on the didYouMean function object. You may change them at any time.
+
+### threshold
+
+ By default, the method will only return strings whose edit distance is less than 40% (0.4x) of their length.
+ For example, if a ten-letter string is five edits away from its nearest match, the method will return null.
+
+ You can control this by setting the "threshold" value on the didYouMean function. For example, to set the
+ edit distance threshold to 50% of the input string's length:
+
+ ```
+ didYouMean.threshold = 0.5;
+ ```
+
+ To return the nearest match no matter the threshold, set this value to null.
+
+### thresholdAbsolute
+
+ This option behaves the same as threshold, but instead takes an integer number of edit steps. For example,
+ if thresholdAbsolute is set to 20 (the default), then the method will only return strings whose edit distance
+ is less than 20. Both options apply.
+
+### caseSensitive
+
+ By default, the method will perform case-insensitive comparisons. If you wish to force case sensitivity, set
+ the "caseSensitive" value to true:
+
+ ```
+ didYouMean.caseSensitive = true;
+ ```
+
+### nullResultValue
+
+ By default, the method will return null if there is no sufficiently close match. You can change this value here.
+
+### returnWinningObject
+
+ By default, the method will return the winning string value (if any). If your list contains objects rather
+ than strings, you may set returnWinningObject to true.
+
+ ```
+ didYouMean.returnWinningObject = true;
+ ```
+
+ This option has no effect on lists of strings.
+
+### returnFirstMatch
+
+ By default, the method will search all values and return the closest match. If you're simply looking for a "good-
+ enough" match, you can set your thresholds appropriately and set returnFirstMatch to true to substantially speed
+ things up.
+
+
+License
+-------
+
+didYouMean copyright (c) 2013-2014 Dave Porter.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License
+[here](http://www.apache.org/licenses/LICENSE-2.0).
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/node_modules/didyoumean/didYouMean-1.2.1.js b/node_modules/didyoumean/didYouMean-1.2.1.js
new file mode 100644
index 0000000..febb30e
--- /dev/null
+++ b/node_modules/didyoumean/didYouMean-1.2.1.js
@@ -0,0 +1,274 @@
+/*
+
+didYouMean.js - A simple JavaScript matching engine
+===================================================
+
+[Available on GitHub](https://github.com/dcporter/didyoumean.js).
+
+A super-simple, highly optimized JS library for matching human-quality input to a list of potential
+matches. You can use it to suggest a misspelled command-line utility option to a user, or to offer
+links to nearby valid URLs on your 404 page. (The examples below are taken from a personal project,
+my [HTML5 business card](http://dcporter.aws.af.cm/me), which uses didYouMean.js to suggest correct
+URLs from misspelled ones, such as [dcporter.aws.af.cm/me/instagarm](http://dcporter.aws.af.cm/me/instagarm).)
+Uses the [Levenshtein distance algorithm](https://en.wikipedia.org/wiki/Levenshtein_distance).
+
+didYouMean.js works in the browser as well as in node.js. To install it for use in node:
+
+```
+npm install didyoumean
+```
+
+
+Examples
+--------
+
+Matching against a list of strings:
+```
+var input = 'insargrm'
+var list = ['facebook', 'twitter', 'instagram', 'linkedin'];
+console.log(didYouMean(input, list));
+> 'instagram'
+// The method matches 'insargrm' to 'instagram'.
+
+input = 'google plus';
+console.log(didYouMean(input, list));
+> null
+// The method was unable to find 'google plus' in the list of options.
+```
+
+Matching against a list of objects:
+```
+var input = 'insargrm';
+var list = [ { id: 'facebook' }, { id: 'twitter' }, { id: 'instagram' }, { id: 'linkedin' } ];
+var key = 'id';
+console.log(didYouMean(input, list, key));
+> 'instagram'
+// The method returns the matching value.
+
+didYouMean.returnWinningObject = true;
+console.log(didYouMean(input, list, key));
+> { id: 'instagram' }
+// The method returns the matching object.
+```
+
+
+didYouMean(str, list, [key])
+----------------------------
+
+- str: The string input to match.
+- list: An array of strings or objects to match against.
+- key (OPTIONAL): If your list array contains objects, you must specify the key which contains the string
+ to match against.
+
+Returns: the closest matching string, or null if no strings exceed the threshold.
+
+
+Options
+-------
+
+Options are set on the didYouMean function object. You may change them at any time.
+
+### threshold
+
+ By default, the method will only return strings whose edit distance is less than 40% (0.4x) of their length.
+ For example, if a ten-letter string is five edits away from its nearest match, the method will return null.
+
+ You can control this by setting the "threshold" value on the didYouMean function. For example, to set the
+ edit distance threshold to 50% of the input string's length:
+
+ ```
+ didYouMean.threshold = 0.5;
+ ```
+
+ To return the nearest match no matter the threshold, set this value to null.
+
+### thresholdAbsolute
+
+ This option behaves the same as threshold, but instead takes an integer number of edit steps. For example,
+ if thresholdAbsolute is set to 20 (the default), then the method will only return strings whose edit distance
+ is less than 20. Both options apply.
+
+### caseSensitive
+
+ By default, the method will perform case-insensitive comparisons. If you wish to force case sensitivity, set
+ the "caseSensitive" value to true:
+
+ ```
+ didYouMean.caseSensitive = true;
+ ```
+
+### nullResultValue
+
+ By default, the method will return null if there is no sufficiently close match. You can change this value here.
+
+### returnWinningObject
+
+ By default, the method will return the winning string value (if any). If your list contains objects rather
+ than strings, you may set returnWinningObject to true.
+
+ ```
+ didYouMean.returnWinningObject = true;
+ ```
+
+ This option has no effect on lists of strings.
+
+### returnFirstMatch
+
+ By default, the method will search all values and return the closest match. If you're simply looking for a "good-
+ enough" match, you can set your thresholds appropriately and set returnFirstMatch to true to substantially speed
+ things up.
+
+
+License
+-------
+
+didYouMean copyright (c) 2013-2014 Dave Porter.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License
+[here](http://www.apache.org/licenses/LICENSE-2.0).
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+(function() {
+ "use strict";
+
+ // The didYouMean method.
+ function didYouMean(str, list, key) {
+ if (!str) return null;
+
+ // If we're running a case-insensitive search, smallify str.
+ if (!didYouMean.caseSensitive) { str = str.toLowerCase(); }
+
+ // Calculate the initial value (the threshold) if present.
+ var thresholdRelative = didYouMean.threshold === null ? null : didYouMean.threshold * str.length,
+ thresholdAbsolute = didYouMean.thresholdAbsolute,
+ winningVal;
+ if (thresholdRelative !== null && thresholdAbsolute !== null) winningVal = Math.min(thresholdRelative, thresholdAbsolute);
+ else if (thresholdRelative !== null) winningVal = thresholdRelative;
+ else if (thresholdAbsolute !== null) winningVal = thresholdAbsolute;
+ else winningVal = null;
+
+ // Get the edit distance to each option. If the closest one is less than 40% (by default) of str's length,
+ // then return it.
+ var winner, candidate, testCandidate, val,
+ i, len = list.length;
+ for (i = 0; i < len; i++) {
+ // Get item.
+ candidate = list[i];
+ // If there's a key, get the candidate value out of the object.
+ if (key) { candidate = candidate[key]; }
+ // Gatekeep.
+ if (!candidate) { continue; }
+ // If we're running a case-insensitive search, smallify the candidate.
+ if (!didYouMean.caseSensitive) { testCandidate = candidate.toLowerCase(); }
+ else { testCandidate = candidate; }
+ // Get and compare edit distance.
+ val = getEditDistance(str, testCandidate, winningVal);
+ // If this value is smaller than our current winning value, OR if we have no winning val yet (i.e. the
+ // threshold option is set to null, meaning the caller wants a match back no matter how bad it is), then
+ // this is our new winner.
+ if (winningVal === null || val < winningVal) {
+ winningVal = val;
+ // Set the winner to either the value or its object, depending on the returnWinningObject option.
+ if (key && didYouMean.returnWinningObject) winner = list[i];
+ else winner = candidate;
+ // If we're returning the first match, return it now.
+ if (didYouMean.returnFirstMatch) return winner;
+ }
+ }
+
+ // If we have a winner, return it.
+ return winner || didYouMean.nullResultValue;
+ }
+
+ // Set default options.
+ didYouMean.threshold = 0.4;
+ didYouMean.thresholdAbsolute = 20;
+ didYouMean.caseSensitive = false;
+ didYouMean.nullResultValue = null;
+ didYouMean.returnWinningObject = null;
+ didYouMean.returnFirstMatch = false;
+
+ // Expose.
+ // In node...
+ if (typeof module !== 'undefined' && module.exports) {
+ module.exports = didYouMean;
+ }
+ // Otherwise...
+ else {
+ window.didYouMean = didYouMean;
+ }
+
+ var MAX_INT = Math.pow(2,32) - 1; // We could probably go higher than this, but for practical reasons let's not.
+ function getEditDistance(a, b, max) {
+ // Handle null or undefined max.
+ max = max || max === 0 ? max : MAX_INT;
+
+ var lena = a.length;
+ var lenb = b.length;
+
+ // Fast path - no A or B.
+ if (lena === 0) return Math.min(max + 1, lenb);
+ if (lenb === 0) return Math.min(max + 1, lena);
+
+ // Fast path - length diff larger than max.
+ if (Math.abs(lena - lenb) > max) return max + 1;
+
+ // Slow path.
+ var matrix = [],
+ i, j, colMin, minJ, maxJ;
+
+ // Set up the first row ([0, 1, 2, 3, etc]).
+ for (i = 0; i <= lenb; i++) { matrix[i] = [i]; }
+
+ // Set up the first column (same).
+ for (j = 0; j <= lena; j++) { matrix[0][j] = j; }
+
+ // Loop over the rest of the columns.
+ for (i = 1; i <= lenb; i++) {
+ colMin = MAX_INT;
+ minJ = 1;
+ if (i > max) minJ = i - max;
+ maxJ = lenb + 1;
+ if (maxJ > max + i) maxJ = max + i;
+ // Loop over the rest of the rows.
+ for (j = 1; j <= lena; j++) {
+ // If j is out of bounds, just put a large value in the slot.
+ if (j < minJ || j > maxJ) {
+ matrix[i][j] = max + 1;
+ }
+
+ // Otherwise do the normal Levenshtein thing.
+ else {
+ // If the characters are the same, there's no change in edit distance.
+ if (b.charAt(i - 1) === a.charAt(j - 1)) {
+ matrix[i][j] = matrix[i - 1][j - 1];
+ }
+ // Otherwise, see if we're substituting, inserting or deleting.
+ else {
+ matrix[i][j] = Math.min(matrix[i - 1][j - 1] + 1, // Substitute
+ Math.min(matrix[i][j - 1] + 1, // Insert
+ matrix[i - 1][j] + 1)); // Delete
+ }
+ }
+
+ // Either way, update colMin.
+ if (matrix[i][j] < colMin) colMin = matrix[i][j];
+ }
+
+ // If this column's minimum is greater than the allowed maximum, there's no point
+ // in going on with life.
+ if (colMin > max) return max + 1;
+ }
+ // If we made it this far without running into the max, then return the final matrix value.
+ return matrix[lenb][lena];
+ }
+
+})();
diff --git a/node_modules/didyoumean/didYouMean-1.2.1.min.js b/node_modules/didyoumean/didYouMean-1.2.1.min.js
new file mode 100644
index 0000000..c41abd8
--- /dev/null
+++ b/node_modules/didyoumean/didYouMean-1.2.1.min.js
@@ -0,0 +1,17 @@
+/*
+ didYouMean.js copyright (c) 2013-2014 Dave Porter.
+
+ [Available on GitHub](https://github.com/dcporter/didyoumean.js).
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License
+ [here](http://www.apache.org/licenses/LICENSE-2.0).
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+(function(){"use strict";function e(t,r,i){if(!t)return null;if(!e.caseSensitive){t=t.toLowerCase()}var s=e.threshold===null?null:e.threshold*t.length,o=e.thresholdAbsolute,u;if(s!==null&&o!==null)u=Math.min(s,o);else if(s!==null)u=s;else if(o!==null)u=o;else u=null;var a,f,l,c,h,p=r.length;for(h=0;hr)return r+1;var o=[],u,a,f,l,c;for(u=0;u<=s;u++){o[u]=[u]}for(a=0;a<=i;a++){o[0][a]=a}for(u=1;u<=s;u++){f=t;l=1;if(u>r)l=u-r;c=s+1;if(c>r+u)c=r+u;for(a=1;a<=i;a++){if(ac){o[u][a]=r+1}else{if(n.charAt(u-1)===e.charAt(a-1)){o[u][a]=o[u-1][a-1]}else{o[u][a]=Math.min(o[u-1][a-1]+1,Math.min(o[u][a-1]+1,o[u-1][a]+1))}}if(o[u][a]r)return r+1}return o[s][i]}e.threshold=.4;e.thresholdAbsolute=20;e.caseSensitive=false;e.nullResultValue=null;e.returnWinningObject=null;e.returnFirstMatch=false;if(typeof module!=="undefined"&&module.exports){module.exports=e}else{window.didYouMean=e}var t=Math.pow(2,32)-1})();
\ No newline at end of file
diff --git a/node_modules/didyoumean/package.json b/node_modules/didyoumean/package.json
new file mode 100644
index 0000000..1301d03
--- /dev/null
+++ b/node_modules/didyoumean/package.json
@@ -0,0 +1,27 @@
+{
+ "name": "didyoumean",
+ "version": "1.2.2",
+ "description": "Match human-quality input to potential matches by edit distance.",
+ "homepage": "https://github.com/dcporter/didyoumean.js",
+ "author": {
+ "name": "Dave Porter",
+ "email": "dcporter@gmail.com",
+ "url": "http://dcporter.net/"
+ },
+ "keywords": [
+ "didyoumean",
+ "mean",
+ "edit",
+ "distance",
+ "levenshtein"
+ ],
+ "main": "./didYouMean-1.2.1.js",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/dcporter/didyoumean.js.git"
+ },
+ "bugs": {
+ "url": "https://github.com/dcporter/didyoumean.js/issues"
+ },
+ "license": "Apache-2.0"
+}
diff --git a/node_modules/dlv/README.md b/node_modules/dlv/README.md
new file mode 100644
index 0000000..6a8429d
--- /dev/null
+++ b/node_modules/dlv/README.md
@@ -0,0 +1,76 @@
+# `dlv(obj, keypath)` [](https://npmjs.com/package/dlv) [](https://travis-ci.org/developit/dlv)
+
+> Safely get a dot-notated path within a nested object, with ability to return a default if the full key path does not exist or the value is undefined
+
+
+### Why?
+
+Smallest possible implementation: only **130 bytes.**
+
+You could write this yourself, but then you'd have to write [tests].
+
+Supports ES Modules, CommonJS and globals.
+
+
+### Installation
+
+`npm install --save dlv`
+
+
+### Usage
+
+`delve(object, keypath, [default])`
+
+```js
+import delve from 'dlv';
+
+let obj = {
+ a: {
+ b: {
+ c: 1,
+ d: undefined,
+ e: null
+ }
+ }
+};
+
+//use string dot notation for keys
+delve(obj, 'a.b.c') === 1;
+
+//or use an array key
+delve(obj, ['a', 'b', 'c']) === 1;
+
+delve(obj, 'a.b') === obj.a.b;
+
+//returns undefined if the full key path does not exist and no default is specified
+delve(obj, 'a.b.f') === undefined;
+
+//optional third parameter for default if the full key in path is missing
+delve(obj, 'a.b.f', 'foo') === 'foo';
+
+//or if the key exists but the value is undefined
+delve(obj, 'a.b.d', 'foo') === 'foo';
+
+//Non-truthy defined values are still returned if they exist at the full keypath
+delve(obj, 'a.b.e', 'foo') === null;
+
+//undefined obj or key returns undefined, unless a default is supplied
+delve(undefined, 'a.b.c') === undefined;
+delve(undefined, 'a.b.c', 'foo') === 'foo';
+delve(obj, undefined, 'foo') === 'foo';
+```
+
+
+### Setter Counterparts
+
+- [dset](https://github.com/lukeed/dset) by [@lukeed](https://github.com/lukeed) is the spiritual "set" counterpart of `dlv` and very fast.
+- [bury](https://github.com/kalmbach/bury) by [@kalmbach](https://github.com/kalmbach) does the opposite of `dlv` and is implemented in a very similar manner.
+
+
+### License
+
+[MIT](https://oss.ninja/mit/developit/)
+
+
+[preact]: https://github.com/developit/preact
+[tests]: https://github.com/developit/dlv/blob/master/test.js
diff --git a/node_modules/dlv/dist/dlv.es.js b/node_modules/dlv/dist/dlv.es.js
new file mode 100644
index 0000000..06b981b
--- /dev/null
+++ b/node_modules/dlv/dist/dlv.es.js
@@ -0,0 +1,2 @@
+export default function(t,e,l,n,r){for(e=e.split?e.split("."):e,n=0;n (http://jasonformat.com)",
+ "repository": "developit/dlv",
+ "license": "MIT",
+ "devDependencies": {
+ "microbundle": "^0.11.0"
+ }
+}
diff --git a/node_modules/eastasianwidth/README.md b/node_modules/eastasianwidth/README.md
new file mode 100644
index 0000000..a8b71ee
--- /dev/null
+++ b/node_modules/eastasianwidth/README.md
@@ -0,0 +1,32 @@
+# East Asian Width
+
+Get [East Asian Width](http://www.unicode.org/reports/tr11/) from a character.
+
+'F'(Fullwidth), 'H'(Halfwidth), 'W'(Wide), 'Na'(Narrow), 'A'(Ambiguous) or 'N'(Natural).
+
+Original Code is [東アジアの文字幅 (East Asian Width) の判定 - 中途](http://d.hatena.ne.jp/takenspc/20111126#1322252878).
+
+## Install
+
+ $ npm install eastasianwidth
+
+## Usage
+
+ var eaw = require('eastasianwidth');
+ console.log(eaw.eastAsianWidth('₩')) // 'F'
+ console.log(eaw.eastAsianWidth('。')) // 'H'
+ console.log(eaw.eastAsianWidth('뀀')) // 'W'
+ console.log(eaw.eastAsianWidth('a')) // 'Na'
+ console.log(eaw.eastAsianWidth('①')) // 'A'
+ console.log(eaw.eastAsianWidth('ف')) // 'N'
+
+ console.log(eaw.characterLength('₩')) // 2
+ console.log(eaw.characterLength('。')) // 1
+ console.log(eaw.characterLength('뀀')) // 2
+ console.log(eaw.characterLength('a')) // 1
+ console.log(eaw.characterLength('①')) // 2
+ console.log(eaw.characterLength('ف')) // 1
+
+ console.log(eaw.length('あいうえお')) // 10
+ console.log(eaw.length('abcdefg')) // 7
+ console.log(eaw.length('¢₩。ᅵㄅ뀀¢⟭a⊙①بف')) // 19
diff --git a/node_modules/eastasianwidth/eastasianwidth.js b/node_modules/eastasianwidth/eastasianwidth.js
new file mode 100644
index 0000000..7d0aa0f
--- /dev/null
+++ b/node_modules/eastasianwidth/eastasianwidth.js
@@ -0,0 +1,311 @@
+var eaw = {};
+
+if ('undefined' == typeof module) {
+ window.eastasianwidth = eaw;
+} else {
+ module.exports = eaw;
+}
+
+eaw.eastAsianWidth = function(character) {
+ var x = character.charCodeAt(0);
+ var y = (character.length == 2) ? character.charCodeAt(1) : 0;
+ var codePoint = x;
+ if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {
+ x &= 0x3FF;
+ y &= 0x3FF;
+ codePoint = (x << 10) | y;
+ codePoint += 0x10000;
+ }
+
+ if ((0x3000 == codePoint) ||
+ (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
+ (0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {
+ return 'F';
+ }
+ if ((0x20A9 == codePoint) ||
+ (0xFF61 <= codePoint && codePoint <= 0xFFBE) ||
+ (0xFFC2 <= codePoint && codePoint <= 0xFFC7) ||
+ (0xFFCA <= codePoint && codePoint <= 0xFFCF) ||
+ (0xFFD2 <= codePoint && codePoint <= 0xFFD7) ||
+ (0xFFDA <= codePoint && codePoint <= 0xFFDC) ||
+ (0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {
+ return 'H';
+ }
+ if ((0x1100 <= codePoint && codePoint <= 0x115F) ||
+ (0x11A3 <= codePoint && codePoint <= 0x11A7) ||
+ (0x11FA <= codePoint && codePoint <= 0x11FF) ||
+ (0x2329 <= codePoint && codePoint <= 0x232A) ||
+ (0x2E80 <= codePoint && codePoint <= 0x2E99) ||
+ (0x2E9B <= codePoint && codePoint <= 0x2EF3) ||
+ (0x2F00 <= codePoint && codePoint <= 0x2FD5) ||
+ (0x2FF0 <= codePoint && codePoint <= 0x2FFB) ||
+ (0x3001 <= codePoint && codePoint <= 0x303E) ||
+ (0x3041 <= codePoint && codePoint <= 0x3096) ||
+ (0x3099 <= codePoint && codePoint <= 0x30FF) ||
+ (0x3105 <= codePoint && codePoint <= 0x312D) ||
+ (0x3131 <= codePoint && codePoint <= 0x318E) ||
+ (0x3190 <= codePoint && codePoint <= 0x31BA) ||
+ (0x31C0 <= codePoint && codePoint <= 0x31E3) ||
+ (0x31F0 <= codePoint && codePoint <= 0x321E) ||
+ (0x3220 <= codePoint && codePoint <= 0x3247) ||
+ (0x3250 <= codePoint && codePoint <= 0x32FE) ||
+ (0x3300 <= codePoint && codePoint <= 0x4DBF) ||
+ (0x4E00 <= codePoint && codePoint <= 0xA48C) ||
+ (0xA490 <= codePoint && codePoint <= 0xA4C6) ||
+ (0xA960 <= codePoint && codePoint <= 0xA97C) ||
+ (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
+ (0xD7B0 <= codePoint && codePoint <= 0xD7C6) ||
+ (0xD7CB <= codePoint && codePoint <= 0xD7FB) ||
+ (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
+ (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
+ (0xFE30 <= codePoint && codePoint <= 0xFE52) ||
+ (0xFE54 <= codePoint && codePoint <= 0xFE66) ||
+ (0xFE68 <= codePoint && codePoint <= 0xFE6B) ||
+ (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
+ (0x1F200 <= codePoint && codePoint <= 0x1F202) ||
+ (0x1F210 <= codePoint && codePoint <= 0x1F23A) ||
+ (0x1F240 <= codePoint && codePoint <= 0x1F248) ||
+ (0x1F250 <= codePoint && codePoint <= 0x1F251) ||
+ (0x20000 <= codePoint && codePoint <= 0x2F73F) ||
+ (0x2B740 <= codePoint && codePoint <= 0x2FFFD) ||
+ (0x30000 <= codePoint && codePoint <= 0x3FFFD)) {
+ return 'W';
+ }
+ if ((0x0020 <= codePoint && codePoint <= 0x007E) ||
+ (0x00A2 <= codePoint && codePoint <= 0x00A3) ||
+ (0x00A5 <= codePoint && codePoint <= 0x00A6) ||
+ (0x00AC == codePoint) ||
+ (0x00AF == codePoint) ||
+ (0x27E6 <= codePoint && codePoint <= 0x27ED) ||
+ (0x2985 <= codePoint && codePoint <= 0x2986)) {
+ return 'Na';
+ }
+ if ((0x00A1 == codePoint) ||
+ (0x00A4 == codePoint) ||
+ (0x00A7 <= codePoint && codePoint <= 0x00A8) ||
+ (0x00AA == codePoint) ||
+ (0x00AD <= codePoint && codePoint <= 0x00AE) ||
+ (0x00B0 <= codePoint && codePoint <= 0x00B4) ||
+ (0x00B6 <= codePoint && codePoint <= 0x00BA) ||
+ (0x00BC <= codePoint && codePoint <= 0x00BF) ||
+ (0x00C6 == codePoint) ||
+ (0x00D0 == codePoint) ||
+ (0x00D7 <= codePoint && codePoint <= 0x00D8) ||
+ (0x00DE <= codePoint && codePoint <= 0x00E1) ||
+ (0x00E6 == codePoint) ||
+ (0x00E8 <= codePoint && codePoint <= 0x00EA) ||
+ (0x00EC <= codePoint && codePoint <= 0x00ED) ||
+ (0x00F0 == codePoint) ||
+ (0x00F2 <= codePoint && codePoint <= 0x00F3) ||
+ (0x00F7 <= codePoint && codePoint <= 0x00FA) ||
+ (0x00FC == codePoint) ||
+ (0x00FE == codePoint) ||
+ (0x0101 == codePoint) ||
+ (0x0111 == codePoint) ||
+ (0x0113 == codePoint) ||
+ (0x011B == codePoint) ||
+ (0x0126 <= codePoint && codePoint <= 0x0127) ||
+ (0x012B == codePoint) ||
+ (0x0131 <= codePoint && codePoint <= 0x0133) ||
+ (0x0138 == codePoint) ||
+ (0x013F <= codePoint && codePoint <= 0x0142) ||
+ (0x0144 == codePoint) ||
+ (0x0148 <= codePoint && codePoint <= 0x014B) ||
+ (0x014D == codePoint) ||
+ (0x0152 <= codePoint && codePoint <= 0x0153) ||
+ (0x0166 <= codePoint && codePoint <= 0x0167) ||
+ (0x016B == codePoint) ||
+ (0x01CE == codePoint) ||
+ (0x01D0 == codePoint) ||
+ (0x01D2 == codePoint) ||
+ (0x01D4 == codePoint) ||
+ (0x01D6 == codePoint) ||
+ (0x01D8 == codePoint) ||
+ (0x01DA == codePoint) ||
+ (0x01DC == codePoint) ||
+ (0x0251 == codePoint) ||
+ (0x0261 == codePoint) ||
+ (0x02C4 == codePoint) ||
+ (0x02C7 == codePoint) ||
+ (0x02C9 <= codePoint && codePoint <= 0x02CB) ||
+ (0x02CD == codePoint) ||
+ (0x02D0 == codePoint) ||
+ (0x02D8 <= codePoint && codePoint <= 0x02DB) ||
+ (0x02DD == codePoint) ||
+ (0x02DF == codePoint) ||
+ (0x0300 <= codePoint && codePoint <= 0x036F) ||
+ (0x0391 <= codePoint && codePoint <= 0x03A1) ||
+ (0x03A3 <= codePoint && codePoint <= 0x03A9) ||
+ (0x03B1 <= codePoint && codePoint <= 0x03C1) ||
+ (0x03C3 <= codePoint && codePoint <= 0x03C9) ||
+ (0x0401 == codePoint) ||
+ (0x0410 <= codePoint && codePoint <= 0x044F) ||
+ (0x0451 == codePoint) ||
+ (0x2010 == codePoint) ||
+ (0x2013 <= codePoint && codePoint <= 0x2016) ||
+ (0x2018 <= codePoint && codePoint <= 0x2019) ||
+ (0x201C <= codePoint && codePoint <= 0x201D) ||
+ (0x2020 <= codePoint && codePoint <= 0x2022) ||
+ (0x2024 <= codePoint && codePoint <= 0x2027) ||
+ (0x2030 == codePoint) ||
+ (0x2032 <= codePoint && codePoint <= 0x2033) ||
+ (0x2035 == codePoint) ||
+ (0x203B == codePoint) ||
+ (0x203E == codePoint) ||
+ (0x2074 == codePoint) ||
+ (0x207F == codePoint) ||
+ (0x2081 <= codePoint && codePoint <= 0x2084) ||
+ (0x20AC == codePoint) ||
+ (0x2103 == codePoint) ||
+ (0x2105 == codePoint) ||
+ (0x2109 == codePoint) ||
+ (0x2113 == codePoint) ||
+ (0x2116 == codePoint) ||
+ (0x2121 <= codePoint && codePoint <= 0x2122) ||
+ (0x2126 == codePoint) ||
+ (0x212B == codePoint) ||
+ (0x2153 <= codePoint && codePoint <= 0x2154) ||
+ (0x215B <= codePoint && codePoint <= 0x215E) ||
+ (0x2160 <= codePoint && codePoint <= 0x216B) ||
+ (0x2170 <= codePoint && codePoint <= 0x2179) ||
+ (0x2189 == codePoint) ||
+ (0x2190 <= codePoint && codePoint <= 0x2199) ||
+ (0x21B8 <= codePoint && codePoint <= 0x21B9) ||
+ (0x21D2 == codePoint) ||
+ (0x21D4 == codePoint) ||
+ (0x21E7 == codePoint) ||
+ (0x2200 == codePoint) ||
+ (0x2202 <= codePoint && codePoint <= 0x2203) ||
+ (0x2207 <= codePoint && codePoint <= 0x2208) ||
+ (0x220B == codePoint) ||
+ (0x220F == codePoint) ||
+ (0x2211 == codePoint) ||
+ (0x2215 == codePoint) ||
+ (0x221A == codePoint) ||
+ (0x221D <= codePoint && codePoint <= 0x2220) ||
+ (0x2223 == codePoint) ||
+ (0x2225 == codePoint) ||
+ (0x2227 <= codePoint && codePoint <= 0x222C) ||
+ (0x222E == codePoint) ||
+ (0x2234 <= codePoint && codePoint <= 0x2237) ||
+ (0x223C <= codePoint && codePoint <= 0x223D) ||
+ (0x2248 == codePoint) ||
+ (0x224C == codePoint) ||
+ (0x2252 == codePoint) ||
+ (0x2260 <= codePoint && codePoint <= 0x2261) ||
+ (0x2264 <= codePoint && codePoint <= 0x2267) ||
+ (0x226A <= codePoint && codePoint <= 0x226B) ||
+ (0x226E <= codePoint && codePoint <= 0x226F) ||
+ (0x2282 <= codePoint && codePoint <= 0x2283) ||
+ (0x2286 <= codePoint && codePoint <= 0x2287) ||
+ (0x2295 == codePoint) ||
+ (0x2299 == codePoint) ||
+ (0x22A5 == codePoint) ||
+ (0x22BF == codePoint) ||
+ (0x2312 == codePoint) ||
+ (0x2460 <= codePoint && codePoint <= 0x24E9) ||
+ (0x24EB <= codePoint && codePoint <= 0x254B) ||
+ (0x2550 <= codePoint && codePoint <= 0x2573) ||
+ (0x2580 <= codePoint && codePoint <= 0x258F) ||
+ (0x2592 <= codePoint && codePoint <= 0x2595) ||
+ (0x25A0 <= codePoint && codePoint <= 0x25A1) ||
+ (0x25A3 <= codePoint && codePoint <= 0x25A9) ||
+ (0x25B2 <= codePoint && codePoint <= 0x25B3) ||
+ (0x25B6 <= codePoint && codePoint <= 0x25B7) ||
+ (0x25BC <= codePoint && codePoint <= 0x25BD) ||
+ (0x25C0 <= codePoint && codePoint <= 0x25C1) ||
+ (0x25C6 <= codePoint && codePoint <= 0x25C8) ||
+ (0x25CB == codePoint) ||
+ (0x25CE <= codePoint && codePoint <= 0x25D1) ||
+ (0x25E2 <= codePoint && codePoint <= 0x25E5) ||
+ (0x25EF == codePoint) ||
+ (0x2605 <= codePoint && codePoint <= 0x2606) ||
+ (0x2609 == codePoint) ||
+ (0x260E <= codePoint && codePoint <= 0x260F) ||
+ (0x2614 <= codePoint && codePoint <= 0x2615) ||
+ (0x261C == codePoint) ||
+ (0x261E == codePoint) ||
+ (0x2640 == codePoint) ||
+ (0x2642 == codePoint) ||
+ (0x2660 <= codePoint && codePoint <= 0x2661) ||
+ (0x2663 <= codePoint && codePoint <= 0x2665) ||
+ (0x2667 <= codePoint && codePoint <= 0x266A) ||
+ (0x266C <= codePoint && codePoint <= 0x266D) ||
+ (0x266F == codePoint) ||
+ (0x269E <= codePoint && codePoint <= 0x269F) ||
+ (0x26BE <= codePoint && codePoint <= 0x26BF) ||
+ (0x26C4 <= codePoint && codePoint <= 0x26CD) ||
+ (0x26CF <= codePoint && codePoint <= 0x26E1) ||
+ (0x26E3 == codePoint) ||
+ (0x26E8 <= codePoint && codePoint <= 0x26FF) ||
+ (0x273D == codePoint) ||
+ (0x2757 == codePoint) ||
+ (0x2776 <= codePoint && codePoint <= 0x277F) ||
+ (0x2B55 <= codePoint && codePoint <= 0x2B59) ||
+ (0x3248 <= codePoint && codePoint <= 0x324F) ||
+ (0xE000 <= codePoint && codePoint <= 0xF8FF) ||
+ (0xFE00 <= codePoint && codePoint <= 0xFE0F) ||
+ (0xFFFD == codePoint) ||
+ (0x1F100 <= codePoint && codePoint <= 0x1F10A) ||
+ (0x1F110 <= codePoint && codePoint <= 0x1F12D) ||
+ (0x1F130 <= codePoint && codePoint <= 0x1F169) ||
+ (0x1F170 <= codePoint && codePoint <= 0x1F19A) ||
+ (0xE0100 <= codePoint && codePoint <= 0xE01EF) ||
+ (0xF0000 <= codePoint && codePoint <= 0xFFFFD) ||
+ (0x100000 <= codePoint && codePoint <= 0x10FFFD)) {
+ return 'A';
+ }
+
+ return 'N';
+};
+
+eaw.characterLength = function(character) {
+ var code = this.eastAsianWidth(character);
+ if (code == 'F' || code == 'W' || code == 'A') {
+ return 2;
+ } else {
+ return 1;
+ }
+};
+
+// Split a string considering surrogate-pairs.
+function stringToArray(string) {
+ return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
+}
+
+eaw.length = function(string) {
+ var characters = stringToArray(string);
+ var len = 0;
+ for (var i = 0; i < characters.length; i++) {
+ len = len + this.characterLength(characters[i]);
+ }
+ return len;
+};
+
+eaw.slice = function(text, start, end) {
+ textLen = eaw.length(text)
+ start = start ? start : 0;
+ end = end ? end : 1;
+ if (start < 0) {
+ start = textLen + start;
+ }
+ if (end < 0) {
+ end = textLen + end;
+ }
+ var result = '';
+ var eawLen = 0;
+ var chars = stringToArray(text);
+ for (var i = 0; i < chars.length; i++) {
+ var char = chars[i];
+ var charLen = eaw.length(char);
+ if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
+ if (eawLen + charLen <= end) {
+ result += char;
+ } else {
+ break;
+ }
+ }
+ eawLen += charLen;
+ }
+ return result;
+};
diff --git a/node_modules/eastasianwidth/package.json b/node_modules/eastasianwidth/package.json
new file mode 100644
index 0000000..cb7ac6a
--- /dev/null
+++ b/node_modules/eastasianwidth/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "eastasianwidth",
+ "version": "0.2.0",
+ "description": "Get East Asian Width from a character.",
+ "main": "eastasianwidth.js",
+ "files": [
+ "eastasianwidth.js"
+ ],
+ "scripts": {
+ "test": "mocha"
+ },
+ "repository": "git://github.com/komagata/eastasianwidth.git",
+ "author": "Masaki Komagata",
+ "license": "MIT",
+ "devDependencies": {
+ "mocha": "~1.9.0"
+ }
+}
diff --git a/node_modules/fast-glob/LICENSE b/node_modules/fast-glob/LICENSE
new file mode 100644
index 0000000..65a9994
--- /dev/null
+++ b/node_modules/fast-glob/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Denis Malinochkin
+
+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/fast-glob/README.md b/node_modules/fast-glob/README.md
new file mode 100644
index 0000000..1d7843a
--- /dev/null
+++ b/node_modules/fast-glob/README.md
@@ -0,0 +1,830 @@
+# fast-glob
+
+> It's a very fast and efficient [glob][glob_definition] library for [Node.js][node_js].
+
+This package provides methods for traversing the file system and returning pathnames that matched a defined set of a specified pattern according to the rules used by the Unix Bash shell with some simplifications, meanwhile results are returned in **arbitrary order**. Quick, simple, effective.
+
+## Table of Contents
+
+
+Details
+
+* [Highlights](#highlights)
+* [Old and modern mode](#old-and-modern-mode)
+* [Pattern syntax](#pattern-syntax)
+ * [Basic syntax](#basic-syntax)
+ * [Advanced syntax](#advanced-syntax)
+* [Installation](#installation)
+* [API](#api)
+ * [Asynchronous](#asynchronous)
+ * [Synchronous](#synchronous)
+ * [Stream](#stream)
+ * [patterns](#patterns)
+ * [[options]](#options)
+ * [Helpers](#helpers)
+ * [generateTasks](#generatetaskspatterns-options)
+ * [isDynamicPattern](#isdynamicpatternpattern-options)
+ * [escapePath](#escapepathpath)
+ * [convertPathToPattern](#convertpathtopatternpath)
+* [Options](#options-3)
+ * [Common](#common)
+ * [concurrency](#concurrency)
+ * [cwd](#cwd)
+ * [deep](#deep)
+ * [followSymbolicLinks](#followsymboliclinks)
+ * [fs](#fs)
+ * [ignore](#ignore)
+ * [suppressErrors](#suppresserrors)
+ * [throwErrorOnBrokenSymbolicLink](#throwerroronbrokensymboliclink)
+ * [Output control](#output-control)
+ * [absolute](#absolute)
+ * [markDirectories](#markdirectories)
+ * [objectMode](#objectmode)
+ * [onlyDirectories](#onlydirectories)
+ * [onlyFiles](#onlyfiles)
+ * [stats](#stats)
+ * [unique](#unique)
+ * [Matching control](#matching-control)
+ * [braceExpansion](#braceexpansion)
+ * [caseSensitiveMatch](#casesensitivematch)
+ * [dot](#dot)
+ * [extglob](#extglob)
+ * [globstar](#globstar)
+ * [baseNameMatch](#basenamematch)
+* [FAQ](#faq)
+ * [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern)
+ * [How to write patterns on Windows?](#how-to-write-patterns-on-windows)
+ * [Why are parentheses match wrong?](#why-are-parentheses-match-wrong)
+ * [How to exclude directory from reading?](#how-to-exclude-directory-from-reading)
+ * [How to use UNC path?](#how-to-use-unc-path)
+ * [Compatible with `node-glob`?](#compatible-with-node-glob)
+* [Benchmarks](#benchmarks)
+ * [Server](#server)
+ * [Nettop](#nettop)
+* [Changelog](#changelog)
+* [License](#license)
+
+
+
+## Highlights
+
+* Fast. Probably the fastest.
+* Supports multiple and negative patterns.
+* Synchronous, Promise and Stream API.
+* Object mode. Can return more than just strings.
+* Error-tolerant.
+
+## Old and modern mode
+
+This package works in two modes, depending on the environment in which it is used.
+
+* **Old mode**. Node.js below 10.10 or when the [`stats`](#stats) option is *enabled*.
+* **Modern mode**. Node.js 10.10+ and the [`stats`](#stats) option is *disabled*.
+
+The modern mode is faster. Learn more about the [internal mechanism][nodelib_fs_scandir_old_and_modern_modern].
+
+## Pattern syntax
+
+> :warning: Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters.
+
+There is more than one form of syntax: basic and advanced. Below is a brief overview of the supported features. Also pay attention to our [FAQ](#faq).
+
+> :book: This package uses [`micromatch`][micromatch] as a library for pattern matching.
+
+### Basic syntax
+
+* An asterisk (`*`) — matches everything except slashes (path separators), hidden files (names starting with `.`).
+* A double star or globstar (`**`) — matches zero or more directories.
+* Question mark (`?`) – matches any single character except slashes (path separators).
+* Sequence (`[seq]`) — matches any character in sequence.
+
+> :book: A few additional words about the [basic matching behavior][picomatch_matching_behavior].
+
+Some examples:
+
+* `src/**/*.js` — matches all files in the `src` directory (any level of nesting) that have the `.js` extension.
+* `src/*.??` — matches all files in the `src` directory (only first level of nesting) that have a two-character extension.
+* `file-[01].js` — matches files: `file-0.js`, `file-1.js`.
+
+### Advanced syntax
+
+* [Escapes characters][micromatch_backslashes] (`\\`) — matching special characters (`$^*+?()[]`) as literals.
+* [POSIX character classes][picomatch_posix_brackets] (`[[:digit:]]`).
+* [Extended globs][micromatch_extglobs] (`?(pattern-list)`).
+* [Bash style brace expansions][micromatch_braces] (`{}`).
+* [Regexp character classes][micromatch_regex_character_classes] (`[1-5]`).
+* [Regex groups][regular_expressions_brackets] (`(a|b)`).
+
+> :book: A few additional words about the [advanced matching behavior][micromatch_extended_globbing].
+
+Some examples:
+
+* `src/**/*.{css,scss}` — matches all files in the `src` directory (any level of nesting) that have the `.css` or `.scss` extension.
+* `file-[[:digit:]].js` — matches files: `file-0.js`, `file-1.js`, …, `file-9.js`.
+* `file-{1..3}.js` — matches files: `file-1.js`, `file-2.js`, `file-3.js`.
+* `file-(1|2)` — matches files: `file-1.js`, `file-2.js`.
+
+## Installation
+
+```console
+npm install fast-glob
+```
+
+## API
+
+### Asynchronous
+
+```js
+fg(patterns, [options])
+fg.async(patterns, [options])
+fg.glob(patterns, [options])
+```
+
+Returns a `Promise` with an array of matching entries.
+
+```js
+const fg = require('fast-glob');
+
+const entries = await fg(['.editorconfig', '**/index.js'], { dot: true });
+
+// ['.editorconfig', 'services/index.js']
+```
+
+### Synchronous
+
+```js
+fg.sync(patterns, [options])
+fg.globSync(patterns, [options])
+```
+
+Returns an array of matching entries.
+
+```js
+const fg = require('fast-glob');
+
+const entries = fg.sync(['.editorconfig', '**/index.js'], { dot: true });
+
+// ['.editorconfig', 'services/index.js']
+```
+
+### Stream
+
+```js
+fg.stream(patterns, [options])
+fg.globStream(patterns, [options])
+```
+
+Returns a [`ReadableStream`][node_js_stream_readable_streams] when the `data` event will be emitted with matching entry.
+
+```js
+const fg = require('fast-glob');
+
+const stream = fg.stream(['.editorconfig', '**/index.js'], { dot: true });
+
+for await (const entry of stream) {
+ // .editorconfig
+ // services/index.js
+}
+```
+
+#### patterns
+
+* Required: `true`
+* Type: `string | string[]`
+
+Any correct pattern(s).
+
+> :1234: [Pattern syntax](#pattern-syntax)
+>
+> :warning: This package does not respect the order of patterns. First, all the negative patterns are applied, and only then the positive patterns. If you want to get a certain order of records, use sorting or split calls.
+
+#### [options]
+
+* Required: `false`
+* Type: [`Options`](#options-3)
+
+See [Options](#options-3) section.
+
+### Helpers
+
+#### `generateTasks(patterns, [options])`
+
+Returns the internal representation of patterns ([`Task`](./src/managers/tasks.ts) is a combining patterns by base directory).
+
+```js
+fg.generateTasks('*');
+
+[{
+ base: '.', // Parent directory for all patterns inside this task
+ dynamic: true, // Dynamic or static patterns are in this task
+ patterns: ['*'],
+ positive: ['*'],
+ negative: []
+}]
+```
+
+##### patterns
+
+* Required: `true`
+* Type: `string | string[]`
+
+Any correct pattern(s).
+
+##### [options]
+
+* Required: `false`
+* Type: [`Options`](#options-3)
+
+See [Options](#options-3) section.
+
+#### `isDynamicPattern(pattern, [options])`
+
+Returns `true` if the passed pattern is a dynamic pattern.
+
+> :1234: [What is a static or dynamic pattern?](#what-is-a-static-or-dynamic-pattern)
+
+```js
+fg.isDynamicPattern('*'); // true
+fg.isDynamicPattern('abc'); // false
+```
+
+##### pattern
+
+* Required: `true`
+* Type: `string`
+
+Any correct pattern.
+
+##### [options]
+
+* Required: `false`
+* Type: [`Options`](#options-3)
+
+See [Options](#options-3) section.
+
+#### `escapePath(path)`
+
+Returns the path with escaped special characters depending on the platform.
+
+* Posix:
+ * `*?|(){}[]`;
+ * `!` at the beginning of line;
+ * `@+!` before the opening parenthesis;
+ * `\\` before non-special characters;
+* Windows:
+ * `(){}[]`
+ * `!` at the beginning of line;
+ * `@+!` before the opening parenthesis;
+ * Characters like `*?|` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped;
+
+```js
+fg.escapePath('!abc');
+// \\!abc
+fg.escapePath('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac'
+// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac
+
+fg.posix.escapePath('C:\\Program Files (x86)\\**\\*');
+// C:\\\\Program Files \\(x86\\)\\*\\*\\*
+fg.win32.escapePath('C:\\Program Files (x86)\\**\\*');
+// Windows: C:\\Program Files \\(x86\\)\\**\\*
+```
+
+#### `convertPathToPattern(path)`
+
+Converts a path to a pattern depending on the platform, including special character escaping.
+
+* Posix. Works similarly to the `fg.posix.escapePath` method.
+* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}[]`).
+
+```js
+fg.convertPathToPattern('[OpenSource] mrmlnc – fast-glob (Deluxe Edition) 2014') + '/*.flac';
+// \\[OpenSource\\] mrmlnc – fast-glob \\(Deluxe Edition\\) 2014/*.flac
+
+fg.convertPathToPattern('C:/Program Files (x86)/**/*');
+// Posix: C:/Program Files \\(x86\\)/\\*\\*/\\*
+// Windows: C:/Program Files \\(x86\\)/**/*
+
+fg.convertPathToPattern('C:\\Program Files (x86)\\**\\*');
+// Posix: C:\\\\Program Files \\(x86\\)\\*\\*\\*
+// Windows: C:/Program Files \\(x86\\)/**/*
+
+fg.posix.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*';
+// Posix: \\\\\\?\\\\c:\\\\Program Files \\(x86\\)/**/* (broken pattern)
+fg.win32.convertPathToPattern('\\\\?\\c:\\Program Files (x86)') + '/**/*';
+// Windows: //?/c:/Program Files \\(x86\\)/**/*
+```
+
+## Options
+
+### Common options
+
+#### concurrency
+
+* Type: `number`
+* Default: `os.cpus().length`
+
+Specifies the maximum number of concurrent requests from a reader to read directories.
+
+> :book: The higher the number, the higher the performance and load on the file system. If you want to read in quiet mode, set the value to a comfortable number or `1`.
+
+
+
+More details
+
+In Node, there are [two types of threads][nodejs_thread_pool]: Event Loop (code) and a Thread Pool (fs, dns, …). The thread pool size controlled by the `UV_THREADPOOL_SIZE` environment variable. Its default size is 4 ([documentation][libuv_thread_pool]). The pool is one for all tasks within a single Node process.
+
+Any code can make 4 real concurrent accesses to the file system. The rest of the FS requests will wait in the queue.
+
+> :book: Each new instance of FG in the same Node process will use the same Thread pool.
+
+But this package also has the `concurrency` option. This option allows you to control the number of concurrent accesses to the FS at the package level. By default, this package has a value equal to the number of cores available for the current Node process. This allows you to set a value smaller than the pool size (`concurrency: 1`) or, conversely, to prepare tasks for the pool queue more quickly (`concurrency: Number.POSITIVE_INFINITY`).
+
+So, in fact, this package can **only make 4 concurrent requests to the FS**. You can increase this value by using an environment variable (`UV_THREADPOOL_SIZE`), but in practice this does not give a multiple advantage.
+
+
+
+#### cwd
+
+* Type: `string`
+* Default: `process.cwd()`
+
+The current working directory in which to search.
+
+#### deep
+
+* Type: `number`
+* Default: `Infinity`
+
+Specifies the maximum depth of a read directory relative to the start directory.
+
+For example, you have the following tree:
+
+```js
+dir/
+└── one/ // 1
+ └── two/ // 2
+ └── file.js // 3
+```
+
+```js
+// With base directory
+fg.sync('dir/**', { onlyFiles: false, deep: 1 }); // ['dir/one']
+fg.sync('dir/**', { onlyFiles: false, deep: 2 }); // ['dir/one', 'dir/one/two']
+
+// With cwd option
+fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 1 }); // ['one']
+fg.sync('**', { onlyFiles: false, cwd: 'dir', deep: 2 }); // ['one', 'one/two']
+```
+
+> :book: If you specify a pattern with some base directory, this directory will not participate in the calculation of the depth of the found directories. Think of it as a [`cwd`](#cwd) option.
+
+#### followSymbolicLinks
+
+* Type: `boolean`
+* Default: `true`
+
+Indicates whether to traverse descendants of symbolic link directories when expanding `**` patterns.
+
+> :book: Note that this option does not affect the base directory of the pattern. For example, if `./a` is a symlink to directory `./b` and you specified `['./a**', './b/**']` patterns, then directory `./a` will still be read.
+
+> :book: If the [`stats`](#stats) option is specified, the information about the symbolic link (`fs.lstat`) will be replaced with information about the entry (`fs.stat`) behind it.
+
+#### fs
+
+* Type: `FileSystemAdapter`
+* Default: `fs.*`
+
+Custom implementation of methods for working with the file system. Supports objects with enumerable properties only.
+
+```ts
+export interface FileSystemAdapter {
+ lstat?: typeof fs.lstat;
+ stat?: typeof fs.stat;
+ lstatSync?: typeof fs.lstatSync;
+ statSync?: typeof fs.statSync;
+ readdir?: typeof fs.readdir;
+ readdirSync?: typeof fs.readdirSync;
+}
+```
+
+#### ignore
+
+* Type: `string[]`
+* Default: `[]`
+
+An array of glob patterns to exclude matches. This is an alternative way to use negative patterns.
+
+```js
+dir/
+├── package-lock.json
+└── package.json
+```
+
+```js
+fg.sync(['*.json', '!package-lock.json']); // ['package.json']
+fg.sync('*.json', { ignore: ['package-lock.json'] }); // ['package.json']
+```
+
+#### suppressErrors
+
+* Type: `boolean`
+* Default: `false`
+
+By default this package suppress only `ENOENT` errors. Set to `true` to suppress any error.
+
+> :book: Can be useful when the directory has entries with a special level of access.
+
+#### throwErrorOnBrokenSymbolicLink
+
+* Type: `boolean`
+* Default: `false`
+
+Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`.
+
+> :book: This option has no effect on errors when reading the symbolic link directory.
+
+### Output control
+
+#### absolute
+
+* Type: `boolean`
+* Default: `false`
+
+Return the absolute path for entries.
+
+```js
+fg.sync('*.js', { absolute: false }); // ['index.js']
+fg.sync('*.js', { absolute: true }); // ['/home/user/index.js']
+```
+
+> :book: This option is required if you want to use negative patterns with absolute path, for example, `!${__dirname}/*.js`.
+
+#### markDirectories
+
+* Type: `boolean`
+* Default: `false`
+
+Mark the directory path with the final slash.
+
+```js
+fg.sync('*', { onlyFiles: false, markDirectories: false }); // ['index.js', 'controllers']
+fg.sync('*', { onlyFiles: false, markDirectories: true }); // ['index.js', 'controllers/']
+```
+
+#### objectMode
+
+* Type: `boolean`
+* Default: `false`
+
+Returns objects (instead of strings) describing entries.
+
+```js
+fg.sync('*', { objectMode: false }); // ['src/index.js']
+fg.sync('*', { objectMode: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: }]
+```
+
+The object has the following fields:
+
+* name (`string`) — the last part of the path (basename)
+* path (`string`) — full path relative to the pattern base directory
+* dirent ([`fs.Dirent`][node_js_fs_class_fs_dirent]) — instance of `fs.Dirent`
+
+> :book: An object is an internal representation of entry, so getting it does not affect performance.
+
+#### onlyDirectories
+
+* Type: `boolean`
+* Default: `false`
+
+Return only directories.
+
+```js
+fg.sync('*', { onlyDirectories: false }); // ['index.js', 'src']
+fg.sync('*', { onlyDirectories: true }); // ['src']
+```
+
+> :book: If `true`, the [`onlyFiles`](#onlyfiles) option is automatically `false`.
+
+#### onlyFiles
+
+* Type: `boolean`
+* Default: `true`
+
+Return only files.
+
+```js
+fg.sync('*', { onlyFiles: false }); // ['index.js', 'src']
+fg.sync('*', { onlyFiles: true }); // ['index.js']
+```
+
+#### stats
+
+* Type: `boolean`
+* Default: `false`
+
+Enables an [object mode](#objectmode) with an additional field:
+
+* stats ([`fs.Stats`][node_js_fs_class_fs_stats]) — instance of `fs.Stats`
+
+```js
+fg.sync('*', { stats: false }); // ['src/index.js']
+fg.sync('*', { stats: true }); // [{ name: 'index.js', path: 'src/index.js', dirent: , stats: }]
+```
+
+> :book: Returns `fs.stat` instead of `fs.lstat` for symbolic links when the [`followSymbolicLinks`](#followsymboliclinks) option is specified.
+>
+> :warning: Unlike [object mode](#objectmode) this mode requires additional calls to the file system. On average, this mode is slower at least twice. See [old and modern mode](#old-and-modern-mode) for more details.
+
+#### unique
+
+* Type: `boolean`
+* Default: `true`
+
+Ensures that the returned entries are unique.
+
+```js
+fg.sync(['*.json', 'package.json'], { unique: false }); // ['package.json', 'package.json']
+fg.sync(['*.json', 'package.json'], { unique: true }); // ['package.json']
+```
+
+If `true` and similar entries are found, the result is the first found.
+
+### Matching control
+
+#### braceExpansion
+
+* Type: `boolean`
+* Default: `true`
+
+Enables Bash-like brace expansion.
+
+> :1234: [Syntax description][bash_hackers_syntax_expansion_brace] or more [detailed description][micromatch_braces].
+
+```js
+dir/
+├── abd
+├── acd
+└── a{b,c}d
+```
+
+```js
+fg.sync('a{b,c}d', { braceExpansion: false }); // ['a{b,c}d']
+fg.sync('a{b,c}d', { braceExpansion: true }); // ['abd', 'acd']
+```
+
+#### caseSensitiveMatch
+
+* Type: `boolean`
+* Default: `true`
+
+Enables a [case-sensitive][wikipedia_case_sensitivity] mode for matching files.
+
+```js
+dir/
+├── file.txt
+└── File.txt
+```
+
+```js
+fg.sync('file.txt', { caseSensitiveMatch: false }); // ['file.txt', 'File.txt']
+fg.sync('file.txt', { caseSensitiveMatch: true }); // ['file.txt']
+```
+
+#### dot
+
+* Type: `boolean`
+* Default: `false`
+
+Allow patterns to match entries that begin with a period (`.`).
+
+> :book: Note that an explicit dot in a portion of the pattern will always match dot files.
+
+```js
+dir/
+├── .editorconfig
+└── package.json
+```
+
+```js
+fg.sync('*', { dot: false }); // ['package.json']
+fg.sync('*', { dot: true }); // ['.editorconfig', 'package.json']
+```
+
+#### extglob
+
+* Type: `boolean`
+* Default: `true`
+
+Enables Bash-like `extglob` functionality.
+
+> :1234: [Syntax description][micromatch_extglobs].
+
+```js
+dir/
+├── README.md
+└── package.json
+```
+
+```js
+fg.sync('*.+(json|md)', { extglob: false }); // []
+fg.sync('*.+(json|md)', { extglob: true }); // ['README.md', 'package.json']
+```
+
+#### globstar
+
+* Type: `boolean`
+* Default: `true`
+
+Enables recursively repeats a pattern containing `**`. If `false`, `**` behaves exactly like `*`.
+
+```js
+dir/
+└── a
+ └── b
+```
+
+```js
+fg.sync('**', { onlyFiles: false, globstar: false }); // ['a']
+fg.sync('**', { onlyFiles: false, globstar: true }); // ['a', 'a/b']
+```
+
+#### baseNameMatch
+
+* Type: `boolean`
+* Default: `false`
+
+If set to `true`, then patterns without slashes will be matched against the basename of the path if it contains slashes.
+
+```js
+dir/
+└── one/
+ └── file.md
+```
+
+```js
+fg.sync('*.md', { baseNameMatch: false }); // []
+fg.sync('*.md', { baseNameMatch: true }); // ['one/file.md']
+```
+
+## FAQ
+
+## What is a static or dynamic pattern?
+
+All patterns can be divided into two types:
+
+* **static**. A pattern is considered static if it can be used to get an entry on the file system without using matching mechanisms. For example, the `file.js` pattern is a static pattern because we can just verify that it exists on the file system.
+* **dynamic**. A pattern is considered dynamic if it cannot be used directly to find occurrences without using a matching mechanisms. For example, the `*` pattern is a dynamic pattern because we cannot use this pattern directly.
+
+A pattern is considered dynamic if it contains the following characters (`…` — any characters or their absence) or options:
+
+* The [`caseSensitiveMatch`](#casesensitivematch) option is disabled
+* `\\` (the escape character)
+* `*`, `?`, `!` (at the beginning of line)
+* `[…]`
+* `(…|…)`
+* `@(…)`, `!(…)`, `*(…)`, `?(…)`, `+(…)` (respects the [`extglob`](#extglob) option)
+* `{…,…}`, `{…..…}` (respects the [`braceExpansion`](#braceexpansion) option)
+
+## How to write patterns on Windows?
+
+Always use forward-slashes in glob expressions (patterns and [`ignore`](#ignore) option). Use backslashes for escaping characters. With the [`cwd`](#cwd) option use a convenient format.
+
+**Bad**
+
+```ts
+[
+ 'directory\\*',
+ path.join(process.cwd(), '**')
+]
+```
+
+**Good**
+
+```ts
+[
+ 'directory/*',
+ fg.convertPathToPattern(process.cwd()) + '/**'
+]
+```
+
+> :book: Use the [`.convertPathToPattern`](#convertpathtopatternpath) package to convert Windows-style path to a Unix-style path.
+
+Read more about [matching with backslashes][micromatch_backslashes].
+
+## Why are parentheses match wrong?
+
+```js
+dir/
+└── (special-*file).txt
+```
+
+```js
+fg.sync(['(special-*file).txt']) // []
+```
+
+Refers to Bash. You need to escape special characters:
+
+```js
+fg.sync(['\\(special-*file\\).txt']) // ['(special-*file).txt']
+```
+
+Read more about [matching special characters as literals][picomatch_matching_special_characters_as_literals]. Or use the [`.escapePath`](#escapepathpath).
+
+## How to exclude directory from reading?
+
+You can use a negative pattern like this: `!**/node_modules` or `!**/node_modules/**`. Also you can use [`ignore`](#ignore) option. Just look at the example below.
+
+```js
+first/
+├── file.md
+└── second/
+ └── file.txt
+```
+
+If you don't want to read the `second` directory, you must write the following pattern: `!**/second` or `!**/second/**`.
+
+```js
+fg.sync(['**/*.md', '!**/second']); // ['first/file.md']
+fg.sync(['**/*.md'], { ignore: ['**/second/**'] }); // ['first/file.md']
+```
+
+> :warning: When you write `!**/second/**/*` it means that the directory will be **read**, but all the entries will not be included in the results.
+
+You have to understand that if you write the pattern to exclude directories, then the directory will not be read under any circumstances.
+
+## How to use UNC path?
+
+You cannot use [Uniform Naming Convention (UNC)][unc_path] paths as patterns (due to syntax) directly, but you can use them as [`cwd`](#cwd) directory or use the `fg.convertPathToPattern` method.
+
+```ts
+// cwd
+fg.sync('*', { cwd: '\\\\?\\C:\\Python27' /* or //?/C:/Python27 */ });
+fg.sync('Python27/*', { cwd: '\\\\?\\C:\\' /* or //?/C:/ */ });
+
+// .convertPathToPattern
+fg.sync(fg.convertPathToPattern('\\\\?\\c:\\Python27') + '/*');
+```
+
+## Compatible with `node-glob`?
+
+| node-glob | fast-glob |
+| :----------: | :-------: |
+| `cwd` | [`cwd`](#cwd) |
+| `root` | – |
+| `dot` | [`dot`](#dot) |
+| `nomount` | – |
+| `mark` | [`markDirectories`](#markdirectories) |
+| `nosort` | – |
+| `nounique` | [`unique`](#unique) |
+| `nobrace` | [`braceExpansion`](#braceexpansion) |
+| `noglobstar` | [`globstar`](#globstar) |
+| `noext` | [`extglob`](#extglob) |
+| `nocase` | [`caseSensitiveMatch`](#casesensitivematch) |
+| `matchBase` | [`baseNameMatch`](#basenamematch) |
+| `nodir` | [`onlyFiles`](#onlyfiles) |
+| `ignore` | [`ignore`](#ignore) |
+| `follow` | [`followSymbolicLinks`](#followsymboliclinks) |
+| `realpath` | – |
+| `absolute` | [`absolute`](#absolute) |
+
+## Benchmarks
+
+You can see results [here](https://github.com/mrmlnc/fast-glob/actions/workflows/benchmark.yml?query=branch%3Amaster) for every commit into the `main` branch.
+
+* **Product benchmark** – comparison with the main competitors.
+* **Regress benchmark** – regression between the current version and the version from the npm registry.
+
+## Changelog
+
+See the [Releases section of our GitHub project][github_releases] for changelog for each release version.
+
+## License
+
+This software is released under the terms of the MIT license.
+
+[bash_hackers_syntax_expansion_brace]: https://wiki.bash-hackers.org/syntax/expansion/brace
+[github_releases]: https://github.com/mrmlnc/fast-glob/releases
+[glob_definition]: https://en.wikipedia.org/wiki/Glob_(programming)
+[glob_linux_man]: http://man7.org/linux/man-pages/man3/glob.3.html
+[micromatch_backslashes]: https://github.com/micromatch/micromatch#backslashes
+[micromatch_braces]: https://github.com/micromatch/braces
+[micromatch_extended_globbing]: https://github.com/micromatch/micromatch#extended-globbing
+[micromatch_extglobs]: https://github.com/micromatch/micromatch#extglobs
+[micromatch_regex_character_classes]: https://github.com/micromatch/micromatch#regex-character-classes
+[micromatch]: https://github.com/micromatch/micromatch
+[node_js_fs_class_fs_dirent]: https://nodejs.org/api/fs.html#fs_class_fs_dirent
+[node_js_fs_class_fs_stats]: https://nodejs.org/api/fs.html#fs_class_fs_stats
+[node_js_stream_readable_streams]: https://nodejs.org/api/stream.html#stream_readable_streams
+[node_js]: https://nodejs.org/en
+[nodelib_fs_scandir_old_and_modern_modern]: https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode
+[npm_normalize_path]: https://www.npmjs.com/package/normalize-path
+[npm_unixify]: https://www.npmjs.com/package/unixify
+[picomatch_matching_behavior]: https://github.com/micromatch/picomatch#matching-behavior-vs-bash
+[picomatch_matching_special_characters_as_literals]: https://github.com/micromatch/picomatch#matching-special-characters-as-literals
+[picomatch_posix_brackets]: https://github.com/micromatch/picomatch#posix-brackets
+[regular_expressions_brackets]: https://www.regular-expressions.info/brackets.html
+[unc_path]: https://learn.microsoft.com/openspecs/windows_protocols/ms-dtyp/62e862f4-2a51-452e-8eeb-dc4ff5ee33cc
+[wikipedia_case_sensitivity]: https://en.wikipedia.org/wiki/Case_sensitivity
+[nodejs_thread_pool]: https://nodejs.org/en/docs/guides/dont-block-the-event-loop
+[libuv_thread_pool]: http://docs.libuv.org/en/v1.x/threadpool.html
+[windows_naming_conventions]: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
diff --git a/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md b/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md
new file mode 100644
index 0000000..fb9de96
--- /dev/null
+++ b/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md
@@ -0,0 +1,110 @@
+### [5.1.2](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2) (2021-03-06)
+
+
+### Bug Fixes
+
+* eliminate ReDoS ([#36](https://github.com/gulpjs/glob-parent/issues/36)) ([f923116](https://github.com/gulpjs/glob-parent/commit/f9231168b0041fea3f8f954b3cceb56269fc6366))
+
+### [5.1.1](https://github.com/gulpjs/glob-parent/compare/v5.1.0...v5.1.1) (2021-01-27)
+
+
+### Bug Fixes
+
+* unescape exclamation mark ([#26](https://github.com/gulpjs/glob-parent/issues/26)) ([a98874f](https://github.com/gulpjs/glob-parent/commit/a98874f1a59e407f4fb1beb0db4efa8392da60bb))
+
+## [5.1.0](https://github.com/gulpjs/glob-parent/compare/v5.0.0...v5.1.0) (2021-01-27)
+
+
+### Features
+
+* add `flipBackslashes` option to disable auto conversion of slashes (closes [#24](https://github.com/gulpjs/glob-parent/issues/24)) ([#25](https://github.com/gulpjs/glob-parent/issues/25)) ([eecf91d](https://github.com/gulpjs/glob-parent/commit/eecf91d5e3834ed78aee39c4eaaae654d76b87b3))
+
+## [5.0.0](https://github.com/gulpjs/glob-parent/compare/v4.0.0...v5.0.0) (2021-01-27)
+
+
+### ⚠ BREAKING CHANGES
+
+* Drop support for node <6 & bump dependencies
+
+### Miscellaneous Chores
+
+* Drop support for node <6 & bump dependencies ([896c0c0](https://github.com/gulpjs/glob-parent/commit/896c0c00b4e7362f60b96e7fc295ae929245255a))
+
+## [4.0.0](https://github.com/gulpjs/glob-parent/compare/v3.1.0...v4.0.0) (2021-01-27)
+
+
+### ⚠ BREAKING CHANGES
+
+* question marks are valid path characters on Windows so avoid flagging as a glob when alone
+* Update is-glob dependency
+
+### Features
+
+* hoist regexps and strings for performance gains ([4a80667](https://github.com/gulpjs/glob-parent/commit/4a80667c69355c76a572a5892b0f133c8e1f457e))
+* question marks are valid path characters on Windows so avoid flagging as a glob when alone ([2a551dd](https://github.com/gulpjs/glob-parent/commit/2a551dd0dc3235e78bf3c94843d4107072d17841))
+* Update is-glob dependency ([e41fcd8](https://github.com/gulpjs/glob-parent/commit/e41fcd895d1f7bc617dba45c9d935a7949b9c281))
+
+## [3.1.0](https://github.com/gulpjs/glob-parent/compare/v3.0.1...v3.1.0) (2021-01-27)
+
+
+### Features
+
+* allow basic win32 backslash use ([272afa5](https://github.com/gulpjs/glob-parent/commit/272afa5fd070fc0f796386a5993d4ee4a846988b))
+* handle extglobs (parentheses) containing separators ([7db1bdb](https://github.com/gulpjs/glob-parent/commit/7db1bdb0756e55fd14619e8ce31aa31b17b117fd))
+* new approach to braces/brackets handling ([8269bd8](https://github.com/gulpjs/glob-parent/commit/8269bd89290d99fac9395a354fb56fdcdb80f0be))
+* pre-process braces/brackets sections ([9ef8a87](https://github.com/gulpjs/glob-parent/commit/9ef8a87f66b1a43d0591e7a8e4fc5a18415ee388))
+* preserve escaped brace/bracket at end of string ([8cfb0ba](https://github.com/gulpjs/glob-parent/commit/8cfb0ba84202d51571340dcbaf61b79d16a26c76))
+
+
+### Bug Fixes
+
+* trailing escaped square brackets ([99ec9fe](https://github.com/gulpjs/glob-parent/commit/99ec9fecc60ee488ded20a94dd4f18b4f55c4ccf))
+
+### [3.0.1](https://github.com/gulpjs/glob-parent/compare/v3.0.0...v3.0.1) (2021-01-27)
+
+
+### Features
+
+* use path-dirname ponyfill ([cdbea5f](https://github.com/gulpjs/glob-parent/commit/cdbea5f32a58a54e001a75ddd7c0fccd4776aacc))
+
+
+### Bug Fixes
+
+* unescape glob-escaped dirnames on output ([598c533](https://github.com/gulpjs/glob-parent/commit/598c533bdf49c1428bc063aa9b8db40c5a86b030))
+
+## [3.0.0](https://github.com/gulpjs/glob-parent/compare/v2.0.0...v3.0.0) (2021-01-27)
+
+
+### ⚠ BREAKING CHANGES
+
+* update is-glob dependency
+
+### Features
+
+* update is-glob dependency ([5c5f8ef](https://github.com/gulpjs/glob-parent/commit/5c5f8efcee362a8e7638cf8220666acd8784f6bd))
+
+## [2.0.0](https://github.com/gulpjs/glob-parent/compare/v1.3.0...v2.0.0) (2021-01-27)
+
+
+### Features
+
+* move up to dirname regardless of glob characters ([f97fb83](https://github.com/gulpjs/glob-parent/commit/f97fb83be2e0a9fc8d3b760e789d2ecadd6aa0c2))
+
+## [1.3.0](https://github.com/gulpjs/glob-parent/compare/v1.2.0...v1.3.0) (2021-01-27)
+
+## [1.2.0](https://github.com/gulpjs/glob-parent/compare/v1.1.0...v1.2.0) (2021-01-27)
+
+
+### Reverts
+
+* feat: make regex test strings smaller ([dc80fa9](https://github.com/gulpjs/glob-parent/commit/dc80fa9658dca20549cfeba44bbd37d5246fcce0))
+
+## [1.1.0](https://github.com/gulpjs/glob-parent/compare/v1.0.0...v1.1.0) (2021-01-27)
+
+
+### Features
+
+* make regex test strings smaller ([cd83220](https://github.com/gulpjs/glob-parent/commit/cd832208638f45169f986d80fcf66e401f35d233))
+
+## 1.0.0 (2021-01-27)
+
diff --git a/node_modules/fast-glob/node_modules/glob-parent/LICENSE b/node_modules/fast-glob/node_modules/glob-parent/LICENSE
new file mode 100644
index 0000000..63222d7
--- /dev/null
+++ b/node_modules/fast-glob/node_modules/glob-parent/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015, 2019 Elan Shanker
+
+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/fast-glob/node_modules/glob-parent/README.md b/node_modules/fast-glob/node_modules/glob-parent/README.md
new file mode 100644
index 0000000..36a2793
--- /dev/null
+++ b/node_modules/fast-glob/node_modules/glob-parent/README.md
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+# glob-parent
+
+[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
+
+Extract the non-magic parent path from a glob string.
+
+## Usage
+
+```js
+var globParent = require('glob-parent');
+
+globParent('path/to/*.js'); // 'path/to'
+globParent('/root/path/to/*.js'); // '/root/path/to'
+globParent('/*.js'); // '/'
+globParent('*.js'); // '.'
+globParent('**/*.js'); // '.'
+globParent('path/{to,from}'); // 'path'
+globParent('path/!(to|from)'); // 'path'
+globParent('path/?(to|from)'); // 'path'
+globParent('path/+(to|from)'); // 'path'
+globParent('path/*(to|from)'); // 'path'
+globParent('path/@(to|from)'); // 'path'
+globParent('path/**/*'); // 'path'
+
+// if provided a non-glob path, returns the nearest dir
+globParent('path/foo/bar.js'); // 'path/foo'
+globParent('path/foo/'); // 'path/foo'
+globParent('path/foo'); // 'path' (see issue #3 for details)
+```
+
+## API
+
+### `globParent(maybeGlobString, [options])`
+
+Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.
+
+#### options
+
+```js
+{
+ // Disables the automatic conversion of slashes for Windows
+ flipBackslashes: true
+}
+```
+
+## Escaping
+
+The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
+
+- `?` (question mark) unless used as a path segment alone
+- `*` (asterisk)
+- `|` (pipe)
+- `(` (opening parenthesis)
+- `)` (closing parenthesis)
+- `{` (opening curly brace)
+- `}` (closing curly brace)
+- `[` (opening bracket)
+- `]` (closing bracket)
+
+**Example**
+
+```js
+globParent('foo/[bar]/') // 'foo'
+globParent('foo/\\[bar]/') // 'foo/[bar]'
+```
+
+## Limitations
+
+### Braces & Brackets
+This library attempts a quick and imperfect method of determining which path
+parts have glob magic without fully parsing/lexing the pattern. There are some
+advanced use cases that can trip it up, such as nested braces where the outer
+pair is escaped and the inner one contains a path separator. If you find
+yourself in the unlikely circumstance of being affected by this or need to
+ensure higher-fidelity glob handling in your library, it is recommended that you
+pre-process your input with [expand-braces] and/or [expand-brackets].
+
+### Windows
+Backslashes are not valid path separators for globs. If a path with backslashes
+is provided anyway, for simple cases, glob-parent will replace the path
+separator for you and return the non-glob parent path (now with
+forward-slashes, which are still valid as Windows path separators).
+
+This cannot be used in conjunction with escape characters.
+
+```js
+// BAD
+globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'
+
+// GOOD
+globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'
+```
+
+If you are using escape characters for a pattern without path parts (i.e.
+relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
+
+```js
+// BAD
+globParent('foo \\[bar]') // 'foo '
+globParent('foo \\[bar]*') // 'foo '
+
+// GOOD
+globParent('./foo \\[bar]') // 'foo [bar]'
+globParent('./foo \\[bar]*') // '.'
+```
+
+## License
+
+ISC
+
+[expand-braces]: https://github.com/jonschlinkert/expand-braces
+[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
+
+[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg
+[npm-url]: https://www.npmjs.com/package/glob-parent
+[npm-image]: https://img.shields.io/npm/v/glob-parent.svg
+
+[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master
+[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master
+
+[travis-url]: https://travis-ci.org/gulpjs/glob-parent
+[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci
+
+[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent
+[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor
+
+[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent
+[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg
+
+[gitter-url]: https://gitter.im/gulpjs/gulp
+[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
diff --git a/node_modules/fast-glob/node_modules/glob-parent/index.js b/node_modules/fast-glob/node_modules/glob-parent/index.js
new file mode 100644
index 0000000..09e257e
--- /dev/null
+++ b/node_modules/fast-glob/node_modules/glob-parent/index.js
@@ -0,0 +1,42 @@
+'use strict';
+
+var isGlob = require('is-glob');
+var pathPosixDirname = require('path').posix.dirname;
+var isWin32 = require('os').platform() === 'win32';
+
+var slash = '/';
+var backslash = /\\/g;
+var enclosure = /[\{\[].*[\}\]]$/;
+var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
+var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
+
+/**
+ * @param {string} str
+ * @param {Object} opts
+ * @param {boolean} [opts.flipBackslashes=true]
+ * @returns {string}
+ */
+module.exports = function globParent(str, opts) {
+ var options = Object.assign({ flipBackslashes: true }, opts);
+
+ // flip windows path separators
+ if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
+ str = str.replace(backslash, slash);
+ }
+
+ // special case for strings ending in enclosure containing path separator
+ if (enclosure.test(str)) {
+ str += slash;
+ }
+
+ // preserves full path in case of trailing path separator
+ str += 'a';
+
+ // remove path parts that are globby
+ do {
+ str = pathPosixDirname(str);
+ } while (isGlob(str) || globby.test(str));
+
+ // remove escape chars and return result
+ return str.replace(escaped, '$1');
+};
diff --git a/node_modules/fast-glob/node_modules/glob-parent/package.json b/node_modules/fast-glob/node_modules/glob-parent/package.json
new file mode 100644
index 0000000..125c971
--- /dev/null
+++ b/node_modules/fast-glob/node_modules/glob-parent/package.json
@@ -0,0 +1,48 @@
+{
+ "name": "glob-parent",
+ "version": "5.1.2",
+ "description": "Extract the non-magic parent path from a glob string.",
+ "author": "Gulp Team (https://gulpjs.com/)",
+ "contributors": [
+ "Elan Shanker (https://github.com/es128)",
+ "Blaine Bublitz "
+ ],
+ "repository": "gulpjs/glob-parent",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 6"
+ },
+ "main": "index.js",
+ "files": [
+ "LICENSE",
+ "index.js"
+ ],
+ "scripts": {
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "test": "nyc mocha --async-only",
+ "azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
+ "coveralls": "nyc report --reporter=text-lcov | coveralls"
+ },
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "devDependencies": {
+ "coveralls": "^3.0.11",
+ "eslint": "^2.13.1",
+ "eslint-config-gulp": "^3.0.1",
+ "expect": "^1.20.2",
+ "mocha": "^6.0.2",
+ "nyc": "^13.3.0"
+ },
+ "keywords": [
+ "glob",
+ "parent",
+ "strip",
+ "path",
+ "dirname",
+ "directory",
+ "base",
+ "wildcard"
+ ]
+}
diff --git a/node_modules/fast-glob/out/index.d.ts b/node_modules/fast-glob/out/index.d.ts
new file mode 100644
index 0000000..46823bb
--- /dev/null
+++ b/node_modules/fast-glob/out/index.d.ts
@@ -0,0 +1,40 @@
+///
+import * as taskManager from './managers/tasks';
+import { Options as OptionsInternal } from './settings';
+import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types';
+type EntryObjectModePredicate = {
+ [TKey in keyof Pick]-?: true;
+};
+type EntryStatsPredicate = {
+ [TKey in keyof Pick]-?: true;
+};
+type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
+declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise;
+declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise;
+declare namespace FastGlob {
+ type Options = OptionsInternal;
+ type Entry = EntryInternal;
+ type Task = taskManager.Task;
+ type Pattern = PatternInternal;
+ type FileSystemAdapter = FileSystemAdapterInternal;
+ const glob: typeof FastGlob;
+ const globSync: typeof sync;
+ const globStream: typeof stream;
+ const async: typeof FastGlob;
+ function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[];
+ function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[];
+ function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream;
+ function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[];
+ function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean;
+ function escapePath(source: string): PatternInternal;
+ function convertPathToPattern(source: string): PatternInternal;
+ namespace posix {
+ function escapePath(source: string): PatternInternal;
+ function convertPathToPattern(source: string): PatternInternal;
+ }
+ namespace win32 {
+ function escapePath(source: string): PatternInternal;
+ function convertPathToPattern(source: string): PatternInternal;
+ }
+}
+export = FastGlob;
diff --git a/node_modules/fast-glob/out/index.js b/node_modules/fast-glob/out/index.js
new file mode 100644
index 0000000..90365d4
--- /dev/null
+++ b/node_modules/fast-glob/out/index.js
@@ -0,0 +1,102 @@
+"use strict";
+const taskManager = require("./managers/tasks");
+const async_1 = require("./providers/async");
+const stream_1 = require("./providers/stream");
+const sync_1 = require("./providers/sync");
+const settings_1 = require("./settings");
+const utils = require("./utils");
+async function FastGlob(source, options) {
+ assertPatternsInput(source);
+ const works = getWorks(source, async_1.default, options);
+ const result = await Promise.all(works);
+ return utils.array.flatten(result);
+}
+// https://github.com/typescript-eslint/typescript-eslint/issues/60
+// eslint-disable-next-line no-redeclare
+(function (FastGlob) {
+ FastGlob.glob = FastGlob;
+ FastGlob.globSync = sync;
+ FastGlob.globStream = stream;
+ FastGlob.async = FastGlob;
+ function sync(source, options) {
+ assertPatternsInput(source);
+ const works = getWorks(source, sync_1.default, options);
+ return utils.array.flatten(works);
+ }
+ FastGlob.sync = sync;
+ function stream(source, options) {
+ assertPatternsInput(source);
+ const works = getWorks(source, stream_1.default, options);
+ /**
+ * The stream returned by the provider cannot work with an asynchronous iterator.
+ * To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
+ * This affects performance (+25%). I don't see best solution right now.
+ */
+ return utils.stream.merge(works);
+ }
+ FastGlob.stream = stream;
+ function generateTasks(source, options) {
+ assertPatternsInput(source);
+ const patterns = [].concat(source);
+ const settings = new settings_1.default(options);
+ return taskManager.generate(patterns, settings);
+ }
+ FastGlob.generateTasks = generateTasks;
+ function isDynamicPattern(source, options) {
+ assertPatternsInput(source);
+ const settings = new settings_1.default(options);
+ return utils.pattern.isDynamicPattern(source, settings);
+ }
+ FastGlob.isDynamicPattern = isDynamicPattern;
+ function escapePath(source) {
+ assertPatternsInput(source);
+ return utils.path.escape(source);
+ }
+ FastGlob.escapePath = escapePath;
+ function convertPathToPattern(source) {
+ assertPatternsInput(source);
+ return utils.path.convertPathToPattern(source);
+ }
+ FastGlob.convertPathToPattern = convertPathToPattern;
+ let posix;
+ (function (posix) {
+ function escapePath(source) {
+ assertPatternsInput(source);
+ return utils.path.escapePosixPath(source);
+ }
+ posix.escapePath = escapePath;
+ function convertPathToPattern(source) {
+ assertPatternsInput(source);
+ return utils.path.convertPosixPathToPattern(source);
+ }
+ posix.convertPathToPattern = convertPathToPattern;
+ })(posix = FastGlob.posix || (FastGlob.posix = {}));
+ let win32;
+ (function (win32) {
+ function escapePath(source) {
+ assertPatternsInput(source);
+ return utils.path.escapeWindowsPath(source);
+ }
+ win32.escapePath = escapePath;
+ function convertPathToPattern(source) {
+ assertPatternsInput(source);
+ return utils.path.convertWindowsPathToPattern(source);
+ }
+ win32.convertPathToPattern = convertPathToPattern;
+ })(win32 = FastGlob.win32 || (FastGlob.win32 = {}));
+})(FastGlob || (FastGlob = {}));
+function getWorks(source, _Provider, options) {
+ const patterns = [].concat(source);
+ const settings = new settings_1.default(options);
+ const tasks = taskManager.generate(patterns, settings);
+ const provider = new _Provider(settings);
+ return tasks.map(provider.read, provider);
+}
+function assertPatternsInput(input) {
+ const source = [].concat(input);
+ const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
+ if (!isValidSource) {
+ throw new TypeError('Patterns must be a string (non empty) or an array of strings');
+ }
+}
+module.exports = FastGlob;
diff --git a/node_modules/fast-glob/out/managers/tasks.d.ts b/node_modules/fast-glob/out/managers/tasks.d.ts
new file mode 100644
index 0000000..59d2c42
--- /dev/null
+++ b/node_modules/fast-glob/out/managers/tasks.d.ts
@@ -0,0 +1,22 @@
+import Settings from '../settings';
+import { Pattern, PatternsGroup } from '../types';
+export type Task = {
+ base: string;
+ dynamic: boolean;
+ patterns: Pattern[];
+ positive: Pattern[];
+ negative: Pattern[];
+};
+export declare function generate(input: Pattern[], settings: Settings): Task[];
+/**
+ * Returns tasks grouped by basic pattern directories.
+ *
+ * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
+ * This is necessary because directory traversal starts at the base directory and goes deeper.
+ */
+export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
+export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
+export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
+export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
+export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
+export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
diff --git a/node_modules/fast-glob/out/managers/tasks.js b/node_modules/fast-glob/out/managers/tasks.js
new file mode 100644
index 0000000..335a765
--- /dev/null
+++ b/node_modules/fast-glob/out/managers/tasks.js
@@ -0,0 +1,110 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
+const utils = require("../utils");
+function generate(input, settings) {
+ const patterns = processPatterns(input, settings);
+ const ignore = processPatterns(settings.ignore, settings);
+ const positivePatterns = getPositivePatterns(patterns);
+ const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
+ const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
+ const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
+ const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
+ const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
+ return staticTasks.concat(dynamicTasks);
+}
+exports.generate = generate;
+function processPatterns(input, settings) {
+ let patterns = input;
+ /**
+ * The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry
+ * and some problems with the micromatch package (see fast-glob issues: #365, #394).
+ *
+ * To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
+ * in matching in the case of a large set of patterns after expansion.
+ */
+ if (settings.braceExpansion) {
+ patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
+ }
+ /**
+ * If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
+ * at any nesting level.
+ *
+ * We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change
+ * the pattern in the filter before creating a regular expression. There is no need to change the patterns
+ * in the application. Only on the input.
+ */
+ if (settings.baseNameMatch) {
+ patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`);
+ }
+ /**
+ * This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
+ */
+ return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
+}
+/**
+ * Returns tasks grouped by basic pattern directories.
+ *
+ * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
+ * This is necessary because directory traversal starts at the base directory and goes deeper.
+ */
+function convertPatternsToTasks(positive, negative, dynamic) {
+ const tasks = [];
+ const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
+ const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
+ const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
+ const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
+ tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
+ /*
+ * For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
+ * into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
+ */
+ if ('.' in insideCurrentDirectoryGroup) {
+ tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic));
+ }
+ else {
+ tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
+ }
+ return tasks;
+}
+exports.convertPatternsToTasks = convertPatternsToTasks;
+function getPositivePatterns(patterns) {
+ return utils.pattern.getPositivePatterns(patterns);
+}
+exports.getPositivePatterns = getPositivePatterns;
+function getNegativePatternsAsPositive(patterns, ignore) {
+ const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore);
+ const positive = negative.map(utils.pattern.convertToPositivePattern);
+ return positive;
+}
+exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
+function groupPatternsByBaseDirectory(patterns) {
+ const group = {};
+ return patterns.reduce((collection, pattern) => {
+ const base = utils.pattern.getBaseDirectory(pattern);
+ if (base in collection) {
+ collection[base].push(pattern);
+ }
+ else {
+ collection[base] = [pattern];
+ }
+ return collection;
+ }, group);
+}
+exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
+function convertPatternGroupsToTasks(positive, negative, dynamic) {
+ return Object.keys(positive).map((base) => {
+ return convertPatternGroupToTask(base, positive[base], negative, dynamic);
+ });
+}
+exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
+function convertPatternGroupToTask(base, positive, negative, dynamic) {
+ return {
+ dynamic,
+ positive,
+ negative,
+ base,
+ patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
+ };
+}
+exports.convertPatternGroupToTask = convertPatternGroupToTask;
diff --git a/node_modules/fast-glob/out/providers/async.d.ts b/node_modules/fast-glob/out/providers/async.d.ts
new file mode 100644
index 0000000..2742616
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/async.d.ts
@@ -0,0 +1,9 @@
+import { Task } from '../managers/tasks';
+import { Entry, EntryItem, ReaderOptions } from '../types';
+import ReaderAsync from '../readers/async';
+import Provider from './provider';
+export default class ProviderAsync extends Provider> {
+ protected _reader: ReaderAsync;
+ read(task: Task): Promise;
+ api(root: string, task: Task, options: ReaderOptions): Promise;
+}
diff --git a/node_modules/fast-glob/out/providers/async.js b/node_modules/fast-glob/out/providers/async.js
new file mode 100644
index 0000000..0c5286e
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/async.js
@@ -0,0 +1,23 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const async_1 = require("../readers/async");
+const provider_1 = require("./provider");
+class ProviderAsync extends provider_1.default {
+ constructor() {
+ super(...arguments);
+ this._reader = new async_1.default(this._settings);
+ }
+ async read(task) {
+ const root = this._getRootDirectory(task);
+ const options = this._getReaderOptions(task);
+ const entries = await this.api(root, task, options);
+ return entries.map((entry) => options.transform(entry));
+ }
+ api(root, task, options) {
+ if (task.dynamic) {
+ return this._reader.dynamic(root, options);
+ }
+ return this._reader.static(task.patterns, options);
+ }
+}
+exports.default = ProviderAsync;
diff --git a/node_modules/fast-glob/out/providers/filters/deep.d.ts b/node_modules/fast-glob/out/providers/filters/deep.d.ts
new file mode 100644
index 0000000..377fab8
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/deep.d.ts
@@ -0,0 +1,16 @@
+import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types';
+import Settings from '../../settings';
+export default class DeepFilter {
+ private readonly _settings;
+ private readonly _micromatchOptions;
+ constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
+ getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
+ private _getMatcher;
+ private _getNegativePatternsRe;
+ private _filter;
+ private _isSkippedByDeep;
+ private _getEntryLevel;
+ private _isSkippedSymbolicLink;
+ private _isSkippedByPositivePatterns;
+ private _isSkippedByNegativePatterns;
+}
diff --git a/node_modules/fast-glob/out/providers/filters/deep.js b/node_modules/fast-glob/out/providers/filters/deep.js
new file mode 100644
index 0000000..644bf41
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/deep.js
@@ -0,0 +1,62 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const utils = require("../../utils");
+const partial_1 = require("../matchers/partial");
+class DeepFilter {
+ constructor(_settings, _micromatchOptions) {
+ this._settings = _settings;
+ this._micromatchOptions = _micromatchOptions;
+ }
+ getFilter(basePath, positive, negative) {
+ const matcher = this._getMatcher(positive);
+ const negativeRe = this._getNegativePatternsRe(negative);
+ return (entry) => this._filter(basePath, entry, matcher, negativeRe);
+ }
+ _getMatcher(patterns) {
+ return new partial_1.default(patterns, this._settings, this._micromatchOptions);
+ }
+ _getNegativePatternsRe(patterns) {
+ const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
+ return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
+ }
+ _filter(basePath, entry, matcher, negativeRe) {
+ if (this._isSkippedByDeep(basePath, entry.path)) {
+ return false;
+ }
+ if (this._isSkippedSymbolicLink(entry)) {
+ return false;
+ }
+ const filepath = utils.path.removeLeadingDotSegment(entry.path);
+ if (this._isSkippedByPositivePatterns(filepath, matcher)) {
+ return false;
+ }
+ return this._isSkippedByNegativePatterns(filepath, negativeRe);
+ }
+ _isSkippedByDeep(basePath, entryPath) {
+ /**
+ * Avoid unnecessary depth calculations when it doesn't matter.
+ */
+ if (this._settings.deep === Infinity) {
+ return false;
+ }
+ return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
+ }
+ _getEntryLevel(basePath, entryPath) {
+ const entryPathDepth = entryPath.split('/').length;
+ if (basePath === '') {
+ return entryPathDepth;
+ }
+ const basePathDepth = basePath.split('/').length;
+ return entryPathDepth - basePathDepth;
+ }
+ _isSkippedSymbolicLink(entry) {
+ return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
+ }
+ _isSkippedByPositivePatterns(entryPath, matcher) {
+ return !this._settings.baseNameMatch && !matcher.match(entryPath);
+ }
+ _isSkippedByNegativePatterns(entryPath, patternsRe) {
+ return !utils.pattern.matchAny(entryPath, patternsRe);
+ }
+}
+exports.default = DeepFilter;
diff --git a/node_modules/fast-glob/out/providers/filters/entry.d.ts b/node_modules/fast-glob/out/providers/filters/entry.d.ts
new file mode 100644
index 0000000..23db353
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/entry.d.ts
@@ -0,0 +1,17 @@
+import Settings from '../../settings';
+import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types';
+export default class EntryFilter {
+ private readonly _settings;
+ private readonly _micromatchOptions;
+ readonly index: Map;
+ constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
+ getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
+ private _filter;
+ private _isDuplicateEntry;
+ private _createIndexRecord;
+ private _onlyFileFilter;
+ private _onlyDirectoryFilter;
+ private _isMatchToPatternsSet;
+ private _isMatchToAbsoluteNegative;
+ private _isMatchToPatterns;
+}
diff --git a/node_modules/fast-glob/out/providers/filters/entry.js b/node_modules/fast-glob/out/providers/filters/entry.js
new file mode 100644
index 0000000..0c9210c
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/entry.js
@@ -0,0 +1,85 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const utils = require("../../utils");
+class EntryFilter {
+ constructor(_settings, _micromatchOptions) {
+ this._settings = _settings;
+ this._micromatchOptions = _micromatchOptions;
+ this.index = new Map();
+ }
+ getFilter(positive, negative) {
+ const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
+ const patterns = {
+ positive: {
+ all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
+ },
+ negative: {
+ absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
+ relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
+ }
+ };
+ return (entry) => this._filter(entry, patterns);
+ }
+ _filter(entry, patterns) {
+ const filepath = utils.path.removeLeadingDotSegment(entry.path);
+ if (this._settings.unique && this._isDuplicateEntry(filepath)) {
+ return false;
+ }
+ if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
+ return false;
+ }
+ const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
+ if (this._settings.unique && isMatched) {
+ this._createIndexRecord(filepath);
+ }
+ return isMatched;
+ }
+ _isDuplicateEntry(filepath) {
+ return this.index.has(filepath);
+ }
+ _createIndexRecord(filepath) {
+ this.index.set(filepath, undefined);
+ }
+ _onlyFileFilter(entry) {
+ return this._settings.onlyFiles && !entry.dirent.isFile();
+ }
+ _onlyDirectoryFilter(entry) {
+ return this._settings.onlyDirectories && !entry.dirent.isDirectory();
+ }
+ _isMatchToPatternsSet(filepath, patterns, isDirectory) {
+ const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
+ if (!isMatched) {
+ return false;
+ }
+ const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
+ if (isMatchedByRelativeNegative) {
+ return false;
+ }
+ const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
+ if (isMatchedByAbsoluteNegative) {
+ return false;
+ }
+ return true;
+ }
+ _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
+ if (patternsRe.length === 0) {
+ return false;
+ }
+ const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
+ return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
+ }
+ _isMatchToPatterns(filepath, patternsRe, isDirectory) {
+ if (patternsRe.length === 0) {
+ return false;
+ }
+ // Trying to match files and directories by patterns.
+ const isMatched = utils.pattern.matchAny(filepath, patternsRe);
+ // A pattern with a trailling slash can be used for directory matching.
+ // To apply such pattern, we need to add a tralling slash to the path.
+ if (!isMatched && isDirectory) {
+ return utils.pattern.matchAny(filepath + '/', patternsRe);
+ }
+ return isMatched;
+ }
+}
+exports.default = EntryFilter;
diff --git a/node_modules/fast-glob/out/providers/filters/error.d.ts b/node_modules/fast-glob/out/providers/filters/error.d.ts
new file mode 100644
index 0000000..170eb25
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/error.d.ts
@@ -0,0 +1,8 @@
+import Settings from '../../settings';
+import { ErrorFilterFunction } from '../../types';
+export default class ErrorFilter {
+ private readonly _settings;
+ constructor(_settings: Settings);
+ getFilter(): ErrorFilterFunction;
+ private _isNonFatalError;
+}
diff --git a/node_modules/fast-glob/out/providers/filters/error.js b/node_modules/fast-glob/out/providers/filters/error.js
new file mode 100644
index 0000000..1c6f241
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/filters/error.js
@@ -0,0 +1,15 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const utils = require("../../utils");
+class ErrorFilter {
+ constructor(_settings) {
+ this._settings = _settings;
+ }
+ getFilter() {
+ return (error) => this._isNonFatalError(error);
+ }
+ _isNonFatalError(error) {
+ return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
+ }
+}
+exports.default = ErrorFilter;
diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.d.ts b/node_modules/fast-glob/out/providers/matchers/matcher.d.ts
new file mode 100644
index 0000000..d04c232
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/matchers/matcher.d.ts
@@ -0,0 +1,33 @@
+import { Pattern, MicromatchOptions, PatternRe } from '../../types';
+import Settings from '../../settings';
+export type PatternSegment = StaticPatternSegment | DynamicPatternSegment;
+type StaticPatternSegment = {
+ dynamic: false;
+ pattern: Pattern;
+};
+type DynamicPatternSegment = {
+ dynamic: true;
+ pattern: Pattern;
+ patternRe: PatternRe;
+};
+export type PatternSection = PatternSegment[];
+export type PatternInfo = {
+ /**
+ * Indicates that the pattern has a globstar (more than a single section).
+ */
+ complete: boolean;
+ pattern: Pattern;
+ segments: PatternSegment[];
+ sections: PatternSection[];
+};
+export default abstract class Matcher {
+ private readonly _patterns;
+ private readonly _settings;
+ private readonly _micromatchOptions;
+ protected readonly _storage: PatternInfo[];
+ constructor(_patterns: Pattern[], _settings: Settings, _micromatchOptions: MicromatchOptions);
+ private _fillStorage;
+ private _getPatternSegments;
+ private _splitSegmentsIntoSections;
+}
+export {};
diff --git a/node_modules/fast-glob/out/providers/matchers/matcher.js b/node_modules/fast-glob/out/providers/matchers/matcher.js
new file mode 100644
index 0000000..eae67c9
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/matchers/matcher.js
@@ -0,0 +1,45 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const utils = require("../../utils");
+class Matcher {
+ constructor(_patterns, _settings, _micromatchOptions) {
+ this._patterns = _patterns;
+ this._settings = _settings;
+ this._micromatchOptions = _micromatchOptions;
+ this._storage = [];
+ this._fillStorage();
+ }
+ _fillStorage() {
+ for (const pattern of this._patterns) {
+ const segments = this._getPatternSegments(pattern);
+ const sections = this._splitSegmentsIntoSections(segments);
+ this._storage.push({
+ complete: sections.length <= 1,
+ pattern,
+ segments,
+ sections
+ });
+ }
+ }
+ _getPatternSegments(pattern) {
+ const parts = utils.pattern.getPatternParts(pattern, this._micromatchOptions);
+ return parts.map((part) => {
+ const dynamic = utils.pattern.isDynamicPattern(part, this._settings);
+ if (!dynamic) {
+ return {
+ dynamic: false,
+ pattern: part
+ };
+ }
+ return {
+ dynamic: true,
+ pattern: part,
+ patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
+ };
+ });
+ }
+ _splitSegmentsIntoSections(segments) {
+ return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
+ }
+}
+exports.default = Matcher;
diff --git a/node_modules/fast-glob/out/providers/matchers/partial.d.ts b/node_modules/fast-glob/out/providers/matchers/partial.d.ts
new file mode 100644
index 0000000..91520f6
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/matchers/partial.d.ts
@@ -0,0 +1,4 @@
+import Matcher from './matcher';
+export default class PartialMatcher extends Matcher {
+ match(filepath: string): boolean;
+}
diff --git a/node_modules/fast-glob/out/providers/matchers/partial.js b/node_modules/fast-glob/out/providers/matchers/partial.js
new file mode 100644
index 0000000..1dfffeb
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/matchers/partial.js
@@ -0,0 +1,38 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const matcher_1 = require("./matcher");
+class PartialMatcher extends matcher_1.default {
+ match(filepath) {
+ const parts = filepath.split('/');
+ const levels = parts.length;
+ const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
+ for (const pattern of patterns) {
+ const section = pattern.sections[0];
+ /**
+ * In this case, the pattern has a globstar and we must read all directories unconditionally,
+ * but only if the level has reached the end of the first group.
+ *
+ * fixtures/{a,b}/**
+ * ^ true/false ^ always true
+ */
+ if (!pattern.complete && levels > section.length) {
+ return true;
+ }
+ const match = parts.every((part, index) => {
+ const segment = pattern.segments[index];
+ if (segment.dynamic && segment.patternRe.test(part)) {
+ return true;
+ }
+ if (!segment.dynamic && segment.pattern === part) {
+ return true;
+ }
+ return false;
+ });
+ if (match) {
+ return true;
+ }
+ }
+ return false;
+ }
+}
+exports.default = PartialMatcher;
diff --git a/node_modules/fast-glob/out/providers/provider.d.ts b/node_modules/fast-glob/out/providers/provider.d.ts
new file mode 100644
index 0000000..1053460
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/provider.d.ts
@@ -0,0 +1,19 @@
+import { Task } from '../managers/tasks';
+import Settings from '../settings';
+import { MicromatchOptions, ReaderOptions } from '../types';
+import DeepFilter from './filters/deep';
+import EntryFilter from './filters/entry';
+import ErrorFilter from './filters/error';
+import EntryTransformer from './transformers/entry';
+export default abstract class Provider {
+ protected readonly _settings: Settings;
+ readonly errorFilter: ErrorFilter;
+ readonly entryFilter: EntryFilter;
+ readonly deepFilter: DeepFilter;
+ readonly entryTransformer: EntryTransformer;
+ constructor(_settings: Settings);
+ abstract read(_task: Task): T;
+ protected _getRootDirectory(task: Task): string;
+ protected _getReaderOptions(task: Task): ReaderOptions;
+ protected _getMicromatchOptions(): MicromatchOptions;
+}
diff --git a/node_modules/fast-glob/out/providers/provider.js b/node_modules/fast-glob/out/providers/provider.js
new file mode 100644
index 0000000..da88ee0
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/provider.js
@@ -0,0 +1,48 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const path = require("path");
+const deep_1 = require("./filters/deep");
+const entry_1 = require("./filters/entry");
+const error_1 = require("./filters/error");
+const entry_2 = require("./transformers/entry");
+class Provider {
+ constructor(_settings) {
+ this._settings = _settings;
+ this.errorFilter = new error_1.default(this._settings);
+ this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions());
+ this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions());
+ this.entryTransformer = new entry_2.default(this._settings);
+ }
+ _getRootDirectory(task) {
+ return path.resolve(this._settings.cwd, task.base);
+ }
+ _getReaderOptions(task) {
+ const basePath = task.base === '.' ? '' : task.base;
+ return {
+ basePath,
+ pathSegmentSeparator: '/',
+ concurrency: this._settings.concurrency,
+ deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative),
+ entryFilter: this.entryFilter.getFilter(task.positive, task.negative),
+ errorFilter: this.errorFilter.getFilter(),
+ followSymbolicLinks: this._settings.followSymbolicLinks,
+ fs: this._settings.fs,
+ stats: this._settings.stats,
+ throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
+ transform: this.entryTransformer.getTransformer()
+ };
+ }
+ _getMicromatchOptions() {
+ return {
+ dot: this._settings.dot,
+ matchBase: this._settings.baseNameMatch,
+ nobrace: !this._settings.braceExpansion,
+ nocase: !this._settings.caseSensitiveMatch,
+ noext: !this._settings.extglob,
+ noglobstar: !this._settings.globstar,
+ posix: true,
+ strictSlashes: false
+ };
+ }
+}
+exports.default = Provider;
diff --git a/node_modules/fast-glob/out/providers/stream.d.ts b/node_modules/fast-glob/out/providers/stream.d.ts
new file mode 100644
index 0000000..3d02a1f
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/stream.d.ts
@@ -0,0 +1,11 @@
+///
+import { Readable } from 'stream';
+import { Task } from '../managers/tasks';
+import ReaderStream from '../readers/stream';
+import { ReaderOptions } from '../types';
+import Provider from './provider';
+export default class ProviderStream extends Provider {
+ protected _reader: ReaderStream;
+ read(task: Task): Readable;
+ api(root: string, task: Task, options: ReaderOptions): Readable;
+}
diff --git a/node_modules/fast-glob/out/providers/stream.js b/node_modules/fast-glob/out/providers/stream.js
new file mode 100644
index 0000000..85da62e
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/stream.js
@@ -0,0 +1,31 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const stream_1 = require("stream");
+const stream_2 = require("../readers/stream");
+const provider_1 = require("./provider");
+class ProviderStream extends provider_1.default {
+ constructor() {
+ super(...arguments);
+ this._reader = new stream_2.default(this._settings);
+ }
+ read(task) {
+ const root = this._getRootDirectory(task);
+ const options = this._getReaderOptions(task);
+ const source = this.api(root, task, options);
+ const destination = new stream_1.Readable({ objectMode: true, read: () => { } });
+ source
+ .once('error', (error) => destination.emit('error', error))
+ .on('data', (entry) => destination.emit('data', options.transform(entry)))
+ .once('end', () => destination.emit('end'));
+ destination
+ .once('close', () => source.destroy());
+ return destination;
+ }
+ api(root, task, options) {
+ if (task.dynamic) {
+ return this._reader.dynamic(root, options);
+ }
+ return this._reader.static(task.patterns, options);
+ }
+}
+exports.default = ProviderStream;
diff --git a/node_modules/fast-glob/out/providers/sync.d.ts b/node_modules/fast-glob/out/providers/sync.d.ts
new file mode 100644
index 0000000..9c0fe1e
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/sync.d.ts
@@ -0,0 +1,9 @@
+import { Task } from '../managers/tasks';
+import ReaderSync from '../readers/sync';
+import { Entry, EntryItem, ReaderOptions } from '../types';
+import Provider from './provider';
+export default class ProviderSync extends Provider {
+ protected _reader: ReaderSync;
+ read(task: Task): EntryItem[];
+ api(root: string, task: Task, options: ReaderOptions): Entry[];
+}
diff --git a/node_modules/fast-glob/out/providers/sync.js b/node_modules/fast-glob/out/providers/sync.js
new file mode 100644
index 0000000..d70aa1b
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/sync.js
@@ -0,0 +1,23 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const sync_1 = require("../readers/sync");
+const provider_1 = require("./provider");
+class ProviderSync extends provider_1.default {
+ constructor() {
+ super(...arguments);
+ this._reader = new sync_1.default(this._settings);
+ }
+ read(task) {
+ const root = this._getRootDirectory(task);
+ const options = this._getReaderOptions(task);
+ const entries = this.api(root, task, options);
+ return entries.map(options.transform);
+ }
+ api(root, task, options) {
+ if (task.dynamic) {
+ return this._reader.dynamic(root, options);
+ }
+ return this._reader.static(task.patterns, options);
+ }
+}
+exports.default = ProviderSync;
diff --git a/node_modules/fast-glob/out/providers/transformers/entry.d.ts b/node_modules/fast-glob/out/providers/transformers/entry.d.ts
new file mode 100644
index 0000000..e9b85fa
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/transformers/entry.d.ts
@@ -0,0 +1,8 @@
+import Settings from '../../settings';
+import { EntryTransformerFunction } from '../../types';
+export default class EntryTransformer {
+ private readonly _settings;
+ constructor(_settings: Settings);
+ getTransformer(): EntryTransformerFunction;
+ private _transform;
+}
diff --git a/node_modules/fast-glob/out/providers/transformers/entry.js b/node_modules/fast-glob/out/providers/transformers/entry.js
new file mode 100644
index 0000000..d11903c
--- /dev/null
+++ b/node_modules/fast-glob/out/providers/transformers/entry.js
@@ -0,0 +1,26 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const utils = require("../../utils");
+class EntryTransformer {
+ constructor(_settings) {
+ this._settings = _settings;
+ }
+ getTransformer() {
+ return (entry) => this._transform(entry);
+ }
+ _transform(entry) {
+ let filepath = entry.path;
+ if (this._settings.absolute) {
+ filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
+ filepath = utils.path.unixify(filepath);
+ }
+ if (this._settings.markDirectories && entry.dirent.isDirectory()) {
+ filepath += '/';
+ }
+ if (!this._settings.objectMode) {
+ return filepath;
+ }
+ return Object.assign(Object.assign({}, entry), { path: filepath });
+ }
+}
+exports.default = EntryTransformer;
diff --git a/node_modules/fast-glob/out/readers/async.d.ts b/node_modules/fast-glob/out/readers/async.d.ts
new file mode 100644
index 0000000..fbca428
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/async.d.ts
@@ -0,0 +1,10 @@
+import * as fsWalk from '@nodelib/fs.walk';
+import { Entry, ReaderOptions, Pattern } from '../types';
+import Reader from './reader';
+import ReaderStream from './stream';
+export default class ReaderAsync extends Reader> {
+ protected _walkAsync: typeof fsWalk.walk;
+ protected _readerStream: ReaderStream;
+ dynamic(root: string, options: ReaderOptions): Promise;
+ static(patterns: Pattern[], options: ReaderOptions): Promise;
+}
diff --git a/node_modules/fast-glob/out/readers/async.js b/node_modules/fast-glob/out/readers/async.js
new file mode 100644
index 0000000..d024145
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/async.js
@@ -0,0 +1,35 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const fsWalk = require("@nodelib/fs.walk");
+const reader_1 = require("./reader");
+const stream_1 = require("./stream");
+class ReaderAsync extends reader_1.default {
+ constructor() {
+ super(...arguments);
+ this._walkAsync = fsWalk.walk;
+ this._readerStream = new stream_1.default(this._settings);
+ }
+ dynamic(root, options) {
+ return new Promise((resolve, reject) => {
+ this._walkAsync(root, options, (error, entries) => {
+ if (error === null) {
+ resolve(entries);
+ }
+ else {
+ reject(error);
+ }
+ });
+ });
+ }
+ async static(patterns, options) {
+ const entries = [];
+ const stream = this._readerStream.static(patterns, options);
+ // After #235, replace it with an asynchronous iterator.
+ return new Promise((resolve, reject) => {
+ stream.once('error', reject);
+ stream.on('data', (entry) => entries.push(entry));
+ stream.once('end', () => resolve(entries));
+ });
+ }
+}
+exports.default = ReaderAsync;
diff --git a/node_modules/fast-glob/out/readers/reader.d.ts b/node_modules/fast-glob/out/readers/reader.d.ts
new file mode 100644
index 0000000..2af16b6
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/reader.d.ts
@@ -0,0 +1,15 @@
+///
+import * as fs from 'fs';
+import * as fsStat from '@nodelib/fs.stat';
+import Settings from '../settings';
+import { Entry, ErrnoException, Pattern, ReaderOptions } from '../types';
+export default abstract class Reader {
+ protected readonly _settings: Settings;
+ protected readonly _fsStatSettings: fsStat.Settings;
+ constructor(_settings: Settings);
+ abstract dynamic(root: string, options: ReaderOptions): T;
+ abstract static(patterns: Pattern[], options: ReaderOptions): T;
+ protected _getFullEntryPath(filepath: string): string;
+ protected _makeEntry(stats: fs.Stats, pattern: Pattern): Entry;
+ protected _isFatalError(error: ErrnoException): boolean;
+}
diff --git a/node_modules/fast-glob/out/readers/reader.js b/node_modules/fast-glob/out/readers/reader.js
new file mode 100644
index 0000000..7b40255
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/reader.js
@@ -0,0 +1,33 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const path = require("path");
+const fsStat = require("@nodelib/fs.stat");
+const utils = require("../utils");
+class Reader {
+ constructor(_settings) {
+ this._settings = _settings;
+ this._fsStatSettings = new fsStat.Settings({
+ followSymbolicLink: this._settings.followSymbolicLinks,
+ fs: this._settings.fs,
+ throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
+ });
+ }
+ _getFullEntryPath(filepath) {
+ return path.resolve(this._settings.cwd, filepath);
+ }
+ _makeEntry(stats, pattern) {
+ const entry = {
+ name: pattern,
+ path: pattern,
+ dirent: utils.fs.createDirentFromStats(pattern, stats)
+ };
+ if (this._settings.stats) {
+ entry.stats = stats;
+ }
+ return entry;
+ }
+ _isFatalError(error) {
+ return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
+ }
+}
+exports.default = Reader;
diff --git a/node_modules/fast-glob/out/readers/stream.d.ts b/node_modules/fast-glob/out/readers/stream.d.ts
new file mode 100644
index 0000000..1c74cac
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/stream.d.ts
@@ -0,0 +1,14 @@
+///
+import { Readable } from 'stream';
+import * as fsStat from '@nodelib/fs.stat';
+import * as fsWalk from '@nodelib/fs.walk';
+import { Pattern, ReaderOptions } from '../types';
+import Reader from './reader';
+export default class ReaderStream extends Reader {
+ protected _walkStream: typeof fsWalk.walkStream;
+ protected _stat: typeof fsStat.stat;
+ dynamic(root: string, options: ReaderOptions): Readable;
+ static(patterns: Pattern[], options: ReaderOptions): Readable;
+ private _getEntry;
+ private _getStat;
+}
diff --git a/node_modules/fast-glob/out/readers/stream.js b/node_modules/fast-glob/out/readers/stream.js
new file mode 100644
index 0000000..317c6d5
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/stream.js
@@ -0,0 +1,55 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const stream_1 = require("stream");
+const fsStat = require("@nodelib/fs.stat");
+const fsWalk = require("@nodelib/fs.walk");
+const reader_1 = require("./reader");
+class ReaderStream extends reader_1.default {
+ constructor() {
+ super(...arguments);
+ this._walkStream = fsWalk.walkStream;
+ this._stat = fsStat.stat;
+ }
+ dynamic(root, options) {
+ return this._walkStream(root, options);
+ }
+ static(patterns, options) {
+ const filepaths = patterns.map(this._getFullEntryPath, this);
+ const stream = new stream_1.PassThrough({ objectMode: true });
+ stream._write = (index, _enc, done) => {
+ return this._getEntry(filepaths[index], patterns[index], options)
+ .then((entry) => {
+ if (entry !== null && options.entryFilter(entry)) {
+ stream.push(entry);
+ }
+ if (index === filepaths.length - 1) {
+ stream.end();
+ }
+ done();
+ })
+ .catch(done);
+ };
+ for (let i = 0; i < filepaths.length; i++) {
+ stream.write(i);
+ }
+ return stream;
+ }
+ _getEntry(filepath, pattern, options) {
+ return this._getStat(filepath)
+ .then((stats) => this._makeEntry(stats, pattern))
+ .catch((error) => {
+ if (options.errorFilter(error)) {
+ return null;
+ }
+ throw error;
+ });
+ }
+ _getStat(filepath) {
+ return new Promise((resolve, reject) => {
+ this._stat(filepath, this._fsStatSettings, (error, stats) => {
+ return error === null ? resolve(stats) : reject(error);
+ });
+ });
+ }
+}
+exports.default = ReaderStream;
diff --git a/node_modules/fast-glob/out/readers/sync.d.ts b/node_modules/fast-glob/out/readers/sync.d.ts
new file mode 100644
index 0000000..c96ffee
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/sync.d.ts
@@ -0,0 +1,12 @@
+import * as fsStat from '@nodelib/fs.stat';
+import * as fsWalk from '@nodelib/fs.walk';
+import { Entry, Pattern, ReaderOptions } from '../types';
+import Reader from './reader';
+export default class ReaderSync extends Reader {
+ protected _walkSync: typeof fsWalk.walkSync;
+ protected _statSync: typeof fsStat.statSync;
+ dynamic(root: string, options: ReaderOptions): Entry[];
+ static(patterns: Pattern[], options: ReaderOptions): Entry[];
+ private _getEntry;
+ private _getStat;
+}
diff --git a/node_modules/fast-glob/out/readers/sync.js b/node_modules/fast-glob/out/readers/sync.js
new file mode 100644
index 0000000..4704d65
--- /dev/null
+++ b/node_modules/fast-glob/out/readers/sync.js
@@ -0,0 +1,43 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+const fsStat = require("@nodelib/fs.stat");
+const fsWalk = require("@nodelib/fs.walk");
+const reader_1 = require("./reader");
+class ReaderSync extends reader_1.default {
+ constructor() {
+ super(...arguments);
+ this._walkSync = fsWalk.walkSync;
+ this._statSync = fsStat.statSync;
+ }
+ dynamic(root, options) {
+ return this._walkSync(root, options);
+ }
+ static(patterns, options) {
+ const entries = [];
+ for (const pattern of patterns) {
+ const filepath = this._getFullEntryPath(pattern);
+ const entry = this._getEntry(filepath, pattern, options);
+ if (entry === null || !options.entryFilter(entry)) {
+ continue;
+ }
+ entries.push(entry);
+ }
+ return entries;
+ }
+ _getEntry(filepath, pattern, options) {
+ try {
+ const stats = this._getStat(filepath);
+ return this._makeEntry(stats, pattern);
+ }
+ catch (error) {
+ if (options.errorFilter(error)) {
+ return null;
+ }
+ throw error;
+ }
+ }
+ _getStat(filepath) {
+ return this._statSync(filepath, this._fsStatSettings);
+ }
+}
+exports.default = ReaderSync;
diff --git a/node_modules/fast-glob/out/settings.d.ts b/node_modules/fast-glob/out/settings.d.ts
new file mode 100644
index 0000000..76a74f8
--- /dev/null
+++ b/node_modules/fast-glob/out/settings.d.ts
@@ -0,0 +1,164 @@
+import { FileSystemAdapter, Pattern } from './types';
+export declare const DEFAULT_FILE_SYSTEM_ADAPTER: FileSystemAdapter;
+export type Options = {
+ /**
+ * Return the absolute path for entries.
+ *
+ * @default false
+ */
+ absolute?: boolean;
+ /**
+ * If set to `true`, then patterns without slashes will be matched against
+ * the basename of the path if it contains slashes.
+ *
+ * @default false
+ */
+ baseNameMatch?: boolean;
+ /**
+ * Enables Bash-like brace expansion.
+ *
+ * @default true
+ */
+ braceExpansion?: boolean;
+ /**
+ * Enables a case-sensitive mode for matching files.
+ *
+ * @default true
+ */
+ caseSensitiveMatch?: boolean;
+ /**
+ * Specifies the maximum number of concurrent requests from a reader to read
+ * directories.
+ *
+ * @default os.cpus().length
+ */
+ concurrency?: number;
+ /**
+ * The current working directory in which to search.
+ *
+ * @default process.cwd()
+ */
+ cwd?: string;
+ /**
+ * Specifies the maximum depth of a read directory relative to the start
+ * directory.
+ *
+ * @default Infinity
+ */
+ deep?: number;
+ /**
+ * Allow patterns to match entries that begin with a period (`.`).
+ *
+ * @default false
+ */
+ dot?: boolean;
+ /**
+ * Enables Bash-like `extglob` functionality.
+ *
+ * @default true
+ */
+ extglob?: boolean;
+ /**
+ * Indicates whether to traverse descendants of symbolic link directories.
+ *
+ * @default true
+ */
+ followSymbolicLinks?: boolean;
+ /**
+ * Custom implementation of methods for working with the file system.
+ *
+ * @default fs.*
+ */
+ fs?: Partial;
+ /**
+ * Enables recursively repeats a pattern containing `**`.
+ * If `false`, `**` behaves exactly like `*`.
+ *
+ * @default true
+ */
+ globstar?: boolean;
+ /**
+ * An array of glob patterns to exclude matches.
+ * This is an alternative way to use negative patterns.
+ *
+ * @default []
+ */
+ ignore?: Pattern[];
+ /**
+ * Mark the directory path with the final slash.
+ *
+ * @default false
+ */
+ markDirectories?: boolean;
+ /**
+ * Returns objects (instead of strings) describing entries.
+ *
+ * @default false
+ */
+ objectMode?: boolean;
+ /**
+ * Return only directories.
+ *
+ * @default false
+ */
+ onlyDirectories?: boolean;
+ /**
+ * Return only files.
+ *
+ * @default true
+ */
+ onlyFiles?: boolean;
+ /**
+ * Enables an object mode (`objectMode`) with an additional `stats` field.
+ *
+ * @default false
+ */
+ stats?: boolean;
+ /**
+ * By default this package suppress only `ENOENT` errors.
+ * Set to `true` to suppress any error.
+ *
+ * @default false
+ */
+ suppressErrors?: boolean;
+ /**
+ * Throw an error when symbolic link is broken if `true` or safely
+ * return `lstat` call if `false`.
+ *
+ * @default false
+ */
+ throwErrorOnBrokenSymbolicLink?: boolean;
+ /**
+ * Ensures that the returned entries are unique.
+ *
+ * @default true
+ */
+ unique?: boolean;
+};
+export default class Settings {
+ private readonly _options;
+ readonly absolute: boolean;
+ readonly baseNameMatch: boolean;
+ readonly braceExpansion: boolean;
+ readonly caseSensitiveMatch: boolean;
+ readonly concurrency: number;
+ readonly cwd: string;
+ readonly deep: number;
+ readonly dot: boolean;
+ readonly extglob: boolean;
+ readonly followSymbolicLinks: boolean;
+ readonly fs: FileSystemAdapter;
+ readonly globstar: boolean;
+ readonly ignore: Pattern[];
+ readonly markDirectories: boolean;
+ readonly objectMode: boolean;
+ readonly onlyDirectories: boolean;
+ readonly onlyFiles: boolean;
+ readonly stats: boolean;
+ readonly suppressErrors: boolean;
+ readonly throwErrorOnBrokenSymbolicLink: boolean;
+ readonly unique: boolean;
+ constructor(_options?: Options);
+ private _getValue;
+ private _getFileSystemMethods;
+}
diff --git a/node_modules/fast-glob/out/settings.js b/node_modules/fast-glob/out/settings.js
new file mode 100644
index 0000000..23f916c
--- /dev/null
+++ b/node_modules/fast-glob/out/settings.js
@@ -0,0 +1,59 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
+const fs = require("fs");
+const os = require("os");
+/**
+ * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
+ * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
+ */
+const CPU_COUNT = Math.max(os.cpus().length, 1);
+exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
+ lstat: fs.lstat,
+ lstatSync: fs.lstatSync,
+ stat: fs.stat,
+ statSync: fs.statSync,
+ readdir: fs.readdir,
+ readdirSync: fs.readdirSync
+};
+class Settings {
+ constructor(_options = {}) {
+ this._options = _options;
+ this.absolute = this._getValue(this._options.absolute, false);
+ this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
+ this.braceExpansion = this._getValue(this._options.braceExpansion, true);
+ this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
+ this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT);
+ this.cwd = this._getValue(this._options.cwd, process.cwd());
+ this.deep = this._getValue(this._options.deep, Infinity);
+ this.dot = this._getValue(this._options.dot, false);
+ this.extglob = this._getValue(this._options.extglob, true);
+ this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true);
+ this.fs = this._getFileSystemMethods(this._options.fs);
+ this.globstar = this._getValue(this._options.globstar, true);
+ this.ignore = this._getValue(this._options.ignore, []);
+ this.markDirectories = this._getValue(this._options.markDirectories, false);
+ this.objectMode = this._getValue(this._options.objectMode, false);
+ this.onlyDirectories = this._getValue(this._options.onlyDirectories, false);
+ this.onlyFiles = this._getValue(this._options.onlyFiles, true);
+ this.stats = this._getValue(this._options.stats, false);
+ this.suppressErrors = this._getValue(this._options.suppressErrors, false);
+ this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
+ this.unique = this._getValue(this._options.unique, true);
+ if (this.onlyDirectories) {
+ this.onlyFiles = false;
+ }
+ if (this.stats) {
+ this.objectMode = true;
+ }
+ // Remove the cast to the array in the next major (#404).
+ this.ignore = [].concat(this.ignore);
+ }
+ _getValue(option, value) {
+ return option === undefined ? value : option;
+ }
+ _getFileSystemMethods(methods = {}) {
+ return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
+ }
+}
+exports.default = Settings;
diff --git a/node_modules/fast-glob/out/types/index.d.ts b/node_modules/fast-glob/out/types/index.d.ts
new file mode 100644
index 0000000..6506caf
--- /dev/null
+++ b/node_modules/fast-glob/out/types/index.d.ts
@@ -0,0 +1,31 @@
+///
+import * as fsWalk from '@nodelib/fs.walk';
+export type ErrnoException = NodeJS.ErrnoException;
+export type Entry = fsWalk.Entry;
+export type EntryItem = string | Entry;
+export type Pattern = string;
+export type PatternRe = RegExp;
+export type PatternsGroup = Record;
+export type ReaderOptions = fsWalk.Options & {
+ transform(entry: Entry): EntryItem;
+ deepFilter: DeepFilterFunction;
+ entryFilter: EntryFilterFunction;
+ errorFilter: ErrorFilterFunction;
+ fs: FileSystemAdapter;
+ stats: boolean;
+};
+export type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
+export type EntryFilterFunction = fsWalk.EntryFilterFunction;
+export type DeepFilterFunction = fsWalk.DeepFilterFunction;
+export type EntryTransformerFunction = (entry: Entry) => EntryItem;
+export type MicromatchOptions = {
+ dot?: boolean;
+ matchBase?: boolean;
+ nobrace?: boolean;
+ nocase?: boolean;
+ noext?: boolean;
+ noglobstar?: boolean;
+ posix?: boolean;
+ strictSlashes?: boolean;
+};
+export type FileSystemAdapter = fsWalk.FileSystemAdapter;
diff --git a/node_modules/fast-glob/out/types/index.js b/node_modules/fast-glob/out/types/index.js
new file mode 100644
index 0000000..c8ad2e5
--- /dev/null
+++ b/node_modules/fast-glob/out/types/index.js
@@ -0,0 +1,2 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
diff --git a/node_modules/fast-glob/out/utils/array.d.ts b/node_modules/fast-glob/out/utils/array.d.ts
new file mode 100644
index 0000000..98e7325
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/array.d.ts
@@ -0,0 +1,2 @@
+export declare function flatten(items: T[][]): T[];
+export declare function splitWhen(items: T[], predicate: (item: T) => boolean): T[][];
diff --git a/node_modules/fast-glob/out/utils/array.js b/node_modules/fast-glob/out/utils/array.js
new file mode 100644
index 0000000..50c406e
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/array.js
@@ -0,0 +1,22 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.splitWhen = exports.flatten = void 0;
+function flatten(items) {
+ return items.reduce((collection, item) => [].concat(collection, item), []);
+}
+exports.flatten = flatten;
+function splitWhen(items, predicate) {
+ const result = [[]];
+ let groupIndex = 0;
+ for (const item of items) {
+ if (predicate(item)) {
+ groupIndex++;
+ result[groupIndex] = [];
+ }
+ else {
+ result[groupIndex].push(item);
+ }
+ }
+ return result;
+}
+exports.splitWhen = splitWhen;
diff --git a/node_modules/fast-glob/out/utils/errno.d.ts b/node_modules/fast-glob/out/utils/errno.d.ts
new file mode 100644
index 0000000..1c08d3b
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/errno.d.ts
@@ -0,0 +1,2 @@
+import { ErrnoException } from '../types';
+export declare function isEnoentCodeError(error: ErrnoException): boolean;
diff --git a/node_modules/fast-glob/out/utils/errno.js b/node_modules/fast-glob/out/utils/errno.js
new file mode 100644
index 0000000..f0bd801
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/errno.js
@@ -0,0 +1,7 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isEnoentCodeError = void 0;
+function isEnoentCodeError(error) {
+ return error.code === 'ENOENT';
+}
+exports.isEnoentCodeError = isEnoentCodeError;
diff --git a/node_modules/fast-glob/out/utils/fs.d.ts b/node_modules/fast-glob/out/utils/fs.d.ts
new file mode 100644
index 0000000..64c61ce
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/fs.d.ts
@@ -0,0 +1,4 @@
+///
+import * as fs from 'fs';
+import { Dirent } from '@nodelib/fs.walk';
+export declare function createDirentFromStats(name: string, stats: fs.Stats): Dirent;
diff --git a/node_modules/fast-glob/out/utils/fs.js b/node_modules/fast-glob/out/utils/fs.js
new file mode 100644
index 0000000..ace7c74
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/fs.js
@@ -0,0 +1,19 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.createDirentFromStats = void 0;
+class DirentFromStats {
+ constructor(name, stats) {
+ this.name = name;
+ this.isBlockDevice = stats.isBlockDevice.bind(stats);
+ this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
+ this.isDirectory = stats.isDirectory.bind(stats);
+ this.isFIFO = stats.isFIFO.bind(stats);
+ this.isFile = stats.isFile.bind(stats);
+ this.isSocket = stats.isSocket.bind(stats);
+ this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
+ }
+}
+function createDirentFromStats(name, stats) {
+ return new DirentFromStats(name, stats);
+}
+exports.createDirentFromStats = createDirentFromStats;
diff --git a/node_modules/fast-glob/out/utils/index.d.ts b/node_modules/fast-glob/out/utils/index.d.ts
new file mode 100644
index 0000000..f634cad
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/index.d.ts
@@ -0,0 +1,8 @@
+import * as array from './array';
+import * as errno from './errno';
+import * as fs from './fs';
+import * as path from './path';
+import * as pattern from './pattern';
+import * as stream from './stream';
+import * as string from './string';
+export { array, errno, fs, path, pattern, stream, string };
diff --git a/node_modules/fast-glob/out/utils/index.js b/node_modules/fast-glob/out/utils/index.js
new file mode 100644
index 0000000..0f92c16
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/index.js
@@ -0,0 +1,17 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
+const array = require("./array");
+exports.array = array;
+const errno = require("./errno");
+exports.errno = errno;
+const fs = require("./fs");
+exports.fs = fs;
+const path = require("./path");
+exports.path = path;
+const pattern = require("./pattern");
+exports.pattern = pattern;
+const stream = require("./stream");
+exports.stream = stream;
+const string = require("./string");
+exports.string = string;
diff --git a/node_modules/fast-glob/out/utils/path.d.ts b/node_modules/fast-glob/out/utils/path.d.ts
new file mode 100644
index 0000000..0b13f4b
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/path.d.ts
@@ -0,0 +1,13 @@
+import { Pattern } from '../types';
+/**
+ * Designed to work only with simple paths: `dir\\file`.
+ */
+export declare function unixify(filepath: string): string;
+export declare function makeAbsolute(cwd: string, filepath: string): string;
+export declare function removeLeadingDotSegment(entry: string): string;
+export declare const escape: typeof escapeWindowsPath;
+export declare function escapeWindowsPath(pattern: Pattern): Pattern;
+export declare function escapePosixPath(pattern: Pattern): Pattern;
+export declare const convertPathToPattern: typeof convertWindowsPathToPattern;
+export declare function convertWindowsPathToPattern(filepath: string): Pattern;
+export declare function convertPosixPathToPattern(filepath: string): Pattern;
diff --git a/node_modules/fast-glob/out/utils/path.js b/node_modules/fast-glob/out/utils/path.js
new file mode 100644
index 0000000..7b53b39
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/path.js
@@ -0,0 +1,68 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
+const os = require("os");
+const path = require("path");
+const IS_WINDOWS_PLATFORM = os.platform() === 'win32';
+const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
+/**
+ * All non-escaped special characters.
+ * Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters.
+ * Windows: (){}[], !+@ before (, ! at the beginning.
+ */
+const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
+const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
+/**
+ * The device path (\\.\ or \\?\).
+ * https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths
+ */
+const DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
+/**
+ * All backslashes except those escaping special characters.
+ * Windows: !()+@{}
+ * https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
+ */
+const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
+/**
+ * Designed to work only with simple paths: `dir\\file`.
+ */
+function unixify(filepath) {
+ return filepath.replace(/\\/g, '/');
+}
+exports.unixify = unixify;
+function makeAbsolute(cwd, filepath) {
+ return path.resolve(cwd, filepath);
+}
+exports.makeAbsolute = makeAbsolute;
+function removeLeadingDotSegment(entry) {
+ // We do not use `startsWith` because this is 10x slower than current implementation for some cases.
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
+ if (entry.charAt(0) === '.') {
+ const secondCharactery = entry.charAt(1);
+ if (secondCharactery === '/' || secondCharactery === '\\') {
+ return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
+ }
+ }
+ return entry;
+}
+exports.removeLeadingDotSegment = removeLeadingDotSegment;
+exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
+function escapeWindowsPath(pattern) {
+ return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
+}
+exports.escapeWindowsPath = escapeWindowsPath;
+function escapePosixPath(pattern) {
+ return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
+}
+exports.escapePosixPath = escapePosixPath;
+exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
+function convertWindowsPathToPattern(filepath) {
+ return escapeWindowsPath(filepath)
+ .replace(DOS_DEVICE_PATH_RE, '//$1')
+ .replace(WINDOWS_BACKSLASHES_RE, '/');
+}
+exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
+function convertPosixPathToPattern(filepath) {
+ return escapePosixPath(filepath);
+}
+exports.convertPosixPathToPattern = convertPosixPathToPattern;
diff --git a/node_modules/fast-glob/out/utils/pattern.d.ts b/node_modules/fast-glob/out/utils/pattern.d.ts
new file mode 100644
index 0000000..e3598a9
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/pattern.d.ts
@@ -0,0 +1,49 @@
+import { MicromatchOptions, Pattern, PatternRe } from '../types';
+type PatternTypeOptions = {
+ braceExpansion?: boolean;
+ caseSensitiveMatch?: boolean;
+ extglob?: boolean;
+};
+export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
+export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
+export declare function convertToPositivePattern(pattern: Pattern): Pattern;
+export declare function convertToNegativePattern(pattern: Pattern): Pattern;
+export declare function isNegativePattern(pattern: Pattern): boolean;
+export declare function isPositivePattern(pattern: Pattern): boolean;
+export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
+export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
+/**
+ * Returns patterns that can be applied inside the current directory.
+ *
+ * @example
+ * // ['./*', '*', 'a/*']
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
+ */
+export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[];
+/**
+ * Returns patterns to be expanded relative to (outside) the current directory.
+ *
+ * @example
+ * // ['../*', './../*']
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
+ */
+export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[];
+export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean;
+export declare function getBaseDirectory(pattern: Pattern): string;
+export declare function hasGlobStar(pattern: Pattern): boolean;
+export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
+export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
+export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
+export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
+export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
+export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
+export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
+export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
+/**
+ * This package only works with forward slashes as a path separator.
+ * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
+ */
+export declare function removeDuplicateSlashes(pattern: string): string;
+export declare function partitionAbsoluteAndRelative(patterns: Pattern[]): Pattern[][];
+export declare function isAbsolute(pattern: string): boolean;
+export {};
diff --git a/node_modules/fast-glob/out/utils/pattern.js b/node_modules/fast-glob/out/utils/pattern.js
new file mode 100644
index 0000000..b2924e7
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/pattern.js
@@ -0,0 +1,206 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
+const path = require("path");
+const globParent = require("glob-parent");
+const micromatch = require("micromatch");
+const GLOBSTAR = '**';
+const ESCAPE_SYMBOL = '\\';
+const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
+const REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/;
+const REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
+const GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
+const BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
+/**
+ * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string.
+ * The latter is due to the presence of the device path at the beginning of the UNC path.
+ */
+const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
+function isStaticPattern(pattern, options = {}) {
+ return !isDynamicPattern(pattern, options);
+}
+exports.isStaticPattern = isStaticPattern;
+function isDynamicPattern(pattern, options = {}) {
+ /**
+ * A special case with an empty string is necessary for matching patterns that start with a forward slash.
+ * An empty string cannot be a dynamic pattern.
+ * For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
+ */
+ if (pattern === '') {
+ return false;
+ }
+ /**
+ * When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
+ * filepath directly (without read directory).
+ */
+ if (options.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) {
+ return true;
+ }
+ if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) {
+ return true;
+ }
+ if (options.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) {
+ return true;
+ }
+ if (options.braceExpansion !== false && hasBraceExpansion(pattern)) {
+ return true;
+ }
+ return false;
+}
+exports.isDynamicPattern = isDynamicPattern;
+function hasBraceExpansion(pattern) {
+ const openingBraceIndex = pattern.indexOf('{');
+ if (openingBraceIndex === -1) {
+ return false;
+ }
+ const closingBraceIndex = pattern.indexOf('}', openingBraceIndex + 1);
+ if (closingBraceIndex === -1) {
+ return false;
+ }
+ const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
+ return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
+}
+function convertToPositivePattern(pattern) {
+ return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
+}
+exports.convertToPositivePattern = convertToPositivePattern;
+function convertToNegativePattern(pattern) {
+ return '!' + pattern;
+}
+exports.convertToNegativePattern = convertToNegativePattern;
+function isNegativePattern(pattern) {
+ return pattern.startsWith('!') && pattern[1] !== '(';
+}
+exports.isNegativePattern = isNegativePattern;
+function isPositivePattern(pattern) {
+ return !isNegativePattern(pattern);
+}
+exports.isPositivePattern = isPositivePattern;
+function getNegativePatterns(patterns) {
+ return patterns.filter(isNegativePattern);
+}
+exports.getNegativePatterns = getNegativePatterns;
+function getPositivePatterns(patterns) {
+ return patterns.filter(isPositivePattern);
+}
+exports.getPositivePatterns = getPositivePatterns;
+/**
+ * Returns patterns that can be applied inside the current directory.
+ *
+ * @example
+ * // ['./*', '*', 'a/*']
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
+ */
+function getPatternsInsideCurrentDirectory(patterns) {
+ return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
+}
+exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
+/**
+ * Returns patterns to be expanded relative to (outside) the current directory.
+ *
+ * @example
+ * // ['../*', './../*']
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
+ */
+function getPatternsOutsideCurrentDirectory(patterns) {
+ return patterns.filter(isPatternRelatedToParentDirectory);
+}
+exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
+function isPatternRelatedToParentDirectory(pattern) {
+ return pattern.startsWith('..') || pattern.startsWith('./..');
+}
+exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
+function getBaseDirectory(pattern) {
+ return globParent(pattern, { flipBackslashes: false });
+}
+exports.getBaseDirectory = getBaseDirectory;
+function hasGlobStar(pattern) {
+ return pattern.includes(GLOBSTAR);
+}
+exports.hasGlobStar = hasGlobStar;
+function endsWithSlashGlobStar(pattern) {
+ return pattern.endsWith('/' + GLOBSTAR);
+}
+exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
+function isAffectDepthOfReadingPattern(pattern) {
+ const basename = path.basename(pattern);
+ return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
+}
+exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
+function expandPatternsWithBraceExpansion(patterns) {
+ return patterns.reduce((collection, pattern) => {
+ return collection.concat(expandBraceExpansion(pattern));
+ }, []);
+}
+exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
+function expandBraceExpansion(pattern) {
+ const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
+ /**
+ * Sort the patterns by length so that the same depth patterns are processed side by side.
+ * `a/{b,}/{c,}/*` – `['a///*', 'a/b//*', 'a//c/*', 'a/b/c/*']`
+ */
+ patterns.sort((a, b) => a.length - b.length);
+ /**
+ * Micromatch can return an empty string in the case of patterns like `{a,}`.
+ */
+ return patterns.filter((pattern) => pattern !== '');
+}
+exports.expandBraceExpansion = expandBraceExpansion;
+function getPatternParts(pattern, options) {
+ let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
+ /**
+ * The scan method returns an empty array in some cases.
+ * See micromatch/picomatch#58 for more details.
+ */
+ if (parts.length === 0) {
+ parts = [pattern];
+ }
+ /**
+ * The scan method does not return an empty part for the pattern with a forward slash.
+ * This is another part of micromatch/picomatch#58.
+ */
+ if (parts[0].startsWith('/')) {
+ parts[0] = parts[0].slice(1);
+ parts.unshift('');
+ }
+ return parts;
+}
+exports.getPatternParts = getPatternParts;
+function makeRe(pattern, options) {
+ return micromatch.makeRe(pattern, options);
+}
+exports.makeRe = makeRe;
+function convertPatternsToRe(patterns, options) {
+ return patterns.map((pattern) => makeRe(pattern, options));
+}
+exports.convertPatternsToRe = convertPatternsToRe;
+function matchAny(entry, patternsRe) {
+ return patternsRe.some((patternRe) => patternRe.test(entry));
+}
+exports.matchAny = matchAny;
+/**
+ * This package only works with forward slashes as a path separator.
+ * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
+ */
+function removeDuplicateSlashes(pattern) {
+ return pattern.replace(DOUBLE_SLASH_RE, '/');
+}
+exports.removeDuplicateSlashes = removeDuplicateSlashes;
+function partitionAbsoluteAndRelative(patterns) {
+ const absolute = [];
+ const relative = [];
+ for (const pattern of patterns) {
+ if (isAbsolute(pattern)) {
+ absolute.push(pattern);
+ }
+ else {
+ relative.push(pattern);
+ }
+ }
+ return [absolute, relative];
+}
+exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
+function isAbsolute(pattern) {
+ return path.isAbsolute(pattern);
+}
+exports.isAbsolute = isAbsolute;
diff --git a/node_modules/fast-glob/out/utils/stream.d.ts b/node_modules/fast-glob/out/utils/stream.d.ts
new file mode 100644
index 0000000..4daf913
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/stream.d.ts
@@ -0,0 +1,4 @@
+///
+///
+import { Readable } from 'stream';
+export declare function merge(streams: Readable[]): NodeJS.ReadableStream;
diff --git a/node_modules/fast-glob/out/utils/stream.js b/node_modules/fast-glob/out/utils/stream.js
new file mode 100644
index 0000000..b32028c
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/stream.js
@@ -0,0 +1,17 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.merge = void 0;
+const merge2 = require("merge2");
+function merge(streams) {
+ const mergedStream = merge2(streams);
+ streams.forEach((stream) => {
+ stream.once('error', (error) => mergedStream.emit('error', error));
+ });
+ mergedStream.once('close', () => propagateCloseEventToSources(streams));
+ mergedStream.once('end', () => propagateCloseEventToSources(streams));
+ return mergedStream;
+}
+exports.merge = merge;
+function propagateCloseEventToSources(streams) {
+ streams.forEach((stream) => stream.emit('close'));
+}
diff --git a/node_modules/fast-glob/out/utils/string.d.ts b/node_modules/fast-glob/out/utils/string.d.ts
new file mode 100644
index 0000000..c884735
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/string.d.ts
@@ -0,0 +1,2 @@
+export declare function isString(input: unknown): input is string;
+export declare function isEmpty(input: string): boolean;
diff --git a/node_modules/fast-glob/out/utils/string.js b/node_modules/fast-glob/out/utils/string.js
new file mode 100644
index 0000000..76e7ea5
--- /dev/null
+++ b/node_modules/fast-glob/out/utils/string.js
@@ -0,0 +1,11 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.isEmpty = exports.isString = void 0;
+function isString(input) {
+ return typeof input === 'string';
+}
+exports.isString = isString;
+function isEmpty(input) {
+ return input === '';
+}
+exports.isEmpty = isEmpty;
diff --git a/node_modules/fast-glob/package.json b/node_modules/fast-glob/package.json
new file mode 100644
index 0000000..e910de9
--- /dev/null
+++ b/node_modules/fast-glob/package.json
@@ -0,0 +1,81 @@
+{
+ "name": "fast-glob",
+ "version": "3.3.3",
+ "description": "It's a very fast and efficient glob library for Node.js",
+ "license": "MIT",
+ "repository": "mrmlnc/fast-glob",
+ "author": {
+ "name": "Denis Malinochkin",
+ "url": "https://mrmlnc.com"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ },
+ "main": "out/index.js",
+ "typings": "out/index.d.ts",
+ "files": [
+ "out",
+ "!out/{benchmark,tests}",
+ "!out/**/*.map",
+ "!out/**/*.spec.*"
+ ],
+ "keywords": [
+ "glob",
+ "patterns",
+ "fast",
+ "implementation"
+ ],
+ "devDependencies": {
+ "@nodelib/fs.macchiato": "^1.0.1",
+ "@types/glob-parent": "^5.1.0",
+ "@types/merge2": "^1.1.4",
+ "@types/micromatch": "^4.0.0",
+ "@types/mocha": "^5.2.7",
+ "@types/node": "^14.18.53",
+ "@types/picomatch": "^2.3.0",
+ "@types/sinon": "^7.5.0",
+ "bencho": "^0.1.1",
+ "eslint": "^6.5.1",
+ "eslint-config-mrmlnc": "^1.1.0",
+ "execa": "^7.1.1",
+ "fast-glob": "^3.0.4",
+ "fdir": "6.0.1",
+ "glob": "^10.0.0",
+ "hereby": "^1.8.1",
+ "mocha": "^6.2.1",
+ "rimraf": "^5.0.0",
+ "sinon": "^7.5.0",
+ "snap-shot-it": "^7.9.10",
+ "typescript": "^4.9.5"
+ },
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "scripts": {
+ "clean": "rimraf out",
+ "lint": "eslint \"src/**/*.ts\" --cache",
+ "compile": "tsc",
+ "test": "mocha \"out/**/*.spec.js\" -s 0",
+ "test:e2e": "mocha \"out/**/*.e2e.js\" -s 0",
+ "test:e2e:sync": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(sync\\)\"",
+ "test:e2e:async": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(async\\)\"",
+ "test:e2e:stream": "mocha \"out/**/*.e2e.js\" -s 0 --grep \"\\(stream\\)\"",
+ "build": "npm run clean && npm run compile && npm run lint && npm test",
+ "watch": "npm run clean && npm run compile -- -- --sourceMap --watch",
+ "bench:async": "npm run bench:product:async && npm run bench:regression:async",
+ "bench:stream": "npm run bench:product:stream && npm run bench:regression:stream",
+ "bench:sync": "npm run bench:product:sync && npm run bench:regression:sync",
+ "bench:product": "npm run bench:product:async && npm run bench:product:sync && npm run bench:product:stream",
+ "bench:product:async": "hereby bench:product:async",
+ "bench:product:sync": "hereby bench:product:sync",
+ "bench:product:stream": "hereby bench:product:stream",
+ "bench:regression": "npm run bench:regression:async && npm run bench:regression:sync && npm run bench:regression:stream",
+ "bench:regression:async": "hereby bench:regression:async",
+ "bench:regression:sync": "hereby bench:regression:sync",
+ "bench:regression:stream": "hereby bench:regression:stream"
+ }
+}
diff --git a/node_modules/fastq/.github/dependabot.yml b/node_modules/fastq/.github/dependabot.yml
new file mode 100644
index 0000000..7e7cbe1
--- /dev/null
+++ b/node_modules/fastq/.github/dependabot.yml
@@ -0,0 +1,11 @@
+version: 2
+updates:
+- package-ecosystem: npm
+ directory: "/"
+ schedule:
+ interval: daily
+ open-pull-requests-limit: 10
+ ignore:
+ - dependency-name: standard
+ versions:
+ - 16.0.3
diff --git a/node_modules/fastq/.github/workflows/ci.yml b/node_modules/fastq/.github/workflows/ci.yml
new file mode 100644
index 0000000..09dc7a3
--- /dev/null
+++ b/node_modules/fastq/.github/workflows/ci.yml
@@ -0,0 +1,75 @@
+name: ci
+
+on: [push, pull_request]
+
+jobs:
+ legacy:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 13.x, 14.x, 15.x, 16.x]
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js
+ uses: actions/setup-node@v1
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - name: Install
+ run: |
+ npm install --production && npm install tape
+
+ - name: Run tests
+ run: |
+ npm run legacy
+
+ test:
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ node-version: [18.x, 20.x, 22.x]
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: ${{ matrix.node-version }}
+
+ - name: Install
+ run: |
+ npm install
+
+ - name: Run tests
+ run: |
+ npm run test
+
+ types:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ persist-credentials: false
+
+ - name: Use Node.js
+ uses: actions/setup-node@v3
+ with:
+ node-version: 16
+
+ - name: Install
+ run: |
+ npm install
+
+ - name: Run types tests
+ run: |
+ npm run typescript
diff --git a/node_modules/fastq/LICENSE b/node_modules/fastq/LICENSE
new file mode 100644
index 0000000..27c7bb4
--- /dev/null
+++ b/node_modules/fastq/LICENSE
@@ -0,0 +1,13 @@
+Copyright (c) 2015-2020, Matteo Collina
+
+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/fastq/README.md b/node_modules/fastq/README.md
new file mode 100644
index 0000000..1644111
--- /dev/null
+++ b/node_modules/fastq/README.md
@@ -0,0 +1,312 @@
+# fastq
+
+![ci][ci-url]
+[![npm version][npm-badge]][npm-url]
+
+Fast, in memory work queue.
+
+Benchmarks (1 million tasks):
+
+* setImmediate: 812ms
+* fastq: 854ms
+* async.queue: 1298ms
+* neoAsync.queue: 1249ms
+
+Obtained on node 12.16.1, on a dedicated server.
+
+If you need zero-overhead series function call, check out
+[fastseries](http://npm.im/fastseries). For zero-overhead parallel
+function call, check out [fastparallel](http://npm.im/fastparallel).
+
+[](https://github.com/feross/standard)
+
+ * Installation
+ * Usage
+ * API
+ * Licence & copyright
+
+## Install
+
+`npm i fastq --save`
+
+## Usage (callback API)
+
+```js
+'use strict'
+
+const queue = require('fastq')(worker, 1)
+
+queue.push(42, function (err, result) {
+ if (err) { throw err }
+ console.log('the result is', result)
+})
+
+function worker (arg, cb) {
+ cb(null, arg * 2)
+}
+```
+
+## Usage (promise API)
+
+```js
+const queue = require('fastq').promise(worker, 1)
+
+async function worker (arg) {
+ return arg * 2
+}
+
+async function run () {
+ const result = await queue.push(42)
+ console.log('the result is', result)
+}
+
+run()
+```
+
+### Setting "this"
+
+```js
+'use strict'
+
+const that = { hello: 'world' }
+const queue = require('fastq')(that, worker, 1)
+
+queue.push(42, function (err, result) {
+ if (err) { throw err }
+ console.log(this)
+ console.log('the result is', result)
+})
+
+function worker (arg, cb) {
+ console.log(this)
+ cb(null, arg * 2)
+}
+```
+
+### Using with TypeScript (callback API)
+
+```ts
+'use strict'
+
+import * as fastq from "fastq";
+import type { queue, done } from "fastq";
+
+type Task = {
+ id: number
+}
+
+const q: queue = fastq(worker, 1)
+
+q.push({ id: 42})
+
+function worker (arg: Task, cb: done) {
+ console.log(arg.id)
+ cb(null)
+}
+```
+
+### Using with TypeScript (promise API)
+
+```ts
+'use strict'
+
+import * as fastq from "fastq";
+import type { queueAsPromised } from "fastq";
+
+type Task = {
+ id: number
+}
+
+const q: queueAsPromised = fastq.promise(asyncWorker, 1)
+
+q.push({ id: 42}).catch((err) => console.error(err))
+
+async function asyncWorker (arg: Task): Promise {
+ // No need for a try-catch block, fastq handles errors automatically
+ console.log(arg.id)
+}
+```
+
+## API
+
+* fastqueue()
+* queue#push()
+* queue#unshift()
+* queue#pause()
+* queue#resume()
+* queue#idle()
+* queue#length()
+* queue#getQueue()
+* queue#kill()
+* queue#killAndDrain()
+* queue#error()
+* queue#concurrency
+* queue#drain
+* queue#empty
+* queue#saturated
+* fastqueue.promise()
+
+-------------------------------------------------------
+
+### fastqueue([that], worker, concurrency)
+
+Creates a new queue.
+
+Arguments:
+
+* `that`, optional context of the `worker` function.
+* `worker`, worker function, it would be called with `that` as `this`,
+ if that is specified.
+* `concurrency`, number of concurrent tasks that could be executed in
+ parallel.
+
+-------------------------------------------------------
+
+### queue.push(task, done)
+
+Add a task at the end of the queue. `done(err, result)` will be called
+when the task was processed.
+
+-------------------------------------------------------
+
+### queue.unshift(task, done)
+
+Add a task at the beginning of the queue. `done(err, result)` will be called
+when the task was processed.
+
+-------------------------------------------------------
+
+### queue.pause()
+
+Pause the processing of tasks. Currently worked tasks are not
+stopped.
+
+-------------------------------------------------------
+
+### queue.resume()
+
+Resume the processing of tasks.
+
+-------------------------------------------------------
+
+### queue.idle()
+
+Returns `false` if there are tasks being processed or waiting to be processed.
+`true` otherwise.
+
+-------------------------------------------------------
+
+### queue.length()
+
+Returns the number of tasks waiting to be processed (in the queue).
+
+-------------------------------------------------------
+
+### queue.getQueue()
+
+Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks
+
+-------------------------------------------------------
+
+### queue.kill()
+
+Removes all tasks waiting to be processed, and reset `drain` to an empty
+function.
+
+-------------------------------------------------------
+
+### queue.killAndDrain()
+
+Same than `kill` but the `drain` function will be called before reset to empty.
+
+-------------------------------------------------------
+
+### queue.error(handler)
+
+Set a global error handler. `handler(err, task)` will be called
+each time a task is completed, `err` will be not null if the task has thrown an error.
+
+-------------------------------------------------------
+
+### queue.concurrency
+
+Property that returns the number of concurrent tasks that could be executed in
+parallel. It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.paused
+
+Property (Read-Only) that returns `true` when the queue is in a paused state.
+
+-------------------------------------------------------
+
+### queue.drain
+
+Function that will be called when the last
+item from the queue has been processed by a worker.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.empty
+
+Function that will be called when the last
+item from the queue has been assigned to a worker.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### queue.saturated
+
+Function that will be called when the queue hits the concurrency
+limit.
+It can be altered at runtime.
+
+-------------------------------------------------------
+
+### fastqueue.promise([that], worker(arg), concurrency)
+
+Creates a new queue with `Promise` apis. It also offers all the methods
+and properties of the object returned by [`fastqueue`](#fastqueue) with the modified
+[`push`](#pushPromise) and [`unshift`](#unshiftPromise) methods.
+
+Node v10+ is required to use the promisified version.
+
+Arguments:
+* `that`, optional context of the `worker` function.
+* `worker`, worker function, it would be called with `that` as `this`,
+ if that is specified. It MUST return a `Promise`.
+* `concurrency`, number of concurrent tasks that could be executed in
+ parallel.
+
+
+#### queue.push(task) => Promise
+
+Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected)
+when the task is completed successfully (unsuccessfully).
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+
+#### queue.unshift(task) => Promise
+
+Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected)
+when the task is completed successfully (unsuccessfully).
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+
+#### queue.drained() => Promise
+
+Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker.
+
+This promise could be ignored as it will not lead to a `'unhandledRejection'`.
+
+## License
+
+ISC
+
+[ci-url]: https://github.com/mcollina/fastq/workflows/ci/badge.svg
+[npm-badge]: https://badge.fury.io/js/fastq.svg
+[npm-url]: https://badge.fury.io/js/fastq
diff --git a/node_modules/fastq/SECURITY.md b/node_modules/fastq/SECURITY.md
new file mode 100644
index 0000000..dd9f1d5
--- /dev/null
+++ b/node_modules/fastq/SECURITY.md
@@ -0,0 +1,15 @@
+# Security Policy
+
+## Supported Versions
+
+Use this section to tell people about which versions of your project are
+currently being supported with security updates.
+
+| Version | Supported |
+| ------- | ------------------ |
+| 1.x | :white_check_mark: |
+| < 1.0 | :x: |
+
+## Reporting a Vulnerability
+
+Please report all vulnerabilities at [https://github.com/mcollina/fastq/security](https://github.com/mcollina/fastq/security).
diff --git a/node_modules/fastq/bench.js b/node_modules/fastq/bench.js
new file mode 100644
index 0000000..4eaa829
--- /dev/null
+++ b/node_modules/fastq/bench.js
@@ -0,0 +1,66 @@
+'use strict'
+
+const max = 1000000
+const fastqueue = require('./')(worker, 1)
+const { promisify } = require('util')
+const immediate = promisify(setImmediate)
+const qPromise = require('./').promise(immediate, 1)
+const async = require('async')
+const neo = require('neo-async')
+const asyncqueue = async.queue(worker, 1)
+const neoqueue = neo.queue(worker, 1)
+
+function bench (func, done) {
+ const key = max + '*' + func.name
+ let count = -1
+
+ console.time(key)
+ end()
+
+ function end () {
+ if (++count < max) {
+ func(end)
+ } else {
+ console.timeEnd(key)
+ if (done) {
+ done()
+ }
+ }
+ }
+}
+
+function benchFastQ (done) {
+ fastqueue.push(42, done)
+}
+
+function benchAsyncQueue (done) {
+ asyncqueue.push(42, done)
+}
+
+function benchNeoQueue (done) {
+ neoqueue.push(42, done)
+}
+
+function worker (arg, cb) {
+ setImmediate(cb)
+}
+
+function benchSetImmediate (cb) {
+ worker(42, cb)
+}
+
+function benchFastQPromise (done) {
+ qPromise.push(42).then(function () { done() }, done)
+}
+
+function runBench (done) {
+ async.eachSeries([
+ benchSetImmediate,
+ benchFastQ,
+ benchNeoQueue,
+ benchAsyncQueue,
+ benchFastQPromise
+ ], bench, done)
+}
+
+runBench(runBench)
diff --git a/node_modules/fastq/example.js b/node_modules/fastq/example.js
new file mode 100644
index 0000000..665fdc8
--- /dev/null
+++ b/node_modules/fastq/example.js
@@ -0,0 +1,14 @@
+'use strict'
+
+/* eslint-disable no-var */
+
+var queue = require('./')(worker, 1)
+
+queue.push(42, function (err, result) {
+ if (err) { throw err }
+ console.log('the result is', result)
+})
+
+function worker (arg, cb) {
+ cb(null, 42 * 2)
+}
diff --git a/node_modules/fastq/example.mjs b/node_modules/fastq/example.mjs
new file mode 100644
index 0000000..81be789
--- /dev/null
+++ b/node_modules/fastq/example.mjs
@@ -0,0 +1,11 @@
+import { promise as queueAsPromised } from './queue.js'
+
+/* eslint-disable */
+
+const queue = queueAsPromised(worker, 1)
+
+console.log('the result is', await queue.push(42))
+
+async function worker (arg) {
+ return 42 * 2
+}
diff --git a/node_modules/fastq/index.d.ts b/node_modules/fastq/index.d.ts
new file mode 100644
index 0000000..817cdb5
--- /dev/null
+++ b/node_modules/fastq/index.d.ts
@@ -0,0 +1,57 @@
+declare function fastq(context: C, worker: fastq.worker, concurrency: number): fastq.queue
+declare function fastq(worker: fastq.worker, concurrency: number): fastq.queue
+
+declare namespace fastq {
+ type worker = (this: C, task: T, cb: fastq.done) => void
+ type asyncWorker = (this: C, task: T) => Promise
+ type done = (err: Error | null, result?: R) => void
+ type errorHandler = (err: Error, task: T) => void
+
+ interface queue {
+ /** Add a task at the end of the queue. `done(err, result)` will be called when the task was processed. */
+ push(task: T, done?: done): void
+ /** Add a task at the beginning of the queue. `done(err, result)` will be called when the task was processed. */
+ unshift(task: T, done?: done): void
+ /** Pause the processing of tasks. Currently worked tasks are not stopped. */
+ pause(): any
+ /** Resume the processing of tasks. */
+ resume(): any
+ running(): number
+ /** Returns `false` if there are tasks being processed or waiting to be processed. `true` otherwise. */
+ idle(): boolean
+ /** Returns the number of tasks waiting to be processed (in the queue). */
+ length(): number
+ /** Returns all the tasks be processed (in the queue). Returns empty array when there are no tasks */
+ getQueue(): T[]
+ /** Removes all tasks waiting to be processed, and reset `drain` to an empty function. */
+ kill(): any
+ /** Same than `kill` but the `drain` function will be called before reset to empty. */
+ killAndDrain(): any
+ /** Set a global error handler. `handler(err, task)` will be called each time a task is completed, `err` will be not null if the task has thrown an error. */
+ error(handler: errorHandler): void
+ /** Property that returns the number of concurrent tasks that could be executed in parallel. It can be altered at runtime. */
+ concurrency: number
+ /** Property (Read-Only) that returns `true` when the queue is in a paused state. */
+ readonly paused: boolean
+ /** Function that will be called when the last item from the queue has been processed by a worker. It can be altered at runtime. */
+ drain(): any
+ /** Function that will be called when the last item from the queue has been assigned to a worker. It can be altered at runtime. */
+ empty: () => void
+ /** Function that will be called when the queue hits the concurrency limit. It can be altered at runtime. */
+ saturated: () => void
+ }
+
+ interface queueAsPromised extends queue {
+ /** Add a task at the end of the queue. The returned `Promise` will be fulfilled (rejected) when the task is completed successfully (unsuccessfully). */
+ push(task: T): Promise
+ /** Add a task at the beginning of the queue. The returned `Promise` will be fulfilled (rejected) when the task is completed successfully (unsuccessfully). */
+ unshift(task: T): Promise
+ /** Wait for the queue to be drained. The returned `Promise` will be resolved when all tasks in the queue have been processed by a worker. */
+ drained(): Promise
+ }
+
+ function promise(context: C, worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised
+ function promise(worker: fastq.asyncWorker, concurrency: number): fastq.queueAsPromised
+}
+
+export = fastq
diff --git a/node_modules/fastq/package.json b/node_modules/fastq/package.json
new file mode 100644
index 0000000..989151f
--- /dev/null
+++ b/node_modules/fastq/package.json
@@ -0,0 +1,53 @@
+{
+ "name": "fastq",
+ "version": "1.19.1",
+ "description": "Fast, in memory work queue",
+ "main": "queue.js",
+ "scripts": {
+ "lint": "standard --verbose | snazzy",
+ "unit": "nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test/test.js test/promise.js",
+ "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js test/promise.js",
+ "test:report": "npm run lint && npm run unit:report",
+ "test": "npm run lint && npm run unit",
+ "typescript": "tsc --project ./test/tsconfig.json",
+ "legacy": "tape test/test.js"
+ },
+ "pre-commit": [
+ "test",
+ "typescript"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/mcollina/fastq.git"
+ },
+ "keywords": [
+ "fast",
+ "queue",
+ "async",
+ "worker"
+ ],
+ "author": "Matteo Collina ",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/mcollina/fastq/issues"
+ },
+ "homepage": "https://github.com/mcollina/fastq#readme",
+ "devDependencies": {
+ "async": "^3.1.0",
+ "neo-async": "^2.6.1",
+ "nyc": "^17.0.0",
+ "pre-commit": "^1.2.2",
+ "snazzy": "^9.0.0",
+ "standard": "^16.0.0",
+ "tape": "^5.0.0",
+ "typescript": "^5.0.4"
+ },
+ "dependencies": {
+ "reusify": "^1.0.4"
+ },
+ "standard": {
+ "ignore": [
+ "example.mjs"
+ ]
+ }
+}
diff --git a/node_modules/fastq/queue.js b/node_modules/fastq/queue.js
new file mode 100644
index 0000000..7ea8a31
--- /dev/null
+++ b/node_modules/fastq/queue.js
@@ -0,0 +1,311 @@
+'use strict'
+
+/* eslint-disable no-var */
+
+var reusify = require('reusify')
+
+function fastqueue (context, worker, _concurrency) {
+ if (typeof context === 'function') {
+ _concurrency = worker
+ worker = context
+ context = null
+ }
+
+ if (!(_concurrency >= 1)) {
+ throw new Error('fastqueue concurrency must be equal to or greater than 1')
+ }
+
+ var cache = reusify(Task)
+ var queueHead = null
+ var queueTail = null
+ var _running = 0
+ var errorHandler = null
+
+ var self = {
+ push: push,
+ drain: noop,
+ saturated: noop,
+ pause: pause,
+ paused: false,
+
+ get concurrency () {
+ return _concurrency
+ },
+ set concurrency (value) {
+ if (!(value >= 1)) {
+ throw new Error('fastqueue concurrency must be equal to or greater than 1')
+ }
+ _concurrency = value
+
+ if (self.paused) return
+ for (; queueHead && _running < _concurrency;) {
+ _running++
+ release()
+ }
+ },
+
+ running: running,
+ resume: resume,
+ idle: idle,
+ length: length,
+ getQueue: getQueue,
+ unshift: unshift,
+ empty: noop,
+ kill: kill,
+ killAndDrain: killAndDrain,
+ error: error
+ }
+
+ return self
+
+ function running () {
+ return _running
+ }
+
+ function pause () {
+ self.paused = true
+ }
+
+ function length () {
+ var current = queueHead
+ var counter = 0
+
+ while (current) {
+ current = current.next
+ counter++
+ }
+
+ return counter
+ }
+
+ function getQueue () {
+ var current = queueHead
+ var tasks = []
+
+ while (current) {
+ tasks.push(current.value)
+ current = current.next
+ }
+
+ return tasks
+ }
+
+ function resume () {
+ if (!self.paused) return
+ self.paused = false
+ if (queueHead === null) {
+ _running++
+ release()
+ return
+ }
+ for (; queueHead && _running < _concurrency;) {
+ _running++
+ release()
+ }
+ }
+
+ function idle () {
+ return _running === 0 && self.length() === 0
+ }
+
+ function push (value, done) {
+ var current = cache.get()
+
+ current.context = context
+ current.release = release
+ current.value = value
+ current.callback = done || noop
+ current.errorHandler = errorHandler
+
+ if (_running >= _concurrency || self.paused) {
+ if (queueTail) {
+ queueTail.next = current
+ queueTail = current
+ } else {
+ queueHead = current
+ queueTail = current
+ self.saturated()
+ }
+ } else {
+ _running++
+ worker.call(context, current.value, current.worked)
+ }
+ }
+
+ function unshift (value, done) {
+ var current = cache.get()
+
+ current.context = context
+ current.release = release
+ current.value = value
+ current.callback = done || noop
+ current.errorHandler = errorHandler
+
+ if (_running >= _concurrency || self.paused) {
+ if (queueHead) {
+ current.next = queueHead
+ queueHead = current
+ } else {
+ queueHead = current
+ queueTail = current
+ self.saturated()
+ }
+ } else {
+ _running++
+ worker.call(context, current.value, current.worked)
+ }
+ }
+
+ function release (holder) {
+ if (holder) {
+ cache.release(holder)
+ }
+ var next = queueHead
+ if (next && _running <= _concurrency) {
+ if (!self.paused) {
+ if (queueTail === queueHead) {
+ queueTail = null
+ }
+ queueHead = next.next
+ next.next = null
+ worker.call(context, next.value, next.worked)
+ if (queueTail === null) {
+ self.empty()
+ }
+ } else {
+ _running--
+ }
+ } else if (--_running === 0) {
+ self.drain()
+ }
+ }
+
+ function kill () {
+ queueHead = null
+ queueTail = null
+ self.drain = noop
+ }
+
+ function killAndDrain () {
+ queueHead = null
+ queueTail = null
+ self.drain()
+ self.drain = noop
+ }
+
+ function error (handler) {
+ errorHandler = handler
+ }
+}
+
+function noop () {}
+
+function Task () {
+ this.value = null
+ this.callback = noop
+ this.next = null
+ this.release = noop
+ this.context = null
+ this.errorHandler = null
+
+ var self = this
+
+ this.worked = function worked (err, result) {
+ var callback = self.callback
+ var errorHandler = self.errorHandler
+ var val = self.value
+ self.value = null
+ self.callback = noop
+ if (self.errorHandler) {
+ errorHandler(err, val)
+ }
+ callback.call(self.context, err, result)
+ self.release(self)
+ }
+}
+
+function queueAsPromised (context, worker, _concurrency) {
+ if (typeof context === 'function') {
+ _concurrency = worker
+ worker = context
+ context = null
+ }
+
+ function asyncWrapper (arg, cb) {
+ worker.call(this, arg)
+ .then(function (res) {
+ cb(null, res)
+ }, cb)
+ }
+
+ var queue = fastqueue(context, asyncWrapper, _concurrency)
+
+ var pushCb = queue.push
+ var unshiftCb = queue.unshift
+
+ queue.push = push
+ queue.unshift = unshift
+ queue.drained = drained
+
+ return queue
+
+ function push (value) {
+ var p = new Promise(function (resolve, reject) {
+ pushCb(value, function (err, result) {
+ if (err) {
+ reject(err)
+ return
+ }
+ resolve(result)
+ })
+ })
+
+ // Let's fork the promise chain to
+ // make the error bubble up to the user but
+ // not lead to a unhandledRejection
+ p.catch(noop)
+
+ return p
+ }
+
+ function unshift (value) {
+ var p = new Promise(function (resolve, reject) {
+ unshiftCb(value, function (err, result) {
+ if (err) {
+ reject(err)
+ return
+ }
+ resolve(result)
+ })
+ })
+
+ // Let's fork the promise chain to
+ // make the error bubble up to the user but
+ // not lead to a unhandledRejection
+ p.catch(noop)
+
+ return p
+ }
+
+ function drained () {
+ var p = new Promise(function (resolve) {
+ process.nextTick(function () {
+ if (queue.idle()) {
+ resolve()
+ } else {
+ var previousDrain = queue.drain
+ queue.drain = function () {
+ if (typeof previousDrain === 'function') previousDrain()
+ resolve()
+ queue.drain = previousDrain
+ }
+ }
+ })
+ })
+
+ return p
+ }
+}
+
+module.exports = fastqueue
+module.exports.promise = queueAsPromised
diff --git a/node_modules/fastq/test/example.ts b/node_modules/fastq/test/example.ts
new file mode 100644
index 0000000..a47d441
--- /dev/null
+++ b/node_modules/fastq/test/example.ts
@@ -0,0 +1,83 @@
+import * as fastq from '../'
+import { promise as queueAsPromised } from '../'
+
+// Basic example
+
+const queue = fastq(worker, 1)
+
+queue.push('world', (err, result) => {
+ if (err) throw err
+ console.log('the result is', result)
+})
+
+queue.push('push without cb')
+
+queue.concurrency
+
+queue.drain()
+
+queue.empty = () => undefined
+
+console.log('the queue tasks are', queue.getQueue())
+
+queue.idle()
+
+queue.kill()
+
+queue.killAndDrain()
+
+queue.length
+
+queue.pause()
+
+queue.resume()
+
+queue.running()
+
+queue.saturated = () => undefined
+
+queue.unshift('world', (err, result) => {
+ if (err) throw err
+ console.log('the result is', result)
+})
+
+queue.unshift('unshift without cb')
+
+function worker(task: any, cb: fastq.done) {
+ cb(null, 'hello ' + task)
+}
+
+// Generics example
+
+interface GenericsContext {
+ base: number;
+}
+
+const genericsQueue = fastq({ base: 6 }, genericsWorker, 1)
+
+genericsQueue.push(7, (err, done) => {
+ if (err) throw err
+ console.log('the result is', done)
+})
+
+genericsQueue.unshift(7, (err, done) => {
+ if (err) throw err
+ console.log('the result is', done)
+})
+
+function genericsWorker(this: GenericsContext, task: number, cb: fastq.done) {
+ cb(null, 'the meaning of life is ' + (this.base * task))
+}
+
+const queue2 = queueAsPromised(asyncWorker, 1)
+
+async function asyncWorker(task: any) {
+ return 'hello ' + task
+}
+
+async function run () {
+ await queue.push(42)
+ await queue.unshift(42)
+}
+
+run()
diff --git a/node_modules/fastq/test/promise.js b/node_modules/fastq/test/promise.js
new file mode 100644
index 0000000..45349a4
--- /dev/null
+++ b/node_modules/fastq/test/promise.js
@@ -0,0 +1,291 @@
+'use strict'
+
+const test = require('tape')
+const buildQueue = require('../').promise
+const { promisify } = require('util')
+const sleep = promisify(setTimeout)
+const immediate = promisify(setImmediate)
+
+test('concurrency', function (t) {
+ t.plan(2)
+ t.throws(buildQueue.bind(null, worker, 0))
+ t.doesNotThrow(buildQueue.bind(null, worker, 1))
+
+ async function worker (arg) {
+ return true
+ }
+})
+
+test('worker execution', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ const result = await queue.push(42)
+
+ t.equal(result, true, 'result matches')
+
+ async function worker (arg) {
+ t.equal(arg, 42)
+ return true
+ }
+})
+
+test('limit', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ const [res1, res2] = await Promise.all([queue.push(10), queue.push(0)])
+ t.equal(res1, 10, 'the result matches')
+ t.equal(res2, 0, 'the result matches')
+
+ async function worker (arg) {
+ await sleep(arg)
+ return arg
+ }
+})
+
+test('multiple executions', async function (t) {
+ const queue = buildQueue(worker, 1)
+ const toExec = [1, 2, 3, 4, 5]
+ const expected = ['a', 'b', 'c', 'd', 'e']
+ let count = 0
+
+ await Promise.all(toExec.map(async function (task, i) {
+ const result = await queue.push(task)
+ t.equal(result, expected[i], 'the result matches')
+ }))
+
+ async function worker (arg) {
+ t.equal(arg, toExec[count], 'arg matches')
+ return expected[count++]
+ }
+})
+
+test('drained', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ const toExec = new Array(10).fill(10)
+ let count = 0
+
+ async function worker (arg) {
+ await sleep(arg)
+ count++
+ }
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length)
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length * 2)
+})
+
+test('drained with exception should not throw', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ const toExec = new Array(10).fill(10)
+
+ async function worker () {
+ throw new Error('foo')
+ }
+
+ toExec.forEach(function (i) {
+ queue.push(i)
+ })
+
+ await queue.drained()
+})
+
+test('drained with drain function', async function (t) {
+ let drainCalled = false
+ const queue = buildQueue(worker, 2)
+
+ queue.drain = function () {
+ drainCalled = true
+ }
+
+ const toExec = new Array(10).fill(10)
+ let count = 0
+
+ async function worker (arg) {
+ await sleep(arg)
+ count++
+ }
+
+ toExec.forEach(function () {
+ queue.push()
+ })
+
+ await queue.drained()
+
+ t.equal(count, toExec.length)
+ t.equal(drainCalled, true)
+})
+
+test('drained while idle should resolve', async function (t) {
+ const queue = buildQueue(worker, 2)
+
+ async function worker (arg) {
+ await sleep(arg)
+ }
+
+ await queue.drained()
+})
+
+test('drained while idle should not call the drain function', async function (t) {
+ let drainCalled = false
+ const queue = buildQueue(worker, 2)
+
+ queue.drain = function () {
+ drainCalled = true
+ }
+
+ async function worker (arg) {
+ await sleep(arg)
+ }
+
+ await queue.drained()
+
+ t.equal(drainCalled, false)
+})
+
+test('set this', async function (t) {
+ t.plan(1)
+ const that = {}
+ const queue = buildQueue(that, worker, 1)
+
+ await queue.push(42)
+
+ async function worker (arg) {
+ t.equal(this, that, 'this matches')
+ }
+})
+
+test('unshift', async function (t) {
+ const queue = buildQueue(worker, 1)
+ const expected = [1, 2, 3, 4]
+
+ await Promise.all([
+ queue.push(1),
+ queue.push(4),
+ queue.unshift(3),
+ queue.unshift(2)
+ ])
+
+ t.is(expected.length, 0)
+
+ async function worker (arg) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ }
+})
+
+test('push with worker throwing error', async function (t) {
+ t.plan(5)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ try {
+ await q.push(42)
+ } catch (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ }
+})
+
+test('unshift with worker throwing error', async function (t) {
+ t.plan(2)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+ try {
+ await q.unshift(42)
+ } catch (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ }
+})
+
+test('no unhandledRejection (push)', async function (t) {
+ function handleRejection () {
+ t.fail('unhandledRejection')
+ }
+ process.once('unhandledRejection', handleRejection)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+
+ q.push(42)
+
+ await immediate()
+ process.removeListener('unhandledRejection', handleRejection)
+})
+
+test('no unhandledRejection (unshift)', async function (t) {
+ function handleRejection () {
+ t.fail('unhandledRejection')
+ }
+ process.once('unhandledRejection', handleRejection)
+ const q = buildQueue(async function (task, cb) {
+ throw new Error('test error')
+ }, 1)
+
+ q.unshift(42)
+
+ await immediate()
+ process.removeListener('unhandledRejection', handleRejection)
+})
+
+test('drained should resolve after async tasks complete', async function (t) {
+ const logs = []
+
+ async function processTask () {
+ await new Promise(resolve => setTimeout(resolve, 0))
+ logs.push('processed')
+ }
+
+ const queue = buildQueue(processTask, 1)
+ queue.drain = () => logs.push('called drain')
+
+ queue.drained().then(() => logs.push('drained promise resolved'))
+
+ await Promise.all([
+ queue.push(),
+ queue.push(),
+ queue.push()
+ ])
+
+ t.deepEqual(logs, [
+ 'processed',
+ 'processed',
+ 'processed',
+ 'called drain',
+ 'drained promise resolved'
+ ], 'events happened in correct order')
+})
+
+test('drained should handle undefined drain function', async function (t) {
+ const queue = buildQueue(worker, 1)
+
+ async function worker (arg) {
+ await sleep(10)
+ return arg
+ }
+
+ queue.drain = undefined
+ queue.push(1)
+ await queue.drained()
+
+ t.pass('drained resolved successfully with undefined drain')
+})
diff --git a/node_modules/fastq/test/test.js b/node_modules/fastq/test/test.js
new file mode 100644
index 0000000..79f0f6c
--- /dev/null
+++ b/node_modules/fastq/test/test.js
@@ -0,0 +1,653 @@
+'use strict'
+
+/* eslint-disable no-var */
+
+var test = require('tape')
+var buildQueue = require('../')
+
+test('concurrency', function (t) {
+ t.plan(6)
+ t.throws(buildQueue.bind(null, worker, 0))
+ t.throws(buildQueue.bind(null, worker, NaN))
+ t.doesNotThrow(buildQueue.bind(null, worker, 1))
+
+ var queue = buildQueue(worker, 1)
+ t.throws(function () {
+ queue.concurrency = 0
+ })
+ t.throws(function () {
+ queue.concurrency = NaN
+ })
+ t.doesNotThrow(function () {
+ queue.concurrency = 2
+ })
+
+ function worker (arg, cb) {
+ cb(null, true)
+ }
+})
+
+test('worker execution', function (t) {
+ t.plan(3)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb(null, true)
+ }
+})
+
+test('limit', function (t) {
+ t.plan(4)
+
+ var expected = [10, 0]
+ var queue = buildQueue(worker, 1)
+
+ queue.push(10, result)
+ queue.push(0, result)
+
+ function result (err, arg) {
+ t.error(err, 'no error')
+ t.equal(arg, expected.shift(), 'the result matches')
+ }
+
+ function worker (arg, cb) {
+ setTimeout(cb, arg, null, arg)
+ }
+})
+
+test('multiple executions', function (t) {
+ t.plan(15)
+
+ var queue = buildQueue(worker, 1)
+ var toExec = [1, 2, 3, 4, 5]
+ var count = 0
+
+ toExec.forEach(function (task) {
+ queue.push(task, done)
+ })
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, toExec[count - 1], 'the result matches')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, toExec[count], 'arg matches')
+ count++
+ setImmediate(cb, null, arg)
+ }
+})
+
+test('multiple executions, one after another', function (t) {
+ t.plan(15)
+
+ var queue = buildQueue(worker, 1)
+ var toExec = [1, 2, 3, 4, 5]
+ var count = 0
+
+ queue.push(toExec[0], done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, toExec[count - 1], 'the result matches')
+ if (count < toExec.length) {
+ queue.push(toExec[count], done)
+ }
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, toExec[count], 'arg matches')
+ count++
+ setImmediate(cb, null, arg)
+ }
+})
+
+test('set this', function (t) {
+ t.plan(3)
+
+ var that = {}
+ var queue = buildQueue(that, worker, 1)
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(this, that, 'this matches')
+ })
+
+ function worker (arg, cb) {
+ t.equal(this, that, 'this matches')
+ cb(null, true)
+ }
+})
+
+test('drain', function (t) {
+ t.plan(4)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ queue.drain = function () {
+ t.equal(true, worked, 'drained')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ worked = true
+ setImmediate(cb, null, true)
+ }
+})
+
+test('pause && resume', function (t) {
+ t.plan(13)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+ var expected = [42, 24]
+
+ t.notOk(queue.paused, 'it should not be paused')
+
+ queue.pause()
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ queue.push(24, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ t.notOk(worked, 'it should be paused')
+ t.ok(queue.paused, 'it should be paused')
+
+ queue.resume()
+ queue.pause()
+ queue.resume()
+ queue.resume() // second resume is a no-op
+
+ function worker (arg, cb) {
+ t.notOk(queue.paused, 'it should not be paused')
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ t.equal(arg, expected.shift())
+ worked = true
+ process.nextTick(function () { cb(null, true) })
+ }
+})
+
+test('pause in flight && resume', function (t) {
+ t.plan(16)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [42, 24, 12]
+
+ t.notOk(queue.paused, 'it should not be paused')
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.ok(queue.paused, 'it should be paused')
+ process.nextTick(function () {
+ queue.resume()
+ queue.pause()
+ queue.resume()
+ })
+ })
+
+ queue.push(24, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.paused, 'it should not be paused')
+ })
+
+ queue.push(12, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.paused, 'it should not be paused')
+ })
+
+ queue.pause()
+
+ function worker (arg, cb) {
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ t.equal(arg, expected.shift())
+ process.nextTick(function () { cb(null, true) })
+ }
+})
+
+test('altering concurrency', function (t) {
+ t.plan(24)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+
+ queue.pause()
+
+ queue.concurrency = 3 // concurrency changes are ignored while paused
+ queue.concurrency = 2
+
+ queue.resume()
+
+ t.equal(queue.running(), 2, '2 jobs running')
+
+ queue.concurrency = 3
+
+ t.equal(queue.running(), 3, '3 jobs running')
+
+ queue.concurrency = 1
+
+ t.equal(queue.running(), 3, '3 jobs running') // running jobs can't be killed
+
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+ queue.push(24, workDone)
+
+ function workDone (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ }
+
+ function worker (arg, cb) {
+ t.ok(queue.running() <= queue.concurrency, 'should respect the concurrency')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('idle()', function (t) {
+ t.plan(12)
+
+ var queue = buildQueue(worker, 1)
+
+ t.ok(queue.idle(), 'queue is idle')
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ t.notOk(queue.idle(), 'queue is not idle')
+ })
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ // it will go idle after executing this function
+ setImmediate(function () {
+ t.ok(queue.idle(), 'queue is now idle')
+ })
+ })
+
+ t.notOk(queue.idle(), 'queue is not idle')
+
+ function worker (arg, cb) {
+ t.notOk(queue.idle(), 'queue is not idle')
+ t.equal(arg, 42)
+ setImmediate(cb, null, true)
+ }
+})
+
+test('saturated', function (t) {
+ t.plan(9)
+
+ var queue = buildQueue(worker, 1)
+ var preworked = 0
+ var worked = 0
+
+ queue.saturated = function () {
+ t.pass('saturated')
+ t.equal(preworked, 1, 'started 1 task')
+ t.equal(worked, 0, 'worked zero task')
+ }
+
+ queue.push(42, done)
+ queue.push(42, done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ }
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ preworked++
+ setImmediate(function () {
+ worked++
+ cb(null, true)
+ })
+ }
+})
+
+test('length', function (t) {
+ t.plan(7)
+
+ var queue = buildQueue(worker, 1)
+
+ t.equal(queue.length(), 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 1, 'one task waiting')
+ queue.push(42, done)
+ t.equal(queue.length(), 2, 'two tasks waiting')
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('getQueue', function (t) {
+ t.plan(10)
+
+ var queue = buildQueue(worker, 1)
+
+ t.equal(queue.getQueue().length, 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.getQueue().length, 0, 'nothing waiting')
+ queue.push(42, done)
+ t.equal(queue.getQueue().length, 1, 'one task waiting')
+ t.equal(queue.getQueue()[0], 42, 'should be equal')
+ queue.push(43, done)
+ t.equal(queue.getQueue().length, 2, 'two tasks waiting')
+ t.equal(queue.getQueue()[0], 42, 'should be equal')
+ t.equal(queue.getQueue()[1], 43, 'should be equal')
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('unshift', function (t) {
+ t.plan(8)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1, 2, 3, 4]
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('unshift && empty', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(worker, 1)
+ var completed = false
+
+ queue.pause()
+
+ queue.empty = function () {
+ t.notOk(completed, 'the task has not completed yet')
+ }
+
+ queue.unshift(1, done)
+
+ queue.resume()
+
+ function done (err, result) {
+ completed = true
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('push && empty', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(worker, 1)
+ var completed = false
+
+ queue.pause()
+
+ queue.empty = function () {
+ t.notOk(completed, 'the task has not completed yet')
+ }
+
+ queue.push(1, done)
+
+ queue.resume()
+
+ function done (err, result) {
+ completed = true
+ t.error(err, 'no error')
+ }
+
+ function worker (arg, cb) {
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('kill', function (t) {
+ t.plan(5)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1]
+
+ var predrain = queue.drain
+
+ queue.drain = function drain () {
+ t.fail('drain should never be called')
+ }
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+ queue.kill()
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ setImmediate(function () {
+ t.equal(queue.length(), 0, 'no queued tasks')
+ t.equal(queue.running(), 0, 'no running tasks')
+ t.equal(queue.drain, predrain, 'drain is back to default')
+ })
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('killAndDrain', function (t) {
+ t.plan(6)
+
+ var queue = buildQueue(worker, 1)
+ var expected = [1]
+
+ var predrain = queue.drain
+
+ queue.drain = function drain () {
+ t.pass('drain has been called')
+ }
+
+ queue.push(1, done)
+ queue.push(4, done)
+ queue.unshift(3, done)
+ queue.unshift(2, done)
+ queue.killAndDrain()
+
+ function done (err, result) {
+ t.error(err, 'no error')
+ setImmediate(function () {
+ t.equal(queue.length(), 0, 'no queued tasks')
+ t.equal(queue.running(), 0, 'no running tasks')
+ t.equal(queue.drain, predrain, 'drain is back to default')
+ })
+ }
+
+ function worker (arg, cb) {
+ t.equal(expected.shift(), arg, 'tasks come in order')
+ setImmediate(function () {
+ cb(null, true)
+ })
+ }
+})
+
+test('pause && idle', function (t) {
+ t.plan(11)
+
+ var queue = buildQueue(worker, 1)
+ var worked = false
+
+ t.notOk(queue.paused, 'it should not be paused')
+ t.ok(queue.idle(), 'should be idle')
+
+ queue.pause()
+
+ queue.push(42, function (err, result) {
+ t.error(err, 'no error')
+ t.equal(result, true, 'result matches')
+ })
+
+ t.notOk(worked, 'it should be paused')
+ t.ok(queue.paused, 'it should be paused')
+ t.notOk(queue.idle(), 'should not be idle')
+
+ queue.resume()
+
+ t.notOk(queue.paused, 'it should not be paused')
+ t.notOk(queue.idle(), 'it should not be idle')
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ worked = true
+ process.nextTick(cb.bind(null, null, true))
+ process.nextTick(function () {
+ t.ok(queue.idle(), 'is should be idle')
+ })
+ }
+})
+
+test('push without cb', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.push(42)
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb()
+ }
+})
+
+test('unshift without cb', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+
+ queue.unshift(42)
+
+ function worker (arg, cb) {
+ t.equal(arg, 42)
+ cb()
+ }
+})
+
+test('push with worker throwing error', function (t) {
+ t.plan(5)
+ var q = buildQueue(function (task, cb) {
+ cb(new Error('test error'), null)
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ q.push(42, function (err) {
+ t.ok(err instanceof Error, 'push callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ })
+})
+
+test('unshift with worker throwing error', function (t) {
+ t.plan(5)
+ var q = buildQueue(function (task, cb) {
+ cb(new Error('test error'), null)
+ }, 1)
+ q.error(function (err, task) {
+ t.ok(err instanceof Error, 'global error handler should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ t.equal(task, 42, 'The task executed should be passed')
+ })
+ q.unshift(42, function (err) {
+ t.ok(err instanceof Error, 'unshift callback should catch the error')
+ t.match(err.message, /test error/, 'error message should be "test error"')
+ })
+})
+
+test('pause/resume should trigger drain event', function (t) {
+ t.plan(1)
+
+ var queue = buildQueue(worker, 1)
+ queue.pause()
+ queue.drain = function () {
+ t.pass('drain should be called')
+ }
+
+ function worker (arg, cb) {
+ cb(null, true)
+ }
+
+ queue.resume()
+})
+
+test('paused flag', function (t) {
+ t.plan(2)
+
+ var queue = buildQueue(function (arg, cb) {
+ cb(null)
+ }, 1)
+ t.equal(queue.paused, false)
+ queue.pause()
+ t.equal(queue.paused, true)
+})
diff --git a/node_modules/fastq/test/tsconfig.json b/node_modules/fastq/test/tsconfig.json
new file mode 100644
index 0000000..66e16e9
--- /dev/null
+++ b/node_modules/fastq/test/tsconfig.json
@@ -0,0 +1,11 @@
+{
+ "compilerOptions": {
+ "target": "es6",
+ "module": "commonjs",
+ "noEmit": true,
+ "strict": true
+ },
+ "files": [
+ "./example.ts"
+ ]
+}
diff --git a/node_modules/fill-range/LICENSE b/node_modules/fill-range/LICENSE
new file mode 100644
index 0000000..9af4a67
--- /dev/null
+++ b/node_modules/fill-range/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-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/fill-range/README.md b/node_modules/fill-range/README.md
new file mode 100644
index 0000000..8d756fe
--- /dev/null
+++ b/node_modules/fill-range/README.md
@@ -0,0 +1,237 @@
+# fill-range [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [](https://www.npmjs.com/package/fill-range) [](https://npmjs.org/package/fill-range) [](https://npmjs.org/package/fill-range) [](https://travis-ci.org/jonschlinkert/fill-range)
+
+> Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`
+
+Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save fill-range
+```
+
+## Usage
+
+Expands numbers and letters, optionally using a `step` as the last argument. _(Numbers may be defined as JavaScript numbers or strings)_.
+
+```js
+const fill = require('fill-range');
+// fill(from, to[, step, options]);
+
+console.log(fill('1', '10')); //=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10']
+console.log(fill('1', '10', { toRegex: true })); //=> [1-9]|10
+```
+
+**Params**
+
+* `from`: **{String|Number}** the number or letter to start with
+* `to`: **{String|Number}** the number or letter to end with
+* `step`: **{String|Number|Object|Function}** Optionally pass a [step](#optionsstep) to use.
+* `options`: **{Object|Function}**: See all available [options](#options)
+
+## Examples
+
+By default, an array of values is returned.
+
+**Alphabetical ranges**
+
+```js
+console.log(fill('a', 'e')); //=> ['a', 'b', 'c', 'd', 'e']
+console.log(fill('A', 'E')); //=> [ 'A', 'B', 'C', 'D', 'E' ]
+```
+
+**Numerical ranges**
+
+Numbers can be defined as actual numbers or strings.
+
+```js
+console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ]
+console.log(fill('1', '5')); //=> [ 1, 2, 3, 4, 5 ]
+```
+
+**Negative ranges**
+
+Numbers can be defined as actual numbers or strings.
+
+```js
+console.log(fill('-5', '-1')); //=> [ '-5', '-4', '-3', '-2', '-1' ]
+console.log(fill('-5', '5')); //=> [ '-5', '-4', '-3', '-2', '-1', '0', '1', '2', '3', '4', '5' ]
+```
+
+**Steps (increments)**
+
+```js
+// numerical ranges with increments
+console.log(fill('0', '25', 4)); //=> [ '0', '4', '8', '12', '16', '20', '24' ]
+console.log(fill('0', '25', 5)); //=> [ '0', '5', '10', '15', '20', '25' ]
+console.log(fill('0', '25', 6)); //=> [ '0', '6', '12', '18', '24' ]
+
+// alphabetical ranges with increments
+console.log(fill('a', 'z', 4)); //=> [ 'a', 'e', 'i', 'm', 'q', 'u', 'y' ]
+console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ]
+console.log(fill('a', 'z', 6)); //=> [ 'a', 'g', 'm', 's', 'y' ]
+```
+
+## Options
+
+### options.step
+
+**Type**: `number` (formatted as a string or number)
+
+**Default**: `undefined`
+
+**Description**: The increment to use for the range. Can be used with letters or numbers.
+
+**Example(s)**
+
+```js
+// numbers
+console.log(fill('1', '10', 2)); //=> [ '1', '3', '5', '7', '9' ]
+console.log(fill('1', '10', 3)); //=> [ '1', '4', '7', '10' ]
+console.log(fill('1', '10', 4)); //=> [ '1', '5', '9' ]
+
+// letters
+console.log(fill('a', 'z', 5)); //=> [ 'a', 'f', 'k', 'p', 'u', 'z' ]
+console.log(fill('a', 'z', 7)); //=> [ 'a', 'h', 'o', 'v' ]
+console.log(fill('a', 'z', 9)); //=> [ 'a', 'j', 's' ]
+```
+
+### options.strictRanges
+
+**Type**: `boolean`
+
+**Default**: `false`
+
+**Description**: By default, `null` is returned when an invalid range is passed. Enable this option to throw a `RangeError` on invalid ranges.
+
+**Example(s)**
+
+The following are all invalid:
+
+```js
+fill('1.1', '2'); // decimals not supported in ranges
+fill('a', '2'); // incompatible range values
+fill(1, 10, 'foo'); // invalid "step" argument
+```
+
+### options.stringify
+
+**Type**: `boolean`
+
+**Default**: `undefined`
+
+**Description**: Cast all returned values to strings. By default, integers are returned as numbers.
+
+**Example(s)**
+
+```js
+console.log(fill(1, 5)); //=> [ 1, 2, 3, 4, 5 ]
+console.log(fill(1, 5, { stringify: true })); //=> [ '1', '2', '3', '4', '5' ]
+```
+
+### options.toRegex
+
+**Type**: `boolean`
+
+**Default**: `undefined`
+
+**Description**: Create a regex-compatible source string, instead of expanding values to an array.
+
+**Example(s)**
+
+```js
+// alphabetical range
+console.log(fill('a', 'e', { toRegex: true })); //=> '[a-e]'
+// alphabetical with step
+console.log(fill('a', 'z', 3, { toRegex: true })); //=> 'a|d|g|j|m|p|s|v|y'
+// numerical range
+console.log(fill('1', '100', { toRegex: true })); //=> '[1-9]|[1-9][0-9]|100'
+// numerical range with zero padding
+console.log(fill('000001', '100000', { toRegex: true }));
+//=> '0{5}[1-9]|0{4}[1-9][0-9]|0{3}[1-9][0-9]{2}|0{2}[1-9][0-9]{3}|0[1-9][0-9]{4}|100000'
+```
+
+### options.transform
+
+**Type**: `function`
+
+**Default**: `undefined`
+
+**Description**: Customize each value in the returned array (or [string](#optionstoRegex)). _(you can also pass this function as the last argument to `fill()`)_.
+
+**Example(s)**
+
+```js
+// add zero padding
+console.log(fill(1, 5, value => String(value).padStart(4, '0')));
+//=> ['0001', '0002', '0003', '0004', '0005']
+```
+
+## About
+
+
+Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+
+
+
+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
+```
+
+
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 116 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 4 | [paulmillr](https://github.com/paulmillr) |
+| 2 | [realityking](https://github.com/realityking) |
+| 2 | [bluelovers](https://github.com/bluelovers) |
+| 1 | [edorivai](https://github.com/edorivai) |
+| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
+
+### Author
+
+**Jon Schlinkert**
+
+* [GitHub Profile](https://github.com/jonschlinkert)
+* [Twitter Profile](https://twitter.com/jonschlinkert)
+* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
+
+Please consider supporting me on Patreon, or [start your own Patreon page](https://patreon.com/invite/bxpbvm)!
+
+
+
+
+
+### License
+
+Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._
\ No newline at end of file
diff --git a/node_modules/fill-range/index.js b/node_modules/fill-range/index.js
new file mode 100644
index 0000000..ddb212e
--- /dev/null
+++ b/node_modules/fill-range/index.js
@@ -0,0 +1,248 @@
+/*!
+ * fill-range
+ *
+ * Copyright (c) 2014-present, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+const util = require('util');
+const toRegexRange = require('to-regex-range');
+
+const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
+
+const transform = toNumber => {
+ return value => toNumber === true ? Number(value) : String(value);
+};
+
+const isValidValue = value => {
+ return typeof value === 'number' || (typeof value === 'string' && value !== '');
+};
+
+const isNumber = num => Number.isInteger(+num);
+
+const zeros = input => {
+ let value = `${input}`;
+ let index = -1;
+ if (value[0] === '-') value = value.slice(1);
+ if (value === '0') return false;
+ while (value[++index] === '0');
+ return index > 0;
+};
+
+const stringify = (start, end, options) => {
+ if (typeof start === 'string' || typeof end === 'string') {
+ return true;
+ }
+ return options.stringify === true;
+};
+
+const pad = (input, maxLength, toNumber) => {
+ if (maxLength > 0) {
+ let dash = input[0] === '-' ? '-' : '';
+ if (dash) input = input.slice(1);
+ input = (dash + input.padStart(dash ? maxLength - 1 : maxLength, '0'));
+ }
+ if (toNumber === false) {
+ return String(input);
+ }
+ return input;
+};
+
+const toMaxLen = (input, maxLength) => {
+ let negative = input[0] === '-' ? '-' : '';
+ if (negative) {
+ input = input.slice(1);
+ maxLength--;
+ }
+ while (input.length < maxLength) input = '0' + input;
+ return negative ? ('-' + input) : input;
+};
+
+const toSequence = (parts, options, maxLen) => {
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
+ parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
+
+ let prefix = options.capture ? '' : '?:';
+ let positives = '';
+ let negatives = '';
+ let result;
+
+ if (parts.positives.length) {
+ positives = parts.positives.map(v => toMaxLen(String(v), maxLen)).join('|');
+ }
+
+ if (parts.negatives.length) {
+ negatives = `-(${prefix}${parts.negatives.map(v => toMaxLen(String(v), maxLen)).join('|')})`;
+ }
+
+ if (positives && negatives) {
+ result = `${positives}|${negatives}`;
+ } else {
+ result = positives || negatives;
+ }
+
+ if (options.wrap) {
+ return `(${prefix}${result})`;
+ }
+
+ return result;
+};
+
+const toRange = (a, b, isNumbers, options) => {
+ if (isNumbers) {
+ return toRegexRange(a, b, { wrap: false, ...options });
+ }
+
+ let start = String.fromCharCode(a);
+ if (a === b) return start;
+
+ let stop = String.fromCharCode(b);
+ return `[${start}-${stop}]`;
+};
+
+const toRegex = (start, end, options) => {
+ if (Array.isArray(start)) {
+ let wrap = options.wrap === true;
+ let prefix = options.capture ? '' : '?:';
+ return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
+ }
+ return toRegexRange(start, end, options);
+};
+
+const rangeError = (...args) => {
+ return new RangeError('Invalid range arguments: ' + util.inspect(...args));
+};
+
+const invalidRange = (start, end, options) => {
+ if (options.strictRanges === true) throw rangeError([start, end]);
+ return [];
+};
+
+const invalidStep = (step, options) => {
+ if (options.strictRanges === true) {
+ throw new TypeError(`Expected step "${step}" to be a number`);
+ }
+ return [];
+};
+
+const fillNumbers = (start, end, step = 1, options = {}) => {
+ let a = Number(start);
+ let b = Number(end);
+
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
+ if (options.strictRanges === true) throw rangeError([start, end]);
+ return [];
+ }
+
+ // fix negative zero
+ if (a === 0) a = 0;
+ if (b === 0) b = 0;
+
+ let descending = a > b;
+ let startString = String(start);
+ let endString = String(end);
+ let stepString = String(step);
+ step = Math.max(Math.abs(step), 1);
+
+ let padded = zeros(startString) || zeros(endString) || zeros(stepString);
+ let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
+ let toNumber = padded === false && stringify(start, end, options) === false;
+ let format = options.transform || transform(toNumber);
+
+ if (options.toRegex && step === 1) {
+ return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
+ }
+
+ let parts = { negatives: [], positives: [] };
+ let push = num => parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
+ let range = [];
+ let index = 0;
+
+ while (descending ? a >= b : a <= b) {
+ if (options.toRegex === true && step > 1) {
+ push(a);
+ } else {
+ range.push(pad(format(a, index), maxLen, toNumber));
+ }
+ a = descending ? a - step : a + step;
+ index++;
+ }
+
+ if (options.toRegex === true) {
+ return step > 1
+ ? toSequence(parts, options, maxLen)
+ : toRegex(range, null, { wrap: false, ...options });
+ }
+
+ return range;
+};
+
+const fillLetters = (start, end, step = 1, options = {}) => {
+ if ((!isNumber(start) && start.length > 1) || (!isNumber(end) && end.length > 1)) {
+ return invalidRange(start, end, options);
+ }
+
+ let format = options.transform || (val => String.fromCharCode(val));
+ let a = `${start}`.charCodeAt(0);
+ let b = `${end}`.charCodeAt(0);
+
+ let descending = a > b;
+ let min = Math.min(a, b);
+ let max = Math.max(a, b);
+
+ if (options.toRegex && step === 1) {
+ return toRange(min, max, false, options);
+ }
+
+ let range = [];
+ let index = 0;
+
+ while (descending ? a >= b : a <= b) {
+ range.push(format(a, index));
+ a = descending ? a - step : a + step;
+ index++;
+ }
+
+ if (options.toRegex === true) {
+ return toRegex(range, null, { wrap: false, options });
+ }
+
+ return range;
+};
+
+const fill = (start, end, step, options = {}) => {
+ if (end == null && isValidValue(start)) {
+ return [start];
+ }
+
+ if (!isValidValue(start) || !isValidValue(end)) {
+ return invalidRange(start, end, options);
+ }
+
+ if (typeof step === 'function') {
+ return fill(start, end, 1, { transform: step });
+ }
+
+ if (isObject(step)) {
+ return fill(start, end, 0, step);
+ }
+
+ let opts = { ...options };
+ if (opts.capture === true) opts.wrap = true;
+ step = step || opts.step || 1;
+
+ if (!isNumber(step)) {
+ if (step != null && !isObject(step)) return invalidStep(step, opts);
+ return fill(start, end, 1, step);
+ }
+
+ if (isNumber(start) && isNumber(end)) {
+ return fillNumbers(start, end, step, opts);
+ }
+
+ return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
+};
+
+module.exports = fill;
diff --git a/node_modules/fill-range/package.json b/node_modules/fill-range/package.json
new file mode 100644
index 0000000..582357f
--- /dev/null
+++ b/node_modules/fill-range/package.json
@@ -0,0 +1,74 @@
+{
+ "name": "fill-range",
+ "description": "Fill in a range of numbers or letters, optionally passing an increment or `step` to use, or create a regex-compatible range with `options.toRegex`",
+ "version": "7.1.1",
+ "homepage": "https://github.com/jonschlinkert/fill-range",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Edo Rivai (edo.rivai.nl)",
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)",
+ "Paul Miller (paulmillr.com)",
+ "Rouven Weßling (www.rouvenwessling.de)",
+ "(https://github.com/wtgtybhertgeghgtwtg)"
+ ],
+ "repository": "jonschlinkert/fill-range",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/fill-range/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=8"
+ },
+ "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"
+ },
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "devDependencies": {
+ "gulp-format-md": "^2.0.0",
+ "mocha": "^6.1.1",
+ "nyc": "^15.1.0"
+ },
+ "keywords": [
+ "alpha",
+ "alphabetical",
+ "array",
+ "bash",
+ "brace",
+ "expand",
+ "expansion",
+ "fill",
+ "glob",
+ "match",
+ "matches",
+ "matching",
+ "number",
+ "numerical",
+ "range",
+ "ranges",
+ "regex",
+ "sh"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ }
+}
diff --git a/node_modules/foreground-child/LICENSE b/node_modules/foreground-child/LICENSE
new file mode 100644
index 0000000..2d80720
--- /dev/null
+++ b/node_modules/foreground-child/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015-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/foreground-child/README.md b/node_modules/foreground-child/README.md
new file mode 100644
index 0000000..477ca57
--- /dev/null
+++ b/node_modules/foreground-child/README.md
@@ -0,0 +1,128 @@
+# foreground-child
+
+Run a child as if it's the foreground process. Give it stdio. Exit
+when it exits.
+
+Mostly this module is here to support some use cases around
+wrapping child processes for test coverage and such. But it's
+also generally useful any time you want one program to execute
+another as if it's the "main" process, for example, if a program
+takes a `--cmd` argument to execute in some way.
+
+## USAGE
+
+```js
+import { foregroundChild } from 'foreground-child'
+// hybrid module, this also works:
+// const { foregroundChild } = require('foreground-child')
+
+// cats out this file
+const child = foregroundChild('cat', [__filename])
+
+// At this point, it's best to just do nothing else.
+// return or whatever.
+// If the child gets a signal, or just exits, then this
+// parent process will exit in the same way.
+```
+
+You can provide custom spawn options by passing an object after
+the program and arguments:
+
+```js
+const child = foregroundChild(`cat ${__filename}`, { shell: true })
+```
+
+A callback can optionally be provided, if you want to perform an
+action before your foreground-child exits:
+
+```js
+const child = foregroundChild('cat', [__filename], spawnOptions, () => {
+ doSomeActions()
+})
+```
+
+The callback can return a Promise in order to perform
+asynchronous actions. If the callback does not return a promise,
+then it must complete its actions within a single JavaScript
+tick.
+
+```js
+const child = foregroundChild('cat', [__filename], async () => {
+ await doSomeAsyncActions()
+})
+```
+
+If the callback throws or rejects, then it will be unhandled, and
+node will exit in error.
+
+If the callback returns a string value, then that will be used as
+the signal to exit the parent process. If it returns a number,
+then that number will be used as the parent exit status code. If
+it returns boolean `false`, then the parent process will not be
+terminated. If it returns `undefined`, then it will exit with the
+same signal/code as the child process.
+
+## Caveats
+
+The "normal" standard IO file descriptors (0, 1, and 2 for stdin,
+stdout, and stderr respectively) are shared with the child process.
+Additionally, if there is an IPC channel set up in the parent, then
+messages are proxied to the child on file descriptor 3.
+
+In Node, it's possible to also map arbitrary file descriptors
+into a child process. In these cases, foreground-child will not
+map the file descriptors into the child. If file descriptors 0,
+1, or 2 are used for the IPC channel, then strange behavior may
+happen (like printing IPC messages to stderr, for example).
+
+Note that a SIGKILL will always kill the parent process, but
+will not proxy the signal to the child process, because SIGKILL
+cannot be caught. In order to address this, a special "watchdog"
+child process is spawned which will send a SIGKILL to the child
+process if it does not terminate within half a second after the
+watchdog receives a SIGHUP due to its parent terminating.
+
+On Windows, issuing a `process.kill(process.pid, signal)` with a
+fatal termination signal may cause the process to exit with a `1`
+status code rather than reporting the signal properly. This
+module tries to do the right thing, but on Windows systems, you
+may see that incorrect result. There is as far as I'm aware no
+workaround for this.
+
+## util: `foreground-child/proxy-signals`
+
+If you just want to proxy the signals to a child process that the
+main process receives, you can use the `proxy-signals` export
+from this package.
+
+```js
+import { proxySignals } from 'foreground-child/proxy-signals'
+
+const childProcess = spawn('command', ['some', 'args'])
+proxySignals(childProcess)
+```
+
+Now, any fatal signal received by the current process will be
+proxied to the child process.
+
+It doesn't go in the other direction; ie, signals sent to the
+child process will not affect the parent. For that, listen to the
+child `exit` or `close` events, and handle them appropriately.
+
+## util: `foreground-child/watchdog`
+
+If you are spawning a child process, and want to ensure that it
+isn't left dangling if the parent process exits, you can use the
+watchdog utility exported by this module.
+
+```js
+import { watchdog } from 'foreground-child/watchdog'
+
+const childProcess = spawn('command', ['some', 'args'])
+const watchdogProcess = watchdog(childProcess)
+
+// watchdogProcess is a reference to the process monitoring the
+// parent and child. There's usually no reason to do anything
+// with it, as it's silent and will terminate
+// automatically when it's no longer needed.
+```
diff --git a/node_modules/foreground-child/dist/commonjs/all-signals.d.ts b/node_modules/foreground-child/dist/commonjs/all-signals.d.ts
new file mode 100644
index 0000000..ecc0a62
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/all-signals.d.ts
@@ -0,0 +1,2 @@
+export declare const allSignals: NodeJS.Signals[];
+//# sourceMappingURL=all-signals.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map b/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map
new file mode 100644
index 0000000..cd1c161
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"all-signals.d.ts","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,EAShB,MAAM,CAAC,OAAO,EAAE,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/all-signals.js b/node_modules/foreground-child/dist/commonjs/all-signals.js
new file mode 100644
index 0000000..1692af0
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/all-signals.js
@@ -0,0 +1,58 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.allSignals = void 0;
+const node_constants_1 = __importDefault(require("node:constants"));
+exports.allSignals =
+// this is the full list of signals that Node will let us do anything with
+Object.keys(node_constants_1.default).filter(k => k.startsWith('SIG') &&
+ // https://github.com/tapjs/signal-exit/issues/21
+ k !== 'SIGPROF' &&
+ // no sense trying to listen for SIGKILL, it's impossible
+ k !== 'SIGKILL');
+// These are some obscure signals that are reported by kill -l
+// on macOS, Linux, or Windows, but which don't have any mapping
+// in Node.js. No sense trying if they're just going to throw
+// every time on every platform.
+//
+// 'SIGEMT',
+// 'SIGLOST',
+// 'SIGPOLL',
+// 'SIGRTMAX',
+// 'SIGRTMAX-1',
+// 'SIGRTMAX-10',
+// 'SIGRTMAX-11',
+// 'SIGRTMAX-12',
+// 'SIGRTMAX-13',
+// 'SIGRTMAX-14',
+// 'SIGRTMAX-15',
+// 'SIGRTMAX-2',
+// 'SIGRTMAX-3',
+// 'SIGRTMAX-4',
+// 'SIGRTMAX-5',
+// 'SIGRTMAX-6',
+// 'SIGRTMAX-7',
+// 'SIGRTMAX-8',
+// 'SIGRTMAX-9',
+// 'SIGRTMIN',
+// 'SIGRTMIN+1',
+// 'SIGRTMIN+10',
+// 'SIGRTMIN+11',
+// 'SIGRTMIN+12',
+// 'SIGRTMIN+13',
+// 'SIGRTMIN+14',
+// 'SIGRTMIN+15',
+// 'SIGRTMIN+16',
+// 'SIGRTMIN+2',
+// 'SIGRTMIN+3',
+// 'SIGRTMIN+4',
+// 'SIGRTMIN+5',
+// 'SIGRTMIN+6',
+// 'SIGRTMIN+7',
+// 'SIGRTMIN+8',
+// 'SIGRTMIN+9',
+// 'SIGSTKFLT',
+// 'SIGUNUSED',
+//# sourceMappingURL=all-signals.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/all-signals.js.map b/node_modules/foreground-child/dist/commonjs/all-signals.js.map
new file mode 100644
index 0000000..51c056d
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/all-signals.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"all-signals.js","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsC;AACzB,QAAA,UAAU;AACrB,0EAA0E;AAC1E,MAAM,CAAC,IAAI,CAAC,wBAAS,CAAC,CAAC,MAAM,CAC3B,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;IACnB,iDAAiD;IACjD,CAAC,KAAK,SAAS;IACf,yDAAyD;IACzD,CAAC,KAAK,SAAS,CACE,CAAA;AAEvB,8DAA8D;AAC9D,gEAAgE;AAChE,6DAA6D;AAC7D,gCAAgC;AAChC,EAAE;AACF,YAAY;AACZ,aAAa;AACb,aAAa;AACb,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,eAAe;AACf,eAAe","sourcesContent":["import constants from 'node:constants'\nexport const allSignals =\n // this is the full list of signals that Node will let us do anything with\n Object.keys(constants).filter(\n k =>\n k.startsWith('SIG') &&\n // https://github.com/tapjs/signal-exit/issues/21\n k !== 'SIGPROF' &&\n // no sense trying to listen for SIGKILL, it's impossible\n k !== 'SIGKILL',\n ) as NodeJS.Signals[]\n\n// These are some obscure signals that are reported by kill -l\n// on macOS, Linux, or Windows, but which don't have any mapping\n// in Node.js. No sense trying if they're just going to throw\n// every time on every platform.\n//\n// 'SIGEMT',\n// 'SIGLOST',\n// 'SIGPOLL',\n// 'SIGRTMAX',\n// 'SIGRTMAX-1',\n// 'SIGRTMAX-10',\n// 'SIGRTMAX-11',\n// 'SIGRTMAX-12',\n// 'SIGRTMAX-13',\n// 'SIGRTMAX-14',\n// 'SIGRTMAX-15',\n// 'SIGRTMAX-2',\n// 'SIGRTMAX-3',\n// 'SIGRTMAX-4',\n// 'SIGRTMAX-5',\n// 'SIGRTMAX-6',\n// 'SIGRTMAX-7',\n// 'SIGRTMAX-8',\n// 'SIGRTMAX-9',\n// 'SIGRTMIN',\n// 'SIGRTMIN+1',\n// 'SIGRTMIN+10',\n// 'SIGRTMIN+11',\n// 'SIGRTMIN+12',\n// 'SIGRTMIN+13',\n// 'SIGRTMIN+14',\n// 'SIGRTMIN+15',\n// 'SIGRTMIN+16',\n// 'SIGRTMIN+2',\n// 'SIGRTMIN+3',\n// 'SIGRTMIN+4',\n// 'SIGRTMIN+5',\n// 'SIGRTMIN+6',\n// 'SIGRTMIN+7',\n// 'SIGRTMIN+8',\n// 'SIGRTMIN+9',\n// 'SIGSTKFLT',\n// 'SIGUNUSED',\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/index.d.ts b/node_modules/foreground-child/dist/commonjs/index.d.ts
new file mode 100644
index 0000000..d15b38e
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/index.d.ts
@@ -0,0 +1,58 @@
+import { ChildProcessByStdio, SpawnOptions, ChildProcess } from 'child_process';
+/**
+ * The signature for the cleanup method.
+ *
+ * Arguments indicate the exit status of the child process.
+ *
+ * If a Promise is returned, then the process is not terminated
+ * until it resolves, and the resolution value is treated as the
+ * exit status (if a number) or signal exit (if a signal string).
+ *
+ * If `undefined` is returned, then no change is made, and the parent
+ * exits in the same way that the child exited.
+ *
+ * If boolean `false` is returned, then the parent's exit is canceled.
+ *
+ * If a number is returned, then the parent process exits with the number
+ * as its exitCode.
+ *
+ * If a signal string is returned, then the parent process is killed with
+ * the same signal that caused the child to exit.
+ */
+export type Cleanup = (code: number | null, signal: null | NodeJS.Signals, processInfo: {
+ watchdogPid?: ChildProcess['pid'];
+}) => void | undefined | number | NodeJS.Signals | false | Promise;
+export type FgArgs = [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup] | [
+ program: [cmd: string, ...args: string[]],
+ opts?: SpawnOptions,
+ cleanup?: Cleanup
+] | [program: string, cleanup?: Cleanup] | [program: string, opts?: SpawnOptions, cleanup?: Cleanup] | [program: string, args?: string[], cleanup?: Cleanup] | [
+ program: string,
+ args?: string[],
+ opts?: SpawnOptions,
+ cleanup?: Cleanup
+];
+/**
+ * Normalizes the arguments passed to `foregroundChild`.
+ *
+ * Exposed for testing.
+ *
+ * @internal
+ */
+export declare const normalizeFgArgs: (fgArgs: FgArgs) => [program: string, args: string[], spawnOpts: SpawnOptions, cleanup: Cleanup];
+/**
+ * Spawn the specified program as a "foreground" process, or at least as
+ * close as is possible given node's lack of exec-without-fork.
+ *
+ * Cleanup method may be used to modify or ignore the result of the child's
+ * exit code or signal. If cleanup returns undefined (or a Promise that
+ * resolves to undefined), then the parent will exit in the same way that
+ * the child did.
+ *
+ * Return boolean `false` to prevent the parent's exit entirely.
+ */
+export declare function foregroundChild(cmd: string | [cmd: string, ...args: string[]], cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, args?: string[], cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, args?: string[], spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio;
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/index.d.ts.map b/node_modules/foreground-child/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000..b26fecd
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAInB,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAA;AAUtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,OAAO,EAC7B,WAAW,EAAE;IACX,WAAW,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAClC,KAEC,IAAI,GACJ,SAAS,GACT,MAAM,GACN,MAAM,CAAC,OAAO,GACd,KAAK,GACL,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,CAAA;AAE/D,MAAM,MAAM,MAAM,GACd,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACvE;IACE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,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AAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/index.js b/node_modules/foreground-child/dist/commonjs/index.js
new file mode 100644
index 0000000..6db65c6
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/index.js
@@ -0,0 +1,123 @@
+"use strict";
+var __importDefault = (this && this.__importDefault) || function (mod) {
+ return (mod && mod.__esModule) ? mod : { "default": mod };
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.normalizeFgArgs = void 0;
+exports.foregroundChild = foregroundChild;
+const child_process_1 = require("child_process");
+const cross_spawn_1 = __importDefault(require("cross-spawn"));
+const signal_exit_1 = require("signal-exit");
+const proxy_signals_js_1 = require("./proxy-signals.js");
+const watchdog_js_1 = require("./watchdog.js");
+/* c8 ignore start */
+const spawn = process?.platform === 'win32' ? cross_spawn_1.default : child_process_1.spawn;
+/**
+ * Normalizes the arguments passed to `foregroundChild`.
+ *
+ * Exposed for testing.
+ *
+ * @internal
+ */
+const normalizeFgArgs = (fgArgs) => {
+ let [program, args = [], spawnOpts = {}, cleanup = () => { }] = fgArgs;
+ if (typeof args === 'function') {
+ cleanup = args;
+ spawnOpts = {};
+ args = [];
+ }
+ else if (!!args && typeof args === 'object' && !Array.isArray(args)) {
+ if (typeof spawnOpts === 'function')
+ cleanup = spawnOpts;
+ spawnOpts = args;
+ args = [];
+ }
+ else if (typeof spawnOpts === 'function') {
+ cleanup = spawnOpts;
+ spawnOpts = {};
+ }
+ if (Array.isArray(program)) {
+ const [pp, ...pa] = program;
+ program = pp;
+ args = pa;
+ }
+ return [program, args, { ...spawnOpts }, cleanup];
+};
+exports.normalizeFgArgs = normalizeFgArgs;
+function foregroundChild(...fgArgs) {
+ const [program, args, spawnOpts, cleanup] = (0, exports.normalizeFgArgs)(fgArgs);
+ spawnOpts.stdio = [0, 1, 2];
+ if (process.send) {
+ spawnOpts.stdio.push('ipc');
+ }
+ const child = spawn(program, args, spawnOpts);
+ const childHangup = () => {
+ try {
+ child.kill('SIGHUP');
+ /* c8 ignore start */
+ }
+ catch (_) {
+ // SIGHUP is weird on windows
+ child.kill('SIGTERM');
+ }
+ /* c8 ignore stop */
+ };
+ const removeOnExit = (0, signal_exit_1.onExit)(childHangup);
+ (0, proxy_signals_js_1.proxySignals)(child);
+ const dog = (0, watchdog_js_1.watchdog)(child);
+ let done = false;
+ child.on('close', async (code, signal) => {
+ /* c8 ignore start */
+ if (done)
+ return;
+ /* c8 ignore stop */
+ done = true;
+ const result = cleanup(code, signal, {
+ watchdogPid: dog.pid,
+ });
+ const res = isPromise(result) ? await result : result;
+ removeOnExit();
+ if (res === false)
+ return;
+ else if (typeof res === 'string') {
+ signal = res;
+ code = null;
+ }
+ else if (typeof res === 'number') {
+ code = res;
+ signal = null;
+ }
+ if (signal) {
+ // If there is nothing else keeping the event loop alive,
+ // then there's a race between a graceful exit and getting
+ // the signal to this process. Put this timeout here to
+ // make sure we're still alive to get the signal, and thus
+ // exit with the intended signal code.
+ /* istanbul ignore next */
+ setTimeout(() => { }, 2000);
+ try {
+ process.kill(process.pid, signal);
+ /* c8 ignore start */
+ }
+ catch (_) {
+ process.kill(process.pid, 'SIGTERM');
+ }
+ /* c8 ignore stop */
+ }
+ else {
+ process.exit(code || 0);
+ }
+ });
+ if (process.send) {
+ process.removeAllListeners('message');
+ child.on('message', (message, sendHandle) => {
+ process.send?.(message, sendHandle);
+ });
+ process.on('message', (message, sendHandle) => {
+ child.send(message, sendHandle);
+ });
+ }
+ return child;
+}
+const isPromise = (o) => !!o && typeof o === 'object' && typeof o.then === 'function';
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/index.js.map b/node_modules/foreground-child/dist/commonjs/index.js.map
new file mode 100644
index 0000000..56037c8
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAuIA,0CAyFC;AAhOD,iDAOsB;AACtB,8DAAoC;AACpC,6CAAoC;AACpC,yDAAiD;AACjD,+CAAwC;AAExC,qBAAqB;AACrB,MAAM,KAAK,GAAG,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,qBAAU,CAAC,CAAC,CAAC,qBAAS,CAAA;AAsDpE;;;;;;GAMG;AACI,MAAM,eAAe,GAAG,CAC7B,MAAc,EAMd,EAAE;IACF,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC,GAAG,MAAM,CAAA;IACrE,IAAI,OAAO,IAAI,KAAK,UAAU,EAAE,CAAC;QAC/B,OAAO,GAAG,IAAI,CAAA;QACd,SAAS,GAAG,EAAE,CAAA;QACd,IAAI,GAAG,EAAE,CAAA;IACX,CAAC;SAAM,IAAI,CAAC,CAAC,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACtE,IAAI,OAAO,SAAS,KAAK,UAAU;YAAE,OAAO,GAAG,SAAS,CAAA;QACxD,SAAS,GAAG,IAAI,CAAA;QAChB,IAAI,GAAG,EAAE,CAAA;IACX,CAAC;SAAM,IAAI,OAAO,SAAS,KAAK,UAAU,EAAE,CAAC;QAC3C,OAAO,GAAG,SAAS,CAAA;QACnB,SAAS,GAAG,EAAE,CAAA;IAChB,CAAC;IACD,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,MAAM,CAAC,EAAE,EAAE,GAAG,EAAE,CA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AErC,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE;YAC1C,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;QACrC,CAAC,CAAC,CAAA;QAEF,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE;YAC5C,KAAK,CAAC,IAAI,CACR,OAAuB,EACvB,UAAoC,CACrC,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC;AAED,MAAM,SAAS,GAAG,CAAC,CAAM,EAAqB,EAAE,CAC9C,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,CAAC,IAAI,KAAK,UAAU,CAAA","sourcesContent":["import {\n ChildProcessByStdio,\n SendHandle,\n Serializable,\n spawn as nodeSpawn,\n SpawnOptions,\n ChildProcess,\n} from 'child_process'\nimport crossSpawn from 'cross-spawn'\nimport { onExit } from 'signal-exit'\nimport { proxySignals } from './proxy-signals.js'\nimport { watchdog } from './watchdog.js'\n\n/* c8 ignore start */\nconst spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn\n/* c8 ignore stop */\n\n/**\n * The signature for the cleanup method.\n *\n * Arguments indicate the exit status of the child process.\n *\n * If a Promise is returned, then the process is not terminated\n * until it resolves, and the resolution value is treated as the\n * exit status (if a number) or signal exit (if a signal string).\n *\n * If `undefined` is returned, then no change is made, and the parent\n * exits in the same way that the child exited.\n *\n * If boolean `false` is returned, then the parent's exit is canceled.\n *\n * If a number is returned, then the parent process exits with the number\n * as its exitCode.\n *\n * If a signal string is returned, then the parent process is killed with\n * the same signal that caused the child to exit.\n */\nexport type Cleanup = (\n code: number | null,\n signal: null | NodeJS.Signals,\n processInfo: {\n watchdogPid?: ChildProcess['pid']\n },\n) =>\n | void\n | undefined\n | number\n | NodeJS.Signals\n | false\n | Promise\n\nexport type FgArgs =\n | [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup]\n | [\n program: [cmd: string, ...args: string[]],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n | [program: string, cleanup?: Cleanup]\n | [program: string, opts?: SpawnOptions, cleanup?: Cleanup]\n | [program: string, args?: string[], cleanup?: Cleanup]\n | [\n program: string,\n args?: string[],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n\n/**\n * Normalizes the arguments passed to `foregroundChild`.\n *\n * Exposed for testing.\n *\n * @internal\n */\nexport const normalizeFgArgs = (\n fgArgs: FgArgs,\n): [\n program: string,\n args: string[],\n spawnOpts: SpawnOptions,\n cleanup: Cleanup,\n] => {\n let [program, args = [], spawnOpts = {}, cleanup = () => {}] = fgArgs\n if (typeof args === 'function') {\n cleanup = args\n spawnOpts = {}\n args = []\n } else if (!!args && typeof args === 'object' && !Array.isArray(args)) {\n if (typeof spawnOpts === 'function') cleanup = spawnOpts\n spawnOpts = args\n args = []\n } else if (typeof spawnOpts === 'function') {\n cleanup = spawnOpts\n spawnOpts = {}\n }\n if (Array.isArray(program)) {\n const [pp, ...pa] = program\n program = pp\n args = pa\n }\n return [program, args, { ...spawnOpts }, cleanup]\n}\n\n/**\n * Spawn the specified program as a \"foreground\" process, or at least as\n * close as is possible given node's lack of exec-without-fork.\n *\n * Cleanup method may be used to modify or ignore the result of the child's\n * exit code or signal. If cleanup returns undefined (or a Promise that\n * resolves to undefined), then the parent will exit in the same way that\n * the child did.\n *\n * Return boolean `false` to prevent the parent's exit entirely.\n */\nexport function foregroundChild(\n cmd: string | [cmd: string, ...args: string[]],\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n args?: string[],\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n args?: string[],\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n ...fgArgs: FgArgs\n): ChildProcessByStdio {\n const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs)\n\n spawnOpts.stdio = [0, 1, 2]\n if (process.send) {\n spawnOpts.stdio.push('ipc')\n }\n\n const child = spawn(program, args, spawnOpts) as ChildProcessByStdio<\n null,\n null,\n null\n >\n\n const childHangup = () => {\n try {\n child.kill('SIGHUP')\n\n /* c8 ignore start */\n } catch (_) {\n // SIGHUP is weird on windows\n child.kill('SIGTERM')\n }\n /* c8 ignore stop */\n }\n const removeOnExit = onExit(childHangup)\n\n proxySignals(child)\n const dog = watchdog(child)\n\n let done = false\n child.on('close', async (code, signal) => {\n /* c8 ignore start */\n if (done) return\n /* c8 ignore stop */\n done = true\n const result = cleanup(code, signal, {\n watchdogPid: dog.pid,\n })\n const res = isPromise(result) ? await result : result\n removeOnExit()\n\n if (res === false) return\n else if (typeof res === 'string') {\n signal = res\n code = null\n } else if (typeof res === 'number') {\n code = res\n signal = null\n }\n\n if (signal) {\n // If there is nothing else keeping the event loop alive,\n // then there's a race between a graceful exit and getting\n // the signal to this process. Put this timeout here to\n // make sure we're still alive to get the signal, and thus\n // exit with the intended signal code.\n /* istanbul ignore next */\n setTimeout(() => {}, 2000)\n try {\n process.kill(process.pid, signal)\n /* c8 ignore start */\n } catch (_) {\n process.kill(process.pid, 'SIGTERM')\n }\n /* c8 ignore stop */\n } else {\n process.exit(code || 0)\n }\n })\n\n if (process.send) {\n process.removeAllListeners('message')\n\n child.on('message', (message, sendHandle) => {\n process.send?.(message, sendHandle)\n })\n\n process.on('message', (message, sendHandle) => {\n child.send(\n message as Serializable,\n sendHandle as SendHandle | undefined,\n )\n })\n }\n\n return child\n}\n\nconst isPromise = (o: any): o is Promise =>\n !!o && typeof o === 'object' && typeof o.then === 'function'\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/package.json b/node_modules/foreground-child/dist/commonjs/package.json
new file mode 100644
index 0000000..5bbefff
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts b/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts
new file mode 100644
index 0000000..edf17bd
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts
@@ -0,0 +1,6 @@
+import { type ChildProcess } from 'child_process';
+/**
+ * Starts forwarding signals to `child` through `parent`.
+ */
+export declare const proxySignals: (child: ChildProcess) => () => void;
+//# sourceMappingURL=proxy-signals.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map b/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map
new file mode 100644
index 0000000..7c19279
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"proxy-signals.d.ts","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,YAAY,eA4B/C,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/proxy-signals.js b/node_modules/foreground-child/dist/commonjs/proxy-signals.js
new file mode 100644
index 0000000..3913e7b
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/proxy-signals.js
@@ -0,0 +1,38 @@
+"use strict";
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.proxySignals = void 0;
+const all_signals_js_1 = require("./all-signals.js");
+/**
+ * Starts forwarding signals to `child` through `parent`.
+ */
+const proxySignals = (child) => {
+ const listeners = new Map();
+ for (const sig of all_signals_js_1.allSignals) {
+ const listener = () => {
+ // some signals can only be received, not sent
+ try {
+ child.kill(sig);
+ /* c8 ignore start */
+ }
+ catch (_) { }
+ /* c8 ignore stop */
+ };
+ try {
+ // if it's a signal this system doesn't recognize, skip it
+ process.on(sig, listener);
+ listeners.set(sig, listener);
+ /* c8 ignore start */
+ }
+ catch (_) { }
+ /* c8 ignore stop */
+ }
+ const unproxy = () => {
+ for (const [sig, listener] of listeners) {
+ process.removeListener(sig, listener);
+ }
+ };
+ child.on('exit', unproxy);
+ return unproxy;
+};
+exports.proxySignals = proxySignals;
+//# sourceMappingURL=proxy-signals.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map b/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map
new file mode 100644
index 0000000..1995822
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"proxy-signals.js","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":";;;AACA,qDAA6C;AAE7C;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,KAAmB,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAA;IAE3B,KAAK,MAAM,GAAG,IAAI,2BAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,8CAA8C;YAC9C,IAAI,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACf,qBAAqB;YACvB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;YACd,oBAAoB;QACtB,CAAC,CAAA;QACD,IAAI,CAAC;YACH,0DAA0D;YAC1D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YACzB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC5B,qBAAqB;QACvB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QACd,oBAAoB;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IACD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AA5BY,QAAA,YAAY,gBA4BxB","sourcesContent":["import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/watchdog.d.ts b/node_modules/foreground-child/dist/commonjs/watchdog.d.ts
new file mode 100644
index 0000000..f10c9de
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/watchdog.d.ts
@@ -0,0 +1,10 @@
+import { ChildProcess } from 'child_process';
+/**
+ * Pass in a ChildProcess, and this will spawn a watchdog process that
+ * will make sure it exits if the parent does, thus preventing any
+ * dangling detached zombie processes.
+ *
+ * If the child ends before the parent, then the watchdog will terminate.
+ */
+export declare const watchdog: (child: ChildProcess) => ChildProcess;
+//# sourceMappingURL=watchdog.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map b/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map
new file mode 100644
index 0000000..d9ec243
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"watchdog.d.ts","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAS,MAAM,eAAe,CAAA;AAyBnD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,UAAW,YAAY,iBAc3C,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/watchdog.js b/node_modules/foreground-child/dist/commonjs/watchdog.js
new file mode 100644
index 0000000..514e234
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/watchdog.js
@@ -0,0 +1,50 @@
+"use strict";
+// this spawns a child process that listens for SIGHUP when the
+// parent process exits, and after 200ms, sends a SIGKILL to the
+// child, in case it did not terminate.
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.watchdog = void 0;
+const child_process_1 = require("child_process");
+const watchdogCode = String.raw `
+const pid = parseInt(process.argv[1], 10)
+process.title = 'node (foreground-child watchdog pid=' + pid + ')'
+if (!isNaN(pid)) {
+ let barked = false
+ // keepalive
+ const interval = setInterval(() => {}, 60000)
+ const bark = () => {
+ clearInterval(interval)
+ if (barked) return
+ barked = true
+ process.removeListener('SIGHUP', bark)
+ setTimeout(() => {
+ try {
+ process.kill(pid, 'SIGKILL')
+ setTimeout(() => process.exit(), 200)
+ } catch (_) {}
+ }, 500)
+ })
+ process.on('SIGHUP', bark)
+}
+`;
+/**
+ * Pass in a ChildProcess, and this will spawn a watchdog process that
+ * will make sure it exits if the parent does, thus preventing any
+ * dangling detached zombie processes.
+ *
+ * If the child ends before the parent, then the watchdog will terminate.
+ */
+const watchdog = (child) => {
+ let dogExited = false;
+ const dog = (0, child_process_1.spawn)(process.execPath, ['-e', watchdogCode, String(child.pid)], {
+ stdio: 'ignore',
+ });
+ dog.on('exit', () => (dogExited = true));
+ child.on('exit', () => {
+ if (!dogExited)
+ dog.kill('SIGKILL');
+ });
+ return dog;
+};
+exports.watchdog = watchdog;
+//# sourceMappingURL=watchdog.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/commonjs/watchdog.js.map b/node_modules/foreground-child/dist/commonjs/watchdog.js.map
new file mode 100644
index 0000000..d486c97
--- /dev/null
+++ b/node_modules/foreground-child/dist/commonjs/watchdog.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,gEAAgE;AAChE,uCAAuC;;;AAEvC,iDAAmD;AAEnD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAA;AAED;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,MAAM,GAAG,GAAG,IAAA,qBAAK,EACf,OAAO,CAAC,QAAQ,EAChB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACvC;QACE,KAAK,EAAE,QAAQ;KAChB,CACF,CAAA;IACD,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,IAAI,CAAC,SAAS;YAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAdY,QAAA,QAAQ,YAcpB","sourcesContent":["// this spawns a child process that listens for SIGHUP when the\n// parent process exits, and after 200ms, sends a SIGKILL to the\n// child, in case it did not terminate.\n\nimport { ChildProcess, spawn } from 'child_process'\n\nconst watchdogCode = String.raw`\nconst pid = parseInt(process.argv[1], 10)\nprocess.title = 'node (foreground-child watchdog pid=' + pid + ')'\nif (!isNaN(pid)) {\n let barked = false\n // keepalive\n const interval = setInterval(() => {}, 60000)\n const bark = () => {\n clearInterval(interval)\n if (barked) return\n barked = true\n process.removeListener('SIGHUP', bark)\n setTimeout(() => {\n try {\n process.kill(pid, 'SIGKILL')\n setTimeout(() => process.exit(), 200)\n } catch (_) {}\n }, 500)\n })\n process.on('SIGHUP', bark)\n}\n`\n\n/**\n * Pass in a ChildProcess, and this will spawn a watchdog process that\n * will make sure it exits if the parent does, thus preventing any\n * dangling detached zombie processes.\n *\n * If the child ends before the parent, then the watchdog will terminate.\n */\nexport const watchdog = (child: ChildProcess) => {\n let dogExited = false\n const dog = spawn(\n process.execPath,\n ['-e', watchdogCode, String(child.pid)],\n {\n stdio: 'ignore',\n },\n )\n dog.on('exit', () => (dogExited = true))\n child.on('exit', () => {\n if (!dogExited) dog.kill('SIGKILL')\n })\n return dog\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/all-signals.d.ts b/node_modules/foreground-child/dist/esm/all-signals.d.ts
new file mode 100644
index 0000000..ecc0a62
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/all-signals.d.ts
@@ -0,0 +1,2 @@
+export declare const allSignals: NodeJS.Signals[];
+//# sourceMappingURL=all-signals.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/all-signals.d.ts.map b/node_modules/foreground-child/dist/esm/all-signals.d.ts.map
new file mode 100644
index 0000000..cd1c161
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/all-signals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"all-signals.d.ts","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,EAShB,MAAM,CAAC,OAAO,EAAE,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/all-signals.js b/node_modules/foreground-child/dist/esm/all-signals.js
new file mode 100644
index 0000000..7e8d54d
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/all-signals.js
@@ -0,0 +1,52 @@
+import constants from 'node:constants';
+export const allSignals =
+// this is the full list of signals that Node will let us do anything with
+Object.keys(constants).filter(k => k.startsWith('SIG') &&
+ // https://github.com/tapjs/signal-exit/issues/21
+ k !== 'SIGPROF' &&
+ // no sense trying to listen for SIGKILL, it's impossible
+ k !== 'SIGKILL');
+// These are some obscure signals that are reported by kill -l
+// on macOS, Linux, or Windows, but which don't have any mapping
+// in Node.js. No sense trying if they're just going to throw
+// every time on every platform.
+//
+// 'SIGEMT',
+// 'SIGLOST',
+// 'SIGPOLL',
+// 'SIGRTMAX',
+// 'SIGRTMAX-1',
+// 'SIGRTMAX-10',
+// 'SIGRTMAX-11',
+// 'SIGRTMAX-12',
+// 'SIGRTMAX-13',
+// 'SIGRTMAX-14',
+// 'SIGRTMAX-15',
+// 'SIGRTMAX-2',
+// 'SIGRTMAX-3',
+// 'SIGRTMAX-4',
+// 'SIGRTMAX-5',
+// 'SIGRTMAX-6',
+// 'SIGRTMAX-7',
+// 'SIGRTMAX-8',
+// 'SIGRTMAX-9',
+// 'SIGRTMIN',
+// 'SIGRTMIN+1',
+// 'SIGRTMIN+10',
+// 'SIGRTMIN+11',
+// 'SIGRTMIN+12',
+// 'SIGRTMIN+13',
+// 'SIGRTMIN+14',
+// 'SIGRTMIN+15',
+// 'SIGRTMIN+16',
+// 'SIGRTMIN+2',
+// 'SIGRTMIN+3',
+// 'SIGRTMIN+4',
+// 'SIGRTMIN+5',
+// 'SIGRTMIN+6',
+// 'SIGRTMIN+7',
+// 'SIGRTMIN+8',
+// 'SIGRTMIN+9',
+// 'SIGSTKFLT',
+// 'SIGUNUSED',
+//# sourceMappingURL=all-signals.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/all-signals.js.map b/node_modules/foreground-child/dist/esm/all-signals.js.map
new file mode 100644
index 0000000..1c63c6b
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/all-signals.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"all-signals.js","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,MAAM,CAAC,MAAM,UAAU;AACrB,0EAA0E;AAC1E,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAC3B,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;IACnB,iDAAiD;IACjD,CAAC,KAAK,SAAS;IACf,yDAAyD;IACzD,CAAC,KAAK,SAAS,CACE,CAAA;AAEvB,8DAA8D;AAC9D,gEAAgE;AAChE,6DAA6D;AAC7D,gCAAgC;AAChC,EAAE;AACF,YAAY;AACZ,aAAa;AACb,aAAa;AACb,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,eAAe;AACf,eAAe","sourcesContent":["import constants from 'node:constants'\nexport const allSignals =\n // this is the full list of signals that Node will let us do anything with\n Object.keys(constants).filter(\n k =>\n k.startsWith('SIG') &&\n // https://github.com/tapjs/signal-exit/issues/21\n k !== 'SIGPROF' &&\n // no sense trying to listen for SIGKILL, it's impossible\n k !== 'SIGKILL',\n ) as NodeJS.Signals[]\n\n// These are some obscure signals that are reported by kill -l\n// on macOS, Linux, or Windows, but which don't have any mapping\n// in Node.js. No sense trying if they're just going to throw\n// every time on every platform.\n//\n// 'SIGEMT',\n// 'SIGLOST',\n// 'SIGPOLL',\n// 'SIGRTMAX',\n// 'SIGRTMAX-1',\n// 'SIGRTMAX-10',\n// 'SIGRTMAX-11',\n// 'SIGRTMAX-12',\n// 'SIGRTMAX-13',\n// 'SIGRTMAX-14',\n// 'SIGRTMAX-15',\n// 'SIGRTMAX-2',\n// 'SIGRTMAX-3',\n// 'SIGRTMAX-4',\n// 'SIGRTMAX-5',\n// 'SIGRTMAX-6',\n// 'SIGRTMAX-7',\n// 'SIGRTMAX-8',\n// 'SIGRTMAX-9',\n// 'SIGRTMIN',\n// 'SIGRTMIN+1',\n// 'SIGRTMIN+10',\n// 'SIGRTMIN+11',\n// 'SIGRTMIN+12',\n// 'SIGRTMIN+13',\n// 'SIGRTMIN+14',\n// 'SIGRTMIN+15',\n// 'SIGRTMIN+16',\n// 'SIGRTMIN+2',\n// 'SIGRTMIN+3',\n// 'SIGRTMIN+4',\n// 'SIGRTMIN+5',\n// 'SIGRTMIN+6',\n// 'SIGRTMIN+7',\n// 'SIGRTMIN+8',\n// 'SIGRTMIN+9',\n// 'SIGSTKFLT',\n// 'SIGUNUSED',\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/index.d.ts b/node_modules/foreground-child/dist/esm/index.d.ts
new file mode 100644
index 0000000..d15b38e
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/index.d.ts
@@ -0,0 +1,58 @@
+import { ChildProcessByStdio, SpawnOptions, ChildProcess } from 'child_process';
+/**
+ * The signature for the cleanup method.
+ *
+ * Arguments indicate the exit status of the child process.
+ *
+ * If a Promise is returned, then the process is not terminated
+ * until it resolves, and the resolution value is treated as the
+ * exit status (if a number) or signal exit (if a signal string).
+ *
+ * If `undefined` is returned, then no change is made, and the parent
+ * exits in the same way that the child exited.
+ *
+ * If boolean `false` is returned, then the parent's exit is canceled.
+ *
+ * If a number is returned, then the parent process exits with the number
+ * as its exitCode.
+ *
+ * If a signal string is returned, then the parent process is killed with
+ * the same signal that caused the child to exit.
+ */
+export type Cleanup = (code: number | null, signal: null | NodeJS.Signals, processInfo: {
+ watchdogPid?: ChildProcess['pid'];
+}) => void | undefined | number | NodeJS.Signals | false | Promise;
+export type FgArgs = [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup] | [
+ program: [cmd: string, ...args: string[]],
+ opts?: SpawnOptions,
+ cleanup?: Cleanup
+] | [program: string, cleanup?: Cleanup] | [program: string, opts?: SpawnOptions, cleanup?: Cleanup] | [program: string, args?: string[], cleanup?: Cleanup] | [
+ program: string,
+ args?: string[],
+ opts?: SpawnOptions,
+ cleanup?: Cleanup
+];
+/**
+ * Normalizes the arguments passed to `foregroundChild`.
+ *
+ * Exposed for testing.
+ *
+ * @internal
+ */
+export declare const normalizeFgArgs: (fgArgs: FgArgs) => [program: string, args: string[], spawnOpts: SpawnOptions, cleanup: Cleanup];
+/**
+ * Spawn the specified program as a "foreground" process, or at least as
+ * close as is possible given node's lack of exec-without-fork.
+ *
+ * Cleanup method may be used to modify or ignore the result of the child's
+ * exit code or signal. If cleanup returns undefined (or a Promise that
+ * resolves to undefined), then the parent will exit in the same way that
+ * the child did.
+ *
+ * Return boolean `false` to prevent the parent's exit entirely.
+ */
+export declare function foregroundChild(cmd: string | [cmd: string, ...args: string[]], cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, args?: string[], cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio;
+export declare function foregroundChild(program: string, args?: string[], spawnOpts?: SpawnOptions, cleanup?: Cleanup): ChildProcessByStdio;
+//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/index.d.ts.map b/node_modules/foreground-child/dist/esm/index.d.ts.map
new file mode 100644
index 0000000..b26fecd
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/index.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAInB,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAA;AAUtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,OAAO,EAC7B,WAAW,EAAE;IACX,WAAW,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAClC,KAEC,IAAI,GACJ,SAAS,GACT,MAAM,GACN,MAAM,CAAC,OAAO,GACd,KAAK,GACL,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,CAAA;AAE/D,MAAM,MAAM,MAAM,GACd,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACvE;IACE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,GACD,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACpC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACzD,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACrD;IACE,OAAO,EAAE,MAAM;IACf,IAAI,CAAC,EAAE,MAAM,EAAE;IACf,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,CAAA;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,KACb,CACD,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,CAqBjB,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/index.js b/node_modules/foreground-child/dist/esm/index.js
new file mode 100644
index 0000000..6266b58
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/index.js
@@ -0,0 +1,115 @@
+import { spawn as nodeSpawn, } from 'child_process';
+import crossSpawn from 'cross-spawn';
+import { onExit } from 'signal-exit';
+import { proxySignals } from './proxy-signals.js';
+import { watchdog } from './watchdog.js';
+/* c8 ignore start */
+const spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn;
+/**
+ * Normalizes the arguments passed to `foregroundChild`.
+ *
+ * Exposed for testing.
+ *
+ * @internal
+ */
+export const normalizeFgArgs = (fgArgs) => {
+ let [program, args = [], spawnOpts = {}, cleanup = () => { }] = fgArgs;
+ if (typeof args === 'function') {
+ cleanup = args;
+ spawnOpts = {};
+ args = [];
+ }
+ else if (!!args && typeof args === 'object' && !Array.isArray(args)) {
+ if (typeof spawnOpts === 'function')
+ cleanup = spawnOpts;
+ spawnOpts = args;
+ args = [];
+ }
+ else if (typeof spawnOpts === 'function') {
+ cleanup = spawnOpts;
+ spawnOpts = {};
+ }
+ if (Array.isArray(program)) {
+ const [pp, ...pa] = program;
+ program = pp;
+ args = pa;
+ }
+ return [program, args, { ...spawnOpts }, cleanup];
+};
+export function foregroundChild(...fgArgs) {
+ const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs);
+ spawnOpts.stdio = [0, 1, 2];
+ if (process.send) {
+ spawnOpts.stdio.push('ipc');
+ }
+ const child = spawn(program, args, spawnOpts);
+ const childHangup = () => {
+ try {
+ child.kill('SIGHUP');
+ /* c8 ignore start */
+ }
+ catch (_) {
+ // SIGHUP is weird on windows
+ child.kill('SIGTERM');
+ }
+ /* c8 ignore stop */
+ };
+ const removeOnExit = onExit(childHangup);
+ proxySignals(child);
+ const dog = watchdog(child);
+ let done = false;
+ child.on('close', async (code, signal) => {
+ /* c8 ignore start */
+ if (done)
+ return;
+ /* c8 ignore stop */
+ done = true;
+ const result = cleanup(code, signal, {
+ watchdogPid: dog.pid,
+ });
+ const res = isPromise(result) ? await result : result;
+ removeOnExit();
+ if (res === false)
+ return;
+ else if (typeof res === 'string') {
+ signal = res;
+ code = null;
+ }
+ else if (typeof res === 'number') {
+ code = res;
+ signal = null;
+ }
+ if (signal) {
+ // If there is nothing else keeping the event loop alive,
+ // then there's a race between a graceful exit and getting
+ // the signal to this process. Put this timeout here to
+ // make sure we're still alive to get the signal, and thus
+ // exit with the intended signal code.
+ /* istanbul ignore next */
+ setTimeout(() => { }, 2000);
+ try {
+ process.kill(process.pid, signal);
+ /* c8 ignore start */
+ }
+ catch (_) {
+ process.kill(process.pid, 'SIGTERM');
+ }
+ /* c8 ignore stop */
+ }
+ else {
+ process.exit(code || 0);
+ }
+ });
+ if (process.send) {
+ process.removeAllListeners('message');
+ child.on('message', (message, sendHandle) => {
+ process.send?.(message, sendHandle);
+ });
+ process.on('message', (message, sendHandle) => {
+ child.send(message, sendHandle);
+ });
+ }
+ return child;
+}
+const isPromise = (o) => !!o && typeof o === 'object' && typeof o.then === 'function';
+//# sourceMappingURL=index.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/index.js.map b/node_modules/foreground-child/dist/esm/index.js.map
new file mode 100644
index 0000000..7d9d1bd
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/index.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,IAAI,SAAS,GAGnB,MAAM,eAAe,CAAA;AACtB,OAAO,UAAU,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,qBAAqB;AACrB,MAAM,KAAK,GAAG,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAA;AAsDpE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAAc,EAMd,EAAE;IACF,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,EAAE,EAAE,SAA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serializable,\n spawn as nodeSpawn,\n SpawnOptions,\n ChildProcess,\n} from 'child_process'\nimport crossSpawn from 'cross-spawn'\nimport { onExit } from 'signal-exit'\nimport { proxySignals } from './proxy-signals.js'\nimport { watchdog } from './watchdog.js'\n\n/* c8 ignore start */\nconst spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn\n/* c8 ignore stop */\n\n/**\n * The signature for the cleanup method.\n *\n * Arguments indicate the exit status of the child process.\n *\n * If a Promise is returned, then the process is not terminated\n * until it resolves, and the resolution value is treated as the\n * exit status (if a number) or signal exit (if a signal string).\n *\n * If `undefined` is returned, then no change is made, and the parent\n * exits in the same way that the child exited.\n *\n * If boolean `false` is returned, then the parent's exit is canceled.\n *\n * If a number is returned, then the parent process exits with the number\n * as its exitCode.\n *\n * If a signal string is returned, then the parent process is killed with\n * the same signal that caused the child to exit.\n */\nexport type Cleanup = (\n code: number | null,\n signal: null | NodeJS.Signals,\n processInfo: {\n watchdogPid?: ChildProcess['pid']\n },\n) =>\n | void\n | undefined\n | number\n | NodeJS.Signals\n | false\n | Promise\n\nexport type FgArgs =\n | [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup]\n | [\n program: [cmd: string, ...args: string[]],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n | [program: string, cleanup?: Cleanup]\n | [program: string, opts?: SpawnOptions, cleanup?: Cleanup]\n | [program: string, args?: string[], cleanup?: Cleanup]\n | [\n program: string,\n args?: string[],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n\n/**\n * Normalizes the arguments passed to `foregroundChild`.\n *\n * Exposed for testing.\n *\n * @internal\n */\nexport const normalizeFgArgs = (\n fgArgs: FgArgs,\n): [\n program: string,\n args: string[],\n spawnOpts: SpawnOptions,\n cleanup: Cleanup,\n] => {\n let [program, args = [], spawnOpts = {}, cleanup = () => {}] = fgArgs\n if (typeof args === 'function') {\n cleanup = args\n spawnOpts = {}\n args = []\n } else if (!!args && typeof args === 'object' && !Array.isArray(args)) {\n if (typeof spawnOpts === 'function') cleanup = spawnOpts\n spawnOpts = args\n args = []\n } else if (typeof spawnOpts === 'function') {\n cleanup = spawnOpts\n spawnOpts = {}\n }\n if (Array.isArray(program)) {\n const [pp, ...pa] = program\n program = pp\n args = pa\n }\n return [program, args, { ...spawnOpts }, cleanup]\n}\n\n/**\n * Spawn the specified program as a \"foreground\" process, or at least as\n * close as is possible given node's lack of exec-without-fork.\n *\n * Cleanup method may be used to modify or ignore the result of the child's\n * exit code or signal. If cleanup returns undefined (or a Promise that\n * resolves to undefined), then the parent will exit in the same way that\n * the child did.\n *\n * Return boolean `false` to prevent the parent's exit entirely.\n */\nexport function foregroundChild(\n cmd: string | [cmd: string, ...args: string[]],\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n args?: string[],\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n program: string,\n args?: string[],\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio\nexport function foregroundChild(\n ...fgArgs: FgArgs\n): ChildProcessByStdio {\n const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs)\n\n spawnOpts.stdio = [0, 1, 2]\n if (process.send) {\n spawnOpts.stdio.push('ipc')\n }\n\n const child = spawn(program, args, spawnOpts) as ChildProcessByStdio<\n null,\n null,\n null\n >\n\n const childHangup = () => {\n try {\n child.kill('SIGHUP')\n\n /* c8 ignore start */\n } catch (_) {\n // SIGHUP is weird on windows\n child.kill('SIGTERM')\n }\n /* c8 ignore stop */\n }\n const removeOnExit = onExit(childHangup)\n\n proxySignals(child)\n const dog = watchdog(child)\n\n let done = false\n child.on('close', async (code, signal) => {\n /* c8 ignore start */\n if (done) return\n /* c8 ignore stop */\n done = true\n const result = cleanup(code, signal, {\n watchdogPid: dog.pid,\n })\n const res = isPromise(result) ? await result : result\n removeOnExit()\n\n if (res === false) return\n else if (typeof res === 'string') {\n signal = res\n code = null\n } else if (typeof res === 'number') {\n code = res\n signal = null\n }\n\n if (signal) {\n // If there is nothing else keeping the event loop alive,\n // then there's a race between a graceful exit and getting\n // the signal to this process. Put this timeout here to\n // make sure we're still alive to get the signal, and thus\n // exit with the intended signal code.\n /* istanbul ignore next */\n setTimeout(() => {}, 2000)\n try {\n process.kill(process.pid, signal)\n /* c8 ignore start */\n } catch (_) {\n process.kill(process.pid, 'SIGTERM')\n }\n /* c8 ignore stop */\n } else {\n process.exit(code || 0)\n }\n })\n\n if (process.send) {\n process.removeAllListeners('message')\n\n child.on('message', (message, sendHandle) => {\n process.send?.(message, sendHandle)\n })\n\n process.on('message', (message, sendHandle) => {\n child.send(\n message as Serializable,\n sendHandle as SendHandle | undefined,\n )\n })\n }\n\n return child\n}\n\nconst isPromise = (o: any): o is Promise =>\n !!o && typeof o === 'object' && typeof o.then === 'function'\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/package.json b/node_modules/foreground-child/dist/esm/package.json
new file mode 100644
index 0000000..3dbc1ca
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "module"
+}
diff --git a/node_modules/foreground-child/dist/esm/proxy-signals.d.ts b/node_modules/foreground-child/dist/esm/proxy-signals.d.ts
new file mode 100644
index 0000000..edf17bd
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/proxy-signals.d.ts
@@ -0,0 +1,6 @@
+import { type ChildProcess } from 'child_process';
+/**
+ * Starts forwarding signals to `child` through `parent`.
+ */
+export declare const proxySignals: (child: ChildProcess) => () => void;
+//# sourceMappingURL=proxy-signals.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map b/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map
new file mode 100644
index 0000000..7c19279
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"proxy-signals.d.ts","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,YAAY,eA4B/C,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/proxy-signals.js b/node_modules/foreground-child/dist/esm/proxy-signals.js
new file mode 100644
index 0000000..8e1efe3
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/proxy-signals.js
@@ -0,0 +1,34 @@
+import { allSignals } from './all-signals.js';
+/**
+ * Starts forwarding signals to `child` through `parent`.
+ */
+export const proxySignals = (child) => {
+ const listeners = new Map();
+ for (const sig of allSignals) {
+ const listener = () => {
+ // some signals can only be received, not sent
+ try {
+ child.kill(sig);
+ /* c8 ignore start */
+ }
+ catch (_) { }
+ /* c8 ignore stop */
+ };
+ try {
+ // if it's a signal this system doesn't recognize, skip it
+ process.on(sig, listener);
+ listeners.set(sig, listener);
+ /* c8 ignore start */
+ }
+ catch (_) { }
+ /* c8 ignore stop */
+ }
+ const unproxy = () => {
+ for (const [sig, listener] of listeners) {
+ process.removeListener(sig, listener);
+ }
+ };
+ child.on('exit', unproxy);
+ return unproxy;
+};
+//# sourceMappingURL=proxy-signals.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/proxy-signals.js.map b/node_modules/foreground-child/dist/esm/proxy-signals.js.map
new file mode 100644
index 0000000..978750f
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/proxy-signals.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"proxy-signals.js","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAmB,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAA;IAE3B,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,8CAA8C;YAC9C,IAAI,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACf,qBAAqB;YACvB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;YACd,oBAAoB;QACtB,CAAC,CAAA;QACD,IAAI,CAAC;YACH,0DAA0D;YAC1D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YACzB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC5B,qBAAqB;QACvB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QACd,oBAAoB;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IACD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA","sourcesContent":["import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/watchdog.d.ts b/node_modules/foreground-child/dist/esm/watchdog.d.ts
new file mode 100644
index 0000000..f10c9de
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/watchdog.d.ts
@@ -0,0 +1,10 @@
+import { ChildProcess } from 'child_process';
+/**
+ * Pass in a ChildProcess, and this will spawn a watchdog process that
+ * will make sure it exits if the parent does, thus preventing any
+ * dangling detached zombie processes.
+ *
+ * If the child ends before the parent, then the watchdog will terminate.
+ */
+export declare const watchdog: (child: ChildProcess) => ChildProcess;
+//# sourceMappingURL=watchdog.d.ts.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/watchdog.d.ts.map b/node_modules/foreground-child/dist/esm/watchdog.d.ts.map
new file mode 100644
index 0000000..d9ec243
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/watchdog.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"watchdog.d.ts","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAS,MAAM,eAAe,CAAA;AAyBnD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,UAAW,YAAY,iBAc3C,CAAA"}
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/watchdog.js b/node_modules/foreground-child/dist/esm/watchdog.js
new file mode 100644
index 0000000..7aa184e
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/watchdog.js
@@ -0,0 +1,46 @@
+// this spawns a child process that listens for SIGHUP when the
+// parent process exits, and after 200ms, sends a SIGKILL to the
+// child, in case it did not terminate.
+import { spawn } from 'child_process';
+const watchdogCode = String.raw `
+const pid = parseInt(process.argv[1], 10)
+process.title = 'node (foreground-child watchdog pid=' + pid + ')'
+if (!isNaN(pid)) {
+ let barked = false
+ // keepalive
+ const interval = setInterval(() => {}, 60000)
+ const bark = () => {
+ clearInterval(interval)
+ if (barked) return
+ barked = true
+ process.removeListener('SIGHUP', bark)
+ setTimeout(() => {
+ try {
+ process.kill(pid, 'SIGKILL')
+ setTimeout(() => process.exit(), 200)
+ } catch (_) {}
+ }, 500)
+ })
+ process.on('SIGHUP', bark)
+}
+`;
+/**
+ * Pass in a ChildProcess, and this will spawn a watchdog process that
+ * will make sure it exits if the parent does, thus preventing any
+ * dangling detached zombie processes.
+ *
+ * If the child ends before the parent, then the watchdog will terminate.
+ */
+export const watchdog = (child) => {
+ let dogExited = false;
+ const dog = spawn(process.execPath, ['-e', watchdogCode, String(child.pid)], {
+ stdio: 'ignore',
+ });
+ dog.on('exit', () => (dogExited = true));
+ child.on('exit', () => {
+ if (!dogExited)
+ dog.kill('SIGKILL');
+ });
+ return dog;
+};
+//# sourceMappingURL=watchdog.js.map
\ No newline at end of file
diff --git a/node_modules/foreground-child/dist/esm/watchdog.js.map b/node_modules/foreground-child/dist/esm/watchdog.js.map
new file mode 100644
index 0000000..6f4e39f
--- /dev/null
+++ b/node_modules/foreground-child/dist/esm/watchdog.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,gEAAgE;AAChE,uCAAuC;AAEvC,OAAO,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAA;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,MAAM,GAAG,GAAG,KAAK,CACf,OAAO,CAAC,QAAQ,EAChB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACvC;QACE,KAAK,EAAE,QAAQ;KAChB,CACF,CAAA;IACD,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,IAAI,CAAC,SAAS;YAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA","sourcesContent":["// this spawns a child process that listens for SIGHUP when the\n// parent process exits, and after 200ms, sends a SIGKILL to the\n// child, in case it did not terminate.\n\nimport { ChildProcess, spawn } from 'child_process'\n\nconst watchdogCode = String.raw`\nconst pid = parseInt(process.argv[1], 10)\nprocess.title = 'node (foreground-child watchdog pid=' + pid + ')'\nif (!isNaN(pid)) {\n let barked = false\n // keepalive\n const interval = setInterval(() => {}, 60000)\n const bark = () => {\n clearInterval(interval)\n if (barked) return\n barked = true\n process.removeListener('SIGHUP', bark)\n setTimeout(() => {\n try {\n process.kill(pid, 'SIGKILL')\n setTimeout(() => process.exit(), 200)\n } catch (_) {}\n }, 500)\n })\n process.on('SIGHUP', bark)\n}\n`\n\n/**\n * Pass in a ChildProcess, and this will spawn a watchdog process that\n * will make sure it exits if the parent does, thus preventing any\n * dangling detached zombie processes.\n *\n * If the child ends before the parent, then the watchdog will terminate.\n */\nexport const watchdog = (child: ChildProcess) => {\n let dogExited = false\n const dog = spawn(\n process.execPath,\n ['-e', watchdogCode, String(child.pid)],\n {\n stdio: 'ignore',\n },\n )\n dog.on('exit', () => (dogExited = true))\n child.on('exit', () => {\n if (!dogExited) dog.kill('SIGKILL')\n })\n return dog\n}\n"]}
\ No newline at end of file
diff --git a/node_modules/foreground-child/package.json b/node_modules/foreground-child/package.json
new file mode 100644
index 0000000..75f5b99
--- /dev/null
+++ b/node_modules/foreground-child/package.json
@@ -0,0 +1,106 @@
+{
+ "name": "foreground-child",
+ "version": "3.3.1",
+ "description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.",
+ "main": "./dist/commonjs/index.js",
+ "types": "./dist/commonjs/index.d.ts",
+ "exports": {
+ "./watchdog": {
+ "import": {
+ "types": "./dist/esm/watchdog.d.ts",
+ "default": "./dist/esm/watchdog.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/watchdog.d.ts",
+ "default": "./dist/commonjs/watchdog.js"
+ }
+ },
+ "./proxy-signals": {
+ "import": {
+ "types": "./dist/esm/proxy-signals.d.ts",
+ "default": "./dist/esm/proxy-signals.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/proxy-signals.d.ts",
+ "default": "./dist/commonjs/proxy-signals.js"
+ }
+ },
+ "./package.json": "./package.json",
+ ".": {
+ "import": {
+ "types": "./dist/esm/index.d.ts",
+ "default": "./dist/esm/index.js"
+ },
+ "require": {
+ "types": "./dist/commonjs/index.d.ts",
+ "default": "./dist/commonjs/index.js"
+ }
+ }
+ },
+ "files": [
+ "dist"
+ ],
+ "engines": {
+ "node": ">=14"
+ },
+ "dependencies": {
+ "cross-spawn": "^7.0.6",
+ "signal-exit": "^4.0.1"
+ },
+ "scripts": {
+ "preversion": "npm test",
+ "postversion": "npm publish",
+ "prepublishOnly": "git push origin --follow-tags",
+ "prepare": "tshy",
+ "pretest": "npm run prepare",
+ "presnap": "npm run prepare",
+ "test": "tap",
+ "snap": "tap",
+ "format": "prettier --write . --log-level warn",
+ "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
+ },
+ "prettier": {
+ "experimentalTernaries": true,
+ "semi": false,
+ "printWidth": 75,
+ "tabWidth": 2,
+ "useTabs": false,
+ "singleQuote": true,
+ "jsxSingleQuote": false,
+ "bracketSameLine": true,
+ "arrowParens": "avoid",
+ "endOfLine": "lf"
+ },
+ "tap": {
+ "typecheck": true
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/tapjs/foreground-child.git"
+ },
+ "author": "Isaac Z. Schlueter (http://blog.izs.me/)",
+ "license": "ISC",
+ "devDependencies": {
+ "@types/cross-spawn": "^6.0.2",
+ "@types/node": "^18.15.11",
+ "@types/tap": "^15.0.8",
+ "prettier": "^3.3.2",
+ "tap": "^21.1.0",
+ "tshy": "^3.0.2",
+ "typedoc": "^0.24.2",
+ "typescript": "^5.0.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ },
+ "tshy": {
+ "exports": {
+ "./watchdog": "./src/watchdog.ts",
+ "./proxy-signals": "./src/proxy-signals.ts",
+ "./package.json": "./package.json",
+ ".": "./src/index.ts"
+ }
+ },
+ "type": "module",
+ "module": "./dist/esm/index.js"
+}
diff --git a/node_modules/function-bind/.eslintrc b/node_modules/function-bind/.eslintrc
new file mode 100644
index 0000000..71a054f
--- /dev/null
+++ b/node_modules/function-bind/.eslintrc
@@ -0,0 +1,21 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "rules": {
+ "func-name-matching": 0,
+ "indent": [2, 4],
+ "no-new-func": [1],
+ },
+
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines-per-function": 0,
+ "strict": [0]
+ },
+ },
+ ],
+}
diff --git a/node_modules/function-bind/.github/FUNDING.yml b/node_modules/function-bind/.github/FUNDING.yml
new file mode 100644
index 0000000..7448219
--- /dev/null
+++ b/node_modules/function-bind/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/function-bind
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/function-bind/.github/SECURITY.md b/node_modules/function-bind/.github/SECURITY.md
new file mode 100644
index 0000000..82e4285
--- /dev/null
+++ b/node_modules/function-bind/.github/SECURITY.md
@@ -0,0 +1,3 @@
+# Security
+
+Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
diff --git a/node_modules/function-bind/.nycrc b/node_modules/function-bind/.nycrc
new file mode 100644
index 0000000..1826526
--- /dev/null
+++ b/node_modules/function-bind/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/node_modules/function-bind/CHANGELOG.md b/node_modules/function-bind/CHANGELOG.md
new file mode 100644
index 0000000..f9e6cc0
--- /dev/null
+++ b/node_modules/function-bind/CHANGELOG.md
@@ -0,0 +1,136 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.1.2](https://github.com/ljharb/function-bind/compare/v1.1.1...v1.1.2) - 2023-10-12
+
+### Merged
+
+- Point to the correct file [`#16`](https://github.com/ljharb/function-bind/pull/16)
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`4f8b57c`](https://github.com/ljharb/function-bind/commit/4f8b57c02f2011fe9ae353d5e74e8745f0988af8)
+- [Tests] remove `jscs` [`90eb2ed`](https://github.com/ljharb/function-bind/commit/90eb2edbeefd5b76cd6c3a482ea3454db169b31f)
+- [meta] update `.gitignore` [`53fcdc3`](https://github.com/ljharb/function-bind/commit/53fcdc371cd66634d6e9b71c836a50f437e89fed)
+- [Tests] up to `node` `v11.10`, `v10.15`, `v9.11`, `v8.15`, `v6.16`, `v4.9`; use `nvm install-latest-npm`; run audit script in tests [`1fe8f6e`](https://github.com/ljharb/function-bind/commit/1fe8f6e9aed0dfa8d8b3cdbd00c7f5ea0cd2b36e)
+- [meta] add `auto-changelog` [`1921fcb`](https://github.com/ljharb/function-bind/commit/1921fcb5b416b63ffc4acad051b6aad5722f777d)
+- [Robustness] remove runtime dependency on all builtins except `.apply` [`f743e61`](https://github.com/ljharb/function-bind/commit/f743e61aa6bb2360358c04d4884c9db853d118b7)
+- Docs: enable badges; update wording [`503cb12`](https://github.com/ljharb/function-bind/commit/503cb12d998b5f91822776c73332c7adcd6355dd)
+- [readme] update badges [`290c5db`](https://github.com/ljharb/function-bind/commit/290c5dbbbda7264efaeb886552a374b869a4bb48)
+- [Tests] switch to nyc for coverage [`ea360ba`](https://github.com/ljharb/function-bind/commit/ea360ba907fc2601ed18d01a3827fa2d3533cdf8)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`cae5e9e`](https://github.com/ljharb/function-bind/commit/cae5e9e07a5578dc6df26c03ee22851ce05b943c)
+- [meta] add `funding` field; create FUNDING.yml [`c9f4274`](https://github.com/ljharb/function-bind/commit/c9f4274aa80ea3aae9657a3938fdba41a3b04ca6)
+- [Tests] fix eslint errors from #15 [`f69aaa2`](https://github.com/ljharb/function-bind/commit/f69aaa2beb2fdab4415bfb885760a699d0b9c964)
+- [actions] fix permissions [`99a0cd9`](https://github.com/ljharb/function-bind/commit/99a0cd9f3b5bac223a0d572f081834cd73314be7)
+- [meta] use `npmignore` to autogenerate an npmignore file [`f03b524`](https://github.com/ljharb/function-bind/commit/f03b524ca91f75a109a5d062f029122c86ecd1ae)
+- [Dev Deps] update `@ljharb/eslint‑config`, `eslint`, `tape` [`7af9300`](https://github.com/ljharb/function-bind/commit/7af930023ae2ce7645489532821e4fbbcd7a2280)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape` [`64a9127`](https://github.com/ljharb/function-bind/commit/64a9127ab0bd331b93d6572eaf6e9971967fc08c)
+- [Tests] use `aud` instead of `npm audit` [`e75069c`](https://github.com/ljharb/function-bind/commit/e75069c50010a8fcce2a9ce2324934c35fdb4386)
+- [Dev Deps] update `@ljharb/eslint-config`, `aud`, `tape` [`d03555c`](https://github.com/ljharb/function-bind/commit/d03555ca59dea3b71ce710045e4303b9e2619e28)
+- [meta] add `safe-publish-latest` [`9c8f809`](https://github.com/ljharb/function-bind/commit/9c8f8092aed027d7e80c94f517aa892385b64f09)
+- [Dev Deps] update `@ljharb/eslint-config`, `tape` [`baf6893`](https://github.com/ljharb/function-bind/commit/baf6893e27f5b59abe88bc1995e6f6ed1e527397)
+- [meta] create SECURITY.md [`4db1779`](https://github.com/ljharb/function-bind/commit/4db17799f1f28ae294cb95e0081ca2b591c3911b)
+- [Tests] add `npm run audit` [`c8b38ec`](https://github.com/ljharb/function-bind/commit/c8b38ec40ed3f85dabdee40ed4148f1748375bc2)
+- Revert "Point to the correct file" [`05cdf0f`](https://github.com/ljharb/function-bind/commit/05cdf0fa205c6a3c5ba40bbedd1dfa9874f915c9)
+
+## [v1.1.1](https://github.com/ljharb/function-bind/compare/v1.1.0...v1.1.1) - 2017-08-28
+
+### Commits
+
+- [Tests] up to `node` `v8`; newer npm breaks on older node; fix scripts [`817f7d2`](https://github.com/ljharb/function-bind/commit/817f7d28470fdbff8ef608d4d565dd4d1430bc5e)
+- [Dev Deps] update `eslint`, `jscs`, `tape`, `@ljharb/eslint-config` [`854288b`](https://github.com/ljharb/function-bind/commit/854288b1b6f5c555f89aceb9eff1152510262084)
+- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`83e639f`](https://github.com/ljharb/function-bind/commit/83e639ff74e6cd6921285bccec22c1bcf72311bd)
+- Only apps should have lockfiles [`5ed97f5`](https://github.com/ljharb/function-bind/commit/5ed97f51235c17774e0832e122abda0f3229c908)
+- Use a SPDX-compliant “license” field. [`5feefea`](https://github.com/ljharb/function-bind/commit/5feefea0dc0193993e83e5df01ded424403a5381)
+
+## [v1.1.0](https://github.com/ljharb/function-bind/compare/v1.0.2...v1.1.0) - 2016-02-14
+
+### Commits
+
+- Update `eslint`, `tape`; use my personal shared `eslint` config [`9c9062a`](https://github.com/ljharb/function-bind/commit/9c9062abbe9dd70b59ea2c3a3c3a81f29b457097)
+- Add `npm run eslint` [`dd96c56`](https://github.com/ljharb/function-bind/commit/dd96c56720034a3c1ffee10b8a59a6f7c53e24ad)
+- [New] return the native `bind` when available. [`82186e0`](https://github.com/ljharb/function-bind/commit/82186e03d73e580f95ff167e03f3582bed90ed72)
+- [Dev Deps] update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`a3dd767`](https://github.com/ljharb/function-bind/commit/a3dd76720c795cb7f4586b0544efabf8aa107b8b)
+- Update `eslint` [`3dae2f7`](https://github.com/ljharb/function-bind/commit/3dae2f7423de30a2d20313ddb1edc19660142fe9)
+- Update `tape`, `covert`, `jscs` [`a181eee`](https://github.com/ljharb/function-bind/commit/a181eee0cfa24eb229c6e843a971f36e060a2f6a)
+- [Tests] up to `node` `v5.6`, `v4.3` [`964929a`](https://github.com/ljharb/function-bind/commit/964929a6a4ddb36fb128de2bcc20af5e4f22e1ed)
+- Test up to `io.js` `v2.1` [`2be7310`](https://github.com/ljharb/function-bind/commit/2be7310f2f74886a7124ca925be411117d41d5ea)
+- Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config` [`45f3d68`](https://github.com/ljharb/function-bind/commit/45f3d6865c6ca93726abcef54febe009087af101)
+- [Dev Deps] update `tape`, `jscs` [`6e1340d`](https://github.com/ljharb/function-bind/commit/6e1340d94642deaecad3e717825db641af4f8b1f)
+- [Tests] up to `io.js` `v3.3`, `node` `v4.1` [`d9bad2b`](https://github.com/ljharb/function-bind/commit/d9bad2b778b1b3a6dd2876087b88b3acf319f8cc)
+- Update `eslint` [`935590c`](https://github.com/ljharb/function-bind/commit/935590caa024ab356102e4858e8fc315b2ccc446)
+- [Dev Deps] update `jscs`, `eslint`, `@ljharb/eslint-config` [`8c9a1ef`](https://github.com/ljharb/function-bind/commit/8c9a1efd848e5167887aa8501857a0940a480c57)
+- Test on `io.js` `v2.2` [`9a3a38c`](https://github.com/ljharb/function-bind/commit/9a3a38c92013aed6e108666e7bd40969b84ac86e)
+- Run `travis-ci` tests on `iojs` and `node` v0.12; speed up builds; allow 0.8 failures. [`69afc26`](https://github.com/ljharb/function-bind/commit/69afc2617405b147dd2a8d8ae73ca9e9283f18b4)
+- [Dev Deps] Update `tape`, `eslint` [`36c1be0`](https://github.com/ljharb/function-bind/commit/36c1be0ab12b45fe5df6b0fdb01a5d5137fd0115)
+- Update `tape`, `jscs` [`98d8303`](https://github.com/ljharb/function-bind/commit/98d8303cd5ca1c6b8f985469f86b0d44d7d45f6e)
+- Update `jscs` [`9633a4e`](https://github.com/ljharb/function-bind/commit/9633a4e9fbf82051c240855166e468ba8ba0846f)
+- Update `tape`, `jscs` [`c80ef0f`](https://github.com/ljharb/function-bind/commit/c80ef0f46efc9791e76fa50de4414092ac147831)
+- Test up to `io.js` `v3.0` [`7e2c853`](https://github.com/ljharb/function-bind/commit/7e2c8537d52ab9cf5a655755561d8917684c0df4)
+- Test on `io.js` `v2.4` [`5a199a2`](https://github.com/ljharb/function-bind/commit/5a199a27ba46795ba5eaf0845d07d4b8232895c9)
+- Test on `io.js` `v2.3` [`a511b88`](https://github.com/ljharb/function-bind/commit/a511b8896de0bddf3b56862daa416c701f4d0453)
+- Fixing a typo from 822b4e1938db02dc9584aa434fd3a45cb20caf43 [`732d6b6`](https://github.com/ljharb/function-bind/commit/732d6b63a9b33b45230e630dbcac7a10855d3266)
+- Update `jscs` [`da52a48`](https://github.com/ljharb/function-bind/commit/da52a4886c06d6490f46ae30b15e4163ba08905d)
+- Lock covert to v1.0.0. [`d6150fd`](https://github.com/ljharb/function-bind/commit/d6150fda1e6f486718ebdeff823333d9e48e7430)
+
+## [v1.0.2](https://github.com/ljharb/function-bind/compare/v1.0.1...v1.0.2) - 2014-10-04
+
+## [v1.0.1](https://github.com/ljharb/function-bind/compare/v1.0.0...v1.0.1) - 2014-10-03
+
+### Merged
+
+- make CI build faster [`#3`](https://github.com/ljharb/function-bind/pull/3)
+
+### Commits
+
+- Using my standard jscs.json [`d8ee94c`](https://github.com/ljharb/function-bind/commit/d8ee94c993eff0a84cf5744fe6a29627f5cffa1a)
+- Adding `npm run lint` [`7571ab7`](https://github.com/ljharb/function-bind/commit/7571ab7dfdbd99b25a1dbb2d232622bd6f4f9c10)
+- Using consistent indentation [`e91a1b1`](https://github.com/ljharb/function-bind/commit/e91a1b13a61e99ec1e530e299b55508f74218a95)
+- Updating jscs [`7e17892`](https://github.com/ljharb/function-bind/commit/7e1789284bc629bc9c1547a61c9b227bbd8c7a65)
+- Using consistent quotes [`c50b57f`](https://github.com/ljharb/function-bind/commit/c50b57fcd1c5ec38320979c837006069ebe02b77)
+- Adding keywords [`cb94631`](https://github.com/ljharb/function-bind/commit/cb946314eed35f21186a25fb42fc118772f9ee00)
+- Directly export a function expression instead of using a declaration, and relying on hoisting. [`5a33c5f`](https://github.com/ljharb/function-bind/commit/5a33c5f45642de180e0d207110bf7d1843ceb87c)
+- Naming npm URL and badge in README; use SVG [`2aef8fc`](https://github.com/ljharb/function-bind/commit/2aef8fcb79d54e63a58ae557c4e60949e05d5e16)
+- Naming deps URLs in README [`04228d7`](https://github.com/ljharb/function-bind/commit/04228d766670ee45ca24e98345c1f6a7621065b5)
+- Naming travis-ci URLs in README; using SVG [`62c810c`](https://github.com/ljharb/function-bind/commit/62c810c2f54ced956cd4d4ab7b793055addfe36e)
+- Make sure functions are invoked correctly (also passing coverage tests) [`2b289b4`](https://github.com/ljharb/function-bind/commit/2b289b4dfbf037ffcfa4dc95eb540f6165e9e43a)
+- Removing the strict mode pragmas; they make tests fail. [`1aa701d`](https://github.com/ljharb/function-bind/commit/1aa701d199ddc3782476e8f7eef82679be97b845)
+- Adding myself as a contributor [`85fd57b`](https://github.com/ljharb/function-bind/commit/85fd57b0860e5a7af42de9a287f3f265fc6d72fc)
+- Adding strict mode pragmas [`915b08e`](https://github.com/ljharb/function-bind/commit/915b08e084c86a722eafe7245e21db74aa21ca4c)
+- Adding devDeps URLs to README [`4ccc731`](https://github.com/ljharb/function-bind/commit/4ccc73112c1769859e4ca3076caf4086b3cba2cd)
+- Fixing the description. [`a7a472c`](https://github.com/ljharb/function-bind/commit/a7a472cf649af515c635cf560fc478fbe48999c8)
+- Using a function expression instead of a function declaration. [`b5d3e4e`](https://github.com/ljharb/function-bind/commit/b5d3e4ea6aaffc63888953eeb1fbc7ff45f1fa14)
+- Updating tape [`f086be6`](https://github.com/ljharb/function-bind/commit/f086be6029fb56dde61a258c1340600fa174d1e0)
+- Updating jscs [`5f9bdb3`](https://github.com/ljharb/function-bind/commit/5f9bdb375ab13ba48f30852aab94029520c54d71)
+- Updating jscs [`9b409ba`](https://github.com/ljharb/function-bind/commit/9b409ba6118e23395a4e5d83ef39152aab9d3bfc)
+- Run coverage as part of tests. [`8e1b6d4`](https://github.com/ljharb/function-bind/commit/8e1b6d459f047d1bd4fee814e01247c984c80bd0)
+- Run linter as part of tests [`c1ca83f`](https://github.com/ljharb/function-bind/commit/c1ca83f832df94587d09e621beba682fabfaa987)
+- Updating covert [`701e837`](https://github.com/ljharb/function-bind/commit/701e83774b57b4d3ef631e1948143f43a72f4bb9)
+
+## [v1.0.0](https://github.com/ljharb/function-bind/compare/v0.2.0...v1.0.0) - 2014-08-09
+
+### Commits
+
+- Make sure old and unstable nodes don't fail Travis [`27adca3`](https://github.com/ljharb/function-bind/commit/27adca34a4ab6ad67b6dfde43942a1b103ce4d75)
+- Fixing an issue when the bound function is called as a constructor in ES3. [`e20122d`](https://github.com/ljharb/function-bind/commit/e20122d267d92ce553859b280cbbea5d27c07731)
+- Adding `npm run coverage` [`a2e29c4`](https://github.com/ljharb/function-bind/commit/a2e29c4ecaef9e2f6cd1603e868c139073375502)
+- Updating tape [`b741168`](https://github.com/ljharb/function-bind/commit/b741168b12b235b1717ff696087645526b69213c)
+- Upgrading tape [`63631a0`](https://github.com/ljharb/function-bind/commit/63631a04c7fbe97cc2fa61829cc27246d6986f74)
+- Updating tape [`363cb46`](https://github.com/ljharb/function-bind/commit/363cb46dafb23cb3e347729a22f9448051d78464)
+
+## v0.2.0 - 2014-03-23
+
+### Commits
+
+- Updating test coverage to match es5-shim. [`aa94d44`](https://github.com/ljharb/function-bind/commit/aa94d44b8f9d7f69f10e060db7709aa7a694e5d4)
+- initial [`942ee07`](https://github.com/ljharb/function-bind/commit/942ee07e94e542d91798137bc4b80b926137e066)
+- Setting the bound function's length properly. [`079f46a`](https://github.com/ljharb/function-bind/commit/079f46a2d3515b7c0b308c2c13fceb641f97ca25)
+- Ensuring that some older browsers will throw when given a regex. [`36ac55b`](https://github.com/ljharb/function-bind/commit/36ac55b87f460d4330253c92870aa26fbfe8227f)
+- Removing npm scripts that don't have dependencies [`9d2be60`](https://github.com/ljharb/function-bind/commit/9d2be600002cb8bc8606f8f3585ad3e05868c750)
+- Updating tape [`297a4ac`](https://github.com/ljharb/function-bind/commit/297a4acc5464db381940aafb194d1c88f4e678f3)
+- Skipping length tests for now. [`d9891ea`](https://github.com/ljharb/function-bind/commit/d9891ea4d2aaffa69f408339cdd61ff740f70565)
+- don't take my tea [`dccd930`](https://github.com/ljharb/function-bind/commit/dccd930bfd60ea10cb178d28c97550c3bc8c1e07)
diff --git a/node_modules/function-bind/LICENSE b/node_modules/function-bind/LICENSE
new file mode 100644
index 0000000..62d6d23
--- /dev/null
+++ b/node_modules/function-bind/LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2013 Raynos.
+
+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/function-bind/README.md b/node_modules/function-bind/README.md
new file mode 100644
index 0000000..814c20b
--- /dev/null
+++ b/node_modules/function-bind/README.md
@@ -0,0 +1,46 @@
+# function-bind [![Version Badge][npm-version-svg]][package-url]
+
+[![github actions][actions-image]][actions-url]
+
+[![dependency status][deps-svg]][deps-url]
+[![dev dependency status][dev-deps-svg]][dev-deps-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+Implementation of function.prototype.bind
+
+Old versions of phantomjs, Internet Explorer < 9, and node < 0.6 don't support `Function.prototype.bind`.
+
+## Example
+
+```js
+Function.prototype.bind = require("function-bind")
+```
+
+## Installation
+
+`npm install function-bind`
+
+## Contributors
+
+ - Raynos
+
+## MIT Licenced
+
+[package-url]: https://npmjs.org/package/function-bind
+[npm-version-svg]: https://versionbadg.es/Raynos/function-bind.svg
+[deps-svg]: https://david-dm.org/Raynos/function-bind.svg
+[deps-url]: https://david-dm.org/Raynos/function-bind
+[dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
+[dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/function-bind.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/function-bind.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/function-bind.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=function-bind
+[codecov-image]: https://codecov.io/gh/Raynos/function-bind/branch/main/graphs/badge.svg
+[codecov-url]: https://app.codecov.io/gh/Raynos/function-bind/
+[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/Raynos/function-bind
+[actions-url]: https://github.com/Raynos/function-bind/actions
diff --git a/node_modules/function-bind/implementation.js b/node_modules/function-bind/implementation.js
new file mode 100644
index 0000000..fd4384c
--- /dev/null
+++ b/node_modules/function-bind/implementation.js
@@ -0,0 +1,84 @@
+'use strict';
+
+/* eslint no-invalid-this: 1 */
+
+var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
+var toStr = Object.prototype.toString;
+var max = Math.max;
+var funcType = '[object Function]';
+
+var concatty = function concatty(a, b) {
+ var arr = [];
+
+ for (var i = 0; i < a.length; i += 1) {
+ arr[i] = a[i];
+ }
+ for (var j = 0; j < b.length; j += 1) {
+ arr[j + a.length] = b[j];
+ }
+
+ return arr;
+};
+
+var slicy = function slicy(arrLike, offset) {
+ var arr = [];
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
+ arr[j] = arrLike[i];
+ }
+ return arr;
+};
+
+var joiny = function (arr, joiner) {
+ var str = '';
+ for (var i = 0; i < arr.length; i += 1) {
+ str += arr[i];
+ if (i + 1 < arr.length) {
+ str += joiner;
+ }
+ }
+ return str;
+};
+
+module.exports = function bind(that) {
+ var target = this;
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
+ throw new TypeError(ERROR_MESSAGE + target);
+ }
+ var args = slicy(arguments, 1);
+
+ var bound;
+ var binder = function () {
+ if (this instanceof bound) {
+ var result = target.apply(
+ this,
+ concatty(args, arguments)
+ );
+ if (Object(result) === result) {
+ return result;
+ }
+ return this;
+ }
+ return target.apply(
+ that,
+ concatty(args, arguments)
+ );
+
+ };
+
+ var boundLength = max(0, target.length - args.length);
+ var boundArgs = [];
+ for (var i = 0; i < boundLength; i++) {
+ boundArgs[i] = '$' + i;
+ }
+
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
+
+ if (target.prototype) {
+ var Empty = function Empty() {};
+ Empty.prototype = target.prototype;
+ bound.prototype = new Empty();
+ Empty.prototype = null;
+ }
+
+ return bound;
+};
diff --git a/node_modules/function-bind/index.js b/node_modules/function-bind/index.js
new file mode 100644
index 0000000..3bb6b96
--- /dev/null
+++ b/node_modules/function-bind/index.js
@@ -0,0 +1,5 @@
+'use strict';
+
+var implementation = require('./implementation');
+
+module.exports = Function.prototype.bind || implementation;
diff --git a/node_modules/function-bind/package.json b/node_modules/function-bind/package.json
new file mode 100644
index 0000000..6185963
--- /dev/null
+++ b/node_modules/function-bind/package.json
@@ -0,0 +1,87 @@
+{
+ "name": "function-bind",
+ "version": "1.1.2",
+ "description": "Implementation of Function.prototype.bind",
+ "keywords": [
+ "function",
+ "bind",
+ "shim",
+ "es5"
+ ],
+ "author": "Raynos ",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Raynos/function-bind.git"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "main": "index",
+ "homepage": "https://github.com/Raynos/function-bind",
+ "contributors": [
+ {
+ "name": "Raynos"
+ },
+ {
+ "name": "Jordan Harband",
+ "url": "https://github.com/ljharb"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/Raynos/function-bind/issues",
+ "email": "raynos2@gmail.com"
+ },
+ "devDependencies": {
+ "@ljharb/eslint-config": "^21.1.0",
+ "aud": "^2.0.3",
+ "auto-changelog": "^2.4.0",
+ "eslint": "=8.8.0",
+ "in-publish": "^2.0.1",
+ "npmignore": "^0.3.0",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^2.0.0",
+ "tape": "^5.7.1"
+ },
+ "license": "MIT",
+ "scripts": {
+ "prepublishOnly": "safe-publish-latest",
+ "prepublish": "not-in-publish || npm run prepublishOnly",
+ "prepack": "npmignore --auto --commentLines=autogenerated",
+ "pretest": "npm run lint",
+ "test": "npm run tests-only",
+ "posttest": "aud --production",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "lint": "eslint --ext=js,mjs .",
+ "version": "auto-changelog && git add CHANGELOG.md",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
+ },
+ "testling": {
+ "files": "test/index.js",
+ "browsers": [
+ "ie/8..latest",
+ "firefox/16..latest",
+ "firefox/nightly",
+ "chrome/22..latest",
+ "chrome/canary",
+ "opera/12..latest",
+ "opera/next",
+ "safari/5.1..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "android-browser/4.2..latest"
+ ]
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "publishConfig": {
+ "ignore": [
+ ".github/workflows"
+ ]
+ }
+}
diff --git a/node_modules/function-bind/test/.eslintrc b/node_modules/function-bind/test/.eslintrc
new file mode 100644
index 0000000..8a56d5b
--- /dev/null
+++ b/node_modules/function-bind/test/.eslintrc
@@ -0,0 +1,9 @@
+{
+ "rules": {
+ "array-bracket-newline": 0,
+ "array-element-newline": 0,
+ "max-statements-per-line": [2, { "max": 2 }],
+ "no-invalid-this": 0,
+ "no-magic-numbers": 0,
+ }
+}
diff --git a/node_modules/function-bind/test/index.js b/node_modules/function-bind/test/index.js
new file mode 100644
index 0000000..2edecce
--- /dev/null
+++ b/node_modules/function-bind/test/index.js
@@ -0,0 +1,252 @@
+// jscs:disable requireUseStrict
+
+var test = require('tape');
+
+var functionBind = require('../implementation');
+var getCurrentContext = function () { return this; };
+
+test('functionBind is a function', function (t) {
+ t.equal(typeof functionBind, 'function');
+ t.end();
+});
+
+test('non-functions', function (t) {
+ var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
+ t.plan(nonFunctions.length);
+ for (var i = 0; i < nonFunctions.length; ++i) {
+ try { functionBind.call(nonFunctions[i]); } catch (ex) {
+ t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
+ }
+ }
+ t.end();
+});
+
+test('without a context', function (t) {
+ t.test('binds properly', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ })
+ };
+ namespace.func(1, 2, 3);
+ st.deepEqual(args, [1, 2, 3]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('binds properly, and still supplies bound arguments', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, undefined, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('called as a constructor', function (st) {
+ var thunkify = function (value) {
+ return function () { return value; };
+ };
+ st.test('returns object value', function (sst) {
+ var expectedReturnValue = [1, 2, 3];
+ var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
+ var result = new Constructor();
+ sst.equal(result, expectedReturnValue);
+ sst.end();
+ });
+
+ st.test('does not return primitive value', function (sst) {
+ var Constructor = functionBind.call(thunkify(42), null);
+ var result = new Constructor();
+ sst.notEqual(result, 42);
+ sst.end();
+ });
+
+ st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
+ var A = function (x) {
+ this.name = x || 'A';
+ };
+ var B = functionBind.call(A, null, 'B');
+
+ var result = new B();
+ sst.ok(result instanceof B, 'result is instance of bound constructor');
+ sst.ok(result instanceof A, 'result is instance of original constructor');
+ sst.end();
+ });
+
+ st.end();
+ });
+
+ t.end();
+});
+
+test('with a context', function (t) {
+ t.test('with no bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext)
+ };
+ namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
+ st.end();
+ });
+
+ t.test('with bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('passes the correct arguments when called as a constructor', function (st) {
+ var expected = { name: 'Correct' };
+ var namespace = {
+ Func: functionBind.call(function (arg) {
+ return arg;
+ }, { name: 'Incorrect' })
+ };
+ var returned = new namespace.Func(expected);
+ st.equal(returned, expected, 'returns the right arg when called as a constructor');
+ st.end();
+ });
+
+ t.test('has the new instance\'s context when called as a constructor', function (st) {
+ var actualContext;
+ var expectedContext = { foo: 'bar' };
+ var namespace = {
+ Func: functionBind.call(function () {
+ actualContext = this;
+ }, expectedContext)
+ };
+ var result = new namespace.Func();
+ st.equal(result instanceof namespace.Func, true);
+ st.notEqual(actualContext, expectedContext);
+ st.end();
+ });
+
+ t.end();
+});
+
+test('bound function length', function (t) {
+ t.test('sets a correct length without thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; });
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+});
diff --git a/node_modules/glob-parent/LICENSE b/node_modules/glob-parent/LICENSE
new file mode 100644
index 0000000..d701b08
--- /dev/null
+++ b/node_modules/glob-parent/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz , Eric Schoffstall and other 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/glob-parent/README.md b/node_modules/glob-parent/README.md
new file mode 100644
index 0000000..6ae18a1
--- /dev/null
+++ b/node_modules/glob-parent/README.md
@@ -0,0 +1,134 @@
+
+
+
+
+
+
+# glob-parent
+
+[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]
+
+Extract the non-magic parent path from a glob string.
+
+## Usage
+
+```js
+var globParent = require('glob-parent');
+
+globParent('path/to/*.js'); // 'path/to'
+globParent('/root/path/to/*.js'); // '/root/path/to'
+globParent('/*.js'); // '/'
+globParent('*.js'); // '.'
+globParent('**/*.js'); // '.'
+globParent('path/{to,from}'); // 'path'
+globParent('path/!(to|from)'); // 'path'
+globParent('path/?(to|from)'); // 'path'
+globParent('path/+(to|from)'); // 'path'
+globParent('path/*(to|from)'); // 'path'
+globParent('path/@(to|from)'); // 'path'
+globParent('path/**/*'); // 'path'
+
+// if provided a non-glob path, returns the nearest dir
+globParent('path/foo/bar.js'); // 'path/foo'
+globParent('path/foo/'); // 'path/foo'
+globParent('path/foo'); // 'path' (see issue #3 for details)
+```
+
+## API
+
+### `globParent(maybeGlobString, [options])`
+
+Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.
+
+#### options
+
+```js
+{
+ // Disables the automatic conversion of slashes for Windows
+ flipBackslashes: true;
+}
+```
+
+## Escaping
+
+The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
+
+- `?` (question mark) unless used as a path segment alone
+- `*` (asterisk)
+- `|` (pipe)
+- `(` (opening parenthesis)
+- `)` (closing parenthesis)
+- `{` (opening curly brace)
+- `}` (closing curly brace)
+- `[` (opening bracket)
+- `]` (closing bracket)
+
+**Example**
+
+```js
+globParent('foo/[bar]/'); // 'foo'
+globParent('foo/\\[bar]/'); // 'foo/[bar]'
+```
+
+## Limitations
+
+### Braces & Brackets
+
+This library attempts a quick and imperfect method of determining which path
+parts have glob magic without fully parsing/lexing the pattern. There are some
+advanced use cases that can trip it up, such as nested braces where the outer
+pair is escaped and the inner one contains a path separator. If you find
+yourself in the unlikely circumstance of being affected by this or need to
+ensure higher-fidelity glob handling in your library, it is recommended that you
+pre-process your input with [expand-braces] and/or [expand-brackets].
+
+### Windows
+
+Backslashes are not valid path separators for globs. If a path with backslashes
+is provided anyway, for simple cases, glob-parent will replace the path
+separator for you and return the non-glob parent path (now with
+forward-slashes, which are still valid as Windows path separators).
+
+This cannot be used in conjunction with escape characters.
+
+```js
+// BAD
+globParent('C:\\Program Files \\(x86\\)\\*.ext'); // 'C:/Program Files /(x86/)'
+
+// GOOD
+globParent('C:/Program Files\\(x86\\)/*.ext'); // 'C:/Program Files (x86)'
+```
+
+If you are using escape characters for a pattern without path parts (i.e.
+relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
+
+```js
+// BAD
+globParent('foo \\[bar]'); // 'foo '
+globParent('foo \\[bar]*'); // 'foo '
+
+// GOOD
+globParent('./foo \\[bar]'); // 'foo [bar]'
+globParent('./foo \\[bar]*'); // '.'
+```
+
+## License
+
+ISC
+
+
+[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg?style=flat-square
+[npm-url]: https://www.npmjs.com/package/glob-parent
+[npm-image]: https://img.shields.io/npm/v/glob-parent.svg?style=flat-square
+
+[ci-url]: https://github.com/gulpjs/glob-parent/actions?query=workflow:dev
+[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/glob-parent/dev?style=flat-square
+
+[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent
+[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg?style=flat-square
+
+
+
+[expand-braces]: https://github.com/jonschlinkert/expand-braces
+[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
+
diff --git a/node_modules/glob-parent/index.js b/node_modules/glob-parent/index.js
new file mode 100644
index 0000000..09dde64
--- /dev/null
+++ b/node_modules/glob-parent/index.js
@@ -0,0 +1,75 @@
+'use strict';
+
+var isGlob = require('is-glob');
+var pathPosixDirname = require('path').posix.dirname;
+var isWin32 = require('os').platform() === 'win32';
+
+var slash = '/';
+var backslash = /\\/g;
+var escaped = /\\([!*?|[\](){}])/g;
+
+/**
+ * @param {string} str
+ * @param {Object} opts
+ * @param {boolean} [opts.flipBackslashes=true]
+ */
+module.exports = function globParent(str, opts) {
+ var options = Object.assign({ flipBackslashes: true }, opts);
+
+ // flip windows path separators
+ if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
+ str = str.replace(backslash, slash);
+ }
+
+ // special case for strings ending in enclosure containing path separator
+ if (isEnclosure(str)) {
+ str += slash;
+ }
+
+ // preserves full path in case of trailing path separator
+ str += 'a';
+
+ // remove path parts that are globby
+ do {
+ str = pathPosixDirname(str);
+ } while (isGlobby(str));
+
+ // remove escape chars and return result
+ return str.replace(escaped, '$1');
+};
+
+function isEnclosure(str) {
+ var lastChar = str.slice(-1);
+
+ var enclosureStart;
+ switch (lastChar) {
+ case '}':
+ enclosureStart = '{';
+ break;
+ case ']':
+ enclosureStart = '[';
+ break;
+ default:
+ return false;
+ }
+
+ var foundIndex = str.indexOf(enclosureStart);
+ if (foundIndex < 0) {
+ return false;
+ }
+
+ return str.slice(foundIndex + 1, -1).includes(slash);
+}
+
+function isGlobby(str) {
+ if (/\([^()]+$/.test(str)) {
+ return true;
+ }
+ if (str[0] === '{' || str[0] === '[') {
+ return true;
+ }
+ if (/[^\\][{[]/.test(str)) {
+ return true;
+ }
+ return isGlob(str);
+}
diff --git a/node_modules/glob-parent/package.json b/node_modules/glob-parent/package.json
new file mode 100644
index 0000000..baeab42
--- /dev/null
+++ b/node_modules/glob-parent/package.json
@@ -0,0 +1,54 @@
+{
+ "name": "glob-parent",
+ "version": "6.0.2",
+ "description": "Extract the non-magic parent path from a glob string.",
+ "author": "Gulp Team (https://gulpjs.com/)",
+ "contributors": [
+ "Elan Shanker (https://github.com/es128)",
+ "Blaine Bublitz "
+ ],
+ "repository": "gulpjs/glob-parent",
+ "license": "ISC",
+ "engines": {
+ "node": ">=10.13.0"
+ },
+ "main": "index.js",
+ "files": [
+ "LICENSE",
+ "index.js"
+ ],
+ "scripts": {
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "test": "nyc mocha --async-only"
+ },
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "devDependencies": {
+ "eslint": "^7.0.0",
+ "eslint-config-gulp": "^5.0.0",
+ "expect": "^26.0.1",
+ "mocha": "^7.1.2",
+ "nyc": "^15.0.1"
+ },
+ "nyc": {
+ "reporter": [
+ "lcov",
+ "text-summary"
+ ]
+ },
+ "prettier": {
+ "singleQuote": true
+ },
+ "keywords": [
+ "glob",
+ "parent",
+ "strip",
+ "path",
+ "dirname",
+ "directory",
+ "base",
+ "wildcard"
+ ]
+}
diff --git a/node_modules/glob/LICENSE b/node_modules/glob/LICENSE
new file mode 100644
index 0000000..ec7df93
--- /dev/null
+++ b/node_modules/glob/LICENSE
@@ -0,0 +1,15 @@
+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/glob/README.md b/node_modules/glob/README.md
new file mode 100644
index 0000000..023cd77
--- /dev/null
+++ b/node_modules/glob/README.md
@@ -0,0 +1,1265 @@
+# 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/glob/dist/commonjs/glob.d.ts b/node_modules/glob/dist/commonjs/glob.d.ts
new file mode 100644
index 0000000..25262b3
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/glob.d.ts
@@ -0,0 +1,388 @@
+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/glob/dist/commonjs/glob.d.ts.map b/node_modules/glob/dist/commonjs/glob.d.ts.map
new file mode 100644
index 0000000..c32dc74
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/glob.d.ts.map
@@ -0,0 +1 @@
+{"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,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AAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGnD,CAAC,MAAM,CAAC,aAAa,CAAC;CAGvB"}
\ No newline at end of file
diff --git a/node_modules/glob/dist/commonjs/glob.js b/node_modules/glob/dist/commonjs/glob.js
new file mode 100644
index 0000000..e1339bb
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/glob.js
@@ -0,0 +1,247 @@
+"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/glob/dist/commonjs/glob.js.map b/node_modules/glob/dist/commonjs/glob.js.map
new file mode 100644
index 0000000..ddab419
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/glob.js.map
@@ -0,0 +1 @@
+{"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,OA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,OAAO,IAAI,sBAAU,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;YACpD,GAAG,IAAI,CAAC,IAAI;YACZ,QAAQ,EACN,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;gBAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,EAAE;gBACzC,CAAC,CAAC,QAAQ;YACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,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/glob/dist/commonjs/has-magic.d.ts b/node_modules/glob/dist/commonjs/has-magic.d.ts
new file mode 100644
index 0000000..8aec3bd
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/has-magic.d.ts
@@ -0,0 +1,14 @@
+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/glob/dist/commonjs/has-magic.d.ts.map b/node_modules/glob/dist/commonjs/has-magic.d.ts.map
new file mode 100644
index 0000000..b24dd4e
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/has-magic.d.ts.map
@@ -0,0 +1 @@
+{"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/glob/dist/commonjs/has-magic.js b/node_modules/glob/dist/commonjs/has-magic.js
new file mode 100644
index 0000000..0918bd5
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/has-magic.js
@@ -0,0 +1,27 @@
+"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/glob/dist/commonjs/has-magic.js.map b/node_modules/glob/dist/commonjs/has-magic.js.map
new file mode 100644
index 0000000..44deab2
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/has-magic.js.map
@@ -0,0 +1 @@
+{"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/glob/dist/commonjs/ignore.d.ts b/node_modules/glob/dist/commonjs/ignore.d.ts
new file mode 100644
index 0000000..1893b16
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/ignore.d.ts
@@ -0,0 +1,24 @@
+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/glob/dist/commonjs/ignore.d.ts.map b/node_modules/glob/dist/commonjs/ignore.d.ts.map
new file mode 100644
index 0000000..57d6ab6
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/ignore.d.ts.map
@@ -0,0 +1 @@
+{"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/glob/dist/commonjs/ignore.js b/node_modules/glob/dist/commonjs/ignore.js
new file mode 100644
index 0000000..5f1fde0
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/ignore.js
@@ -0,0 +1,119 @@
+"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/glob/dist/commonjs/ignore.js.map b/node_modules/glob/dist/commonjs/ignore.js.map
new file mode 100644
index 0000000..d9dfdfa
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/ignore.js.map
@@ -0,0 +1 @@
+{"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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AAC,KAAK,CAAC,SAAS,CAAC;gBAAE,OAAO,IAAI,CAAA;QAC1D,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED,eAAe,CAAC,CAAO;QACrB,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/glob/dist/commonjs/index.d.ts b/node_modules/glob/dist/commonjs/index.d.ts
new file mode 100644
index 0000000..9c326dd
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/index.d.ts
@@ -0,0 +1,97 @@
+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/glob/dist/commonjs/index.d.ts.map b/node_modules/glob/dist/commonjs/index.d.ts.map
new file mode 100644
index 0000000..5fb3225
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/index.d.ts.map
@@ -0,0 +1 @@
+{"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;AAC5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,MAAM,EAAE,EAC1B,OAAO,EAAE,4BAA4B,GACpC,cAAc,CAAC,IAAI,EAAE,IAAI,EAAE,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/glob/dist/commonjs/index.js b/node_modules/glob/dist/commonjs/index.js
new file mode 100644
index 0000000..151495d
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/index.js
@@ -0,0 +1,68 @@
+"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/glob/dist/commonjs/index.js.map b/node_modules/glob/dist/commonjs/index.js.map
new file mode 100644
index 0000000..e648b1d
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/index.js.map
@@ -0,0 +1 @@
+{"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/glob/dist/commonjs/package.json b/node_modules/glob/dist/commonjs/package.json
new file mode 100644
index 0000000..5bbefff
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/package.json
@@ -0,0 +1,3 @@
+{
+ "type": "commonjs"
+}
diff --git a/node_modules/glob/dist/commonjs/pattern.d.ts b/node_modules/glob/dist/commonjs/pattern.d.ts
new file mode 100644
index 0000000..9636df3
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/pattern.d.ts
@@ -0,0 +1,76 @@
+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/glob/dist/commonjs/pattern.d.ts.map b/node_modules/glob/dist/commonjs/pattern.d.ts.map
new file mode 100644
index 0000000..cdf3223
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/pattern.d.ts.map
@@ -0,0 +1 @@
+{"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,CAAC,CAAA;AAC9D,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EA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 100644
index 0000000..f0de35f
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/pattern.js
@@ -0,0 +1,219 @@
+"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/glob/dist/commonjs/pattern.js.map b/node_modules/glob/dist/commonjs/pattern.js.map
new file mode 100644
index 0000000..fc10ea5
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/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AAW;YAClB,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW;gBACf,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE,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/glob/dist/commonjs/processor.d.ts b/node_modules/glob/dist/commonjs/processor.d.ts
new file mode 100644
index 0000000..ccedfbf
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/processor.d.ts
@@ -0,0 +1,59 @@
+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/glob/dist/commonjs/processor.d.ts.map b/node_modules/glob/dist/commonjs/processor.d.ts.map
new file mode 100644
index 0000000..aa266fe
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/processor.d.ts.map
@@ -0,0 +1 @@
+{"version":3,"file":"processor.d.ts","sourceRoot":"","sources":["../../src/processor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAY,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,I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IAAI,EAAE,cAAc,CAAA;gBAER,IAAI,EAAE,cAAc,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/glob/dist/commonjs/processor.js b/node_modules/glob/dist/commonjs/processor.js
new file mode 100644
index 0000000..ee3bb43
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/processor.js
@@ -0,0 +1,301 @@
+"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/glob/dist/commonjs/processor.js.map b/node_modules/glob/dist/commonjs/processor.js.map
new file mode 100644
index 0000000..58a7088
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/processor.js.map
@@ -0,0 +1 @@
+{"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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,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;IAED,UAAU,CAAC,CAAO,EAAE,CAAS,EAAE,IAAoB,EAAE,QAAiB;QACpE,uBAAuB;QACvB,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;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/glob/dist/commonjs/walker.d.ts b/node_modules/glob/dist/commonjs/walker.d.ts
new file mode 100644
index 0000000..499c8f4
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/walker.d.ts
@@ -0,0 +1,97 @@
+/**
+ * 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/glob/dist/commonjs/walker.d.ts.map b/node_modules/glob/dist/commonjs/walker.d.ts.map
new file mode 100644
index 0000000..769957b
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/walker.d.ts.map
@@ -0,0 +1 @@
+{"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,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAU,UAAU,EAAE,MAAM,aAAa,CAAA;AAOhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAClB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU,CAAA;IACvC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,SAAS,CAAC,EAAE,OAAO,CAAA;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,I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,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/glob/dist/commonjs/walker.js b/node_modules/glob/dist/commonjs/walker.js
new file mode 100644
index 0000000..cb15946
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/walker.js
@@ -0,0 +1,387 @@
+"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/glob/dist/commonjs/walker.js.map b/node_modules/glob/dist/commonjs/walker.js.map
new file mode 100644
index 0000000..49b0138
--- /dev/null
+++ b/node_modules/glob/dist/commonjs/walker.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"walker.js","sourceRoot":"","sources":["../../src/walker.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,uCAAmC;AAEnC,2CAAgD;AAQhD,iDAA0C;AA0D1C,MAAM,UAAU,GAAG,CACjB,MAAsC,EACtC,IAAoB,EACR,EAAE,CACd,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,kBAAM,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC;IACvD,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,kBAAM,CAAC,MAAM,EAAE,IAAI,CAAC;QAClD,CAAC,CAAC,MAAM,CAAA;AAEV;;GAEG;AACH,MAAsB,QAAQ;IAC5B,IAAI,CAAM;IACV,QAAQ,CAAW;IACnB,IAAI,CAAG;IACP,IAAI,GAAc,IAAI,GAAG,EAAQ,CAAA;IACjC,MAAM,GAAY,KAAK,CAAA;IACvB,OAAO,GAAY,KAAK,CAAA;IACxB,SAAS,GAAkB,EAAE,CAAA;IA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AE,CAAC,CAAA;YAC9D,CAAC,CAAC,CAAA;QACJ,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED,UAAU;QACR,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;YAC1B,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAA;QACvB,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAA;QACnE,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF;AAvCD,gCAuCC","sourcesContent":["/**\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 {\n if (ifDir && this.opts.nodir) return undefined\n let rpc: Path | undefined\n if (this.opts.realpath) {\n rpc = e.realpathCached() || (await e.realpath())\n if (!rpc) return undefined\n e = rpc\n }\n const needStat = e.isUnknown() || this.opts.stat\n const s = needStat ? await e.lstat() : e\n if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {\n const target = await s.realpath()\n /* c8 ignore start */\n if (target && (target.isUnknown() || this.opts.stat)) {\n await target.lstat()\n }\n /* c8 ignore stop */\n }\n return this.matchCheckTest(s, ifDir)\n }\n\n matchCheckTest(e: Path | undefined, ifDir: boolean): Path | undefined {\n return (\n e &&\n (this.maxDepth === Infinity || e.depth() <= this.maxDepth) &&\n (!ifDir || e.canReaddir()) &&\n (!this.opts.nodir || !e.isDirectory()) &&\n (!this.opts.nodir ||\n !this.opts.follow ||\n !e.isSymbolicLink() ||\n !e.realpathCached()?.isDirectory()) &&\n !this.#ignored(e)\n ) ?\n e\n : undefined\n }\n\n matchCheckSync(e: Path, ifDir: boolean): Path | undefined {\n if (ifDir && this.opts.nodir) return undefined\n let rpc: Path | undefined\n if (this.opts.realpath) {\n rpc = e.realpathCached() || e.realpathSync()\n if (!rpc) return undefined\n e = rpc\n }\n const needStat = e.isUnknown() || this.opts.stat\n const s = needStat ? e.lstatSync() : e\n if (this.opts.follow && this.opts.nodir && s?.isSymbolicLink()) {\n const target = s.realpathSync()\n if (target && (target?.isUnknown() || this.opts.stat)) {\n target.lstatSync()\n }\n }\n return this.matchCheckTest(s, ifDir)\n }\n\n abstract matchEmit(p: Result): void\n abstract matchEmit(p: string | Path): void\n\n matchFinish(e: Path, absolute: boolean) {\n if (this.#ignored(e)) return\n // we know we have an ignore if this is false, but TS doesn't\n if (!this.includeChildMatches && this.#ignore?.add) {\n const ign = `${e.relativePosix()}/**`\n this.#ignore.add(ign)\n }\n const abs =\n this.opts.absolute === undefined ? absolute : this.opts.absolute\n this.seen.add(e)\n const mark = this.opts.mark && e.isDirectory() ? this.#sep : ''\n // ok, we have what we need!\n if (this.opts.withFileTypes) {\n this.matchEmit(e)\n } else if (abs) {\n const abs = this.opts.posix ? e.fullpathPosix() : e.fullpath()\n this.matchEmit(abs + mark)\n } else {\n const rel = this.opts.posix ? e.relativePosix() : e.relative()\n const pre =\n this.opts.dotRelative && !rel.startsWith('..' + this.#sep) ?\n '.' + this.#sep\n : ''\n this.matchEmit(!rel ? '.' + mark : pre + rel + mark)\n }\n }\n\n async match(e: Path, absolute: boolean, ifDir: boolean): Promise {\n const p = await this.matchCheck(e, ifDir)\n if (p) this.matchFinish(p, absolute)\n }\n\n matchSync(e: Path, absolute: boolean, ifDir: boolean): void {\n const p = this.matchCheckSync(e, ifDir)\n if (p) this.matchFinish(p, absolute)\n }\n\n walkCB(target: Path, patterns: Pattern[], cb: () => any) {\n /* c8 ignore start */\n if (this.signal?.aborted) cb()\n /* c8 ignore stop */\n this.walkCB2(target, patterns, new Processor(this.opts), cb)\n }\n\n walkCB2(\n target: Path,\n patterns: Pattern[],\n processor: Processor,\n cb: () => any,\n ) {\n if (this.#childrenIgnored(target)) return cb()\n if (this.signal?.aborted) cb()\n if (this.paused) {\n this.onResume(() => this.walkCB2(target, patterns, processor, cb))\n return\n }\n processor.processPatterns(target, patterns)\n\n // done processing. all of the above is sync, can be abstracted out.\n // subwalks is a map of paths to the entry filters they need\n // matches is a map of paths to [absolute, ifDir] tuples.\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n tasks++\n this.match(m, absolute, ifDir).then(() => next())\n }\n\n for (const t of processor.subwalkTargets()) {\n if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {\n continue\n }\n tasks++\n const childrenCached = t.readdirCached()\n if (t.calledReaddir())\n this.walkCB3(t, childrenCached, processor, next)\n else {\n t.readdirCB(\n (_, entries) => this.walkCB3(t, entries, processor, next),\n true,\n )\n }\n }\n\n next()\n }\n\n walkCB3(\n target: Path,\n entries: Path[],\n processor: Processor,\n cb: () => any,\n ) {\n processor = processor.filterEntries(target, entries)\n\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n tasks++\n this.match(m, absolute, ifDir).then(() => next())\n }\n for (const [target, patterns] of processor.subwalks.entries()) {\n tasks++\n this.walkCB2(target, patterns, processor.child(), next)\n }\n\n next()\n }\n\n walkCBSync(target: Path, patterns: Pattern[], cb: () => any) {\n /* c8 ignore start */\n if (this.signal?.aborted) cb()\n /* c8 ignore stop */\n this.walkCB2Sync(target, patterns, new Processor(this.opts), cb)\n }\n\n walkCB2Sync(\n target: Path,\n patterns: Pattern[],\n processor: Processor,\n cb: () => any,\n ) {\n if (this.#childrenIgnored(target)) return cb()\n if (this.signal?.aborted) cb()\n if (this.paused) {\n this.onResume(() =>\n this.walkCB2Sync(target, patterns, processor, cb),\n )\n return\n }\n processor.processPatterns(target, patterns)\n\n // done processing. all of the above is sync, can be abstracted out.\n // subwalks is a map of paths to the entry filters they need\n // matches is a map of paths to [absolute, ifDir] tuples.\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n this.matchSync(m, absolute, ifDir)\n }\n\n for (const t of processor.subwalkTargets()) {\n if (this.maxDepth !== Infinity && t.depth() >= this.maxDepth) {\n continue\n }\n tasks++\n const children = t.readdirSync()\n this.walkCB3Sync(t, children, processor, next)\n }\n\n next()\n }\n\n walkCB3Sync(\n target: Path,\n entries: Path[],\n processor: Processor,\n cb: () => any,\n ) {\n processor = processor.filterEntries(target, entries)\n\n let tasks = 1\n const next = () => {\n if (--tasks === 0) cb()\n }\n\n for (const [m, absolute, ifDir] of processor.matches.entries()) {\n if (this.#ignored(m)) continue\n this.matchSync(m, absolute, ifDir)\n }\n for (const [target, patterns] of processor.subwalks.entries()) {\n tasks++\n this.walkCB2Sync(target, patterns, processor.child(), next)\n }\n\n next()\n }\n}\n\nexport class GlobWalker<\n O extends GlobWalkerOpts = GlobWalkerOpts,\n> extends GlobUtil