@modern-js/utils 2.69.7 → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/dist/cjs/cli/alias.js +76 -70
  2. package/dist/cjs/cli/applyOptionsChain.js +44 -45
  3. package/dist/cjs/cli/babel.js +100 -119
  4. package/dist/cjs/cli/commands.js +61 -59
  5. package/dist/cjs/cli/common.js +45 -37
  6. package/dist/cjs/cli/config.js +36 -30
  7. package/dist/cjs/cli/constants.js +124 -161
  8. package/dist/cjs/cli/ensure.js +52 -45
  9. package/dist/cjs/cli/fs.js +41 -38
  10. package/dist/cjs/cli/get/config.js +43 -38
  11. package/dist/cjs/cli/get/data.js +108 -125
  12. package/dist/cjs/cli/get/index.js +109 -58
  13. package/dist/cjs/cli/index.js +202 -63
  14. package/dist/cjs/cli/is/config.js +75 -71
  15. package/dist/cjs/cli/is/env.js +49 -37
  16. package/dist/cjs/cli/is/index.js +76 -25
  17. package/dist/cjs/cli/is/project.js +139 -135
  18. package/dist/cjs/cli/is/type.js +65 -49
  19. package/dist/cjs/cli/logger.js +36 -27
  20. package/dist/cjs/cli/monorepo.js +100 -96
  21. package/dist/cjs/cli/package.js +85 -82
  22. package/dist/cjs/cli/path.js +101 -82
  23. package/dist/cjs/cli/port.js +71 -74
  24. package/dist/cjs/cli/prettyInstructions.js +106 -116
  25. package/dist/cjs/cli/require.js +116 -136
  26. package/dist/cjs/cli/route.js +67 -77
  27. package/dist/cjs/cli/runtimeExports.js +16 -70
  28. package/dist/cjs/cli/version.js +53 -42
  29. package/dist/cjs/cli/watch.js +79 -72
  30. package/dist/cjs/compiled.js +199 -128
  31. package/dist/cjs/import.js +58 -33
  32. package/dist/cjs/index.js +69 -23
  33. package/dist/cjs/universal/constants.js +77 -67
  34. package/dist/cjs/universal/index.js +33 -25
  35. package/dist/cjs/universal/path.js +33 -27
  36. package/dist/cjs/universal/pluginDagSort.js +69 -68
  37. package/dist/compiled/address/index.js +171 -1
  38. package/dist/compiled/browserslist/index.js +1329 -1
  39. package/dist/compiled/chalk/index.js +2368 -1
  40. package/dist/compiled/chokidar/index.js +4138 -16
  41. package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
  42. package/dist/compiled/commander/index.js +1540 -1
  43. package/dist/compiled/debug/index.js +621 -1
  44. package/dist/compiled/dotenv/index.js +101 -1
  45. package/dist/compiled/dotenv-expand/index.js +54 -1
  46. package/dist/compiled/execa/index.js +1738 -1
  47. package/dist/compiled/fast-glob/index.js +4645 -17
  48. package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
  49. package/dist/compiled/filesize/index.js +193 -4
  50. package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
  51. package/dist/compiled/fs-extra/index.js +2222 -1
  52. package/dist/compiled/glob/index.js +2011 -1
  53. package/dist/compiled/globby/index.js +690 -1
  54. package/dist/compiled/gzip-size/index.js +157 -1
  55. package/dist/compiled/import-lazy/index.js +45 -1
  56. package/dist/compiled/inquirer/index.js +20162 -4
  57. package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
  58. package/dist/compiled/js-yaml/index.js +2188 -1
  59. package/dist/compiled/json5/index.js +983 -1
  60. package/dist/compiled/lodash/index.js +0 -4
  61. package/dist/compiled/mime-types/index.js +108 -6
  62. package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
  63. package/dist/compiled/minimist/index.js +202 -1
  64. package/dist/compiled/nanoid/index.js +83 -1
  65. package/dist/compiled/ora/index.js +3936 -3
  66. package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
  67. package/dist/compiled/pkg-up/index.js +177 -1
  68. package/dist/compiled/semver/index.js +1779 -1
  69. package/dist/compiled/signale/index.js +1704 -1
  70. package/dist/compiled/slash/index.js +32 -1
  71. package/dist/compiled/strip-ansi/index.js +34 -1
  72. package/dist/compiled/tsconfig-paths/index.js +629 -1
  73. package/dist/compiled/upath/index.js +135 -1
  74. package/dist/compiled/url-join/index.js +61 -1
  75. package/dist/compiled/webpack-chain/index.js +1475 -1
  76. package/dist/esm/cli/alias.mjs +31 -0
  77. package/dist/esm/cli/applyOptionsChain.mjs +16 -0
  78. package/dist/esm/cli/babel.mjs +76 -0
  79. package/dist/esm/cli/commands.mjs +23 -0
  80. package/dist/esm/cli/common.mjs +11 -0
  81. package/dist/esm/cli/config.mjs +5 -0
  82. package/dist/esm/cli/constants.mjs +29 -0
  83. package/dist/esm/cli/ensure.mjs +9 -0
  84. package/dist/esm/cli/fs.mjs +9 -0
  85. package/dist/esm/cli/get/config.mjs +14 -0
  86. package/dist/esm/cli/get/data.mjs +57 -0
  87. package/dist/esm/cli/get/index.mjs +18 -0
  88. package/dist/{esm-node/cli/index.js → esm/cli/index.mjs} +0 -1
  89. package/dist/esm/cli/is/config.mjs +34 -0
  90. package/dist/esm/cli/is/env.mjs +6 -0
  91. package/dist/esm/cli/is/project.mjs +104 -0
  92. package/dist/esm/cli/is/type.mjs +26 -0
  93. package/dist/esm/cli/logger.mjs +2 -0
  94. package/dist/esm/cli/monorepo.mjs +50 -0
  95. package/dist/esm/cli/package.mjs +51 -0
  96. package/dist/esm/cli/path.mjs +35 -0
  97. package/dist/esm/cli/port.mjs +35 -0
  98. package/dist/esm/cli/prettyInstructions.mjs +68 -0
  99. package/dist/esm/cli/require.mjs +79 -0
  100. package/dist/esm/cli/route.mjs +36 -0
  101. package/dist/esm/cli/runtimeExports.mjs +0 -0
  102. package/dist/esm/cli/version.mjs +21 -0
  103. package/dist/esm/cli/watch.mjs +40 -0
  104. package/dist/esm/compiled.mjs +115 -0
  105. package/dist/esm/import.mjs +25 -0
  106. package/dist/esm/universal/constants.mjs +13 -0
  107. package/dist/{esm-node/universal/index.js → esm/universal/index.mjs} +1 -3
  108. package/dist/esm/universal/path.mjs +2 -0
  109. package/dist/esm/universal/pluginDagSort.mjs +41 -0
  110. package/dist/esm-node/cli/alias.mjs +31 -0
  111. package/dist/esm-node/cli/applyOptionsChain.mjs +16 -0
  112. package/dist/esm-node/cli/babel.mjs +76 -0
  113. package/dist/esm-node/cli/commands.mjs +23 -0
  114. package/dist/esm-node/cli/common.mjs +11 -0
  115. package/dist/esm-node/cli/config.mjs +5 -0
  116. package/dist/esm-node/cli/constants.mjs +29 -0
  117. package/dist/esm-node/cli/ensure.mjs +9 -0
  118. package/dist/esm-node/cli/fs.mjs +9 -0
  119. package/dist/esm-node/cli/get/config.mjs +14 -0
  120. package/dist/esm-node/cli/get/data.mjs +57 -0
  121. package/dist/esm-node/cli/get/index.mjs +18 -0
  122. package/dist/esm-node/cli/index.mjs +22 -0
  123. package/dist/esm-node/cli/is/config.mjs +34 -0
  124. package/dist/esm-node/cli/is/env.mjs +6 -0
  125. package/dist/esm-node/cli/is/index.mjs +4 -0
  126. package/dist/esm-node/cli/is/project.mjs +104 -0
  127. package/dist/esm-node/cli/is/type.mjs +26 -0
  128. package/dist/esm-node/cli/logger.mjs +2 -0
  129. package/dist/esm-node/cli/monorepo.mjs +50 -0
  130. package/dist/esm-node/cli/package.mjs +51 -0
  131. package/dist/esm-node/cli/path.mjs +35 -0
  132. package/dist/esm-node/cli/port.mjs +35 -0
  133. package/dist/esm-node/cli/prettyInstructions.mjs +68 -0
  134. package/dist/esm-node/cli/require.mjs +79 -0
  135. package/dist/esm-node/cli/route.mjs +36 -0
  136. package/dist/esm-node/cli/runtimeExports.mjs +0 -0
  137. package/dist/esm-node/cli/version.mjs +21 -0
  138. package/dist/esm-node/cli/watch.mjs +40 -0
  139. package/dist/esm-node/compiled.mjs +115 -0
  140. package/dist/esm-node/import.mjs +25 -0
  141. package/dist/esm-node/index.mjs +3 -0
  142. package/dist/esm-node/universal/constants.mjs +13 -0
  143. package/dist/esm-node/universal/index.mjs +2 -0
  144. package/dist/esm-node/universal/path.mjs +2 -0
  145. package/dist/esm-node/universal/pluginDagSort.mjs +41 -0
  146. package/dist/types/cli/constants.d.ts +2 -26
  147. package/dist/types/cli/get/data.d.ts +0 -1
  148. package/dist/types/cli/index.d.ts +0 -1
  149. package/dist/types/cli/is/config.d.ts +1 -1
  150. package/dist/types/cli/runtimeExports.d.ts +1 -4
  151. package/dist/types/cli/watch.d.ts +1 -1
  152. package/dist/types/compiled.d.ts +0 -5
  153. package/dist/types/universal/constants.d.ts +4 -7
  154. package/package.json +27 -27
  155. package/rslib.config.mts +140 -0
  156. package/dist/cjs/cli/action.js +0 -55
  157. package/dist/cjs/universal/formatWebpack.js +0 -127
  158. package/dist/esm/cli/action.js +0 -68
  159. package/dist/esm/cli/alias.js +0 -43
  160. package/dist/esm/cli/applyOptionsChain.js +0 -29
  161. package/dist/esm/cli/babel.js +0 -122
  162. package/dist/esm/cli/commands.js +0 -39
  163. package/dist/esm/cli/common.js +0 -20
  164. package/dist/esm/cli/config.js +0 -11
  165. package/dist/esm/cli/constants.js +0 -114
  166. package/dist/esm/cli/ensure.js +0 -16
  167. package/dist/esm/cli/fs.js +0 -65
  168. package/dist/esm/cli/get/config.js +0 -19
  169. package/dist/esm/cli/get/data.js +0 -143
  170. package/dist/esm/cli/get/index.js +0 -38
  171. package/dist/esm/cli/index.js +0 -23
  172. package/dist/esm/cli/is/config.js +0 -70
  173. package/dist/esm/cli/is/env.js +0 -22
  174. package/dist/esm/cli/is/index.js +0 -4
  175. package/dist/esm/cli/is/project.js +0 -146
  176. package/dist/esm/cli/is/type.js +0 -39
  177. package/dist/esm/cli/logger.js +0 -5
  178. package/dist/esm/cli/monorepo.js +0 -82
  179. package/dist/esm/cli/package.js +0 -203
  180. package/dist/esm/cli/path.js +0 -66
  181. package/dist/esm/cli/port.js +0 -97
  182. package/dist/esm/cli/prettyInstructions.js +0 -102
  183. package/dist/esm/cli/require.js +0 -235
  184. package/dist/esm/cli/route.js +0 -64
  185. package/dist/esm/cli/runtimeExports.js +0 -44
  186. package/dist/esm/cli/version.js +0 -26
  187. package/dist/esm/cli/watch.js +0 -112
  188. package/dist/esm/compiled.js +0 -66
  189. package/dist/esm/import.js +0 -11
  190. package/dist/esm/index.js +0 -3
  191. package/dist/esm/universal/constants.js +0 -32
  192. package/dist/esm/universal/formatWebpack.js +0 -95
  193. package/dist/esm/universal/index.js +0 -4
  194. package/dist/esm/universal/path.js +0 -6
  195. package/dist/esm/universal/pluginDagSort.js +0 -73
  196. package/dist/esm-node/cli/action.js +0 -30
  197. package/dist/esm-node/cli/alias.js +0 -40
  198. package/dist/esm-node/cli/applyOptionsChain.js +0 -27
  199. package/dist/esm-node/cli/babel.js +0 -107
  200. package/dist/esm-node/cli/commands.js +0 -39
  201. package/dist/esm-node/cli/common.js +0 -15
  202. package/dist/esm-node/cli/config.js +0 -9
  203. package/dist/esm-node/cli/constants.js +0 -114
  204. package/dist/esm-node/cli/ensure.js +0 -14
  205. package/dist/esm-node/cli/fs.js +0 -18
  206. package/dist/esm-node/cli/get/config.js +0 -19
  207. package/dist/esm-node/cli/get/data.js +0 -96
  208. package/dist/esm-node/cli/get/index.js +0 -22
  209. package/dist/esm-node/cli/is/config.js +0 -50
  210. package/dist/esm-node/cli/is/env.js +0 -12
  211. package/dist/esm-node/cli/is/project.js +0 -105
  212. package/dist/esm-node/cli/is/type.js +0 -36
  213. package/dist/esm-node/cli/logger.js +0 -5
  214. package/dist/esm-node/cli/monorepo.js +0 -67
  215. package/dist/esm-node/cli/package.js +0 -66
  216. package/dist/esm-node/cli/path.js +0 -48
  217. package/dist/esm-node/cli/port.js +0 -48
  218. package/dist/esm-node/cli/prettyInstructions.js +0 -90
  219. package/dist/esm-node/cli/require.js +0 -111
  220. package/dist/esm-node/cli/route.js +0 -60
  221. package/dist/esm-node/cli/runtimeExports.js +0 -38
  222. package/dist/esm-node/cli/version.js +0 -26
  223. package/dist/esm-node/cli/watch.js +0 -45
  224. package/dist/esm-node/compiled.js +0 -66
  225. package/dist/esm-node/import.js +0 -11
  226. package/dist/esm-node/universal/constants.js +0 -32
  227. package/dist/esm-node/universal/formatWebpack.js +0 -102
  228. package/dist/esm-node/universal/path.js +0 -6
  229. package/dist/esm-node/universal/pluginDagSort.js +0 -50
  230. package/dist/types/cli/action.d.ts +0 -2
  231. package/dist/types/universal/formatWebpack.d.ts +0 -26
  232. /package/dist/{esm-node/cli/is/index.js → esm/cli/is/index.mjs} +0 -0
  233. /package/dist/{esm-node/index.js → esm/index.mjs} +0 -0
