report-todo
Version:
Parse and report TODO, FIXME, BUG etc. comments in source code.
33 lines • 119 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["report-todo"]=e():t["report-todo"]=e()}(global,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(r,s,function(e){return t[e]}.bind(null,s));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=28)}([function(t,e){t.exports=require("path")},function(t,e){t.exports=require("fs")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(34);e.array=r;const s=n(35);e.errno=s;const i=n(36);e.fs=i;const o=n(37);e.path=o;const a=n(38);e.pattern=a;const u=n(53);e.stream=u;const c=n(54);e.string=c},function(t,e){t.exports=require("util")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(56),s=n(57),i=n(58);function o(t={}){return t instanceof i.default?t:new i.default(t)}e.Settings=i.default,e.stat=function(t,e,n){if("function"==typeof e)return r.read(t,o(),e);r.read(t,o(e),n)},e.statSync=function(t,e){const n=o(e);return s.read(t,n)}},function(t,e){t.exports=require("stream")},function(t,e,n){"use strict";const r=n(0),s="win32"===process.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=n(7);e.isObject=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),e.hasRegexChars=t=>a.test(t),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(u,"\\$1"),e.toPosixSlashes=t=>t.replace(i,"/"),e.removeBackslashes=t=>t.replace(o,t=>"\\"===t?"":t),e.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);return 3===t.length&&t[0]>=9||8===t[0]&&t[1]>=10},e.isWindows=t=>t&&"boolean"==typeof t.windows?t.windows:!0===s||"\\"===r.sep,e.escapeLast=(t,n,r)=>{const s=t.lastIndexOf(n,r);return-1===s?t:"\\"===t[s-1]?e.escapeLast(t,n,s-1):`${t.slice(0,s)}\\${t.slice(s)}`},e.removePrefix=(t,e={})=>{let n=t;return n.startsWith("./")&&(n=n.slice(2),e.prefix="./"),n},e.wrapOutput=(t,e={},n={})=>{let r=`${n.contains?"":"^"}(?:${t})${n.contains?"":"$"}`;return!0===e.negated&&(r=`(?:^(?!${r}).*$)`),r}},function(t,e,n){"use strict";const r=n(0),s={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},i={...s,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};t.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars:t=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:t=>!0===t?i:s}},function(t,e,n){"use strict";const r=n(9);t.exports=(t,e={})=>{let n=(t,s={})=>{let i=e.escapeInvalid&&r.isInvalidBrace(s),o=!0===t.invalid&&!0===e.escapeInvalid,a="";if(t.value)return(i||o)&&r.isOpenOrClose(t)?"\\"+t.value:t.value;if(t.value)return t.value;if(t.nodes)for(let e of t.nodes)a+=n(e);return a};return n(t)}},function(t,e,n){"use strict";e.isInteger=t=>"number"==typeof t?Number.isInteger(t):"string"==typeof t&&""!==t.trim()&&Number.isInteger(Number(t)),e.find=(t,e)=>t.nodes.find(t=>t.type===e),e.exceedsLimit=(t,n,r=1,s)=>!1!==s&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(r)>=s),e.escapeNode=(t,e=0,n)=>{let r=t.nodes[e];r&&(n&&r.type===n||"open"===r.type||"close"===r.type)&&!0!==r.escaped&&(r.value="\\"+r.value,r.escaped=!0)},e.encloseBrace=t=>"brace"===t.type&&(t.commas>>0+t.ranges>>0==0&&(t.invalid=!0,!0)),e.isInvalidBrace=t=>"brace"===t.type&&(!(!0!==t.invalid&&!t.dollar)||(t.commas>>0+t.ranges>>0==0||!0!==t.open||!0!==t.close)&&(t.invalid=!0,!0)),e.isOpenOrClose=t=>"open"===t.type||"close"===t.type||(!0===t.open||!0===t.close),e.reduce=t=>t.reduce((t,e)=>("text"===e.type&&t.push(e.value),"range"===e.type&&(e.type="text"),t),[]),e.flatten=(...t)=>{const e=[],n=t=>{for(let r=0;r<t.length;r++){let s=t[r];Array.isArray(s)?n(s,e):void 0!==s&&e.push(s)}return e};return n(t),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(61),s=n(64),i=n(65);function o(t={}){return t instanceof i.default?t:new i.default(t)}e.Settings=i.default,e.scandir=function(t,e,n){if("function"==typeof e)return r.read(t,o(),e);r.read(t,o(e),n)},e.scandirSync=function(t,e){const n=o(e);return s.read(t,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFatalError=function(t,e){return null===t.errorFilter||!t.errorFilter(e)},e.isAppliedFilter=function(t,e){return null===t||t(e)},e.replacePathSegmentSeparator=function(t,e){return t.split(/[\\/]/).join(e)},e.joinPathSegments=function(t,e,n){return""===t?e:t+n+e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(73),i=n(76),o=n(77),a=n(78);e.default=class{constructor(t){this._settings=t,this.errorFilter=new o.default(this._settings),this.entryFilter=new i.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new s.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new a.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){const e="."===t.base?"":t.base;return{basePath:e,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(e,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.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:!0,strictSlashes:!1}}}},function(t,e,n){"use strict";const r=n(5).PassThrough,s=Array.prototype.slice;function i(t,e){if(Array.isArray(t))for(let n=0,r=t.length;n<r;n++)t[n]=i(t[n],e);else{if(!t._readableState&&t.pipe&&(t=t.pipe(r(e))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}t.exports=function(){const t=[];let e=!1;const n=s.call(arguments);let o=n[n.length-1];o&&!Array.isArray(o)&&null==o.pipe?n.pop():o={};const a=!1!==o.end;null==o.objectMode&&(o.objectMode=!0);null==o.highWaterMark&&(o.highWaterMark=65536);const u=r(o);function c(){for(let e=0,n=arguments.length;e<n;e++)t.push(i(arguments[e],o));return l(),this}function l(){if(e)return;e=!0;let n=t.shift();if(!n)return void process.nextTick(p);Array.isArray(n)||(n=[n]);let r=n.length+1;function s(){--r>0||(e=!1,l())}function i(t){function e(){t.removeListener("merge2UnpipeEnd",e),t.removeListener("end",e),s()}if(t._readableState.endEmitted)return s();t.on("merge2UnpipeEnd",e),t.on("end",e),t.pipe(u,{end:!1}),t.resume()}for(let t=0;t<n.length;t++)i(n[t]);s()}function p(){return e=!1,u.emit("queueDrain"),a&&u.end()}u.setMaxListeners(0),u.add=c,u.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")})),n.length&&c.apply(null,n);return u}},function(t,e,n){"use strict";const r=n(33),s=n(55),i=n(79),o=n(80),a=n(82),u=n(2);async function c(t,e){p(t);const n=l(t,s.default,e),r=await Promise.all(n);return u.array.flatten(r)}function l(t,e,n){const s=[].concat(t),i=new a.default(n),o=r.generate(s,i),u=new e(i);return o.map(u.read,u)}function p(t){if(![].concat(t).every(t=>u.string.isString(t)&&!u.string.isEmpty(t)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}!function(t){t.sync=function(t,e){p(t);const n=l(t,o.default,e);return u.array.flatten(n)},t.stream=function(t,e){p(t);const n=l(t,i.default,e);return u.stream.merge(n)},t.generateTasks=function(t,e){p(t);const n=[].concat(t),s=new a.default(e);return r.generate(n,s)},t.isDynamicPattern=function(t,e){p(t);const n=new a.default(e);return u.pattern.isDynamicPattern(t,n)},t.escapePath=function(t){return p(t),u.path.escape(t)}}(c||(c={})),t.exports=c},function(t,e){t.exports=require("os")},function(t,e,n){"use strict";
/*!
* fill-range <https://github.com/jonschlinkert/fill-range>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Licensed under the MIT License.
*/const r=n(3),s=n(45),i=t=>null!==t&&"object"==typeof t&&!Array.isArray(t),o=t=>"number"==typeof t||"string"==typeof t&&""!==t,a=t=>Number.isInteger(+t),u=t=>{let e=`${t}`,n=-1;if("-"===e[0]&&(e=e.slice(1)),"0"===e)return!1;for(;"0"===e[++n];);return n>0},c=(t,e,n)=>{if(e>0){let n="-"===t[0]?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return!1===n?String(t):t},l=(t,e)=>{let n="-"===t[0]?"-":"";for(n&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return n?"-"+t:t},p=(t,e,n,r)=>{if(n)return s(t,e,{wrap:!1,...r});let i=String.fromCharCode(t);return t===e?i:`[${i}-${String.fromCharCode(e)}]`},h=(t,e,n)=>{if(Array.isArray(t)){let e=!0===n.wrap,r=n.capture?"":"?:";return e?`(${r}${t.join("|")})`:t.join("|")}return s(t,e,n)},f=(...t)=>new RangeError("Invalid range arguments: "+r.inspect(...t)),d=(t,e,n)=>{if(!0===n.strictRanges)throw f([t,e]);return[]},g=(t,e,n=1,r={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(!0===r.strictRanges)throw f([t,e]);return[]}0===s&&(s=0),0===i&&(i=0);let o=s>i,a=String(t),d=String(e),g=String(n);n=Math.max(Math.abs(n),1);let _=u(a)||u(d)||u(g),m=_?Math.max(a.length,d.length,g.length):0,y=!1===_&&!1===((t,e,n)=>"string"==typeof t||"string"==typeof e||!0===n.stringify)(t,e,r),b=r.transform||(t=>e=>!0===t?Number(e):String(e))(y);if(r.toRegex&&1===n)return p(l(t,m),l(e,m),!0,r);let v={negatives:[],positives:[]},S=[],E=0;for(;o?s>=i:s<=i;)!0===r.toRegex&&n>1?v[(A=s)<0?"negatives":"positives"].push(Math.abs(A)):S.push(c(b(s,E),m,y)),s=o?s-n:s+n,E++;var A;return!0===r.toRegex?n>1?((t,e)=>{t.negatives.sort((t,e)=>t<e?-1:t>e?1:0),t.positives.sort((t,e)=>t<e?-1:t>e?1:0);let n,r=e.capture?"":"?:",s="",i="";return t.positives.length&&(s=t.positives.join("|")),t.negatives.length&&(i=`-(${r}${t.negatives.join("|")})`),n=s&&i?`${s}|${i}`:s||i,e.wrap?`(${r}${n})`:n})(v,r):h(S,null,{wrap:!1,...r}):S},_=(t,e,n,r={})=>{if(null==e&&o(t))return[t];if(!o(t)||!o(e))return d(t,e,r);if("function"==typeof n)return _(t,e,1,{transform:n});if(i(n))return _(t,e,0,n);let s={...r};return!0===s.capture&&(s.wrap=!0),n=n||s.step||1,a(n)?a(t)&&a(e)?g(t,e,n,s):((t,e,n=1,r={})=>{if(!a(t)&&t.length>1||!a(e)&&e.length>1)return d(t,e,r);let s=r.transform||(t=>String.fromCharCode(t)),i=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),u=i>o,c=Math.min(i,o),l=Math.max(i,o);if(r.toRegex&&1===n)return p(c,l,!1,r);let f=[],g=0;for(;u?i>=o:i<=o;)f.push(s(i,g)),i=u?i-n:i+n,g++;return!0===r.toRegex?h(f,null,{wrap:!1,options:r}):f})(t,e,Math.max(Math.abs(n),1),s):null==n||i(n)?_(t,e,1,n):((t,e)=>{if(!0===e.strictRanges)throw new TypeError(`Expected step "${t}" to be a number`);return[]})(n,s)};t.exports=_},function(t,e,n){"use strict";t.exports=n(50)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(5),s=n(4),i=n(19),o=n(25);class a extends o.default{constructor(){super(...arguments),this._walkStream=i.walkStream,this._stat=s.stat}dynamic(t,e){return this._walkStream(t,e)}static(t,e){const n=t.map(this._getFullEntryPath,this),s=new r.PassThrough({objectMode:!0});s._write=(r,i,o)=>this._getEntry(n[r],t[r],e).then(t=>{null!==t&&e.entryFilter(t)&&s.push(t),r===n.length-1&&s.end(),o()}).catch(o);for(let t=0;t<n.length;t++)s.write(t);return s}_getEntry(t,e,n){return this._getStat(t).then(t=>this._makeEntry(t,e)).catch(t=>{if(n.errorFilter(t))return null;throw t})}_getStat(t){return new Promise((e,n)=>{this._stat(t,this._fsStatSettings,(t,r)=>null===t?e(r):n(t))})}}e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(60),s=n(69),i=n(70),o=n(72);function a(t={}){return t instanceof o.default?t:new o.default(t)}e.Settings=o.default,e.walk=function(t,e,n){if("function"==typeof e)return new r.default(t,a()).read(e);new r.default(t,a(e)).read(n)},e.walkSync=function(t,e){const n=a(e);return new i.default(t,n).read()},e.walkStream=function(t,e){const n=a(e);return new s.default(t,n).read()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(21),s=n(10),i=n(67),o=n(11),a=n(24);class u extends a.default{constructor(t,e){super(t,e),this._settings=e,this._scandir=s.scandir,this._emitter=new r.EventEmitter,this._queue=i(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,e){const n={directory:t,base:e};this._queue.push(n,t=>{null!==t&&this._handleError(t)})}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,(n,r)=>{if(null!==n)return e(n,void 0);for(const e of r)this._handleEntry(e,t.base);e(null,void 0)})}_handleError(t){o.isFatalError(this._settings,t)&&(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError)return;const n=t.path;void 0!==e&&(t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)),o.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,t.path)}_emitEntry(t){this._emitter.emit("entry",t)}}e.default=u},function(t,e){t.exports=require("events")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=process.versions.node.split("."),s=parseInt(r[0],10),i=parseInt(r[1],10),o=s>10,a=10===s&&i>=10;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o||a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(63);e.fs=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(11);e.default=class{constructor(t,e){this._root=t,this._settings=e,this._root=r.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(4),i=n(2);e.default=class{constructor(t){this._settings=t,this._fsStatSettings=new s.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return r.resolve(this._settings.cwd,t)}_makeEntry(t,e){const n={name:e,path:e,dirent:i.fs.createDirentFromStats(e,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!i.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}},function(t,e,n){"use strict";n.r(e),n.d(e,"TemplateTag",(function(){return u})),n.d(e,"trimResultTransformer",(function(){return c})),n.d(e,"stripIndentTransformer",(function(){return p})),n.d(e,"replaceResultTransformer",(function(){return h})),n.d(e,"replaceSubstitutionTransformer",(function(){return f})),n.d(e,"replaceStringTransformer",(function(){return d})),n.d(e,"inlineArrayTransformer",(function(){return _})),n.d(e,"splitStringTransformer",(function(){return m})),n.d(e,"removeNonPrintingValuesTransformer",(function(){return b})),n.d(e,"commaLists",(function(){return v})),n.d(e,"commaListsAnd",(function(){return S})),n.d(e,"commaListsOr",(function(){return E})),n.d(e,"html",(function(){return A})),n.d(e,"codeBlock",(function(){return A})),n.d(e,"source",(function(){return A})),n.d(e,"safeHtml",(function(){return x})),n.d(e,"oneLine",(function(){return w})),n.d(e,"oneLineTrim",(function(){return R})),n.d(e,"oneLineCommaLists",(function(){return C})),n.d(e,"oneLineCommaListsOr",(function(){return O})),n.d(e,"oneLineCommaListsAnd",(function(){return k})),n.d(e,"inlineLists",(function(){return L})),n.d(e,"oneLineInlineLists",(function(){return T})),n.d(e,"stripIndent",(function(){return P})),n.d(e,"stripIndents",(function(){return $}));var r,s,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=(r=["",""],s=["",""],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(s)}})));function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=function(){function t(){for(var e=this,n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return a(this,t),this.tag=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return"function"==typeof t?e.interimTag.bind(e,t):"string"==typeof t?e.transformEndResult(t):(t=t.map(e.transformString.bind(e)),e.transformEndResult(t.reduce(e.processSubstitutions.bind(e,r))))},r.length>0&&Array.isArray(r[0])&&(r=r[0]),this.transformers=r.map((function(t){return"function"==typeof t?t():t})),this.tag}return i(t,[{key:"interimTag",value:function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return this.tag(o,t.apply(void 0,[e].concat(r)))}},{key:"processSubstitutions",value:function(t,e,n){var r=this.transformSubstitution(t.shift(),e);return"".concat(e,r,n)}},{key:"transformString",value:function(t){return this.transformers.reduce((function(t,e){return e.onString?e.onString(t):t}),t)}},{key:"transformSubstitution",value:function(t,e){return this.transformers.reduce((function(t,n){return n.onSubstitution?n.onSubstitution(t,e):t}),t)}},{key:"transformEndResult",value:function(t){return this.transformers.reduce((function(t,e){return e.onEndResult?e.onEndResult(t):t}),t)}}]),t}(),c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{onEndResult:function(e){if(""===t)return e.trim();if("start"===(t=t.toLowerCase())||"left"===t)return e.replace(/^\s*/,"");if("end"===t||"right"===t)return e.replace(/\s*$/,"");throw new Error("Side not supported: "+t)}}};function l(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"initial";return{onEndResult:function(e){if("initial"===t){var n=e.match(/^[^\S\n]*(?=\S)/gm),r=n&&Math.min.apply(Math,l(n.map((function(t){return t.length}))));if(r){var s=new RegExp("^.{"+r+"}","gm");return e.replace(s,"")}return e}if("all"===t)return e.replace(/^[^\S\n]+/gm,"");throw new Error("Unknown type: "+t)}}},h=function(t,e){return{onEndResult:function(n){if(null==t||null==e)throw new Error("replaceResultTransformer requires at least 2 arguments.");return n.replace(t,e)}}},f=function(t,e){return{onSubstitution:function(n,r){if(null==t||null==e)throw new Error("replaceSubstitutionTransformer requires at least 2 arguments.");return null==n?n:n.toString().replace(t,e)}}},d=function(t,e){return{onString:function(n){if(null==t||null==e)throw new Error("replaceStringTransformer requires at least 2 arguments.");return n.replace(t,e)}}},g={separator:"",conjunction:"",serial:!1},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;return{onSubstitution:function(e,n){if(Array.isArray(e)){var r=e.length,s=t.separator,i=t.conjunction,o=t.serial,a=n.match(/(\n?[^\S\n]+)$/);if(e=a?e.join(s+a[1]):e.join(s+" "),i&&r>1){var u=e.lastIndexOf(s);e=e.slice(0,u)+(o?s:"")+" "+i+e.slice(u+1)}}return e}}},m=function(t){return{onSubstitution:function(e,n){if(null==t||"string"!=typeof t)throw new Error("You need to specify a string character to split by.");return"string"==typeof e&&e.includes(t)&&(e=e.split(t)),e}}},y=function(t){return null!=t&&!Number.isNaN(t)&&"boolean"!=typeof t},b=function(){return{onSubstitution:function(t){return Array.isArray(t)?t.filter(y):y(t)?t:""}}},v=new u(_({separator:","}),p,c),S=new u(_({separator:",",conjunction:"and"}),p,c),E=new u(_({separator:",",conjunction:"or"}),p,c),A=new u(m("\n"),b,_,p,c),x=new u(m("\n"),_,p,c,f(/&/g,"&"),f(/</g,"<"),f(/>/g,">"),f(/"/g,"""),f(/'/g,"'"),f(/`/g,"`")),w=new u(h(/(?:\n(?:\s*))+/g," "),c),R=new u(h(/(?:\n\s*)/g,""),c),C=new u(_({separator:","}),h(/(?:\s+)/g," "),c),O=new u(_({separator:",",conjunction:"or"}),h(/(?:\s+)/g," "),c),k=new u(_({separator:",",conjunction:"and"}),h(/(?:\s+)/g," "),c),L=new u(_,p,c),T=new u(_,h(/(?:\s+)/g," "),c),P=new u(p,c),$=new u(p("all"),c)},function(t,e,n){!function(){function e(t,e,n){this.next=n,n&&(n.prev=this),this.prev=e,e&&(e.next=this),this.data=t}function n(){if(!(this instanceof n))return new n;this._head=null,this._tail=null,this.length=0}n.prototype={push:function(t){this._tail=new e(t,this._tail,null),this._head||(this._head=this._tail),this.length++},pop:function(){if(0!==this.length){var t=this._tail;return this._tail=t.prev,t.prev&&(t.prev=this._tail.next=null),this.length--,1===this.length?this._head=this._tail:0===this.length&&(this._head=this._tail=null),t.data}},unshift:function(t){this._head=new e(t,null,this._head),this._tail||(this._tail=this._head),this.length++},shift:function(){if(0!==this.length){var t=this._head;return this._head=t.next,t.next&&(t.next=this._head.prev=null),this.length--,1===this.length?this._tail=this._head:0===this.length&&(this._head=this._tail=null),t.data}},item:function(t){t<0&&(t=this.length+t);for(var e=this._head;t-- >0&&e;)e=e.next;return e?e.data:void 0},slice:function(t,e){if(t||(t=0),e||(e=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e===t)return[];if(e<t)throw new Error("invalid offset: "+t+","+e+" (length="+this.length+")");for(var n=e-t,r=new Array(n),s=0,i=this._head;t-- >0&&i;)i=i.next;for(;s<n&&i;)r[s++]=i.data,i=i.next;return r},drop:function(){n.call(this)},forEach:function(t,e){for(var n=this._head,r=0,s=this.length;r<s&&n;)t.call(e||this,n.data,r,this),n=n.next,r++},map:function(t,e){var r=new n;return this.forEach((function(n,s,i){r.push(t.call(e||i,n,s,i))})),r},filter:function(t,e){var r=new n;return this.forEach((function(n,s,i){t.call(e||i,n,s,i)&&r.push(n)})),r},reduce:function(t,e,n){var r=0,s=this._head,i=this.length;for(e||(r=1,e=s&&s.data,s=s&&s.next);r<i&&s;)e=t.call(n||this,e,s.data,this),r++,s=s.next;return e}},t.exports=n}()},function(t,e,n){const{Channel:r}=n(103),{iterateParseFiles:s}=n(29),{generateMatches:i}=n(91),{makeReport:o}=n(92),a=n(98);t.exports.DEFAULT_OPTIONS=a,t.exports.oneLine=n(26).oneLine,t.exports.commander=n(99),t.exports.reportTodo=function(t,e={}){const{tags:n,caseInsensitive:u,labelsDelimiters:c,labelsSeparator:l,labels:p,labelsIsBlacklist:h,ignoreLineComment:f,reportMode:d,reportGroupBy:g,reportSortBy:_,reportLinksPrefix:m}={...a.reduce((t,{key:e,value:n})=>(t[e]=n,t),{}),...e},y=new r;s({globs:t,tags:n,caseInsensitive:u,labelsDelimiters:c,labelsSeparator:l,labels:p,labelsIsBlacklist:h,ignoreLineComment:f,todoMatchesChannel:y});const b=i(y);return"generator"===d?b:o({matchGenerator:b,reportGroupBy:g,reportSortBy:_,reportMode:d,reportLinksPrefix:m,labelsSeparator:l})}},function(t,e,n){const r=n(30),s=n(31),{parseFile:i}=n(89);t.exports.iterateParseFiles=async function({globs:t,tags:e,caseInsensitive:n,labelsDelimiters:o,labelsSeparator:a,labels:u,labelsIsBlacklist:c,ignoreLineComment:l,todoMatchesChannel:p}){const h=n?"ui":"u",f=function({tags:t,regExpFlags:e,labelsDelimiters:n}){const s=t.map(t=>r(t)).join("|"),i=new RegExp([`^(.*?)\\b(${s})\\b\\s*`,`(${r(n[0])}(.+?)${r(n[1])})?\\s*:?\\s*(.*)`].join(""),e);return t=>{const n=i.exec(t);let s=null;return n&&(s=new RegExp(`^${r(n[1])}((()))(\\s+)(.*)`,e)),[n,s]}}({tags:e,regExpFlags:h,labelsDelimiters:o}),d=function(t){return(e,n,s)=>{const i=e.exec(s);let o=null;return i&&(o=n.lines.length>1?e:new RegExp(`^${r(n.lines[0][1])}(((())))${r(i[4])}(.*)`,t)),[i,o]}}(h);for await(const e of s.stream(t))i({startMatch:f,continueMatch:d,labelsSeparator:a,labels:u,labelsIsBlacklist:c,ignoreLineComment:l,todoMatchesChannel:p,filePath:e});p.push("all-files-started-parsing")}},function(t,e){var n=/[\\^$.*+?()[\]{}|]/g,r=RegExp(n.source),s="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,o=s||i||Function("return this")(),a=Object.prototype.toString,u=o.Symbol,c=u?u.prototype:void 0,l=c?c.toString:void 0;function p(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==a.call(t)}(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}t.exports=function(t){var e;return(t=null==(e=t)?"":p(e))&&r.test(t)?t.replace(n,"\\$&"):t}},function(t,e,n){"use strict";const r=n(1),s=n(32),i=n(13),o=n(14),a=n(83),u=n(85),{FilterStream:c,UniqueStream:l}=n(88),p=()=>!1,h=t=>"!"===t[0],f=(t,e)=>{(t=>{if(!t.every(t=>"string"==typeof t))throw new TypeError("Patterns must be a string or an array of strings")})(t=s([].concat(t))),((t={})=>{if(!t.cwd)return;let e;try{e=r.statSync(t.cwd)}catch(t){return}if(!e.isDirectory())throw new Error("The `cwd` option must be a path to a directory")})(e);const n=[];e={ignore:[],expandDirectories:!0,...e};for(const[r,s]of t.entries()){if(h(s))continue;const i=t.slice(r).filter(h).map(t=>t.slice(1)),o={...e,ignore:e.ignore.concat(i)};n.push({pattern:s,options:o})}return n},d=(t,e)=>t.options.expandDirectories?((t,e)=>{let n={};return t.options.cwd&&(n.cwd=t.options.cwd),Array.isArray(t.options.expandDirectories)?n={...n,files:t.options.expandDirectories}:"object"==typeof t.options.expandDirectories&&(n={...n,...t.options.expandDirectories}),e(t.pattern,n)})(t,e):[t.pattern],g=t=>t&&t.gitignore?u.sync({cwd:t.cwd,ignore:t.ignore}):p,_=t=>e=>{const{options:n}=t;return n.ignore&&Array.isArray(n.ignore)&&n.expandDirectories&&(n.ignore=a.sync(n.ignore)),{pattern:e,options:n}};t.exports=async(t,e)=>{const n=f(t,e),[i,c]=await Promise.all([(async()=>e&&e.gitignore?u({cwd:e.cwd,ignore:e.ignore}):p)(),(async()=>{const t=await Promise.all(n.map(async t=>{const e=await d(t,a);return Promise.all(e.map(_(t)))}));return s(...t)})()]),l=await Promise.all(c.map(t=>o(t.pattern,t.options)));return s(...l).filter(t=>{return!i((e=t,e.stats instanceof r.Stats?e.path:e));var e})},t.exports.sync=(t,e)=>{const n=f(t,e).reduce((t,e)=>{const n=d(e,a.sync).map(_(e));return t.concat(n)},[]),r=g(e);return n.reduce((t,e)=>s(t,o.sync(e.pattern,e.options)),[]).filter(t=>!r(t))},t.exports.stream=(t,e)=>{const n=f(t,e).reduce((t,e)=>{const n=d(e,a.sync).map(_(e));return t.concat(n)},[]),r=g(e),s=new c(t=>!r(t)),u=new l;return i(n.map(t=>o.stream(t.pattern,t.options))).pipe(s).pipe(u)},t.exports.generateGlobTasks=f,t.exports.hasMagic=(t,e)=>[].concat(t).some(t=>o.isDynamicPattern(t,e)),t.exports.gitignore=u},function(t,e,n){"use strict";t.exports=(...t)=>[...new Set([].concat(...t))]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(2);function s(t,e,n){const r=a(t);if("."in r){return[c(".",t,e,n)]}return u(r,e,n)}function i(t){return r.pattern.getPositivePatterns(t)}function o(t,e){return r.pattern.getNegativePatterns(t).concat(e).map(r.pattern.convertToPositivePattern)}function a(t){return t.reduce((t,e)=>{const n=r.pattern.getBaseDirectory(e);return n in t?t[n].push(e):t[n]=[e],t},{})}function u(t,e,n){return Object.keys(t).map(r=>c(r,t[r],e,n))}function c(t,e,n,s){return{dynamic:s,positive:e,negative:n,base:t,patterns:[].concat(e,n.map(r.pattern.convertToNegativePattern))}}e.generate=function(t,e){const n=i(t),a=o(t,e.ignore),u=n.filter(t=>r.pattern.isStaticPattern(t,e)),c=n.filter(t=>r.pattern.isDynamicPattern(t,e)),l=s(u,a,!1),p=s(c,a,!0);return l.concat(p)},e.convertPatternsToTasks=s,e.getPositivePatterns=i,e.getNegativePatternsAsPositive=o,e.groupPatternsByBaseDirectory=a,e.convertPatternGroupsToTasks=u,e.convertPatternGroupToTask=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flatten=function(t){return t.reduce((t,e)=>[].concat(t,e),[])},e.splitWhen=function(t,e){const n=[[]];let r=0;for(const s of t)e(s)?(r++,n[r]=[]):n[r].push(s);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=function(t){return"ENOENT"===t.code}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class r{constructor(t,e){this.name=t,this.isBlockDevice=e.isBlockDevice.bind(e),this.isCharacterDevice=e.isCharacterDevice.bind(e),this.isDirectory=e.isDirectory.bind(e),this.isFIFO=e.isFIFO.bind(e),this.isFile=e.isFile.bind(e),this.isSocket=e.isSocket.bind(e),this.isSymbolicLink=e.isSymbolicLink.bind(e)}}e.createDirentFromStats=function(t,e){return new r(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;e.unixify=function(t){return t.replace(/\\/g,"/")},e.makeAbsolute=function(t,e){return r.resolve(t,e)},e.escape=function(t){return t.replace(s,"\\$2")},e.removeLeadingDotSegment=function(t){if("."===t.charAt(0)){const e=t.charAt(1);if("/"===e||"\\"===e)return t.slice(2)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(0),s=n(39),i=n(42),o=n(17),a=/[*?]|^!/,u=/\[.*]/,c=/(?:^|[^!*+?@])\(.*\|.*\)/,l=/[!*+?@]\(.*\)/,p=/{.*(?:,|\.\.).*}/;function h(t,e={}){return!f(t,e)}function f(t,e={}){return!(!1!==e.caseSensitiveMatch&&!t.includes("\\"))||(!!(a.test(t)||u.test(t)||c.test(t))||(!(!1===e.extglob||!l.test(t))||!(!1===e.braceExpansion||!p.test(t))))}function d(t){return t.startsWith("!")&&"("!==t[1]}function g(t){return!d(t)}function _(t){return t.endsWith("/**")}function m(t){return i.braces(t,{expand:!0,nodupes:!0})}function y(t,e){return i.makeRe(t,e)}e.isStaticPattern=h,e.isDynamicPattern=f,e.convertToPositivePattern=function(t){return d(t)?t.slice(1):t},e.convertToNegativePattern=function(t){return"!"+t},e.isNegativePattern=d,e.isPositivePattern=g,e.getNegativePatterns=function(t){return t.filter(d)},e.getPositivePatterns=function(t){return t.filter(g)},e.getBaseDirectory=function(t){return s(t,{flipBackslashes:!1})},e.hasGlobStar=function(t){return t.includes("**")},e.endsWithSlashGlobStar=_,e.isAffectDepthOfReadingPattern=function(t){const e=r.basename(t);return _(t)||h(e)},e.expandPatternsWithBraceExpansion=function(t){return t.reduce((t,e)=>t.concat(m(e)),[])},e.expandBraceExpansion=m,e.getPatternParts=function(t,e){const n=o.scan(t,Object.assign(Object.assign({},e),{parts:!0}));return 0===n.parts.length?[t]:n.parts},e.makeRe=y,e.convertPatternsToRe=function(t,e){return t.map(t=>y(t,e))},e.matchAny=function(t,e){return e.some(e=>e.test(t))}},function(t,e,n){"use strict";var r=n(40),s=n(0).posix.dirname,i="win32"===n(15).platform(),o=/\\/g,a=/[\{\[].*[\/]*.*[\}\]]$/,u=/(^|[^\\])([\{\[]|\([^\)]+$)/,c=/\\([\*\?\|\[\]\(\)\{\}])/g;t.exports=function(t,e){Object.assign({flipBackslashes:!0},e).flipBackslashes&&i&&t.indexOf("/")<0&&(t=t.replace(o,"/")),a.test(t)&&(t+="/"),t+="a";do{t=s(t)}while(r(t)||u.test(t));return t.replace(c,"$1")}},function(t,e,n){
/*!
* is-glob <https://github.com/jonschlinkert/is-glob>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
var r=n(41),s={"{":"}","(":")","[":"]"},i=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,o=/\\(.)|(^!|[*?{}()[\]]|\(\?)/;t.exports=function(t,e){if("string"!=typeof t||""===t)return!1;if(r(t))return!0;var n,a=i;for(e&&!1===e.strict&&(a=o);n=a.exec(t);){if(n[2])return!0;var u=n.index+n[0].length,c=n[1],l=c?s[c]:null;if(c&&l){var p=t.indexOf(l,u);-1!==p&&(u=p+1)}t=t.slice(u)}return!1}},function(t,e){
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
t.exports=function(t){if("string"!=typeof t||""===t)return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1}},function(t,e,n){"use strict";const r=n(3),s=n(43),i=n(17),o=n(6),a=t=>"string"==typeof t&&(""===t||"./"===t),u=(t,e,n)=>{e=[].concat(e),t=[].concat(t);let r=new Set,s=new Set,o=new Set,a=0,u=t=>{o.add(t.output),n&&n.onResult&&n.onResult(t)};for(let o=0;o<e.length;o++){let c=i(String(e[o]),{...n,onResult:u},!0),l=c.state.negated||c.state.negatedExtglob;l&&a++;for(let e of t){let t=c(e,!0);(l?!t.isMatch:t.isMatch)&&(l?r.add(t.output):(r.delete(t.output),s.add(t.output)))}}let c=(a===e.length?[...o]:[...s]).filter(t=>!r.has(t));if(n&&0===c.length){if(!0===n.failglob)throw new Error(`No matches found for "${e.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?e.map(t=>t.replace(/\\/g,"")):e}return c};u.match=u,u.matcher=(t,e)=>i(t,e),u.any=u.isMatch=(t,e,n)=>i(e,n)(t),u.not=(t,e,n={})=>{e=[].concat(e).map(String);let r=new Set,s=[],i=u(t,e,{...n,onResult:t=>{n.onResult&&n.onResult(t),s.push(t.output)}});for(let t of s)i.includes(t)||r.add(t);return[...r]},u.contains=(t,e,n)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);if(Array.isArray(e))return e.some(e=>u.contains(t,e,n));if("string"==typeof e){if(a(t)||a(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return u.isMatch(t,e,{...n,contains:!0})},u.matchKeys=(t,e,n)=>{if(!o.isObject(t))throw new TypeError("Expected the first argument to be an object");let r=u(Object.keys(t),e,n),s={};for(let e of r)s[e]=t[e];return s},u.some=(t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),n);if(r.some(t=>e(t)))return!0}return!1},u.every=(t,e,n)=>{let r=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),n);if(!r.every(t=>e(t)))return!1}return!0},u.all=(t,e,n)=>{if("string"!=typeof t)throw new TypeError(`Expected a string: "${r.inspect(t)}"`);return[].concat(e).every(e=>i(e,n)(t))},u.capture=(t,e,n)=>{let r=o.isWindows(n),s=i.makeRe(String(t),{...n,capture:!0}).exec(r?o.toPosixSlashes(e):e);if(s)return s.slice(1).map(t=>void 0===t?"":t)},u.makeRe=(...t)=>i.makeRe(...t),u.scan=(...t)=>i.scan(...t),u.parse=(t,e)=>{let n=[];for(let r of[].concat(t||[]))for(let t of s(String(r),e))n.push(i.parse(t,e));return n},u.braces=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return e&&!0===e.nobrace||!/\{.*\}/.test(t)?[t]:s(t,e)},u.braceExpand=(t,e)=>{if("string"!=typeof t)throw new TypeError("Expected a string");return u.braces(t,{...e,expand:!0})},t.exports=u},function(t,e,n){"use strict";const r=n(8),s=n(44),i=n(47),o=n(48),a=(t,e={})=>{let n=[];if(Array.isArray(t))for(let r of t){let t=a.create(r,e);Array.isArray(t)?n.push(...t):n.push(t)}else n=[].concat(a.create(t,e));return e&&!0===e.expand&&!0===e.nodupes&&(n=[...new Set(n)]),n};a.parse=(t,e={})=>o(t,e),a.stringify=(t,e={})=>r("string"==typeof t?a.parse(t,e):t,e),a.compile=(t,e={})=>("string"==typeof t&&(t=a.parse(t,e)),s(t,e)),a.expand=(t,e={})=>{"string"==typeof t&&(t=a.parse(t,e));let n=i(t,e);return!0===e.noempty&&(n=n.filter(Boolean)),!0===e.nodupes&&(n=[...new Set(n)]),n},a.create=(t,e={})=>""===t||t.length<3?[t]:!0!==e.expand?a.compile(t,e):a.expand(t,e),t.exports=a},function(t,e,n){"use strict";const r=n(16),s=n(9);t.exports=(t,e={})=>{let n=(t,i={})=>{let o=s.isInvalidBrace(i),a=!0===t.invalid&&!0===e.escapeInvalid,u=!0===o||!0===a,c=!0===e.escapeInvalid?"\\":"",l="";if(!0===t.isOpen)return c+t.value;if(!0===t.isClose)return c+t.value;if("open"===t.type)return u?c+t.value:"(";if("close"===t.type)return u?c+t.value:")";if("comma"===t.type)return"comma"===t.prev.type?"":u?t.value:"|";if(t.value)return t.value;if(t.nodes&&t.ranges>0){let n=s.reduce(t.nodes),i=r(...n,{...e,wrap:!1,toRegex:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(t.nodes)for(let e of t.nodes)l+=n(e,t);return l};return n(t)}},function(t,e,n){"use strict";
/*!
* to-regex-range <https://github.com/micromatch/to-regex-range>
*
* Copyright (c) 2015-present, Jon Schlinkert.
* Released under the MIT License.
*/const r=n(46),s=(t,e,n)=>{if(!1===r(t))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===e||t===e)return String(t);if(!1===r(e))throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};"boolean"==typeof i.strictZeros&&(i.relaxZeros=!1===i.strictZeros);let u=t+":"+e+"="+String(i.relaxZeros)+String(i.shorthand)+String(i.capture)+String(i.wrap);if(s.cache.hasOwnProperty(u))return s.cache[u].result;let c=Math.min(t,e),l=Math.max(t,e);if(1===Math.abs(c-l)){let n=t+"|"+e;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let p=d(t)||d(e),h={min:t,max:e,a:c,b:l},f=[],g=[];if(p&&(h.isPadded=p,h.maxLen=String(h.max).length),c<0){g=o(l<0?Math.abs(l):1,Math.abs(c),h,i),c=h.a=0}return l>=0&&(f=o(c,l,h,i)),h.negatives=g,h.positives=f,h.result=function(t,e,n){let r=a(t,e,"-",!1,n)||[],s=a(e,t,"",!1,n)||[],i=a(t,e,"-?",!0,n)||[];return r.concat(i).concat(s).join("|")}(g,f,i),!0===i.capture?h.result=`(${h.result})`:!1!==i.wrap&&f.length+g.length>1&&(h.result=`(?:${h.result})`),s.cache[u]=h,h.result};function i(t,e,n){if(t===e)return{pattern:t,count:[],digits:0};let r=function(t,e){let n=[];for(let r=0;r<t.length;r++)n.push([t[r],e[r]]);return n}(t,e),s=r.length,i="",o=0;for(let t=0;t<s;t++){let[e,s]=r[t];e===s?i+=e:"0"!==e||"9"!==s?i+=f(e,s,n):o++}return o&&(i+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function o(t,e,n,r){let s,o=function(t,e){let n=1,r=1,s=l(t,n),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),n+=1,s=l(t,n);for(s=p(e+1,r)-1;t<s&&s<=e;)i.add(s),r+=1,s=p(e+1,r)-1;return i=[...i],i.sort(u),i}(t,e),a=[],c=t;for(let t=0;t<o.length;t++){let e=o[t],u=i(String(c),String(e),r),l="";n.isPadded||!s||s.pattern!==u.pattern?(n.isPadded&&(l=g(e,n,r)),u.string=l+u.pattern+h(u.count),a.push(u),c=e+1,s=u):(s.count.length>1&&s.count.pop(),s.count.push(u.count[0]),s.string=s.pattern+h(s.count),c=e+1)}return a}function a(t,e,n,r,s){let i=[];for(let s of t){let{string:t}=s;r||c(e,"string",t)||i.push(n+t),r&&c(e,"string",t)&&i.push(n+t)}return i}function u(t,e){return t>e?1:e>t?-1:0}function c(t,e,n){return t.some(t=>t[e]===n)}function l(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function p(t,e){return t-t%Math.pow(10,e)}function h(t){let[e=0,n=""]=t;return n||e>1?`{${e+(n?","+n:"")}}`:""}function f(t,e,n){return`[${t}${e-t==1?"":"-"}${e}]`}function d(t){return/^-?(0+)\d/.test(t)}function g(t,e,n){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),s=!1!==n.relaxZeros;switch(r){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${r}}`:`0{${r}}`}}s.cache={},s.clearCache=()=>s.cache={},t.exports=s},function(t,e,n){"use strict";
/*!
* is-number <https://github.com/jonschlinkert/is-number>
*
* Copyright (c) 2014-present, Jon Schlinkert.
* Released under the MIT License.
*/t.exports=function(t){return"number"==typeof t?t-t==0:"string"==typeof t&&""!==t.trim()&&(Number.isFinite?Number.isFinite(+t):isFinite(+t))}},function(t,e,n){"use strict";const r=n(16),s=n(8),i=n(9),o=(t="",e="",n=!1)=>{let r=[];if(t=[].concat(t),!(e=[].concat(e)).length)return t;if(!t.length)return n?i.flatten(e).map(t=>`{${t}}`):e;for(let s of t)if(Array.isArray(s))for(let t of s)r.push(o(t,e,n));else for(let t of e)!0===n&&"string"==typeof t&&(t=`{${t}}`),r.push(Array.isArray(t)?o(s,t,n):s+t);return i.flatten(r)};t.exports=(t,e={})=>{let n=void 0===e.rangeLimit?1e3:e.rangeLimit,a=(t,u={})=>{t.queue=[];let c=u,l=u.queue;for(;"brace"!==c.type&&"root"!==c.type&&c.parent;)c=c.parent,l=c.queue;if(t.invalid||t.dollar)return void l.push(o(l.pop(),s(t,e)));if("brace"===t.type&&!0!==t.invalid&&2===t.nodes.length)return void l.push(o(l.pop(),["{}"]));if(t.nodes&&t.ranges>0){let a=i.reduce(t.nodes);if(i.exceedsLimit(...a,e.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=r(...a,e);return 0===u.length&&(u=s(t,e)),l.push(o(l.pop(),u)),void(t.nodes=[])}let p=i.encloseBrace(t),h=t.queue,f=t;for(;"brace"!==f.type&&"root"!==f.type&&f.parent;)f=f.parent,h=f.queue;for(let e=0;e<t.nodes.length;e++){let n=t.nodes[e];"comma"!==n.type||"brace"!==t.type?"close"!==n.type?n.value&&"open"!==n.type?h.push(o(h.pop(),n.value)):n.nodes&&a(n,t):l.push(o(l.pop(),h,p)):(1===e&&h.push(""),h.push(""))}return h};return i.flatten(a(t))}},function(t,e,n){"use strict";const r=n(8),{MAX_LENGTH:s,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_LEFT_PARENTHESES:c,CHAR_RIGHT_PARENTHESES:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:_,CHAR_NO_BREAK_SPACE:m,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=n(49);t.exports=(t,e={})=>{if("string"!=typeof t)throw new TypeError("Expected a string");let n=e||{},b="number"==typeof n.maxLength?Math.min(s,n.maxLength):s;if(t.length>b)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${b})`);let v,S={type:"root",input:t,nodes:[]},E=[S],A=S,x=S,w=0,R=t.length,C=0,O=0;const k=()=>t[C++],L=t=>{if("text"===t.type&&"dot"===x.type&&(x.type="text"),!x||"text"!==x.type||"text"!==t.type)return A.nodes.push(t),t.parent=A,t.prev=x,x=t,t;x.value+=t.value};for(L({type:"bos"});C<R;)if(A=E[E.length-1],v=k(),v!==y&&v!==m)if(v!==i)if(v!==d)if(v!==f)if(v!==c)if(v!==l)if(v!==g&&v!==_&&v!==o)if(v!==p)if(v!==h)if(v===a&&O>0){if(A.ranges>0){A.ranges=0;let t=A.nodes.shift();A.nodes=[t,{type:"text",value:r(A)}]}L({type:"comma",value:v}),A.commas++}else if(v===u&&O>0&&0===A.commas){let t=A.nodes;if(0===O||0===t.length){L({type:"text",value:v});continue}if("dot"===x.type){if(A.range=[],x.value+=v,x.type="range",3!==A.nodes.length&&5!==A.nodes.length){A.invalid=!0,A.ranges=0,x.type="text";continue}A.ranges++,A.args=[];continue}if("range"===x.type){t.pop();let e=t[t.length-1];e.value+=x.value+v,x=e,A.ranges--;continue}L({type:"dot",value:v})}else L({type:"text",value:v});else{if("brace"!==A.type){L({type:"text",value:v});continue}let t="close";A=E.pop(),A.close=!0,L({type:t,value:v}),O--,A=E[E.length-1]}else{O++;let t=x.value&&"$"===x.value.slice(-1)||!0===A.dollar;A=L({type:"brace",open:!0,close:!1,dollar:t,depth:O,commas:0,ranges:0,nodes:[]}),E.push(A),L({type:"open",value:v})}else{let t,n=v;for(!0!==e.keepQuotes&&(v="");C<R&&(t=k());)if(t!==i){if(t===n){!0===e.keepQuotes&&(v+=t);break}v+=t}else v+=t+k();L({type:"text",value:v})}else{if("paren"!==A.type){L({type:"text",value:v});continue}A=E.pop(),L({type:"text",value:v}),A=E[E.length-1]}else A=L({type:"paren",nodes:[]}),E.push(A),L({type:"text",value:v});else{w++;let t;for(;C<R&&(t=k());)if(v+=t,t!==f)if(t!==i){if(t===d&&(w--,0===w))break}else v+=k();else w++;L({type:"text",value:v})}else L({type:"text",value:"\\"+v});else L({type:"text",value:(e.keepEscaping?v:"")+k()});do{if(A=E.pop(),"root"!==A.type){A.nodes.forEach(t=>{t.nodes||("open"===t.type&&(t.isOpen=!0),"close"===t.type&&(t.isClose=!0),t.nodes||(t.type="text"),t.invalid=!0)});let t=E[E.length-1],e=t.nodes.indexOf(A);t.nodes.splice(e,1,...A.nodes)}}while(E.length>0);return L({type:"eos"}),S}},function(t,e,n){"use strict";t.exports={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},function(t,e,n){"use strict";const r=n(0),s=n(51),i=n(52),o=n(6),a=n(7),u=(t,e,n=!1)=>{if(Array.isArray(t)){const r=t.map(t=>u(t,e,n));return t=>{for(const e of r){const n=e(t);if(n)return n}return!1}}const r=(s=t)&&"object"==typeof s&&!Array.isArray(s)&&t.tokens&&t.input;var s;if(""===t||"string"!=typeof t&&!r)throw new TypeError("Expected pattern to be a non-empty string");const i=e||{},a=o.isWindows(e),c=r?u.compileRe(t,e):u.makeRe(t,e,!1,!0),l=c.state;delete c.state;let p=()=>!1;if(i.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};p=u(i.ignore,t,n)}const h=(n,r=!1)=>{const{isMatch:s,match:o,output:h}=u.test(n,c,e,{glob:t,posix:a}),f={glob:t,state:l,regex:c,posix:a,input:n,output:h,match:o,isMatch:s};return"function"==typeof i.onResult&&i.onResult(f),!1===s?(f.isMatch=!1,!!r&&f):p(n)?("function"==typeof i.onIgnore&&i.onIgnore(f),f.isMatch=!1,!!r&&f):("function"==typeof i.onMatch&&i.onMatch(f),!r||f)};return n&&(h.state=l),h};u.test=(t,e,n,{glob:r,posix:s}={})=>{if("string"!=typeof t)throw new TypeError("Expected input to be a string");if(""===t)return{isMatch:!1,output:""};const i=n||{},a=i.format||(s?o.toPosixSlashes:null);let c=t===r,l=c&&a?a(t):t;return!1===c&&(l=a?a(t):t,c=l===r),!1!==c&&!0!==i.capture||(c=!0===i.matchBase||!0===i.basename?u.matchBase(t,e,n,s):e.exec(l)),{isMatch:Boolean(c),match:c,output:l}},u.matchBase=(t,e,n,s=o.isWindows(n))=>(e instanceof RegExp?e:u.makeRe(e,n)).test(r.basename(t)),u.isMatch=(t,e,n)=>u(e,n)(t),u.parse=(t,e)=>Array.isArray(t)?t.map(t=>u.parse(t,e)):i(t,{...e,fastpaths:!1}),u.scan=(t,e)=>s(t,e),u.compileRe=(t,e,n=!1,r=!1)=>{if(!0===n)return t.output;const s=e||{},i=s.contains?"":"^",o=s.contains?"":"$";let a=`${i}(?:${t.output})${o}`;t&&!0===t.negated&&(a=`^(?!${a}).*$`);const c=u.toRegex(a,e);return!0===r&&(c.state=t),c},u.makeRe=(t,e,n=!1,r=!1)=>{if(!t||"string"!=typeof t)throw new TypeError("Expected a non-empty string");const s=e||{};let o,a={negated:!1,fastpaths:!0},c="";return t.startsWith("./")&&(t=t.slice(2),c=a.prefix="./"),!1===s.fastpaths||"."!==t[0]&&"*"!==t[0]||(o=i.fastpaths(t,e)),void 0===o?(a=i(t,e),a.prefix=c+(a.prefix||"")):a.output=o,u.compileRe(a,e,n,r)},u.toRegex=(t,e)=>{try{const n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(t){if(e&&!0===e.debug)throw t;return/$^/}},u.constants=a,t.exports=u},function(t,e,n){"use strict";const r=n(6),{CHAR_ASTERISK:s,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:u,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:_,CHAR_RIGHT_PARENTHESES:m,CHAR_RIGHT_SQUARE_BRACKET:y}=n(7),b=t=>t===l||t===o,v=t=>{!0!==t.isPrefix&&(t.depth=t.isGlobstar?1/0:1)};t.exports=(t,e)=>{const n=e||{},S=t.length-1,E=!0===n.parts||!0===n.scanT