@modern-js/utils 2.12.1-alpha.3 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (492) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/{cjs/alias.js → alias.js} +15 -4
  3. package/dist/{cjs/analyzeProject.js → analyzeProject.js} +25 -5
  4. package/dist/{cjs/babel.js → babel.js} +16 -9
  5. package/dist/{cjs/compatRequire.js → compatRequire.js} +17 -4
  6. package/dist/compiled.d.ts +43 -0
  7. package/dist/{types/debug.d.ts → debug.d.ts} +1 -1
  8. package/dist/{cjs/emptyDir.js → emptyDir.js} +24 -4
  9. package/dist/{cjs/getEntryOptions.js → getEntryOptions.js} +15 -1
  10. package/dist/{cjs/getPackageManager.js → getPackageManager.js} +41 -19
  11. package/dist/{cjs/getPort.js → getPort.js} +24 -4
  12. package/dist/{cjs/getServerConfig.js → getServerConfig.js} +22 -2
  13. package/dist/{types/logger.d.ts → logger.d.ts} +1 -1
  14. package/dist/{cjs/logger.js → logger.js} +16 -5
  15. package/dist/{cjs/monorepo.js → monorepo.js} +15 -4
  16. package/dist/nodeEnv.js +81 -0
  17. package/dist/{cjs/path.js → path.js} +1 -1
  18. package/dist/{cjs/pathSerializer.js → pathSerializer.js} +1 -1
  19. package/dist/{cjs/react.js → react.js} +15 -4
  20. package/dist/{cjs/runtimeExports.js → runtimeExports.js} +1 -1
  21. package/dist/{cjs/universal → universal}/nestedRoutes.js +19 -2
  22. package/dist/{cjs/version.js → version.js} +40 -7
  23. package/dist/{cjs/watch.js → watch.js} +29 -9
  24. package/package.json +23 -55
  25. package/dist/cjs/nodeEnv.js +0 -55
  26. package/dist/compiled/address/index.js +0 -1
  27. package/dist/compiled/address/lib/address.d.ts +0 -28
  28. package/dist/compiled/address/package.json +0 -1
  29. package/dist/compiled/ajv/codegen.js +0 -1
  30. package/dist/compiled/ajv/index.js +0 -9
  31. package/dist/compiled/ajv/license +0 -22
  32. package/dist/compiled/ajv/package.json +0 -1
  33. package/dist/compiled/ajv/types/ajv.d.ts +0 -16
  34. package/dist/compiled/ajv/types/compile/codegen/code.d.ts +0 -40
  35. package/dist/compiled/ajv/types/compile/codegen/index.d.ts +0 -79
  36. package/dist/compiled/ajv/types/compile/codegen/scope.d.ts +0 -79
  37. package/dist/compiled/ajv/types/compile/errors.d.ts +0 -13
  38. package/dist/compiled/ajv/types/compile/index.d.ts +0 -80
  39. package/dist/compiled/ajv/types/compile/ref_error.d.ts +0 -6
  40. package/dist/compiled/ajv/types/compile/resolve.d.ts +0 -12
  41. package/dist/compiled/ajv/types/compile/rules.d.ts +0 -28
  42. package/dist/compiled/ajv/types/compile/util.d.ts +0 -40
  43. package/dist/compiled/ajv/types/compile/validate/index.d.ts +0 -42
  44. package/dist/compiled/ajv/types/compile/validate/subschema.d.ts +0 -47
  45. package/dist/compiled/ajv/types/core.d.ts +0 -173
  46. package/dist/compiled/ajv/types/runtime/validation_error.d.ts +0 -7
  47. package/dist/compiled/ajv/types/types/index.d.ts +0 -183
  48. package/dist/compiled/ajv/types/types/json-schema.d.ts +0 -124
  49. package/dist/compiled/ajv/types/types/jtd-schema.d.ts +0 -169
  50. package/dist/compiled/ajv/types/vocabularies/errors.d.ts +0 -1
  51. package/dist/compiled/ajv/uri-js.d.ts +0 -59
  52. package/dist/compiled/ajv-keywords/index.d.ts +0 -1
  53. package/dist/compiled/ajv-keywords/index.js +0 -1
  54. package/dist/compiled/ajv-keywords/license +0 -21
  55. package/dist/compiled/ajv-keywords/package.json +0 -1
  56. package/dist/compiled/better-ajv-errors/index.d.ts +0 -1
  57. package/dist/compiled/better-ajv-errors/index.js +0 -1
  58. package/dist/compiled/better-ajv-errors/license +0 -13
  59. package/dist/compiled/better-ajv-errors/package.json +0 -1
  60. package/dist/compiled/browserslist/index.d.ts +0 -178
  61. package/dist/compiled/browserslist/index.js +0 -1
  62. package/dist/compiled/browserslist/license +0 -20
  63. package/dist/compiled/browserslist/package.json +0 -1
  64. package/dist/compiled/chalk/index.d.ts +0 -415
  65. package/dist/compiled/chalk/index.js +0 -1
  66. package/dist/compiled/chalk/license +0 -9
  67. package/dist/compiled/chalk/package.json +0 -1
  68. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  69. package/dist/compiled/chokidar/fsevents.node +0 -0
  70. package/dist/compiled/chokidar/index.js +0 -40
  71. package/dist/compiled/chokidar/license +0 -21
  72. package/dist/compiled/chokidar/package.json +0 -1
  73. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  74. package/dist/compiled/commander/index.js +0 -1
  75. package/dist/compiled/commander/license +0 -22
  76. package/dist/compiled/commander/package.json +0 -1
  77. package/dist/compiled/commander/typings/index.d.ts +0 -890
  78. package/dist/compiled/debug/index.d.ts +0 -54
  79. package/dist/compiled/debug/index.js +0 -1
  80. package/dist/compiled/debug/license +0 -20
  81. package/dist/compiled/debug/ms/index.d.ts +0 -25
  82. package/dist/compiled/debug/package.json +0 -1
  83. package/dist/compiled/dotenv/index.js +0 -1
  84. package/dist/compiled/dotenv/license +0 -23
  85. package/dist/compiled/dotenv/package.json +0 -1
  86. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  87. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  88. package/dist/compiled/dotenv-expand/index.js +0 -1
  89. package/dist/compiled/dotenv-expand/license +0 -24
  90. package/dist/compiled/dotenv-expand/package.json +0 -1
  91. package/dist/compiled/execa/index.d.ts +0 -564
  92. package/dist/compiled/execa/index.js +0 -1
  93. package/dist/compiled/execa/license +0 -9
  94. package/dist/compiled/execa/package.json +0 -1
  95. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  96. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  97. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  98. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  99. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  100. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  101. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  102. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  103. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  104. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  105. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  106. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  107. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  108. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  109. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  110. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  111. package/dist/compiled/fast-glob/index.js +0 -37
  112. package/dist/compiled/fast-glob/license +0 -21
  113. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  114. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  115. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  116. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  117. package/dist/compiled/fast-glob/package.json +0 -1
  118. package/dist/compiled/filesize/filesize.d.ts +0 -131
  119. package/dist/compiled/filesize/index.js +0 -9
  120. package/dist/compiled/filesize/license +0 -28
  121. package/dist/compiled/filesize/package.json +0 -1
  122. package/dist/compiled/fs-extra/index.d.ts +0 -563
  123. package/dist/compiled/fs-extra/index.js +0 -1
  124. package/dist/compiled/fs-extra/license +0 -15
  125. package/dist/compiled/fs-extra/package.json +0 -1
  126. package/dist/compiled/glob/index.d.ts +0 -91
  127. package/dist/compiled/glob/index.js +0 -1
  128. package/dist/compiled/glob/license +0 -21
  129. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  130. package/dist/compiled/glob/package.json +0 -1
  131. package/dist/compiled/globby/index.d.ts +0 -186
  132. package/dist/compiled/globby/index.js +0 -1
  133. package/dist/compiled/globby/license +0 -9
  134. package/dist/compiled/globby/package.json +0 -1
  135. package/dist/compiled/gzip-size/index.d.ts +0 -96
  136. package/dist/compiled/gzip-size/index.js +0 -1
  137. package/dist/compiled/gzip-size/license +0 -9
  138. package/dist/compiled/gzip-size/package.json +0 -1
  139. package/dist/compiled/import-lazy/index.d.ts +0 -26
  140. package/dist/compiled/import-lazy/index.js +0 -1
  141. package/dist/compiled/import-lazy/license +0 -9
  142. package/dist/compiled/import-lazy/package.json +0 -1
  143. package/dist/compiled/inquirer/index.d.ts +0 -997
  144. package/dist/compiled/inquirer/index.js +0 -9
  145. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  146. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  147. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  148. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  149. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  150. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  151. package/dist/compiled/inquirer/license +0 -22
  152. package/dist/compiled/inquirer/package.json +0 -1
  153. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  154. package/dist/compiled/js-yaml/index.d.ts +0 -154
  155. package/dist/compiled/js-yaml/index.js +0 -1
  156. package/dist/compiled/js-yaml/license +0 -21
  157. package/dist/compiled/js-yaml/package.json +0 -1
  158. package/dist/compiled/json5/index.js +0 -1
  159. package/dist/compiled/json5/lib/index.d.ts +0 -4
  160. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  161. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  162. package/dist/compiled/json5/package.json +0 -1
  163. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  164. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  165. package/dist/compiled/lodash/common/common.d.ts +0 -280
  166. package/dist/compiled/lodash/common/date.d.ts +0 -23
  167. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  168. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  169. package/dist/compiled/lodash/common/math.d.ts +0 -405
  170. package/dist/compiled/lodash/common/number.d.ts +0 -131
  171. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  172. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  173. package/dist/compiled/lodash/common/string.d.ts +0 -788
  174. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  175. package/dist/compiled/lodash/index.d.ts +0 -46
  176. package/dist/compiled/lodash/index.js +0 -5
  177. package/dist/compiled/lodash/license +0 -47
  178. package/dist/compiled/lodash/package.json +0 -1
  179. package/dist/compiled/mime-types/index.d.ts +0 -14
  180. package/dist/compiled/mime-types/index.js +0 -14
  181. package/dist/compiled/mime-types/license +0 -23
  182. package/dist/compiled/mime-types/package.json +0 -1
  183. package/dist/compiled/minimist/index.d.ts +0 -95
  184. package/dist/compiled/minimist/index.js +0 -1
  185. package/dist/compiled/minimist/license +0 -18
  186. package/dist/compiled/minimist/package.json +0 -1
  187. package/dist/compiled/nanoid/index.d.ts +0 -91
  188. package/dist/compiled/nanoid/index.js +0 -1
  189. package/dist/compiled/nanoid/license +0 -20
  190. package/dist/compiled/nanoid/package.json +0 -1
  191. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  192. package/dist/compiled/ora/index.d.ts +0 -277
  193. package/dist/compiled/ora/index.js +0 -3
  194. package/dist/compiled/ora/license +0 -9
  195. package/dist/compiled/ora/package.json +0 -1
  196. package/dist/compiled/pkg-up/index.d.ts +0 -48
  197. package/dist/compiled/pkg-up/index.js +0 -1
  198. package/dist/compiled/pkg-up/license +0 -9
  199. package/dist/compiled/pkg-up/package.json +0 -1
  200. package/dist/compiled/recursive-readdir/index.d.ts +0 -21
  201. package/dist/compiled/recursive-readdir/index.js +0 -1
  202. package/dist/compiled/recursive-readdir/license +0 -21
  203. package/dist/compiled/recursive-readdir/package.json +0 -1
  204. package/dist/compiled/schema-utils3/index.d.ts +0 -1
  205. package/dist/compiled/schema-utils3/index.js +0 -3
  206. package/dist/compiled/schema-utils3/license +0 -20
  207. package/dist/compiled/schema-utils3/package.json +0 -1
  208. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  209. package/dist/compiled/semver/classes/range.d.ts +0 -21
  210. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  211. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  212. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  213. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  214. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  215. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  216. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  217. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  218. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  219. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  220. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  221. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  222. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  223. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  224. package/dist/compiled/semver/functions/major.d.ts +0 -9
  225. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  226. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  227. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  228. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  229. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  230. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  231. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  232. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  233. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  234. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  235. package/dist/compiled/semver/index.d.ts +0 -133
  236. package/dist/compiled/semver/index.js +0 -1
  237. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  238. package/dist/compiled/semver/license +0 -15
  239. package/dist/compiled/semver/package.json +0 -1
  240. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  241. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  242. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  243. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  244. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  245. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  246. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  247. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  248. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  249. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  250. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  251. package/dist/compiled/signale/index.d.ts +0 -162
  252. package/dist/compiled/signale/index.js +0 -1
  253. package/dist/compiled/signale/package.json +0 -1
  254. package/dist/compiled/slash/index.d.ts +0 -25
  255. package/dist/compiled/slash/index.js +0 -1
  256. package/dist/compiled/slash/license +0 -9
  257. package/dist/compiled/slash/package.json +0 -1
  258. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  259. package/dist/compiled/strip-ansi/index.js +0 -1
  260. package/dist/compiled/strip-ansi/license +0 -9
  261. package/dist/compiled/strip-ansi/package.json +0 -1
  262. package/dist/compiled/tsconfig-paths/index.js +0 -1
  263. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  264. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  265. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  266. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  267. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  268. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  269. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  270. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  271. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  272. package/dist/compiled/tsconfig-paths/license +0 -21
  273. package/dist/compiled/tsconfig-paths/package.json +0 -1
  274. package/dist/compiled/upath/index.js +0 -1
  275. package/dist/compiled/upath/license +0 -22
  276. package/dist/compiled/upath/package.json +0 -1
  277. package/dist/compiled/upath/upath.d.ts +0 -241
  278. package/dist/compiled/url-join/index.d.ts +0 -17
  279. package/dist/compiled/url-join/index.js +0 -1
  280. package/dist/compiled/url-join/license +0 -21
  281. package/dist/compiled/url-join/package.json +0 -1
  282. package/dist/compiled/webpack-chain/index.js +0 -1
  283. package/dist/compiled/webpack-chain/license +0 -373
  284. package/dist/compiled/webpack-chain/package.json +0 -1
  285. package/dist/compiled/webpack-chain/types/index.d.ts +0 -388
  286. package/dist/compiled/webpack-dev-middleware/index.js +0 -7
  287. package/dist/compiled/webpack-dev-middleware/license +0 -20
  288. package/dist/compiled/webpack-dev-middleware/package.json +0 -1
  289. package/dist/compiled/webpack-dev-middleware/types/index.d.ts +0 -262
  290. package/dist/esm/FileSizeReporter.js +0 -180
  291. package/dist/esm/alias.js +0 -83
  292. package/dist/esm/analyzeProject.js +0 -168
  293. package/dist/esm/applyOptionsChain.js +0 -26
  294. package/dist/esm/babel.js +0 -169
  295. package/dist/esm/chainId.js +0 -92
  296. package/dist/esm/clearConsole.js +0 -6
  297. package/dist/esm/commands.js +0 -17
  298. package/dist/esm/compatRequire.js +0 -68
  299. package/dist/esm/compiled.js +0 -34
  300. package/dist/esm/constants.js +0 -317
  301. package/dist/esm/debug.js +0 -5
  302. package/dist/esm/emptyDir.js +0 -158
  303. package/dist/esm/ensureAbsolutePath.js +0 -5
  304. package/dist/esm/ensureArray.js +0 -9
  305. package/dist/esm/findExists.js +0 -27
  306. package/dist/esm/generateMetaTags.js +0 -40
  307. package/dist/esm/getBrowserslist.js +0 -12
  308. package/dist/esm/getCoreJsVersion.js +0 -57
  309. package/dist/esm/getEntryOptions.js +0 -45
  310. package/dist/esm/getPackageManager.js +0 -187
  311. package/dist/esm/getPort.js +0 -215
  312. package/dist/esm/getServerConfig.js +0 -145
  313. package/dist/esm/getTargetDir.js +0 -6
  314. package/dist/esm/import.js +0 -8
  315. package/dist/esm/index.js +0 -44
  316. package/dist/esm/is/index.js +0 -85
  317. package/dist/esm/is/nodeEnv.js +0 -16
  318. package/dist/esm/is/platform.js +0 -7
  319. package/dist/esm/is/type.js +0 -25
  320. package/dist/esm/logger.js +0 -207
  321. package/dist/esm/monorepo.js +0 -109
  322. package/dist/esm/nodeEnv.js +0 -258
  323. package/dist/esm/path.js +0 -85
  324. package/dist/esm/pathSerializer.js +0 -85
  325. package/dist/esm/plugin.js +0 -45
  326. package/dist/esm/prettyInstructions.js +0 -96
  327. package/dist/esm/printBuildError.js +0 -24
  328. package/dist/esm/react.js +0 -43
  329. package/dist/esm/readTsConfig.js +0 -10
  330. package/dist/esm/removeSlash.js +0 -10
  331. package/dist/esm/resolve.js +0 -42
  332. package/dist/esm/routes.js +0 -19
  333. package/dist/esm/runtimeExports.js +0 -65
  334. package/dist/esm/ssr.js +0 -3
  335. package/dist/esm/storage.js +0 -36
  336. package/dist/esm/testUtils.js +0 -13
  337. package/dist/esm/types.js +0 -1
  338. package/dist/esm/universal/constants.js +0 -3
  339. package/dist/esm/universal/formatWebpack.js +0 -108
  340. package/dist/esm/universal/nestedRoutes.js +0 -174
  341. package/dist/esm/universal/remixRouter.js +0 -1
  342. package/dist/esm/universal/serialize.js +0 -7
  343. package/dist/esm/version.js +0 -193
  344. package/dist/esm/wait.js +0 -7
  345. package/dist/esm/watch.js +0 -230
  346. package/dist/esm-node/FileSizeReporter.js +0 -133
  347. package/dist/esm-node/alias.js +0 -61
  348. package/dist/esm-node/analyzeProject.js +0 -17
  349. package/dist/esm-node/applyOptionsChain.js +0 -35
  350. package/dist/esm-node/babel.js +0 -105
  351. package/dist/esm-node/chainId.js +0 -173
  352. package/dist/esm-node/clearConsole.js +0 -8
  353. package/dist/esm-node/commands.js +0 -22
  354. package/dist/esm-node/compatRequire.js +0 -42
  355. package/dist/esm-node/compiled.js +0 -77
  356. package/dist/esm-node/constants.js +0 -264
  357. package/dist/esm-node/debug.js +0 -5
  358. package/dist/esm-node/emptyDir.js +0 -9
  359. package/dist/esm-node/ensureAbsolutePath.js +0 -5
  360. package/dist/esm-node/ensureArray.js +0 -9
  361. package/dist/esm-node/findExists.js +0 -12
  362. package/dist/esm-node/generateMetaTags.js +0 -38
  363. package/dist/esm-node/getBrowserslist.js +0 -7
  364. package/dist/esm-node/getCoreJsVersion.js +0 -13
  365. package/dist/esm-node/getEntryOptions.js +0 -17
  366. package/dist/esm-node/getPackageManager.js +0 -32
  367. package/dist/esm-node/getPort.js +0 -59
  368. package/dist/esm-node/getServerConfig.js +0 -14
  369. package/dist/esm-node/getTargetDir.js +0 -8
  370. package/dist/esm-node/import.js +0 -9
  371. package/dist/esm-node/index.js +0 -44
  372. package/dist/esm-node/is/index.js +0 -71
  373. package/dist/esm-node/is/nodeEnv.js +0 -12
  374. package/dist/esm-node/is/platform.js +0 -6
  375. package/dist/esm-node/is/type.js +0 -34
  376. package/dist/esm-node/logger.js +0 -100
  377. package/dist/esm-node/monorepo.js +0 -87
  378. package/dist/esm-node/nodeEnv.js +0 -30
  379. package/dist/esm-node/path.js +0 -50
  380. package/dist/esm-node/pathSerializer.js +0 -46
  381. package/dist/esm-node/plugin.js +0 -23
  382. package/dist/esm-node/prettyInstructions.js +0 -77
  383. package/dist/esm-node/printBuildError.js +0 -34
  384. package/dist/esm-node/react.js +0 -20
  385. package/dist/esm-node/readTsConfig.js +0 -13
  386. package/dist/esm-node/removeSlash.js +0 -8
  387. package/dist/esm-node/resolve.js +0 -38
  388. package/dist/esm-node/routes.js +0 -24
  389. package/dist/esm-node/runtimeExports.js +0 -40
  390. package/dist/esm-node/ssr.js +0 -6
  391. package/dist/esm-node/storage.js +0 -42
  392. package/dist/esm-node/testUtils.js +0 -15
  393. package/dist/esm-node/types.js +0 -0
  394. package/dist/esm-node/universal/constants.js +0 -6
  395. package/dist/esm-node/universal/formatWebpack.js +0 -77
  396. package/dist/esm-node/universal/nestedRoutes.js +0 -93
  397. package/dist/esm-node/universal/remixRouter.js +0 -1
  398. package/dist/esm-node/universal/serialize.js +0 -7
  399. package/dist/esm-node/version.js +0 -25
  400. package/dist/esm-node/wait.js +0 -6
  401. package/dist/esm-node/watch.js +0 -36
  402. package/dist/types/compiled.d.ts +0 -43
  403. /package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +0 -0
  404. /package/dist/{cjs/FileSizeReporter.js → FileSizeReporter.js} +0 -0
  405. /package/dist/{types/alias.d.ts → alias.d.ts} +0 -0
  406. /package/dist/{types/analyzeProject.d.ts → analyzeProject.d.ts} +0 -0
  407. /package/dist/{types/applyOptionsChain.d.ts → applyOptionsChain.d.ts} +0 -0
  408. /package/dist/{cjs/applyOptionsChain.js → applyOptionsChain.js} +0 -0
  409. /package/dist/{types/babel.d.ts → babel.d.ts} +0 -0
  410. /package/dist/{types/chainId.d.ts → chainId.d.ts} +0 -0
  411. /package/dist/{cjs/chainId.js → chainId.js} +0 -0
  412. /package/dist/{types/clearConsole.d.ts → clearConsole.d.ts} +0 -0
  413. /package/dist/{cjs/clearConsole.js → clearConsole.js} +0 -0
  414. /package/dist/{types/commands.d.ts → commands.d.ts} +0 -0
  415. /package/dist/{cjs/commands.js → commands.js} +0 -0
  416. /package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +0 -0
  417. /package/dist/{cjs/compiled.js → compiled.js} +0 -0
  418. /package/dist/{types/constants.d.ts → constants.d.ts} +0 -0
  419. /package/dist/{cjs/constants.js → constants.js} +0 -0
  420. /package/dist/{cjs/debug.js → debug.js} +0 -0
  421. /package/dist/{types/emptyDir.d.ts → emptyDir.d.ts} +0 -0
  422. /package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +0 -0
  423. /package/dist/{cjs/ensureAbsolutePath.js → ensureAbsolutePath.js} +0 -0
  424. /package/dist/{types/ensureArray.d.ts → ensureArray.d.ts} +0 -0
  425. /package/dist/{cjs/ensureArray.js → ensureArray.js} +0 -0
  426. /package/dist/{types/findExists.d.ts → findExists.d.ts} +0 -0
  427. /package/dist/{cjs/findExists.js → findExists.js} +0 -0
  428. /package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +0 -0
  429. /package/dist/{cjs/generateMetaTags.js → generateMetaTags.js} +0 -0
  430. /package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +0 -0
  431. /package/dist/{cjs/getBrowserslist.js → getBrowserslist.js} +0 -0
  432. /package/dist/{types/getCoreJsVersion.d.ts → getCoreJsVersion.d.ts} +0 -0
  433. /package/dist/{cjs/getCoreJsVersion.js → getCoreJsVersion.js} +0 -0
  434. /package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +0 -0
  435. /package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +0 -0
  436. /package/dist/{types/getPort.d.ts → getPort.d.ts} +0 -0
  437. /package/dist/{types/getServerConfig.d.ts → getServerConfig.d.ts} +0 -0
  438. /package/dist/{types/getTargetDir.d.ts → getTargetDir.d.ts} +0 -0
  439. /package/dist/{cjs/getTargetDir.js → getTargetDir.js} +0 -0
  440. /package/dist/{types/import.d.ts → import.d.ts} +0 -0
  441. /package/dist/{cjs/import.js → import.js} +0 -0
  442. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
  443. /package/dist/{cjs/index.js → index.js} +0 -0
  444. /package/dist/{types/is → is}/index.d.ts +0 -0
  445. /package/dist/{cjs/is → is}/index.js +0 -0
  446. /package/dist/{types/is → is}/nodeEnv.d.ts +0 -0
  447. /package/dist/{cjs/is → is}/nodeEnv.js +0 -0
  448. /package/dist/{types/is → is}/platform.d.ts +0 -0
  449. /package/dist/{cjs/is → is}/platform.js +0 -0
  450. /package/dist/{types/is → is}/type.d.ts +0 -0
  451. /package/dist/{cjs/is → is}/type.js +0 -0
  452. /package/dist/{types/monorepo.d.ts → monorepo.d.ts} +0 -0
  453. /package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +0 -0
  454. /package/dist/{types/path.d.ts → path.d.ts} +0 -0
  455. /package/dist/{types/pathSerializer.d.ts → pathSerializer.d.ts} +0 -0
  456. /package/dist/{types/plugin.d.ts → plugin.d.ts} +0 -0
  457. /package/dist/{cjs/plugin.js → plugin.js} +0 -0
  458. /package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +0 -0
  459. /package/dist/{cjs/prettyInstructions.js → prettyInstructions.js} +0 -0
  460. /package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +0 -0
  461. /package/dist/{cjs/printBuildError.js → printBuildError.js} +0 -0
  462. /package/dist/{types/react.d.ts → react.d.ts} +0 -0
  463. /package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +0 -0
  464. /package/dist/{cjs/readTsConfig.js → readTsConfig.js} +0 -0
  465. /package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +0 -0
  466. /package/dist/{cjs/removeSlash.js → removeSlash.js} +0 -0
  467. /package/dist/{types/resolve.d.ts → resolve.d.ts} +0 -0
  468. /package/dist/{cjs/resolve.js → resolve.js} +0 -0
  469. /package/dist/{types/routes.d.ts → routes.d.ts} +0 -0
  470. /package/dist/{cjs/routes.js → routes.js} +0 -0
  471. /package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +0 -0
  472. /package/dist/{types/ssr.d.ts → ssr.d.ts} +0 -0
  473. /package/dist/{cjs/ssr.js → ssr.js} +0 -0
  474. /package/dist/{types/storage.d.ts → storage.d.ts} +0 -0
  475. /package/dist/{cjs/storage.js → storage.js} +0 -0
  476. /package/dist/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
  477. /package/dist/{cjs/testUtils.js → testUtils.js} +0 -0
  478. /package/dist/{types/types.d.ts → types.d.ts} +0 -0
  479. /package/dist/{cjs/types.js → types.js} +0 -0
  480. /package/dist/{types/universal → universal}/constants.d.ts +0 -0
  481. /package/dist/{cjs/universal → universal}/constants.js +0 -0
  482. /package/dist/{types/universal → universal}/formatWebpack.d.ts +0 -0
  483. /package/dist/{cjs/universal → universal}/formatWebpack.js +0 -0
  484. /package/dist/{types/universal → universal}/nestedRoutes.d.ts +0 -0
  485. /package/dist/{types/universal → universal}/remixRouter.d.ts +0 -0
  486. /package/dist/{cjs/universal → universal}/remixRouter.js +0 -0
  487. /package/dist/{types/universal → universal}/serialize.d.ts +0 -0
  488. /package/dist/{cjs/universal → universal}/serialize.js +0 -0
  489. /package/dist/{types/version.d.ts → version.d.ts} +0 -0
  490. /package/dist/{types/wait.d.ts → wait.d.ts} +0 -0
  491. /package/dist/{cjs/wait.js → wait.js} +0 -0
  492. /package/dist/{types/watch.d.ts → watch.d.ts} +0 -0
