@stencil/core 4.43.2 → 5.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/bin/stencil.mjs +2 -0
  2. package/dist/chunk-ClPoSABd.mjs +21 -0
  3. package/dist/client-DR9zhmKG.mjs +4449 -0
  4. package/dist/compiler/index.d.mts +187 -0
  5. package/dist/compiler/index.mjs +9 -0
  6. package/dist/compiler/utils/index.d.mts +3 -0
  7. package/dist/compiler/utils/index.mjs +5 -0
  8. package/dist/declarations/stencil-public-compiler.d.ts +4401 -0
  9. package/dist/declarations/stencil-public-compiler.js +53 -0
  10. package/dist/declarations/stencil-public-runtime.d.ts +1857 -0
  11. package/dist/index-Bxo2jCf6.d.mts +77 -0
  12. package/dist/index-szczUd2l.d.mts +6851 -0
  13. package/{internal/stencil-core/index.d.ts → dist/index.d.mts} +7 -3
  14. package/dist/index.mjs +4 -0
  15. package/dist/mock-doc.d.mts +1 -0
  16. package/dist/mock-doc.mjs +3 -0
  17. package/dist/node-sys-BGURUNOZ.mjs +1954 -0
  18. package/{internal → dist/runtime}/app-data/index.d.ts +11 -7
  19. package/dist/runtime/app-data/index.js +100 -0
  20. package/dist/runtime/app-globals/index.d.ts +5 -0
  21. package/dist/runtime/app-globals/index.js +6 -0
  22. package/dist/runtime/client/index.d.ts +2286 -0
  23. package/dist/runtime/client/index.js +4839 -0
  24. package/dist/runtime/index.d.ts +221 -0
  25. package/dist/runtime/index.js +4819 -0
  26. package/dist/runtime/server/index.d.mts +1277 -0
  27. package/dist/runtime/server/index.mjs +5376 -0
  28. package/dist/runtime/server/runner.d.mts +298 -0
  29. package/dist/runtime/server/runner.mjs +1976 -0
  30. package/dist/serialize-BJvhE9aQ.mjs +775 -0
  31. package/dist/stencil-private-Cgcr414u.d.ts +1893 -0
  32. package/dist/sys/node/index.d.mts +33 -0
  33. package/dist/sys/node/index.mjs +7 -0
  34. package/dist/sys/node/worker.d.mts +1 -0
  35. package/dist/sys/node/worker.mjs +60 -0
  36. package/dist/testing/index.d.mts +207 -0
  37. package/dist/testing/index.mjs +1188 -0
  38. package/dist/transpile-CJQcQEVa.mjs +21854 -0
  39. package/dist/validation-BdcPruW_.mjs +1451 -0
  40. package/package.json +88 -232
  41. package/bin/stencil +0 -57
  42. package/cli/config-flags.d.ts +0 -132
  43. package/cli/index.cjs +0 -5816
  44. package/cli/index.d.ts +0 -19
  45. package/cli/index.js +0 -5809
  46. package/cli/package.json +0 -14
  47. package/compiler/lib.d.ts +0 -22
  48. package/compiler/lib.decorators.d.ts +0 -384
  49. package/compiler/lib.decorators.legacy.d.ts +0 -22
  50. package/compiler/lib.dom.asynciterable.d.ts +0 -41
  51. package/compiler/lib.dom.d.ts +0 -29610
  52. package/compiler/lib.dom.iterable.d.ts +0 -493
  53. package/compiler/lib.es2015.collection.d.ts +0 -147
  54. package/compiler/lib.es2015.core.d.ts +0 -597
  55. package/compiler/lib.es2015.d.ts +0 -28
  56. package/compiler/lib.es2015.generator.d.ts +0 -77
  57. package/compiler/lib.es2015.iterable.d.ts +0 -605
  58. package/compiler/lib.es2015.promise.d.ts +0 -81
  59. package/compiler/lib.es2015.proxy.d.ts +0 -128
  60. package/compiler/lib.es2015.reflect.d.ts +0 -144
  61. package/compiler/lib.es2015.symbol.d.ts +0 -46
  62. package/compiler/lib.es2015.symbol.wellknown.d.ts +0 -326
  63. package/compiler/lib.es2016.array.include.d.ts +0 -116
  64. package/compiler/lib.es2016.d.ts +0 -21
  65. package/compiler/lib.es2016.full.d.ts +0 -23
  66. package/compiler/lib.es2016.intl.d.ts +0 -31
  67. package/compiler/lib.es2017.arraybuffer.d.ts +0 -21
  68. package/compiler/lib.es2017.d.ts +0 -26
  69. package/compiler/lib.es2017.date.d.ts +0 -31
  70. package/compiler/lib.es2017.full.d.ts +0 -23
  71. package/compiler/lib.es2017.intl.d.ts +0 -44
  72. package/compiler/lib.es2017.object.d.ts +0 -49
  73. package/compiler/lib.es2017.sharedmemory.d.ts +0 -135
  74. package/compiler/lib.es2017.string.d.ts +0 -45
  75. package/compiler/lib.es2017.typedarrays.d.ts +0 -53
  76. package/compiler/lib.es2018.asyncgenerator.d.ts +0 -77
  77. package/compiler/lib.es2018.asynciterable.d.ts +0 -53
  78. package/compiler/lib.es2018.d.ts +0 -24
  79. package/compiler/lib.es2018.full.d.ts +0 -24
  80. package/compiler/lib.es2018.intl.d.ts +0 -83
  81. package/compiler/lib.es2018.promise.d.ts +0 -30
  82. package/compiler/lib.es2018.regexp.d.ts +0 -37
  83. package/compiler/lib.es2019.array.d.ts +0 -79
  84. package/compiler/lib.es2019.d.ts +0 -24
  85. package/compiler/lib.es2019.full.d.ts +0 -24
  86. package/compiler/lib.es2019.intl.d.ts +0 -23
  87. package/compiler/lib.es2019.object.d.ts +0 -33
  88. package/compiler/lib.es2019.string.d.ts +0 -37
  89. package/compiler/lib.es2019.symbol.d.ts +0 -24
  90. package/compiler/lib.es2020.bigint.d.ts +0 -765
  91. package/compiler/lib.es2020.d.ts +0 -27
  92. package/compiler/lib.es2020.date.d.ts +0 -42
  93. package/compiler/lib.es2020.full.d.ts +0 -24
  94. package/compiler/lib.es2020.intl.d.ts +0 -474
  95. package/compiler/lib.es2020.number.d.ts +0 -28
  96. package/compiler/lib.es2020.promise.d.ts +0 -47
  97. package/compiler/lib.es2020.sharedmemory.d.ts +0 -99
  98. package/compiler/lib.es2020.string.d.ts +0 -44
  99. package/compiler/lib.es2020.symbol.wellknown.d.ts +0 -41
  100. package/compiler/lib.es2021.d.ts +0 -23
  101. package/compiler/lib.es2021.full.d.ts +0 -24
  102. package/compiler/lib.es2021.intl.d.ts +0 -166
  103. package/compiler/lib.es2021.promise.d.ts +0 -48
  104. package/compiler/lib.es2021.string.d.ts +0 -33
  105. package/compiler/lib.es2021.weakref.d.ts +0 -78
  106. package/compiler/lib.es2022.array.d.ts +0 -121
  107. package/compiler/lib.es2022.d.ts +0 -25
  108. package/compiler/lib.es2022.error.d.ts +0 -75
  109. package/compiler/lib.es2022.full.d.ts +0 -24
  110. package/compiler/lib.es2022.intl.d.ts +0 -121
  111. package/compiler/lib.es2022.object.d.ts +0 -26
  112. package/compiler/lib.es2022.regexp.d.ts +0 -39
  113. package/compiler/lib.es2022.string.d.ts +0 -25
  114. package/compiler/lib.es2023.array.d.ts +0 -924
  115. package/compiler/lib.es2023.collection.d.ts +0 -21
  116. package/compiler/lib.es2023.d.ts +0 -22
  117. package/compiler/lib.es2023.full.d.ts +0 -24
  118. package/compiler/lib.es2023.intl.d.ts +0 -56
  119. package/compiler/lib.es2024.arraybuffer.d.ts +0 -65
  120. package/compiler/lib.es2024.collection.d.ts +0 -29
  121. package/compiler/lib.es2024.d.ts +0 -26
  122. package/compiler/lib.es2024.full.d.ts +0 -24
  123. package/compiler/lib.es2024.object.d.ts +0 -29
  124. package/compiler/lib.es2024.promise.d.ts +0 -35
  125. package/compiler/lib.es2024.regexp.d.ts +0 -25
  126. package/compiler/lib.es2024.sharedmemory.d.ts +0 -68
  127. package/compiler/lib.es2024.string.d.ts +0 -29
  128. package/compiler/lib.es5.d.ts +0 -4594
  129. package/compiler/lib.es6.d.ts +0 -23
  130. package/compiler/lib.esnext.array.d.ts +0 -35
  131. package/compiler/lib.esnext.collection.d.ts +0 -96
  132. package/compiler/lib.esnext.d.ts +0 -27
  133. package/compiler/lib.esnext.decorators.d.ts +0 -28
  134. package/compiler/lib.esnext.disposable.d.ts +0 -193
  135. package/compiler/lib.esnext.float16.d.ts +0 -443
  136. package/compiler/lib.esnext.full.d.ts +0 -24
  137. package/compiler/lib.esnext.intl.d.ts +0 -21
  138. package/compiler/lib.esnext.iterator.d.ts +0 -148
  139. package/compiler/lib.esnext.promise.d.ts +0 -34
  140. package/compiler/lib.scripthost.d.ts +0 -322
  141. package/compiler/lib.webworker.asynciterable.d.ts +0 -41
  142. package/compiler/lib.webworker.d.ts +0 -9894
  143. package/compiler/lib.webworker.importscripts.d.ts +0 -23
  144. package/compiler/lib.webworker.iterable.d.ts +0 -287
  145. package/compiler/package.json +0 -8
  146. package/compiler/stencil.d.ts +0 -73
  147. package/compiler/stencil.js +0 -287816
  148. package/compiler/sys/in-memory-fs.d.ts +0 -227
  149. package/compiler/transpile.d.ts +0 -32
  150. package/dev-server/client/app-error.d.ts +0 -20
  151. package/dev-server/client/events.d.ts +0 -6
  152. package/dev-server/client/hmr-components.d.ts +0 -12
  153. package/dev-server/client/hmr-external-styles.d.ts +0 -1
  154. package/dev-server/client/hmr-images.d.ts +0 -1
  155. package/dev-server/client/hmr-inline-styles.d.ts +0 -1
  156. package/dev-server/client/hmr-util.d.ts +0 -39
  157. package/dev-server/client/hmr-window.d.ts +0 -10
  158. package/dev-server/client/index.d.ts +0 -6
  159. package/dev-server/client/index.js +0 -793
  160. package/dev-server/client/logger.d.ts +0 -6
  161. package/dev-server/client/package.json +0 -8
  162. package/dev-server/client/progress.d.ts +0 -3
  163. package/dev-server/client/status.d.ts +0 -4
  164. package/dev-server/client/test/hmr-util.spec.d.ts +0 -1
  165. package/dev-server/client/test/status.spec.d.ts +0 -1
  166. package/dev-server/connector.html +0 -6
  167. package/dev-server/index.d.ts +0 -3
  168. package/dev-server/index.js +0 -247
  169. package/dev-server/package.json +0 -8
  170. package/dev-server/server-process.js +0 -12095
  171. package/dev-server/server-worker-thread.js +0 -39
  172. package/dev-server/static/favicon.ico +0 -0
  173. package/dev-server/templates/directory-index.html +0 -176
  174. package/dev-server/templates/initial-load.html +0 -168
  175. package/dev-server/visualstudio.vbs +0 -82
  176. package/dev-server/xdg-open +0 -1066
  177. package/internal/app-data/index.cjs +0 -119
  178. package/internal/app-data/index.js +0 -92
  179. package/internal/app-data/package.json +0 -15
  180. package/internal/app-globals/index.d.ts +0 -2
  181. package/internal/app-globals/index.js +0 -14
  182. package/internal/app-globals/package.json +0 -14
  183. package/internal/child_process.d.ts +0 -7
  184. package/internal/client/index.js +0 -4736
  185. package/internal/client/package.json +0 -10
  186. package/internal/client/patch-browser.js +0 -45
  187. package/internal/client/polyfills/core-js.js +0 -11
  188. package/internal/client/polyfills/dom.js +0 -79
  189. package/internal/client/polyfills/es5-html-element.js +0 -1
  190. package/internal/client/polyfills/index.js +0 -34
  191. package/internal/client/polyfills/system.js +0 -6
  192. package/internal/client/shadow-css.js +0 -414
  193. package/internal/hydrate/index.js +0 -6671
  194. package/internal/hydrate/package.json +0 -7
  195. package/internal/hydrate/runner.d.ts +0 -287
  196. package/internal/hydrate/runner.js +0 -17950
  197. package/internal/index.d.ts +0 -4
  198. package/internal/index.js +0 -2
  199. package/internal/package.json +0 -9
  200. package/internal/stencil-core/index.cjs +0 -1
  201. package/internal/stencil-core/index.js +0 -18
  202. package/internal/stencil-core/jsx-dev-runtime.cjs +0 -7
  203. package/internal/stencil-core/jsx-dev-runtime.d.ts +0 -41
  204. package/internal/stencil-core/jsx-dev-runtime.js +0 -2
  205. package/internal/stencil-core/jsx-runtime.cjs +0 -8
  206. package/internal/stencil-core/jsx-runtime.d.ts +0 -40
  207. package/internal/stencil-core/jsx-runtime.js +0 -2
  208. package/internal/stencil-private.d.ts +0 -2549
  209. package/internal/stencil-public-compiler.d.ts +0 -2867
  210. package/internal/stencil-public-runtime.d.ts +0 -1860
  211. package/internal/testing/index.js +0 -6528
  212. package/internal/testing/jsx-dev-runtime.d.ts +0 -2
  213. package/internal/testing/jsx-dev-runtime.js +0 -8
  214. package/internal/testing/jsx-runtime.d.ts +0 -2
  215. package/internal/testing/jsx-runtime.js +0 -9
  216. package/internal/testing/package.json +0 -7
  217. package/internal/utils/index.d.ts +0 -1
  218. package/internal/utils/result.d.ts +0 -112
  219. package/mock-doc/index.cjs +0 -10165
  220. package/mock-doc/index.d.ts +0 -1172
  221. package/mock-doc/index.js +0 -10144
  222. package/mock-doc/package.json +0 -15
  223. package/readme.md +0 -94
  224. package/screenshot/compare/assets/favicon.ico +0 -0
  225. package/screenshot/compare/assets/logo.png +0 -0
  226. package/screenshot/compare/build/app.css +0 -1
  227. package/screenshot/compare/build/app.esm.js +0 -1
  228. package/screenshot/compare/build/app.js +0 -33
  229. package/screenshot/compare/build/p-081b0641.js +0 -1
  230. package/screenshot/compare/build/p-227a1e18.entry.js +0 -1
  231. package/screenshot/compare/build/p-2c298727.entry.js +0 -1
  232. package/screenshot/compare/build/p-5479268c.entry.js +0 -1
  233. package/screenshot/compare/build/p-573ec8a4.entry.js +0 -1
  234. package/screenshot/compare/build/p-6ba08604.entry.js +0 -1
  235. package/screenshot/compare/build/p-6bc63295.entry.js +0 -1
  236. package/screenshot/compare/build/p-7a3759fd.entry.js +0 -1
  237. package/screenshot/compare/build/p-7b4e3ba7.js +0 -1
  238. package/screenshot/compare/build/p-988eb362.css +0 -1
  239. package/screenshot/compare/build/p-9b6a9315.js +0 -1
  240. package/screenshot/compare/build/p-b4cc611c.entry.js +0 -1
  241. package/screenshot/compare/build/p-d1bf53f5.entry.js +0 -1
  242. package/screenshot/compare/build/p-e2efe0df.js +0 -1
  243. package/screenshot/compare/build/p-e8ca6d97.entry.js +0 -1
  244. package/screenshot/compare/build/p-ec2f13e0.entry.js +0 -1
  245. package/screenshot/compare/build/p-f0b99977.entry.js +0 -1
  246. package/screenshot/compare/build/p-f4745c2f.entry.js +0 -1
  247. package/screenshot/compare/build/p-fbbae598.js +0 -1
  248. package/screenshot/compare/host.config.json +0 -15
  249. package/screenshot/compare/index.html +0 -1
  250. package/screenshot/compare/manifest.json +0 -13
  251. package/screenshot/connector-base.d.ts +0 -42
  252. package/screenshot/connector-local.d.ts +0 -7
  253. package/screenshot/connector.js +0 -2
  254. package/screenshot/index.d.ts +0 -3
  255. package/screenshot/index.js +0 -2433
  256. package/screenshot/local-connector.js +0 -2
  257. package/screenshot/package.json +0 -15
  258. package/screenshot/pixel-match.d.ts +0 -1
  259. package/screenshot/pixel-match.js +0 -2315
  260. package/screenshot/screenshot-compare.d.ts +0 -20
  261. package/screenshot/screenshot-fs.d.ts +0 -14
  262. package/sys/node/460.node-fetch.js +0 -451
  263. package/sys/node/autoprefixer.js +0 -9
  264. package/sys/node/glob.js +0 -1
  265. package/sys/node/graceful-fs.js +0 -1
  266. package/sys/node/index.d.ts +0 -39
  267. package/sys/node/index.js +0 -64
  268. package/sys/node/node-fetch.js +0 -12
  269. package/sys/node/package.json +0 -8
  270. package/sys/node/prompts.js +0 -1
  271. package/sys/node/worker.js +0 -4
  272. package/testing/index.d.ts +0 -9
  273. package/testing/index.js +0 -13064
  274. package/testing/jest/jest-27-and-under/jest-config.d.ts +0 -16
  275. package/testing/jest/jest-27-and-under/jest-environment.d.ts +0 -2
  276. package/testing/jest/jest-27-and-under/jest-facade.d.ts +0 -155
  277. package/testing/jest/jest-27-and-under/jest-preprocessor.d.ts +0 -59
  278. package/testing/jest/jest-27-and-under/jest-preset.d.ts +0 -3
  279. package/testing/jest/jest-27-and-under/jest-runner.d.ts +0 -11
  280. package/testing/jest/jest-27-and-under/jest-screenshot.d.ts +0 -2
  281. package/testing/jest/jest-27-and-under/jest-serializer.d.ts +0 -4
  282. package/testing/jest/jest-27-and-under/jest-setup-test-framework.d.ts +0 -9
  283. package/testing/jest/jest-27-and-under/matchers/attributes.d.ts +0 -14
  284. package/testing/jest/jest-27-and-under/matchers/class-list.d.ts +0 -12
  285. package/testing/jest/jest-27-and-under/matchers/events.d.ts +0 -25
  286. package/testing/jest/jest-27-and-under/matchers/html.d.ts +0 -13
  287. package/testing/jest/jest-27-and-under/matchers/index.d.ts +0 -24
  288. package/testing/jest/jest-27-and-under/matchers/screenshot.d.ts +0 -5
  289. package/testing/jest/jest-27-and-under/matchers/text.d.ts +0 -4
  290. package/testing/jest/jest-27-and-under/test/jest-config.spec.d.ts +0 -1
  291. package/testing/jest/jest-27-and-under/test/jest-preprocessor.spec.d.ts +0 -1
  292. package/testing/jest/jest-27-and-under/test/jest-runner.spec.d.ts +0 -1
  293. package/testing/jest/jest-27-and-under/test/jest-serializer.spec.d.ts +0 -1
  294. package/testing/jest/jest-27-and-under/test/jest-setup-test-framework.spec.d.ts +0 -1
  295. package/testing/jest/jest-28/jest-config.d.ts +0 -16
  296. package/testing/jest/jest-28/jest-environment.d.ts +0 -2
  297. package/testing/jest/jest-28/jest-facade.d.ts +0 -134
  298. package/testing/jest/jest-28/jest-preprocessor.d.ts +0 -35
  299. package/testing/jest/jest-28/jest-preset.d.ts +0 -3
  300. package/testing/jest/jest-28/jest-runner.d.ts +0 -11
  301. package/testing/jest/jest-28/jest-screenshot.d.ts +0 -2
  302. package/testing/jest/jest-28/jest-serializer.d.ts +0 -4
  303. package/testing/jest/jest-28/jest-setup-test-framework.d.ts +0 -9
  304. package/testing/jest/jest-28/matchers/attributes.d.ts +0 -14
  305. package/testing/jest/jest-28/matchers/class-list.d.ts +0 -12
  306. package/testing/jest/jest-28/matchers/events.d.ts +0 -25
  307. package/testing/jest/jest-28/matchers/html.d.ts +0 -13
  308. package/testing/jest/jest-28/matchers/index.d.ts +0 -24
  309. package/testing/jest/jest-28/matchers/screenshot.d.ts +0 -5
  310. package/testing/jest/jest-28/matchers/text.d.ts +0 -4
  311. package/testing/jest/jest-28/test/jest-config.spec.d.ts +0 -1
  312. package/testing/jest/jest-28/test/jest-preprocessor.spec.d.ts +0 -1
  313. package/testing/jest/jest-28/test/jest-runner.spec.d.ts +0 -1
  314. package/testing/jest/jest-28/test/jest-serializer.spec.d.ts +0 -1
  315. package/testing/jest/jest-28/test/jest-setup-test-framework.spec.d.ts +0 -1
  316. package/testing/jest/jest-29/jest-config.d.ts +0 -16
  317. package/testing/jest/jest-29/jest-environment.d.ts +0 -2
  318. package/testing/jest/jest-29/jest-facade.d.ts +0 -136
  319. package/testing/jest/jest-29/jest-preprocessor.d.ts +0 -35
  320. package/testing/jest/jest-29/jest-preset.d.ts +0 -3
  321. package/testing/jest/jest-29/jest-runner.d.ts +0 -11
  322. package/testing/jest/jest-29/jest-screenshot.d.ts +0 -2
  323. package/testing/jest/jest-29/jest-serializer.d.ts +0 -4
  324. package/testing/jest/jest-29/jest-setup-test-framework.d.ts +0 -9
  325. package/testing/jest/jest-29/matchers/attributes.d.ts +0 -14
  326. package/testing/jest/jest-29/matchers/class-list.d.ts +0 -12
  327. package/testing/jest/jest-29/matchers/events.d.ts +0 -25
  328. package/testing/jest/jest-29/matchers/html.d.ts +0 -13
  329. package/testing/jest/jest-29/matchers/index.d.ts +0 -24
  330. package/testing/jest/jest-29/matchers/screenshot.d.ts +0 -5
  331. package/testing/jest/jest-29/matchers/text.d.ts +0 -4
  332. package/testing/jest/jest-29/test/jest-config.spec.d.ts +0 -1
  333. package/testing/jest/jest-29/test/jest-preprocessor.spec.d.ts +0 -1
  334. package/testing/jest/jest-29/test/jest-runner.spec.d.ts +0 -1
  335. package/testing/jest/jest-29/test/jest-serializer.spec.d.ts +0 -1
  336. package/testing/jest/jest-29/test/jest-setup-test-framework.spec.d.ts +0 -1
  337. package/testing/jest/jest-apis.d.ts +0 -86
  338. package/testing/jest/jest-facade.d.ts +0 -74
  339. package/testing/jest/jest-stencil-connector.d.ts +0 -65
  340. package/testing/jest/test/jest-stencil-connector.spec.d.ts +0 -1
  341. package/testing/jest-environment.js +0 -3
  342. package/testing/jest-preprocessor.js +0 -3
  343. package/testing/jest-preset.js +0 -2
  344. package/testing/jest-runner.js +0 -3
  345. package/testing/jest-setuptestframework.js +0 -3
  346. package/testing/mock-fetch.d.ts +0 -11
  347. package/testing/mocks.d.ts +0 -56
  348. package/testing/package.json +0 -8
  349. package/testing/puppeteer/index.d.ts +0 -2
  350. package/testing/puppeteer/puppeteer-browser.d.ts +0 -6
  351. package/testing/puppeteer/puppeteer-declarations.d.ts +0 -414
  352. package/testing/puppeteer/puppeteer-element.d.ts +0 -67
  353. package/testing/puppeteer/puppeteer-emulate.d.ts +0 -2
  354. package/testing/puppeteer/puppeteer-events.d.ts +0 -21
  355. package/testing/puppeteer/puppeteer-page.d.ts +0 -2
  356. package/testing/puppeteer/puppeteer-screenshot.d.ts +0 -27
  357. package/testing/puppeteer/test/puppeteer-screenshot.spec.d.ts +0 -1
  358. package/testing/reset-build-conditionals.d.ts +0 -12
  359. package/testing/spec-page.d.ts +0 -7
  360. package/testing/test/testing-utils.spec.d.ts +0 -1
  361. package/testing/test-transpile.d.ts +0 -2
  362. package/testing/testing-logger.d.ts +0 -26
  363. package/testing/testing-sys.d.ts +0 -6
  364. package/testing/testing-utils.d.ts +0 -80
  365. package/testing/testing.d.ts +0 -2
  366. /package/{internal → dist/declarations}/stencil-ext-modules.d.ts +0 -0
  367. /package/{internal → dist/declarations}/stencil-public-docs.d.ts +0 -0
  368. /package/{screenshot/compare/build/index.esm.js → dist/declarations/stencil-public-runtime.js} +0 -0