@@ -1,37 +1,4665 @@
1
- (()=>{var t={6491:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},6325:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const r=process.versions.node.split(".");if(r[0]===undefined||r[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const n=Number.parseInt(r[0],10);const s=Number.parseInt(r[1],10);const i=10;const o=10;const a=n>i;const u=n===i&&s>=o;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||u},1659:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.scandirSync=e.scandir=void 0;const n=r(4715);const s=r(8907);const i=r(3486);e.Settings=i.default;function scandir(t,e,r){if(typeof e==="function"){n.read(t,getSettings(),e);return}n.read(t,getSettings(e),r)}e.scandir=scandir;function scandirSync(t,e){const r=getSettings(e);return s.read(t,r)}e.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},4715:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(3645);const s=r(5341);const i=r(6325);const o=r(946);const a=r(3253);function read(t,e,r){if(!e.stats&&i.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(t,e,r);return}readdir(t,e,r)}e.read=read;function readdirWithFileTypes(t,e,r){e.fs.readdir(t,{withFileTypes:true},((n,i)=>{if(n!==null){callFailureCallback(r,n);return}const o=i.map((r=>({dirent:r,name:r.name,path:a.joinPathSegments(t,r.name,e.pathSegmentSeparator)})));if(!e.followSymbolicLinks){callSuccessCallback(r,o);return}const u=o.map((t=>makeRplTaskEntry(t,e)));s(u,((t,e)=>{if(t!==null){callFailureCallback(r,t);return}callSuccessCallback(r,e)}))}))}e.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,e){return r=>{if(!t.dirent.isSymbolicLink()){r(null,t);return}e.fs.stat(t.path,((n,s)=>{if(n!==null){if(e.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,t);return}t.dirent=o.fs.createDirentFromStats(t.name,s);r(null,t)}))}}function readdir(t,e,r){e.fs.readdir(t,((i,u)=>{if(i!==null){callFailureCallback(r,i);return}const c=u.map((r=>{const s=a.joinPathSegments(t,r,e.pathSegmentSeparator);return t=>{n.stat(s,e.fsStatSettings,((n,i)=>{if(n!==null){t(n);return}const a={name:r,path:s,dirent:o.fs.createDirentFromStats(r,i)};if(e.stats){a.stats=i}t(null,a)}))}}));s(c,((t,e)=>{if(t!==null){callFailureCallback(r,t);return}callSuccessCallback(r,e)}))}))}e.readdir=readdir;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},3253:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=void 0;function joinPathSegments(t,e,r){if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},8907:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.readdir=e.readdirWithFileTypes=e.read=void 0;const n=r(3645);const s=r(6325);const i=r(946);const o=r(3253);function read(t,e){if(!e.stats&&s.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,e)}return readdir(t,e)}e.read=read;function readdirWithFileTypes(t,e){const r=e.fs.readdirSync(t,{withFileTypes:true});return r.map((r=>{const n={dirent:r,name:r.name,path:o.joinPathSegments(t,r.name,e.pathSegmentSeparator)};if(n.dirent.isSymbolicLink()&&e.followSymbolicLinks){try{const t=e.fs.statSync(n.path);n.dirent=i.fs.createDirentFromStats(n.name,t)}catch(t){if(e.throwErrorOnBrokenSymbolicLink){throw t}}}return n}))}e.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,e){const r=e.fs.readdirSync(t);return r.map((r=>{const s=o.joinPathSegments(t,r,e.pathSegmentSeparator);const a=n.statSync(s,e.fsStatSettings);const u={name:r,path:s,dirent:i.fs.createDirentFromStats(r,a)};if(e.stats){u.stats=a}return u}))}e.readdir=readdir},3486:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1017);const s=r(3645);const i=r(6491);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=i.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new s.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e["default"]=Settings},2926:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{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)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},946:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.fs=void 0;const n=r(2926);e.fs=n},2243:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);e.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function createFileSystemAdapter(t){if(t===undefined){return e.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),t)}e.createFileSystemAdapter=createFileSystemAdapter},3645:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.statSync=e.stat=e.Settings=void 0;const n=r(6948);const s=r(6750);const i=r(1917);e.Settings=i.default;function stat(t,e,r){if(typeof e==="function"){n.read(t,getSettings(),e);return}n.read(t,getSettings(e),r)}e.stat=stat;function statSync(t,e){const r=getSettings(e);return s.read(t,r)}e.statSync=statSync;function getSettings(t={}){if(t instanceof i.default){return t}return new i.default(t)}},6948:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e,r){e.fs.lstat(t,((n,s)=>{if(n!==null){callFailureCallback(r,n);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){callSuccessCallback(r,s);return}e.fs.stat(t,((t,n)=>{if(t!==null){if(e.throwErrorOnBrokenSymbolicLink){callFailureCallback(r,t);return}callSuccessCallback(r,s);return}if(e.markSymbolicLink){n.isSymbolicLink=()=>true}callSuccessCallback(r,n)}))}))}e.read=read;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},6750:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.read=void 0;function read(t,e){const r=e.fs.lstatSync(t);if(!r.isSymbolicLink()||!e.followSymbolicLink){return r}try{const r=e.fs.statSync(t);if(e.markSymbolicLink){r.isSymbolicLink=()=>true}return r}catch(t){if(!e.throwErrorOnBrokenSymbolicLink){return r}throw t}}e.read=read},1917:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2243);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=n.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e["default"]=Settings},4328:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.Settings=e.walkStream=e.walkSync=e.walk=void 0;const n=r(4306);const s=r(2686);const i=r(8918);const o=r(8831);e.Settings=o.default;function walk(t,e,r){if(typeof e==="function"){new n.default(t,getSettings()).read(e);return}new n.default(t,getSettings(e)).read(r)}e.walk=walk;function walkSync(t,e){const r=getSettings(e);const n=new i.default(t,r);return n.read()}e.walkSync=walkSync;function walkStream(t,e){const r=getSettings(e);const n=new s.default(t,r);return n.read()}e.walkStream=walkStream;function getSettings(t={}){if(t instanceof o.default){return t}return new o.default(t)}},4306:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1293);class AsyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings);this._storage=[]}read(t){this._reader.onError((e=>{callFailureCallback(t,e)}));this._reader.onEntry((t=>{this._storage.push(t)}));this._reader.onEnd((()=>{callSuccessCallback(t,this._storage)}));this._reader.read()}}e["default"]=AsyncProvider;function callFailureCallback(t,e){t(e)}function callSuccessCallback(t,e){t(null,e)}},2686:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2781);const s=r(1293);class StreamProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new s.default(this._root,this._settings);this._stream=new n.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((t=>{this._stream.emit("error",t)}));this._reader.onEntry((t=>{this._stream.push(t)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}e["default"]=StreamProvider},8918:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(9476);class SyncProvider{constructor(t,e){this._root=t;this._settings=e;this._reader=new n.default(this._root,this._settings)}read(){return this._reader.read()}}e["default"]=SyncProvider},1293:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2361);const s=r(1659);const i=r(4241);const o=r(1652);const a=r(8376);class AsyncReader extends a.default{constructor(t,e){super(t,e);this._settings=e;this._scandir=s.scandir;this._emitter=new n.EventEmitter;this._queue=i(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;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 r={directory:t,base:e};this._queue.push(r,(t=>{if(t!==null){this._handleError(t)}}))}_worker(t,e){this._scandir(t.directory,this._settings.fsScandirSettings,((r,n)=>{if(r!==null){e(r,undefined);return}for(const e of n){this._handleEntry(e,t.base)}e(null,undefined)}))}_handleError(t){if(this._isDestroyed||!o.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,e){if(this._isDestroyed||this._isFatalError){return}const r=t.path;if(e!==undefined){t.path=o.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(o.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&o.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,e===undefined?undefined:t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}e["default"]=AsyncReader},1652:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function isFatalError(t,e){if(t.errorFilter===null){return true}return!t.errorFilter(e)}e.isFatalError=isFatalError;function isAppliedFilter(t,e){return t===null||t(e)}e.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,e){return t.split(/[/\\]/).join(e)}e.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,e,r){if(t===""){return e}if(t.endsWith(r)){return t+e}return t+r+e}e.joinPathSegments=joinPathSegments},8376:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1652);class Reader{constructor(t,e){this._root=t;this._settings=e;this._root=n.replacePathSegmentSeparator(t,e.pathSegmentSeparator)}}e["default"]=Reader},9476:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1659);const s=r(1652);const i=r(8376);class SyncReader extends i.default{constructor(){super(...arguments);this._scandir=n.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(t,e){this._queue.add({directory:t,base:e})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,e){try{const r=this._scandir(t,this._settings.fsScandirSettings);for(const t of r){this._handleEntry(t,e)}}catch(t){this._handleError(t)}}_handleError(t){if(!s.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,e){const r=t.path;if(e!==undefined){t.path=s.joinPathSegments(e,t.name,this._settings.pathSegmentSeparator)}if(s.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&s.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(r,e===undefined?undefined:t.path)}}_pushToStorage(t){this._storage.push(t)}}e["default"]=SyncReader},8831:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1017);const s=r(1659);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,n.sep);this.fsScandirSettings=new s.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,e){return t!==null&&t!==void 0?t:e}}e["default"]=Settings},1570:(t,e,r)=>{"use strict";const n=r(3625);const s=r(4666);const i=r(6183);const o=r(2467);const braces=(t,e={})=>{let r=[];if(Array.isArray(t)){for(let n of t){let t=braces.create(n,e);if(Array.isArray(t)){r.push(...t)}else{r.push(t)}}}else{r=[].concat(braces.create(t,e))}if(e&&e.expand===true&&e.nodupes===true){r=[...new Set(r)]}return r};braces.parse=(t,e={})=>o(t,e);braces.stringify=(t,e={})=>{if(typeof t==="string"){return n(braces.parse(t,e),e)}return n(t,e)};braces.compile=(t,e={})=>{if(typeof t==="string"){t=braces.parse(t,e)}return s(t,e)};braces.expand=(t,e={})=>{if(typeof t==="string"){t=braces.parse(t,e)}let r=i(t,e);if(e.noempty===true){r=r.filter(Boolean)}if(e.nodupes===true){r=[...new Set(r)]}return r};braces.create=(t,e={})=>{if(t===""||t.length<3){return[t]}return e.expand!==true?braces.compile(t,e):braces.expand(t,e)};t.exports=braces},4666:(t,e,r)=>{"use strict";const n=r(442);const s=r(2456);const compile=(t,e={})=>{let walk=(t,r={})=>{let i=s.isInvalidBrace(r);let o=t.invalid===true&&e.escapeInvalid===true;let a=i===true||o===true;let u=e.escapeInvalid===true?"\\":"";let c="";if(t.isOpen===true){return u+t.value}if(t.isClose===true){return u+t.value}if(t.type==="open"){return a?u+t.value:"("}if(t.type==="close"){return a?u+t.value:")"}if(t.type==="comma"){return t.prev.type==="comma"?"":a?t.value:"|"}if(t.value){return t.value}if(t.nodes&&t.ranges>0){let r=s.reduce(t.nodes);let i=n(...r,{...e,wrap:false,toRegex:true});if(i.length!==0){return r.length>1&&i.length>1?`(${i})`:i}}if(t.nodes){for(let e of t.nodes){c+=walk(e,t)}}return c};return walk(t)};t.exports=compile},487:t=>{"use strict";t.exports={MAX_LENGTH:1024*64,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"}},6183:(t,e,r)=>{"use strict";const n=r(442);const s=r(3625);const i=r(2456);const append=(t="",e="",r=false)=>{let n=[];t=[].concat(t);e=[].concat(e);if(!e.length)return t;if(!t.length){return r?i.flatten(e).map((t=>`{${t}}`)):e}for(let s of t){if(Array.isArray(s)){for(let t of s){n.push(append(t,e,r))}}else{for(let t of e){if(r===true&&typeof t==="string")t=`{${t}}`;n.push(Array.isArray(t)?append(s,t,r):s+t)}}}return i.flatten(n)};const expand=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit;let walk=(t,o={})=>{t.queue=[];let a=o;let u=o.queue;while(a.type!=="brace"&&a.type!=="root"&&a.parent){a=a.parent;u=a.queue}if(t.invalid||t.dollar){u.push(append(u.pop(),s(t,e)));return}if(t.type==="brace"&&t.invalid!==true&&t.nodes.length===2){u.push(append(u.pop(),["{}"]));return}if(t.nodes&&t.ranges>0){let o=i.reduce(t.nodes);if(i.exceedsLimit(...o,e.step,r)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let a=n(...o,e);if(a.length===0){a=s(t,e)}u.push(append(u.pop(),a));t.nodes=[];return}let c=i.encloseBrace(t);let l=t.queue;let f=t;while(f.type!=="brace"&&f.type!=="root"&&f.parent){f=f.parent;l=f.queue}for(let e=0;e<t.nodes.length;e++){let r=t.nodes[e];if(r.type==="comma"&&t.type==="brace"){if(e===1)l.push("");l.push("");continue}if(r.type==="close"){u.push(append(u.pop(),l,c));continue}if(r.value&&r.type!=="open"){l.push(append(l.pop(),r.value));continue}if(r.nodes){walk(r,t)}}return l};return i.flatten(walk(t))};t.exports=expand},2467:(t,e,r)=>{"use strict";const n=r(3625);const{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:f,CHAR_RIGHT_CURLY_BRACE:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:_,CHAR_SINGLE_QUOTE:g,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:S}=r(487);const parse=(t,e={})=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}let r=e||{};let m=typeof r.maxLength==="number"?Math.min(s,r.maxLength):s;if(t.length>m){throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${m})`)}let v={type:"root",input:t,nodes:[]};let E=[v];let A=v;let b=v;let R=0;let P=t.length;let x=0;let k=0;let T;let C={};const advance=()=>t[x++];const push=t=>{if(t.type==="text"&&b.type==="dot"){b.type="text"}if(b&&b.type==="text"&&t.type==="text"){b.value+=t.value;return}A.nodes.push(t);t.parent=A;t.prev=b;b=t;return t};push({type:"bos"});while(x<P){A=E[E.length-1];T=advance();if(T===S||T===y){continue}if(T===i){push({type:"text",value:(e.keepEscaping?T:"")+advance()});continue}if(T===d){push({type:"text",value:"\\"+T});continue}if(T===h){R++;let t=true;let e;while(x<P&&(e=advance())){T+=e;if(e===h){R++;continue}if(e===i){T+=advance();continue}if(e===d){R--;if(R===0){break}}}push({type:"text",value:T});continue}if(T===c){A=push({type:"paren",nodes:[]});E.push(A);push({type:"text",value:T});continue}if(T===l){if(A.type!=="paren"){push({type:"text",value:T});continue}A=E.pop();push({type:"text",value:T});A=E[E.length-1];continue}if(T===_||T===g||T===o){let t=T;let r;if(e.keepQuotes!==true){T=""}while(x<P&&(r=advance())){if(r===i){T+=r+advance();continue}if(r===t){if(e.keepQuotes===true)T+=r;break}T+=r}push({type:"text",value:T});continue}if(T===f){k++;let t=b.value&&b.value.slice(-1)==="$"||A.dollar===true;let e={type:"brace",open:true,close:false,dollar:t,depth:k,commas:0,ranges:0,nodes:[]};A=push(e);E.push(A);push({type:"open",value:T});continue}if(T===p){if(A.type!=="brace"){push({type:"text",value:T});continue}let t="close";A=E.pop();A.close=true;push({type:t,value:T});k--;A=E[E.length-1];continue}if(T===a&&k>0){if(A.ranges>0){A.ranges=0;let t=A.nodes.shift();A.nodes=[t,{type:"text",value:n(A)}]}push({type:"comma",value:T});A.commas++;continue}if(T===u&&k>0&&A.commas===0){let t=A.nodes;if(k===0||t.length===0){push({type:"text",value:T});continue}if(b.type==="dot"){A.range=[];b.value+=T;b.type="range";if(A.nodes.length!==3&&A.nodes.length!==5){A.invalid=true;A.ranges=0;b.type="text";continue}A.ranges++;A.args=[];continue}if(b.type==="range"){t.pop();let e=t[t.length-1];e.value+=b.value+T;b=e;A.ranges--;continue}push({type:"dot",value:T});continue}push({type:"text",value:T})}do{A=E.pop();if(A.type!=="root"){A.nodes.forEach((t=>{if(!t.nodes){if(t.type==="open")t.isOpen=true;if(t.type==="close")t.isClose=true;if(!t.nodes)t.type="text";t.invalid=true}}));let t=E[E.length-1];let e=t.nodes.indexOf(A);t.nodes.splice(e,1,...A.nodes)}}while(E.length>0);push({type:"eos"});return v};t.exports=parse},3625:(t,e,r)=>{"use strict";const n=r(2456);t.exports=(t,e={})=>{let stringify=(t,r={})=>{let s=e.escapeInvalid&&n.isInvalidBrace(r);let i=t.invalid===true&&e.escapeInvalid===true;let o="";if(t.value){if((s||i)&&n.isOpenOrClose(t)){return"\\"+t.value}return t.value}if(t.value){return t.value}if(t.nodes){for(let e of t.nodes){o+=stringify(e)}}return o};return stringify(t)}},2456:(t,e)=>{"use strict";e.isInteger=t=>{if(typeof t==="number"){return Number.isInteger(t)}if(typeof t==="string"&&t.trim()!==""){return Number.isInteger(Number(t))}return false};e.find=(t,e)=>t.nodes.find((t=>t.type===e));e.exceedsLimit=(t,r,n=1,s)=>{if(s===false)return false;if(!e.isInteger(t)||!e.isInteger(r))return false;return(Number(r)-Number(t))/Number(n)>=s};e.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];if(!n)return;if(r&&n.type===r||n.type==="open"||n.type==="close"){if(n.escaped!==true){n.value="\\"+n.value;n.escaped=true}}};e.encloseBrace=t=>{if(t.type!=="brace")return false;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}return false};e.isInvalidBrace=t=>{if(t.type!=="brace")return false;if(t.invalid===true||t.dollar)return true;if(t.commas>>0+t.ranges>>0===0){t.invalid=true;return true}if(t.open!==true||t.close!==true){t.invalid=true;return true}return false};e.isOpenOrClose=t=>{if(t.type==="open"||t.type==="close"){return true}return t.open===true||t.close===true};e.reduce=t=>t.reduce(((t,e)=>{if(e.type==="text")t.push(e.value);if(e.type==="range")e.type="text";return t}),[]);e.flatten=(...t)=>{const e=[];const flat=t=>{for(let r=0;r<t.length;r++){let n=t[r];Array.isArray(n)?flat(n,e):n!==void 0&&e.push(n)}return e};flat(t);return e}},3924:(t,e,r)=>{"use strict";const n=r(2291);const s=r(8620);const i=r(7900);const o=r(5407);const a=r(1066);const u=r(7190);const c=r(3828);async function FastGlob(t,e){assertPatternsInput(t);const r=getWorks(t,i.default,e);const n=await Promise.all(r);return c.array.flatten(n)}(function(t){function sync(t,e){assertPatternsInput(t);const r=getWorks(t,a.default,e);return c.array.flatten(r)}t.sync=sync;function stream(t,e){assertPatternsInput(t);const r=getWorks(t,o.default,e);return c.stream.merge(r)}t.stream=stream;function generateTasks(t,e){assertPatternsInput(t);const r=s.transform([].concat(t));const i=new u.default(e);return n.generate(r,i)}t.generateTasks=generateTasks;function isDynamicPattern(t,e){assertPatternsInput(t);const r=new u.default(e);return c.pattern.isDynamicPattern(t,r)}t.isDynamicPattern=isDynamicPattern;function escapePath(t){assertPatternsInput(t);return c.path.escape(t)}t.escapePath=escapePath})(FastGlob||(FastGlob={}));function getWorks(t,e,r){const i=s.transform([].concat(t));const o=new u.default(r);const a=n.generate(i,o);const c=new e(o);return a.map(c.read,c)}function assertPatternsInput(t){const e=[].concat(t);const r=e.every((t=>c.string.isString(t)&&!c.string.isEmpty(t)));if(!r){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}t.exports=FastGlob},8620:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeDuplicateSlashes=e.transform=void 0;const r=/(?!^)\/{2,}/g;function transform(t){return t.map((t=>removeDuplicateSlashes(t)))}e.transform=transform;function removeDuplicateSlashes(t){return t.replace(r,"/")}e.removeDuplicateSlashes=removeDuplicateSlashes},2291:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;const n=r(3828);function generate(t,e){const r=getPositivePatterns(t);const s=getNegativePatternsAsPositive(t,e.ignore);const i=r.filter((t=>n.pattern.isStaticPattern(t,e)));const o=r.filter((t=>n.pattern.isDynamicPattern(t,e)));const a=convertPatternsToTasks(i,s,false);const u=convertPatternsToTasks(o,s,true);return a.concat(u)}e.generate=generate;function convertPatternsToTasks(t,e,r){const s=[];const i=n.pattern.getPatternsOutsideCurrentDirectory(t);const o=n.pattern.getPatternsInsideCurrentDirectory(t);const a=groupPatternsByBaseDirectory(i);const u=groupPatternsByBaseDirectory(o);s.push(...convertPatternGroupsToTasks(a,e,r));if("."in u){s.push(convertPatternGroupToTask(".",o,e,r))}else{s.push(...convertPatternGroupsToTasks(u,e,r))}return s}e.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return n.pattern.getPositivePatterns(t)}e.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,e){const r=n.pattern.getNegativePatterns(t).concat(e);const s=r.map(n.pattern.convertToPositivePattern);return s}e.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){const e={};return t.reduce(((t,e)=>{const r=n.pattern.getBaseDirectory(e);if(r in t){t[r].push(e)}else{t[r]=[e]}return t}),e)}e.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,e,r){return Object.keys(t).map((n=>convertPatternGroupToTask(n,t[n],e,r)))}e.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,e,r,s){return{dynamic:s,positive:e,negative:r,base:t,patterns:[].concat(e,r.map(n.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=convertPatternGroupToTask},7900:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(8075);const s=r(8845);class ProviderAsync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=[];return new Promise(((s,i)=>{const o=this.api(e,t,r);o.once("error",i);o.on("data",(t=>n.push(r.transform(t))));o.once("end",(()=>s(n)))}))}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e["default"]=ProviderAsync},4292:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3828);const s=r(5995);class DeepFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e}getFilter(t,e,r){const n=this._getMatcher(e);const s=this._getNegativePatternsRe(r);return e=>this._filter(t,e,n,s)}_getMatcher(t){return new s.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){const e=t.filter(n.pattern.isAffectDepthOfReadingPattern);return n.pattern.convertPatternsToRe(e,this._micromatchOptions)}_filter(t,e,r,s){if(this._isSkippedByDeep(t,e.path)){return false}if(this._isSkippedSymbolicLink(e)){return false}const i=n.path.removeLeadingDotSegment(e.path);if(this._isSkippedByPositivePatterns(i,r)){return false}return this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(t,e){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(t,e)>=this._settings.deep}_getEntryLevel(t,e){const r=e.split("/").length;if(t===""){return r}const n=t.split("/").length;return r-n}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,e){return!this._settings.baseNameMatch&&!e.match(t)}_isSkippedByNegativePatterns(t,e){return!n.pattern.matchAny(t,e)}}e["default"]=DeepFilter},659:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3828);class EntryFilter{constructor(t,e){this._settings=t;this._micromatchOptions=e;this.index=new Map}getFilter(t,e){const r=n.pattern.convertPatternsToRe(t,this._micromatchOptions);const s=n.pattern.convertPatternsToRe(e,this._micromatchOptions);return t=>this._filter(t,r,s)}_filter(t,e,r){if(this._settings.unique&&this._isDuplicateEntry(t)){return false}if(this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)){return false}if(this._isSkippedByAbsoluteNegativePatterns(t.path,r)){return false}const n=this._settings.baseNameMatch?t.name:t.path;const s=this._isMatchToPatterns(n,e)&&!this._isMatchToPatterns(t.path,r);if(this._settings.unique&&s){this._createIndexRecord(t)}return s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,undefined)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,e){if(!this._settings.absolute){return false}const r=n.path.makeAbsolute(this._settings.cwd,t);return n.pattern.matchAny(r,e)}_isMatchToPatterns(t,e){const r=n.path.removeLeadingDotSegment(t);return n.pattern.matchAny(r,e)||n.pattern.matchAny(r+"/",e)}}e["default"]=EntryFilter},9558:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3828);class ErrorFilter{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return n.errno.isEnoentCodeError(t)||this._settings.suppressErrors}}e["default"]=ErrorFilter},8302:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3828);class Matcher{constructor(t,e,r){this._patterns=t;this._settings=e;this._micromatchOptions=r;this._storage=[];this._fillStorage()}_fillStorage(){const t=n.pattern.expandPatternsWithBraceExpansion(this._patterns);for(const e of t){const t=this._getPatternSegments(e);const r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r})}}_getPatternSegments(t){const e=n.pattern.getPatternParts(t,this._micromatchOptions);return e.map((t=>{const e=n.pattern.isDynamicPattern(t,this._settings);if(!e){return{dynamic:false,pattern:t}}return{dynamic:true,pattern:t,patternRe:n.pattern.makeRe(t,this._micromatchOptions)}}))}_splitSegmentsIntoSections(t){return n.array.splitWhen(t,(t=>t.dynamic&&n.pattern.hasGlobStar(t.pattern)))}}e["default"]=Matcher},5995:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(8302);class PartialMatcher extends n.default{match(t){const e=t.split("/");const r=e.length;const n=this._storage.filter((t=>!t.complete||t.segments.length>r));for(const t of n){const n=t.sections[0];if(!t.complete&&r>n.length){return true}const s=e.every(((e,r)=>{const n=t.segments[r];if(n.dynamic&&n.patternRe.test(e)){return true}if(!n.dynamic&&n.pattern===e){return true}return false}));if(s){return true}}return false}}e["default"]=PartialMatcher},8845:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1017);const s=r(4292);const i=r(659);const o=r(9558);const a=r(8460);class Provider{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 n.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:true,strictSlashes:false}}}e["default"]=Provider},5407:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2781);const s=r(8075);const i=r(8845);class ProviderStream extends i.default{constructor(){super(...arguments);this._reader=new s.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const s=this.api(e,t,r);const i=new n.Readable({objectMode:true,read:()=>{}});s.once("error",(t=>i.emit("error",t))).on("data",(t=>i.emit("data",r.transform(t)))).once("end",(()=>i.emit("end")));i.once("close",(()=>s.destroy()));return i}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e["default"]=ProviderStream},1066:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(8110);const s=r(8845);class ProviderSync extends s.default{constructor(){super(...arguments);this._reader=new n.default(this._settings)}read(t){const e=this._getRootDirectory(t);const r=this._getReaderOptions(t);const n=this.api(e,t,r);return n.map(r.transform)}api(t,e,r){if(e.dynamic){return this._reader.dynamic(t,r)}return this._reader.static(e.patterns,r)}}e["default"]=ProviderSync},8460:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3828);class EntryTransformer{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let e=t.path;if(this._settings.absolute){e=n.path.makeAbsolute(this._settings.cwd,e);e=n.path.unixify(e)}if(this._settings.markDirectories&&t.dirent.isDirectory()){e+="/"}if(!this._settings.objectMode){return e}return Object.assign(Object.assign({},t),{path:e})}}e["default"]=EntryTransformer},5906:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(1017);const s=r(3645);const i=r(3828);class Reader{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 n.resolve(this._settings.cwd,t)}_makeEntry(t,e){const r={name:e,path:e,dirent:i.fs.createDirentFromStats(e,t)};if(this._settings.stats){r.stats=t}return r}_isFatalError(t){return!i.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}}e["default"]=Reader},8075:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(2781);const s=r(3645);const i=r(4328);const o=r(5906);class ReaderStream 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 r=t.map(this._getFullEntryPath,this);const s=new n.PassThrough({objectMode:true});s._write=(n,i,o)=>this._getEntry(r[n],t[n],e).then((t=>{if(t!==null&&e.entryFilter(t)){s.push(t)}if(n===r.length-1){s.end()}o()})).catch(o);for(let t=0;t<r.length;t++){s.write(t)}return s}_getEntry(t,e,r){return this._getStat(t).then((t=>this._makeEntry(t,e))).catch((t=>{if(r.errorFilter(t)){return null}throw t}))}_getStat(t){return new Promise(((e,r)=>{this._stat(t,this._fsStatSettings,((t,n)=>t===null?e(n):r(t)))}))}}e["default"]=ReaderStream},8110:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});const n=r(3645);const s=r(4328);const i=r(5906);class ReaderSync extends i.default{constructor(){super(...arguments);this._walkSync=s.walkSync;this._statSync=n.statSync}dynamic(t,e){return this._walkSync(t,e)}static(t,e){const r=[];for(const n of t){const t=this._getFullEntryPath(n);const s=this._getEntry(t,n,e);if(s===null||!e.entryFilter(s)){continue}r.push(s)}return r}_getEntry(t,e,r){try{const r=this._getStat(t);return this._makeEntry(r,e)}catch(t){if(r.errorFilter(t)){return null}throw t}}_getStat(t){return this._statSync(t,this._fsStatSettings)}}e["default"]=ReaderSync},7190:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const n=r(7147);const s=r(2037);const i=Math.max(s.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:n.lstat,lstatSync:n.lstatSync,stat:n.stat,statSync:n.statSync,readdir:n.readdir,readdirSync:n.readdirSync};class Settings{constructor(t={}){this._options=t;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,i);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}}_getValue(t,e){return t===undefined?e:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),t)}}e["default"]=Settings},5789:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.splitWhen=e.flatten=void 0;function flatten(t){return t.reduce(((t,e)=>[].concat(t,e)),[])}e.flatten=flatten;function splitWhen(t,e){const r=[[]];let n=0;for(const s of t){if(e(s)){n++;r[n]=[]}else{r[n].push(s)}}return r}e.splitWhen=splitWhen},886:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEnoentCodeError=void 0;function isEnoentCodeError(t){return t.code==="ENOENT"}e.isEnoentCodeError=isEnoentCodeError},9102:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.createDirentFromStats=void 0;class DirentFromStats{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)}}function createDirentFromStats(t,e){return new DirentFromStats(t,e)}e.createDirentFromStats=createDirentFromStats},3828:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;const n=r(5789);e.array=n;const s=r(886);e.errno=s;const i=r(9102);e.fs=i;const o=r(6462);e.path=o;const a=r(2256);e.pattern=a;const u=r(9941);e.stream=u;const c=r(5121);e.string=c},6462:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;const n=r(1017);const s=2;const i=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function unixify(t){return t.replace(/\\/g,"/")}e.unixify=unixify;function makeAbsolute(t,e){return n.resolve(t,e)}e.makeAbsolute=makeAbsolute;function escape(t){return t.replace(i,"\\$2")}e.escape=escape;function removeLeadingDotSegment(t){if(t.charAt(0)==="."){const e=t.charAt(1);if(e==="/"||e==="\\"){return t.slice(s)}}return t}e.removeLeadingDotSegment=removeLeadingDotSegment},2256:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;const n=r(1017);const s=r(5976);const i=r(8627);const o="**";const a="\\";const u=/[*?]|^!/;const c=/\[[^[]*]/;const l=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const f=/[!*+?@]\([^(]*\)/;const p=/,|\.\./;function isStaticPattern(t,e={}){return!isDynamicPattern(t,e)}e.isStaticPattern=isStaticPattern;function isDynamicPattern(t,e={}){if(t===""){return false}if(e.caseSensitiveMatch===false||t.includes(a)){return true}if(u.test(t)||c.test(t)||l.test(t)){return true}if(e.extglob!==false&&f.test(t)){return true}if(e.braceExpansion!==false&&hasBraceExpansion(t)){return true}return false}e.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(t){const e=t.indexOf("{");if(e===-1){return false}const r=t.indexOf("}",e+1);if(r===-1){return false}const n=t.slice(e,r);return p.test(n)}function convertToPositivePattern(t){return isNegativePattern(t)?t.slice(1):t}e.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(t){return"!"+t}e.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(t){return t.startsWith("!")&&t[1]!=="("}e.isNegativePattern=isNegativePattern;function isPositivePattern(t){return!isNegativePattern(t)}e.isPositivePattern=isPositivePattern;function getNegativePatterns(t){return t.filter(isNegativePattern)}e.getNegativePatterns=getNegativePatterns;function getPositivePatterns(t){return t.filter(isPositivePattern)}e.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(t){return t.filter((t=>!isPatternRelatedToParentDirectory(t)))}e.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(t){return t.filter(isPatternRelatedToParentDirectory)}e.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(t){return t.startsWith("..")||t.startsWith("./..")}e.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(t){return s(t,{flipBackslashes:false})}e.getBaseDirectory=getBaseDirectory;function hasGlobStar(t){return t.includes(o)}e.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(t){return t.endsWith("/"+o)}e.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(t){const e=n.basename(t);return endsWithSlashGlobStar(t)||isStaticPattern(e)}e.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(t){return t.reduce(((t,e)=>t.concat(expandBraceExpansion(e))),[])}e.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(t){return i.braces(t,{expand:true,nodupes:true})}e.expandBraceExpansion=expandBraceExpansion;function getPatternParts(t,e){let{parts:r}=i.scan(t,Object.assign(Object.assign({},e),{parts:true}));if(r.length===0){r=[t]}if(r[0].startsWith("/")){r[0]=r[0].slice(1);r.unshift("")}return r}e.getPatternParts=getPatternParts;function makeRe(t,e){return i.makeRe(t,e)}e.makeRe=makeRe;function convertPatternsToRe(t,e){return t.map((t=>makeRe(t,e)))}e.convertPatternsToRe=convertPatternsToRe;function matchAny(t,e){return e.some((e=>e.test(t)))}e.matchAny=matchAny},9941:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.merge=void 0;const n=r(1382);function merge(t){const e=n(t);t.forEach((t=>{t.once("error",(t=>e.emit("error",t)))}));e.once("close",(()=>propagateCloseEventToSources(t)));e.once("end",(()=>propagateCloseEventToSources(t)));return e}e.merge=merge;function propagateCloseEventToSources(t){t.forEach((t=>t.emit("close")))}},5121:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.isEmpty=e.isString=void 0;function isString(t){return typeof t==="string"}e.isString=isString;function isEmpty(t){return t===""}e.isEmpty=isEmpty},4241:(t,e,r)=>{"use strict";var n=r(1816);function fastqueue(t,e,r){if(typeof t==="function"){r=e;e=t;t=null}if(r<1){throw new Error("fastqueue concurrency must be greater than 1")}var s=n(Task);var i=null;var o=null;var a=0;var u=null;var c={push:push,drain:noop,saturated:noop,pause:pause,paused:false,concurrency:r,running:running,resume:resume,idle:idle,length:length,getQueue:getQueue,unshift:unshift,empty:noop,kill:kill,killAndDrain:killAndDrain,error:error};return c;function running(){return a}function pause(){c.paused=true}function length(){var t=i;var e=0;while(t){t=t.next;e++}return e}function getQueue(){var t=i;var e=[];while(t){e.push(t.value);t=t.next}return e}function resume(){if(!c.paused)return;c.paused=false;for(var t=0;t<c.concurrency;t++){a++;release()}}function idle(){return a===0&&c.length()===0}function push(r,n){var l=s.get();l.context=t;l.release=release;l.value=r;l.callback=n||noop;l.errorHandler=u;if(a===c.concurrency||c.paused){if(o){o.next=l;o=l}else{i=l;o=l;c.saturated()}}else{a++;e.call(t,l.value,l.worked)}}function unshift(r,n){var u=s.get();u.context=t;u.release=release;u.value=r;u.callback=n||noop;if(a===c.concurrency||c.paused){if(i){u.next=i;i=u}else{i=u;o=u;c.saturated()}}else{a++;e.call(t,u.value,u.worked)}}function release(r){if(r){s.release(r)}var n=i;if(n){if(!c.paused){if(o===i){o=null}i=n.next;n.next=null;e.call(t,n.value,n.worked);if(o===null){c.empty()}}else{a--}}else if(--a===0){c.drain()}}function kill(){i=null;o=null;c.drain=noop}function killAndDrain(){i=null;o=null;c.drain();c.drain=noop}function error(t){u=t}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var t=this;this.worked=function worked(e,r){var n=t.callback;var s=t.errorHandler;var i=t.value;t.value=null;t.callback=noop;if(t.errorHandler){s(e,i)}n.call(t.context,e,r);t.release(t)}}function queueAsPromised(t,e,r){if(typeof t==="function"){r=e;e=t;t=null}function asyncWrapper(t,r){e.call(this,t).then((function(t){r(null,t)}),r)}var n=fastqueue(t,asyncWrapper,r);var s=n.push;var i=n.unshift;n.push=push;n.unshift=unshift;n.drained=drained;return n;function push(t){var e=new Promise((function(e,r){s(t,(function(t,n){if(t){r(t);return}e(n)}))}));e.catch(noop);return e}function unshift(t){var e=new Promise((function(e,r){i(t,(function(t,n){if(t){r(t);return}e(n)}))}));e.catch(noop);return e}function drained(){var t=n.drain;var e=new Promise((function(e){n.drain=function(){t();e()}}));return e}}t.exports=fastqueue;t.exports.promise=queueAsPromised},442:(t,e,r)=>{"use strict";
2
- /*!
1
+ /*! For license information please see index.js.LICENSE.txt */
2
+ (()=>{
3
+ var t = {
4
+ 6491: (t, e, r)=>{
5
+ "use strict";
6
+ Object.defineProperty(e, "__esModule", {
7
+ value: true
8
+ });
9
+ e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
10
+ const n = r(7147);
11
+ e.FILE_SYSTEM_ADAPTER = {
12
+ lstat: n.lstat,
13
+ stat: n.stat,
14
+ lstatSync: n.lstatSync,
15
+ statSync: n.statSync,
16
+ readdir: n.readdir,
17
+ readdirSync: n.readdirSync
18
+ };
19
+ function createFileSystemAdapter(t) {
20
+ if (void 0 === t) return e.FILE_SYSTEM_ADAPTER;
21
+ return Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
22
+ }
23
+ e.createFileSystemAdapter = createFileSystemAdapter;
24
+ },
25
+ 6325: (t, e)=>{
26
+ "use strict";
27
+ Object.defineProperty(e, "__esModule", {
28
+ value: true
29
+ });
30
+ e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
31
+ const r = process.versions.node.split(".");
32
+ if (void 0 === r[0] || void 0 === r[1]) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
33
+ const n = Number.parseInt(r[0], 10);
34
+ const s = Number.parseInt(r[1], 10);
35
+ const i = 10;
36
+ const o = 10;
37
+ const a = n > i;
38
+ const u = n === i && s >= o;
39
+ e.IS_SUPPORT_READDIR_WITH_FILE_TYPES = a || u;
40
+ },
41
+ 1659: (t, e, r)=>{
42
+ "use strict";
43
+ Object.defineProperty(e, "__esModule", {
44
+ value: true
45
+ });
46
+ e.Settings = e.scandirSync = e.scandir = void 0;
47
+ const n = r(4715);
48
+ const s = r(8907);
49
+ const i = r(3486);
50
+ e.Settings = i.default;
51
+ function scandir(t, e, r) {
52
+ if ("function" == typeof e) return void n.read(t, getSettings(), e);
53
+ n.read(t, getSettings(e), r);
54
+ }
55
+ e.scandir = scandir;
56
+ function scandirSync(t, e) {
57
+ const r = getSettings(e);
58
+ return s.read(t, r);
59
+ }
60
+ e.scandirSync = scandirSync;
61
+ function getSettings(t = {}) {
62
+ if (t instanceof i.default) return t;
63
+ return new i.default(t);
64
+ }
65
+ },
66
+ 4715: (t, e, r)=>{
67
+ "use strict";
68
+ Object.defineProperty(e, "__esModule", {
69
+ value: true
70
+ });
71
+ e.readdir = e.readdirWithFileTypes = e.read = void 0;
72
+ const n = r(3645);
73
+ const s = r(5341);
74
+ const i = r(6325);
75
+ const o = r(946);
76
+ const a = r(3253);
77
+ function read(t, e, r) {
78
+ if (!e.stats && i.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return void readdirWithFileTypes(t, e, r);
79
+ readdir(t, e, r);
80
+ }
81
+ e.read = read;
82
+ function readdirWithFileTypes(t, e, r) {
83
+ e.fs.readdir(t, {
84
+ withFileTypes: true
85
+ }, (n, i)=>{
86
+ if (null !== n) return void callFailureCallback(r, n);
87
+ const o = i.map((r)=>({
88
+ dirent: r,
89
+ name: r.name,
90
+ path: a.joinPathSegments(t, r.name, e.pathSegmentSeparator)
91
+ }));
92
+ if (!e.followSymbolicLinks) return void callSuccessCallback(r, o);
93
+ const u = o.map((t)=>makeRplTaskEntry(t, e));
94
+ s(u, (t, e)=>{
95
+ if (null !== t) return void callFailureCallback(r, t);
96
+ callSuccessCallback(r, e);
97
+ });
98
+ });
99
+ }
100
+ e.readdirWithFileTypes = readdirWithFileTypes;
101
+ function makeRplTaskEntry(t, e) {
102
+ return (r)=>{
103
+ if (!t.dirent.isSymbolicLink()) return void r(null, t);
104
+ e.fs.stat(t.path, (n, s)=>{
105
+ if (null !== n) {
106
+ if (e.throwErrorOnBrokenSymbolicLink) return void r(n);
107
+ r(null, t);
108
+ return;
109
+ }
110
+ t.dirent = o.fs.createDirentFromStats(t.name, s);
111
+ r(null, t);
112
+ });
113
+ };
114
+ }
115
+ function readdir(t, e, r) {
116
+ e.fs.readdir(t, (i, u)=>{
117
+ if (null !== i) return void callFailureCallback(r, i);
118
+ const c = u.map((r)=>{
119
+ const s = a.joinPathSegments(t, r, e.pathSegmentSeparator);
120
+ return (t)=>{
121
+ n.stat(s, e.fsStatSettings, (n, i)=>{
122
+ if (null !== n) return void t(n);
123
+ const a = {
124
+ name: r,
125
+ path: s,
126
+ dirent: o.fs.createDirentFromStats(r, i)
127
+ };
128
+ if (e.stats) a.stats = i;
129
+ t(null, a);
130
+ });
131
+ };
132
+ });
133
+ s(c, (t, e)=>{
134
+ if (null !== t) return void callFailureCallback(r, t);
135
+ callSuccessCallback(r, e);
136
+ });
137
+ });
138
+ }
139
+ e.readdir = readdir;
140
+ function callFailureCallback(t, e) {
141
+ t(e);
142
+ }
143
+ function callSuccessCallback(t, e) {
144
+ t(null, e);
145
+ }
146
+ },
147
+ 3253: (t, e)=>{
148
+ "use strict";
149
+ Object.defineProperty(e, "__esModule", {
150
+ value: true
151
+ });
152
+ e.joinPathSegments = void 0;
153
+ function joinPathSegments(t, e, r) {
154
+ if (t.endsWith(r)) return t + e;
155
+ return t + r + e;
156
+ }
157
+ e.joinPathSegments = joinPathSegments;
158
+ },
159
+ 8907: (t, e, r)=>{
160
+ "use strict";
161
+ Object.defineProperty(e, "__esModule", {
162
+ value: true
163
+ });
164
+ e.readdir = e.readdirWithFileTypes = e.read = void 0;
165
+ const n = r(3645);
166
+ const s = r(6325);
167
+ const i = r(946);
168
+ const o = r(3253);
169
+ function read(t, e) {
170
+ if (!e.stats && s.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(t, e);
171
+ return readdir(t, e);
172
+ }
173
+ e.read = read;
174
+ function readdirWithFileTypes(t, e) {
175
+ const r = e.fs.readdirSync(t, {
176
+ withFileTypes: true
177
+ });
178
+ return r.map((r)=>{
179
+ const n = {
180
+ dirent: r,
181
+ name: r.name,
182
+ path: o.joinPathSegments(t, r.name, e.pathSegmentSeparator)
183
+ };
184
+ if (n.dirent.isSymbolicLink() && e.followSymbolicLinks) try {
185
+ const t = e.fs.statSync(n.path);
186
+ n.dirent = i.fs.createDirentFromStats(n.name, t);
187
+ } catch (t) {
188
+ if (e.throwErrorOnBrokenSymbolicLink) throw t;
189
+ }
190
+ return n;
191
+ });
192
+ }
193
+ e.readdirWithFileTypes = readdirWithFileTypes;
194
+ function readdir(t, e) {
195
+ const r = e.fs.readdirSync(t);
196
+ return r.map((r)=>{
197
+ const s = o.joinPathSegments(t, r, e.pathSegmentSeparator);
198
+ const a = n.statSync(s, e.fsStatSettings);
199
+ const u = {
200
+ name: r,
201
+ path: s,
202
+ dirent: i.fs.createDirentFromStats(r, a)
203
+ };
204
+ if (e.stats) u.stats = a;
205
+ return u;
206
+ });
207
+ }
208
+ e.readdir = readdir;
209
+ },
210
+ 3486: (t, e, r)=>{
211
+ "use strict";
212
+ Object.defineProperty(e, "__esModule", {
213
+ value: true
214
+ });
215
+ const n = r(1017);
216
+ const s = r(3645);
217
+ const i = r(6491);
218
+ class Settings {
219
+ constructor(t = {}){
220
+ this._options = t;
221
+ this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
222
+ this.fs = i.createFileSystemAdapter(this._options.fs);
223
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, n.sep);
224
+ this.stats = this._getValue(this._options.stats, false);
225
+ this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
226
+ this.fsStatSettings = new s.Settings({
227
+ followSymbolicLink: this.followSymbolicLinks,
228
+ fs: this.fs,
229
+ throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
230
+ });
231
+ }
232
+ _getValue(t, e) {
233
+ return null != t ? t : e;
234
+ }
235
+ }
236
+ e["default"] = Settings;
237
+ },
238
+ 2926: (t, e)=>{
239
+ "use strict";
240
+ Object.defineProperty(e, "__esModule", {
241
+ value: true
242
+ });
243
+ e.createDirentFromStats = void 0;
244
+ class DirentFromStats {
245
+ constructor(t, e){
246
+ this.name = t;
247
+ this.isBlockDevice = e.isBlockDevice.bind(e);
248
+ this.isCharacterDevice = e.isCharacterDevice.bind(e);
249
+ this.isDirectory = e.isDirectory.bind(e);
250
+ this.isFIFO = e.isFIFO.bind(e);
251
+ this.isFile = e.isFile.bind(e);
252
+ this.isSocket = e.isSocket.bind(e);
253
+ this.isSymbolicLink = e.isSymbolicLink.bind(e);
254
+ }
255
+ }
256
+ function createDirentFromStats(t, e) {
257
+ return new DirentFromStats(t, e);
258
+ }
259
+ e.createDirentFromStats = createDirentFromStats;
260
+ },
261
+ 946: (t, e, r)=>{
262
+ "use strict";
263
+ Object.defineProperty(e, "__esModule", {
264
+ value: true
265
+ });
266
+ e.fs = void 0;
267
+ const n = r(2926);
268
+ e.fs = n;
269
+ },
270
+ 2243: (t, e, r)=>{
271
+ "use strict";
272
+ Object.defineProperty(e, "__esModule", {
273
+ value: true
274
+ });
275
+ e.createFileSystemAdapter = e.FILE_SYSTEM_ADAPTER = void 0;
276
+ const n = r(7147);
277
+ e.FILE_SYSTEM_ADAPTER = {
278
+ lstat: n.lstat,
279
+ stat: n.stat,
280
+ lstatSync: n.lstatSync,
281
+ statSync: n.statSync
282
+ };
283
+ function createFileSystemAdapter(t) {
284
+ if (void 0 === t) return e.FILE_SYSTEM_ADAPTER;
285
+ return Object.assign(Object.assign({}, e.FILE_SYSTEM_ADAPTER), t);
286
+ }
287
+ e.createFileSystemAdapter = createFileSystemAdapter;
288
+ },
289
+ 3645: (t, e, r)=>{
290
+ "use strict";
291
+ Object.defineProperty(e, "__esModule", {
292
+ value: true
293
+ });
294
+ e.statSync = e.stat = e.Settings = void 0;
295
+ const n = r(6948);
296
+ const s = r(6750);
297
+ const i = r(1917);
298
+ e.Settings = i.default;
299
+ function stat(t, e, r) {
300
+ if ("function" == typeof e) return void n.read(t, getSettings(), e);
301
+ n.read(t, getSettings(e), r);
302
+ }
303
+ e.stat = stat;
304
+ function statSync(t, e) {
305
+ const r = getSettings(e);
306
+ return s.read(t, r);
307
+ }
308
+ e.statSync = statSync;
309
+ function getSettings(t = {}) {
310
+ if (t instanceof i.default) return t;
311
+ return new i.default(t);
312
+ }
313
+ },
314
+ 6948: (t, e)=>{
315
+ "use strict";
316
+ Object.defineProperty(e, "__esModule", {
317
+ value: true
318
+ });
319
+ e.read = void 0;
320
+ function read(t, e, r) {
321
+ e.fs.lstat(t, (n, s)=>{
322
+ if (null !== n) return void callFailureCallback(r, n);
323
+ if (!s.isSymbolicLink() || !e.followSymbolicLink) return void callSuccessCallback(r, s);
324
+ e.fs.stat(t, (t, n)=>{
325
+ if (null !== t) {
326
+ if (e.throwErrorOnBrokenSymbolicLink) return void callFailureCallback(r, t);
327
+ callSuccessCallback(r, s);
328
+ return;
329
+ }
330
+ if (e.markSymbolicLink) n.isSymbolicLink = ()=>true;
331
+ callSuccessCallback(r, n);
332
+ });
333
+ });
334
+ }
335
+ e.read = read;
336
+ function callFailureCallback(t, e) {
337
+ t(e);
338
+ }
339
+ function callSuccessCallback(t, e) {
340
+ t(null, e);
341
+ }
342
+ },
343
+ 6750: (t, e)=>{
344
+ "use strict";
345
+ Object.defineProperty(e, "__esModule", {
346
+ value: true
347
+ });
348
+ e.read = void 0;
349
+ function read(t, e) {
350
+ const r = e.fs.lstatSync(t);
351
+ if (!r.isSymbolicLink() || !e.followSymbolicLink) return r;
352
+ try {
353
+ const r = e.fs.statSync(t);
354
+ if (e.markSymbolicLink) r.isSymbolicLink = ()=>true;
355
+ return r;
356
+ } catch (t) {
357
+ if (!e.throwErrorOnBrokenSymbolicLink) return r;
358
+ throw t;
359
+ }
360
+ }
361
+ e.read = read;
362
+ },
363
+ 1917: (t, e, r)=>{
364
+ "use strict";
365
+ Object.defineProperty(e, "__esModule", {
366
+ value: true
367
+ });
368
+ const n = r(2243);
369
+ class Settings {
370
+ constructor(t = {}){
371
+ this._options = t;
372
+ this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
373
+ this.fs = n.createFileSystemAdapter(this._options.fs);
374
+ this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
375
+ this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
376
+ }
377
+ _getValue(t, e) {
378
+ return null != t ? t : e;
379
+ }
380
+ }
381
+ e["default"] = Settings;
382
+ },
383
+ 4328: (t, e, r)=>{
384
+ "use strict";
385
+ Object.defineProperty(e, "__esModule", {
386
+ value: true
387
+ });
388
+ e.Settings = e.walkStream = e.walkSync = e.walk = void 0;
389
+ const n = r(4306);
390
+ const s = r(2686);
391
+ const i = r(8918);
392
+ const o = r(8831);
393
+ e.Settings = o.default;
394
+ function walk(t, e, r) {
395
+ if ("function" == typeof e) return void new n.default(t, getSettings()).read(e);
396
+ new n.default(t, getSettings(e)).read(r);
397
+ }
398
+ e.walk = walk;
399
+ function walkSync(t, e) {
400
+ const r = getSettings(e);
401
+ const n = new i.default(t, r);
402
+ return n.read();
403
+ }
404
+ e.walkSync = walkSync;
405
+ function walkStream(t, e) {
406
+ const r = getSettings(e);
407
+ const n = new s.default(t, r);
408
+ return n.read();
409
+ }
410
+ e.walkStream = walkStream;
411
+ function getSettings(t = {}) {
412
+ if (t instanceof o.default) return t;
413
+ return new o.default(t);
414
+ }
415
+ },
416
+ 4306: (t, e, r)=>{
417
+ "use strict";
418
+ Object.defineProperty(e, "__esModule", {
419
+ value: true
420
+ });
421
+ const n = r(1293);
422
+ class AsyncProvider {
423
+ constructor(t, e){
424
+ this._root = t;
425
+ this._settings = e;
426
+ this._reader = new n.default(this._root, this._settings);
427
+ this._storage = [];
428
+ }
429
+ read(t) {
430
+ this._reader.onError((e)=>{
431
+ callFailureCallback(t, e);
432
+ });
433
+ this._reader.onEntry((t)=>{
434
+ this._storage.push(t);
435
+ });
436
+ this._reader.onEnd(()=>{
437
+ callSuccessCallback(t, this._storage);
438
+ });
439
+ this._reader.read();
440
+ }
441
+ }
442
+ e["default"] = AsyncProvider;
443
+ function callFailureCallback(t, e) {
444
+ t(e);
445
+ }
446
+ function callSuccessCallback(t, e) {
447
+ t(null, e);
448
+ }
449
+ },
450
+ 2686: (t, e, r)=>{
451
+ "use strict";
452
+ Object.defineProperty(e, "__esModule", {
453
+ value: true
454
+ });
455
+ const n = r(2781);
456
+ const s = r(1293);
457
+ class StreamProvider {
458
+ constructor(t, e){
459
+ this._root = t;
460
+ this._settings = e;
461
+ this._reader = new s.default(this._root, this._settings);
462
+ this._stream = new n.Readable({
463
+ objectMode: true,
464
+ read: ()=>{},
465
+ destroy: ()=>{
466
+ if (!this._reader.isDestroyed) this._reader.destroy();
467
+ }
468
+ });
469
+ }
470
+ read() {
471
+ this._reader.onError((t)=>{
472
+ this._stream.emit("error", t);
473
+ });
474
+ this._reader.onEntry((t)=>{
475
+ this._stream.push(t);
476
+ });
477
+ this._reader.onEnd(()=>{
478
+ this._stream.push(null);
479
+ });
480
+ this._reader.read();
481
+ return this._stream;
482
+ }
483
+ }
484
+ e["default"] = StreamProvider;
485
+ },
486
+ 8918: (t, e, r)=>{
487
+ "use strict";
488
+ Object.defineProperty(e, "__esModule", {
489
+ value: true
490
+ });
491
+ const n = r(9476);
492
+ class SyncProvider {
493
+ constructor(t, e){
494
+ this._root = t;
495
+ this._settings = e;
496
+ this._reader = new n.default(this._root, this._settings);
497
+ }
498
+ read() {
499
+ return this._reader.read();
500
+ }
501
+ }
502
+ e["default"] = SyncProvider;
503
+ },
504
+ 1293: (t, e, r)=>{
505
+ "use strict";
506
+ Object.defineProperty(e, "__esModule", {
507
+ value: true
508
+ });
509
+ const n = r(2361);
510
+ const s = r(1659);
511
+ const i = r(4241);
512
+ const o = r(1652);
513
+ const a = r(8376);
514
+ class AsyncReader extends a.default {
515
+ constructor(t, e){
516
+ super(t, e);
517
+ this._settings = e;
518
+ this._scandir = s.scandir;
519
+ this._emitter = new n.EventEmitter;
520
+ this._queue = i(this._worker.bind(this), this._settings.concurrency);
521
+ this._isFatalError = false;
522
+ this._isDestroyed = false;
523
+ this._queue.drain = ()=>{
524
+ if (!this._isFatalError) this._emitter.emit("end");
525
+ };
526
+ }
527
+ read() {
528
+ this._isFatalError = false;
529
+ this._isDestroyed = false;
530
+ setImmediate(()=>{
531
+ this._pushToQueue(this._root, this._settings.basePath);
532
+ });
533
+ return this._emitter;
534
+ }
535
+ get isDestroyed() {
536
+ return this._isDestroyed;
537
+ }
538
+ destroy() {
539
+ if (this._isDestroyed) throw new Error("The reader is already destroyed");
540
+ this._isDestroyed = true;
541
+ this._queue.killAndDrain();
542
+ }
543
+ onEntry(t) {
544
+ this._emitter.on("entry", t);
545
+ }
546
+ onError(t) {
547
+ this._emitter.once("error", t);
548
+ }
549
+ onEnd(t) {
550
+ this._emitter.once("end", t);
551
+ }
552
+ _pushToQueue(t, e) {
553
+ const r = {
554
+ directory: t,
555
+ base: e
556
+ };
557
+ this._queue.push(r, (t)=>{
558
+ if (null !== t) this._handleError(t);
559
+ });
560
+ }
561
+ _worker(t, e) {
562
+ this._scandir(t.directory, this._settings.fsScandirSettings, (r, n)=>{
563
+ if (null !== r) return void e(r, void 0);
564
+ for (const e of n)this._handleEntry(e, t.base);
565
+ e(null, void 0);
566
+ });
567
+ }
568
+ _handleError(t) {
569
+ if (this._isDestroyed || !o.isFatalError(this._settings, t)) return;
570
+ this._isFatalError = true;
571
+ this._isDestroyed = true;
572
+ this._emitter.emit("error", t);
573
+ }
574
+ _handleEntry(t, e) {
575
+ if (this._isDestroyed || this._isFatalError) return;
576
+ const r = t.path;
577
+ if (void 0 !== e) t.path = o.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
578
+ if (o.isAppliedFilter(this._settings.entryFilter, t)) this._emitEntry(t);
579
+ if (t.dirent.isDirectory() && o.isAppliedFilter(this._settings.deepFilter, t)) this._pushToQueue(r, void 0 === e ? void 0 : t.path);
580
+ }
581
+ _emitEntry(t) {
582
+ this._emitter.emit("entry", t);
583
+ }
584
+ }
585
+ e["default"] = AsyncReader;
586
+ },
587
+ 1652: (t, e)=>{
588
+ "use strict";
589
+ Object.defineProperty(e, "__esModule", {
590
+ value: true
591
+ });
592
+ e.joinPathSegments = e.replacePathSegmentSeparator = e.isAppliedFilter = e.isFatalError = void 0;
593
+ function isFatalError(t, e) {
594
+ if (null === t.errorFilter) return true;
595
+ return !t.errorFilter(e);
596
+ }
597
+ e.isFatalError = isFatalError;
598
+ function isAppliedFilter(t, e) {
599
+ return null === t || t(e);
600
+ }
601
+ e.isAppliedFilter = isAppliedFilter;
602
+ function replacePathSegmentSeparator(t, e) {
603
+ return t.split(/[/\\]/).join(e);
604
+ }
605
+ e.replacePathSegmentSeparator = replacePathSegmentSeparator;
606
+ function joinPathSegments(t, e, r) {
607
+ if ("" === t) return e;
608
+ if (t.endsWith(r)) return t + e;
609
+ return t + r + e;
610
+ }
611
+ e.joinPathSegments = joinPathSegments;
612
+ },
613
+ 8376: (t, e, r)=>{
614
+ "use strict";
615
+ Object.defineProperty(e, "__esModule", {
616
+ value: true
617
+ });
618
+ const n = r(1652);
619
+ class Reader {
620
+ constructor(t, e){
621
+ this._root = t;
622
+ this._settings = e;
623
+ this._root = n.replacePathSegmentSeparator(t, e.pathSegmentSeparator);
624
+ }
625
+ }
626
+ e["default"] = Reader;
627
+ },
628
+ 9476: (t, e, r)=>{
629
+ "use strict";
630
+ Object.defineProperty(e, "__esModule", {
631
+ value: true
632
+ });
633
+ const n = r(1659);
634
+ const s = r(1652);
635
+ const i = r(8376);
636
+ class SyncReader extends i.default {
637
+ constructor(){
638
+ super(...arguments);
639
+ this._scandir = n.scandirSync;
640
+ this._storage = [];
641
+ this._queue = new Set;
642
+ }
643
+ read() {
644
+ this._pushToQueue(this._root, this._settings.basePath);
645
+ this._handleQueue();
646
+ return this._storage;
647
+ }
648
+ _pushToQueue(t, e) {
649
+ this._queue.add({
650
+ directory: t,
651
+ base: e
652
+ });
653
+ }
654
+ _handleQueue() {
655
+ for (const t of this._queue.values())this._handleDirectory(t.directory, t.base);
656
+ }
657
+ _handleDirectory(t, e) {
658
+ try {
659
+ const r = this._scandir(t, this._settings.fsScandirSettings);
660
+ for (const t of r)this._handleEntry(t, e);
661
+ } catch (t) {
662
+ this._handleError(t);
663
+ }
664
+ }
665
+ _handleError(t) {
666
+ if (!s.isFatalError(this._settings, t)) return;
667
+ throw t;
668
+ }
669
+ _handleEntry(t, e) {
670
+ const r = t.path;
671
+ if (void 0 !== e) t.path = s.joinPathSegments(e, t.name, this._settings.pathSegmentSeparator);
672
+ if (s.isAppliedFilter(this._settings.entryFilter, t)) this._pushToStorage(t);
673
+ if (t.dirent.isDirectory() && s.isAppliedFilter(this._settings.deepFilter, t)) this._pushToQueue(r, void 0 === e ? void 0 : t.path);
674
+ }
675
+ _pushToStorage(t) {
676
+ this._storage.push(t);
677
+ }
678
+ }
679
+ e["default"] = SyncReader;
680
+ },
681
+ 8831: (t, e, r)=>{
682
+ "use strict";
683
+ Object.defineProperty(e, "__esModule", {
684
+ value: true
685
+ });
686
+ const n = r(1017);
687
+ const s = r(1659);
688
+ class Settings {
689
+ constructor(t = {}){
690
+ this._options = t;
691
+ this.basePath = this._getValue(this._options.basePath, void 0);
692
+ this.concurrency = this._getValue(this._options.concurrency, 1 / 0);
693
+ this.deepFilter = this._getValue(this._options.deepFilter, null);
694
+ this.entryFilter = this._getValue(this._options.entryFilter, null);
695
+ this.errorFilter = this._getValue(this._options.errorFilter, null);
696
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, n.sep);
697
+ this.fsScandirSettings = new s.Settings({
698
+ followSymbolicLinks: this._options.followSymbolicLinks,
699
+ fs: this._options.fs,
700
+ pathSegmentSeparator: this._options.pathSegmentSeparator,
701
+ stats: this._options.stats,
702
+ throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
703
+ });
704
+ }
705
+ _getValue(t, e) {
706
+ return null != t ? t : e;
707
+ }
708
+ }
709
+ e["default"] = Settings;
710
+ },
711
+ 1570: (t, e, r)=>{
712
+ "use strict";
713
+ const n = r(3625);
714
+ const s = r(4666);
715
+ const i = r(6183);
716
+ const o = r(2467);
717
+ const braces = (t, e = {})=>{
718
+ let r = [];
719
+ if (Array.isArray(t)) for (let n of t){
720
+ let t = braces.create(n, e);
721
+ if (Array.isArray(t)) r.push(...t);
722
+ else r.push(t);
723
+ }
724
+ else r = [].concat(braces.create(t, e));
725
+ if (e && true === e.expand && true === e.nodupes) r = [
726
+ ...new Set(r)
727
+ ];
728
+ return r;
729
+ };
730
+ braces.parse = (t, e = {})=>o(t, e);
731
+ braces.stringify = (t, e = {})=>{
732
+ if ("string" == typeof t) return n(braces.parse(t, e), e);
733
+ return n(t, e);
734
+ };
735
+ braces.compile = (t, e = {})=>{
736
+ if ("string" == typeof t) t = braces.parse(t, e);
737
+ return s(t, e);
738
+ };
739
+ braces.expand = (t, e = {})=>{
740
+ if ("string" == typeof t) t = braces.parse(t, e);
741
+ let r = i(t, e);
742
+ if (true === e.noempty) r = r.filter(Boolean);
743
+ if (true === e.nodupes) r = [
744
+ ...new Set(r)
745
+ ];
746
+ return r;
747
+ };
748
+ braces.create = (t, e = {})=>{
749
+ if ("" === t || t.length < 3) return [
750
+ t
751
+ ];
752
+ return true !== e.expand ? braces.compile(t, e) : braces.expand(t, e);
753
+ };
754
+ t.exports = braces;
755
+ },
756
+ 4666: (t, e, r)=>{
757
+ "use strict";
758
+ const n = r(442);
759
+ const s = r(2456);
760
+ const compile = (t, e = {})=>{
761
+ let walk = (t, r = {})=>{
762
+ let i = s.isInvalidBrace(r);
763
+ let o = true === t.invalid && true === e.escapeInvalid;
764
+ let a = true === i || true === o;
765
+ let u = true === e.escapeInvalid ? "\\" : "";
766
+ let c = "";
767
+ if (true === t.isOpen) return u + t.value;
768
+ if (true === t.isClose) return u + t.value;
769
+ if ("open" === t.type) return a ? u + t.value : "(";
770
+ if ("close" === t.type) return a ? u + t.value : ")";
771
+ if ("comma" === t.type) return "comma" === t.prev.type ? "" : a ? t.value : "|";
772
+ if (t.value) return t.value;
773
+ if (t.nodes && t.ranges > 0) {
774
+ let r = s.reduce(t.nodes);
775
+ let i = n(...r, {
776
+ ...e,
777
+ wrap: false,
778
+ toRegex: true
779
+ });
780
+ if (0 !== i.length) return r.length > 1 && i.length > 1 ? `(${i})` : i;
781
+ }
782
+ if (t.nodes) for (let e of t.nodes)c += walk(e, t);
783
+ return c;
784
+ };
785
+ return walk(t);
786
+ };
787
+ t.exports = compile;
788
+ },
789
+ 487: (t)=>{
790
+ "use strict";
791
+ t.exports = {
792
+ MAX_LENGTH: 65536,
793
+ CHAR_0: "0",
794
+ CHAR_9: "9",
795
+ CHAR_UPPERCASE_A: "A",
796
+ CHAR_LOWERCASE_A: "a",
797
+ CHAR_UPPERCASE_Z: "Z",
798
+ CHAR_LOWERCASE_Z: "z",
799
+ CHAR_LEFT_PARENTHESES: "(",
800
+ CHAR_RIGHT_PARENTHESES: ")",
801
+ CHAR_ASTERISK: "*",
802
+ CHAR_AMPERSAND: "&",
803
+ CHAR_AT: "@",
804
+ CHAR_BACKSLASH: "\\",
805
+ CHAR_BACKTICK: "`",
806
+ CHAR_CARRIAGE_RETURN: "\r",
807
+ CHAR_CIRCUMFLEX_ACCENT: "^",
808
+ CHAR_COLON: ":",
809
+ CHAR_COMMA: ",",
810
+ CHAR_DOLLAR: "$",
811
+ CHAR_DOT: ".",
812
+ CHAR_DOUBLE_QUOTE: '"',
813
+ CHAR_EQUAL: "=",
814
+ CHAR_EXCLAMATION_MARK: "!",
815
+ CHAR_FORM_FEED: "\f",
816
+ CHAR_FORWARD_SLASH: "/",
817
+ CHAR_HASH: "#",
818
+ CHAR_HYPHEN_MINUS: "-",
819
+ CHAR_LEFT_ANGLE_BRACKET: "<",
820
+ CHAR_LEFT_CURLY_BRACE: "{",
821
+ CHAR_LEFT_SQUARE_BRACKET: "[",
822
+ CHAR_LINE_FEED: "\n",
823
+ CHAR_NO_BREAK_SPACE: " ",
824
+ CHAR_PERCENT: "%",
825
+ CHAR_PLUS: "+",
826
+ CHAR_QUESTION_MARK: "?",
827
+ CHAR_RIGHT_ANGLE_BRACKET: ">",
828
+ CHAR_RIGHT_CURLY_BRACE: "}",
829
+ CHAR_RIGHT_SQUARE_BRACKET: "]",
830
+ CHAR_SEMICOLON: ";",
831
+ CHAR_SINGLE_QUOTE: "'",
832
+ CHAR_SPACE: " ",
833
+ CHAR_TAB: "\t",
834
+ CHAR_UNDERSCORE: "_",
835
+ CHAR_VERTICAL_LINE: "|",
836
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\ufeff"
837
+ };
838
+ },
839
+ 6183: (t, e, r)=>{
840
+ "use strict";
841
+ const n = r(442);
842
+ const s = r(3625);
843
+ const i = r(2456);
844
+ const append = (t = "", e = "", r = false)=>{
845
+ let n = [];
846
+ t = [].concat(t);
847
+ e = [].concat(e);
848
+ if (!e.length) return t;
849
+ if (!t.length) return r ? i.flatten(e).map((t)=>`{${t}}`) : e;
850
+ for (let s of t)if (Array.isArray(s)) for (let t of s)n.push(append(t, e, r));
851
+ else for (let t of e){
852
+ if (true === r && "string" == typeof t) t = `{${t}}`;
853
+ n.push(Array.isArray(t) ? append(s, t, r) : s + t);
854
+ }
855
+ return i.flatten(n);
856
+ };
857
+ const expand = (t, e = {})=>{
858
+ let r = void 0 === e.rangeLimit ? 1e3 : e.rangeLimit;
859
+ let walk = (t, o = {})=>{
860
+ t.queue = [];
861
+ let a = o;
862
+ let u = o.queue;
863
+ while("brace" !== a.type && "root" !== a.type && a.parent){
864
+ a = a.parent;
865
+ u = a.queue;
866
+ }
867
+ if (t.invalid || t.dollar) return void u.push(append(u.pop(), s(t, e)));
868
+ if ("brace" === t.type && true !== t.invalid && 2 === t.nodes.length) return void u.push(append(u.pop(), [
869
+ "{}"
870
+ ]));
871
+ if (t.nodes && t.ranges > 0) {
872
+ let o = i.reduce(t.nodes);
873
+ if (i.exceedsLimit(...o, e.step, r)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
874
+ let a = n(...o, e);
875
+ if (0 === a.length) a = s(t, e);
876
+ u.push(append(u.pop(), a));
877
+ t.nodes = [];
878
+ return;
879
+ }
880
+ let c = i.encloseBrace(t);
881
+ let l = t.queue;
882
+ let f = t;
883
+ while("brace" !== f.type && "root" !== f.type && f.parent){
884
+ f = f.parent;
885
+ l = f.queue;
886
+ }
887
+ for(let e = 0; e < t.nodes.length; e++){
888
+ let r = t.nodes[e];
889
+ if ("comma" === r.type && "brace" === t.type) {
890
+ if (1 === e) l.push("");
891
+ l.push("");
892
+ continue;
893
+ }
894
+ if ("close" === r.type) {
895
+ u.push(append(u.pop(), l, c));
896
+ continue;
897
+ }
898
+ if (r.value && "open" !== r.type) {
899
+ l.push(append(l.pop(), r.value));
900
+ continue;
901
+ }
902
+ if (r.nodes) walk(r, t);
903
+ }
904
+ return l;
905
+ };
906
+ return i.flatten(walk(t));
907
+ };
908
+ t.exports = expand;
909
+ },
910
+ 2467: (t, e, r)=>{
911
+ "use strict";
912
+ const n = r(3625);
913
+ const { 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: f, CHAR_RIGHT_CURLY_BRACE: p, CHAR_LEFT_SQUARE_BRACKET: h, CHAR_RIGHT_SQUARE_BRACKET: d, CHAR_DOUBLE_QUOTE: _, CHAR_SINGLE_QUOTE: g, CHAR_NO_BREAK_SPACE: y, CHAR_ZERO_WIDTH_NOBREAK_SPACE: S } = r(487);
914
+ const parse = (t, e = {})=>{
915
+ if ("string" != typeof t) throw new TypeError("Expected a string");
916
+ let r = e || {};
917
+ let m = "number" == typeof r.maxLength ? Math.min(s, r.maxLength) : s;
918
+ if (t.length > m) throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${m})`);
919
+ let v = {
920
+ type: "root",
921
+ input: t,
922
+ nodes: []
923
+ };
924
+ let E = [
925
+ v
926
+ ];
927
+ let A = v;
928
+ let b = v;
929
+ let R = 0;
930
+ let P = t.length;
931
+ let x = 0;
932
+ let k = 0;
933
+ let T;
934
+ const advance = ()=>t[x++];
935
+ const push = (t)=>{
936
+ if ("text" === t.type && "dot" === b.type) b.type = "text";
937
+ if (b && "text" === b.type && "text" === t.type) {
938
+ b.value += t.value;
939
+ return;
940
+ }
941
+ A.nodes.push(t);
942
+ t.parent = A;
943
+ t.prev = b;
944
+ b = t;
945
+ return t;
946
+ };
947
+ push({
948
+ type: "bos"
949
+ });
950
+ while(x < P){
951
+ A = E[E.length - 1];
952
+ T = advance();
953
+ if (T === S || T === y) continue;
954
+ if (T === i) {
955
+ push({
956
+ type: "text",
957
+ value: (e.keepEscaping ? T : "") + advance()
958
+ });
959
+ continue;
960
+ }
961
+ if (T === d) {
962
+ push({
963
+ type: "text",
964
+ value: "\\" + T
965
+ });
966
+ continue;
967
+ }
968
+ if (T === h) {
969
+ R++;
970
+ let e;
971
+ while(x < P && (e = advance())){
972
+ T += e;
973
+ if (e === h) {
974
+ R++;
975
+ continue;
976
+ }
977
+ if (e === i) {
978
+ T += advance();
979
+ continue;
980
+ }
981
+ if (e === d) {
982
+ R--;
983
+ if (0 === R) break;
984
+ }
985
+ }
986
+ push({
987
+ type: "text",
988
+ value: T
989
+ });
990
+ continue;
991
+ }
992
+ if (T === c) {
993
+ A = push({
994
+ type: "paren",
995
+ nodes: []
996
+ });
997
+ E.push(A);
998
+ push({
999
+ type: "text",
1000
+ value: T
1001
+ });
1002
+ continue;
1003
+ }
1004
+ if (T === l) {
1005
+ if ("paren" !== A.type) {
1006
+ push({
1007
+ type: "text",
1008
+ value: T
1009
+ });
1010
+ continue;
1011
+ }
1012
+ A = E.pop();
1013
+ push({
1014
+ type: "text",
1015
+ value: T
1016
+ });
1017
+ A = E[E.length - 1];
1018
+ continue;
1019
+ }
1020
+ if (T === _ || T === g || T === o) {
1021
+ let t = T;
1022
+ let r;
1023
+ if (true !== e.keepQuotes) T = "";
1024
+ while(x < P && (r = advance())){
1025
+ if (r === i) {
1026
+ T += r + advance();
1027
+ continue;
1028
+ }
1029
+ if (r === t) {
1030
+ if (true === e.keepQuotes) T += r;
1031
+ break;
1032
+ }
1033
+ T += r;
1034
+ }
1035
+ push({
1036
+ type: "text",
1037
+ value: T
1038
+ });
1039
+ continue;
1040
+ }
1041
+ if (T === f) {
1042
+ k++;
1043
+ let t = b.value && "$" === b.value.slice(-1) || true === A.dollar;
1044
+ let e = {
1045
+ type: "brace",
1046
+ open: true,
1047
+ close: false,
1048
+ dollar: t,
1049
+ depth: k,
1050
+ commas: 0,
1051
+ ranges: 0,
1052
+ nodes: []
1053
+ };
1054
+ A = push(e);
1055
+ E.push(A);
1056
+ push({
1057
+ type: "open",
1058
+ value: T
1059
+ });
1060
+ continue;
1061
+ }
1062
+ if (T === p) {
1063
+ if ("brace" !== A.type) {
1064
+ push({
1065
+ type: "text",
1066
+ value: T
1067
+ });
1068
+ continue;
1069
+ }
1070
+ let t = "close";
1071
+ A = E.pop();
1072
+ A.close = true;
1073
+ push({
1074
+ type: t,
1075
+ value: T
1076
+ });
1077
+ k--;
1078
+ A = E[E.length - 1];
1079
+ continue;
1080
+ }
1081
+ if (T === a && k > 0) {
1082
+ if (A.ranges > 0) {
1083
+ A.ranges = 0;
1084
+ let t = A.nodes.shift();
1085
+ A.nodes = [
1086
+ t,
1087
+ {
1088
+ type: "text",
1089
+ value: n(A)
1090
+ }
1091
+ ];
1092
+ }
1093
+ push({
1094
+ type: "comma",
1095
+ value: T
1096
+ });
1097
+ A.commas++;
1098
+ continue;
1099
+ }
1100
+ if (T === u && k > 0 && 0 === A.commas) {
1101
+ let t = A.nodes;
1102
+ if (0 === k || 0 === t.length) {
1103
+ push({
1104
+ type: "text",
1105
+ value: T
1106
+ });
1107
+ continue;
1108
+ }
1109
+ if ("dot" === b.type) {
1110
+ A.range = [];
1111
+ b.value += T;
1112
+ b.type = "range";
1113
+ if (3 !== A.nodes.length && 5 !== A.nodes.length) {
1114
+ A.invalid = true;
1115
+ A.ranges = 0;
1116
+ b.type = "text";
1117
+ continue;
1118
+ }
1119
+ A.ranges++;
1120
+ A.args = [];
1121
+ continue;
1122
+ }
1123
+ if ("range" === b.type) {
1124
+ t.pop();
1125
+ let e = t[t.length - 1];
1126
+ e.value += b.value + T;
1127
+ b = e;
1128
+ A.ranges--;
1129
+ continue;
1130
+ }
1131
+ push({
1132
+ type: "dot",
1133
+ value: T
1134
+ });
1135
+ continue;
1136
+ }
1137
+ push({
1138
+ type: "text",
1139
+ value: T
1140
+ });
1141
+ }
1142
+ do {
1143
+ A = E.pop();
1144
+ if ("root" !== A.type) {
1145
+ A.nodes.forEach((t)=>{
1146
+ if (!t.nodes) {
1147
+ if ("open" === t.type) t.isOpen = true;
1148
+ if ("close" === t.type) t.isClose = true;
1149
+ if (!t.nodes) t.type = "text";
1150
+ t.invalid = true;
1151
+ }
1152
+ });
1153
+ let t = E[E.length - 1];
1154
+ let e = t.nodes.indexOf(A);
1155
+ t.nodes.splice(e, 1, ...A.nodes);
1156
+ }
1157
+ }while (E.length > 0);
1158
+ push({
1159
+ type: "eos"
1160
+ });
1161
+ return v;
1162
+ };
1163
+ t.exports = parse;
1164
+ },
1165
+ 3625: (t, e, r)=>{
1166
+ "use strict";
1167
+ const n = r(2456);
1168
+ t.exports = (t, e = {})=>{
1169
+ let stringify = (t, r = {})=>{
1170
+ let s = e.escapeInvalid && n.isInvalidBrace(r);
1171
+ let i = true === t.invalid && true === e.escapeInvalid;
1172
+ let o = "";
1173
+ if (t.value) {
1174
+ if ((s || i) && n.isOpenOrClose(t)) return "\\" + t.value;
1175
+ return t.value;
1176
+ }
1177
+ if (t.value) return t.value;
1178
+ if (t.nodes) for (let e of t.nodes)o += stringify(e);
1179
+ return o;
1180
+ };
1181
+ return stringify(t);
1182
+ };
1183
+ },
1184
+ 2456: (t, e)=>{
1185
+ "use strict";
1186
+ e.isInteger = (t)=>{
1187
+ if ("number" == typeof t) return Number.isInteger(t);
1188
+ if ("string" == typeof t && "" !== t.trim()) return Number.isInteger(Number(t));
1189
+ return false;
1190
+ };
1191
+ e.find = (t, e)=>t.nodes.find((t)=>t.type === e);
1192
+ e.exceedsLimit = (t, r, n = 1, s)=>{
1193
+ if (false === s) return false;
1194
+ if (!e.isInteger(t) || !e.isInteger(r)) return false;
1195
+ return (Number(r) - Number(t)) / Number(n) >= s;
1196
+ };
1197
+ e.escapeNode = (t, e = 0, r)=>{
1198
+ let n = t.nodes[e];
1199
+ if (!n) return;
1200
+ if (r && n.type === r || "open" === n.type || "close" === n.type) {
1201
+ if (true !== n.escaped) {
1202
+ n.value = "\\" + n.value;
1203
+ n.escaped = true;
1204
+ }
1205
+ }
1206
+ };
1207
+ e.encloseBrace = (t)=>{
1208
+ if ("brace" !== t.type) return false;
1209
+ if (t.commas >> 0 + t.ranges === 0) {
1210
+ t.invalid = true;
1211
+ return true;
1212
+ }
1213
+ return false;
1214
+ };
1215
+ e.isInvalidBrace = (t)=>{
1216
+ if ("brace" !== t.type) return false;
1217
+ if (true === t.invalid || t.dollar) return true;
1218
+ if (t.commas >> 0 + t.ranges === 0) {
1219
+ t.invalid = true;
1220
+ return true;
1221
+ }
1222
+ if (true !== t.open || true !== t.close) {
1223
+ t.invalid = true;
1224
+ return true;
1225
+ }
1226
+ return false;
1227
+ };
1228
+ e.isOpenOrClose = (t)=>{
1229
+ if ("open" === t.type || "close" === t.type) return true;
1230
+ return true === t.open || true === t.close;
1231
+ };
1232
+ e.reduce = (t)=>t.reduce((t, e)=>{
1233
+ if ("text" === e.type) t.push(e.value);
1234
+ if ("range" === e.type) e.type = "text";
1235
+ return t;
1236
+ }, []);
1237
+ e.flatten = (...t)=>{
1238
+ const e = [];
1239
+ const flat = (t)=>{
1240
+ for(let r = 0; r < t.length; r++){
1241
+ let n = t[r];
1242
+ Array.isArray(n) ? flat(n, e) : void 0 !== n && e.push(n);
1243
+ }
1244
+ return e;
1245
+ };
1246
+ flat(t);
1247
+ return e;
1248
+ };
1249
+ },
1250
+ 3924: (t, e, r)=>{
1251
+ "use strict";
1252
+ const n = r(2291);
1253
+ const s = r(8620);
1254
+ const i = r(7900);
1255
+ const o = r(5407);
1256
+ const a = r(1066);
1257
+ const u = r(7190);
1258
+ const c = r(3828);
1259
+ async function FastGlob(t, e) {
1260
+ assertPatternsInput(t);
1261
+ const r = getWorks(t, i.default, e);
1262
+ const n = await Promise.all(r);
1263
+ return c.array.flatten(n);
1264
+ }
1265
+ (function(t) {
1266
+ function sync(t, e) {
1267
+ assertPatternsInput(t);
1268
+ const r = getWorks(t, a.default, e);
1269
+ return c.array.flatten(r);
1270
+ }
1271
+ t.sync = sync;
1272
+ function stream(t, e) {
1273
+ assertPatternsInput(t);
1274
+ const r = getWorks(t, o.default, e);
1275
+ return c.stream.merge(r);
1276
+ }
1277
+ t.stream = stream;
1278
+ function generateTasks(t, e) {
1279
+ assertPatternsInput(t);
1280
+ const r = s.transform([].concat(t));
1281
+ const i = new u.default(e);
1282
+ return n.generate(r, i);
1283
+ }
1284
+ t.generateTasks = generateTasks;
1285
+ function isDynamicPattern(t, e) {
1286
+ assertPatternsInput(t);
1287
+ const r = new u.default(e);
1288
+ return c.pattern.isDynamicPattern(t, r);
1289
+ }
1290
+ t.isDynamicPattern = isDynamicPattern;
1291
+ function escapePath(t) {
1292
+ assertPatternsInput(t);
1293
+ return c.path.escape(t);
1294
+ }
1295
+ t.escapePath = escapePath;
1296
+ })(FastGlob || (FastGlob = {}));
1297
+ function getWorks(t, e, r) {
1298
+ const i = s.transform([].concat(t));
1299
+ const o = new u.default(r);
1300
+ const a = n.generate(i, o);
1301
+ const c = new e(o);
1302
+ return a.map(c.read, c);
1303
+ }
1304
+ function assertPatternsInput(t) {
1305
+ const e = [].concat(t);
1306
+ const r = e.every((t)=>c.string.isString(t) && !c.string.isEmpty(t));
1307
+ if (!r) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
1308
+ }
1309
+ t.exports = FastGlob;
1310
+ },
1311
+ 8620: (t, e)=>{
1312
+ "use strict";
1313
+ Object.defineProperty(e, "__esModule", {
1314
+ value: true
1315
+ });
1316
+ e.removeDuplicateSlashes = e.transform = void 0;
1317
+ const r = /(?!^)\/{2,}/g;
1318
+ function transform(t) {
1319
+ return t.map((t)=>removeDuplicateSlashes(t));
1320
+ }
1321
+ e.transform = transform;
1322
+ function removeDuplicateSlashes(t) {
1323
+ return t.replace(r, "/");
1324
+ }
1325
+ e.removeDuplicateSlashes = removeDuplicateSlashes;
1326
+ },
1327
+ 2291: (t, e, r)=>{
1328
+ "use strict";
1329
+ Object.defineProperty(e, "__esModule", {
1330
+ value: true
1331
+ });
1332
+ e.convertPatternGroupToTask = e.convertPatternGroupsToTasks = e.groupPatternsByBaseDirectory = e.getNegativePatternsAsPositive = e.getPositivePatterns = e.convertPatternsToTasks = e.generate = void 0;
1333
+ const n = r(3828);
1334
+ function generate(t, e) {
1335
+ const r = getPositivePatterns(t);
1336
+ const s = getNegativePatternsAsPositive(t, e.ignore);
1337
+ const i = r.filter((t)=>n.pattern.isStaticPattern(t, e));
1338
+ const o = r.filter((t)=>n.pattern.isDynamicPattern(t, e));
1339
+ const a = convertPatternsToTasks(i, s, false);
1340
+ const u = convertPatternsToTasks(o, s, true);
1341
+ return a.concat(u);
1342
+ }
1343
+ e.generate = generate;
1344
+ function convertPatternsToTasks(t, e, r) {
1345
+ const s = [];
1346
+ const i = n.pattern.getPatternsOutsideCurrentDirectory(t);
1347
+ const o = n.pattern.getPatternsInsideCurrentDirectory(t);
1348
+ const a = groupPatternsByBaseDirectory(i);
1349
+ const u = groupPatternsByBaseDirectory(o);
1350
+ s.push(...convertPatternGroupsToTasks(a, e, r));
1351
+ if ("." in u) s.push(convertPatternGroupToTask(".", o, e, r));
1352
+ else s.push(...convertPatternGroupsToTasks(u, e, r));
1353
+ return s;
1354
+ }
1355
+ e.convertPatternsToTasks = convertPatternsToTasks;
1356
+ function getPositivePatterns(t) {
1357
+ return n.pattern.getPositivePatterns(t);
1358
+ }
1359
+ e.getPositivePatterns = getPositivePatterns;
1360
+ function getNegativePatternsAsPositive(t, e) {
1361
+ const r = n.pattern.getNegativePatterns(t).concat(e);
1362
+ const s = r.map(n.pattern.convertToPositivePattern);
1363
+ return s;
1364
+ }
1365
+ e.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
1366
+ function groupPatternsByBaseDirectory(t) {
1367
+ const e = {};
1368
+ return t.reduce((t, e)=>{
1369
+ const r = n.pattern.getBaseDirectory(e);
1370
+ if (r in t) t[r].push(e);
1371
+ else t[r] = [
1372
+ e
1373
+ ];
1374
+ return t;
1375
+ }, e);
1376
+ }
1377
+ e.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
1378
+ function convertPatternGroupsToTasks(t, e, r) {
1379
+ return Object.keys(t).map((n)=>convertPatternGroupToTask(n, t[n], e, r));
1380
+ }
1381
+ e.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
1382
+ function convertPatternGroupToTask(t, e, r, s) {
1383
+ return {
1384
+ dynamic: s,
1385
+ positive: e,
1386
+ negative: r,
1387
+ base: t,
1388
+ patterns: [].concat(e, r.map(n.pattern.convertToNegativePattern))
1389
+ };
1390
+ }
1391
+ e.convertPatternGroupToTask = convertPatternGroupToTask;
1392
+ },
1393
+ 7900: (t, e, r)=>{
1394
+ "use strict";
1395
+ Object.defineProperty(e, "__esModule", {
1396
+ value: true
1397
+ });
1398
+ const n = r(8075);
1399
+ const s = r(8845);
1400
+ class ProviderAsync extends s.default {
1401
+ constructor(){
1402
+ super(...arguments);
1403
+ this._reader = new n.default(this._settings);
1404
+ }
1405
+ read(t) {
1406
+ const e = this._getRootDirectory(t);
1407
+ const r = this._getReaderOptions(t);
1408
+ const n = [];
1409
+ return new Promise((s, i)=>{
1410
+ const o = this.api(e, t, r);
1411
+ o.once("error", i);
1412
+ o.on("data", (t)=>n.push(r.transform(t)));
1413
+ o.once("end", ()=>s(n));
1414
+ });
1415
+ }
1416
+ api(t, e, r) {
1417
+ if (e.dynamic) return this._reader.dynamic(t, r);
1418
+ return this._reader.static(e.patterns, r);
1419
+ }
1420
+ }
1421
+ e["default"] = ProviderAsync;
1422
+ },
1423
+ 4292: (t, e, r)=>{
1424
+ "use strict";
1425
+ Object.defineProperty(e, "__esModule", {
1426
+ value: true
1427
+ });
1428
+ const n = r(3828);
1429
+ const s = r(5995);
1430
+ class DeepFilter {
1431
+ constructor(t, e){
1432
+ this._settings = t;
1433
+ this._micromatchOptions = e;
1434
+ }
1435
+ getFilter(t, e, r) {
1436
+ const n = this._getMatcher(e);
1437
+ const s = this._getNegativePatternsRe(r);
1438
+ return (e)=>this._filter(t, e, n, s);
1439
+ }
1440
+ _getMatcher(t) {
1441
+ return new s.default(t, this._settings, this._micromatchOptions);
1442
+ }
1443
+ _getNegativePatternsRe(t) {
1444
+ const e = t.filter(n.pattern.isAffectDepthOfReadingPattern);
1445
+ return n.pattern.convertPatternsToRe(e, this._micromatchOptions);
1446
+ }
1447
+ _filter(t, e, r, s) {
1448
+ if (this._isSkippedByDeep(t, e.path)) return false;
1449
+ if (this._isSkippedSymbolicLink(e)) return false;
1450
+ const i = n.path.removeLeadingDotSegment(e.path);
1451
+ if (this._isSkippedByPositivePatterns(i, r)) return false;
1452
+ return this._isSkippedByNegativePatterns(i, s);
1453
+ }
1454
+ _isSkippedByDeep(t, e) {
1455
+ if (this._settings.deep === 1 / 0) return false;
1456
+ return this._getEntryLevel(t, e) >= this._settings.deep;
1457
+ }
1458
+ _getEntryLevel(t, e) {
1459
+ const r = e.split("/").length;
1460
+ if ("" === t) return r;
1461
+ const n = t.split("/").length;
1462
+ return r - n;
1463
+ }
1464
+ _isSkippedSymbolicLink(t) {
1465
+ return !this._settings.followSymbolicLinks && t.dirent.isSymbolicLink();
1466
+ }
1467
+ _isSkippedByPositivePatterns(t, e) {
1468
+ return !this._settings.baseNameMatch && !e.match(t);
1469
+ }
1470
+ _isSkippedByNegativePatterns(t, e) {
1471
+ return !n.pattern.matchAny(t, e);
1472
+ }
1473
+ }
1474
+ e["default"] = DeepFilter;
1475
+ },
1476
+ 659: (t, e, r)=>{
1477
+ "use strict";
1478
+ Object.defineProperty(e, "__esModule", {
1479
+ value: true
1480
+ });
1481
+ const n = r(3828);
1482
+ class EntryFilter {
1483
+ constructor(t, e){
1484
+ this._settings = t;
1485
+ this._micromatchOptions = e;
1486
+ this.index = new Map;
1487
+ }
1488
+ getFilter(t, e) {
1489
+ const r = n.pattern.convertPatternsToRe(t, this._micromatchOptions);
1490
+ const s = n.pattern.convertPatternsToRe(e, this._micromatchOptions);
1491
+ return (t)=>this._filter(t, r, s);
1492
+ }
1493
+ _filter(t, e, r) {
1494
+ if (this._settings.unique && this._isDuplicateEntry(t)) return false;
1495
+ if (this._onlyFileFilter(t) || this._onlyDirectoryFilter(t)) return false;
1496
+ if (this._isSkippedByAbsoluteNegativePatterns(t.path, r)) return false;
1497
+ const n = this._settings.baseNameMatch ? t.name : t.path;
1498
+ const s = this._isMatchToPatterns(n, e) && !this._isMatchToPatterns(t.path, r);
1499
+ if (this._settings.unique && s) this._createIndexRecord(t);
1500
+ return s;
1501
+ }
1502
+ _isDuplicateEntry(t) {
1503
+ return this.index.has(t.path);
1504
+ }
1505
+ _createIndexRecord(t) {
1506
+ this.index.set(t.path, void 0);
1507
+ }
1508
+ _onlyFileFilter(t) {
1509
+ return this._settings.onlyFiles && !t.dirent.isFile();
1510
+ }
1511
+ _onlyDirectoryFilter(t) {
1512
+ return this._settings.onlyDirectories && !t.dirent.isDirectory();
1513
+ }
1514
+ _isSkippedByAbsoluteNegativePatterns(t, e) {
1515
+ if (!this._settings.absolute) return false;
1516
+ const r = n.path.makeAbsolute(this._settings.cwd, t);
1517
+ return n.pattern.matchAny(r, e);
1518
+ }
1519
+ _isMatchToPatterns(t, e) {
1520
+ const r = n.path.removeLeadingDotSegment(t);
1521
+ return n.pattern.matchAny(r, e) || n.pattern.matchAny(r + "/", e);
1522
+ }
1523
+ }
1524
+ e["default"] = EntryFilter;
1525
+ },
1526
+ 9558: (t, e, r)=>{
1527
+ "use strict";
1528
+ Object.defineProperty(e, "__esModule", {
1529
+ value: true
1530
+ });
1531
+ const n = r(3828);
1532
+ class ErrorFilter {
1533
+ constructor(t){
1534
+ this._settings = t;
1535
+ }
1536
+ getFilter() {
1537
+ return (t)=>this._isNonFatalError(t);
1538
+ }
1539
+ _isNonFatalError(t) {
1540
+ return n.errno.isEnoentCodeError(t) || this._settings.suppressErrors;
1541
+ }
1542
+ }
1543
+ e["default"] = ErrorFilter;
1544
+ },
1545
+ 8302: (t, e, r)=>{
1546
+ "use strict";
1547
+ Object.defineProperty(e, "__esModule", {
1548
+ value: true
1549
+ });
1550
+ const n = r(3828);
1551
+ class Matcher {
1552
+ constructor(t, e, r){
1553
+ this._patterns = t;
1554
+ this._settings = e;
1555
+ this._micromatchOptions = r;
1556
+ this._storage = [];
1557
+ this._fillStorage();
1558
+ }
1559
+ _fillStorage() {
1560
+ const t = n.pattern.expandPatternsWithBraceExpansion(this._patterns);
1561
+ for (const e of t){
1562
+ const t = this._getPatternSegments(e);
1563
+ const r = this._splitSegmentsIntoSections(t);
1564
+ this._storage.push({
1565
+ complete: r.length <= 1,
1566
+ pattern: e,
1567
+ segments: t,
1568
+ sections: r
1569
+ });
1570
+ }
1571
+ }
1572
+ _getPatternSegments(t) {
1573
+ const e = n.pattern.getPatternParts(t, this._micromatchOptions);
1574
+ return e.map((t)=>{
1575
+ const e = n.pattern.isDynamicPattern(t, this._settings);
1576
+ if (!e) return {
1577
+ dynamic: false,
1578
+ pattern: t
1579
+ };
1580
+ return {
1581
+ dynamic: true,
1582
+ pattern: t,
1583
+ patternRe: n.pattern.makeRe(t, this._micromatchOptions)
1584
+ };
1585
+ });
1586
+ }
1587
+ _splitSegmentsIntoSections(t) {
1588
+ return n.array.splitWhen(t, (t)=>t.dynamic && n.pattern.hasGlobStar(t.pattern));
1589
+ }
1590
+ }
1591
+ e["default"] = Matcher;
1592
+ },
1593
+ 5995: (t, e, r)=>{
1594
+ "use strict";
1595
+ Object.defineProperty(e, "__esModule", {
1596
+ value: true
1597
+ });
1598
+ const n = r(8302);
1599
+ class PartialMatcher extends n.default {
1600
+ match(t) {
1601
+ const e = t.split("/");
1602
+ const r = e.length;
1603
+ const n = this._storage.filter((t)=>!t.complete || t.segments.length > r);
1604
+ for (const t of n){
1605
+ const n = t.sections[0];
1606
+ if (!t.complete && r > n.length) return true;
1607
+ const s = e.every((e, r)=>{
1608
+ const n = t.segments[r];
1609
+ if (n.dynamic && n.patternRe.test(e)) return true;
1610
+ if (!n.dynamic && n.pattern === e) return true;
1611
+ return false;
1612
+ });
1613
+ if (s) return true;
1614
+ }
1615
+ return false;
1616
+ }
1617
+ }
1618
+ e["default"] = PartialMatcher;
1619
+ },
1620
+ 8845: (t, e, r)=>{
1621
+ "use strict";
1622
+ Object.defineProperty(e, "__esModule", {
1623
+ value: true
1624
+ });
1625
+ const n = r(1017);
1626
+ const s = r(4292);
1627
+ const i = r(659);
1628
+ const o = r(9558);
1629
+ const a = r(8460);
1630
+ class Provider {
1631
+ constructor(t){
1632
+ this._settings = t;
1633
+ this.errorFilter = new o.default(this._settings);
1634
+ this.entryFilter = new i.default(this._settings, this._getMicromatchOptions());
1635
+ this.deepFilter = new s.default(this._settings, this._getMicromatchOptions());
1636
+ this.entryTransformer = new a.default(this._settings);
1637
+ }
1638
+ _getRootDirectory(t) {
1639
+ return n.resolve(this._settings.cwd, t.base);
1640
+ }
1641
+ _getReaderOptions(t) {
1642
+ const e = "." === t.base ? "" : t.base;
1643
+ return {
1644
+ basePath: e,
1645
+ pathSegmentSeparator: "/",
1646
+ concurrency: this._settings.concurrency,
1647
+ deepFilter: this.deepFilter.getFilter(e, t.positive, t.negative),
1648
+ entryFilter: this.entryFilter.getFilter(t.positive, t.negative),
1649
+ errorFilter: this.errorFilter.getFilter(),
1650
+ followSymbolicLinks: this._settings.followSymbolicLinks,
1651
+ fs: this._settings.fs,
1652
+ stats: this._settings.stats,
1653
+ throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
1654
+ transform: this.entryTransformer.getTransformer()
1655
+ };
1656
+ }
1657
+ _getMicromatchOptions() {
1658
+ return {
1659
+ dot: this._settings.dot,
1660
+ matchBase: this._settings.baseNameMatch,
1661
+ nobrace: !this._settings.braceExpansion,
1662
+ nocase: !this._settings.caseSensitiveMatch,
1663
+ noext: !this._settings.extglob,
1664
+ noglobstar: !this._settings.globstar,
1665
+ posix: true,
1666
+ strictSlashes: false
1667
+ };
1668
+ }
1669
+ }
1670
+ e["default"] = Provider;
1671
+ },
1672
+ 5407: (t, e, r)=>{
1673
+ "use strict";
1674
+ Object.defineProperty(e, "__esModule", {
1675
+ value: true
1676
+ });
1677
+ const n = r(2781);
1678
+ const s = r(8075);
1679
+ const i = r(8845);
1680
+ class ProviderStream extends i.default {
1681
+ constructor(){
1682
+ super(...arguments);
1683
+ this._reader = new s.default(this._settings);
1684
+ }
1685
+ read(t) {
1686
+ const e = this._getRootDirectory(t);
1687
+ const r = this._getReaderOptions(t);
1688
+ const s = this.api(e, t, r);
1689
+ const i = new n.Readable({
1690
+ objectMode: true,
1691
+ read: ()=>{}
1692
+ });
1693
+ s.once("error", (t)=>i.emit("error", t)).on("data", (t)=>i.emit("data", r.transform(t))).once("end", ()=>i.emit("end"));
1694
+ i.once("close", ()=>s.destroy());
1695
+ return i;
1696
+ }
1697
+ api(t, e, r) {
1698
+ if (e.dynamic) return this._reader.dynamic(t, r);
1699
+ return this._reader.static(e.patterns, r);
1700
+ }
1701
+ }
1702
+ e["default"] = ProviderStream;
1703
+ },
1704
+ 1066: (t, e, r)=>{
1705
+ "use strict";
1706
+ Object.defineProperty(e, "__esModule", {
1707
+ value: true
1708
+ });
1709
+ const n = r(8110);
1710
+ const s = r(8845);
1711
+ class ProviderSync extends s.default {
1712
+ constructor(){
1713
+ super(...arguments);
1714
+ this._reader = new n.default(this._settings);
1715
+ }
1716
+ read(t) {
1717
+ const e = this._getRootDirectory(t);
1718
+ const r = this._getReaderOptions(t);
1719
+ const n = this.api(e, t, r);
1720
+ return n.map(r.transform);
1721
+ }
1722
+ api(t, e, r) {
1723
+ if (e.dynamic) return this._reader.dynamic(t, r);
1724
+ return this._reader.static(e.patterns, r);
1725
+ }
1726
+ }
1727
+ e["default"] = ProviderSync;
1728
+ },
1729
+ 8460: (t, e, r)=>{
1730
+ "use strict";
1731
+ Object.defineProperty(e, "__esModule", {
1732
+ value: true
1733
+ });
1734
+ const n = r(3828);
1735
+ class EntryTransformer {
1736
+ constructor(t){
1737
+ this._settings = t;
1738
+ }
1739
+ getTransformer() {
1740
+ return (t)=>this._transform(t);
1741
+ }
1742
+ _transform(t) {
1743
+ let e = t.path;
1744
+ if (this._settings.absolute) {
1745
+ e = n.path.makeAbsolute(this._settings.cwd, e);
1746
+ e = n.path.unixify(e);
1747
+ }
1748
+ if (this._settings.markDirectories && t.dirent.isDirectory()) e += "/";
1749
+ if (!this._settings.objectMode) return e;
1750
+ return Object.assign(Object.assign({}, t), {
1751
+ path: e
1752
+ });
1753
+ }
1754
+ }
1755
+ e["default"] = EntryTransformer;
1756
+ },
1757
+ 5906: (t, e, r)=>{
1758
+ "use strict";
1759
+ Object.defineProperty(e, "__esModule", {
1760
+ value: true
1761
+ });
1762
+ const n = r(1017);
1763
+ const s = r(3645);
1764
+ const i = r(3828);
1765
+ class Reader {
1766
+ constructor(t){
1767
+ this._settings = t;
1768
+ this._fsStatSettings = new s.Settings({
1769
+ followSymbolicLink: this._settings.followSymbolicLinks,
1770
+ fs: this._settings.fs,
1771
+ throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
1772
+ });
1773
+ }
1774
+ _getFullEntryPath(t) {
1775
+ return n.resolve(this._settings.cwd, t);
1776
+ }
1777
+ _makeEntry(t, e) {
1778
+ const r = {
1779
+ name: e,
1780
+ path: e,
1781
+ dirent: i.fs.createDirentFromStats(e, t)
1782
+ };
1783
+ if (this._settings.stats) r.stats = t;
1784
+ return r;
1785
+ }
1786
+ _isFatalError(t) {
1787
+ return !i.errno.isEnoentCodeError(t) && !this._settings.suppressErrors;
1788
+ }
1789
+ }
1790
+ e["default"] = Reader;
1791
+ },
1792
+ 8075: (t, e, r)=>{
1793
+ "use strict";
1794
+ Object.defineProperty(e, "__esModule", {
1795
+ value: true
1796
+ });
1797
+ const n = r(2781);
1798
+ const s = r(3645);
1799
+ const i = r(4328);
1800
+ const o = r(5906);
1801
+ class ReaderStream extends o.default {
1802
+ constructor(){
1803
+ super(...arguments);
1804
+ this._walkStream = i.walkStream;
1805
+ this._stat = s.stat;
1806
+ }
1807
+ dynamic(t, e) {
1808
+ return this._walkStream(t, e);
1809
+ }
1810
+ static(t, e) {
1811
+ const r = t.map(this._getFullEntryPath, this);
1812
+ const s = new n.PassThrough({
1813
+ objectMode: true
1814
+ });
1815
+ s._write = (n, i, o)=>this._getEntry(r[n], t[n], e).then((t)=>{
1816
+ if (null !== t && e.entryFilter(t)) s.push(t);
1817
+ if (n === r.length - 1) s.end();
1818
+ o();
1819
+ }).catch(o);
1820
+ for(let t = 0; t < r.length; t++)s.write(t);
1821
+ return s;
1822
+ }
1823
+ _getEntry(t, e, r) {
1824
+ return this._getStat(t).then((t)=>this._makeEntry(t, e)).catch((t)=>{
1825
+ if (r.errorFilter(t)) return null;
1826
+ throw t;
1827
+ });
1828
+ }
1829
+ _getStat(t) {
1830
+ return new Promise((e, r)=>{
1831
+ this._stat(t, this._fsStatSettings, (t, n)=>null === t ? e(n) : r(t));
1832
+ });
1833
+ }
1834
+ }
1835
+ e["default"] = ReaderStream;
1836
+ },
1837
+ 8110: (t, e, r)=>{
1838
+ "use strict";
1839
+ Object.defineProperty(e, "__esModule", {
1840
+ value: true
1841
+ });
1842
+ const n = r(3645);
1843
+ const s = r(4328);
1844
+ const i = r(5906);
1845
+ class ReaderSync extends i.default {
1846
+ constructor(){
1847
+ super(...arguments);
1848
+ this._walkSync = s.walkSync;
1849
+ this._statSync = n.statSync;
1850
+ }
1851
+ dynamic(t, e) {
1852
+ return this._walkSync(t, e);
1853
+ }
1854
+ static(t, e) {
1855
+ const r = [];
1856
+ for (const n of t){
1857
+ const t = this._getFullEntryPath(n);
1858
+ const s = this._getEntry(t, n, e);
1859
+ if (null !== s && e.entryFilter(s)) r.push(s);
1860
+ }
1861
+ return r;
1862
+ }
1863
+ _getEntry(t, e, r) {
1864
+ try {
1865
+ const r = this._getStat(t);
1866
+ return this._makeEntry(r, e);
1867
+ } catch (t) {
1868
+ if (r.errorFilter(t)) return null;
1869
+ throw t;
1870
+ }
1871
+ }
1872
+ _getStat(t) {
1873
+ return this._statSync(t, this._fsStatSettings);
1874
+ }
1875
+ }
1876
+ e["default"] = ReaderSync;
1877
+ },
1878
+ 7190: (t, e, r)=>{
1879
+ "use strict";
1880
+ Object.defineProperty(e, "__esModule", {
1881
+ value: true
1882
+ });
1883
+ e.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
1884
+ const n = r(7147);
1885
+ const s = r(2037);
1886
+ const i = Math.max(s.cpus().length, 1);
1887
+ e.DEFAULT_FILE_SYSTEM_ADAPTER = {
1888
+ lstat: n.lstat,
1889
+ lstatSync: n.lstatSync,
1890
+ stat: n.stat,
1891
+ statSync: n.statSync,
1892
+ readdir: n.readdir,
1893
+ readdirSync: n.readdirSync
1894
+ };
1895
+ class Settings {
1896
+ constructor(t = {}){
1897
+ this._options = t;
1898
+ this.absolute = this._getValue(this._options.absolute, false);
1899
+ this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
1900
+ this.braceExpansion = this._getValue(this._options.braceExpansion, true);
1901
+ this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
1902
+ this.concurrency = this._getValue(this._options.concurrency, i);
1903
+ this.cwd = this._getValue(this._options.cwd, process.cwd());
1904
+ this.deep = this._getValue(this._options.deep, 1 / 0);
1905
+ this.dot = this._getValue(this._options.dot, false);
1906
+ this.extglob = this._getValue(this._options.extglob, true);
1907
+ this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true);
1908
+ this.fs = this._getFileSystemMethods(this._options.fs);
1909
+ this.globstar = this._getValue(this._options.globstar, true);
1910
+ this.ignore = this._getValue(this._options.ignore, []);
1911
+ this.markDirectories = this._getValue(this._options.markDirectories, false);
1912
+ this.objectMode = this._getValue(this._options.objectMode, false);
1913
+ this.onlyDirectories = this._getValue(this._options.onlyDirectories, false);
1914
+ this.onlyFiles = this._getValue(this._options.onlyFiles, true);
1915
+ this.stats = this._getValue(this._options.stats, false);
1916
+ this.suppressErrors = this._getValue(this._options.suppressErrors, false);
1917
+ this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
1918
+ this.unique = this._getValue(this._options.unique, true);
1919
+ if (this.onlyDirectories) this.onlyFiles = false;
1920
+ if (this.stats) this.objectMode = true;
1921
+ }
1922
+ _getValue(t, e) {
1923
+ return void 0 === t ? e : t;
1924
+ }
1925
+ _getFileSystemMethods(t = {}) {
1926
+ return Object.assign(Object.assign({}, e.DEFAULT_FILE_SYSTEM_ADAPTER), t);
1927
+ }
1928
+ }
1929
+ e["default"] = Settings;
1930
+ },
1931
+ 5789: (t, e)=>{
1932
+ "use strict";
1933
+ Object.defineProperty(e, "__esModule", {
1934
+ value: true
1935
+ });
1936
+ e.splitWhen = e.flatten = void 0;
1937
+ function flatten(t) {
1938
+ return t.reduce((t, e)=>[].concat(t, e), []);
1939
+ }
1940
+ e.flatten = flatten;
1941
+ function splitWhen(t, e) {
1942
+ const r = [
1943
+ []
1944
+ ];
1945
+ let n = 0;
1946
+ for (const s of t)if (e(s)) {
1947
+ n++;
1948
+ r[n] = [];
1949
+ } else r[n].push(s);
1950
+ return r;
1951
+ }
1952
+ e.splitWhen = splitWhen;
1953
+ },
1954
+ 886: (t, e)=>{
1955
+ "use strict";
1956
+ Object.defineProperty(e, "__esModule", {
1957
+ value: true
1958
+ });
1959
+ e.isEnoentCodeError = void 0;
1960
+ function isEnoentCodeError(t) {
1961
+ return "ENOENT" === t.code;
1962
+ }
1963
+ e.isEnoentCodeError = isEnoentCodeError;
1964
+ },
1965
+ 9102: (t, e)=>{
1966
+ "use strict";
1967
+ Object.defineProperty(e, "__esModule", {
1968
+ value: true
1969
+ });
1970
+ e.createDirentFromStats = void 0;
1971
+ class DirentFromStats {
1972
+ constructor(t, e){
1973
+ this.name = t;
1974
+ this.isBlockDevice = e.isBlockDevice.bind(e);
1975
+ this.isCharacterDevice = e.isCharacterDevice.bind(e);
1976
+ this.isDirectory = e.isDirectory.bind(e);
1977
+ this.isFIFO = e.isFIFO.bind(e);
1978
+ this.isFile = e.isFile.bind(e);
1979
+ this.isSocket = e.isSocket.bind(e);
1980
+ this.isSymbolicLink = e.isSymbolicLink.bind(e);
1981
+ }
1982
+ }
1983
+ function createDirentFromStats(t, e) {
1984
+ return new DirentFromStats(t, e);
1985
+ }
1986
+ e.createDirentFromStats = createDirentFromStats;
1987
+ },
1988
+ 3828: (t, e, r)=>{
1989
+ "use strict";
1990
+ Object.defineProperty(e, "__esModule", {
1991
+ value: true
1992
+ });
1993
+ e.string = e.stream = e.pattern = e.path = e.fs = e.errno = e.array = void 0;
1994
+ const n = r(5789);
1995
+ e.array = n;
1996
+ const s = r(886);
1997
+ e.errno = s;
1998
+ const i = r(9102);
1999
+ e.fs = i;
2000
+ const o = r(6462);
2001
+ e.path = o;
2002
+ const a = r(2256);
2003
+ e.pattern = a;
2004
+ const u = r(9941);
2005
+ e.stream = u;
2006
+ const c = r(5121);
2007
+ e.string = c;
2008
+ },
2009
+ 6462: (t, e, r)=>{
2010
+ "use strict";
2011
+ Object.defineProperty(e, "__esModule", {
2012
+ value: true
2013
+ });
2014
+ e.removeLeadingDotSegment = e.escape = e.makeAbsolute = e.unixify = void 0;
2015
+ const n = r(1017);
2016
+ const s = 2;
2017
+ const i = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
2018
+ function unixify(t) {
2019
+ return t.replace(/\\/g, "/");
2020
+ }
2021
+ e.unixify = unixify;
2022
+ function makeAbsolute(t, e) {
2023
+ return n.resolve(t, e);
2024
+ }
2025
+ e.makeAbsolute = makeAbsolute;
2026
+ function escape(t) {
2027
+ return t.replace(i, "\\$2");
2028
+ }
2029
+ e.escape = escape;
2030
+ function removeLeadingDotSegment(t) {
2031
+ if ("." === t.charAt(0)) {
2032
+ const e = t.charAt(1);
2033
+ if ("/" === e || "\\" === e) return t.slice(s);
2034
+ }
2035
+ return t;
2036
+ }
2037
+ e.removeLeadingDotSegment = removeLeadingDotSegment;
2038
+ },
2039
+ 2256: (t, e, r)=>{
2040
+ "use strict";
2041
+ Object.defineProperty(e, "__esModule", {
2042
+ value: true
2043
+ });
2044
+ e.matchAny = e.convertPatternsToRe = e.makeRe = e.getPatternParts = e.expandBraceExpansion = e.expandPatternsWithBraceExpansion = e.isAffectDepthOfReadingPattern = e.endsWithSlashGlobStar = e.hasGlobStar = e.getBaseDirectory = e.isPatternRelatedToParentDirectory = e.getPatternsOutsideCurrentDirectory = e.getPatternsInsideCurrentDirectory = e.getPositivePatterns = e.getNegativePatterns = e.isPositivePattern = e.isNegativePattern = e.convertToNegativePattern = e.convertToPositivePattern = e.isDynamicPattern = e.isStaticPattern = void 0;
2045
+ const n = r(1017);
2046
+ const s = r(5976);
2047
+ const i = r(8627);
2048
+ const o = "**";
2049
+ const a = "\\";
2050
+ const u = /[*?]|^!/;
2051
+ const c = /\[[^[]*]/;
2052
+ const l = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
2053
+ const f = /[!*+?@]\([^(]*\)/;
2054
+ const p = /,|\.\./;
2055
+ function isStaticPattern(t, e = {}) {
2056
+ return !isDynamicPattern(t, e);
2057
+ }
2058
+ e.isStaticPattern = isStaticPattern;
2059
+ function isDynamicPattern(t, e = {}) {
2060
+ if ("" === t) return false;
2061
+ if (false === e.caseSensitiveMatch || t.includes(a)) return true;
2062
+ if (u.test(t) || c.test(t) || l.test(t)) return true;
2063
+ if (false !== e.extglob && f.test(t)) return true;
2064
+ if (false !== e.braceExpansion && hasBraceExpansion(t)) return true;
2065
+ return false;
2066
+ }
2067
+ e.isDynamicPattern = isDynamicPattern;
2068
+ function hasBraceExpansion(t) {
2069
+ const e = t.indexOf("{");
2070
+ if (-1 === e) return false;
2071
+ const r = t.indexOf("}", e + 1);
2072
+ if (-1 === r) return false;
2073
+ const n = t.slice(e, r);
2074
+ return p.test(n);
2075
+ }
2076
+ function convertToPositivePattern(t) {
2077
+ return isNegativePattern(t) ? t.slice(1) : t;
2078
+ }
2079
+ e.convertToPositivePattern = convertToPositivePattern;
2080
+ function convertToNegativePattern(t) {
2081
+ return "!" + t;
2082
+ }
2083
+ e.convertToNegativePattern = convertToNegativePattern;
2084
+ function isNegativePattern(t) {
2085
+ return t.startsWith("!") && "(" !== t[1];
2086
+ }
2087
+ e.isNegativePattern = isNegativePattern;
2088
+ function isPositivePattern(t) {
2089
+ return !isNegativePattern(t);
2090
+ }
2091
+ e.isPositivePattern = isPositivePattern;
2092
+ function getNegativePatterns(t) {
2093
+ return t.filter(isNegativePattern);
2094
+ }
2095
+ e.getNegativePatterns = getNegativePatterns;
2096
+ function getPositivePatterns(t) {
2097
+ return t.filter(isPositivePattern);
2098
+ }
2099
+ e.getPositivePatterns = getPositivePatterns;
2100
+ function getPatternsInsideCurrentDirectory(t) {
2101
+ return t.filter((t)=>!isPatternRelatedToParentDirectory(t));
2102
+ }
2103
+ e.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
2104
+ function getPatternsOutsideCurrentDirectory(t) {
2105
+ return t.filter(isPatternRelatedToParentDirectory);
2106
+ }
2107
+ e.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
2108
+ function isPatternRelatedToParentDirectory(t) {
2109
+ return t.startsWith("..") || t.startsWith("./..");
2110
+ }
2111
+ e.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
2112
+ function getBaseDirectory(t) {
2113
+ return s(t, {
2114
+ flipBackslashes: false
2115
+ });
2116
+ }
2117
+ e.getBaseDirectory = getBaseDirectory;
2118
+ function hasGlobStar(t) {
2119
+ return t.includes(o);
2120
+ }
2121
+ e.hasGlobStar = hasGlobStar;
2122
+ function endsWithSlashGlobStar(t) {
2123
+ return t.endsWith("/" + o);
2124
+ }
2125
+ e.endsWithSlashGlobStar = endsWithSlashGlobStar;
2126
+ function isAffectDepthOfReadingPattern(t) {
2127
+ const e = n.basename(t);
2128
+ return endsWithSlashGlobStar(t) || isStaticPattern(e);
2129
+ }
2130
+ e.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
2131
+ function expandPatternsWithBraceExpansion(t) {
2132
+ return t.reduce((t, e)=>t.concat(expandBraceExpansion(e)), []);
2133
+ }
2134
+ e.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
2135
+ function expandBraceExpansion(t) {
2136
+ return i.braces(t, {
2137
+ expand: true,
2138
+ nodupes: true
2139
+ });
2140
+ }
2141
+ e.expandBraceExpansion = expandBraceExpansion;
2142
+ function getPatternParts(t, e) {
2143
+ let { parts: r } = i.scan(t, Object.assign(Object.assign({}, e), {
2144
+ parts: true
2145
+ }));
2146
+ if (0 === r.length) r = [
2147
+ t
2148
+ ];
2149
+ if (r[0].startsWith("/")) {
2150
+ r[0] = r[0].slice(1);
2151
+ r.unshift("");
2152
+ }
2153
+ return r;
2154
+ }
2155
+ e.getPatternParts = getPatternParts;
2156
+ function makeRe(t, e) {
2157
+ return i.makeRe(t, e);
2158
+ }
2159
+ e.makeRe = makeRe;
2160
+ function convertPatternsToRe(t, e) {
2161
+ return t.map((t)=>makeRe(t, e));
2162
+ }
2163
+ e.convertPatternsToRe = convertPatternsToRe;
2164
+ function matchAny(t, e) {
2165
+ return e.some((e)=>e.test(t));
2166
+ }
2167
+ e.matchAny = matchAny;
2168
+ },
2169
+ 9941: (t, e, r)=>{
2170
+ "use strict";
2171
+ Object.defineProperty(e, "__esModule", {
2172
+ value: true
2173
+ });
2174
+ e.merge = void 0;
2175
+ const n = r(1382);
2176
+ function merge(t) {
2177
+ const e = n(t);
2178
+ t.forEach((t)=>{
2179
+ t.once("error", (t)=>e.emit("error", t));
2180
+ });
2181
+ e.once("close", ()=>propagateCloseEventToSources(t));
2182
+ e.once("end", ()=>propagateCloseEventToSources(t));
2183
+ return e;
2184
+ }
2185
+ e.merge = merge;
2186
+ function propagateCloseEventToSources(t) {
2187
+ t.forEach((t)=>t.emit("close"));
2188
+ }
2189
+ },
2190
+ 5121: (t, e)=>{
2191
+ "use strict";
2192
+ Object.defineProperty(e, "__esModule", {
2193
+ value: true
2194
+ });
2195
+ e.isEmpty = e.isString = void 0;
2196
+ function isString(t) {
2197
+ return "string" == typeof t;
2198
+ }
2199
+ e.isString = isString;
2200
+ function isEmpty(t) {
2201
+ return "" === t;
2202
+ }
2203
+ e.isEmpty = isEmpty;
2204
+ },
2205
+ 4241: (t, e, r)=>{
2206
+ "use strict";
2207
+ var n = r(1816);
2208
+ function fastqueue(t, e, r) {
2209
+ if ("function" == typeof t) {
2210
+ r = e;
2211
+ e = t;
2212
+ t = null;
2213
+ }
2214
+ if (r < 1) throw new Error("fastqueue concurrency must be greater than 1");
2215
+ var s = n(Task);
2216
+ var i = null;
2217
+ var o = null;
2218
+ var a = 0;
2219
+ var u = null;
2220
+ var c = {
2221
+ push: push,
2222
+ drain: noop,
2223
+ saturated: noop,
2224
+ pause: pause,
2225
+ paused: false,
2226
+ concurrency: r,
2227
+ running: running,
2228
+ resume: resume,
2229
+ idle: idle,
2230
+ length: length,
2231
+ getQueue: getQueue,
2232
+ unshift: unshift,
2233
+ empty: noop,
2234
+ kill: kill,
2235
+ killAndDrain: killAndDrain,
2236
+ error: error
2237
+ };
2238
+ return c;
2239
+ function running() {
2240
+ return a;
2241
+ }
2242
+ function pause() {
2243
+ c.paused = true;
2244
+ }
2245
+ function length() {
2246
+ var t = i;
2247
+ var e = 0;
2248
+ while(t){
2249
+ t = t.next;
2250
+ e++;
2251
+ }
2252
+ return e;
2253
+ }
2254
+ function getQueue() {
2255
+ var t = i;
2256
+ var e = [];
2257
+ while(t){
2258
+ e.push(t.value);
2259
+ t = t.next;
2260
+ }
2261
+ return e;
2262
+ }
2263
+ function resume() {
2264
+ if (!c.paused) return;
2265
+ c.paused = false;
2266
+ for(var t = 0; t < c.concurrency; t++){
2267
+ a++;
2268
+ release();
2269
+ }
2270
+ }
2271
+ function idle() {
2272
+ return 0 === a && 0 === c.length();
2273
+ }
2274
+ function push(r, n) {
2275
+ var l = s.get();
2276
+ l.context = t;
2277
+ l.release = release;
2278
+ l.value = r;
2279
+ l.callback = n || noop;
2280
+ l.errorHandler = u;
2281
+ if (a === c.concurrency || c.paused) if (o) {
2282
+ o.next = l;
2283
+ o = l;
2284
+ } else {
2285
+ i = l;
2286
+ o = l;
2287
+ c.saturated();
2288
+ }
2289
+ else {
2290
+ a++;
2291
+ e.call(t, l.value, l.worked);
2292
+ }
2293
+ }
2294
+ function unshift(r, n) {
2295
+ var u = s.get();
2296
+ u.context = t;
2297
+ u.release = release;
2298
+ u.value = r;
2299
+ u.callback = n || noop;
2300
+ if (a === c.concurrency || c.paused) if (i) {
2301
+ u.next = i;
2302
+ i = u;
2303
+ } else {
2304
+ i = u;
2305
+ o = u;
2306
+ c.saturated();
2307
+ }
2308
+ else {
2309
+ a++;
2310
+ e.call(t, u.value, u.worked);
2311
+ }
2312
+ }
2313
+ function release(r) {
2314
+ if (r) s.release(r);
2315
+ var n = i;
2316
+ if (n) if (c.paused) a--;
2317
+ else {
2318
+ if (o === i) o = null;
2319
+ i = n.next;
2320
+ n.next = null;
2321
+ e.call(t, n.value, n.worked);
2322
+ if (null === o) c.empty();
2323
+ }
2324
+ else if (0 === --a) c.drain();
2325
+ }
2326
+ function kill() {
2327
+ i = null;
2328
+ o = null;
2329
+ c.drain = noop;
2330
+ }
2331
+ function killAndDrain() {
2332
+ i = null;
2333
+ o = null;
2334
+ c.drain();
2335
+ c.drain = noop;
2336
+ }
2337
+ function error(t) {
2338
+ u = t;
2339
+ }
2340
+ }
2341
+ function noop() {}
2342
+ function Task() {
2343
+ this.value = null;
2344
+ this.callback = noop;
2345
+ this.next = null;
2346
+ this.release = noop;
2347
+ this.context = null;
2348
+ this.errorHandler = null;
2349
+ var t = this;
2350
+ this.worked = function(e, r) {
2351
+ var n = t.callback;
2352
+ var s = t.errorHandler;
2353
+ var i = t.value;
2354
+ t.value = null;
2355
+ t.callback = noop;
2356
+ if (t.errorHandler) s(e, i);
2357
+ n.call(t.context, e, r);
2358
+ t.release(t);
2359
+ };
2360
+ }
2361
+ function queueAsPromised(t, e, r) {
2362
+ if ("function" == typeof t) {
2363
+ r = e;
2364
+ e = t;
2365
+ t = null;
2366
+ }
2367
+ function asyncWrapper(t, r) {
2368
+ e.call(this, t).then(function(t) {
2369
+ r(null, t);
2370
+ }, r);
2371
+ }
2372
+ var n = fastqueue(t, asyncWrapper, r);
2373
+ var s = n.push;
2374
+ var i = n.unshift;
2375
+ n.push = push;
2376
+ n.unshift = unshift;
2377
+ n.drained = drained;
2378
+ return n;
2379
+ function push(t) {
2380
+ var e = new Promise(function(e, r) {
2381
+ s(t, function(t, n) {
2382
+ if (t) return void r(t);
2383
+ e(n);
2384
+ });
2385
+ });
2386
+ e.catch(noop);
2387
+ return e;
2388
+ }
2389
+ function unshift(t) {
2390
+ var e = new Promise(function(e, r) {
2391
+ i(t, function(t, n) {
2392
+ if (t) return void r(t);
2393
+ e(n);
2394
+ });
2395
+ });
2396
+ e.catch(noop);
2397
+ return e;
2398
+ }
2399
+ function drained() {
2400
+ var t = n.drain;
2401
+ var e = new Promise(function(e) {
2402
+ n.drain = function() {
2403
+ t();
2404
+ e();
2405
+ };
2406
+ });
2407
+ return e;
2408
+ }
2409
+ }
2410
+ t.exports = fastqueue;
2411
+ t.exports.promise = queueAsPromised;
2412
+ },
2413
+ 442: (t, e, r)=>{
2414
+ "use strict";
2415
+ /*!
3
2416
  * fill-range <https://github.com/jonschlinkert/fill-range>
4
2417
  *
5
2418
  * Copyright (c) 2014-present, Jon Schlinkert.
6
2419
  * Licensed under the MIT License.
7
- */const n=r(3837);const s=r(211);const isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);const transform=t=>e=>t===true?Number(e):String(e);const isValidValue=t=>typeof t==="number"||typeof t==="string"&&t!=="";const isNumber=t=>Number.isInteger(+t);const zeros=t=>{let e=`${t}`;let r=-1;if(e[0]==="-")e=e.slice(1);if(e==="0")return false;while(e[++r]==="0");return r>0};const stringify=(t,e,r)=>{if(typeof t==="string"||typeof e==="string"){return true}return r.stringify===true};const pad=(t,e,r)=>{if(e>0){let r=t[0]==="-"?"-":"";if(r)t=t.slice(1);t=r+t.padStart(r?e-1:e,"0")}if(r===false){return String(t)}return t};const toMaxLen=(t,e)=>{let r=t[0]==="-"?"-":"";if(r){t=t.slice(1);e--}while(t.length<e)t="0"+t;return r?"-"+t:t};const toSequence=(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 r=e.capture?"":"?:";let n="";let s="";let i;if(t.positives.length){n=t.positives.join("|")}if(t.negatives.length){s=`-(${r}${t.negatives.join("|")})`}if(n&&s){i=`${n}|${s}`}else{i=n||s}if(e.wrap){return`(${r}${i})`}return i};const toRange=(t,e,r,n)=>{if(r){return s(t,e,{wrap:false,...n})}let i=String.fromCharCode(t);if(t===e)return i;let o=String.fromCharCode(e);return`[${i}-${o}]`};const toRegex=(t,e,r)=>{if(Array.isArray(t)){let e=r.wrap===true;let n=r.capture?"":"?:";return e?`(${n}${t.join("|")})`:t.join("|")}return s(t,e,r)};const rangeError=(...t)=>new RangeError("Invalid range arguments: "+n.inspect(...t));const invalidRange=(t,e,r)=>{if(r.strictRanges===true)throw rangeError([t,e]);return[]};const invalidStep=(t,e)=>{if(e.strictRanges===true){throw new TypeError(`Expected step "${t}" to be a number`)}return[]};const fillNumbers=(t,e,r=1,n={})=>{let s=Number(t);let i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===true)throw rangeError([t,e]);return[]}if(s===0)s=0;if(i===0)i=0;let o=s>i;let a=String(t);let u=String(e);let c=String(r);r=Math.max(Math.abs(r),1);let l=zeros(a)||zeros(u)||zeros(c);let f=l?Math.max(a.length,u.length,c.length):0;let p=l===false&&stringify(t,e,n)===false;let h=n.transform||transform(p);if(n.toRegex&&r===1){return toRange(toMaxLen(t,f),toMaxLen(e,f),true,n)}let d={negatives:[],positives:[]};let push=t=>d[t<0?"negatives":"positives"].push(Math.abs(t));let _=[];let g=0;while(o?s>=i:s<=i){if(n.toRegex===true&&r>1){push(s)}else{_.push(pad(h(s,g),f,p))}s=o?s-r:s+r;g++}if(n.toRegex===true){return r>1?toSequence(d,n):toRegex(_,null,{wrap:false,...n})}return _};const fillLetters=(t,e,r=1,n={})=>{if(!isNumber(t)&&t.length>1||!isNumber(e)&&e.length>1){return invalidRange(t,e,n)}let s=n.transform||(t=>String.fromCharCode(t));let i=`${t}`.charCodeAt(0);let o=`${e}`.charCodeAt(0);let a=i>o;let u=Math.min(i,o);let c=Math.max(i,o);if(n.toRegex&&r===1){return toRange(u,c,false,n)}let l=[];let f=0;while(a?i>=o:i<=o){l.push(s(i,f));i=a?i-r:i+r;f++}if(n.toRegex===true){return toRegex(l,null,{wrap:false,options:n})}return l};const fill=(t,e,r,n={})=>{if(e==null&&isValidValue(t)){return[t]}if(!isValidValue(t)||!isValidValue(e)){return invalidRange(t,e,n)}if(typeof r==="function"){return fill(t,e,1,{transform:r})}if(isObject(r)){return fill(t,e,0,r)}let s={...n};if(s.capture===true)s.wrap=true;r=r||s.step||1;if(!isNumber(r)){if(r!=null&&!isObject(r))return invalidStep(r,s);return fill(t,e,1,r)}if(isNumber(t)&&isNumber(e)){return fillNumbers(t,e,r,s)}return fillLetters(t,e,Math.max(Math.abs(r),1),s)};t.exports=fill},5976:(t,e,r)=>{"use strict";var n=r(6654);var s=r(1017).posix.dirname;var i=r(2037).platform()==="win32";var o="/";var a=/\\/g;var u=/[\{\[].*[\}\]]$/;var c=/(^|[^\\])([\{\[]|\([^\)]+$)/;var l=/\\([\!\*\?\|\[\]\(\)\{\}])/g;t.exports=function globParent(t,e){var r=Object.assign({flipBackslashes:true},e);if(r.flipBackslashes&&i&&t.indexOf(o)<0){t=t.replace(a,o)}if(u.test(t)){t+=o}t+="a";do{t=s(t)}while(n(t)||c.test(t));return t.replace(l,"$1")}},3071:t=>{
8
- /*!
2420
+ */ const n = r(3837);
2421
+ const s = r(211);
2422
+ const isObject = (t)=>null !== t && "object" == typeof t && !Array.isArray(t);
2423
+ const transform = (t)=>(e)=>true === t ? Number(e) : String(e);
2424
+ const isValidValue = (t)=>"number" == typeof t || "string" == typeof t && "" !== t;
2425
+ const isNumber = (t)=>Number.isInteger(+t);
2426
+ const zeros = (t)=>{
2427
+ let e = `${t}`;
2428
+ let r = -1;
2429
+ if ("-" === e[0]) e = e.slice(1);
2430
+ if ("0" === e) return false;
2431
+ while("0" === e[++r]);
2432
+ return r > 0;
2433
+ };
2434
+ const stringify = (t, e, r)=>{
2435
+ if ("string" == typeof t || "string" == typeof e) return true;
2436
+ return true === r.stringify;
2437
+ };
2438
+ const pad = (t, e, r)=>{
2439
+ if (e > 0) {
2440
+ let r = "-" === t[0] ? "-" : "";
2441
+ if (r) t = t.slice(1);
2442
+ t = r + t.padStart(r ? e - 1 : e, "0");
2443
+ }
2444
+ if (false === r) return String(t);
2445
+ return t;
2446
+ };
2447
+ const toMaxLen = (t, e)=>{
2448
+ let r = "-" === t[0] ? "-" : "";
2449
+ if (r) {
2450
+ t = t.slice(1);
2451
+ e--;
2452
+ }
2453
+ while(t.length < e)t = "0" + t;
2454
+ return r ? "-" + t : t;
2455
+ };
2456
+ const toSequence = (t, e)=>{
2457
+ t.negatives.sort((t, e)=>t < e ? -1 : t > e ? 1 : 0);
2458
+ t.positives.sort((t, e)=>t < e ? -1 : t > e ? 1 : 0);
2459
+ let r = e.capture ? "" : "?:";
2460
+ let n = "";
2461
+ let s = "";
2462
+ let i;
2463
+ if (t.positives.length) n = t.positives.join("|");
2464
+ if (t.negatives.length) s = `-(${r}${t.negatives.join("|")})`;
2465
+ i = n && s ? `${n}|${s}` : n || s;
2466
+ if (e.wrap) return `(${r}${i})`;
2467
+ return i;
2468
+ };
2469
+ const toRange = (t, e, r, n)=>{
2470
+ if (r) return s(t, e, {
2471
+ wrap: false,
2472
+ ...n
2473
+ });
2474
+ let i = String.fromCharCode(t);
2475
+ if (t === e) return i;
2476
+ let o = String.fromCharCode(e);
2477
+ return `[${i}-${o}]`;
2478
+ };
2479
+ const toRegex = (t, e, r)=>{
2480
+ if (Array.isArray(t)) {
2481
+ let e = true === r.wrap;
2482
+ let n = r.capture ? "" : "?:";
2483
+ return e ? `(${n}${t.join("|")})` : t.join("|");
2484
+ }
2485
+ return s(t, e, r);
2486
+ };
2487
+ const rangeError = (...t)=>new RangeError("Invalid range arguments: " + n.inspect(...t));
2488
+ const invalidRange = (t, e, r)=>{
2489
+ if (true === r.strictRanges) throw rangeError([
2490
+ t,
2491
+ e
2492
+ ]);
2493
+ return [];
2494
+ };
2495
+ const invalidStep = (t, e)=>{
2496
+ if (true === e.strictRanges) throw new TypeError(`Expected step "${t}" to be a number`);
2497
+ return [];
2498
+ };
2499
+ const fillNumbers = (t, e, r = 1, n = {})=>{
2500
+ let s = Number(t);
2501
+ let i = Number(e);
2502
+ if (!Number.isInteger(s) || !Number.isInteger(i)) {
2503
+ if (true === n.strictRanges) throw rangeError([
2504
+ t,
2505
+ e
2506
+ ]);
2507
+ return [];
2508
+ }
2509
+ if (0 === s) s = 0;
2510
+ if (0 === i) i = 0;
2511
+ let o = s > i;
2512
+ let a = String(t);
2513
+ let u = String(e);
2514
+ let c = String(r);
2515
+ r = Math.max(Math.abs(r), 1);
2516
+ let l = zeros(a) || zeros(u) || zeros(c);
2517
+ let f = l ? Math.max(a.length, u.length, c.length) : 0;
2518
+ let p = false === l && false === stringify(t, e, n);
2519
+ let h = n.transform || transform(p);
2520
+ if (n.toRegex && 1 === r) return toRange(toMaxLen(t, f), toMaxLen(e, f), true, n);
2521
+ let d = {
2522
+ negatives: [],
2523
+ positives: []
2524
+ };
2525
+ let push = (t)=>d[t < 0 ? "negatives" : "positives"].push(Math.abs(t));
2526
+ let _ = [];
2527
+ let g = 0;
2528
+ while(o ? s >= i : s <= i){
2529
+ if (true === n.toRegex && r > 1) push(s);
2530
+ else _.push(pad(h(s, g), f, p));
2531
+ s = o ? s - r : s + r;
2532
+ g++;
2533
+ }
2534
+ if (true === n.toRegex) return r > 1 ? toSequence(d, n) : toRegex(_, null, {
2535
+ wrap: false,
2536
+ ...n
2537
+ });
2538
+ return _;
2539
+ };
2540
+ const fillLetters = (t, e, r = 1, n = {})=>{
2541
+ if (!isNumber(t) && t.length > 1 || !isNumber(e) && e.length > 1) return invalidRange(t, e, n);
2542
+ let s = n.transform || ((t)=>String.fromCharCode(t));
2543
+ let i = `${t}`.charCodeAt(0);
2544
+ let o = `${e}`.charCodeAt(0);
2545
+ let a = i > o;
2546
+ let u = Math.min(i, o);
2547
+ let c = Math.max(i, o);
2548
+ if (n.toRegex && 1 === r) return toRange(u, c, false, n);
2549
+ let l = [];
2550
+ let f = 0;
2551
+ while(a ? i >= o : i <= o){
2552
+ l.push(s(i, f));
2553
+ i = a ? i - r : i + r;
2554
+ f++;
2555
+ }
2556
+ if (true === n.toRegex) return toRegex(l, null, {
2557
+ wrap: false,
2558
+ options: n
2559
+ });
2560
+ return l;
2561
+ };
2562
+ const fill = (t, e, r, n = {})=>{
2563
+ if (null == e && isValidValue(t)) return [
2564
+ t
2565
+ ];
2566
+ if (!isValidValue(t) || !isValidValue(e)) return invalidRange(t, e, n);
2567
+ if ("function" == typeof r) return fill(t, e, 1, {
2568
+ transform: r
2569
+ });
2570
+ if (isObject(r)) return fill(t, e, 0, r);
2571
+ let s = {
2572
+ ...n
2573
+ };
2574
+ if (true === s.capture) s.wrap = true;
2575
+ r = r || s.step || 1;
2576
+ if (!isNumber(r)) {
2577
+ if (null != r && !isObject(r)) return invalidStep(r, s);
2578
+ return fill(t, e, 1, r);
2579
+ }
2580
+ if (isNumber(t) && isNumber(e)) return fillNumbers(t, e, r, s);
2581
+ return fillLetters(t, e, Math.max(Math.abs(r), 1), s);
2582
+ };
2583
+ t.exports = fill;
2584
+ },
2585
+ 5976: (t, e, r)=>{
2586
+ "use strict";
2587
+ var n = r(6654);
2588
+ var s = r(1017).posix.dirname;
2589
+ var i = "win32" === r(2037).platform();
2590
+ var o = "/";
2591
+ var a = /\\/g;
2592
+ var u = /[\{\[].*[\}\]]$/;
2593
+ var c = /(^|[^\\])([\{\[]|\([^\)]+$)/;
2594
+ var l = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
2595
+ t.exports = function(t, e) {
2596
+ var r = Object.assign({
2597
+ flipBackslashes: true
2598
+ }, e);
2599
+ if (r.flipBackslashes && i && t.indexOf(o) < 0) t = t.replace(a, o);
2600
+ if (u.test(t)) t += o;
2601
+ t += "a";
2602
+ do t = s(t);
2603
+ while (n(t) || c.test(t));
2604
+ return t.replace(l, "$1");
2605
+ };
2606
+ },
2607
+ 3071: (t)=>{
2608
+ /*!
9
2609
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
10
2610
  *
11
2611
  * Copyright (c) 2014-2016, Jon Schlinkert.
12
2612
  * Licensed under the MIT License.
13
- */
14
- t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var e;while(e=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(e[2])return true;t=t.slice(e.index+e[0].length)}return false}},6654:(t,e,r)=>{
15
- /*!
2613
+ */ t.exports = function(t) {
2614
+ if ("string" != typeof t || "" === t) return false;
2615
+ var e;
2616
+ while(e = /(\\).|([@?!+*]\(.*\))/g.exec(t)){
2617
+ if (e[2]) return true;
2618
+ t = t.slice(e.index + e[0].length);
2619
+ }
2620
+ return false;
2621
+ };
2622
+ },
2623
+ 6654: (t, e, r)=>{
2624
+ /*!
16
2625
  * is-glob <https://github.com/jonschlinkert/is-glob>
17
2626
  *
18
2627
  * Copyright (c) 2014-2017, Jon Schlinkert.
19
2628
  * Released under the MIT License.
20
- */
21
- var n=r(3071);var s={"{":"}","(":")","[":"]"};var strictCheck=function(t){if(t[0]==="!"){return true}var e=0;var r=-2;var n=-2;var i=-2;var o=-2;var a=-2;while(e<t.length){if(t[e]==="*"){return true}if(t[e+1]==="?"&&/[\].+)]/.test(t[e])){return true}if(n!==-1&&t[e]==="["&&t[e+1]!=="]"){if(n<e){n=t.indexOf("]",e)}if(n>e){if(a===-1||a>n){return true}a=t.indexOf("\\",e);if(a===-1||a>n){return true}}}if(i!==-1&&t[e]==="{"&&t[e+1]!=="}"){i=t.indexOf("}",e);if(i>e){a=t.indexOf("\\",e);if(a===-1||a>i){return true}}}if(o!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"){o=t.indexOf(")",e);if(o>e){a=t.indexOf("\\",e);if(a===-1||a>o){return true}}}if(r!==-1&&t[e]==="("&&t[e+1]!=="|"){if(r<e){r=t.indexOf("|",e)}if(r!==-1&&t[r+1]!==")"){o=t.indexOf(")",r);if(o>r){a=t.indexOf("\\",r);if(a===-1||a>o){return true}}}}if(t[e]==="\\"){var u=t[e+1];e+=2;var c=s[u];if(c){var l=t.indexOf(c,e);if(l!==-1){e=l+1}}if(t[e]==="!"){return true}}else{e++}}return false};var relaxedCheck=function(t){if(t[0]==="!"){return true}var e=0;while(e<t.length){if(/[*?{}()[\]]/.test(t[e])){return true}if(t[e]==="\\"){var r=t[e+1];e+=2;var n=s[r];if(n){var i=t.indexOf(n,e);if(i!==-1){e=i+1}}if(t[e]==="!"){return true}}else{e++}}return false};t.exports=function isGlob(t,e){if(typeof t!=="string"||t===""){return false}if(n(t)){return true}var r=strictCheck;if(e&&e.strict===false){r=relaxedCheck}return r(t)}},8387:t=>{"use strict";
22
- /*!
2629
+ */ var n = r(3071);
2630
+ var s = {
2631
+ "{": "}",
2632
+ "(": ")",
2633
+ "[": "]"
2634
+ };
2635
+ var strictCheck = function(t) {
2636
+ if ("!" === t[0]) return true;
2637
+ var e = 0;
2638
+ var r = -2;
2639
+ var n = -2;
2640
+ var i = -2;
2641
+ var o = -2;
2642
+ var a = -2;
2643
+ while(e < t.length){
2644
+ if ("*" === t[e]) return true;
2645
+ if ("?" === t[e + 1] && /[\].+)]/.test(t[e])) return true;
2646
+ if (-1 !== n && "[" === t[e] && "]" !== t[e + 1]) {
2647
+ if (n < e) n = t.indexOf("]", e);
2648
+ if (n > e) {
2649
+ if (-1 === a || a > n) return true;
2650
+ a = t.indexOf("\\", e);
2651
+ if (-1 === a || a > n) return true;
2652
+ }
2653
+ }
2654
+ if (-1 !== i && "{" === t[e] && "}" !== t[e + 1]) {
2655
+ i = t.indexOf("}", e);
2656
+ if (i > e) {
2657
+ a = t.indexOf("\\", e);
2658
+ if (-1 === a || a > i) return true;
2659
+ }
2660
+ }
2661
+ if (-1 !== o && "(" === t[e] && "?" === t[e + 1] && /[:!=]/.test(t[e + 2]) && ")" !== t[e + 3]) {
2662
+ o = t.indexOf(")", e);
2663
+ if (o > e) {
2664
+ a = t.indexOf("\\", e);
2665
+ if (-1 === a || a > o) return true;
2666
+ }
2667
+ }
2668
+ if (-1 !== r && "(" === t[e] && "|" !== t[e + 1]) {
2669
+ if (r < e) r = t.indexOf("|", e);
2670
+ if (-1 !== r && ")" !== t[r + 1]) {
2671
+ o = t.indexOf(")", r);
2672
+ if (o > r) {
2673
+ a = t.indexOf("\\", r);
2674
+ if (-1 === a || a > o) return true;
2675
+ }
2676
+ }
2677
+ }
2678
+ if ("\\" === t[e]) {
2679
+ var u = t[e + 1];
2680
+ e += 2;
2681
+ var c = s[u];
2682
+ if (c) {
2683
+ var l = t.indexOf(c, e);
2684
+ if (-1 !== l) e = l + 1;
2685
+ }
2686
+ if ("!" === t[e]) return true;
2687
+ } else e++;
2688
+ }
2689
+ return false;
2690
+ };
2691
+ var relaxedCheck = function(t) {
2692
+ if ("!" === t[0]) return true;
2693
+ var e = 0;
2694
+ while(e < t.length){
2695
+ if (/[*?{}()[\]]/.test(t[e])) return true;
2696
+ if ("\\" === t[e]) {
2697
+ var r = t[e + 1];
2698
+ e += 2;
2699
+ var n = s[r];
2700
+ if (n) {
2701
+ var i = t.indexOf(n, e);
2702
+ if (-1 !== i) e = i + 1;
2703
+ }
2704
+ if ("!" === t[e]) return true;
2705
+ } else e++;
2706
+ }
2707
+ return false;
2708
+ };
2709
+ t.exports = function(t, e) {
2710
+ if ("string" != typeof t || "" === t) return false;
2711
+ if (n(t)) return true;
2712
+ var r = strictCheck;
2713
+ if (e && false === e.strict) r = relaxedCheck;
2714
+ return r(t);
2715
+ };
2716
+ },
2717
+ 8387: (t)=>{
2718
+ "use strict";
2719
+ /*!
23
2720
  * is-number <https://github.com/jonschlinkert/is-number>
24
2721
  *
25
2722
  * Copyright (c) 2014-present, Jon Schlinkert.
26
2723
  * Released under the MIT License.
27
- */t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},1382:(t,e,r)=>{"use strict";const n=r(2781);const s=n.PassThrough;const i=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const e=i.call(arguments);let r=false;let n=e[e.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){e.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const u=s(n);function addStream(){for(let e=0,r=arguments.length;e<r;e++){t.push(pauseStreams(arguments[e],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let e=t.shift();if(!e){process.nextTick(endStream);return}if(!Array.isArray(e)){e=[e]}let n=e.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(a){t.removeListener("error",onerror)}next()}function onerror(t){u.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(a){t.on("error",onerror)}t.pipe(u,{end:false});t.resume()}for(let t=0;t<e.length;t++){pipe(e[t])}next()}function endStream(){r=false;u.emit("queueDrain");if(o){u.end()}}u.setMaxListeners(0);u.add=addStream;u.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(e.length){addStream.apply(null,e)}return u}function pauseStreams(t,e){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(s(e))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let r=0,n=t.length;r<n;r++){t[r]=pauseStreams(t[r],e)}}return t}},8627:(t,e,r)=>{"use strict";const n=r(3837);const s=r(1570);const i=r(376);const o=r(8658);const isEmptyString=t=>t===""||t==="./";const micromatch=(t,e,r)=>{e=[].concat(e);t=[].concat(t);let n=new Set;let s=new Set;let o=new Set;let a=0;let onResult=t=>{o.add(t.output);if(r&&r.onResult){r.onResult(t)}};for(let o=0;o<e.length;o++){let u=i(String(e[o]),{...r,onResult:onResult},true);let c=u.state.negated||u.state.negatedExtglob;if(c)a++;for(let e of t){let t=u(e,true);let r=c?!t.isMatch:t.isMatch;if(!r)continue;if(c){n.add(t.output)}else{n.delete(t.output);s.add(t.output)}}}let u=a===e.length?[...o]:[...s];let c=u.filter((t=>!n.has(t)));if(r&&c.length===0){if(r.failglob===true){throw new Error(`No matches found for "${e.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?e.map((t=>t.replace(/\\/g,""))):e}}return c};micromatch.match=micromatch;micromatch.matcher=(t,e)=>i(t,e);micromatch.isMatch=(t,e,r)=>i(e,r)(t);micromatch.any=micromatch.isMatch;micromatch.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set;let s=[];let onResult=t=>{if(r.onResult)r.onResult(t);s.push(t.output)};let i=new Set(micromatch(t,e,{...r,onResult:onResult}));for(let t of s){if(!i.has(t)){n.add(t)}}return[...n]};micromatch.contains=(t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}if(Array.isArray(e)){return e.some((e=>micromatch.contains(t,e,r)))}if(typeof e==="string"){if(isEmptyString(t)||isEmptyString(e)){return false}if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e)){return true}}return micromatch.isMatch(t,e,{...r,contains:true})};micromatch.matchKeys=(t,e,r)=>{if(!o.isObject(t)){throw new TypeError("Expected the first argument to be an object")}let n=micromatch(Object.keys(t),e,r);let s={};for(let e of n)s[e]=t[e];return s};micromatch.some=(t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(n.some((t=>e(t)))){return true}}return false};micromatch.every=(t,e,r)=>{let n=[].concat(t);for(let t of[].concat(e)){let e=i(String(t),r);if(!n.every((t=>e(t)))){return false}}return true};micromatch.all=(t,e,r)=>{if(typeof t!=="string"){throw new TypeError(`Expected a string: "${n.inspect(t)}"`)}return[].concat(e).every((e=>i(e,r)(t)))};micromatch.capture=(t,e,r)=>{let n=o.isWindows(r);let s=i.makeRe(String(t),{...r,capture:true});let a=s.exec(n?o.toPosixSlashes(e):e);if(a){return a.slice(1).map((t=>t===void 0?"":t))}};micromatch.makeRe=(...t)=>i.makeRe(...t);micromatch.scan=(...t)=>i.scan(...t);micromatch.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[])){for(let t of s(String(n),e)){r.push(i.parse(t,e))}}return r};micromatch.braces=(t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");if(e&&e.nobrace===true||!/\{.*\}/.test(t)){return[t]}return s(t,e)};micromatch.braceExpand=(t,e)=>{if(typeof t!=="string")throw new TypeError("Expected a string");return micromatch.braces(t,{...e,expand:true})};t.exports=micromatch},376:(t,e,r)=>{"use strict";t.exports=r(7631)},7820:(t,e,r)=>{"use strict";const n=r(1017);const s="\\\\/";const i=`[^${s}]`;const o="\\.";const a="\\+";const u="\\?";const c="\\/";const l="(?=.)";const f="[^/]";const p=`(?:${c}|$)`;const h=`(?:^|${c})`;const d=`${o}{1,2}${p}`;const _=`(?!${o})`;const g=`(?!${h}${d})`;const y=`(?!${o}{0,1}${p})`;const S=`(?!${d})`;const m=`[^.${c}]`;const v=`${f}*?`;const E={DOT_LITERAL:o,PLUS_LITERAL:a,QMARK_LITERAL:u,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:f,END_ANCHOR:p,DOTS_SLASH:d,NO_DOT:_,NO_DOTS:g,NO_DOT_SLASH:y,NO_DOTS_SLASH:S,QMARK_NO_DOT:m,STAR:v,START_ANCHOR:h};const A={...E,SLASH_LITERAL:`[${s}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${s}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${s}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${s}]|$))`,QMARK_NO_DOT:`[^.${s}]`,START_ANCHOR:`(?:^|[${s}])`,END_ANCHOR:`(?:[${s}]|$)`};const b={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"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:b,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:n.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?A:E}}},6986:(t,e,r)=>{"use strict";const n=r(7820);const s=r(8658);const{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:u,REPLACEMENTS:c}=n;const expandRange=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const r=`[${t.join("-")}]`;try{new RegExp(r)}catch(e){return t.map((t=>s.escapeRegex(t))).join("..")}return r};const syntaxError=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;const parse=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=c[t]||t;const r={...e};const l=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;let f=t.length;if(f>l){throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`)}const p={type:"bos",value:"",output:r.prepend||""};const h=[p];const d=r.capture?"":"?:";const _=s.isWindows(e);const g=n.globChars(_);const y=n.extglobChars(g);const{DOT_LITERAL:S,PLUS_LITERAL:m,SLASH_LITERAL:v,ONE_CHAR:E,DOTS_SLASH:A,NO_DOT:b,NO_DOT_SLASH:R,NO_DOTS_SLASH:P,QMARK:x,QMARK_NO_DOT:k,STAR:T,START_ANCHOR:C}=g;const globstar=t=>`(${d}(?:(?!${C}${t.dot?A:S}).)*?)`;const w=r.dot?"":b;const O=r.dot?x:k;let L=r.bash===true?globstar(r):T;if(r.capture){L=`(${L})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const H={input:t,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:h};t=s.removePrefix(t,H);f=t.length;const D=[];const F=[];const $=[];let M=p;let N;const eos=()=>H.index===f-1;const I=H.peek=(e=1)=>t[H.index+e];const B=H.advance=()=>t[++H.index]||"";const remaining=()=>t.slice(H.index+1);const consume=(t="",e=0)=>{H.consumed+=t;H.index+=e};const append=t=>{H.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(I()==="!"&&(I(2)!=="("||I(3)==="?")){B();H.start++;t++}if(t%2===0){return false}H.negated=true;H.start++;return true};const increment=t=>{H[t]++;$.push(t)};const decrement=t=>{H[t]--;$.pop()};const push=t=>{if(M.type==="globstar"){const e=H.braces>0&&(t.type==="comma"||t.type==="brace");const r=t.extglob===true||D.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!r){H.output=H.output.slice(0,-M.output.length);M.type="star";M.value="*";M.output=L;H.output+=M.output}}if(D.length&&t.type!=="paren"){D[D.length-1].inner+=t.value}if(t.value||t.output)append(t);if(M&&M.type==="text"&&t.type==="text"){M.value+=t.value;M.output=(M.output||"")+t.value;return}t.prev=M;h.push(t);M=t};const extglobOpen=(t,e)=>{const n={...y[e],conditions:1,inner:""};n.prev=M;n.parens=H.parens;n.output=H.output;const s=(r.capture?"(":"")+n.open;increment("parens");push({type:t,value:e,output:H.output?"":E});push({type:"paren",extglob:true,value:B(),output:s});D.push(n)};const extglobClose=t=>{let n=t.close+(r.capture?")":"");let s;if(t.type==="negate"){let i=L;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){i=globstar(r)}if(i!==L||eos()||/^\)+$/.test(remaining())){n=t.close=`)$))${i}`}if(t.inner.includes("*")&&(s=remaining())&&/^\.[^\\/.]+$/.test(s)){const r=parse(s,{...e,fastpaths:false}).output;n=t.close=`)${r})${i})`}if(t.prev.type==="bos"){H.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:n});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let n=false;let i=t.replace(u,((t,e,r,s,i,o)=>{if(s==="\\"){n=true;return t}if(s==="?"){if(e){return e+s+(i?x.repeat(i.length):"")}if(o===0){return O+(i?x.repeat(i.length):"")}return x.repeat(r.length)}if(s==="."){return S.repeat(r.length)}if(s==="*"){if(e){return e+s+(i?L:"")}return L}return e?t:`\\${t}`}));if(n===true){if(r.unescape===true){i=i.replace(/\\/g,"")}else{i=i.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(i===t&&r.contains===true){H.output=t;return H}H.output=s.wrapOutput(i,H,e);return H}while(!eos()){N=B();if(N==="\0"){continue}if(N==="\\"){const t=I();if(t==="/"&&r.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){N+="\\";push({type:"text",value:N});continue}const e=/^\\+/.exec(remaining());let n=0;if(e&&e[0].length>2){n=e[0].length;H.index+=n;if(n%2!==0){N+="\\"}}if(r.unescape===true){N=B()}else{N+=B()}if(H.brackets===0){push({type:"text",value:N});continue}}if(H.brackets>0&&(N!=="]"||M.value==="["||M.value==="[^")){if(r.posix!==false&&N===":"){const t=M.value.slice(1);if(t.includes("[")){M.posix=true;if(t.includes(":")){const t=M.value.lastIndexOf("[");const e=M.value.slice(0,t);const r=M.value.slice(t+2);const n=o[r];if(n){M.value=e+n;H.backtrack=true;B();if(!p.output&&h.indexOf(M)===1){p.output=E}continue}}}}if(N==="["&&I()!==":"||N==="-"&&I()==="]"){N=`\\${N}`}if(N==="]"&&(M.value==="["||M.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&M.value==="["){N="^"}M.value+=N;append({value:N});continue}if(H.quotes===1&&N!=='"'){N=s.escapeRegex(N);M.value+=N;append({value:N});continue}if(N==='"'){H.quotes=H.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(H.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=D[D.length-1];if(t&&H.parens===t.parens+1){extglobClose(D.pop());continue}push({type:"paren",value:N,output:H.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||M&&M.type==="bracket"&&M.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(H.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const t=M.value.slice(1);if(M.posix!==true&&t[0]==="^"&&!t.includes("/")){N=`/${N}`}M.value+=N;append({value:N});if(r.literalBrackets===false||s.hasRegexChars(t)){continue}const e=s.escapeRegex(M.value);H.output=H.output.slice(0,-M.value.length);if(r.literalBrackets===true){H.output+=e;M.value=e;continue}M.value=`(${d}${e}|${M.value})`;H.output+=M.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const t={type:"brace",value:N,output:"(",outputIndex:H.output.length,tokensIndex:H.tokens.length};F.push(t);push(t);continue}if(N==="}"){const t=F[F.length-1];if(r.nobrace===true||!t){push({type:"text",value:N,output:N});continue}let e=")";if(t.dots===true){const t=h.slice();const n=[];for(let e=t.length-1;e>=0;e--){h.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){n.unshift(t[e].value)}}e=expandRange(n,r);H.backtrack=true}if(t.comma!==true&&t.dots!==true){const r=H.output.slice(0,t.outputIndex);const n=H.tokens.slice(t.tokensIndex);t.value=t.output="\\{";N=e="\\}";H.output=r;for(const t of n){H.output+=t.output||t.value}}push({type:"brace",value:N,output:e});decrement("braces");F.pop();continue}if(N==="|"){if(D.length>0){D[D.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let t=N;const e=F[F.length-1];if(e&&$[$.length-1]==="braces"){e.comma=true;t="|"}push({type:"comma",value:N,output:t});continue}if(N==="/"){if(M.type==="dot"&&H.index===H.start+1){H.start=H.index+1;H.consumed="";H.output="";h.pop();M=p;continue}push({type:"slash",value:N,output:v});continue}if(N==="."){if(H.braces>0&&M.type==="dot"){if(M.value===".")M.output=S;const t=F[F.length-1];M.type="dots";M.output+=N;M.value+=N;t.dots=true;continue}if(H.braces+H.parens===0&&M.type!=="bos"&&M.type!=="slash"){push({type:"text",value:N,output:S});continue}push({type:"dot",value:N,output:S});continue}if(N==="?"){const t=M&&M.value==="(";if(!t&&r.noextglob!==true&&I()==="("&&I(2)!=="?"){extglobOpen("qmark",N);continue}if(M&&M.type==="paren"){const t=I();let e=N;if(t==="<"&&!s.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(M.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){e=`\\${N}`}push({type:"text",value:N,output:e});continue}if(r.dot!==true&&(M.type==="slash"||M.type==="bos")){push({type:"qmark",value:N,output:k});continue}push({type:"qmark",value:N,output:x});continue}if(N==="!"){if(r.noextglob!==true&&I()==="("){if(I(2)!=="?"||!/[!=<:]/.test(I(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&H.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){extglobOpen("plus",N);continue}if(M&&M.value==="("||r.regex===false){push({type:"plus",value:N,output:m});continue}if(M&&(M.type==="bracket"||M.type==="paren"||M.type==="brace")||H.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:m});continue}if(N==="@"){if(r.noextglob!==true&&I()==="("&&I(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const t=a.exec(remaining());if(t){N+=t[0];H.index+=t[0].length}push({type:"text",value:N});continue}if(M&&(M.type==="globstar"||M.star===true)){M.type="star";M.star=true;M.value+=N;M.output=L;H.backtrack=true;H.globstar=true;consume(N);continue}let e=remaining();if(r.noextglob!==true&&/^\([^?]/.test(e)){extglobOpen("star",N);continue}if(M.type==="star"){if(r.noglobstar===true){consume(N);continue}const n=M.prev;const s=n.prev;const i=n.type==="slash"||n.type==="bos";const o=s&&(s.type==="star"||s.type==="globstar");if(r.bash===true&&(!i||e[0]&&e[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=H.braces>0&&(n.type==="comma"||n.type==="brace");const u=D.length&&(n.type==="pipe"||n.type==="paren");if(!i&&n.type!=="paren"&&!a&&!u){push({type:"star",value:N,output:""});continue}while(e.slice(0,3)==="/**"){const r=t[H.index+4];if(r&&r!=="/"){break}e=e.slice(3);consume("/**",3)}if(n.type==="bos"&&eos()){M.type="globstar";M.value+=N;M.output=globstar(r);H.output=M.output;H.globstar=true;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&!o&&eos()){H.output=H.output.slice(0,-(n.output+M.output).length);n.output=`(?:${n.output}`;M.type="globstar";M.output=globstar(r)+(r.strictSlashes?")":"|$)");M.value+=N;H.globstar=true;H.output+=n.output+M.output;consume(N);continue}if(n.type==="slash"&&n.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";H.output=H.output.slice(0,-(n.output+M.output).length);n.output=`(?:${n.output}`;M.type="globstar";M.output=`${globstar(r)}${v}|${v}${t})`;M.value+=N;H.output+=n.output+M.output;H.globstar=true;consume(N+B());push({type:"slash",value:"/",output:""});continue}if(n.type==="bos"&&e[0]==="/"){M.type="globstar";M.value+=N;M.output=`(?:^|${v}|${globstar(r)}${v})`;H.output=M.output;H.globstar=true;consume(N+B());push({type:"slash",value:"/",output:""});continue}H.output=H.output.slice(0,-M.output.length);M.type="globstar";M.output=globstar(r);M.value+=N;H.output+=M.output;H.globstar=true;consume(N);continue}const n={type:"star",value:N,output:L};if(r.bash===true){n.output=".*?";if(M.type==="bos"||M.type==="slash"){n.output=w+n.output}push(n);continue}if(M&&(M.type==="bracket"||M.type==="paren")&&r.regex===true){n.output=N;push(n);continue}if(H.index===H.start||M.type==="slash"||M.type==="dot"){if(M.type==="dot"){H.output+=R;M.output+=R}else if(r.dot===true){H.output+=P;M.output+=P}else{H.output+=w;M.output+=w}if(I()!=="*"){H.output+=E;M.output+=E}}push(n)}while(H.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));H.output=s.escapeLast(H.output,"[");decrement("brackets")}while(H.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));H.output=s.escapeLast(H.output,"(");decrement("parens")}while(H.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));H.output=s.escapeLast(H.output,"{");decrement("braces")}if(r.strictSlashes!==true&&(M.type==="star"||M.type==="bracket")){push({type:"maybe_slash",value:"",output:`${v}?`})}if(H.backtrack===true){H.output="";for(const t of H.tokens){H.output+=t.output!=null?t.output:t.value;if(t.suffix){H.output+=t.suffix}}}return H};parse.fastpaths=(t,e)=>{const r={...e};const o=typeof r.maxLength==="number"?Math.min(i,r.maxLength):i;const a=t.length;if(a>o){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`)}t=c[t]||t;const u=s.isWindows(e);const{DOT_LITERAL:l,SLASH_LITERAL:f,ONE_CHAR:p,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:_,NO_DOTS_SLASH:g,STAR:y,START_ANCHOR:S}=n.globChars(u);const m=r.dot?_:d;const v=r.dot?g:d;const E=r.capture?"":"?:";const A={negated:false,prefix:""};let b=r.bash===true?".*?":y;if(r.capture){b=`(${b})`}const globstar=t=>{if(t.noglobstar===true)return b;return`(${E}(?:(?!${S}${t.dot?h:l}).)*?)`};const create=t=>{switch(t){case"*":return`${m}${p}${b}`;case".*":return`${l}${p}${b}`;case"*.*":return`${m}${b}${l}${p}${b}`;case"*/*":return`${m}${b}${f}${p}${v}${b}`;case"**":return m+globstar(r);case"**/*":return`(?:${m}${globstar(r)}${f})?${v}${p}${b}`;case"**/*.*":return`(?:${m}${globstar(r)}${f})?${v}${b}${l}${p}${b}`;case"**/.*":return`(?:${m}${globstar(r)}${f})?${l}${p}${b}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const r=create(e[1]);if(!r)return;return r+l+e[2]}}};const R=s.removePrefix(t,A);let P=create(R);if(P&&r.strictSlashes!==true){P+=`${f}?`}return P};t.exports=parse},7631:(t,e,r)=>{"use strict";const n=r(1017);const s=r(8640);const i=r(6986);const o=r(8658);const a=r(7820);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,e,r=false)=>{if(Array.isArray(t)){const n=t.map((t=>picomatch(t,e,r)));const arrayMatcher=t=>{for(const e of n){const r=e(t);if(r)return r}return false};return arrayMatcher}const n=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!n){throw new TypeError("Expected pattern to be a non-empty string")}const s=e||{};const i=o.isWindows(e);const a=n?picomatch.compileRe(t,e):picomatch.makeRe(t,e,false,true);const u=a.state;delete a.state;let isIgnored=()=>false;if(s.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(s.ignore,t,r)}const matcher=(r,n=false)=>{const{isMatch:o,match:c,output:l}=picomatch.test(r,a,e,{glob:t,posix:i});const f={glob:t,state:u,regex:a,posix:i,input:r,output:l,match:c,isMatch:o};if(typeof s.onResult==="function"){s.onResult(f)}if(o===false){f.isMatch=false;return n?f:false}if(isIgnored(r)){if(typeof s.onIgnore==="function"){s.onIgnore(f)}f.isMatch=false;return n?f:false}if(typeof s.onMatch==="function"){s.onMatch(f)}return n?f:true};if(r){matcher.state=u}return matcher};picomatch.test=(t,e,r,{glob:n,posix:s}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const i=r||{};const a=i.format||(s?o.toPosixSlashes:null);let u=t===n;let c=u&&a?a(t):t;if(u===false){c=a?a(t):t;u=c===n}if(u===false||i.capture===true){if(i.matchBase===true||i.basename===true){u=picomatch.matchBase(t,e,r,s)}else{u=e.exec(c)}}return{isMatch:Boolean(u),match:u,output:c}};picomatch.matchBase=(t,e,r,s=o.isWindows(r))=>{const i=e instanceof RegExp?e:picomatch.makeRe(e,r);return i.test(n.basename(t))};picomatch.isMatch=(t,e,r)=>picomatch(e,r)(t);picomatch.parse=(t,e)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,e)));return i(t,{...e,fastpaths:false})};picomatch.scan=(t,e)=>s(t,e);picomatch.compileRe=(t,e,r=false,n=false)=>{if(r===true){return t.output}const s=e||{};const i=s.contains?"":"^";const o=s.contains?"":"$";let a=`${i}(?:${t.output})${o}`;if(t&&t.negated===true){a=`^(?!${a}).*$`}const u=picomatch.toRegex(a,e);if(n===true){u.state=t}return u};picomatch.makeRe=(t,e={},r=false,n=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let s={negated:false,fastpaths:true};if(e.fastpaths!==false&&(t[0]==="."||t[0]==="*")){s.output=i.fastpaths(t,e)}if(!s.output){s=i(t,e)}return picomatch.compileRe(s,e,r,n)};picomatch.toRegex=(t,e)=>{try{const r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}};picomatch.constants=a;t.exports=picomatch},8640:(t,e,r)=>{"use strict";const n=r(8658);const{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:f,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:_,CHAR_RIGHT_CURLY_BRACE:g,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:S}=r(7820);const isPathSeparator=t=>t===l||t===o;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,e)=>{const r=e||{};const m=t.length-1;const v=r.parts===true||r.scanToEnd===true;const E=[];const A=[];const b=[];let R=t;let P=-1;let x=0;let k=0;let T=false;let C=false;let w=false;let O=false;let L=false;let H=false;let D=false;let F=false;let $=false;let M=false;let N=0;let I;let B;let j={value:"",depth:0,isGlob:false};const eos=()=>P>=m;const peek=()=>R.charCodeAt(P+1);const advance=()=>{I=B;return R.charCodeAt(++P)};while(P<m){B=advance();let t;if(B===o){D=j.backslashes=true;B=advance();if(B===f){H=true}continue}if(H===true||B===f){N++;while(eos()!==true&&(B=advance())){if(B===o){D=j.backslashes=true;advance();continue}if(B===f){N++;continue}if(H!==true&&B===u&&(B=advance())===u){T=j.isBrace=true;w=j.isGlob=true;M=true;if(v===true){continue}break}if(H!==true&&B===a){T=j.isBrace=true;w=j.isGlob=true;M=true;if(v===true){continue}break}if(B===g){N--;if(N===0){H=false;T=j.isBrace=true;M=true;break}}}if(v===true){continue}break}if(B===l){E.push(P);A.push(j);j={value:"",depth:0,isGlob:false};if(M===true)continue;if(I===u&&P===x+1){x+=2;continue}k=P+1;continue}if(r.noext!==true){const t=B===d||B===i||B===s||B===_||B===c;if(t===true&&peek()===p){w=j.isGlob=true;O=j.isExtglob=true;M=true;if(B===c&&P===x){$=true}if(v===true){while(eos()!==true&&(B=advance())){if(B===o){D=j.backslashes=true;B=advance();continue}if(B===y){w=j.isGlob=true;M=true;break}}continue}break}}if(B===s){if(I===s)L=j.isGlobstar=true;w=j.isGlob=true;M=true;if(v===true){continue}break}if(B===_){w=j.isGlob=true;M=true;if(v===true){continue}break}if(B===h){while(eos()!==true&&(t=advance())){if(t===o){D=j.backslashes=true;advance();continue}if(t===S){C=j.isBracket=true;w=j.isGlob=true;M=true;break}}if(v===true){continue}break}if(r.nonegate!==true&&B===c&&P===x){F=j.negated=true;x++;continue}if(r.noparen!==true&&B===p){w=j.isGlob=true;if(v===true){while(eos()!==true&&(B=advance())){if(B===p){D=j.backslashes=true;B=advance();continue}if(B===y){M=true;break}}continue}break}if(w===true){M=true;if(v===true){continue}break}}if(r.noext===true){O=false;w=false}let G=R;let W="";let U="";if(x>0){W=R.slice(0,x);R=R.slice(x);k-=x}if(G&&w===true&&k>0){G=R.slice(0,k);U=R.slice(k)}else if(w===true){G="";U=R}else{G=R}if(G&&G!==""&&G!=="/"&&G!==R){if(isPathSeparator(G.charCodeAt(G.length-1))){G=G.slice(0,-1)}}if(r.unescape===true){if(U)U=n.removeBackslashes(U);if(G&&D===true){G=n.removeBackslashes(G)}}const K={prefix:W,input:t,start:x,base:G,glob:U,isBrace:T,isBracket:C,isGlob:w,isExtglob:O,isGlobstar:L,negated:F,negatedExtglob:$};if(r.tokens===true){K.maxDepth=0;if(!isPathSeparator(B)){A.push(j)}K.tokens=A}if(r.parts===true||r.tokens===true){let e;for(let n=0;n<E.length;n++){const s=e?e+1:x;const i=E[n];const o=t.slice(s,i);if(r.tokens){if(n===0&&x!==0){A[n].isPrefix=true;A[n].value=W}else{A[n].value=o}depth(A[n]);K.maxDepth+=A[n].depth}if(n!==0||o!==""){b.push(o)}e=i}if(e&&e+1<t.length){const n=t.slice(e+1);b.push(n);if(r.tokens){A[A.length-1].value=n;depth(A[A.length-1]);K.maxDepth+=A[A.length-1].depth}}K.slashes=E;K.parts=b}return K};t.exports=scan},8658:(t,e,r)=>{"use strict";const n=r(1017);const s=process.platform==="win32";const{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:u}=r(7820);e.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);e.hasRegexChars=t=>a.test(t);e.isRegexChar=t=>t.length===1&&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);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};e.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return s===true||n.sep==="\\"};e.escapeLast=(t,r,n)=>{const s=t.lastIndexOf(r,n);if(s===-1)return t;if(t[s-1]==="\\")return e.escapeLast(t,r,s-1);return`${t.slice(0,s)}\\${t.slice(s)}`};e.removePrefix=(t,e={})=>{let r=t;if(r.startsWith("./")){r=r.slice(2);e.prefix="./"}return r};e.wrapOutput=(t,e={},r={})=>{const n=r.contains?"":"^";const s=r.contains?"":"$";let i=`${n}(?:${t})${s}`;if(e.negated===true){i=`(?:^(?!${i}).*$)`}return i}},8453:t=>{
28
- /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
29
- let e;t.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):t=>(e||(e=Promise.resolve())).then(t).catch((t=>setTimeout((()=>{throw t}),0)))},1816:t=>{"use strict";function reusify(t){var e=new t;var r=e;function get(){var n=e;if(n.next){e=n.next}else{e=new t;r=e}n.next=null;return n}function release(t){r.next=t;r=t}return{get:get,release:release}}t.exports=reusify},5341:(t,e,r)=>{
30
- /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
31
- t.exports=runParallel;const n=r(8453);function runParallel(t,e){let r,s,i;let o=true;if(Array.isArray(t)){r=[];s=t.length}else{i=Object.keys(t);r={};s=i.length}function done(t){function end(){if(e)e(t,r);e=null}if(o)n(end);else end()}function each(t,e,n){r[t]=n;if(--s===0||e){done(e)}}if(!s){done(null)}else if(i){i.forEach((function(e){t[e]((function(t,r){each(e,t,r)}))}))}else{t.forEach((function(t,e){t((function(t,r){each(e,t,r)}))}))}o=false}},211:(t,e,r)=>{"use strict";
32
- /*!
2724
+ */ t.exports = function(t) {
2725
+ if ("number" == typeof t) return t - t === 0;
2726
+ if ("string" == typeof t && "" !== t.trim()) return Number.isFinite ? Number.isFinite(+t) : isFinite(+t);
2727
+ return false;
2728
+ };
2729
+ },
2730
+ 1382: (t, e, r)=>{
2731
+ "use strict";
2732
+ const n = r(2781);
2733
+ const s = n.PassThrough;
2734
+ const i = Array.prototype.slice;
2735
+ t.exports = merge2;
2736
+ function merge2() {
2737
+ const t = [];
2738
+ const e = i.call(arguments);
2739
+ let r = false;
2740
+ let n = e[e.length - 1];
2741
+ if (n && !Array.isArray(n) && null == n.pipe) e.pop();
2742
+ else n = {};
2743
+ const o = false !== n.end;
2744
+ const a = true === n.pipeError;
2745
+ if (null == n.objectMode) n.objectMode = true;
2746
+ if (null == n.highWaterMark) n.highWaterMark = 65536;
2747
+ const u = s(n);
2748
+ function addStream() {
2749
+ for(let e = 0, r = arguments.length; e < r; e++)t.push(pauseStreams(arguments[e], n));
2750
+ mergeStream();
2751
+ return this;
2752
+ }
2753
+ function mergeStream() {
2754
+ if (r) return;
2755
+ r = true;
2756
+ let e = t.shift();
2757
+ if (!e) return void process.nextTick(endStream);
2758
+ if (!Array.isArray(e)) e = [
2759
+ e
2760
+ ];
2761
+ let n = e.length + 1;
2762
+ function next() {
2763
+ if (--n > 0) return;
2764
+ r = false;
2765
+ mergeStream();
2766
+ }
2767
+ function pipe(t) {
2768
+ function onend() {
2769
+ t.removeListener("merge2UnpipeEnd", onend);
2770
+ t.removeListener("end", onend);
2771
+ if (a) t.removeListener("error", onerror);
2772
+ next();
2773
+ }
2774
+ function onerror(t) {
2775
+ u.emit("error", t);
2776
+ }
2777
+ if (t._readableState.endEmitted) return next();
2778
+ t.on("merge2UnpipeEnd", onend);
2779
+ t.on("end", onend);
2780
+ if (a) t.on("error", onerror);
2781
+ t.pipe(u, {
2782
+ end: false
2783
+ });
2784
+ t.resume();
2785
+ }
2786
+ for(let t = 0; t < e.length; t++)pipe(e[t]);
2787
+ next();
2788
+ }
2789
+ function endStream() {
2790
+ r = false;
2791
+ u.emit("queueDrain");
2792
+ if (o) u.end();
2793
+ }
2794
+ u.setMaxListeners(0);
2795
+ u.add = addStream;
2796
+ u.on("unpipe", function(t) {
2797
+ t.emit("merge2UnpipeEnd");
2798
+ });
2799
+ if (e.length) addStream.apply(null, e);
2800
+ return u;
2801
+ }
2802
+ function pauseStreams(t, e) {
2803
+ if (Array.isArray(t)) for(let r = 0, n = t.length; r < n; r++)t[r] = pauseStreams(t[r], e);
2804
+ else {
2805
+ if (!t._readableState && t.pipe) t = t.pipe(s(e));
2806
+ if (!t._readableState || !t.pause || !t.pipe) throw new Error("Only readable stream can be merged.");
2807
+ t.pause();
2808
+ }
2809
+ return t;
2810
+ }
2811
+ },
2812
+ 8627: (t, e, r)=>{
2813
+ "use strict";
2814
+ const n = r(3837);
2815
+ const s = r(1570);
2816
+ const i = r(376);
2817
+ const o = r(8658);
2818
+ const isEmptyString = (t)=>"" === t || "./" === t;
2819
+ const micromatch = (t, e, r)=>{
2820
+ e = [].concat(e);
2821
+ t = [].concat(t);
2822
+ let n = new Set;
2823
+ let s = new Set;
2824
+ let o = new Set;
2825
+ let a = 0;
2826
+ let onResult = (t)=>{
2827
+ o.add(t.output);
2828
+ if (r && r.onResult) r.onResult(t);
2829
+ };
2830
+ for(let o = 0; o < e.length; o++){
2831
+ let u = i(String(e[o]), {
2832
+ ...r,
2833
+ onResult: onResult
2834
+ }, true);
2835
+ let c = u.state.negated || u.state.negatedExtglob;
2836
+ if (c) a++;
2837
+ for (let e of t){
2838
+ let t = u(e, true);
2839
+ let r = c ? !t.isMatch : t.isMatch;
2840
+ if (r) if (c) n.add(t.output);
2841
+ else {
2842
+ n.delete(t.output);
2843
+ s.add(t.output);
2844
+ }
2845
+ }
2846
+ }
2847
+ let u = a === e.length ? [
2848
+ ...o
2849
+ ] : [
2850
+ ...s
2851
+ ];
2852
+ let c = u.filter((t)=>!n.has(t));
2853
+ if (r && 0 === c.length) {
2854
+ if (true === r.failglob) throw new Error(`No matches found for "${e.join(", ")}"`);
2855
+ if (true === r.nonull || true === r.nullglob) return r.unescape ? e.map((t)=>t.replace(/\\/g, "")) : e;
2856
+ }
2857
+ return c;
2858
+ };
2859
+ micromatch.match = micromatch;
2860
+ micromatch.matcher = (t, e)=>i(t, e);
2861
+ micromatch.isMatch = (t, e, r)=>i(e, r)(t);
2862
+ micromatch.any = micromatch.isMatch;
2863
+ micromatch.not = (t, e, r = {})=>{
2864
+ e = [].concat(e).map(String);
2865
+ let n = new Set;
2866
+ let s = [];
2867
+ let onResult = (t)=>{
2868
+ if (r.onResult) r.onResult(t);
2869
+ s.push(t.output);
2870
+ };
2871
+ let i = new Set(micromatch(t, e, {
2872
+ ...r,
2873
+ onResult: onResult
2874
+ }));
2875
+ for (let t of s)if (!i.has(t)) n.add(t);
2876
+ return [
2877
+ ...n
2878
+ ];
2879
+ };
2880
+ micromatch.contains = (t, e, r)=>{
2881
+ if ("string" != typeof t) throw new TypeError(`Expected a string: "${n.inspect(t)}"`);
2882
+ if (Array.isArray(e)) return e.some((e)=>micromatch.contains(t, e, r));
2883
+ if ("string" == typeof e) {
2884
+ if (isEmptyString(t) || isEmptyString(e)) return false;
2885
+ if (t.includes(e) || t.startsWith("./") && t.slice(2).includes(e)) return true;
2886
+ }
2887
+ return micromatch.isMatch(t, e, {
2888
+ ...r,
2889
+ contains: true
2890
+ });
2891
+ };
2892
+ micromatch.matchKeys = (t, e, r)=>{
2893
+ if (!o.isObject(t)) throw new TypeError("Expected the first argument to be an object");
2894
+ let n = micromatch(Object.keys(t), e, r);
2895
+ let s = {};
2896
+ for (let e of n)s[e] = t[e];
2897
+ return s;
2898
+ };
2899
+ micromatch.some = (t, e, r)=>{
2900
+ let n = [].concat(t);
2901
+ for (let t of [].concat(e)){
2902
+ let e = i(String(t), r);
2903
+ if (n.some((t)=>e(t))) return true;
2904
+ }
2905
+ return false;
2906
+ };
2907
+ micromatch.every = (t, e, r)=>{
2908
+ let n = [].concat(t);
2909
+ for (let t of [].concat(e)){
2910
+ let e = i(String(t), r);
2911
+ if (!n.every((t)=>e(t))) return false;
2912
+ }
2913
+ return true;
2914
+ };
2915
+ micromatch.all = (t, e, r)=>{
2916
+ if ("string" != typeof t) throw new TypeError(`Expected a string: "${n.inspect(t)}"`);
2917
+ return [].concat(e).every((e)=>i(e, r)(t));
2918
+ };
2919
+ micromatch.capture = (t, e, r)=>{
2920
+ let n = o.isWindows(r);
2921
+ let s = i.makeRe(String(t), {
2922
+ ...r,
2923
+ capture: true
2924
+ });
2925
+ let a = s.exec(n ? o.toPosixSlashes(e) : e);
2926
+ if (a) return a.slice(1).map((t)=>void 0 === t ? "" : t);
2927
+ };
2928
+ micromatch.makeRe = (...t)=>i.makeRe(...t);
2929
+ micromatch.scan = (...t)=>i.scan(...t);
2930
+ micromatch.parse = (t, e)=>{
2931
+ let r = [];
2932
+ for (let n of [].concat(t || []))for (let t of s(String(n), e))r.push(i.parse(t, e));
2933
+ return r;
2934
+ };
2935
+ micromatch.braces = (t, e)=>{
2936
+ if ("string" != typeof t) throw new TypeError("Expected a string");
2937
+ if (e && true === e.nobrace || !/\{.*\}/.test(t)) return [
2938
+ t
2939
+ ];
2940
+ return s(t, e);
2941
+ };
2942
+ micromatch.braceExpand = (t, e)=>{
2943
+ if ("string" != typeof t) throw new TypeError("Expected a string");
2944
+ return micromatch.braces(t, {
2945
+ ...e,
2946
+ expand: true
2947
+ });
2948
+ };
2949
+ t.exports = micromatch;
2950
+ },
2951
+ 376: (t, e, r)=>{
2952
+ "use strict";
2953
+ t.exports = r(7631);
2954
+ },
2955
+ 7820: (t, e, r)=>{
2956
+ "use strict";
2957
+ const n = r(1017);
2958
+ const s = "\\\\/";
2959
+ const i = `[^${s}]`;
2960
+ const o = "\\.";
2961
+ const a = "\\+";
2962
+ const u = "\\?";
2963
+ const c = "\\/";
2964
+ const l = "(?=.)";
2965
+ const f = "[^/]";
2966
+ const p = `(?:${c}|$)`;
2967
+ const h = `(?:^|${c})`;
2968
+ const d = `${o}{1,2}${p}`;
2969
+ const _ = `(?!${o})`;
2970
+ const g = `(?!${h}${d})`;
2971
+ const y = `(?!${o}{0,1}${p})`;
2972
+ const S = `(?!${d})`;
2973
+ const m = `[^.${c}]`;
2974
+ const v = `${f}*?`;
2975
+ const E = {
2976
+ DOT_LITERAL: o,
2977
+ PLUS_LITERAL: a,
2978
+ QMARK_LITERAL: u,
2979
+ SLASH_LITERAL: c,
2980
+ ONE_CHAR: l,
2981
+ QMARK: f,
2982
+ END_ANCHOR: p,
2983
+ DOTS_SLASH: d,
2984
+ NO_DOT: _,
2985
+ NO_DOTS: g,
2986
+ NO_DOT_SLASH: y,
2987
+ NO_DOTS_SLASH: S,
2988
+ QMARK_NO_DOT: m,
2989
+ STAR: v,
2990
+ START_ANCHOR: h
2991
+ };
2992
+ const A = {
2993
+ ...E,
2994
+ SLASH_LITERAL: `[${s}]`,
2995
+ QMARK: i,
2996
+ STAR: `${i}*?`,
2997
+ DOTS_SLASH: `${o}{1,2}(?:[${s}]|$)`,
2998
+ NO_DOT: `(?!${o})`,
2999
+ NO_DOTS: `(?!(?:^|[${s}])${o}{1,2}(?:[${s}]|$))`,
3000
+ NO_DOT_SLASH: `(?!${o}{0,1}(?:[${s}]|$))`,
3001
+ NO_DOTS_SLASH: `(?!${o}{1,2}(?:[${s}]|$))`,
3002
+ QMARK_NO_DOT: `[^.${s}]`,
3003
+ START_ANCHOR: `(?:^|[${s}])`,
3004
+ END_ANCHOR: `(?:[${s}]|$)`
3005
+ };
3006
+ const b = {
3007
+ alnum: "a-zA-Z0-9",
3008
+ alpha: "a-zA-Z",
3009
+ ascii: "\\x00-\\x7F",
3010
+ blank: " \\t",
3011
+ cntrl: "\\x00-\\x1F\\x7F",
3012
+ digit: "0-9",
3013
+ graph: "\\x21-\\x7E",
3014
+ lower: "a-z",
3015
+ print: "\\x20-\\x7E ",
3016
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
3017
+ space: " \\t\\r\\n\\v\\f",
3018
+ upper: "A-Z",
3019
+ word: "A-Za-z0-9_",
3020
+ xdigit: "A-Fa-f0-9"
3021
+ };
3022
+ t.exports = {
3023
+ MAX_LENGTH: 65536,
3024
+ POSIX_REGEX_SOURCE: b,
3025
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
3026
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
3027
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
3028
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
3029
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
3030
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
3031
+ REPLACEMENTS: {
3032
+ "***": "*",
3033
+ "**/**": "**",
3034
+ "**/**/**": "**"
3035
+ },
3036
+ CHAR_0: 48,
3037
+ CHAR_9: 57,
3038
+ CHAR_UPPERCASE_A: 65,
3039
+ CHAR_LOWERCASE_A: 97,
3040
+ CHAR_UPPERCASE_Z: 90,
3041
+ CHAR_LOWERCASE_Z: 122,
3042
+ CHAR_LEFT_PARENTHESES: 40,
3043
+ CHAR_RIGHT_PARENTHESES: 41,
3044
+ CHAR_ASTERISK: 42,
3045
+ CHAR_AMPERSAND: 38,
3046
+ CHAR_AT: 64,
3047
+ CHAR_BACKWARD_SLASH: 92,
3048
+ CHAR_CARRIAGE_RETURN: 13,
3049
+ CHAR_CIRCUMFLEX_ACCENT: 94,
3050
+ CHAR_COLON: 58,
3051
+ CHAR_COMMA: 44,
3052
+ CHAR_DOT: 46,
3053
+ CHAR_DOUBLE_QUOTE: 34,
3054
+ CHAR_EQUAL: 61,
3055
+ CHAR_EXCLAMATION_MARK: 33,
3056
+ CHAR_FORM_FEED: 12,
3057
+ CHAR_FORWARD_SLASH: 47,
3058
+ CHAR_GRAVE_ACCENT: 96,
3059
+ CHAR_HASH: 35,
3060
+ CHAR_HYPHEN_MINUS: 45,
3061
+ CHAR_LEFT_ANGLE_BRACKET: 60,
3062
+ CHAR_LEFT_CURLY_BRACE: 123,
3063
+ CHAR_LEFT_SQUARE_BRACKET: 91,
3064
+ CHAR_LINE_FEED: 10,
3065
+ CHAR_NO_BREAK_SPACE: 160,
3066
+ CHAR_PERCENT: 37,
3067
+ CHAR_PLUS: 43,
3068
+ CHAR_QUESTION_MARK: 63,
3069
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
3070
+ CHAR_RIGHT_CURLY_BRACE: 125,
3071
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
3072
+ CHAR_SEMICOLON: 59,
3073
+ CHAR_SINGLE_QUOTE: 39,
3074
+ CHAR_SPACE: 32,
3075
+ CHAR_TAB: 9,
3076
+ CHAR_UNDERSCORE: 95,
3077
+ CHAR_VERTICAL_LINE: 124,
3078
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
3079
+ SEP: n.sep,
3080
+ extglobChars (t) {
3081
+ return {
3082
+ "!": {
3083
+ type: "negate",
3084
+ open: "(?:(?!(?:",
3085
+ close: `))${t.STAR})`
3086
+ },
3087
+ "?": {
3088
+ type: "qmark",
3089
+ open: "(?:",
3090
+ close: ")?"
3091
+ },
3092
+ "+": {
3093
+ type: "plus",
3094
+ open: "(?:",
3095
+ close: ")+"
3096
+ },
3097
+ "*": {
3098
+ type: "star",
3099
+ open: "(?:",
3100
+ close: ")*"
3101
+ },
3102
+ "@": {
3103
+ type: "at",
3104
+ open: "(?:",
3105
+ close: ")"
3106
+ }
3107
+ };
3108
+ },
3109
+ globChars (t) {
3110
+ return true === t ? A : E;
3111
+ }
3112
+ };
3113
+ },
3114
+ 6986: (t, e, r)=>{
3115
+ "use strict";
3116
+ const n = r(7820);
3117
+ const s = r(8658);
3118
+ const { MAX_LENGTH: i, POSIX_REGEX_SOURCE: o, REGEX_NON_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_BACKREF: u, REPLACEMENTS: c } = n;
3119
+ const expandRange = (t, e)=>{
3120
+ if ("function" == typeof e.expandRange) return e.expandRange(...t, e);
3121
+ t.sort();
3122
+ const r = `[${t.join("-")}]`;
3123
+ try {
3124
+ new RegExp(r);
3125
+ } catch (e) {
3126
+ return t.map((t)=>s.escapeRegex(t)).join("..");
3127
+ }
3128
+ return r;
3129
+ };
3130
+ const syntaxError = (t, e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;
3131
+ const parse = (t, e)=>{
3132
+ if ("string" != typeof t) throw new TypeError("Expected a string");
3133
+ t = c[t] || t;
3134
+ const r = {
3135
+ ...e
3136
+ };
3137
+ const l = "number" == typeof r.maxLength ? Math.min(i, r.maxLength) : i;
3138
+ let f = t.length;
3139
+ if (f > l) throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${l}`);
3140
+ const p = {
3141
+ type: "bos",
3142
+ value: "",
3143
+ output: r.prepend || ""
3144
+ };
3145
+ const h = [
3146
+ p
3147
+ ];
3148
+ const d = r.capture ? "" : "?:";
3149
+ const _ = s.isWindows(e);
3150
+ const g = n.globChars(_);
3151
+ const y = n.extglobChars(g);
3152
+ const { DOT_LITERAL: S, PLUS_LITERAL: m, SLASH_LITERAL: v, ONE_CHAR: E, DOTS_SLASH: A, NO_DOT: b, NO_DOT_SLASH: R, NO_DOTS_SLASH: P, QMARK: x, QMARK_NO_DOT: k, STAR: T, START_ANCHOR: C } = g;
3153
+ const globstar = (t)=>`(${d}(?:(?!${C}${t.dot ? A : S}).)*?)`;
3154
+ const w = r.dot ? "" : b;
3155
+ const O = r.dot ? x : k;
3156
+ let L = true === r.bash ? globstar(r) : T;
3157
+ if (r.capture) L = `(${L})`;
3158
+ if ("boolean" == typeof r.noext) r.noextglob = r.noext;
3159
+ const H = {
3160
+ input: t,
3161
+ index: -1,
3162
+ start: 0,
3163
+ dot: true === r.dot,
3164
+ consumed: "",
3165
+ output: "",
3166
+ prefix: "",
3167
+ backtrack: false,
3168
+ negated: false,
3169
+ brackets: 0,
3170
+ braces: 0,
3171
+ parens: 0,
3172
+ quotes: 0,
3173
+ globstar: false,
3174
+ tokens: h
3175
+ };
3176
+ t = s.removePrefix(t, H);
3177
+ f = t.length;
3178
+ const D = [];
3179
+ const F = [];
3180
+ const $ = [];
3181
+ let M = p;
3182
+ let N;
3183
+ const eos = ()=>H.index === f - 1;
3184
+ const I = H.peek = (e = 1)=>t[H.index + e];
3185
+ const B = H.advance = ()=>t[++H.index] || "";
3186
+ const remaining = ()=>t.slice(H.index + 1);
3187
+ const consume = (t = "", e = 0)=>{
3188
+ H.consumed += t;
3189
+ H.index += e;
3190
+ };
3191
+ const append = (t)=>{
3192
+ H.output += null != t.output ? t.output : t.value;
3193
+ consume(t.value);
3194
+ };
3195
+ const negate = ()=>{
3196
+ let t = 1;
3197
+ while("!" === I() && ("(" !== I(2) || "?" === I(3))){
3198
+ B();
3199
+ H.start++;
3200
+ t++;
3201
+ }
3202
+ if (t % 2 === 0) return false;
3203
+ H.negated = true;
3204
+ H.start++;
3205
+ return true;
3206
+ };
3207
+ const increment = (t)=>{
3208
+ H[t]++;
3209
+ $.push(t);
3210
+ };
3211
+ const decrement = (t)=>{
3212
+ H[t]--;
3213
+ $.pop();
3214
+ };
3215
+ const push = (t)=>{
3216
+ if ("globstar" === M.type) {
3217
+ const e = H.braces > 0 && ("comma" === t.type || "brace" === t.type);
3218
+ const r = true === t.extglob || D.length && ("pipe" === t.type || "paren" === t.type);
3219
+ if ("slash" !== t.type && "paren" !== t.type && !e && !r) {
3220
+ H.output = H.output.slice(0, -M.output.length);
3221
+ M.type = "star";
3222
+ M.value = "*";
3223
+ M.output = L;
3224
+ H.output += M.output;
3225
+ }
3226
+ }
3227
+ if (D.length && "paren" !== t.type) D[D.length - 1].inner += t.value;
3228
+ if (t.value || t.output) append(t);
3229
+ if (M && "text" === M.type && "text" === t.type) {
3230
+ M.value += t.value;
3231
+ M.output = (M.output || "") + t.value;
3232
+ return;
3233
+ }
3234
+ t.prev = M;
3235
+ h.push(t);
3236
+ M = t;
3237
+ };
3238
+ const extglobOpen = (t, e)=>{
3239
+ const n = {
3240
+ ...y[e],
3241
+ conditions: 1,
3242
+ inner: ""
3243
+ };
3244
+ n.prev = M;
3245
+ n.parens = H.parens;
3246
+ n.output = H.output;
3247
+ const s = (r.capture ? "(" : "") + n.open;
3248
+ increment("parens");
3249
+ push({
3250
+ type: t,
3251
+ value: e,
3252
+ output: H.output ? "" : E
3253
+ });
3254
+ push({
3255
+ type: "paren",
3256
+ extglob: true,
3257
+ value: B(),
3258
+ output: s
3259
+ });
3260
+ D.push(n);
3261
+ };
3262
+ const extglobClose = (t)=>{
3263
+ let n = t.close + (r.capture ? ")" : "");
3264
+ let s;
3265
+ if ("negate" === t.type) {
3266
+ let i = L;
3267
+ if (t.inner && t.inner.length > 1 && t.inner.includes("/")) i = globstar(r);
3268
+ if (i !== L || eos() || /^\)+$/.test(remaining())) n = t.close = `)$))${i}`;
3269
+ if (t.inner.includes("*") && (s = remaining()) && /^\.[^\\/.]+$/.test(s)) {
3270
+ const r = parse(s, {
3271
+ ...e,
3272
+ fastpaths: false
3273
+ }).output;
3274
+ n = t.close = `)${r})${i})`;
3275
+ }
3276
+ if ("bos" === t.prev.type) H.negatedExtglob = true;
3277
+ }
3278
+ push({
3279
+ type: "paren",
3280
+ extglob: true,
3281
+ value: N,
3282
+ output: n
3283
+ });
3284
+ decrement("parens");
3285
+ };
3286
+ if (false !== r.fastpaths && !/(^[*!]|[/()[\]{}"])/.test(t)) {
3287
+ let n = false;
3288
+ let i = t.replace(u, (t, e, r, s, i, o)=>{
3289
+ if ("\\" === s) {
3290
+ n = true;
3291
+ return t;
3292
+ }
3293
+ if ("?" === s) {
3294
+ if (e) return e + s + (i ? x.repeat(i.length) : "");
3295
+ if (0 === o) return O + (i ? x.repeat(i.length) : "");
3296
+ return x.repeat(r.length);
3297
+ }
3298
+ if ("." === s) return S.repeat(r.length);
3299
+ if ("*" === s) {
3300
+ if (e) return e + s + (i ? L : "");
3301
+ return L;
3302
+ }
3303
+ return e ? t : `\\${t}`;
3304
+ });
3305
+ if (true === n) i = true === r.unescape ? i.replace(/\\/g, "") : i.replace(/\\+/g, (t)=>t.length % 2 === 0 ? "\\\\" : t ? "\\" : "");
3306
+ if (i === t && true === r.contains) {
3307
+ H.output = t;
3308
+ return H;
3309
+ }
3310
+ H.output = s.wrapOutput(i, H, e);
3311
+ return H;
3312
+ }
3313
+ while(!eos()){
3314
+ N = B();
3315
+ if ("\0" === N) continue;
3316
+ if ("\\" === N) {
3317
+ const t = I();
3318
+ if ("/" === t && true !== r.bash) continue;
3319
+ if ("." === t || ";" === t) continue;
3320
+ if (!t) {
3321
+ N += "\\";
3322
+ push({
3323
+ type: "text",
3324
+ value: N
3325
+ });
3326
+ continue;
3327
+ }
3328
+ const e = /^\\+/.exec(remaining());
3329
+ let n = 0;
3330
+ if (e && e[0].length > 2) {
3331
+ n = e[0].length;
3332
+ H.index += n;
3333
+ if (n % 2 !== 0) N += "\\";
3334
+ }
3335
+ if (true === r.unescape) N = B();
3336
+ else N += B();
3337
+ if (0 === H.brackets) {
3338
+ push({
3339
+ type: "text",
3340
+ value: N
3341
+ });
3342
+ continue;
3343
+ }
3344
+ }
3345
+ if (H.brackets > 0 && ("]" !== N || "[" === M.value || "[^" === M.value)) {
3346
+ if (false !== r.posix && ":" === N) {
3347
+ const t = M.value.slice(1);
3348
+ if (t.includes("[")) {
3349
+ M.posix = true;
3350
+ if (t.includes(":")) {
3351
+ const t = M.value.lastIndexOf("[");
3352
+ const e = M.value.slice(0, t);
3353
+ const r = M.value.slice(t + 2);
3354
+ const n = o[r];
3355
+ if (n) {
3356
+ M.value = e + n;
3357
+ H.backtrack = true;
3358
+ B();
3359
+ if (!p.output && 1 === h.indexOf(M)) p.output = E;
3360
+ continue;
3361
+ }
3362
+ }
3363
+ }
3364
+ }
3365
+ if ("[" === N && ":" !== I() || "-" === N && "]" === I()) N = `\\${N}`;
3366
+ if ("]" === N && ("[" === M.value || "[^" === M.value)) N = `\\${N}`;
3367
+ if (true === r.posix && "!" === N && "[" === M.value) N = "^";
3368
+ M.value += N;
3369
+ append({
3370
+ value: N
3371
+ });
3372
+ continue;
3373
+ }
3374
+ if (1 === H.quotes && '"' !== N) {
3375
+ N = s.escapeRegex(N);
3376
+ M.value += N;
3377
+ append({
3378
+ value: N
3379
+ });
3380
+ continue;
3381
+ }
3382
+ if ('"' === N) {
3383
+ H.quotes = 1 === H.quotes ? 0 : 1;
3384
+ if (true === r.keepQuotes) push({
3385
+ type: "text",
3386
+ value: N
3387
+ });
3388
+ continue;
3389
+ }
3390
+ if ("(" === N) {
3391
+ increment("parens");
3392
+ push({
3393
+ type: "paren",
3394
+ value: N
3395
+ });
3396
+ continue;
3397
+ }
3398
+ if (")" === N) {
3399
+ if (0 === H.parens && true === r.strictBrackets) throw new SyntaxError(syntaxError("opening", "("));
3400
+ const t = D[D.length - 1];
3401
+ if (t && H.parens === t.parens + 1) {
3402
+ extglobClose(D.pop());
3403
+ continue;
3404
+ }
3405
+ push({
3406
+ type: "paren",
3407
+ value: N,
3408
+ output: H.parens ? ")" : "\\)"
3409
+ });
3410
+ decrement("parens");
3411
+ continue;
3412
+ }
3413
+ if ("[" === N) {
3414
+ if (true !== r.nobracket && remaining().includes("]")) increment("brackets");
3415
+ else {
3416
+ if (true !== r.nobracket && true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "]"));
3417
+ N = `\\${N}`;
3418
+ }
3419
+ push({
3420
+ type: "bracket",
3421
+ value: N
3422
+ });
3423
+ continue;
3424
+ }
3425
+ if ("]" === N) {
3426
+ if (true === r.nobracket || M && "bracket" === M.type && 1 === M.value.length) {
3427
+ push({
3428
+ type: "text",
3429
+ value: N,
3430
+ output: `\\${N}`
3431
+ });
3432
+ continue;
3433
+ }
3434
+ if (0 === H.brackets) {
3435
+ if (true === r.strictBrackets) throw new SyntaxError(syntaxError("opening", "["));
3436
+ push({
3437
+ type: "text",
3438
+ value: N,
3439
+ output: `\\${N}`
3440
+ });
3441
+ continue;
3442
+ }
3443
+ decrement("brackets");
3444
+ const t = M.value.slice(1);
3445
+ if (true !== M.posix && "^" === t[0] && !t.includes("/")) N = `/${N}`;
3446
+ M.value += N;
3447
+ append({
3448
+ value: N
3449
+ });
3450
+ if (false === r.literalBrackets || s.hasRegexChars(t)) continue;
3451
+ const e = s.escapeRegex(M.value);
3452
+ H.output = H.output.slice(0, -M.value.length);
3453
+ if (true === r.literalBrackets) {
3454
+ H.output += e;
3455
+ M.value = e;
3456
+ continue;
3457
+ }
3458
+ M.value = `(${d}${e}|${M.value})`;
3459
+ H.output += M.value;
3460
+ continue;
3461
+ }
3462
+ if ("{" === N && true !== r.nobrace) {
3463
+ increment("braces");
3464
+ const t = {
3465
+ type: "brace",
3466
+ value: N,
3467
+ output: "(",
3468
+ outputIndex: H.output.length,
3469
+ tokensIndex: H.tokens.length
3470
+ };
3471
+ F.push(t);
3472
+ push(t);
3473
+ continue;
3474
+ }
3475
+ if ("}" === N) {
3476
+ const t = F[F.length - 1];
3477
+ if (true === r.nobrace || !t) {
3478
+ push({
3479
+ type: "text",
3480
+ value: N,
3481
+ output: N
3482
+ });
3483
+ continue;
3484
+ }
3485
+ let e = ")";
3486
+ if (true === t.dots) {
3487
+ const t = h.slice();
3488
+ const n = [];
3489
+ for(let e = t.length - 1; e >= 0; e--){
3490
+ h.pop();
3491
+ if ("brace" === t[e].type) break;
3492
+ if ("dots" !== t[e].type) n.unshift(t[e].value);
3493
+ }
3494
+ e = expandRange(n, r);
3495
+ H.backtrack = true;
3496
+ }
3497
+ if (true !== t.comma && true !== t.dots) {
3498
+ const r = H.output.slice(0, t.outputIndex);
3499
+ const n = H.tokens.slice(t.tokensIndex);
3500
+ t.value = t.output = "\\{";
3501
+ N = e = "\\}";
3502
+ H.output = r;
3503
+ for (const t of n)H.output += t.output || t.value;
3504
+ }
3505
+ push({
3506
+ type: "brace",
3507
+ value: N,
3508
+ output: e
3509
+ });
3510
+ decrement("braces");
3511
+ F.pop();
3512
+ continue;
3513
+ }
3514
+ if ("|" === N) {
3515
+ if (D.length > 0) D[D.length - 1].conditions++;
3516
+ push({
3517
+ type: "text",
3518
+ value: N
3519
+ });
3520
+ continue;
3521
+ }
3522
+ if ("," === N) {
3523
+ let t = N;
3524
+ const e = F[F.length - 1];
3525
+ if (e && "braces" === $[$.length - 1]) {
3526
+ e.comma = true;
3527
+ t = "|";
3528
+ }
3529
+ push({
3530
+ type: "comma",
3531
+ value: N,
3532
+ output: t
3533
+ });
3534
+ continue;
3535
+ }
3536
+ if ("/" === N) {
3537
+ if ("dot" === M.type && H.index === H.start + 1) {
3538
+ H.start = H.index + 1;
3539
+ H.consumed = "";
3540
+ H.output = "";
3541
+ h.pop();
3542
+ M = p;
3543
+ continue;
3544
+ }
3545
+ push({
3546
+ type: "slash",
3547
+ value: N,
3548
+ output: v
3549
+ });
3550
+ continue;
3551
+ }
3552
+ if ("." === N) {
3553
+ if (H.braces > 0 && "dot" === M.type) {
3554
+ if ("." === M.value) M.output = S;
3555
+ const t = F[F.length - 1];
3556
+ M.type = "dots";
3557
+ M.output += N;
3558
+ M.value += N;
3559
+ t.dots = true;
3560
+ continue;
3561
+ }
3562
+ if (H.braces + H.parens === 0 && "bos" !== M.type && "slash" !== M.type) {
3563
+ push({
3564
+ type: "text",
3565
+ value: N,
3566
+ output: S
3567
+ });
3568
+ continue;
3569
+ }
3570
+ push({
3571
+ type: "dot",
3572
+ value: N,
3573
+ output: S
3574
+ });
3575
+ continue;
3576
+ }
3577
+ if ("?" === N) {
3578
+ const t = M && "(" === M.value;
3579
+ if (!t && true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3580
+ extglobOpen("qmark", N);
3581
+ continue;
3582
+ }
3583
+ if (M && "paren" === M.type) {
3584
+ const t = I();
3585
+ let e = N;
3586
+ if ("<" === t && !s.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
3587
+ if ("(" === M.value && !/[!=<:]/.test(t) || "<" === t && !/<([!=]|\w+>)/.test(remaining())) e = `\\${N}`;
3588
+ push({
3589
+ type: "text",
3590
+ value: N,
3591
+ output: e
3592
+ });
3593
+ continue;
3594
+ }
3595
+ if (true !== r.dot && ("slash" === M.type || "bos" === M.type)) {
3596
+ push({
3597
+ type: "qmark",
3598
+ value: N,
3599
+ output: k
3600
+ });
3601
+ continue;
3602
+ }
3603
+ push({
3604
+ type: "qmark",
3605
+ value: N,
3606
+ output: x
3607
+ });
3608
+ continue;
3609
+ }
3610
+ if ("!" === N) {
3611
+ if (true !== r.noextglob && "(" === I()) {
3612
+ if ("?" !== I(2) || !/[!=<:]/.test(I(3))) {
3613
+ extglobOpen("negate", N);
3614
+ continue;
3615
+ }
3616
+ }
3617
+ if (true !== r.nonegate && 0 === H.index) {
3618
+ negate();
3619
+ continue;
3620
+ }
3621
+ }
3622
+ if ("+" === N) {
3623
+ if (true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3624
+ extglobOpen("plus", N);
3625
+ continue;
3626
+ }
3627
+ if (M && "(" === M.value || false === r.regex) {
3628
+ push({
3629
+ type: "plus",
3630
+ value: N,
3631
+ output: m
3632
+ });
3633
+ continue;
3634
+ }
3635
+ if (M && ("bracket" === M.type || "paren" === M.type || "brace" === M.type) || H.parens > 0) {
3636
+ push({
3637
+ type: "plus",
3638
+ value: N
3639
+ });
3640
+ continue;
3641
+ }
3642
+ push({
3643
+ type: "plus",
3644
+ value: m
3645
+ });
3646
+ continue;
3647
+ }
3648
+ if ("@" === N) {
3649
+ if (true !== r.noextglob && "(" === I() && "?" !== I(2)) {
3650
+ push({
3651
+ type: "at",
3652
+ extglob: true,
3653
+ value: N,
3654
+ output: ""
3655
+ });
3656
+ continue;
3657
+ }
3658
+ push({
3659
+ type: "text",
3660
+ value: N
3661
+ });
3662
+ continue;
3663
+ }
3664
+ if ("*" !== N) {
3665
+ if ("$" === N || "^" === N) N = `\\${N}`;
3666
+ const t = a.exec(remaining());
3667
+ if (t) {
3668
+ N += t[0];
3669
+ H.index += t[0].length;
3670
+ }
3671
+ push({
3672
+ type: "text",
3673
+ value: N
3674
+ });
3675
+ continue;
3676
+ }
3677
+ if (M && ("globstar" === M.type || true === M.star)) {
3678
+ M.type = "star";
3679
+ M.star = true;
3680
+ M.value += N;
3681
+ M.output = L;
3682
+ H.backtrack = true;
3683
+ H.globstar = true;
3684
+ consume(N);
3685
+ continue;
3686
+ }
3687
+ let e = remaining();
3688
+ if (true !== r.noextglob && /^\([^?]/.test(e)) {
3689
+ extglobOpen("star", N);
3690
+ continue;
3691
+ }
3692
+ if ("star" === M.type) {
3693
+ if (true === r.noglobstar) {
3694
+ consume(N);
3695
+ continue;
3696
+ }
3697
+ const n = M.prev;
3698
+ const s = n.prev;
3699
+ const i = "slash" === n.type || "bos" === n.type;
3700
+ const o = s && ("star" === s.type || "globstar" === s.type);
3701
+ if (true === r.bash && (!i || e[0] && "/" !== e[0])) {
3702
+ push({
3703
+ type: "star",
3704
+ value: N,
3705
+ output: ""
3706
+ });
3707
+ continue;
3708
+ }
3709
+ const a = H.braces > 0 && ("comma" === n.type || "brace" === n.type);
3710
+ const u = D.length && ("pipe" === n.type || "paren" === n.type);
3711
+ if (!i && "paren" !== n.type && !a && !u) {
3712
+ push({
3713
+ type: "star",
3714
+ value: N,
3715
+ output: ""
3716
+ });
3717
+ continue;
3718
+ }
3719
+ while("/**" === e.slice(0, 3)){
3720
+ const r = t[H.index + 4];
3721
+ if (r && "/" !== r) break;
3722
+ e = e.slice(3);
3723
+ consume("/**", 3);
3724
+ }
3725
+ if ("bos" === n.type && eos()) {
3726
+ M.type = "globstar";
3727
+ M.value += N;
3728
+ M.output = globstar(r);
3729
+ H.output = M.output;
3730
+ H.globstar = true;
3731
+ consume(N);
3732
+ continue;
3733
+ }
3734
+ if ("slash" === n.type && "bos" !== n.prev.type && !o && eos()) {
3735
+ H.output = H.output.slice(0, -(n.output + M.output).length);
3736
+ n.output = `(?:${n.output}`;
3737
+ M.type = "globstar";
3738
+ M.output = globstar(r) + (r.strictSlashes ? ")" : "|$)");
3739
+ M.value += N;
3740
+ H.globstar = true;
3741
+ H.output += n.output + M.output;
3742
+ consume(N);
3743
+ continue;
3744
+ }
3745
+ if ("slash" === n.type && "bos" !== n.prev.type && "/" === e[0]) {
3746
+ const t = void 0 !== e[1] ? "|$" : "";
3747
+ H.output = H.output.slice(0, -(n.output + M.output).length);
3748
+ n.output = `(?:${n.output}`;
3749
+ M.type = "globstar";
3750
+ M.output = `${globstar(r)}${v}|${v}${t})`;
3751
+ M.value += N;
3752
+ H.output += n.output + M.output;
3753
+ H.globstar = true;
3754
+ consume(N + B());
3755
+ push({
3756
+ type: "slash",
3757
+ value: "/",
3758
+ output: ""
3759
+ });
3760
+ continue;
3761
+ }
3762
+ if ("bos" === n.type && "/" === e[0]) {
3763
+ M.type = "globstar";
3764
+ M.value += N;
3765
+ M.output = `(?:^|${v}|${globstar(r)}${v})`;
3766
+ H.output = M.output;
3767
+ H.globstar = true;
3768
+ consume(N + B());
3769
+ push({
3770
+ type: "slash",
3771
+ value: "/",
3772
+ output: ""
3773
+ });
3774
+ continue;
3775
+ }
3776
+ H.output = H.output.slice(0, -M.output.length);
3777
+ M.type = "globstar";
3778
+ M.output = globstar(r);
3779
+ M.value += N;
3780
+ H.output += M.output;
3781
+ H.globstar = true;
3782
+ consume(N);
3783
+ continue;
3784
+ }
3785
+ const n = {
3786
+ type: "star",
3787
+ value: N,
3788
+ output: L
3789
+ };
3790
+ if (true === r.bash) {
3791
+ n.output = ".*?";
3792
+ if ("bos" === M.type || "slash" === M.type) n.output = w + n.output;
3793
+ push(n);
3794
+ continue;
3795
+ }
3796
+ if (M && ("bracket" === M.type || "paren" === M.type) && true === r.regex) {
3797
+ n.output = N;
3798
+ push(n);
3799
+ continue;
3800
+ }
3801
+ if (H.index === H.start || "slash" === M.type || "dot" === M.type) {
3802
+ if ("dot" === M.type) {
3803
+ H.output += R;
3804
+ M.output += R;
3805
+ } else if (true === r.dot) {
3806
+ H.output += P;
3807
+ M.output += P;
3808
+ } else {
3809
+ H.output += w;
3810
+ M.output += w;
3811
+ }
3812
+ if ("*" !== I()) {
3813
+ H.output += E;
3814
+ M.output += E;
3815
+ }
3816
+ }
3817
+ push(n);
3818
+ }
3819
+ while(H.brackets > 0){
3820
+ if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "]"));
3821
+ H.output = s.escapeLast(H.output, "[");
3822
+ decrement("brackets");
3823
+ }
3824
+ while(H.parens > 0){
3825
+ if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", ")"));
3826
+ H.output = s.escapeLast(H.output, "(");
3827
+ decrement("parens");
3828
+ }
3829
+ while(H.braces > 0){
3830
+ if (true === r.strictBrackets) throw new SyntaxError(syntaxError("closing", "}"));
3831
+ H.output = s.escapeLast(H.output, "{");
3832
+ decrement("braces");
3833
+ }
3834
+ if (true !== r.strictSlashes && ("star" === M.type || "bracket" === M.type)) push({
3835
+ type: "maybe_slash",
3836
+ value: "",
3837
+ output: `${v}?`
3838
+ });
3839
+ if (true === H.backtrack) {
3840
+ H.output = "";
3841
+ for (const t of H.tokens){
3842
+ H.output += null != t.output ? t.output : t.value;
3843
+ if (t.suffix) H.output += t.suffix;
3844
+ }
3845
+ }
3846
+ return H;
3847
+ };
3848
+ parse.fastpaths = (t, e)=>{
3849
+ const r = {
3850
+ ...e
3851
+ };
3852
+ const o = "number" == typeof r.maxLength ? Math.min(i, r.maxLength) : i;
3853
+ const a = t.length;
3854
+ if (a > o) throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);
3855
+ t = c[t] || t;
3856
+ const u = s.isWindows(e);
3857
+ const { DOT_LITERAL: l, SLASH_LITERAL: f, ONE_CHAR: p, DOTS_SLASH: h, NO_DOT: d, NO_DOTS: _, NO_DOTS_SLASH: g, STAR: y, START_ANCHOR: S } = n.globChars(u);
3858
+ const m = r.dot ? _ : d;
3859
+ const v = r.dot ? g : d;
3860
+ const E = r.capture ? "" : "?:";
3861
+ const A = {
3862
+ negated: false,
3863
+ prefix: ""
3864
+ };
3865
+ let b = true === r.bash ? ".*?" : y;
3866
+ if (r.capture) b = `(${b})`;
3867
+ const globstar = (t)=>{
3868
+ if (true === t.noglobstar) return b;
3869
+ return `(${E}(?:(?!${S}${t.dot ? h : l}).)*?)`;
3870
+ };
3871
+ const create = (t)=>{
3872
+ switch(t){
3873
+ case "*":
3874
+ return `${m}${p}${b}`;
3875
+ case ".*":
3876
+ return `${l}${p}${b}`;
3877
+ case "*.*":
3878
+ return `${m}${b}${l}${p}${b}`;
3879
+ case "*/*":
3880
+ return `${m}${b}${f}${p}${v}${b}`;
3881
+ case "**":
3882
+ return m + globstar(r);
3883
+ case "**/*":
3884
+ return `(?:${m}${globstar(r)}${f})?${v}${p}${b}`;
3885
+ case "**/*.*":
3886
+ return `(?:${m}${globstar(r)}${f})?${v}${b}${l}${p}${b}`;
3887
+ case "**/.*":
3888
+ return `(?:${m}${globstar(r)}${f})?${l}${p}${b}`;
3889
+ default:
3890
+ {
3891
+ const e = /^(.*?)\.(\w+)$/.exec(t);
3892
+ if (!e) return;
3893
+ const r = create(e[1]);
3894
+ if (!r) return;
3895
+ return r + l + e[2];
3896
+ }
3897
+ }
3898
+ };
3899
+ const R = s.removePrefix(t, A);
3900
+ let P = create(R);
3901
+ if (P && true !== r.strictSlashes) P += `${f}?`;
3902
+ return P;
3903
+ };
3904
+ t.exports = parse;
3905
+ },
3906
+ 7631: (t, e, r)=>{
3907
+ "use strict";
3908
+ const n = r(1017);
3909
+ const s = r(8640);
3910
+ const i = r(6986);
3911
+ const o = r(8658);
3912
+ const a = r(7820);
3913
+ const isObject = (t)=>t && "object" == typeof t && !Array.isArray(t);
3914
+ const picomatch = (t, e, r = false)=>{
3915
+ if (Array.isArray(t)) {
3916
+ const n = t.map((t)=>picomatch(t, e, r));
3917
+ const arrayMatcher = (t)=>{
3918
+ for (const e of n){
3919
+ const r = e(t);
3920
+ if (r) return r;
3921
+ }
3922
+ return false;
3923
+ };
3924
+ return arrayMatcher;
3925
+ }
3926
+ const n = isObject(t) && t.tokens && t.input;
3927
+ if ("" === t || "string" != typeof t && !n) throw new TypeError("Expected pattern to be a non-empty string");
3928
+ const s = e || {};
3929
+ const i = o.isWindows(e);
3930
+ const a = n ? picomatch.compileRe(t, e) : picomatch.makeRe(t, e, false, true);
3931
+ const u = a.state;
3932
+ delete a.state;
3933
+ let isIgnored = ()=>false;
3934
+ if (s.ignore) {
3935
+ const t = {
3936
+ ...e,
3937
+ ignore: null,
3938
+ onMatch: null,
3939
+ onResult: null
3940
+ };
3941
+ isIgnored = picomatch(s.ignore, t, r);
3942
+ }
3943
+ const matcher = (r, n = false)=>{
3944
+ const { isMatch: o, match: c, output: l } = picomatch.test(r, a, e, {
3945
+ glob: t,
3946
+ posix: i
3947
+ });
3948
+ const f = {
3949
+ glob: t,
3950
+ state: u,
3951
+ regex: a,
3952
+ posix: i,
3953
+ input: r,
3954
+ output: l,
3955
+ match: c,
3956
+ isMatch: o
3957
+ };
3958
+ if ("function" == typeof s.onResult) s.onResult(f);
3959
+ if (false === o) {
3960
+ f.isMatch = false;
3961
+ return n ? f : false;
3962
+ }
3963
+ if (isIgnored(r)) {
3964
+ if ("function" == typeof s.onIgnore) s.onIgnore(f);
3965
+ f.isMatch = false;
3966
+ return n ? f : false;
3967
+ }
3968
+ if ("function" == typeof s.onMatch) s.onMatch(f);
3969
+ return n ? f : true;
3970
+ };
3971
+ if (r) matcher.state = u;
3972
+ return matcher;
3973
+ };
3974
+ picomatch.test = (t, e, r, { glob: n, posix: s } = {})=>{
3975
+ if ("string" != typeof t) throw new TypeError("Expected input to be a string");
3976
+ if ("" === t) return {
3977
+ isMatch: false,
3978
+ output: ""
3979
+ };
3980
+ const i = r || {};
3981
+ const a = i.format || (s ? o.toPosixSlashes : null);
3982
+ let u = t === n;
3983
+ let c = u && a ? a(t) : t;
3984
+ if (false === u) {
3985
+ c = a ? a(t) : t;
3986
+ u = c === n;
3987
+ }
3988
+ if (false === u || true === i.capture) u = true === i.matchBase || true === i.basename ? picomatch.matchBase(t, e, r, s) : e.exec(c);
3989
+ return {
3990
+ isMatch: Boolean(u),
3991
+ match: u,
3992
+ output: c
3993
+ };
3994
+ };
3995
+ picomatch.matchBase = (t, e, r, s = o.isWindows(r))=>{
3996
+ const i = e instanceof RegExp ? e : picomatch.makeRe(e, r);
3997
+ return i.test(n.basename(t));
3998
+ };
3999
+ picomatch.isMatch = (t, e, r)=>picomatch(e, r)(t);
4000
+ picomatch.parse = (t, e)=>{
4001
+ if (Array.isArray(t)) return t.map((t)=>picomatch.parse(t, e));
4002
+ return i(t, {
4003
+ ...e,
4004
+ fastpaths: false
4005
+ });
4006
+ };
4007
+ picomatch.scan = (t, e)=>s(t, e);
4008
+ picomatch.compileRe = (t, e, r = false, n = false)=>{
4009
+ if (true === r) return t.output;
4010
+ const s = e || {};
4011
+ const i = s.contains ? "" : "^";
4012
+ const o = s.contains ? "" : "$";
4013
+ let a = `${i}(?:${t.output})${o}`;
4014
+ if (t && true === t.negated) a = `^(?!${a}).*$`;
4015
+ const u = picomatch.toRegex(a, e);
4016
+ if (true === n) u.state = t;
4017
+ return u;
4018
+ };
4019
+ picomatch.makeRe = (t, e = {}, r = false, n = false)=>{
4020
+ if (!t || "string" != typeof t) throw new TypeError("Expected a non-empty string");
4021
+ let s = {
4022
+ negated: false,
4023
+ fastpaths: true
4024
+ };
4025
+ if (false !== e.fastpaths && ("." === t[0] || "*" === t[0])) s.output = i.fastpaths(t, e);
4026
+ if (!s.output) s = i(t, e);
4027
+ return picomatch.compileRe(s, e, r, n);
4028
+ };
4029
+ picomatch.toRegex = (t, e)=>{
4030
+ try {
4031
+ const r = e || {};
4032
+ return new RegExp(t, r.flags || (r.nocase ? "i" : ""));
4033
+ } catch (t) {
4034
+ if (e && true === e.debug) throw t;
4035
+ return /$^/;
4036
+ }
4037
+ };
4038
+ picomatch.constants = a;
4039
+ t.exports = picomatch;
4040
+ },
4041
+ 8640: (t, e, r)=>{
4042
+ "use strict";
4043
+ const n = r(8658);
4044
+ const { 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: f, CHAR_LEFT_PARENTHESES: p, CHAR_LEFT_SQUARE_BRACKET: h, CHAR_PLUS: d, CHAR_QUESTION_MARK: _, CHAR_RIGHT_CURLY_BRACE: g, CHAR_RIGHT_PARENTHESES: y, CHAR_RIGHT_SQUARE_BRACKET: S } = r(7820);
4045
+ const isPathSeparator = (t)=>t === l || t === o;
4046
+ const depth = (t)=>{
4047
+ if (true !== t.isPrefix) t.depth = t.isGlobstar ? 1 / 0 : 1;
4048
+ };
4049
+ const scan = (t, e)=>{
4050
+ const r = e || {};
4051
+ const m = t.length - 1;
4052
+ const v = true === r.parts || true === r.scanToEnd;
4053
+ const E = [];
4054
+ const A = [];
4055
+ const b = [];
4056
+ let R = t;
4057
+ let P = -1;
4058
+ let x = 0;
4059
+ let k = 0;
4060
+ let T = false;
4061
+ let C = false;
4062
+ let w = false;
4063
+ let O = false;
4064
+ let L = false;
4065
+ let H = false;
4066
+ let D = false;
4067
+ let F = false;
4068
+ let $ = false;
4069
+ let M = false;
4070
+ let N = 0;
4071
+ let I;
4072
+ let B;
4073
+ let j = {
4074
+ value: "",
4075
+ depth: 0,
4076
+ isGlob: false
4077
+ };
4078
+ const eos = ()=>P >= m;
4079
+ const peek = ()=>R.charCodeAt(P + 1);
4080
+ const advance = ()=>{
4081
+ I = B;
4082
+ return R.charCodeAt(++P);
4083
+ };
4084
+ while(P < m){
4085
+ B = advance();
4086
+ let t;
4087
+ if (B === o) {
4088
+ D = j.backslashes = true;
4089
+ B = advance();
4090
+ if (B === f) H = true;
4091
+ continue;
4092
+ }
4093
+ if (true === H || B === f) {
4094
+ N++;
4095
+ while(true !== eos() && (B = advance())){
4096
+ if (B === o) {
4097
+ D = j.backslashes = true;
4098
+ advance();
4099
+ continue;
4100
+ }
4101
+ if (B === f) {
4102
+ N++;
4103
+ continue;
4104
+ }
4105
+ if (true !== H && B === u && (B = advance()) === u) {
4106
+ T = j.isBrace = true;
4107
+ w = j.isGlob = true;
4108
+ M = true;
4109
+ if (true === v) continue;
4110
+ break;
4111
+ }
4112
+ if (true !== H && B === a) {
4113
+ T = j.isBrace = true;
4114
+ w = j.isGlob = true;
4115
+ M = true;
4116
+ if (true === v) continue;
4117
+ break;
4118
+ }
4119
+ if (B === g) {
4120
+ N--;
4121
+ if (0 === N) {
4122
+ H = false;
4123
+ T = j.isBrace = true;
4124
+ M = true;
4125
+ break;
4126
+ }
4127
+ }
4128
+ }
4129
+ if (true === v) continue;
4130
+ break;
4131
+ }
4132
+ if (B === l) {
4133
+ E.push(P);
4134
+ A.push(j);
4135
+ j = {
4136
+ value: "",
4137
+ depth: 0,
4138
+ isGlob: false
4139
+ };
4140
+ if (true === M) continue;
4141
+ if (I === u && P === x + 1) {
4142
+ x += 2;
4143
+ continue;
4144
+ }
4145
+ k = P + 1;
4146
+ continue;
4147
+ }
4148
+ if (true !== r.noext) {
4149
+ const t = B === d || B === i || B === s || B === _ || B === c;
4150
+ if (true === t && peek() === p) {
4151
+ w = j.isGlob = true;
4152
+ O = j.isExtglob = true;
4153
+ M = true;
4154
+ if (B === c && P === x) $ = true;
4155
+ if (true === v) {
4156
+ while(true !== eos() && (B = advance())){
4157
+ if (B === o) {
4158
+ D = j.backslashes = true;
4159
+ B = advance();
4160
+ continue;
4161
+ }
4162
+ if (B === y) {
4163
+ w = j.isGlob = true;
4164
+ M = true;
4165
+ break;
4166
+ }
4167
+ }
4168
+ continue;
4169
+ }
4170
+ break;
4171
+ }
4172
+ }
4173
+ if (B === s) {
4174
+ if (I === s) L = j.isGlobstar = true;
4175
+ w = j.isGlob = true;
4176
+ M = true;
4177
+ if (true === v) continue;
4178
+ break;
4179
+ }
4180
+ if (B === _) {
4181
+ w = j.isGlob = true;
4182
+ M = true;
4183
+ if (true === v) continue;
4184
+ break;
4185
+ }
4186
+ if (B === h) {
4187
+ while(true !== eos() && (t = advance())){
4188
+ if (t === o) {
4189
+ D = j.backslashes = true;
4190
+ advance();
4191
+ continue;
4192
+ }
4193
+ if (t === S) {
4194
+ C = j.isBracket = true;
4195
+ w = j.isGlob = true;
4196
+ M = true;
4197
+ break;
4198
+ }
4199
+ }
4200
+ if (true === v) continue;
4201
+ break;
4202
+ }
4203
+ if (true !== r.nonegate && B === c && P === x) {
4204
+ F = j.negated = true;
4205
+ x++;
4206
+ continue;
4207
+ }
4208
+ if (true !== r.noparen && B === p) {
4209
+ w = j.isGlob = true;
4210
+ if (true === v) {
4211
+ while(true !== eos() && (B = advance())){
4212
+ if (B === p) {
4213
+ D = j.backslashes = true;
4214
+ B = advance();
4215
+ continue;
4216
+ }
4217
+ if (B === y) {
4218
+ M = true;
4219
+ break;
4220
+ }
4221
+ }
4222
+ continue;
4223
+ }
4224
+ break;
4225
+ }
4226
+ if (true === w) {
4227
+ M = true;
4228
+ if (true === v) continue;
4229
+ break;
4230
+ }
4231
+ }
4232
+ if (true === r.noext) {
4233
+ O = false;
4234
+ w = false;
4235
+ }
4236
+ let G = R;
4237
+ let W = "";
4238
+ let U = "";
4239
+ if (x > 0) {
4240
+ W = R.slice(0, x);
4241
+ R = R.slice(x);
4242
+ k -= x;
4243
+ }
4244
+ if (G && true === w && k > 0) {
4245
+ G = R.slice(0, k);
4246
+ U = R.slice(k);
4247
+ } else if (true === w) {
4248
+ G = "";
4249
+ U = R;
4250
+ } else G = R;
4251
+ if (G && "" !== G && "/" !== G && G !== R) {
4252
+ if (isPathSeparator(G.charCodeAt(G.length - 1))) G = G.slice(0, -1);
4253
+ }
4254
+ if (true === r.unescape) {
4255
+ if (U) U = n.removeBackslashes(U);
4256
+ if (G && true === D) G = n.removeBackslashes(G);
4257
+ }
4258
+ const K = {
4259
+ prefix: W,
4260
+ input: t,
4261
+ start: x,
4262
+ base: G,
4263
+ glob: U,
4264
+ isBrace: T,
4265
+ isBracket: C,
4266
+ isGlob: w,
4267
+ isExtglob: O,
4268
+ isGlobstar: L,
4269
+ negated: F,
4270
+ negatedExtglob: $
4271
+ };
4272
+ if (true === r.tokens) {
4273
+ K.maxDepth = 0;
4274
+ if (!isPathSeparator(B)) A.push(j);
4275
+ K.tokens = A;
4276
+ }
4277
+ if (true === r.parts || true === r.tokens) {
4278
+ let e;
4279
+ for(let n = 0; n < E.length; n++){
4280
+ const s = e ? e + 1 : x;
4281
+ const i = E[n];
4282
+ const o = t.slice(s, i);
4283
+ if (r.tokens) {
4284
+ if (0 === n && 0 !== x) {
4285
+ A[n].isPrefix = true;
4286
+ A[n].value = W;
4287
+ } else A[n].value = o;
4288
+ depth(A[n]);
4289
+ K.maxDepth += A[n].depth;
4290
+ }
4291
+ if (0 !== n || "" !== o) b.push(o);
4292
+ e = i;
4293
+ }
4294
+ if (e && e + 1 < t.length) {
4295
+ const n = t.slice(e + 1);
4296
+ b.push(n);
4297
+ if (r.tokens) {
4298
+ A[A.length - 1].value = n;
4299
+ depth(A[A.length - 1]);
4300
+ K.maxDepth += A[A.length - 1].depth;
4301
+ }
4302
+ }
4303
+ K.slashes = E;
4304
+ K.parts = b;
4305
+ }
4306
+ return K;
4307
+ };
4308
+ t.exports = scan;
4309
+ },
4310
+ 8658: (t, e, r)=>{
4311
+ "use strict";
4312
+ const n = r(1017);
4313
+ const s = "win32" === process.platform;
4314
+ const { REGEX_BACKSLASH: i, REGEX_REMOVE_BACKSLASH: o, REGEX_SPECIAL_CHARS: a, REGEX_SPECIAL_CHARS_GLOBAL: u } = r(7820);
4315
+ e.isObject = (t)=>null !== t && "object" == typeof t && !Array.isArray(t);
4316
+ e.hasRegexChars = (t)=>a.test(t);
4317
+ e.isRegexChar = (t)=>1 === t.length && e.hasRegexChars(t);
4318
+ e.escapeRegex = (t)=>t.replace(u, "\\$1");
4319
+ e.toPosixSlashes = (t)=>t.replace(i, "/");
4320
+ e.removeBackslashes = (t)=>t.replace(o, (t)=>"\\" === t ? "" : t);
4321
+ e.supportsLookbehinds = ()=>{
4322
+ const t = process.version.slice(1).split(".").map(Number);
4323
+ if (3 === t.length && t[0] >= 9 || 8 === t[0] && t[1] >= 10) return true;
4324
+ return false;
4325
+ };
4326
+ e.isWindows = (t)=>{
4327
+ if (t && "boolean" == typeof t.windows) return t.windows;
4328
+ return true === s || "\\" === n.sep;
4329
+ };
4330
+ e.escapeLast = (t, r, n)=>{
4331
+ const s = t.lastIndexOf(r, n);
4332
+ if (-1 === s) return t;
4333
+ if ("\\" === t[s - 1]) return e.escapeLast(t, r, s - 1);
4334
+ return `${t.slice(0, s)}\\${t.slice(s)}`;
4335
+ };
4336
+ e.removePrefix = (t, e = {})=>{
4337
+ let r = t;
4338
+ if (r.startsWith("./")) {
4339
+ r = r.slice(2);
4340
+ e.prefix = "./";
4341
+ }
4342
+ return r;
4343
+ };
4344
+ e.wrapOutput = (t, e = {}, r = {})=>{
4345
+ const n = r.contains ? "" : "^";
4346
+ const s = r.contains ? "" : "$";
4347
+ let i = `${n}(?:${t})${s}`;
4348
+ if (true === e.negated) i = `(?:^(?!${i}).*$)`;
4349
+ return i;
4350
+ };
4351
+ },
4352
+ 8453: (t)=>{
4353
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ let e;
4354
+ t.exports = "function" == typeof queueMicrotask ? queueMicrotask.bind("u" > typeof window ? window : global) : (t)=>(e || (e = Promise.resolve())).then(t).catch((t)=>setTimeout(()=>{
4355
+ throw t;
4356
+ }, 0));
4357
+ },
4358
+ 1816: (t)=>{
4359
+ "use strict";
4360
+ function reusify(t) {
4361
+ var e = new t;
4362
+ var r = e;
4363
+ function get() {
4364
+ var n = e;
4365
+ if (n.next) e = n.next;
4366
+ else {
4367
+ e = new t;
4368
+ r = e;
4369
+ }
4370
+ n.next = null;
4371
+ return n;
4372
+ }
4373
+ function release(t) {
4374
+ r.next = t;
4375
+ r = t;
4376
+ }
4377
+ return {
4378
+ get: get,
4379
+ release: release
4380
+ };
4381
+ }
4382
+ t.exports = reusify;
4383
+ },
4384
+ 5341: (t, e, r)=>{
4385
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */ t.exports = runParallel;
4386
+ const n = r(8453);
4387
+ function runParallel(t, e) {
4388
+ let r, s, i;
4389
+ let o = true;
4390
+ if (Array.isArray(t)) {
4391
+ r = [];
4392
+ s = t.length;
4393
+ } else {
4394
+ i = Object.keys(t);
4395
+ r = {};
4396
+ s = i.length;
4397
+ }
4398
+ function done(t) {
4399
+ function end() {
4400
+ if (e) e(t, r);
4401
+ e = null;
4402
+ }
4403
+ if (o) n(end);
4404
+ else end();
4405
+ }
4406
+ function each(t, e, n) {
4407
+ r[t] = n;
4408
+ if (0 === --s || e) done(e);
4409
+ }
4410
+ if (s) if (i) i.forEach(function(e) {
4411
+ t[e](function(t, r) {
4412
+ each(e, t, r);
4413
+ });
4414
+ });
4415
+ else t.forEach(function(t, e) {
4416
+ t(function(t, r) {
4417
+ each(e, t, r);
4418
+ });
4419
+ });
4420
+ else done(null);
4421
+ o = false;
4422
+ }
4423
+ },
4424
+ 211: (t, e, r)=>{
4425
+ "use strict";
4426
+ /*!
33
4427
  * to-regex-range <https://github.com/micromatch/to-regex-range>
34
4428
  *
35
4429
  * Copyright (c) 2015-present, Jon Schlinkert.
36
4430
  * Released under the MIT License.
37
- */const n=r(8387);const toRegexRange=(t,e,r)=>{if(n(t)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(e===void 0||t===e){return String(t)}if(n(e)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let s={relaxZeros:true,...r};if(typeof s.strictZeros==="boolean"){s.relaxZeros=s.strictZeros===false}let i=String(s.relaxZeros);let o=String(s.shorthand);let a=String(s.capture);let u=String(s.wrap);let c=t+":"+e+"="+i+o+a+u;if(toRegexRange.cache.hasOwnProperty(c)){return toRegexRange.cache[c].result}let l=Math.min(t,e);let f=Math.max(t,e);if(Math.abs(l-f)===1){let r=t+"|"+e;if(s.capture){return`(${r})`}if(s.wrap===false){return r}return`(?:${r})`}let p=hasPadding(t)||hasPadding(e);let h={min:t,max:e,a:l,b:f};let d=[];let _=[];if(p){h.isPadded=p;h.maxLen=String(h.max).length}if(l<0){let t=f<0?Math.abs(f):1;_=splitToPatterns(t,Math.abs(l),h,s);l=h.a=0}if(f>=0){d=splitToPatterns(l,f,h,s)}h.negatives=_;h.positives=d;h.result=collatePatterns(_,d,s);if(s.capture===true){h.result=`(${h.result})`}else if(s.wrap!==false&&d.length+_.length>1){h.result=`(?:${h.result})`}toRegexRange.cache[c]=h;return h.result};function collatePatterns(t,e,r){let n=filterPatterns(t,e,"-",false,r)||[];let s=filterPatterns(e,t,"",false,r)||[];let i=filterPatterns(t,e,"-?",true,r)||[];let o=n.concat(i).concat(s);return o.join("|")}function splitToRanges(t,e){let r=1;let n=1;let s=countNines(t,r);let i=new Set([e]);while(t<=s&&s<=e){i.add(s);r+=1;s=countNines(t,r)}s=countZeros(e+1,n)-1;while(t<s&&s<=e){i.add(s);n+=1;s=countZeros(e+1,n)-1}i=[...i];i.sort(compare);return i}function rangeToPattern(t,e,r){if(t===e){return{pattern:t,count:[],digits:0}}let n=zip(t,e);let s=n.length;let i="";let o=0;for(let t=0;t<s;t++){let[e,s]=n[t];if(e===s){i+=e}else if(e!=="0"||s!=="9"){i+=toCharacterClass(e,s,r)}else{o++}}if(o){i+=r.shorthand===true?"\\d":"[0-9]"}return{pattern:i,count:[o],digits:s}}function splitToPatterns(t,e,r,n){let s=splitToRanges(t,e);let i=[];let o=t;let a;for(let t=0;t<s.length;t++){let e=s[t];let u=rangeToPattern(String(o),String(e),n);let c="";if(!r.isPadded&&a&&a.pattern===u.pattern){if(a.count.length>1){a.count.pop()}a.count.push(u.count[0]);a.string=a.pattern+toQuantifier(a.count);o=e+1;continue}if(r.isPadded){c=padZeros(e,r,n)}u.string=c+u.pattern+toQuantifier(u.count);i.push(u);o=e+1;a=u}return i}function filterPatterns(t,e,r,n,s){let i=[];for(let s of t){let{string:t}=s;if(!n&&!contains(e,"string",t)){i.push(r+t)}if(n&&contains(e,"string",t)){i.push(r+t)}}return i}function zip(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function compare(t,e){return t>e?1:e>t?-1:0}function contains(t,e,r){return t.some((t=>t[e]===r))}function countNines(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function countZeros(t,e){return t-t%Math.pow(10,e)}function toQuantifier(t){let[e=0,r=""]=t;if(r||e>1){return`{${e+(r?","+r:"")}}`}return""}function toCharacterClass(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function hasPadding(t){return/^-?(0+)\d/.test(t)}function padZeros(t,e,r){if(!e.isPadded){return t}let n=Math.abs(e.maxLen-String(t).length);let s=r.relaxZeros!==false;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:{return s?`0{0,${n}}`:`0{${n}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};t.exports=toRegexRange},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},2781:t=>{"use strict";t.exports=require("stream")},3837:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var n=e[r];if(n!==undefined){return n.exports}var s=e[r]={exports:{}};var i=true;try{t[r](s,s.exports,__nccwpck_require__);i=false}finally{if(i)delete e[r]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(3924);module.exports=r})();
4431
+ */ const n = r(8387);
4432
+ const toRegexRange = (t, e, r)=>{
4433
+ if (false === n(t)) throw new TypeError("toRegexRange: expected the first argument to be a number");
4434
+ if (void 0 === e || t === e) return String(t);
4435
+ if (false === n(e)) throw new TypeError("toRegexRange: expected the second argument to be a number.");
4436
+ let s = {
4437
+ relaxZeros: true,
4438
+ ...r
4439
+ };
4440
+ if ("boolean" == typeof s.strictZeros) s.relaxZeros = false === s.strictZeros;
4441
+ let i = String(s.relaxZeros);
4442
+ let o = String(s.shorthand);
4443
+ let a = String(s.capture);
4444
+ let u = String(s.wrap);
4445
+ let c = t + ":" + e + "=" + i + o + a + u;
4446
+ if (toRegexRange.cache.hasOwnProperty(c)) return toRegexRange.cache[c].result;
4447
+ let l = Math.min(t, e);
4448
+ let f = Math.max(t, e);
4449
+ if (1 === Math.abs(l - f)) {
4450
+ let r = t + "|" + e;
4451
+ if (s.capture) return `(${r})`;
4452
+ if (false === s.wrap) return r;
4453
+ return `(?:${r})`;
4454
+ }
4455
+ let p = hasPadding(t) || hasPadding(e);
4456
+ let h = {
4457
+ min: t,
4458
+ max: e,
4459
+ a: l,
4460
+ b: f
4461
+ };
4462
+ let d = [];
4463
+ let _ = [];
4464
+ if (p) {
4465
+ h.isPadded = p;
4466
+ h.maxLen = String(h.max).length;
4467
+ }
4468
+ if (l < 0) {
4469
+ let t = f < 0 ? Math.abs(f) : 1;
4470
+ _ = splitToPatterns(t, Math.abs(l), h, s);
4471
+ l = h.a = 0;
4472
+ }
4473
+ if (f >= 0) d = splitToPatterns(l, f, h, s);
4474
+ h.negatives = _;
4475
+ h.positives = d;
4476
+ h.result = collatePatterns(_, d, s);
4477
+ if (true === s.capture) h.result = `(${h.result})`;
4478
+ else if (false !== s.wrap && d.length + _.length > 1) h.result = `(?:${h.result})`;
4479
+ toRegexRange.cache[c] = h;
4480
+ return h.result;
4481
+ };
4482
+ function collatePatterns(t, e, r) {
4483
+ let n = filterPatterns(t, e, "-", false, r) || [];
4484
+ let s = filterPatterns(e, t, "", false, r) || [];
4485
+ let i = filterPatterns(t, e, "-?", true, r) || [];
4486
+ let o = n.concat(i).concat(s);
4487
+ return o.join("|");
4488
+ }
4489
+ function splitToRanges(t, e) {
4490
+ let r = 1;
4491
+ let n = 1;
4492
+ let s = countNines(t, r);
4493
+ let i = new Set([
4494
+ e
4495
+ ]);
4496
+ while(t <= s && s <= e){
4497
+ i.add(s);
4498
+ r += 1;
4499
+ s = countNines(t, r);
4500
+ }
4501
+ s = countZeros(e + 1, n) - 1;
4502
+ while(t < s && s <= e){
4503
+ i.add(s);
4504
+ n += 1;
4505
+ s = countZeros(e + 1, n) - 1;
4506
+ }
4507
+ i = [
4508
+ ...i
4509
+ ];
4510
+ i.sort(compare);
4511
+ return i;
4512
+ }
4513
+ function rangeToPattern(t, e, r) {
4514
+ if (t === e) return {
4515
+ pattern: t,
4516
+ count: [],
4517
+ digits: 0
4518
+ };
4519
+ let n = zip(t, e);
4520
+ let s = n.length;
4521
+ let i = "";
4522
+ let o = 0;
4523
+ for(let t = 0; t < s; t++){
4524
+ let [e, s] = n[t];
4525
+ if (e === s) i += e;
4526
+ else if ("0" !== e || "9" !== s) i += toCharacterClass(e, s, r);
4527
+ else o++;
4528
+ }
4529
+ if (o) i += true === r.shorthand ? "\\d" : "[0-9]";
4530
+ return {
4531
+ pattern: i,
4532
+ count: [
4533
+ o
4534
+ ],
4535
+ digits: s
4536
+ };
4537
+ }
4538
+ function splitToPatterns(t, e, r, n) {
4539
+ let s = splitToRanges(t, e);
4540
+ let i = [];
4541
+ let o = t;
4542
+ let a;
4543
+ for(let t = 0; t < s.length; t++){
4544
+ let e = s[t];
4545
+ let u = rangeToPattern(String(o), String(e), n);
4546
+ let c = "";
4547
+ if (!r.isPadded && a && a.pattern === u.pattern) {
4548
+ if (a.count.length > 1) a.count.pop();
4549
+ a.count.push(u.count[0]);
4550
+ a.string = a.pattern + toQuantifier(a.count);
4551
+ o = e + 1;
4552
+ continue;
4553
+ }
4554
+ if (r.isPadded) c = padZeros(e, r, n);
4555
+ u.string = c + u.pattern + toQuantifier(u.count);
4556
+ i.push(u);
4557
+ o = e + 1;
4558
+ a = u;
4559
+ }
4560
+ return i;
4561
+ }
4562
+ function filterPatterns(t, e, r, n, s) {
4563
+ let i = [];
4564
+ for (let s of t){
4565
+ let { string: t } = s;
4566
+ if (!n && !contains(e, "string", t)) i.push(r + t);
4567
+ if (n && contains(e, "string", t)) i.push(r + t);
4568
+ }
4569
+ return i;
4570
+ }
4571
+ function zip(t, e) {
4572
+ let r = [];
4573
+ for(let n = 0; n < t.length; n++)r.push([
4574
+ t[n],
4575
+ e[n]
4576
+ ]);
4577
+ return r;
4578
+ }
4579
+ function compare(t, e) {
4580
+ return t > e ? 1 : e > t ? -1 : 0;
4581
+ }
4582
+ function contains(t, e, r) {
4583
+ return t.some((t)=>t[e] === r);
4584
+ }
4585
+ function countNines(t, e) {
4586
+ return Number(String(t).slice(0, -e) + "9".repeat(e));
4587
+ }
4588
+ function countZeros(t, e) {
4589
+ return t - t % Math.pow(10, e);
4590
+ }
4591
+ function toQuantifier(t) {
4592
+ let [e = 0, r = ""] = t;
4593
+ if (r || e > 1) return `{${e + (r ? "," + r : "")}}`;
4594
+ return "";
4595
+ }
4596
+ function toCharacterClass(t, e, r) {
4597
+ return `[${t}${e - t === 1 ? "" : "-"}${e}]`;
4598
+ }
4599
+ function hasPadding(t) {
4600
+ return /^-?(0+)\d/.test(t);
4601
+ }
4602
+ function padZeros(t, e, r) {
4603
+ if (!e.isPadded) return t;
4604
+ let n = Math.abs(e.maxLen - String(t).length);
4605
+ let s = false !== r.relaxZeros;
4606
+ switch(n){
4607
+ case 0:
4608
+ return "";
4609
+ case 1:
4610
+ return s ? "0?" : "0";
4611
+ case 2:
4612
+ return s ? "0{0,2}" : "00";
4613
+ default:
4614
+ return s ? `0{0,${n}}` : `0{${n}}`;
4615
+ }
4616
+ }
4617
+ toRegexRange.cache = {};
4618
+ toRegexRange.clearCache = ()=>toRegexRange.cache = {};
4619
+ t.exports = toRegexRange;
4620
+ },
4621
+ 2361: (t)=>{
4622
+ "use strict";
4623
+ t.exports = require("events");
4624
+ },
4625
+ 7147: (t)=>{
4626
+ "use strict";
4627
+ t.exports = require("fs");
4628
+ },
4629
+ 2037: (t)=>{
4630
+ "use strict";
4631
+ t.exports = require("os");
4632
+ },
4633
+ 1017: (t)=>{
4634
+ "use strict";
4635
+ t.exports = require("path");
4636
+ },
4637
+ 2781: (t)=>{
4638
+ "use strict";
4639
+ t.exports = require("stream");
4640
+ },
4641
+ 3837: (t)=>{
4642
+ "use strict";
4643
+ t.exports = require("util");
4644
+ }
4645
+ };
4646
+ var e = {};
4647
+ function __nccwpck_require__(r) {
4648
+ var n = e[r];
4649
+ if (void 0 !== n) return n.exports;
4650
+ var s = e[r] = {
4651
+ exports: {}
4652
+ };
4653
+ var i = true;
4654
+ try {
4655
+ t[r](s, s.exports, __nccwpck_require__);
4656
+ i = false;
4657
+ } finally{
4658
+ if (i) delete e[r];
4659
+ }
4660
+ return s.exports;
4661
+ }
4662
+ if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
4663
+ var r = __nccwpck_require__(3924);
4664
+ module.exports = r;
4665
+ })();