@@ -1,388 +0,0 @@
1
- import { Tapable } from 'tapable';
2
- import * as webpack from 'webpack';
3
- import * as https from 'https';
4
-
5
- export = Config;
6
-
7
- declare namespace __Config {
8
- class Chained<Parent> {
9
- end(): Parent;
10
- }
11
-
12
- class TypedChainedMap<Parent, Value> extends Chained<Parent> {
13
- clear(): this;
14
- delete(key: string): this;
15
- has(key: string): boolean;
16
- get(key: string): Value;
17
- getOrCompute(key: string, compute: () => Value): Value;
18
- set(key: string, value: Value): this;
19
- merge(obj: { [key: string]: Value }): this;
20
- entries(): { [key: string]: Value };
21
- values(): Value[];
22
- when(
23
- condition: boolean,
24
- trueBrancher: (obj: this) => void,
25
- falseBrancher?: (obj: this) => void,
26
- ): this;
27
- }
28
-
29
- class ChainedMap<Parent> extends TypedChainedMap<Parent, any> {}
30
-
31
- class TypedChainedSet<Parent, Value> extends Chained<Parent> {
32
- add(value: Value): this;
33
- prepend(value: Value): this;
34
- clear(): this;
35
- delete(key: string): this;
36
- has(key: string): boolean;
37
- merge(arr: Value[]): this;
38
- values(): Value[];
39
- when(
40
- condition: boolean,
41
- trueBrancher: (obj: this) => void,
42
- falseBrancher?: (obj: this) => void,
43
- ): this;
44
- }
45
-
46
- class ChainedSet<Parent> extends TypedChainedSet<Parent, any> {}
47
- }
48
-
49
- declare class Config extends __Config.ChainedMap<void> {
50
- devServer: Config.DevServer;
51
- entryPoints: Config.TypedChainedMap<Config, Config.EntryPoint>;
52
- module: Config.Module;
53
- node: Config.ChainedMap<this>;
54
- output: Config.Output;
55
- optimization: Config.Optimization;
56
- performance: Config.Performance;
57
- plugins: Config.Plugins<this, webpack.Plugin>;
58
- resolve: Config.Resolve;
59
- resolveLoader: Config.ResolveLoader;
60
-
61
- amd(value: { [moduleName: string]: boolean }): this;
62
- bail(value: boolean): this;
63
- cache(value: boolean | any): this;
64
- devtool(value: Config.DevTool): this;
65
- context(value: string): this;
66
- externals(value: webpack.ExternalsElement | webpack.ExternalsElement[]): this;
67
- loader(value: any): this;
68
- name(value: string): this;
69
- mode(value: 'none' | 'development' | 'production'): this;
70
- parallelism(value: number): this;
71
- profile(value: boolean): this;
72
- recordsPath(value: string): this;
73
- recordsInputPath(value: string): this;
74
- recordsOutputPath(value: string): this;
75
- stats(value: webpack.Options.Stats): this;
76
- target(value: string): this;
77
- watch(value: boolean): this;
78
- watchOptions(value: webpack.Options.WatchOptions): this;
79
-
80
- entry(name: string): Config.EntryPoint;
81
- plugin(name: string): Config.Plugin<this, webpack.Plugin>;
82
-
83
- toConfig(): webpack.Configuration;
84
- }
85
-
86
- declare namespace Config {
87
- class Chained<Parent> extends __Config.Chained<Parent> {}
88
- class TypedChainedMap<Parent, Value> extends __Config.TypedChainedMap<
89
- Parent,
90
- Value
91
- > {}
92
- class ChainedMap<Parent> extends __Config.TypedChainedMap<Parent, any> {}
93
- class TypedChainedSet<Parent, Value> extends __Config.TypedChainedSet<
94
- Parent,
95
- Value
96
- > {}
97
- class ChainedSet<Parent> extends __Config.TypedChainedSet<Parent, any> {}
98
-
99
- class Plugins<
100
- Parent,
101
- PluginType extends Tapable.Plugin = webpack.Plugin
102
- > extends TypedChainedMap<Parent, Plugin<Parent, PluginType>> {}
103
-
104
- class Plugin<Parent, PluginType extends Tapable.Plugin = webpack.Plugin>
105
- extends ChainedMap<Parent>
106
- implements Orderable {
107
- init<P extends PluginType | PluginClass<PluginType>>(
108
- value: (
109
- plugin: P,
110
- args: P extends PluginClass ? ConstructorParameters<P> : any[],
111
- ) => PluginType,
112
- ): this;
113
- use<P extends string | PluginType | PluginClass<PluginType>>(
114
- plugin: P,
115
- args?: P extends PluginClass ? ConstructorParameters<P> : any[],
116
- ): this;
117
- tap<P extends PluginClass<PluginType>>(
118
- f: (args: ConstructorParameters<P>) => ConstructorParameters<P>,
119
- ): this;
120
-
121
- // Orderable
122
- before(name: string): this;
123
- after(name: string): this;
124
- }
125
-
126
- class Module extends ChainedMap<Config> {
127
- rules: TypedChainedMap<this, Rule>;
128
- rule(name: string): Rule;
129
- noParse(
130
- noParse: RegExp | RegExp[] | ((contentPath: string) => boolean),
131
- ): this;
132
- strictExportPresence(value: boolean): this;
133
- }
134
-
135
- class Output extends ChainedMap<Config> {
136
- auxiliaryComment(value: string | { [comment: string]: string }): this;
137
- chunkFilename(value: string): this;
138
- chunkLoadTimeout(value: number): this;
139
- crossOriginLoading(value: boolean | string): this;
140
- filename(value: string): this;
141
- library(value: string): this;
142
- libraryExport(value: string | string[]): this;
143
- libraryTarget(value: string): this;
144
- devtoolFallbackModuleFilenameTemplate(value: any): this;
145
- devtoolLineToLine(value: any): this;
146
- devtoolModuleFilenameTemplate(value: any): this;
147
- devtoolNamespace(value: string): this;
148
- globalObject(value: string): this;
149
- hashFunction(value: string): this;
150
- hashDigest(value: string): this;
151
- hashDigestLength(value: number): this;
152
- hashSalt(value: any): this;
153
- hotUpdateChunkFilename(value: string): this;
154
- hotUpdateFunction(value: any): this;
155
- hotUpdateMainFilename(value: string): this;
156
- jsonpFunction(value: string): this;
157
- path(value: string): this;
158
- pathinfo(value: boolean): this;
159
- publicPath(value: string): this;
160
- sourceMapFilename(value: string): this;
161
- sourcePrefix(value: string): this;
162
- strictModuleExceptionHandling(value: boolean): this;
163
- umdNamedDefine(value: boolean): this;
164
- futureEmitAssets(value: boolean): this;
165
- }
166
-
167
- class DevServer extends ChainedMap<Config> {
168
- allowedHosts: TypedChainedSet<this, string>;
169
-
170
- after(
171
- value: (app: any, server: any, compiler: webpack.Compiler) => void,
172
- ): this;
173
- before(
174
- value: (app: any, server: any, compiler: webpack.Compiler) => void,
175
- ): this;
176
- bonjour(value: boolean): this;
177
- clientLogLevel(value: 'none' | 'error' | 'warning' | 'info'): this;
178
- color(value: boolean): this;
179
- compress(value: boolean): this;
180
- contentBase(value: boolean | string | string[]): this;
181
- disableHostCheck(value: boolean): this;
182
- filename(value: string): this;
183
- headers(value: { [header: string]: string }): this;
184
- historyApiFallback(value: boolean | any): this;
185
- host(value: string): this;
186
- hot(value: boolean): this;
187
- hotOnly(value: boolean): this;
188
- http2(value: boolean): this;
189
- https(value: boolean | https.ServerOptions): this;
190
- index(value: string): this;
191
- info(value: boolean): this;
192
- inline(value: boolean): this;
193
- lazy(value: boolean): this;
194
- mimeTypes(value: Object): this;
195
- noInfo(value: boolean): this;
196
- open(value: boolean): this;
197
- openPage(value: string | string[]): this;
198
- overlay(value: boolean | { warnings?: boolean; errors?: boolean }): this;
199
- pfx(value: string): this;
200
- pfxPassphrase(value: string): this;
201
- port(value: number): this;
202
- progress(value: boolean): this;
203
- proxy(value: any): this;
204
- public(value: string): this;
205
- publicPath(publicPath: string): this;
206
- quiet(value: boolean): this;
207
- setup(value: (expressApp: any) => void): this;
208
- socket(value: string): this;
209
- sockHost(value: string): this;
210
- sockPath(value: string): this;
211
- sockPort(value: number): this;
212
- staticOptions(value: any): this;
213
- stats(value: webpack.Options.Stats): this;
214
- stdin(value: boolean): this;
215
- useLocalIp(value: boolean): this;
216
- watchContentBase(value: boolean): this;
217
- watchOptions(value: any): this;
218
- writeToDisk(value: boolean): this;
219
- }
220
-
221
- class Performance extends ChainedMap<Config> {
222
- hints(value: boolean | 'error' | 'warning'): this;
223
- maxEntrypointSize(value: number): this;
224
- maxAssetSize(value: number): this;
225
- assetFilter(value: (assetFilename: string) => boolean): this;
226
- }
227
-
228
- class EntryPoint extends TypedChainedSet<Config, string> {}
229
-
230
- class Resolve<T = Config> extends ChainedMap<T> {
231
- alias: TypedChainedMap<this, string>;
232
- aliasFields: TypedChainedSet<this, string>;
233
- descriptionFiles: TypedChainedSet<this, string>;
234
- extensions: TypedChainedSet<this, string>;
235
- mainFields: TypedChainedSet<this, string>;
236
- mainFiles: TypedChainedSet<this, string>;
237
- modules: TypedChainedSet<this, string>;
238
- plugins: TypedChainedMap<this, Plugin<this, webpack.ResolvePlugin>>;
239
-
240
- enforceExtension(value: boolean): this;
241
- enforceModuleExtension(value: boolean): this;
242
- unsafeCache(value: boolean | RegExp | RegExp[]): this;
243
- symlinks(value: boolean): this;
244
- cachePredicate(
245
- value: (data: { path: string; request: string }) => boolean,
246
- ): this;
247
- cacheWithContext(value: boolean): this;
248
-
249
- plugin(name: string): Plugin<this, webpack.ResolvePlugin>;
250
- }
251
-
252
- class ResolveLoader extends Resolve {
253
- moduleExtensions: ChainedSet<this>;
254
- packageMains: ChainedSet<this>;
255
- }
256
-
257
- class Rule<T = Module> extends ChainedMap<T> implements Orderable {
258
- rules: TypedChainedMap<this, Rule<Rule>>;
259
- oneOfs: TypedChainedMap<this, Rule<Rule>>;
260
- uses: TypedChainedMap<this, Use>;
261
- include: TypedChainedSet<this, webpack.Condition>;
262
- exclude: TypedChainedSet<this, webpack.Condition>;
263
- resolve: Resolve<Rule<T>>;
264
-
265
- parser(value: { [optName: string]: any }): this;
266
- test(value: webpack.Condition | webpack.Condition[]): this;
267
- type(
268
- value:
269
- | 'javascript/auto'
270
- | 'javascript/dynamic'
271
- | 'javascript/esm'
272
- | 'json'
273
- | 'webassembly/experimental',
274
- ): this;
275
- enforce(value: 'pre' | 'post'): this;
276
-
277
- use(name: string): Use<this>;
278
- rule(name: string): Rule<Rule>;
279
- oneOf(name: string): Rule<Rule>;
280
- pre(): this;
281
- post(): this;
282
- before(name: string): this;
283
- after(name: string): this;
284
- resourceQuery(value: webpack.Condition | webpack.Condition[]): this;
285
- }
286
-
287
- class Optimization extends ChainedMap<Config> {
288
- concatenateModules(value: boolean): this;
289
- flagIncludedChunks(value: boolean): this;
290
- mergeDuplicateChunks(value: boolean): this;
291
- minimize(value: boolean): this;
292
- minimizer(name: string): Config.Plugin<this, webpack.Plugin>;
293
- namedChunks(value: boolean): this;
294
- namedModules(value: boolean): this;
295
- nodeEnv(value: boolean | string): this;
296
- noEmitOnErrors(value: boolean): this;
297
- occurrenceOrder(value: boolean): this;
298
- portableRecords(value: boolean): this;
299
- providedExports(value: boolean): this;
300
- removeAvailableModules(value: boolean): this;
301
- removeEmptyChunks(value: boolean): this;
302
- runtimeChunk(value: boolean | 'single' | 'multiple' | RuntimeChunk): this;
303
- sideEffects(value: boolean): this;
304
- splitChunks(value: SplitChunksOptions): this;
305
- usedExports(value: boolean): this;
306
- }
307
-
308
- interface RuntimeChunk {
309
- name: string | RuntimeChunkFunction;
310
- }
311
-
312
- type RuntimeChunkFunction = (entryPoint: EntryPoint) => string;
313
-
314
- interface SplitChunksOptions {
315
- [name: string]: any;
316
- }
317
-
318
- interface LoaderOptions {
319
- [name: string]: any;
320
- }
321
-
322
- class Use<Parent = Rule> extends ChainedMap<Parent> implements Orderable {
323
- loader(value: string): this;
324
- options(value: LoaderOptions): this;
325
-
326
- tap(f: (options: LoaderOptions) => LoaderOptions): this;
327
-
328
- // Orderable
329
- before(name: string): this;
330
- after(name: string): this;
331
- }
332
-
333
- type DevTool =
334
- | 'eval'
335
- | 'inline-source-map'
336
- | 'cheap-eval-source-map'
337
- | 'cheap-source-map'
338
- | 'cheap-module-eval-source-map'
339
- | 'cheap-module-source-map'
340
- | 'eval-source-map'
341
- | 'source-map'
342
- | 'nosources-source-map'
343
- | 'hidden-source-map'
344
- | 'nosources-source-map'
345
- | '@eval'
346
- | '@inline-source-map'
347
- | '@cheap-eval-source-map'
348
- | '@cheap-source-map'
349
- | '@cheap-module-eval-source-map'
350
- | '@cheap-module-source-map'
351
- | '@eval-source-map'
352
- | '@source-map'
353
- | '@nosources-source-map'
354
- | '@hidden-source-map'
355
- | '@nosources-source-map'
356
- | '#eval'
357
- | '#inline-source-map'
358
- | '#cheap-eval-source-map'
359
- | '#cheap-source-map'
360
- | '#cheap-module-eval-source-map'
361
- | '#cheap-module-source-map'
362
- | '#eval-source-map'
363
- | '#source-map'
364
- | '#nosources-source-map'
365
- | '#hidden-source-map'
366
- | '#nosources-source-map'
367
- | '#@eval'
368
- | '#@inline-source-map'
369
- | '#@cheap-eval-source-map'
370
- | '#@cheap-source-map'
371
- | '#@cheap-module-eval-source-map'
372
- | '#@cheap-module-source-map'
373
- | '#@eval-source-map'
374
- | '#@source-map'
375
- | '#@nosources-source-map'
376
- | '#@hidden-source-map'
377
- | '#@nosources-source-map'
378
- | boolean;
379
-
380
- interface PluginClass<PluginType extends Tapable.Plugin = webpack.Plugin> {
381
- new (...opts: any[]): PluginType;
382
- }
383
-
384
- interface Orderable {
385
- before(name: string): this;
386
- after(name: string): this;
387
- }
388
- }
@@ -1,7 +0,0 @@
1
- (()=>{var e={689:(e,t)=>{"use strict";var r;r={value:true};t.Z4=unixify;r=correctPath;var n=process.platform==="win32";function removeTrailingSeparator(e){var t=e.length-1;if(t<2){return e}while(isSeparator(e,t)){t--}return e.substr(0,t+1)}function isSeparator(e,t){var r=e[t];return t>0&&(r==="/"||n&&r==="\\")}function normalizePath(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}e=e.replace(/[\\\/]+/g,"/");if(t!==false){e=removeTrailingSeparator(e)}return e}function unixify(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:true;if(n){e=normalizePath(e,t);return e.replace(/^([a-zA-Z]+:|\.\/)/,"")}return e}function correctPath(e){return unixify(e.replace(/^\\\\\?\\.:\\/,"\\"))}},766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fsAsyncMethods=t.fsSyncMethods=t.fsProps=void 0;var r=["constants","F_OK","R_OK","W_OK","X_OK","Stats"];t.fsProps=r;var n=["renameSync","ftruncateSync","truncateSync","chownSync","fchownSync","lchownSync","chmodSync","fchmodSync","lchmodSync","statSync","lstatSync","fstatSync","linkSync","symlinkSync","readlinkSync","realpathSync","unlinkSync","rmdirSync","mkdirSync","mkdirpSync","readdirSync","closeSync","openSync","utimesSync","futimesSync","fsyncSync","writeSync","readSync","readFileSync","writeFileSync","appendFileSync","existsSync","accessSync","fdatasyncSync","mkdtempSync","copyFileSync","createReadStream","createWriteStream"];t.fsSyncMethods=n;var i=["rename","ftruncate","truncate","chown","fchown","lchown","chmod","fchmod","lchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","mkdirp","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","exists","access","fdatasync","mkdtemp","copyFile","watchFile","unwatchFile","watch"];t.fsAsyncMethods=i},569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Dirent=void 0;var n=r(233);var i=r(166);var o=n.constants.S_IFMT,s=n.constants.S_IFDIR,a=n.constants.S_IFREG,c=n.constants.S_IFBLK,u=n.constants.S_IFCHR,f=n.constants.S_IFLNK,l=n.constants.S_IFIFO,p=n.constants.S_IFSOCK;var d=function(){function Dirent(){this.name="";this.mode=0}Dirent.build=function(e,t){var r=new Dirent;var n=e.getNode().mode;r.name=(0,i.strToEncoding)(e.getName(),t);r.mode=n;return r};Dirent.prototype._checkModeProperty=function(e){return(this.mode&o)===e};Dirent.prototype.isDirectory=function(){return this._checkModeProperty(s)};Dirent.prototype.isFile=function(){return this._checkModeProperty(a)};Dirent.prototype.isBlockDevice=function(){return this._checkModeProperty(c)};Dirent.prototype.isCharacterDevice=function(){return this._checkModeProperty(u)};Dirent.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)};Dirent.prototype.isFIFO=function(){return this._checkModeProperty(l)};Dirent.prototype.isSocket=function(){return this._checkModeProperty(p)};return Dirent}();t.Dirent=d;t["default"]=d},829:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Stats=void 0;var n=r(233);var i=r(561);var o=n.constants.S_IFMT,s=n.constants.S_IFDIR,a=n.constants.S_IFREG,c=n.constants.S_IFBLK,u=n.constants.S_IFCHR,f=n.constants.S_IFLNK,l=n.constants.S_IFIFO,p=n.constants.S_IFSOCK;var d=function(){function Stats(){}Stats.build=function(e,t){if(t===void 0){t=false}var r=new Stats;var n=e.uid,o=e.gid,s=e.atime,a=e.mtime,c=e.ctime;var u=!t?function(e){return e}:i.default;r.uid=u(n);r.gid=u(o);r.rdev=u(0);r.blksize=u(4096);r.ino=u(e.ino);r.size=u(e.getSize());r.blocks=u(1);r.atime=s;r.mtime=a;r.ctime=c;r.birthtime=c;r.atimeMs=u(s.getTime());r.mtimeMs=u(a.getTime());var f=u(c.getTime());r.ctimeMs=f;r.birthtimeMs=f;r.dev=u(0);r.mode=u(e.mode);r.nlink=u(e.nlink);return r};Stats.prototype._checkModeProperty=function(e){return(Number(this.mode)&o)===e};Stats.prototype.isDirectory=function(){return this._checkModeProperty(s)};Stats.prototype.isFile=function(){return this._checkModeProperty(a)};Stats.prototype.isBlockDevice=function(){return this._checkModeProperty(c)};Stats.prototype.isCharacterDevice=function(){return this._checkModeProperty(u)};Stats.prototype.isSymbolicLink=function(){return this._checkModeProperty(f)};Stats.prototype.isFIFO=function(){return this._checkModeProperty(l)};Stats.prototype.isSocket=function(){return this._checkModeProperty(p)};return Stats}();t.Stats=d;t["default"]=d},233:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.constants=void 0;t.constants={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:64,O_EXCL:128,O_NOCTTY:256,O_TRUNC:512,O_APPEND:1024,O_DIRECTORY:65536,O_NOATIME:262144,O_NOFOLLOW:131072,O_SYNC:1052672,O_DIRECT:16384,O_NONBLOCK:2048,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_FS_SYMLINK_DIR:1,UV_FS_SYMLINK_JUNCTION:2,UV_FS_COPYFILE_EXCL:1,UV_FS_COPYFILE_FICLONE:2,UV_FS_COPYFILE_FICLONE_FORCE:4,COPYFILE_EXCL:1,COPYFILE_FICLONE:2,COPYFILE_FICLONE_FORCE:4}},166:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.strToEncoding=t.assertEncoding=t.ENCODING_UTF8=void 0;var n=r(148);var i=r(944);t.ENCODING_UTF8="utf8";function assertEncoding(e){if(e&&!n.Buffer.isEncoding(e))throw new i.TypeError("ERR_INVALID_OPT_VALUE_ENCODING",e)}t.assertEncoding=assertEncoding;function strToEncoding(e,r){if(!r||r===t.ENCODING_UTF8)return e;if(r==="buffer")return new n.Buffer(e);return new n.Buffer(e).toString(r)}t.strToEncoding=strToEncoding},561:(e,t)=>{if(typeof BigInt==="function")t["default"]=BigInt;else t["default"]=function BigIntNotSupported(){throw new Error("BigInt is not supported in this environment.")}},949:function(e,t,r){"use strict";var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});t.fs=t.createFsFromVolume=t.vol=t.Volume=void 0;var i=r(829);var o=r(569);var s=r(643);var a=r(766),c=a.fsSyncMethods,u=a.fsAsyncMethods;var f=r(233);var l=f.constants.F_OK,p=f.constants.R_OK,d=f.constants.W_OK,h=f.constants.X_OK;t.Volume=s.Volume;t.vol=new s.Volume;function createFsFromVolume(e){var t={F_OK:l,R_OK:p,W_OK:d,X_OK:h,constants:f.constants,Stats:i.default,Dirent:o.default};for(var r=0,n=c;r<n.length;r++){var a=n[r];if(typeof e[a]==="function")t[a]=e[a].bind(e)}for(var m=0,y=u;m<y.length;m++){var a=y[m];if(typeof e[a]==="function")t[a]=e[a].bind(e)}t.StatWatcher=e.StatWatcher;t.FSWatcher=e.FSWatcher;t.WriteStream=e.WriteStream;t.ReadStream=e.ReadStream;t.promises=e.promises;t._toUnixTimestamp=s.toUnixTimestamp;return t}t.createFsFromVolume=createFsFromVolume;t.fs=createFsFromVolume(t.vol);e.exports=n(n({},e.exports),t.fs);e.exports.semantic=true},148:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.bufferFrom=t.bufferAllocUnsafe=t.Buffer=void 0;var i=r(300);Object.defineProperty(t,"Buffer",{enumerable:true,get:function(){return i.Buffer}});function bufferV0P12Ponyfill(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}return new(i.Buffer.bind.apply(i.Buffer,n([void 0,e],t,false)))}var o=i.Buffer.allocUnsafe||bufferV0P12Ponyfill;t.bufferAllocUnsafe=o;var s=i.Buffer.from||bufferV0P12Ponyfill;t.bufferFrom=s},944:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.E=t.AssertionError=t.message=t.RangeError=t.TypeError=t.Error=void 0;var i=r(491);var o=r(837);var s=typeof Symbol==="undefined"?"_kCode":Symbol("code");var a={};function makeNodeError(e){return function(e){n(NodeError,e);function NodeError(t){var r=[];for(var n=1;n<arguments.length;n++){r[n-1]=arguments[n]}var i=e.call(this,message(t,r))||this;i.code=t;i[s]=t;i.name="".concat(e.prototype.name," [").concat(i[s],"]");return i}return NodeError}(e)}var c=typeof globalThis!=="undefined"?globalThis:global;var u=function(e){n(AssertionError,e);function AssertionError(r){var n=this;if(typeof r!=="object"||r===null){throw new t.TypeError("ERR_INVALID_ARG_TYPE","options","object")}if(r.message){n=e.call(this,r.message)||this}else{n=e.call(this,"".concat(o.inspect(r.actual).slice(0,128)," ")+"".concat(r.operator," ").concat(o.inspect(r.expected).slice(0,128)))||this}n.generatedMessage=!r.message;n.name="AssertionError [ERR_ASSERTION]";n.code="ERR_ASSERTION";n.actual=r.actual;n.expected=r.expected;n.operator=r.operator;t.Error.captureStackTrace(n,r.stackStartFunction);return n}return AssertionError}(c.Error);t.AssertionError=u;function message(e,t){i.strictEqual(typeof e,"string");var r=a[e];i(r,"An invalid error message key was used: ".concat(e,"."));var n;if(typeof r==="function"){n=r}else{n=o.format;if(t===undefined||t.length===0)return r;t.unshift(r)}return String(n.apply(null,t))}t.message=message;function E(e,t){a[e]=typeof t==="function"?t:String(t)}t.E=E;t.Error=makeNodeError(c.Error);t.TypeError=makeNodeError(c.TypeError);t.RangeError=makeNodeError(c.RangeError);E("ERR_ARG_NOT_ITERABLE","%s must be iterable");E("ERR_ASSERTION","%s");E("ERR_BUFFER_OUT_OF_BOUNDS",bufferOutOfBounds);E("ERR_CHILD_CLOSED_BEFORE_REPLY","Child closed before reply received");E("ERR_CONSOLE_WRITABLE_STREAM","Console expects a writable stream instance for %s");E("ERR_CPU_USAGE","Unable to obtain cpu usage %s");E("ERR_DNS_SET_SERVERS_FAILED",(function(e,t){return'c-ares failed to set servers: "'.concat(e,'" [').concat(t,"]")}));E("ERR_FALSY_VALUE_REJECTION","Promise was rejected with falsy value");E("ERR_ENCODING_NOT_SUPPORTED",(function(e){return'The "'.concat(e,'" encoding is not supported')}));E("ERR_ENCODING_INVALID_ENCODED_DATA",(function(e){return"The encoded data was not valid for encoding ".concat(e)}));E("ERR_HTTP_HEADERS_SENT","Cannot render headers after they are sent to the client");E("ERR_HTTP_INVALID_STATUS_CODE","Invalid status code: %s");E("ERR_HTTP_TRAILER_INVALID","Trailers are invalid with this transfer encoding");E("ERR_INDEX_OUT_OF_RANGE","Index out of range");E("ERR_INVALID_ARG_TYPE",invalidArgType);E("ERR_INVALID_ARRAY_LENGTH",(function(e,t,r){i.strictEqual(typeof r,"number");return'The array "'.concat(e,'" (length ').concat(r,") must be of length ").concat(t,".")}));E("ERR_INVALID_BUFFER_SIZE","Buffer size must be a multiple of %s");E("ERR_INVALID_CALLBACK","Callback must be a function");E("ERR_INVALID_CHAR","Invalid character in %s");E("ERR_INVALID_CURSOR_POS","Cannot set cursor row without setting its column");E("ERR_INVALID_FD",'"fd" must be a positive integer: %s');E("ERR_INVALID_FILE_URL_HOST",'File URL host must be "localhost" or empty on %s');E("ERR_INVALID_FILE_URL_PATH","File URL path %s");E("ERR_INVALID_HANDLE_TYPE","This handle type cannot be sent");E("ERR_INVALID_IP_ADDRESS","Invalid IP address: %s");E("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'.concat(String(t),'" is invalid for option "').concat(e,'"')}));E("ERR_INVALID_OPT_VALUE_ENCODING",(function(e){return'The value "'.concat(String(e),'" is invalid for option "encoding"')}));E("ERR_INVALID_REPL_EVAL_CONFIG",'Cannot specify both "breakEvalOnSigint" and "eval" for REPL');E("ERR_INVALID_SYNC_FORK_INPUT","Asynchronous forks do not support Buffer, Uint8Array or string input: %s");E("ERR_INVALID_THIS",'Value of "this" must be of type %s');E("ERR_INVALID_TUPLE","%s must be an iterable %s tuple");E("ERR_INVALID_URL","Invalid URL: %s");E("ERR_INVALID_URL_SCHEME",(function(e){return"The URL must be ".concat(oneOf(e,"scheme"))}));E("ERR_IPC_CHANNEL_CLOSED","Channel closed");E("ERR_IPC_DISCONNECTED","IPC channel is already disconnected");E("ERR_IPC_ONE_PIPE","Child process can have only one IPC pipe");E("ERR_IPC_SYNC_FORK","IPC cannot be used with synchronous forks");E("ERR_MISSING_ARGS",missingArgs);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times");E("ERR_NAPI_CONS_FUNCTION","Constructor must be a function");E("ERR_NAPI_CONS_PROTOTYPE_OBJECT","Constructor.prototype must be an object");E("ERR_NO_CRYPTO","Node.js is not compiled with OpenSSL crypto support");E("ERR_NO_LONGER_SUPPORTED","%s is no longer supported");E("ERR_PARSE_HISTORY_DATA","Could not parse history data in %s");E("ERR_SOCKET_ALREADY_BOUND","Socket is already bound");E("ERR_SOCKET_BAD_PORT","Port should be > 0 and < 65536");E("ERR_SOCKET_BAD_TYPE","Bad socket type specified. Valid types are: udp4, udp6");E("ERR_SOCKET_CANNOT_SEND","Unable to send data");E("ERR_SOCKET_CLOSED","Socket is closed");E("ERR_SOCKET_DGRAM_NOT_RUNNING","Not running");E("ERR_STDERR_CLOSE","process.stderr cannot be closed");E("ERR_STDOUT_CLOSE","process.stdout cannot be closed");E("ERR_STREAM_WRAP","Stream has StringDecoder set or is in objectMode");E("ERR_TLS_CERT_ALTNAME_INVALID","Hostname/IP does not match certificate's altnames: %s");E("ERR_TLS_DH_PARAM_SIZE",(function(e){return"DH parameter size ".concat(e," is less than 2048")}));E("ERR_TLS_HANDSHAKE_TIMEOUT","TLS handshake timeout");E("ERR_TLS_RENEGOTIATION_FAILED","Failed to renegotiate");E("ERR_TLS_REQUIRED_SERVER_NAME",'"servername" is required parameter for Server.addContext');E("ERR_TLS_SESSION_ATTACK","TSL session renegotiation attack detected");E("ERR_TRANSFORM_ALREADY_TRANSFORMING","Calling transform done when still transforming");E("ERR_TRANSFORM_WITH_LENGTH_0","Calling transform done when writableState.length != 0");E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s");E("ERR_UNKNOWN_SIGNAL","Unknown signal: %s");E("ERR_UNKNOWN_STDIN_TYPE","Unknown stdin file type");E("ERR_UNKNOWN_STREAM_TYPE","Unknown stream file type");E("ERR_V8BREAKITERATOR","Full ICU data not installed. "+"See https://github.com/nodejs/node/wiki/Intl");function invalidArgType(e,t,r){i(e,"name is required");var n;if(t.includes("not ")){n="must not be";t=t.split("not ")[1]}else{n="must be"}var o;if(Array.isArray(e)){var s=e.map((function(e){return'"'.concat(e,'"')})).join(", ");o="The ".concat(s," arguments ").concat(n," ").concat(oneOf(t,"type"))}else if(e.includes(" argument")){o="The ".concat(e," ").concat(n," ").concat(oneOf(t,"type"))}else{var a=e.includes(".")?"property":"argument";o='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(oneOf(t,"type"))}if(arguments.length>=3){o+=". Received type ".concat(r!==null?typeof r:"null")}return o}function missingArgs(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}i(e.length>0,"At least one arg needs to be specified");var r="The ";var n=e.length;e=e.map((function(e){return'"'.concat(e,'"')}));switch(n){case 1:r+="".concat(e[0]," argument");break;case 2:r+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:r+=e.slice(0,n-1).join(", ");r+=", and ".concat(e[n-1]," arguments");break}return"".concat(r," must be specified")}function oneOf(e,t){i(e,"expected is required");i(typeof t==="string","thing is required");if(Array.isArray(e)){var r=e.length;i(r>0,"At least one expected value needs to be specified");e=e.map((function(e){return String(e)}));if(r>2){return"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]}else if(r===2){return"one of ".concat(t," ").concat(e[0]," or ").concat(e[1])}else{return"of ".concat(t," ").concat(e[0])}}else{return"of ".concat(t," ").concat(String(e))}}function bufferOutOfBounds(e,t){if(t){return"Attempt to write outside buffer bounds"}else{return'"'.concat(e,'" is outside of buffer bounds')}}},705:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});t.File=t.Link=t.Node=t.SEP=void 0;var i=r(206);var o=r(148);var s=r(233);var a=r(361);var c=r(829);var u=s.constants.S_IFMT,f=s.constants.S_IFDIR,l=s.constants.S_IFREG,p=s.constants.S_IFLNK,d=s.constants.O_APPEND;var getuid=function(){var e,t;return(t=(e=i.default.getuid)===null||e===void 0?void 0:e.call(i.default))!==null&&t!==void 0?t:0};var getgid=function(){var e,t;return(t=(e=i.default.getgid)===null||e===void 0?void 0:e.call(i.default))!==null&&t!==void 0?t:0};t.SEP="/";var h=function(e){n(Node,e);function Node(t,r){if(r===void 0){r=438}var n=e.call(this)||this;n.uid=getuid();n.gid=getgid();n.atime=new Date;n.mtime=new Date;n.ctime=new Date;n.perm=438;n.mode=l;n.nlink=1;n.perm=r;n.mode|=r;n.ino=t;return n}Node.prototype.getString=function(e){if(e===void 0){e="utf8"}return this.getBuffer().toString(e)};Node.prototype.setString=function(e){this.buf=(0,o.bufferFrom)(e,"utf8");this.touch()};Node.prototype.getBuffer=function(){if(!this.buf)this.setBuffer((0,o.bufferAllocUnsafe)(0));return(0,o.bufferFrom)(this.buf)};Node.prototype.setBuffer=function(e){this.buf=(0,o.bufferFrom)(e);this.touch()};Node.prototype.getSize=function(){return this.buf?this.buf.length:0};Node.prototype.setModeProperty=function(e){this.mode=this.mode&~u|e};Node.prototype.setIsFile=function(){this.setModeProperty(l)};Node.prototype.setIsDirectory=function(){this.setModeProperty(f)};Node.prototype.setIsSymlink=function(){this.setModeProperty(p)};Node.prototype.isFile=function(){return(this.mode&u)===l};Node.prototype.isDirectory=function(){return(this.mode&u)===f};Node.prototype.isSymlink=function(){return(this.mode&u)===p};Node.prototype.makeSymlink=function(e){this.symlink=e;this.setIsSymlink()};Node.prototype.write=function(e,t,r,n){if(t===void 0){t=0}if(r===void 0){r=e.length}if(n===void 0){n=0}if(!this.buf)this.buf=(0,o.bufferAllocUnsafe)(0);if(n+r>this.buf.length){var i=(0,o.bufferAllocUnsafe)(n+r);this.buf.copy(i,0,0,this.buf.length);this.buf=i}e.copy(this.buf,n,t,t+r);this.touch();return r};Node.prototype.read=function(e,t,r,n){if(t===void 0){t=0}if(r===void 0){r=e.byteLength}if(n===void 0){n=0}if(!this.buf)this.buf=(0,o.bufferAllocUnsafe)(0);var i=r;if(i>e.byteLength){i=e.byteLength}if(i+n>this.buf.length){i=this.buf.length-n}this.buf.copy(e,t,n,n+i);return i};Node.prototype.truncate=function(e){if(e===void 0){e=0}if(!e)this.buf=(0,o.bufferAllocUnsafe)(0);else{if(!this.buf)this.buf=(0,o.bufferAllocUnsafe)(0);if(e<=this.buf.length){this.buf=this.buf.slice(0,e)}else{var t=(0,o.bufferAllocUnsafe)(e);this.buf.copy(t);t.fill(0,this.buf.length);this.buf=t}}this.touch()};Node.prototype.chmod=function(e){this.perm=e;this.mode=this.mode&~511|e;this.touch()};Node.prototype.chown=function(e,t){this.uid=e;this.gid=t;this.touch()};Node.prototype.touch=function(){this.mtime=new Date;this.emit("change",this)};Node.prototype.canRead=function(e,t){if(e===void 0){e=getuid()}if(t===void 0){t=getgid()}if(this.perm&4){return true}if(t===this.gid){if(this.perm&32){return true}}if(e===this.uid){if(this.perm&256){return true}}return false};Node.prototype.canWrite=function(e,t){if(e===void 0){e=getuid()}if(t===void 0){t=getgid()}if(this.perm&2){return true}if(t===this.gid){if(this.perm&16){return true}}if(e===this.uid){if(this.perm&128){return true}}return false};Node.prototype.del=function(){this.emit("delete",this)};Node.prototype.toJSON=function(){return{ino:this.ino,uid:this.uid,gid:this.gid,atime:this.atime.getTime(),mtime:this.mtime.getTime(),ctime:this.ctime.getTime(),perm:this.perm,mode:this.mode,nlink:this.nlink,symlink:this.symlink,data:this.getString()}};return Node}(a.EventEmitter);t.Node=h;var m=function(e){n(Link,e);function Link(t,r,n){var i=e.call(this)||this;i.children={};i._steps=[];i.ino=0;i.length=0;i.vol=t;i.parent=r;i.name=n;i.syncSteps();return i}Object.defineProperty(Link.prototype,"steps",{get:function(){return this._steps},set:function(e){this._steps=e;for(var t=0,r=Object.values(this.children);t<r.length;t++){var n=r[t];n===null||n===void 0?void 0:n.syncSteps()}},enumerable:false,configurable:true});Link.prototype.setNode=function(e){this.node=e;this.ino=e.ino};Link.prototype.getNode=function(){return this.node};Link.prototype.createChild=function(e,t){if(t===void 0){t=this.vol.createNode()}var r=new Link(this.vol,this,e);r.setNode(t);if(t.isDirectory()){}this.setChild(e,r);return r};Link.prototype.setChild=function(e,t){if(t===void 0){t=new Link(this.vol,this,e)}this.children[e]=t;t.parent=this;this.length++;this.emit("child:add",t,this);return t};Link.prototype.deleteChild=function(e){delete this.children[e.getName()];this.length--;this.emit("child:delete",e,this)};Link.prototype.getChild=function(e){if(Object.hasOwnProperty.call(this.children,e)){return this.children[e]}};Link.prototype.getPath=function(){return this.steps.join(t.SEP)};Link.prototype.getName=function(){return this.steps[this.steps.length-1]};Link.prototype.walk=function(e,t,r){if(t===void 0){t=e.length}if(r===void 0){r=0}if(r>=e.length)return this;if(r>=t)return this;var n=e[r];var i=this.getChild(n);if(!i)return null;return i.walk(e,t,r+1)};Link.prototype.toJSON=function(){return{steps:this.steps,ino:this.ino,children:Object.keys(this.children)}};Link.prototype.syncSteps=function(){this.steps=this.parent?this.parent.steps.concat([this.name]):[this.name]};return Link}(a.EventEmitter);t.Link=m;var y=function(){function File(e,t,r,n){this.position=0;this.link=e;this.node=t;this.flags=r;this.fd=n}File.prototype.getString=function(e){if(e===void 0){e="utf8"}return this.node.getString()};File.prototype.setString=function(e){this.node.setString(e)};File.prototype.getBuffer=function(){return this.node.getBuffer()};File.prototype.setBuffer=function(e){this.node.setBuffer(e)};File.prototype.getSize=function(){return this.node.getSize()};File.prototype.truncate=function(e){this.node.truncate(e)};File.prototype.seekTo=function(e){this.position=e};File.prototype.stats=function(){return c.default.build(this.node)};File.prototype.write=function(e,t,r,n){if(t===void 0){t=0}if(r===void 0){r=e.length}if(typeof n!=="number")n=this.position;if(this.flags&d)n=this.getSize();var i=this.node.write(e,t,r,n);this.position=n+i;return i};File.prototype.read=function(e,t,r,n){if(t===void 0){t=0}if(r===void 0){r=e.byteLength}if(typeof n!=="number")n=this.position;var i=this.node.read(e,t,r,n);this.position=n+i;return i};File.prototype.chmod=function(e){this.node.chmod(e)};File.prototype.chown=function(e,t){this.node.chown(e,t)};return File}();t.File=y},206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createProcess=void 0;var maybeReturnProcess=function(){if(typeof process!=="undefined"){return process}try{return r(282)}catch(e){return undefined}};function createProcess(){var e=maybeReturnProcess()||{};if(!e.cwd)e.cwd=function(){return"/"};if(!e.nextTick)e.nextTick=r(366)["default"];if(!e.emitWarning)e.emitWarning=function(e,t){console.warn("".concat(t).concat(t?": ":"").concat(e))};if(!e.env)e.env={};return e}t.createProcess=createProcess;t["default"]=createProcess()},557:function(e,t){"use strict";var r=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.FileHandle=void 0;function promisify(e,t,n){if(n===void 0){n=function(e){return e}}return function(){var i=[];for(var o=0;o<arguments.length;o++){i[o]=arguments[o]}return new Promise((function(o,s){e[t].bind(e).apply(void 0,r(r([],i,false),[function(e,t){if(e)return s(e);return o(n(t))}],false))}))}}var n=function(){function FileHandle(e,t){this.vol=e;this.fd=t}FileHandle.prototype.appendFile=function(e,t){return promisify(this.vol,"appendFile")(this.fd,e,t)};FileHandle.prototype.chmod=function(e){return promisify(this.vol,"fchmod")(this.fd,e)};FileHandle.prototype.chown=function(e,t){return promisify(this.vol,"fchown")(this.fd,e,t)};FileHandle.prototype.close=function(){return promisify(this.vol,"close")(this.fd)};FileHandle.prototype.datasync=function(){return promisify(this.vol,"fdatasync")(this.fd)};FileHandle.prototype.read=function(e,t,r,n){return promisify(this.vol,"read",(function(t){return{bytesRead:t,buffer:e}}))(this.fd,e,t,r,n)};FileHandle.prototype.readFile=function(e){return promisify(this.vol,"readFile")(this.fd,e)};FileHandle.prototype.stat=function(e){return promisify(this.vol,"fstat")(this.fd,e)};FileHandle.prototype.sync=function(){return promisify(this.vol,"fsync")(this.fd)};FileHandle.prototype.truncate=function(e){return promisify(this.vol,"ftruncate")(this.fd,e)};FileHandle.prototype.utimes=function(e,t){return promisify(this.vol,"futimes")(this.fd,e,t)};FileHandle.prototype.write=function(e,t,r,n){return promisify(this.vol,"write",(function(t){return{bytesWritten:t,buffer:e}}))(this.fd,e,t,r,n)};FileHandle.prototype.writeFile=function(e,t){return promisify(this.vol,"writeFile")(this.fd,e,t)};return FileHandle}();t.FileHandle=n;function createPromisesApi(e){if(typeof Promise==="undefined")return null;return{FileHandle:n,access:function(t,r){return promisify(e,"access")(t,r)},appendFile:function(t,r,i){return promisify(e,"appendFile")(t instanceof n?t.fd:t,r,i)},chmod:function(t,r){return promisify(e,"chmod")(t,r)},chown:function(t,r,n){return promisify(e,"chown")(t,r,n)},copyFile:function(t,r,n){return promisify(e,"copyFile")(t,r,n)},lchmod:function(t,r){return promisify(e,"lchmod")(t,r)},lchown:function(t,r,n){return promisify(e,"lchown")(t,r,n)},link:function(t,r){return promisify(e,"link")(t,r)},lstat:function(t,r){return promisify(e,"lstat")(t,r)},mkdir:function(t,r){return promisify(e,"mkdir")(t,r)},mkdtemp:function(t,r){return promisify(e,"mkdtemp")(t,r)},open:function(t,r,i){return promisify(e,"open",(function(t){return new n(e,t)}))(t,r,i)},readdir:function(t,r){return promisify(e,"readdir")(t,r)},readFile:function(t,r){return promisify(e,"readFile")(t instanceof n?t.fd:t,r)},readlink:function(t,r){return promisify(e,"readlink")(t,r)},realpath:function(t,r){return promisify(e,"realpath")(t,r)},rename:function(t,r){return promisify(e,"rename")(t,r)},rmdir:function(t){return promisify(e,"rmdir")(t)},rm:function(t,r){return promisify(e,"rm")(t,r)},stat:function(t,r){return promisify(e,"stat")(t,r)},symlink:function(t,r,n){return promisify(e,"symlink")(t,r,n)},truncate:function(t,r){return promisify(e,"truncate")(t,r)},unlink:function(t){return promisify(e,"unlink")(t)},utimes:function(t,r,n){return promisify(e,"utimes")(t,r,n)},writeFile:function(t,r,i){return promisify(e,"writeFile")(t instanceof n?t.fd:t,r,i)}}}t["default"]=createPromisesApi},366:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var r;if(typeof setImmediate==="function")r=setImmediate.bind(typeof globalThis!=="undefined"?globalThis:global);else r=setTimeout.bind(typeof globalThis!=="undefined"?globalThis:global);t["default"]=r},542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function setTimeoutUnref(e,t,r){var n=setTimeout.apply(typeof globalThis!=="undefined"?globalThis:global,arguments);if(n&&typeof n==="object"&&typeof n.unref==="function")n.unref();return n}t["default"]=setTimeoutUnref},643:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var extendStatics=function(e,t){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return extendStatics(e,t)};return function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)}}();var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:true});t.FSWatcher=t.StatWatcher=t.Volume=t.toUnixTimestamp=t.bufferToEncoding=t.dataToBuffer=t.dataToStr=t.pathToSteps=t.filenameToSteps=t.pathToFilename=t.flagsToNumber=t.FLAGS=void 0;var o=r(17);var s=r(705);var a=r(829);var c=r(569);var u=r(148);var f=r(366);var l=r(206);var p=r(542);var d=r(781);var h=r(233);var m=r(361);var y=r(166);var v=r(944);var g=r(837);var _=r(557);var b=o.resolve;var S=h.constants.O_RDONLY,w=h.constants.O_WRONLY,F=h.constants.O_RDWR,T=h.constants.O_CREAT,R=h.constants.O_EXCL,k=h.constants.O_TRUNC,N=h.constants.O_APPEND,O=h.constants.O_SYNC,B=h.constants.O_DIRECTORY,I=h.constants.F_OK,A=h.constants.COPYFILE_EXCL,C=h.constants.COPYFILE_FICLONE_FORCE;var L=o.posix?o.posix:o,V=L.sep,P=L.relative,D=L.join,x=L.dirname;var U=l.default.platform==="win32";var M=128;var W={PATH_STR:"path must be a string or Buffer",FD:"fd must be a file descriptor",MODE_INT:"mode must be an int",CB:"callback must be a function",UID:"uid must be an unsigned int",GID:"gid must be an unsigned int",LEN:"len must be an integer",ATIME:"atime must be an integer",MTIME:"mtime must be an integer",PREFIX:"filename prefix is required",BUFFER:"buffer must be an instance of Buffer or StaticBuffer",OFFSET:"offset must be an integer",LENGTH:"length must be an integer",POSITION:"position must be an integer"};var ERRSTR_OPTS=function(e){return"Expected options to be either an object or a string, but got ".concat(e," instead")};var H="ENOENT";var j="EBADF";var G="EINVAL";var K="EPERM";var Y="EPROTO";var q="EEXIST";var $="ENOTDIR";var J="EMFILE";var X="EACCES";var z="EISDIR";var Z="ENOTEMPTY";var Q="ENOSYS";var ee="ERR_FS_EISDIR";function formatError(e,t,r,n){if(t===void 0){t=""}if(r===void 0){r=""}if(n===void 0){n=""}var i="";if(r)i=" '".concat(r,"'");if(n)i+=" -> '".concat(n,"'");switch(e){case H:return"ENOENT: no such file or directory, ".concat(t).concat(i);case j:return"EBADF: bad file descriptor, ".concat(t).concat(i);case G:return"EINVAL: invalid argument, ".concat(t).concat(i);case K:return"EPERM: operation not permitted, ".concat(t).concat(i);case Y:return"EPROTO: protocol error, ".concat(t).concat(i);case q:return"EEXIST: file already exists, ".concat(t).concat(i);case $:return"ENOTDIR: not a directory, ".concat(t).concat(i);case z:return"EISDIR: illegal operation on a directory, ".concat(t).concat(i);case X:return"EACCES: permission denied, ".concat(t).concat(i);case Z:return"ENOTEMPTY: directory not empty, ".concat(t).concat(i);case J:return"EMFILE: too many open files, ".concat(t).concat(i);case Q:return"ENOSYS: function not implemented, ".concat(t).concat(i);case ee:return"[ERR_FS_EISDIR]: Path is a directory: ".concat(t," returned EISDIR (is a directory) ").concat(r);default:return"".concat(e,": error occurred, ").concat(t).concat(i)}}function createError(e,t,r,n,i){if(t===void 0){t=""}if(r===void 0){r=""}if(n===void 0){n=""}if(i===void 0){i=Error}var o=new i(formatError(e,t,r,n));o.code=e;return o}var te;(function(e){e[e["r"]=S]="r";e[e["r+"]=F]="r+";e[e["rs"]=S|O]="rs";e[e["sr"]=e.rs]="sr";e[e["rs+"]=F|O]="rs+";e[e["sr+"]=e["rs+"]]="sr+";e[e["w"]=w|T|k]="w";e[e["wx"]=w|T|k|R]="wx";e[e["xw"]=e.wx]="xw";e[e["w+"]=F|T|k]="w+";e[e["wx+"]=F|T|k|R]="wx+";e[e["xw+"]=e["wx+"]]="xw+";e[e["a"]=w|N|T]="a";e[e["ax"]=w|N|T|R]="ax";e[e["xa"]=e.ax]="xa";e[e["a+"]=F|N|T]="a+";e[e["ax+"]=F|N|T|R]="ax+";e[e["xa+"]=e["ax+"]]="xa+"})(te=t.FLAGS||(t.FLAGS={}));function flagsToNumber(e){if(typeof e==="number")return e;if(typeof e==="string"){var t=te[e];if(typeof t!=="undefined")return t}throw new v.TypeError("ERR_INVALID_OPT_VALUE","flags",e)}t.flagsToNumber=flagsToNumber;function getOptions(e,t){var r;if(!t)return e;else{var n=typeof t;switch(n){case"string":r=Object.assign({},e,{encoding:t});break;case"object":r=Object.assign({},e,t);break;default:throw TypeError(ERRSTR_OPTS(n))}}if(r.encoding!=="buffer")(0,y.assertEncoding)(r.encoding);return r}function optsGenerator(e){return function(t){return getOptions(e,t)}}function validateCallback(e){if(typeof e!=="function")throw TypeError(W.CB);return e}function optsAndCbGenerator(e){return function(t,r){return typeof t==="function"?[e(),t]:[e(t),validateCallback(r)]}}var re={encoding:"utf8"};var ne=optsGenerator(re);var ie=optsAndCbGenerator(ne);var oe={flag:"r"};var se=optsGenerator(oe);var ae={encoding:"utf8",mode:438,flag:te[te.w]};var ce=optsGenerator(ae);var ue={encoding:"utf8",mode:438,flag:te[te.a]};var fe=optsGenerator(ue);var le=optsAndCbGenerator(fe);var pe=re;var de=optsGenerator(pe);var he=optsAndCbGenerator(de);var me={mode:511,recursive:false};var getMkdirOptions=function(e){if(typeof e==="number")return Object.assign({},me,{mode:e});return Object.assign({},me,e)};var ye={recursive:false};var getRmdirOptions=function(e){return Object.assign({},ye,e)};var ve=optsGenerator(re);var ge=optsAndCbGenerator(ve);var _e={encoding:"utf8",withFileTypes:false};var be=optsGenerator(_e);var Ee=optsAndCbGenerator(be);var Se={bigint:false};var getStatOptions=function(e){if(e===void 0){e={}}return Object.assign({},Se,e)};var getStatOptsAndCb=function(e,t){return typeof e==="function"?[getStatOptions(),e]:[getStatOptions(e),validateCallback(t)]};function getPathFromURLPosix(e){if(e.hostname!==""){throw new v.TypeError("ERR_INVALID_FILE_URL_HOST",l.default.platform)}var t=e.pathname;for(var r=0;r<t.length;r++){if(t[r]==="%"){var n=t.codePointAt(r+2)|32;if(t[r+1]==="2"&&n===102){throw new v.TypeError("ERR_INVALID_FILE_URL_PATH","must not include encoded / characters")}}}return decodeURIComponent(t)}function pathToFilename(e){if(typeof e!=="string"&&!u.Buffer.isBuffer(e)){try{if(!(e instanceof r(310).URL))throw new TypeError(W.PATH_STR)}catch(e){throw new TypeError(W.PATH_STR)}e=getPathFromURLPosix(e)}var t=String(e);nullCheck(t);return t}t.pathToFilename=pathToFilename;var resolve=function(e,t){if(t===void 0){t=l.default.cwd()}return b(t,e)};if(U){var we=resolve;var Fe=r(689).Z4;resolve=function(e,t){return Fe(we(e,t))}}function filenameToSteps(e,t){var r=resolve(e,t);var n=r.substring(1);if(!n)return[];return n.split(V)}t.filenameToSteps=filenameToSteps;function pathToSteps(e){return filenameToSteps(pathToFilename(e))}t.pathToSteps=pathToSteps;function dataToStr(e,t){if(t===void 0){t=y.ENCODING_UTF8}if(u.Buffer.isBuffer(e))return e.toString(t);else if(e instanceof Uint8Array)return(0,u.bufferFrom)(e).toString(t);else return String(e)}t.dataToStr=dataToStr;function dataToBuffer(e,t){if(t===void 0){t=y.ENCODING_UTF8}if(u.Buffer.isBuffer(e))return e;else if(e instanceof Uint8Array)return(0,u.bufferFrom)(e);else return(0,u.bufferFrom)(String(e),t)}t.dataToBuffer=dataToBuffer;function bufferToEncoding(e,t){if(!t||t==="buffer")return e;else return e.toString(t)}t.bufferToEncoding=bufferToEncoding;function nullCheck(e,t){if((""+e).indexOf("\0")!==-1){var r=new Error("Path must be a string without null bytes");r.code=H;if(typeof t!=="function")throw r;l.default.nextTick(t,r);return false}return true}function _modeToNumber(e,t){if(typeof e==="number")return e;if(typeof e==="string")return parseInt(e,8);if(t)return modeToNumber(t);return undefined}function modeToNumber(e,t){var r=_modeToNumber(e,t);if(typeof r!=="number"||isNaN(r))throw new TypeError(W.MODE_INT);return r}function isFd(e){return e>>>0===e}function validateFd(e){if(!isFd(e))throw TypeError(W.FD)}function toUnixTimestamp(e){if(typeof e==="string"&&+e==e){return+e}if(e instanceof Date){return e.getTime()/1e3}if(isFinite(e)){if(e<0){return Date.now()/1e3}return e}throw new Error("Cannot parse time: "+e)}t.toUnixTimestamp=toUnixTimestamp;function validateUid(e){if(typeof e!=="number")throw TypeError(W.UID)}function validateGid(e){if(typeof e!=="number")throw TypeError(W.GID)}function flattenJSON(e){var t={};function flatten(e,r){for(var n in r){var i=r[n];var o=D(e,n);if(typeof i==="string"){t[o]=i}else if(typeof i==="object"&&i!==null&&Object.keys(i).length>0){flatten(o,i)}else{t[o]=null}}}flatten("",e);return t}var Te=function(){function Volume(e){if(e===void 0){e={}}this.ino=0;this.inodes={};this.releasedInos=[];this.fds={};this.releasedFds=[];this.maxFiles=1e4;this.openFiles=0;this.promisesApi=(0,_.default)(this);this.statWatchers={};this.props=Object.assign({Node:s.Node,Link:s.Link,File:s.File},e);var t=this.createLink();t.setNode(this.createNode(true));var r=this;this.StatWatcher=function(e){n(StatWatcher,e);function StatWatcher(){return e.call(this,r)||this}return StatWatcher}(Re);var o=FsReadStream;this.ReadStream=function(e){n(class_1,e);function class_1(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e.apply(this,i([r],t,false))||this}return class_1}(o);var a=FsWriteStream;this.WriteStream=function(e){n(class_2,e);function class_2(){var t=[];for(var n=0;n<arguments.length;n++){t[n]=arguments[n]}return e.apply(this,i([r],t,false))||this}return class_2}(a);this.FSWatcher=function(e){n(FSWatcher,e);function FSWatcher(){return e.call(this,r)||this}return FSWatcher}(Ne);this.root=t}Volume.fromJSON=function(e,t){var r=new Volume;r.fromJSON(e,t);return r};Volume.fromNestedJSON=function(e,t){var r=new Volume;r.fromNestedJSON(e,t);return r};Object.defineProperty(Volume.prototype,"promises",{get:function(){if(this.promisesApi===null)throw new Error("Promise is not supported in this environment.");return this.promisesApi},enumerable:false,configurable:true});Volume.prototype.createLink=function(e,t,r,n){if(r===void 0){r=false}if(!e){return new this.props.Link(this,null,"")}if(!t){throw new Error("createLink: name cannot be empty")}return e.createChild(t,this.createNode(r,n))};Volume.prototype.deleteLink=function(e){var t=e.parent;if(t){t.deleteChild(e);return true}return false};Volume.prototype.newInoNumber=function(){var e=this.releasedInos.pop();if(e)return e;else{this.ino=(this.ino+1)%4294967295;return this.ino}};Volume.prototype.newFdNumber=function(){var e=this.releasedFds.pop();return typeof e==="number"?e:Volume.fd--};Volume.prototype.createNode=function(e,t){if(e===void 0){e=false}var r=new this.props.Node(this.newInoNumber(),t);if(e)r.setIsDirectory();this.inodes[r.ino]=r;return r};Volume.prototype.getNode=function(e){return this.inodes[e]};Volume.prototype.deleteNode=function(e){e.del();delete this.inodes[e.ino];this.releasedInos.push(e.ino)};Volume.prototype.genRndStr=function(){var e=(Math.random()+1).toString(36).substring(2,8);if(e.length===6)return e;else return this.genRndStr()};Volume.prototype.getLink=function(e){return this.root.walk(e)};Volume.prototype.getLinkOrThrow=function(e,t){var r=filenameToSteps(e);var n=this.getLink(r);if(!n)throw createError(H,t,e);return n};Volume.prototype.getResolvedLink=function(e){var t=typeof e==="string"?filenameToSteps(e):e;var r=this.root;var n=0;while(n<t.length){var i=t[n];r=r.getChild(i);if(!r)return null;var o=r.getNode();if(o.isSymlink()){t=o.symlink.concat(t.slice(n+1));r=this.root;n=0;continue}n++}return r};Volume.prototype.getResolvedLinkOrThrow=function(e,t){var r=this.getResolvedLink(e);if(!r)throw createError(H,t,e);return r};Volume.prototype.resolveSymlinks=function(e){return this.getResolvedLink(e.steps.slice(1))};Volume.prototype.getLinkAsDirOrThrow=function(e,t){var r=this.getLinkOrThrow(e,t);if(!r.getNode().isDirectory())throw createError($,t,e);return r};Volume.prototype.getLinkParent=function(e){return this.root.walk(e,e.length-1)};Volume.prototype.getLinkParentAsDirOrThrow=function(e,t){var r=e instanceof Array?e:filenameToSteps(e);var n=this.getLinkParent(r);if(!n)throw createError(H,t,V+r.join(V));if(!n.getNode().isDirectory())throw createError($,t,V+r.join(V));return n};Volume.prototype.getFileByFd=function(e){return this.fds[String(e)]};Volume.prototype.getFileByFdOrThrow=function(e,t){if(!isFd(e))throw TypeError(W.FD);var r=this.getFileByFd(e);if(!r)throw createError(j,t);return r};Volume.prototype.wrapAsync=function(e,t,r){var n=this;validateCallback(r);(0,f.default)((function(){var i;try{i=e.apply(n,t)}catch(e){r(e);return}r(null,i)}))};Volume.prototype._toJSON=function(e,t,r){var n;if(e===void 0){e=this.root}if(t===void 0){t={}}var i=true;var o=e.children;if(e.getNode().isFile()){o=(n={},n[e.getName()]=e.parent.getChild(e.getName()),n);e=e.parent}for(var s in o){i=false;var a=e.getChild(s);if(!a){throw new Error("_toJSON: unexpected undefined")}var c=a.getNode();if(c.isFile()){var u=a.getPath();if(r)u=P(r,u);t[u]=c.getString()}else if(c.isDirectory()){this._toJSON(a,t,r)}}var f=e.getPath();if(r)f=P(r,f);if(f&&i){t[f]=null}return t};Volume.prototype.toJSON=function(e,t,r){if(t===void 0){t={}}if(r===void 0){r=false}var n=[];if(e){if(!(e instanceof Array))e=[e];for(var i=0,o=e;i<o.length;i++){var s=o[i];var a=pathToFilename(s);var c=this.getResolvedLink(a);if(!c)continue;n.push(c)}}else{n.push(this.root)}if(!n.length)return t;for(var u=0,f=n;u<f.length;u++){var c=f[u];this._toJSON(c,t,r?c.getPath():"")}return t};Volume.prototype.fromJSON=function(e,t){if(t===void 0){t=l.default.cwd()}for(var r in e){var n=e[r];r=resolve(r,t);if(typeof n==="string"){var i=x(r);this.mkdirpBase(i,511);this.writeFileSync(r,n)}else{this.mkdirpBase(r,511)}}};Volume.prototype.fromNestedJSON=function(e,t){this.fromJSON(flattenJSON(e),t)};Volume.prototype.reset=function(){this.ino=0;this.inodes={};this.releasedInos=[];this.fds={};this.releasedFds=[];this.openFiles=0;this.root=this.createLink();this.root.setNode(this.createNode(true))};Volume.prototype.mountSync=function(e,t){this.fromJSON(t,e)};Volume.prototype.openLink=function(e,t,r){if(r===void 0){r=true}if(this.openFiles>=this.maxFiles){throw createError(J,"open",e.getPath())}var n=e;if(r)n=this.resolveSymlinks(e);if(!n)throw createError(H,"open",e.getPath());var i=n.getNode();if(i.isDirectory()){if((t&(S|F|w))!==S)throw createError(z,"open",e.getPath())}else{if(t&B)throw createError($,"open",e.getPath())}if(!(t&w)){if(!i.canRead()){throw createError(X,"open",e.getPath())}}if(t&F){}var o=new this.props.File(e,i,t,this.newFdNumber());this.fds[o.fd]=o;this.openFiles++;if(t&k)o.truncate();return o};Volume.prototype.openFile=function(e,t,r,n){if(n===void 0){n=true}var i=filenameToSteps(e);var o=n?this.getResolvedLink(i):this.getLink(i);if(o&&t&R)throw createError(q,"open",e);if(!o&&t&T){var s=this.getResolvedLink(i.slice(0,i.length-1));if(!s)throw createError(H,"open",V+i.join(V));if(t&T&&typeof r==="number"){o=this.createLink(s,i[i.length-1],false,r)}}if(o)return this.openLink(o,t,n);throw createError(H,"open",e)};Volume.prototype.openBase=function(e,t,r,n){if(n===void 0){n=true}var i=this.openFile(e,t,r,n);if(!i)throw createError(H,"open",e);return i.fd};Volume.prototype.openSync=function(e,t,r){if(r===void 0){r=438}var n=modeToNumber(r);var i=pathToFilename(e);var o=flagsToNumber(t);return this.openBase(i,o,n)};Volume.prototype.open=function(e,t,r,n){var i=r;var o=n;if(typeof r==="function"){i=438;o=r}i=i||438;var s=modeToNumber(i);var a=pathToFilename(e);var c=flagsToNumber(t);this.wrapAsync(this.openBase,[a,c,s],o)};Volume.prototype.closeFile=function(e){if(!this.fds[e.fd])return;this.openFiles--;delete this.fds[e.fd];this.releasedFds.push(e.fd)};Volume.prototype.closeSync=function(e){validateFd(e);var t=this.getFileByFdOrThrow(e,"close");this.closeFile(t)};Volume.prototype.close=function(e,t){validateFd(e);this.wrapAsync(this.closeSync,[e],t)};Volume.prototype.openFileOrGetById=function(e,t,r){if(typeof e==="number"){var n=this.fds[e];if(!n)throw createError(H);return n}else{return this.openFile(pathToFilename(e),t,r)}};Volume.prototype.readBase=function(e,t,r,n,i){var o=this.getFileByFdOrThrow(e);return o.read(t,Number(r),Number(n),i)};Volume.prototype.readSync=function(e,t,r,n,i){validateFd(e);return this.readBase(e,t,r,n,i)};Volume.prototype.read=function(e,t,r,n,i,o){var s=this;validateCallback(o);if(n===0){return l.default.nextTick((function(){if(o)o(null,0,t)}))}(0,f.default)((function(){try{var a=s.readBase(e,t,r,n,i);o(null,a,t)}catch(e){o(e)}}))};Volume.prototype.readFileBase=function(e,t,r){var n;var i=typeof e==="number";var o=i&&isFd(e);var s;if(o)s=e;else{var a=pathToFilename(e);var c=filenameToSteps(a);var u=this.getResolvedLink(c);if(u){var f=u.getNode();if(f.isDirectory())throw createError(z,"open",u.getPath())}s=this.openSync(e,t)}try{n=bufferToEncoding(this.getFileByFdOrThrow(s).getBuffer(),r)}finally{if(!o){this.closeSync(s)}}return n};Volume.prototype.readFileSync=function(e,t){var r=se(t);var n=flagsToNumber(r.flag);return this.readFileBase(e,n,r.encoding)};Volume.prototype.readFile=function(e,t,r){var n=optsAndCbGenerator(se)(t,r),i=n[0],o=n[1];var s=flagsToNumber(i.flag);this.wrapAsync(this.readFileBase,[e,s,i.encoding],o)};Volume.prototype.writeBase=function(e,t,r,n,i){var o=this.getFileByFdOrThrow(e,"write");return o.write(t,r,n,i)};Volume.prototype.writeSync=function(e,t,r,n,i){validateFd(e);var o;var s;var a;var c;var u=typeof t!=="string";if(u){s=(r||0)|0;a=n;c=i}else{c=r;o=n}var f=dataToBuffer(t,o);if(u){if(typeof a==="undefined"){a=f.length}}else{s=0;a=f.length}return this.writeBase(e,f,s,a,c)};Volume.prototype.write=function(e,t,r,n,i,o){var s=this;validateFd(e);var a;var c;var u;var l;var p;var d=typeof t;var h=typeof r;var m=typeof n;var y=typeof i;if(d!=="string"){if(h==="function"){p=r}else if(m==="function"){a=r|0;p=n}else if(y==="function"){a=r|0;c=n;p=i}else{a=r|0;c=n;u=i;p=o}}else{if(h==="function"){p=r}else if(m==="function"){u=r;p=n}else if(y==="function"){u=r;l=n;p=i}}var v=dataToBuffer(t,l);if(d!=="string"){if(typeof c==="undefined")c=v.length}else{a=0;c=v.length}var g=validateCallback(p);(0,f.default)((function(){try{var r=s.writeBase(e,v,a,c,u);if(d!=="string"){g(null,r,v)}else{g(null,r,t)}}catch(e){g(e)}}))};Volume.prototype.writeFileBase=function(e,t,r,n){var i=typeof e==="number";var o;if(i)o=e;else{o=this.openBase(pathToFilename(e),r,n)}var s=0;var a=t.length;var c=r&N?undefined:0;try{while(a>0){var u=this.writeSync(o,t,s,a,c);s+=u;a-=u;if(c!==undefined)c+=u}}finally{if(!i)this.closeSync(o)}};Volume.prototype.writeFileSync=function(e,t,r){var n=ce(r);var i=flagsToNumber(n.flag);var o=modeToNumber(n.mode);var s=dataToBuffer(t,n.encoding);this.writeFileBase(e,s,i,o)};Volume.prototype.writeFile=function(e,t,r,n){var i=r;var o=n;if(typeof r==="function"){i=ae;o=r}var s=validateCallback(o);var a=ce(i);var c=flagsToNumber(a.flag);var u=modeToNumber(a.mode);var f=dataToBuffer(t,a.encoding);this.wrapAsync(this.writeFileBase,[e,f,c,u],s)};Volume.prototype.linkBase=function(e,t){var r=filenameToSteps(e);var n=this.getLink(r);if(!n)throw createError(H,"link",e,t);var i=filenameToSteps(t);var o=this.getLinkParent(i);if(!o)throw createError(H,"link",e,t);var s=i[i.length-1];if(o.getChild(s))throw createError(q,"link",e,t);var a=n.getNode();a.nlink++;o.createChild(s,a)};Volume.prototype.copyFileBase=function(e,t,r){var n=this.readFileSync(e);if(r&A){if(this.existsSync(t)){throw createError(q,"copyFile",e,t)}}if(r&C){throw createError(Q,"copyFile",e,t)}this.writeFileBase(t,n,te.w,438)};Volume.prototype.copyFileSync=function(e,t,r){var n=pathToFilename(e);var i=pathToFilename(t);return this.copyFileBase(n,i,(r||0)|0)};Volume.prototype.copyFile=function(e,t,r,n){var i=pathToFilename(e);var o=pathToFilename(t);var s;var a;if(typeof r==="function"){s=0;a=r}else{s=r;a=n}validateCallback(a);this.wrapAsync(this.copyFileBase,[i,o,s],a)};Volume.prototype.linkSync=function(e,t){var r=pathToFilename(e);var n=pathToFilename(t);this.linkBase(r,n)};Volume.prototype.link=function(e,t,r){var n=pathToFilename(e);var i=pathToFilename(t);this.wrapAsync(this.linkBase,[n,i],r)};Volume.prototype.unlinkBase=function(e){var t=filenameToSteps(e);var r=this.getLink(t);if(!r)throw createError(H,"unlink",e);if(r.length)throw Error("Dir not empty...");this.deleteLink(r);var n=r.getNode();n.nlink--;if(n.nlink<=0){this.deleteNode(n)}};Volume.prototype.unlinkSync=function(e){var t=pathToFilename(e);this.unlinkBase(t)};Volume.prototype.unlink=function(e,t){var r=pathToFilename(e);this.wrapAsync(this.unlinkBase,[r],t)};Volume.prototype.symlinkBase=function(e,t){var r=filenameToSteps(t);var n=this.getLinkParent(r);if(!n)throw createError(H,"symlink",e,t);var i=r[r.length-1];if(n.getChild(i))throw createError(q,"symlink",e,t);var o=n.createChild(i);o.getNode().makeSymlink(filenameToSteps(e));return o};Volume.prototype.symlinkSync=function(e,t,r){var n=pathToFilename(e);var i=pathToFilename(t);this.symlinkBase(n,i)};Volume.prototype.symlink=function(e,t,r,n){var i=validateCallback(typeof r==="function"?r:n);var o=pathToFilename(e);var s=pathToFilename(t);this.wrapAsync(this.symlinkBase,[o,s],i)};Volume.prototype.realpathBase=function(e,t){var r=filenameToSteps(e);var n=this.getResolvedLink(r);if(!n)throw createError(H,"realpath",e);return(0,y.strToEncoding)(n.getPath()||"/",t)};Volume.prototype.realpathSync=function(e,t){return this.realpathBase(pathToFilename(e),de(t).encoding)};Volume.prototype.realpath=function(e,t,r){var n=he(t,r),i=n[0],o=n[1];var s=pathToFilename(e);this.wrapAsync(this.realpathBase,[s,i.encoding],o)};Volume.prototype.lstatBase=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=false}var n=this.getLink(filenameToSteps(e));if(n){return a.default.build(n.getNode(),t)}else if(!r){return undefined}else{throw createError(H,"lstat",e)}};Volume.prototype.lstatSync=function(e,t){var r=getStatOptions(t),n=r.throwIfNoEntry,i=n===void 0?true:n,o=r.bigint,s=o===void 0?false:o;return this.lstatBase(pathToFilename(e),s,i)};Volume.prototype.lstat=function(e,t,r){var n=getStatOptsAndCb(t,r),i=n[0],o=i.throwIfNoEntry,s=o===void 0?true:o,a=i.bigint,c=a===void 0?false:a,u=n[1];this.wrapAsync(this.lstatBase,[pathToFilename(e),c,s],u)};Volume.prototype.statBase=function(e,t,r){if(t===void 0){t=false}if(r===void 0){r=true}var n=this.getResolvedLink(filenameToSteps(e));if(n){return a.default.build(n.getNode(),t)}else if(!r){return undefined}else{throw createError(H,"stat",e)}};Volume.prototype.statSync=function(e,t){var r=getStatOptions(t),n=r.bigint,i=n===void 0?true:n,o=r.throwIfNoEntry,s=o===void 0?true:o;return this.statBase(pathToFilename(e),i,s)};Volume.prototype.stat=function(e,t,r){var n=getStatOptsAndCb(t,r),i=n[0],o=i.bigint,s=o===void 0?false:o,a=i.throwIfNoEntry,c=a===void 0?true:a,u=n[1];this.wrapAsync(this.statBase,[pathToFilename(e),s,c],u)};Volume.prototype.fstatBase=function(e,t){if(t===void 0){t=false}var r=this.getFileByFd(e);if(!r)throw createError(j,"fstat");return a.default.build(r.node,t)};Volume.prototype.fstatSync=function(e,t){return this.fstatBase(e,getStatOptions(t).bigint)};Volume.prototype.fstat=function(e,t,r){var n=getStatOptsAndCb(t,r),i=n[0],o=n[1];this.wrapAsync(this.fstatBase,[e,i.bigint],o)};Volume.prototype.renameBase=function(e,t){var r=this.getLink(filenameToSteps(e));if(!r)throw createError(H,"rename",e,t);var n=filenameToSteps(t);var o=this.getLinkParent(n);if(!o)throw createError(H,"rename",e,t);var s=r.parent;if(s){s.deleteChild(r)}var a=n[n.length-1];r.name=a;r.steps=i(i([],o.steps,true),[a],false);o.setChild(r.getName(),r)};Volume.prototype.renameSync=function(e,t){var r=pathToFilename(e);var n=pathToFilename(t);this.renameBase(r,n)};Volume.prototype.rename=function(e,t,r){var n=pathToFilename(e);var i=pathToFilename(t);this.wrapAsync(this.renameBase,[n,i],r)};Volume.prototype.existsBase=function(e){return!!this.statBase(e)};Volume.prototype.existsSync=function(e){try{return this.existsBase(pathToFilename(e))}catch(e){return false}};Volume.prototype.exists=function(e,t){var r=this;var n=pathToFilename(e);if(typeof t!=="function")throw Error(W.CB);(0,f.default)((function(){try{t(r.existsBase(n))}catch(e){t(false)}}))};Volume.prototype.accessBase=function(e,t){var r=this.getLinkOrThrow(e,"access")};Volume.prototype.accessSync=function(e,t){if(t===void 0){t=I}var r=pathToFilename(e);t=t|0;this.accessBase(r,t)};Volume.prototype.access=function(e,t,r){var n=I;var i;if(typeof t!=="function"){n=t|0;i=validateCallback(r)}else{i=t}var o=pathToFilename(e);this.wrapAsync(this.accessBase,[o,n],i)};Volume.prototype.appendFileSync=function(e,t,r){if(r===void 0){r=ue}var n=fe(r);if(!n.flag||isFd(e))n.flag="a";this.writeFileSync(e,t,n)};Volume.prototype.appendFile=function(e,t,r,n){var i=le(r,n),o=i[0],s=i[1];if(!o.flag||isFd(e))o.flag="a";this.writeFile(e,t,o,s)};Volume.prototype.readdirBase=function(e,t){var r=filenameToSteps(e);var n=this.getResolvedLink(r);if(!n)throw createError(H,"readdir",e);var i=n.getNode();if(!i.isDirectory())throw createError($,"scandir",e);if(t.withFileTypes){var o=[];for(var s in n.children){var a=n.getChild(s);if(!a){continue}o.push(c.default.build(a,t.encoding))}if(!U&&t.encoding!=="buffer")o.sort((function(e,t){if(e.name<t.name)return-1;if(e.name>t.name)return 1;return 0}));return o}var u=[];for(var f in n.children){u.push((0,y.strToEncoding)(f,t.encoding))}if(!U&&t.encoding!=="buffer")u.sort();return u};Volume.prototype.readdirSync=function(e,t){var r=be(t);var n=pathToFilename(e);return this.readdirBase(n,r)};Volume.prototype.readdir=function(e,t,r){var n=Ee(t,r),i=n[0],o=n[1];var s=pathToFilename(e);this.wrapAsync(this.readdirBase,[s,i],o)};Volume.prototype.readlinkBase=function(e,t){var r=this.getLinkOrThrow(e,"readlink");var n=r.getNode();if(!n.isSymlink())throw createError(G,"readlink",e);var i=V+n.symlink.join(V);return(0,y.strToEncoding)(i,t)};Volume.prototype.readlinkSync=function(e,t){var r=ne(t);var n=pathToFilename(e);return this.readlinkBase(n,r.encoding)};Volume.prototype.readlink=function(e,t,r){var n=ie(t,r),i=n[0],o=n[1];var s=pathToFilename(e);this.wrapAsync(this.readlinkBase,[s,i.encoding],o)};Volume.prototype.fsyncBase=function(e){this.getFileByFdOrThrow(e,"fsync")};Volume.prototype.fsyncSync=function(e){this.fsyncBase(e)};Volume.prototype.fsync=function(e,t){this.wrapAsync(this.fsyncBase,[e],t)};Volume.prototype.fdatasyncBase=function(e){this.getFileByFdOrThrow(e,"fdatasync")};Volume.prototype.fdatasyncSync=function(e){this.fdatasyncBase(e)};Volume.prototype.fdatasync=function(e,t){this.wrapAsync(this.fdatasyncBase,[e],t)};Volume.prototype.ftruncateBase=function(e,t){var r=this.getFileByFdOrThrow(e,"ftruncate");r.truncate(t)};Volume.prototype.ftruncateSync=function(e,t){this.ftruncateBase(e,t)};Volume.prototype.ftruncate=function(e,t,r){var n=typeof t==="number"?t:0;var i=validateCallback(typeof t==="number"?r:t);this.wrapAsync(this.ftruncateBase,[e,n],i)};Volume.prototype.truncateBase=function(e,t){var r=this.openSync(e,"r+");try{this.ftruncateSync(r,t)}finally{this.closeSync(r)}};Volume.prototype.truncateSync=function(e,t){if(isFd(e))return this.ftruncateSync(e,t);this.truncateBase(e,t)};Volume.prototype.truncate=function(e,t,r){var n=typeof t==="number"?t:0;var i=validateCallback(typeof t==="number"?r:t);if(isFd(e))return this.ftruncate(e,n,i);this.wrapAsync(this.truncateBase,[e,n],i)};Volume.prototype.futimesBase=function(e,t,r){var n=this.getFileByFdOrThrow(e,"futimes");var i=n.node;i.atime=new Date(t*1e3);i.mtime=new Date(r*1e3)};Volume.prototype.futimesSync=function(e,t,r){this.futimesBase(e,toUnixTimestamp(t),toUnixTimestamp(r))};Volume.prototype.futimes=function(e,t,r,n){this.wrapAsync(this.futimesBase,[e,toUnixTimestamp(t),toUnixTimestamp(r)],n)};Volume.prototype.utimesBase=function(e,t,r){var n=this.openSync(e,"r");try{this.futimesBase(n,t,r)}finally{this.closeSync(n)}};Volume.prototype.utimesSync=function(e,t,r){this.utimesBase(pathToFilename(e),toUnixTimestamp(t),toUnixTimestamp(r))};Volume.prototype.utimes=function(e,t,r,n){this.wrapAsync(this.utimesBase,[pathToFilename(e),toUnixTimestamp(t),toUnixTimestamp(r)],n)};Volume.prototype.mkdirBase=function(e,t){var r=filenameToSteps(e);if(!r.length){throw createError(q,"mkdir",e)}var n=this.getLinkParentAsDirOrThrow(e,"mkdir");var i=r[r.length-1];if(n.getChild(i))throw createError(q,"mkdir",e);n.createChild(i,this.createNode(true,t))};Volume.prototype.mkdirpBase=function(e,t){var r=resolve(e);var n=r.substring(1);var i=!n?[]:n.split(V);var o=this.root;var s=false;for(var a=0;a<i.length;a++){var c=i[a];if(!o.getNode().isDirectory())throw createError($,"mkdir",o.getPath());var u=o.getChild(c);if(u){if(u.getNode().isDirectory())o=u;else throw createError($,"mkdir",u.getPath())}else{o=o.createChild(c,this.createNode(true,t));s=true}}return s?r:undefined};Volume.prototype.mkdirSync=function(e,t){var r=getMkdirOptions(t);var n=modeToNumber(r.mode,511);var i=pathToFilename(e);if(r.recursive)return this.mkdirpBase(i,n);this.mkdirBase(i,n)};Volume.prototype.mkdir=function(e,t,r){var n=getMkdirOptions(t);var i=validateCallback(typeof t==="function"?t:r);var o=modeToNumber(n.mode,511);var s=pathToFilename(e);if(n.recursive)this.wrapAsync(this.mkdirpBase,[s,o],i);else this.wrapAsync(this.mkdirBase,[s,o],i)};Volume.prototype.mkdirpSync=function(e,t){return this.mkdirSync(e,{mode:t,recursive:true})};Volume.prototype.mkdirp=function(e,t,r){var n=typeof t==="function"?undefined:t;var i=validateCallback(typeof t==="function"?t:r);this.mkdir(e,{mode:n,recursive:true},i)};Volume.prototype.mkdtempBase=function(e,t,r){if(r===void 0){r=5}var n=e+this.genRndStr();try{this.mkdirBase(n,511);return(0,y.strToEncoding)(n,t)}catch(n){if(n.code===q){if(r>1)return this.mkdtempBase(e,t,r-1);else throw Error("Could not create temp dir.")}else throw n}};Volume.prototype.mkdtempSync=function(e,t){var r=ne(t).encoding;if(!e||typeof e!=="string")throw new TypeError("filename prefix is required");nullCheck(e);return this.mkdtempBase(e,r)};Volume.prototype.mkdtemp=function(e,t,r){var n=ie(t,r),i=n[0].encoding,o=n[1];if(!e||typeof e!=="string")throw new TypeError("filename prefix is required");if(!nullCheck(e))return;this.wrapAsync(this.mkdtempBase,[e,i],o)};Volume.prototype.rmdirBase=function(e,t){var r=getRmdirOptions(t);var n=this.getLinkAsDirOrThrow(e,"rmdir");if(n.length&&!r.recursive)throw createError(Z,"rmdir",e);this.deleteLink(n)};Volume.prototype.rmdirSync=function(e,t){this.rmdirBase(pathToFilename(e),t)};Volume.prototype.rmdir=function(e,t,r){var n=getRmdirOptions(t);var i=validateCallback(typeof t==="function"?t:r);this.wrapAsync(this.rmdirBase,[pathToFilename(e),n],i)};Volume.prototype.rmBase=function(e,t){if(t===void 0){t={}}var r=this.getResolvedLink(e);if(!r){if(!t.force)throw createError(H,"stat",e);return}if(r.getNode().isDirectory()){if(!t.recursive){throw createError(ee,"rm",e)}}this.deleteLink(r)};Volume.prototype.rmSync=function(e,t){this.rmBase(pathToFilename(e),t)};Volume.prototype.rm=function(e,t,r){var n=ge(t,r),i=n[0],o=n[1];this.wrapAsync(this.rmBase,[pathToFilename(e),i],o)};Volume.prototype.fchmodBase=function(e,t){var r=this.getFileByFdOrThrow(e,"fchmod");r.chmod(t)};Volume.prototype.fchmodSync=function(e,t){this.fchmodBase(e,modeToNumber(t))};Volume.prototype.fchmod=function(e,t,r){this.wrapAsync(this.fchmodBase,[e,modeToNumber(t)],r)};Volume.prototype.chmodBase=function(e,t){var r=this.openSync(e,"r");try{this.fchmodBase(r,t)}finally{this.closeSync(r)}};Volume.prototype.chmodSync=function(e,t){var r=modeToNumber(t);var n=pathToFilename(e);this.chmodBase(n,r)};Volume.prototype.chmod=function(e,t,r){var n=modeToNumber(t);var i=pathToFilename(e);this.wrapAsync(this.chmodBase,[i,n],r)};Volume.prototype.lchmodBase=function(e,t){var r=this.openBase(e,F,0,false);try{this.fchmodBase(r,t)}finally{this.closeSync(r)}};Volume.prototype.lchmodSync=function(e,t){var r=modeToNumber(t);var n=pathToFilename(e);this.lchmodBase(n,r)};Volume.prototype.lchmod=function(e,t,r){var n=modeToNumber(t);var i=pathToFilename(e);this.wrapAsync(this.lchmodBase,[i,n],r)};Volume.prototype.fchownBase=function(e,t,r){this.getFileByFdOrThrow(e,"fchown").chown(t,r)};Volume.prototype.fchownSync=function(e,t,r){validateUid(t);validateGid(r);this.fchownBase(e,t,r)};Volume.prototype.fchown=function(e,t,r,n){validateUid(t);validateGid(r);this.wrapAsync(this.fchownBase,[e,t,r],n)};Volume.prototype.chownBase=function(e,t,r){var n=this.getResolvedLinkOrThrow(e,"chown");var i=n.getNode();i.chown(t,r)};Volume.prototype.chownSync=function(e,t,r){validateUid(t);validateGid(r);this.chownBase(pathToFilename(e),t,r)};Volume.prototype.chown=function(e,t,r,n){validateUid(t);validateGid(r);this.wrapAsync(this.chownBase,[pathToFilename(e),t,r],n)};Volume.prototype.lchownBase=function(e,t,r){this.getLinkOrThrow(e,"lchown").getNode().chown(t,r)};Volume.prototype.lchownSync=function(e,t,r){validateUid(t);validateGid(r);this.lchownBase(pathToFilename(e),t,r)};Volume.prototype.lchown=function(e,t,r,n){validateUid(t);validateGid(r);this.wrapAsync(this.lchownBase,[pathToFilename(e),t,r],n)};Volume.prototype.watchFile=function(e,t,r){var n=pathToFilename(e);var i=t;var o=r;if(typeof i==="function"){o=t;i=null}if(typeof o!=="function"){throw Error('"watchFile()" requires a listener function')}var s=5007;var a=true;if(i&&typeof i==="object"){if(typeof i.interval==="number")s=i.interval;if(typeof i.persistent==="boolean")a=i.persistent}var c=this.statWatchers[n];if(!c){c=new this.StatWatcher;c.start(n,a,s);this.statWatchers[n]=c}c.addListener("change",o);return c};Volume.prototype.unwatchFile=function(e,t){var r=pathToFilename(e);var n=this.statWatchers[r];if(!n)return;if(typeof t==="function"){n.removeListener("change",t)}else{n.removeAllListeners("change")}if(n.listenerCount("change")===0){n.stop();delete this.statWatchers[r]}};Volume.prototype.createReadStream=function(e,t){return new this.ReadStream(e,t)};Volume.prototype.createWriteStream=function(e,t){return new this.WriteStream(e,t)};Volume.prototype.watch=function(e,t,r){var n=pathToFilename(e);var i=t;if(typeof t==="function"){r=t;i=null}var o=ne(i),s=o.persistent,a=o.recursive,c=o.encoding;if(s===undefined)s=true;if(a===undefined)a=false;var u=new this.FSWatcher;u.start(n,s,a,c);if(r){u.addListener("change",r)}return u};Volume.fd=2147483647;return Volume}();t.Volume=Te;function emitStop(e){e.emit("stop")}var Re=function(e){n(StatWatcher,e);function StatWatcher(t){var r=e.call(this)||this;r.onInterval=function(){try{var e=r.vol.statSync(r.filename);if(r.hasChanged(e)){r.emit("change",e,r.prev);r.prev=e}}finally{r.loop()}};r.vol=t;return r}StatWatcher.prototype.loop=function(){this.timeoutRef=this.setTimeout(this.onInterval,this.interval)};StatWatcher.prototype.hasChanged=function(e){if(e.mtimeMs>this.prev.mtimeMs)return true;if(e.nlink!==this.prev.nlink)return true;return false};StatWatcher.prototype.start=function(e,t,r){if(t===void 0){t=true}if(r===void 0){r=5007}this.filename=pathToFilename(e);this.setTimeout=t?setTimeout.bind(typeof globalThis!=="undefined"?globalThis:global):p.default;this.interval=r;this.prev=this.vol.statSync(this.filename);this.loop()};StatWatcher.prototype.stop=function(){clearTimeout(this.timeoutRef);l.default.nextTick(emitStop,this)};return StatWatcher}(m.EventEmitter);t.StatWatcher=Re;var ke;function allocNewPool(e){ke=(0,u.bufferAllocUnsafe)(e);ke.used=0}g.inherits(FsReadStream,d.Readable);t.ReadStream=FsReadStream;function FsReadStream(e,t,r){if(!(this instanceof FsReadStream))return new FsReadStream(e,t,r);this._vol=e;r=Object.assign({},getOptions(r,{}));if(r.highWaterMark===undefined)r.highWaterMark=64*1024;d.Readable.call(this,r);this.path=pathToFilename(t);this.fd=r.fd===undefined?null:r.fd;this.flags=r.flags===undefined?"r":r.flags;this.mode=r.mode===undefined?438:r.mode;this.start=r.start;this.end=r.end;this.autoClose=r.autoClose===undefined?true:r.autoClose;this.pos=undefined;this.bytesRead=0;if(this.start!==undefined){if(typeof this.start!=="number"){throw new TypeError('"start" option must be a Number')}if(this.end===undefined){this.end=Infinity}else if(typeof this.end!=="number"){throw new TypeError('"end" option must be a Number')}if(this.start>this.end){throw new Error('"start" option must be <= "end" option')}this.pos=this.start}if(typeof this.fd!=="number")this.open();this.on("end",(function(){if(this.autoClose){if(this.destroy)this.destroy()}}))}FsReadStream.prototype.open=function(){var e=this;this._vol.open(this.path,this.flags,this.mode,(function(t,r){if(t){if(e.autoClose){if(e.destroy)e.destroy()}e.emit("error",t);return}e.fd=r;e.emit("open",r);e.read()}))};FsReadStream.prototype._read=function(e){if(typeof this.fd!=="number"){return this.once("open",(function(){this._read(e)}))}if(this.destroyed)return;if(!ke||ke.length-ke.used<M){allocNewPool(this._readableState.highWaterMark)}var t=ke;var r=Math.min(ke.length-ke.used,e);var n=ke.used;if(this.pos!==undefined)r=Math.min(this.end-this.pos+1,r);if(r<=0)return this.push(null);var i=this;this._vol.read(this.fd,ke,ke.used,r,this.pos,onread);if(this.pos!==undefined)this.pos+=r;ke.used+=r;function onread(e,r){if(e){if(i.autoClose&&i.destroy){i.destroy()}i.emit("error",e)}else{var o=null;if(r>0){i.bytesRead+=r;o=t.slice(n,n+r)}i.push(o)}}};FsReadStream.prototype._destroy=function(e,t){this.close((function(r){t(e||r)}))};FsReadStream.prototype.close=function(e){var t=this;var r;if(e)this.once("close",e);if(this.closed||typeof this.fd!=="number"){if(typeof this.fd!=="number"){this.once("open",closeOnOpen);return}return l.default.nextTick((function(){return t.emit("close")}))}if(typeof((r=this._readableState)===null||r===void 0?void 0:r.closed)==="boolean"){this._readableState.closed=true}else{this.closed=true}this._vol.close(this.fd,(function(e){if(e)t.emit("error",e);else t.emit("close")}));this.fd=null};function closeOnOpen(e){this.close()}g.inherits(FsWriteStream,d.Writable);t.WriteStream=FsWriteStream;function FsWriteStream(e,t,r){if(!(this instanceof FsWriteStream))return new FsWriteStream(e,t,r);this._vol=e;r=Object.assign({},getOptions(r,{}));d.Writable.call(this,r);this.path=pathToFilename(t);this.fd=r.fd===undefined?null:r.fd;this.flags=r.flags===undefined?"w":r.flags;this.mode=r.mode===undefined?438:r.mode;this.start=r.start;this.autoClose=r.autoClose===undefined?true:!!r.autoClose;this.pos=undefined;this.bytesWritten=0;if(this.start!==undefined){if(typeof this.start!=="number"){throw new TypeError('"start" option must be a Number')}if(this.start<0){throw new Error('"start" must be >= zero')}this.pos=this.start}if(r.encoding)this.setDefaultEncoding(r.encoding);if(typeof this.fd!=="number")this.open();this.once("finish",(function(){if(this.autoClose){this.close()}}))}FsWriteStream.prototype.open=function(){this._vol.open(this.path,this.flags,this.mode,function(e,t){if(e){if(this.autoClose&&this.destroy){this.destroy()}this.emit("error",e);return}this.fd=t;this.emit("open",t)}.bind(this))};FsWriteStream.prototype._write=function(e,t,r){if(!(e instanceof u.Buffer||e instanceof Uint8Array))return this.emit("error",new Error("Invalid data"));if(typeof this.fd!=="number"){return this.once("open",(function(){this._write(e,t,r)}))}var n=this;this._vol.write(this.fd,e,0,e.length,this.pos,(function(e,t){if(e){if(n.autoClose&&n.destroy){n.destroy()}return r(e)}n.bytesWritten+=t;r()}));if(this.pos!==undefined)this.pos+=e.length};FsWriteStream.prototype._writev=function(e,t){if(typeof this.fd!=="number"){return this.once("open",(function(){this._writev(e,t)}))}var r=this;var n=e.length;var i=new Array(n);var o=0;for(var s=0;s<n;s++){var a=e[s].chunk;i[s]=a;o+=a.length}var c=u.Buffer.concat(i);this._vol.write(this.fd,c,0,c.length,this.pos,(function(e,n){if(e){if(r.destroy)r.destroy();return t(e)}r.bytesWritten+=n;t()}));if(this.pos!==undefined)this.pos+=o};FsWriteStream.prototype.close=function(e){var t=this;var r;if(e)this.once("close",e);if(this.closed||typeof this.fd!=="number"){if(typeof this.fd!=="number"){this.once("open",closeOnOpen);return}return l.default.nextTick((function(){return t.emit("close")}))}if(typeof((r=this._writableState)===null||r===void 0?void 0:r.closed)==="boolean"){this._writableState.closed=true}else{this.closed=true}this._vol.close(this.fd,(function(e){if(e)t.emit("error",e);else t.emit("close")}));this.fd=null};FsWriteStream.prototype._destroy=FsReadStream.prototype._destroy;FsWriteStream.prototype.destroySoon=FsWriteStream.prototype.end;var Ne=function(e){n(FSWatcher,e);function FSWatcher(t){var r=e.call(this)||this;r._filename="";r._filenameEncoded="";r._recursive=false;r._encoding=y.ENCODING_UTF8;r._onNodeChange=function(){r._emit("change")};r._onParentChild=function(e){if(e.getName()===r._getName()){r._emit("rename")}};r._emit=function(e){r.emit("change",e,r._filenameEncoded)};r._persist=function(){r._timer=setTimeout(r._persist,1e6)};r._vol=t;return r}FSWatcher.prototype._getName=function(){return this._steps[this._steps.length-1]};FSWatcher.prototype.start=function(e,t,r,n){if(t===void 0){t=true}if(r===void 0){r=false}if(n===void 0){n=y.ENCODING_UTF8}this._filename=pathToFilename(e);this._steps=filenameToSteps(this._filename);this._filenameEncoded=(0,y.strToEncoding)(this._filename);this._recursive=r;this._encoding=n;try{this._link=this._vol.getLinkOrThrow(this._filename,"FSWatcher")}catch(e){var i=new Error("watch ".concat(this._filename," ").concat(e.code));i.code=e.code;i.errno=e.code;throw i}this._link.getNode().on("change",this._onNodeChange);this._link.on("child:add",this._onNodeChange);this._link.on("child:delete",this._onNodeChange);var o=this._link.parent;if(o){o.setMaxListeners(o.getMaxListeners()+1);o.on("child:delete",this._onParentChild)}if(t)this._persist()};FSWatcher.prototype.close=function(){clearTimeout(this._timer);this._link.getNode().removeListener("change",this._onNodeChange);var e=this._link.parent;if(e){e.removeListener("child:delete",this._onParentChild)}};return FSWatcher}(m.EventEmitter);t.FSWatcher=Ne},68:e=>{"use strict";
2
- /*!
3
- * range-parser
4
- * Copyright(c) 2012-2014 TJ Holowaychuk
5
- * Copyright(c) 2015-2016 Douglas Christopher Wilson
6
- * MIT Licensed
7
- */e.exports=rangeParser;function rangeParser(e,t,r){if(typeof t!=="string"){throw new TypeError("argument str must be a string")}var n=t.indexOf("=");if(n===-1){return-2}var i=t.slice(n+1).split(",");var o=[];o.type=t.slice(0,n);for(var s=0;s<i.length;s++){var a=i[s].split("-");var c=parseInt(a[0],10);var u=parseInt(a[1],10);if(isNaN(c)){c=e-u;u=e-1}else if(isNaN(u)){u=e-1}if(u>e-1){u=e-1}if(isNaN(c)||isNaN(u)||c>u||c<0){continue}o.push({start:c,end:u})}if(o.length<1){return-1}return r&&r.combine?combineRanges(o):o}function combineRanges(e){var t=e.map(mapWithIndex).sort(sortByRangeStart);for(var r=0,n=1;n<t.length;n++){var i=t[n];var o=t[r];if(i.start>o.end+1){t[++r]=i}else if(i.end>o.end){o.end=i.end;o.index=Math.min(o.index,i.index)}}t.length=r+1;var s=t.sort(sortByRangeIndex).map(mapWithoutIndex);s.type=e.type;return s}function mapWithIndex(e,t){return{start:e.start,end:e.end,index:t}}function mapWithoutIndex(e){return{start:e.start,end:e.end}}function sortByRangeIndex(e,t){return e.index-t.index}function sortByRangeStart(e,t){return e.start-t.start}},553:(e,t,r)=>{"use strict";const{validate:n}=r(739);const i=r(989);const o=r(581);const s=r(120);const a=r(51);const c=r(54);const u=r(186);const f=r(634);const l=r(30);const noop=()=>{};function wdm(e,t={}){n(l,t,{name:"Dev Middleware",baseDataPath:"options"});const{mimeTypes:r}=t;if(r){const{types:e}=i;i.types={...e,...r}}const p={state:false,stats:undefined,callbacks:[],options:t,compiler:e,watching:undefined,logger:e.getInfrastructureLogger("webpack-dev-middleware"),outputFileSystem:undefined};a(p);if(t.writeToDisk){c(p)}u(p);if(p.compiler.watching){p.watching=p.compiler.watching}else{let e;const errorHandler=e=>{if(e){p.logger.error(e)}};if(Array.isArray(p.compiler.compilers)){e=p.compiler.compilers.map((e=>e.options.watchOptions||{}));p.watching=p.compiler.watch(e,errorHandler)}else{e=p.compiler.options.watchOptions||{};p.watching=p.compiler.watch(e,errorHandler)}}const d=o(p);d.getFilenameFromUrl=e=>s(p,e);d.waitUntilValid=(e=noop)=>{f(p,e)};d.invalidate=(e=noop)=>{f(p,e);p.watching.invalidate()};d.close=(e=noop)=>{p.watching.close(e)};d.context=p;return d}e.exports=wdm},581:(e,t,r)=>{"use strict";const n=r(17);const i=r(989);const o=r(68);const s=r(120);const{getHeaderNames:a,getHeaderFromRequest:c,getHeaderFromResponse:u,setHeaderForResponse:f,setStatusCode:l,send:p}=r(350);const d=r(634);function getValueContentRangeHeader(e,t,r){return`${e} ${r?`${r.start}-${r.end}`:"*"}/${t}`}function createHtmlDocument(e,t){return`${"<!DOCTYPE html>\n"+'<html lang="en">\n'+"<head>\n"+'<meta charset="utf-8">\n'+"<title>"}${e}</title>\n`+`</head>\n`+`<body>\n`+`<pre>${t}</pre>\n`+`</body>\n`+`</html>\n`}const h=/^ *bytes/i;function wrapper(e){return async function middleware(t,r,m){const y=e.options.methods||["GET","HEAD"];r.locals=r.locals||{};if(t.method&&!y.includes(t.method)){await goNext();return}d(e,processRequest,t);async function goNext(){if(!e.options.serverSideRender){return m()}return new Promise((n=>{d(e,(()=>{r.locals.webpack={devMiddleware:e};n(m())}),t)}))}async function processRequest(){const d=s(e,t.url);if(!d){await goNext();return}let{headers:m}=e.options;if(typeof m==="function"){m=m(t,r,e)}const y=[];if(typeof m!=="undefined"){if(!Array.isArray(m)){for(const e in m){y.push({key:e,value:m[e]})}m=y}m.forEach((e=>{f(r,e.key,e.value)}))}if(!u(r,"Content-Type")){const e=i.contentType(n.extname(d));if(e){f(r,"Content-Type",e)}}if(!u(r,"Accept-Ranges")){f(r,"Accept-Ranges","bytes")}const v=c(t,"range");let g;let _;if(v&&h.test(v)){const n=await new Promise((t=>{e.outputFileSystem.lstat(d,((r,n)=>{if(r){e.logger.error(r);return}t(n.size)}))}));const i=o(n,v,{combine:true});if(i===-1){const i="Unsatisfiable range for 'Range' header.";e.logger.error(i);const o=a(r);for(let e=0;e<o.length;e++){r.removeHeader(o[e])}l(r,416);f(r,"Content-Range",getValueContentRangeHeader("bytes",n));f(r,"Content-Type","text/html; charset=utf-8");const s=createHtmlDocument(416,`Error: ${i}`);const c=Buffer.byteLength(s);f(r,"Content-Length",Buffer.byteLength(s));p(t,r,s,c);return}else if(i===-2){e.logger.error("A malformed 'Range' header was provided. A regular response will be sent for this request.")}else if(i.length>1){e.logger.error("A 'Range' header with multiple ranges was provided. Multiple ranges are not supported, so a regular response will be sent for this request.")}if(i!==-2&&i.length===1){l(r,206);f(r,"Content-Range",getValueContentRangeHeader("bytes",n,i[0]));[{start:g,end:_}]=i}}const b=typeof e.outputFileSystem.createReadStream==="function";let S;let w;try{if(typeof g!=="undefined"&&typeof _!=="undefined"&&b){S=e.outputFileSystem.createReadStream(d,{start:g,end:_});w=_-g+1}else{S=e.outputFileSystem.readFileSync(d);({byteLength:w}=S)}}catch(e){await goNext();return}p(t,r,S,w)}}}e.exports=wrapper},350:e=>{"use strict";function getHeaderNames(e){if(typeof e.getHeaderNames!=="function"){return Object.keys(e._headers||{})}return e.getHeaderNames()}function getHeaderFromRequest(e,t){if(typeof e.get==="function"){return e.get(t)}return e.headers[t]}function getHeaderFromResponse(e,t){if(typeof e.get==="function"){return e.get(t)}return e.getHeader(t)}function setHeaderForResponse(e,t,r){if(typeof e.set==="function"){e.set(t,typeof r==="number"?String(r):r);return}e.setHeader(t,r)}function setStatusCode(e,t){if(typeof e.status==="function"){e.status(t);return}e.statusCode=t}function send(e,t,r,n){if(typeof r.pipe==="function"){setHeaderForResponse(t,"Content-Length",n);if(e.method==="HEAD"){t.end();return}r.pipe(t);return}if(typeof t.send==="function"){t.send(r);return}t.setHeader("Content-Length",n);if(e.method==="HEAD"){t.end()}else{t.end(r)}}e.exports={getHeaderNames:getHeaderNames,getHeaderFromRequest:getHeaderFromRequest,getHeaderFromResponse:getHeaderFromResponse,setHeaderForResponse:setHeaderForResponse,setStatusCode:setStatusCode,send:send}},120:(e,t,r)=>{"use strict";const n=r(17);const{parse:i}=r(310);const o=r(477);const s=r(319);const a=new WeakMap;const mem=(e,{cache:t=new Map}={})=>{const memoized=(...r)=>{const[n]=r;const i=t.get(n);if(i){return i.data}const o=e.apply(void 0,r);t.set(n,{data:o});return o};a.set(memoized,t);return memoized};const c=mem(i);function getFilenameFromUrl(e,t){const{options:r}=e;const i=s(e);let a;let u;try{u=c(t,false,true)}catch(e){return}for(const{publicPath:t,outputPath:s}of i){let i;let f;try{f=c(t!=="auto"&&t?t:"/",false,true)}catch(e){continue}if(u.pathname&&u.pathname.startsWith(f.pathname)){i=s;const t=u.pathname.slice(f.pathname.length);if(t){i=n.join(s,o.unescape(t))}let c;try{c=e.outputFileSystem.statSync(i)}catch(e){continue}if(c.isFile()){a=i;break}else if(c.isDirectory()&&(typeof r.index==="undefined"||r.index)){const t=typeof r.index==="undefined"||typeof r.index==="boolean"?"index.html":r.index;i=n.join(i,t);try{c=e.outputFileSystem.statSync(i)}catch(e){continue}if(c.isFile()){a=i;break}}}}return a}e.exports=getFilenameFromUrl},319:e=>{"use strict";function getPaths(e){const{stats:t,options:r}=e;const n=t.stats?t.stats:[t];const i=[];for(const{compilation:e}of n){const t=e.getPath(e.outputOptions.path||"");const n=r.publicPath?e.getPath(r.publicPath):e.outputOptions.publicPath?e.getPath(e.outputOptions.publicPath):"";i.push({outputPath:t,publicPath:n})}return i}e.exports=getPaths},634:e=>{"use strict";function ready(e,t,r){if(e.state){t(e.stats);return}const n=r&&r.url||t.name;e.logger.info(`wait until bundle finished${n?`: ${n}`:""}`);e.callbacks.push(t)}e.exports=ready},51:(e,t,r)=>{"use strict";const{isColorSupported:n}=r(558);function setupHooks(e){function invalid(){if(e.state){e.logger.log("Compilation starting...")}e.state=false;e.stats=undefined}function normalizeStatsOptions(e){if(typeof e==="undefined"){e={preset:"normal"}}else if(typeof e==="boolean"){e=e?{preset:"normal"}:{preset:"none"}}else if(typeof e==="string"){e={preset:e}}return e}function done(t){e.state=true;e.stats=t;process.nextTick((()=>{const{compiler:r,logger:i,options:o,state:s,callbacks:a}=e;if(!s){return}i.log("Compilation finished");const c=Boolean(r.compilers);let u;if(typeof o.stats!=="undefined"){u=c?{children:r.compilers.map((()=>o.stats))}:o.stats}else{u=c?{children:r.compilers.map((e=>e.options.stats))}:r.options.stats}if(c){u.children=u.children.map((e=>{e=normalizeStatsOptions(e);if(typeof e.colors==="undefined"){e.colors=n}return e}))}else{u=normalizeStatsOptions(u);if(typeof u.colors==="undefined"){u.colors=n}}const f=t.toString(u);if(f){console.log(f)}e.callbacks=[];a.forEach((e=>{e(t)}))}))}e.compiler.hooks.watchRun.tap("webpack-dev-middleware",invalid);e.compiler.hooks.invalid.tap("webpack-dev-middleware",invalid);e.compiler.hooks.done.tap("webpack-dev-middleware",done)}e.exports=setupHooks},186:(e,t,r)=>{"use strict";const n=r(949);function setupOutputFileSystem(e){let t;if(e.options.outputFileSystem){const{outputFileSystem:r}=e.options;t=r}else{t=n.createFsFromVolume(new n.Volume)}const r=e.compiler.compilers||[e.compiler];for(const e of r){e.outputFileSystem=t}e.outputFileSystem=t}e.exports=setupOutputFileSystem},54:(e,t,r)=>{"use strict";const n=r(147);const i=r(17);function setupWriteToDisk(e){const t=e.compiler.compilers||[e.compiler];for(const r of t){r.hooks.emit.tap("DevMiddleware",(t=>{if(r.hasWebpackDevMiddlewareAssetEmittedCallback){return}r.hooks.assetEmitted.tapAsync("DevMiddleware",((o,s,a)=>{let c;let u;if(s.compilation){({targetPath:c,content:u}=s)}else{let e=o;const n=e.indexOf("?");if(n>=0){e=e.slice(0,n)}let{outputPath:a}=r;a=t.getPath(a,{});u=s;c=i.join(a,e)}const{writeToDisk:f}=e.options;const l=f&&typeof f==="function"?f(c):true;if(!l){return a()}const p=i.dirname(c);const d=r.options.name?`Child "${r.options.name}": `:"";return n.mkdir(p,{recursive:true},(t=>{if(t){e.logger.error(`${d}Unable to write "${p}" directory to disk:\n${t}`);return a(t)}return n.writeFile(c,u,(t=>{if(t){e.logger.error(`${d}Unable to write "${c}" asset to disk:\n${t}`);return a(t)}e.logger.log(`${d}Asset written to disk: "${c}"`);return a()}))}))}));r.hasWebpackDevMiddlewareAssetEmittedCallback=true}))}}e.exports=setupWriteToDisk},989:e=>{"use strict";e.exports=require("../mime-types")},739:e=>{"use strict";e.exports=require("../schema-utils3")},491:e=>{"use strict";e.exports=require("assert")},300:e=>{"use strict";e.exports=require("buffer")},361:e=>{"use strict";e.exports=require("events")},147:e=>{"use strict";e.exports=require("fs")},17:e=>{"use strict";e.exports=require("path")},282:e=>{"use strict";e.exports=require("process")},477:e=>{"use strict";e.exports=require("querystring")},781:e=>{"use strict";e.exports=require("stream")},224:e=>{"use strict";e.exports=require("tty")},310:e=>{"use strict";e.exports=require("url")},837:e=>{"use strict";e.exports=require("util")},558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(224);function _interopNamespace(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach((function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}}))}t["default"]=e;return Object.freeze(t)}var i=_interopNamespace(n);const{env:o={},argv:s=[],platform:a=""}=typeof process==="undefined"?{}:process;const c="NO_COLOR"in o||s.includes("--no-color");const u="FORCE_COLOR"in o||s.includes("--color");const f=a==="win32";const l=o.TERM==="dumb";const p=i&&i.isatty&&i.isatty(1)&&o.TERM&&!l;const d="CI"in o&&("GITHUB_ACTIONS"in o||"GITLAB_CI"in o||"CIRCLECI"in o);const h=!c&&(u||f&&!l||p||d);const replaceClose=(e,t,r,n,i=t.substring(0,e)+n,o=t.substring(e+r.length),s=o.indexOf(r))=>i+(s<0?o:replaceClose(s,o,r,n));const clearBleed=(e,t,r,n,i)=>e<0?r+t+n:r+replaceClose(e,t,n,i)+n;const filterEmpty=(e,t,r=e,n=e.length+1)=>i=>i||!(i===""||i===undefined)?clearBleed((""+i).indexOf(t,n),i,e,t,r):"";const init=(e,t,r)=>filterEmpty(`[${e}m`,`[${t}m`,r);const m={reset:init(0,0),bold:init(1,22,""),dim:init(2,22,""),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49),blackBright:init(90,39),redBright:init(91,39),greenBright:init(92,39),yellowBright:init(93,39),blueBright:init(94,39),magentaBright:init(95,39),cyanBright:init(96,39),whiteBright:init(97,39),bgBlackBright:init(100,49),bgRedBright:init(101,49),bgGreenBright:init(102,49),bgYellowBright:init(103,49),bgBlueBright:init(104,49),bgMagentaBright:init(105,49),bgCyanBright:init(106,49),bgWhiteBright:init(107,49)};const createColors=({useColor:e=h}={})=>e?m:Object.keys(m).reduce(((e,t)=>({...e,[t]:String})),{});const{reset:y,bold:v,dim:g,italic:_,underline:b,inverse:S,hidden:w,strikethrough:F,black:T,red:R,green:k,yellow:N,blue:O,magenta:B,cyan:I,white:A,gray:C,bgBlack:L,bgRed:V,bgGreen:P,bgYellow:D,bgBlue:x,bgMagenta:U,bgCyan:M,bgWhite:W,blackBright:H,redBright:j,greenBright:G,yellowBright:K,blueBright:Y,magentaBright:q,cyanBright:$,whiteBright:J,bgBlackBright:X,bgRedBright:z,bgGreenBright:Z,bgYellowBright:Q,bgBlueBright:ee,bgMagentaBright:te,bgCyanBright:re,bgWhiteBright:ne}=createColors();t.bgBlack=L;t.bgBlackBright=X;t.bgBlue=x;t.bgBlueBright=ee;t.bgCyan=M;t.bgCyanBright=re;t.bgGreen=P;t.bgGreenBright=Z;t.bgMagenta=U;t.bgMagentaBright=te;t.bgRed=V;t.bgRedBright=z;t.bgWhite=W;t.bgWhiteBright=ne;t.bgYellow=D;t.bgYellowBright=Q;t.black=T;t.blackBright=H;t.blue=O;t.blueBright=Y;t.bold=v;t.createColors=createColors;t.cyan=I;t.cyanBright=$;t.dim=g;t.gray=C;t.green=k;t.greenBright=G;t.hidden=w;t.inverse=S;t.isColorSupported=h;t.italic=_;t.magenta=B;t.magentaBright=q;t.red=R;t.redBright=j;t.reset=y;t.strikethrough=F;t.underline=b;t.white=A;t.whiteBright=J;t.yellow=N;t.yellowBright=K},30:e=>{"use strict";e.exports=JSON.parse('{"type":"object","properties":{"mimeTypes":{"description":"Allows a user to register custom mime types or extension mappings.","link":"https://github.com/webpack/webpack-dev-middleware#mimetypes","type":"object"},"writeToDisk":{"description":"Allows to write generated files on disk.","link":"https://github.com/webpack/webpack-dev-middleware#writetodisk","anyOf":[{"type":"boolean"},{"instanceof":"Function"}]},"methods":{"description":"Allows to pass the list of HTTP request methods accepted by the middleware.","link":"https://github.com/webpack/webpack-dev-middleware#methods","type":"array","items":{"type":"string","minLength":1}},"headers":{"anyOf":[{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"key":{"description":"key of header.","type":"string"},"value":{"description":"value of header.","type":"string"}}},"minItems":1},{"type":"object"},{"instanceof":"Function"}],"description":"Allows to pass custom HTTP headers on each request","link":"https://github.com/webpack/webpack-dev-middleware#headers"},"publicPath":{"description":"The `publicPath` specifies the public URL address of the output files when referenced in a browser.","link":"https://github.com/webpack/webpack-dev-middleware#publicpath","anyOf":[{"enum":["auto"]},{"type":"string"},{"instanceof":"Function"}]},"stats":{"description":"Stats options object or preset name.","link":"https://github.com/webpack/webpack-dev-middleware#stats","anyOf":[{"enum":["none","summary","errors-only","errors-warnings","minimal","normal","detailed","verbose"]},{"type":"boolean"},{"type":"object","additionalProperties":true}]},"serverSideRender":{"description":"Instructs the module to enable or disable the server-side rendering mode.","link":"https://github.com/webpack/webpack-dev-middleware#serversiderender","type":"boolean"},"outputFileSystem":{"description":"Set the default file system which will be used by webpack as primary destination of generated files.","link":"https://github.com/webpack/webpack-dev-middleware#outputfilesystem","type":"object"},"index":{"description":"Allows to serve an index of the directory.","link":"https://github.com/webpack/webpack-dev-middleware#index","anyOf":[{"type":"boolean"},{"type":"string","minLength":1}]}},"additionalProperties":false}')}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var i=t[r]={exports:{}};var o=true;try{e[r].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(553);module.exports=r})();
@@ -1,20 +0,0 @@
1
- Copyright JS Foundation and other contributors
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- 'Software'), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1 +0,0 @@
1
- {"name":"webpack-dev-middleware","author":"Tobias Koppers @sokra","version":"6.0.1","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"types/index.d.ts"}