package/sys/node/glob.js DELETED
@@ -1 +0,0 @@
1
- (()=>{var t={24(t){"use strict";t.exports=require("fs")},46(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;const i=s(722);e.hasMagic=(t,e={})=>{Array.isArray(t)||(t=[t]);for(const s of t)if(new i.Minimatch(s,e).hasMagic())return!0;return!1}},75(t){"use strict";t.exports=require("stream")},96(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;const s="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i=new Set,r="object"==typeof process&&process?process:{},n=(t,e,s,i)=>{"function"==typeof r.emitWarning?r.emitWarning(t,e,s,i):console.error(`[${s}] ${e}: ${t}`)};let o=globalThis.AbortController,h=globalThis.AbortSignal;if(void 0===o){h=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},o=class{constructor(){e()}signal=new h;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==r.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,n("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const a=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),l=t=>a(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?c:null:null;class c extends Array{constructor(t){super(t),this.fill(0)}}class d{heap;length;static#t=!1;static create(t){const e=l(t);if(!e)return[];d.#t=!0;const s=new d(t,e);return d.#t=!1,s}constructor(t,e){if(!d.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class p{#e;#s;#i;#r;#n;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#h;#a;#l;#c;#d;#p;#u;#f;#g;#m;#y;#w;#b;#v;#S;#k;#x;static unsafeExposeInternals(t){return{starts:t.#b,ttls:t.#v,sizes:t.#w,keyMap:t.#l,keyList:t.#c,valList:t.#d,next:t.#p,prev:t.#u,get head(){return t.#f},get tail(){return t.#g},free:t.#m,isBackgroundFetch:e=>t.#E(e),backgroundFetch:(e,s,i,r)=>t.#L(e,s,i,r),moveToTail:e=>t.#T(e),indexes:e=>t.#C(e),rindexes:e=>t.#M(e),isStale:e=>t.#A(e)}}get max(){return this.#e}get maxSize(){return this.#s}get calculatedSize(){return this.#a}get size(){return this.#h}get fetchMethod(){return this.#n}get memoMethod(){return this.#o}get dispose(){return this.#i}get disposeAfter(){return this.#r}constructor(t){const{max:e=0,ttl:s,ttlResolution:r=1,ttlAutopurge:o,updateAgeOnGet:h,updateAgeOnHas:c,allowStale:u,dispose:f,disposeAfter:g,noDisposeOnSet:m,noUpdateTTL:y,maxSize:w=0,maxEntrySize:b=0,sizeCalculation:v,fetchMethod:S,memoMethod:k,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:E,allowStaleOnFetchRejection:L,allowStaleOnFetchAbort:T,ignoreFetchAbort:C}=t;if(0!==e&&!a(e))throw new TypeError("max option must be a nonnegative integer");const M=e?l(e):Array;if(!M)throw new Error("invalid max value: "+e);if(this.#e=e,this.#s=w,this.maxEntrySize=b||this.#s,this.sizeCalculation=v,this.sizeCalculation){if(!this.#s&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==k&&"function"!=typeof k)throw new TypeError("memoMethod must be a function if defined");if(this.#o=k,void 0!==S&&"function"!=typeof S)throw new TypeError("fetchMethod must be a function if specified");if(this.#n=S,this.#k=!!S,this.#l=new Map,this.#c=new Array(e).fill(void 0),this.#d=new Array(e).fill(void 0),this.#p=new M(e),this.#u=new M(e),this.#f=0,this.#g=0,this.#m=d.create(e),this.#h=0,this.#a=0,"function"==typeof f&&(this.#i=f),"function"==typeof g?(this.#r=g,this.#y=[]):(this.#r=void 0,this.#y=void 0),this.#S=!!this.#i,this.#x=!!this.#r,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!y,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!L,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!C,0!==this.maxEntrySize){if(0!==this.#s&&!a(this.#s))throw new TypeError("maxSize must be a positive integer if specified");if(!a(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!u,this.noDeleteOnStaleGet=!!E,this.updateAgeOnGet=!!h,this.updateAgeOnHas=!!c,this.ttlResolution=a(r)||0===r?r:1,this.ttlAutopurge=!!o,this.ttl=s||0,this.ttl){if(!a(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#P()}if(0===this.#e&&0===this.ttl&&0===this.#s)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#s){const t="LRU_CACHE_UNBOUNDED";if((t=>!i.has(t))(t)){i.add(t);n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,p)}}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#P(){const t=new c(this.#e),e=new c(this.#e);this.#v=t,this.#b=e,this.#R=(i,r,n=s.now())=>{if(e[i]=0!==r?n:0,t[i]=r,0!==r&&this.ttlAutopurge){const t=setTimeout((()=>{this.#A(i)&&this.#F(this.#c[i],"expire")}),r+1);t.unref&&t.unref()}},this.#_=i=>{e[i]=0!==t[i]?s.now():0},this.#z=(s,n)=>{if(t[n]){const o=t[n],h=e[n];if(!o||!h)return;s.ttl=o,s.start=h,s.now=i||r();const a=s.now-h;s.remainingTTL=o-a}};let i=0;const r=()=>{const t=s.now();if(this.ttlResolution>0){i=t;const e=setTimeout((()=>i=0),this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=s=>{const n=this.#l.get(s);if(void 0===n)return 0;const o=t[n],h=e[n];if(!o||!h)return 1/0;return o-((i||r())-h)},this.#A=s=>{const n=e[s],o=t[s];return!!o&&!!n&&(i||r())-n>o}}#_=()=>{};#z=()=>{};#R=()=>{};#A=()=>!1;#O(){const t=new c(this.#e);this.#a=0,this.#w=t,this.#D=e=>{this.#a-=t[e],t[e]=0},this.#j=(t,e,s,i)=>{if(this.#E(e))return 0;if(!a(s)){if(!i)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(s=i(e,t),!a(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return s},this.#B=(e,s,i)=>{if(t[e]=s,this.#s){const s=this.#s-t[e];for(;this.#a>s;)this.#N(!0)}this.#a+=t[e],i&&(i.entrySize=s,i.totalCalculatedSize=this.#a)}}#D=t=>{};#B=(t,e,s)=>{};#j=(t,e,s,i)=>{if(s||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#C({allowStale:t=this.allowStale}={}){if(this.#h)for(let e=this.#g;this.#W(e)&&(!t&&this.#A(e)||(yield e),e!==this.#f);)e=this.#u[e]}*#M({allowStale:t=this.allowStale}={}){if(this.#h)for(let e=this.#f;this.#W(e)&&(!t&&this.#A(e)||(yield e),e!==this.#g);)e=this.#p[e]}#W(t){return void 0!==t&&this.#l.get(this.#c[t])===t}*entries(){for(const t of this.#C())void 0===this.#d[t]||void 0===this.#c[t]||this.#E(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*rentries(){for(const t of this.#M())void 0===this.#d[t]||void 0===this.#c[t]||this.#E(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*keys(){for(const t of this.#C()){const e=this.#c[t];void 0===e||this.#E(this.#d[t])||(yield e)}}*rkeys(){for(const t of this.#M()){const e=this.#c[t];void 0===e||this.#E(this.#d[t])||(yield e)}}*values(){for(const t of this.#C()){void 0===this.#d[t]||this.#E(this.#d[t])||(yield this.#d[t])}}*rvalues(){for(const t of this.#M()){void 0===this.#d[t]||this.#E(this.#d[t])||(yield this.#d[t])}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const s of this.#C()){const i=this.#d[s],r=this.#E(i)?i.__staleWhileFetching:i;if(void 0!==r&&t(r,this.#c[s],this))return this.get(this.#c[s],e)}}forEach(t,e=this){for(const s of this.#C()){const i=this.#d[s],r=this.#E(i)?i.__staleWhileFetching:i;void 0!==r&&t.call(e,r,this.#c[s],this)}}rforEach(t,e=this){for(const s of this.#M()){const i=this.#d[s],r=this.#E(i)?i.__staleWhileFetching:i;void 0!==r&&t.call(e,r,this.#c[s],this)}}purgeStale(){let t=!1;for(const e of this.#M({allowStale:!0}))this.#A(e)&&(this.#F(this.#c[e],"expire"),t=!0);return t}info(t){const e=this.#l.get(t);if(void 0===e)return;const i=this.#d[e],r=this.#E(i)?i.__staleWhileFetching:i;if(void 0===r)return;const n={value:r};if(this.#v&&this.#b){const t=this.#v[e],i=this.#b[e];if(t&&i){const e=t-(s.now()-i);n.ttl=e,n.start=Date.now()}}return this.#w&&(n.size=this.#w[e]),n}dump(){const t=[];for(const e of this.#C({allowStale:!0})){const i=this.#c[e],r=this.#d[e],n=this.#E(r)?r.__staleWhileFetching:r;if(void 0===n||void 0===i)continue;const o={value:n};if(this.#v&&this.#b){o.ttl=this.#v[e];const t=s.now()-this.#b[e];o.start=Math.floor(Date.now()-t)}this.#w&&(o.size=this.#w[e]),t.unshift([i,o])}return t}load(t){this.clear();for(const[e,i]of t){if(i.start){const t=Date.now()-i.start;i.start=s.now()-t}this.set(e,i.value,i)}}set(t,e,s={}){if(void 0===e)return this.delete(t),this;const{ttl:i=this.ttl,start:r,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:h}=s;let{noUpdateTTL:a=this.noUpdateTTL}=s;const l=this.#j(t,e,s.size||0,o);if(this.maxEntrySize&&l>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.#F(t,"set"),this;let c=0===this.#h?void 0:this.#l.get(t);if(void 0===c)c=0===this.#h?this.#g:0!==this.#m.length?this.#m.pop():this.#h===this.#e?this.#N(!1):this.#h,this.#c[c]=t,this.#d[c]=e,this.#l.set(t,c),this.#p[this.#g]=c,this.#u[c]=this.#g,this.#g=c,this.#h++,this.#B(c,l,h),h&&(h.set="add"),a=!1;else{this.#T(c);const s=this.#d[c];if(e!==s){if(this.#k&&this.#E(s)){s.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=s;void 0===e||n||(this.#S&&this.#i?.(e,t,"set"),this.#x&&this.#y?.push([e,t,"set"]))}else n||(this.#S&&this.#i?.(s,t,"set"),this.#x&&this.#y?.push([s,t,"set"]));if(this.#D(c),this.#B(c,l,h),this.#d[c]=e,h){h.set="replace";const t=s&&this.#E(s)?s.__staleWhileFetching:s;void 0!==t&&(h.oldValue=t)}}else h&&(h.set="update")}if(0===i||this.#v||this.#P(),this.#v&&(a||this.#R(c,i,r),h&&this.#z(h,c)),!n&&this.#x&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#r?.(...e)}return this}pop(){try{for(;this.#h;){const t=this.#d[this.#f];if(this.#N(!0),this.#E(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#x&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#r?.(...e)}}}#N(t){const e=this.#f,s=this.#c[e],i=this.#d[e];return this.#k&&this.#E(i)?i.__abortController.abort(new Error("evicted")):(this.#S||this.#x)&&(this.#S&&this.#i?.(i,s,"evict"),this.#x&&this.#y?.push([i,s,"evict"])),this.#D(e),t&&(this.#c[e]=void 0,this.#d[e]=void 0,this.#m.push(e)),1===this.#h?(this.#f=this.#g=0,this.#m.length=0):this.#f=this.#p[e],this.#l.delete(s),this.#h--,e}has(t,e={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:i}=e,r=this.#l.get(t);if(void 0!==r){const t=this.#d[r];if(this.#E(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#A(r))return s&&this.#_(r),i&&(i.has="hit",this.#z(i,r)),!0;i&&(i.has="stale",this.#z(i,r))}else i&&(i.has="miss");return!1}peek(t,e={}){const{allowStale:s=this.allowStale}=e,i=this.#l.get(t);if(void 0===i||!s&&this.#A(i))return;const r=this.#d[i];return this.#E(r)?r.__staleWhileFetching:r}#L(t,e,s,i){const r=void 0===e?void 0:this.#d[e];if(this.#E(r))return r;const n=new o,{signal:h}=s;h?.addEventListener("abort",(()=>n.abort(h.reason)),{signal:n.signal});const a={signal:n.signal,options:s,context:i},l=(i,r=!1)=>{const{aborted:o}=n.signal,h=s.ignoreFetchAbort&&void 0!==i;if(s.status&&(o&&!r?(s.status.fetchAborted=!0,s.status.fetchError=n.signal.reason,h&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),o&&!h&&!r)return c(n.signal.reason);const l=d;return this.#d[e]===d&&(void 0===i?l.__staleWhileFetching?this.#d[e]=l.__staleWhileFetching:this.#F(t,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(t,i,a.options))),i},c=i=>{const{aborted:r}=n.signal,o=r&&s.allowStaleOnFetchAbort,h=o||s.allowStaleOnFetchRejection,a=h||s.noDeleteOnFetchRejection,l=d;if(this.#d[e]===d){!a||void 0===l.__staleWhileFetching?this.#F(t,"fetch"):o||(this.#d[e]=l.__staleWhileFetching)}if(h)return s.status&&void 0!==l.__staleWhileFetching&&(s.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw i};s.status&&(s.status.fetchDispatched=!0);const d=new Promise(((e,i)=>{const o=this.#n?.(t,r,a);o&&o instanceof Promise&&o.then((t=>e(void 0===t?void 0:t)),i),n.signal.addEventListener("abort",(()=>{s.ignoreFetchAbort&&!s.allowStaleOnFetchAbort||(e(void 0),s.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))}))})).then(l,(t=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=t),c(t)))),p=Object.assign(d,{__abortController:n,__staleWhileFetching:r,__returned:void 0});return void 0===e?(this.set(t,p,{...a.options,status:void 0}),e=this.#l.get(t)):this.#d[e]=p,p}#E(t){if(!this.#k)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof o}async fetch(t,e={}){const{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:h=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:u=this.allowStaleOnFetchAbort,context:f,forceRefresh:g=!1,status:m,signal:y}=e;if(!this.#k)return m&&(m.fetch="get"),this.get(t,{allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:m});const w={allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:n,noDisposeOnSet:o,size:h,sizeCalculation:a,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:u,ignoreFetchAbort:p,status:m,signal:y};let b=this.#l.get(t);if(void 0===b){m&&(m.fetch="miss");const e=this.#L(t,b,w,f);return e.__returned=e}{const e=this.#d[b];if(this.#E(e)){const t=s&&void 0!==e.__staleWhileFetching;return m&&(m.fetch="inflight",t&&(m.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const r=this.#A(b);if(!g&&!r)return m&&(m.fetch="hit"),this.#T(b),i&&this.#_(b),m&&this.#z(m,b),e;const n=this.#L(t,b,w,f),o=void 0!==n.__staleWhileFetching&&s;return m&&(m.fetch=r?"stale":"refresh",o&&r&&(m.returnedStale=!0)),o?n.__staleWhileFetching:n.__returned=n}}async forceFetch(t,e={}){const s=await this.fetch(t,e);if(void 0===s)throw new Error("fetch() returned undefined");return s}memo(t,e={}){const s=this.#o;if(!s)throw new Error("no memoMethod provided to constructor");const{context:i,forceRefresh:r,...n}=e,o=this.get(t,n);if(!r&&void 0!==o)return o;const h=s(t,o,{options:n,context:i});return this.set(t,h,n),h}get(t,e={}){const{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:n}=e,o=this.#l.get(t);if(void 0!==o){const e=this.#d[o],h=this.#E(e);return n&&this.#z(n,o),this.#A(o)?(n&&(n.get="stale"),h?(n&&s&&void 0!==e.__staleWhileFetching&&(n.returnedStale=!0),s?e.__staleWhileFetching:void 0):(r||this.#F(t,"expire"),n&&s&&(n.returnedStale=!0),s?e:void 0)):(n&&(n.get="hit"),h?e.__staleWhileFetching:(this.#T(o),i&&this.#_(o),e))}n&&(n.get="miss")}#G(t,e){this.#u[e]=t,this.#p[t]=e}#T(t){t!==this.#g&&(t===this.#f?this.#f=this.#p[t]:this.#G(this.#u[t],this.#p[t]),this.#G(this.#g,t),this.#g=t)}delete(t){return this.#F(t,"delete")}#F(t,e){let s=!1;if(0!==this.#h){const i=this.#l.get(t);if(void 0!==i)if(s=!0,1===this.#h)this.#I(e);else{this.#D(i);const s=this.#d[i];if(this.#E(s)?s.__abortController.abort(new Error("deleted")):(this.#S||this.#x)&&(this.#S&&this.#i?.(s,t,e),this.#x&&this.#y?.push([s,t,e])),this.#l.delete(t),this.#c[i]=void 0,this.#d[i]=void 0,i===this.#g)this.#g=this.#u[i];else if(i===this.#f)this.#f=this.#p[i];else{const t=this.#u[i];this.#p[t]=this.#p[i];const e=this.#p[i];this.#u[e]=this.#u[i]}this.#h--,this.#m.push(i)}}if(this.#x&&this.#y?.length){const t=this.#y;let e;for(;e=t?.shift();)this.#r?.(...e)}return s}clear(){return this.#I("delete")}#I(t){for(const e of this.#M({allowStale:!0})){const s=this.#d[e];if(this.#E(s))s.__abortController.abort(new Error("deleted"));else{const i=this.#c[e];this.#S&&this.#i?.(s,i,t),this.#x&&this.#y?.push([s,i,t])}}if(this.#l.clear(),this.#d.fill(void 0),this.#c.fill(void 0),this.#v&&this.#b&&(this.#v.fill(0),this.#b.fill(0)),this.#w&&this.#w.fill(0),this.#f=0,this.#g=0,this.#m.length=0,this.#a=0,this.#h=0,this.#x&&this.#y){const t=this.#y;let e;for(;e=t?.shift();)this.#r?.(...e)}}}e.LRUCache=p},116(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0;e.unescape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},136(t){"use strict";t.exports=require("url")},193(t){"use strict";t.exports=require("string_decoder")},207(t,e,s){t.exports=s(756)},274(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0;e.assertValidPattern=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")}},363(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0;e.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&")},420(t,e,s){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;const r="object"==typeof process&&process?process:{stdout:null,stderr:null},n=s(474),o=i(s(75)),h=s(193);e.isStream=t=>!!t&&"object"==typeof t&&(t instanceof U||t instanceof o.default||(0,e.isReadable)(t)||(0,e.isWritable)(t));e.isReadable=t=>!!t&&"object"==typeof t&&t instanceof n.EventEmitter&&"function"==typeof t.pipe&&t.pipe!==o.default.Writable.prototype.pipe;e.isWritable=t=>!!t&&"object"==typeof t&&t instanceof n.EventEmitter&&"function"==typeof t.write&&"function"==typeof t.end;const a=Symbol("EOF"),l=Symbol("maybeEmitEnd"),c=Symbol("emittedEnd"),d=Symbol("emittingEnd"),p=Symbol("emittedError"),u=Symbol("closed"),f=Symbol("read"),g=Symbol("flush"),m=Symbol("flushChunk"),y=Symbol("encoding"),w=Symbol("decoder"),b=Symbol("flowing"),v=Symbol("paused"),S=Symbol("resume"),k=Symbol("buffer"),x=Symbol("pipes"),E=Symbol("bufferLength"),L=Symbol("bufferPush"),T=Symbol("bufferShift"),C=Symbol("objectMode"),M=Symbol("destroyed"),A=Symbol("error"),O=Symbol("emitData"),P=Symbol("emitEnd"),R=Symbol("emitEnd2"),F=Symbol("async"),_=Symbol("abort"),z=Symbol("aborted"),D=Symbol("signal"),j=Symbol("dataListeners"),B=Symbol("discarded"),N=t=>Promise.resolve().then(t),W=t=>t();class G{src;dest;opts;ondrain;constructor(t,e,s){this.src=t,this.dest=e,this.opts=s,this.ondrain=()=>t[S](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}}class I extends G{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,e,s){super(t,e,s),this.proxyErrors=t=>e.emit("error",t),t.on("error",this.proxyErrors)}}class U extends n.EventEmitter{[b]=!1;[v]=!1;[x]=[];[k]=[];[C];[y];[F];[w];[a]=!1;[c]=!1;[d]=!1;[u]=!1;[p]=null;[E]=0;[M]=!1;[D];[z]=!1;[j]=0;[B]=!1;writable=!0;readable=!0;constructor(...t){const e=t[0]||{};if(super(),e.objectMode&&"string"==typeof e.encoding)throw new TypeError("Encoding and objectMode may not be used together");e.objectMode?(this[C]=!0,this[y]=null):(t=>!t.objectMode&&!!t.encoding&&"buffer"!==t.encoding)(e)?(this[y]=e.encoding,this[C]=!1):(this[C]=!1,this[y]=null),this[F]=!!e.async,this[w]=this[y]?new h.StringDecoder(this[y]):null,e&&!0===e.debugExposeBuffer&&Object.defineProperty(this,"buffer",{get:()=>this[k]}),e&&!0===e.debugExposePipes&&Object.defineProperty(this,"pipes",{get:()=>this[x]});const{signal:s}=e;s&&(this[D]=s,s.aborted?this[_]():s.addEventListener("abort",(()=>this[_]())))}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[C]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[F]}set async(t){this[F]=this[F]||!!t}[_](){this[z]=!0,this.emit("abort",this[D]?.reason),this.destroy(this[D]?.reason)}get aborted(){return this[z]}set aborted(t){}write(t,e,s){if(this[z])return!1;if(this[a])throw new Error("write after end");if(this[M])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;"function"==typeof e&&(s=e,e="utf8"),e||(e="utf8");const i=this[F]?N:W;if(!this[C]&&!Buffer.isBuffer(t))if(r=t,!Buffer.isBuffer(r)&&ArrayBuffer.isView(r))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if((t=>t instanceof ArrayBuffer||!!t&&"object"==typeof t&&t.constructor&&"ArrayBuffer"===t.constructor.name&&t.byteLength>=0)(t))t=Buffer.from(t);else if("string"!=typeof t)throw new Error("Non-contiguous data written to non-objectMode stream");var r;return this[C]?(this[b]&&0!==this[E]&&this[g](!0),this[b]?this.emit("data",t):this[L](t),0!==this[E]&&this.emit("readable"),s&&i(s),this[b]):t.length?("string"!=typeof t||e===this[y]&&!this[w]?.lastNeed||(t=Buffer.from(t,e)),Buffer.isBuffer(t)&&this[y]&&(t=this[w].write(t)),this[b]&&0!==this[E]&&this[g](!0),this[b]?this.emit("data",t):this[L](t),0!==this[E]&&this.emit("readable"),s&&i(s),this[b]):(0!==this[E]&&this.emit("readable"),s&&i(s),this[b])}read(t){if(this[M])return null;if(this[B]=!1,0===this[E]||0===t||t&&t>this[E])return this[l](),null;this[C]&&(t=null),this[k].length>1&&!this[C]&&(this[k]=[this[y]?this[k].join(""):Buffer.concat(this[k],this[E])]);const e=this[f](t||null,this[k][0]);return this[l](),e}[f](t,e){if(this[C])this[T]();else{const s=e;t===s.length||null===t?this[T]():"string"==typeof s?(this[k][0]=s.slice(t),e=s.slice(0,t),this[E]-=t):(this[k][0]=s.subarray(t),e=s.subarray(0,t),this[E]-=t)}return this.emit("data",e),this[k].length||this[a]||this.emit("drain"),e}end(t,e,s){return"function"==typeof t&&(s=t,t=void 0),"function"==typeof e&&(s=e,e="utf8"),void 0!==t&&this.write(t,e),s&&this.once("end",s),this[a]=!0,this.writable=!1,!this[b]&&this[v]||this[l](),this}[S](){this[M]||(this[j]||this[x].length||(this[B]=!0),this[v]=!1,this[b]=!0,this.emit("resume"),this[k].length?this[g]():this[a]?this[l]():this.emit("drain"))}resume(){return this[S]()}pause(){this[b]=!1,this[v]=!0,this[B]=!1}get destroyed(){return this[M]}get flowing(){return this[b]}get paused(){return this[v]}[L](t){this[C]?this[E]+=1:this[E]+=t.length,this[k].push(t)}[T](){return this[C]?this[E]-=1:this[E]-=this[k][0].length,this[k].shift()}[g](t=!1){do{}while(this[m](this[T]())&&this[k].length);t||this[k].length||this[a]||this.emit("drain")}[m](t){return this.emit("data",t),this[b]}pipe(t,e){if(this[M])return t;this[B]=!1;const s=this[c];return e=e||{},t===r.stdout||t===r.stderr?e.end=!1:e.end=!1!==e.end,e.proxyErrors=!!e.proxyErrors,s?e.end&&t.end():(this[x].push(e.proxyErrors?new I(this,t,e):new G(this,t,e)),this[F]?N((()=>this[S]())):this[S]()),t}unpipe(t){const e=this[x].find((e=>e.dest===t));e&&(1===this[x].length?(this[b]&&0===this[j]&&(this[b]=!1),this[x]=[]):this[x].splice(this[x].indexOf(e),1),e.unpipe())}addListener(t,e){return this.on(t,e)}on(t,e){const s=super.on(t,e);if("data"===t)this[B]=!1,this[j]++,this[x].length||this[b]||this[S]();else if("readable"===t&&0!==this[E])super.emit("readable");else if((t=>"end"===t||"finish"===t||"prefinish"===t)(t)&&this[c])super.emit(t),this.removeAllListeners(t);else if("error"===t&&this[p]){const t=e;this[F]?N((()=>t.call(this,this[p]))):t.call(this,this[p])}return s}removeListener(t,e){return this.off(t,e)}off(t,e){const s=super.off(t,e);return"data"===t&&(this[j]=this.listeners("data").length,0!==this[j]||this[B]||this[x].length||(this[b]=!1)),s}removeAllListeners(t){const e=super.removeAllListeners(t);return"data"!==t&&void 0!==t||(this[j]=0,this[B]||this[x].length||(this[b]=!1)),e}get emittedEnd(){return this[c]}[l](){this[d]||this[c]||this[M]||0!==this[k].length||!this[a]||(this[d]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[u]&&this.emit("close"),this[d]=!1)}emit(t,...e){const s=e[0];if("error"!==t&&"close"!==t&&t!==M&&this[M])return!1;if("data"===t)return!(!this[C]&&!s)&&(this[F]?(N((()=>this[O](s))),!0):this[O](s));if("end"===t)return this[P]();if("close"===t){if(this[u]=!0,!this[c]&&!this[M])return!1;const t=super.emit("close");return this.removeAllListeners("close"),t}if("error"===t){this[p]=s,super.emit(A,s);const t=!(this[D]&&!this.listeners("error").length)&&super.emit("error",s);return this[l](),t}if("resume"===t){const t=super.emit("resume");return this[l](),t}if("finish"===t||"prefinish"===t){const e=super.emit(t);return this.removeAllListeners(t),e}const i=super.emit(t,...e);return this[l](),i}[O](t){for(const e of this[x])!1===e.dest.write(t)&&this.pause();const e=!this[B]&&super.emit("data",t);return this[l](),e}[P](){return!this[c]&&(this[c]=!0,this.readable=!1,this[F]?(N((()=>this[R]())),!0):this[R]())}[R](){if(this[w]){const t=this[w].end();if(t){for(const e of this[x])e.dest.write(t);this[B]||super.emit("data",t)}}for(const t of this[x])t.end();const t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){const t=Object.assign([],{dataLength:0});this[C]||(t.dataLength=0);const e=this.promise();return this.on("data",(e=>{t.push(e),this[C]||(t.dataLength+=e.length)})),await e,t}async concat(){if(this[C])throw new Error("cannot concat in objectMode");const t=await this.collect();return this[y]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise(((t,e)=>{this.on(M,(()=>e(new Error("stream destroyed")))),this.on("error",(t=>e(t))),this.on("end",(()=>t()))}))}[Symbol.asyncIterator](){this[B]=!1;let t=!1;const e=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return e();const s=this.read();if(null!==s)return Promise.resolve({done:!1,value:s});if(this[a])return e();let i,r;const n=t=>{this.off("data",o),this.off("end",h),this.off(M,l),e(),r(t)},o=t=>{this.off("error",n),this.off("end",h),this.off(M,l),this.pause(),i({value:t,done:!!this[a]})},h=()=>{this.off("error",n),this.off("data",o),this.off(M,l),e(),i({done:!0,value:void 0})},l=()=>n(new Error("stream destroyed"));return new Promise(((t,e)=>{r=e,i=t,this.once(M,l),this.once("error",n),this.once("end",h),this.once("data",o)}))},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[B]=!1;let t=!1;const e=()=>(this.pause(),this.off(A,e),this.off(M,e),this.off("end",e),t=!0,{done:!0,value:void 0});return this.once("end",e),this.once(A,e),this.once(M,e),{next:()=>{if(t)return e();const s=this.read();return null===s?e():{done:!1,value:s}},throw:e,return:e,[Symbol.iterator](){return this}}}destroy(t){if(this[M])return t?this.emit("error",t):this.emit(M),this;this[M]=!0,this[B]=!0,this[k].length=0,this[E]=0;return"function"!=typeof this.close||this[u]||this.close(),t?this.emit("error",t):this.emit(M),this}static get isStream(){return e.isStream}}e.Minipass=U},455(t){"use strict";t.exports=require("fs/promises")},474(t){"use strict";t.exports=require("events")},478(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;const i=s(722);class r{#U;#$;#q;length;#H;#V;#Z;#J;#K;#Y;#X=!0;constructor(t,e,s,i){if(!(t.length>=1))throw new TypeError("empty pattern list");if(!(e.length>=1))throw new TypeError("empty glob list");if(e.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#U=t,this.#$=e,this.#q=s,this.#H=i,0===this.#q)if(this.isUNC()){const[t,e,s,i,...r]=this.#U,[n,o,h,a,...l]=this.#$;""===r[0]&&(r.shift(),l.shift());const c=[t,e,s,i,""].join("/"),d=[n,o,h,a,""].join("/");this.#U=[c,...r],this.#$=[d,...l],this.length=this.#U.length}else if(this.isDrive()||this.isAbsolute()){const[t,...e]=this.#U,[s,...i]=this.#$;""===e[0]&&(e.shift(),i.shift());const r=t+"/",n=s+"/";this.#U=[r,...e],this.#$=[n,...i],this.length=this.#U.length}}pattern(){return this.#U[this.#q]}isString(){return"string"==typeof this.#U[this.#q]}isGlobstar(){return this.#U[this.#q]===i.GLOBSTAR}isRegExp(){return this.#U[this.#q]instanceof RegExp}globString(){return this.#Z=this.#Z||(0===this.#q?this.isAbsolute()?this.#$[0]+this.#$.slice(1).join("/"):this.#$.join("/"):this.#$.slice(this.#q).join("/"))}hasMore(){return this.length>this.#q+1}rest(){return void 0!==this.#V?this.#V:this.hasMore()?(this.#V=new r(this.#U,this.#$,this.#q+1,this.#H),this.#V.#Y=this.#Y,this.#V.#K=this.#K,this.#V.#J=this.#J,this.#V):this.#V=null}isUNC(){const t=this.#U;return void 0!==this.#K?this.#K:this.#K="win32"===this.#H&&0===this.#q&&""===t[0]&&""===t[1]&&"string"==typeof t[2]&&!!t[2]&&"string"==typeof t[3]&&!!t[3]}isDrive(){const t=this.#U;return void 0!==this.#J?this.#J:this.#J="win32"===this.#H&&0===this.#q&&this.length>1&&"string"==typeof t[0]&&/^[a-z]:$/i.test(t[0])}isAbsolute(){const t=this.#U;return void 0!==this.#Y?this.#Y:this.#Y=""===t[0]&&t.length>1||this.isDrive()||this.isUNC()}root(){const t=this.#U[0];return"string"==typeof t&&this.isAbsolute()&&0===this.#q?t:""}checkFollowGlobstar(){return!(0===this.#q||!this.isGlobstar()||!this.#X)}markFollowGlobstar(){return!(0===this.#q||!this.isGlobstar()||!this.#X)&&(this.#X=!1,!0)}}e.Pattern=r},505(t){"use strict";function e(t,e,r){t instanceof RegExp&&(t=s(t,r)),e instanceof RegExp&&(e=s(e,r));var n=i(t,e,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+t.length,n[1]),post:r.slice(n[1]+e.length)}}function s(t,e){var s=e.match(t);return s?s[0]:null}function i(t,e,s){var i,r,n,o,h,a=s.indexOf(t),l=s.indexOf(e,a+1),c=a;if(a>=0&&l>0){if(t===e)return[a,l];for(i=[],n=s.length;c>=0&&!h;)c==a?(i.push(c),a=s.indexOf(t,c+1)):1==i.length?h=[i.pop(),l]:((r=i.pop())<n&&(n=r,o=l),l=s.indexOf(e,c+1)),c=a<l&&a>=0?a:l;i.length&&(h=[n,o])}return h}t.exports=e,e.range=i},576(t,e,s){"use strict";var i=this&&this.__createBinding||(Object.create?function(t,e,s,i){void 0===i&&(i=s);var r=Object.getOwnPropertyDescriptor(e,s);r&&!("get"in r?!e.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return e[s]}}),Object.defineProperty(t,i,r)}:function(t,e,s,i){void 0===i&&(i=s),t[i]=e[s]}),r=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var s in t)"default"!==s&&Object.prototype.hasOwnProperty.call(t,s)&&i(e,t,s);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.PathScurry=e.Path=e.PathScurryDarwin=e.PathScurryPosix=e.PathScurryWin32=e.PathScurryBase=e.PathPosix=e.PathWin32=e.PathBase=e.ChildrenCache=e.ResolveCache=void 0;const o=s(96),h=s(760),a=s(136),l=s(896),c=n(s(24)),d=l.realpathSync.native,p=s(455),u=s(420),f={lstatSync:l.lstatSync,readdir:l.readdir,readdirSync:l.readdirSync,readlinkSync:l.readlinkSync,realpathSync:d,promises:{lstat:p.lstat,readdir:p.readdir,readlink:p.readlink,realpath:p.realpath}},g=t=>t&&t!==f&&t!==c?{...f,...t,promises:{...f.promises,...t.promises||{}}}:f,m=/^\\\\\?\\([a-z]:)\\?$/i,y=/[\\\/]/,w=10,b=15,v=-16,S=128,k=256,x=512,E=t=>t.isFile()?8:t.isDirectory()?4:t.isSymbolicLink()?w:t.isCharacterDevice()?2:t.isBlockDevice()?6:t.isSocket()?12:t.isFIFO()?1:0,L=new Map,T=t=>{const e=L.get(t);if(e)return e;const s=t.normalize("NFKD");return L.set(t,s),s},C=new Map,M=t=>{const e=C.get(t);if(e)return e;const s=T(t.toLowerCase());return C.set(t,s),s};class A extends o.LRUCache{constructor(){super({max:256})}}e.ResolveCache=A;class O extends o.LRUCache{constructor(t=16384){super({maxSize:t,sizeCalculation:t=>t.length+1})}}e.ChildrenCache=O;const P=Symbol("PathScurry setAsCwd");class R{name;root;roots;parent;nocase;isCWD=!1;#Q;#tt;get dev(){return this.#tt}#et;get mode(){return this.#et}#st;get nlink(){return this.#st}#it;get uid(){return this.#it}#rt;get gid(){return this.#rt}#nt;get rdev(){return this.#nt}#ot;get blksize(){return this.#ot}#ht;get ino(){return this.#ht}#h;get size(){return this.#h}#at;get blocks(){return this.#at}#lt;get atimeMs(){return this.#lt}#ct;get mtimeMs(){return this.#ct}#dt;get ctimeMs(){return this.#dt}#pt;get birthtimeMs(){return this.#pt}#ut;get atime(){return this.#ut}#ft;get mtime(){return this.#ft}#gt;get ctime(){return this.#gt}#mt;get birthtime(){return this.#mt}#yt;#wt;#bt;#vt;#St;#kt;#xt;#Et;#Lt;#Tt;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,e=0,s,i,r,n,o){this.name=t,this.#yt=r?M(t):T(t),this.#xt=1023&e,this.nocase=r,this.roots=i,this.root=s||this,this.#Et=n,this.#bt=o.fullpath,this.#St=o.relative,this.#kt=o.relativePosix,this.parent=o.parent,this.parent?this.#Q=this.parent.#Q:this.#Q=g(o.fs)}depth(){return void 0!==this.#wt?this.#wt:this.parent?this.#wt=this.parent.depth()+1:this.#wt=0}childrenCache(){return this.#Et}resolve(t){if(!t)return this;const e=this.getRootString(t),s=t.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#Ct(s):this.#Ct(s)}#Ct(t){let e=this;for(const s of t)e=e.child(s);return e}children(){const t=this.#Et.get(this);if(t)return t;const e=Object.assign([],{provisional:0});return this.#Et.set(this,e),this.#xt&=-17,e}child(t,e){if(""===t||"."===t)return this;if(".."===t)return this.parent||this;const s=this.children(),i=this.nocase?M(t):T(t);for(const t of s)if(t.#yt===i)return t;const r=this.parent?this.sep:"",n=this.#bt?this.#bt+r+t:void 0,o=this.newChild(t,0,{...e,parent:this,fullpath:n});return this.canReaddir()||(o.#xt|=S),s.push(o),o}relative(){if(this.isCWD)return"";if(void 0!==this.#St)return this.#St;const t=this.name,e=this.parent;if(!e)return this.#St=this.name;const s=e.relative();return s+(s&&e.parent?this.sep:"")+t}relativePosix(){if("/"===this.sep)return this.relative();if(this.isCWD)return"";if(void 0!==this.#kt)return this.#kt;const t=this.name,e=this.parent;if(!e)return this.#kt=this.fullpathPosix();const s=e.relativePosix();return s+(s&&e.parent?"/":"")+t}fullpath(){if(void 0!==this.#bt)return this.#bt;const t=this.name,e=this.parent;if(!e)return this.#bt=this.name;const s=e.fullpath()+(e.parent?this.sep:"")+t;return this.#bt=s}fullpathPosix(){if(void 0!==this.#vt)return this.#vt;if("/"===this.sep)return this.#vt=this.fullpath();if(!this.parent){const t=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(t)?this.#vt=`//?/${t}`:this.#vt=t}const t=this.parent,e=t.fullpathPosix(),s=e+(e&&t.parent?"/":"")+this.name;return this.#vt=s}isUnknown(){return!(this.#xt&b)}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return 8==(this.#xt&b)}isDirectory(){return 4==(this.#xt&b)}isCharacterDevice(){return 2==(this.#xt&b)}isBlockDevice(){return 6==(this.#xt&b)}isFIFO(){return 1==(this.#xt&b)}isSocket(){return 12==(this.#xt&b)}isSymbolicLink(){return(this.#xt&w)===w}lstatCached(){return 32&this.#xt?this:void 0}readlinkCached(){return this.#Lt}realpathCached(){return this.#Tt}readdirCached(){const t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#Lt)return!0;if(!this.parent)return!1;const t=this.#xt&b;return!(0!==t&&t!==w||this.#xt&k||this.#xt&S)}calledReaddir(){return!!(16&this.#xt)}isENOENT(){return!!(this.#xt&S)}isNamed(t){return this.nocase?this.#yt===M(t):this.#yt===T(t)}async readlink(){const t=this.#Lt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=await this.#Q.promises.readlink(this.fullpath()),e=(await this.parent.realpath())?.resolve(t);if(e)return this.#Lt=e}catch(t){return void this.#Mt(t.code)}}readlinkSync(){const t=this.#Lt;if(t)return t;if(this.canReadlink()&&this.parent)try{const t=this.#Q.readlinkSync(this.fullpath()),e=this.parent.realpathSync()?.resolve(t);if(e)return this.#Lt=e}catch(t){return void this.#Mt(t.code)}}#At(t){this.#xt|=16;for(let e=t.provisional;e<t.length;e++){const s=t[e];s&&s.#Ot()}}#Ot(){this.#xt&S||(this.#xt=(this.#xt|S)&v,this.#Pt())}#Pt(){const t=this.children();t.provisional=0;for(const e of t)e.#Ot()}#Rt(){this.#xt|=x,this.#Ft()}#Ft(){if(64&this.#xt)return;let t=this.#xt;4==(t&b)&&(t&=v),this.#xt=64|t,this.#Pt()}#_t(t=""){"ENOTDIR"===t||"EPERM"===t?this.#Ft():"ENOENT"===t?this.#Ot():this.children().provisional=0}#zt(t=""){if("ENOTDIR"===t){this.parent.#Ft()}else"ENOENT"===t&&this.#Ot()}#Mt(t=""){let e=this.#xt;e|=k,"ENOENT"===t&&(e|=S),"EINVAL"!==t&&"UNKNOWN"!==t||(e&=v),this.#xt=e,"ENOTDIR"===t&&this.parent&&this.parent.#Ft()}#Dt(t,e){return this.#jt(t,e)||this.#Bt(t,e)}#Bt(t,e){const s=E(t),i=this.newChild(t.name,s,{parent:this}),r=i.#xt&b;return 4!==r&&r!==w&&0!==r&&(i.#xt|=64),e.unshift(i),e.provisional++,i}#jt(t,e){for(let s=e.provisional;s<e.length;s++){const i=e[s];if((this.nocase?M(t.name):T(t.name))===i.#yt)return this.#Nt(t,i,s,e)}}#Nt(t,e,s,i){const r=e.name;return e.#xt=e.#xt&v|E(t),r!==t.name&&(e.name=t.name),s!==i.provisional&&(s===i.length-1?i.pop():i.splice(s,1),i.unshift(e)),i.provisional++,e}async lstat(){if(!(this.#xt&S))try{return this.#Wt(await this.#Q.promises.lstat(this.fullpath())),this}catch(t){this.#zt(t.code)}}lstatSync(){if(!(this.#xt&S))try{return this.#Wt(this.#Q.lstatSync(this.fullpath())),this}catch(t){this.#zt(t.code)}}#Wt(t){const{atime:e,atimeMs:s,birthtime:i,birthtimeMs:r,blksize:n,blocks:o,ctime:h,ctimeMs:a,dev:l,gid:c,ino:d,mode:p,mtime:u,mtimeMs:f,nlink:g,rdev:m,size:y,uid:b}=t;this.#ut=e,this.#lt=s,this.#mt=i,this.#pt=r,this.#ot=n,this.#at=o,this.#gt=h,this.#dt=a,this.#tt=l,this.#rt=c,this.#ht=d,this.#et=p,this.#ft=u,this.#ct=f,this.#st=g,this.#nt=m,this.#h=y,this.#it=b;const S=E(t);this.#xt=this.#xt&v|S|32,0!==S&&4!==S&&S!==w&&(this.#xt|=64)}#Gt=[];#It=!1;#Ut(t){this.#It=!1;const e=this.#Gt.slice();this.#Gt.length=0,e.forEach((e=>e(null,t)))}readdirCB(t,e=!1){if(!this.canReaddir())return void(e?t(null,[]):queueMicrotask((()=>t(null,[]))));const s=this.children();if(this.calledReaddir()){const i=s.slice(0,s.provisional);return void(e?t(null,i):queueMicrotask((()=>t(null,i))))}if(this.#Gt.push(t),this.#It)return;this.#It=!0;const i=this.fullpath();this.#Q.readdir(i,{withFileTypes:!0},((t,e)=>{if(t)this.#_t(t.code),s.provisional=0;else{for(const t of e)this.#Dt(t,s);this.#At(s)}this.#Ut(s.slice(0,s.provisional))}))}#$t;async readdir(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();if(this.#$t)await this.#$t;else{let s=()=>{};this.#$t=new Promise((t=>s=t));try{for(const s of await this.#Q.promises.readdir(e,{withFileTypes:!0}))this.#Dt(s,t);this.#At(t)}catch(e){this.#_t(e.code),t.provisional=0}this.#$t=void 0,s()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];const t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);const e=this.fullpath();try{for(const s of this.#Q.readdirSync(e,{withFileTypes:!0}))this.#Dt(s,t);this.#At(t)}catch(e){this.#_t(e.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(704&this.#xt)return!1;const t=b&this.#xt;return 0===t||4===t||t===w}shouldWalk(t,e){return!(4&~this.#xt)&&!(704&this.#xt)&&!t.has(this)&&(!e||e(this))}async realpath(){if(this.#Tt)return this.#Tt;if(!(896&this.#xt))try{const t=await this.#Q.promises.realpath(this.fullpath());return this.#Tt=this.resolve(t)}catch(t){this.#Rt()}}realpathSync(){if(this.#Tt)return this.#Tt;if(!(896&this.#xt))try{const t=this.#Q.realpathSync(this.fullpath());return this.#Tt=this.resolve(t)}catch(t){this.#Rt()}}[P](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;const e=new Set([]);let s=[],i=this;for(;i&&i.parent;)e.add(i),i.#St=s.join(this.sep),i.#kt=s.join("/"),i=i.parent,s.push("..");for(i=t;i&&i.parent&&!e.has(i);)i.#St=void 0,i.#kt=void 0,i=i.parent}}e.PathBase=R;class F extends R{sep="\\";splitSep=y;constructor(t,e=0,s,i,r,n,o){super(t,e,s,i,r,n,o)}newChild(t,e=0,s={}){return new F(t,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(t){return h.win32.parse(t).root}getRoot(t){if((t=(t=>t.replace(/\//g,"\\").replace(m,"$1\\"))(t.toUpperCase()))===this.root.name)return this.root;for(const[e,s]of Object.entries(this.roots))if(this.sameRoot(t,e))return this.roots[t]=s;return this.roots[t]=new D(t,this).root}sameRoot(t,e=this.root.name){return(t=t.toUpperCase().replace(/\//g,"\\").replace(m,"$1\\"))===e}}e.PathWin32=F;class _ extends R{splitSep="/";sep="/";constructor(t,e=0,s,i,r,n,o){super(t,e,s,i,r,n,o)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,e=0,s={}){return new _(t,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}}e.PathPosix=_;class z{root;rootPath;roots;cwd;#qt;#Ht;#Et;nocase;#Q;constructor(t=process.cwd(),e,s,{nocase:i,childrenCacheSize:r=16384,fs:n=f}={}){this.#Q=g(n),(t instanceof URL||t.startsWith("file://"))&&(t=(0,a.fileURLToPath)(t));const o=e.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(o),this.#qt=new A,this.#Ht=new A,this.#Et=new O(r);const h=o.substring(this.rootPath.length).split(s);if(1!==h.length||h[0]||h.pop(),void 0===i)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#Q),this.roots[this.rootPath]=this.root;let l=this.root,c=h.length-1;const d=e.sep;let p=this.rootPath,u=!1;for(const t of h){const e=c--;l=l.child(t,{relative:new Array(e).fill("..").join(d),relativePosix:new Array(e).fill("..").join("/"),fullpath:p+=(u?"":d)+t}),u=!0}this.cwd=l}depth(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#Et}resolve(...t){let e="";for(let s=t.length-1;s>=0;s--){const i=t[s];if(i&&"."!==i&&(e=e?`${i}/${e}`:i,this.isAbsolute(i)))break}const s=this.#qt.get(e);if(void 0!==s)return s;const i=this.cwd.resolve(e).fullpath();return this.#qt.set(e,i),i}resolvePosix(...t){let e="";for(let s=t.length-1;s>=0;s--){const i=t[s];if(i&&"."!==i&&(e=e?`${i}/${e}`:i,this.isAbsolute(i)))break}const s=this.#Ht.get(e);if(void 0!==s)return s;const i=this.cwd.resolve(e).fullpathPosix();return this.#Ht.set(e,i),i}relative(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s}=e;if(t.canReaddir()){const e=await t.readdir();return s?e:e.map((t=>t.name))}return[]}readdirSync(t=this.cwd,e={withFileTypes:!0}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0}=e;return t.canReaddir()?s?t.readdirSync():t.readdirSync().map((t=>t.name)):[]}async lstat(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return"string"==typeof t&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t.withFileTypes,t=this.cwd);const s=await t.readlink();return e?s:s?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t.withFileTypes,t=this.cwd);const s=t.readlinkSync();return e?s:s?.fullpath()}async realpath(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t.withFileTypes,t=this.cwd);const s=await t.realpath();return e?s:s?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:e}={withFileTypes:!1}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t.withFileTypes,t=this.cwd);const s=t.realpathSync();return e?s:s?.fullpath()}async walk(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,o=[];r&&!r(t)||o.push(s?t:t.fullpath());const h=new Set,a=(t,e)=>{h.add(t),t.readdirCB(((t,l)=>{if(t)return e(t);let c=l.length;if(!c)return e();const d=()=>{0==--c&&e()};for(const t of l)r&&!r(t)||o.push(s?t:t.fullpath()),i&&t.isSymbolicLink()?t.realpath().then((t=>t?.isUnknown()?t.lstat():t)).then((t=>t?.shouldWalk(h,n)?a(t,d):d())):t.shouldWalk(h,n)?a(t,d):d()}),!0)},l=t;return new Promise(((t,e)=>{a(l,(s=>{if(s)return e(s);t(o)}))}))}walkSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,o=[];r&&!r(t)||o.push(s?t:t.fullpath());const h=new Set([t]);for(const t of h){const e=t.readdirSync();for(const t of e){r&&!r(t)||o.push(s?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!i||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(h,n)&&h.add(e)}}return o}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,e={}){return"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd),this.stream(t,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e;r&&!r(t)||(yield s?t:t.fullpath());const o=new Set([t]);for(const t of o){const e=t.readdirSync();for(const t of e){r&&!r(t)||(yield s?t:t.fullpath());let e=t;if(t.isSymbolicLink()){if(!i||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(o,n)&&o.add(e)}}}stream(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,o=new u.Minipass({objectMode:!0});r&&!r(t)||o.write(s?t:t.fullpath());const h=new Set,a=[t];let l=0;const c=()=>{let t=!1;for(;!t;){const e=a.shift();if(!e)return void(0===l&&o.end());l++,h.add(e);const d=(e,u,f=!1)=>{if(e)return o.emit("error",e);if(i&&!f){const t=[];for(const e of u)e.isSymbolicLink()&&t.push(e.realpath().then((t=>t?.isUnknown()?t.lstat():t)));if(t.length)return void Promise.all(t).then((()=>d(null,u,!0)))}for(const e of u)!e||r&&!r(e)||o.write(s?e:e.fullpath())||(t=!0);l--;for(const t of u){const e=t.realpathCached()||t;e.shouldWalk(h,n)&&a.push(e)}t&&!o.flowing?o.once("drain",c):p||c()};let p=!0;e.readdirCB(d,!0),p=!1}};return c(),o}streamSync(t=this.cwd,e={}){"string"==typeof t?t=this.cwd.resolve(t):t instanceof R||(e=t,t=this.cwd);const{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:n}=e,o=new u.Minipass({objectMode:!0}),h=new Set;r&&!r(t)||o.write(s?t:t.fullpath());const a=[t];let l=0;const c=()=>{let t=!1;for(;!t;){const e=a.shift();if(!e)return void(0===l&&o.end());l++,h.add(e);const c=e.readdirSync();for(const e of c)r&&!r(e)||o.write(s?e:e.fullpath())||(t=!0);l--;for(const t of c){let e=t;if(t.isSymbolicLink()){if(!i||!(e=t.realpathSync()))continue;e.isUnknown()&&e.lstatSync()}e.shouldWalk(h,n)&&a.push(e)}}t&&!o.flowing&&o.once("drain",c)};return c(),o}chdir(t=this.cwd){const e=this.cwd;this.cwd="string"==typeof t?this.cwd.resolve(t):t,this.cwd[P](e)}}e.PathScurryBase=z;class D extends z{sep="\\";constructor(t=process.cwd(),e={}){const{nocase:s=!0}=e;super(t,h.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let t=this.cwd;t;t=t.parent)t.nocase=this.nocase}parseRootPath(t){return h.win32.parse(t).root.toUpperCase()}newRoot(t){return new F(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}}e.PathScurryWin32=D;class j extends z{sep="/";constructor(t=process.cwd(),e={}){const{nocase:s=!1}=e;super(t,h.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(t){return"/"}newRoot(t){return new _(this.rootPath,4,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}}e.PathScurryPosix=j;class B extends j{constructor(t=process.cwd(),e={}){const{nocase:s=!0}=e;super(t,{...e,nocase:s})}}e.PathScurryDarwin=B,e.Path="win32"===process.platform?F:_,e.PathScurry="win32"===process.platform?D:"darwin"===process.platform?B:j},674(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;const i=s(843),r=s(116),n=new Set(["!","?","+","*","@"]),o=t=>n.has(t),h="(?!\\.)",a=new Set(["[","."]),l=new Set(["..","."]),c=new Set("().*{}+?[]^$\\!"),d="[^/]",p=d+"*?",u=d+"+?";class f{type;#Vt;#Zt;#Jt=!1;#Kt=[];#Yt;#Xt;#Qt;#te=!1;#ee;#se;#ie=!1;constructor(t,e,s={}){this.type=t,t&&(this.#Zt=!0),this.#Yt=e,this.#Vt=this.#Yt?this.#Yt.#Vt:this,this.#ee=this.#Vt===this?s:this.#Vt.#ee,this.#Qt=this.#Vt===this?[]:this.#Vt.#Qt,"!"!==t||this.#Vt.#te||this.#Qt.push(this),this.#Xt=this.#Yt?this.#Yt.#Kt.length:0}get hasMagic(){if(void 0!==this.#Zt)return this.#Zt;for(const t of this.#Kt)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#Zt=!0;return this.#Zt}toString(){return void 0!==this.#se?this.#se:this.type?this.#se=this.type+"("+this.#Kt.map((t=>String(t))).join("|")+")":this.#se=this.#Kt.map((t=>String(t))).join("")}#re(){if(this!==this.#Vt)throw new Error("should only call on root");if(this.#te)return this;let t;for(this.toString(),this.#te=!0;t=this.#Qt.pop();){if("!"!==t.type)continue;let e=t,s=e.#Yt;for(;s;){for(let i=e.#Xt+1;!s.type&&i<s.#Kt.length;i++)for(const e of t.#Kt){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(s.#Kt[i])}e=s,s=e.#Yt}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof f&&e.#Yt===this))throw new Error("invalid part: "+e);this.#Kt.push(e)}}toJSON(){const t=null===this.type?this.#Kt.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#Kt.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#Vt||this.#Vt.#te&&"!"===this.#Yt?.type)&&t.push({}),t}isStart(){if(this.#Vt===this)return!0;if(!this.#Yt?.isStart())return!1;if(0===this.#Xt)return!0;const t=this.#Yt;for(let e=0;e<this.#Xt;e++){const s=t.#Kt[e];if(!(s instanceof f&&"!"===s.type))return!1}return!0}isEnd(){if(this.#Vt===this)return!0;if("!"===this.#Yt?.type)return!0;if(!this.#Yt?.isEnd())return!1;if(!this.type)return this.#Yt?.isEnd();const t=this.#Yt?this.#Yt.#Kt.length:0;return this.#Xt===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new f(this.type,t);for(const t of this.#Kt)e.copyIn(t);return e}static#ne(t,e,s,i){let r=!1,n=!1,h=-1,a=!1;if(null===e.type){let l=s,c="";for(;l<t.length;){const s=t.charAt(l++);if(r||"\\"===s)r=!r,c+=s;else if(n)l===h+1?"^"!==s&&"!"!==s||(a=!0):"]"!==s||l===h+2&&a||(n=!1),c+=s;else if("["!==s)if(i.noext||!o(s)||"("!==t.charAt(l))c+=s;else{e.push(c),c="";const r=new f(s,e);l=f.#ne(t,r,l,i),e.push(r)}else n=!0,h=l,a=!1,c+=s}return e.push(c),l}let l=s+1,c=new f(null,e);const d=[];let p="";for(;l<t.length;){const s=t.charAt(l++);if(r||"\\"===s)r=!r,p+=s;else if(n)l===h+1?"^"!==s&&"!"!==s||(a=!0):"]"!==s||l===h+2&&a||(n=!1),p+=s;else if("["!==s)if(o(s)&&"("===t.charAt(l)){c.push(p),p="";const e=new f(s,c);c.push(e),l=f.#ne(t,e,l,i)}else if("|"!==s){if(")"===s)return""===p&&0===e.#Kt.length&&(e.#ie=!0),c.push(p),p="",e.push(...d,c),l;p+=s}else c.push(p),p="",d.push(c),c=new f(null,e);else n=!0,h=l,a=!1,p+=s}return e.type=null,e.#Zt=void 0,e.#Kt=[t.substring(s-1)],l}static fromGlob(t,e={}){const s=new f(null,void 0,e);return f.#ne(t,s,0,e),s}toMMPattern(){if(this!==this.#Vt)return this.#Vt.toMMPattern();const t=this.toString(),[e,s,i,r]=this.toRegExpSource();if(!(i||this.#Zt||this.#ee.nocase&&!this.#ee.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return s;const n=(this.#ee.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,n),{_src:e,_glob:t})}get options(){return this.#ee}toRegExpSource(t){const e=t??!!this.#ee.dot;if(this.#Vt===this&&this.#re(),!this.type){const s=this.isStart()&&this.isEnd(),i=this.#Kt.map((e=>{const[i,r,n,o]="string"==typeof e?f.#oe(e,this.#Zt,s):e.toRegExpSource(t);return this.#Zt=this.#Zt||n,this.#Jt=this.#Jt||o,i})).join("");let n="";if(this.isStart()&&"string"==typeof this.#Kt[0]){if(!(1===this.#Kt.length&&l.has(this.#Kt[0]))){const s=a,r=e&&s.has(i.charAt(0))||i.startsWith("\\.")&&s.has(i.charAt(2))||i.startsWith("\\.\\.")&&s.has(i.charAt(4)),o=!e&&!t&&s.has(i.charAt(0));n=r?"(?!(?:^|/)\\.\\.?(?:$|/))":o?h:""}}let o="";this.isEnd()&&this.#Vt.#te&&"!"===this.#Yt?.type&&(o="(?:$|\\/)");return[n+i+o,(0,r.unescape)(i),this.#Zt=!!this.#Zt,this.#Jt]}const s="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:";let n=this.#he(e);if(this.isStart()&&this.isEnd()&&!n&&"!"!==this.type){const t=this.toString();return this.#Kt=[t],this.type=null,this.#Zt=void 0,[t,(0,r.unescape)(this.toString()),!1,!1]}let o=!s||t||e?"":this.#he(!0);o===n&&(o=""),o&&(n=`(?:${n})(?:${o})*?`);let c="";if("!"===this.type&&this.#ie)c=(this.isStart()&&!e?h:"")+u;else{c=i+n+("!"===this.type?"))"+(!this.isStart()||e||t?"":h)+p+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&o?")":"*"===this.type&&o?")?":`)${this.type}`)}return[c,(0,r.unescape)(n),this.#Zt=!!this.#Zt,this.#Jt]}#he(t){return this.#Kt.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[s,i,r,n]=e.toRegExpSource(t);return this.#Jt=this.#Jt||n,s})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#oe(t,e,s=!1){let n=!1,o="",h=!1;for(let r=0;r<t.length;r++){const a=t.charAt(r);if(n)n=!1,o+=(c.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[s,n,a,l]=(0,i.parseClass)(t,r);if(a){o+=s,h=h||n,r+=a-1,e=e||l;continue}}"*"!==a?"?"!==a?o+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(o+=d,e=!0):(o+=s&&"*"===t?u:p,e=!0)}else r===t.length-1?o+="\\\\":n=!0}return[o,(0,r.unescape)(t),!!e,h]}}e.AST=f},722(t,e,s){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=e.escape=e.AST=e.Minimatch=e.match=e.makeRe=e.braceExpand=e.defaults=e.filter=e.GLOBSTAR=e.sep=e.minimatch=void 0;const r=i(s(928)),n=s(274),o=s(674),h=s(363),a=s(116);e.minimatch=(t,e,s={})=>((0,n.assertValidPattern)(e),!(!s.nocomment&&"#"===e.charAt(0))&&new _(e,s).match(t));const l=/^\*+([^+@!?\*\[\(]*)$/,c=t=>e=>!e.startsWith(".")&&e.endsWith(t),d=t=>e=>e.endsWith(t),p=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),u=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),f=/^\*+\.\*+$/,g=t=>!t.startsWith(".")&&t.includes("."),m=t=>"."!==t&&".."!==t&&t.includes("."),y=/^\.\*+$/,w=t=>"."!==t&&".."!==t&&t.startsWith("."),b=/^\*+$/,v=t=>0!==t.length&&!t.startsWith("."),S=t=>0!==t.length&&"."!==t&&".."!==t,k=/^\?+([^+@!?\*\[\(]*)?$/,x=([t,e=""])=>{const s=C([t]);return e?(e=e.toLowerCase(),t=>s(t)&&t.toLowerCase().endsWith(e)):s},E=([t,e=""])=>{const s=M([t]);return e?(e=e.toLowerCase(),t=>s(t)&&t.toLowerCase().endsWith(e)):s},L=([t,e=""])=>{const s=M([t]);return e?t=>s(t)&&t.endsWith(e):s},T=([t,e=""])=>{const s=C([t]);return e?t=>s(t)&&t.endsWith(e):s},C=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},M=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},A="object"==typeof process&&process?"object"==typeof process.env&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",O={sep:"\\"},P={sep:"/"};e.sep="win32"===A?O.sep:P.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;e.filter=(t,s={})=>i=>(0,e.minimatch)(i,t,s),e.minimatch.filter=e.filter;const R=(t,e={})=>Object.assign({},t,e);e.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return e.minimatch;const s=e.minimatch;return Object.assign(((e,i,r={})=>s(e,i,R(t,r))),{Minimatch:class extends s.Minimatch{constructor(e,s={}){super(e,R(t,s))}static defaults(e){return s.defaults(R(t,e)).Minimatch}},AST:class extends s.AST{constructor(e,s,i={}){super(e,s,R(t,i))}static fromGlob(e,i={}){return s.AST.fromGlob(e,R(t,i))}},unescape:(e,i={})=>s.unescape(e,R(t,i)),escape:(e,i={})=>s.escape(e,R(t,i)),filter:(e,i={})=>s.filter(e,R(t,i)),defaults:e=>s.defaults(R(t,e)),makeRe:(e,i={})=>s.makeRe(e,R(t,i)),braceExpand:(e,i={})=>s.braceExpand(e,R(t,i)),match:(e,i,r={})=>s.match(e,i,R(t,r)),sep:s.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults;e.braceExpand=(t,e={})=>((0,n.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,r.default)(t)),e.minimatch.braceExpand=e.braceExpand;e.makeRe=(t,e={})=>new _(t,e).makeRe(),e.minimatch.makeRe=e.makeRe;e.match=(t,e,s={})=>{const i=new _(e,s);return t=t.filter((t=>i.match(t))),i.options.nonull&&!t.length&&t.push(e),t},e.minimatch.match=e.match;const F=/[?*]|[+@!]\(.*?\)|\[|\]/;class _{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){(0,n.assertValidPattern)(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||A,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,this.globSet);const s=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let i=this.globParts.map(((t,e,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&F.test(t[2])||F.test(t[3])),s=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(s)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,i),this.set=i.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let s=0;s<t[e].length;s++)"**"===t[e][s]&&(t[e][s]="*");const{optimizationLevel:e=1}=this.options;return e>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let s=e;for(;"**"===t[s+1];)s++;s!==e&&t.splice(e,s-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const s=t[t.length-1];return"**"===e&&"**"===s?t:".."===e&&s&&".."!==s&&"."!==s&&"**"!==s?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const i=t[s];1===s&&""===i&&""===t[0]||("."!==i&&""!==i||(e=!0,t.splice(s,1),s--))}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let s=0;for(;-1!==(s=t.indexOf("..",s+1));){const i=t[s-1];i&&"."!==i&&".."!==i&&"**"!==i&&(e=!0,t.splice(s-1,2),s-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let s of t){let i=-1;for(;-1!==(i=s.indexOf("**",i+1));){let r=i;for(;"**"===s[r+1];)r++;r>i&&s.splice(i+1,r-i);let n=s[i+1];const o=s[i+2],h=s[i+3];if(".."!==n)continue;if(!o||"."===o||".."===o||!h||"."===h||".."===h)continue;e=!0,s.splice(i,1);const a=s.slice(0);a[i]="**",t.push(a),i--}if(!this.preserveMultipleSlashes){for(let t=1;t<s.length-1;t++){const i=s[t];1===t&&""===i&&""===s[0]||("."!==i&&""!==i||(e=!0,s.splice(t,1),t--))}"."!==s[0]||2!==s.length||"."!==s[1]&&""!==s[1]||(e=!0,s.pop())}let r=0;for(;-1!==(r=s.indexOf("..",r+1));){const t=s[r-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===r&&"**"===s[r+1]?["."]:[];s.splice(r-1,2,...t),0===s.length&&s.push(""),r-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let s=e+1;s<t.length;s++){const i=this.partsMatch(t[e],t[s],!this.preserveMultipleSlashes);i&&(t[e]=i,t[s]=[])}return t.filter((t=>t.length))}partsMatch(t,e,s=!1){let i=0,r=0,n=[],o="";for(;i<t.length&&r<e.length;)if(t[i]===e[r])n.push("b"===o?e[r]:t[i]),i++,r++;else if(s&&"**"===t[i]&&e[r]===t[i+1])n.push(t[i]),i++;else if(s&&"**"===e[r]&&t[i]===e[r+1])n.push(e[r]),r++;else if("*"!==t[i]||!e[r]||!this.options.dot&&e[r].startsWith(".")||"**"===e[r]){if("*"!==e[r]||!t[i]||!this.options.dot&&t[i].startsWith(".")||"**"===t[i])return!1;if("a"===o)return!1;o="b",n.push(e[r]),i++,r++}else{if("b"===o)return!1;o="a",n.push(t[i]),i++,r++}return t.length===e.length&&n}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,s=0;for(let i=0;i<t.length&&"!"===t.charAt(i);i++)e=!e,s++;s&&(this.pattern=t.slice(s)),this.negate=e}matchOne(t,s,i=!1){const r=this.options;if(this.isWindows){const e="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),i=!e&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),r="string"==typeof s[0]&&/^[a-z]:$/i.test(s[0]),n=i?3:e?0:void 0,o=!r&&""===s[0]&&""===s[1]&&"?"===s[2]&&"string"==typeof s[3]&&/^[a-z]:$/i.test(s[3])?3:r?0:void 0;if("number"==typeof n&&"number"==typeof o){const[e,i]=[t[n],s[o]];e.toLowerCase()===i.toLowerCase()&&(s[o]=e,o>n?s=s.slice(o):n>o&&(t=t.slice(n)))}}const{optimizationLevel:n=1}=this.options;n>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:s}),this.debug("matchOne",t.length,s.length);for(var o=0,h=0,a=t.length,l=s.length;o<a&&h<l;o++,h++){this.debug("matchOne loop");var c=s[h],d=t[o];if(this.debug(s,c,d),!1===c)return!1;if(c===e.GLOBSTAR){this.debug("GLOBSTAR",[s,c,d]);var p=o,u=h+1;if(u===l){for(this.debug("** at the end");o<a;o++)if("."===t[o]||".."===t[o]||!r.dot&&"."===t[o].charAt(0))return!1;return!0}for(;p<a;){var f=t[p];if(this.debug("\nglobstar while",t,p,s,u,f),this.matchOne(t.slice(p),s.slice(u),i))return this.debug("globstar found match!",p,a,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",t,p,s,u);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!i||(this.debug("\n>>> no match, partial?",t,p,s,u),p!==a))}let n;if("string"==typeof c?(n=d===c,this.debug("string match",c,d,n)):(n=c.test(d),this.debug("pattern match",c,d,n)),!n)return!1}if(o===a&&h===l)return!0;if(o===a)return i;if(h===l)return o===a-1&&""===t[o];throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,n.assertValidPattern)(t);const s=this.options;if("**"===t)return e.GLOBSTAR;if(""===t)return"";let i,r=null;(i=t.match(b))?r=s.dot?S:v:(i=t.match(l))?r=(s.nocase?s.dot?u:p:s.dot?d:c)(i[1]):(i=t.match(k))?r=(s.nocase?s.dot?E:x:s.dot?L:T)(i):(i=t.match(f))?r=s.dot?m:g:(i=t.match(y))&&(r=w);const h=o.AST.fromGlob(t,this.options).toMMPattern();return r&&"object"==typeof h&&Reflect.defineProperty(h,"test",{value:r}),h}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const s=this.options,i=s.noglobstar?"[^/]*?":s.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(s.nocase?["i"]:[]);let n=t.map((t=>{const s=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))r.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===e.GLOBSTAR?e.GLOBSTAR:t._src}));return s.forEach(((t,r)=>{const n=s[r+1],o=s[r-1];t===e.GLOBSTAR&&o!==e.GLOBSTAR&&(void 0===o?void 0!==n&&n!==e.GLOBSTAR?s[r+1]="(?:\\/|"+i+"\\/)?"+n:s[r]=i:void 0===n?s[r-1]=o+"(?:\\/|"+i+")?":n!==e.GLOBSTAR&&(s[r-1]=o+"(?:\\/|\\/"+i+"\\/)"+n,s[r+1]=e.GLOBSTAR))})),s.filter((t=>t!==e.GLOBSTAR)).join("/")})).join("|");const[o,h]=t.length>1?["(?:",")"]:["",""];n="^"+o+n+h+"$",this.negate&&(n="^(?!"+n+").+$");try{this.regexp=new RegExp(n,[...r].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const s=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const r=this.set;this.debug(this.pattern,"set",r);let n=i[i.length-1];if(!n)for(let t=i.length-2;!n&&t>=0;t--)n=i[t];for(let t=0;t<r.length;t++){const o=r[t];let h=i;s.matchBase&&1===o.length&&(h=[n]);if(this.matchOne(h,o,e))return!!s.flipNegate||!this.negate}return!s.flipNegate&&this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}}e.Minimatch=_;var z=s(674);Object.defineProperty(e,"AST",{enumerable:!0,get:function(){return z.AST}});var D=s(363);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return D.escape}});var j=s(116);Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return j.unescape}}),e.minimatch.AST=o.AST,e.minimatch.Minimatch=_,e.minimatch.escape=h.escape,e.minimatch.unescape=a.unescape},756(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.glob=e.sync=e.iterate=e.iterateSync=e.stream=e.streamSync=e.Ignore=e.hasMagic=e.Glob=e.unescape=e.escape=void 0,e.globStreamSync=c,e.globStream=d,e.globSync=p,e.globIterateSync=f,e.globIterate=g;const i=s(722),r=s(876),n=s(46);var o=s(722);Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"unescape",{enumerable:!0,get:function(){return o.unescape}});var h=s(876);Object.defineProperty(e,"Glob",{enumerable:!0,get:function(){return h.Glob}});var a=s(46);Object.defineProperty(e,"hasMagic",{enumerable:!0,get:function(){return a.hasMagic}});var l=s(972);function c(t,e={}){return new r.Glob(t,e).streamSync()}function d(t,e={}){return new r.Glob(t,e).stream()}function p(t,e={}){return new r.Glob(t,e).walkSync()}async function u(t,e={}){return new r.Glob(t,e).walk()}function f(t,e={}){return new r.Glob(t,e).iterateSync()}function g(t,e={}){return new r.Glob(t,e).iterate()}Object.defineProperty(e,"Ignore",{enumerable:!0,get:function(){return l.Ignore}}),e.streamSync=c,e.stream=Object.assign(d,{sync:c}),e.iterateSync=f,e.iterate=Object.assign(g,{sync:f}),e.sync=Object.assign(p,{stream:c,iterate:f}),e.glob=Object.assign(u,{glob:u,globSync:p,sync:e.sync,globStream:d,stream:e.stream,globStreamSync:c,streamSync:e.streamSync,globIterate:g,iterate:e.iterate,globIterateSync:f,iterateSync:e.iterateSync,Glob:r.Glob,hasMagic:n.hasMagic,escape:i.escape,unescape:i.unescape}),e.glob.glob=e.glob},760(t){"use strict";t.exports=require("path")},800(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;const i=s(722);class r{store;constructor(t=new Map){this.store=t}copy(){return new r(new Map(this.store))}hasWalked(t,e){return this.store.get(t.fullpath())?.has(e.globString())}storeWalked(t,e){const s=t.fullpath(),i=this.store.get(s);i?i.add(e.globString()):this.store.set(s,new Set([e.globString()]))}}e.HasWalkedCache=r;class n{store=new Map;add(t,e,s){const i=(e?2:0)|(s?1:0),r=this.store.get(t);this.store.set(t,void 0===r?i:i&r)}entries(){return[...this.store.entries()].map((([t,e])=>[t,!!(2&e),!!(1&e)]))}}e.MatchRecord=n;class o{store=new Map;add(t,e){if(!t.canReaddir())return;const s=this.store.get(t);s?s.find((t=>t.globString()===e.globString()))||s.push(e):this.store.set(t,[e])}get(t){const e=this.store.get(t);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map((t=>[t,this.store.get(t)]))}keys(){return[...this.store.keys()].filter((t=>t.canReaddir()))}}e.SubWalks=o;class h{hasWalkedCache;matches=new n;subwalks=new o;patterns;follow;dot;opts;constructor(t,e){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=e?e.copy():new r}processPatterns(t,e){this.patterns=e;const s=e.map((e=>[t,e]));for(let[t,e]of s){this.hasWalkedCache.storeWalked(t,e);const s=e.root(),r=e.isAbsolute()&&!1!==this.opts.absolute;if(s){t=t.resolve("/"===s&&void 0!==this.opts.root?this.opts.root:s);const i=e.rest();if(!i){this.matches.add(t,!0,!1);continue}e=i}if(t.isENOENT())continue;let n,o,h=!1;for(;"string"==typeof(n=e.pattern())&&(o=e.rest());){const s=t.resolve(n);t=s,e=o,h=!0}if(n=e.pattern(),o=e.rest(),h){if(this.hasWalkedCache.hasWalked(t,e))continue;this.hasWalkedCache.storeWalked(t,e)}if("string"!=typeof n)if(n===i.GLOBSTAR){(!t.isSymbolicLink()||this.follow||e.checkFollowGlobstar())&&this.subwalks.add(t,e);const s=o?.pattern(),i=o?.rest();if(o&&(""!==s&&"."!==s||i)){if(".."===s){const e=t.parent||t;i?this.hasWalkedCache.hasWalked(e,i)||this.subwalks.add(e,i):this.matches.add(e,r,!0)}}else this.matches.add(t,r,""===s||"."===s)}else n instanceof RegExp&&this.subwalks.add(t,e);else{const e=".."===n||""===n||"."===n;this.matches.add(t.resolve(n),r,e)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new h(this.opts,this.hasWalkedCache)}filterEntries(t,e){const s=this.subwalks.get(t),r=this.child();for(const t of e)for(const e of s){const s=e.isAbsolute(),n=e.pattern(),o=e.rest();n===i.GLOBSTAR?r.testGlobstar(t,e,o,s):n instanceof RegExp?r.testRegExp(t,n,o,s):r.testString(t,n,o,s)}return r}testGlobstar(t,e,s,i){if(!this.dot&&t.name.startsWith(".")||(e.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,e):t.isSymbolicLink()&&(s&&e.checkFollowGlobstar()?this.subwalks.add(t,s):e.markFollowGlobstar()&&this.subwalks.add(t,e)))),s){const e=s.pattern();if("string"==typeof e&&".."!==e&&""!==e&&"."!==e)this.testString(t,e,s.rest(),i);else if(".."===e){const e=t.parent||t;this.subwalks.add(e,s)}else e instanceof RegExp&&this.testRegExp(t,e,s.rest(),i)}}testRegExp(t,e,s,i){e.test(t.name)&&(s?this.subwalks.add(t,s):this.matches.add(t,i,!1))}testString(t,e,s,i){t.isNamed(e)&&(s?this.subwalks.add(t,s):this.matches.add(t,i,!1))}}e.Processor=h},843(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;const s={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},i=t=>t.replace(/[[\]\\-]/g,"\\$&"),r=t=>t.join("");e.parseClass=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const o=[],h=[];let a=n+1,l=!1,c=!1,d=!1,p=!1,u=n,f="";t:for(;a<t.length;){const e=t.charAt(a);if("!"!==e&&"^"!==e||a!==n+1){if("]"===e&&l&&!d){u=a+1;break}if(l=!0,"\\"!==e||d){if("["===e&&!d)for(const[e,[i,r,l]]of Object.entries(s))if(t.startsWith(e,a)){if(f)return["$.",!1,t.length-n,!0];a+=e.length,l?h.push(i):o.push(i),c=c||r;continue t}d=!1,f?(e>f?o.push(i(f)+"-"+i(e)):e===f&&o.push(i(e)),f="",a++):t.startsWith("-]",a+1)?(o.push(i(e+"-")),a+=2):t.startsWith("-",a+1)?(f=e,a+=2):(o.push(i(e)),a++)}else d=!0,a++}else p=!0,a++}if(u<a)return["",!1,0,!1];if(!o.length&&!h.length)return["$.",!1,t.length-n,!0];if(0===h.length&&1===o.length&&/^\\?.$/.test(o[0])&&!p){const t=2===o[0].length?o[0].slice(-1):o[0];return[(g=t,g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,u-n,!1]}var g;const m="["+(p?"^":"")+r(o)+"]",y="["+(p?"":"^")+r(h)+"]";return[o.length&&h.length?"("+m+"|"+y+")":o.length?m:y,c,u-n,!0]}},876(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;const i=s(722),r=s(136),n=s(576),o=s(478),h=s(984),a="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";class l{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,r.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=!1!==e.includeChildMatches,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&void 0!==this.absolute)throw new Error("cannot set absolute and withFileTypes:true");if("string"==typeof t&&(t=[t]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(t=t.map((t=>t.replace(/\\/g,"/")))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");t=t.map((t=>t.includes("/")?t:`./**/${t}`))}if(this.pattern=t,this.platform=e.platform||a,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,void 0!==e.nocase&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{const t="win32"===e.platform?n.PathScurryWin32:"darwin"===e.platform?n.PathScurryDarwin:e.platform?n.PathScurryPosix:n.PathScurry;this.scurry=new t(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;const s="darwin"===this.platform||"win32"===this.platform,h={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},l=this.pattern.map((t=>new i.Minimatch(t,h))),[c,d]=l.reduce(((t,e)=>(t[0].push(...e.set),t[1].push(...e.globParts),t)),[[],[]]);this.patterns=c.map(((t,e)=>{const s=d[e];if(!s)throw new Error("invalid pattern object");return new o.Pattern(t,s,0,this.platform)}))}async walk(){return[...await new h.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new h.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new h.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new h.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}e.Glob=l},896(t){"use strict";t.exports=require("fs")},928(t,e,s){var i=s(505);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return m(function(t){return t.split("\\\\").join(r).split("\\{").join(n).split("\\}").join(o).split("\\,").join(h).split("\\.").join(a)}(t),!0).map(c)};var r="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",h="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function c(t){return t.split(r).join("\\").split(n).join("{").split(o).join("}").split(h).join(",").split(a).join(".")}function d(t){if(!t)return[""];var e=[],s=i("{","}",t);if(!s)return t.split(",");var r=s.pre,n=s.body,o=s.post,h=r.split(",");h[h.length-1]+="{"+n+"}";var a=d(o);return o.length&&(h[h.length-1]+=a.shift(),h.push.apply(h,a)),e.push.apply(e,h),e}function p(t){return"{"+t+"}"}function u(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var s=[],r=i("{","}",t);if(!r)return[t];var n=r.pre,h=r.post.length?m(r.post,!1):[""];if(/\$$/.test(r.pre))for(var a=0;a<h.length;a++){var c=n+"{"+r.body+"}"+h[a];s.push(c)}else{var y,w,b=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),S=b||v,k=r.body.indexOf(",")>=0;if(!S&&!k)return r.post.match(/,(?!,).*\}/)?m(t=r.pre+"{"+r.body+o+r.post):[t];if(S)y=r.body.split(/\.\./);else if(1===(y=d(r.body)).length&&1===(y=m(y[0],!1).map(p)).length)return h.map((function(t){return r.pre+y[0]+t}));if(S){var x=l(y[0]),E=l(y[1]),L=Math.max(y[0].length,y[1].length),T=3==y.length?Math.abs(l(y[2])):1,C=f;E<x&&(T*=-1,C=g);var M=y.some(u);w=[];for(var A=x;C(A,E);A+=T){var O;if(v)"\\"===(O=String.fromCharCode(A))&&(O="");else if(O=String(A),M){var P=L-O.length;if(P>0){var R=new Array(P+1).join("0");O=A<0?"-"+R+O.slice(1):R+O}}w.push(O)}}else{w=[];for(var F=0;F<y.length;F++)w.push.apply(w,m(y[F],!1))}for(F=0;F<w.length;F++)for(a=0;a<h.length;a++){c=n+w[F]+h[a];(!e||S||c)&&s.push(c)}}return s}},972(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;const i=s(722),r=s(478),n="object"==typeof process&&process&&"string"==typeof process.platform?process.platform:"linux";e.Ignore=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:e,nocase:s,noext:i,noglobstar:r,platform:o=n}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:e,nocase:s,noext:i,noglobstar:r,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(const e of t)this.add(e)}add(t){const e=new i.Minimatch(t,this.mmopts);for(let t=0;t<e.set.length;t++){const s=e.set[t],n=e.globParts[t];if(!s||!n)throw new Error("invalid pattern object");for(;"."===s[0]&&"."===n[0];)s.shift(),n.shift();const o=new r.Pattern(s,n,0,this.platform),h=new i.Minimatch(o.globString(),this.mmopts),a="**"===n[n.length-1],l=o.isAbsolute();l?this.absolute.push(h):this.relative.push(h),a&&(l?this.absoluteChildren.push(h):this.relativeChildren.push(h))}}ignored(t){const e=t.fullpath(),s=`${e}/`,i=t.relative()||".",r=`${i}/`;for(const t of this.relative)if(t.match(i)||t.match(r))return!0;for(const t of this.absolute)if(t.match(e)||t.match(s))return!0;return!1}childrenIgnored(t){const e=t.fullpath()+"/",s=(t.relative()||".")+"/";for(const t of this.relativeChildren)if(t.match(s))return!0;for(const t of this.absoluteChildren)if(t.match(e))return!0;return!1}}},984(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;const i=s(420),r=s(972),n=s(800);class o{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#ae=[];#le;#ce;signal;maxDepth;includeChildMatches;constructor(t,e,s){if(this.patterns=t,this.path=e,this.opts=s,this.#ce=s.posix||"win32"!==s.platform?"/":"\\",this.includeChildMatches=!1!==s.includeChildMatches,(s.ignore||!this.includeChildMatches)&&(this.#le=((t,e)=>"string"==typeof t?new r.Ignore([t],e):Array.isArray(t)?new r.Ignore(t,e):t)(s.ignore??[],s),!this.includeChildMatches&&"function"!=typeof this.#le.add)){throw new Error("cannot ignore child matches, ignore lacks add() method.")}this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener("abort",(()=>{this.#ae.length=0})))}#de(t){return this.seen.has(t)||!!this.#le?.ignored?.(t)}#pe(t){return!!this.#le?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;let t;for(this.paused=!1;!this.paused&&(t=this.#ae.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#ae.push(t):t())}async matchCheck(t,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=t.realpathCached()||await t.realpath(),!s)return;t=s}const i=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){const t=await i.realpath();t&&(t.isUnknown()||this.opts.stat)&&await t.lstat()}return this.matchCheckTest(i,e)}matchCheckTest(t,e){return!t||!(this.maxDepth===1/0||t.depth()<=this.maxDepth)||e&&!t.canReaddir()||this.opts.nodir&&t.isDirectory()||this.opts.nodir&&this.opts.follow&&t.isSymbolicLink()&&t.realpathCached()?.isDirectory()||this.#de(t)?void 0:t}matchCheckSync(t,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=t.realpathCached()||t.realpathSync(),!s)return;t=s}const i=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){const t=i.realpathSync();t&&(t?.isUnknown()||this.opts.stat)&&t.lstatSync()}return this.matchCheckTest(i,e)}matchFinish(t,e){if(this.#de(t))return;if(!this.includeChildMatches&&this.#le?.add){const e=`${t.relativePosix()}/**`;this.#le.add(e)}const s=void 0===this.opts.absolute?e:this.opts.absolute;this.seen.add(t);const i=this.opts.mark&&t.isDirectory()?this.#ce:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(s){const e=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(e+i)}else{const e=this.opts.posix?t.relativePosix():t.relative(),s=this.opts.dotRelative&&!e.startsWith(".."+this.#ce)?"."+this.#ce:"";this.matchEmit(e?s+e+i:"."+i)}}async match(t,e,s){const i=await this.matchCheck(t,s);i&&this.matchFinish(i,e)}matchSync(t,e,s){const i=this.matchCheckSync(t,s);i&&this.matchFinish(i,e)}walkCB(t,e,s){this.signal?.aborted&&s(),this.walkCB2(t,e,new n.Processor(this.opts),s)}walkCB2(t,e,s,i){if(this.#pe(t))return i();if(this.signal?.aborted&&i(),this.paused)return void this.onResume((()=>this.walkCB2(t,e,s,i)));s.processPatterns(t,e);let r=1;const n=()=>{0==--r&&i()};for(const[t,e,i]of s.matches.entries())this.#de(t)||(r++,this.match(t,e,i).then((()=>n())));for(const t of s.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;const e=t.readdirCached();t.calledReaddir()?this.walkCB3(t,e,s,n):t.readdirCB(((e,i)=>this.walkCB3(t,i,s,n)),!0)}n()}walkCB3(t,e,s,i){s=s.filterEntries(t,e);let r=1;const n=()=>{0==--r&&i()};for(const[t,e,i]of s.matches.entries())this.#de(t)||(r++,this.match(t,e,i).then((()=>n())));for(const[t,e]of s.subwalks.entries())r++,this.walkCB2(t,e,s.child(),n);n()}walkCBSync(t,e,s){this.signal?.aborted&&s(),this.walkCB2Sync(t,e,new n.Processor(this.opts),s)}walkCB2Sync(t,e,s,i){if(this.#pe(t))return i();if(this.signal?.aborted&&i(),this.paused)return void this.onResume((()=>this.walkCB2Sync(t,e,s,i)));s.processPatterns(t,e);let r=1;const n=()=>{0==--r&&i()};for(const[t,e,i]of s.matches.entries())this.#de(t)||this.matchSync(t,e,i);for(const t of s.subwalkTargets()){if(this.maxDepth!==1/0&&t.depth()>=this.maxDepth)continue;r++;const e=t.readdirSync();this.walkCB3Sync(t,e,s,n)}n()}walkCB3Sync(t,e,s,i){s=s.filterEntries(t,e);let r=1;const n=()=>{0==--r&&i()};for(const[t,e,i]of s.matches.entries())this.#de(t)||this.matchSync(t,e,i);for(const[t,e]of s.subwalks.entries())r++,this.walkCB2Sync(t,e,s.child(),n);n()}}e.GlobUtil=o;e.GlobWalker=class extends o{matches=new Set;constructor(t,e,s){super(t,e,s)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise(((t,e)=>{this.walkCB(this.path,this.patterns,(()=>{this.signal?.aborted?e(this.signal.reason):t(this.matches)}))})),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason})),this.matches}};e.GlobStream=class extends o{results;constructor(t,e,s){super(t,e,s),this.results=new i.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",(()=>this.resume())),this.results.on("resume",(()=>this.resume()))}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){const t=this.path;return t.isUnknown()?t.lstat().then((()=>{this.walkCB(t,this.patterns,(()=>this.results.end()))})):this.walkCB(t,this.patterns,(()=>this.results.end())),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,(()=>this.results.end())),this.results}}}},e={};var s=function s(i){var r=e[i];if(void 0!==r)return r.exports;var n=e[i]={exports:{}};return t[i].call(n.exports,n,n.exports,s),n.exports}(207),i=exports;for(var r in s)i[r]=s[r];s.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();
@@ -1 +0,0 @@
1
- (()=>{var t={23(t){"use strict";t.exports=require("util")},106(t,e,n){var o=n(140),r=process.cwd,c=null,i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return c||(c=r.call(process)),c};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var u=process.chdir;process.chdir=function(t){c=null,u.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,u)}t.exports=function(t){o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,n,r){t.open(e,o.O_WRONLY|o.O_SYMLINK,n,(function(e,o){e?r&&r(e):t.fchmod(o,n,(function(e){t.close(o,(function(t){r&&r(e||t)}))}))}))},t.lchmodSync=function(e,n){var r,c=t.openSync(e,o.O_WRONLY|o.O_SYMLINK,n),i=!0;try{r=t.fchmodSync(c,n),i=!1}finally{if(i)try{t.closeSync(c)}catch(t){}else t.closeSync(c)}return r}}(t);t.lutimes||function(t){o.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,n,r,c){t.open(e,o.O_SYMLINK,(function(e,o){e?c&&c(e):t.futimes(o,n,r,(function(e){t.close(o,(function(t){c&&c(e||t)}))}))}))},t.lutimesSync=function(e,n,r){var c,i=t.openSync(e,o.O_SYMLINK),u=!0;try{c=t.futimesSync(i,n,r),u=!1}finally{if(u)try{t.closeSync(i)}catch(t){}else t.closeSync(i)}return c}):t.futimes&&(t.lutimes=function(t,e,n,o){o&&process.nextTick(o)},t.lutimesSync=function(){})}(t);t.chown=r(t.chown),t.fchown=r(t.fchown),t.lchown=r(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=c(t.chownSync),t.fchownSync=c(t.fchownSync),t.lchownSync=c(t.lchownSync),t.chmodSync=n(t.chmodSync),t.fchmodSync=n(t.fchmodSync),t.lchmodSync=n(t.lchmodSync),t.stat=u(t.stat),t.fstat=u(t.fstat),t.lstat=u(t.lstat),t.statSync=s(t.statSync),t.fstatSync=s(t.fstatSync),t.lstatSync=s(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,n){n&&process.nextTick(n)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,n,o){o&&process.nextTick(o)},t.lchownSync=function(){});"win32"===i&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function n(n,o,r){var c=Date.now(),i=0;e(n,o,(function u(s){if(s&&("EACCES"===s.code||"EPERM"===s.code||"EBUSY"===s.code)&&Date.now()-c<6e4)return setTimeout((function(){t.stat(o,(function(t,c){t&&"ENOENT"===t.code?e(n,o,u):r(s)}))}),i),void(i<100&&(i+=10));r&&r(s)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.rename));function e(e){return e?function(n,o,r){return e.call(t,n,o,(function(t){f(t)&&(t=null),r&&r.apply(this,arguments)}))}:e}function n(e){return e?function(n,o){try{return e.call(t,n,o)}catch(t){if(!f(t))throw t}}:e}function r(e){return e?function(n,o,r,c){return e.call(t,n,o,r,(function(t){f(t)&&(t=null),c&&c.apply(this,arguments)}))}:e}function c(e){return e?function(n,o,r){try{return e.call(t,n,o,r)}catch(t){if(!f(t))throw t}}:e}function u(e){return e?function(n,o,r){function c(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof o&&(r=o,o=null),o?e.call(t,n,o,c):e.call(t,n,c)}:e}function s(e){return e?function(n,o){var r=o?e.call(t,n,o):e.call(t,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:e}function f(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function n(n,o,r,c,i,u){var s;if(u&&"function"==typeof u){var f=0;s=function(a,l,p){if(a&&"EAGAIN"===a.code&&f<10)return f++,e.call(t,n,o,r,c,i,s);u.apply(this,arguments)}}return e.call(t,n,o,r,c,i,s)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,e),n}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(a=t.readSync,function(e,n,o,r,c){for(var i=0;;)try{return a.call(t,e,n,o,r,c)}catch(t){if("EAGAIN"===t.code&&i<10){i++;continue}throw t}});var a}},140(t){"use strict";t.exports=require("constants")},203(t){"use strict";t.exports=require("stream")},283(t){"use strict";t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var n={__proto__:e(t)};else n=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})),n};var e=Object.getPrototypeOf||function(t){return t.__proto__}},488(t,e,n){t.exports=n(735)},613(t){"use strict";t.exports=require("assert")},735(t,e,n){var o,r,c=n(896),i=n(106),u=n(995),s=n(283),f=n(23);function a(t,e){Object.defineProperty(t,o,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(o=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(o="___graceful-fs.queue",r="___graceful-fs.previous");var l,p=function(){};if(f.debuglog?p=f.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var t=f.format.apply(f,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!c[o]){var h=global[o]||[];a(c,h),c.close=function(t){function e(e,n){return t.call(c,e,(function(t){t||m(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(e,r,{value:t}),e}(c.close),c.closeSync=function(t){function e(e){t.apply(c,arguments),m()}return Object.defineProperty(e,r,{value:t}),e}(c.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(c[o]),n(613).equal(c[o].length,0)}))}function d(t){i(t),t.gracefulify=d,t.createReadStream=function(e,n){return new t.ReadStream(e,n)},t.createWriteStream=function(e,n){return new t.WriteStream(e,n)};var e=t.readFile;t.readFile=function(t,n,o){"function"==typeof n&&(o=n,n=null);return function t(n,o,r,c){return e(n,o,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof r&&r.apply(this,arguments):y([t,[n,o,r],e,c||Date.now(),Date.now()])}))}(t,n,o)};var n=t.writeFile;t.writeFile=function(t,e,o,r){"function"==typeof o&&(r=o,o=null);return function t(e,o,r,c,i){return n(e,o,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,o,r,c],n,i||Date.now(),Date.now()])}))}(t,e,o,r)};var o=t.appendFile;o&&(t.appendFile=function(t,e,n,r){"function"==typeof n&&(r=n,n=null);return function t(e,n,r,c,i){return o(e,n,r,(function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,n,r,c],o,i||Date.now(),Date.now()])}))}(t,e,n,r)});var r=t.copyFile;r&&(t.copyFile=function(t,e,n,o){"function"==typeof n&&(o=n,n=0);return function t(e,n,o,c,i){return r(e,n,o,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof c&&c.apply(this,arguments):y([t,[e,n,o,c],r,i||Date.now(),Date.now()])}))}(t,e,n,o)});var c=t.readdir;t.readdir=function(t,e,n){"function"==typeof e&&(n=e,e=null);var o=s.test(process.version)?function(t,e,n,o){return c(t,r(t,e,n,o))}:function(t,e,n,o){return c(t,e,r(t,e,n,o))};return o(t,e,n);function r(t,e,n,r){return function(c,i){!c||"EMFILE"!==c.code&&"ENFILE"!==c.code?(i&&i.sort&&i.sort(),"function"==typeof n&&n.call(this,c,i)):y([o,[t,e,n],c,r||Date.now(),Date.now()])}}};var s=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var f=u(t);m=f.ReadStream,v=f.WriteStream}var a=t.ReadStream;a&&(m.prototype=Object.create(a.prototype),m.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,n){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n),t.read())}))});var l=t.WriteStream;l&&(v.prototype=Object.create(l.prototype),v.prototype.open=function(){var t=this;b(t.path,t.flags,t.mode,(function(e,n){e?(t.destroy(),t.emit("error",e)):(t.fd=n,t.emit("open",n))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(t){m=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return v},set:function(t){v=t},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var h=v;function m(t,e){return this instanceof m?(a.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function v(t,e){return this instanceof v?(l.apply(this,arguments),this):v.apply(Object.create(v.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return h},set:function(t){h=t},enumerable:!0,configurable:!0});var S=t.open;function b(t,e,n,o){return"function"==typeof n&&(o=n,n=null),function t(e,n,o,r,c){return S(e,n,o,(function(i,u){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof r&&r.apply(this,arguments):y([t,[e,n,o,r],i,c||Date.now(),Date.now()])}))}(t,e,n,o)}return t.open=b,t}function y(t){p("ENQUEUE",t[0].name,t[1]),c[o].push(t),v()}function m(){for(var t=Date.now(),e=0;e<c[o].length;++e)c[o][e].length>2&&(c[o][e][3]=t,c[o][e][4]=t);v()}function v(){if(clearTimeout(l),l=void 0,0!==c[o].length){var t=c[o].shift(),e=t[0],n=t[1],r=t[2],i=t[3],u=t[4];if(void 0===i)p("RETRY",e.name,n),e.apply(null,n);else if(Date.now()-i>=6e4){p("TIMEOUT",e.name,n);var s=n.pop();"function"==typeof s&&s.call(null,r)}else{var f=Date.now()-u,a=Math.max(u-i,1);f>=Math.min(1.2*a,100)?(p("RETRY",e.name,n),e.apply(null,n.concat([i]))):c[o].push(t)}void 0===l&&(l=setTimeout(v,0))}}global[o]||a(global,c[o]),t.exports=d(s(c)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!c.__patched&&(t.exports=d(c),c.__patched=!0)},896(t){"use strict";t.exports=require("fs")},995(t,e,n){var o=n(203).Stream;t.exports=function(t){return{ReadStream:function e(n,r){if(!(this instanceof e))return new e(n,r);o.call(this);var c=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var i=Object.keys(r),u=0,s=i.length;u<s;u++){var f=i[u];this[f]=r[f]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){c._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return c.emit("error",t),void(c.readable=!1);c.fd=e,c.emit("open",e),c._read()}))},WriteStream:function e(n,r){if(!(this instanceof e))return new e(n,r);o.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var c=Object.keys(r),i=0,u=c.length;i<u;i++){var s=c[i];this[s]=r[s]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}},e={};var n=function n(o){var r=e[o];if(void 0!==r)return r.exports;var c=e[o]={exports:{}};return t[o](c,c.exports,n),c.exports}(488),o=exports;for(var r in n)o[r]=n[r];n.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
@@ -1,39 +0,0 @@
1
- import type { CompilerSystem, Logger } from '../../internal/index';
2
- /**
3
- * Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
4
- * The NodeJS "process" object must be provided as a property in the first argument's object.
5
- * @returns a {@link Logger} object
6
- */
7
- export declare function createNodeLogger(): Logger;
8
- /**
9
- * Creates a "logger", based off of NodeJS APIs, that will be used by the compiler and dev-server.
10
- * The NodeJS "process" object must be provided as a property in the first argument's object.
11
- * @param c an object containing a `Process` for Stencil to use and a logger instanced created by {@link createNodeLogger}
12
- * @returns a {@link Logger} object
13
- * @deprecated Use {@link createNodeLogger} without parameters instead
14
- */
15
- export declare function createNodeLogger(c: {
16
- process: any;
17
- }): Logger;
18
- /**
19
- * Creates the "system", based off of NodeJS APIs, used by the compiler. This includes any and
20
- * all file system reads and writes using NodeJS. The compiler itself is unaware of Node's
21
- * `fs` module. Other system APIs include any use of `crypto` to hash content. The NodeJS
22
- * "process" object must be provided as a property in the first argument's object.
23
- * @param c an object containing a `Process` for Stencil to use and a logger instanced created by {@link createNodeLogger}
24
- * @returns a {@link CompilerSystem} object
25
- */
26
- export declare function createNodeSys(c: {
27
- process?: any;
28
- logger?: any;
29
- }): CompilerSystem;
30
- /**
31
- * Sets up the NodeJS process to be used by Stencil. This includes setting up the process's
32
- * `exit` and `uncaughtException` events to be handled by Stencil's logger.
33
- * @param c an object containing a `Process` for Stencil to use and a logger instanced created by {@link createNodeLogger}
34
- */
35
- export declare function setupNodeProcess(c: {
36
- process: any;
37
- logger: Logger;
38
- }): void;
39
- export { CompilerSystem, Logger };