socket 1.1.25 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/README.md +25 -83
  2. package/dist/bootstrap.js +213 -0
  3. package/package.json +25 -270
  4. package/CHANGELOG.md +0 -553
  5. package/LICENSE +0 -21
  6. package/bin/cli.js +0 -52
  7. package/bin/npm-cli.js +0 -29
  8. package/bin/npx-cli.js +0 -29
  9. package/bin/pnpm-cli.js +0 -29
  10. package/bin/yarn-cli.js +0 -29
  11. package/dist/cli.js +0 -14999
  12. package/dist/cli.js.map +0 -1
  13. package/dist/constants.js +0 -845
  14. package/dist/constants.js.map +0 -1
  15. package/dist/flags.js +0 -212
  16. package/dist/flags.js.map +0 -1
  17. package/dist/init.gradle +0 -250
  18. package/dist/npm-cli.js +0 -30
  19. package/dist/npm-cli.js.map +0 -1
  20. package/dist/npx-cli.js +0 -26
  21. package/dist/npx-cli.js.map +0 -1
  22. package/dist/pnpm-cli.js +0 -30
  23. package/dist/pnpm-cli.js.map +0 -1
  24. package/dist/shadow-npm-bin.js +0 -8
  25. package/dist/shadow-npm-bin.js.map +0 -1
  26. package/dist/shadow-npm-bin2.js +0 -102
  27. package/dist/shadow-npm-bin2.js.map +0 -1
  28. package/dist/shadow-npm-inject.js +0 -307
  29. package/dist/shadow-npm-inject.js.map +0 -1
  30. package/dist/shadow-npx-bin.js +0 -12
  31. package/dist/shadow-npx-bin.js.map +0 -1
  32. package/dist/shadow-pnpm-bin.js +0 -8
  33. package/dist/shadow-pnpm-bin.js.map +0 -1
  34. package/dist/shadow-pnpm-bin2.js +0 -300
  35. package/dist/shadow-pnpm-bin2.js.map +0 -1
  36. package/dist/shadow-yarn-bin.js +0 -96
  37. package/dist/shadow-yarn-bin.js.map +0 -1
  38. package/dist/socket-completion.bash +0 -237
  39. package/dist/tsconfig.dts.tsbuildinfo +0 -1
  40. package/dist/types/cli.d.mts +0 -3
  41. package/dist/types/cli.d.mts.map +0 -1
  42. package/dist/types/commands/analytics/cmd-analytics.d.mts +0 -10
  43. package/dist/types/commands/analytics/cmd-analytics.d.mts.map +0 -1
  44. package/dist/types/commands/analytics/fetch-org-analytics.d.mts +0 -8
  45. package/dist/types/commands/analytics/fetch-org-analytics.d.mts.map +0 -1
  46. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts +0 -8
  47. package/dist/types/commands/analytics/fetch-repo-analytics.d.mts.map +0 -1
  48. package/dist/types/commands/analytics/handle-analytics.d.mts +0 -10
  49. package/dist/types/commands/analytics/handle-analytics.d.mts.map +0 -1
  50. package/dist/types/commands/analytics/output-analytics.d.mts +0 -29
  51. package/dist/types/commands/analytics/output-analytics.d.mts.map +0 -1
  52. package/dist/types/commands/audit-log/cmd-audit-log.d.mts +0 -10
  53. package/dist/types/commands/audit-log/cmd-audit-log.d.mts.map +0 -1
  54. package/dist/types/commands/audit-log/fetch-audit-log.d.mts +0 -15
  55. package/dist/types/commands/audit-log/fetch-audit-log.d.mts.map +0 -1
  56. package/dist/types/commands/audit-log/handle-audit-log.d.mts +0 -9
  57. package/dist/types/commands/audit-log/handle-audit-log.d.mts.map +0 -1
  58. package/dist/types/commands/audit-log/output-audit-log.d.mts +0 -22
  59. package/dist/types/commands/audit-log/output-audit-log.d.mts.map +0 -1
  60. package/dist/types/commands/ci/cmd-ci.d.mts +0 -9
  61. package/dist/types/commands/ci/cmd-ci.d.mts.map +0 -1
  62. package/dist/types/commands/ci/fetch-default-org-slug.d.mts +0 -4
  63. package/dist/types/commands/ci/fetch-default-org-slug.d.mts.map +0 -1
  64. package/dist/types/commands/ci/handle-ci.d.mts +0 -2
  65. package/dist/types/commands/ci/handle-ci.d.mts.map +0 -1
  66. package/dist/types/commands/config/cmd-config-auto.d.mts +0 -10
  67. package/dist/types/commands/config/cmd-config-auto.d.mts.map +0 -1
  68. package/dist/types/commands/config/cmd-config-get.d.mts +0 -9
  69. package/dist/types/commands/config/cmd-config-get.d.mts.map +0 -1
  70. package/dist/types/commands/config/cmd-config-list.d.mts +0 -9
  71. package/dist/types/commands/config/cmd-config-list.d.mts.map +0 -1
  72. package/dist/types/commands/config/cmd-config-set.d.mts +0 -10
  73. package/dist/types/commands/config/cmd-config-set.d.mts.map +0 -1
  74. package/dist/types/commands/config/cmd-config-unset.d.mts +0 -10
  75. package/dist/types/commands/config/cmd-config-unset.d.mts.map +0 -1
  76. package/dist/types/commands/config/cmd-config.d.mts +0 -3
  77. package/dist/types/commands/config/cmd-config.d.mts.map +0 -1
  78. package/dist/types/commands/config/discover-config-value.d.mts +0 -3
  79. package/dist/types/commands/config/discover-config-value.d.mts.map +0 -1
  80. package/dist/types/commands/config/handle-config-auto.d.mts +0 -7
  81. package/dist/types/commands/config/handle-config-auto.d.mts.map +0 -1
  82. package/dist/types/commands/config/handle-config-get.d.mts +0 -7
  83. package/dist/types/commands/config/handle-config-get.d.mts.map +0 -1
  84. package/dist/types/commands/config/handle-config-set.d.mts +0 -8
  85. package/dist/types/commands/config/handle-config-set.d.mts.map +0 -1
  86. package/dist/types/commands/config/handle-config-unset.d.mts +0 -7
  87. package/dist/types/commands/config/handle-config-unset.d.mts.map +0 -1
  88. package/dist/types/commands/config/output-config-auto.d.mts +0 -4
  89. package/dist/types/commands/config/output-config-auto.d.mts.map +0 -1
  90. package/dist/types/commands/config/output-config-get.d.mts +0 -4
  91. package/dist/types/commands/config/output-config-get.d.mts.map +0 -1
  92. package/dist/types/commands/config/output-config-list.d.mts +0 -6
  93. package/dist/types/commands/config/output-config-list.d.mts.map +0 -1
  94. package/dist/types/commands/config/output-config-set.d.mts +0 -3
  95. package/dist/types/commands/config/output-config-set.d.mts.map +0 -1
  96. package/dist/types/commands/config/output-config-unset.d.mts +0 -3
  97. package/dist/types/commands/config/output-config-unset.d.mts.map +0 -1
  98. package/dist/types/commands/fix/cmd-fix.d.mts +0 -10
  99. package/dist/types/commands/fix/cmd-fix.d.mts.map +0 -1
  100. package/dist/types/commands/fix/coana-fix.d.mts +0 -6
  101. package/dist/types/commands/fix/coana-fix.d.mts.map +0 -1
  102. package/dist/types/commands/fix/env-helpers.d.mts +0 -26
  103. package/dist/types/commands/fix/env-helpers.d.mts.map +0 -1
  104. package/dist/types/commands/fix/git.d.mts +0 -13
  105. package/dist/types/commands/fix/git.d.mts.map +0 -1
  106. package/dist/types/commands/fix/handle-fix.d.mts +0 -20
  107. package/dist/types/commands/fix/handle-fix.d.mts.map +0 -1
  108. package/dist/types/commands/fix/output-fix-result.d.mts +0 -3
  109. package/dist/types/commands/fix/output-fix-result.d.mts.map +0 -1
  110. package/dist/types/commands/fix/pull-request.d.mts +0 -31
  111. package/dist/types/commands/fix/pull-request.d.mts.map +0 -1
  112. package/dist/types/commands/fix/types.d.mts +0 -21
  113. package/dist/types/commands/fix/types.d.mts.map +0 -1
  114. package/dist/types/commands/install/cmd-install-completion.d.mts +0 -9
  115. package/dist/types/commands/install/cmd-install-completion.d.mts.map +0 -1
  116. package/dist/types/commands/install/cmd-install.d.mts +0 -3
  117. package/dist/types/commands/install/cmd-install.d.mts.map +0 -1
  118. package/dist/types/commands/install/handle-install-completion.d.mts +0 -2
  119. package/dist/types/commands/install/handle-install-completion.d.mts.map +0 -1
  120. package/dist/types/commands/install/output-install-completion.d.mts +0 -12
  121. package/dist/types/commands/install/output-install-completion.d.mts.map +0 -1
  122. package/dist/types/commands/install/setup-tab-completion.d.mts +0 -13
  123. package/dist/types/commands/install/setup-tab-completion.d.mts.map +0 -1
  124. package/dist/types/commands/json/cmd-json.d.mts +0 -9
  125. package/dist/types/commands/json/cmd-json.d.mts.map +0 -1
  126. package/dist/types/commands/json/handle-cmd-json.d.mts +0 -2
  127. package/dist/types/commands/json/handle-cmd-json.d.mts.map +0 -1
  128. package/dist/types/commands/json/output-cmd-json.d.mts +0 -2
  129. package/dist/types/commands/json/output-cmd-json.d.mts.map +0 -1
  130. package/dist/types/commands/login/apply-login.d.mts +0 -2
  131. package/dist/types/commands/login/apply-login.d.mts.map +0 -1
  132. package/dist/types/commands/login/attempt-login.d.mts +0 -6
  133. package/dist/types/commands/login/attempt-login.d.mts.map +0 -1
  134. package/dist/types/commands/login/cmd-login.d.mts +0 -10
  135. package/dist/types/commands/login/cmd-login.d.mts.map +0 -1
  136. package/dist/types/commands/logout/apply-logout.d.mts +0 -2
  137. package/dist/types/commands/logout/apply-logout.d.mts.map +0 -1
  138. package/dist/types/commands/logout/attempt-logout.d.mts +0 -2
  139. package/dist/types/commands/logout/attempt-logout.d.mts.map +0 -1
  140. package/dist/types/commands/logout/cmd-logout.d.mts +0 -9
  141. package/dist/types/commands/logout/cmd-logout.d.mts.map +0 -1
  142. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts +0 -9
  143. package/dist/types/commands/manifest/cmd-manifest-auto.d.mts.map +0 -1
  144. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts +0 -9
  145. package/dist/types/commands/manifest/cmd-manifest-cdxgen.d.mts.map +0 -1
  146. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts +0 -9
  147. package/dist/types/commands/manifest/cmd-manifest-conda.d.mts.map +0 -1
  148. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts +0 -9
  149. package/dist/types/commands/manifest/cmd-manifest-gradle.d.mts.map +0 -1
  150. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts +0 -9
  151. package/dist/types/commands/manifest/cmd-manifest-kotlin.d.mts.map +0 -1
  152. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts +0 -9
  153. package/dist/types/commands/manifest/cmd-manifest-scala.d.mts.map +0 -1
  154. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts +0 -9
  155. package/dist/types/commands/manifest/cmd-manifest-setup.d.mts.map +0 -1
  156. package/dist/types/commands/manifest/cmd-manifest.d.mts +0 -9
  157. package/dist/types/commands/manifest/cmd-manifest.d.mts.map +0 -1
  158. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts +0 -8
  159. package/dist/types/commands/manifest/convert-conda-to-requirements.d.mts.map +0 -1
  160. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts +0 -7
  161. package/dist/types/commands/manifest/convert_gradle_to_maven.d.mts.map +0 -1
  162. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts +0 -8
  163. package/dist/types/commands/manifest/convert_sbt_to_maven.d.mts.map +0 -1
  164. package/dist/types/commands/manifest/detect-manifest-actions.d.mts +0 -13
  165. package/dist/types/commands/manifest/detect-manifest-actions.d.mts.map +0 -1
  166. package/dist/types/commands/manifest/generate_auto_manifest.d.mts +0 -9
  167. package/dist/types/commands/manifest/generate_auto_manifest.d.mts.map +0 -1
  168. package/dist/types/commands/manifest/handle-manifest-conda.d.mts +0 -9
  169. package/dist/types/commands/manifest/handle-manifest-conda.d.mts.map +0 -1
  170. package/dist/types/commands/manifest/handle-manifest-setup.d.mts +0 -2
  171. package/dist/types/commands/manifest/handle-manifest-setup.d.mts.map +0 -1
  172. package/dist/types/commands/manifest/output-manifest-setup.d.mts +0 -3
  173. package/dist/types/commands/manifest/output-manifest-setup.d.mts.map +0 -1
  174. package/dist/types/commands/manifest/output-requirements.d.mts +0 -6
  175. package/dist/types/commands/manifest/output-requirements.d.mts.map +0 -1
  176. package/dist/types/commands/manifest/run-cdxgen.d.mts +0 -6
  177. package/dist/types/commands/manifest/run-cdxgen.d.mts.map +0 -1
  178. package/dist/types/commands/manifest/setup-manifest-config.d.mts +0 -3
  179. package/dist/types/commands/manifest/setup-manifest-config.d.mts.map +0 -1
  180. package/dist/types/commands/npm/cmd-npm.d.mts +0 -10
  181. package/dist/types/commands/npm/cmd-npm.d.mts.map +0 -1
  182. package/dist/types/commands/npx/cmd-npx.d.mts +0 -9
  183. package/dist/types/commands/npx/cmd-npx.d.mts.map +0 -1
  184. package/dist/types/commands/oops/cmd-oops.d.mts +0 -9
  185. package/dist/types/commands/oops/cmd-oops.d.mts.map +0 -1
  186. package/dist/types/commands/optimize/add-overrides.d.mts +0 -20
  187. package/dist/types/commands/optimize/add-overrides.d.mts.map +0 -1
  188. package/dist/types/commands/optimize/apply-optimization.d.mts +0 -14
  189. package/dist/types/commands/optimize/apply-optimization.d.mts.map +0 -1
  190. package/dist/types/commands/optimize/cmd-optimize.d.mts +0 -10
  191. package/dist/types/commands/optimize/cmd-optimize.d.mts.map +0 -1
  192. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts +0 -5
  193. package/dist/types/commands/optimize/deps-includes-by-agent.d.mts.map +0 -1
  194. package/dist/types/commands/optimize/get-dependency-entries.d.mts +0 -3
  195. package/dist/types/commands/optimize/get-dependency-entries.d.mts.map +0 -1
  196. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts +0 -42
  197. package/dist/types/commands/optimize/get-overrides-by-agent.d.mts.map +0 -1
  198. package/dist/types/commands/optimize/handle-optimize.d.mts +0 -8
  199. package/dist/types/commands/optimize/handle-optimize.d.mts.map +0 -1
  200. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts +0 -8
  201. package/dist/types/commands/optimize/lockfile-includes-by-agent.d.mts.map +0 -1
  202. package/dist/types/commands/optimize/ls-by-agent.d.mts +0 -13
  203. package/dist/types/commands/optimize/ls-by-agent.d.mts.map +0 -1
  204. package/dist/types/commands/optimize/output-optimize-result.d.mts +0 -9
  205. package/dist/types/commands/optimize/output-optimize-result.d.mts.map +0 -1
  206. package/dist/types/commands/optimize/shared.d.mts +0 -2
  207. package/dist/types/commands/optimize/shared.d.mts.map +0 -1
  208. package/dist/types/commands/optimize/types.d.mts +0 -9
  209. package/dist/types/commands/optimize/types.d.mts.map +0 -1
  210. package/dist/types/commands/optimize/update-lockfile.d.mts +0 -11
  211. package/dist/types/commands/optimize/update-lockfile.d.mts.map +0 -1
  212. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts +0 -8
  213. package/dist/types/commands/optimize/update-manifest-by-agent.d.mts.map +0 -1
  214. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts +0 -10
  215. package/dist/types/commands/organization/cmd-organization-dependencies.d.mts.map +0 -1
  216. package/dist/types/commands/organization/cmd-organization-list.d.mts +0 -10
  217. package/dist/types/commands/organization/cmd-organization-list.d.mts.map +0 -1
  218. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts +0 -10
  219. package/dist/types/commands/organization/cmd-organization-policy-license.d.mts.map +0 -1
  220. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts +0 -10
  221. package/dist/types/commands/organization/cmd-organization-policy-security.d.mts.map +0 -1
  222. package/dist/types/commands/organization/cmd-organization-policy.d.mts +0 -3
  223. package/dist/types/commands/organization/cmd-organization-policy.d.mts.map +0 -1
  224. package/dist/types/commands/organization/cmd-organization-quota.d.mts +0 -9
  225. package/dist/types/commands/organization/cmd-organization-quota.d.mts.map +0 -1
  226. package/dist/types/commands/organization/cmd-organization.d.mts +0 -3
  227. package/dist/types/commands/organization/cmd-organization.d.mts.map +0 -1
  228. package/dist/types/commands/organization/fetch-dependencies.d.mts +0 -12
  229. package/dist/types/commands/organization/fetch-dependencies.d.mts.map +0 -1
  230. package/dist/types/commands/organization/fetch-license-policy.d.mts +0 -8
  231. package/dist/types/commands/organization/fetch-license-policy.d.mts.map +0 -1
  232. package/dist/types/commands/organization/fetch-organization-list.d.mts +0 -20
  233. package/dist/types/commands/organization/fetch-organization-list.d.mts.map +0 -1
  234. package/dist/types/commands/organization/fetch-quota.d.mts +0 -8
  235. package/dist/types/commands/organization/fetch-quota.d.mts.map +0 -1
  236. package/dist/types/commands/organization/fetch-security-policy.d.mts +0 -8
  237. package/dist/types/commands/organization/fetch-security-policy.d.mts.map +0 -1
  238. package/dist/types/commands/organization/handle-dependencies.d.mts +0 -7
  239. package/dist/types/commands/organization/handle-dependencies.d.mts.map +0 -1
  240. package/dist/types/commands/organization/handle-license-policy.d.mts +0 -3
  241. package/dist/types/commands/organization/handle-license-policy.d.mts.map +0 -1
  242. package/dist/types/commands/organization/handle-organization-list.d.mts +0 -3
  243. package/dist/types/commands/organization/handle-organization-list.d.mts.map +0 -1
  244. package/dist/types/commands/organization/handle-quota.d.mts +0 -3
  245. package/dist/types/commands/organization/handle-quota.d.mts.map +0 -1
  246. package/dist/types/commands/organization/handle-security-policy.d.mts +0 -3
  247. package/dist/types/commands/organization/handle-security-policy.d.mts.map +0 -1
  248. package/dist/types/commands/organization/output-dependencies.d.mts +0 -8
  249. package/dist/types/commands/organization/output-dependencies.d.mts.map +0 -1
  250. package/dist/types/commands/organization/output-license-policy.d.mts +0 -4
  251. package/dist/types/commands/organization/output-license-policy.d.mts.map +0 -1
  252. package/dist/types/commands/organization/output-organization-list.d.mts +0 -4
  253. package/dist/types/commands/organization/output-organization-list.d.mts.map +0 -1
  254. package/dist/types/commands/organization/output-quota.d.mts +0 -4
  255. package/dist/types/commands/organization/output-quota.d.mts.map +0 -1
  256. package/dist/types/commands/organization/output-security-policy.d.mts +0 -4
  257. package/dist/types/commands/organization/output-security-policy.d.mts.map +0 -1
  258. package/dist/types/commands/package/cmd-package-score.d.mts +0 -10
  259. package/dist/types/commands/package/cmd-package-score.d.mts.map +0 -1
  260. package/dist/types/commands/package/cmd-package-shallow.d.mts +0 -17
  261. package/dist/types/commands/package/cmd-package-shallow.d.mts.map +0 -1
  262. package/dist/types/commands/package/cmd-package.d.mts +0 -3
  263. package/dist/types/commands/package/cmd-package.d.mts.map +0 -1
  264. package/dist/types/commands/package/fetch-purl-deep-score.d.mts +0 -51
  265. package/dist/types/commands/package/fetch-purl-deep-score.d.mts.map +0 -1
  266. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts +0 -8
  267. package/dist/types/commands/package/fetch-purls-shallow-score.d.mts.map +0 -1
  268. package/dist/types/commands/package/handle-purl-deep-score.d.mts +0 -3
  269. package/dist/types/commands/package/handle-purl-deep-score.d.mts.map +0 -1
  270. package/dist/types/commands/package/handle-purls-shallow-score.d.mts +0 -6
  271. package/dist/types/commands/package/handle-purls-shallow-score.d.mts.map +0 -1
  272. package/dist/types/commands/package/output-purls-deep-score.d.mts +0 -5
  273. package/dist/types/commands/package/output-purls-deep-score.d.mts.map +0 -1
  274. package/dist/types/commands/package/output-purls-shallow-score.d.mts +0 -29
  275. package/dist/types/commands/package/output-purls-shallow-score.d.mts.map +0 -1
  276. package/dist/types/commands/package/parse-package-specifiers.d.mts +0 -9
  277. package/dist/types/commands/package/parse-package-specifiers.d.mts.map +0 -1
  278. package/dist/types/commands/patch/cmd-patch.d.mts +0 -10
  279. package/dist/types/commands/patch/cmd-patch.d.mts.map +0 -1
  280. package/dist/types/commands/patch/handle-patch.d.mts +0 -12
  281. package/dist/types/commands/patch/handle-patch.d.mts.map +0 -1
  282. package/dist/types/commands/patch/manifest-schema.d.mts +0 -34
  283. package/dist/types/commands/patch/manifest-schema.d.mts.map +0 -1
  284. package/dist/types/commands/patch/output-patch-result.d.mts +0 -5
  285. package/dist/types/commands/patch/output-patch-result.d.mts.map +0 -1
  286. package/dist/types/commands/pnpm/cmd-pnpm.d.mts +0 -10
  287. package/dist/types/commands/pnpm/cmd-pnpm.d.mts.map +0 -1
  288. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts +0 -9
  289. package/dist/types/commands/raw-npm/cmd-raw-npm.d.mts.map +0 -1
  290. package/dist/types/commands/raw-npm/run-raw-npm.d.mts +0 -2
  291. package/dist/types/commands/raw-npm/run-raw-npm.d.mts.map +0 -1
  292. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts +0 -9
  293. package/dist/types/commands/raw-npx/cmd-raw-npx.d.mts.map +0 -1
  294. package/dist/types/commands/raw-npx/run-raw-npx.d.mts +0 -2
  295. package/dist/types/commands/raw-npx/run-raw-npx.d.mts.map +0 -1
  296. package/dist/types/commands/repository/cmd-repository-create.d.mts +0 -10
  297. package/dist/types/commands/repository/cmd-repository-create.d.mts.map +0 -1
  298. package/dist/types/commands/repository/cmd-repository-del.d.mts +0 -10
  299. package/dist/types/commands/repository/cmd-repository-del.d.mts.map +0 -1
  300. package/dist/types/commands/repository/cmd-repository-list.d.mts +0 -10
  301. package/dist/types/commands/repository/cmd-repository-list.d.mts.map +0 -1
  302. package/dist/types/commands/repository/cmd-repository-update.d.mts +0 -10
  303. package/dist/types/commands/repository/cmd-repository-update.d.mts.map +0 -1
  304. package/dist/types/commands/repository/cmd-repository-view.d.mts +0 -10
  305. package/dist/types/commands/repository/cmd-repository-view.d.mts.map +0 -1
  306. package/dist/types/commands/repository/cmd-repository.d.mts +0 -3
  307. package/dist/types/commands/repository/cmd-repository.d.mts.map +0 -1
  308. package/dist/types/commands/repository/fetch-create-repo.d.mts +0 -16
  309. package/dist/types/commands/repository/fetch-create-repo.d.mts.map +0 -1
  310. package/dist/types/commands/repository/fetch-delete-repo.d.mts +0 -8
  311. package/dist/types/commands/repository/fetch-delete-repo.d.mts.map +0 -1
  312. package/dist/types/commands/repository/fetch-list-all-repos.d.mts +0 -10
  313. package/dist/types/commands/repository/fetch-list-all-repos.d.mts.map +0 -1
  314. package/dist/types/commands/repository/fetch-list-repos.d.mts +0 -15
  315. package/dist/types/commands/repository/fetch-list-repos.d.mts.map +0 -1
  316. package/dist/types/commands/repository/fetch-update-repo.d.mts +0 -16
  317. package/dist/types/commands/repository/fetch-update-repo.d.mts.map +0 -1
  318. package/dist/types/commands/repository/fetch-view-repo.d.mts +0 -8
  319. package/dist/types/commands/repository/fetch-view-repo.d.mts.map +0 -1
  320. package/dist/types/commands/repository/handle-create-repo.d.mts +0 -10
  321. package/dist/types/commands/repository/handle-create-repo.d.mts.map +0 -1
  322. package/dist/types/commands/repository/handle-delete-repo.d.mts +0 -3
  323. package/dist/types/commands/repository/handle-delete-repo.d.mts.map +0 -1
  324. package/dist/types/commands/repository/handle-list-repos.d.mts +0 -12
  325. package/dist/types/commands/repository/handle-list-repos.d.mts.map +0 -1
  326. package/dist/types/commands/repository/handle-update-repo.d.mts +0 -10
  327. package/dist/types/commands/repository/handle-update-repo.d.mts.map +0 -1
  328. package/dist/types/commands/repository/handle-view-repo.d.mts +0 -3
  329. package/dist/types/commands/repository/handle-view-repo.d.mts.map +0 -1
  330. package/dist/types/commands/repository/output-create-repo.d.mts +0 -4
  331. package/dist/types/commands/repository/output-create-repo.d.mts.map +0 -1
  332. package/dist/types/commands/repository/output-delete-repo.d.mts +0 -4
  333. package/dist/types/commands/repository/output-delete-repo.d.mts.map +0 -1
  334. package/dist/types/commands/repository/output-list-repos.d.mts +0 -5
  335. package/dist/types/commands/repository/output-list-repos.d.mts.map +0 -1
  336. package/dist/types/commands/repository/output-update-repo.d.mts +0 -4
  337. package/dist/types/commands/repository/output-update-repo.d.mts.map +0 -1
  338. package/dist/types/commands/repository/output-view-repo.d.mts +0 -4
  339. package/dist/types/commands/repository/output-view-repo.d.mts.map +0 -1
  340. package/dist/types/commands/repository/types.d.mts +0 -2
  341. package/dist/types/commands/repository/types.d.mts.map +0 -1
  342. package/dist/types/commands/scan/cmd-scan-create.d.mts +0 -10
  343. package/dist/types/commands/scan/cmd-scan-create.d.mts.map +0 -1
  344. package/dist/types/commands/scan/cmd-scan-del.d.mts +0 -10
  345. package/dist/types/commands/scan/cmd-scan-del.d.mts.map +0 -1
  346. package/dist/types/commands/scan/cmd-scan-diff.d.mts +0 -10
  347. package/dist/types/commands/scan/cmd-scan-diff.d.mts.map +0 -1
  348. package/dist/types/commands/scan/cmd-scan-github.d.mts +0 -10
  349. package/dist/types/commands/scan/cmd-scan-github.d.mts.map +0 -1
  350. package/dist/types/commands/scan/cmd-scan-list.d.mts +0 -4
  351. package/dist/types/commands/scan/cmd-scan-list.d.mts.map +0 -1
  352. package/dist/types/commands/scan/cmd-scan-metadata.d.mts +0 -4
  353. package/dist/types/commands/scan/cmd-scan-metadata.d.mts.map +0 -1
  354. package/dist/types/commands/scan/cmd-scan-reach.d.mts +0 -10
  355. package/dist/types/commands/scan/cmd-scan-reach.d.mts.map +0 -1
  356. package/dist/types/commands/scan/cmd-scan-report.d.mts +0 -4
  357. package/dist/types/commands/scan/cmd-scan-report.d.mts.map +0 -1
  358. package/dist/types/commands/scan/cmd-scan-setup.d.mts +0 -9
  359. package/dist/types/commands/scan/cmd-scan-setup.d.mts.map +0 -1
  360. package/dist/types/commands/scan/cmd-scan-view.d.mts +0 -4
  361. package/dist/types/commands/scan/cmd-scan-view.d.mts.map +0 -1
  362. package/dist/types/commands/scan/cmd-scan.d.mts +0 -3
  363. package/dist/types/commands/scan/cmd-scan.d.mts.map +0 -1
  364. package/dist/types/commands/scan/create-scan-from-github.d.mts +0 -12
  365. package/dist/types/commands/scan/create-scan-from-github.d.mts.map +0 -1
  366. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts +0 -20
  367. package/dist/types/commands/scan/fetch-create-org-full-scan.d.mts.map +0 -1
  368. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts +0 -8
  369. package/dist/types/commands/scan/fetch-delete-org-full-scan.d.mts.map +0 -1
  370. package/dist/types/commands/scan/fetch-diff-scan.d.mts +0 -8
  371. package/dist/types/commands/scan/fetch-diff-scan.d.mts.map +0 -1
  372. package/dist/types/commands/scan/fetch-list-scans.d.mts +0 -18
  373. package/dist/types/commands/scan/fetch-list-scans.d.mts.map +0 -1
  374. package/dist/types/commands/scan/fetch-report-data.d.mts +0 -17
  375. package/dist/types/commands/scan/fetch-report-data.d.mts.map +0 -1
  376. package/dist/types/commands/scan/fetch-scan-metadata.d.mts +0 -8
  377. package/dist/types/commands/scan/fetch-scan-metadata.d.mts.map +0 -1
  378. package/dist/types/commands/scan/fetch-scan.d.mts +0 -4
  379. package/dist/types/commands/scan/fetch-scan.d.mts.map +0 -1
  380. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts +0 -10
  381. package/dist/types/commands/scan/fetch-supported-scan-file-names.d.mts.map +0 -1
  382. package/dist/types/commands/scan/finalize-tier1-scan.d.mts +0 -12
  383. package/dist/types/commands/scan/finalize-tier1-scan.d.mts.map +0 -1
  384. package/dist/types/commands/scan/generate-report.d.mts +0 -44
  385. package/dist/types/commands/scan/generate-report.d.mts.map +0 -1
  386. package/dist/types/commands/scan/handle-create-github-scan.d.mts +0 -12
  387. package/dist/types/commands/scan/handle-create-github-scan.d.mts.map +0 -1
  388. package/dist/types/commands/scan/handle-create-new-scan.d.mts +0 -29
  389. package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +0 -1
  390. package/dist/types/commands/scan/handle-delete-scan.d.mts +0 -3
  391. package/dist/types/commands/scan/handle-delete-scan.d.mts.map +0 -1
  392. package/dist/types/commands/scan/handle-diff-scan.d.mts +0 -10
  393. package/dist/types/commands/scan/handle-diff-scan.d.mts.map +0 -1
  394. package/dist/types/commands/scan/handle-list-scans.d.mts +0 -13
  395. package/dist/types/commands/scan/handle-list-scans.d.mts.map +0 -1
  396. package/dist/types/commands/scan/handle-scan-config.d.mts +0 -2
  397. package/dist/types/commands/scan/handle-scan-config.d.mts.map +0 -1
  398. package/dist/types/commands/scan/handle-scan-metadata.d.mts +0 -3
  399. package/dist/types/commands/scan/handle-scan-metadata.d.mts.map +0 -1
  400. package/dist/types/commands/scan/handle-scan-reach.d.mts +0 -12
  401. package/dist/types/commands/scan/handle-scan-reach.d.mts.map +0 -1
  402. package/dist/types/commands/scan/handle-scan-report.d.mts +0 -14
  403. package/dist/types/commands/scan/handle-scan-report.d.mts.map +0 -1
  404. package/dist/types/commands/scan/handle-scan-view.d.mts +0 -3
  405. package/dist/types/commands/scan/handle-scan-view.d.mts.map +0 -1
  406. package/dist/types/commands/scan/output-create-new-scan.d.mts +0 -10
  407. package/dist/types/commands/scan/output-create-new-scan.d.mts.map +0 -1
  408. package/dist/types/commands/scan/output-delete-scan.d.mts +0 -4
  409. package/dist/types/commands/scan/output-delete-scan.d.mts.map +0 -1
  410. package/dist/types/commands/scan/output-diff-scan.d.mts +0 -8
  411. package/dist/types/commands/scan/output-diff-scan.d.mts.map +0 -1
  412. package/dist/types/commands/scan/output-list-scans.d.mts +0 -4
  413. package/dist/types/commands/scan/output-list-scans.d.mts.map +0 -1
  414. package/dist/types/commands/scan/output-scan-config-result.d.mts +0 -3
  415. package/dist/types/commands/scan/output-scan-config-result.d.mts.map +0 -1
  416. package/dist/types/commands/scan/output-scan-github.d.mts +0 -3
  417. package/dist/types/commands/scan/output-scan-github.d.mts.map +0 -1
  418. package/dist/types/commands/scan/output-scan-metadata.d.mts +0 -4
  419. package/dist/types/commands/scan/output-scan-metadata.d.mts.map +0 -1
  420. package/dist/types/commands/scan/output-scan-reach.d.mts +0 -7
  421. package/dist/types/commands/scan/output-scan-reach.d.mts.map +0 -1
  422. package/dist/types/commands/scan/output-scan-report.d.mts +0 -22
  423. package/dist/types/commands/scan/output-scan-report.d.mts.map +0 -1
  424. package/dist/types/commands/scan/output-scan-view.d.mts +0 -4
  425. package/dist/types/commands/scan/output-scan-view.d.mts.map +0 -1
  426. package/dist/types/commands/scan/perform-reachability-analysis.d.mts +0 -27
  427. package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +0 -1
  428. package/dist/types/commands/scan/reachability-flags.d.mts +0 -3
  429. package/dist/types/commands/scan/reachability-flags.d.mts.map +0 -1
  430. package/dist/types/commands/scan/setup-scan-config.d.mts +0 -3
  431. package/dist/types/commands/scan/setup-scan-config.d.mts.map +0 -1
  432. package/dist/types/commands/scan/stream-scan.d.mts +0 -7
  433. package/dist/types/commands/scan/stream-scan.d.mts.map +0 -1
  434. package/dist/types/commands/scan/suggest-org-slug.d.mts +0 -2
  435. package/dist/types/commands/scan/suggest-org-slug.d.mts.map +0 -1
  436. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts +0 -2
  437. package/dist/types/commands/scan/suggest-to-persist-orgslug.d.mts.map +0 -1
  438. package/dist/types/commands/scan/suggest_branch_slug.d.mts +0 -2
  439. package/dist/types/commands/scan/suggest_branch_slug.d.mts.map +0 -1
  440. package/dist/types/commands/scan/suggest_target.d.mts +0 -2
  441. package/dist/types/commands/scan/suggest_target.d.mts.map +0 -1
  442. package/dist/types/commands/scan/types.d.mts +0 -3
  443. package/dist/types/commands/scan/types.d.mts.map +0 -1
  444. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts +0 -10
  445. package/dist/types/commands/threat-feed/cmd-threat-feed.d.mts.map +0 -1
  446. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts +0 -13
  447. package/dist/types/commands/threat-feed/fetch-threat-feed.d.mts.map +0 -1
  448. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts +0 -13
  449. package/dist/types/commands/threat-feed/handle-threat-feed.d.mts.map +0 -1
  450. package/dist/types/commands/threat-feed/output-threat-feed.d.mts +0 -4
  451. package/dist/types/commands/threat-feed/output-threat-feed.d.mts.map +0 -1
  452. package/dist/types/commands/threat-feed/types.d.mts +0 -15
  453. package/dist/types/commands/threat-feed/types.d.mts.map +0 -1
  454. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts +0 -8
  455. package/dist/types/commands/uninstall/cmd-uninstall-completion.d.mts.map +0 -1
  456. package/dist/types/commands/uninstall/cmd-uninstall.d.mts +0 -3
  457. package/dist/types/commands/uninstall/cmd-uninstall.d.mts.map +0 -1
  458. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts +0 -2
  459. package/dist/types/commands/uninstall/handle-uninstall-completion.d.mts.map +0 -1
  460. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts +0 -6
  461. package/dist/types/commands/uninstall/output-uninstall-completion.d.mts.map +0 -1
  462. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts +0 -6
  463. package/dist/types/commands/uninstall/teardown-tab-completion.d.mts.map +0 -1
  464. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts +0 -2
  465. package/dist/types/commands/wrapper/add-socket-wrapper.d.mts.map +0 -1
  466. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts +0 -2
  467. package/dist/types/commands/wrapper/check-socket-wrapper-setup.d.mts.map +0 -1
  468. package/dist/types/commands/wrapper/cmd-wrapper.d.mts +0 -9
  469. package/dist/types/commands/wrapper/cmd-wrapper.d.mts.map +0 -1
  470. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts +0 -2
  471. package/dist/types/commands/wrapper/postinstall-wrapper.d.mts.map +0 -1
  472. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts +0 -2
  473. package/dist/types/commands/wrapper/remove-socket-wrapper.d.mts.map +0 -1
  474. package/dist/types/commands/yarn/cmd-yarn.d.mts +0 -10
  475. package/dist/types/commands/yarn/cmd-yarn.d.mts.map +0 -1
  476. package/dist/types/commands.d.mts +0 -203
  477. package/dist/types/commands.d.mts.map +0 -1
  478. package/dist/types/constants.d.mts +0 -299
  479. package/dist/types/constants.d.mts.map +0 -1
  480. package/dist/types/flags.d.mts +0 -18
  481. package/dist/types/flags.d.mts.map +0 -1
  482. package/dist/types/instrument-with-sentry.d.mts +0 -2
  483. package/dist/types/instrument-with-sentry.d.mts.map +0 -1
  484. package/dist/types/npm-cli.d.mts +0 -3
  485. package/dist/types/npm-cli.d.mts.map +0 -1
  486. package/dist/types/npx-cli.d.mts +0 -3
  487. package/dist/types/npx-cli.d.mts.map +0 -1
  488. package/dist/types/pnpm-cli.d.mts +0 -3
  489. package/dist/types/pnpm-cli.d.mts.map +0 -1
  490. package/dist/types/sea/bootstrap.d.mts +0 -2
  491. package/dist/types/sea/bootstrap.d.mts.map +0 -1
  492. package/dist/types/sea/build-sea.d.mts +0 -27
  493. package/dist/types/sea/build-sea.d.mts.map +0 -1
  494. package/dist/types/shadow/common.d.mts +0 -23
  495. package/dist/types/shadow/common.d.mts.map +0 -1
  496. package/dist/types/shadow/npm/arborist/index.d.mts +0 -8
  497. package/dist/types/shadow/npm/arborist/index.d.mts.map +0 -1
  498. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts +0 -35
  499. package/dist/types/shadow/npm/arborist/lib/arborist/index.d.mts.map +0 -1
  500. package/dist/types/shadow/npm/arborist/types.d.mts +0 -123
  501. package/dist/types/shadow/npm/arborist/types.d.mts.map +0 -1
  502. package/dist/types/shadow/npm/arborist-helpers.d.mts +0 -24
  503. package/dist/types/shadow/npm/arborist-helpers.d.mts.map +0 -1
  504. package/dist/types/shadow/npm/bin.d.mts +0 -5
  505. package/dist/types/shadow/npm/bin.d.mts.map +0 -1
  506. package/dist/types/shadow/npm/inject.d.mts +0 -2
  507. package/dist/types/shadow/npm/inject.d.mts.map +0 -1
  508. package/dist/types/shadow/npm/install.d.mts +0 -13
  509. package/dist/types/shadow/npm/install.d.mts.map +0 -1
  510. package/dist/types/shadow/npm/paths.d.mts +0 -6
  511. package/dist/types/shadow/npm/paths.d.mts.map +0 -1
  512. package/dist/types/shadow/npm-base.d.mts +0 -11
  513. package/dist/types/shadow/npm-base.d.mts.map +0 -1
  514. package/dist/types/shadow/npx/bin.d.mts +0 -5
  515. package/dist/types/shadow/npx/bin.d.mts.map +0 -1
  516. package/dist/types/shadow/pnpm/bin.d.mts +0 -10
  517. package/dist/types/shadow/pnpm/bin.d.mts.map +0 -1
  518. package/dist/types/shadow/stdio-ipc.d.mts +0 -7
  519. package/dist/types/shadow/stdio-ipc.d.mts.map +0 -1
  520. package/dist/types/shadow/yarn/bin.d.mts +0 -10
  521. package/dist/types/shadow/yarn/bin.d.mts.map +0 -1
  522. package/dist/types/test/json-output-validation.d.mts +0 -37
  523. package/dist/types/test/json-output-validation.d.mts.map +0 -1
  524. package/dist/types/test/mocks/socket-auth.d.mts +0 -88
  525. package/dist/types/test/mocks/socket-auth.d.mts.map +0 -1
  526. package/dist/types/types.d.mts +0 -29
  527. package/dist/types/types.d.mts.map +0 -1
  528. package/dist/types/utils/agent.d.mts +0 -12
  529. package/dist/types/utils/agent.d.mts.map +0 -1
  530. package/dist/types/utils/alert/artifact.d.mts +0 -21
  531. package/dist/types/utils/alert/artifact.d.mts.map +0 -1
  532. package/dist/types/utils/alert/fix.d.mts +0 -6
  533. package/dist/types/utils/alert/fix.d.mts.map +0 -1
  534. package/dist/types/utils/alert/severity.d.mts +0 -14
  535. package/dist/types/utils/alert/severity.d.mts.map +0 -1
  536. package/dist/types/utils/alerts-map.d.mts +0 -27
  537. package/dist/types/utils/alerts-map.d.mts.map +0 -1
  538. package/dist/types/utils/api.d.mts +0 -44
  539. package/dist/types/utils/api.d.mts.map +0 -1
  540. package/dist/types/utils/check-input.d.mts +0 -9
  541. package/dist/types/utils/check-input.d.mts.map +0 -1
  542. package/dist/types/utils/cmd.d.mts +0 -50
  543. package/dist/types/utils/cmd.d.mts.map +0 -1
  544. package/dist/types/utils/coana.d.mts +0 -2
  545. package/dist/types/utils/coana.d.mts.map +0 -1
  546. package/dist/types/utils/color-or-markdown.d.mts +0 -16
  547. package/dist/types/utils/color-or-markdown.d.mts.map +0 -1
  548. package/dist/types/utils/completion.d.mts +0 -11
  549. package/dist/types/utils/completion.d.mts.map +0 -1
  550. package/dist/types/utils/config.d.mts +0 -34
  551. package/dist/types/utils/config.d.mts.map +0 -1
  552. package/dist/types/utils/cve-to-ghsa.d.mts +0 -6
  553. package/dist/types/utils/cve-to-ghsa.d.mts.map +0 -1
  554. package/dist/types/utils/debug.d.mts +0 -45
  555. package/dist/types/utils/debug.d.mts.map +0 -1
  556. package/dist/types/utils/determine-org-slug.d.mts +0 -2
  557. package/dist/types/utils/determine-org-slug.d.mts.map +0 -1
  558. package/dist/types/utils/dlx-binary.d.mts +0 -58
  559. package/dist/types/utils/dlx-binary.d.mts.map +0 -1
  560. package/dist/types/utils/dlx-detection.d.mts +0 -29
  561. package/dist/types/utils/dlx-detection.d.mts.map +0 -1
  562. package/dist/types/utils/dlx.d.mts +0 -36
  563. package/dist/types/utils/dlx.d.mts.map +0 -1
  564. package/dist/types/utils/ecosystem.d.mts +0 -20
  565. package/dist/types/utils/ecosystem.d.mts.map +0 -1
  566. package/dist/types/utils/errors.d.mts +0 -62
  567. package/dist/types/utils/errors.d.mts.map +0 -1
  568. package/dist/types/utils/extract-names.d.mts +0 -15
  569. package/dist/types/utils/extract-names.d.mts.map +0 -1
  570. package/dist/types/utils/fail-msg-with-badge.d.mts +0 -2
  571. package/dist/types/utils/fail-msg-with-badge.d.mts.map +0 -1
  572. package/dist/types/utils/filter-config.d.mts +0 -5
  573. package/dist/types/utils/filter-config.d.mts.map +0 -1
  574. package/dist/types/utils/fs.d.mts +0 -8
  575. package/dist/types/utils/fs.d.mts.map +0 -1
  576. package/dist/types/utils/get-output-kind.d.mts +0 -3
  577. package/dist/types/utils/get-output-kind.d.mts.map +0 -1
  578. package/dist/types/utils/git.d.mts +0 -35
  579. package/dist/types/utils/git.d.mts.map +0 -1
  580. package/dist/types/utils/github.d.mts +0 -38
  581. package/dist/types/utils/github.d.mts.map +0 -1
  582. package/dist/types/utils/glob.d.mts +0 -15
  583. package/dist/types/utils/glob.d.mts.map +0 -1
  584. package/dist/types/utils/lockfile.d.mts +0 -2
  585. package/dist/types/utils/lockfile.d.mts.map +0 -1
  586. package/dist/types/utils/map-to-object.d.mts +0 -10
  587. package/dist/types/utils/map-to-object.d.mts.map +0 -1
  588. package/dist/types/utils/markdown.d.mts +0 -27
  589. package/dist/types/utils/markdown.d.mts.map +0 -1
  590. package/dist/types/utils/meow-with-subcommands.d.mts +0 -83
  591. package/dist/types/utils/meow-with-subcommands.d.mts.map +0 -1
  592. package/dist/types/utils/ms-at-home.d.mts +0 -2
  593. package/dist/types/utils/ms-at-home.d.mts.map +0 -1
  594. package/dist/types/utils/npm-config.d.mts +0 -14
  595. package/dist/types/utils/npm-config.d.mts.map +0 -1
  596. package/dist/types/utils/npm-package-arg.d.mts +0 -8
  597. package/dist/types/utils/npm-package-arg.d.mts.map +0 -1
  598. package/dist/types/utils/npm-paths.d.mts +0 -7
  599. package/dist/types/utils/npm-paths.d.mts.map +0 -1
  600. package/dist/types/utils/npm-spec.d.mts +0 -57
  601. package/dist/types/utils/npm-spec.d.mts.map +0 -1
  602. package/dist/types/utils/objects.d.mts +0 -3
  603. package/dist/types/utils/objects.d.mts.map +0 -1
  604. package/dist/types/utils/organization.d.mts +0 -5
  605. package/dist/types/utils/organization.d.mts.map +0 -1
  606. package/dist/types/utils/output-formatting.d.mts +0 -20
  607. package/dist/types/utils/output-formatting.d.mts.map +0 -1
  608. package/dist/types/utils/package-environment.d.mts +0 -57
  609. package/dist/types/utils/package-environment.d.mts.map +0 -1
  610. package/dist/types/utils/path-resolve.d.mts +0 -14
  611. package/dist/types/utils/path-resolve.d.mts.map +0 -1
  612. package/dist/types/utils/pnpm-paths.d.mts +0 -5
  613. package/dist/types/utils/pnpm-paths.d.mts.map +0 -1
  614. package/dist/types/utils/pnpm.d.mts +0 -11
  615. package/dist/types/utils/pnpm.d.mts.map +0 -1
  616. package/dist/types/utils/purl-to-ghsa.d.mts +0 -6
  617. package/dist/types/utils/purl-to-ghsa.d.mts.map +0 -1
  618. package/dist/types/utils/purl.d.mts +0 -71
  619. package/dist/types/utils/purl.d.mts.map +0 -1
  620. package/dist/types/utils/requirements.d.mts +0 -125
  621. package/dist/types/utils/requirements.d.mts.map +0 -1
  622. package/dist/types/utils/sdk.d.mts +0 -17
  623. package/dist/types/utils/sdk.d.mts.map +0 -1
  624. package/dist/types/utils/semver.d.mts +0 -7
  625. package/dist/types/utils/semver.d.mts.map +0 -1
  626. package/dist/types/utils/serialize-result-json.d.mts +0 -5
  627. package/dist/types/utils/serialize-result-json.d.mts.map +0 -1
  628. package/dist/types/utils/shadow-links.d.mts +0 -5
  629. package/dist/types/utils/shadow-links.d.mts.map +0 -1
  630. package/dist/types/utils/socket-json.d.mts +0 -59
  631. package/dist/types/utils/socket-json.d.mts.map +0 -1
  632. package/dist/types/utils/socket-package-alert.d.mts +0 -80
  633. package/dist/types/utils/socket-package-alert.d.mts.map +0 -1
  634. package/dist/types/utils/socket-url.d.mts +0 -8
  635. package/dist/types/utils/socket-url.d.mts.map +0 -1
  636. package/dist/types/utils/spec.d.mts +0 -5
  637. package/dist/types/utils/spec.d.mts.map +0 -1
  638. package/dist/types/utils/strings.d.mts +0 -14
  639. package/dist/types/utils/strings.d.mts.map +0 -1
  640. package/dist/types/utils/terminal-link.d.mts +0 -52
  641. package/dist/types/utils/terminal-link.d.mts.map +0 -1
  642. package/dist/types/utils/tildify.d.mts +0 -2
  643. package/dist/types/utils/tildify.d.mts.map +0 -1
  644. package/dist/types/utils/translations.d.mts +0 -617
  645. package/dist/types/utils/translations.d.mts.map +0 -1
  646. package/dist/types/utils/walk-nested-map.d.mts +0 -7
  647. package/dist/types/utils/walk-nested-map.d.mts.map +0 -1
  648. package/dist/types/utils/yarn-paths.d.mts +0 -5
  649. package/dist/types/utils/yarn-paths.d.mts.map +0 -1
  650. package/dist/types/utils/yarn-version.d.mts +0 -2
  651. package/dist/types/utils/yarn-version.d.mts.map +0 -1
  652. package/dist/types/yarn-cli.d.mts +0 -3
  653. package/dist/types/yarn-cli.d.mts.map +0 -1
  654. package/dist/utils.js +0 -6146
  655. package/dist/utils.js.map +0 -1
  656. package/dist/vendor.js +0 -162074
  657. package/dist/yarn-cli.js +0 -30
  658. package/dist/yarn-cli.js.map +0 -1
  659. package/external/@socketsecurity/registry/LICENSE +0 -21
  660. package/external/@socketsecurity/registry/README.md +0 -9
  661. package/external/@socketsecurity/registry/extensions.json +0 -28
  662. package/external/@socketsecurity/registry/external/@inquirer/confirm.js +0 -3165
  663. package/external/@socketsecurity/registry/external/@inquirer/input.js +0 -3202
  664. package/external/@socketsecurity/registry/external/@inquirer/password.js +0 -3307
  665. package/external/@socketsecurity/registry/external/@inquirer/search.js +0 -3519
  666. package/external/@socketsecurity/registry/external/@inquirer/select.js +0 -3655
  667. package/external/@socketsecurity/registry/external/@npmcli/package-json/index.js +0 -21406
  668. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/read-package.js +0 -183
  669. package/external/@socketsecurity/registry/external/@npmcli/package-json/lib/sort.js +0 -274
  670. package/external/@socketsecurity/registry/external/@npmcli/promise-spawn.js +0 -704
  671. package/external/@socketsecurity/registry/external/@socketregistry/is-unicode-supported.js +0 -54
  672. package/external/@socketsecurity/registry/external/@socketregistry/packageurl-js.js +0 -4516
  673. package/external/@socketsecurity/registry/external/@socketregistry/yocto-spinner.js +0 -453
  674. package/external/@socketsecurity/registry/external/@yarnpkg/extensions.js +0 -1406
  675. package/external/@socketsecurity/registry/external/browserslist.js +0 -20496
  676. package/external/@socketsecurity/registry/external/cacache.js +0 -16208
  677. package/external/@socketsecurity/registry/external/debug.js +0 -1163
  678. package/external/@socketsecurity/registry/external/fast-glob.js +0 -7994
  679. package/external/@socketsecurity/registry/external/fast-sort.js +0 -181
  680. package/external/@socketsecurity/registry/external/libnpmpack.js +0 -106271
  681. package/external/@socketsecurity/registry/external/make-fetch-happen.js +0 -38997
  682. package/external/@socketsecurity/registry/external/normalize-package-data.js +0 -5343
  683. package/external/@socketsecurity/registry/external/npm-package-arg.js +0 -5773
  684. package/external/@socketsecurity/registry/external/pacote.js +0 -74109
  685. package/external/@socketsecurity/registry/external/picomatch.js +0 -2307
  686. package/external/@socketsecurity/registry/external/semver.js +0 -2618
  687. package/external/@socketsecurity/registry/external/signal-exit.js +0 -336
  688. package/external/@socketsecurity/registry/external/spdx-correct.js +0 -1457
  689. package/external/@socketsecurity/registry/external/spdx-expression-parse.js +0 -1043
  690. package/external/@socketsecurity/registry/external/streaming-iterables.js +0 -326
  691. package/external/@socketsecurity/registry/external/validate-npm-package-name.js +0 -108
  692. package/external/@socketsecurity/registry/external/which.js +0 -405
  693. package/external/@socketsecurity/registry/external/yoctocolors-cjs.js +0 -101
  694. package/external/@socketsecurity/registry/index.js +0 -31
  695. package/external/@socketsecurity/registry/lib/agent.js +0 -390
  696. package/external/@socketsecurity/registry/lib/arrays.js +0 -89
  697. package/external/@socketsecurity/registry/lib/bin.js +0 -650
  698. package/external/@socketsecurity/registry/lib/constants/abort-controller.js +0 -15
  699. package/external/@socketsecurity/registry/lib/constants/abort-signal.js +0 -27
  700. package/external/@socketsecurity/registry/lib/constants/at-latest.js +0 -3
  701. package/external/@socketsecurity/registry/lib/constants/biome-json.js +0 -3
  702. package/external/@socketsecurity/registry/lib/constants/bun-lock.js +0 -3
  703. package/external/@socketsecurity/registry/lib/constants/bun-lockb.js +0 -3
  704. package/external/@socketsecurity/registry/lib/constants/bun.js +0 -3
  705. package/external/@socketsecurity/registry/lib/constants/ci.js +0 -3
  706. package/external/@socketsecurity/registry/lib/constants/column-limit.js +0 -3
  707. package/external/@socketsecurity/registry/lib/constants/copy-left-licenses.js +0 -27
  708. package/external/@socketsecurity/registry/lib/constants/darwin.js +0 -3
  709. package/external/@socketsecurity/registry/lib/constants/dot-git-dir.js +0 -3
  710. package/external/@socketsecurity/registry/lib/constants/dot-package-lock-json.js +0 -3
  711. package/external/@socketsecurity/registry/lib/constants/dot-socket-dir.js +0 -3
  712. package/external/@socketsecurity/registry/lib/constants/empty-file.js +0 -3
  713. package/external/@socketsecurity/registry/lib/constants/empty-value.js +0 -3
  714. package/external/@socketsecurity/registry/lib/constants/env.js +0 -59
  715. package/external/@socketsecurity/registry/lib/constants/eslint-config-js.js +0 -3
  716. package/external/@socketsecurity/registry/lib/constants/esnext.js +0 -3
  717. package/external/@socketsecurity/registry/lib/constants/exec-path.js +0 -3
  718. package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +0 -3
  719. package/external/@socketsecurity/registry/lib/constants/ext-cmd.js +0 -3
  720. package/external/@socketsecurity/registry/lib/constants/ext-cts.js +0 -3
  721. package/external/@socketsecurity/registry/lib/constants/ext-dts.js +0 -3
  722. package/external/@socketsecurity/registry/lib/constants/ext-js.js +0 -3
  723. package/external/@socketsecurity/registry/lib/constants/ext-json.js +0 -3
  724. package/external/@socketsecurity/registry/lib/constants/ext-lock.js +0 -3
  725. package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +0 -3
  726. package/external/@socketsecurity/registry/lib/constants/ext-md.js +0 -3
  727. package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +0 -3
  728. package/external/@socketsecurity/registry/lib/constants/ext-mts.js +0 -3
  729. package/external/@socketsecurity/registry/lib/constants/ext-ps1.js +0 -3
  730. package/external/@socketsecurity/registry/lib/constants/ext-yaml.js +0 -3
  731. package/external/@socketsecurity/registry/lib/constants/ext-yml.js +0 -3
  732. package/external/@socketsecurity/registry/lib/constants/extensions-json.js +0 -3
  733. package/external/@socketsecurity/registry/lib/constants/extensions.js +0 -3
  734. package/external/@socketsecurity/registry/lib/constants/get-ipc.js +0 -10
  735. package/external/@socketsecurity/registry/lib/constants/gitignore.js +0 -3
  736. package/external/@socketsecurity/registry/lib/constants/index.js +0 -139
  737. package/external/@socketsecurity/registry/lib/constants/ipc-handler.js +0 -19
  738. package/external/@socketsecurity/registry/lib/constants/ipc-object.js +0 -6
  739. package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +0 -47
  740. package/external/@socketsecurity/registry/lib/constants/ipc-target.js +0 -3
  741. package/external/@socketsecurity/registry/lib/constants/k-internals-symbol.js +0 -3
  742. package/external/@socketsecurity/registry/lib/constants/latest.js +0 -3
  743. package/external/@socketsecurity/registry/lib/constants/license-glob-recursive.js +0 -3
  744. package/external/@socketsecurity/registry/lib/constants/license-glob.js +0 -3
  745. package/external/@socketsecurity/registry/lib/constants/license-original-glob-recursive.js +0 -3
  746. package/external/@socketsecurity/registry/lib/constants/license-original-glob.js +0 -3
  747. package/external/@socketsecurity/registry/lib/constants/license-original.js +0 -3
  748. package/external/@socketsecurity/registry/lib/constants/license.js +0 -3
  749. package/external/@socketsecurity/registry/lib/constants/lifecycle-script-names.js +0 -18
  750. package/external/@socketsecurity/registry/lib/constants/loop-sentinel.js +0 -3
  751. package/external/@socketsecurity/registry/lib/constants/maintained-node-versions.js +0 -47
  752. package/external/@socketsecurity/registry/lib/constants/manifest-json.js +0 -3
  753. package/external/@socketsecurity/registry/lib/constants/mit.js +0 -3
  754. package/external/@socketsecurity/registry/lib/constants/node-auth-token.js +0 -3
  755. package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +0 -9
  756. package/external/@socketsecurity/registry/lib/constants/node-env.js +0 -3
  757. package/external/@socketsecurity/registry/lib/constants/node-harden-flags.js +0 -29
  758. package/external/@socketsecurity/registry/lib/constants/node-modules-glob-recursive.js +0 -3
  759. package/external/@socketsecurity/registry/lib/constants/node-modules.js +0 -3
  760. package/external/@socketsecurity/registry/lib/constants/node-no-warnings-flags.js +0 -16
  761. package/external/@socketsecurity/registry/lib/constants/node-version.js +0 -3
  762. package/external/@socketsecurity/registry/lib/constants/npm-exec-path.js +0 -5
  763. package/external/@socketsecurity/registry/lib/constants/npm-real-exec-path.js +0 -6
  764. package/external/@socketsecurity/registry/lib/constants/npm-shrinkwrap-json.js +0 -3
  765. package/external/@socketsecurity/registry/lib/constants/npm.js +0 -3
  766. package/external/@socketsecurity/registry/lib/constants/npx.js +0 -3
  767. package/external/@socketsecurity/registry/lib/constants/overrides.js +0 -3
  768. package/external/@socketsecurity/registry/lib/constants/package-default-node-range.js +0 -6
  769. package/external/@socketsecurity/registry/lib/constants/package-default-socket-categories.js +0 -3
  770. package/external/@socketsecurity/registry/lib/constants/package-default-version.js +0 -3
  771. package/external/@socketsecurity/registry/lib/constants/package-extensions.js +0 -47
  772. package/external/@socketsecurity/registry/lib/constants/package-json.js +0 -3
  773. package/external/@socketsecurity/registry/lib/constants/package-lock-json.js +0 -3
  774. package/external/@socketsecurity/registry/lib/constants/packument-cache.js +0 -3
  775. package/external/@socketsecurity/registry/lib/constants/pacote-cache-path.js +0 -9
  776. package/external/@socketsecurity/registry/lib/constants/pnpm-exec-path.js +0 -5
  777. package/external/@socketsecurity/registry/lib/constants/pnpm-lock-yaml.js +0 -3
  778. package/external/@socketsecurity/registry/lib/constants/pnpm.js +0 -3
  779. package/external/@socketsecurity/registry/lib/constants/pre-commit.js +0 -3
  780. package/external/@socketsecurity/registry/lib/constants/readme-glob-recursive.js +0 -3
  781. package/external/@socketsecurity/registry/lib/constants/readme-glob.js +0 -3
  782. package/external/@socketsecurity/registry/lib/constants/readme-md.js +0 -3
  783. package/external/@socketsecurity/registry/lib/constants/registry-scope-delimiter.js +0 -3
  784. package/external/@socketsecurity/registry/lib/constants/registry.js +0 -3
  785. package/external/@socketsecurity/registry/lib/constants/resolutions.js +0 -3
  786. package/external/@socketsecurity/registry/lib/constants/socket-github-org.js +0 -3
  787. package/external/@socketsecurity/registry/lib/constants/socket-ipc-handshake.js +0 -3
  788. package/external/@socketsecurity/registry/lib/constants/socket-override-scope.js +0 -3
  789. package/external/@socketsecurity/registry/lib/constants/socket-public-api-token.js +0 -3
  790. package/external/@socketsecurity/registry/lib/constants/socket-registry-npm-org.js +0 -3
  791. package/external/@socketsecurity/registry/lib/constants/socket-registry-package-name.js +0 -3
  792. package/external/@socketsecurity/registry/lib/constants/socket-registry-repo-name.js +0 -3
  793. package/external/@socketsecurity/registry/lib/constants/socket-registry-scope.js +0 -3
  794. package/external/@socketsecurity/registry/lib/constants/socket-security-scope.js +0 -3
  795. package/external/@socketsecurity/registry/lib/constants/spinner.js +0 -4
  796. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-api.js +0 -8
  797. package/external/@socketsecurity/registry/lib/constants/supports-node-compile-cache-env-var.js +0 -8
  798. package/external/@socketsecurity/registry/lib/constants/supports-node-disable-warning-flag.js +0 -8
  799. package/external/@socketsecurity/registry/lib/constants/supports-node-permission-flag.js +0 -8
  800. package/external/@socketsecurity/registry/lib/constants/supports-node-require-module.js +0 -3
  801. package/external/@socketsecurity/registry/lib/constants/supports-node-run.js +0 -8
  802. package/external/@socketsecurity/registry/lib/constants/supports-process-send.js +0 -5
  803. package/external/@socketsecurity/registry/lib/constants/ts-libs-available.js +0 -22
  804. package/external/@socketsecurity/registry/lib/constants/ts-types-available.js +0 -3
  805. package/external/@socketsecurity/registry/lib/constants/tsconfig-json.js +0 -3
  806. package/external/@socketsecurity/registry/lib/constants/undefined-token.js +0 -3
  807. package/external/@socketsecurity/registry/lib/constants/unknown-error.js +0 -3
  808. package/external/@socketsecurity/registry/lib/constants/unknown-value.js +0 -3
  809. package/external/@socketsecurity/registry/lib/constants/unlicenced.js +0 -3
  810. package/external/@socketsecurity/registry/lib/constants/unlicensed.js +0 -3
  811. package/external/@socketsecurity/registry/lib/constants/utf8.js +0 -3
  812. package/external/@socketsecurity/registry/lib/constants/vitest.js +0 -3
  813. package/external/@socketsecurity/registry/lib/constants/vlt-lock-json.js +0 -3
  814. package/external/@socketsecurity/registry/lib/constants/vlt.js +0 -3
  815. package/external/@socketsecurity/registry/lib/constants/win32.js +0 -3
  816. package/external/@socketsecurity/registry/lib/constants/yarn-berry.js +0 -3
  817. package/external/@socketsecurity/registry/lib/constants/yarn-classic.js +0 -3
  818. package/external/@socketsecurity/registry/lib/constants/yarn-exec-path.js +0 -5
  819. package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +0 -3
  820. package/external/@socketsecurity/registry/lib/constants/yarn.js +0 -3
  821. package/external/@socketsecurity/registry/lib/debug.js +0 -264
  822. package/external/@socketsecurity/registry/lib/env.js +0 -62
  823. package/external/@socketsecurity/registry/lib/fs.js +0 -556
  824. package/external/@socketsecurity/registry/lib/functions.js +0 -20
  825. package/external/@socketsecurity/registry/lib/globs.js +0 -145
  826. package/external/@socketsecurity/registry/lib/json.js +0 -69
  827. package/external/@socketsecurity/registry/lib/logger.js +0 -534
  828. package/external/@socketsecurity/registry/lib/objects.js +0 -422
  829. package/external/@socketsecurity/registry/lib/packages.js +0 -1376
  830. package/external/@socketsecurity/registry/lib/path.js +0 -231
  831. package/external/@socketsecurity/registry/lib/promises.js +0 -286
  832. package/external/@socketsecurity/registry/lib/prompts.js +0 -63
  833. package/external/@socketsecurity/registry/lib/regexps.js +0 -23
  834. package/external/@socketsecurity/registry/lib/sorts.js +0 -70
  835. package/external/@socketsecurity/registry/lib/spawn.js +0 -252
  836. package/external/@socketsecurity/registry/lib/spinner.js +0 -205
  837. package/external/@socketsecurity/registry/lib/streams.js +0 -84
  838. package/external/@socketsecurity/registry/lib/strings.js +0 -235
  839. package/external/@socketsecurity/registry/lib/url.js +0 -68
  840. package/external/@socketsecurity/registry/lib/words.js +0 -45
  841. package/external/@socketsecurity/registry/manifest.json +0 -1875
  842. package/external/blessed/LICENSE +0 -20
  843. package/external/blessed/README.md +0 -2421
  844. package/external/blessed/lib/alias.js +0 -528
  845. package/external/blessed/lib/blessed.js +0 -34
  846. package/external/blessed/lib/colors.js +0 -532
  847. package/external/blessed/lib/events.js +0 -191
  848. package/external/blessed/lib/gpmclient.js +0 -223
  849. package/external/blessed/lib/helpers.js +0 -167
  850. package/external/blessed/lib/keys.js +0 -341
  851. package/external/blessed/lib/program.js +0 -4297
  852. package/external/blessed/lib/tput.js +0 -3020
  853. package/external/blessed/lib/unicode.js +0 -792
  854. package/external/blessed/lib/widget.js +0 -62
  855. package/external/blessed/lib/widgets/ansiimage.js +0 -169
  856. package/external/blessed/lib/widgets/bigtext.js +0 -161
  857. package/external/blessed/lib/widgets/box.js +0 -36
  858. package/external/blessed/lib/widgets/button.js +0 -64
  859. package/external/blessed/lib/widgets/checkbox.js +0 -93
  860. package/external/blessed/lib/widgets/element.js +0 -2572
  861. package/external/blessed/lib/widgets/filemanager.js +0 -214
  862. package/external/blessed/lib/widgets/form.js +0 -269
  863. package/external/blessed/lib/widgets/image.js +0 -63
  864. package/external/blessed/lib/widgets/input.js +0 -36
  865. package/external/blessed/lib/widgets/layout.js +0 -235
  866. package/external/blessed/lib/widgets/line.js +0 -58
  867. package/external/blessed/lib/widgets/list.js +0 -601
  868. package/external/blessed/lib/widgets/listbar.js +0 -413
  869. package/external/blessed/lib/widgets/listtable.js +0 -254
  870. package/external/blessed/lib/widgets/loading.js +0 -90
  871. package/external/blessed/lib/widgets/log.js +0 -85
  872. package/external/blessed/lib/widgets/message.js +0 -125
  873. package/external/blessed/lib/widgets/node.js +0 -284
  874. package/external/blessed/lib/widgets/overlayimage.js +0 -719
  875. package/external/blessed/lib/widgets/progressbar.js +0 -159
  876. package/external/blessed/lib/widgets/prompt.js +0 -122
  877. package/external/blessed/lib/widgets/question.js +0 -118
  878. package/external/blessed/lib/widgets/radiobutton.js +0 -63
  879. package/external/blessed/lib/widgets/radioset.js +0 -38
  880. package/external/blessed/lib/widgets/screen.js +0 -2300
  881. package/external/blessed/lib/widgets/scrollablebox.js +0 -391
  882. package/external/blessed/lib/widgets/scrollabletext.js +0 -37
  883. package/external/blessed/lib/widgets/table.js +0 -356
  884. package/external/blessed/lib/widgets/terminal.js +0 -414
  885. package/external/blessed/lib/widgets/text.js +0 -37
  886. package/external/blessed/lib/widgets/textarea.js +0 -344
  887. package/external/blessed/lib/widgets/textbox.js +0 -79
  888. package/external/blessed/lib/widgets/video.js +0 -128
  889. package/external/blessed/usr/fonts/AUTHORS +0 -1
  890. package/external/blessed/usr/fonts/LICENSE +0 -94
  891. package/external/blessed/usr/fonts/README +0 -340
  892. package/external/blessed/usr/fonts/ter-u14b.json +0 -17826
  893. package/external/blessed/usr/fonts/ter-u14n.json +0 -17826
  894. package/external/blessed/usr/linux +0 -0
  895. package/external/blessed/usr/windows-ansi +0 -0
  896. package/external/blessed/usr/xterm +0 -0
  897. package/external/blessed/usr/xterm-256color +0 -0
  898. package/external/blessed/usr/xterm.termcap +0 -243
  899. package/external/blessed/usr/xterm.terminfo +0 -1977
  900. package/external/blessed/vendor/tng.js +0 -1757
  901. package/external/blessed-contrib/LICENSE.md +0 -21
  902. package/external/blessed-contrib/lib/layout/grid.js +0 -409
  903. package/external/blessed-contrib/lib/widget/charts/bar.js +0 -8370
  904. package/external/blessed-contrib/lib/widget/charts/line.js +0 -17924
  905. package/external/blessed-contrib/lib/widget/table.js +0 -187
  906. package/logo-dark.png +0 -0
  907. package/logo-light.png +0 -0
  908. package/requirements.json +0 -120
  909. package/shadow-bin/npm +0 -27
  910. package/shadow-bin/npx +0 -27
  911. package/shadow-bin/pnpm +0 -27
  912. package/shadow-bin/yarn +0 -27
  913. package/translations.json +0 -616
@@ -0,0 +1,213 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var Jm=Object.create;var Tl=Object.defineProperty;var Zm=Object.getOwnPropertyDescriptor;var Xm=Object.getOwnPropertyNames;var Ym=Object.getPrototypeOf,Qm=Object.prototype.hasOwnProperty;var ge=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ey=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Xm(r))!Qm.call(e,n)&&n!==a&&Tl(e,n,{get:()=>r[n],enumerable:!(p=Zm(r,n))||p.enumerable});return e};var bt=(e,r,a)=>(a=e!=null?Jm(Ym(e)):{},ey(r||!e||!e.__esModule?Tl(a,"default",{value:e,enumerable:!0}):a,e));var Dl=ge((bM,Ll)=>{var ty=Object.create,hr=Object.defineProperty,ry=Object.getOwnPropertyDescriptor,sy=Object.getOwnPropertyNames,iy=Object.getPrototypeOf,ny=Object.prototype.hasOwnProperty,Pl=(e,r)=>hr(e,"name",{value:r,configurable:!0}),oy=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ay=(e,r)=>{for(var a in r)hr(e,a,{get:r[a],enumerable:!0})},Nl=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of sy(r))!ny.call(e,n)&&n!==a&&hr(e,n,{get:()=>r[n],enumerable:!(p=ry(r,n))||p.enumerable});return e},ly=(e,r,a)=>(a=e!=null?ty(iy(e)):{},Nl(r||!e||!e.__esModule?hr(a,"default",{value:e,enumerable:!0}):a,e)),cy=e=>Nl(hr({},"__esModule",{value:!0}),e),uy=oy((e,r)=>{"use strict";var a;function p(){return a===void 0&&(a=require("process")),a}Pl(p,"getProcess"),r.exports=Pl(function(){let n=p();if(n.platform!=="win32")return n.env.TERM!=="linux";let{env:c}=n;if(c.WT_SESSION||c.TERMINUS_SUBLIME||c.ConEmuTask==="{cmd::Cmder}")return!0;let{TERM:o,TERM_PROGRAM:t}=c;return t==="Terminus-Sublime"||t==="vscode"||o==="xterm-256color"||o==="alacritty"||o==="rxvt-unicode"||o==="rxvt-unicode-256color"||c.TERMINAL_EMULATOR==="JetBrains-JediTerm"},"isUnicodeSupported")}),kl={};ay(kl,{default:()=>xl.default,"module.exports":()=>xl.default});Ll.exports=cy(kl);var xl=ly(uy(),1)});var jl=ge((_M,Ml)=>{var hy=Object.defineProperty,py=(e,r)=>hy(e,"name",{value:r,configurable:!0}),dy=require("node:tty"),fy=dy?.WriteStream?.prototype?.hasColors?.()??!1,Ce=py((e,r)=>{if(!fy)return n=>n;let a=`\x1B[${e}m`,p=`\x1B[${r}m`;return n=>{let c=n+"",o=c.indexOf(p);if(o===-1)return a+c+p;let t=a,s=0,i=(r===22?p:"")+a;for(;o!==-1;)t+=c.slice(s,o)+i,s=o+p.length,o=c.indexOf(p,s);return t+=c.slice(s)+p,t}},"format"),Re={};Re.reset=Ce(0,0);Re.bold=Ce(1,22);Re.dim=Ce(2,22);Re.italic=Ce(3,23);Re.underline=Ce(4,24);Re.overline=Ce(53,55);Re.inverse=Ce(7,27);Re.hidden=Ce(8,28);Re.strikethrough=Ce(9,29);Re.black=Ce(30,39);Re.red=Ce(31,39);Re.green=Ce(32,39);Re.yellow=Ce(33,39);Re.blue=Ce(34,39);Re.magenta=Ce(35,39);Re.cyan=Ce(36,39);Re.white=Ce(37,39);Re.gray=Ce(90,39);Re.bgBlack=Ce(40,49);Re.bgRed=Ce(41,49);Re.bgGreen=Ce(42,49);Re.bgYellow=Ce(43,49);Re.bgBlue=Ce(44,49);Re.bgMagenta=Ce(45,49);Re.bgCyan=Ce(46,49);Re.bgWhite=Ce(47,49);Re.bgGray=Ce(100,49);Re.redBright=Ce(91,39);Re.greenBright=Ce(92,39);Re.yellowBright=Ce(93,39);Re.blueBright=Ce(94,39);Re.magentaBright=Ce(95,39);Re.cyanBright=Ce(96,39);Re.whiteBright=Ce(97,39);Re.bgRedBright=Ce(101,49);Re.bgGreenBright=Ce(102,49);Re.bgYellowBright=Ce(103,49);Re.bgBlueBright=Ce(104,49);Re.bgMagentaBright=Ce(105,49);Re.bgCyanBright=Ce(106,49);Re.bgWhiteBright=Ce(107,49);Ml.exports=Re});var $i=ge((wM,Bl)=>{var ji=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,my=Object.getOwnPropertyNames,yy=Object.prototype.hasOwnProperty,vy=(e,r)=>{for(var a in r)ji(e,a,{get:r[a],enumerable:!0})},Sy=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of my(r))!yy.call(e,n)&&n!==a&&ji(e,n,{get:()=>r[n],enumerable:!(p=gy(r,n))||p.enumerable});return e},Ey=e=>Sy(ji({},"__esModule",{value:!0}),e),$l={};vy($l,{COLUMN_LIMIT:()=>Ty,EMPTY_FILE:()=>Ay,EMPTY_VALUE:()=>Ry,LOOP_SENTINEL:()=>_y,NODE_AUTH_TOKEN:()=>Py,NODE_ENV:()=>xy,UNDEFINED_TOKEN:()=>Cy,UNKNOWN_ERROR:()=>wy,UNKNOWN_VALUE:()=>Oy,V:()=>Iy,kInternalsSymbol:()=>by});Bl.exports=Ey($l);var by=Symbol("@socketregistry.constants.internals"),_y=1e6,wy="Unknown error",Oy="<unknown>",Ay=`/* empty */
3
+ `,Ry="<value>",Cy=void 0,Iy="v",Ty=80,Py="NODE_AUTH_TOKEN",xy="NODE_ENV"});var pr=ge((OM,Fl)=>{var Fi=Object.defineProperty,Ny=Object.getOwnPropertyDescriptor,ky=Object.getOwnPropertyNames,Ly=Object.prototype.hasOwnProperty,Dy=(e,r)=>{for(var a in r)Fi(e,a,{get:r[a],enumerable:!0})},My=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ky(r))!Ly.call(e,n)&&n!==a&&Fi(e,n,{get:()=>r[n],enumerable:!(p=Ny(r,n))||p.enumerable});return e},jy=e=>My(Fi({},"__esModule",{value:!0}),e),Ul={};Dy(Ul,{arrayChunk:()=>Uy,arrayUnique:()=>Fy,isArray:()=>Hy,joinAnd:()=>Gy,joinOr:()=>Vy});Fl.exports=jy(Ul);var Bi;function $y(){return Bi===void 0&&(Bi=new Intl.ListFormat("en",{style:"long",type:"conjunction"})),Bi}var Ui;function By(){return Ui===void 0&&(Ui=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),Ui}function Uy(e,r){let a=r??2;if(a<=0)throw new Error("Chunk size must be greater than 0");let{length:p}=e,n=Math.min(p,a),c=[];for(let o=0;o<p;o+=n)c.push(e.slice(o,o+n));return c}function Fy(e){return[...new Set(e)]}var Hy=Array.isArray;function Gy(e){return $y().format(e)}function Vy(e){return By().format(e)}});var Vl=ge(Bt=>{"use strict";var Wy=Object.defineProperty,Qe=(e,r)=>Wy(e,"name",{value:r,configurable:!0});Object.defineProperty(Bt,"__esModule",{value:!0});var Hl=Qe(function(e){return function(r,a,p){return e(r,a,p)*p}},"castComparer"),Gi=Qe(function(e,r){if(e)throw Error("Invalid sort config: "+r)},"throwInvalidConfigErrorIfTrue"),Gl=Qe(function(e){var r=e||{},a=r.asc,p=r.desc,n=a?1:-1,c=a||p;Gi(!c,"Expected `asc` or `desc` property"),Gi(a&&p,"Ambiguous object with `asc` and `desc` config properties");var o=e.comparer&&Hl(e.comparer);return{order:n,sortBy:c,comparer:o}},"unpackObjectSorter"),zy=Qe(function(e){return Qe(function r(a,p,n,c,o,t,s){var i,l;if(typeof a=="string")i=t[a],l=s[a];else if(typeof a=="function")i=a(t),l=a(s);else{var u=Gl(a);return r(u.sortBy,p,n,u.order,u.comparer||e,t,s)}var h=o(i,l,c);return(h===0||i==null&&l==null)&&p.length>n?r(p[n],p,n+1,c,o,t,s):h},"multiPropertySorter")},"multiPropertySorterProvider");function Vi(e,r,a){if(e===void 0||e===!0)return function(c,o){return r(c,o,a)};if(typeof e=="string")return Gi(e.includes("."),"String syntax not allowed for nested properties."),function(c,o){return r(c[e],o[e],a)};if(typeof e=="function")return function(c,o){return r(e(c),e(o),a)};if(Array.isArray(e)){var p=zy(r);return function(c,o){return p(e[0],e,1,a,r,c,o)}}var n=Gl(e);return Vi(n.sortBy,n.comparer||r,n.order)}Qe(Vi,"getSortStrategy");var Hi=Qe(function(e,r,a,p){var n;return Array.isArray(r)?(Array.isArray(a)&&a.length<2&&(n=a,a=n[0]),r.sort(Vi(a,p,e))):r},"sortArray");function rs(e){var r=Hl(e.comparer);return function(a){var p=Array.isArray(a)&&!e.inPlaceSorting?a.slice():a;return{asc:Qe(function(n){return Hi(1,p,n,r)},"asc"),desc:Qe(function(n){return Hi(-1,p,n,r)},"desc"),by:Qe(function(n){return Hi(1,p,n,r)},"by")}}}Qe(rs,"createNewSortInstance");var Wi=Qe(function(e,r,a){return e==null?a:r==null?-a:typeof e!=typeof r?typeof e<typeof r?-1:1:e<r?-1:e>r?1:0},"defaultComparer"),qy=rs({comparer:Wi}),Ky=rs({comparer:Wi,inPlaceSorting:!0});Bt.createNewSortInstance=rs;Bt.defaultComparer=Wi;Bt.inPlaceSort=Ky;Bt.sort=qy});var Yl=ge((RM,Xl)=>{"use strict";var Jy=Object.defineProperty,we=(e,r)=>Jy(e,"name",{value:r,configurable:!0}),Oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),is=Oe((e,r)=>{"use strict";var a="2.0.0",p=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,c=250,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];r.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:p,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:a,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),ns=Oe((e,r)=>{"use strict";var a=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...p)=>{}:()=>{};r.exports=a}),dr=Oe((e,r)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:p,MAX_LENGTH:n}=is(),c=ns();e=r.exports={};var o=e.re=[],t=e.safeRe=[],s=e.src=[],i=e.safeSrc=[],l=e.t={},u=0,h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[h,p]],g=we(f=>{for(let[y,S]of d)f=f.split(`${y}*`).join(`${y}{0,${S}}`).split(`${y}+`).join(`${y}{1,${S}}`);return f},"makeSafeRegex"),m=we((f,y,S)=>{let E=g(y),b=u++;c(f,b,y),l[f]=b,s[b]=y,i[b]=E,o[b]=new RegExp(y,S?"g":void 0),t[b]=new RegExp(E,S?"g":void 0)},"createToken");m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${s[l.NONNUMERICIDENTIFIER]}|${s[l.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NONNUMERICIDENTIFIER]}|${s[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),m("FULL",`^${s[l.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),m("LOOSE",`^${s[l.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),m("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),m("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",s[l.COERCE],!0),m("COERCERTLFULL",s[l.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),Ki=Oe((e,r)=>{"use strict";var a=Object.freeze({loose:!0}),p=Object.freeze({}),n=we(c=>c?typeof c!="object"?a:c:p,"parseOptions");r.exports=n}),ql=Oe((e,r)=>{"use strict";var a=/^[0-9]+$/,p=we((c,o)=>{let t=a.test(c),s=a.test(o);return t&&s&&(c=+c,o=+o),c===o?0:t&&!s?-1:s&&!t?1:c<o?-1:1},"compareIdentifiers"),n=we((c,o)=>p(o,c),"rcompareIdentifiers");r.exports={compareIdentifiers:p,rcompareIdentifiers:n}}),He=Oe((e,r)=>{"use strict";var a=ns(),{MAX_LENGTH:p,MAX_SAFE_INTEGER:n}=is(),{safeRe:c,t:o}=dr(),t=Ki(),{compareIdentifiers:s}=ql(),i=class dt{static{we(this,"SemVer")}constructor(u,h){if(h=t(h),u instanceof dt){if(u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>p)throw new TypeError(`version is longer than ${p} characters`);a("SemVer",u,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;let d=u.trim().match(h.loose?c[o.LOOSE]:c[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(g=>{if(/^[0-9]+$/.test(g)){let m=+g;if(m>=0&&m<n)return m}return g}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(a("SemVer.compare",this.version,this.options,u),!(u instanceof dt)){if(typeof u=="string"&&u===this.version)return 0;u=new dt(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof dt||(u=new dt(u,this.options)),s(this.major,u.major)||s(this.minor,u.minor)||s(this.patch,u.patch)}comparePre(u){if(u instanceof dt||(u=new dt(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let h=0;do{let d=this.prerelease[h],g=u.prerelease[h];if(a("prerelease compare",h,d,g),d===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(d===void 0)return-1;if(d!==g)return s(d,g)}while(++h)}compareBuild(u){u instanceof dt||(u=new dt(u,this.options));let h=0;do{let d=this.build[h],g=u.build[h];if(a("build compare",h,d,g),d===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(d===void 0)return-1;if(d!==g)return s(d,g)}while(++h)}inc(u,h,d){if(u.startsWith("pre")){if(!h&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(h){let g=`-${h}`.match(this.options.loose?c[o.PRERELEASELOOSE]:c[o.PRERELEASE]);if(!g||g[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,d),this.inc("pre",h,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,d),this.inc("pre",h,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let g=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[g];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(h===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(g)}}if(h){let m=[h,g];d===!1&&(m=[h]),s(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};r.exports=i}),Ut=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c,o=!1)=>{if(n instanceof a)return n;try{return new a(n,c)}catch(t){if(!o)return null;throw t}},"parse");r.exports=p}),Zy=Oe((e,r)=>{"use strict";var a=Ut(),p=we((n,c)=>{let o=a(n,c);return o?o.version:null},"valid");r.exports=p}),Xy=Oe((e,r)=>{"use strict";var a=Ut(),p=we((n,c)=>{let o=a(n.trim().replace(/^[=v]+/,""),c);return o?o.version:null},"clean");r.exports=p}),Yy=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c,o,t,s)=>{typeof o=="string"&&(s=t,t=o,o=void 0);try{return new a(n instanceof a?n.version:n,o).inc(c,t,s).version}catch{return null}},"inc");r.exports=p}),Qy=Oe((e,r)=>{"use strict";var a=Ut(),p=we((n,c)=>{let o=a(n,null,!0),t=a(c,null,!0),s=o.compare(t);if(s===0)return null;let i=s>0,l=i?o:t,u=i?t:o,h=!!l.prerelease.length;if(u.prerelease.length&&!h){if(!u.patch&&!u.minor)return"major";if(u.compareMain(l)===0)return u.minor&&!u.patch?"minor":"patch"}let d=h?"pre":"";return o.major!==t.major?d+"major":o.minor!==t.minor?d+"minor":o.patch!==t.patch?d+"patch":"prerelease"},"diff");r.exports=p}),e0=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c)=>new a(n,c).major,"major");r.exports=p}),t0=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c)=>new a(n,c).minor,"minor");r.exports=p}),r0=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c)=>new a(n,c).patch,"patch");r.exports=p}),s0=Oe((e,r)=>{"use strict";var a=Ut(),p=we((n,c)=>{let o=a(n,c);return o&&o.prerelease.length?o.prerelease:null},"prerelease");r.exports=p}),it=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c,o)=>new a(n,o).compare(new a(c,o)),"compare");r.exports=p}),i0=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(c,n,o),"rcompare");r.exports=p}),n0=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c)=>a(n,c,!0),"compareLoose");r.exports=p}),Ji=Oe((e,r)=>{"use strict";var a=He(),p=we((n,c,o)=>{let t=new a(n,o),s=new a(c,o);return t.compare(s)||t.compareBuild(s)},"compareBuild");r.exports=p}),o0=Oe((e,r)=>{"use strict";var a=Ji(),p=we((n,c)=>n.sort((o,t)=>a(o,t,c)),"sort");r.exports=p}),a0=Oe((e,r)=>{"use strict";var a=Ji(),p=we((n,c)=>n.sort((o,t)=>a(t,o,c)),"rsort");r.exports=p}),os=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)>0,"gt");r.exports=p}),Zi=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)<0,"lt");r.exports=p}),Kl=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)===0,"eq");r.exports=p}),Jl=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)!==0,"neq");r.exports=p}),Xi=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)>=0,"gte");r.exports=p}),Yi=Oe((e,r)=>{"use strict";var a=it(),p=we((n,c,o)=>a(n,c,o)<=0,"lte");r.exports=p}),Zl=Oe((e,r)=>{"use strict";var a=Kl(),p=Jl(),n=os(),c=Xi(),o=Zi(),t=Yi(),s=we((i,l,u,h)=>{switch(l){case"===":return typeof i=="object"&&(i=i.version),typeof u=="object"&&(u=u.version),i===u;case"!==":return typeof i=="object"&&(i=i.version),typeof u=="object"&&(u=u.version),i!==u;case"":case"=":case"==":return a(i,u,h);case"!=":return p(i,u,h);case">":return n(i,u,h);case">=":return c(i,u,h);case"<":return o(i,u,h);case"<=":return t(i,u,h);default:throw new TypeError(`Invalid operator: ${l}`)}},"cmp");r.exports=s}),l0=Oe((e,r)=>{"use strict";var a=He(),p=Ut(),{safeRe:n,t:c}=dr(),o=we((t,s)=>{if(t instanceof a)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;s=s||{};let i=null;if(!s.rtl)i=t.match(s.includePrerelease?n[c.COERCEFULL]:n[c.COERCE]);else{let m=s.includePrerelease?n[c.COERCERTLFULL]:n[c.COERCERTL],f;for(;(f=m.exec(t))&&(!i||i.index+i[0].length!==t.length);)(!i||f.index+f[0].length!==i.index+i[0].length)&&(i=f),m.lastIndex=f.index+f[1].length+f[2].length;m.lastIndex=-1}if(i===null)return null;let l=i[2],u=i[3]||"0",h=i[4]||"0",d=s.includePrerelease&&i[5]?`-${i[5]}`:"",g=s.includePrerelease&&i[6]?`+${i[6]}`:"";return p(`${l}.${u}.${h}${d}${g}`,s)},"coerce");r.exports=o}),c0=Oe((e,r)=>{"use strict";var a=class{static{we(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(p){let n=this.map.get(p);if(n!==void 0)return this.map.delete(p),this.map.set(p,n),n}delete(p){return this.map.delete(p)}set(p,n){if(!this.delete(p)&&n!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(p,n)}return this}};r.exports=a}),nt=Oe((e,r)=>{"use strict";var a=/\s+/g,p=class ss{static{we(this,"Range")}constructor(B,G){if(G=o(G),B instanceof ss)return B.loose===!!G.loose&&B.includePrerelease===!!G.includePrerelease?B:new ss(B.raw,G);if(B instanceof t)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=G,this.loose=!!G.loose,this.includePrerelease=!!G.includePrerelease,this.raw=B.trim().replace(a," "),this.set=this.raw.split("||").map(W=>this.parseRange(W.trim())).filter(W=>W.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let W=this.set[0];if(this.set=this.set.filter(N=>!y(N[0])),this.set.length===0)this.set=[W];else if(this.set.length>1){for(let N of this.set)if(N.length===1&&S(N[0])){this.set=[N];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");let G=this.set[B];for(let W=0;W<G.length;W++)W>0&&(this.formatted+=" "),this.formatted+=G[W].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){let G=((this.options.includePrerelease&&m)|(this.options.loose&&f))+":"+B,W=c.get(G);if(W)return W;let N=this.options.loose,D=N?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];B=B.replace(D,j(this.options.includePrerelease)),s("hyphen replace",B),B=B.replace(l[u.COMPARATORTRIM],h),s("comparator trim",B),B=B.replace(l[u.TILDETRIM],d),s("tilde trim",B),B=B.replace(l[u.CARETTRIM],g),s("caret trim",B);let T=B.split(" ").map(Q=>b(Q,this.options)).join(" ").split(/\s+/).map(Q=>x(Q,this.options));N&&(T=T.filter(Q=>(s("loose invalid filter",Q,this.options),!!Q.match(l[u.COMPARATORLOOSE])))),s("range list",T);let C=new Map,Z=T.map(Q=>new t(Q,this.options));for(let Q of Z){if(y(Q))return[Q];C.set(Q.value,Q)}C.size>1&&C.has("")&&C.delete("");let X=[...C.values()];return c.set(G,X),X}intersects(B,G){if(!(B instanceof ss))throw new TypeError("a Range is required");return this.set.some(W=>E(W,G)&&B.set.some(N=>E(N,G)&&W.every(D=>N.every(T=>D.intersects(T,G)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new i(B,this.options)}catch{return!1}for(let G=0;G<this.set.length;G++)if(U(this.set[G],B,this.options))return!0;return!1}};r.exports=p;var n=c0(),c=new n,o=Ki(),t=as(),s=ns(),i=He(),{safeRe:l,t:u,comparatorTrimReplace:h,tildeTrimReplace:d,caretTrimReplace:g}=dr(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:f}=is(),y=we(V=>V.value==="<0.0.0-0","isNullSet"),S=we(V=>V.value==="","isAny"),E=we((V,B)=>{let G=!0,W=V.slice(),N=W.pop();for(;G&&W.length;)G=W.every(D=>N.intersects(D,B)),N=W.pop();return G},"isSatisfiable"),b=we((V,B)=>(s("comp",V,B),V=R(V,B),s("caret",V),V=w(V,B),s("tildes",V),V=P(V,B),s("xrange",V),V=M(V,B),s("stars",V),V),"parseComparator"),_=we(V=>!V||V.toLowerCase()==="x"||V==="*","isX"),w=we((V,B)=>V.trim().split(/\s+/).map(G=>O(G,B)).join(" "),"replaceTildes"),O=we((V,B)=>{let G=B.loose?l[u.TILDELOOSE]:l[u.TILDE];return V.replace(G,(W,N,D,T,C)=>{s("tilde",V,W,N,D,T,C);let Z;return _(N)?Z="":_(D)?Z=`>=${N}.0.0 <${+N+1}.0.0-0`:_(T)?Z=`>=${N}.${D}.0 <${N}.${+D+1}.0-0`:C?(s("replaceTilde pr",C),Z=`>=${N}.${D}.${T}-${C} <${N}.${+D+1}.0-0`):Z=`>=${N}.${D}.${T} <${N}.${+D+1}.0-0`,s("tilde return",Z),Z})},"replaceTilde"),R=we((V,B)=>V.trim().split(/\s+/).map(G=>I(G,B)).join(" "),"replaceCarets"),I=we((V,B)=>{s("caret",V,B);let G=B.loose?l[u.CARETLOOSE]:l[u.CARET],W=B.includePrerelease?"-0":"";return V.replace(G,(N,D,T,C,Z)=>{s("caret",V,N,D,T,C,Z);let X;return _(D)?X="":_(T)?X=`>=${D}.0.0${W} <${+D+1}.0.0-0`:_(C)?D==="0"?X=`>=${D}.${T}.0${W} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.0${W} <${+D+1}.0.0-0`:Z?(s("replaceCaret pr",Z),D==="0"?T==="0"?X=`>=${D}.${T}.${C}-${Z} <${D}.${T}.${+C+1}-0`:X=`>=${D}.${T}.${C}-${Z} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.${C}-${Z} <${+D+1}.0.0-0`):(s("no pr"),D==="0"?T==="0"?X=`>=${D}.${T}.${C}${W} <${D}.${T}.${+C+1}-0`:X=`>=${D}.${T}.${C}${W} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.${C} <${+D+1}.0.0-0`),s("caret return",X),X})},"replaceCaret"),P=we((V,B)=>(s("replaceXRanges",V,B),V.split(/\s+/).map(G=>L(G,B)).join(" ")),"replaceXRanges"),L=we((V,B)=>{V=V.trim();let G=B.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return V.replace(G,(W,N,D,T,C,Z)=>{s("xRange",V,W,N,D,T,C,Z);let X=_(D),Q=X||_(T),k=Q||_(C),F=k;return N==="="&&F&&(N=""),Z=B.includePrerelease?"-0":"",X?N===">"||N==="<"?W="<0.0.0-0":W="*":N&&F?(Q&&(T=0),C=0,N===">"?(N=">=",Q?(D=+D+1,T=0,C=0):(T=+T+1,C=0)):N==="<="&&(N="<",Q?D=+D+1:T=+T+1),N==="<"&&(Z="-0"),W=`${N+D}.${T}.${C}${Z}`):Q?W=`>=${D}.0.0${Z} <${+D+1}.0.0-0`:k&&(W=`>=${D}.${T}.0${Z} <${D}.${+T+1}.0-0`),s("xRange return",W),W})},"replaceXRange"),M=we((V,B)=>(s("replaceStars",V,B),V.trim().replace(l[u.STAR],"")),"replaceStars"),x=we((V,B)=>(s("replaceGTE0",V,B),V.trim().replace(l[B.includePrerelease?u.GTE0PRE:u.GTE0],"")),"replaceGTE0"),j=we(V=>(B,G,W,N,D,T,C,Z,X,Q,k,F)=>(_(W)?G="":_(N)?G=`>=${W}.0.0${V?"-0":""}`:_(D)?G=`>=${W}.${N}.0${V?"-0":""}`:T?G=`>=${G}`:G=`>=${G}${V?"-0":""}`,_(X)?Z="":_(Q)?Z=`<${+X+1}.0.0-0`:_(k)?Z=`<${X}.${+Q+1}.0-0`:F?Z=`<=${X}.${Q}.${k}-${F}`:V?Z=`<${X}.${Q}.${+k+1}-0`:Z=`<=${Z}`,`${G} ${Z}`.trim()),"hyphenReplace"),U=we((V,B,G)=>{for(let W=0;W<V.length;W++)if(!V[W].test(B))return!1;if(B.prerelease.length&&!G.includePrerelease){for(let W=0;W<V.length;W++)if(s(V[W].semver),V[W].semver!==t.ANY&&V[W].semver.prerelease.length>0){let N=V[W].semver;if(N.major===B.major&&N.minor===B.minor&&N.patch===B.patch)return!0}return!1}return!0},"testSet")}),as=Oe((e,r)=>{"use strict";var a=Symbol("SemVer ANY"),p=class qi{static{we(this,"Comparator")}static get ANY(){return a}constructor(h,d){if(d=n(d),h instanceof qi){if(h.loose===!!d.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),s("comparator",h,d),this.options=d,this.loose=!!d.loose,this.parse(h),this.semver===a?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(h){let d=this.options.loose?c[o.COMPARATORLOOSE]:c[o.COMPARATOR],g=h.match(d);if(!g)throw new TypeError(`Invalid comparator: ${h}`);this.operator=g[1]!==void 0?g[1]:"",this.operator==="="&&(this.operator=""),g[2]?this.semver=new i(g[2],this.options.loose):this.semver=a}toString(){return this.value}test(h){if(s("Comparator.test",h,this.options.loose),this.semver===a||h===a)return!0;if(typeof h=="string")try{h=new i(h,this.options)}catch{return!1}return t(h,this.operator,this.semver,this.options)}intersects(h,d){if(!(h instanceof qi))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(h.value,d).test(this.value):h.operator===""?h.value===""?!0:new l(this.value,d).test(h.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||t(this.semver,"<",h.semver,d)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||t(this.semver,">",h.semver,d)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}};r.exports=p;var n=Ki(),{safeRe:c,t:o}=dr(),t=Zl(),s=ns(),i=He(),l=nt()}),ls=Oe((e,r)=>{"use strict";var a=nt(),p=we((n,c,o)=>{try{c=new a(c,o)}catch{return!1}return c.test(n)},"satisfies");r.exports=p}),u0=Oe((e,r)=>{"use strict";var a=nt(),p=we((n,c)=>new a(n,c).set.map(o=>o.map(t=>t.value).join(" ").trim().split(" ")),"toComparators");r.exports=p}),h0=Oe((e,r)=>{"use strict";var a=He(),p=nt(),n=we((c,o,t)=>{let s=null,i=null,l=null;try{l=new p(o,t)}catch{return null}return c.forEach(u=>{l.test(u)&&(!s||i.compare(u)===-1)&&(s=u,i=new a(s,t))}),s},"maxSatisfying");r.exports=n}),p0=Oe((e,r)=>{"use strict";var a=He(),p=nt(),n=we((c,o,t)=>{let s=null,i=null,l=null;try{l=new p(o,t)}catch{return null}return c.forEach(u=>{l.test(u)&&(!s||i.compare(u)===1)&&(s=u,i=new a(s,t))}),s},"minSatisfying");r.exports=n}),d0=Oe((e,r)=>{"use strict";var a=He(),p=nt(),n=os(),c=we((o,t)=>{o=new p(o,t);let s=new a("0.0.0");if(o.test(s)||(s=new a("0.0.0-0"),o.test(s)))return s;s=null;for(let i=0;i<o.set.length;++i){let l=o.set[i],u=null;l.forEach(h=>{let d=new a(h.semver.version);switch(h.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||n(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),u&&(!s||n(s,u))&&(s=u)}return s&&o.test(s)?s:null},"minVersion");r.exports=c}),f0=Oe((e,r)=>{"use strict";var a=nt(),p=we((n,c)=>{try{return new a(n,c).range||"*"}catch{return null}},"validRange");r.exports=p}),Qi=Oe((e,r)=>{"use strict";var a=He(),p=as(),{ANY:n}=p,c=nt(),o=ls(),t=os(),s=Zi(),i=Yi(),l=Xi(),u=we((h,d,g,m)=>{h=new a(h,m),d=new c(d,m);let f,y,S,E,b;switch(g){case">":f=t,y=i,S=s,E=">",b=">=";break;case"<":f=s,y=l,S=t,E="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(h,d,m))return!1;for(let _=0;_<d.set.length;++_){let w=d.set[_],O=null,R=null;if(w.forEach(I=>{I.semver===n&&(I=new p(">=0.0.0")),O=O||I,R=R||I,f(I.semver,O.semver,m)?O=I:S(I.semver,R.semver,m)&&(R=I)}),O.operator===E||O.operator===b||(!R.operator||R.operator===E)&&y(h,R.semver)||R.operator===b&&S(h,R.semver))return!1}return!0},"outside");r.exports=u}),g0=Oe((e,r)=>{"use strict";var a=Qi(),p=we((n,c,o)=>a(n,c,">",o),"gtr");r.exports=p}),m0=Oe((e,r)=>{"use strict";var a=Qi(),p=we((n,c,o)=>a(n,c,"<",o),"ltr");r.exports=p}),y0=Oe((e,r)=>{"use strict";var a=nt(),p=we((n,c,o)=>(n=new a(n,o),c=new a(c,o),n.intersects(c,o)),"intersects");r.exports=p}),v0=Oe((e,r)=>{"use strict";var a=ls(),p=it();r.exports=(n,c,o)=>{let t=[],s=null,i=null,l=n.sort((g,m)=>p(g,m,o));for(let g of l)a(g,c,o)?(i=g,s||(s=g)):(i&&t.push([s,i]),i=null,s=null);s&&t.push([s,null]);let u=[];for(let[g,m]of t)g===m?u.push(g):!m&&g===l[0]?u.push("*"):m?g===l[0]?u.push(`<=${m}`):u.push(`${g} - ${m}`):u.push(`>=${g}`);let h=u.join(" || "),d=typeof c.raw=="string"?c.raw:String(c);return h.length<d.length?h:c}}),S0=Oe((e,r)=>{"use strict";var a=nt(),p=as(),{ANY:n}=p,c=ls(),o=it(),t=we((d,g,m={})=>{if(d===g)return!0;d=new a(d,m),g=new a(g,m);let f=!1;e:for(let y of d.set){for(let S of g.set){let E=l(y,S,m);if(f=f||E!==null,E)continue e}if(f)return!1}return!0},"subset"),s=[new p(">=0.0.0-0")],i=[new p(">=0.0.0")],l=we((d,g,m)=>{if(d===g)return!0;if(d.length===1&&d[0].semver===n){if(g.length===1&&g[0].semver===n)return!0;m.includePrerelease?d=s:d=i}if(g.length===1&&g[0].semver===n){if(m.includePrerelease)return!0;g=i}let f=new Set,y,S;for(let P of d)P.operator===">"||P.operator===">="?y=u(y,P,m):P.operator==="<"||P.operator==="<="?S=h(S,P,m):f.add(P.semver);if(f.size>1)return null;let E;if(y&&S&&(E=o(y.semver,S.semver,m),E>0||E===0&&(y.operator!==">="||S.operator!=="<=")))return null;for(let P of f){if(y&&!c(P,String(y),m)||S&&!c(P,String(S),m))return null;for(let L of g)if(!c(P,String(L),m))return!1;return!0}let b,_,w,O,R=S&&!m.includePrerelease&&S.semver.prerelease.length?S.semver:!1,I=y&&!m.includePrerelease&&y.semver.prerelease.length?y.semver:!1;R&&R.prerelease.length===1&&S.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let P of g){if(O=O||P.operator===">"||P.operator===">=",w=w||P.operator==="<"||P.operator==="<=",y){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(b=u(y,P,m),b===P&&b!==y)return!1}else if(y.operator===">="&&!c(y.semver,String(P),m))return!1}if(S){if(R&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===R.major&&P.semver.minor===R.minor&&P.semver.patch===R.patch&&(R=!1),P.operator==="<"||P.operator==="<="){if(_=h(S,P,m),_===P&&_!==S)return!1}else if(S.operator==="<="&&!c(S.semver,String(P),m))return!1}if(!P.operator&&(S||y)&&E!==0)return!1}return!(y&&w&&!S&&E!==0||S&&O&&!y&&E!==0||I||R)},"simpleSubset"),u=we((d,g,m)=>{if(!d)return g;let f=o(d.semver,g.semver,m);return f>0?d:f<0||g.operator===">"&&d.operator===">="?g:d},"higherGT"),h=we((d,g,m)=>{if(!d)return g;let f=o(d.semver,g.semver,m);return f<0?d:f>0||g.operator==="<"&&d.operator==="<="?g:d},"lowerLT");r.exports=t}),zi=dr(),Wl=is(),E0=He(),zl=ql(),b0=Ut(),_0=Zy(),w0=Xy(),O0=Yy(),A0=Qy(),R0=e0(),C0=t0(),I0=r0(),T0=s0(),P0=it(),x0=i0(),N0=n0(),k0=Ji(),L0=o0(),D0=a0(),M0=os(),j0=Zi(),$0=Kl(),B0=Jl(),U0=Xi(),F0=Yi(),H0=Zl(),G0=l0(),V0=as(),W0=nt(),z0=ls(),q0=u0(),K0=h0(),J0=p0(),Z0=d0(),X0=f0(),Y0=Qi(),Q0=g0(),ev=m0(),tv=y0(),rv=v0(),sv=S0();Xl.exports={parse:b0,valid:_0,clean:w0,inc:O0,diff:A0,major:R0,minor:C0,patch:I0,prerelease:T0,compare:P0,rcompare:x0,compareLoose:N0,compareBuild:k0,sort:L0,rsort:D0,gt:M0,lt:j0,eq:$0,neq:B0,gte:U0,lte:F0,cmp:H0,coerce:G0,Comparator:V0,Range:W0,satisfies:z0,toComparators:q0,maxSatisfying:K0,minSatisfying:J0,minVersion:Z0,validRange:X0,outside:Y0,gtr:Q0,ltr:ev,intersects:tv,simplifyRange:rv,subset:sv,SemVer:E0,re:zi.re,src:zi.src,tokens:zi.t,SEMVER_SPEC_VERSION:Wl.SEMVER_SPEC_VERSION,RELEASE_TYPES:Wl.RELEASE_TYPES,compareIdentifiers:zl.compareIdentifiers,rcompareIdentifiers:zl.rcompareIdentifiers}});var nn=ge((IM,tc)=>{var sn=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,nv=Object.getOwnPropertyNames,ov=Object.prototype.hasOwnProperty,av=(e,r)=>{for(var a in r)sn(e,a,{get:r[a],enumerable:!0})},lv=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of nv(r))!ov.call(e,n)&&n!==a&&sn(e,n,{get:()=>r[n],enumerable:!(p=iv(r,n))||p.enumerable});return e},cv=e=>lv(sn({},"__esModule",{value:!0}),e),Ql={};av(Ql,{compareSemver:()=>dv,compareStr:()=>pv,localeCompare:()=>uv,naturalCompare:()=>ec,naturalSorter:()=>hv});tc.exports=cv(Ql);var en;function uv(e,r){return en===void 0&&(en=new Intl.Collator().compare),en(e,r)}var tn;function ec(e,r){return tn===void 0&&(tn=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare),tn(e,r)}var rn;function hv(e){return rn===void 0&&(rn=Vl().createNewSortInstance({comparer:ec})),rn?.(e)}function pv(e,r){return e<r?-1:e>r?1:0}function dv(e,r){let a=Yl(),p=a.valid(e),n=a.valid(r);return!p&&!n?0:p?n?a.compare(e,r):1:-1}});var mr=ge((TM,cc)=>{var ln=Object.defineProperty,fv=Object.getOwnPropertyDescriptor,gv=Object.getOwnPropertyNames,mv=Object.prototype.hasOwnProperty,yv=(e,r)=>{for(var a in r)ln(e,a,{get:r[a],enumerable:!0})},vv=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of gv(r))!mv.call(e,n)&&n!==a&&ln(e,n,{get:()=>r[n],enumerable:!(p=fv(r,n))||p.enumerable});return e},Sv=e=>vv(ln({},"__esModule",{value:!0}),e),ic={};yv(ic,{createConstantsObject:()=>Cv,createLazyGetter:()=>nc,defineGetter:()=>oc,defineLazyGetter:()=>ac,defineLazyGetters:()=>lc,entryKeyComparator:()=>an,getKeys:()=>Iv,getOwn:()=>Tv,getOwnPropertyValues:()=>Pv,hasKeys:()=>xv,hasOwn:()=>Nv,isObject:()=>Ft,isObjectObject:()=>kv,merge:()=>Mv,objectAssign:()=>Lv,objectEntries:()=>un,objectFreeze:()=>Dv,toSortedObject:()=>cs,toSortedObjectFromEntries:()=>hn});cc.exports=Sv(ic);var gr=$i(),fr=pr(),Ev=nn(),rc=Object.defineProperties,bv=Object.defineProperty,_t=Object.freeze,_v=Object.fromEntries,sc=Object.getOwnPropertyDescriptors,wv=Object.getOwnPropertyNames,Ov=Object.getPrototypeOf,us=Object.hasOwn,Av=Object.keys,Rv=Object.prototype,on=Object.setPrototypeOf,cn=Reflect.ownKeys;function nc(e,r,a){let p=gr.UNDEFINED_TOKEN,{[e]:n}={[e](){return p===gr.UNDEFINED_TOKEN&&(a?.initialized?.add(e),p=r()),p}};return n}function Cv(e,r){let a={__proto__:null,...r},p=_t({__proto__:null,getters:a.getters?_t(on(cs(a.getters),null)):void 0,internals:a.internals?_t(on(cs(a.internals),null)):void 0,mixin:a.mixin?_t(rc({__proto__:null},sc(a.mixin))):void 0,props:e?_t(on(cs(e),null)):void 0}),n=_t({__proto__:null,initialized:new Set}),c=lc({__proto__:null,[gr.kInternalsSymbol]:_t({__proto__:null,get attributes(){return p},get lazyGetterStats(){return n},...p.internals}),kInternalsSymbol:gr.kInternalsSymbol,...p.props},p.getters,n);return p.mixin&&rc(c,hn(un(sc(p.mixin)).filter(o=>!us(c,o[0])))),_t(c)}function oc(e,r,a){return bv(e,r,{get:a,enumerable:!1,configurable:!0}),e}function ac(e,r,a,p){return oc(e,r,nc(r,a,p))}function lc(e,r,a){if(r!==null&&typeof r=="object"){let p=cn(r);for(let n=0,{length:c}=p;n<c;n+=1){let o=p[n];ac(e,o,r[o],a)}}return e}function an(e,r){let a=e[0],p=r[0],n=typeof a=="string"?a:String(a),c=typeof p=="string"?p:String(p);return(0,Ev.localeCompare)(n,c)}function Iv(e){return Ft(e)?Av(e):[]}function Tv(e,r){if(e!=null)return us(e,r)?e[r]:void 0}function Pv(e){if(e==null)return[];let r=wv(e),{length:a}=r,p=Array(a);for(let n=0;n<a;n+=1)p[n]=e[r[n]];return p}function xv(e){if(e==null)return!1;for(let r in e)if(us(e,r))return!0;return!1}function Nv(e,r){return e==null?!1:us(e,r)}function Ft(e){return e!==null&&typeof e=="object"}function kv(e){if(e===null||typeof e!="object"||(0,fr.isArray)(e))return!1;let r=Ov(e);return r===null||r===Rv}var Lv=Object.assign;function un(e){if(e==null)return[];let r=cn(e),{length:a}=r,p=Array(a),n=e;for(let c=0;c<a;c+=1){let o=r[c];p[c]=[o,n[o]]}return p}var Dv=Object.freeze;function Mv(e,r){if(!Ft(e)||!Ft(r))return e;let a=[[e,r]],p=0,{length:n}=a;for(;p<n;){if(p===gr.LOOP_SENTINEL)throw new Error("Detected infinite loop in object crawl of merge");let{0:c,1:o}=a[p++];if(!o||!c)continue;let t=(0,fr.isArray)(o),s=(0,fr.isArray)(c);if(t||s)continue;let i=cn(o);for(let l=0,{length:u}=i;l<u;l+=1){let h=i[l],d=o[h],g=c[h];(0,fr.isArray)(d)?c[h]=d:Ft(d)&&Ft(g)&&!(0,fr.isArray)(g)?a[n++]=[g,d]:c[h]=d}}return e}function cs(e){return hn(un(e))}function hn(e){let r=[],a=[];for(let p of e)typeof p[0]=="symbol"?a.push(p):r.push(p);return!r.length&&!a.length?{}:_v([...a.sort(an),...r.sort(an)])}});var pc=ge((PM,hc)=>{var pn=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,$v=Object.getOwnPropertyNames,Bv=Object.prototype.hasOwnProperty,Uv=(e,r)=>{for(var a in r)pn(e,a,{get:r[a],enumerable:!0})},Fv=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of $v(r))!Bv.call(e,n)&&n!==a&&pn(e,n,{get:()=>r[n],enumerable:!(p=jv(r,n))||p.enumerable});return e},Hv=e=>Fv(pn({},"__esModule",{value:!0}),e),uc={};Uv(uc,{ANSI_BOLD:()=>Vv,ANSI_DIM:()=>Wv,ANSI_ITALIC:()=>zv,ANSI_RESET:()=>Gv,ANSI_STRIKETHROUGH:()=>Kv,ANSI_UNDERLINE:()=>qv,ansiRegex:()=>Zv,stripAnsi:()=>Xv});hc.exports=Hv(uc);var Gv="\x1B[0m",Vv="\x1B[1m",Wv="\x1B[2m",zv="\x1B[3m",qv="\x1B[4m",Kv="\x1B[9m",Jv=/\x1b\[[0-9;]*m/g;function Zv(e){let{onlyFirst:r}=e??{},a="(?:\\u001B\\][\\s\\S]*?(?:\\u0007\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(a,r?void 0:"g")}function Xv(e){return e.replace(Jv,"")}});var vc=ge((xM,yc)=>{var hs=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Qv=Object.getOwnPropertyNames,eS=Object.prototype.hasOwnProperty,wt=(e,r)=>hs(e,"name",{value:r,configurable:!0}),tS=(e,r)=>{for(var a in r)hs(e,a,{get:r[a],enumerable:!0})},rS=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Qv(r))!eS.call(e,n)&&n!==a&&hs(e,n,{get:()=>r[n],enumerable:!(p=Yv(r,n))||p.enumerable});return e},sS=e=>rS(hs({},"__esModule",{value:!0}),e),dc={};tS(dc,{_isNarrowWidth:()=>iS,eastAsianWidth:()=>mc,eastAsianWidthType:()=>gc});yc.exports=sS(dc);function dn(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}wt(dn,"isAmbiguous");function ps(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}wt(ps,"isFullWidth");function ds(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}wt(ds,"isWide");function fc(e){return dn(e)?"ambiguous":ps(e)?"fullwidth":e===8361||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||e===162||e===163||e===165||e===166||e===172||e===175||e>=10214&&e<=10221||e===10629||e===10630?"narrow":ds(e)?"wide":"neutral"}wt(fc,"getCategory");function fn(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}wt(fn,"validate");function gc(e){return fn(e),fc(e)}wt(gc,"eastAsianWidthType");function mc(e,{ambiguousAsWide:r=!1}={}){return fn(e),ps(e)||ds(e)||r&&dn(e)?2:1}wt(mc,"eastAsianWidth");var iS=wt(e=>!(ps(e)||ds(e)),"_isNarrowWidth")});var yr=ge((NM,_c)=>{var vn=Object.defineProperty,nS=Object.getOwnPropertyDescriptor,oS=Object.getOwnPropertyNames,aS=Object.prototype.hasOwnProperty,lS=(e,r)=>{for(var a in r)vn(e,a,{get:r[a],enumerable:!0})},cS=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of oS(r))!aS.call(e,n)&&n!==a&&vn(e,n,{get:()=>r[n],enumerable:!(p=nS(r,n))||p.enumerable});return e},uS=e=>cS(vn({},"__esModule",{value:!0}),e),Ec={};lS(Ec,{ansiRegex:()=>fs.ansiRegex,applyLinePrefix:()=>hS,camelToKebab:()=>pS,centerText:()=>wS,fromCharCode:()=>bc,indentString:()=>dS,isBlankString:()=>fS,isNonEmptyString:()=>gS,repeatString:()=>_S,search:()=>mS,stringWidth:()=>SS,stripAnsi:()=>fs.stripAnsi,stripBom:()=>yS,toKebabCase:()=>ES,trimNewlines:()=>bS});_c.exports=uS(Ec);var fs=pc(),Sc=vc(),bc=String.fromCharCode;function hS(e,r){let{prefix:a=""}={__proto__:null,...r};return a.length?`${a}${e.includes(`
4
+ `)?e.replace(/\n/g,`
5
+ ${a}`):e}`:e}function pS(e){let{length:r}=e;if(!r)return"";let a="",p=0;for(;p<r;){let n=e[p];if(!n)break;let c=n.charCodeAt(0);if(c>=65&&c<=90)for(a.length>0&&(a+="-");p<r;){let o=e[p];if(!o)break;let t=o.charCodeAt(0);if(t>=65&&t<=90)a+=bc(t+32),p+=1;else break}else a+=n,p+=1}return a}function dS(e,r){let{count:a=1}={__proto__:null,...r};return e.replace(/^(?!\s*$)/gm," ".repeat(a))}function fS(e){return typeof e=="string"&&(!e.length||/^\s+$/.test(e))}function gS(e){return typeof e=="string"&&e.length>0}function mS(e,r,a){let{fromIndex:p=0}={__proto__:null,...a},{length:n}=e;if(p>=n)return-1;if(p===0)return e.search(r);let c=p<0?Math.max(n+p,0):p,o=e.slice(c).search(r);return o===-1?-1:o+c}function yS(e){return e.length>0&&e.charCodeAt(0)===65279?e.slice(1):e}var vS=new Intl.Segmenter,gn,mn,yn;try{gn=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$","v"),mn=new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+","v"),yn=new RegExp("^\\p{RGI_Emoji}$","v")}catch{gn=new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark})+$","u"),mn=/^[\p{Default_Ignorable_Code_Point}\p{Control}\p{Format}\p{Mark}]+/u,yn=new RegExp("^\\p{Extended_Pictographic}$","u")}function SS(e){if(typeof e!="string"||!e.length)return 0;let r=(0,fs.stripAnsi)(e);if(!r.length)return 0;let a=0,p={ambiguousAsWide:!1};for(let{segment:n}of vS.segment(r)){if(gn.test(n))continue;if(yn.test(n)){a+=2;continue}let c=n.replace(mn,"").codePointAt(0);if(c!==void 0&&(a+=(0,Sc.eastAsianWidth)(c,p),n.length>1))for(let o of n.slice(1)){let t=o.charCodeAt(0);if(t>=65280&&t<=65519){let s=o.codePointAt(0);s!==void 0&&(a+=(0,Sc.eastAsianWidth)(s,p))}}}return a}function ES(e){return e.length?e.replace(/([a-z]+[0-9]*)([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase():e}function bS(e){let{length:r}=e;if(r===0)return e;let a=e.charCodeAt(0),p=a!==13&&a!==10;if(r===1)return p?e:"";let n=e.charCodeAt(r-1);if(p&&n!==13&&n!==10)return e;let c=0,o=r;for(;c<o;){let t=e.charCodeAt(c);if(t!==13&&t!==10)break;c+=1}for(;o>c;){let t=e.charCodeAt(o-1);if(t!==13&&t!==10)break;o-=1}return c===0&&o===r?e:e.slice(c,o)}function _S(e,r){return r<=0?"":e.repeat(r)}function wS(e,r){let a=(0,fs.stripAnsi)(e).length;if(a>=r)return e;let p=r-a,n=Math.floor(p/2),c=p-n;return" ".repeat(n)+e+" ".repeat(c)}});var vs=ge((kM,Tc)=>{var OS=Object.create,ys=Object.defineProperty,AS=Object.getOwnPropertyDescriptor,RS=Object.getOwnPropertyNames,CS=Object.getPrototypeOf,IS=Object.prototype.hasOwnProperty,TS=(e,r)=>{for(var a in r)ys(e,a,{get:r[a],enumerable:!0})},Rc=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RS(r))!IS.call(e,n)&&n!==a&&ys(e,n,{get:()=>r[n],enumerable:!(p=AS(r,n))||p.enumerable});return e},Cc=(e,r,a)=>(a=e!=null?OS(CS(e)):{},Rc(r||!e||!e.__esModule?ys(a,"default",{value:e,enumerable:!0}):a,e)),PS=e=>Rc(ys({},"__esModule",{value:!0}),e),Ic={};TS(Ic,{LOG_SYMBOLS:()=>ms,Logger:()=>Ht,incLogCallCountSymbol:()=>qe,lastWasBlankSymbol:()=>je,logger:()=>$S});Tc.exports=PS(Ic);var xS=Cc(Dl()),NS=Cc(jl()),wc=mr(),gs=yr(),vr=console,Sn=Reflect.apply,kS=Reflect.construct,En;function Oc(...e){return En===void 0&&(En=require("node:console").Console),kS(En,e)}function LS(){return NS.default}var ms=(()=>{let e={__proto__:null},r={__proto__:null},a=()=>{let p=(0,xS.default)(),n=LS();(0,wc.objectAssign)(e,{fail:n.red(p?"\u2716":"\xD7"),info:n.blue(p?"\u2139":"i"),step:n.cyan(p?"\u2192":">"),success:n.green(p?"\u2714":"\u221A"),warn:n.yellow(p?"\u26A0":"\u203C")}),(0,wc.objectFreeze)(e);for(let c in r)delete r[c]};for(let p of Reflect.ownKeys(Reflect)){let n=Reflect[p];typeof n=="function"&&(r[p]=(...c)=>(a(),n(...c)))}return new Proxy(e,r)})(),DS=["_stderrErrorHandler","_stdoutErrorHandler","assert","clear","count","countReset","createTask","debug","dir","dirxml","error","info","log","table","time","timeEnd","timeLog","trace","warn"].filter(e=>typeof vr[e]=="function").map(e=>[e,vr[e].bind(vr)]),Ac={__proto__:null,writable:!0,enumerable:!1,configurable:!0},MS=1e3,Me=new WeakMap,jS=Object.getOwnPropertySymbols(vr),qe=Symbol.for("logger.logCallCount++"),bn=jS.find(e=>e.label==="kGroupIndentWidth")??Symbol("kGroupIndentWidth"),je=Symbol.for("logger.lastWasBlank"),Ht=class e{static LOG_SYMBOLS=ms;#e;#t;#r;#s;#i="";#c="";#l=!1;#h=!1;#o=0;#u;#n;#d;constructor(...r){this.#u=r;let a=r[0];if(typeof a=="object"&&a!==null?(this.#n={__proto__:null,...a},this.#d=a.stdout):this.#n={__proto__:null},r.length)Me.set(this,Oc(...r));else{let p=Oc({stdout:process.stdout,stderr:process.stderr});for(let{0:n,1:c}of DS)p[n]=c;Me.set(this,p)}}get stderr(){if(!this.#r){let r=new e(...this.#u);r.#e=this,r.#t="stderr",r.#n={__proto__:null,...this.#n},this.#r=r}return this.#r}get stdout(){if(!this.#s){let r=new e(...this.#u);r.#e=this,r.#t="stdout",r.#n={__proto__:null,...this.#n},this.#s=r}return this.#s}#a(){return this.#e||this}#f(r){let a=this.#a();return r==="stderr"?a.#i:a.#c}#g(r,a){let p=this.#a();r==="stderr"?p.#i=a:p.#c=a}#E(r){let a=this.#a();return r==="stderr"?a.#l:a.#h}#m(r,a){let p=this.#a();r==="stderr"?p.#l=a:p.#h=a}#R(){return this.#t||"stderr"}#v(r,a,p){let n=Me.get(this),c=a.at(0),o=typeof c=="string",t=p||(r==="log"?"stdout":"stderr"),s=this.#f(t),i=o?[(0,gs.applyLinePrefix)(c,{prefix:s}),...a.slice(1)]:a;return Sn(n[r],n,i),this[je](o&&(0,gs.isBlankString)(i[0]),t),this[qe](),this}#b(r){return r.replace(/^[✖✗×⚠‼✔✓√ℹ→]\uFE0F?\s*/u,"")}#_(r,a){let p=Me.get(this),n=a.at(0),c;typeof n=="string"?(n=this.#b(n),c=a.slice(1)):(c=a,n="");let o=this.#f("stderr");return p.error((0,gs.applyLinePrefix)(`${ms[r]} ${n}`,{prefix:o}),...c),this[je](!1,"stderr"),this[qe](),this}get logCallCount(){return this.#a().#o}[qe](){let r=this.#a();return r.#o+=1,this}[je](r,a){return a?this.#m(a,!!r):this.#t?this.#m(this.#t,!!r):(this.#m("stderr",!!r),this.#m("stdout",!!r)),this}assert(r,...a){return Me.get(this).assert(r,...a),this[je](!1),r?this:this[qe]()}clearVisible(){if(this.#t)throw new Error("clearVisible() is only available on the main logger instance, not on stream-bound instances");let r=Me.get(this);return r.clear(),r._stdout.isTTY&&(this[je](!0),this.#o=0),this}count(r){return Me.get(this).count(r),this[je](!1),this[qe]()}createTask(r){return{run:a=>{this.log(`Starting task: ${r}`);let p=a();return this.log(`Completed task: ${r}`),p}}}dedent(r=2){if(this.#t){let a=this.#f(this.#t);this.#g(this.#t,a.slice(0,-r))}else{let a=this.#f("stderr"),p=this.#f("stdout");this.#g("stderr",a.slice(0,-r)),this.#g("stdout",p.slice(0,-r))}return this}dir(r,a){return Me.get(this).dir(r,a),this[je](!1),this[qe]()}dirxml(...r){return Me.get(this).dirxml(r),this[je](!1),this[qe]()}error(...r){return this.#v("error",r)}errorNewline(){return this.#E("stderr")?this:this.error("")}fail(...r){return this.#_("fail",r)}group(...r){let{length:a}=r;return a&&Sn(this.log,this,r),this.indent(this[bn]),a&&(this[je](!1),this[qe]()),this}groupCollapsed(...r){return Sn(this.group,this,r)}groupEnd(){return this.dedent(this[bn]),this}indent(r=2){let a=" ".repeat(Math.min(r,MS));if(this.#t){let p=this.#f(this.#t);this.#g(this.#t,p+a)}else{let p=this.#f("stderr"),n=this.#f("stdout");this.#g("stderr",p+a),this.#g("stdout",n+a)}return this}info(...r){return this.#_("info",r)}log(...r){return this.#v("log",r)}logNewline(){return this.#E("stdout")?this:this.log("")}resetIndent(){return this.#t?this.#g(this.#t,""):(this.#g("stderr",""),this.#g("stdout","")),this}step(r,...a){this.#E("stdout")||this.log("");let p=this.#b(r),n=this.#f("stdout");return Me.get(this).log((0,gs.applyLinePrefix)(`${ms.step} ${p}`,{prefix:n}),...a),this[je](!1,"stdout"),this[qe](),this}substep(r,...a){let p=` ${r}`;return this.log(p,...a)}success(...r){return this.#_("success",r)}done(...r){return this.#_("success",r)}table(r,a){return Me.get(this).table(r,a),this[je](!1),this[qe]()}timeEnd(r){return Me.get(this).timeEnd(r),this[je](!1),this[qe]()}timeLog(r,...a){return Me.get(this).timeLog(r,...a),this[je](!1),this[qe]()}trace(r,...a){return Me.get(this).trace(r,...a),this[je](!1),this[qe]()}warn(...r){return this.#_("warn",r)}write(r){let a=Me.get(this);return(this.#d||this.#u[0]?.stdout||a._stdout).write(r),this[je](!1),this}progress(r){let a=Me.get(this);return(this.#R()==="stderr"?a._stderr:a._stdout).write(`\u2234 ${r}`),this[je](!1),this}clearLine(){let r=Me.get(this),a=this.#R()==="stderr"?r._stderr:r._stdout;return a.isTTY?(a.cursorTo(0),a.clearLine(0)):a.write("\r\x1B[K"),this}};Object.defineProperties(Ht.prototype,Object.fromEntries((()=>{let e=[[bn,{...Ac,value:2}],[Symbol.toStringTag,{__proto__:null,configurable:!0,value:"logger"}]];for(let{0:r,1:a}of Object.entries(vr))if(!Ht.prototype[r]&&typeof a=="function"){let{[r]:p}={[r](...n){let c=Me.get(this),o=c[r](...n);return o===void 0||o===c?this:o}};e.push([r,{...Ac,value:p}])}return e})()));var $S=new Ht});var xo=ge((LM,Fh)=>{var Uc=Object.defineProperty,v=(e,r)=>Uc(e,"name",{value:r,configurable:!0}),BS=(e,r)=>()=>(e&&(r=e(e=0)),r),K=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),US=(e,r)=>{for(var a in r)Uc(e,a,{get:r[a],enumerable:!0})},Fc=K((e,r)=>{"use strict";var a=Symbol.for("indent"),p=Symbol.for("newline"),n=`
6
+ `,c=" ",o=/^\uFEFF/,t=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,s=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,i=/^Unexpected token '?(.)'?(,)? /i,l=v(y=>{let S=y.charCodeAt(0).toString(16).toUpperCase();return`0x${S.length%2?"0":""}${S}`},"hexify"),u=v(y=>String(y).replace(o,""),"stripBOM"),h=v((y,S,E=0)=>({message:`${y} while parsing ${S}`,position:E}),"makeParsedError"),d=v((y,S,E=20)=>{let b=y.message;if(!S)return h(b,"empty string");let _=b.match(i),w=b.match(/ position\s+(\d+)/i);_&&(b=b.replace(i,`Unexpected token ${JSON.stringify(_[1])} (${l(_[1])})$2 `));let O;if(w?O=+w[1]:b.match(/^Unexpected end of JSON.*/i)&&(O=S.length-1),O==null)return h(b,`'${S.slice(0,E*2)}'`);let R=O<=E?0:O-E,I=O+E>=S.length?S.length:O+E,P=`${R?"...":""}${S.slice(R,I)}${I===S.length?"":"..."}`;return h(b,`${S===P?"":"near "}${JSON.stringify(P)}`,O)},"parseError"),g=class extends SyntaxError{static{v(this,"JSONParseError")}constructor(y,S,E,b){let _=d(y,S,E);super(_.message),Object.assign(this,_),this.code="EJSONPARSE",this.systemError=y,Error.captureStackTrace(this,b||this.constructor)}get name(){return this.constructor.name}set name(y){}get[Symbol.toStringTag](){return this.constructor.name}},m=v((y,S)=>{let E=JSON.parse(y,S);if(E&&typeof E=="object"){let b=y.match(s)||y.match(t)||[null,"",""];E[p]=b[1]??n,E[a]=b[2]??c}return E},"parseJson"),f=v((y,S,E)=>{let b=u(y);try{return m(b,S)}catch(_){if(typeof y!="string"&&!Buffer.isBuffer(y)){let w=Array.isArray(y)&&y.length===0?"an empty array":String(y);throw Object.assign(new TypeError(`Cannot parse ${w}`),{code:"EJSONPARSE",systemError:_})}throw new g(_,b,E,f)}},"parseJsonError");r.exports=f,f.JSONParseError=g,f.noExceptions=(y,S)=>{try{return m(u(y),S)}catch{}}}),FS=K((e,r)=>{var a=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),p=v(c=>{for(let o of a)c&&c[o]&&(c[o]=Object.keys(c[o]).sort((t,s)=>t.localeCompare(s,"en")).reduce((t,s)=>(t[s]=c[o][s],t),{}));return c},"orderDeps"),n=v(({content:c,originalContent:o})=>{let t=p({...c});if(t.dependencies&&t.optionalDependencies)for(let h of Object.keys(t.optionalDependencies))delete t.dependencies[h];let s={...o};for(let h of a)t[h]&&(s[h]=t[h]),t[h]&&typeof t=="object"&&Object.keys(t[h]).length===0&&delete s[h];let{dependencies:i,peerDependencies:l}=o||{},{peerDependencies:u}=s;if(i&&l&&u)for(let h of Object.keys(l))i[h]!==void 0&&u[h]!==void 0&&(s.dependencies=s.dependencies||{},s.dependencies[h]=u[h]);return s},"updateDependencies");n.knownKeys=a,r.exports=n}),HS=K((e,r)=>{var a=v(({content:p,originalContent:n={}})=>{let c=p.scripts;if(!c)return n;if(v(()=>Object.entries(c).some(([o,t])=>typeof o!="string"||typeof t!="string"),"hasInvalidScripts")())throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...n,scripts:{...c}}},"updateScripts");r.exports=a}),GS=K((e,r)=>{var a=v(({content:p,originalContent:n={}})=>{let c=p.workspaces;if(!c)return n;let o=v(()=>c.some(t=>typeof t!="string"),"hasInvalidWorkspaces");if(!c.length||o())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...n,workspaces:[...c]}},"updateWorkspaces");r.exports=a}),bs=K((e,r)=>{"use strict";var a=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...p)=>{}:()=>{};r.exports=a}),_s=K((e,r)=>{"use strict";var a="2.0.0",p=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,c=250,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];r.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:c,MAX_SAFE_INTEGER:p,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:a,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),_r=K((e,r)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:p,MAX_LENGTH:n}=_s(),c=bs();e=r.exports={};var o=e.re=[],t=e.safeRe=[],s=e.src=[],i=e.safeSrc=[],l=e.t={},u=0,h="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[h,p]],g=v(f=>{for(let[y,S]of d)f=f.split(`${y}*`).join(`${y}{0,${S}}`).split(`${y}+`).join(`${y}{1,${S}}`);return f},"makeSafeRegex"),m=v((f,y,S)=>{let E=g(y),b=u++;c(f,b,y),l[f]=b,s[b]=y,i[b]=E,o[b]=new RegExp(y,S?"g":void 0),t[b]=new RegExp(E,S?"g":void 0)},"createToken");m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),m("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${s[l.NONNUMERICIDENTIFIER]}|${s[l.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NONNUMERICIDENTIFIER]}|${s[l.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${h}+`),m("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),m("FULL",`^${s[l.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),m("LOOSE",`^${s[l.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),m("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),m("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",s[l.COERCE],!0),m("COERCERTLFULL",s[l.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),zn=K((e,r)=>{"use strict";var a=Object.freeze({loose:!0}),p=Object.freeze({}),n=v(c=>c?typeof c!="object"?a:c:p,"parseOptions");r.exports=n}),Hc=K((e,r)=>{"use strict";var a=/^[0-9]+$/,p=v((c,o)=>{let t=a.test(c),s=a.test(o);return t&&s&&(c=+c,o=+o),c===o?0:t&&!s?-1:s&&!t?1:c<o?-1:1},"compareIdentifiers"),n=v((c,o)=>p(o,c),"rcompareIdentifiers");r.exports={compareIdentifiers:p,rcompareIdentifiers:n}}),Ge=K((e,r)=>{"use strict";var a=bs(),{MAX_LENGTH:p,MAX_SAFE_INTEGER:n}=_s(),{safeRe:c,t:o}=_r(),t=zn(),{compareIdentifiers:s}=Hc(),i=class ft{static{v(this,"SemVer")}constructor(u,h){if(h=t(h),u instanceof ft){if(u.loose===!!h.loose&&u.includePrerelease===!!h.includePrerelease)return u;u=u.version}else if(typeof u!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof u}".`);if(u.length>p)throw new TypeError(`version is longer than ${p} characters`);a("SemVer",u,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;let d=u.trim().match(h.loose?c[o.LOOSE]:c[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${u}`);if(this.raw=u,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(g=>{if(/^[0-9]+$/.test(g)){let m=+g;if(m>=0&&m<n)return m}return g}):this.prerelease=[],this.build=d[5]?d[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(u){if(a("SemVer.compare",this.version,this.options,u),!(u instanceof ft)){if(typeof u=="string"&&u===this.version)return 0;u=new ft(u,this.options)}return u.version===this.version?0:this.compareMain(u)||this.comparePre(u)}compareMain(u){return u instanceof ft||(u=new ft(u,this.options)),s(this.major,u.major)||s(this.minor,u.minor)||s(this.patch,u.patch)}comparePre(u){if(u instanceof ft||(u=new ft(u,this.options)),this.prerelease.length&&!u.prerelease.length)return-1;if(!this.prerelease.length&&u.prerelease.length)return 1;if(!this.prerelease.length&&!u.prerelease.length)return 0;let h=0;do{let d=this.prerelease[h],g=u.prerelease[h];if(a("prerelease compare",h,d,g),d===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(d===void 0)return-1;if(d!==g)return s(d,g)}while(++h)}compareBuild(u){u instanceof ft||(u=new ft(u,this.options));let h=0;do{let d=this.build[h],g=u.build[h];if(a("build compare",h,d,g),d===void 0&&g===void 0)return 0;if(g===void 0)return 1;if(d===void 0)return-1;if(d!==g)return s(d,g)}while(++h)}inc(u,h,d){if(u.startsWith("pre")){if(!h&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(h){let g=`-${h}`.match(this.options.loose?c[o.PRERELEASELOOSE]:c[o.PRERELEASE]);if(!g||g[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(u){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,d),this.inc("pre",h,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,d),this.inc("pre",h,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let g=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[g];else{let m=this.prerelease.length;for(;--m>=0;)typeof this.prerelease[m]=="number"&&(this.prerelease[m]++,m=-2);if(m===-1){if(h===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(g)}}if(h){let m=[h,g];d===!1&&(m=[h]),s(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=m):this.prerelease=m}break}default:throw new Error(`invalid increment argument: ${u}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};r.exports=i}),qt=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c,o=!1)=>{if(n instanceof a)return n;try{return new a(n,c)}catch(t){if(!o)return null;throw t}},"parse");r.exports=p}),Gc=K((e,r)=>{"use strict";var a=qt(),p=v((n,c)=>{let o=a(n,c);return o?o.version:null},"valid");r.exports=p}),Vc=K((e,r)=>{"use strict";var a=qt(),p=v((n,c)=>{let o=a(n.trim().replace(/^[=v]+/,""),c);return o?o.version:null},"clean");r.exports=p}),ct=K((e,r)=>{var a=Symbol("proc-log.meta");r.exports={META:a,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:v(function(...p){return process.emit("output","standard",...p)},"standard"),error:v(function(...p){return process.emit("output","error",...p)},"error"),buffer:v(function(...p){return process.emit("output","buffer",...p)},"buffer"),flush:v(function(...p){return process.emit("output","flush",...p)},"flush")},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:v(function(...p){return process.emit("log","error",...p)},"error"),notice:v(function(...p){return process.emit("log","notice",...p)},"notice"),warn:v(function(...p){return process.emit("log","warn",...p)},"warn"),info:v(function(...p){return process.emit("log","info",...p)},"info"),verbose:v(function(...p){return process.emit("log","verbose",...p)},"verbose"),http:v(function(...p){return process.emit("log","http",...p)},"http"),silly:v(function(...p){return process.emit("log","silly",...p)},"silly"),timing:v(function(...p){return process.emit("log","timing",...p)},"timing"),pause:v(function(){return process.emit("log","pause")},"pause"),resume:v(function(){return process.emit("log","resume")},"resume")},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:v(function(p,n){process.emit("time","start",p);function c(){return process.emit("time","end",p)}if(v(c,"end"),typeof n=="function"){let o=n();return o&&o.finally?o.finally(c):(c(),o)}return c},"start"),end:v(function(p){return process.emit("time","end",p)},"end")},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:v(function(p){process.emit("input","start");function n(){return process.emit("input","end")}if(v(n,"end"),typeof p=="function"){let c=p();return c&&c.finally?c.finally(n):(n(),c)}return n},"start"),end:v(function(){return process.emit("input","end")},"end"),read:v(function(...p){let n,c,o=new Promise((t,s)=>{n=t,c=s});return process.emit("input","read",n,c,...p),o},"read")}}}),Kt=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var r=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a=new Set,p=typeof process=="object"&&process?process:{},n=v((g,m,f,y)=>{typeof p.emitWarning=="function"&&p.emitWarning(g,m,f,y)},"emitWarning"),c=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof c>"u"){o=class{static{v(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,y){this._onabort.push(y)}},c=class{static{v(this,"AbortController")}constructor(){m()}signal=new o;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let y of this.signal._onabort)y(f);this.signal.onabort?.(f)}}};let g=p.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",m=v(()=>{g&&(g=!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",m))},"warnACPolyfill")}var t=v(g=>!a.has(g),"shouldWarn"),s=Symbol("type"),i=v(g=>g&&g===Math.floor(g)&&g>0&&isFinite(g),"isPosInt"),l=v(g=>i(g)?g<=Math.pow(2,8)?Uint8Array:g<=Math.pow(2,16)?Uint16Array:g<=Math.pow(2,32)?Uint32Array:g<=Number.MAX_SAFE_INTEGER?u:null:null,"getUintArray"),u=class extends Array{static{v(this,"ZeroArray")}constructor(g){super(g),this.fill(0)}},h=class Sr{static{v(this,"Stack")}heap;length;static#e=!1;static create(m){let f=l(m);if(!f)return[];Sr.#e=!0;let y=new Sr(m,f);return Sr.#e=!1,y}constructor(m,f){if(!Sr.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(m),this.length=0}push(m){this.heap[this.length++]=m}pop(){return this.heap[--this.length]}},d=class Wc{static{v(this,"LRUCache")}#e;#t;#r;#s;#i;#c;#l;#h;get perf(){return this.#h}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#u;#n;#d;#a;#f;#g;#E;#m;#R;#v;#b;#_;#O;#w;#P;#A;#p;static unsafeExposeInternals(m){return{starts:m.#_,ttls:m.#O,sizes:m.#b,keyMap:m.#n,keyList:m.#d,valList:m.#a,next:m.#f,prev:m.#g,get head(){return m.#E},get tail(){return m.#m},free:m.#R,isBackgroundFetch:v(f=>m.#y(f),"isBackgroundFetch"),backgroundFetch:v((f,y,S,E)=>m.#U(f,y,S,E),"backgroundFetch"),moveToTail:v(f=>m.#G(f),"moveToTail"),indexes:v(f=>m.#N(f),"indexes"),rindexes:v(f=>m.#L(f),"rindexes"),isStale:v(f=>m.#I(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#u}get size(){return this.#o}get fetchMethod(){return this.#c}get memoMethod(){return this.#l}get dispose(){return this.#r}get onInsert(){return this.#s}get disposeAfter(){return this.#i}constructor(m){let{max:f=0,ttl:y,ttlResolution:S=1,ttlAutopurge:E,updateAgeOnGet:b,updateAgeOnHas:_,allowStale:w,dispose:O,onInsert:R,disposeAfter:I,noDisposeOnSet:P,noUpdateTTL:L,maxSize:M=0,maxEntrySize:x=0,sizeCalculation:j,fetchMethod:U,memoMethod:V,noDeleteOnFetchRejection:B,noDeleteOnStaleGet:G,allowStaleOnFetchRejection:W,allowStaleOnFetchAbort:N,ignoreFetchAbort:D,perf:T}=m;if(T!==void 0&&typeof T?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#h=T??r,f!==0&&!i(f))throw new TypeError("max option must be a nonnegative integer");let C=f?l(f):Array;if(!C)throw new Error("invalid max value: "+f);if(this.#e=f,this.#t=M,this.maxEntrySize=x||this.#t,this.sizeCalculation=j,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(V!==void 0&&typeof V!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#l=V,U!==void 0&&typeof U!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#c=U,this.#P=!!U,this.#n=new Map,this.#d=new Array(f).fill(void 0),this.#a=new Array(f).fill(void 0),this.#f=new C(f),this.#g=new C(f),this.#E=0,this.#m=0,this.#R=h.create(f),this.#o=0,this.#u=0,typeof O=="function"&&(this.#r=O),typeof R=="function"&&(this.#s=R),typeof I=="function"?(this.#i=I,this.#v=[]):(this.#i=void 0,this.#v=void 0),this.#w=!!this.#r,this.#p=!!this.#s,this.#A=!!this.#i,this.noDisposeOnSet=!!P,this.noUpdateTTL=!!L,this.noDeleteOnFetchRejection=!!B,this.allowStaleOnFetchRejection=!!W,this.allowStaleOnFetchAbort=!!N,this.ignoreFetchAbort=!!D,this.maxEntrySize!==0){if(this.#t!==0&&!i(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#F()}if(this.allowStale=!!w,this.noDeleteOnStaleGet=!!G,this.updateAgeOnGet=!!b,this.updateAgeOnHas=!!_,this.ttlResolution=i(S)||S===0?S:1,this.ttlAutopurge=!!E,this.ttl=y||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#M()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let Z="LRU_CACHE_UNBOUNDED";t(Z)&&(a.add(Z),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",Z,Wc))}}getRemainingTTL(m){return this.#n.has(m)?1/0:0}#M(){let m=new u(this.#e),f=new u(this.#e);this.#O=m,this.#_=f,this.#j=(E,b,_=this.#h.now())=>{if(f[E]=b!==0?_:0,m[E]=b,b!==0&&this.ttlAutopurge){let w=setTimeout(()=>{this.#I(E)&&this.#D(this.#d[E],"expire")},b+1);w.unref&&w.unref()}},this.#C=E=>{f[E]=m[E]!==0?this.#h.now():0},this.#T=(E,b)=>{if(m[b]){let _=m[b],w=f[b];if(!_||!w)return;E.ttl=_,E.start=w,E.now=y||S();let O=E.now-w;E.remainingTTL=_-O}};let y=0,S=v(()=>{let E=this.#h.now();if(this.ttlResolution>0){y=E;let b=setTimeout(()=>y=0,this.ttlResolution);b.unref&&b.unref()}return E},"getNow");this.getRemainingTTL=E=>{let b=this.#n.get(E);if(b===void 0)return 0;let _=m[b],w=f[b];if(!_||!w)return 1/0;let O=(y||S())-w;return _-O},this.#I=E=>{let b=f[E],_=m[E];return!!_&&!!b&&(y||S())-b>_}}#C=v(()=>{},"#updateItemAge");#T=v(()=>{},"#statusTTL");#j=v(()=>{},"#setItemTTL");#I=v(()=>!1,"#isStale");#F(){let m=new u(this.#e);this.#u=0,this.#b=m,this.#x=f=>{this.#u-=m[f],m[f]=0},this.#$=(f,y,S,E)=>{if(this.#y(y))return 0;if(!i(S))if(E){if(typeof E!="function")throw new TypeError("sizeCalculation must be a function");if(S=E(y,f),!i(S))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return S},this.#k=(f,y,S)=>{if(m[f]=y,this.#t){let E=this.#t-m[f];for(;this.#u>E;)this.#B(!0)}this.#u+=m[f],S&&(S.entrySize=y,S.totalCalculatedSize=this.#u)}}#x=v(m=>{},"#removeItemSize");#k=v((m,f,y)=>{},"#addItemSize");#$=v((m,f,y,S)=>{if(y||S)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#N({allowStale:m=this.allowStale}={}){if(this.#o)for(let f=this.#m;!(!this.#S(f)||((m||!this.#I(f))&&(yield f),f===this.#E));)f=this.#g[f]}*#L({allowStale:m=this.allowStale}={}){if(this.#o)for(let f=this.#E;!(!this.#S(f)||((m||!this.#I(f))&&(yield f),f===this.#m));)f=this.#f[f]}#S(m){return m!==void 0&&this.#n.get(this.#d[m])===m}*entries(){for(let m of this.#N())this.#a[m]!==void 0&&this.#d[m]!==void 0&&!this.#y(this.#a[m])&&(yield[this.#d[m],this.#a[m]])}*rentries(){for(let m of this.#L())this.#a[m]!==void 0&&this.#d[m]!==void 0&&!this.#y(this.#a[m])&&(yield[this.#d[m],this.#a[m]])}*keys(){for(let m of this.#N()){let f=this.#d[m];f!==void 0&&!this.#y(this.#a[m])&&(yield f)}}*rkeys(){for(let m of this.#L()){let f=this.#d[m];f!==void 0&&!this.#y(this.#a[m])&&(yield f)}}*values(){for(let m of this.#N())this.#a[m]!==void 0&&!this.#y(this.#a[m])&&(yield this.#a[m])}*rvalues(){for(let m of this.#L())this.#a[m]!==void 0&&!this.#y(this.#a[m])&&(yield this.#a[m])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(m,f={}){for(let y of this.#N()){let S=this.#a[y],E=this.#y(S)?S.__staleWhileFetching:S;if(E!==void 0&&m(E,this.#d[y],this))return this.get(this.#d[y],f)}}forEach(m,f=this){for(let y of this.#N()){let S=this.#a[y],E=this.#y(S)?S.__staleWhileFetching:S;E!==void 0&&m.call(f,E,this.#d[y],this)}}rforEach(m,f=this){for(let y of this.#L()){let S=this.#a[y],E=this.#y(S)?S.__staleWhileFetching:S;E!==void 0&&m.call(f,E,this.#d[y],this)}}purgeStale(){let m=!1;for(let f of this.#L({allowStale:!0}))this.#I(f)&&(this.#D(this.#d[f],"expire"),m=!0);return m}info(m){let f=this.#n.get(m);if(f===void 0)return;let y=this.#a[f],S=this.#y(y)?y.__staleWhileFetching:y;if(S===void 0)return;let E={value:S};if(this.#O&&this.#_){let b=this.#O[f],_=this.#_[f];if(b&&_){let w=b-(this.#h.now()-_);E.ttl=w,E.start=Date.now()}}return this.#b&&(E.size=this.#b[f]),E}dump(){let m=[];for(let f of this.#N({allowStale:!0})){let y=this.#d[f],S=this.#a[f],E=this.#y(S)?S.__staleWhileFetching:S;if(E===void 0||y===void 0)continue;let b={value:E};if(this.#O&&this.#_){b.ttl=this.#O[f];let _=this.#h.now()-this.#_[f];b.start=Math.floor(Date.now()-_)}this.#b&&(b.size=this.#b[f]),m.unshift([y,b])}return m}load(m){this.clear();for(let[f,y]of m){if(y.start){let S=Date.now()-y.start;y.start=this.#h.now()-S}this.set(f,y.value,y)}}set(m,f,y={}){if(f===void 0)return this.delete(m),this;let{ttl:S=this.ttl,start:E,noDisposeOnSet:b=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:w}=y,{noUpdateTTL:O=this.noUpdateTTL}=y,R=this.#$(m,f,y.size||0,_);if(this.maxEntrySize&&R>this.maxEntrySize)return w&&(w.set="miss",w.maxEntrySizeExceeded=!0),this.#D(m,"set"),this;let I=this.#o===0?void 0:this.#n.get(m);if(I===void 0)I=this.#o===0?this.#m:this.#R.length!==0?this.#R.pop():this.#o===this.#e?this.#B(!1):this.#o,this.#d[I]=m,this.#a[I]=f,this.#n.set(m,I),this.#f[this.#m]=I,this.#g[I]=this.#m,this.#m=I,this.#o++,this.#k(I,R,w),w&&(w.set="add"),O=!1,this.#p&&this.#s?.(f,m,"add");else{this.#G(I);let P=this.#a[I];if(f!==P){if(this.#P&&this.#y(P)){P.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:L}=P;L!==void 0&&!b&&(this.#w&&this.#r?.(L,m,"set"),this.#A&&this.#v?.push([L,m,"set"]))}else b||(this.#w&&this.#r?.(P,m,"set"),this.#A&&this.#v?.push([P,m,"set"]));if(this.#x(I),this.#k(I,R,w),this.#a[I]=f,w){w.set="replace";let L=P&&this.#y(P)?P.__staleWhileFetching:P;L!==void 0&&(w.oldValue=L)}}else w&&(w.set="update");this.#p&&this.onInsert?.(f,m,f===P?"update":"replace")}if(S!==0&&!this.#O&&this.#M(),this.#O&&(O||this.#j(I,S,E),w&&this.#T(w,I)),!b&&this.#A&&this.#v){let P=this.#v,L;for(;L=P?.shift();)this.#i?.(...L)}return this}pop(){try{for(;this.#o;){let m=this.#a[this.#E];if(this.#B(!0),this.#y(m)){if(m.__staleWhileFetching)return m.__staleWhileFetching}else if(m!==void 0)return m}}finally{if(this.#A&&this.#v){let m=this.#v,f;for(;f=m?.shift();)this.#i?.(...f)}}}#B(m){let f=this.#E,y=this.#d[f],S=this.#a[f];return this.#P&&this.#y(S)?S.__abortController.abort(new Error("evicted")):(this.#w||this.#A)&&(this.#w&&this.#r?.(S,y,"evict"),this.#A&&this.#v?.push([S,y,"evict"])),this.#x(f),m&&(this.#d[f]=void 0,this.#a[f]=void 0,this.#R.push(f)),this.#o===1?(this.#E=this.#m=0,this.#R.length=0):this.#E=this.#f[f],this.#n.delete(y),this.#o--,f}has(m,f={}){let{updateAgeOnHas:y=this.updateAgeOnHas,status:S}=f,E=this.#n.get(m);if(E!==void 0){let b=this.#a[E];if(this.#y(b)&&b.__staleWhileFetching===void 0)return!1;if(this.#I(E))S&&(S.has="stale",this.#T(S,E));else return y&&this.#C(E),S&&(S.has="hit",this.#T(S,E)),!0}else S&&(S.has="miss");return!1}peek(m,f={}){let{allowStale:y=this.allowStale}=f,S=this.#n.get(m);if(S===void 0||!y&&this.#I(S))return;let E=this.#a[S];return this.#y(E)?E.__staleWhileFetching:E}#U(m,f,y,S){let E=f===void 0?void 0:this.#a[f];if(this.#y(E))return E;let b=new c,{signal:_}=y;_?.addEventListener("abort",()=>b.abort(_.reason),{signal:b.signal});let w={signal:b.signal,options:y,context:S},O=v((x,j=!1)=>{let{aborted:U}=b.signal,V=y.ignoreFetchAbort&&x!==void 0;if(y.status&&(U&&!j?(y.status.fetchAborted=!0,y.status.fetchError=b.signal.reason,V&&(y.status.fetchAbortIgnored=!0)):y.status.fetchResolved=!0),U&&!V&&!j)return I(b.signal.reason);let B=L,G=this.#a[f];return(G===L||V&&j&&G===void 0)&&(x===void 0?B.__staleWhileFetching!==void 0?this.#a[f]=B.__staleWhileFetching:this.#D(m,"fetch"):(y.status&&(y.status.fetchUpdated=!0),this.set(m,x,w.options))),x},"cb"),R=v(x=>(y.status&&(y.status.fetchRejected=!0,y.status.fetchError=x),I(x)),"eb"),I=v(x=>{let{aborted:j}=b.signal,U=j&&y.allowStaleOnFetchAbort,V=U||y.allowStaleOnFetchRejection,B=V||y.noDeleteOnFetchRejection,G=L;if(this.#a[f]===L&&(!B||G.__staleWhileFetching===void 0?this.#D(m,"fetch"):U||(this.#a[f]=G.__staleWhileFetching)),V)return y.status&&G.__staleWhileFetching!==void 0&&(y.status.returnedStale=!0),G.__staleWhileFetching;if(G.__returned===G)throw x},"fetchFail"),P=v((x,j)=>{let U=this.#c?.(m,E,w);U&&U instanceof Promise&&U.then(V=>x(V===void 0?void 0:V),j),b.signal.addEventListener("abort",()=>{(!y.ignoreFetchAbort||y.allowStaleOnFetchAbort)&&(x(void 0),y.allowStaleOnFetchAbort&&(x=v(V=>O(V,!0),"res")))})},"pcall");y.status&&(y.status.fetchDispatched=!0);let L=new Promise(P).then(O,R),M=Object.assign(L,{__abortController:b,__staleWhileFetching:E,__returned:void 0});return f===void 0?(this.set(m,M,{...w.options,status:void 0}),f=this.#n.get(m)):this.#a[f]=M,M}#y(m){if(!this.#P)return!1;let f=m;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof c}async fetch(m,f={}){let{allowStale:y=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:E=this.noDeleteOnStaleGet,ttl:b=this.ttl,noDisposeOnSet:_=this.noDisposeOnSet,size:w=0,sizeCalculation:O=this.sizeCalculation,noUpdateTTL:R=this.noUpdateTTL,noDeleteOnFetchRejection:I=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:P=this.allowStaleOnFetchRejection,ignoreFetchAbort:L=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:x,forceRefresh:j=!1,status:U,signal:V}=f;if(!this.#P)return U&&(U.fetch="get"),this.get(m,{allowStale:y,updateAgeOnGet:S,noDeleteOnStaleGet:E,status:U});let B={allowStale:y,updateAgeOnGet:S,noDeleteOnStaleGet:E,ttl:b,noDisposeOnSet:_,size:w,sizeCalculation:O,noUpdateTTL:R,noDeleteOnFetchRejection:I,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:M,ignoreFetchAbort:L,status:U,signal:V},G=this.#n.get(m);if(G===void 0){U&&(U.fetch="miss");let W=this.#U(m,G,B,x);return W.__returned=W}else{let W=this.#a[G];if(this.#y(W)){let C=y&&W.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",C&&(U.returnedStale=!0)),C?W.__staleWhileFetching:W.__returned=W}let N=this.#I(G);if(!j&&!N)return U&&(U.fetch="hit"),this.#G(G),S&&this.#C(G),U&&this.#T(U,G),W;let D=this.#U(m,G,B,x),T=D.__staleWhileFetching!==void 0&&y;return U&&(U.fetch=N?"stale":"refresh",T&&N&&(U.returnedStale=!0)),T?D.__staleWhileFetching:D.__returned=D}}async forceFetch(m,f={}){let y=await this.fetch(m,f);if(y===void 0)throw new Error("fetch() returned undefined");return y}memo(m,f={}){let y=this.#l;if(!y)throw new Error("no memoMethod provided to constructor");let{context:S,forceRefresh:E,...b}=f,_=this.get(m,b);if(!E&&_!==void 0)return _;let w=y(m,_,{options:b,context:S});return this.set(m,w,b),w}get(m,f={}){let{allowStale:y=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:E=this.noDeleteOnStaleGet,status:b}=f,_=this.#n.get(m);if(_!==void 0){let w=this.#a[_],O=this.#y(w);return b&&this.#T(b,_),this.#I(_)?(b&&(b.get="stale"),O?(b&&y&&w.__staleWhileFetching!==void 0&&(b.returnedStale=!0),y?w.__staleWhileFetching:void 0):(E||this.#D(m,"expire"),b&&y&&(b.returnedStale=!0),y?w:void 0)):(b&&(b.get="hit"),O?w.__staleWhileFetching:(this.#G(_),S&&this.#C(_),w))}else b&&(b.get="miss")}#H(m,f){this.#g[f]=m,this.#f[m]=f}#G(m){m!==this.#m&&(m===this.#E?this.#E=this.#f[m]:this.#H(this.#g[m],this.#f[m]),this.#H(this.#m,m),this.#m=m)}delete(m){return this.#D(m,"delete")}#D(m,f){let y=!1;if(this.#o!==0){let S=this.#n.get(m);if(S!==void 0)if(y=!0,this.#o===1)this.#V(f);else{this.#x(S);let E=this.#a[S];if(this.#y(E)?E.__abortController.abort(new Error("deleted")):(this.#w||this.#A)&&(this.#w&&this.#r?.(E,m,f),this.#A&&this.#v?.push([E,m,f])),this.#n.delete(m),this.#d[S]=void 0,this.#a[S]=void 0,S===this.#m)this.#m=this.#g[S];else if(S===this.#E)this.#E=this.#f[S];else{let b=this.#g[S];this.#f[b]=this.#f[S];let _=this.#f[S];this.#g[_]=this.#g[S]}this.#o--,this.#R.push(S)}}if(this.#A&&this.#v?.length){let S=this.#v,E;for(;E=S?.shift();)this.#i?.(...E)}return y}clear(){return this.#V("delete")}#V(m){for(let f of this.#L({allowStale:!0})){let y=this.#a[f];if(this.#y(y))y.__abortController.abort(new Error("deleted"));else{let S=this.#d[f];this.#w&&this.#r?.(y,S,m),this.#A&&this.#v?.push([y,S,m])}}if(this.#n.clear(),this.#a.fill(void 0),this.#d.fill(void 0),this.#O&&this.#_&&(this.#O.fill(0),this.#_.fill(0)),this.#b&&this.#b.fill(0),this.#E=0,this.#m=0,this.#R.length=0,this.#u=0,this.#o=0,this.#A&&this.#v){let f=this.#v,y;for(;y=f?.shift();)this.#i?.(...y)}}};e.LRUCache=d}),VS=K((e,r)=>{"use strict";var a=v((...t)=>t.every(s=>s)?t.join(""):"","maybeJoin"),p=v(t=>t?encodeURIComponent(t):"","maybeEncode"),n=v(t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),c={sshtemplate:v(({domain:t,user:s,project:i,committish:l})=>`git@${t}:${s}/${i}.git${a("#",l)}`,"sshtemplate"),sshurltemplate:v(({domain:t,user:s,project:i,committish:l})=>`git+ssh://git@${t}/${s}/${i}.git${a("#",l)}`,"sshurltemplate"),edittemplate:v(({domain:t,user:s,project:i,committish:l,editpath:u,path:h})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l||"HEAD"),"/",h)}`,"edittemplate"),browsetemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l))}`,"browsetemplate"),browsetreetemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u,path:h,fragment:d,hashformat:g})=>`https://${t}/${s}/${i}/${u}/${p(l||"HEAD")}/${h}${a("#",g(d||""))}`,"browsetreetemplate"),browseblobtemplate:v(({domain:t,user:s,project:i,committish:l,blobpath:u,path:h,fragment:d,hashformat:g})=>`https://${t}/${s}/${i}/${u}/${p(l||"HEAD")}/${h}${a("#",g(d||""))}`,"browseblobtemplate"),docstemplate:v(({domain:t,user:s,project:i,treepath:l,committish:u})=>`https://${t}/${s}/${i}${a("/",l,"/",p(u))}#readme`,"docstemplate"),httpstemplate:v(({auth:t,domain:s,user:i,project:l,committish:u})=>`git+https://${a(t,"@")}${s}/${i}/${l}.git${a("#",u)}`,"httpstemplate"),filetemplate:v(({domain:t,user:s,project:i,committish:l,path:u})=>`https://${t}/${s}/${i}/raw/${p(l||"HEAD")}/${u}`,"filetemplate"),shortcuttemplate:v(({type:t,user:s,project:i,committish:l})=>`${t}:${s}/${i}${a("#",l)}`,"shortcuttemplate"),pathtemplate:v(({user:t,project:s,committish:i})=>`${t}/${s}${a("#",i)}`,"pathtemplate"),bugstemplate:v(({domain:t,user:s,project:i})=>`https://${t}/${s}/${i}/issues`,"bugstemplate"),hashformat:n},o={};o.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:v(({auth:t,user:s,project:i,committish:l,path:u})=>`https://${a(t,"@")}raw.githubusercontent.com/${s}/${i}/${p(l||"HEAD")}/${u}`,"filetemplate"),gittemplate:v(({auth:t,domain:s,user:i,project:l,committish:u})=>`git://${a(t,"@")}${s}/${i}/${l}.git${a("#",u)}`,"gittemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://codeload.${t}/${s}/${i}/tar.gz/${p(l||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let[,s,i,l,u]=t.pathname.split("/",5);if(!(l&&l!=="tree")&&(l||(u=t.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:u}},"extract")},o.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u,path:h,editpath:d})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l||"HEAD"),"/",h,d)}`,"edittemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/get/${p(l||"HEAD")}.tar.gz`,"tarballtemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(!["get"].includes(l)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:t.hash.slice(1)}},"extract")},o.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/repository/archive.tar.gz?ref=${p(l||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let s=t.pathname.slice(1);if(s.includes("/-/")||s.includes("/archive.tar.gz"))return;let i=s.split("/"),l=i.pop();l.endsWith(".git")&&(l=l.slice(0,-4));let u=i.join("/");if(!(!u||!l))return{user:u,project:l,committish:t.hash.slice(1)}},"extract")},o.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:v(({domain:t,project:s,committish:i})=>`git@${t}:${s}.git${a("#",i)}`,"sshtemplate"),sshurltemplate:v(({domain:t,project:s,committish:i})=>`git+ssh://git@${t}/${s}.git${a("#",i)}`,"sshurltemplate"),edittemplate:v(({domain:t,user:s,project:i,committish:l,editpath:u})=>`https://${t}/${s}/${i}${a("/",p(l))}/${u}`,"edittemplate"),browsetemplate:v(({domain:t,project:s,committish:i})=>`https://${t}/${s}${a("/",p(i))}`,"browsetemplate"),browsetreetemplate:v(({domain:t,project:s,committish:i,path:l,hashformat:u})=>`https://${t}/${s}${a("/",p(i))}${a("#",u(l))}`,"browsetreetemplate"),browseblobtemplate:v(({domain:t,project:s,committish:i,path:l,hashformat:u})=>`https://${t}/${s}${a("/",p(i))}${a("#",u(l))}`,"browseblobtemplate"),docstemplate:v(({domain:t,project:s,committish:i})=>`https://${t}/${s}${a("/",p(i))}`,"docstemplate"),httpstemplate:v(({domain:t,project:s,committish:i})=>`git+https://${t}/${s}.git${a("#",i)}`,"httpstemplate"),filetemplate:v(({user:t,project:s,committish:i,path:l})=>`https://gist.githubusercontent.com/${t}/${s}/raw${a("/",p(i))}/${l}`,"filetemplate"),shortcuttemplate:v(({type:t,project:s,committish:i})=>`${t}:${s}${a("#",i)}`,"shortcuttemplate"),pathtemplate:v(({project:t,committish:s})=>`${t}${a("#",s)}`,"pathtemplate"),bugstemplate:v(({domain:t,project:s})=>`https://${t}/${s}`,"bugstemplate"),gittemplate:v(({domain:t,project:s,committish:i})=>`git://${t}/${s}.git${a("#",i)}`,"gittemplate"),tarballtemplate:v(({project:t,committish:s})=>`https://codeload.github.com/gist/${t}/tar.gz/${p(s||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(l!=="raw"){if(!i){if(!s)return;i=s,s=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:s,project:i,committish:t.hash.slice(1)}}},"extract"),hashformat:v(function(t){return t&&"file-"+n(t)},"hashformat")},o.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:v(({domain:t,user:s,project:i,committish:l,path:u})=>`https://${t}/${s}/${i}/blob/${p(l)||"HEAD"}/${u}`,"filetemplate"),httpstemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}.git${a("#",l)}`,"httpstemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/archive/${p(l)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:v(()=>null,"bugstemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(!["archive"].includes(l)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:t.hash.slice(1)}},"extract")};for(let[t,s]of Object.entries(o))o[t]=Object.assign({},c,s);r.exports=o}),zc=K((e,r)=>{var a=require("url"),p=v((t,s,i)=>{let l=t.indexOf(i);return t.lastIndexOf(s,l>-1?l:1/0)},"lastIndexOfBefore"),n=v(t=>{try{return new a.URL(t)}catch{}},"safeUrl"),c=v((t,s)=>{let i=t.indexOf(":"),l=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(s,l)||t.substr(i,3)==="://")return t;let u=t.indexOf("@");return u>-1?u>i?`git+ssh://${t}`:t:`${t.slice(0,i+1)}//${t.slice(i+1)}`},"correctProtocol"),o=v(t=>{let s=p(t,"@","#"),i=p(t,":","#");return i>s&&(t=t.slice(0,i)+"/"+t.slice(i+1)),p(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");r.exports=(t,s)=>{let i=s?c(t,s):t;return n(i)||n(o(i))}}),WS=K((e,r)=>{"use strict";var a=zc(),p=v(n=>{let c=n.indexOf("#"),o=n.indexOf("/"),t=n.indexOf("/",o+1),s=n.indexOf(":"),i=/\s/.exec(n),l=n.indexOf("@"),u=!i||c>-1&&i.index>c,h=l===-1||c>-1&&l>c,d=s===-1||c>-1&&s>c,g=t===-1||c>-1&&t>c,m=o>0,f=c>-1?n[c-1]!=="/":!n.endsWith("/"),y=!n.startsWith(".");return u&&m&&f&&y&&h&&d&&g},"isGitHubShorthand");r.exports=(n,c,{gitHosts:o,protocols:t})=>{if(!n)return;let s=p(n)?`github:${n}`:n,i=a(s,t);if(!i)return;let l=o.byShortcut[i.protocol],u=o.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],h=l||u;if(!h)return;let d=o[l||u],g=null;t[i.protocol]?.auth&&(i.username||i.password)&&(g=`${i.username}${i.password?":"+i.password:""}`);let m=null,f=null,y=null,S=null;try{if(l){let E=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,b=E.indexOf("@");b>-1&&(E=E.slice(b+1));let _=E.lastIndexOf("/");_>-1?(f=decodeURIComponent(E.slice(0,_)),f||(f=null),y=decodeURIComponent(E.slice(_+1))):y=decodeURIComponent(E),y.endsWith(".git")&&(y=y.slice(0,-4)),i.hash&&(m=decodeURIComponent(i.hash.slice(1))),S="shortcut"}else{if(!d.protocols.includes(i.protocol))return;let E=d.extract(i);if(!E)return;f=E.user&&decodeURIComponent(E.user),y=decodeURIComponent(E.project),m=decodeURIComponent(E.committish),S=t[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(E){if(E instanceof URIError)return;throw E}return[h,f,g,y,m,S,c]}}),qn=K((e,r)=>{"use strict";var{LRUCache:a}=Kt(),p=VS(),n=WS(),c=zc(),o=new a({max:1e3});function t(i){try{let{protocol:l,hostname:u,pathname:h}=new URL(i);if(!u)return null;let d=/(?:git\+)http:$/.test(l)?"http:":"https:",g=h.replace(/\.git$/,"");return`${d}//${u}${g}`}catch{return null}}v(t,"unknownHostedUrl");var s=class ot{static{v(this,"GitHost")}constructor(l,u,h,d,g,m,f={}){Object.assign(this,ot.#e[l],{type:l,user:u,auth:h,project:d,committish:g,default:m,opts:f})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(l,u){ot.#e[l]=u,ot.#e.byDomain[u.domain]=l,ot.#e.byShortcut[`${l}:`]=l,ot.#t[`${l}:`]={name:l}}static fromUrl(l,u){if(typeof l!="string")return;let h=l+JSON.stringify(u||{});if(!o.has(h)){let d=n(l,u,{gitHosts:ot.#e,protocols:ot.#t});o.set(h,d?new ot(...d):void 0)}return o.get(h)}static fromManifest(l,u={}){if(!l||typeof l!="object")return;let h=l.repository,d=h&&(typeof h=="string"?h:typeof h=="object"&&typeof h.url=="string"?h.url:null);if(!d)throw new Error("no repository");let g=d&&ot.fromUrl(d.replace(/^git\+/,""),u)||null;if(g)return g;let m=t(d);return ot.fromUrl(m,u)||m}static parseUrl(l){return c(l)}#r(l,u){if(typeof l!="function")return null;let h={...this,...this.opts,...u};h.path||(h.path=""),h.path.startsWith("/")&&(h.path=h.path.slice(1)),h.noCommittish&&(h.committish=null);let d=l(h);return h.noGitPlus&&d.startsWith("git+")?d.slice(4):d}hash(){return this.committish?`#${this.committish}`:""}ssh(l){return this.#r(this.sshtemplate,l)}sshurl(l){return this.#r(this.sshurltemplate,l)}browse(l,...u){return typeof l!="string"?this.#r(this.browsetemplate,l):typeof u[0]!="string"?this.#r(this.browsetreetemplate,{...u[0],path:l}):this.#r(this.browsetreetemplate,{...u[1],fragment:u[0],path:l})}browseFile(l,...u){return typeof u[0]!="string"?this.#r(this.browseblobtemplate,{...u[0],path:l}):this.#r(this.browseblobtemplate,{...u[1],fragment:u[0],path:l})}docs(l){return this.#r(this.docstemplate,l)}bugs(l){return this.#r(this.bugstemplate,l)}https(l){return this.#r(this.httpstemplate,l)}git(l){return this.#r(this.gittemplate,l)}shortcut(l){return this.#r(this.shortcuttemplate,l)}path(l){return this.#r(this.pathtemplate,l)}tarball(l){return this.#r(this.tarballtemplate,{...l,noCommittish:!1})}file(l,u){return this.#r(this.filetemplate,{...u,path:l})}edit(l,u){return this.#r(this.edittemplate,{...u,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]=="function"?this[this.default](l):this.sshurl(l)}};for(let[i,l]of Object.entries(p))s.addHost(i,l);r.exports=s}),zS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=e.balanced=void 0;var r=v((n,c,o)=>{let t=n instanceof RegExp?a(n,o):n,s=c instanceof RegExp?a(c,o):c,i=t!==null&&s!=null&&(0,e.range)(t,s,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+t.length,i[1]),post:o.slice(i[1]+s.length)}},"balanced");e.balanced=r;var a=v((n,c)=>{let o=c.match(n);return o?o[0]:null},"maybeMatch"),p=v((n,c,o)=>{let t,s,i,l,u,h=o.indexOf(n),d=o.indexOf(c,h+1),g=h;if(h>=0&&d>0){if(n===c)return[h,d];for(t=[],i=o.length;g>=0&&!u;){if(g===h)t.push(g),h=o.indexOf(n,g+1);else if(t.length===1){let m=t.pop();m!==void 0&&(u=[m,d])}else s=t.pop(),s!==void 0&&s<i&&(i=s,l=d),d=o.indexOf(c,g+1);g=h<d&&h>=0?h:d}t.length&&l!==void 0&&(u=[i,l])}return u},"range");e.range=p}),qS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expand=_;var r=zS(),a="\0SLASH"+Math.random()+"\0",p="\0OPEN"+Math.random()+"\0",n="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",o="\0PERIOD"+Math.random()+"\0",t=new RegExp(a,"g"),s=new RegExp(p,"g"),i=new RegExp(n,"g"),l=new RegExp(c,"g"),u=new RegExp(o,"g"),h=/\\\\/g,d=/\\{/g,g=/\\}/g,m=/\\,/g,f=/\\./g;function y(L){return isNaN(L)?L.charCodeAt(0):parseInt(L,10)}v(y,"numeric");function S(L){return L.replace(h,a).replace(d,p).replace(g,n).replace(m,c).replace(f,o)}v(S,"escapeBraces");function E(L){return L.replace(t,"\\").replace(s,"{").replace(i,"}").replace(l,",").replace(u,".")}v(E,"unescapeBraces");function b(L){if(!L)return[""];let M=[],x=(0,r.balanced)("{","}",L);if(!x)return L.split(",");let{pre:j,body:U,post:V}=x,B=j.split(",");B[B.length-1]+="{"+U+"}";let G=b(V);return V.length&&(B[B.length-1]+=G.shift(),B.push.apply(B,G)),M.push.apply(M,B),M}v(b,"parseCommaParts");function _(L){return L?(L.slice(0,2)==="{}"&&(L="\\{\\}"+L.slice(2)),P(S(L),!0).map(E)):[]}v(_,"expand");function w(L){return"{"+L+"}"}v(w,"embrace");function O(L){return/^-?0\d/.test(L)}v(O,"isPadded");function R(L,M){return L<=M}v(R,"lte");function I(L,M){return L>=M}v(I,"gte");function P(L,M){let x=[],j=(0,r.balanced)("{","}",L);if(!j)return[L];let U=j.pre,V=j.post.length?P(j.post,!1):[""];if(/\$$/.test(j.pre))for(let B=0;B<V.length;B++){let G=U+"{"+j.body+"}"+V[B];x.push(G)}else{let B=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(j.body),G=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(j.body),W=B||G,N=j.body.indexOf(",")>=0;if(!W&&!N)return j.post.match(/,(?!,).*\}/)?(L=j.pre+"{"+j.body+n+j.post,P(L)):[L];let D;if(W)D=j.body.split(/\.\./);else if(D=b(j.body),D.length===1&&D[0]!==void 0&&(D=P(D[0],!1).map(w),D.length===1))return V.map(C=>j.pre+D[0]+C);let T;if(W&&D[0]!==void 0&&D[1]!==void 0){let C=y(D[0]),Z=y(D[1]),X=Math.max(D[0].length,D[1].length),Q=D.length===3&&D[2]!==void 0?Math.abs(y(D[2])):1,k=R;Z<C&&(Q*=-1,k=I);let F=D.some(O);T=[];for(let z=C;k(z,Z);z+=Q){let $;if(G)$=String.fromCharCode(z),$==="\\"&&($="");else if($=String(z),F){let q=X-$.length;if(q>0){let J=new Array(q+1).join("0");z<0?$="-"+J+$.slice(1):$=J+$}}T.push($)}}else{T=[];for(let C=0;C<D.length;C++)T.push.apply(T,P(D[C],!1))}for(let C=0;C<T.length;C++)for(let Z=0;Z<V.length;Z++){let X=U+T[C]+V[Z];(!M||W||X)&&x.push(X)}}return x}v(P,"expand_")}),KS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0;var r=1024*64,a=v(p=>{if(typeof p!="string")throw new TypeError("invalid pattern");if(p.length>r)throw new TypeError("pattern is too long")},"assertValidPattern");e.assertValidPattern=a}),JS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;var r={"[: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]},a=v(o=>o.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),p=v(o=>o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),n=v(o=>o.join(""),"rangesToString"),c=v((o,t)=>{let s=t;if(o.charAt(s)!=="[")throw new Error("not in a brace expression");let i=[],l=[],u=s+1,h=!1,d=!1,g=!1,m=!1,f=s,y="";e:for(;u<o.length;){let b=o.charAt(u);if((b==="!"||b==="^")&&u===s+1){m=!0,u++;continue}if(b==="]"&&h&&!g){f=u+1;break}if(h=!0,b==="\\"&&!g){g=!0,u++;continue}if(b==="["&&!g){for(let[_,[w,O,R]]of Object.entries(r))if(o.startsWith(_,u)){if(y)return["$.",!1,o.length-s,!0];u+=_.length,R?l.push(w):i.push(w),d=d||O;continue e}}if(g=!1,y){b>y?i.push(a(y)+"-"+a(b)):b===y&&i.push(a(b)),y="",u++;continue}if(o.startsWith("-]",u+1)){i.push(a(b+"-")),u+=2;continue}if(o.startsWith("-",u+1)){y=b,u+=2;continue}i.push(a(b)),u++}if(f<u)return["",!1,0,!1];if(!i.length&&!l.length)return["$.",!1,o.length-s,!0];if(l.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){let b=i[0].length===2?i[0].slice(-1):i[0];return[p(b),!1,f-s,!1]}let S="["+(m?"^":"")+n(i)+"]",E="["+(m?"":"^")+n(l)+"]";return[i.length&&l.length?"("+S+"|"+E+")":i.length?S:E,d,f-s,!0]},"parseClass");e.parseClass=c}),_n=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0;var r=v((a,{windowsPathsNoEscape:p=!1}={})=>p?a.replace(/\[([^\/\\])\]/g,"$1"):a.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");e.unescape=r}),Pc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;var r=JS(),a=_n(),p=new Set(["!","?","+","*","@"]),n=v(m=>p.has(m),"isExtglobType"),c="(?!(?:^|/)\\.\\.?(?:$|/))",o="(?!\\.)",t=new Set(["[","."]),s=new Set(["..","."]),i=new Set("().*{}+?[]^$\\!"),l=v(m=>m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),u="[^/]",h=u+"*?",d=u+"+?",g=class Je{static{v(this,"AST")}type;#e;#t;#r=!1;#s=[];#i;#c;#l;#h=!1;#o;#u;#n=!1;constructor(f,y,S={}){this.type=f,f&&(this.#t=!0),this.#i=y,this.#e=this.#i?this.#i.#e:this,this.#o=this.#e===this?S:this.#e.#o,this.#l=this.#e===this?[]:this.#e.#l,f==="!"&&!this.#e.#h&&this.#l.push(this),this.#c=this.#i?this.#i.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let f of this.#s)if(typeof f!="string"&&(f.type||f.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#s.map(f=>String(f)).join("|")+")":this.#u=this.#s.map(f=>String(f)).join("")}#d(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let f;for(;f=this.#l.pop();){if(f.type!=="!")continue;let y=f,S=y.#i;for(;S;){for(let E=y.#c+1;!S.type&&E<S.#s.length;E++)for(let b of f.#s){if(typeof b=="string")throw new Error("string part in extglob AST??");b.copyIn(S.#s[E])}y=S,S=y.#i}}return this}push(...f){for(let y of f)if(y!==""){if(typeof y!="string"&&!(y instanceof Je&&y.#i===this))throw new Error("invalid part: "+y);this.#s.push(y)}}toJSON(){let f=this.type===null?this.#s.slice().map(y=>typeof y=="string"?y:y.toJSON()):[this.type,...this.#s.map(y=>y.toJSON())];return this.isStart()&&!this.type&&f.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#i?.type==="!")&&f.push({}),f}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#c===0)return!0;let f=this.#i;for(let y=0;y<this.#c;y++){let S=f.#s[y];if(!(S instanceof Je&&S.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let f=this.#i?this.#i.#s.length:0;return this.#c===f-1}copyIn(f){typeof f=="string"?this.push(f):this.push(f.clone(this))}clone(f){let y=new Je(this.type,f);for(let S of this.#s)y.copyIn(S);return y}static#a(f,y,S,E){let b=!1,_=!1,w=-1,O=!1;if(y.type===null){let M=S,x="";for(;M<f.length;){let j=f.charAt(M++);if(b||j==="\\"){b=!b,x+=j;continue}if(_){M===w+1?(j==="^"||j==="!")&&(O=!0):j==="]"&&!(M===w+2&&O)&&(_=!1),x+=j;continue}else if(j==="["){_=!0,w=M,O=!1,x+=j;continue}if(!E.noext&&n(j)&&f.charAt(M)==="("){y.push(x),x="";let U=new Je(j,y);M=Je.#a(f,U,M,E),y.push(U);continue}x+=j}return y.push(x),M}let R=S+1,I=new Je(null,y),P=[],L="";for(;R<f.length;){let M=f.charAt(R++);if(b||M==="\\"){b=!b,L+=M;continue}if(_){R===w+1?(M==="^"||M==="!")&&(O=!0):M==="]"&&!(R===w+2&&O)&&(_=!1),L+=M;continue}else if(M==="["){_=!0,w=R,O=!1,L+=M;continue}if(n(M)&&f.charAt(R)==="("){I.push(L),L="";let x=new Je(M,I);I.push(x),R=Je.#a(f,x,R,E);continue}if(M==="|"){I.push(L),L="",P.push(I),I=new Je(null,y);continue}if(M===")")return L===""&&y.#s.length===0&&(y.#n=!0),I.push(L),L="",y.push(...P,I),R;L+=M}return y.type=null,y.#t=void 0,y.#s=[f.substring(S-1)],R}static fromGlob(f,y={}){let S=new Je(null,void 0,y);return Je.#a(f,S,0,y),S}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let f=this.toString(),[y,S,E,b]=this.toRegExpSource();if(!(E||this.#t||this.#o.nocase&&!this.#o.nocaseMagicOnly&&f.toUpperCase()!==f.toLowerCase()))return S;let _=(this.#o.nocase?"i":"")+(b?"u":"");return Object.assign(new RegExp(`^${y}$`,_),{_src:y,_glob:f})}get options(){return this.#o}toRegExpSource(f){let y=f??!!this.#o.dot;if(this.#e===this&&this.#d(),!this.type){let O=this.isStart()&&this.isEnd(),R=this.#s.map(L=>{let[M,x,j,U]=typeof L=="string"?Je.#g(L,this.#t,O):L.toRegExpSource(f);return this.#t=this.#t||j,this.#r=this.#r||U,M}).join(""),I="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&s.has(this.#s[0]))){let L=t,M=y&&L.has(R.charAt(0))||R.startsWith("\\.")&&L.has(R.charAt(2))||R.startsWith("\\.\\.")&&L.has(R.charAt(4)),x=!y&&!f&&L.has(R.charAt(0));I=M?c:x?o:""}let P="";return this.isEnd()&&this.#e.#h&&this.#i?.type==="!"&&(P="(?:$|\\/)"),[I+R+P,(0,a.unescape)(R),this.#t=!!this.#t,this.#r]}let S=this.type==="*"||this.type==="+",E=this.type==="!"?"(?:(?!(?:":"(?:",b=this.#f(y);if(this.isStart()&&this.isEnd()&&!b&&this.type!=="!"){let O=this.toString();return this.#s=[O],this.type=null,this.#t=void 0,[O,(0,a.unescape)(this.toString()),!1,!1]}let _=!S||f||y||!o?"":this.#f(!0);_===b&&(_=""),_&&(b=`(?:${b})(?:${_})*?`);let w="";if(this.type==="!"&&this.#n)w=(this.isStart()&&!y?o:"")+d;else{let O=this.type==="!"?"))"+(this.isStart()&&!y&&!f?o:"")+h+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&_?")":this.type==="*"&&_?")?":`)${this.type}`;w=E+b+O}return[w,(0,a.unescape)(b),this.#t=!!this.#t,this.#r]}#f(f){return this.#s.map(y=>{if(typeof y=="string")throw new Error("string type in extglob ast??");let[S,E,b,_]=y.toRegExpSource(f);return this.#r=this.#r||_,S}).filter(y=>!(this.isStart()&&this.isEnd())||!!y).join("|")}static#g(f,y,S=!1){let E=!1,b="",_=!1;for(let w=0;w<f.length;w++){let O=f.charAt(w);if(E){E=!1,b+=(i.has(O)?"\\":"")+O;continue}if(O==="\\"){w===f.length-1?b+="\\\\":E=!0;continue}if(O==="["){let[R,I,P,L]=(0,r.parseClass)(f,w);if(P){b+=R,_=_||I,w+=P-1,y=y||L;continue}}if(O==="*"){S&&f==="*"?b+=d:b+=h,y=!0;continue}if(O==="?"){b+=u,y=!0;continue}b+=l(O)}return[b,(0,a.unescape)(f),!!y,_]}};e.AST=g}),xc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0;var r=v((a,{windowsPathsNoEscape:p=!1}={})=>p?a.replace(/[?*()[\]]/g,"[$&]"):a.replace(/[?*()[\]\\]/g,"\\$&"),"escape");e.escape=r}),Ot=K(e=>{"use strict";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;var r=qS(),a=KS(),p=Pc(),n=xc(),c=_n(),o=v((z,$,q={})=>((0,a.assertValidPattern)($),!q.nocomment&&$.charAt(0)==="#"?!1:new X($,q).match(z)),"minimatch");e.minimatch=o;var t=/^\*+([^+@!?\*\[\(]*)$/,s=v(z=>$=>!$.startsWith(".")&&$.endsWith(z),"starDotExtTest"),i=v(z=>$=>$.endsWith(z),"starDotExtTestDot"),l=v(z=>(z=z.toLowerCase(),$=>!$.startsWith(".")&&$.toLowerCase().endsWith(z)),"starDotExtTestNocase"),u=v(z=>(z=z.toLowerCase(),$=>$.toLowerCase().endsWith(z)),"starDotExtTestNocaseDot"),h=/^\*+\.\*+$/,d=v(z=>!z.startsWith(".")&&z.includes("."),"starDotStarTest"),g=v(z=>z!=="."&&z!==".."&&z.includes("."),"starDotStarTestDot"),m=/^\.\*+$/,f=v(z=>z!=="."&&z!==".."&&z.startsWith("."),"dotStarTest"),y=/^\*+$/,S=v(z=>z.length!==0&&!z.startsWith("."),"starTest"),E=v(z=>z.length!==0&&z!=="."&&z!=="..","starTestDot"),b=/^\?+([^+@!?\*\[\(]*)?$/,_=v(([z,$=""])=>{let q=I([z]);return $?($=$.toLowerCase(),J=>q(J)&&J.toLowerCase().endsWith($)):q},"qmarksTestNocase"),w=v(([z,$=""])=>{let q=P([z]);return $?($=$.toLowerCase(),J=>q(J)&&J.toLowerCase().endsWith($)):q},"qmarksTestNocaseDot"),O=v(([z,$=""])=>{let q=P([z]);return $?J=>q(J)&&J.endsWith($):q},"qmarksTestDot"),R=v(([z,$=""])=>{let q=I([z]);return $?J=>q(J)&&J.endsWith($):q},"qmarksTest"),I=v(([z])=>{let $=z.length;return q=>q.length===$&&!q.startsWith(".")},"qmarksTestNoExt"),P=v(([z])=>{let $=z.length;return q=>q.length===$&&q!=="."&&q!==".."},"qmarksTestNoExtDot"),L=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",M={win32:{sep:"\\"},posix:{sep:"/"}};e.sep=L==="win32"?M.win32.sep:M.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;var x="[^/]",j=x+"*?",U="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",V="(?:(?!(?:\\/|^)\\.).)*?",B=v((z,$={})=>q=>(0,e.minimatch)(q,z,$),"filter");e.filter=B,e.minimatch.filter=e.filter;var G=v((z,$={})=>Object.assign({},z,$),"ext"),W=v(z=>{if(!z||typeof z!="object"||!Object.keys(z).length)return e.minimatch;let $=e.minimatch;return Object.assign(v((q,J,Y={})=>$(q,J,G(z,Y)),"m"),{Minimatch:class extends $.Minimatch{static{v(this,"Minimatch")}constructor(q,J={}){super(q,G(z,J))}static defaults(q){return $.defaults(G(z,q)).Minimatch}},AST:class extends $.AST{static{v(this,"AST")}constructor(q,J,Y={}){super(q,J,G(z,Y))}static fromGlob(q,J={}){return $.AST.fromGlob(q,G(z,J))}},unescape:v((q,J={})=>$.unescape(q,G(z,J)),"unescape"),escape:v((q,J={})=>$.escape(q,G(z,J)),"escape"),filter:v((q,J={})=>$.filter(q,G(z,J)),"filter"),defaults:v(q=>$.defaults(G(z,q)),"defaults"),makeRe:v((q,J={})=>$.makeRe(q,G(z,J)),"makeRe"),braceExpand:v((q,J={})=>$.braceExpand(q,G(z,J)),"braceExpand"),match:v((q,J,Y={})=>$.match(q,J,G(z,Y)),"match"),sep:$.sep,GLOBSTAR:e.GLOBSTAR})},"defaults");e.defaults=W,e.minimatch.defaults=e.defaults;var N=v((z,$={})=>((0,a.assertValidPattern)(z),$.nobrace||!/\{(?:(?!\{).)*\}/.test(z)?[z]:(0,r.expand)(z)),"braceExpand");e.braceExpand=N,e.minimatch.braceExpand=e.braceExpand;var D=v((z,$={})=>new X(z,$).makeRe(),"makeRe");e.makeRe=D,e.minimatch.makeRe=e.makeRe;var T=v((z,$,q={})=>{let J=new X($,q);return z=z.filter(Y=>J.match(Y)),J.options.nonull&&!z.length&&z.push($),z},"match");e.match=T,e.minimatch.match=e.match;var C=/[?*]|[+@!]\(.*?\)|\[|\]/,Z=v(z=>z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),X=class{static{v(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(z,$={}){(0,a.assertValidPattern)(z),$=$||{},this.options=$,this.pattern=z,this.platform=$.platform||L,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!$.windowsPathsNoEscape||$.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!$.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!$.nonegate,this.comment=!1,this.empty=!1,this.partial=!!$.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=$.windowsNoMagicRoot!==void 0?$.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(let z of this.set)for(let $ of z)if(typeof $!="string")return!0;return!1}debug(...z){}make(){let z=this.pattern,$=this.options;if(!$.nocomment&&z.charAt(0)==="#"){this.comment=!0;return}if(!z){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],$.debug&&(this.debug=(...Y)=>{}),this.debug(this.pattern,this.globSet);let q=this.globSet.map(Y=>this.slashSplit(Y));this.globParts=this.preprocess(q),this.debug(this.pattern,this.globParts);let J=this.globParts.map((Y,A,H)=>{if(this.isWindows&&this.windowsNoMagicRoot){let ee=Y[0]===""&&Y[1]===""&&(Y[2]==="?"||!C.test(Y[2]))&&!C.test(Y[3]),ne=/^[a-z]:/i.test(Y[0]);if(ee)return[...Y.slice(0,4),...Y.slice(4).map(te=>this.parse(te))];if(ne)return[Y[0],...Y.slice(1).map(te=>this.parse(te))]}return Y.map(ee=>this.parse(ee))});if(this.debug(this.pattern,J),this.set=J.filter(Y=>Y.indexOf(!1)===-1),this.isWindows)for(let Y=0;Y<this.set.length;Y++){let A=this.set[Y];A[0]===""&&A[1]===""&&this.globParts[Y][2]==="?"&&typeof A[3]=="string"&&/^[a-z]:$/i.test(A[3])&&(A[2]="?")}this.debug(this.pattern,this.set)}preprocess(z){if(this.options.noglobstar)for(let q=0;q<z.length;q++)for(let J=0;J<z[q].length;J++)z[q][J]==="**"&&(z[q][J]="*");let{optimizationLevel:$=1}=this.options;return $>=2?(z=this.firstPhasePreProcess(z),z=this.secondPhasePreProcess(z)):$>=1?z=this.levelOneOptimize(z):z=this.adjascentGlobstarOptimize(z),z}adjascentGlobstarOptimize(z){return z.map($=>{let q=-1;for(;(q=$.indexOf("**",q+1))!==-1;){let J=q;for(;$[J+1]==="**";)J++;J!==q&&$.splice(q,J-q)}return $})}levelOneOptimize(z){return z.map($=>($=$.reduce((q,J)=>{let Y=q[q.length-1];return J==="**"&&Y==="**"?q:J===".."&&Y&&Y!==".."&&Y!=="."&&Y!=="**"?(q.pop(),q):(q.push(J),q)},[]),$.length===0?[""]:$))}levelTwoFileOptimize(z){Array.isArray(z)||(z=this.slashSplit(z));let $=!1;do{if($=!1,!this.preserveMultipleSlashes){for(let J=1;J<z.length-1;J++){let Y=z[J];J===1&&Y===""&&z[0]===""||(Y==="."||Y==="")&&($=!0,z.splice(J,1),J--)}z[0]==="."&&z.length===2&&(z[1]==="."||z[1]==="")&&($=!0,z.pop())}let q=0;for(;(q=z.indexOf("..",q+1))!==-1;){let J=z[q-1];J&&J!=="."&&J!==".."&&J!=="**"&&($=!0,z.splice(q-1,2),q-=2)}}while($);return z.length===0?[""]:z}firstPhasePreProcess(z){let $=!1;do{$=!1;for(let q of z){let J=-1;for(;(J=q.indexOf("**",J+1))!==-1;){let A=J;for(;q[A+1]==="**";)A++;A>J&&q.splice(J+1,A-J);let H=q[J+1],ee=q[J+2],ne=q[J+3];if(H!==".."||!ee||ee==="."||ee===".."||!ne||ne==="."||ne==="..")continue;$=!0,q.splice(J,1);let te=q.slice(0);te[J]="**",z.push(te),J--}if(!this.preserveMultipleSlashes){for(let A=1;A<q.length-1;A++){let H=q[A];A===1&&H===""&&q[0]===""||(H==="."||H==="")&&($=!0,q.splice(A,1),A--)}q[0]==="."&&q.length===2&&(q[1]==="."||q[1]==="")&&($=!0,q.pop())}let Y=0;for(;(Y=q.indexOf("..",Y+1))!==-1;){let A=q[Y-1];if(A&&A!=="."&&A!==".."&&A!=="**"){$=!0;let H=Y===1&&q[Y+1]==="**"?["."]:[];q.splice(Y-1,2,...H),q.length===0&&q.push(""),Y-=2}}}}while($);return z}secondPhasePreProcess(z){for(let $=0;$<z.length-1;$++)for(let q=$+1;q<z.length;q++){let J=this.partsMatch(z[$],z[q],!this.preserveMultipleSlashes);if(J){z[$]=[],z[q]=J;break}}return z.filter($=>$.length)}partsMatch(z,$,q=!1){let J=0,Y=0,A=[],H="";for(;J<z.length&&Y<$.length;)if(z[J]===$[Y])A.push(H==="b"?$[Y]:z[J]),J++,Y++;else if(q&&z[J]==="**"&&$[Y]===z[J+1])A.push(z[J]),J++;else if(q&&$[Y]==="**"&&z[J]===$[Y+1])A.push($[Y]),Y++;else if(z[J]==="*"&&$[Y]&&(this.options.dot||!$[Y].startsWith("."))&&$[Y]!=="**"){if(H==="b")return!1;H="a",A.push(z[J]),J++,Y++}else if($[Y]==="*"&&z[J]&&(this.options.dot||!z[J].startsWith("."))&&z[J]!=="**"){if(H==="a")return!1;H="b",A.push($[Y]),J++,Y++}else return!1;return z.length===$.length&&A}parseNegate(){if(this.nonegate)return;let z=this.pattern,$=!1,q=0;for(let J=0;J<z.length&&z.charAt(J)==="!";J++)$=!$,q++;q&&(this.pattern=z.slice(q)),this.negate=$}matchOne(z,$,q=!1){let J=this.options;if(this.isWindows){let ie=typeof z[0]=="string"&&/^[a-z]:$/i.test(z[0]),le=!ie&&z[0]===""&&z[1]===""&&z[2]==="?"&&/^[a-z]:$/i.test(z[3]),fe=typeof $[0]=="string"&&/^[a-z]:$/i.test($[0]),me=!fe&&$[0]===""&&$[1]===""&&$[2]==="?"&&typeof $[3]=="string"&&/^[a-z]:$/i.test($[3]),ce=le?3:ie?0:void 0,pe=me?3:fe?0:void 0;if(typeof ce=="number"&&typeof pe=="number"){let[de,ye]=[z[ce],$[pe]];de.toLowerCase()===ye.toLowerCase()&&($[pe]=de,pe>ce?$=$.slice(pe):ce>pe&&(z=z.slice(ce)))}}let{optimizationLevel:Y=1}=this.options;Y>=2&&(z=this.levelTwoFileOptimize(z)),this.debug("matchOne",this,{file:z,pattern:$}),this.debug("matchOne",z.length,$.length);for(var A=0,H=0,ee=z.length,ne=$.length;A<ee&&H<ne;A++,H++){this.debug("matchOne loop");var te=$[H],ae=z[A];if(this.debug($,te,ae),te===!1)return!1;if(te===e.GLOBSTAR){this.debug("GLOBSTAR",[$,te,ae]);var he=A,re=H+1;if(re===ne){for(this.debug("** at the end");A<ee;A++)if(z[A]==="."||z[A]===".."||!J.dot&&z[A].charAt(0)===".")return!1;return!0}for(;he<ee;){var ue=z[he];if(this.debug(`
7
+ globstar while`,z,he,$,re,ue),this.matchOne(z.slice(he),$.slice(re),q))return this.debug("globstar found match!",he,ee,ue),!0;if(ue==="."||ue===".."||!J.dot&&ue.charAt(0)==="."){this.debug("dot detected!",z,he,$,re);break}this.debug("globstar swallow a segment, and continue"),he++}return!!(q&&(this.debug(`
8
+ >>> no match, partial?`,z,he,$,re),he===ee))}let ie;if(typeof te=="string"?(ie=ae===te,this.debug("string match",te,ae,ie)):(ie=te.test(ae),this.debug("pattern match",te,ae,ie)),!ie)return!1}if(A===ee&&H===ne)return!0;if(A===ee)return q;if(H===ne)return A===ee-1&&z[A]==="";throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(z){(0,a.assertValidPattern)(z);let $=this.options;if(z==="**")return e.GLOBSTAR;if(z==="")return"";let q,J=null;(q=z.match(y))?J=$.dot?E:S:(q=z.match(t))?J=($.nocase?$.dot?u:l:$.dot?i:s)(q[1]):(q=z.match(b))?J=($.nocase?$.dot?w:_:$.dot?O:R)(q):(q=z.match(h))?J=$.dot?g:d:(q=z.match(m))&&(J=f);let Y=p.AST.fromGlob(z,this.options).toMMPattern();return J&&typeof Y=="object"&&Reflect.defineProperty(Y,"test",{value:J}),Y}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let z=this.set;if(!z.length)return this.regexp=!1,this.regexp;let $=this.options,q=$.noglobstar?j:$.dot?U:V,J=new Set($.nocase?["i"]:[]),Y=z.map(ee=>{let ne=ee.map(te=>{if(te instanceof RegExp)for(let ae of te.flags.split(""))J.add(ae);return typeof te=="string"?Z(te):te===e.GLOBSTAR?e.GLOBSTAR:te._src});return ne.forEach((te,ae)=>{let he=ne[ae+1],re=ne[ae-1];te!==e.GLOBSTAR||re===e.GLOBSTAR||(re===void 0?he!==void 0&&he!==e.GLOBSTAR?ne[ae+1]="(?:\\/|"+q+"\\/)?"+he:ne[ae]=q:he===void 0?ne[ae-1]=re+"(?:\\/|"+q+")?":he!==e.GLOBSTAR&&(ne[ae-1]=re+"(?:\\/|\\/"+q+"\\/)"+he,ne[ae+1]=e.GLOBSTAR))}),ne.filter(te=>te!==e.GLOBSTAR).join("/")}).join("|"),[A,H]=z.length>1?["(?:",")"]:["",""];Y="^"+A+Y+H+"$",this.negate&&(Y="^(?!"+Y+").+$");try{this.regexp=new RegExp(Y,[...J].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(z){return this.preserveMultipleSlashes?z.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(z)?["",...z.split(/\/+/)]:z.split(/\/+/)}match(z,$=this.partial){if(this.debug("match",z,this.pattern),this.comment)return!1;if(this.empty)return z==="";if(z==="/"&&$)return!0;let q=this.options;this.isWindows&&(z=z.split("\\").join("/"));let J=this.slashSplit(z);this.debug(this.pattern,"split",J);let Y=this.set;this.debug(this.pattern,"set",Y);let A=J[J.length-1];if(!A)for(let H=J.length-2;!A&&H>=0;H--)A=J[H];for(let H=0;H<Y.length;H++){let ee=Y[H],ne=J;if(q.matchBase&&ee.length===1&&(ne=[A]),this.matchOne(ne,ee,$))return q.flipNegate?!0:!this.negate}return q.flipNegate?!1:this.negate}static defaults(z){return e.minimatch.defaults(z).Minimatch}};e.Minimatch=X;var Q=Pc();Object.defineProperty(e,"AST",{enumerable:!0,get:v(function(){return Q.AST},"get")});var k=xc();Object.defineProperty(e,"escape",{enumerable:!0,get:v(function(){return k.escape},"get")});var F=_n();Object.defineProperty(e,"unescape",{enumerable:!0,get:v(function(){return F.unescape},"get")}),e.minimatch.AST=p.AST,e.minimatch.Minimatch=X,e.minimatch.escape=n.escape,e.minimatch.unescape=c.unescape}),Pe=K(e=>{"use strict";var r=e&&e.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;var a=typeof process=="object"&&process?process:{stdout:null,stderr:null},p=require("node:events"),n=r(require("node:stream")),c=require("node:string_decoder"),o=v(A=>!!A&&typeof A=="object"&&(A instanceof Y||A instanceof n.default||(0,e.isReadable)(A)||(0,e.isWritable)(A)),"isStream");e.isStream=o;var t=v(A=>!!A&&typeof A=="object"&&A instanceof p.EventEmitter&&typeof A.pipe=="function"&&A.pipe!==n.default.Writable.prototype.pipe,"isReadable");e.isReadable=t;var s=v(A=>!!A&&typeof A=="object"&&A instanceof p.EventEmitter&&typeof A.write=="function"&&typeof A.end=="function","isWritable");e.isWritable=s;var i=Symbol("EOF"),l=Symbol("maybeEmitEnd"),u=Symbol("emittedEnd"),h=Symbol("emittingEnd"),d=Symbol("emittedError"),g=Symbol("closed"),m=Symbol("read"),f=Symbol("flush"),y=Symbol("flushChunk"),S=Symbol("encoding"),E=Symbol("decoder"),b=Symbol("flowing"),_=Symbol("paused"),w=Symbol("resume"),O=Symbol("buffer"),R=Symbol("pipes"),I=Symbol("bufferLength"),P=Symbol("bufferPush"),L=Symbol("bufferShift"),M=Symbol("objectMode"),x=Symbol("destroyed"),j=Symbol("error"),U=Symbol("emitData"),V=Symbol("emitEnd"),B=Symbol("emitEnd2"),G=Symbol("async"),W=Symbol("abort"),N=Symbol("aborted"),D=Symbol("signal"),T=Symbol("dataListeners"),C=Symbol("discarded"),Z=v(A=>Promise.resolve().then(A),"defer"),X=v(A=>A(),"nodefer"),Q=v(A=>A==="end"||A==="finish"||A==="prefinish","isEndish"),k=v(A=>A instanceof ArrayBuffer||!!A&&typeof A=="object"&&A.constructor&&A.constructor.name==="ArrayBuffer"&&A.byteLength>=0,"isArrayBufferLike"),F=v(A=>!Buffer.isBuffer(A)&&ArrayBuffer.isView(A),"isArrayBufferView"),z=class{static{v(this,"Pipe")}src;dest;opts;ondrain;constructor(A,H,ee){this.src=A,this.dest=H,this.opts=ee,this.ondrain=()=>A[w](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(A){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},$=class extends z{static{v(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(A,H,ee){super(A,H,ee),this.proxyErrors=ne=>H.emit("error",ne),A.on("error",this.proxyErrors)}},q=v(A=>!!A.objectMode,"isObjectModeOptions"),J=v(A=>!A.objectMode&&!!A.encoding&&A.encoding!=="buffer","isEncodingOptions"),Y=class extends p.EventEmitter{static{v(this,"Minipass")}[b]=!1;[_]=!1;[R]=[];[O]=[];[M];[S];[G];[E];[i]=!1;[u]=!1;[h]=!1;[g]=!1;[d]=null;[I]=0;[x]=!1;[D];[N]=!1;[T]=0;[C]=!1;writable=!0;readable=!0;constructor(...A){let H=A[0]||{};if(super(),H.objectMode&&typeof H.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");q(H)?(this[M]=!0,this[S]=null):J(H)?(this[S]=H.encoding,this[M]=!1):(this[M]=!1,this[S]=null),this[G]=!!H.async,this[E]=this[S]?new c.StringDecoder(this[S]):null,H&&H.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:v(()=>this[O],"get")}),H&&H.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:v(()=>this[R],"get")});let{signal:ee}=H;ee&&(this[D]=ee,ee.aborted?this[W]():ee.addEventListener("abort",()=>this[W]()))}get bufferLength(){return this[I]}get encoding(){return this[S]}set encoding(A){throw new Error("Encoding must be set at instantiation time")}setEncoding(A){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[M]}set objectMode(A){throw new Error("objectMode must be set at instantiation time")}get async(){return this[G]}set async(A){this[G]=this[G]||!!A}[W](){this[N]=!0,this.emit("abort",this[D]?.reason),this.destroy(this[D]?.reason)}get aborted(){return this[N]}set aborted(A){}write(A,H,ee){if(this[N])return!1;if(this[i])throw new Error("write after end");if(this[x])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof H=="function"&&(ee=H,H="utf8"),H||(H="utf8");let ne=this[G]?Z:X;if(!this[M]&&!Buffer.isBuffer(A)){if(F(A))A=Buffer.from(A.buffer,A.byteOffset,A.byteLength);else if(k(A))A=Buffer.from(A);else if(typeof A!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[M]?(this[b]&&this[I]!==0&&this[f](!0),this[b]?this.emit("data",A):this[P](A),this[I]!==0&&this.emit("readable"),ee&&ne(ee),this[b]):A.length?(typeof A=="string"&&!(H===this[S]&&!this[E]?.lastNeed)&&(A=Buffer.from(A,H)),Buffer.isBuffer(A)&&this[S]&&(A=this[E].write(A)),this[b]&&this[I]!==0&&this[f](!0),this[b]?this.emit("data",A):this[P](A),this[I]!==0&&this.emit("readable"),ee&&ne(ee),this[b]):(this[I]!==0&&this.emit("readable"),ee&&ne(ee),this[b])}read(A){if(this[x])return null;if(this[C]=!1,this[I]===0||A===0||A&&A>this[I])return this[l](),null;this[M]&&(A=null),this[O].length>1&&!this[M]&&(this[O]=[this[S]?this[O].join(""):Buffer.concat(this[O],this[I])]);let H=this[m](A||null,this[O][0]);return this[l](),H}[m](A,H){if(this[M])this[L]();else{let ee=H;A===ee.length||A===null?this[L]():typeof ee=="string"?(this[O][0]=ee.slice(A),H=ee.slice(0,A),this[I]-=A):(this[O][0]=ee.subarray(A),H=ee.subarray(0,A),this[I]-=A)}return this.emit("data",H),!this[O].length&&!this[i]&&this.emit("drain"),H}end(A,H,ee){return typeof A=="function"&&(ee=A,A=void 0),typeof H=="function"&&(ee=H,H="utf8"),A!==void 0&&this.write(A,H),ee&&this.once("end",ee),this[i]=!0,this.writable=!1,(this[b]||!this[_])&&this[l](),this}[w](){this[x]||(!this[T]&&!this[R].length&&(this[C]=!0),this[_]=!1,this[b]=!0,this.emit("resume"),this[O].length?this[f]():this[i]?this[l]():this.emit("drain"))}resume(){return this[w]()}pause(){this[b]=!1,this[_]=!0,this[C]=!1}get destroyed(){return this[x]}get flowing(){return this[b]}get paused(){return this[_]}[P](A){this[M]?this[I]+=1:this[I]+=A.length,this[O].push(A)}[L](){return this[M]?this[I]-=1:this[I]-=this[O][0].length,this[O].shift()}[f](A=!1){do;while(this[y](this[L]())&&this[O].length);!A&&!this[O].length&&!this[i]&&this.emit("drain")}[y](A){return this.emit("data",A),this[b]}pipe(A,H){if(this[x])return A;this[C]=!1;let ee=this[u];return H=H||{},A===a.stdout||A===a.stderr?H.end=!1:H.end=H.end!==!1,H.proxyErrors=!!H.proxyErrors,ee?H.end&&A.end():(this[R].push(H.proxyErrors?new $(this,A,H):new z(this,A,H)),this[G]?Z(()=>this[w]()):this[w]()),A}unpipe(A){let H=this[R].find(ee=>ee.dest===A);H&&(this[R].length===1?(this[b]&&this[T]===0&&(this[b]=!1),this[R]=[]):this[R].splice(this[R].indexOf(H),1),H.unpipe())}addListener(A,H){return this.on(A,H)}on(A,H){let ee=super.on(A,H);if(A==="data")this[C]=!1,this[T]++,!this[R].length&&!this[b]&&this[w]();else if(A==="readable"&&this[I]!==0)super.emit("readable");else if(Q(A)&&this[u])super.emit(A),this.removeAllListeners(A);else if(A==="error"&&this[d]){let ne=H;this[G]?Z(()=>ne.call(this,this[d])):ne.call(this,this[d])}return ee}removeListener(A,H){return this.off(A,H)}off(A,H){let ee=super.off(A,H);return A==="data"&&(this[T]=this.listeners("data").length,this[T]===0&&!this[C]&&!this[R].length&&(this[b]=!1)),ee}removeAllListeners(A){let H=super.removeAllListeners(A);return(A==="data"||A===void 0)&&(this[T]=0,!this[C]&&!this[R].length&&(this[b]=!1)),H}get emittedEnd(){return this[u]}[l](){!this[h]&&!this[u]&&!this[x]&&this[O].length===0&&this[i]&&(this[h]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[g]&&this.emit("close"),this[h]=!1)}emit(A,...H){let ee=H[0];if(A!=="error"&&A!=="close"&&A!==x&&this[x])return!1;if(A==="data")return!this[M]&&!ee?!1:this[G]?(Z(()=>this[U](ee)),!0):this[U](ee);if(A==="end")return this[V]();if(A==="close"){if(this[g]=!0,!this[u]&&!this[x])return!1;let te=super.emit("close");return this.removeAllListeners("close"),te}else if(A==="error"){this[d]=ee,super.emit(j,ee);let te=!this[D]||this.listeners("error").length?super.emit("error",ee):!1;return this[l](),te}else if(A==="resume"){let te=super.emit("resume");return this[l](),te}else if(A==="finish"||A==="prefinish"){let te=super.emit(A);return this.removeAllListeners(A),te}let ne=super.emit(A,...H);return this[l](),ne}[U](A){for(let ee of this[R])ee.dest.write(A)===!1&&this.pause();let H=this[C]?!1:super.emit("data",A);return this[l](),H}[V](){return this[u]?!1:(this[u]=!0,this.readable=!1,this[G]?(Z(()=>this[B]()),!0):this[B]())}[B](){if(this[E]){let H=this[E].end();if(H){for(let ee of this[R])ee.dest.write(H);this[C]||super.emit("data",H)}}for(let H of this[R])H.end();let A=super.emit("end");return this.removeAllListeners("end"),A}async collect(){let A=Object.assign([],{dataLength:0});this[M]||(A.dataLength=0);let H=this.promise();return this.on("data",ee=>{A.push(ee),this[M]||(A.dataLength+=ee.length)}),await H,A}async concat(){if(this[M])throw new Error("cannot concat in objectMode");let A=await this.collect();return this[S]?A.join(""):Buffer.concat(A,A.dataLength)}async promise(){return new Promise((A,H)=>{this.on(x,()=>H(new Error("stream destroyed"))),this.on("error",ee=>H(ee)),this.on("end",()=>A())})}[Symbol.asyncIterator](){this[C]=!1;let A=!1,H=v(async()=>(this.pause(),A=!0,{value:void 0,done:!0}),"stop");return{next:v(()=>{if(A)return H();let ee=this.read();if(ee!==null)return Promise.resolve({done:!1,value:ee});if(this[i])return H();let ne,te,ae=v(ie=>{this.off("data",he),this.off("end",re),this.off(x,ue),H(),te(ie)},"onerr"),he=v(ie=>{this.off("error",ae),this.off("end",re),this.off(x,ue),this.pause(),ne({value:ie,done:!!this[i]})},"ondata"),re=v(()=>{this.off("error",ae),this.off("data",he),this.off(x,ue),H(),ne({done:!0,value:void 0})},"onend"),ue=v(()=>ae(new Error("stream destroyed")),"ondestroy");return new Promise((ie,le)=>{te=le,ne=ie,this.once(x,ue),this.once("error",ae),this.once("end",re),this.once("data",he)})},"next"),throw:H,return:H,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[C]=!1;let A=!1,H=v(()=>(this.pause(),this.off(j,H),this.off(x,H),this.off("end",H),A=!0,{done:!0,value:void 0}),"stop"),ee=v(()=>{if(A)return H();let ne=this.read();return ne===null?H():{done:!1,value:ne}},"next");return this.once("end",H),this.once(j,H),this.once(x,H),{next:ee,throw:H,return:H,[Symbol.iterator](){return this}}}destroy(A){if(this[x])return A?this.emit("error",A):this.emit(x),this;this[x]=!0,this[C]=!0,this[O].length=0,this[I]=0;let H=this;return typeof H.close=="function"&&!this[g]&&H.close(),A?this.emit("error",A):this.emit(x),this}static get isStream(){return e.isStream}};e.Minipass=Y}),ZS=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(A,H,ee,ne){ne===void 0&&(ne=ee);var te=Object.getOwnPropertyDescriptor(H,ee);(!te||("get"in te?!H.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:v(function(){return H[ee]},"get")}),Object.defineProperty(A,ne,te)}:function(A,H,ee,ne){ne===void 0&&(ne=ee),A[ne]=H[ee]}),a=e&&e.__setModuleDefault||(Object.create?function(A,H){Object.defineProperty(A,"default",{enumerable:!0,value:H})}:function(A,H){A.default=H}),p=e&&e.__importStar||function(A){if(A&&A.__esModule)return A;var H={};if(A!=null)for(var ee in A)ee!=="default"&&Object.prototype.hasOwnProperty.call(A,ee)&&r(H,A,ee);return a(H,A),H};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;var n=Kt(),c=require("node:path"),o=require("node:url"),t=require("fs"),s=p(require("node:fs")),i=t.realpathSync.native,l=require("node:fs/promises"),u=Pe(),h={lstatSync:t.lstatSync,readdir:t.readdir,readdirSync:t.readdirSync,readlinkSync:t.readlinkSync,realpathSync:i,promises:{lstat:l.lstat,readdir:l.readdir,readlink:l.readlink,realpath:l.realpath}},d=v(A=>!A||A===h||A===s?h:{...h,...A,promises:{...h.promises,...A.promises||{}}},"fsFromOption"),g=/^\\\\\?\\([a-z]:)\\?$/i,m=v(A=>A.replace(/\//g,"\\").replace(g,"$1\\"),"uncToDrive"),f=/[\\\/]/,y=0,S=1,E=2,b=4,_=6,w=8,O=10,R=12,I=15,P=~I,L=16,M=32,x=64,j=128,U=256,V=512,B=x|j|V,G=1023,W=v(A=>A.isFile()?w:A.isDirectory()?b:A.isSymbolicLink()?O:A.isCharacterDevice()?E:A.isBlockDevice()?_:A.isSocket()?R:A.isFIFO()?S:y,"entToType"),N=new Map,D=v(A=>{let H=N.get(A);if(H)return H;let ee=A.normalize("NFKD");return N.set(A,ee),ee},"normalize"),T=new Map,C=v(A=>{let H=T.get(A);if(H)return H;let ee=D(A.toLowerCase());return T.set(A,ee),ee},"normalizeNocase"),Z=class extends n.LRUCache{static{v(this,"ResolveCache")}constructor(){super({max:256})}};e.ResolveCache=Z;var X=class extends n.LRUCache{static{v(this,"ChildrenCache")}constructor(A=16*1024){super({maxSize:A,sizeCalculation:v(H=>H.length+1,"sizeCalculation")})}};e.ChildrenCache=X;var Q=Symbol("PathScurry setAsCwd"),k=class{static{v(this,"PathBase")}name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#s;get nlink(){return this.#s}#i;get uid(){return this.#i}#c;get gid(){return this.#c}#l;get rdev(){return this.#l}#h;get blksize(){return this.#h}#o;get ino(){return this.#o}#u;get size(){return this.#u}#n;get blocks(){return this.#n}#d;get atimeMs(){return this.#d}#a;get mtimeMs(){return this.#a}#f;get ctimeMs(){return this.#f}#g;get birthtimeMs(){return this.#g}#E;get atime(){return this.#E}#m;get mtime(){return this.#m}#R;get ctime(){return this.#R}#v;get birthtime(){return this.#v}#b;#_;#O;#w;#P;#A;#p;#M;#C;#T;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(A,H=y,ee,ne,te,ae,he){this.name=A,this.#b=te?C(A):D(A),this.#p=H&G,this.nocase=te,this.roots=ne,this.root=ee||this,this.#M=ae,this.#O=he.fullpath,this.#P=he.relative,this.#A=he.relativePosix,this.parent=he.parent,this.parent?this.#e=this.parent.#e:this.#e=d(he.fs)}depth(){return this.#_!==void 0?this.#_:this.parent?this.#_=this.parent.depth()+1:this.#_=0}childrenCache(){return this.#M}resolve(A){if(!A)return this;let H=this.getRootString(A),ee=A.substring(H.length).split(this.splitSep);return H?this.getRoot(H).#j(ee):this.#j(ee)}#j(A){let H=this;for(let ee of A)H=H.child(ee);return H}children(){let A=this.#M.get(this);if(A)return A;let H=Object.assign([],{provisional:0});return this.#M.set(this,H),this.#p&=~L,H}child(A,H){if(A===""||A===".")return this;if(A==="..")return this.parent||this;let ee=this.children(),ne=this.nocase?C(A):D(A);for(let re of ee)if(re.#b===ne)return re;let te=this.parent?this.sep:"",ae=this.#O?this.#O+te+A:void 0,he=this.newChild(A,y,{...H,parent:this,fullpath:ae});return this.canReaddir()||(he.#p|=j),ee.push(he),he}relative(){if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let A=this.name,H=this.parent;if(!H)return this.#P=this.name;let ee=H.relative();return ee+(!ee||!H.parent?"":this.sep)+A}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#A!==void 0)return this.#A;let A=this.name,H=this.parent;if(!H)return this.#A=this.fullpathPosix();let ee=H.relativePosix();return ee+(!ee||!H.parent?"":"/")+A}fullpath(){if(this.#O!==void 0)return this.#O;let A=this.name,H=this.parent;if(!H)return this.#O=this.name;let ee=H.fullpath()+(H.parent?this.sep:"")+A;return this.#O=ee}fullpathPosix(){if(this.#w!==void 0)return this.#w;if(this.sep==="/")return this.#w=this.fullpath();if(!this.parent){let ne=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(ne)?this.#w=`//?/${ne}`:this.#w=ne}let A=this.parent,H=A.fullpathPosix(),ee=H+(!H||!A.parent?"":"/")+this.name;return this.#w=ee}isUnknown(){return(this.#p&I)===y}isType(A){return this[`is${A}`]()}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(this.#p&I)===w}isDirectory(){return(this.#p&I)===b}isCharacterDevice(){return(this.#p&I)===E}isBlockDevice(){return(this.#p&I)===_}isFIFO(){return(this.#p&I)===S}isSocket(){return(this.#p&I)===R}isSymbolicLink(){return(this.#p&O)===O}lstatCached(){return this.#p&M?this:void 0}readlinkCached(){return this.#C}realpathCached(){return this.#T}readdirCached(){let A=this.children();return A.slice(0,A.provisional)}canReadlink(){if(this.#C)return!0;if(!this.parent)return!1;let A=this.#p&I;return!(A!==y&&A!==O||this.#p&U||this.#p&j)}calledReaddir(){return!!(this.#p&L)}isENOENT(){return!!(this.#p&j)}isNamed(A){return this.nocase?this.#b===C(A):this.#b===D(A)}async readlink(){let A=this.#C;if(A)return A;if(this.canReadlink()&&this.parent)try{let H=await this.#e.promises.readlink(this.fullpath()),ee=(await this.parent.realpath())?.resolve(H);if(ee)return this.#C=ee}catch(H){this.#S(H.code);return}}readlinkSync(){let A=this.#C;if(A)return A;if(this.canReadlink()&&this.parent)try{let H=this.#e.readlinkSync(this.fullpath()),ee=this.parent.realpathSync()?.resolve(H);if(ee)return this.#C=ee}catch(H){this.#S(H.code);return}}#I(A){this.#p|=L;for(let H=A.provisional;H<A.length;H++){let ee=A[H];ee&&ee.#F()}}#F(){this.#p&j||(this.#p=(this.#p|j)&P,this.#x())}#x(){let A=this.children();A.provisional=0;for(let H of A)H.#F()}#k(){this.#p|=V,this.#$()}#$(){if(this.#p&x)return;let A=this.#p;(A&I)===b&&(A&=P),this.#p=A|x,this.#x()}#N(A=""){A==="ENOTDIR"||A==="EPERM"?this.#$():A==="ENOENT"?this.#F():this.children().provisional=0}#L(A=""){A==="ENOTDIR"?this.parent.#$():A==="ENOENT"&&this.#F()}#S(A=""){let H=this.#p;H|=U,A==="ENOENT"&&(H|=j),(A==="EINVAL"||A==="UNKNOWN")&&(H&=P),this.#p=H,A==="ENOTDIR"&&this.parent&&this.parent.#$()}#B(A,H){return this.#y(A,H)||this.#U(A,H)}#U(A,H){let ee=W(A),ne=this.newChild(A.name,ee,{parent:this}),te=ne.#p&I;return te!==b&&te!==O&&te!==y&&(ne.#p|=x),H.unshift(ne),H.provisional++,ne}#y(A,H){for(let ee=H.provisional;ee<H.length;ee++){let ne=H[ee];if((this.nocase?C(A.name):D(A.name))===ne.#b)return this.#H(A,ne,ee,H)}}#H(A,H,ee,ne){let te=H.name;return H.#p=H.#p&P|W(A),te!==A.name&&(H.name=A.name),ee!==ne.provisional&&(ee===ne.length-1?ne.pop():ne.splice(ee,1),ne.unshift(H)),ne.provisional++,H}async lstat(){if(!(this.#p&j))try{return this.#G(await this.#e.promises.lstat(this.fullpath())),this}catch(A){this.#L(A.code)}}lstatSync(){if(!(this.#p&j))try{return this.#G(this.#e.lstatSync(this.fullpath())),this}catch(A){this.#L(A.code)}}#G(A){let{atime:H,atimeMs:ee,birthtime:ne,birthtimeMs:te,blksize:ae,blocks:he,ctime:re,ctimeMs:ue,dev:ie,gid:le,ino:fe,mode:me,mtime:ce,mtimeMs:pe,nlink:de,rdev:ye,size:Ee,uid:Ie}=A;this.#E=H,this.#d=ee,this.#v=ne,this.#g=te,this.#h=ae,this.#n=he,this.#R=re,this.#f=ue,this.#t=ie,this.#c=le,this.#o=fe,this.#r=me,this.#m=ce,this.#a=pe,this.#s=de,this.#l=ye,this.#u=Ee,this.#i=Ie;let Be=W(A);this.#p=this.#p&P|Be|M,Be!==y&&Be!==b&&Be!==O&&(this.#p|=x)}#D=[];#V=!1;#z(A){this.#V=!1;let H=this.#D.slice();this.#D.length=0,H.forEach(ee=>ee(null,A))}readdirCB(A,H=!1){if(!this.canReaddir()){H?A(null,[]):queueMicrotask(()=>A(null,[]));return}let ee=this.children();if(this.calledReaddir()){let te=ee.slice(0,ee.provisional);H?A(null,te):queueMicrotask(()=>A(null,te));return}if(this.#D.push(A),this.#V)return;this.#V=!0;let ne=this.fullpath();this.#e.readdir(ne,{withFileTypes:!0},(te,ae)=>{if(te)this.#N(te.code),ee.provisional=0;else{for(let he of ae)this.#B(he,ee);this.#I(ee)}this.#z(ee.slice(0,ee.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let A=this.children();if(this.calledReaddir())return A.slice(0,A.provisional);let H=this.fullpath();if(this.#W)await this.#W;else{let ee=v(()=>{},"resolve");this.#W=new Promise(ne=>ee=ne);try{for(let ne of await this.#e.promises.readdir(H,{withFileTypes:!0}))this.#B(ne,A);this.#I(A)}catch(ne){this.#N(ne.code),A.provisional=0}this.#W=void 0,ee()}return A.slice(0,A.provisional)}readdirSync(){if(!this.canReaddir())return[];let A=this.children();if(this.calledReaddir())return A.slice(0,A.provisional);let H=this.fullpath();try{for(let ee of this.#e.readdirSync(H,{withFileTypes:!0}))this.#B(ee,A);this.#I(A)}catch(ee){this.#N(ee.code),A.provisional=0}return A.slice(0,A.provisional)}canReaddir(){if(this.#p&B)return!1;let A=I&this.#p;return A===y||A===b||A===O}shouldWalk(A,H){return(this.#p&b)===b&&!(this.#p&B)&&!A.has(this)&&(!H||H(this))}async realpath(){if(this.#T)return this.#T;if(!((V|U|j)&this.#p))try{let A=await this.#e.promises.realpath(this.fullpath());return this.#T=this.resolve(A)}catch{this.#k()}}realpathSync(){if(this.#T)return this.#T;if(!((V|U|j)&this.#p))try{let A=this.#e.realpathSync(this.fullpath());return this.#T=this.resolve(A)}catch{this.#k()}}[Q](A){if(A===this)return;A.isCWD=!1,this.isCWD=!0;let H=new Set([]),ee=[],ne=this;for(;ne&&ne.parent;)H.add(ne),ne.#P=ee.join(this.sep),ne.#A=ee.join("/"),ne=ne.parent,ee.push("..");for(ne=A;ne&&ne.parent&&!H.has(ne);)ne.#P=void 0,ne.#A=void 0,ne=ne.parent}};e.PathBase=k;var F=class qc extends k{static{v(this,"PathWin32")}sep="\\";splitSep=f;constructor(H,ee=y,ne,te,ae,he,re){super(H,ee,ne,te,ae,he,re)}newChild(H,ee=y,ne={}){return new qc(H,ee,this.root,this.roots,this.nocase,this.childrenCache(),ne)}getRootString(H){return c.win32.parse(H).root}getRoot(H){if(H=m(H.toUpperCase()),H===this.root.name)return this.root;for(let[ee,ne]of Object.entries(this.roots))if(this.sameRoot(H,ee))return this.roots[H]=ne;return this.roots[H]=new q(H,this).root}sameRoot(H,ee=this.root.name){return H=H.toUpperCase().replace(/\//g,"\\").replace(g,"$1\\"),H===ee}};e.PathWin32=F;var z=class Kc extends k{static{v(this,"PathPosix")}splitSep="/";sep="/";constructor(H,ee=y,ne,te,ae,he,re){super(H,ee,ne,te,ae,he,re)}getRootString(H){return H.startsWith("/")?"/":""}getRoot(H){return this.root}newChild(H,ee=y,ne={}){return new Kc(H,ee,this.root,this.roots,this.nocase,this.childrenCache(),ne)}};e.PathPosix=z;var $=class{static{v(this,"PathScurryBase")}root;rootPath;roots;cwd;#e;#t;#r;nocase;#s;constructor(A=process.cwd(),H,ee,{nocase:ne,childrenCacheSize:te=16*1024,fs:ae=h}={}){this.#s=d(ae),(A instanceof URL||A.startsWith("file://"))&&(A=(0,o.fileURLToPath)(A));let he=H.resolve(A);this.roots=Object.create(null),this.rootPath=this.parseRootPath(he),this.#e=new Z,this.#t=new Z,this.#r=new X(te);let re=he.substring(this.rootPath.length).split(ee);if(re.length===1&&!re[0]&&re.pop(),ne===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=ne,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let ue=this.root,ie=re.length-1,le=H.sep,fe=this.rootPath,me=!1;for(let ce of re){let pe=ie--;ue=ue.child(ce,{relative:new Array(pe).fill("..").join(le),relativePosix:new Array(pe).fill("..").join("/"),fullpath:fe+=(me?"":le)+ce}),me=!0}this.cwd=ue}depth(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.depth()}childrenCache(){return this.#r}resolve(...A){let H="";for(let te=A.length-1;te>=0;te--){let ae=A[te];if(!(!ae||ae===".")&&(H=H?`${ae}/${H}`:ae,this.isAbsolute(ae)))break}let ee=this.#e.get(H);if(ee!==void 0)return ee;let ne=this.cwd.resolve(H).fullpath();return this.#e.set(H,ne),ne}resolvePosix(...A){let H="";for(let te=A.length-1;te>=0;te--){let ae=A[te];if(!(!ae||ae===".")&&(H=H?`${ae}/${H}`:ae,this.isAbsolute(ae)))break}let ee=this.#t.get(H);if(ee!==void 0)return ee;let ne=this.cwd.resolve(H).fullpathPosix();return this.#t.set(H,ne),ne}relative(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.relative()}relativePosix(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.relativePosix()}basename(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.name}dirname(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),(A.parent||A).fullpath()}async readdir(A=this.cwd,H={withFileTypes:!0}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee}=H;if(A.canReaddir()){let ne=await A.readdir();return ee?ne:ne.map(te=>te.name)}else return[]}readdirSync(A=this.cwd,H={withFileTypes:!0}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0}=H;return A.canReaddir()?ee?A.readdirSync():A.readdirSync().map(ne=>ne.name):[]}async lstat(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.lstat()}lstatSync(A=this.cwd){return typeof A=="string"&&(A=this.cwd.resolve(A)),A.lstatSync()}async readlink(A=this.cwd,{withFileTypes:H}={withFileTypes:!1}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A.withFileTypes,A=this.cwd);let ee=await A.readlink();return H?ee:ee?.fullpath()}readlinkSync(A=this.cwd,{withFileTypes:H}={withFileTypes:!1}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A.withFileTypes,A=this.cwd);let ee=A.readlinkSync();return H?ee:ee?.fullpath()}async realpath(A=this.cwd,{withFileTypes:H}={withFileTypes:!1}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A.withFileTypes,A=this.cwd);let ee=await A.realpath();return H?ee:ee?.fullpath()}realpathSync(A=this.cwd,{withFileTypes:H}={withFileTypes:!1}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A.withFileTypes,A=this.cwd);let ee=A.realpathSync();return H?ee:ee?.fullpath()}async walk(A=this.cwd,H={}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0,follow:ne=!1,filter:te,walkFilter:ae}=H,he=[];(!te||te(A))&&he.push(ee?A:A.fullpath());let re=new Set,ue=v((le,fe)=>{re.add(le),le.readdirCB((me,ce)=>{if(me)return fe(me);let pe=ce.length;if(!pe)return fe();let de=v(()=>{--pe===0&&fe()},"next");for(let ye of ce)(!te||te(ye))&&he.push(ee?ye:ye.fullpath()),ne&&ye.isSymbolicLink()?ye.realpath().then(Ee=>Ee?.isUnknown()?Ee.lstat():Ee).then(Ee=>Ee?.shouldWalk(re,ae)?ue(Ee,de):de()):ye.shouldWalk(re,ae)?ue(ye,de):de()},!0)},"walk"),ie=A;return new Promise((le,fe)=>{ue(ie,me=>{if(me)return fe(me);le(he)})})}walkSync(A=this.cwd,H={}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0,follow:ne=!1,filter:te,walkFilter:ae}=H,he=[];(!te||te(A))&&he.push(ee?A:A.fullpath());let re=new Set([A]);for(let ue of re){let ie=ue.readdirSync();for(let le of ie){(!te||te(le))&&he.push(ee?le:le.fullpath());let fe=le;if(le.isSymbolicLink()){if(!(ne&&(fe=le.realpathSync())))continue;fe.isUnknown()&&fe.lstatSync()}fe.shouldWalk(re,ae)&&re.add(fe)}}return he}[Symbol.asyncIterator](){return this.iterate()}iterate(A=this.cwd,H={}){return typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd),this.stream(A,H)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(A=this.cwd,H={}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0,follow:ne=!1,filter:te,walkFilter:ae}=H;(!te||te(A))&&(yield ee?A:A.fullpath());let he=new Set([A]);for(let re of he){let ue=re.readdirSync();for(let ie of ue){(!te||te(ie))&&(yield ee?ie:ie.fullpath());let le=ie;if(ie.isSymbolicLink()){if(!(ne&&(le=ie.realpathSync())))continue;le.isUnknown()&&le.lstatSync()}le.shouldWalk(he,ae)&&he.add(le)}}}stream(A=this.cwd,H={}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0,follow:ne=!1,filter:te,walkFilter:ae}=H,he=new u.Minipass({objectMode:!0});(!te||te(A))&&he.write(ee?A:A.fullpath());let re=new Set,ue=[A],ie=0,le=v(()=>{let fe=!1;for(;!fe;){let me=ue.shift();if(!me){ie===0&&he.end();return}ie++,re.add(me);let ce=v((de,ye,Ee=!1)=>{if(de)return he.emit("error",de);if(ne&&!Ee){let Ie=[];for(let Be of ye)Be.isSymbolicLink()&&Ie.push(Be.realpath().then($t=>$t?.isUnknown()?$t.lstat():$t));if(Ie.length){Promise.all(Ie).then(()=>ce(null,ye,!0));return}}for(let Ie of ye)Ie&&(!te||te(Ie))&&(he.write(ee?Ie:Ie.fullpath())||(fe=!0));ie--;for(let Ie of ye){let Be=Ie.realpathCached()||Ie;Be.shouldWalk(re,ae)&&ue.push(Be)}fe&&!he.flowing?he.once("drain",le):pe||le()},"onReaddir"),pe=!0;me.readdirCB(ce,!0),pe=!1}},"process");return le(),he}streamSync(A=this.cwd,H={}){typeof A=="string"?A=this.cwd.resolve(A):A instanceof k||(H=A,A=this.cwd);let{withFileTypes:ee=!0,follow:ne=!1,filter:te,walkFilter:ae}=H,he=new u.Minipass({objectMode:!0}),re=new Set;(!te||te(A))&&he.write(ee?A:A.fullpath());let ue=[A],ie=0,le=v(()=>{let fe=!1;for(;!fe;){let me=ue.shift();if(!me){ie===0&&he.end();return}ie++,re.add(me);let ce=me.readdirSync();for(let pe of ce)(!te||te(pe))&&(he.write(ee?pe:pe.fullpath())||(fe=!0));ie--;for(let pe of ce){let de=pe;if(pe.isSymbolicLink()){if(!(ne&&(de=pe.realpathSync())))continue;de.isUnknown()&&de.lstatSync()}de.shouldWalk(re,ae)&&ue.push(de)}}fe&&!he.flowing&&he.once("drain",le)},"process");return le(),he}chdir(A=this.cwd){let H=this.cwd;this.cwd=typeof A=="string"?this.cwd.resolve(A):A,this.cwd[Q](H)}};e.PathScurryBase=$;var q=class extends ${static{v(this,"PathScurryWin32")}sep="\\";constructor(A=process.cwd(),H={}){let{nocase:ee=!0}=H;super(A,c.win32,"\\",{...H,nocase:ee}),this.nocase=ee;for(let ne=this.cwd;ne;ne=ne.parent)ne.nocase=this.nocase}parseRootPath(A){return c.win32.parse(A).root.toUpperCase()}newRoot(A){return new F(this.rootPath,b,void 0,this.roots,this.nocase,this.childrenCache(),{fs:A})}isAbsolute(A){return A.startsWith("/")||A.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(A)}};e.PathScurryWin32=q;var J=class extends ${static{v(this,"PathScurryPosix")}sep="/";constructor(A=process.cwd(),H={}){let{nocase:ee=!1}=H;super(A,c.posix,"/",{...H,nocase:ee}),this.nocase=ee}parseRootPath(A){return"/"}newRoot(A){return new z(this.rootPath,b,void 0,this.roots,this.nocase,this.childrenCache(),{fs:A})}isAbsolute(A){return A.startsWith("/")}};e.PathScurryPosix=J;var Y=class extends J{static{v(this,"PathScurryDarwin")}constructor(A=process.cwd(),H={}){let{nocase:ee=!0}=H;super(A,{...H,nocase:ee})}};e.PathScurryDarwin=Y,e.Path=process.platform==="win32"?F:z,e.PathScurry=process.platform==="win32"?q:process.platform==="darwin"?Y:J}),Jc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pattern=void 0;var r=Ot(),a=v(c=>c.length>=1,"isPatternList"),p=v(c=>c.length>=1,"isGlobList"),n=class Zc{static{v(this,"Pattern")}#e;#t;#r;length;#s;#i;#c;#l;#h;#o;#u=!0;constructor(o,t,s,i){if(!a(o))throw new TypeError("empty pattern list");if(!p(t))throw new TypeError("empty glob list");if(t.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#e=o,this.#t=t,this.#r=s,this.#s=i,this.#r===0){if(this.isUNC()){let[l,u,h,d,...g]=this.#e,[m,f,y,S,...E]=this.#t;g[0]===""&&(g.shift(),E.shift());let b=[l,u,h,d,""].join("/"),_=[m,f,y,S,""].join("/");this.#e=[b,...g],this.#t=[_,...E],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[l,...u]=this.#e,[h,...d]=this.#t;u[0]===""&&(u.shift(),d.shift());let g=l+"/",m=h+"/";this.#e=[g,...u],this.#t=[m,...d],this.length=this.#e.length}}}pattern(){return this.#e[this.#r]}isString(){return typeof this.#e[this.#r]=="string"}isGlobstar(){return this.#e[this.#r]===r.GLOBSTAR}isRegExp(){return this.#e[this.#r]instanceof RegExp}globString(){return this.#c=this.#c||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#i!==void 0?this.#i:this.hasMore()?(this.#i=new Zc(this.#e,this.#t,this.#r+1,this.#s),this.#i.#o=this.#o,this.#i.#h=this.#h,this.#i.#l=this.#l,this.#i):this.#i=null}isUNC(){let o=this.#e;return this.#h!==void 0?this.#h:this.#h=this.#s==="win32"&&this.#r===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#s==="win32"&&this.#r===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#e;return this.#o!==void 0?this.#o:this.#o=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#e[0];return typeof o=="string"&&this.isAbsolute()&&this.#r===0?o:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};e.Pattern=n}),Xc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Ignore=void 0;var r=Ot(),a=Jc(),p=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",n=class{static{v(this,"Ignore")}relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(c,{nobrace:o,nocase:t,noext:s,noglobstar:i,platform:l=p}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=l,this.mmopts={dot:!0,nobrace:o,nocase:t,noext:s,noglobstar:i,optimizationLevel:2,platform:l,nocomment:!0,nonegate:!0};for(let u of c)this.add(u)}add(c){let o=new r.Minimatch(c,this.mmopts);for(let t=0;t<o.set.length;t++){let s=o.set[t],i=o.globParts[t];if(!s||!i)throw new Error("invalid pattern object");for(;s[0]==="."&&i[0]===".";)s.shift(),i.shift();let l=new a.Pattern(s,i,0,this.platform),u=new r.Minimatch(l.globString(),this.mmopts),h=i[i.length-1]==="**",d=l.isAbsolute();d?this.absolute.push(u):this.relative.push(u),h&&(d?this.absoluteChildren.push(u):this.relativeChildren.push(u))}}ignored(c){let o=c.fullpath(),t=`${o}/`,s=c.relative()||".",i=`${s}/`;for(let l of this.relative)if(l.match(s)||l.match(i))return!0;for(let l of this.absolute)if(l.match(o)||l.match(t))return!0;return!1}childrenIgnored(c){let o=c.fullpath()+"/",t=(c.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(t))return!0;for(let s of this.absoluteChildren)if(s.match(o))return!0;return!1}};e.Ignore=n}),XS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;var r=Ot(),a=class Yc{static{v(this,"HasWalkedCache")}store;constructor(t=new Map){this.store=t}copy(){return new Yc(new Map(this.store))}hasWalked(t,s){return this.store.get(t.fullpath())?.has(s.globString())}storeWalked(t,s){let i=t.fullpath(),l=this.store.get(i);l?l.add(s.globString()):this.store.set(i,new Set([s.globString()]))}};e.HasWalkedCache=a;var p=class{static{v(this,"MatchRecord")}store=new Map;add(o,t,s){let i=(t?2:0)|(s?1:0),l=this.store.get(o);this.store.set(o,l===void 0?i:i&l)}entries(){return[...this.store.entries()].map(([o,t])=>[o,!!(t&2),!!(t&1)])}};e.MatchRecord=p;var n=class{static{v(this,"SubWalks")}store=new Map;add(o,t){if(!o.canReaddir())return;let s=this.store.get(o);s?s.find(i=>i.globString()===t.globString())||s.push(t):this.store.set(o,[t])}get(o){let t=this.store.get(o);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(o=>[o,this.store.get(o)])}keys(){return[...this.store.keys()].filter(o=>o.canReaddir())}};e.SubWalks=n;var c=class Qc{static{v(this,"Processor")}hasWalkedCache;matches=new p;subwalks=new n;patterns;follow;dot;opts;constructor(t,s){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=s?s.copy():new a}processPatterns(t,s){this.patterns=s;let i=s.map(l=>[t,l]);for(let[l,u]of i){this.hasWalkedCache.storeWalked(l,u);let h=u.root(),d=u.isAbsolute()&&this.opts.absolute!==!1;if(h){l=l.resolve(h==="/"&&this.opts.root!==void 0?this.opts.root:h);let y=u.rest();if(y)u=y;else{this.matches.add(l,!0,!1);continue}}if(l.isENOENT())continue;let g,m,f=!1;for(;typeof(g=u.pattern())=="string"&&(m=u.rest());)l=l.resolve(g),u=m,f=!0;if(g=u.pattern(),m=u.rest(),f){if(this.hasWalkedCache.hasWalked(l,u))continue;this.hasWalkedCache.storeWalked(l,u)}if(typeof g=="string"){let y=g===".."||g===""||g===".";this.matches.add(l.resolve(g),d,y);continue}else if(g===r.GLOBSTAR){(!l.isSymbolicLink()||this.follow||u.checkFollowGlobstar())&&this.subwalks.add(l,u);let y=m?.pattern(),S=m?.rest();if(!m||(y===""||y===".")&&!S)this.matches.add(l,d,y===""||y===".");else if(y===".."){let E=l.parent||l;S?this.hasWalkedCache.hasWalked(E,S)||this.subwalks.add(E,S):this.matches.add(E,d,!0)}}else g instanceof RegExp&&this.subwalks.add(l,u)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Qc(this.opts,this.hasWalkedCache)}filterEntries(t,s){let i=this.subwalks.get(t),l=this.child();for(let u of s)for(let h of i){let d=h.isAbsolute(),g=h.pattern(),m=h.rest();g===r.GLOBSTAR?l.testGlobstar(u,h,m,d):g instanceof RegExp?l.testRegExp(u,g,m,d):l.testString(u,g,m,d)}return l}testGlobstar(t,s,i,l){if((this.dot||!t.name.startsWith("."))&&(s.hasMore()||this.matches.add(t,l,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,s):t.isSymbolicLink()&&(i&&s.checkFollowGlobstar()?this.subwalks.add(t,i):s.markFollowGlobstar()&&this.subwalks.add(t,s)))),i){let u=i.pattern();if(typeof u=="string"&&u!==".."&&u!==""&&u!==".")this.testString(t,u,i.rest(),l);else if(u===".."){let h=t.parent||t;this.subwalks.add(h,i)}else u instanceof RegExp&&this.testRegExp(t,u,i.rest(),l)}}testRegExp(t,s,i,l){s.test(t.name)&&(i?this.subwalks.add(t,i):this.matches.add(t,l,!1))}testString(t,s,i,l){t.isNamed(s)&&(i?this.subwalks.add(t,i):this.matches.add(t,l,!1))}};e.Processor=c}),YS=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;var r=Pe(),a=Xc(),p=XS(),n=v((s,i)=>typeof s=="string"?new a.Ignore([s],i):Array.isArray(s)?new a.Ignore(s,i):s,"makeIgnore"),c=class{static{v(this,"GlobUtil")}path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#r;signal;maxDepth;includeChildMatches;constructor(s,i,l){if(this.patterns=s,this.path=i,this.opts=l,this.#r=!l.posix&&l.platform==="win32"?"\\":"/",this.includeChildMatches=l.includeChildMatches!==!1,(l.ignore||!this.includeChildMatches)&&(this.#t=n(l.ignore??[],l),!this.includeChildMatches&&typeof this.#t.add!="function")){let u="cannot ignore child matches, ignore lacks add() method.";throw new Error(u)}this.maxDepth=l.maxDepth||1/0,l.signal&&(this.signal=l.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#s(s){return this.seen.has(s)||!!this.#t?.ignored?.(s)}#i(s){return!!this.#t?.childrenIgnored?.(s)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let s;for(;!this.paused&&(s=this.#e.shift());)s()}onResume(s){this.signal?.aborted||(this.paused?this.#e.push(s):s())}async matchCheck(s,i){if(i&&this.opts.nodir)return;let l;if(this.opts.realpath){if(l=s.realpathCached()||await s.realpath(),!l)return;s=l}let u=s.isUnknown()||this.opts.stat?await s.lstat():s;if(this.opts.follow&&this.opts.nodir&&u?.isSymbolicLink()){let h=await u.realpath();h&&(h.isUnknown()||this.opts.stat)&&await h.lstat()}return this.matchCheckTest(u,i)}matchCheckTest(s,i){return s&&(this.maxDepth===1/0||s.depth()<=this.maxDepth)&&(!i||s.canReaddir())&&(!this.opts.nodir||!s.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!s.isSymbolicLink()||!s.realpathCached()?.isDirectory())&&!this.#s(s)?s:void 0}matchCheckSync(s,i){if(i&&this.opts.nodir)return;let l;if(this.opts.realpath){if(l=s.realpathCached()||s.realpathSync(),!l)return;s=l}let u=s.isUnknown()||this.opts.stat?s.lstatSync():s;if(this.opts.follow&&this.opts.nodir&&u?.isSymbolicLink()){let h=u.realpathSync();h&&(h?.isUnknown()||this.opts.stat)&&h.lstatSync()}return this.matchCheckTest(u,i)}matchFinish(s,i){if(this.#s(s))return;if(!this.includeChildMatches&&this.#t?.add){let h=`${s.relativePosix()}/**`;this.#t.add(h)}let l=this.opts.absolute===void 0?i:this.opts.absolute;this.seen.add(s);let u=this.opts.mark&&s.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(s);else if(l){let h=this.opts.posix?s.fullpathPosix():s.fullpath();this.matchEmit(h+u)}else{let h=this.opts.posix?s.relativePosix():s.relative(),d=this.opts.dotRelative&&!h.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(h?d+h+u:"."+u)}}async match(s,i,l){let u=await this.matchCheck(s,l);u&&this.matchFinish(u,i)}matchSync(s,i,l){let u=this.matchCheckSync(s,l);u&&this.matchFinish(u,i)}walkCB(s,i,l){this.signal?.aborted&&l(),this.walkCB2(s,i,new p.Processor(this.opts),l)}walkCB2(s,i,l,u){if(this.#i(s))return u();if(this.signal?.aborted&&u(),this.paused){this.onResume(()=>this.walkCB2(s,i,l,u));return}l.processPatterns(s,i);let h=1,d=v(()=>{--h===0&&u()},"next");for(let[g,m,f]of l.matches.entries())this.#s(g)||(h++,this.match(g,m,f).then(()=>d()));for(let g of l.subwalkTargets()){if(this.maxDepth!==1/0&&g.depth()>=this.maxDepth)continue;h++;let m=g.readdirCached();g.calledReaddir()?this.walkCB3(g,m,l,d):g.readdirCB((f,y)=>this.walkCB3(g,y,l,d),!0)}d()}walkCB3(s,i,l,u){l=l.filterEntries(s,i);let h=1,d=v(()=>{--h===0&&u()},"next");for(let[g,m,f]of l.matches.entries())this.#s(g)||(h++,this.match(g,m,f).then(()=>d()));for(let[g,m]of l.subwalks.entries())h++,this.walkCB2(g,m,l.child(),d);d()}walkCBSync(s,i,l){this.signal?.aborted&&l(),this.walkCB2Sync(s,i,new p.Processor(this.opts),l)}walkCB2Sync(s,i,l,u){if(this.#i(s))return u();if(this.signal?.aborted&&u(),this.paused){this.onResume(()=>this.walkCB2Sync(s,i,l,u));return}l.processPatterns(s,i);let h=1,d=v(()=>{--h===0&&u()},"next");for(let[g,m,f]of l.matches.entries())this.#s(g)||this.matchSync(g,m,f);for(let g of l.subwalkTargets()){if(this.maxDepth!==1/0&&g.depth()>=this.maxDepth)continue;h++;let m=g.readdirSync();this.walkCB3Sync(g,m,l,d)}d()}walkCB3Sync(s,i,l,u){l=l.filterEntries(s,i);let h=1,d=v(()=>{--h===0&&u()},"next");for(let[g,m,f]of l.matches.entries())this.#s(g)||this.matchSync(g,m,f);for(let[g,m]of l.subwalks.entries())h++,this.walkCB2Sync(g,m,l.child(),d);d()}};e.GlobUtil=c;var o=class extends c{static{v(this,"GlobWalker")}matches=new Set;constructor(s,i,l){super(s,i,l)}matchEmit(s){this.matches.add(s)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((s,i)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?i(this.signal.reason):s(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.GlobWalker=o;var t=class extends c{static{v(this,"GlobStream")}results;constructor(s,i,l){super(s,i,l),this.results=new r.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(s){this.results.write(s),this.results.flowing||this.pause()}stream(){let s=this.path;return s.isUnknown()?s.lstat().then(()=>{this.walkCB(s,this.patterns,()=>this.results.end())}):this.walkCB(s,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.GlobStream=t}),Nc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Glob=void 0;var r=Ot(),a=require("node:url"),p=ZS(),n=Jc(),c=YS(),o=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",t=class{static{v(this,"Glob")}absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(s,i){if(!i)throw new TypeError("glob options required");if(this.withFileTypes=!!i.withFileTypes,this.signal=i.signal,this.follow=!!i.follow,this.dot=!!i.dot,this.dotRelative=!!i.dotRelative,this.nodir=!!i.nodir,this.mark=!!i.mark,i.cwd?(i.cwd instanceof URL||i.cwd.startsWith("file://"))&&(i.cwd=(0,a.fileURLToPath)(i.cwd)):this.cwd="",this.cwd=i.cwd||"",this.root=i.root,this.magicalBraces=!!i.magicalBraces,this.nobrace=!!i.nobrace,this.noext=!!i.noext,this.realpath=!!i.realpath,this.absolute=i.absolute,this.includeChildMatches=i.includeChildMatches!==!1,this.noglobstar=!!i.noglobstar,this.matchBase=!!i.matchBase,this.maxDepth=typeof i.maxDepth=="number"?i.maxDepth:1/0,this.stat=!!i.stat,this.ignore=i.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof s=="string"&&(s=[s]),this.windowsPathsNoEscape=!!i.windowsPathsNoEscape||i.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(s=s.map(m=>m.replace(/\\/g,"/"))),this.matchBase){if(i.noglobstar)throw new TypeError("base matching requires globstar");s=s.map(m=>m.includes("/")?m:`./**/${m}`)}if(this.pattern=s,this.platform=i.platform||o,this.opts={...i,platform:this.platform},i.scurry){if(this.scurry=i.scurry,i.nocase!==void 0&&i.nocase!==i.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let m=i.platform==="win32"?p.PathScurryWin32:i.platform==="darwin"?p.PathScurryDarwin:i.platform?p.PathScurryPosix:p.PathScurry;this.scurry=new m(this.cwd,{nocase:i.nocase,fs:i.fs})}this.nocase=this.scurry.nocase;let l=this.platform==="darwin"||this.platform==="win32",u={...i,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:l,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},h=this.pattern.map(m=>new r.Minimatch(m,u)),[d,g]=h.reduce((m,f)=>(m[0].push(...f.set),m[1].push(...f.globParts),m),[[],[]]);this.patterns=d.map((m,f)=>{let y=g[f];if(!y)throw new Error("invalid pattern object");return new n.Pattern(m,y,0,this.platform)})}async walk(){return[...await new c.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 c.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 c.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 c.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=t}),kc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasMagic=void 0;var r=Ot(),a=v((p,n={})=>{Array.isArray(p)||(p=[p]);for(let c of p)if(new r.Minimatch(c,n).hasMagic())return!0;return!1},"hasMagic");e.hasMagic=a}),eu=K(e=>{"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=s,e.globStream=i,e.globSync=l,e.globIterateSync=h,e.globIterate=d;var r=Ot(),a=Nc(),p=kc(),n=Ot();Object.defineProperty(e,"escape",{enumerable:!0,get:v(function(){return n.escape},"get")}),Object.defineProperty(e,"unescape",{enumerable:!0,get:v(function(){return n.unescape},"get")});var c=Nc();Object.defineProperty(e,"Glob",{enumerable:!0,get:v(function(){return c.Glob},"get")});var o=kc();Object.defineProperty(e,"hasMagic",{enumerable:!0,get:v(function(){return o.hasMagic},"get")});var t=Xc();Object.defineProperty(e,"Ignore",{enumerable:!0,get:v(function(){return t.Ignore},"get")});function s(g,m={}){return new a.Glob(g,m).streamSync()}v(s,"globStreamSync");function i(g,m={}){return new a.Glob(g,m).stream()}v(i,"globStream");function l(g,m={}){return new a.Glob(g,m).walkSync()}v(l,"globSync");async function u(g,m={}){return new a.Glob(g,m).walk()}v(u,"glob_");function h(g,m={}){return new a.Glob(g,m).iterateSync()}v(h,"globIterateSync");function d(g,m={}){return new a.Glob(g,m).iterate()}v(d,"globIterate"),e.streamSync=s,e.stream=Object.assign(i,{sync:s}),e.iterateSync=h,e.iterate=Object.assign(d,{sync:h}),e.sync=Object.assign(l,{stream:s,iterate:h}),e.glob=Object.assign(u,{glob:u,globSync:l,sync:e.sync,globStream:i,stream:e.stream,globStreamSync:s,streamSync:e.streamSync,globIterate:d,iterate:e.iterate,globIterateSync:h,iterateSync:e.iterateSync,Glob:a.Glob,hasMagic:p.hasMagic,escape:r.escape,unescape:r.unescape}),e.glob.glob=e.glob}),tu=K((e,r)=>{r.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]}),QS=K((e,r)=>{r.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]}),eE=K((e,r)=>{r.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}),tE=K((e,r)=>{"use strict";var a=[].concat(tu()).concat(QS()),p=eE();r.exports=function(n){var c=0;function o(){return c<n.length}v(o,"hasMore");function t(S){if(S instanceof RegExp){var E=n.slice(c),b=E.match(S);if(b)return c+=b[0].length,b[0]}else if(n.indexOf(S,c)===c)return c+=S.length,S}v(t,"read");function s(){t(/[ ]*/)}v(s,"skipWhitespace");function i(){for(var S,E=["WITH","AND","OR","(",")",":","+"],b=0;b<E.length&&(S=t(E[b]),!S);b++);if(S==="+"&&c>1&&n[c-2]===" ")throw new Error("Space before `+`");return S&&{type:"OPERATOR",string:S}}v(i,"operator");function l(){return t(/[A-Za-z0-9-.]+/)}v(l,"idstring");function u(){var S=l();if(!S)throw new Error("Expected idstring at offset "+c);return S}v(u,"expectIdstring");function h(){if(t("DocumentRef-")){var S=u();return{type:"DOCUMENTREF",string:S}}}v(h,"documentRef");function d(){if(t("LicenseRef-")){var S=u();return{type:"LICENSEREF",string:S}}}v(d,"licenseRef");function g(){var S=c,E=l();if(a.indexOf(E)!==-1)return{type:"LICENSE",string:E};if(p.indexOf(E)!==-1)return{type:"EXCEPTION",string:E};c=S}v(g,"identifier");function m(){return i()||h()||d()||g()}v(m,"parseToken");for(var f=[];o()&&(s(),!!o());){var y=m();if(!y)throw new Error("Unexpected `"+n[c]+"` at offset "+c);f.push(y)}return f}}),rE=K((e,r)=>{"use strict";r.exports=function(a){var p=0;function n(){return p<a.length}v(n,"hasMore");function c(){return n()?a[p]:null}v(c,"token");function o(){if(!n())throw new Error;p++}v(o,"next");function t(y){var S=c();if(S&&S.type==="OPERATOR"&&y===S.string)return o(),S.string}v(t,"parseOperator");function s(){if(t("WITH")){var y=c();if(y&&y.type==="EXCEPTION")return o(),y.string;throw new Error("Expected exception after `WITH`")}}v(s,"parseWith");function i(){var y=p,S="",E=c();if(E.type==="DOCUMENTREF"&&(o(),S+="DocumentRef-"+E.string+":",!t(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(E=c(),E.type==="LICENSEREF")return o(),S+="LicenseRef-"+E.string,{license:S};p=y}v(i,"parseLicenseRef");function l(){var y=c();if(y&&y.type==="LICENSE"){o();var S={license:y.string};t("+")&&(S.plus=!0);var E=s();return E&&(S.exception=E),S}}v(l,"parseLicense");function u(){var y=t("(");if(y){var S=m();if(!t(")"))throw new Error("Expected `)`");return S}}v(u,"parseParenthesizedExpression");function h(){return u()||i()||l()}v(h,"parseAtom");function d(y,S){return v(function E(){var b=S();if(b){if(!t(y))return b;var _=E();if(!_)throw new Error("Expected expression");return{left:b,conjunction:y.toLowerCase(),right:_}}},"parseBinaryOp")}v(d,"makeBinaryOpParser");var g=d("AND",h),m=d("OR",g),f=m();if(!f||n())throw new Error("Syntax error");return f}}),ru=K((e,r)=>{"use strict";var a=tE(),p=rE();r.exports=function(n){return p(a(n))}}),sE=K((e,r)=>{var a=ru(),p=tu();function n(E){try{return a(E),!0}catch{return!1}}v(n,"valid");function c(E,b){var _=b[0].length-E[0].length;return _!==0?_:E[0].toUpperCase().localeCompare(b[0].toUpperCase())}v(c,"sortTranspositions");var o=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(c),t=0,s=1,i=[function(E){return E.toUpperCase()},function(E){return E.trim()},function(E){return E.replace(/\./g,"")},function(E){return E.replace(/\s+/g,"")},function(E){return E.replace(/\s+/g,"-")},function(E){return E.replace("v","-")},function(E){return E.replace(/,?\s*(\d)/,"-$1")},function(E){return E.replace(/,?\s*(\d)/,"-$1.0")},function(E){return E.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(E){return E.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(E){return E[0].toUpperCase()+E.slice(1)},function(E){return E.replace("/","-")},function(E){return E.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(E){return E.indexOf("3.0")!==-1?E+"-or-later":E+"-only"},function(E){return E+"only"},function(E){return E.replace(/(\d)$/,"-$1.0")},function(E){return E.replace(/(-| )?(\d)$/,"-$2-Clause")},function(E){return E.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(E){return E.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(E){return E.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(E){return E.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(E){return E.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(E){return E.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(E){return"CC-"+E},function(E){return"CC-"+E+"-4.0"},function(E){return E.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(E){return"CC-"+E.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],l=p.map(function(E){var b=/^(.*)-\d+\.\d+$/.exec(E);return b?[b[0],b[1]]:[E,null]}).reduce(function(E,b){var _=b[1];return E[_]=E[_]||[],E[_].push(b[0]),E},{}),u=Object.keys(l).map(v(function(E){return[E,l[E]]},"makeEntries")).filter(v(function(E){return E[1].length===1&&E[0]!==null&&E[0]!=="APL"},"identifySoleVersions")).map(v(function(E){return[E[0],E[1][0]]},"createLastResorts"));l=void 0;var h=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(u).sort(c),d=0,g=1,m=v(function(E){for(var b=0;b<i.length;b++){var _=i[b](E).trim();if(_!==E&&n(_))return _}return null},"validTransformation"),f=v(function(E){for(var b=E.toUpperCase(),_=0;_<h.length;_++){var w=h[_];if(b.indexOf(w[d])>-1)return w[g]}return null},"validLastResort"),y=v(function(E,b){for(var _=0;_<o.length;_++){var w=o[_],O=w[t];if(E.indexOf(O)>-1){var R=E.replace(O,w[s]),I=b(R);if(I!==null)return I}}return null},"anyCorrection");r.exports=function(E,b){b=b||{};var _=b.upgrade===void 0?!0:!!b.upgrade;function w(P){return _?S(P):P}v(w,"postprocess");var O=typeof E=="string"&&E.trim().length!==0;if(!O)throw Error("Invalid argument. Expected non-empty string.");if(E=E.trim(),n(E))return w(E);var R=E.replace(/\+$/,"").trim();if(n(R))return w(R);var I=m(E);return I!==null||(I=y(E,function(P){return n(P)?P:m(P)}),I!==null)||(I=f(E),I!==null)||(I=y(E,f),I!==null)?w(I):null};function S(E){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(E)!==-1?E+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(E)!==-1?E.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(E)!==-1?E+"-or-later":E}v(S,"upgradeGPLs")}),iE=K((e,r)=>{var a=ru(),p=sE(),n='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',c=/^SEE LICEN[CS]E IN (.+)$/;function o(s,i){return i.slice(0,s.length)===s}v(o,"startsWith");function t(s){if(s.hasOwnProperty("license")){var i=s.license;return o("LicenseRef",i)||o("DocumentRef",i)}else return t(s.left)||t(s.right)}v(t,"usesLicenseRef"),r.exports=function(s){var i;try{i=a(s)}catch{var l;if(s==="UNLICENSED"||s==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(l=c.exec(s))return{validForOldPackages:!0,validForNewPackages:!0,inFile:l[1]};var u={validForOldPackages:!1,validForNewPackages:!1,warnings:[n]};if(s.trim().length!==0){var h=p(s);h&&u.warnings.push('license is similar to the valid expression "'+h+'"')}return u}return t(i)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[n]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}}),nE=K((e,r)=>{var{URL:a}=require("node:url"),p=qn(),n=iE(),c={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},o=v(l=>l.includes("@")&&l.indexOf("@")<l.lastIndexOf("."),"isEmail");function t(l){let u=l.trim().split(`
9
+ `),h=0;for(;u[h]?.trim().match(/^(#|$)/);)h++;let d=h+1;for(;d<u.length&&u[d].trim();)d++;return u.slice(h,d).join(" ").trim()}v(t,"extractDescription");function s(l){if(typeof l!="string"){let m=l.name||"",f=l.url||l.web,y=f?" ("+f+")":"",S=l.email||l.mail,E=S?" <"+S+">":"";l=m+E+y}let u=l.match(/^([^(<]+)/),h=l.match(/\(([^()]+)\)/),d=l.match(/<([^<>]+)>/),g={};return u?.[0].trim()&&(g.name=u[0].trim()),d&&(g.email=d[1]),h&&(g.url=h[1]),g}v(s,"stringifyPerson");function i(l,u){l.description&&typeof l.description!="string"&&(u?.push("'description' field should be a string"),delete l.description),l.readme&&!l.description&&l.readme!=="ERROR: No README data found!"&&(l.description=t(l.readme)),l.description===void 0&&delete l.description,l.description||u?.push("No description"),l.modules&&(u?.push("modules field is deprecated"),delete l.modules);let h=l.files;if(h&&!Array.isArray(h)?(u?.push("Invalid 'files' member"),delete l.files):l.files&&(l.files=l.files.filter(function(f){return!f||typeof f!="string"?(u?.push(`Invalid filename in 'files' list: ${f}`),!1):!0})),l.man&&typeof l.man=="string"&&(l.man=[l.man]),!l.bugs&&l.repository?.url){let f=p.fromUrl(l.repository.url);f&&f.bugs()&&(l.bugs={url:f.bugs()})}else if(l.bugs){if(typeof l.bugs=="string")o(l.bugs)?l.bugs={email:l.bugs}:a.canParse(l.bugs)?l.bugs={url:l.bugs}:u?.push("Bug string field must be url, email, or {email,url}");else{for(let y in l.bugs)["web","name"].includes(y)&&(u?.push(`bugs['${y}'] should probably be bugs['url'].`),l.bugs.url=l.bugs[y],delete l.bugs[y]);let f=l.bugs;l.bugs={},f.url&&(a.canParse(f.url)?l.bugs.url=f.url:u?.push("bugs.url field must be a string url. Deleted.")),f.email&&(typeof f.email=="string"&&o(f.email)?l.bugs.email=f.email:u?.push("bugs.email field must be a string email. Deleted."))}!l.bugs.email&&!l.bugs.url&&(delete l.bugs,u?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof l.keywords=="string"&&(l.keywords=l.keywords.split(/,\s+/)),l.keywords&&!Array.isArray(l.keywords)?(delete l.keywords,u?.push("keywords should be an array of strings")):l.keywords&&(l.keywords=l.keywords.filter(function(f){return typeof f!="string"||!f?(u?.push("keywords should be an array of strings"),!1):!0}));let d="bundledDependencies",g="bundleDependencies";if(l[d]&&!l[g]&&(l[g]=l[d],delete l[d]),l[g]&&!Array.isArray(l[g])?(u?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete l[g]):l[g]&&(l[g]=l[g].filter(function(f){return!f||typeof f!="string"?(u?.push(`Invalid bundleDependencies member: ${f}`),!1):(l.dependencies||(l.dependencies={}),Object.prototype.hasOwnProperty.call(l.dependencies,f)||(u?.push(`Non-dependency in bundleDependencies: ${f}`),l.dependencies[f]="*"),!0)})),!l.homepage&&l.repository&&l.repository.url){let f=p.fromUrl(l.repository.url);f&&(l.homepage=f.docs())}l.homepage&&(typeof l.homepage!="string"?(u?.push("homepage field must be a string url. Deleted."),delete l.homepage):a.canParse(l.homepage)||(l.homepage="http://"+l.homepage)),l.readme||(u?.push("No README data"),l.readme="ERROR: No README data found!");let m=l.license||l.licence;m?typeof m!="string"||m.length<1||m.trim()===""?u?.push("license should be a valid SPDX license expression"):n(m).validForNewPackages||u?.push("license should be a valid SPDX license expression"):u?.push("No license field."),l.author&&(l.author=s(l.author)),["maintainers","contributors"].forEach(function(f){Array.isArray(l[f])&&(l[f]=l[f].map(s))});for(let f in c)Object.prototype.hasOwnProperty.call(l,f)&&u?.push(`${f} should probably be ${c[f]}.`)}v(i,"normalizeData"),r.exports={normalizeData:i}}),oE=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=void 0;var r=require("fs"),a=require("fs/promises"),p=v(async(t,s={})=>{let{ignoreErrors:i=!1}=s;try{return c(await(0,a.stat)(t),s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"isexe");e.isexe=p;var n=v((t,s={})=>{let{ignoreErrors:i=!1}=s;try{return c((0,r.statSync)(t),s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"sync");e.sync=n;var c=v((t,s)=>t.isFile()&&o(t,s),"checkStat"),o=v((t,s)=>{let i=s.uid??process.getuid?.(),l=s.groups??process.getgroups?.()??[],u=s.gid??process.getgid?.()??l[0];if(i===void 0||u===void 0)throw new Error("cannot get uid or gid");let h=new Set([u,...l]),d=t.mode,g=t.uid,m=t.gid,f=parseInt("100",8),y=parseInt("010",8),S=parseInt("001",8),E=f|y;return!!(d&S||d&y&&h.has(m)||d&f&&g===i||d&E&&i===0)},"checkMode")}),aE=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=void 0;var r=require("fs"),a=require("fs/promises"),p=v(async(t,s={})=>{let{ignoreErrors:i=!1}=s;try{return o(await(0,a.stat)(t),t,s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"isexe");e.isexe=p;var n=v((t,s={})=>{let{ignoreErrors:i=!1}=s;try{return o((0,r.statSync)(t),t,s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"sync");e.sync=n;var c=v((t,s)=>{let{pathExt:i=process.env.PATHEXT||""}=s,l=i.split(";");if(l.indexOf("")!==-1)return!0;for(let u=0;u<l.length;u++){let h=l[u].toLowerCase(),d=t.substring(t.length-h.length).toLowerCase();if(h&&d===h)return!0}return!1},"checkPathExt"),o=v((t,s,i)=>t.isFile()&&c(s,i),"checkStat")}),lE=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),cE=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(i,l,u,h){h===void 0&&(h=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:v(function(){return l[u]},"get")}),Object.defineProperty(i,h,d)}:function(i,l,u,h){h===void 0&&(h=u),i[h]=l[u]}),a=e&&e.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),p=e&&e.__importStar||function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u in i)u!=="default"&&Object.prototype.hasOwnProperty.call(i,u)&&r(l,i,u);return a(l,i),l},n=e&&e.__exportStar||function(i,l){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&r(l,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;var c=p(oE());e.posix=c;var o=p(aE());e.win32=o,n(lE(),e);var t=process.env._ISEXE_TEST_PLATFORM_||process.platform,s=t==="win32"?o:c;e.isexe=s.isexe,e.sync=s.sync}),su=K((e,r)=>{var{isexe:a,sync:p}=cE(),{join:n,delimiter:c,sep:o,posix:t}=require("path"),s=process.platform==="win32",i=new RegExp(`[${t.sep}${o===t.sep?"":o}]`.replace(/(\\)/g,"\\$1")),l=new RegExp(`^\\.${i.source}`),u=v(f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),"getNotFoundError"),h=v((f,{path:y=process.env.PATH,pathExt:S=process.env.PATHEXT,delimiter:E=c})=>{let b=f.match(i)?[""]:[...s?[process.cwd()]:[],...(y||"").split(E)];if(s){let _=S||[".EXE",".CMD",".BAT",".COM"].join(E),w=_.split(E).flatMap(O=>[O,O.toLowerCase()]);return f.includes(".")&&w[0]!==""&&w.unshift(""),{pathEnv:b,pathExt:w,pathExtExe:_}}return{pathEnv:b,pathExt:[""]}},"getPathInfo"),d=v((f,y)=>{let S=/^".*"$/.test(f)?f.slice(1,-1):f;return(!S&&l.test(y)?y.slice(0,2):"")+n(S,y)},"getPathPart"),g=v(async(f,y={})=>{let{pathEnv:S,pathExt:E,pathExtExe:b}=h(f,y),_=[];for(let w of S){let O=d(w,f);for(let R of E){let I=O+R;if(await a(I,{pathExt:b,ignoreErrors:!0})){if(!y.all)return I;_.push(I)}}}if(y.all&&_.length)return _;if(y.nothrow)return null;throw u(f)},"which"),m=v((f,y={})=>{let{pathEnv:S,pathExt:E,pathExtExe:b}=h(f,y),_=[];for(let w of S){let O=d(w,f);for(let R of E){let I=O+R;if(p(I,{pathExt:b,ignoreErrors:!0})){if(!y.all)return I;_.push(I)}}}if(y.all&&_.length)return _;if(y.nothrow)return null;throw u(f)},"whichSync");r.exports=g,g.sync=m}),uE=K((e,r)=>{"use strict";var a=v((n,c)=>{if(!n.length)return'""';let o;if(!/[ \t\n\v"]/.test(n))o=n;else{o='"';for(let t=0;t<=n.length;++t){let s=0;for(;n[t]==="\\";)++t,++s;if(t===n.length){o+="\\".repeat(s*2);break}n[t]==='"'?(o+="\\".repeat(s*2+1),o+=n[t]):(o+="\\".repeat(s),o+=n[t])}o+='"'}return o=o.replace(/[ !%^&()<>|"]/g,"^$&"),c&&(o=o.replace(/[ !%^&()<>|"]/g,"^$&")),o},"cmd"),p=v(n=>n.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(n)?`'${n.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):n:"''","sh");r.exports={cmd:a,sh:p}}),Kn=K((e,r)=>{"use strict";var{spawn:a}=require("child_process"),p=require("os"),n=su(),c=uE(),o=v((h,d,g={},m={})=>{if(g.shell)return t(h,d,g,m);let f,y,S=new Promise((I,P)=>{f=I,y=P}),E=new Error("command failed"),b=[],_=[],w=v(I=>({cmd:h,args:d,...I,...l(b,_,g),...m}),"getResult"),O=v((I,P)=>{let L=w(P);y(Object.assign(I,L))},"rejectWithOpts"),R=a(h,d,g);return S.stdin=R.stdin,S.process=R,R.on("error",O),R.stdout&&(R.stdout.on("data",I=>b.push(I)),R.stdout.on("error",O)),R.stderr&&(R.stderr.on("data",I=>_.push(I)),R.stderr.on("error",O)),R.on("close",(I,P)=>{I||P?O(E,{code:I,signal:P}):f(w({code:I,signal:P}))}),S},"promiseSpawn"),t=v((h,d,g,m)=>{let f=g.shell;f===!0&&(f=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let y={...g,shell:!1},S=[],E=h;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(f)){let b=!1,_="",w=!1;for(let R=0;R<h.length;++R){let I=h.charAt(R);if(I===" "&&!w)break;_+=I,(I==='"'||I==="'")&&(w=!w)}let O;try{O=n.sync(_,{path:y.env&&u(y.env,"PATH")||process.env.PATH,pathext:y.env&&u(y.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{O=_.toLowerCase()}b=O.endsWith(".cmd")||O.endsWith(".bat");for(let R of d)E+=` ${c.cmd(R,b)}`;S.push("/d","/s","/c",E),y.windowsVerbatimArguments=!0}else{for(let b of d)E+=` ${c.sh(b)}`;S.push("-c",E)}return o(f,S,y,m)},"spawnWithShell"),s=v((h,d={},g={})=>{let m={...d,shell:!0},f=[].concat(h),y=process.platform;if(y==="linux"&&p.release().toLowerCase().includes("microsoft")&&(y="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let S=m.command;return S||(y==="win32"?(m.shell=process.env.ComSpec,S='start ""'):y==="wsl"?S="sensible-browser":y==="darwin"?S="open":S="xdg-open"),t(S,f,m,g)},"open");o.open=s;var i=v((h="pipe",d)=>h==="pipe"||h===null?!0:Array.isArray(h)?i(h[d],d):!1,"isPipe"),l=v((h,d,{stdioString:g=!0,stdio:m})=>{let f={stdout:null,stderr:null};return i(m,1)&&(f.stdout=Buffer.concat(h),g&&(f.stdout=f.stdout.toString().trim())),i(m,2)&&(f.stderr=Buffer.concat(d),g&&(f.stderr=f.stderr.toString().trim())),f},"stdioResult"),u=v((h,d)=>{d=d.toLowerCase();for(let g of Object.keys(h).sort())if(g.toLowerCase()===d)return h[g]},"findInObject");r.exports=o}),hE=K((e,r)=>{"use strict";function a(n,c){for(let o in c)Object.defineProperty(n,o,{value:c[o],enumerable:!0,configurable:!0});return n}v(a,"assign");function p(n,c,o){if(!n||typeof n=="string")throw new TypeError("Please pass an Error to err-code");o||(o={}),typeof c=="object"&&(o=c,c=void 0),c!=null&&(o.code=c);try{return a(n,o)}catch{o.message=n.message,o.stack=n.stack;let t=v(function(){},"ErrClass");return t.prototype=Object.create(Object.getPrototypeOf(n)),a(new t,o)}}v(p,"createError"),r.exports=p}),pE=K((e,r)=>{function a(p,n){typeof n=="boolean"&&(n={forever:n}),this._originalTimeouts=JSON.parse(JSON.stringify(p)),this._timeouts=p,this._options=n||{},this._maxRetryTime=n&&n.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}v(a,"RetryOperation"),r.exports=a,a.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},a.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},a.prototype.retry=function(p){if(this._timeout&&clearTimeout(this._timeout),!p)return!1;var n=new Date().getTime();if(p&&n-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(p);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),c=this._timeouts.shift();else return!1;var o=this,t=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},c);return this._options.unref&&t.unref(),!0},a.prototype.attempt=function(p,n){this._fn=p,n&&(n.timeout&&(this._operationTimeout=n.timeout),n.cb&&(this._operationTimeoutCb=n.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},a.prototype.try=function(p){this.attempt(p)},a.prototype.start=function(p){this.attempt(p)},a.prototype.start=a.prototype.try,a.prototype.errors=function(){return this._errors},a.prototype.attempts=function(){return this._attempts},a.prototype.mainError=function(){if(this._errors.length===0)return null;for(var p={},n=null,c=0,o=0;o<this._errors.length;o++){var t=this._errors[o],s=t.message,i=(p[s]||0)+1;p[s]=i,i>=c&&(n=t,c=i)}return n}}),dE=K(e=>{var r=pE();e.operation=function(a){var p=e.timeouts(a);return new r(p,{forever:a&&a.forever,unref:a&&a.unref,maxRetryTime:a&&a.maxRetryTime})},e.timeouts=function(a){if(a instanceof Array)return[].concat(a);var p={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in a)p[n]=a[n];if(p.minTimeout>p.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],o=0;o<p.retries;o++)c.push(this.createTimeout(o,p));return a&&a.forever&&!c.length&&c.push(this.createTimeout(o,p)),c.sort(function(t,s){return t-s}),c},e.createTimeout=function(a,p){var n=p.randomize?Math.random()+1:1,c=Math.round(n*p.minTimeout*Math.pow(p.factor,a));return c=Math.min(c,p.maxTimeout),c},e.wrap=function(a,p,n){if(p instanceof Array&&(n=p,p=null),!n){n=[];for(var c in a)typeof a[c]=="function"&&n.push(c)}for(var o=0;o<n.length;o++){var t=n[o],s=a[t];a[t]=v(function(i){var l=e.operation(p),u=Array.prototype.slice.call(arguments,1),h=u.pop();u.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),h.apply(this,arguments))}),l.attempt(function(){i.apply(a,u)})},"retryWrapper").bind(a,s),a[t].options=p}}}),fE=K((e,r)=>{r.exports=dE()}),ws=K((e,r)=>{"use strict";var a=hE(),p=fE(),n=Object.prototype.hasOwnProperty;function c(t){return t&&t.code==="EPROMISERETRY"&&n.call(t,"retried")}v(c,"isRetryError");function o(t,s){var i,l;return typeof t=="object"&&typeof s=="function"&&(i=s,s=t,t=i),l=p.operation(s),new Promise(function(u,h){l.attempt(function(d){Promise.resolve().then(function(){return t(function(g){throw c(g)&&(g=g.retried),a(new Error("Retrying"),"EPROMISERETRY",{retried:g})},d)}).then(u,function(g){c(g)&&(g=g.retried,l.retry(g||new Error))||h(g)})})})}v(o,"promiseRetry"),r.exports=o}),iu=K((e,r)=>{var a=class extends Error{static{v(this,"GitError")}shouldRetry(){return!1}},p=class extends a{static{v(this,"GitConnectionError")}constructor(){super("A git connection error occurred")}shouldRetry(o){return o<3}},n=class extends a{static{v(this,"GitPathspecError")}constructor(){super("The git reference could not be found")}},c=class extends a{static{v(this,"GitUnknownError")}constructor(){super("An unknown git error occurred")}};r.exports={GitConnectionError:p,GitPathspecError:n,GitUnknownError:c}}),gE=K((e,r)=>{var{GitConnectionError:a,GitPathspecError:p,GitUnknownError:n}=iu(),c=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),o=/pathspec .* did not match any file\(s\) known to git/;function t(s){let i=s.stderr,l;return c.test(i)?l=new a(i):o.test(i)?l=new p(i):l=new n(i),Object.assign(l,s)}v(t,"makeError"),r.exports=t}),mE=K((e,r)=>{var{hasOwnProperty:a}=Object.prototype,p=v((i,l={})=>{typeof l=="string"&&(l={section:l}),l.align=l.align===!0,l.newline=l.newline===!0,l.sort=l.sort===!0,l.whitespace=l.whitespace===!0||l.align===!0,l.platform=l.platform||typeof process<"u"&&process.platform,l.bracketedArray=l.bracketedArray!==!1;let u=l.platform==="win32"?`\r
10
+ `:`
11
+ `,h=l.whitespace?" = ":"=",d=[],g=l.sort?Object.keys(i).sort():Object.keys(i),m=0;l.align&&(m=t(g.filter(S=>i[S]===null||Array.isArray(i[S])||typeof i[S]!="object").map(S=>Array.isArray(i[S])?`${S}[]`:S).concat([""]).reduce((S,E)=>t(S).length>=t(E).length?S:E)).length);let f="",y=l.bracketedArray?"[]":"";for(let S of g){let E=i[S];if(E&&Array.isArray(E))for(let b of E)f+=t(`${S}${y}`).padEnd(m," ")+h+t(b)+u;else E&&typeof E=="object"?d.push(S):f+=t(S).padEnd(m," ")+h+t(E)+u}l.section&&f.length&&(f="["+t(l.section)+"]"+(l.newline?u+u:u)+f);for(let S of d){let E=n(S,".").join("\\."),b=(l.section?l.section+".":"")+E,_=p(i[S],{...l,section:b});f.length&&_.length&&(f+=u),f+=_}return f},"encode");function n(i,l){var u=0,h=0,d=0,g=[];do if(d=i.indexOf(l,u),d!==-1){if(u=d+l.length,d>0&&i[d-1]==="\\")continue;g.push(i.slice(h,d)),h=d+l.length}while(d!==-1);return g.push(i.slice(h)),g}v(n,"splitSections");var c=v((i,l={})=>{l.bracketedArray=l.bracketedArray!==!1;let u=Object.create(null),h=u,d=null,g=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,m=i.split(/[\r\n]+/g),f={};for(let S of m){if(!S||S.match(/^\s*[;#]/)||S.match(/^\s*$/))continue;let E=S.match(g);if(!E)continue;if(E[1]!==void 0){if(d=s(E[1]),d==="__proto__"){h=Object.create(null);continue}h=u[d]=u[d]||Object.create(null);continue}let b=s(E[2]),_;l.bracketedArray?_=b.length>2&&b.slice(-2)==="[]":(f[b]=(f?.[b]||0)+1,_=f[b]>1);let w=_&&b.endsWith("[]")?b.slice(0,-2):b;if(w==="__proto__")continue;let O=E[3]?s(E[4]):!0,R=O==="true"||O==="false"||O==="null"?JSON.parse(O):O;_&&(a.call(h,w)?Array.isArray(h[w])||(h[w]=[h[w]]):h[w]=[]),Array.isArray(h[w])?h[w].push(R):h[w]=R}let y=[];for(let S of Object.keys(u)){if(!a.call(u,S)||typeof u[S]!="object"||Array.isArray(u[S]))continue;let E=n(S,".");h=u;let b=E.pop(),_=b.replace(/\\\./g,".");for(let w of E)w!=="__proto__"&&((!a.call(h,w)||typeof h[w]!="object")&&(h[w]=Object.create(null)),h=h[w]);h===u&&_===b||(h[_]=u[S],y.push(S))}for(let S of y)delete u[S];return u},"decode"),o=v(i=>i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"),"isQuoted"),t=v(i=>typeof i!="string"||i.match(/[=\r\n]/)||i.match(/^\[/)||i.length>1&&o(i)||i!==i.trim()?JSON.stringify(i):i.split(";").join("\\;").split("#").join("\\#"),"safe"),s=v(i=>{if(i=(i||"").trim(),o(i)){i.charAt(0)==="'"&&(i=i.slice(1,-1));try{i=JSON.parse(i)}catch{}}else{let l=!1,u="";for(let h=0,d=i.length;h<d;h++){let g=i.charAt(h);if(l)"\\;#".indexOf(g)!==-1?u+=g:u+="\\"+g,l=!1;else{if(";#".indexOf(g)!==-1)break;g==="\\"?l=!0:u+=g}}return l&&(u+="\\"),u.trim()}return i},"unsafe");r.exports={parse:c,decode:c,stringify:p,encode:p,safe:t,unsafe:s}}),yE=K((e,r)=>{var a=require("node:fs"),p=require("node:os"),n=require("node:path"),c=mE(),o=n.join(p.homedir(),".gitconfig"),t=null,s=v(()=>{if(t===null)try{if(t={},a.existsSync(o)){let m=a.readFileSync(o,"utf-8");t=c.parse(m)}}catch{t={}}return t},"loadGitConfig"),i=v(()=>{let m=s();return{sshCommandSetInConfig:m?.core?.sshCommand!==void 0,askPassSetInConfig:m?.core?.askpass!==void 0}},"checkGitConfigs"),l=process.env.GIT_SSH_COMMAND!==void 0,u=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:h,askPassSetInConfig:d}=i(),g={...u||d?{}:{GIT_ASKPASS:"echo"},...l||h?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};r.exports=(m={})=>({stdioString:!0,...m,shell:!1,env:m.env||{...g,...process.env}}),r.exports.loadGitConfig=s}),vE=K((e,r)=>{var a=su(),p;try{p=a.sync("git")}catch{}r.exports=(n={})=>n.git?n.git:!p||n.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):p}),Os=K((e,r)=>{var a=Kn(),p=ws(),{log:n}=ct(),c=gE(),o=yE();r.exports=(t,s={})=>{let i=vE()(s);if(i instanceof Error)return Promise.reject(i);let l=s.allowReplace||t[0]==="--no-replace-objects"?t:["--no-replace-objects",...t],u=s.retry;return u==null&&(u={retries:s.fetchRetries||2,factor:s.fetchRetryFactor||10,maxTimeout:s.fetchRetryMaxtimeout||6e4,minTimeout:s.fetchRetryMintimeout||1e3}),p((h,d)=>(d!==1&&n.silly("git",`Retrying git command: ${l.join(" ")} attempt # ${d}`),a(i,l,o(s)).catch(g=>{let m=c(g);if(!m.shouldRetry(d))throw m;h(m)})),u)}}),nu=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var r=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,a=new Set,p=typeof process=="object"&&process?process:{},n=v((g,m,f,y)=>{typeof p.emitWarning=="function"&&p.emitWarning(g,m,f,y)},"emitWarning"),c=globalThis.AbortController,o=globalThis.AbortSignal;if(typeof c>"u"){o=class{static{v(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(f,y){this._onabort.push(y)}},c=class{static{v(this,"AbortController")}constructor(){m()}signal=new o;abort(f){if(!this.signal.aborted){this.signal.reason=f,this.signal.aborted=!0;for(let y of this.signal._onabort)y(f);this.signal.onabort?.(f)}}};let g=p.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",m=v(()=>{g&&(g=!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",m))},"warnACPolyfill")}var t=v(g=>!a.has(g),"shouldWarn"),s=Symbol("type"),i=v(g=>g&&g===Math.floor(g)&&g>0&&isFinite(g),"isPosInt"),l=v(g=>i(g)?g<=Math.pow(2,8)?Uint8Array:g<=Math.pow(2,16)?Uint16Array:g<=Math.pow(2,32)?Uint32Array:g<=Number.MAX_SAFE_INTEGER?u:null:null,"getUintArray"),u=class extends Array{static{v(this,"ZeroArray")}constructor(g){super(g),this.fill(0)}},h=class Er{static{v(this,"Stack")}heap;length;static#e=!1;static create(m){let f=l(m);if(!f)return[];Er.#e=!0;let y=new Er(m,f);return Er.#e=!1,y}constructor(m,f){if(!Er.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new f(m),this.length=0}push(m){this.heap[this.length++]=m}pop(){return this.heap[--this.length]}},d=class ou{static{v(this,"LRUCache")}#e;#t;#r;#s;#i;#c;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#h;#o;#u;#n;#d;#a;#f;#g;#E;#m;#R;#v;#b;#_;#O;#w;static unsafeExposeInternals(m){return{starts:m.#v,ttls:m.#b,sizes:m.#R,keyMap:m.#o,keyList:m.#u,valList:m.#n,next:m.#d,prev:m.#a,get head(){return m.#f},get tail(){return m.#g},free:m.#E,isBackgroundFetch:v(f=>m.#S(f),"isBackgroundFetch"),backgroundFetch:v((f,y,S,E)=>m.#L(f,y,S,E),"backgroundFetch"),moveToTail:v(f=>m.#U(f),"moveToTail"),indexes:v(f=>m.#x(f),"indexes"),rindexes:v(f=>m.#k(f),"rindexes"),isStale:v(f=>m.#C(f),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#h}get size(){return this.#l}get fetchMethod(){return this.#i}get memoMethod(){return this.#c}get dispose(){return this.#r}get disposeAfter(){return this.#s}constructor(m){let{max:f=0,ttl:y,ttlResolution:S=1,ttlAutopurge:E,updateAgeOnGet:b,updateAgeOnHas:_,allowStale:w,dispose:O,disposeAfter:R,noDisposeOnSet:I,noUpdateTTL:P,maxSize:L=0,maxEntrySize:M=0,sizeCalculation:x,fetchMethod:j,memoMethod:U,noDeleteOnFetchRejection:V,noDeleteOnStaleGet:B,allowStaleOnFetchRejection:G,allowStaleOnFetchAbort:W,ignoreFetchAbort:N}=m;if(f!==0&&!i(f))throw new TypeError("max option must be a nonnegative integer");let D=f?l(f):Array;if(!D)throw new Error("invalid max value: "+f);if(this.#e=f,this.#t=L,this.maxEntrySize=M||this.#t,this.sizeCalculation=x,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(U!==void 0&&typeof U!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#c=U,j!==void 0&&typeof j!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#i=j,this.#O=!!j,this.#o=new Map,this.#u=new Array(f).fill(void 0),this.#n=new Array(f).fill(void 0),this.#d=new D(f),this.#a=new D(f),this.#f=0,this.#g=0,this.#E=h.create(f),this.#l=0,this.#h=0,typeof O=="function"&&(this.#r=O),typeof R=="function"?(this.#s=R,this.#m=[]):(this.#s=void 0,this.#m=void 0),this.#_=!!this.#r,this.#w=!!this.#s,this.noDisposeOnSet=!!I,this.noUpdateTTL=!!P,this.noDeleteOnFetchRejection=!!V,this.allowStaleOnFetchRejection=!!G,this.allowStaleOnFetchAbort=!!W,this.ignoreFetchAbort=!!N,this.maxEntrySize!==0){if(this.#t!==0&&!i(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!i(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#T()}if(this.allowStale=!!w,this.noDeleteOnStaleGet=!!B,this.updateAgeOnGet=!!b,this.updateAgeOnHas=!!_,this.ttlResolution=i(S)||S===0?S:1,this.ttlAutopurge=!!E,this.ttl=y||0,this.ttl){if(!i(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#P()}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let T="LRU_CACHE_UNBOUNDED";t(T)&&(a.add(T),n("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",T,ou))}}getRemainingTTL(m){return this.#o.has(m)?1/0:0}#P(){let m=new u(this.#e),f=new u(this.#e);this.#b=m,this.#v=f,this.#M=(E,b,_=r.now())=>{if(f[E]=b!==0?_:0,m[E]=b,b!==0&&this.ttlAutopurge){let w=setTimeout(()=>{this.#C(E)&&this.#y(this.#u[E],"expire")},b+1);w.unref&&w.unref()}},this.#A=E=>{f[E]=m[E]!==0?r.now():0},this.#p=(E,b)=>{if(m[b]){let _=m[b],w=f[b];if(!_||!w)return;E.ttl=_,E.start=w,E.now=y||S();let O=E.now-w;E.remainingTTL=_-O}};let y=0,S=v(()=>{let E=r.now();if(this.ttlResolution>0){y=E;let b=setTimeout(()=>y=0,this.ttlResolution);b.unref&&b.unref()}return E},"getNow");this.getRemainingTTL=E=>{let b=this.#o.get(E);if(b===void 0)return 0;let _=m[b],w=f[b];if(!_||!w)return 1/0;let O=(y||S())-w;return _-O},this.#C=E=>{let b=f[E],_=m[E];return!!_&&!!b&&(y||S())-b>_}}#A=v(()=>{},"#updateItemAge");#p=v(()=>{},"#statusTTL");#M=v(()=>{},"#setItemTTL");#C=v(()=>!1,"#isStale");#T(){let m=new u(this.#e);this.#h=0,this.#R=m,this.#j=f=>{this.#h-=m[f],m[f]=0},this.#F=(f,y,S,E)=>{if(this.#S(y))return 0;if(!i(S))if(E){if(typeof E!="function")throw new TypeError("sizeCalculation must be a function");if(S=E(y,f),!i(S))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return S},this.#I=(f,y,S)=>{if(m[f]=y,this.#t){let E=this.#t-m[f];for(;this.#h>E;)this.#N(!0)}this.#h+=m[f],S&&(S.entrySize=y,S.totalCalculatedSize=this.#h)}}#j=v(m=>{},"#removeItemSize");#I=v((m,f,y)=>{},"#addItemSize");#F=v((m,f,y,S)=>{if(y||S)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0},"#requireSize");*#x({allowStale:m=this.allowStale}={}){if(this.#l)for(let f=this.#g;!(!this.#$(f)||((m||!this.#C(f))&&(yield f),f===this.#f));)f=this.#a[f]}*#k({allowStale:m=this.allowStale}={}){if(this.#l)for(let f=this.#f;!(!this.#$(f)||((m||!this.#C(f))&&(yield f),f===this.#g));)f=this.#d[f]}#$(m){return m!==void 0&&this.#o.get(this.#u[m])===m}*entries(){for(let m of this.#x())this.#n[m]!==void 0&&this.#u[m]!==void 0&&!this.#S(this.#n[m])&&(yield[this.#u[m],this.#n[m]])}*rentries(){for(let m of this.#k())this.#n[m]!==void 0&&this.#u[m]!==void 0&&!this.#S(this.#n[m])&&(yield[this.#u[m],this.#n[m]])}*keys(){for(let m of this.#x()){let f=this.#u[m];f!==void 0&&!this.#S(this.#n[m])&&(yield f)}}*rkeys(){for(let m of this.#k()){let f=this.#u[m];f!==void 0&&!this.#S(this.#n[m])&&(yield f)}}*values(){for(let m of this.#x())this.#n[m]!==void 0&&!this.#S(this.#n[m])&&(yield this.#n[m])}*rvalues(){for(let m of this.#k())this.#n[m]!==void 0&&!this.#S(this.#n[m])&&(yield this.#n[m])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(m,f={}){for(let y of this.#x()){let S=this.#n[y],E=this.#S(S)?S.__staleWhileFetching:S;if(E!==void 0&&m(E,this.#u[y],this))return this.get(this.#u[y],f)}}forEach(m,f=this){for(let y of this.#x()){let S=this.#n[y],E=this.#S(S)?S.__staleWhileFetching:S;E!==void 0&&m.call(f,E,this.#u[y],this)}}rforEach(m,f=this){for(let y of this.#k()){let S=this.#n[y],E=this.#S(S)?S.__staleWhileFetching:S;E!==void 0&&m.call(f,E,this.#u[y],this)}}purgeStale(){let m=!1;for(let f of this.#k({allowStale:!0}))this.#C(f)&&(this.#y(this.#u[f],"expire"),m=!0);return m}info(m){let f=this.#o.get(m);if(f===void 0)return;let y=this.#n[f],S=this.#S(y)?y.__staleWhileFetching:y;if(S===void 0)return;let E={value:S};if(this.#b&&this.#v){let b=this.#b[f],_=this.#v[f];if(b&&_){let w=b-(r.now()-_);E.ttl=w,E.start=Date.now()}}return this.#R&&(E.size=this.#R[f]),E}dump(){let m=[];for(let f of this.#x({allowStale:!0})){let y=this.#u[f],S=this.#n[f],E=this.#S(S)?S.__staleWhileFetching:S;if(E===void 0||y===void 0)continue;let b={value:E};if(this.#b&&this.#v){b.ttl=this.#b[f];let _=r.now()-this.#v[f];b.start=Math.floor(Date.now()-_)}this.#R&&(b.size=this.#R[f]),m.unshift([y,b])}return m}load(m){this.clear();for(let[f,y]of m){if(y.start){let S=Date.now()-y.start;y.start=r.now()-S}this.set(f,y.value,y)}}set(m,f,y={}){if(f===void 0)return this.delete(m),this;let{ttl:S=this.ttl,start:E,noDisposeOnSet:b=this.noDisposeOnSet,sizeCalculation:_=this.sizeCalculation,status:w}=y,{noUpdateTTL:O=this.noUpdateTTL}=y,R=this.#F(m,f,y.size||0,_);if(this.maxEntrySize&&R>this.maxEntrySize)return w&&(w.set="miss",w.maxEntrySizeExceeded=!0),this.#y(m,"set"),this;let I=this.#l===0?void 0:this.#o.get(m);if(I===void 0)I=this.#l===0?this.#g:this.#E.length!==0?this.#E.pop():this.#l===this.#e?this.#N(!1):this.#l,this.#u[I]=m,this.#n[I]=f,this.#o.set(m,I),this.#d[this.#g]=I,this.#a[I]=this.#g,this.#g=I,this.#l++,this.#I(I,R,w),w&&(w.set="add"),O=!1;else{this.#U(I);let P=this.#n[I];if(f!==P){if(this.#O&&this.#S(P)){P.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:L}=P;L!==void 0&&!b&&(this.#_&&this.#r?.(L,m,"set"),this.#w&&this.#m?.push([L,m,"set"]))}else b||(this.#_&&this.#r?.(P,m,"set"),this.#w&&this.#m?.push([P,m,"set"]));if(this.#j(I),this.#I(I,R,w),this.#n[I]=f,w){w.set="replace";let L=P&&this.#S(P)?P.__staleWhileFetching:P;L!==void 0&&(w.oldValue=L)}}else w&&(w.set="update")}if(S!==0&&!this.#b&&this.#P(),this.#b&&(O||this.#M(I,S,E),w&&this.#p(w,I)),!b&&this.#w&&this.#m){let P=this.#m,L;for(;L=P?.shift();)this.#s?.(...L)}return this}pop(){try{for(;this.#l;){let m=this.#n[this.#f];if(this.#N(!0),this.#S(m)){if(m.__staleWhileFetching)return m.__staleWhileFetching}else if(m!==void 0)return m}}finally{if(this.#w&&this.#m){let m=this.#m,f;for(;f=m?.shift();)this.#s?.(...f)}}}#N(m){let f=this.#f,y=this.#u[f],S=this.#n[f];return this.#O&&this.#S(S)?S.__abortController.abort(new Error("evicted")):(this.#_||this.#w)&&(this.#_&&this.#r?.(S,y,"evict"),this.#w&&this.#m?.push([S,y,"evict"])),this.#j(f),m&&(this.#u[f]=void 0,this.#n[f]=void 0,this.#E.push(f)),this.#l===1?(this.#f=this.#g=0,this.#E.length=0):this.#f=this.#d[f],this.#o.delete(y),this.#l--,f}has(m,f={}){let{updateAgeOnHas:y=this.updateAgeOnHas,status:S}=f,E=this.#o.get(m);if(E!==void 0){let b=this.#n[E];if(this.#S(b)&&b.__staleWhileFetching===void 0)return!1;if(this.#C(E))S&&(S.has="stale",this.#p(S,E));else return y&&this.#A(E),S&&(S.has="hit",this.#p(S,E)),!0}else S&&(S.has="miss");return!1}peek(m,f={}){let{allowStale:y=this.allowStale}=f,S=this.#o.get(m);if(S===void 0||!y&&this.#C(S))return;let E=this.#n[S];return this.#S(E)?E.__staleWhileFetching:E}#L(m,f,y,S){let E=f===void 0?void 0:this.#n[f];if(this.#S(E))return E;let b=new c,{signal:_}=y;_?.addEventListener("abort",()=>b.abort(_.reason),{signal:b.signal});let w={signal:b.signal,options:y,context:S},O=v((x,j=!1)=>{let{aborted:U}=b.signal,V=y.ignoreFetchAbort&&x!==void 0;if(y.status&&(U&&!j?(y.status.fetchAborted=!0,y.status.fetchError=b.signal.reason,V&&(y.status.fetchAbortIgnored=!0)):y.status.fetchResolved=!0),U&&!V&&!j)return I(b.signal.reason);let B=L;return this.#n[f]===L&&(x===void 0?B.__staleWhileFetching?this.#n[f]=B.__staleWhileFetching:this.#y(m,"fetch"):(y.status&&(y.status.fetchUpdated=!0),this.set(m,x,w.options))),x},"cb"),R=v(x=>(y.status&&(y.status.fetchRejected=!0,y.status.fetchError=x),I(x)),"eb"),I=v(x=>{let{aborted:j}=b.signal,U=j&&y.allowStaleOnFetchAbort,V=U||y.allowStaleOnFetchRejection,B=V||y.noDeleteOnFetchRejection,G=L;if(this.#n[f]===L&&(!B||G.__staleWhileFetching===void 0?this.#y(m,"fetch"):U||(this.#n[f]=G.__staleWhileFetching)),V)return y.status&&G.__staleWhileFetching!==void 0&&(y.status.returnedStale=!0),G.__staleWhileFetching;if(G.__returned===G)throw x},"fetchFail"),P=v((x,j)=>{let U=this.#i?.(m,E,w);U&&U instanceof Promise&&U.then(V=>x(V===void 0?void 0:V),j),b.signal.addEventListener("abort",()=>{(!y.ignoreFetchAbort||y.allowStaleOnFetchAbort)&&(x(void 0),y.allowStaleOnFetchAbort&&(x=v(V=>O(V,!0),"res")))})},"pcall");y.status&&(y.status.fetchDispatched=!0);let L=new Promise(P).then(O,R),M=Object.assign(L,{__abortController:b,__staleWhileFetching:E,__returned:void 0});return f===void 0?(this.set(m,M,{...w.options,status:void 0}),f=this.#o.get(m)):this.#n[f]=M,M}#S(m){if(!this.#O)return!1;let f=m;return!!f&&f instanceof Promise&&f.hasOwnProperty("__staleWhileFetching")&&f.__abortController instanceof c}async fetch(m,f={}){let{allowStale:y=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:E=this.noDeleteOnStaleGet,ttl:b=this.ttl,noDisposeOnSet:_=this.noDisposeOnSet,size:w=0,sizeCalculation:O=this.sizeCalculation,noUpdateTTL:R=this.noUpdateTTL,noDeleteOnFetchRejection:I=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:P=this.allowStaleOnFetchRejection,ignoreFetchAbort:L=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:x,forceRefresh:j=!1,status:U,signal:V}=f;if(!this.#O)return U&&(U.fetch="get"),this.get(m,{allowStale:y,updateAgeOnGet:S,noDeleteOnStaleGet:E,status:U});let B={allowStale:y,updateAgeOnGet:S,noDeleteOnStaleGet:E,ttl:b,noDisposeOnSet:_,size:w,sizeCalculation:O,noUpdateTTL:R,noDeleteOnFetchRejection:I,allowStaleOnFetchRejection:P,allowStaleOnFetchAbort:M,ignoreFetchAbort:L,status:U,signal:V},G=this.#o.get(m);if(G===void 0){U&&(U.fetch="miss");let W=this.#L(m,G,B,x);return W.__returned=W}else{let W=this.#n[G];if(this.#S(W)){let C=y&&W.__staleWhileFetching!==void 0;return U&&(U.fetch="inflight",C&&(U.returnedStale=!0)),C?W.__staleWhileFetching:W.__returned=W}let N=this.#C(G);if(!j&&!N)return U&&(U.fetch="hit"),this.#U(G),S&&this.#A(G),U&&this.#p(U,G),W;let D=this.#L(m,G,B,x),T=D.__staleWhileFetching!==void 0&&y;return U&&(U.fetch=N?"stale":"refresh",T&&N&&(U.returnedStale=!0)),T?D.__staleWhileFetching:D.__returned=D}}async forceFetch(m,f={}){let y=await this.fetch(m,f);if(y===void 0)throw new Error("fetch() returned undefined");return y}memo(m,f={}){let y=this.#c;if(!y)throw new Error("no memoMethod provided to constructor");let{context:S,forceRefresh:E,...b}=f,_=this.get(m,b);if(!E&&_!==void 0)return _;let w=y(m,_,{options:b,context:S});return this.set(m,w,b),w}get(m,f={}){let{allowStale:y=this.allowStale,updateAgeOnGet:S=this.updateAgeOnGet,noDeleteOnStaleGet:E=this.noDeleteOnStaleGet,status:b}=f,_=this.#o.get(m);if(_!==void 0){let w=this.#n[_],O=this.#S(w);return b&&this.#p(b,_),this.#C(_)?(b&&(b.get="stale"),O?(b&&y&&w.__staleWhileFetching!==void 0&&(b.returnedStale=!0),y?w.__staleWhileFetching:void 0):(E||this.#y(m,"expire"),b&&y&&(b.returnedStale=!0),y?w:void 0)):(b&&(b.get="hit"),O?w.__staleWhileFetching:(this.#U(_),S&&this.#A(_),w))}else b&&(b.get="miss")}#B(m,f){this.#a[f]=m,this.#d[m]=f}#U(m){m!==this.#g&&(m===this.#f?this.#f=this.#d[m]:this.#B(this.#a[m],this.#d[m]),this.#B(this.#g,m),this.#g=m)}delete(m){return this.#y(m,"delete")}#y(m,f){let y=!1;if(this.#l!==0){let S=this.#o.get(m);if(S!==void 0)if(y=!0,this.#l===1)this.#H(f);else{this.#j(S);let E=this.#n[S];if(this.#S(E)?E.__abortController.abort(new Error("deleted")):(this.#_||this.#w)&&(this.#_&&this.#r?.(E,m,f),this.#w&&this.#m?.push([E,m,f])),this.#o.delete(m),this.#u[S]=void 0,this.#n[S]=void 0,S===this.#g)this.#g=this.#a[S];else if(S===this.#f)this.#f=this.#d[S];else{let b=this.#a[S];this.#d[b]=this.#d[S];let _=this.#d[S];this.#a[_]=this.#a[S]}this.#l--,this.#E.push(S)}}if(this.#w&&this.#m?.length){let S=this.#m,E;for(;E=S?.shift();)this.#s?.(...E)}return y}clear(){return this.#H("delete")}#H(m){for(let f of this.#k({allowStale:!0})){let y=this.#n[f];if(this.#S(y))y.__abortController.abort(new Error("deleted"));else{let S=this.#u[f];this.#_&&this.#r?.(y,S,m),this.#w&&this.#m?.push([y,S,m])}}if(this.#o.clear(),this.#n.fill(void 0),this.#u.fill(void 0),this.#b&&this.#v&&(this.#b.fill(0),this.#v.fill(0)),this.#R&&this.#R.fill(0),this.#f=0,this.#g=0,this.#E.length=0,this.#h=0,this.#l=0,this.#w&&this.#m){let f=this.#m,y;for(;y=f?.shift();)this.#s?.(...y)}}};e.LRUCache=d}),SE=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c,o,t,s)=>{typeof o=="string"&&(s=t,t=o,o=void 0);try{return new a(n instanceof a?n.version:n,o).inc(c,t,s).version}catch{return null}},"inc");r.exports=p}),EE=K((e,r)=>{"use strict";var a=qt(),p=v((n,c)=>{let o=a(n,null,!0),t=a(c,null,!0),s=o.compare(t);if(s===0)return null;let i=s>0,l=i?o:t,u=i?t:o,h=!!l.prerelease.length;if(u.prerelease.length&&!h){if(!u.patch&&!u.minor)return"major";if(u.compareMain(l)===0)return u.minor&&!u.patch?"minor":"patch"}let d=h?"pre":"";return o.major!==t.major?d+"major":o.minor!==t.minor?d+"minor":o.patch!==t.patch?d+"patch":"prerelease"},"diff");r.exports=p}),bE=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c)=>new a(n,c).major,"major");r.exports=p}),_E=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c)=>new a(n,c).minor,"minor");r.exports=p}),wE=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c)=>new a(n,c).patch,"patch");r.exports=p}),OE=K((e,r)=>{"use strict";var a=qt(),p=v((n,c)=>{let o=a(n,c);return o&&o.prerelease.length?o.prerelease:null},"prerelease");r.exports=p}),ut=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c,o)=>new a(n,o).compare(new a(c,o)),"compare");r.exports=p}),AE=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(c,n,o),"rcompare");r.exports=p}),RE=K((e,r)=>{"use strict";var a=ut(),p=v((n,c)=>a(n,c,!0),"compareLoose");r.exports=p}),Jn=K((e,r)=>{"use strict";var a=Ge(),p=v((n,c,o)=>{let t=new a(n,o),s=new a(c,o);return t.compare(s)||t.compareBuild(s)},"compareBuild");r.exports=p}),CE=K((e,r)=>{"use strict";var a=Jn(),p=v((n,c)=>n.sort((o,t)=>a(o,t,c)),"sort");r.exports=p}),IE=K((e,r)=>{"use strict";var a=Jn(),p=v((n,c)=>n.sort((o,t)=>a(t,o,c)),"rsort");r.exports=p}),As=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)>0,"gt");r.exports=p}),Zn=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)<0,"lt");r.exports=p}),au=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)===0,"eq");r.exports=p}),lu=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)!==0,"neq");r.exports=p}),Xn=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)>=0,"gte");r.exports=p}),Yn=K((e,r)=>{"use strict";var a=ut(),p=v((n,c,o)=>a(n,c,o)<=0,"lte");r.exports=p}),cu=K((e,r)=>{"use strict";var a=au(),p=lu(),n=As(),c=Xn(),o=Zn(),t=Yn(),s=v((i,l,u,h)=>{switch(l){case"===":return typeof i=="object"&&(i=i.version),typeof u=="object"&&(u=u.version),i===u;case"!==":return typeof i=="object"&&(i=i.version),typeof u=="object"&&(u=u.version),i!==u;case"":case"=":case"==":return a(i,u,h);case"!=":return p(i,u,h);case">":return n(i,u,h);case">=":return c(i,u,h);case"<":return o(i,u,h);case"<=":return t(i,u,h);default:throw new TypeError(`Invalid operator: ${l}`)}},"cmp");r.exports=s}),TE=K((e,r)=>{"use strict";var a=Ge(),p=qt(),{safeRe:n,t:c}=_r(),o=v((t,s)=>{if(t instanceof a)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;s=s||{};let i=null;if(!s.rtl)i=t.match(s.includePrerelease?n[c.COERCEFULL]:n[c.COERCE]);else{let m=s.includePrerelease?n[c.COERCERTLFULL]:n[c.COERCERTL],f;for(;(f=m.exec(t))&&(!i||i.index+i[0].length!==t.length);)(!i||f.index+f[0].length!==i.index+i[0].length)&&(i=f),m.lastIndex=f.index+f[1].length+f[2].length;m.lastIndex=-1}if(i===null)return null;let l=i[2],u=i[3]||"0",h=i[4]||"0",d=s.includePrerelease&&i[5]?`-${i[5]}`:"",g=s.includePrerelease&&i[6]?`+${i[6]}`:"";return p(`${l}.${u}.${h}${d}${g}`,s)},"coerce");r.exports=o}),PE=K((e,r)=>{"use strict";var a=class{static{v(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(p){let n=this.map.get(p);if(n!==void 0)return this.map.delete(p),this.map.set(p,n),n}delete(p){return this.map.delete(p)}set(p,n){if(!this.delete(p)&&n!==void 0){if(this.map.size>=this.max){let c=this.map.keys().next().value;this.delete(c)}this.map.set(p,n)}return this}};r.exports=a}),ht=K((e,r)=>{"use strict";var a=/\s+/g,p=class Ss{static{v(this,"Range")}constructor(B,G){if(G=o(G),B instanceof Ss)return B.loose===!!G.loose&&B.includePrerelease===!!G.includePrerelease?B:new Ss(B.raw,G);if(B instanceof t)return this.raw=B.value,this.set=[[B]],this.formatted=void 0,this;if(this.options=G,this.loose=!!G.loose,this.includePrerelease=!!G.includePrerelease,this.raw=B.trim().replace(a," "),this.set=this.raw.split("||").map(W=>this.parseRange(W.trim())).filter(W=>W.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let W=this.set[0];if(this.set=this.set.filter(N=>!y(N[0])),this.set.length===0)this.set=[W];else if(this.set.length>1){for(let N of this.set)if(N.length===1&&S(N[0])){this.set=[N];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let B=0;B<this.set.length;B++){B>0&&(this.formatted+="||");let G=this.set[B];for(let W=0;W<G.length;W++)W>0&&(this.formatted+=" "),this.formatted+=G[W].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(B){let G=((this.options.includePrerelease&&m)|(this.options.loose&&f))+":"+B,W=c.get(G);if(W)return W;let N=this.options.loose,D=N?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];B=B.replace(D,j(this.options.includePrerelease)),s("hyphen replace",B),B=B.replace(l[u.COMPARATORTRIM],h),s("comparator trim",B),B=B.replace(l[u.TILDETRIM],d),s("tilde trim",B),B=B.replace(l[u.CARETTRIM],g),s("caret trim",B);let T=B.split(" ").map(Q=>b(Q,this.options)).join(" ").split(/\s+/).map(Q=>x(Q,this.options));N&&(T=T.filter(Q=>(s("loose invalid filter",Q,this.options),!!Q.match(l[u.COMPARATORLOOSE])))),s("range list",T);let C=new Map,Z=T.map(Q=>new t(Q,this.options));for(let Q of Z){if(y(Q))return[Q];C.set(Q.value,Q)}C.size>1&&C.has("")&&C.delete("");let X=[...C.values()];return c.set(G,X),X}intersects(B,G){if(!(B instanceof Ss))throw new TypeError("a Range is required");return this.set.some(W=>E(W,G)&&B.set.some(N=>E(N,G)&&W.every(D=>N.every(T=>D.intersects(T,G)))))}test(B){if(!B)return!1;if(typeof B=="string")try{B=new i(B,this.options)}catch{return!1}for(let G=0;G<this.set.length;G++)if(U(this.set[G],B,this.options))return!0;return!1}};r.exports=p;var n=PE(),c=new n,o=zn(),t=Rs(),s=bs(),i=Ge(),{safeRe:l,t:u,comparatorTrimReplace:h,tildeTrimReplace:d,caretTrimReplace:g}=_r(),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:f}=_s(),y=v(V=>V.value==="<0.0.0-0","isNullSet"),S=v(V=>V.value==="","isAny"),E=v((V,B)=>{let G=!0,W=V.slice(),N=W.pop();for(;G&&W.length;)G=W.every(D=>N.intersects(D,B)),N=W.pop();return G},"isSatisfiable"),b=v((V,B)=>(s("comp",V,B),V=R(V,B),s("caret",V),V=w(V,B),s("tildes",V),V=P(V,B),s("xrange",V),V=M(V,B),s("stars",V),V),"parseComparator"),_=v(V=>!V||V.toLowerCase()==="x"||V==="*","isX"),w=v((V,B)=>V.trim().split(/\s+/).map(G=>O(G,B)).join(" "),"replaceTildes"),O=v((V,B)=>{let G=B.loose?l[u.TILDELOOSE]:l[u.TILDE];return V.replace(G,(W,N,D,T,C)=>{s("tilde",V,W,N,D,T,C);let Z;return _(N)?Z="":_(D)?Z=`>=${N}.0.0 <${+N+1}.0.0-0`:_(T)?Z=`>=${N}.${D}.0 <${N}.${+D+1}.0-0`:C?(s("replaceTilde pr",C),Z=`>=${N}.${D}.${T}-${C} <${N}.${+D+1}.0-0`):Z=`>=${N}.${D}.${T} <${N}.${+D+1}.0-0`,s("tilde return",Z),Z})},"replaceTilde"),R=v((V,B)=>V.trim().split(/\s+/).map(G=>I(G,B)).join(" "),"replaceCarets"),I=v((V,B)=>{s("caret",V,B);let G=B.loose?l[u.CARETLOOSE]:l[u.CARET],W=B.includePrerelease?"-0":"";return V.replace(G,(N,D,T,C,Z)=>{s("caret",V,N,D,T,C,Z);let X;return _(D)?X="":_(T)?X=`>=${D}.0.0${W} <${+D+1}.0.0-0`:_(C)?D==="0"?X=`>=${D}.${T}.0${W} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.0${W} <${+D+1}.0.0-0`:Z?(s("replaceCaret pr",Z),D==="0"?T==="0"?X=`>=${D}.${T}.${C}-${Z} <${D}.${T}.${+C+1}-0`:X=`>=${D}.${T}.${C}-${Z} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.${C}-${Z} <${+D+1}.0.0-0`):(s("no pr"),D==="0"?T==="0"?X=`>=${D}.${T}.${C}${W} <${D}.${T}.${+C+1}-0`:X=`>=${D}.${T}.${C}${W} <${D}.${+T+1}.0-0`:X=`>=${D}.${T}.${C} <${+D+1}.0.0-0`),s("caret return",X),X})},"replaceCaret"),P=v((V,B)=>(s("replaceXRanges",V,B),V.split(/\s+/).map(G=>L(G,B)).join(" ")),"replaceXRanges"),L=v((V,B)=>{V=V.trim();let G=B.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return V.replace(G,(W,N,D,T,C,Z)=>{s("xRange",V,W,N,D,T,C,Z);let X=_(D),Q=X||_(T),k=Q||_(C),F=k;return N==="="&&F&&(N=""),Z=B.includePrerelease?"-0":"",X?N===">"||N==="<"?W="<0.0.0-0":W="*":N&&F?(Q&&(T=0),C=0,N===">"?(N=">=",Q?(D=+D+1,T=0,C=0):(T=+T+1,C=0)):N==="<="&&(N="<",Q?D=+D+1:T=+T+1),N==="<"&&(Z="-0"),W=`${N+D}.${T}.${C}${Z}`):Q?W=`>=${D}.0.0${Z} <${+D+1}.0.0-0`:k&&(W=`>=${D}.${T}.0${Z} <${D}.${+T+1}.0-0`),s("xRange return",W),W})},"replaceXRange"),M=v((V,B)=>(s("replaceStars",V,B),V.trim().replace(l[u.STAR],"")),"replaceStars"),x=v((V,B)=>(s("replaceGTE0",V,B),V.trim().replace(l[B.includePrerelease?u.GTE0PRE:u.GTE0],"")),"replaceGTE0"),j=v(V=>(B,G,W,N,D,T,C,Z,X,Q,k,F)=>(_(W)?G="":_(N)?G=`>=${W}.0.0${V?"-0":""}`:_(D)?G=`>=${W}.${N}.0${V?"-0":""}`:T?G=`>=${G}`:G=`>=${G}${V?"-0":""}`,_(X)?Z="":_(Q)?Z=`<${+X+1}.0.0-0`:_(k)?Z=`<${X}.${+Q+1}.0-0`:F?Z=`<=${X}.${Q}.${k}-${F}`:V?Z=`<${X}.${Q}.${+k+1}-0`:Z=`<=${Z}`,`${G} ${Z}`.trim()),"hyphenReplace"),U=v((V,B,G)=>{for(let W=0;W<V.length;W++)if(!V[W].test(B))return!1;if(B.prerelease.length&&!G.includePrerelease){for(let W=0;W<V.length;W++)if(s(V[W].semver),V[W].semver!==t.ANY&&V[W].semver.prerelease.length>0){let N=V[W].semver;if(N.major===B.major&&N.minor===B.minor&&N.patch===B.patch)return!0}return!1}return!0},"testSet")}),Rs=K((e,r)=>{"use strict";var a=Symbol("SemVer ANY"),p=class wn{static{v(this,"Comparator")}static get ANY(){return a}constructor(h,d){if(d=n(d),h instanceof wn){if(h.loose===!!d.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),s("comparator",h,d),this.options=d,this.loose=!!d.loose,this.parse(h),this.semver===a?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(h){let d=this.options.loose?c[o.COMPARATORLOOSE]:c[o.COMPARATOR],g=h.match(d);if(!g)throw new TypeError(`Invalid comparator: ${h}`);this.operator=g[1]!==void 0?g[1]:"",this.operator==="="&&(this.operator=""),g[2]?this.semver=new i(g[2],this.options.loose):this.semver=a}toString(){return this.value}test(h){if(s("Comparator.test",h,this.options.loose),this.semver===a||h===a)return!0;if(typeof h=="string")try{h=new i(h,this.options)}catch{return!1}return t(h,this.operator,this.semver,this.options)}intersects(h,d){if(!(h instanceof wn))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(h.value,d).test(this.value):h.operator===""?h.value===""?!0:new l(this.value,d).test(h.semver):(d=n(d),d.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||t(this.semver,"<",h.semver,d)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||t(this.semver,">",h.semver,d)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}};r.exports=p;var n=zn(),{safeRe:c,t:o}=_r(),t=cu(),s=bs(),i=Ge(),l=ht()}),wr=K((e,r)=>{"use strict";var a=ht(),p=v((n,c,o)=>{try{c=new a(c,o)}catch{return!1}return c.test(n)},"satisfies");r.exports=p}),xE=K((e,r)=>{"use strict";var a=ht(),p=v((n,c)=>new a(n,c).set.map(o=>o.map(t=>t.value).join(" ").trim().split(" ")),"toComparators");r.exports=p}),NE=K((e,r)=>{"use strict";var a=Ge(),p=ht(),n=v((c,o,t)=>{let s=null,i=null,l=null;try{l=new p(o,t)}catch{return null}return c.forEach(u=>{l.test(u)&&(!s||i.compare(u)===-1)&&(s=u,i=new a(s,t))}),s},"maxSatisfying");r.exports=n}),kE=K((e,r)=>{"use strict";var a=Ge(),p=ht(),n=v((c,o,t)=>{let s=null,i=null,l=null;try{l=new p(o,t)}catch{return null}return c.forEach(u=>{l.test(u)&&(!s||i.compare(u)===1)&&(s=u,i=new a(s,t))}),s},"minSatisfying");r.exports=n}),LE=K((e,r)=>{"use strict";var a=Ge(),p=ht(),n=As(),c=v((o,t)=>{o=new p(o,t);let s=new a("0.0.0");if(o.test(s)||(s=new a("0.0.0-0"),o.test(s)))return s;s=null;for(let i=0;i<o.set.length;++i){let l=o.set[i],u=null;l.forEach(h=>{let d=new a(h.semver.version);switch(h.operator){case">":d.prerelease.length===0?d.patch++:d.prerelease.push(0),d.raw=d.format();case"":case">=":(!u||n(d,u))&&(u=d);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),u&&(!s||n(s,u))&&(s=u)}return s&&o.test(s)?s:null},"minVersion");r.exports=c}),uu=K((e,r)=>{"use strict";var a=ht(),p=v((n,c)=>{try{return new a(n,c).range||"*"}catch{return null}},"validRange");r.exports=p}),Qn=K((e,r)=>{"use strict";var a=Ge(),p=Rs(),{ANY:n}=p,c=ht(),o=wr(),t=As(),s=Zn(),i=Yn(),l=Xn(),u=v((h,d,g,m)=>{h=new a(h,m),d=new c(d,m);let f,y,S,E,b;switch(g){case">":f=t,y=i,S=s,E=">",b=">=";break;case"<":f=s,y=l,S=t,E="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(h,d,m))return!1;for(let _=0;_<d.set.length;++_){let w=d.set[_],O=null,R=null;if(w.forEach(I=>{I.semver===n&&(I=new p(">=0.0.0")),O=O||I,R=R||I,f(I.semver,O.semver,m)?O=I:S(I.semver,R.semver,m)&&(R=I)}),O.operator===E||O.operator===b||(!R.operator||R.operator===E)&&y(h,R.semver)||R.operator===b&&S(h,R.semver))return!1}return!0},"outside");r.exports=u}),DE=K((e,r)=>{"use strict";var a=Qn(),p=v((n,c,o)=>a(n,c,">",o),"gtr");r.exports=p}),ME=K((e,r)=>{"use strict";var a=Qn(),p=v((n,c,o)=>a(n,c,"<",o),"ltr");r.exports=p}),jE=K((e,r)=>{"use strict";var a=ht(),p=v((n,c,o)=>(n=new a(n,o),c=new a(c,o),n.intersects(c,o)),"intersects");r.exports=p}),$E=K((e,r)=>{"use strict";var a=wr(),p=ut();r.exports=(n,c,o)=>{let t=[],s=null,i=null,l=n.sort((g,m)=>p(g,m,o));for(let g of l)a(g,c,o)?(i=g,s||(s=g)):(i&&t.push([s,i]),i=null,s=null);s&&t.push([s,null]);let u=[];for(let[g,m]of t)g===m?u.push(g):!m&&g===l[0]?u.push("*"):m?g===l[0]?u.push(`<=${m}`):u.push(`${g} - ${m}`):u.push(`>=${g}`);let h=u.join(" || "),d=typeof c.raw=="string"?c.raw:String(c);return h.length<d.length?h:c}}),BE=K((e,r)=>{"use strict";var a=ht(),p=Rs(),{ANY:n}=p,c=wr(),o=ut(),t=v((d,g,m={})=>{if(d===g)return!0;d=new a(d,m),g=new a(g,m);let f=!1;e:for(let y of d.set){for(let S of g.set){let E=l(y,S,m);if(f=f||E!==null,E)continue e}if(f)return!1}return!0},"subset"),s=[new p(">=0.0.0-0")],i=[new p(">=0.0.0")],l=v((d,g,m)=>{if(d===g)return!0;if(d.length===1&&d[0].semver===n){if(g.length===1&&g[0].semver===n)return!0;m.includePrerelease?d=s:d=i}if(g.length===1&&g[0].semver===n){if(m.includePrerelease)return!0;g=i}let f=new Set,y,S;for(let P of d)P.operator===">"||P.operator===">="?y=u(y,P,m):P.operator==="<"||P.operator==="<="?S=h(S,P,m):f.add(P.semver);if(f.size>1)return null;let E;if(y&&S&&(E=o(y.semver,S.semver,m),E>0||E===0&&(y.operator!==">="||S.operator!=="<=")))return null;for(let P of f){if(y&&!c(P,String(y),m)||S&&!c(P,String(S),m))return null;for(let L of g)if(!c(P,String(L),m))return!1;return!0}let b,_,w,O,R=S&&!m.includePrerelease&&S.semver.prerelease.length?S.semver:!1,I=y&&!m.includePrerelease&&y.semver.prerelease.length?y.semver:!1;R&&R.prerelease.length===1&&S.operator==="<"&&R.prerelease[0]===0&&(R=!1);for(let P of g){if(O=O||P.operator===">"||P.operator===">=",w=w||P.operator==="<"||P.operator==="<=",y){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(b=u(y,P,m),b===P&&b!==y)return!1}else if(y.operator===">="&&!c(y.semver,String(P),m))return!1}if(S){if(R&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===R.major&&P.semver.minor===R.minor&&P.semver.patch===R.patch&&(R=!1),P.operator==="<"||P.operator==="<="){if(_=h(S,P,m),_===P&&_!==S)return!1}else if(S.operator==="<="&&!c(S.semver,String(P),m))return!1}if(!P.operator&&(S||y)&&E!==0)return!1}return!(y&&w&&!S&&E!==0||S&&O&&!y&&E!==0||I||R)},"simpleSubset"),u=v((d,g,m)=>{if(!d)return g;let f=o(d.semver,g.semver,m);return f>0?d:f<0||g.operator===">"&&d.operator===">="?g:d},"higherGT"),h=v((d,g,m)=>{if(!d)return g;let f=o(d.semver,g.semver,m);return f<0?d:f>0||g.operator==="<"&&d.operator==="<="?g:d},"lowerLT");r.exports=t}),Jt=K((e,r)=>{"use strict";var a=_r(),p=_s(),n=Ge(),c=Hc(),o=qt(),t=Gc(),s=Vc(),i=SE(),l=EE(),u=bE(),h=_E(),d=wE(),g=OE(),m=ut(),f=AE(),y=RE(),S=Jn(),E=CE(),b=IE(),_=As(),w=Zn(),O=au(),R=lu(),I=Xn(),P=Yn(),L=cu(),M=TE(),x=Rs(),j=ht(),U=wr(),V=xE(),B=NE(),G=kE(),W=LE(),N=uu(),D=Qn(),T=DE(),C=ME(),Z=jE(),X=$E(),Q=BE();r.exports={parse:o,valid:t,clean:s,inc:i,diff:l,major:u,minor:h,patch:d,prerelease:g,compare:m,rcompare:f,compareLoose:y,compareBuild:S,sort:E,rsort:b,gt:_,lt:w,eq:O,neq:R,gte:I,lte:P,cmp:L,coerce:M,Comparator:x,Range:j,satisfies:U,toComparators:V,maxSatisfying:B,minSatisfying:G,minVersion:W,validRange:N,outside:D,gtr:T,ltr:C,intersects:Z,simplifyRange:X,subset:Q,SemVer:n,re:a.re,src:a.src,tokens:a.t,SEMVER_SPEC_VERSION:p.SEMVER_SPEC_VERSION,RELEASE_TYPES:p.RELEASE_TYPES,compareIdentifiers:c.compareIdentifiers,rcompareIdentifiers:c.rcompareIdentifiers}}),UE=K((e,r)=>{var a=Jt();r.exports=l=>p(l.reduce(i,{versions:{},"dist-tags":{},refs:{},shas:{}}));var p=v(l=>o(n(c(l))),"finish"),n=v(l=>(Object.keys(l.refs).forEach(u=>{let h=l.refs[u];l.shas[h.sha]?l.shas[h.sha].push(u):l.shas[h.sha]=[u]}),l),"shaList"),c=v(l=>(Object.keys(l.refs).filter(u=>u.endsWith("^{}")).forEach(u=>{let h=l.refs[u],d=l.refs[u.replace(/\^\{\}$/,"")];d&&(d.sha=h.sha,delete l.refs[u])}),l),"peelTags"),o=v(l=>{let u=l.refs.HEAD||{};return Object.keys(l.versions).forEach(h=>{let d=l.versions[h];l.refs.latest&&d.sha===l.refs.latest.sha?l["dist-tags"].latest=h:d.sha===u.sha&&(l["dist-tags"].HEAD=h,l.refs.latest||(l["dist-tags"].latest=h))}),l},"distTags"),t=v(l=>l.startsWith("refs/tags/")?"tag":l.startsWith("refs/heads/")?"branch":l.startsWith("refs/pull/")?"pull":l==="HEAD"?"head":"other","refType"),s=v(l=>{let u=l.trim().split(/\s+/,2);if(u.length<2)return null;let h=u[0].trim(),d=u[1].trim(),g=t(d);if(g==="tag"){let m=d.slice(10);return{sha:h,ref:m,rawRef:d,type:g}}if(g==="branch"){let m=d.slice(11);return{sha:h,ref:m,rawRef:d,type:g}}if(g==="pull"){let m=d.slice(5).replace(/\/head$/,"");return{sha:h,ref:m,rawRef:d,type:g}}return g==="head"?{sha:h,ref:"HEAD",rawRef:d,type:g}:{sha:h,ref:d,rawRef:d,type:g}},"lineToRevDoc"),i=v((l,u)=>{let h=s(u);if(!h)return l;if(l.refs[h.ref]=h,l.refs[h.rawRef]=h,h.type==="tag"){let d=!h.ref.endsWith("^{}")&&h.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);d&&a.valid(d[1],!0)&&(l.versions[a.clean(d[1],!0)]=h)}return l},"linesToRevsReducer")}),hu=K((e,r)=>{var a=Os(),{LRUCache:p}=nu(),n=UE(),c=new p({max:100,ttl:300*1e3});r.exports=async(o,t={})=>{if(!t.noGitRevCache){let l=c.get(o);if(l)return l}let{stdout:s}=await a(["ls-remote",o],t),i=n(s.trim().split(`
12
+ `));return c.set(o,i),i}}),FE=K(e=>{var r=v(a=>(a.fakePlatform||process.platform)==="win32","isWindows");e.isWindows=r}),HE=K((e,r)=>{"use strict";var a=v((...t)=>t.every(s=>s)?t.join(""):"","maybeJoin"),p=v(t=>t?encodeURIComponent(t):"","maybeEncode"),n=v(t=>t.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),"formatHashFragment"),c={sshtemplate:v(({domain:t,user:s,project:i,committish:l})=>`git@${t}:${s}/${i}.git${a("#",l)}`,"sshtemplate"),sshurltemplate:v(({domain:t,user:s,project:i,committish:l})=>`git+ssh://git@${t}/${s}/${i}.git${a("#",l)}`,"sshurltemplate"),edittemplate:v(({domain:t,user:s,project:i,committish:l,editpath:u,path:h})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l||"HEAD"),"/",h)}`,"edittemplate"),browsetemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l))}`,"browsetemplate"),browsetreetemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u,path:h,fragment:d,hashformat:g})=>`https://${t}/${s}/${i}/${u}/${p(l||"HEAD")}/${h}${a("#",g(d||""))}`,"browsetreetemplate"),browseblobtemplate:v(({domain:t,user:s,project:i,committish:l,blobpath:u,path:h,fragment:d,hashformat:g})=>`https://${t}/${s}/${i}/${u}/${p(l||"HEAD")}/${h}${a("#",g(d||""))}`,"browseblobtemplate"),docstemplate:v(({domain:t,user:s,project:i,treepath:l,committish:u})=>`https://${t}/${s}/${i}${a("/",l,"/",p(u))}#readme`,"docstemplate"),httpstemplate:v(({auth:t,domain:s,user:i,project:l,committish:u})=>`git+https://${a(t,"@")}${s}/${i}/${l}.git${a("#",u)}`,"httpstemplate"),filetemplate:v(({domain:t,user:s,project:i,committish:l,path:u})=>`https://${t}/${s}/${i}/raw/${p(l||"HEAD")}/${u}`,"filetemplate"),shortcuttemplate:v(({type:t,user:s,project:i,committish:l})=>`${t}:${s}/${i}${a("#",l)}`,"shortcuttemplate"),pathtemplate:v(({user:t,project:s,committish:i})=>`${t}/${s}${a("#",i)}`,"pathtemplate"),bugstemplate:v(({domain:t,user:s,project:i})=>`https://${t}/${s}/${i}/issues`,"bugstemplate"),hashformat:n},o={};o.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:v(({auth:t,user:s,project:i,committish:l,path:u})=>`https://${a(t,"@")}raw.githubusercontent.com/${s}/${i}/${p(l||"HEAD")}/${u}`,"filetemplate"),gittemplate:v(({auth:t,domain:s,user:i,project:l,committish:u})=>`git://${a(t,"@")}${s}/${i}/${l}.git${a("#",u)}`,"gittemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://codeload.${t}/${s}/${i}/tar.gz/${p(l||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let[,s,i,l,u]=t.pathname.split("/",5);if(!(l&&l!=="tree")&&(l||(u=t.hash.slice(1)),i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:u}},"extract")},o.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:v(({domain:t,user:s,project:i,committish:l,treepath:u,path:h,editpath:d})=>`https://${t}/${s}/${i}${a("/",u,"/",p(l||"HEAD"),"/",h,d)}`,"edittemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/get/${p(l||"HEAD")}.tar.gz`,"tarballtemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(!["get"].includes(l)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:t.hash.slice(1)}},"extract")},o.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:v(({auth:t,domain:s,user:i,project:l,committish:u})=>`git+https://${a(t,"@")}${s}/${i}/${l}.git${a("#",u)}`,"httpstemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/repository/archive.tar.gz?ref=${p(l||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let s=t.pathname.slice(1);if(s.includes("/-/")||s.includes("/archive.tar.gz"))return;let i=s.split("/"),l=i.pop();l.endsWith(".git")&&(l=l.slice(0,-4));let u=i.join("/");if(!(!u||!l))return{user:u,project:l,committish:t.hash.slice(1)}},"extract")},o.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:v(({domain:t,project:s,committish:i})=>`git@${t}:${s}.git${a("#",i)}`,"sshtemplate"),sshurltemplate:v(({domain:t,project:s,committish:i})=>`git+ssh://git@${t}/${s}.git${a("#",i)}`,"sshurltemplate"),edittemplate:v(({domain:t,user:s,project:i,committish:l,editpath:u})=>`https://${t}/${s}/${i}${a("/",p(l))}/${u}`,"edittemplate"),browsetemplate:v(({domain:t,project:s,committish:i})=>`https://${t}/${s}${a("/",p(i))}`,"browsetemplate"),browsetreetemplate:v(({domain:t,project:s,committish:i,path:l,hashformat:u})=>`https://${t}/${s}${a("/",p(i))}${a("#",u(l))}`,"browsetreetemplate"),browseblobtemplate:v(({domain:t,project:s,committish:i,path:l,hashformat:u})=>`https://${t}/${s}${a("/",p(i))}${a("#",u(l))}`,"browseblobtemplate"),docstemplate:v(({domain:t,project:s,committish:i})=>`https://${t}/${s}${a("/",p(i))}`,"docstemplate"),httpstemplate:v(({domain:t,project:s,committish:i})=>`git+https://${t}/${s}.git${a("#",i)}`,"httpstemplate"),filetemplate:v(({user:t,project:s,committish:i,path:l})=>`https://gist.githubusercontent.com/${t}/${s}/raw${a("/",p(i))}/${l}`,"filetemplate"),shortcuttemplate:v(({type:t,project:s,committish:i})=>`${t}:${s}${a("#",i)}`,"shortcuttemplate"),pathtemplate:v(({project:t,committish:s})=>`${t}${a("#",s)}`,"pathtemplate"),bugstemplate:v(({domain:t,project:s})=>`https://${t}/${s}`,"bugstemplate"),gittemplate:v(({domain:t,project:s,committish:i})=>`git://${t}/${s}.git${a("#",i)}`,"gittemplate"),tarballtemplate:v(({project:t,committish:s})=>`https://codeload.github.com/gist/${t}/tar.gz/${p(s||"HEAD")}`,"tarballtemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(l!=="raw"){if(!i){if(!s)return;i=s,s=null}return i.endsWith(".git")&&(i=i.slice(0,-4)),{user:s,project:i,committish:t.hash.slice(1)}}},"extract"),hashformat:v(function(t){return t&&"file-"+n(t)},"hashformat")},o.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:v(({domain:t,user:s,project:i,committish:l,path:u})=>`https://${t}/${s}/${i}/blob/${p(l)||"HEAD"}/${u}`,"filetemplate"),httpstemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}.git${a("#",l)}`,"httpstemplate"),tarballtemplate:v(({domain:t,user:s,project:i,committish:l})=>`https://${t}/${s}/${i}/archive/${p(l)||"HEAD"}.tar.gz`,"tarballtemplate"),bugstemplate:v(()=>null,"bugstemplate"),extract:v(t=>{let[,s,i,l]=t.pathname.split("/",4);if(!["archive"].includes(l)&&(i&&i.endsWith(".git")&&(i=i.slice(0,-4)),!(!s||!i)))return{user:s,project:i,committish:t.hash.slice(1)}},"extract")};for(let[t,s]of Object.entries(o))o[t]=Object.assign({},c,s);r.exports=o}),pu=K((e,r)=>{var a=require("url"),p=v((t,s,i)=>{let l=t.indexOf(i);return t.lastIndexOf(s,l>-1?l:1/0)},"lastIndexOfBefore"),n=v(t=>{try{return new a.URL(t)}catch{}},"safeUrl"),c=v((t,s)=>{let i=t.indexOf(":"),l=t.slice(0,i+1);if(Object.prototype.hasOwnProperty.call(s,l))return t;let u=t.indexOf("@");return u>-1?u>i?`git+ssh://${t}`:t:t.indexOf("//")===i+1?t:`${t.slice(0,i+1)}//${t.slice(i+1)}`},"correctProtocol"),o=v(t=>{let s=p(t,"@","#"),i=p(t,":","#");return i>s&&(t=t.slice(0,i)+"/"+t.slice(i+1)),p(t,":","#")===-1&&t.indexOf("//")===-1&&(t=`git+ssh://${t}`),t},"correctUrl");r.exports=(t,s)=>{let i=s?c(t,s):t;return n(i)||n(o(i))}}),GE=K((e,r)=>{"use strict";var a=pu(),p=v(n=>{let c=n.indexOf("#"),o=n.indexOf("/"),t=n.indexOf("/",o+1),s=n.indexOf(":"),i=/\s/.exec(n),l=n.indexOf("@"),u=!i||c>-1&&i.index>c,h=l===-1||c>-1&&l>c,d=s===-1||c>-1&&s>c,g=t===-1||c>-1&&t>c,m=o>0,f=c>-1?n[c-1]!=="/":!n.endsWith("/"),y=!n.startsWith(".");return u&&m&&f&&y&&h&&d&&g},"isGitHubShorthand");r.exports=(n,c,{gitHosts:o,protocols:t})=>{if(!n)return;let s=p(n)?`github:${n}`:n,i=a(s,t);if(!i)return;let l=o.byShortcut[i.protocol],u=o.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],h=l||u;if(!h)return;let d=o[l||u],g=null;t[i.protocol]?.auth&&(i.username||i.password)&&(g=`${i.username}${i.password?":"+i.password:""}`);let m=null,f=null,y=null,S=null;try{if(l){let E=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,b=E.indexOf("@");b>-1&&(E=E.slice(b+1));let _=E.lastIndexOf("/");_>-1?(f=decodeURIComponent(E.slice(0,_)),f||(f=null),y=decodeURIComponent(E.slice(_+1))):y=decodeURIComponent(E),y.endsWith(".git")&&(y=y.slice(0,-4)),i.hash&&(m=decodeURIComponent(i.hash.slice(1))),S="shortcut"}else{if(!d.protocols.includes(i.protocol))return;let E=d.extract(i);if(!E)return;f=E.user&&decodeURIComponent(E.user),y=decodeURIComponent(E.project),m=decodeURIComponent(E.committish),S=t[i.protocol]?.name||i.protocol.slice(0,-1)}}catch(E){if(E instanceof URIError)return;throw E}return[h,f,g,y,m,S,c]}}),VE=K((e,r)=>{"use strict";var{LRUCache:a}=nu(),p=HE(),n=GE(),c=pu(),o=new a({max:1e3});function t(i){try{let{protocol:l,hostname:u,pathname:h}=new URL(i);if(!u)return null;let d=/(?:git\+)http:$/.test(l)?"http:":"https:",g=h.replace(/\.git$/,"");return`${d}//${u}${g}`}catch{return null}}v(t,"unknownHostedUrl");var s=class at{static{v(this,"GitHost")}constructor(l,u,h,d,g,m,f={}){Object.assign(this,at.#e[l],{type:l,user:u,auth:h,project:d,committish:g,default:m,opts:f})}static#e={byShortcut:{},byDomain:{}};static#t={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(l,u){at.#e[l]=u,at.#e.byDomain[u.domain]=l,at.#e.byShortcut[`${l}:`]=l,at.#t[`${l}:`]={name:l}}static fromUrl(l,u){if(typeof l!="string")return;let h=l+JSON.stringify(u||{});if(!o.has(h)){let d=n(l,u,{gitHosts:at.#e,protocols:at.#t});o.set(h,d?new at(...d):void 0)}return o.get(h)}static fromManifest(l,u={}){if(!l||typeof l!="object")return;let h=l.repository,d=h&&(typeof h=="string"?h:typeof h=="object"&&typeof h.url=="string"?h.url:null);if(!d)throw new Error("no repository");let g=d&&at.fromUrl(d.replace(/^git\+/,""),u)||null;if(g)return g;let m=t(d);return at.fromUrl(m,u)||m}static parseUrl(l){return c(l)}#r(l,u){if(typeof l!="function")return null;let h={...this,...this.opts,...u};h.path||(h.path=""),h.path.startsWith("/")&&(h.path=h.path.slice(1)),h.noCommittish&&(h.committish=null);let d=l(h);return h.noGitPlus&&d.startsWith("git+")?d.slice(4):d}hash(){return this.committish?`#${this.committish}`:""}ssh(l){return this.#r(this.sshtemplate,l)}sshurl(l){return this.#r(this.sshurltemplate,l)}browse(l,...u){return typeof l!="string"?this.#r(this.browsetemplate,l):typeof u[0]!="string"?this.#r(this.browsetreetemplate,{...u[0],path:l}):this.#r(this.browsetreetemplate,{...u[1],fragment:u[0],path:l})}browseFile(l,...u){return typeof u[0]!="string"?this.#r(this.browseblobtemplate,{...u[0],path:l}):this.#r(this.browseblobtemplate,{...u[1],fragment:u[0],path:l})}docs(l){return this.#r(this.docstemplate,l)}bugs(l){return this.#r(this.bugstemplate,l)}https(l){return this.#r(this.httpstemplate,l)}git(l){return this.#r(this.gittemplate,l)}shortcut(l){return this.#r(this.shortcuttemplate,l)}path(l){return this.#r(this.pathtemplate,l)}tarball(l){return this.#r(this.tarballtemplate,{...l,noCommittish:!1})}file(l,u){return this.#r(this.filetemplate,{...u,path:l})}edit(l,u){return this.#r(this.edittemplate,{...u,path:l})}getDefaultRepresentation(){return this.default}toString(l){return this.default&&typeof this[this.default]=="function"?this[this.default](l):this.sshurl(l)}};for(let[i,l]of Object.entries(p))s.addHost(i,l);r.exports=s}),du=K((e,r)=>{"use strict";var{builtinModules:a}=require("module"),p=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),n=["node_modules","favicon.ico"];function c(t){var s=[],i=[];if(t===null)return i.push("name cannot be null"),o(s,i);if(t===void 0)return i.push("name cannot be undefined"),o(s,i);if(typeof t!="string")return i.push("name must be a string"),o(s,i);if(t.length||i.push("name length must be greater than zero"),t.startsWith(".")&&i.push("name cannot start with a period"),t.match(/^_/)&&i.push("name cannot start with an underscore"),t.trim()!==t&&i.push("name cannot contain leading or trailing spaces"),n.forEach(function(d){t.toLowerCase()===d&&i.push(d+" is not a valid package name")}),a.includes(t.toLowerCase())&&s.push(t+" is a core module name"),t.length>214&&s.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&s.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&s.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(t)!==t){var l=t.match(p);if(l){var u=l[1],h=l[2];if(h.startsWith(".")&&i.push("name cannot start with a period"),encodeURIComponent(u)===u&&encodeURIComponent(h)===h)return o(s,i)}i.push("name can only contain URL-friendly characters")}return o(s,i)}v(c,"validate");var o=v(function(t,s){var i={validForNewPackages:s.length===0&&t.length===0,validForOldPackages:s.length===0,warnings:t,errors:s};return i.warnings.length||delete i.warnings,i.errors.length||delete i.errors,i},"done");r.exports=c}),WE=K((e,r)=>{"use strict";var a=process.platform==="win32",{URL:p}=require("node:url"),n=a?require("node:path/win32"):require("node:path"),{homedir:c}=require("node:os"),o=VE(),t=Jt(),s=du(),{log:i}=ct(),l=a?/\\|[/]/:/[/]/,u=/^(?:git[+])?[a-z]+:/i,h=/^[^@]+@[^:.]+\.[^:]+:.+$/i,d=/[.](?:tgz|tar.gz|tar)$/i,g=/:[0-9]+(\/|$)/i,m=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,f=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,y="https://registry.npmjs.org";function S(N,D){let T,C;if(typeof N=="object")return N instanceof P&&(!D||D===N.where)?N:N.name&&N.rawSpec?S.resolve(N.name,N.rawSpec,D||N.where):S(N.raw,D||N.where);let Z=N.indexOf("@",1),X=Z>0?N.slice(0,Z):N;return u.test(N)?C=N:h.test(N)?C=`git+ssh://${N}`:!X.startsWith("@")&&(l.test(X)||d.test(X))?C=N:Z>0?(T=X,C=N.slice(Z+1)||"*"):s(N).validForOldPackages?(T=N,C="*"):C=N,_(T,C,D,N)}v(S,"npa");function E(N){return N?N.toLowerCase().startsWith("file:")?!0:a?m.test(N):f.test(N):!1}v(E,"isFileSpec");function b(N){return N?N.toLowerCase().startsWith("npm:"):!1}v(b,"isAliasSpec");function _(N,D,T,C){let Z=new P({raw:C,name:N,rawSpec:D,fromArgument:C!=null});if(N&&(Z.name=N),T||(T=process.cwd()),E(D))return j(Z,T);if(b(D))return G(Z,T);let X=o.fromUrl(D,{noGitPlus:!0,noCommittish:!0});return X?U(Z,X):D&&u.test(D)?B(Z):D&&(l.test(D)||d.test(D))?j(Z,T):W(Z)}v(_,"resolve");function w(N,D=y){let T=S(N);if(T.type!=="version")throw I(T.type,T.raw);let C="pkg:npm/"+T.name.replace(/^@/,"%40")+"@"+T.rawSpec;return D!==y&&(C+="?repository_url="+D),C}v(w,"toPurl");function O(N,D,T){let C=new Error(`Invalid package name "${N}" of package "${T}": ${D.errors.join("; ")}.`);return C.code="EINVALIDPACKAGENAME",C}v(O,"invalidPackageName");function R(N,D){let T=new Error(`Invalid tag name "${N}" of package "${D}": Tags may not have any characters that encodeURIComponent encodes.`);return T.code="EINVALIDTAGNAME",T}v(R,"invalidTagName");function I(N,D){let T=new Error(`Invalid type "${N}" of package "${D}": Purl can only be generated for "version" types.`);return T.code="EINVALIDPURLTYPE",T}v(I,"invalidPurlType");var P=class{static{v(this,"Result")}constructor(N){this.type=N.type,this.registry=N.registry,this.where=N.where,N.raw==null?this.raw=N.name?`${N.name}@${N.rawSpec}`:N.rawSpec:this.raw=N.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=N.rawSpec||"",this.saveSpec=N.saveSpec,this.fetchSpec=N.fetchSpec,N.name&&this.setName(N.name),this.gitRange=N.gitRange,this.gitCommittish=N.gitCommittish,this.gitSubdir=N.gitSubdir,this.hosted=N.hosted}setName(N){let D=s(N);if(!D.validForOldPackages)throw O(N,D,this.raw);return this.name=N,this.scope=N[0]==="@"?N.slice(0,N.indexOf("/")):void 0,this.escapedName=N.replace("/","%2f"),this}toString(){let N=[];this.name!=null&&this.name!==""&&N.push(this.name);let D=this.saveSpec||this.fetchSpec||this.rawSpec;return D!=null&&D!==""&&N.push(D),N.length?N.join("@"):this.raw}toJSON(){let N=Object.assign({},this);return delete N.hosted,N}};function L(N,D){if(!D){N.gitCommittish=null;return}for(let T of D.split("::")){if(!T.includes(":")){if(N.gitRange)throw new Error("cannot override existing semver range with a committish");if(N.gitCommittish)throw new Error("cannot override existing committish with a second committish");N.gitCommittish=T;continue}let[C,Z]=T.split(":");if(C==="semver"){if(N.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(N.gitRange)throw new Error("cannot override existing semver range with a second semver range");N.gitRange=decodeURIComponent(Z);continue}if(C==="path"){if(N.gitSubdir)throw new Error("cannot override existing path with a second path");N.gitSubdir=`/${Z}`;continue}i.warn("npm-package-arg",`ignoring unknown key "${C}"`)}}v(L,"setGitAttrs");var M=new Map([["\0","%00"],[" ","%09"],[`
13
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",a?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function x(N){let D="";for(let T=0;T<N.length;T++)D=`${D}${M.get(N[T])??N[T]}`;return D.startsWith("file:")?D:`file:${D}`}v(x,"pathToFileURL");function j(N,D){N.type=d.test(N.rawSpec)?"file":"directory",N.where=D;let T=x(N.rawSpec);T.startsWith("file:/")&&(/^file:\/\/[^/]/.test(T)&&(T=`file:/${T.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(T.slice(5))&&(T=T.replace(/^file:\/{1,3}/,"file:")));let C,Z;try{C=new p(T,`${x(n.resolve(D))}/`),Z=new p(T)}catch(k){let F=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(F,{raw:N.rawSpec,spec:N,where:D,originalError:k})}let X=decodeURIComponent(Z.pathname),Q=decodeURIComponent(C.pathname);return a&&(X=X.replace(/^\/+([a-z]:\/)/i,"$1"),Q=Q.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(X)?(N.saveSpec=`file:${X.substr(1)}`,Q=n.resolve(c(),X.substr(3))):n.isAbsolute(T.slice(5))?N.saveSpec=`file:${n.resolve(Q)}`:N.saveSpec=`file:${n.relative(D,Q)}`,N.fetchSpec=n.resolve(D,Q),N.saveSpec=N.saveSpec.split("\\").join("/"),N.saveSpec.startsWith("file://")&&(N.saveSpec=`file:/${N.saveSpec.slice(7)}`),N}v(j,"fromFile");function U(N,D){return N.type="git",N.hosted=D,N.saveSpec=D.toString({noGitPlus:!1,noCommittish:!1}),N.fetchSpec=D.getDefaultRepresentation()==="shortcut"?null:D.toString(),L(N,D.committish),N}v(U,"fromHostedGit");function V(N,D){let T=new Error(`Unsupported URL Type "${N}": ${D}`);return T.code="EUNSUPPORTEDPROTOCOL",T}v(V,"unsupportedURLType");function B(N){let D=N.rawSpec;if(N.saveSpec=D,D.startsWith("git+ssh:")){let C=D.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(C&&!C[1].match(g))return N.type="git",L(N,C[2]),N.fetchSpec=C[1],N}else D.startsWith("git+file://")&&(D=D.replace(/\\/g,"/"));let T=new p(D);switch(T.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":N.type="git",L(N,T.hash.slice(1)),T.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(D)?N.fetchSpec=`git+file://${T.host.toLowerCase()}:${T.pathname}`:(T.hash="",N.fetchSpec=T.toString()),N.fetchSpec.startsWith("git+")&&(N.fetchSpec=N.fetchSpec.slice(4));break;case"http:":case"https:":N.type="remote",N.fetchSpec=N.saveSpec;break;default:throw V(T.protocol,D)}return N}v(B,"fromURL");function G(N,D){let T=S(N.rawSpec.substr(4),D);if(T.type==="alias")throw new Error("nested aliases not supported");if(!T.registry)throw new Error("aliases only work for registry deps");if(!T.name)throw new Error("aliases must have a name");return N.subSpec=T,N.registry=!0,N.type="alias",N.saveSpec=null,N.fetchSpec=null,N}v(G,"fromAlias");function W(N){N.registry=!0;let D=N.rawSpec.trim();N.saveSpec=null,N.fetchSpec=D;let T=t.valid(D,!0),C=t.validRange(D,!0);if(T)N.type="version";else if(C)N.type="range";else{if(encodeURIComponent(D)!==D)throw R(D,N.raw);N.type="tag"}return N}v(W,"fromRegistry"),r.exports=S,r.exports.resolve=_,r.exports.toPurl=w,r.exports.Result=P}),zE=K((e,r)=>{var a=require("node:process"),p=require("node:os"),n=require("node:fs");function c(g){return g.includes("libc.musl-")||g.includes("ld-musl-")}v(c,"isMusl");function o(){return a.platform}v(o,"os");function t(){return a.arch}v(t,"cpu");var s="/usr/bin/ldd";function i(){try{let g=n.readFileSync(s,"utf-8");return g.includes("musl")?"musl":g.includes("GNU C Library")?"glibc":null}catch{return}}v(i,"getFamilyFromFilesystem");function l(){let g=a.report.excludeNetwork;a.report.excludeNetwork=!0;let m=a.report.getReport();return a.report.excludeNetwork=g,m.header?.glibcVersionRuntime?u="glibc":Array.isArray(m.sharedObjects)&&m.sharedObjects.some(c)?u="musl":u=null,u}v(l,"getFamilyFromReport");var u;function h(g){if(g==="linux")return u===void 0&&(u=i(),u===void 0&&(u=l())),u}v(h,"libc");function d(g={}){let m=g.os||o();return{cpu:{name:g.cpu||t()},libc:{name:g.libc||h(m)},os:{name:m,version:g.osVersion||p.release()},packageManager:{name:"npm",version:g.npmVersion},runtime:{name:"node",version:g.nodeVersion||a.version}}}v(d,"devEngines"),r.exports={cpu:t,libc:h,os:o,devEngines:d}}),qE=K((e,r)=>{var a=wr(),p=uu(),n=["ignore","warn","error","download"],c=["name","version","onFail"],o=["packageManager","runtime","cpu","libc","os"];function t(i,l,u){let{engine:h}=u;if(typeof i!="object"||i===null||Array.isArray(i))throw new Error(`Invalid non-object value for "${h}"`);let d=Object.keys(i);for(let g of d)if(!c.includes(g))throw new Error(`Invalid property "${g}" for "${h}"`);if(!d.includes("name"))throw new Error(`Missing "name" property for "${h}"`);if(typeof i.name!="string")throw new Error(`Invalid non-string value for "name" within "${h}"`);if(typeof l.name!="string"||l.name==="")throw new Error(`Unable to determine "name" for "${h}"`);if(d.includes("onFail")){if(typeof i.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${h}"`);if(!n.includes(i.onFail))throw new Error(`Invalid onFail value "${i.onFail}" for "${h}"`)}if(i.name!==l.name)return new Error(`Invalid name "${i.name}" does not match "${l.name}" for "${h}"`);if(d.includes("version")){if(typeof i.version!="string")throw new Error(`Invalid non-string value for "version" within "${h}"`);if(typeof l.version!="string"||l.version==="")throw new Error(`Unable to determine "version" for "${h}" "${i.name}"`);if(p(i.version)){if(!a(l.version,i.version,u.semver))return new Error(`Invalid semver version "${i.version}" does not match "${l.version}" for "${h}"`)}else if(i.version!==l.version)return new Error(`Invalid version "${i.version}" does not match "${l.version}" for "${h}"`)}}v(t,"checkDependency");function s(i,l={},u={}){if(typeof i!="object"||i===null||Array.isArray(i))throw new Error('Invalid non-object value for "devEngines"');let h=[];for(let d of Object.keys(i)){if(!o.includes(d))throw new Error(`Invalid property "devEngines.${d}"`);let g=i[d],m=[g].flat(),f=l[d]||{};if(m.length===0)continue;let y=[];for(let S of m){let E=t(S,f,{...u,engine:d});E&&y.push(E)}if(y.length===m.length){let S=m[m.length-1].onFail||"error";S==="download"&&(S="error");let E=Object.assign(new Error(`Invalid devEngines.${d}`),{errors:y,engine:d,isWarn:S==="warn",isError:S==="error",current:f,required:g});h.push(E)}}return h}v(s,"checkDevEngines"),r.exports={checkDevEngines:s}}),KE=K((e,r)=>{var a=Jt(),p=zE(),{checkDevEngines:n}=qE(),c=v((s,i,l,u=!1)=>{let h=u?null:l,d=s.engines,g={includePrerelease:!0};if(!d)return;let m=h&&d.node&&!a.satisfies(h,d.node,g),f=i&&d.npm&&!a.satisfies(i,d.npm,g);if(m||f)throw Object.assign(new Error("Unsupported engine"),{pkgid:s._id,current:{node:l,npm:i},required:d,code:"EBADENGINE"})},"checkEngine"),o=v((s,i=!1,l={})=>{if(i)return;let u=l.os||p.os(),h=l.cpu||p.cpu(),d=l.libc||p.libc(u),g=s.os?t(u,s.os):!0,m=s.cpu?t(h,s.cpu):!0,f=s.libc?t(d,s.libc):!0;if(s.libc&&!d&&(f=!1),!g||!m||!f)throw Object.assign(new Error("Unsupported platform"),{pkgid:s._id,current:{os:u,cpu:h,libc:d},required:{os:s.os,cpu:s.cpu,libc:s.libc},code:"EBADPLATFORM"})},"checkPlatform"),t=v((s,i)=>{if(typeof i=="string"&&(i=[i]),i.length===1&&i[0]==="any")return!0;let l=0,u=!1;for(let h of i){let d=h.charAt(0)==="!",g=d?h.slice(1):h;if(d){if(l++,s===g)return!1}else u=u||s===g}return u||l===i.length},"checkList");r.exports={checkEngine:c,checkPlatform:o,checkDevEngines:n,currentEnv:p}}),eo=K((e,r)=>{var{join:a,basename:p}=require("path"),n=v(i=>i.bin?typeof i.bin=="string"?c(i):Array.isArray(i.bin)?o(i):typeof i.bin=="object"?s(i):t(i):t(i),"normalize"),c=v(i=>i.name?(i.bin={[i.name]:i.bin},s(i)):t(i),"normalizeString"),o=v(i=>(i.bin=i.bin.reduce((l,u)=>(l[p(u)]=u,l),{}),s(i)),"normalizeArray"),t=v(i=>(delete i.bin,i),"removeBin"),s=v(i=>{let l=i.bin,u={},h=!1;return Object.keys(l).forEach(d=>{let g=a("/",p(d.replace(/\\|:/g,"/"))).slice(1);if(typeof l[d]!="string"||!g)return;let m=a("/",l[d].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);m&&(u[g]=m,h=!0)}),h?i.bin=u:delete i.bin,i},"normalizeObject");r.exports=n}),to=K((e,r)=>{"use strict";var a=WE(),p=Jt(),{checkEngine:n}=KE(),c=eo(),o=v((h,d,g)=>{try{return n(h,d,g),!0}catch{return!1}},"engineOk"),t=v((h,d,g)=>!h||!h[d]||Date.parse(h[d])<=g,"isBefore"),s={includePrerelease:!0,loose:!0},i=v((h,d)=>d&&p.satisfies(h,d,s),"shouldAvoid"),l=v((h,d)=>h&&i(h.version,d)?{...h,_shouldAvoid:!0}:h,"decorateAvoid"),u=v((h,d,g)=>{let{defaultTag:m="latest",before:f=null,nodeVersion:y=process.version,npmVersion:S=null,includeStaged:E=!1,avoid:b=null,avoidStrict:_=!1}=g,{name:w,time:O}=h,R=h.versions||{};if(_){let W={...g,avoidStrict:!1},N=u(h,d,W);if(!N||!N._shouldAvoid)return N;let D=u(h,`^${N.version}`,W);if(!D||!D._shouldAvoid)return{...D,_outsideDependencyRange:!0,_isSemVerMajor:!1};let T=u(h,"*",W);if(!T||!T._shouldAvoid)return{...T,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${w}`),{code:"ETARGET",name:w,wanted:d,avoid:b,before:f,versions:Object.keys(R)})}let I=E&&h.stagedVersions&&h.stagedVersions.versions||{},P=h.policyRestrictions&&h.policyRestrictions.versions||{},L=f&&O?+new Date(f):1/0,M=a.resolve(w,d||m).type,x=h["dist-tags"]||{};if(M!=="tag"&&M!=="version"&&M!=="range")throw new Error("Only tag, version, and range are supported");if(d&&M==="tag"){let W=x[d];return t(O,W,L)?l(R[W]||I[W]||P[W],b):u(h,`<=${W}`,g)}if(d&&M==="version"){let W=p.clean(d,{loose:!0}),N=R[W]||I[W]||P[W];return t(O,W,L)?l(N,b):null}let j=M==="range"?d:"*",U=x[m];if(U&&(j==="*"||p.satisfies(U,j,{loose:!0}))&&!P[U]&&!i(U,b)){let W=R[U];if(W&&t(O,U,L)&&o(W,S,y)&&!W.deprecated&&!I[U])return W}let V=Object.entries(R).concat(Object.entries(I)).concat(Object.entries(P)).filter(([W])=>t(O,W,L));if(!V.length)throw Object.assign(new Error(`No versions available for ${w}`),{code:"ENOVERSIONS",name:w,type:M,wanted:d,before:f,versions:Object.keys(R)});let B={loose:!0},G=V.filter(([W])=>p.satisfies(W,j,{loose:!0})).sort((W,N)=>{let[D,T]=W,[C,Z]=N,X=!i(D,b),Q=!i(C,b),k=!P[D],F=!P[C],z=!I[D],$=!I[C],q=!T.deprecated,J=!Z.deprecated,Y=o(T,S,y),A=o(Z,S,y);return Q-X||F-k||$-z||(J&&A)-(q&&Y)||A-Y||J-q||p.rcompare(D,C,B)});return l(G[0]&&G[0][1],b)},"pickManifest");r.exports=(h,d,g={})=>{let m=u(h,d,g),f=m&&c(m),y=h.policyRestrictions,S=y&&y.versions||{};if(f&&!S[f.version])return f;let{before:E=null,defaultTag:b="latest"}=g,_=E?new Date(E).toLocaleString():"",{name:w}=h,O=`${w}@${d}`+(E?` with a date before ${_}`:""),R=f&&!!S[f.version],I=R?y.message:"",P=R?`Could not download ${O} due to policy violations:
14
+ ${I}`:`No matching version found for ${O}.`,L=R?"E403":"ETARGET";throw Object.assign(new Error(P),{code:L,type:a.resolve(h.name,d).type,wanted:d,versions:Object.keys(h.versions??{}),name:w,distTags:h["dist-tags"],defaultTag:b})}}),JE=K((e,r)=>{var a=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:p}=require("url"),n=require("path"),c=hu(),o=Os(),{isWindows:t}=FE(),s=to(),i=require("fs/promises");r.exports=(E,b="HEAD",_=null,w={})=>c(E,w).then(O=>h(E,O,b,d(O,b,w),_||u(E,w.cwd),w));var l=v((E,b)=>b.gitShallow===!1||b.gitShallow?b.gitShallow:a.has(p(E).host),"maybeShallow"),u=v((E,b=process.cwd())=>n.resolve(b,n.basename(E.replace(/[/\\]?\.git$/,""))),"defaultTarget"),h=v((E,b,_,w,O,R)=>w?w.sha===b.refs.HEAD.sha?f(E,w,O,R):w.type==="tag"||w.type==="branch"?m(E,w,O,R):g(E,w,O,R):S(E,_,O,R),"clone"),d=v((E,b,_)=>{let{spec:w={}}=_;return b=w.gitCommittish||b,E?w.gitRange?s(E,w.gitRange,_):b?E.refs[b]?E.refs[b]:E.shas[b]?E.refs[E.shas[b][0]]:null:E.refs.HEAD:null},"resolveRef"),g=v((E,b,_,w)=>{let O=l(E,w),R=["fetch","origin",b.rawRef].concat(O?["--depth=1"]:[]),I=v(P=>o(P,{...w,cwd:_}),"git");return i.mkdir(_,{recursive:!0}).then(()=>I(["init"])).then(()=>t(w)?I(["config","--local","--add","core.longpaths","true"]):null).then(()=>I(["remote","add","origin",E])).then(()=>I(R)).then(()=>I(["checkout",b.sha])).then(()=>y(_,w)).then(()=>b.sha)},"other"),m=v((E,b,_,w)=>{let O=["clone","-b",b.ref,E,_,"--recurse-submodules"];return l(E,w)&&O.push("--depth=1"),t(w)&&O.push("--config","core.longpaths=true"),o(O,w).then(()=>b.sha)},"branch"),f=v((E,b,_,w)=>{let O=["clone",E,_,"--recurse-submodules"];return l(E,w)&&O.push("--depth=1"),t(w)&&O.push("--config","core.longpaths=true"),o(O,w).then(()=>b.sha)},"plain"),y=v(async(E,b)=>await i.stat(`${E}/.gitmodules`).then(()=>!0).catch(()=>!1)?o(["submodule","update","-q","--init","--recursive"],{...b,cwd:E}):null,"updateSubmodules"),S=v((E,b,_,w)=>{let O=t(w)?["--config","core.longpaths=true"]:[],R=["clone","--mirror","-q",E,_+"/.git"],I=v(P=>o(P,{...w,cwd:_}),"git");return i.mkdir(_,{recursive:!0}).then(()=>I(R.concat(O))).then(()=>I(["init"])).then(()=>I(["checkout",b])).then(()=>y(_,w)).then(()=>I(["rev-parse","--revs-only","HEAD"])).then(({stdout:P})=>P.trim())},"unresolved")}),fu=K((e,r)=>{var{stat:a}=require("fs/promises");r.exports=({cwd:p=process.cwd()}={})=>a(p+"/.git").then(()=>!0,()=>!1)}),ZE=K((e,r)=>{var a=fu(),{dirname:p}=require("path");r.exports=async({cwd:n=process.cwd(),root:c}={})=>{for(;;){if(await a({cwd:n}))return n;let o=p(n);if(n===c||n===o)return null;n=o}}}),XE=K((e,r)=>{var a=Os();r.exports=(p={})=>a(["status","--porcelain=v1","-uno"],p).then(n=>!n.stdout.trim().split(/\r?\n+/).map(c=>c.trim()).filter(c=>c).length)}),gu=K((e,r)=>{r.exports={clone:JE(),revs:hu(),spawn:Os(),is:fu(),find:ZE(),isClean:XE(),errors:iu()}}),YE=K((e,r)=>{var a=Gc(),p=Vc(),n=require("node:fs/promises"),c=require("node:path"),{log:o}=ct(),t=require("node:module"),s;function i(){return s||(s=qn()),s}v(i,"lazyHostedGitInfo");var l;function u(){return l||(l=eu().glob),l}v(u,"lazyLoadGlob");function h(w,O){if(w.bin&&(typeof w.bin=="string"&&w.name?(O?.push('"bin" was converted to an object'),w.bin={[w.name]:w.bin}):Array.isArray(w.bin)&&(O?.push('"bin" was converted to an object'),w.bin=w.bin.reduce((R,I)=>(R[c.basename(I)]=I,R),{})),typeof w.bin=="object")){for(let R in w.bin){if(typeof w.bin[R]!="string"){delete w.bin[R],O?.push(`removed invalid "bin[${R}]"`);continue}let I=c.basename(y(R));if(!I){delete w.bin[R],O?.push(`removed invalid "bin[${R}]"`);continue}let P=y(w.bin[R]);if(!P){delete w.bin[R],O?.push(`removed invalid "bin[${R}]"`);continue}I!==R&&(delete w.bin[R],O?.push(`"bin[${R}]" was renamed to "bin[${I}]"`)),P!==w.bin[R]&&O?.push(`"bin[${I}]" script name ${P} was invalid and removed`),w.bin[I]=P}return Object.keys(w.bin).length===0&&(O?.push('empty "bin" was removed'),delete w.bin),w}delete w.bin}v(h,"normalizePackageBin");function d(w,O){if(w.man){let R=[];for(let I of Array.isArray(w.man)?w.man:[w.man])typeof I!="string"?O?.push(`removed invalid "man [${I}]"`):R.push(y(I));if(!R.length)O?.push('empty "man" was removed');else return w.man=R,w}delete w.man}v(d,"normalizePackageMan");function g(w){return!w.match(/[/@\s+%:]/)&&w===encodeURIComponent(w)}v(g,"isCorrectlyEncodedName");function m(w){if(w.charAt(0)!=="@")return!1;let O=w.slice(1).split("/");return O.length!==2?!1:O[0]&&O[1]&&O[0]===encodeURIComponent(O[0])&&O[1]===encodeURIComponent(O[1])}v(m,"isValidScopedPackageName");function f(w){return w.replace(/\\|:/g,"/")}v(f,"unixifyPath");function y(w){let O=f(c.join(".",c.join("/",f(w))));return O.startsWith("./")?"":O}v(y,"secureAndUnixifyPath");function S(w,{strict:O,steps:R,changes:I,allowLegacyCase:P}){let L=w.content,M=`${L.name??""}@${L.version??""}`;if(R.includes("fixName")||R.includes("fixNameField")||R.includes("normalizeData"))if(!L.name&&!O)I?.push('Missing "name" field was set to an empty string'),L.name="";else{if(typeof L.name!="string")throw new Error("name field must be a string.");if(!O){let x=L.name.trim();L.name!==x&&(I?.push('Whitespace was trimmed from "name"'),L.name=x)}if(L.name.startsWith(".")||!(m(L.name)||g(L.name))||O&&!P&&L.name!==L.name.toLowerCase()||L.name.toLowerCase()==="node_modules"||L.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(L.name))}if(R.includes("fixName")&&t.builtinModules.includes(L.name)&&o.warn("package-json",M,`Package name "${L.name}" conflicts with a Node.js built-in module name`),R.includes("fixVersionField")||R.includes("normalizeData")){let x=!O;if(!L.version)L.version="";else{if(!a(L.version,x))throw new Error(`Invalid version: "${L.version}"`);let j=p(L.version,x);j!==L.version&&(I?.push(`"version" was cleaned and set to "${j}"`),L.version=j)}}if(R.includes("_attributes"))for(let x in L)x.startsWith("_")&&(I?.push(`"${x}" was removed`),delete w.content[x]);if(R.includes("_id")&&L.name&&L.version&&(I?.push(`"_id" was set to ${M}`),L._id=M),R.includes("bundledDependencies")&&(L.bundleDependencies===void 0&&L.bundledDependencies!==void 0&&(L.bundleDependencies=L.bundledDependencies,I?.push('Deleted incorrect "bundledDependencies"')),delete L.bundledDependencies),R.includes("bundleDependencies")){let x=L.bundleDependencies;x===!1&&!R.includes("bundleDependenciesDeleteFalse")?(I?.push('"bundleDependencies" was changed from "false" to "[]"'),L.bundleDependencies=[]):x===!0?(I?.push('"bundleDependencies" was auto-populated from "dependencies"'),L.bundleDependencies=Object.keys(L.dependencies||{})):x&&typeof x=="object"?Array.isArray(x)||(I?.push('"bundleDependencies" was changed from an object to an array'),L.bundleDependencies=Object.keys(x)):"bundleDependencies"in L&&(I?.push('"bundleDependencies" was removed'),delete L.bundleDependencies)}if(R.includes("optionalDedupe")&&L.dependencies&&L.optionalDependencies&&typeof L.optionalDependencies=="object"){for(let x in L.optionalDependencies)I?.push(`optionalDependencies."${x}" was removed`),delete L.dependencies[x];Object.keys(L.dependencies).length||(I?.push('Empty "optionalDependencies" was removed'),delete L.dependencies)}if((R.includes("scripts")||R.includes("scriptpath"))&&L.scripts!==void 0){let x=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof L.scripts=="object")for(let j in L.scripts)typeof L.scripts[j]!="string"?(delete L.scripts[j],I?.push(`Invalid scripts."${j}" was removed`)):R.includes("scriptpath")&&x.test(L.scripts[j])&&(L.scripts[j]=L.scripts[j].replace(x,""),I?.push(`scripts entry "${j}" was fixed to remove node_modules/.bin reference`));else I?.push('Removed invalid "scripts"'),delete L.scripts}if(R.includes("funding")&&L.funding&&typeof L.funding=="string"&&(L.funding={url:L.funding},I?.push('"funding" was changed to an object with a url attribute')),(R.includes("fixRepositoryField")||R.includes("normalizeData"))&&(L.repositories&&(I?.push(`"repository" was set to the first entry in "repositories" (${L.repository})`),L.repository=L.repositories[0]),L.repository&&(typeof L.repository=="string"&&(I?.push('"repository" was changed from a string to an object'),L.repository={type:"git",url:L.repository}),L.repository.url))){let x=i().fromUrl(L.repository.url),j;x&&(x.getDefaultRepresentation()==="shortcut"?j=x.https():j=x.toString(),j!==L.repository.url&&(I?.push(`"repository.url" was normalized to "${j}"`),L.repository.url=j))}if(R.includes("fixDependencies")||R.includes("normalizeData")){for(let x of["dependencies","devDependencies","optionalDependencies"])if(L[x]){let j=!0;if(typeof L[x]=="string"&&(I?.push(`"${x}" was converted from a string into an object`),L[x]=L[x].trim().split(/[\n\r\s\t ,]+/),j=!1),Array.isArray(L[x])){j&&I?.push(`"${x}" was converted from an array into an object`);let U={};for(let V of L[x])if(typeof V=="string"){let B=V.trim().split(/(:?[@\s><=])/),G=B.shift(),W=B.join("").replace(/^@/,"").trim();U[G]=W}L[x]=U}}for(let x of["dependencies","devDependencies"])if(x in L)if(!L[x]||typeof L[x]!="object")I?.push(`Removed invalid "${x}"`),delete L[x];else for(let j in L[x]){typeof L[x][j]!="string"&&(I?.push(`Removed invalid "${x}.${j}"`),delete L[x][j]);let U=i().fromUrl(L[x][j])?.toString();U&&U!==L[x][j]&&(I?.push(`Normalized git reference to "${x}.${j}"`),L[x][j]=U.toString())}}if(R.includes("normalizeData")){let{normalizeData:x}=nE();x(L,I)}}v(S,"syncSteps");async function E(w,{steps:O,root:R,changes:I}){let P=w.content,L=P.scripts||{},M=`${P.name??""}@${P.version??""}`;if(O.includes("gypfile")&&!L.install&&!L.preinstall&&P.gypfile!==!1&&(await u()("*.gyp",{cwd:w.path})).length&&(L.install="node-gyp rebuild",P.scripts=L,P.gypfile=!0,I?.push('"scripts.install" was set to "node-gyp rebuild"'),I?.push('"gypfile" was set to "true"')),O.includes("serverjs")&&!L.start)try{await n.access(c.join(w.path,"server.js")),L.start="node server.js",P.scripts=L,I?.push('"scripts.start" was set to "node server.js"')}catch{}if(O.includes("authors")&&!P.contributors)try{let x=(await n.readFile(c.join(w.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(j=>j.replace(/^\s*#.*$/,"").trim()).filter(j=>j);P.contributors=x,I?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(O.includes("readme")&&!P.readme){let x=/\.m?a?r?k?d?o?w?n?$/i,j=await u()("{README,README.*}",{cwd:w.path,nocase:!0,mark:!0}),U;for(let V of j)if(!V.endsWith(c.sep)){if(V.match(x)){U=V;break}V.endsWith("README")&&(U=V)}if(U){let V=await n.readFile(c.join(w.path,U),"utf8");P.readme=V,P.readmeFilename=U,I?.push(`"readme" was set to the contents of ${U}`),I?.push(`"readmeFilename" was set to ${U}`)}P.readme||(P.readme="ERROR: No README data found!")}if(O.includes("mans")){if(P.directories?.man&&!P.man){let x=y(P.directories.man),j=c.resolve(w.path,x),U=await u()("**/*.[0-9]",{cwd:j});P.man=U.map(V=>c.relative(w.path,c.join(j,V)).split(c.sep).join("/"))}d(P,I)}if(O.includes("binDir")&&P.directories?.bin&&!P.bin){let x=y(P.directories.bin),j=await u()("**",{cwd:c.resolve(w.path,x)});P.bin=j.reduce((U,V)=>{if(V&&!V.startsWith(".")){let B=c.basename(V);U[B]=`${x}/${y(V)}`}return U},{})}else(O.includes("bin")||O.includes("binDir")||O.includes("binRefs"))&&h(P,I);if(O.includes("gitHead")&&!P.gitHead){let x=await gu().find({cwd:w.path,root:R}),j;if(x)try{j=await n.readFile(c.resolve(x,".git/HEAD"),"utf8")}catch{}let U;if(j)if(j.startsWith("ref: ")){let V=j.replace(/^ref: /,"").trim(),B=c.resolve(x,".git",V);try{U=await n.readFile(B,"utf8"),U=U.replace(/^ref: /,"").trim()}catch{}if(!U){let G=c.resolve(x,".git/packed-refs");try{let W=await n.readFile(G,"utf8");if(W){W=W.split(`
15
+ `);for(let N=0;N<W.length;N++){let D=W[N].match(/^([0-9a-f]{40}) (.+)$/);if(D&&D[2].trim()===V){U=D[1];break}}}}catch{}}}else U=j.trim();U&&(P.gitHead=U)}if(O.includes("fillTypes")){let x=P.main||"index.js";if(typeof x!="string")throw new TypeError('The "main" attribute must be of type string.');let j=`./${c.join(c.dirname(x),c.basename(x,c.extname(x)))}.d.ts`;if(!("types"in P||"typings"in P))try{await n.access(c.join(w.path,j)),P.types=j.split(c.sep).join("/")}catch{}}if(O.includes("binRefs")&&P.bin instanceof Object)for(let x in P.bin)try{await n.access(c.resolve(w.path,P.bin[x]))}catch{o.warn("package-json",M,`No bin file found at ${P.bin[x]}`)}}v(E,"asyncSteps");async function b(w,O){if(!w.content)throw new Error("Can not normalize without content");await E(w,O),S(w,O)}v(b,"normalize");function _(w,O){S(w,O)}v(_,"syncNormalize"),r.exports={normalize:b,syncNormalize:_}}),QE=K((e,r)=>{var{readFile:a}=require("fs/promises"),p=Fc();async function n(t){try{return await a(t,"utf8")}catch(s){throw s.message=`Could not read package.json: ${s}`,s}}v(n,"read");function c(t){try{return p(t)}catch(s){throw s.message=`Invalid package.json: ${s}`,s}}v(c,"parse");async function o(t){let s=await n(t);return c(s)}v(o,"readPackage"),r.exports={read:n,parse:c,readPackage:o}}),eb=K((e,r)=>{function a(p){let{name:n,version:c,private:o,description:t,keywords:s,homepage:i,bugs:l,repository:u,funding:h,license:d,author:g,maintainers:m,contributors:f,type:y,imports:S,exports:E,main:b,browser:_,types:w,bin:O,man:R,directories:I,files:P,workspaces:L,scripts:M,config:x,dependencies:j,devDependencies:U,peerDependencies:V,peerDependenciesMeta:B,optionalDependencies:G,bundledDependencies:W,bundleDependencies:N,engines:D,os:T,cpu:C,publishConfig:Z,devEngines:X,licenses:Q,overrides:k,...F}=p;return{...typeof n<"u"?{name:n}:{},...typeof c<"u"?{version:c}:{},...typeof o<"u"?{private:o}:{},...typeof t<"u"?{description:t}:{},...typeof s<"u"?{keywords:s}:{},...typeof i<"u"?{homepage:i}:{},...typeof l<"u"?{bugs:l}:{},...typeof u<"u"?{repository:u}:{},...typeof h<"u"?{funding:h}:{},...typeof d<"u"?{license:d}:{},...typeof g<"u"?{author:g}:{},...typeof m<"u"?{maintainers:m}:{},...typeof f<"u"?{contributors:f}:{},...typeof y<"u"?{type:y}:{},...typeof S<"u"?{imports:S}:{},...typeof E<"u"?{exports:E}:{},...typeof b<"u"?{main:b}:{},...typeof _<"u"?{browser:_}:{},...typeof w<"u"?{types:w}:{},...typeof O<"u"?{bin:O}:{},...typeof R<"u"?{man:R}:{},...typeof I<"u"?{directories:I}:{},...typeof P<"u"?{files:P}:{},...typeof L<"u"?{workspaces:L}:{},...typeof M<"u"?{scripts:M}:{},...typeof x<"u"?{config:x}:{},...typeof j<"u"?{dependencies:j}:{},...typeof U<"u"?{devDependencies:U}:{},...typeof V<"u"?{peerDependencies:V}:{},...typeof B<"u"?{peerDependenciesMeta:B}:{},...typeof G<"u"?{optionalDependencies:G}:{},...typeof W<"u"?{bundledDependencies:W}:{},...typeof N<"u"?{bundleDependencies:N}:{},...typeof D<"u"?{engines:D}:{},...typeof T<"u"?{os:T}:{},...typeof C<"u"?{cpu:C}:{},...typeof Z<"u"?{publishConfig:Z}:{},...typeof X<"u"?{devEngines:X}:{},...typeof Q<"u"?{licenses:Q}:{},...typeof k<"u"?{overrides:k}:{},...F}}v(a,"packageSort"),r.exports={packageSort:a}}),ro=K((e,r)=>{var{readFile:a,writeFile:p}=require("node:fs/promises"),{resolve:n}=require("node:path"),c=Fc(),o=FS(),t=HS(),s=GS(),{normalize:i,syncNormalize:l}=YE(),{read:u,parse:h}=QE(),{packageSort:d}=eb(),g=new Set([o,t,s]),m=new Set([...o.knownKeys,"scripts","workspaces"]),f=class Gt{static{v(this,"PackageJson")}static fixSteps=Object.freeze(["binRefs","bundleDependencies","fixName","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin","binDir"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(S,E={}){let b=new Gt;return await b.create(S),E.data?b.update(E.data):b}static async load(S,E={}){let b=new Gt;if(!E.create)return b.load(S);try{return await b.load(S)}catch(_){if(!_.message.startsWith("Could not read package.json"))throw _;return await b.create(S)}}static async fix(S,E){let b=new Gt;return await b.load(S,!0),b.fix(E)}static async prepare(S,E){let b=new Gt;return await b.load(S,!0),b.prepare(E)}static async normalize(S,E){let b=new Gt;return await b.load(S),b.normalize(E)}#e;#t;#r="";#s=!0;async load(S,E){this.#e=S;let b;try{this.#r=await u(this.filename)}catch(_){if(!E)throw _;b=_}if(b){let _=n(this.path,"index.js"),w;try{w=await a(_,"utf8")}catch{throw b}try{this.fromComment(w)}catch{throw b}return this.#s=!1,this}return this.fromJSON(this.#r)}fromJSON(S){return this.#t=h(S),this}fromContent(S){if(!S||typeof S!="object")throw new Error("Content data must be an object");return this.#t=S,this.#s=!1,this}fromComment(S){if(S=S.split(/^\/\*\*package(?:\s|$)/m),S.length<2)throw new Error("File has no package in comments");if(S=S[1],S=S.split(/\*\*\/$/m),S.length<2)throw new Error("File has no package in comments");return S=S[0],S=S.replace(/^\s*\*/mg,""),this.#t=c(S),this}get content(){return this.#t}get path(){return this.#e}get filename(){if(this.path)return n(this.path,"package.json")}create(S){return this.#e=S,this.#t={},this}update(S){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let E of g)this.#t=E({content:S,originalContent:this.content});for(let[E,b]of Object.entries(S))m.has(E)||(this.content[E]=b);return this}async save({sort:S}={}){if(!this.#s)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:E,[Symbol.for("newline")]:b,..._}=this.content,w=E===void 0?" ":E,O=b===void 0?`
16
+ `:b,R=S?d(_):_,I=`${JSON.stringify(R,null,w)}
17
+ `.replace(/\n/g,O);if(I.trim()!==this.#r.trim()){let P=await p(this.filename,I);return this.#r=I,P}}syncNormalize(S={}){return S.steps=this.constructor.normalizeSteps.filter(E=>E!=="_attributes"),l(this,S),this}async normalize(S={}){return S.steps||(S.steps=this.constructor.normalizeSteps),await i(this,S),this}async prepare(S={}){return S.steps||(S.steps=this.constructor.prepareSteps),await i(this,S),this}async fix(S={}){return S.steps=this.constructor.fixSteps,await i(this,S),this}};r.exports=f}),mu=K((e,r)=>{var{Minipass:a}=Pe(),p=Symbol("_data"),n=Symbol("_length"),c=class extends a{static{v(this,"Collect")}constructor(t){super(t),this[p]=[],this[n]=0}write(t,s,i){typeof s=="function"&&(i=s,s="utf8"),s||(s="utf8");let l=Buffer.isBuffer(t)?t:Buffer.from(t,s);return this[p].push(l),this[n]+=l.length,i&&i(),!0}end(t,s,i){typeof t=="function"&&(i=t,t=null),typeof s=="function"&&(i=s,s="utf8"),t&&this.write(t,s);let l=Buffer.concat(this[p],this[n]);return super.write(l),super.end(i)}};r.exports=c;var o=class extends a{static{v(this,"CollectPassThrough")}constructor(t){super(t),this[p]=[],this[n]=0}write(t,s,i){typeof s=="function"&&(i=s,s="utf8"),s||(s="utf8");let l=Buffer.isBuffer(t)?t:Buffer.from(t,s);return this[p].push(l),this[n]+=l.length,super.write(t,s,i)}end(t,s,i){typeof t=="function"&&(i=t,t=null),typeof s=="function"&&(i=s,s="utf8"),t&&this.write(t,s);let l=Buffer.concat(this[p],this[n]);return this.emit("collect",l),super.end(i)}};r.exports.PassThrough=o}),so=K((e,r)=>{"use strict";var a=typeof process=="object"&&process?process:{stdout:null,stderr:null},p=require("events"),n=require("stream"),c=require("string_decoder").StringDecoder,o=Symbol("EOF"),t=Symbol("maybeEmitEnd"),s=Symbol("emittedEnd"),i=Symbol("emittingEnd"),l=Symbol("emittedError"),u=Symbol("closed"),h=Symbol("read"),d=Symbol("flush"),g=Symbol("flushChunk"),m=Symbol("encoding"),f=Symbol("decoder"),y=Symbol("flowing"),S=Symbol("paused"),E=Symbol("resume"),b=Symbol("bufferLength"),_=Symbol("bufferPush"),w=Symbol("bufferShift"),O=Symbol("objectMode"),R=Symbol("destroyed"),I=Symbol("emitData"),P=Symbol("emitEnd"),L=Symbol("emitEnd2"),M=Symbol("async"),x=v(T=>Promise.resolve().then(T),"defer"),j=global._MP_NO_ITERATOR_SYMBOLS_!=="1",U=j&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),V=j&&Symbol.iterator||Symbol("iterator not implemented"),B=v(T=>T==="end"||T==="finish"||T==="prefinish","isEndish"),G=v(T=>T instanceof ArrayBuffer||typeof T=="object"&&T.constructor&&T.constructor.name==="ArrayBuffer"&&T.byteLength>=0,"isArrayBuffer"),W=v(T=>!Buffer.isBuffer(T)&&ArrayBuffer.isView(T),"isArrayBufferView"),N=class{static{v(this,"Pipe")}constructor(T,C,Z){this.src=T,this.dest=C,this.opts=Z,this.ondrain=()=>T[E](),C.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},D=class extends N{static{v(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(T,C,Z){super(T,C,Z),this.proxyErrors=X=>C.emit("error",X),T.on("error",this.proxyErrors)}};r.exports=class yu extends n{static{v(this,"Minipass")}constructor(C){super(),this[y]=!1,this[S]=!1,this.pipes=[],this.buffer=[],this[O]=C&&C.objectMode||!1,this[O]?this[m]=null:this[m]=C&&C.encoding||null,this[m]==="buffer"&&(this[m]=null),this[M]=C&&!!C.async||!1,this[f]=this[m]?new c(this[m]):null,this[o]=!1,this[s]=!1,this[i]=!1,this[u]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[b]=0,this[R]=!1}get bufferLength(){return this[b]}get encoding(){return this[m]}set encoding(C){if(this[O])throw new Error("cannot set encoding in objectMode");if(this[m]&&C!==this[m]&&(this[f]&&this[f].lastNeed||this[b]))throw new Error("cannot change encoding");this[m]!==C&&(this[f]=C?new c(C):null,this.buffer.length&&(this.buffer=this.buffer.map(Z=>this[f].write(Z)))),this[m]=C}setEncoding(C){this.encoding=C}get objectMode(){return this[O]}set objectMode(C){this[O]=this[O]||!!C}get async(){return this[M]}set async(C){this[M]=this[M]||!!C}write(C,Z,X){if(this[o])throw new Error("write after end");if(this[R])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Z=="function"&&(X=Z,Z="utf8"),Z||(Z="utf8");let Q=this[M]?x:k=>k();return!this[O]&&!Buffer.isBuffer(C)&&(W(C)?C=Buffer.from(C.buffer,C.byteOffset,C.byteLength):G(C)?C=Buffer.from(C):typeof C!="string"&&(this.objectMode=!0)),this[O]?(this.flowing&&this[b]!==0&&this[d](!0),this.flowing?this.emit("data",C):this[_](C),this[b]!==0&&this.emit("readable"),X&&Q(X),this.flowing):C.length?(typeof C=="string"&&!(Z===this[m]&&!this[f].lastNeed)&&(C=Buffer.from(C,Z)),Buffer.isBuffer(C)&&this[m]&&(C=this[f].write(C)),this.flowing&&this[b]!==0&&this[d](!0),this.flowing?this.emit("data",C):this[_](C),this[b]!==0&&this.emit("readable"),X&&Q(X),this.flowing):(this[b]!==0&&this.emit("readable"),X&&Q(X),this.flowing)}read(C){if(this[R])return null;if(this[b]===0||C===0||C>this[b])return this[t](),null;this[O]&&(C=null),this.buffer.length>1&&!this[O]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[b])]);let Z=this[h](C||null,this.buffer[0]);return this[t](),Z}[h](C,Z){return C===Z.length||C===null?this[w]():(this.buffer[0]=Z.slice(C),Z=Z.slice(0,C),this[b]-=C),this.emit("data",Z),!this.buffer.length&&!this[o]&&this.emit("drain"),Z}end(C,Z,X){return typeof C=="function"&&(X=C,C=null),typeof Z=="function"&&(X=Z,Z="utf8"),C&&this.write(C,Z),X&&this.once("end",X),this[o]=!0,this.writable=!1,(this.flowing||!this[S])&&this[t](),this}[E](){this[R]||(this[S]=!1,this[y]=!0,this.emit("resume"),this.buffer.length?this[d]():this[o]?this[t]():this.emit("drain"))}resume(){return this[E]()}pause(){this[y]=!1,this[S]=!0}get destroyed(){return this[R]}get flowing(){return this[y]}get paused(){return this[S]}[_](C){this[O]?this[b]+=1:this[b]+=C.length,this.buffer.push(C)}[w](){return this.buffer.length&&(this[O]?this[b]-=1:this[b]-=this.buffer[0].length),this.buffer.shift()}[d](C){do;while(this[g](this[w]()));!C&&!this.buffer.length&&!this[o]&&this.emit("drain")}[g](C){return C?(this.emit("data",C),this.flowing):!1}pipe(C,Z){if(this[R])return;let X=this[s];return Z=Z||{},C===a.stdout||C===a.stderr?Z.end=!1:Z.end=Z.end!==!1,Z.proxyErrors=!!Z.proxyErrors,X?Z.end&&C.end():(this.pipes.push(Z.proxyErrors?new D(this,C,Z):new N(this,C,Z)),this[M]?x(()=>this[E]()):this[E]()),C}unpipe(C){let Z=this.pipes.find(X=>X.dest===C);Z&&(this.pipes.splice(this.pipes.indexOf(Z),1),Z.unpipe())}addListener(C,Z){return this.on(C,Z)}on(C,Z){let X=super.on(C,Z);return C==="data"&&!this.pipes.length&&!this.flowing?this[E]():C==="readable"&&this[b]!==0?super.emit("readable"):B(C)&&this[s]?(super.emit(C),this.removeAllListeners(C)):C==="error"&&this[l]&&(this[M]?x(()=>Z.call(this,this[l])):Z.call(this,this[l])),X}get emittedEnd(){return this[s]}[t](){!this[i]&&!this[s]&&!this[R]&&this.buffer.length===0&&this[o]&&(this[i]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[u]&&this.emit("close"),this[i]=!1)}emit(C,Z,...X){if(C!=="error"&&C!=="close"&&C!==R&&this[R])return;if(C==="data")return Z?this[M]?x(()=>this[I](Z)):this[I](Z):!1;if(C==="end")return this[P]();if(C==="close"){if(this[u]=!0,!this[s]&&!this[R])return;let k=super.emit("close");return this.removeAllListeners("close"),k}else if(C==="error"){this[l]=Z;let k=super.emit("error",Z);return this[t](),k}else if(C==="resume"){let k=super.emit("resume");return this[t](),k}else if(C==="finish"||C==="prefinish"){let k=super.emit(C);return this.removeAllListeners(C),k}let Q=super.emit(C,Z,...X);return this[t](),Q}[I](C){for(let X of this.pipes)X.dest.write(C)===!1&&this.pause();let Z=super.emit("data",C);return this[t](),Z}[P](){this[s]||(this[s]=!0,this.readable=!1,this[M]?x(()=>this[L]()):this[L]())}[L](){if(this[f]){let Z=this[f].end();if(Z){for(let X of this.pipes)X.dest.write(Z);super.emit("data",Z)}}for(let Z of this.pipes)Z.end();let C=super.emit("end");return this.removeAllListeners("end"),C}collect(){let C=[];this[O]||(C.dataLength=0);let Z=this.promise();return this.on("data",X=>{C.push(X),this[O]||(C.dataLength+=X.length)}),Z.then(()=>C)}concat(){return this[O]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(C=>this[O]?Promise.reject(new Error("cannot concat in objectMode")):this[m]?C.join(""):Buffer.concat(C,C.dataLength))}promise(){return new Promise((C,Z)=>{this.on(R,()=>Z(new Error("stream destroyed"))),this.on("error",X=>Z(X)),this.on("end",()=>C())})}[U](){return{next:v(()=>{let C=this.read();if(C!==null)return Promise.resolve({done:!1,value:C});if(this[o])return Promise.resolve({done:!0});let Z=null,X=null,Q=v($=>{this.removeListener("data",k),this.removeListener("end",F),X($)},"onerr"),k=v($=>{this.removeListener("error",Q),this.removeListener("end",F),this.pause(),Z({value:$,done:!!this[o]})},"ondata"),F=v(()=>{this.removeListener("error",Q),this.removeListener("data",k),Z({done:!0})},"onend"),z=v(()=>Q(new Error("stream destroyed")),"ondestroy");return new Promise(($,q)=>{X=q,Z=$,this.once(R,z),this.once("error",Q),this.once("end",F),this.once("data",k)})},"next")}}[V](){return{next:v(()=>{let C=this.read();return{value:C,done:C===null}},"next")}}destroy(C){return this[R]?(C?this.emit("error",C):this.emit(R),this):(this[R]=!0,this.buffer.length=0,this[b]=0,typeof this.close=="function"&&!this[u]&&this.close(),C?this.emit("error",C):this.emit(R),this)}static isStream(C){return!!C&&(C instanceof yu||C instanceof n||C instanceof p&&(typeof C.pipe=="function"||typeof C.write=="function"&&typeof C.end=="function"))}}}),Or=K((e,r)=>{var a=so(),p=require("events"),n=v(f=>f&&f instanceof p&&(typeof f.pipe=="function"||typeof f.write=="function"&&typeof f.end=="function"),"isStream"),c=Symbol("_head"),o=Symbol("_tail"),t=Symbol("_linkStreams"),s=Symbol("_setHead"),i=Symbol("_setTail"),l=Symbol("_onError"),u=Symbol("_onData"),h=Symbol("_onEnd"),d=Symbol("_onDrain"),g=Symbol("_streams"),m=class extends a{static{v(this,"Pipeline")}constructor(f,...y){n(f)&&(y.unshift(f),f={}),super(f),this[g]=[],y.length&&this.push(...y)}[t](f){return f.reduce((y,S)=>(y.on("error",E=>S.emit("error",E)),y.pipe(S),S))}push(...f){this[g].push(...f),this[o]&&f.unshift(this[o]);let y=this[t](f);this[i](y),this[c]||this[s](f[0])}unshift(...f){this[g].unshift(...f),this[c]&&f.push(this[c]);let y=this[t](f);this[s](f[0]),this[o]||this[i](y)}destroy(f){return this[g].forEach(y=>typeof y.destroy=="function"&&y.destroy()),super.destroy(f)}[i](f){this[o]=f,f.on("error",y=>this[l](f,y)),f.on("data",y=>this[u](f,y)),f.on("end",()=>this[h](f)),f.on("finish",()=>this[h](f))}[l](f,y){f===this[o]&&this.emit("error",y)}[u](f,y){f===this[o]&&super.write(y)}[h](f){f===this[o]&&super.end()}pause(){return super.pause(),this[o]&&this[o].pause&&this[o].pause()}emit(f,...y){return f==="resume"&&this[o]&&this[o].resume&&this[o].resume(),super.emit(f,...y)}[s](f){this[c]=f,f.on("drain",()=>this[d](f))}[d](f){f===this[c]&&this.emit("drain")}write(f,y,S){return this[c].write(f,y,S)&&(this.flowing||this.buffer.length===0)}end(f,y,S){return this[c].end(f,y,S),this}};r.exports=m}),vt=K((e,r)=>{"use strict";var a=require("crypto"),{Minipass:p}=Pe(),n=["sha512","sha384","sha256"],c=["sha512"],o=/^[a-z0-9+/]+(?:=?=?)$/i,t=/^([a-z0-9]+)-([^?]+)([?\S*]*)$/,s=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/,i=/^[\x21-\x7E]+$/,l=v(M=>M?.length?`?${M.join("?")}`:"","getOptString"),u=class extends p{static{v(this,"IntegrityStream")}#e;#t;#r;constructor(M){super(),this.size=0,this.opts=M,this.#s(),M?.algorithms?this.algorithms=[...M.algorithms]:this.algorithms=[...c],this.algorithm!==null&&!this.algorithms.includes(this.algorithm)&&this.algorithms.push(this.algorithm),this.hashes=this.algorithms.map(a.createHash)}#s(){this.sri=this.opts?.integrity?m(this.opts?.integrity,this.opts):null,this.expectedSize=this.opts?.size,this.sri?this.sri.isHash?(this.goodSri=!0,this.algorithm=this.sri.algorithm):(this.goodSri=!this.sri.isEmpty(),this.algorithm=this.sri.pickAlgorithm(this.opts)):this.algorithm=null,this.digests=this.goodSri?this.sri[this.algorithm]:null,this.optString=l(this.opts?.options)}on(M,x){return M==="size"&&this.#t?x(this.#t):M==="integrity"&&this.#e?x(this.#e):M==="verified"&&this.#r?x(this.#r):super.on(M,x)}emit(M,x){return M==="end"&&this.#i(),super.emit(M,x)}write(M){return this.size+=M.length,this.hashes.forEach(x=>x.update(M)),super.write(M)}#i(){this.goodSri||this.#s();let M=m(this.hashes.map((j,U)=>`${this.algorithms[U]}-${j.digest("base64")}${this.optString}`).join(" "),this.opts),x=this.goodSri&&M.match(this.sri,this.opts);if(typeof this.expectedSize=="number"&&this.size!==this.expectedSize){let j=new Error(`stream size mismatch when checking ${this.sri}.
18
+ Wanted: ${this.expectedSize}
19
+ Found: ${this.size}`);j.code="EBADSIZE",j.found=this.size,j.expected=this.expectedSize,j.sri=this.sri,this.emit("error",j)}else if(this.sri&&!x){let j=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${M}. (${this.size} bytes)`);j.code="EINTEGRITY",j.found=M,j.expected=this.digests,j.algorithm=this.algorithm,j.sri=this.sri,this.emit("error",j)}else this.#t=this.size,this.emit("size",this.size),this.#e=M,this.emit("integrity",M),x&&(this.#r=x,this.emit("verified",x))}},h=class{static{v(this,"Hash")}get isHash(){return!0}constructor(M,x){let j=x?.strict;this.source=M.trim(),this.digest="",this.algorithm="",this.options=[];let U=this.source.match(j?s:t);if(!U||j&&!n.includes(U[1]))return;this.algorithm=U[1],this.digest=U[2];let V=U[3];V&&(this.options=V.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(M,x){let j=m(M,x);if(!j)return!1;if(j.isIntegrity){let U=j.pickAlgorithm(x,[this.algorithm]);return U&&j[U].find(B=>B.digest===this.digest)||!1}return j.digest===this.digest?j:!1}toString(M){return M?.strict&&!(n.includes(this.algorithm)&&this.digest.match(o)&&this.options.every(x=>x.match(i)))?"":`${this.algorithm}-${this.digest}${l(this.options)}`}};function d(M,x,j,U){let V=M!=="",B=!1,G="",W=U.length-1;for(let D=0;D<W;D++){let T=h.prototype.toString.call(U[D],j);T&&(B=!0,G+=T,G+=x)}let N=h.prototype.toString.call(U[W],j);return N&&(B=!0,G+=N),V&&B?M+x+G:M+G}v(d,"integrityHashToString");var g=class{static{v(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(M){let x=M?.sep||" ",j="";if(M?.strict){x=x.replace(/\S+/g," ");for(let U of n)this[U]&&(j=d(j,x,M,this[U]))}else for(let U of Object.keys(this))j=d(j,x,M,this[U]);return j}concat(M,x){let j=typeof M=="string"?M:y(M,x);return m(`${this.toString(x)} ${j}`,x)}hexDigest(){return m(this,{single:!0}).hexDigest()}merge(M,x){let j=m(M,x);for(let U in j)if(this[U]){if(!this[U].find(V=>j[U].find(B=>V.digest===B.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[U]=j[U]}match(M,x){let j=m(M,x);if(!j)return!1;let U=j.pickAlgorithm(x,Object.keys(this));return!!U&&this[U]&&j[U]&&this[U].find(V=>j[U].find(B=>V.digest===B.digest))||!1}pickAlgorithm(M,x){let j=M?.pickAlgorithm||L,U=Object.keys(this).filter(V=>x?.length?x.includes(V):!0);return U.length?U.reduce((V,B)=>j(V,B)||V):null}};r.exports.parse=m;function m(M,x){if(!M)return null;if(typeof M=="string")return f(M,x);if(M.algorithm&&M.digest){let j=new g;return j[M.algorithm]=[M],f(y(j,x),x)}else return f(y(M,x),x)}v(m,"parse");function f(M,x){if(x?.single)return new h(M,x);let j=M.trim().split(/\s+/).reduce((U,V)=>{let B=new h(V,x);if(B.algorithm&&B.digest){let G=B.algorithm;U[G]||(U[G]=[]),U[G].push(B)}return U},new g);return j.isEmpty()?null:j}v(f,"_parse"),r.exports.stringify=y;function y(M,x){return M.algorithm&&M.digest?h.prototype.toString.call(M,x):typeof M=="string"?y(m(M,x),x):g.prototype.toString.call(M,x)}v(y,"stringify"),r.exports.fromHex=S;function S(M,x,j){let U=l(j?.options);return m(`${x}-${Buffer.from(M,"hex").toString("base64")}${U}`,j)}v(S,"fromHex"),r.exports.fromData=E;function E(M,x){let j=x?.algorithms||[...c],U=l(x?.options);return j.reduce((V,B)=>{let G=a.createHash(B).update(M).digest("base64"),W=new h(`${B}-${G}${U}`,x);if(W.algorithm&&W.digest){let N=W.algorithm;V[N]||(V[N]=[]),V[N].push(W)}return V},new g)}v(E,"fromData"),r.exports.fromStream=b;function b(M,x){let j=O(x);return new Promise((U,V)=>{M.pipe(j),M.on("error",V),j.on("error",V);let B;j.on("integrity",G=>{B=G}),j.on("end",()=>U(B)),j.resume()})}v(b,"fromStream"),r.exports.checkData=_;function _(M,x,j){if(x=m(x,j),!x||!Object.keys(x).length){if(j?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let U=x.pickAlgorithm(j),V=a.createHash(U).update(M).digest("base64"),B=m({algorithm:U,digest:V}),G=B.match(x,j);if(j=j||{},G||!j.error)return G;if(typeof j.size=="number"&&M.length!==j.size){let W=new Error(`data size mismatch when checking ${x}.
20
+ Wanted: ${j.size}
21
+ Found: ${M.length}`);throw W.code="EBADSIZE",W.found=M.length,W.expected=j.size,W.sri=x,W}else{let W=new Error(`Integrity checksum failed when using ${U}: Wanted ${x}, but got ${B}. (${M.length} bytes)`);throw W.code="EINTEGRITY",W.found=B,W.expected=x,W.algorithm=U,W.sri=x,W}}v(_,"checkData"),r.exports.checkStream=w;function w(M,x,j){if(j=j||Object.create(null),j.integrity=x,x=m(x,j),!x||!Object.keys(x).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let U=O(j);return new Promise((V,B)=>{M.pipe(U),M.on("error",B),U.on("error",B);let G;U.on("verified",W=>{G=W}),U.on("end",()=>V(G)),U.resume()})}v(w,"checkStream"),r.exports.integrityStream=O;function O(M=Object.create(null)){return new u(M)}v(O,"integrityStream"),r.exports.create=R;function R(M){let x=M?.algorithms||[...c],j=l(M?.options),U=x.map(a.createHash);return{update:v(function(V,B){return U.forEach(G=>G.update(V,B)),this},"update"),digest:v(function(){return x.reduce((V,B)=>{let G=U.shift().digest("base64"),W=new h(`${B}-${G}${j}`,M);if(W.algorithm&&W.digest){let N=W.algorithm;V[N]||(V[N]=[]),V[N].push(W)}return V},new g)},"digest")}}v(R,"createIntegrity");var I=a.getHashes(),P=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(M=>I.includes(M));function L(M,x){return P.indexOf(M.toLowerCase())>=P.indexOf(x.toLowerCase())?M:x}v(L,"getPrioritizedHash")}),tb=K((e,r)=>{(function(){var a;function p(n,c){var o=this instanceof p?this:a;if(o.reset(c),typeof n=="string"&&n.length>0&&o.hash(n),o!==this)return o}v(p,"MurmurHash3"),p.prototype.hash=function(n){var c,o,t,s,i;switch(i=n.length,this.len+=i,o=this.k1,t=0,this.rem){case 0:o^=i>t?n.charCodeAt(t++)&65535:0;case 1:o^=i>t?(n.charCodeAt(t++)&65535)<<8:0;case 2:o^=i>t?(n.charCodeAt(t++)&65535)<<16:0;case 3:o^=i>t?(n.charCodeAt(t)&255)<<24:0,o^=i>t?(n.charCodeAt(t++)&65280)>>8:0}if(this.rem=i+this.rem&3,i-=this.rem,i>0){for(c=this.h1;o=o*11601+(o&65535)*3432906752&4294967295,o=o<<15|o>>>17,o=o*13715+(o&65535)*461832192&4294967295,c^=o,c=c<<13|c>>>19,c=c*5+3864292196&4294967295,!(t>=i);)o=n.charCodeAt(t++)&65535^(n.charCodeAt(t++)&65535)<<8^(n.charCodeAt(t++)&65535)<<16,s=n.charCodeAt(t++),o^=(s&255)<<24^(s&65280)>>8;switch(o=0,this.rem){case 3:o^=(n.charCodeAt(t+2)&65535)<<16;case 2:o^=(n.charCodeAt(t+1)&65535)<<8;case 1:o^=n.charCodeAt(t)&65535}this.h1=c}return this.k1=o,this},p.prototype.result=function(){var n,c;return n=this.k1,c=this.h1,n>0&&(n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,c^=n),c^=this.len,c^=c>>>16,c=c*51819+(c&65535)*2246770688&4294967295,c^=c>>>13,c=c*44597+(c&65535)*3266445312&4294967295,c^=c>>>16,c>>>0},p.prototype.reset=function(n){return this.h1=typeof n=="number"?n:0,this.rem=this.k1=this.len=0,this},a=new p,typeof r<"u"?r.exports=p:this.MurmurHash3=p})()}),rb=K((e,r)=>{"use strict";var a=tb();r.exports=function(p){if(p){var n=new a(p);return("00000000"+n.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}}),vu=K((e,r)=>{var a=require("path"),p=rb();r.exports=function(n,c,o){return a.join(n,(c?c+"-":"")+p(o))}}),Su=K((e,r)=>{r.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license:"ISC",dependencies:{"@npmcli/fs":"^4.0.0","fs-minipass":"^3.0.0",glob:"^11.0.3","lru-cache":"^11.1.0",minipass:"^7.0.3","minipass-collect":"^2.0.1","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4","p-map":"^7.0.2",ssri:"^12.0.0","unique-filename":"^4.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",windowsCI:!1,version:"4.25.0",publish:"true"},author:"GitHub Inc.",tap:{"nyc-arg":["--exclude","tap-snapshots/**"]}}}),Eu=K((e,r)=>{"use strict";r.exports=a;function a(p){return[p.slice(0,2),p.slice(2,4),p.slice(4)]}v(a,"hashToSegments")}),Ar=K((e,r)=>{"use strict";var a=Su()["cache-version"].content,p=Eu(),n=require("path"),c=vt();r.exports=o;function o(s,i){let l=c.parse(i,{single:!0});return n.join(t(s),l.algorithm,...p(l.hexDigest()))}v(o,"contentPath"),r.exports.contentDir=t;function t(s){return n.join(s,`content-v${a}`)}v(t,"contentDir")}),bu=K((e,r)=>{var a=v((p,{copy:n,wrap:c})=>{let o={};if(p&&typeof p=="object")for(let t of n)p[t]!==void 0&&(o[t]=p[t]);else o[c]=p;return o},"getOptions");r.exports=a}),sb=K((e,r)=>{var a=Jt(),p=v(n=>a.satisfies(process.version,n,{includePrerelease:!0}),"satisfies");r.exports={satisfies:p}}),ib=K((e,r)=>{"use strict";var{inspect:a}=require("util"),p=class{static{v(this,"SystemError")}constructor(c,o,t){let s=`${o}: ${t.syscall} returned ${t.code} (${t.message})`;t.path!==void 0&&(s+=` ${t.path}`),t.dest!==void 0&&(s+=` => ${t.dest}`),this.code=c,Object.defineProperties(this,{name:{value:"SystemError",enumerable:!1,writable:!0,configurable:!0},message:{value:s,enumerable:!1,writable:!0,configurable:!0},info:{value:t,enumerable:!0,configurable:!0,writable:!1},errno:{get(){return t.errno},set(i){t.errno=i},enumerable:!0,configurable:!0},syscall:{get(){return t.syscall},set(i){t.syscall=i},enumerable:!0,configurable:!0}}),t.path!==void 0&&Object.defineProperty(this,"path",{get(){return t.path},set(i){t.path=i},enumerable:!0,configurable:!0}),t.dest!==void 0&&Object.defineProperty(this,"dest",{get(){return t.dest},set(i){t.dest=i},enumerable:!0,configurable:!0})}toString(){return`${this.name} [${this.code}]: ${this.message}`}[Symbol.for("nodejs.util.inspect.custom")](c,o){return a(this,{...o,getters:!0,customInspect:!1})}};function n(c,o){r.exports[c]=class extends p{static{v(this,"NodeError")}constructor(t){super(c,o,t)}}}v(n,"E"),n("ERR_FS_CP_DIR_TO_NON_DIR","Cannot overwrite directory with non-directory"),n("ERR_FS_CP_EEXIST","Target already exists"),n("ERR_FS_CP_EINVAL","Invalid src or dest"),n("ERR_FS_CP_FIFO_PIPE","Cannot copy a FIFO pipe"),n("ERR_FS_CP_NON_DIR_TO_DIR","Cannot overwrite non-directory with directory"),n("ERR_FS_CP_SOCKET","Cannot copy a socket file"),n("ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY","Cannot overwrite symlink in subdirectory of self"),n("ERR_FS_CP_UNKNOWN","Cannot copy an unknown file type"),n("ERR_FS_EISDIR","Path is a directory"),r.exports.ERR_INVALID_ARG_TYPE=class extends Error{static{v(this,"ERR_INVALID_ARG_TYPE")}constructor(c,o,t){super(),this.code="ERR_INVALID_ARG_TYPE",this.message=`The ${c} argument must be ${o}. Received ${typeof t}`}}}),nb=K((e,r)=>{"use strict";var{ERR_FS_CP_DIR_TO_NON_DIR:a,ERR_FS_CP_EEXIST:p,ERR_FS_CP_EINVAL:n,ERR_FS_CP_FIFO_PIPE:c,ERR_FS_CP_NON_DIR_TO_DIR:o,ERR_FS_CP_SOCKET:t,ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY:s,ERR_FS_CP_UNKNOWN:i,ERR_FS_EISDIR:l,ERR_INVALID_ARG_TYPE:u}=ib(),{constants:{errno:{EEXIST:h,EISDIR:d,EINVAL:g,ENOTDIR:m}}}=require("os"),{chmod:f,copyFile:y,lstat:S,mkdir:E,readdir:b,readlink:_,stat:w,symlink:O,unlink:R,utimes:I}=require("fs/promises"),{dirname:P,isAbsolute:L,join:M,parse:x,resolve:j,sep:U,toNamespacedPath:V}=require("path"),{fileURLToPath:B}=require("url"),G={dereference:!1,errorOnExist:!1,filter:void 0,force:!0,preserveTimestamps:!1,recursive:!1};async function W(ce,pe,de){if(de!=null&&typeof de!="object")throw new u("options",["Object"],de);return D(V(N(ce)),V(N(pe)),{...G,...de})}v(W,"cp");function N(ce){return ce!=null&&ce.href&&ce.origin?B(ce):ce}v(N,"getValidatedPath");async function D(ce,pe,de){de.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning("Using the preserveTimestamps option in 32-bit node is not recommended","TimestampPrecisionWarning");let ye=await T(ce,pe,de),{srcStat:Ee,destStat:Ie}=ye;return await k(ce,Ee,pe),de.filter?$(X,Ie,ce,pe,de):X(Ie,ce,pe,de)}v(D,"cpFn");async function T(ce,pe,de){let{0:ye,1:Ee}=await Z(ce,pe,de);if(Ee){if(C(ye,Ee))throw new n({message:"src and dest cannot be the same",path:pe,syscall:"cp",errno:g});if(ye.isDirectory()&&!Ee.isDirectory())throw new a({message:`cannot overwrite directory ${ce} with non-directory ${pe}`,path:pe,syscall:"cp",errno:d});if(!ye.isDirectory()&&Ee.isDirectory())throw new o({message:`cannot overwrite non-directory ${ce} with directory ${pe}`,path:pe,syscall:"cp",errno:m})}if(ye.isDirectory()&&z(ce,pe))throw new n({message:`cannot copy ${ce} to a subdirectory of self ${pe}`,path:pe,syscall:"cp",errno:g});return{srcStat:ye,destStat:Ee}}v(T,"checkPaths");function C(ce,pe){return pe.ino&&pe.dev&&pe.ino===ce.ino&&pe.dev===ce.dev}v(C,"areIdentical");function Z(ce,pe,de){let ye=de.dereference?Ee=>w(Ee,{bigint:!0}):Ee=>S(Ee,{bigint:!0});return Promise.all([ye(ce),ye(pe).catch(Ee=>{if(Ee.code==="ENOENT")return null;throw Ee})])}v(Z,"getStats");async function X(ce,pe,de,ye){let Ee=P(de);return await Q(Ee)||await E(Ee,{recursive:!0}),J(ce,pe,de,ye)}v(X,"checkParentDir");function Q(ce){return w(ce).then(()=>!0,pe=>pe.code==="ENOENT"?!1:Promise.reject(pe))}v(Q,"pathExists");async function k(ce,pe,de){let ye=j(P(ce)),Ee=j(P(de));if(Ee===ye||Ee===x(Ee).root)return;let Ie;try{Ie=await w(Ee,{bigint:!0})}catch(Be){if(Be.code==="ENOENT")return;throw Be}if(C(pe,Ie))throw new n({message:`cannot copy ${ce} to a subdirectory of self ${de}`,path:de,syscall:"cp",errno:g});return k(ce,pe,Ee)}v(k,"checkParentPaths");var F=v(ce=>j(ce).split(U).filter(Boolean),"normalizePathToArray");function z(ce,pe){let de=F(ce),ye=F(pe);return de.every((Ee,Ie)=>ye[Ie]===Ee)}v(z,"isSrcSubdir");async function $(ce,pe,de,ye,Ee,Ie){if(await Ee.filter(de,ye))return ce(pe,de,ye,Ee,Ie)}v($,"handleFilter");function q(ce,pe,de,ye){return ye.filter?$(J,ce,pe,de,ye):J(ce,pe,de,ye)}v(q,"startCopy");async function J(ce,pe,de,ye){let Ee=await(ye.dereference?w:S)(pe);if(Ee.isDirectory()&&ye.recursive)return ue(Ee,ce,pe,de,ye);if(Ee.isDirectory())throw new l({message:`${pe} is a directory (not copied)`,path:pe,syscall:"cp",errno:g});if(Ee.isFile()||Ee.isCharacterDevice()||Ee.isBlockDevice())return Y(Ee,ce,pe,de,ye);if(Ee.isSymbolicLink())return fe(ce,pe,de);throw Ee.isSocket()?new t({message:`cannot copy a socket file: ${de}`,path:de,syscall:"cp",errno:g}):Ee.isFIFO()?new c({message:`cannot copy a FIFO pipe: ${de}`,path:de,syscall:"cp",errno:g}):new i({message:`cannot copy an unknown file type: ${de}`,path:de,syscall:"cp",errno:g})}v(J,"getStatsForCopy");function Y(ce,pe,de,ye,Ee){return pe?A(ce,de,ye,Ee):H(ce,de,ye,Ee)}v(Y,"onFile");async function A(ce,pe,de,ye){if(ye.force)return await R(de),H(ce,pe,de,ye);if(ye.errorOnExist)throw new p({message:`${de} already exists`,path:de,syscall:"cp",errno:h})}v(A,"mayCopyFile");async function H(ce,pe,de,ye){return await y(pe,de),ye.preserveTimestamps?ee(ce.mode,pe,de):he(de,ce.mode)}v(H,"_copyFile");async function ee(ce,pe,de){return ne(ce)&&await te(de,ce),ae(ce,pe,de)}v(ee,"handleTimestampsAndMode");function ne(ce){return(ce&128)===0}v(ne,"fileIsNotWritable");function te(ce,pe){return he(ce,pe|128)}v(te,"makeFileWritable");async function ae(ce,pe,de){return await re(pe,de),he(de,ce)}v(ae,"setDestTimestampsAndMode");function he(ce,pe){return f(ce,pe)}v(he,"setDestMode");async function re(ce,pe){let de=await w(ce);return I(pe,de.atime,de.mtime)}v(re,"setDestTimestamps");function ue(ce,pe,de,ye,Ee){return pe?le(de,ye,Ee):ie(ce.mode,de,ye,Ee)}v(ue,"onDir");async function ie(ce,pe,de,ye){return await E(de),await le(pe,de,ye),he(de,ce)}v(ie,"mkDirAndCopy");async function le(ce,pe,de){let ye=await b(ce);for(let Ee=0;Ee<ye.length;Ee++){let Ie=ye[Ee],Be=M(ce,Ie),$t=M(pe,Ie),{destStat:Km}=await T(Be,$t,de);await q(Km,Be,$t,de)}}v(le,"copyDir");async function fe(ce,pe,de){let ye=await _(pe);if(L(ye)||(ye=j(P(pe),ye)),!ce)return O(ye,de);let Ee;try{Ee=await _(de)}catch(Ie){if(Ie.code==="EINVAL"||Ie.code==="UNKNOWN")return O(ye,de);throw Ie}if(L(Ee)||(Ee=j(P(de),Ee)),z(ye,Ee))throw new n({message:`cannot copy ${ye} to a subdirectory of self ${Ee}`,path:de,syscall:"cp",errno:g});if((await w(pe)).isDirectory()&&z(Ee,ye))throw new s({message:`cannot overwrite ${Ee} with ${ye}`,path:de,syscall:"cp",errno:g});return me(ye,de)}v(fe,"onLink");async function me(ce,pe){return await R(pe),O(ce,pe)}v(me,"copyLink"),r.exports=W}),ob=K((e,r)=>{var a=require("fs/promises"),p=bu(),n=sb(),c=nb(),o=n.satisfies(">=16.7.0"),t=v(async(s,i,l)=>{let u=p(l,{copy:["dereference","errorOnExist","filter","force","preserveTimestamps","recursive"]});return o?a.cp(s,i,u):c(s,i,u)},"cp");r.exports=t}),ab=K((e,r)=>{var{join:a,sep:p}=require("path"),n=bu(),{mkdir:c,mkdtemp:o,rm:t}=require("fs/promises"),s=v(async(i,l,u)=>{let h=n(u,{copy:["tmpPrefix"]});await c(i,{recursive:!0});let d=await o(a(`${i}${p}`,h.tmpPrefix||"")),g,m;try{m=await l(d)}catch(f){g=f}try{await t(d,{force:!0,recursive:!0})}catch{}if(g)throw g;return m},"withTempDir");r.exports=s}),lb=K((e,r)=>{var{readdir:a}=require("fs/promises"),{join:p}=require("path"),n=v(async c=>{let o=[];for(let t of await a(c))if(t.startsWith("@"))for(let s of await a(p(c,t)))o.push(p(t,s));else o.push(t);return o},"readdirScoped");r.exports=n}),cb=K((e,r)=>{var{dirname:a,join:p,resolve:n,relative:c,isAbsolute:o}=require("path"),t=require("fs/promises"),s=v(async l=>{try{return await t.access(l),!0}catch(u){return u.code!=="ENOENT"}},"pathExists"),i=v(async(l,u,h={},d=!0,g=[])=>{if(!l||!u)throw new TypeError("`source` and `destination` file required");if(h={overwrite:!0,...h},!h.overwrite&&await s(u))throw new Error(`The destination file exists: ${u}`);await t.mkdir(a(u),{recursive:!0});try{await t.rename(l,u)}catch(m){if(m.code==="EXDEV"||m.code==="EPERM"){let f=await t.lstat(l);if(f.isDirectory()){let y=await t.readdir(l);await Promise.all(y.map(S=>i(p(l,S),p(u,S),h,!1,g)))}else f.isSymbolicLink()?g.push({source:l,destination:u}):await t.copyFile(l,u)}else throw m}d&&(await Promise.all(g.map(async({source:m,destination:f})=>{let y=await t.readlink(m);o(y)&&(y=n(f,c(m,y)));let S="file";try{S=await t.stat(n(a(m),y)),S.isDirectory()&&(S="junction")}catch{}await t.symlink(y,f,S)})),await t.rm(l,{recursive:!0,force:!0}))},"moveFile");r.exports=i}),io=K((e,r)=>{"use strict";var a=ob(),p=ab(),n=lb(),c=cb();r.exports={cp:a,withTempDir:p,readdirScoped:n,moveFile:c}}),Es={};US(Es,{default:()=>_u,pMapIterable:()=>wu,pMapSkip:()=>zt});async function _u(e,r,{concurrency:a=Number.POSITIVE_INFINITY,stopOnError:p=!0,signal:n}={}){return new Promise((c,o)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof r!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(a)&&a>=1||a===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${a}\` (${typeof a})`);let t=[],s=[],i=new Map,l=!1,u=!1,h=!1,d=0,g=0,m=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),f=v(()=>{E(n.reason)},"signalListener"),y=v(()=>{n?.removeEventListener("abort",f)},"cleanup"),S=v(_=>{c(_),y()},"resolve"),E=v(_=>{l=!0,u=!0,o(_),y()},"reject");n&&(n.aborted&&E(n.reason),n.addEventListener("abort",f,{once:!0}));let b=v(async()=>{if(u)return;let _=await m.next(),w=g;if(g++,_.done){if(h=!0,d===0&&!u){if(!p&&s.length>0){E(new AggregateError(s));return}if(u=!0,i.size===0){S(t);return}let O=[];for(let[R,I]of t.entries())i.get(R)!==zt&&O.push(I);S(O)}return}d++,(async()=>{try{let O=await _.value;if(u)return;let R=await r(O,w);R===zt&&i.set(w,R),t[w]=R,d--,await b()}catch(O){if(p)E(O);else{s.push(O),d--;try{await b()}catch(R){E(R)}}}})()},"next");(async()=>{for(let _=0;_<a;_++){try{await b()}catch(w){E(w);break}if(h||l)break}})()})}function wu(e,r,{concurrency:a=Number.POSITIVE_INFINITY,backpressure:p=a}={}){if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof r!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(a)&&a>=1||a===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${a}\` (${typeof a})`);if(!(Number.isSafeInteger(p)&&p>=a||p===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`backpressure\` to be an integer from \`concurrency\` (${a}) and up or \`Infinity\`, got \`${p}\` (${typeof p})`);return{async*[Symbol.asyncIterator](){let n=e[Symbol.asyncIterator]===void 0?e[Symbol.iterator]():e[Symbol.asyncIterator](),c=[],o=0,t=!1,s=0;function i(){if(t||!(o<a&&c.length<p))return;let l=(async()=>{let{done:u,value:h}=await n.next();if(u)return{done:!0};o++,i();try{let d=await r(await h,s++);if(o--,d===zt){let g=c.indexOf(l);g>0&&c.splice(g,1)}return i(),{done:!1,value:d}}catch(d){return t=!0,{error:d}}})();c.push(l)}for(v(i,"trySpawn"),i();c.length>0;){let{error:l,done:u,value:h}=await c[0];if(c.shift(),l)throw l;if(u)return;i(),h!==zt&&(yield h)}}}}var zt,On=BS(()=>{v(_u,"pMap"),v(wu,"pMapIterable"),zt=Symbol("skip")}),Rr=K((e,r)=>{"use strict";var a=require("crypto"),{appendFile:p,mkdir:n,readFile:c,readdir:o,rm:t,writeFile:s}=require("fs/promises"),{Minipass:i}=Pe(),l=require("path"),u=vt(),h=vu(),d=Ar(),g=Eu(),m=Su()["cache-version"].index,{moveFile:f}=io(),y=5;r.exports.NotFoundError=class extends Error{static{v(this,"NotFoundError")}constructor(B,G){super(`No cache entry for ${G} found in ${B}`),this.code="ENOENT",this.cache=B,this.key=G}},r.exports.compact=S;async function S(B,G,W,N={}){let D=L(B,G),T=await R(D),C=[];for(let z=T.length-1;z>=0;--z){let $=T[z];if($.integrity===null&&!N.validateEntry)break;(!N.validateEntry||N.validateEntry($)===!0)&&(C.length===0||!C.find(q=>W(q,$)))&&C.unshift($)}let Z=`
22
+ `+C.map(z=>{let $=JSON.stringify(z);return`${x($)} ${$}`}).join(`
23
+ `),X=v(async()=>{let z=h(l.join(B,"tmp"),N.tmpPrefix);return await n(l.dirname(z),{recursive:!0}),{target:z,moved:!1}},"setup"),Q=v(async z=>{if(!z.moved)return t(z.target,{recursive:!0,force:!0})},"teardown"),k=v(async z=>{await s(z.target,Z,{flag:"wx"}),await n(l.dirname(D),{recursive:!0}),await f(z.target,D),z.moved=!0},"write"),F=await X();try{await k(F)}finally{await Q(F)}return C.reverse().map(z=>U(B,z,!0))}v(S,"compact"),r.exports.insert=E;async function E(B,G,W,N={}){let{metadata:D,size:T,time:C}=N,Z=L(B,G),X={key:G,integrity:W&&u.stringify(W),time:C||Date.now(),size:T,metadata:D};try{await n(l.dirname(Z),{recursive:!0});let Q=JSON.stringify(X);await p(Z,`
24
+ ${x(Q)} ${Q}`)}catch(Q){if(Q.code==="ENOENT")return;throw Q}return U(B,X)}v(E,"insert"),r.exports.find=b;async function b(B,G){let W=L(B,G);try{return(await R(W)).reduce((N,D)=>D&&D.key===G?U(B,D):N,null)}catch(N){if(N.code==="ENOENT")return null;throw N}}v(b,"find"),r.exports.delete=_;function _(B,G,W={}){if(!W.removeFully)return E(B,G,null,W);let N=L(B,G);return t(N,{recursive:!0,force:!0})}v(_,"del"),r.exports.lsStream=w;function w(B){let G=P(B),W=new i({objectMode:!0});return Promise.resolve().then(async()=>{let{default:N}=await Promise.resolve().then(()=>(On(),Es)),D=await V(G);return await N(D,async T=>{let C=l.join(G,T),Z=await V(C);await N(Z,async X=>{let Q=l.join(C,X),k=await V(Q);await N(k,async F=>{let z=l.join(Q,F);try{let $=(await R(z)).reduce((q,J)=>(q.set(J.key,J),q),new Map);for(let q of $.values()){let J=U(B,q);J&&W.write(J)}}catch($){if($.code==="ENOENT")return;throw $}},{concurrency:y})},{concurrency:y})},{concurrency:y}),W.end(),W}).catch(N=>W.emit("error",N)),W}v(w,"lsStream"),r.exports.ls=O;async function O(B){return(await w(B).collect()).reduce((G,W)=>(G[W.key]=W,G),{})}v(O,"ls"),r.exports.bucketEntries=R;async function R(B,G){let W=await c(B,"utf8");return I(W,G)}v(R,"bucketEntries");function I(B){let G=[];return B.split(`
25
+ `).forEach(W=>{if(!W)return;let N=W.split(" ");if(!N[1]||x(N[1])!==N[0])return;let D;try{D=JSON.parse(N[1])}catch{}D&&G.push(D)}),G}v(I,"_bucketEntries"),r.exports.bucketDir=P;function P(B){return l.join(B,`index-v${m}`)}v(P,"bucketDir"),r.exports.bucketPath=L;function L(B,G){let W=M(G);return l.join.apply(l,[P(B)].concat(g(W)))}v(L,"bucketPath"),r.exports.hashKey=M;function M(B){return j(B,"sha256")}v(M,"hashKey"),r.exports.hashEntry=x;function x(B){return j(B,"sha1")}v(x,"hashEntry");function j(B,G){return a.createHash(G).update(B).digest("hex")}v(j,"hash");function U(B,G,W){return!G.integrity&&!W?null:{key:G.key,integrity:G.integrity,path:G.integrity?d(B,G.integrity):void 0,size:G.size,time:G.time,metadata:G.metadata}}v(U,"formatEntry");function V(B){return o(B).catch(G=>{if(G.code==="ENOENT"||G.code==="ENOTDIR")return[];throw G})}v(V,"readdirOrEmpty")}),Cs=K((e,r)=>{"use strict";var{LRUCache:a}=Kt(),p=new a({max:500,maxSize:50*1024*1024,ttl:180*1e3,sizeCalculation:v((u,h)=>h.startsWith("key:")?u.data.length:u.length,"sizeCalculation")});r.exports.clearMemoized=n;function n(){let u={};return p.forEach((h,d)=>{u[d]=h}),p.clear(),u}v(n,"clearMemoized"),r.exports.put=c;function c(u,h,d,g){l(g).set(`key:${u}:${h.key}`,{entry:h,data:d}),o(u,h.integrity,d,g)}v(c,"put"),r.exports.put.byDigest=o;function o(u,h,d,g){l(g).set(`digest:${u}:${h}`,d)}v(o,"putDigest"),r.exports.get=t;function t(u,h,d){return l(d).get(`key:${u}:${h}`)}v(t,"get"),r.exports.get.byDigest=s;function s(u,h,d){return l(d).get(`digest:${u}:${h}`)}v(s,"getDigest");var i=class{static{v(this,"ObjProxy")}constructor(u){this.obj=u}get(u){return this.obj[u]}set(u,h){this.obj[u]=h}};function l(u){return!u||!u.memoize?p:u.memoize.get&&u.memoize.set?u.memoize:typeof u.memoize=="object"?new i(u.memoize):p}v(l,"pickMem")}),Cr=K(e=>{"use strict";var{Minipass:r}=Pe(),a=require("events").EventEmitter,p=require("fs"),n=p.writev,c=Symbol("_autoClose"),o=Symbol("_close"),t=Symbol("_ended"),s=Symbol("_fd"),i=Symbol("_finished"),l=Symbol("_flags"),u=Symbol("_flush"),h=Symbol("_handleChunk"),d=Symbol("_makeBuf"),g=Symbol("_mode"),m=Symbol("_needDrain"),f=Symbol("_onerror"),y=Symbol("_onopen"),S=Symbol("_onread"),E=Symbol("_onwrite"),b=Symbol("_open"),_=Symbol("_path"),w=Symbol("_pos"),O=Symbol("_queue"),R=Symbol("_read"),I=Symbol("_readSize"),P=Symbol("_reading"),L=Symbol("_remain"),M=Symbol("_size"),x=Symbol("_write"),j=Symbol("_writing"),U=Symbol("_defaultFlag"),V=Symbol("_errored"),B=class extends r{static{v(this,"ReadStream")}constructor(D,T){if(T=T||{},super(T),this.readable=!0,this.writable=!1,typeof D!="string")throw new TypeError("path must be a string");this[V]=!1,this[s]=typeof T.fd=="number"?T.fd:null,this[_]=D,this[I]=T.readSize||16*1024*1024,this[P]=!1,this[M]=typeof T.size=="number"?T.size:1/0,this[L]=this[M],this[c]=typeof T.autoClose=="boolean"?T.autoClose:!0,typeof this[s]=="number"?this[R]():this[b]()}get fd(){return this[s]}get path(){return this[_]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[b](){p.open(this[_],"r",(D,T)=>this[y](D,T))}[y](D,T){D?this[f](D):(this[s]=T,this.emit("open",T),this[R]())}[d](){return Buffer.allocUnsafe(Math.min(this[I],this[L]))}[R](){if(!this[P]){this[P]=!0;let D=this[d]();if(D.length===0)return process.nextTick(()=>this[S](null,0,D));p.read(this[s],D,0,D.length,null,(T,C,Z)=>this[S](T,C,Z))}}[S](D,T,C){this[P]=!1,D?this[f](D):this[h](T,C)&&this[R]()}[o](){if(this[c]&&typeof this[s]=="number"){let D=this[s];this[s]=null,p.close(D,T=>T?this.emit("error",T):this.emit("close"))}}[f](D){this[P]=!0,this[o](),this.emit("error",D)}[h](D,T){let C=!1;return this[L]-=D,D>0&&(C=super.write(D<T.length?T.slice(0,D):T)),(D===0||this[L]<=0)&&(C=!1,this[o](),super.end()),C}emit(D,T){switch(D){case"prefinish":case"finish":break;case"drain":typeof this[s]=="number"&&this[R]();break;case"error":return this[V]?void 0:(this[V]=!0,super.emit(D,T));default:return super.emit(D,T)}}},G=class extends B{static{v(this,"ReadStreamSync")}[b](){let D=!0;try{this[y](null,p.openSync(this[_],"r")),D=!1}finally{D&&this[o]()}}[R](){let D=!0;try{if(!this[P]){this[P]=!0;do{let T=this[d](),C=T.length===0?0:p.readSync(this[s],T,0,T.length,null);if(!this[h](C,T))break}while(!0);this[P]=!1}D=!1}finally{D&&this[o]()}}[o](){if(this[c]&&typeof this[s]=="number"){let D=this[s];this[s]=null,p.closeSync(D),this.emit("close")}}},W=class extends a{static{v(this,"WriteStream")}constructor(D,T){T=T||{},super(T),this.readable=!1,this.writable=!0,this[V]=!1,this[j]=!1,this[t]=!1,this[m]=!1,this[O]=[],this[_]=D,this[s]=typeof T.fd=="number"?T.fd:null,this[g]=T.mode===void 0?438:T.mode,this[w]=typeof T.start=="number"?T.start:null,this[c]=typeof T.autoClose=="boolean"?T.autoClose:!0;let C=this[w]!==null?"r+":"w";this[U]=T.flags===void 0,this[l]=this[U]?C:T.flags,this[s]===null&&this[b]()}emit(D,T){if(D==="error"){if(this[V])return;this[V]=!0}return super.emit(D,T)}get fd(){return this[s]}get path(){return this[_]}[f](D){this[o](),this[j]=!0,this.emit("error",D)}[b](){p.open(this[_],this[l],this[g],(D,T)=>this[y](D,T))}[y](D,T){this[U]&&this[l]==="r+"&&D&&D.code==="ENOENT"?(this[l]="w",this[b]()):D?this[f](D):(this[s]=T,this.emit("open",T),this[j]||this[u]())}end(D,T){return D&&this.write(D,T),this[t]=!0,!this[j]&&!this[O].length&&typeof this[s]=="number"&&this[E](null,0),this}write(D,T){return typeof D=="string"&&(D=Buffer.from(D,T)),this[t]?(this.emit("error",new Error("write() after end()")),!1):this[s]===null||this[j]||this[O].length?(this[O].push(D),this[m]=!0,!1):(this[j]=!0,this[x](D),!0)}[x](D){p.write(this[s],D,0,D.length,this[w],(T,C)=>this[E](T,C))}[E](D,T){D?this[f](D):(this[w]!==null&&(this[w]+=T),this[O].length?this[u]():(this[j]=!1,this[t]&&!this[i]?(this[i]=!0,this[o](),this.emit("finish")):this[m]&&(this[m]=!1,this.emit("drain"))))}[u](){if(this[O].length===0)this[t]&&this[E](null,0);else if(this[O].length===1)this[x](this[O].pop());else{let D=this[O];this[O]=[],n(this[s],D,this[w],(T,C)=>this[E](T,C))}}[o](){if(this[c]&&typeof this[s]=="number"){let D=this[s];this[s]=null,p.close(D,T=>T?this.emit("error",T):this.emit("close"))}}},N=class extends W{static{v(this,"WriteStreamSync")}[b](){let D;if(this[U]&&this[l]==="r+")try{D=p.openSync(this[_],this[l],this[g])}catch(T){if(T.code==="ENOENT")return this[l]="w",this[b]();throw T}else D=p.openSync(this[_],this[l],this[g]);this[y](null,D)}[o](){if(this[c]&&typeof this[s]=="number"){let D=this[s];this[s]=null,p.closeSync(D),this.emit("close")}}[x](D){let T=!0;try{this[E](null,p.writeSync(this[s],D,0,D.length,this[w])),T=!1}finally{if(T)try{this[o]()}catch{}}}};e.ReadStream=B,e.ReadStreamSync=G,e.WriteStream=W,e.WriteStreamSync=N}),Ou=K((e,r)=>{"use strict";var a=require("fs/promises"),p=Cr(),n=vt(),c=Ar(),o=Or();r.exports=s;var t=64*1024*1024;async function s(f,y,S={}){let{size:E}=S,{stat:b,cpath:_,sri:w}=await d(f,y,async(R,I)=>({stat:E?{size:E}:await a.stat(R),cpath:R,sri:I}));if(b.size>t)return i(_,b.size,w,new o).concat();let O=await a.readFile(_,{encoding:null});if(b.size!==O.length)throw g(b.size,O.length);if(!n.checkData(O,w))throw m(w,_);return O}v(s,"read");var i=v((f,y,S,E)=>(E.push(new p.ReadStream(f,{size:y,readSize:t}),n.integrityStream({integrity:S,size:y})),E),"readPipeline");r.exports.stream=l,r.exports.readStream=l;function l(f,y,S={}){let{size:E}=S,b=new o;return Promise.resolve().then(async()=>{let{stat:_,cpath:w,sri:O}=await d(f,y,async(R,I)=>({stat:E?{size:E}:await a.stat(R),cpath:R,sri:I}));return i(w,_.size,O,b)}).catch(_=>b.emit("error",_)),b}v(l,"readStream"),r.exports.copy=u;function u(f,y,S){return d(f,y,E=>a.copyFile(E,S))}v(u,"copy"),r.exports.hasContent=h;async function h(f,y){if(!y)return!1;try{return await d(f,y,async(S,E)=>{let b=await a.stat(S);return{size:b.size,sri:E,stat:b}})}catch(S){if(S.code==="ENOENT")return!1;if(S.code==="EPERM"){if(process.platform!=="win32")throw S;return!1}}}v(h,"hasContent");async function d(f,y,S){let E=n.parse(y),b=E.pickAlgorithm(),_=E[b];if(_.length<=1){let w=c(f,_[0]);return S(w,_[0])}else{let w=await Promise.all(_.map(async I=>{try{return await d(f,I,S)}catch(P){return P.code==="ENOENT"?Object.assign(new Error("No matching content found for "+E.toString()),{code:"ENOENT"}):P}})),O=w.find(I=>!(I instanceof Error));if(O)return O;throw w.find(I=>I.code==="ENOENT")||w.find(I=>I instanceof Error)}}v(d,"withContentSri");function g(f,y){let S=new Error(`Bad data size: expected inserted data to be ${f} bytes, but got ${y} instead`);return S.expected=f,S.found=y,S.code="EBADSIZE",S}v(g,"sizeError");function m(f,y){let S=new Error(`Integrity verification failed for ${f} (${y})`);return S.code="EINTEGRITY",S.sri=f,S.path=y,S}v(m,"integrityError")}),ub=K((e,r)=>{"use strict";var a=mu(),{Minipass:p}=Pe(),n=Or(),c=Rr(),o=Cs(),t=Ou();async function s(f,y,S={}){let{integrity:E,memoize:b,size:_}=S,w=o.get(f,y,S);if(w&&b!==!1)return{metadata:w.entry.metadata,data:w.data,integrity:w.entry.integrity,size:w.entry.size};let O=await c.find(f,y,S);if(!O)throw new c.NotFoundError(f,y);let R=await t(f,O.integrity,{integrity:E,size:_});return b&&o.put(f,O,R,S),{data:R,metadata:O.metadata,size:O.size,integrity:O.integrity}}v(s,"getData"),r.exports=s;async function i(f,y,S={}){let{integrity:E,memoize:b,size:_}=S,w=o.get.byDigest(f,y,S);if(w&&b!==!1)return w;let O=await t(f,y,{integrity:E,size:_});return b&&o.put.byDigest(f,y,O,S),O}v(i,"getDataByDigest"),r.exports.byDigest=i;var l=v(f=>{let y=new p;return y.on("newListener",function(S,E){S==="metadata"&&E(f.entry.metadata),S==="integrity"&&E(f.entry.integrity),S==="size"&&E(f.entry.size)}),y.end(f.data),y},"getMemoizedStream");function u(f,y,S={}){let{memoize:E,size:b}=S,_=o.get(f,y,S);if(_&&E!==!1)return l(_);let w=new n;return Promise.resolve().then(async()=>{let O=await c.find(f,y);if(!O)throw new c.NotFoundError(f,y);w.emit("metadata",O.metadata),w.emit("integrity",O.integrity),w.emit("size",O.size),w.on("newListener",function(I,P){I==="metadata"&&P(O.metadata),I==="integrity"&&P(O.integrity),I==="size"&&P(O.size)});let R=t.readStream(f,O.integrity,{...S,size:typeof b!="number"?O.size:b});if(E){let I=new a.PassThrough;I.on("collect",P=>o.put(f,O,P,S)),w.unshift(I)}return w.unshift(R),w}).catch(O=>w.emit("error",O)),w}v(u,"getStream"),r.exports.stream=u;function h(f,y,S={}){let{memoize:E}=S,b=o.get.byDigest(f,y,S);if(b&&E!==!1){let _=new p;return _.end(b),_}else{let _=t.readStream(f,y,S);if(!E)return _;let w=new a.PassThrough;return w.on("collect",O=>o.put.byDigest(f,y,O,S)),new n(_,w)}}v(h,"getStreamDigest"),r.exports.stream.byDigest=h;function d(f,y,S={}){let{memoize:E}=S,b=o.get(f,y,S);return b&&E!==!1?Promise.resolve(b.entry):c.find(f,y)}v(d,"info"),r.exports.info=d;async function g(f,y,S,E={}){let b=await c.find(f,y,E);if(!b)throw new c.NotFoundError(f,y);return await t.copy(f,b.integrity,S,E),{metadata:b.metadata,size:b.size,integrity:b.integrity}}v(g,"copy"),r.exports.copy=g;async function m(f,y,S,E={}){return await t.copy(f,y,S,E),y}v(m,"copyByDigest"),r.exports.copy.byDigest=m,r.exports.hasContent=t.hasContent}),no=K((e,r)=>{var a=so(),p=Symbol("_flush"),n=Symbol("_flushed"),c=Symbol("_flushing"),o=class extends a{static{v(this,"Flush")}constructor(t={}){if(typeof t=="function"&&(t={flush:t}),super(t),typeof t.flush!="function"&&typeof this.flush!="function")throw new TypeError("must provide flush function in options");this[p]=t.flush||this.flush}emit(t,...s){if(t!=="end"&&t!=="finish"||this[n])return super.emit(t,...s);if(this[c])return;this[c]=!0;let i=v(u=>{this[n]=!0,u?super.emit("error",u):super.emit("end")},"afterFlush"),l=this[p](i);l&&l.then&&l.then(()=>i(),u=>i(u))}};r.exports=o}),hb=K((e,r)=>{"use strict";var a=require("events"),p=Ar(),n=require("fs/promises"),{moveFile:c}=io(),{Minipass:o}=Pe(),t=Or(),s=no(),i=require("path"),l=vt(),u=vu(),h=Cr();r.exports=g;var d=new Map;async function g(O,R,I={}){let{algorithms:P,size:L,integrity:M}=I;if(typeof L=="number"&&R.length!==L)throw _(L,R.length);let x=l.fromData(R,P?{algorithms:P}:{});if(M&&!l.checkData(R,M,I))throw w(M,x);for(let j in x){let U=await E(O,I),V=x[j].toString();try{await n.writeFile(U.target,R,{flag:"wx"}),await b(U,O,V,I)}finally{U.moved||await n.rm(U.target,{recursive:!0,force:!0})}}return{integrity:x,size:R.length}}v(g,"write"),r.exports.stream=f;var m=class extends s{static{v(this,"CacacheWriteStream")}constructor(O,R){super(),this.opts=R,this.cache=O,this.inputStream=new o,this.inputStream.on("error",I=>this.emit("error",I)),this.inputStream.on("drain",()=>this.emit("drain")),this.handleContentP=null}write(O,R,I){return this.handleContentP||(this.handleContentP=y(this.inputStream,this.cache,this.opts),this.handleContentP.catch(P=>this.emit("error",P))),this.inputStream.write(O,R,I)}flush(O){this.inputStream.end(()=>{if(!this.handleContentP){let R=new Error("Cache input stream was empty");return R.code="ENODATA",Promise.reject(R).catch(O)}this.handleContentP.then(R=>{R.integrity&&this.emit("integrity",R.integrity),R.size!==null&&this.emit("size",R.size),O()},R=>O(R))})}};function f(O,R={}){return new m(O,R)}v(f,"writeStream");async function y(O,R,I){let P=await E(R,I);try{let L=await S(O,R,P.target,I);return await b(P,R,L.integrity,I),L}finally{P.moved||await n.rm(P.target,{recursive:!0,force:!0})}}v(y,"handleContent");async function S(O,R,I,P){let L=new h.WriteStream(I,{flags:"wx"});if(P.integrityEmitter){let[U,V]=await Promise.all([a.once(P.integrityEmitter,"integrity").then(B=>B[0]),a.once(P.integrityEmitter,"size").then(B=>B[0]),new t(O,L).promise()]);return{integrity:U,size:V}}let M,x,j=l.integrityStream({integrity:P.integrity,algorithms:P.algorithms,size:P.size});return j.on("integrity",U=>{M=U}),j.on("size",U=>{x=U}),await new t(O,j,L).promise(),{integrity:M,size:x}}v(S,"pipeToTmp");async function E(O,R){let I=u(i.join(O,"tmp"),R.tmpPrefix);return await n.mkdir(i.dirname(I),{recursive:!0}),{target:I,moved:!1}}v(E,"makeTmp");async function b(O,R,I){let P=p(R,I),L=i.dirname(P);return d.has(P)||d.set(P,n.mkdir(L,{recursive:!0}).then(async()=>(await c(O.target,P,{overwrite:!1}),O.moved=!0,O.moved)).catch(M=>{if(!M.message.startsWith("The destination file exists"))throw Object.assign(M,{code:"EEXIST"})}).finally(()=>{d.delete(P)})),d.get(P)}v(b,"moveToDestination");function _(O,R){let I=new Error(`Bad data size: expected inserted data to be ${O} bytes, but got ${R} instead`);return I.expected=O,I.found=R,I.code="EBADSIZE",I}v(_,"sizeError");function w(O,R){let I=new Error(`Integrity check failed:
26
+ Wanted: ${O}
27
+ Found: ${R}`);return I.code="EINTEGRITY",I.expected=O,I.found=R,I}v(w,"checksumError")}),pb=K((e,r)=>{"use strict";var a=Rr(),p=Cs(),n=hb(),c=no(),{PassThrough:o}=mu(),t=Or(),s=v(u=>({algorithms:["sha512"],...u}),"putOpts");r.exports=i;async function i(u,h,d,g={}){let{memoize:m}=g;g=s(g);let f=await n(u,d,g),y=await a.insert(u,h,f.integrity,{...g,size:f.size});return m&&p.put(u,y,d,g),f.integrity}v(i,"putData"),r.exports.stream=l;function l(u,h,d={}){let{memoize:g}=d;d=s(d);let m,f,y,S,E=new t;if(g){let _=new o().on("collect",w=>{S=w});E.push(_)}let b=n.stream(u,d).on("integrity",_=>{m=_}).on("size",_=>{f=_}).on("error",_=>{y=_});return E.push(b),E.push(new c({async flush(){if(!y){let _=await a.insert(u,h,m,{...d,size:f});g&&S&&p.put(u,_,S,d),E.emit("integrity",m),E.emit("size",f)}}})),E}v(l,"putStream")}),Au=K((e,r)=>{"use strict";var{glob:a}=eu(),p=require("path"),n=v(c=>c.split(p.win32.sep).join(p.posix.sep),"globify");r.exports=(c,o)=>a(n(c),o)}),db=K((e,r)=>{"use strict";var a=require("fs/promises"),p=Ar(),{hasContent:n}=Ou();r.exports=c;async function c(o,t){let s=await n(o,t);return s&&s.sri?(await a.rm(p(o,s.sri),{recursive:!0,force:!0}),!0):!1}v(c,"rm")}),fb=K((e,r)=>{"use strict";var{rm:a}=require("fs/promises"),p=Au(),n=Rr(),c=Cs(),o=require("path"),t=db();r.exports=s,r.exports.entry=s;function s(u,h,d){return c.clearMemoized(),n.delete(u,h,d)}v(s,"entry"),r.exports.content=i;function i(u,h){return c.clearMemoized(),t(u,h)}v(i,"content"),r.exports.all=l;async function l(u){c.clearMemoized();let h=await p(o.join(u,"*(content-*|index-*)"),{silent:!0,nosort:!0});return Promise.all(h.map(d=>a(d,{recursive:!0,force:!0})))}v(l,"all")}),gb=K((e,r)=>{"use strict";var{mkdir:a,readFile:p,rm:n,stat:c,truncate:o,writeFile:t}=require("fs/promises"),s=Ar(),i=Cr(),l=Au(),u=Rr(),h=require("path"),d=vt(),g=v((L,M)=>Object.prototype.hasOwnProperty.call(L,M),"hasOwnProperty"),m=v(L=>({concurrency:20,log:{silly(){}},...L}),"verifyOpts");r.exports=f;async function f(L,M){M=m(M),M.log.silly("verify","verifying cache at",L);let x=[y,E,b,w,R,I,S],j={};for(let U of x){let V=U.name,B=new Date,G=await U(L,M);G&&Object.keys(G).forEach(N=>{j[N]=G[N]});let W=new Date;j.runTime||(j.runTime={}),j.runTime[V]=W-B}return j.runTime.total=j.endTime-j.startTime,M.log.silly("verify","verification finished for",L,"in",`${j.runTime.total}ms`),j}v(f,"verify");async function y(){return{startTime:new Date}}v(y,"markStartTime");async function S(){return{endTime:new Date}}v(S,"markEndTime");async function E(L,M){return M.log.silly("verify","fixing cache permissions"),await a(L,{recursive:!0}),null}v(E,"fixPerms");async function b(L,M){M.log.silly("verify","garbage collecting content");let{default:x}=await Promise.resolve().then(()=>(On(),Es)),j=u.lsStream(L),U=new Set;j.on("data",W=>{if(M.filter&&!M.filter(W))return;let N=d.parse(W.integrity);for(let D in N)U.add(N[D].toString())}),await new Promise((W,N)=>{j.on("end",W).on("error",N)});let V=s.contentDir(L),B=await l(h.join(V,"**"),{follow:!1,nodir:!0,nosort:!0}),G={verifiedContent:0,reclaimedCount:0,reclaimedSize:0,badContentCount:0,keptSize:0};return await x(B,async W=>{let N=W.split(/[/\\]/),D=N.slice(N.length-3).join(""),T=N[N.length-4],C=d.fromHex(D,T);if(U.has(C.toString())){let Z=await _(W,C);Z.valid?(G.verifiedContent++,G.keptSize+=Z.size):(G.reclaimedCount++,G.badContentCount++,G.reclaimedSize+=Z.size)}else{G.reclaimedCount++;let Z=await c(W);await n(W,{recursive:!0,force:!0}),G.reclaimedSize+=Z.size}return G},{concurrency:M.concurrency}),G}v(b,"garbageCollect");async function _(L,M){let x={};try{let{size:j}=await c(L);x.size=j,x.valid=!0,await d.checkStream(new i.ReadStream(L),M)}catch(j){if(j.code==="ENOENT")return{size:0,valid:!1};if(j.code!=="EINTEGRITY")throw j;await n(L,{recursive:!0,force:!0}),x.valid=!1}return x}v(_,"verifyContent");async function w(L,M){M.log.silly("verify","rebuilding index");let{default:x}=await Promise.resolve().then(()=>(On(),Es)),j=await u.ls(L),U={missingContent:0,rejectedEntries:0,totalEntries:0},V={};for(let B in j)if(g(j,B)){let G=u.hashKey(B),W=j[B],N=M.filter&&!M.filter(W);N&&U.rejectedEntries++,V[G]&&!N?V[G].push(W):V[G]&&N||(N?(V[G]=[],V[G]._path=u.bucketPath(L,B)):(V[G]=[W],V[G]._path=u.bucketPath(L,B)))}return await x(Object.keys(V),B=>O(L,V[B],U,M),{concurrency:M.concurrency}),U}v(w,"rebuildIndex");async function O(L,M,x){await o(M._path);for(let j of M){let U=s(L,j.integrity);try{await c(U),await u.insert(L,j.key,j.integrity,{metadata:j.metadata,size:j.size,time:j.time}),x.totalEntries++}catch(V){if(V.code==="ENOENT")x.rejectedEntries++,x.missingContent++;else throw V}}}v(O,"rebuildBucket");function R(L,M){return M.log.silly("verify","cleaning tmp directory"),n(h.join(L,"tmp"),{recursive:!0,force:!0})}v(R,"cleanTmp");async function I(L,M){let x=h.join(L,"_lastverified");return M.log.silly("verify","writing verifile to "+x),t(x,`${Date.now()}`)}v(I,"writeVerifile"),r.exports.lastRun=P;async function P(L){let M=await p(h.join(L,"_lastverified"),{encoding:"utf8"});return new Date(+M)}v(P,"lastRun")}),mb=K((e,r)=>{"use strict";var{withTempDir:a}=io(),p=require("fs/promises"),n=require("path");r.exports.mkdir=c;async function c(t,s={}){let{tmpPrefix:i}=s,l=n.join(t,"tmp");await p.mkdir(l,{recursive:!0,owner:"inherit"});let u=`${l}${n.sep}${i||""}`;return p.mkdtemp(u,{owner:"inherit"})}v(c,"mktmpdir"),r.exports.withTmp=o;function o(t,s,i){return i||(i=s,s={}),a(n.join(t,"tmp"),i,s)}v(o,"withTmp")}),Is=K((e,r)=>{"use strict";var a=ub(),p=pb(),n=fb(),c=gb(),{clearMemoized:o}=Cs(),t=mb(),s=Rr();r.exports.index={},r.exports.index.compact=s.compact,r.exports.index.insert=s.insert,r.exports.ls=s.ls,r.exports.ls.stream=s.lsStream,r.exports.get=a,r.exports.get.byDigest=a.byDigest,r.exports.get.stream=a.stream,r.exports.get.stream.byDigest=a.stream.byDigest,r.exports.get.copy=a.copy,r.exports.get.copy.byDigest=a.copy.byDigest,r.exports.get.info=a.info,r.exports.get.hasContent=a.hasContent,r.exports.put=p,r.exports.put.stream=p.stream,r.exports.rm=n.entry,r.exports.rm.all=n.all,r.exports.rm.entry=r.exports.rm,r.exports.rm.content=n.content,r.exports.clearMemoized=o,r.exports.tmp={},r.exports.tmp.mkdir=t.mkdir,r.exports.tmp.withTmp=t.withTmp,r.exports.verify=c,r.exports.verify.lastRun=c.lastRun}),yb=K((e,r)=>{"use strict";var a=require("fs"),p=require("path"),n=require("events").EventEmitter,c=eo(),o=class Ru extends n{static{v(this,"BundleWalker")}constructor(d){if(d=d||{},super(d),this.path=p.resolve(d.path||process.cwd()),this.parent=d.parent||null,this.parent){if(this.result=this.parent.result,!this.parent.parent){let g=p.basename(this.path),m=p.basename(p.dirname(this.path));this.result.add(/^@/.test(m)?m+"/"+g:g)}this.root=this.parent.root,this.packageJsonCache=this.parent.packageJsonCache}else this.result=new Set,this.root=this.path,this.packageJsonCache=d.packageJsonCache||new Map;this.seen=new Set,this.didDone=!1,this.children=0,this.node_modules=[],this.package=null,this.bundle=null}addListener(d,g){return this.on(d,g)}on(d,g){let m=super.on(d,g);return d==="done"&&this.didDone&&this.emit("done",this.result),m}done(){if(!this.didDone)if(this.didDone=!0,this.parent)this.emit("done");else{let d=Array.from(this.result);this.result=d,this.emit("done",d)}}start(){let d=p.resolve(this.path,"package.json");return this.packageJsonCache.has(d)?this.onPackage(this.packageJsonCache.get(d)):this.readPackageJson(d),this}readPackageJson(d){a.readFile(d,(g,m)=>g?this.done():this.onPackageJson(d,m))}onPackageJson(d,g){try{this.package=c(JSON.parse(g+""))}catch{return this.done()}this.packageJsonCache.set(d,this.package),this.onPackage(this.package)}allDepsBundled(d){return Object.keys(d.dependencies||{}).concat(Object.keys(d.optionalDependencies||{}))}onPackage(d){let g=this.parent?this.allDepsBundled(d):d.bundleDependencies||d.bundledDependencies||[],m=Array.from(new Set(Array.isArray(g)?g:g===!0?this.allDepsBundled(d):Object.keys(g)));if(!m.length)return this.done();this.bundle=m,this.readModules()}readModules(){s(this.path+"/node_modules",(d,g)=>d?this.onReaddir([]):this.onReaddir(g))}onReaddir(d){this.node_modules=d,this.bundle.forEach(g=>this.childDep(g)),this.children===0&&this.done()}childDep(d){this.node_modules.indexOf(d)!==-1?this.seen.has(d)||(this.seen.add(d),this.child(d)):this.parent&&this.parent.childDep(d)}child(d){let g=this.path+"/node_modules/"+d;this.children+=1;let m=new Ru({path:g,parent:this});m.on("done",()=>{--this.children===0&&this.done()}),m.start()}},t=class Cu extends o{static{v(this,"BundleWalkerSync")}start(){return super.start(),this.done(),this}readPackageJson(d){try{this.onPackageJson(d,a.readFileSync(d))}catch{}return this}readModules(){try{this.onReaddir(i(this.path+"/node_modules"))}catch{this.onReaddir([])}}child(d){new Cu({path:this.path+"/node_modules/"+d,parent:this}).start()}},s=v((h,d)=>{a.readdir(h,(g,m)=>{if(g)d(g);else{let f=m.filter(y=>/^@/.test(y));if(!f.length)d(null,m);else{let y=m.filter(E=>!/^@/.test(E)),S=f.length;f.forEach(E=>{a.readdir(h+"/"+E,(b,_)=>{b||!_.length?y.push(E):y.push.apply(y,_.map(w=>E+"/"+w)),--S===0&&d(null,y)})})}}})},"readdirNodeModules"),i=v(h=>{let d=a.readdirSync(h),g=d.filter(f=>!/^@/.test(f)),m=d.filter(f=>/^@/.test(f)).map(f=>{try{let y=a.readdirSync(h+"/"+f);return y.length?y.map(S=>f+"/"+S):[f]}catch{return[f]}}).reduce((f,y)=>f.concat(y),[]);return g.concat(m)},"readdirNodeModulesSync"),l=v((h,d)=>{let g=new Promise((m,f)=>{new o(h).on("done",m).on("error",f).start()});return d?g.then(m=>d(null,m),d):g},"walk"),u=v(h=>new t(h).start().result,"walkSync");r.exports=l,l.sync=u,l.BundleWalker=o,l.BundleWalkerSync=t}),vb=K((e,r)=>{var a=yb(),{readFile:p,readdir:n,stat:c}=require("fs/promises"),{resolve:o,basename:t,dirname:s}=require("path"),i=eo(),l=v(({path:g,packageJsonCache:m})=>m.has(g)?Promise.resolve(m.get(g)):p(g).then(f=>{let y=i(JSON.parse(f));return m.set(g,y),y}).catch(()=>null),"readPackage"),u=Symbol("package data has been normalized"),h=v(({path:g,packageJsonCache:m})=>l({path:g,packageJsonCache:m}).then(f=>{if(!f||f[u])return f;f.bundledDependencies&&!f.bundleDependencies&&(f.bundleDependencies=f.bundledDependencies,delete f.bundledDependencies);let y=f.bundleDependencies;return y===!0&&(f.bundleDependencies=[...Object.keys(f.dependencies||{}),...Object.keys(f.optionalDependencies||{})]),typeof y=="object"&&!Array.isArray(y)&&(f.bundleDependencies=Object.keys(y)),f[u]=!0,f}),"rpj"),d=v(async({path:g,depth:m=1,currentDepth:f=0,pkg:y=null,result:S=null,packageJsonCache:E=null})=>{if(S||(S=new Set),E||(E=new Map),y===!0)return h({path:g+"/package.json",packageJsonCache:E}).then(O=>d({path:g,depth:m,currentDepth:f,pkg:O,result:S,packageJsonCache:E}));if(y&&y.bin){let O=s(g),R=t(O),I=/^@.+/.test(R)?s(O):O,P=[];Object.keys(y.bin).forEach(L=>{let M=o(I,".bin",L);P.push(M,M+".cmd",M+".ps1")}),(await Promise.all(P.map(L=>c(L).then(()=>L).catch(()=>null)))).filter(L=>L).forEach(L=>S.add(L))}if(f>=m)return S.add(g),S;let[b,_]=await Promise.all([n(g,{withFileTypes:!0}),f===0&&y&&y.bundleDependencies?a({path:g,packageJsonCache:E}):null]).catch(()=>[]);if(!b)return S;if(!b.length&&!_&&f!==0)return S.add(g),S;let w=[];for(let O of b){let R=o(g,O.name);if(O.isDirectory()===!1){S.add(R);continue}if(f!==0||O.name!=="node_modules"){f<m-1?w.push(d({path:R,packageJsonCache:E,depth:m,currentDepth:f+1,result:S})):S.add(R);continue}}return _&&w.push(..._.map(O=>{let R=o(g,"node_modules",O);return d({path:R,packageJsonCache:E,pkg:!0,depth:m,currentDepth:f+1,result:S})})),w.length&&await Promise.all(w),S},"pkgContents");r.exports=({path:g,...m})=>d({path:o(g),...m,pkg:!0}).then(f=>[...f])}),Ir=K((e,r)=>{"use strict";var a=process.platform==="win32",{URL:p}=require("node:url"),n=a?require("node:path/win32"):require("node:path"),{homedir:c}=require("node:os"),o=qn(),t=Jt(),s=du(),{log:i}=ct(),l=a?/\\|[/]/:/[/]/,u=/^(?:git[+])?[a-z]+:/i,h=/^[^@]+@[^:.]+\.[^:]+:.+$/i,d=/[.](?:tgz|tar.gz|tar)$/i,g=/:[0-9]+(\/|$)/i,m=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,f=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,y="https://registry.npmjs.org";function S(N,D){let T,C;if(typeof N=="object")return N instanceof P&&(!D||D===N.where)?N:N.name&&N.rawSpec?S.resolve(N.name,N.rawSpec,D||N.where):S(N.raw,D||N.where);let Z=N.indexOf("@",1),X=Z>0?N.slice(0,Z):N;return u.test(N)?C=N:h.test(N)?C=`git+ssh://${N}`:!X.startsWith("@")&&(l.test(X)||d.test(X))?C=N:Z>0?(T=X,C=N.slice(Z+1)||"*"):s(N).validForOldPackages?(T=N,C="*"):C=N,_(T,C,D,N)}v(S,"npa");function E(N){return N?N.toLowerCase().startsWith("file:")?!0:a?m.test(N):f.test(N):!1}v(E,"isFileSpec");function b(N){return N?N.toLowerCase().startsWith("npm:"):!1}v(b,"isAliasSpec");function _(N,D,T,C){let Z=new P({raw:C,name:N,rawSpec:D,fromArgument:C!=null});if(N&&(Z.name=N),T||(T=process.cwd()),E(D))return j(Z,T);if(b(D))return G(Z,T);let X=o.fromUrl(D,{noGitPlus:!0,noCommittish:!0});return X?U(Z,X):D&&u.test(D)?B(Z):D&&(l.test(D)||d.test(D))?j(Z,T):W(Z)}v(_,"resolve");function w(N,D=y){let T=S(N);if(T.type!=="version")throw I(T.type,T.raw);let C="pkg:npm/"+T.name.replace(/^@/,"%40")+"@"+T.rawSpec;return D!==y&&(C+="?repository_url="+D),C}v(w,"toPurl");function O(N,D,T){let C=new Error(`Invalid package name "${N}" of package "${T}": ${D.errors.join("; ")}.`);return C.code="EINVALIDPACKAGENAME",C}v(O,"invalidPackageName");function R(N,D){let T=new Error(`Invalid tag name "${N}" of package "${D}": Tags may not have any characters that encodeURIComponent encodes.`);return T.code="EINVALIDTAGNAME",T}v(R,"invalidTagName");function I(N,D){let T=new Error(`Invalid type "${N}" of package "${D}": Purl can only be generated for "version" types.`);return T.code="EINVALIDPURLTYPE",T}v(I,"invalidPurlType");var P=class{static{v(this,"Result")}constructor(N){this.type=N.type,this.registry=N.registry,this.where=N.where,N.raw==null?this.raw=N.name?`${N.name}@${N.rawSpec}`:N.rawSpec:this.raw=N.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=N.rawSpec||"",this.saveSpec=N.saveSpec,this.fetchSpec=N.fetchSpec,N.name&&this.setName(N.name),this.gitRange=N.gitRange,this.gitCommittish=N.gitCommittish,this.gitSubdir=N.gitSubdir,this.hosted=N.hosted}setName(N){let D=s(N);if(!D.validForOldPackages)throw O(N,D,this.raw);return this.name=N,this.scope=N[0]==="@"?N.slice(0,N.indexOf("/")):void 0,this.escapedName=N.replace("/","%2f"),this}toString(){let N=[];this.name!=null&&this.name!==""&&N.push(this.name);let D=this.saveSpec||this.fetchSpec||this.rawSpec;return D!=null&&D!==""&&N.push(D),N.length?N.join("@"):this.raw}toJSON(){let N=Object.assign({},this);return delete N.hosted,N}};function L(N,D){if(!D){N.gitCommittish=null;return}for(let T of D.split("::")){if(!T.includes(":")){if(N.gitRange)throw new Error("cannot override existing semver range with a committish");if(N.gitCommittish)throw new Error("cannot override existing committish with a second committish");N.gitCommittish=T;continue}let[C,Z]=T.split(":");if(C==="semver"){if(N.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(N.gitRange)throw new Error("cannot override existing semver range with a second semver range");N.gitRange=decodeURIComponent(Z);continue}if(C==="path"){if(N.gitSubdir)throw new Error("cannot override existing path with a second path");N.gitSubdir=`/${Z}`;continue}i.warn("npm-package-arg",`ignoring unknown key "${C}"`)}}v(L,"setGitAttrs");var M=new Map([["\0","%00"],[" ","%09"],[`
28
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",a?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function x(N){let D="";for(let T=0;T<N.length;T++)D=`${D}${M.get(N[T])??N[T]}`;return D.startsWith("file:")?D:`file:${D}`}v(x,"pathToFileURL");function j(N,D){N.type=d.test(N.rawSpec)?"file":"directory",N.where=D;let T=x(N.rawSpec);T.startsWith("file:/")&&(/^file:\/\/[^/]/.test(T)&&(T=`file:/${T.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(T.slice(5))&&(T=T.replace(/^file:\/{1,3}/,"file:")));let C,Z;try{C=new p(T,`${x(n.resolve(D))}/`),Z=new p(T)}catch(k){let F=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(F,{raw:N.rawSpec,spec:N,where:D,originalError:k})}let X=decodeURIComponent(Z.pathname),Q=decodeURIComponent(C.pathname);return a&&(X=X.replace(/^\/+([a-z]:\/)/i,"$1"),Q=Q.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(X)?(N.saveSpec=`file:${X.substr(1)}`,Q=n.resolve(c(),X.substr(3))):n.isAbsolute(T.slice(5))?N.saveSpec=`file:${n.resolve(Q)}`:N.saveSpec=`file:${n.relative(D,Q)}`,N.fetchSpec=n.resolve(D,Q),N.saveSpec=N.saveSpec.split("\\").join("/"),N.saveSpec.startsWith("file://")&&(N.saveSpec=`file:/${N.saveSpec.slice(7)}`),N}v(j,"fromFile");function U(N,D){return N.type="git",N.hosted=D,N.saveSpec=D.toString({noGitPlus:!1,noCommittish:!1}),N.fetchSpec=D.getDefaultRepresentation()==="shortcut"?null:D.toString(),L(N,D.committish),N}v(U,"fromHostedGit");function V(N,D){let T=new Error(`Unsupported URL Type "${N}": ${D}`);return T.code="EUNSUPPORTEDPROTOCOL",T}v(V,"unsupportedURLType");function B(N){let D=N.rawSpec;if(N.saveSpec=D,D.startsWith("git+ssh:")){let C=D.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(C&&!C[1].match(g))return N.type="git",L(N,C[2]),N.fetchSpec=C[1],N}else D.startsWith("git+file://")&&(D=D.replace(/\\/g,"/"));let T=new p(D);switch(T.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":N.type="git",L(N,T.hash.slice(1)),T.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(D)?N.fetchSpec=`git+file://${T.host.toLowerCase()}:${T.pathname}`:(T.hash="",N.fetchSpec=T.toString()),N.fetchSpec.startsWith("git+")&&(N.fetchSpec=N.fetchSpec.slice(4));break;case"http:":case"https:":N.type="remote",N.fetchSpec=N.saveSpec;break;default:throw V(T.protocol,D)}return N}v(B,"fromURL");function G(N,D){let T=S(N.rawSpec.substr(4),D);if(T.type==="alias")throw new Error("nested aliases not supported");if(!T.registry)throw new Error("aliases only work for registry deps");if(!T.name)throw new Error("aliases must have a name");return N.subSpec=T,N.registry=!0,N.type="alias",N.saveSpec=null,N.fetchSpec=null,N}v(G,"fromAlias");function W(N){N.registry=!0;let D=N.rawSpec.trim();N.saveSpec=null,N.fetchSpec=D;let T=t.valid(D,!0),C=t.validRange(D,!0);if(T)N.type="version";else if(C)N.type="range";else{if(encodeURIComponent(D)!==D)throw R(D,N.raw);N.type="tag"}return N}v(W,"fromRegistry"),r.exports=S,r.exports.resolve=_,r.exports.toPurl=w,r.exports.Result=P}),Tr=K(e=>{"use strict";var r=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteStreamSync=e.WriteStream=e.ReadStreamSync=e.ReadStream=void 0;var a=r(require("events")),p=r(require("fs")),n=Pe(),c=p.default.writev,o=Symbol("_autoClose"),t=Symbol("_close"),s=Symbol("_ended"),i=Symbol("_fd"),l=Symbol("_finished"),u=Symbol("_flags"),h=Symbol("_flush"),d=Symbol("_handleChunk"),g=Symbol("_makeBuf"),m=Symbol("_mode"),f=Symbol("_needDrain"),y=Symbol("_onerror"),S=Symbol("_onopen"),E=Symbol("_onread"),b=Symbol("_onwrite"),_=Symbol("_open"),w=Symbol("_path"),O=Symbol("_pos"),R=Symbol("_queue"),I=Symbol("_read"),P=Symbol("_readSize"),L=Symbol("_reading"),M=Symbol("_remain"),x=Symbol("_size"),j=Symbol("_write"),U=Symbol("_writing"),V=Symbol("_defaultFlag"),B=Symbol("_errored"),G=class extends n.Minipass{static{v(this,"ReadStream")}[B]=!1;[i];[w];[P];[L]=!1;[x];[M];[o];constructor(T,C){if(C=C||{},super(C),this.readable=!0,this.writable=!1,typeof T!="string")throw new TypeError("path must be a string");this[B]=!1,this[i]=typeof C.fd=="number"?C.fd:void 0,this[w]=T,this[P]=C.readSize||16*1024*1024,this[L]=!1,this[x]=typeof C.size=="number"?C.size:1/0,this[M]=this[x],this[o]=typeof C.autoClose=="boolean"?C.autoClose:!0,typeof this[i]=="number"?this[I]():this[_]()}get fd(){return this[i]}get path(){return this[w]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[_](){p.default.open(this[w],"r",(T,C)=>this[S](T,C))}[S](T,C){T?this[y](T):(this[i]=C,this.emit("open",C),this[I]())}[g](){return Buffer.allocUnsafe(Math.min(this[P],this[M]))}[I](){if(!this[L]){this[L]=!0;let T=this[g]();if(T.length===0)return process.nextTick(()=>this[E](null,0,T));p.default.read(this[i],T,0,T.length,null,(C,Z,X)=>this[E](C,Z,X))}}[E](T,C,Z){this[L]=!1,T?this[y](T):this[d](C,Z)&&this[I]()}[t](){if(this[o]&&typeof this[i]=="number"){let T=this[i];this[i]=void 0,p.default.close(T,C=>C?this.emit("error",C):this.emit("close"))}}[y](T){this[L]=!0,this[t](),this.emit("error",T)}[d](T,C){let Z=!1;return this[M]-=T,T>0&&(Z=super.write(T<C.length?C.subarray(0,T):C)),(T===0||this[M]<=0)&&(Z=!1,this[t](),super.end()),Z}emit(T,...C){switch(T){case"prefinish":case"finish":return!1;case"drain":return typeof this[i]=="number"&&this[I](),!1;case"error":return this[B]?!1:(this[B]=!0,super.emit(T,...C));default:return super.emit(T,...C)}}};e.ReadStream=G;var W=class extends G{static{v(this,"ReadStreamSync")}[_](){let T=!0;try{this[S](null,p.default.openSync(this[w],"r")),T=!1}finally{T&&this[t]()}}[I](){let T=!0;try{if(!this[L]){this[L]=!0;do{let C=this[g](),Z=C.length===0?0:p.default.readSync(this[i],C,0,C.length,null);if(!this[d](Z,C))break}while(!0);this[L]=!1}T=!1}finally{T&&this[t]()}}[t](){if(this[o]&&typeof this[i]=="number"){let T=this[i];this[i]=void 0,p.default.closeSync(T),this.emit("close")}}};e.ReadStreamSync=W;var N=class extends a.default{static{v(this,"WriteStream")}readable=!1;writable=!0;[B]=!1;[U]=!1;[s]=!1;[R]=[];[f]=!1;[w];[m];[o];[i];[V];[u];[l]=!1;[O];constructor(T,C){C=C||{},super(C),this[w]=T,this[i]=typeof C.fd=="number"?C.fd:void 0,this[m]=C.mode===void 0?438:C.mode,this[O]=typeof C.start=="number"?C.start:void 0,this[o]=typeof C.autoClose=="boolean"?C.autoClose:!0;let Z=this[O]!==void 0?"r+":"w";this[V]=C.flags===void 0,this[u]=C.flags===void 0?Z:C.flags,this[i]===void 0&&this[_]()}emit(T,...C){if(T==="error"){if(this[B])return!1;this[B]=!0}return super.emit(T,...C)}get fd(){return this[i]}get path(){return this[w]}[y](T){this[t](),this[U]=!0,this.emit("error",T)}[_](){p.default.open(this[w],this[u],this[m],(T,C)=>this[S](T,C))}[S](T,C){this[V]&&this[u]==="r+"&&T&&T.code==="ENOENT"?(this[u]="w",this[_]()):T?this[y](T):(this[i]=C,this.emit("open",C),this[U]||this[h]())}end(T,C){return T&&this.write(T,C),this[s]=!0,!this[U]&&!this[R].length&&typeof this[i]=="number"&&this[b](null,0),this}write(T,C){return typeof T=="string"&&(T=Buffer.from(T,C)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[i]===void 0||this[U]||this[R].length?(this[R].push(T),this[f]=!0,!1):(this[U]=!0,this[j](T),!0)}[j](T){p.default.write(this[i],T,0,T.length,this[O],(C,Z)=>this[b](C,Z))}[b](T,C){T?this[y](T):(this[O]!==void 0&&typeof C=="number"&&(this[O]+=C),this[R].length?this[h]():(this[U]=!1,this[s]&&!this[l]?(this[l]=!0,this[t](),this.emit("finish")):this[f]&&(this[f]=!1,this.emit("drain"))))}[h](){if(this[R].length===0)this[s]&&this[b](null,0);else if(this[R].length===1)this[j](this[R].pop());else{let T=this[R];this[R]=[],c(this[i],T,this[O],(C,Z)=>this[b](C,Z))}}[t](){if(this[o]&&typeof this[i]=="number"){let T=this[i];this[i]=void 0,p.default.close(T,C=>C?this.emit("error",C):this.emit("close"))}}};e.WriteStream=N;var D=class extends N{static{v(this,"WriteStreamSync")}[_](){let T;if(this[V]&&this[u]==="r+")try{T=p.default.openSync(this[w],this[u],this[m])}catch(C){if(C?.code==="ENOENT")return this[u]="w",this[_]();throw C}else T=p.default.openSync(this[w],this[u],this[m]);this[S](null,T)}[t](){if(this[o]&&typeof this[i]=="number"){let T=this[i];this[i]=void 0,p.default.closeSync(T),this.emit("close")}}[j](T){let C=!0;try{this[b](null,p.default.writeSync(this[i],T,0,T.length,this[O])),C=!1}finally{if(C)try{this[t]()}catch{}}}};e.WriteStreamSync=D}),oo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dealias=e.isNoFile=e.isFile=e.isAsync=e.isSync=e.isAsyncNoFile=e.isSyncNoFile=e.isAsyncFile=e.isSyncFile=void 0;var r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"],["onentry","onReadEntry"]]),a=v(h=>!!h.sync&&!!h.file,"isSyncFile");e.isSyncFile=a;var p=v(h=>!h.sync&&!!h.file,"isAsyncFile");e.isAsyncFile=p;var n=v(h=>!!h.sync&&!h.file,"isSyncNoFile");e.isSyncNoFile=n;var c=v(h=>!h.sync&&!h.file,"isAsyncNoFile");e.isAsyncNoFile=c;var o=v(h=>!!h.sync,"isSync");e.isSync=o;var t=v(h=>!h.sync,"isAsync");e.isAsync=t;var s=v(h=>!!h.file,"isFile");e.isFile=s;var i=v(h=>!h.file,"isNoFile");e.isNoFile=i;var l=v(h=>r.get(h)||h,"dealiasKey"),u=v((h={})=>{if(!h)return{};let d={};for(let[g,m]of Object.entries(h)){let f=l(g);d[f]=m}return d.chmod===void 0&&d.noChmod===!1&&(d.chmod=!0),delete d.noChmod,d},"dealias");e.dealias=u}),Pr=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makeCommand=void 0;var r=oo(),a=v((p,n,c,o,t)=>Object.assign((s=[],i,l)=>{Array.isArray(s)&&(i=s,s={}),typeof i=="function"&&(l=i,i=void 0),i?i=Array.from(i):i=[];let u=(0,r.dealias)(s);if(t?.(u,i),(0,r.isSyncFile)(u)){if(typeof l=="function")throw new TypeError("callback not supported for sync tar functions");return p(u,i)}else if((0,r.isAsyncFile)(u)){let h=n(u,i),d=l||void 0;return d?h.then(()=>d(),d):h}else if((0,r.isSyncNoFile)(u)){if(typeof l=="function")throw new TypeError("callback not supported for sync tar functions");return c(u,i)}else if((0,r.isAsyncNoFile)(u)){if(typeof l=="function")throw new TypeError("callback only supported with file option");return o(u,i)}else throw new Error("impossible options??")},{syncFile:p,asyncFile:n,syncNoFile:c,asyncNoFile:o,validate:t}),"makeCommand");e.makeCommand=a}),Lc=K(e=>{"use strict";var r=e&&e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.constants=void 0;var a=r(require("zlib")),p=a.default.constants||{ZLIB_VERNUM:4736};e.constants=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},p))}),Ts=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(B,G,W,N){N===void 0&&(N=W);var D=Object.getOwnPropertyDescriptor(G,W);(!D||("get"in D?!G.__esModule:D.writable||D.configurable))&&(D={enumerable:!0,get:v(function(){return G[W]},"get")}),Object.defineProperty(B,N,D)}:function(B,G,W,N){N===void 0&&(N=W),B[N]=G[W]}),a=e&&e.__setModuleDefault||(Object.create?function(B,G){Object.defineProperty(B,"default",{enumerable:!0,value:G})}:function(B,G){B.default=G}),p=e&&e.__importStar||function(){var B=v(function(G){return B=Object.getOwnPropertyNames||function(W){var N=[];for(var D in W)Object.prototype.hasOwnProperty.call(W,D)&&(N[N.length]=D);return N},B(G)},"ownKeys");return function(G){if(G&&G.__esModule)return G;var W={};if(G!=null)for(var N=B(G),D=0;D<N.length;D++)N[D]!=="default"&&r(W,G,N[D]);return a(W,G),W}}(),n=e&&e.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(e,"__esModule",{value:!0}),e.ZstdDecompress=e.ZstdCompress=e.BrotliDecompress=e.BrotliCompress=e.Unzip=e.InflateRaw=e.DeflateRaw=e.Gunzip=e.Gzip=e.Inflate=e.Deflate=e.Zlib=e.ZlibError=e.constants=void 0;var c=n(require("assert")),o=require("buffer"),t=Pe(),s=p(require("zlib")),i=Lc(),l=Lc();Object.defineProperty(e,"constants",{enumerable:!0,get:v(function(){return l.constants},"get")});var u=o.Buffer.concat,h=Object.getOwnPropertyDescriptor(o.Buffer,"concat"),d=v(B=>B,"noop"),g=h?.writable===!0||h?.set!==void 0?B=>{o.Buffer.concat=B?d:u}:B=>{},m=Symbol("_superWrite"),f=class extends Error{static{v(this,"ZlibError")}code;errno;constructor(B,G){super("zlib: "+B.message,{cause:B}),this.code=B.code,this.errno=B.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+B.message,Error.captureStackTrace(this,G??this.constructor)}get name(){return"ZlibError"}};e.ZlibError=f;var y=Symbol("flushFlag"),S=class extends t.Minipass{static{v(this,"ZlibBase")}#e=!1;#t=!1;#r;#s;#i;#c;#l;get sawError(){return this.#e}get handle(){return this.#c}get flushFlag(){return this.#r}constructor(B,G){if(!B||typeof B!="object")throw new TypeError("invalid options for ZlibBase constructor");if(super(B),this.#r=B.flush??0,this.#s=B.finishFlush??0,this.#i=B.fullFlushFlag??0,typeof s[G]!="function")throw new TypeError("Compression method not supported: "+G);try{this.#c=new s[G](B)}catch(W){throw new f(W,this.constructor)}this.#l=W=>{this.#e||(this.#e=!0,this.close(),this.emit("error",W))},this.#c?.on("error",W=>this.#l(new f(W))),this.once("end",()=>this.close)}close(){this.#c&&(this.#c.close(),this.#c=void 0,this.emit("close"))}reset(){if(!this.#e)return(0,c.default)(this.#c,"zlib binding closed"),this.#c.reset?.()}flush(B){this.ended||(typeof B!="number"&&(B=this.#i),this.write(Object.assign(o.Buffer.alloc(0),{[y]:B})))}end(B,G,W){return typeof B=="function"&&(W=B,G=void 0,B=void 0),typeof G=="function"&&(W=G,G=void 0),B&&(G?this.write(B,G):this.write(B)),this.flush(this.#s),this.#t=!0,super.end(W)}get ended(){return this.#t}[m](B){return super.write(B)}write(B,G,W){if(typeof G=="function"&&(W=G,G="utf8"),typeof B=="string"&&(B=o.Buffer.from(B,G)),this.#e)return;(0,c.default)(this.#c,"zlib binding closed");let N=this.#c._handle,D=N.close;N.close=()=>{};let T=this.#c.close;this.#c.close=()=>{},g(!0);let C;try{let X=typeof B[y]=="number"?B[y]:this.#r;C=this.#c._processChunk(B,X),g(!1)}catch(X){g(!1),this.#l(new f(X,this.write))}finally{this.#c&&(this.#c._handle=N,N.close=D,this.#c.close=T,this.#c.removeAllListeners("error"))}this.#c&&this.#c.on("error",X=>this.#l(new f(X,this.write)));let Z;if(C)if(Array.isArray(C)&&C.length>0){let X=C[0];Z=this[m](o.Buffer.from(X));for(let Q=1;Q<C.length;Q++)Z=this[m](C[Q])}else Z=this[m](o.Buffer.from(C));return W&&W(),Z}},E=class extends S{static{v(this,"Zlib")}#e;#t;constructor(B,G){B=B||{},B.flush=B.flush||i.constants.Z_NO_FLUSH,B.finishFlush=B.finishFlush||i.constants.Z_FINISH,B.fullFlushFlag=i.constants.Z_FULL_FLUSH,super(B,G),this.#e=B.level,this.#t=B.strategy}params(B,G){if(!this.sawError){if(!this.handle)throw new Error("cannot switch params when binding is closed");if(!this.handle.params)throw new Error("not supported in this implementation");if(this.#e!==B||this.#t!==G){this.flush(i.constants.Z_SYNC_FLUSH),(0,c.default)(this.handle,"zlib binding closed");let W=this.handle.flush;this.handle.flush=(N,D)=>{typeof N=="function"&&(D=N,N=this.flushFlag),this.flush(N),D?.()};try{this.handle.params(B,G)}finally{this.handle.flush=W}this.handle&&(this.#e=B,this.#t=G)}}}};e.Zlib=E;var b=class extends E{static{v(this,"Deflate")}constructor(B){super(B,"Deflate")}};e.Deflate=b;var _=class extends E{static{v(this,"Inflate")}constructor(B){super(B,"Inflate")}};e.Inflate=_;var w=class extends E{static{v(this,"Gzip")}#e;constructor(B){super(B,"Gzip"),this.#e=B&&!!B.portable}[m](B){return this.#e?(this.#e=!1,B[9]=255,super[m](B)):super[m](B)}};e.Gzip=w;var O=class extends E{static{v(this,"Gunzip")}constructor(B){super(B,"Gunzip")}};e.Gunzip=O;var R=class extends E{static{v(this,"DeflateRaw")}constructor(B){super(B,"DeflateRaw")}};e.DeflateRaw=R;var I=class extends E{static{v(this,"InflateRaw")}constructor(B){super(B,"InflateRaw")}};e.InflateRaw=I;var P=class extends E{static{v(this,"Unzip")}constructor(B){super(B,"Unzip")}};e.Unzip=P;var L=class extends S{static{v(this,"Brotli")}constructor(B,G){B=B||{},B.flush=B.flush||i.constants.BROTLI_OPERATION_PROCESS,B.finishFlush=B.finishFlush||i.constants.BROTLI_OPERATION_FINISH,B.fullFlushFlag=i.constants.BROTLI_OPERATION_FLUSH,super(B,G)}},M=class extends L{static{v(this,"BrotliCompress")}constructor(B){super(B,"BrotliCompress")}};e.BrotliCompress=M;var x=class extends L{static{v(this,"BrotliDecompress")}constructor(B){super(B,"BrotliDecompress")}};e.BrotliDecompress=x;var j=class extends S{static{v(this,"Zstd")}constructor(B,G){B=B||{},B.flush=B.flush||i.constants.ZSTD_e_continue,B.finishFlush=B.finishFlush||i.constants.ZSTD_e_end,B.fullFlushFlag=i.constants.ZSTD_e_flush,super(B,G)}},U=class extends j{static{v(this,"ZstdCompress")}constructor(B){super(B,"ZstdCompress")}};e.ZstdCompress=U;var V=class extends j{static{v(this,"ZstdDecompress")}constructor(B){super(B,"ZstdDecompress")}};e.ZstdDecompress=V}),Sb=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parse=e.encode=void 0;var r=v((i,l)=>{if(Number.isSafeInteger(i))i<0?p(i,l):a(i,l);else throw Error("cannot encode number outside of javascript safe integer range");return l},"encode");e.encode=r;var a=v((i,l)=>{l[0]=128;for(var u=l.length;u>1;u--)l[u-1]=i&255,i=Math.floor(i/256)},"encodePositive"),p=v((i,l)=>{l[0]=255;var u=!1;i=i*-1;for(var h=l.length;h>1;h--){var d=i&255;i=Math.floor(i/256),u?l[h-1]=t(d):d===0?l[h-1]=0:(u=!0,l[h-1]=s(d))}},"encodeNegative"),n=v(i=>{let l=i[0],u=l===128?o(i.subarray(1,i.length)):l===255?c(i):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},"parse");e.parse=n;var c=v(i=>{for(var l=i.length,u=0,h=!1,d=l-1;d>-1;d--){var g=Number(i[d]),m;h?m=t(g):g===0?m=g:(h=!0,m=s(g)),m!==0&&(u-=m*Math.pow(256,l-d-1))}return u},"twos"),o=v(i=>{for(var l=i.length,u=0,h=l-1;h>-1;h--){var d=Number(i[h]);d!==0&&(u+=d*Math.pow(256,l-h-1))}return u},"pos"),t=v(i=>(255^i)&255,"onesComp"),s=v(i=>(255^i)+1&255,"twosComp")}),Iu=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.code=e.name=e.isName=e.isCode=void 0;var r=v(p=>e.name.has(p),"isCode");e.isCode=r;var a=v(p=>e.code.has(p),"isName");e.isName=a,e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(p=>[p[1],p[0]]))}),xr=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(O,R,I,P){P===void 0&&(P=I);var L=Object.getOwnPropertyDescriptor(R,I);(!L||("get"in L?!R.__esModule:L.writable||L.configurable))&&(L={enumerable:!0,get:v(function(){return R[I]},"get")}),Object.defineProperty(O,P,L)}:function(O,R,I,P){P===void 0&&(P=I),O[P]=R[I]}),a=e&&e.__setModuleDefault||(Object.create?function(O,R){Object.defineProperty(O,"default",{enumerable:!0,value:R})}:function(O,R){O.default=R}),p=e&&e.__importStar||function(O){if(O&&O.__esModule)return O;var R={};if(O!=null)for(var I in O)I!=="default"&&Object.prototype.hasOwnProperty.call(O,I)&&r(R,O,I);return a(R,O),R};Object.defineProperty(e,"__esModule",{value:!0}),e.Header=void 0;var n=require("node:path"),c=p(Sb()),o=p(Iu()),t=class{static{v(this,"Header")}cksumValid=!1;needPax=!1;nullBlock=!1;block;path;mode;uid;gid;size;cksum;#e="Unsupported";linkpath;uname;gname;devmaj=0;devmin=0;atime;ctime;mtime;charset;comment;constructor(O,R=0,I,P){Buffer.isBuffer(O)?this.decode(O,R||0,I,P):O&&this.#t(O)}decode(O,R,I,P){if(R||(R=0),!O||!(O.length>=R+512))throw new Error("need 512 bytes for header");this.path=i(O,R,100),this.mode=h(O,R+100,8),this.uid=h(O,R+108,8),this.gid=h(O,R+116,8),this.size=h(O,R+124,12),this.mtime=l(O,R+136,12),this.cksum=h(O,R+148,12),P&&this.#t(P,!0),I&&this.#t(I);let L=i(O,R+156,1);if(o.isCode(L)&&(this.#e=L||"0"),this.#e==="0"&&this.path.slice(-1)==="/"&&(this.#e="5"),this.#e==="5"&&(this.size=0),this.linkpath=i(O,R+157,100),O.subarray(R+257,R+265).toString()==="ustar\x0000")if(this.uname=i(O,R+265,32),this.gname=i(O,R+297,32),this.devmaj=h(O,R+329,8)??0,this.devmin=h(O,R+337,8)??0,O[R+475]!==0){let x=i(O,R+345,155);this.path=x+"/"+this.path}else{let x=i(O,R+345,130);x&&(this.path=x+"/"+this.path),this.atime=l(O,R+476,12),this.ctime=l(O,R+488,12)}let M=256;for(let x=R;x<R+148;x++)M+=O[x];for(let x=R+156;x<R+512;x++)M+=O[x];this.cksumValid=M===this.cksum,this.cksum===void 0&&M===256&&(this.nullBlock=!0)}#t(O,R=!1){Object.assign(this,Object.fromEntries(Object.entries(O).filter(([I,P])=>!(P==null||I==="path"&&R||I==="linkpath"&&R||I==="global"))))}encode(O,R=0){if(O||(O=this.block=Buffer.alloc(512)),this.#e==="Unsupported"&&(this.#e="0"),!(O.length>=R+512))throw new Error("need 512 bytes for header");let I=this.ctime||this.atime?130:155,P=s(this.path||"",I),L=P[0],M=P[1];this.needPax=!!P[2],this.needPax=w(O,R,100,L)||this.needPax,this.needPax=f(O,R+100,8,this.mode)||this.needPax,this.needPax=f(O,R+108,8,this.uid)||this.needPax,this.needPax=f(O,R+116,8,this.gid)||this.needPax,this.needPax=f(O,R+124,12,this.size)||this.needPax,this.needPax=b(O,R+136,12,this.mtime)||this.needPax,O[R+156]=this.#e.charCodeAt(0),this.needPax=w(O,R+157,100,this.linkpath)||this.needPax,O.write("ustar\x0000",R+257,8),this.needPax=w(O,R+265,32,this.uname)||this.needPax,this.needPax=w(O,R+297,32,this.gname)||this.needPax,this.needPax=f(O,R+329,8,this.devmaj)||this.needPax,this.needPax=f(O,R+337,8,this.devmin)||this.needPax,this.needPax=w(O,R+345,I,M)||this.needPax,O[R+475]!==0?this.needPax=w(O,R+345,155,M)||this.needPax:(this.needPax=w(O,R+345,130,M)||this.needPax,this.needPax=b(O,R+476,12,this.atime)||this.needPax,this.needPax=b(O,R+488,12,this.ctime)||this.needPax);let x=256;for(let j=R;j<R+148;j++)x+=O[j];for(let j=R+156;j<R+512;j++)x+=O[j];return this.cksum=x,f(O,R+148,8,this.cksum),this.cksumValid=!0,this.needPax}get type(){return this.#e==="Unsupported"?this.#e:o.name.get(this.#e)}get typeKey(){return this.#e}set type(O){let R=String(o.code.get(O));if(o.isCode(R)||R==="Unsupported")this.#e=R;else if(o.isCode(O))this.#e=O;else throw new TypeError("invalid entry type: "+O)}};e.Header=t;var s=v((O,R)=>{let I=O,P="",L,M=n.posix.parse(O).root||".";if(Buffer.byteLength(I)<100)L=[I,P,!1];else{P=n.posix.dirname(I),I=n.posix.basename(I);do Buffer.byteLength(I)<=100&&Buffer.byteLength(P)<=R?L=[I,P,!1]:Buffer.byteLength(I)>100&&Buffer.byteLength(P)<=R?L=[I.slice(0,99),P,!0]:(I=n.posix.join(n.posix.basename(P),I),P=n.posix.dirname(P));while(P!==M&&L===void 0);L||(L=[O.slice(0,99),"",!0])}return L},"splitPrefix"),i=v((O,R,I)=>O.subarray(R,R+I).toString("utf8").replace(/\0.*/,""),"decString"),l=v((O,R,I)=>u(h(O,R,I)),"decDate"),u=v(O=>O===void 0?void 0:new Date(O*1e3),"numToDate"),h=v((O,R,I)=>Number(O[R])&128?c.parse(O.subarray(R,R+I)):g(O,R,I),"decNumber"),d=v(O=>isNaN(O)?void 0:O,"nanUndef"),g=v((O,R,I)=>d(parseInt(O.subarray(R,R+I).toString("utf8").replace(/\0.*$/,"").trim(),8)),"decSmallNumber"),m={12:8589934591,8:2097151},f=v((O,R,I,P)=>P===void 0?!1:P>m[I]||P<0?(c.encode(P,O.subarray(R,R+I)),!0):(y(O,R,I,P),!1),"encNumber"),y=v((O,R,I,P)=>O.write(S(P,I),R,I,"ascii"),"encSmallNumber"),S=v((O,R)=>E(Math.floor(O).toString(8),R),"octalString"),E=v((O,R)=>(O.length===R-1?O:new Array(R-O.length-1).join("0")+O+" ")+"\0","padOctal"),b=v((O,R,I,P)=>P===void 0?!1:f(O,R,I,P.getTime()/1e3),"encDate"),_=new Array(156).join("\0"),w=v((O,R,I,P)=>P===void 0?!1:(O.write(P+_,R,I,"utf8"),P.length!==Buffer.byteLength(P)||P.length>I),"encString")}),ao=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pax=void 0;var r=require("node:path"),a=xr(),p=class Tu{static{v(this,"Pax")}atime;mtime;ctime;charset;comment;gid;uid;gname;uname;linkpath;dev;ino;nlink;path;size;mode;global;constructor(s,i=!1){this.atime=s.atime,this.charset=s.charset,this.comment=s.comment,this.ctime=s.ctime,this.dev=s.dev,this.gid=s.gid,this.global=i,this.gname=s.gname,this.ino=s.ino,this.linkpath=s.linkpath,this.mtime=s.mtime,this.nlink=s.nlink,this.path=s.path,this.size=s.size,this.uid=s.uid,this.uname=s.uname}encode(){let s=this.encodeBody();if(s==="")return Buffer.allocUnsafe(0);let i=Buffer.byteLength(s),l=512*Math.ceil(1+i/512),u=Buffer.allocUnsafe(l);for(let h=0;h<512;h++)u[h]=0;new a.Header({path:("PaxHeader/"+(0,r.basename)(this.path??"")).slice(0,99),mode:this.mode||420,uid:this.uid,gid:this.gid,size:i,mtime:this.mtime,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime,ctime:this.ctime}).encode(u),u.write(s,512,i,"utf8");for(let h=i+512;h<u.length;h++)u[h]=0;return u}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(s){if(this[s]===void 0)return"";let i=this[s],l=i instanceof Date?i.getTime()/1e3:i,u=" "+(s==="dev"||s==="ino"||s==="nlink"?"SCHILY.":"")+s+"="+l+`
29
+ `,h=Buffer.byteLength(u),d=Math.floor(Math.log(h)/Math.log(10))+1;return h+d>=Math.pow(10,d)&&(d+=1),d+h+u}static parse(s,i,l=!1){return new Tu(n(c(s),i),l)}};e.Pax=p;var n=v((t,s)=>s?Object.assign({},s,t):t,"merge"),c=v(t=>t.replace(/\n$/,"").split(`
30
+ `).reduce(o,Object.create(null)),"parseKV"),o=v((t,s)=>{let i=parseInt(s,10);if(i!==Buffer.byteLength(s)+1)return t;s=s.slice((i+" ").length);let l=s.split("="),u=l.shift();if(!u)return t;let h=u.replace(/^SCHILY\.(dev|ino|nlink)/,"$1"),d=l.join("=");return t[h]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(h)?new Date(Number(d)*1e3):/^[0-9]+$/.test(d)?+d:d,t},"parseKVLine")}),Nr=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeWindowsPath=void 0;var r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;e.normalizeWindowsPath=r!=="win32"?a=>a:a=>a&&a.replace(/\\/g,"/")}),lo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReadEntry=void 0;var r=Pe(),a=Nr(),p=class extends r.Minipass{static{v(this,"ReadEntry")}extended;globalExtended;header;startBlockSize;blockRemain;remain;type;meta=!1;ignore=!1;path;mode;uid;gid;uname;gname;size=0;mtime;atime;ctime;linkpath;dev;ino;nlink;invalid=!1;absolute;unsupported=!1;constructor(n,c,o){switch(super({}),this.pause(),this.extended=c,this.globalExtended=o,this.header=n,this.remain=n.size??0,this.startBlockSize=512*Math.ceil(this.remain/512),this.blockRemain=this.startBlockSize,this.type=n.type,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}if(!n.path)throw new Error("no path provided for tar.ReadEntry");this.path=(0,a.normalizeWindowsPath)(n.path),this.mode=n.mode,this.mode&&(this.mode=this.mode&4095),this.uid=n.uid,this.gid=n.gid,this.uname=n.uname,this.gname=n.gname,this.size=this.remain,this.mtime=n.mtime,this.atime=n.atime,this.ctime=n.ctime,this.linkpath=n.linkpath?(0,a.normalizeWindowsPath)(n.linkpath):void 0,this.uname=n.uname,this.gname=n.gname,c&&this.#e(c),o&&this.#e(o,!0)}write(n){let c=n.length;if(c>this.blockRemain)throw new Error("writing more to entry than is appropriate");let o=this.remain,t=this.blockRemain;return this.remain=Math.max(0,o-c),this.blockRemain=Math.max(0,t-c),this.ignore?!0:o>=c?super.write(n):super.write(n.subarray(0,o))}#e(n,c=!1){n.path&&(n.path=(0,a.normalizeWindowsPath)(n.path)),n.linkpath&&(n.linkpath=(0,a.normalizeWindowsPath)(n.linkpath)),Object.assign(this,Object.fromEntries(Object.entries(n).filter(([o,t])=>!(t==null||o==="path"&&c))))}};e.ReadEntry=p}),co=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.warnMethod=void 0;var r=v((a,p,n,c={})=>{a.file&&(c.file=a.file),a.cwd&&(c.cwd=a.cwd),c.code=n instanceof Error&&n.code||p,c.tarCode=p,!a.strict&&c.recoverable!==!1?(n instanceof Error&&(c=Object.assign(n,c),n=n.message),a.emit("warn",p,n,c)):n instanceof Error?a.emit("error",Object.assign(n,c)):a.emit("error",Object.assign(new Error(`${p}: ${n}`),c))},"warnMethod");e.warnMethod=r}),uo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var r=require("events"),a=Ts(),p=xr(),n=ao(),c=lo(),o=co(),t=1024*1024,s=Buffer.from([31,139]),i=Buffer.from([40,181,47,253]),l=Math.max(s.length,i.length),u=Symbol("state"),h=Symbol("writeEntry"),d=Symbol("readEntry"),g=Symbol("nextEntry"),m=Symbol("processEntry"),f=Symbol("extendedHeader"),y=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),b=Symbol("buffer"),_=Symbol("queue"),w=Symbol("ended"),O=Symbol("emittedEnd"),R=Symbol("emit"),I=Symbol("unzip"),P=Symbol("consumeChunk"),L=Symbol("consumeChunkSub"),M=Symbol("consumeBody"),x=Symbol("consumeMeta"),j=Symbol("consumeHeader"),U=Symbol("consuming"),V=Symbol("bufferConcat"),B=Symbol("maybeEnd"),G=Symbol("writing"),W=Symbol("aborted"),N=Symbol("onDone"),D=Symbol("sawValidEntry"),T=Symbol("sawNullBlock"),C=Symbol("sawEOF"),Z=Symbol("closeStream"),X=v(()=>!0,"noop"),Q=class extends r.EventEmitter{static{v(this,"Parser")}file;strict;maxMetaEntrySize;filter;brotli;zstd;writable=!0;readable=!1;[_]=[];[b];[d];[h];[u]="begin";[S]="";[f];[y];[w]=!1;[I];[W]=!1;[D];[T]=!1;[C]=!1;[G]=!1;[U]=!1;[O]=!1;constructor(k={}){super(),this.file=k.file||"",this.on(N,()=>{(this[u]==="begin"||this[D]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),k.ondone?this.on(N,k.ondone):this.on(N,()=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!k.strict,this.maxMetaEntrySize=k.maxMetaEntrySize||t,this.filter=typeof k.filter=="function"?k.filter:X;let F=k.file&&(k.file.endsWith(".tar.br")||k.file.endsWith(".tbr"));this.brotli=!(k.gzip||k.zstd)&&k.brotli!==void 0?k.brotli:F?void 0:!1;let z=k.file&&(k.file.endsWith(".tar.zst")||k.file.endsWith(".tzst"));this.zstd=!(k.gzip||k.brotli)&&k.zstd!==void 0?k.zstd:z?!0:void 0,this.on("end",()=>this[Z]()),typeof k.onwarn=="function"&&this.on("warn",k.onwarn),typeof k.onReadEntry=="function"&&this.on("entry",k.onReadEntry)}warn(k,F,z={}){(0,o.warnMethod)(this,k,F,z)}[j](k,F){this[D]===void 0&&(this[D]=!1);let z;try{z=new p.Header(k,F,this[f],this[y])}catch($){return this.warn("TAR_ENTRY_INVALID",$)}if(z.nullBlock)this[T]?(this[C]=!0,this[u]==="begin"&&(this[u]="header"),this[R]("eof")):(this[T]=!0,this[R]("nullBlock"));else if(this[T]=!1,!z.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:z});else if(!z.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:z});else{let $=z.type;if(/^(Symbolic)?Link$/.test($)&&!z.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:z});else if(!/^(Symbolic)?Link$/.test($)&&!/^(Global)?ExtendedHeader$/.test($)&&z.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:z});else{let q=this[h]=new c.ReadEntry(z,this[f],this[y]);if(!this[D])if(q.remain){let J=v(()=>{q.invalid||(this[D]=!0)},"onend");q.on("end",J)}else this[D]=!0;q.meta?q.size>this.maxMetaEntrySize?(q.ignore=!0,this[R]("ignoredEntry",q),this[u]="ignore",q.resume()):q.size>0&&(this[S]="",q.on("data",J=>this[S]+=J),this[u]="meta"):(this[f]=void 0,q.ignore=q.ignore||!this.filter(q.path,q),q.ignore?(this[R]("ignoredEntry",q),this[u]=q.remain?"ignore":"header",q.resume()):(q.remain?this[u]="body":(this[u]="header",q.end()),this[d]?this[_].push(q):(this[_].push(q),this[g]())))}}}[Z](){queueMicrotask(()=>this.emit("close"))}[m](k){let F=!0;if(!k)this[d]=void 0,F=!1;else if(Array.isArray(k)){let[z,...$]=k;this.emit(z,...$)}else this[d]=k,this.emit("entry",k),k.emittedEnd||(k.on("end",()=>this[g]()),F=!1);return F}[g](){do;while(this[m](this[_].shift()));if(!this[_].length){let k=this[d];!k||k.flowing||k.size===k.remain?this[G]||this.emit("drain"):k.once("drain",()=>this.emit("drain"))}}[M](k,F){let z=this[h];if(!z)throw new Error("attempt to consume body without entry??");let $=z.blockRemain??0,q=$>=k.length&&F===0?k:k.subarray(F,F+$);return z.write(q),z.blockRemain||(this[u]="header",this[h]=void 0,z.end()),q.length}[x](k,F){let z=this[h],$=this[M](k,F);return!this[h]&&z&&this[E](z),$}[R](k,F,z){!this[_].length&&!this[d]?this.emit(k,F,z):this[_].push([k,F,z])}[E](k){switch(this[R]("meta",this[S]),k.type){case"ExtendedHeader":case"OldExtendedHeader":this[f]=n.Pax.parse(this[S],this[f],!1);break;case"GlobalExtendedHeader":this[y]=n.Pax.parse(this[S],this[y],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":{let F=this[f]??Object.create(null);this[f]=F,F.path=this[S].replace(/\0.*/,"");break}case"NextFileHasLongLinkpath":{let F=this[f]||Object.create(null);this[f]=F,F.linkpath=this[S].replace(/\0.*/,"");break}default:throw new Error("unknown meta: "+k.type)}}abort(k){this[W]=!0,this.emit("abort",k),this.warn("TAR_ABORT",k,{recoverable:!1})}write(k,F,z){if(typeof F=="function"&&(z=F,F=void 0),typeof k=="string"&&(k=Buffer.from(k,typeof F=="string"?F:"utf8")),this[W])return z?.(),!1;if((this[I]===void 0||this.brotli===void 0&&this[I]===!1)&&k){if(this[b]&&(k=Buffer.concat([this[b],k]),this[b]=void 0),k.length<l)return this[b]=k,z?.(),!0;for(let Y=0;this[I]===void 0&&Y<s.length;Y++)k[Y]!==s[Y]&&(this[I]=!1);let q=!1;if(this[I]===!1&&this.zstd!==!1){q=!0;for(let Y=0;Y<i.length;Y++)if(k[Y]!==i[Y]){q=!1;break}}let J=this.brotli===void 0&&!q;if(this[I]===!1&&J)if(k.length<512)if(this[w])this.brotli=!0;else return this[b]=k,z?.(),!0;else try{new p.Header(k.subarray(0,512)),this.brotli=!1}catch{this.brotli=!0}if(this[I]===void 0||this[I]===!1&&(this.brotli||q)){let Y=this[w];this[w]=!1,this[I]=this[I]===void 0?new a.Unzip({}):q?new a.ZstdDecompress({}):new a.BrotliDecompress({}),this[I].on("data",H=>this[P](H)),this[I].on("error",H=>this.abort(H)),this[I].on("end",()=>{this[w]=!0,this[P]()}),this[G]=!0;let A=!!this[I][Y?"end":"write"](k);return this[G]=!1,z?.(),A}}this[G]=!0,this[I]?this[I].write(k):this[P](k),this[G]=!1;let $=this[_].length?!1:this[d]?this[d].flowing:!0;return!$&&!this[_].length&&this[d]?.once("drain",()=>this.emit("drain")),z?.(),$}[V](k){k&&!this[W]&&(this[b]=this[b]?Buffer.concat([this[b],k]):k)}[B](){if(this[w]&&!this[O]&&!this[W]&&!this[U]){this[O]=!0;let k=this[h];if(k&&k.blockRemain){let F=this[b]?this[b].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${k.blockRemain} more bytes, only ${F} available)`,{entry:k}),this[b]&&k.write(this[b]),k.end()}this[R](N)}}[P](k){if(this[U]&&k)this[V](k);else if(!k&&!this[b])this[B]();else if(k){if(this[U]=!0,this[b]){this[V](k);let F=this[b];this[b]=void 0,this[L](F)}else this[L](k);for(;this[b]&&this[b]?.length>=512&&!this[W]&&!this[C];){let F=this[b];this[b]=void 0,this[L](F)}this[U]=!1}(!this[b]||this[w])&&this[B]()}[L](k){let F=0,z=k.length;for(;F+512<=z&&!this[W]&&!this[C];)switch(this[u]){case"begin":case"header":this[j](k,F),F+=512;break;case"ignore":case"body":F+=this[M](k,F);break;case"meta":F+=this[x](k,F);break;default:throw new Error("invalid state: "+this[u])}F<z&&(this[b]?this[b]=Buffer.concat([k.subarray(F),this[b]]):this[b]=k.subarray(F))}end(k,F,z){return typeof k=="function"&&(z=k,F=void 0,k=void 0),typeof F=="function"&&(z=F,F=void 0),typeof k=="string"&&(k=Buffer.from(k,F)),z&&this.once("finish",z),this[W]||(this[I]?(k&&this[I].write(k),this[I].end()):(this[w]=!0,(this.brotli===void 0||this.zstd===void 0)&&(k=k||Buffer.alloc(0)),k&&this.write(k),this[B]())),this}};e.Parser=Q}),ho=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stripTrailingSlashes=void 0;var r=v(a=>{let p=a.length-1,n=-1;for(;p>-1&&a.charAt(p)==="/";)n=p,p--;return n===-1?a:a.slice(0,n)},"stripTrailingSlashes");e.stripTrailingSlashes=r}),br=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(m,f,y,S){S===void 0&&(S=y);var E=Object.getOwnPropertyDescriptor(f,y);(!E||("get"in E?!f.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:v(function(){return f[y]},"get")}),Object.defineProperty(m,S,E)}:function(m,f,y,S){S===void 0&&(S=y),m[S]=f[y]}),a=e&&e.__setModuleDefault||(Object.create?function(m,f){Object.defineProperty(m,"default",{enumerable:!0,value:f})}:function(m,f){m.default=f}),p=e&&e.__importStar||function(m){if(m&&m.__esModule)return m;var f={};if(m!=null)for(var y in m)y!=="default"&&Object.prototype.hasOwnProperty.call(m,y)&&r(f,m,y);return a(f,m),f},n=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.list=e.filesFilter=void 0;var c=p(Tr()),o=n(require("node:fs")),t=require("path"),s=Pr(),i=uo(),l=ho(),u=v(m=>{let f=m.onReadEntry;m.onReadEntry=f?y=>{f(y),y.resume()}:y=>y.resume()},"onReadEntryFunction"),h=v((m,f)=>{let y=new Map(f.map(b=>[(0,l.stripTrailingSlashes)(b),!0])),S=m.filter,E=v((b,_="")=>{let w=_||(0,t.parse)(b).root||".",O;if(b===w)O=!1;else{let R=y.get(b);R!==void 0?O=R:O=E((0,t.dirname)(b),w)}return y.set(b,O),O},"mapHas");m.filter=S?(b,_)=>S(b,_)&&E((0,l.stripTrailingSlashes)(b)):b=>E((0,l.stripTrailingSlashes)(b))},"filesFilter");e.filesFilter=h;var d=v(m=>{let f=new i.Parser(m),y=m.file,S;try{S=o.default.openSync(y,"r");let E=o.default.fstatSync(S),b=m.maxReadSize||16*1024*1024;if(E.size<b){let _=Buffer.allocUnsafe(E.size);o.default.readSync(S,_,0,E.size,0),f.end(_)}else{let _=0,w=Buffer.allocUnsafe(b);for(;_<E.size;){let O=o.default.readSync(S,w,0,b,_);_+=O,f.write(w.subarray(0,O))}f.end()}}finally{if(typeof S=="number")try{o.default.closeSync(S)}catch{}}},"listFileSync"),g=v((m,f)=>{let y=new i.Parser(m),S=m.maxReadSize||16*1024*1024,E=m.file;return new Promise((b,_)=>{y.on("error",_),y.on("end",b),o.default.stat(E,(w,O)=>{if(w)_(w);else{let R=new c.ReadStream(E,{readSize:S,size:O.size});R.on("error",_),R.pipe(y)}})})},"listFile");e.list=(0,s.makeCommand)(d,g,m=>new i.Parser(m),m=>new i.Parser(m),(m,f)=>{f?.length&&(0,e.filesFilter)(m,f),m.noResume||u(m)})}),Eb=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modeFix=void 0;var r=v((a,p,n)=>(a&=4095,n&&(a=(a|384)&-19),p&&(a&256&&(a|=64),a&32&&(a|=8),a&4&&(a|=1)),a),"modeFix");e.modeFix=r}),Pu=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stripAbsolutePath=void 0;var r=require("node:path"),{isAbsolute:a,parse:p}=r.win32,n=v(c=>{let o="",t=p(c);for(;a(c)||t.root;){let s=c.charAt(0)==="/"&&c.slice(0,4)!=="//?/"?"/":t.root;c=c.slice(s.length),o+=s,t=p(c)}return[o,c]},"stripAbsolutePath");e.stripAbsolutePath=n}),xu=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decode=e.encode=void 0;var r=["|","<",">","?",":"],a=r.map(t=>String.fromCharCode(61440+t.charCodeAt(0))),p=new Map(r.map((t,s)=>[t,a[s]])),n=new Map(a.map((t,s)=>[t,r[s]])),c=v(t=>r.reduce((s,i)=>s.split(i).join(p.get(i)),t),"encode");e.encode=c;var o=v(t=>a.reduce((s,i)=>s.split(i).join(n.get(i)),t),"decode");e.decode=o}),Nu=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(X,Q,k,F){F===void 0&&(F=k);var z=Object.getOwnPropertyDescriptor(Q,k);(!z||("get"in z?!Q.__esModule:z.writable||z.configurable))&&(z={enumerable:!0,get:v(function(){return Q[k]},"get")}),Object.defineProperty(X,F,z)}:function(X,Q,k,F){F===void 0&&(F=k),X[F]=Q[k]}),a=e&&e.__setModuleDefault||(Object.create?function(X,Q){Object.defineProperty(X,"default",{enumerable:!0,value:Q})}:function(X,Q){X.default=Q}),p=e&&e.__importStar||function(X){if(X&&X.__esModule)return X;var Q={};if(X!=null)for(var k in X)k!=="default"&&Object.prototype.hasOwnProperty.call(X,k)&&r(Q,X,k);return a(Q,X),Q},n=e&&e.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(e,"__esModule",{value:!0}),e.WriteEntryTar=e.WriteEntrySync=e.WriteEntry=void 0;var c=n(require("fs")),o=Pe(),t=n(require("path")),s=xr(),i=Eb(),l=Nr(),u=oo(),h=ao(),d=Pu(),g=ho(),m=co(),f=p(xu()),y=v((X,Q)=>Q?(X=(0,l.normalizeWindowsPath)(X).replace(/^\.(\/|$)/,""),(0,g.stripTrailingSlashes)(Q)+"/"+X):(0,l.normalizeWindowsPath)(X),"prefixPath"),S=16*1024*1024,E=Symbol("process"),b=Symbol("file"),_=Symbol("directory"),w=Symbol("symlink"),O=Symbol("hardlink"),R=Symbol("header"),I=Symbol("read"),P=Symbol("lstat"),L=Symbol("onlstat"),M=Symbol("onread"),x=Symbol("onreadlink"),j=Symbol("openfile"),U=Symbol("onopenfile"),V=Symbol("close"),B=Symbol("mode"),G=Symbol("awaitDrain"),W=Symbol("ondrain"),N=Symbol("prefix"),D=class extends o.Minipass{static{v(this,"WriteEntry")}path;portable;myuid=process.getuid&&process.getuid()||0;myuser=process.env.USER||"";maxReadSize;linkCache;statCache;preservePaths;cwd;strict;mtime;noPax;noMtime;prefix;fd;blockLen=0;blockRemain=0;buf;pos=0;remain=0;length=0;offset=0;win32;absolute;header;type;linkpath;stat;onWriteEntry;#e=!1;constructor(X,Q={}){let k=(0,u.dealias)(Q);super(),this.path=(0,l.normalizeWindowsPath)(X),this.portable=!!k.portable,this.maxReadSize=k.maxReadSize||S,this.linkCache=k.linkCache||new Map,this.statCache=k.statCache||new Map,this.preservePaths=!!k.preservePaths,this.cwd=(0,l.normalizeWindowsPath)(k.cwd||process.cwd()),this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.mtime=k.mtime,this.prefix=k.prefix?(0,l.normalizeWindowsPath)(k.prefix):void 0,this.onWriteEntry=k.onWriteEntry,typeof k.onwarn=="function"&&this.on("warn",k.onwarn);let F=!1;if(!this.preservePaths){let[$,q]=(0,d.stripAbsolutePath)(this.path);$&&typeof q=="string"&&(this.path=q,F=$)}this.win32=!!k.win32||process.platform==="win32",this.win32&&(this.path=f.decode(this.path.replace(/\\/g,"/")),X=X.replace(/\\/g,"/")),this.absolute=(0,l.normalizeWindowsPath)(k.absolute||t.default.resolve(this.cwd,X)),this.path===""&&(this.path="./"),F&&this.warn("TAR_ENTRY_INFO",`stripping ${F} from absolute path`,{entry:this,path:F+this.path});let z=this.statCache.get(this.absolute);z?this[L](z):this[P]()}warn(X,Q,k={}){return(0,m.warnMethod)(this,X,Q,k)}emit(X,...Q){return X==="error"&&(this.#e=!0),super.emit(X,...Q)}[P](){c.default.lstat(this.absolute,(X,Q)=>{if(X)return this.emit("error",X);this[L](Q)})}[L](X){this.statCache.set(this.absolute,X),this.stat=X,X.isFile()||(X.size=0),this.type=Z(X),this.emit("stat",X),this[E]()}[E](){switch(this.type){case"File":return this[b]();case"Directory":return this[_]();case"SymbolicLink":return this[w]();default:return this.end()}}[B](X){return(0,i.modeFix)(X,this.type==="Directory",this.portable)}[N](X){return y(X,this.prefix)}[R](){if(!this.stat)throw new Error("cannot write header before stat");this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.onWriteEntry?.(this),this.header=new s.Header({path:this[N](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[N](this.linkpath):this.linkpath,mode:this[B](this.stat.mode),uid:this.portable?void 0:this.stat.uid,gid:this.portable?void 0:this.stat.gid,size:this.stat.size,mtime:this.noMtime?void 0:this.mtime||this.stat.mtime,type:this.type==="Unsupported"?void 0:this.type,uname:this.portable?void 0:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?void 0:this.stat.atime,ctime:this.portable?void 0:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new h.Pax({atime:this.portable?void 0:this.header.atime,ctime:this.portable?void 0:this.header.ctime,gid:this.portable?void 0:this.header.gid,mtime:this.noMtime?void 0:this.mtime||this.header.mtime,path:this[N](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[N](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?void 0:this.header.uid,uname:this.portable?void 0:this.header.uname,dev:this.portable?void 0:this.stat.dev,ino:this.portable?void 0:this.stat.ino,nlink:this.portable?void 0:this.stat.nlink}).encode());let X=this.header?.block;if(!X)throw new Error("failed to encode header");super.write(X)}[_](){if(!this.stat)throw new Error("cannot create directory entry without stat");this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[R](),this.end()}[w](){c.default.readlink(this.absolute,(X,Q)=>{if(X)return this.emit("error",X);this[x](Q)})}[x](X){this.linkpath=(0,l.normalizeWindowsPath)(X),this[R](),this.end()}[O](X){if(!this.stat)throw new Error("cannot create link entry without stat");this.type="Link",this.linkpath=(0,l.normalizeWindowsPath)(t.default.relative(this.cwd,X)),this.stat.size=0,this[R](),this.end()}[b](){if(!this.stat)throw new Error("cannot create file entry without stat");if(this.stat.nlink>1){let X=`${this.stat.dev}:${this.stat.ino}`,Q=this.linkCache.get(X);if(Q?.indexOf(this.cwd)===0)return this[O](Q);this.linkCache.set(X,this.absolute)}if(this[R](),this.stat.size===0)return this.end();this[j]()}[j](){c.default.open(this.absolute,"r",(X,Q)=>{if(X)return this.emit("error",X);this[U](Q)})}[U](X){if(this.fd=X,this.#e)return this[V]();if(!this.stat)throw new Error("should stat before calling onopenfile");this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let Q=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(Q),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[I]()}[I](){let{fd:X,buf:Q,offset:k,length:F,pos:z}=this;if(X===void 0||Q===void 0)throw new Error("cannot read file without first opening");c.default.read(X,Q,k,F,z,($,q)=>{if($)return this[V](()=>this.emit("error",$));this[M](q)})}[V](X=()=>{}){this.fd!==void 0&&c.default.close(this.fd,X)}[M](X){if(X<=0&&this.remain>0){let k=Object.assign(new Error("encountered unexpected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[V](()=>this.emit("error",k))}if(X>this.remain){let k=Object.assign(new Error("did not encounter expected EOF"),{path:this.absolute,syscall:"read",code:"EOF"});return this[V](()=>this.emit("error",k))}if(!this.buf)throw new Error("should have created buffer prior to reading");if(X===this.remain)for(let k=X;k<this.length&&X<this.blockRemain;k++)this.buf[k+this.offset]=0,X++,this.remain++;let Q=this.offset===0&&X===this.buf.length?this.buf:this.buf.subarray(this.offset,this.offset+X);this.write(Q)?this[W]():this[G](()=>this[W]())}[G](X){this.once("drain",X)}write(X,Q,k){if(typeof Q=="function"&&(k=Q,Q=void 0),typeof X=="string"&&(X=Buffer.from(X,typeof Q=="string"?Q:"utf8")),this.blockRemain<X.length){let F=Object.assign(new Error("writing more data than expected"),{path:this.absolute});return this.emit("error",F)}return this.remain-=X.length,this.blockRemain-=X.length,this.pos+=X.length,this.offset+=X.length,super.write(X,null,k)}[W](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[V](X=>X?this.emit("error",X):this.end());if(!this.buf)throw new Error("buffer lost somehow in ONDRAIN");this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[I]()}};e.WriteEntry=D;var T=class extends D{static{v(this,"WriteEntrySync")}sync=!0;[P](){this[L](c.default.lstatSync(this.absolute))}[w](){this[x](c.default.readlinkSync(this.absolute))}[j](){this[U](c.default.openSync(this.absolute,"r"))}[I](){let X=!0;try{let{fd:Q,buf:k,offset:F,length:z,pos:$}=this;if(Q===void 0||k===void 0)throw new Error("fd and buf must be set in READ method");let q=c.default.readSync(Q,k,F,z,$);this[M](q),X=!1}finally{if(X)try{this[V](()=>{})}catch{}}}[G](X){X()}[V](X=()=>{}){this.fd!==void 0&&c.default.closeSync(this.fd),X()}};e.WriteEntrySync=T;var C=class extends o.Minipass{static{v(this,"WriteEntryTar")}blockLen=0;blockRemain=0;buf=0;pos=0;remain=0;length=0;preservePaths;portable;strict;noPax;noMtime;readEntry;type;prefix;path;mode;uid;gid;uname;gname;header;mtime;atime;ctime;linkpath;size;onWriteEntry;warn(X,Q,k={}){return(0,m.warnMethod)(this,X,Q,k)}constructor(X,Q={}){let k=(0,u.dealias)(Q);super(),this.preservePaths=!!k.preservePaths,this.portable=!!k.portable,this.strict=!!k.strict,this.noPax=!!k.noPax,this.noMtime=!!k.noMtime,this.onWriteEntry=k.onWriteEntry,this.readEntry=X;let{type:F}=X;if(F==="Unsupported")throw new Error("writing entry that should be ignored");this.type=F,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=k.prefix,this.path=(0,l.normalizeWindowsPath)(X.path),this.mode=X.mode!==void 0?this[B](X.mode):void 0,this.uid=this.portable?void 0:X.uid,this.gid=this.portable?void 0:X.gid,this.uname=this.portable?void 0:X.uname,this.gname=this.portable?void 0:X.gname,this.size=X.size,this.mtime=this.noMtime?void 0:k.mtime||X.mtime,this.atime=this.portable?void 0:X.atime,this.ctime=this.portable?void 0:X.ctime,this.linkpath=X.linkpath!==void 0?(0,l.normalizeWindowsPath)(X.linkpath):void 0,typeof k.onwarn=="function"&&this.on("warn",k.onwarn);let z=!1;if(!this.preservePaths){let[q,J]=(0,d.stripAbsolutePath)(this.path);q&&typeof J=="string"&&(this.path=J,z=q)}this.remain=X.size,this.blockRemain=X.startBlockSize,this.onWriteEntry?.(this),this.header=new s.Header({path:this[N](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[N](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?void 0:this.uid,gid:this.portable?void 0:this.gid,size:this.size,mtime:this.noMtime?void 0:this.mtime,type:this.type,uname:this.portable?void 0:this.uname,atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime}),z&&this.warn("TAR_ENTRY_INFO",`stripping ${z} from absolute path`,{entry:this,path:z+this.path}),this.header.encode()&&!this.noPax&&super.write(new h.Pax({atime:this.portable?void 0:this.atime,ctime:this.portable?void 0:this.ctime,gid:this.portable?void 0:this.gid,mtime:this.noMtime?void 0:this.mtime,path:this[N](this.path),linkpath:this.type==="Link"&&this.linkpath!==void 0?this[N](this.linkpath):this.linkpath,size:this.size,uid:this.portable?void 0:this.uid,uname:this.portable?void 0:this.uname,dev:this.portable?void 0:this.readEntry.dev,ino:this.portable?void 0:this.readEntry.ino,nlink:this.portable?void 0:this.readEntry.nlink}).encode());let $=this.header?.block;if(!$)throw new Error("failed to encode header");super.write($),X.pipe(this)}[N](X){return y(X,this.prefix)}[B](X){return(0,i.modeFix)(X,this.type==="Directory",this.portable)}write(X,Q,k){typeof Q=="function"&&(k=Q,Q=void 0),typeof X=="string"&&(X=Buffer.from(X,typeof Q=="string"?Q:"utf8"));let F=X.length;if(F>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=F,super.write(X,k)}end(X,Q,k){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),typeof X=="function"&&(k=X,Q=void 0,X=void 0),typeof Q=="function"&&(k=Q,Q=void 0),typeof X=="string"&&(X=Buffer.from(X,Q??"utf8")),k&&this.once("finish",k),X?super.end(X,k):super.end(k),this}};e.WriteEntryTar=C;var Z=v(X=>X.isFile()?"File":X.isDirectory()?"Directory":X.isSymbolicLink()?"SymbolicLink":"Unsupported","getType")}),bb=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Node=e.Yallist=void 0;var r=class Vt{static{v(this,"Yallist")}tail;head;length=0;static create(t=[]){return new Vt(t)}constructor(t=[]){for(let s of t)this.push(s)}*[Symbol.iterator](){for(let t=this.head;t;t=t.next)yield t.value}removeNode(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");let s=t.next,i=t.prev;return s&&(s.prev=i),i&&(i.next=s),t===this.head&&(this.head=s),t===this.tail&&(this.tail=i),this.length--,t.next=void 0,t.prev=void 0,t.list=void 0,s}unshiftNode(t){if(t===this.head)return;t.list&&t.list.removeNode(t);let s=this.head;t.list=this,t.next=s,s&&(s.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}pushNode(t){if(t===this.tail)return;t.list&&t.list.removeNode(t);let s=this.tail;t.list=this,t.prev=s,s&&(s.next=t),this.tail=t,this.head||(this.head=t),this.length++}push(...t){for(let s=0,i=t.length;s<i;s++)p(this,t[s]);return this.length}unshift(...t){for(var s=0,i=t.length;s<i;s++)n(this,t[s]);return this.length}pop(){if(!this.tail)return;let t=this.tail.value,s=this.tail;return this.tail=this.tail.prev,this.tail?this.tail.next=void 0:this.head=void 0,s.list=void 0,this.length--,t}shift(){if(!this.head)return;let t=this.head.value,s=this.head;return this.head=this.head.next,this.head?this.head.prev=void 0:this.tail=void 0,s.list=void 0,this.length--,t}forEach(t,s){s=s||this;for(let i=this.head,l=0;i;l++)t.call(s,i.value,l,this),i=i.next}forEachReverse(t,s){s=s||this;for(let i=this.tail,l=this.length-1;i;l--)t.call(s,i.value,l,this),i=i.prev}get(t){let s=0,i=this.head;for(;i&&s<t;s++)i=i.next;if(s===t&&i)return i.value}getReverse(t){let s=0,i=this.tail;for(;i&&s<t;s++)i=i.prev;if(s===t&&i)return i.value}map(t,s){s=s||this;let i=new Vt;for(let l=this.head;l;)i.push(t.call(s,l.value,this)),l=l.next;return i}mapReverse(t,s){s=s||this;var i=new Vt;for(let l=this.tail;l;)i.push(t.call(s,l.value,this)),l=l.prev;return i}reduce(t,s){let i,l=this.head;if(arguments.length>1)i=s;else if(this.head)l=this.head.next,i=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var u=0;l;u++)i=t(i,l.value,u),l=l.next;return i}reduceReverse(t,s){let i,l=this.tail;if(arguments.length>1)i=s;else if(this.tail)l=this.tail.prev,i=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(let u=this.length-1;l;u--)i=t(i,l.value,u),l=l.prev;return i}toArray(){let t=new Array(this.length);for(let s=0,i=this.head;i;s++)t[s]=i.value,i=i.next;return t}toArrayReverse(){let t=new Array(this.length);for(let s=0,i=this.tail;i;s++)t[s]=i.value,i=i.prev;return t}slice(t=0,s=this.length){s<0&&(s+=this.length),t<0&&(t+=this.length);let i=new Vt;if(s<t||s<0)return i;t<0&&(t=0),s>this.length&&(s=this.length);let l=this.head,u=0;for(u=0;l&&u<t;u++)l=l.next;for(;l&&u<s;u++,l=l.next)i.push(l.value);return i}sliceReverse(t=0,s=this.length){s<0&&(s+=this.length),t<0&&(t+=this.length);let i=new Vt;if(s<t||s<0)return i;t<0&&(t=0),s>this.length&&(s=this.length);let l=this.length,u=this.tail;for(;u&&l>s;l--)u=u.prev;for(;u&&l>t;l--,u=u.prev)i.push(u.value);return i}splice(t,s=0,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);let l=this.head;for(let h=0;l&&h<t;h++)l=l.next;let u=[];for(let h=0;l&&h<s;h++)u.push(l.value),l=this.removeNode(l);l?l!==this.tail&&(l=l.prev):l=this.tail;for(let h of i)l=a(this,l,h);return u}reverse(){let t=this.head,s=this.tail;for(let i=t;i;i=i.prev){let l=i.prev;i.prev=i.next,i.next=l}return this.head=s,this.tail=t,this}};e.Yallist=r;function a(o,t,s){let i=t,l=t?t.next:o.head,u=new c(s,i,l,o);return u.next===void 0&&(o.tail=u),u.prev===void 0&&(o.head=u),o.length++,u}v(a,"insertAfter");function p(o,t){o.tail=new c(t,o.tail,void 0,o),o.head||(o.head=o.tail),o.length++}v(p,"push");function n(o,t){o.head=new c(t,void 0,o.head,o),o.tail||(o.tail=o.head),o.length++}v(n,"unshift");var c=class{static{v(this,"Node")}list;next;prev;value;constructor(o,t,s,i){this.list=i,this.value=o,t?(t.next=this,this.prev=t):this.prev=void 0,s?(s.prev=this,this.next=s):this.next=void 0}};e.Node=c}),po=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(T,C,Z,X){X===void 0&&(X=Z);var Q=Object.getOwnPropertyDescriptor(C,Z);(!Q||("get"in Q?!C.__esModule:Q.writable||Q.configurable))&&(Q={enumerable:!0,get:v(function(){return C[Z]},"get")}),Object.defineProperty(T,X,Q)}:function(T,C,Z,X){X===void 0&&(X=Z),T[X]=C[Z]}),a=e&&e.__setModuleDefault||(Object.create?function(T,C){Object.defineProperty(T,"default",{enumerable:!0,value:C})}:function(T,C){T.default=C}),p=e&&e.__importStar||function(T){if(T&&T.__esModule)return T;var C={};if(T!=null)for(var Z in T)Z!=="default"&&Object.prototype.hasOwnProperty.call(T,Z)&&r(C,T,Z);return a(C,T),C},n=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.PackSync=e.Pack=e.PackJob=void 0;var c=n(require("fs")),o=Nu(),t=class{static{v(this,"PackJob")}path;absolute;entry;stat;readdir;pending=!1;ignore=!1;piped=!1;constructor(T,C){this.path=T||"./",this.absolute=C}};e.PackJob=t;var s=Pe(),i=p(Ts()),l=bb(),u=lo(),h=co(),d=Buffer.alloc(1024),g=Symbol("onStat"),m=Symbol("ended"),f=Symbol("queue"),y=Symbol("current"),S=Symbol("process"),E=Symbol("processing"),b=Symbol("processJob"),_=Symbol("jobs"),w=Symbol("jobDone"),O=Symbol("addFSEntry"),R=Symbol("addTarEntry"),I=Symbol("stat"),P=Symbol("readdir"),L=Symbol("onreaddir"),M=Symbol("pipe"),x=Symbol("entry"),j=Symbol("entryOpt"),U=Symbol("writeEntryClass"),V=Symbol("write"),B=Symbol("ondrain"),G=n(require("path")),W=Nr(),N=class extends s.Minipass{static{v(this,"Pack")}opt;cwd;maxReadSize;preservePaths;strict;noPax;prefix;linkCache;statCache;file;portable;zip;readdirCache;noDirRecurse;follow;noMtime;mtime;filter;jobs;[U];onWriteEntry;[f];[_]=0;[E]=!1;[m]=!1;constructor(T={}){if(super(),this.opt=T,this.file=T.file||"",this.cwd=T.cwd||process.cwd(),this.maxReadSize=T.maxReadSize,this.preservePaths=!!T.preservePaths,this.strict=!!T.strict,this.noPax=!!T.noPax,this.prefix=(0,W.normalizeWindowsPath)(T.prefix||""),this.linkCache=T.linkCache||new Map,this.statCache=T.statCache||new Map,this.readdirCache=T.readdirCache||new Map,this.onWriteEntry=T.onWriteEntry,this[U]=o.WriteEntry,typeof T.onwarn=="function"&&this.on("warn",T.onwarn),this.portable=!!T.portable,T.gzip||T.brotli||T.zstd){if((T.gzip?1:0)+(T.brotli?1:0)+(T.zstd?1:0)>1)throw new TypeError("gzip, brotli, zstd are mutually exclusive");if(T.gzip&&(typeof T.gzip!="object"&&(T.gzip={}),this.portable&&(T.gzip.portable=!0),this.zip=new i.Gzip(T.gzip)),T.brotli&&(typeof T.brotli!="object"&&(T.brotli={}),this.zip=new i.BrotliCompress(T.brotli)),T.zstd&&(typeof T.zstd!="object"&&(T.zstd={}),this.zip=new i.ZstdCompress(T.zstd)),!this.zip)throw new Error("impossible");let C=this.zip;C.on("data",Z=>super.write(Z)),C.on("end",()=>super.end()),C.on("drain",()=>this[B]()),this.on("resume",()=>C.resume())}else this.on("drain",this[B]);this.noDirRecurse=!!T.noDirRecurse,this.follow=!!T.follow,this.noMtime=!!T.noMtime,T.mtime&&(this.mtime=T.mtime),this.filter=typeof T.filter=="function"?T.filter:()=>!0,this[f]=new l.Yallist,this[_]=0,this.jobs=Number(T.jobs)||4,this[E]=!1,this[m]=!1}[V](T){return super.write(T)}add(T){return this.write(T),this}end(T,C,Z){return typeof T=="function"&&(Z=T,T=void 0),typeof C=="function"&&(Z=C,C=void 0),T&&this.add(T),this[m]=!0,this[S](),Z&&Z(),this}write(T){if(this[m])throw new Error("write after end");return T instanceof u.ReadEntry?this[R](T):this[O](T),this.flowing}[R](T){let C=(0,W.normalizeWindowsPath)(G.default.resolve(this.cwd,T.path));if(!this.filter(T.path,T))T.resume();else{let Z=new t(T.path,C);Z.entry=new o.WriteEntryTar(T,this[j](Z)),Z.entry.on("end",()=>this[w](Z)),this[_]+=1,this[f].push(Z)}this[S]()}[O](T){let C=(0,W.normalizeWindowsPath)(G.default.resolve(this.cwd,T));this[f].push(new t(T,C)),this[S]()}[I](T){T.pending=!0,this[_]+=1;let C=this.follow?"stat":"lstat";c.default[C](T.absolute,(Z,X)=>{T.pending=!1,this[_]-=1,Z?this.emit("error",Z):this[g](T,X)})}[g](T,C){this.statCache.set(T.absolute,C),T.stat=C,this.filter(T.path,C)||(T.ignore=!0),this[S]()}[P](T){T.pending=!0,this[_]+=1,c.default.readdir(T.absolute,(C,Z)=>{if(T.pending=!1,this[_]-=1,C)return this.emit("error",C);this[L](T,Z)})}[L](T,C){this.readdirCache.set(T.absolute,C),T.readdir=C,this[S]()}[S](){if(!this[E]){this[E]=!0;for(let T=this[f].head;T&&this[_]<this.jobs;T=T.next)if(this[b](T.value),T.value.ignore){let C=T.next;this[f].removeNode(T),T.next=C}this[E]=!1,this[m]&&!this[f].length&&this[_]===0&&(this.zip?this.zip.end(d):(super.write(d),super.end()))}}get[y](){return this[f]&&this[f].head&&this[f].head.value}[w](T){this[f].shift(),this[_]-=1,this[S]()}[b](T){if(!T.pending){if(T.entry){T===this[y]&&!T.piped&&this[M](T);return}if(!T.stat){let C=this.statCache.get(T.absolute);C?this[g](T,C):this[I](T)}if(T.stat&&!T.ignore){if(!this.noDirRecurse&&T.stat.isDirectory()&&!T.readdir){let C=this.readdirCache.get(T.absolute);if(C?this[L](T,C):this[P](T),!T.readdir)return}if(T.entry=this[x](T),!T.entry){T.ignore=!0;return}T===this[y]&&!T.piped&&this[M](T)}}}[j](T){return{onwarn:v((C,Z,X)=>this.warn(C,Z,X),"onwarn"),noPax:this.noPax,cwd:this.cwd,absolute:T.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix,onWriteEntry:this.onWriteEntry}}[x](T){this[_]+=1;try{return new this[U](T.path,this[j](T)).on("end",()=>this[w](T)).on("error",C=>this.emit("error",C))}catch(C){this.emit("error",C)}}[B](){this[y]&&this[y].entry&&this[y].entry.resume()}[M](T){T.piped=!0,T.readdir&&T.readdir.forEach(X=>{let Q=T.path,k=Q==="./"?"":Q.replace(/\/*$/,"/");this[O](k+X)});let C=T.entry,Z=this.zip;if(!C)throw new Error("cannot pipe without source");Z?C.on("data",X=>{Z.write(X)||C.pause()}):C.on("data",X=>{super.write(X)||C.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}warn(T,C,Z={}){(0,h.warnMethod)(this,T,C,Z)}};e.Pack=N;var D=class extends N{static{v(this,"PackSync")}sync=!0;constructor(T){super(T),this[U]=o.WriteEntrySync}pause(){}resume(){}[I](T){let C=this.follow?"statSync":"lstatSync";this[g](T,c.default[C](T.absolute))}[P](T){this[L](T,c.default.readdirSync(T.absolute))}[M](T){let C=T.entry,Z=this.zip;if(T.readdir&&T.readdir.forEach(X=>{let Q=T.path,k=Q==="./"?"":Q.replace(/\/*$/,"/");this[O](k+X)}),!C)throw new Error("Cannot pipe without source");Z?C.on("data",X=>{Z.write(X)}):C.on("data",X=>{super[V](X)})}};e.PackSync=D}),Dc=K(e=>{"use strict";var r=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.create=void 0;var a=Tr(),p=r(require("node:path")),n=br(),c=Pr(),o=po(),t=v((d,g)=>{let m=new o.PackSync(d),f=new a.WriteStreamSync(d.file,{mode:d.mode||438});m.pipe(f),i(m,g)},"createFileSync"),s=v((d,g)=>{let m=new o.Pack(d),f=new a.WriteStream(d.file,{mode:d.mode||438});m.pipe(f);let y=new Promise((S,E)=>{f.on("error",E),f.on("close",S),m.on("error",E)});return l(m,g),y},"createFile"),i=v((d,g)=>{g.forEach(m=>{m.charAt(0)==="@"?(0,n.list)({file:p.default.resolve(d.cwd,m.slice(1)),sync:!0,noResume:!0,onReadEntry:v(f=>d.add(f),"onReadEntry")}):d.add(m)}),d.end()},"addFilesSync"),l=v(async(d,g)=>{for(let m=0;m<g.length;m++){let f=String(g[m]);f.charAt(0)==="@"?await(0,n.list)({file:p.default.resolve(String(d.cwd),f.slice(1)),noResume:!0,onReadEntry:v(y=>{d.add(y)},"onReadEntry")}):d.add(f)}d.end()},"addFilesAsync"),u=v((d,g)=>{let m=new o.PackSync(d);return i(m,g),m},"createSync"),h=v((d,g)=>{let m=new o.Pack(d);return l(m,g),m},"createAsync");e.create=(0,c.makeCommand)(t,s,u,h,(d,g)=>{if(!g?.length)throw new TypeError("no paths specified to add to archive")})}),_b=K(e=>{"use strict";var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.getWriteFlag=void 0;var a=r(require("fs")),p=process.env.__FAKE_PLATFORM__||process.platform,n=p==="win32",{O_CREAT:c,O_TRUNC:o,O_WRONLY:t}=a.default.constants,s=Number(process.env.__FAKE_FS_O_FILENAME__)||a.default.constants.UV_FS_O_FILEMAP||0,i=n&&!!s,l=512*1024,u=s|o|c|t;e.getWriteFlag=i?h=>h<l?u:"w":()=>"w"}),wb=K(e=>{"use strict";var r=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.chownrSync=e.chownr=void 0;var a=r(require("node:fs")),p=r(require("node:path")),n=v((l,u,h)=>{try{return a.default.lchownSync(l,u,h)}catch(d){if(d?.code!=="ENOENT")throw d}},"lchownSync"),c=v((l,u,h,d)=>{a.default.lchown(l,u,h,g=>{d(g&&g?.code!=="ENOENT"?g:null)})},"chown"),o=v((l,u,h,d,g)=>{if(u.isDirectory())(0,e.chownr)(p.default.resolve(l,u.name),h,d,m=>{if(m)return g(m);let f=p.default.resolve(l,u.name);c(f,h,d,g)});else{let m=p.default.resolve(l,u.name);c(m,h,d,g)}},"chownrKid"),t=v((l,u,h,d)=>{a.default.readdir(l,{withFileTypes:!0},(g,m)=>{if(g){if(g.code==="ENOENT")return d();if(g.code!=="ENOTDIR"&&g.code!=="ENOTSUP")return d(g)}if(g||!m.length)return c(l,u,h,d);let f=m.length,y=null,S=v(E=>{if(!y){if(E)return d(y=E);if(--f===0)return c(l,u,h,d)}},"then");for(let E of m)o(l,E,u,h,S)})},"chownr");e.chownr=t;var s=v((l,u,h,d)=>{u.isDirectory()&&(0,e.chownrSync)(p.default.resolve(l,u.name),h,d),n(p.default.resolve(l,u.name),h,d)},"chownrKidSync"),i=v((l,u,h)=>{let d;try{d=a.default.readdirSync(l,{withFileTypes:!0})}catch(g){let m=g;if(m?.code==="ENOENT")return;if(m?.code==="ENOTDIR"||m?.code==="ENOTSUP")return n(l,u,h);throw m}for(let g of d)s(l,g,u,h);return n(l,u,h)},"chownrSync");e.chownrSync=i}),Ob=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CwdError=void 0;var r=class extends Error{static{v(this,"CwdError")}path;code;syscall="chdir";constructor(a,p){super(`${p}: Cannot cd into '${a}'`),this.path=a,this.code=p}get name(){return"CwdError"}};e.CwdError=r}),Ab=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SymlinkError=void 0;var r=class extends Error{static{v(this,"SymlinkError")}path;symlink;syscall="symlink";code="TAR_SYMLINK_ERROR";constructor(a,p){super("TAR_SYMLINK_ERROR: Cannot extract through symbolic link"),this.symlink=a,this.path=p}get name(){return"SymlinkError"}};e.SymlinkError=r}),Rb=K(e=>{"use strict";var r=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.mkdirSync=e.mkdir=void 0;var a=wb(),p=r(require("node:fs")),n=r(require("node:fs/promises")),c=r(require("node:path")),o=Ob(),t=Nr(),s=Ab(),i=v((m,f)=>{p.default.stat(m,(y,S)=>{(y||!S.isDirectory())&&(y=new o.CwdError(m,y?.code||"ENOTDIR")),f(y)})},"checkCwd"),l=v((m,f,y)=>{m=(0,t.normalizeWindowsPath)(m);let S=f.umask??18,E=f.mode|448,b=(E&S)!==0,_=f.uid,w=f.gid,O=typeof _=="number"&&typeof w=="number"&&(_!==f.processUid||w!==f.processGid),R=f.preserve,I=f.unlink,P=(0,t.normalizeWindowsPath)(f.cwd),L=v((x,j)=>{x?y(x):j&&O?(0,a.chownr)(j,_,w,U=>L(U)):b?p.default.chmod(m,E,y):y()},"done");if(m===P)return i(m,L);if(R)return n.default.mkdir(m,{mode:E,recursive:!0}).then(x=>L(null,x??void 0),L);let M=(0,t.normalizeWindowsPath)(c.default.relative(P,m)).split("/");u(P,M,E,I,P,void 0,L)},"mkdir");e.mkdir=l;var u=v((m,f,y,S,E,b,_)=>{if(!f.length)return _(null,b);let w=f.shift(),O=(0,t.normalizeWindowsPath)(c.default.resolve(m+"/"+w));p.default.mkdir(O,y,h(O,f,y,S,E,b,_))},"mkdir_"),h=v((m,f,y,S,E,b,_)=>w=>{w?p.default.lstat(m,(O,R)=>{if(O)O.path=O.path&&(0,t.normalizeWindowsPath)(O.path),_(O);else if(R.isDirectory())u(m,f,y,S,E,b,_);else if(S)p.default.unlink(m,I=>{if(I)return _(I);p.default.mkdir(m,y,h(m,f,y,S,E,b,_))});else{if(R.isSymbolicLink())return _(new s.SymlinkError(m,m+"/"+f.join("/")));_(w)}}):(b=b||m,u(m,f,y,S,E,b,_))},"onmkdir"),d=v(m=>{let f=!1,y;try{f=p.default.statSync(m).isDirectory()}catch(S){y=S?.code}finally{if(!f)throw new o.CwdError(m,y??"ENOTDIR")}},"checkCwdSync"),g=v((m,f)=>{m=(0,t.normalizeWindowsPath)(m);let y=f.umask??18,S=f.mode|448,E=(S&y)!==0,b=f.uid,_=f.gid,w=typeof b=="number"&&typeof _=="number"&&(b!==f.processUid||_!==f.processGid),O=f.preserve,R=f.unlink,I=(0,t.normalizeWindowsPath)(f.cwd),P=v(x=>{x&&w&&(0,a.chownrSync)(x,b,_),E&&p.default.chmodSync(m,S)},"done");if(m===I)return d(I),P();if(O)return P(p.default.mkdirSync(m,{mode:S,recursive:!0})??void 0);let L=(0,t.normalizeWindowsPath)(c.default.relative(I,m)).split("/"),M;for(let x=L.shift(),j=I;x&&(j+="/"+x);x=L.shift()){j=(0,t.normalizeWindowsPath)(c.default.resolve(j));try{p.default.mkdirSync(j,S),M=M||j}catch{let U=p.default.lstatSync(j);if(U.isDirectory())continue;if(R){p.default.unlinkSync(j),p.default.mkdirSync(j,S),M=M||j;continue}else if(U.isSymbolicLink())return new s.SymlinkError(j,j+"/"+L.join("/"))}}return P(M)},"mkdirSync");e.mkdirSync=g}),Cb=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeUnicode=void 0;var r=Object.create(null),a=1e4,p=new Set,n=v(c=>{p.has(c)?p.delete(c):r[c]=c.normalize("NFD"),p.add(c);let o=r[c],t=p.size-a;if(t>a/10){for(let s of p)if(p.delete(s),delete r[s],--t<=0)break}return o},"normalizeUnicode");e.normalizeUnicode=n}),Ib=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PathReservations=void 0;var r=require("node:path"),a=Cb(),p=ho(),n=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,c=n==="win32",o=v(s=>s.split("/").slice(0,-1).reduce((i,l)=>{let u=i[i.length-1];return u!==void 0&&(l=(0,r.join)(u,l)),i.push(l||"/"),i},[]),"getDirs"),t=class{static{v(this,"PathReservations")}#e=new Map;#t=new Map;#r=new Set;reserve(s,i){s=c?["win32 parallelization disabled"]:s.map(u=>(0,p.stripTrailingSlashes)((0,r.join)((0,a.normalizeUnicode)(u))).toLowerCase());let l=new Set(s.map(u=>o(u)).reduce((u,h)=>u.concat(h)));this.#t.set(i,{dirs:l,paths:s});for(let u of s){let h=this.#e.get(u);h?h.push(i):this.#e.set(u,[i])}for(let u of l){let h=this.#e.get(u);if(!h)this.#e.set(u,[new Set([i])]);else{let d=h[h.length-1];d instanceof Set?d.add(i):h.push(new Set([i]))}}return this.#i(i)}#s(s){let i=this.#t.get(s);if(!i)throw new Error("function does not have any path reservations");return{paths:i.paths.map(l=>this.#e.get(l)),dirs:[...i.dirs].map(l=>this.#e.get(l))}}check(s){let{paths:i,dirs:l}=this.#s(s);return i.every(u=>u&&u[0]===s)&&l.every(u=>u&&u[0]instanceof Set&&u[0].has(s))}#i(s){return this.#r.has(s)||!this.check(s)?!1:(this.#r.add(s),s(()=>this.#c(s)),!0)}#c(s){if(!this.#r.has(s))return!1;let i=this.#t.get(s);if(!i)throw new Error("invalid reservation");let{paths:l,dirs:u}=i,h=new Set;for(let d of l){let g=this.#e.get(d);if(!g||g?.[0]!==s)continue;let m=g[1];if(!m){this.#e.delete(d);continue}if(g.shift(),typeof m=="function")h.add(m);else for(let f of m)h.add(f)}for(let d of u){let g=this.#e.get(d),m=g?.[0];if(!(!g||!(m instanceof Set)))if(m.size===1&&g.length===1){this.#e.delete(d);continue}else if(m.size===1){g.shift();let f=g[0];typeof f=="function"&&h.add(f)}else m.delete(s)}return this.#r.delete(s),h.forEach(d=>this.#i(d)),!0}};e.PathReservations=t}),ku=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(A,H,ee,ne){ne===void 0&&(ne=ee);var te=Object.getOwnPropertyDescriptor(H,ee);(!te||("get"in te?!H.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:v(function(){return H[ee]},"get")}),Object.defineProperty(A,ne,te)}:function(A,H,ee,ne){ne===void 0&&(ne=ee),A[ne]=H[ee]}),a=e&&e.__setModuleDefault||(Object.create?function(A,H){Object.defineProperty(A,"default",{enumerable:!0,value:H})}:function(A,H){A.default=H}),p=e&&e.__importStar||function(A){if(A&&A.__esModule)return A;var H={};if(A!=null)for(var ee in A)ee!=="default"&&Object.prototype.hasOwnProperty.call(A,ee)&&r(H,A,ee);return a(H,A),H},n=e&&e.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.UnpackSync=e.Unpack=void 0;var c=p(Tr()),o=n(require("node:assert")),t=require("node:crypto"),s=n(require("node:fs")),i=n(require("node:path")),l=_b(),u=Rb(),h=Nr(),d=uo(),g=Pu(),m=p(xu()),f=Ib(),y=Symbol("onEntry"),S=Symbol("checkFs"),E=Symbol("checkFs2"),b=Symbol("isReusable"),_=Symbol("makeFs"),w=Symbol("file"),O=Symbol("directory"),R=Symbol("link"),I=Symbol("symlink"),P=Symbol("hardlink"),L=Symbol("unsupported"),M=Symbol("checkPath"),x=Symbol("mkdir"),j=Symbol("onError"),U=Symbol("pending"),V=Symbol("pend"),B=Symbol("unpend"),G=Symbol("ended"),W=Symbol("maybeClose"),N=Symbol("skip"),D=Symbol("doChown"),T=Symbol("uid"),C=Symbol("gid"),Z=Symbol("checkedCwd"),X=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Q=X==="win32",k=1024,F=v((A,H)=>{if(!Q)return s.default.unlink(A,H);let ee=A+".DELETE."+(0,t.randomBytes)(16).toString("hex");s.default.rename(A,ee,ne=>{if(ne)return H(ne);s.default.unlink(ee,H)})},"unlinkFile"),z=v(A=>{if(!Q)return s.default.unlinkSync(A);let H=A+".DELETE."+(0,t.randomBytes)(16).toString("hex");s.default.renameSync(A,H),s.default.unlinkSync(H)},"unlinkFileSync"),$=v((A,H,ee)=>A!==void 0&&A===A>>>0?A:H!==void 0&&H===H>>>0?H:ee,"uint32"),q=class extends d.Parser{static{v(this,"Unpack")}[G]=!1;[Z]=!1;[U]=0;reservations=new f.PathReservations;transform;writable=!0;readable=!1;uid;gid;setOwner;preserveOwner;processGid;processUid;maxDepth;forceChown;win32;newer;keep;noMtime;preservePaths;unlink;cwd;strip;processUmask;umask;dmode;fmode;chmod;constructor(A={}){if(A.ondone=()=>{this[G]=!0,this[W]()},super(A),this.transform=A.transform,this.chmod=!!A.chmod,typeof A.uid=="number"||typeof A.gid=="number"){if(typeof A.uid!="number"||typeof A.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(A.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=A.uid,this.gid=A.gid,this.setOwner=!0}else this.uid=void 0,this.gid=void 0,this.setOwner=!1;A.preserveOwner===void 0&&typeof A.uid!="number"?this.preserveOwner=!!(process.getuid&&process.getuid()===0):this.preserveOwner=!!A.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():void 0,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():void 0,this.maxDepth=typeof A.maxDepth=="number"?A.maxDepth:k,this.forceChown=A.forceChown===!0,this.win32=!!A.win32||Q,this.newer=!!A.newer,this.keep=!!A.keep,this.noMtime=!!A.noMtime,this.preservePaths=!!A.preservePaths,this.unlink=!!A.unlink,this.cwd=(0,h.normalizeWindowsPath)(i.default.resolve(A.cwd||process.cwd())),this.strip=Number(A.strip)||0,this.processUmask=this.chmod?typeof A.processUmask=="number"?A.processUmask:process.umask():0,this.umask=typeof A.umask=="number"?A.umask:this.processUmask,this.dmode=A.dmode||511&~this.umask,this.fmode=A.fmode||438&~this.umask,this.on("entry",H=>this[y](H))}warn(A,H,ee={}){return(A==="TAR_BAD_ARCHIVE"||A==="TAR_ABORT")&&(ee.recoverable=!1),super.warn(A,H,ee)}[W](){this[G]&&this[U]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[M](A){let H=(0,h.normalizeWindowsPath)(A.path),ee=H.split("/");if(this.strip){if(ee.length<this.strip)return!1;if(A.type==="Link"){let ne=(0,h.normalizeWindowsPath)(String(A.linkpath)).split("/");if(ne.length>=this.strip)A.linkpath=ne.slice(this.strip).join("/");else return!1}ee.splice(0,this.strip),A.path=ee.join("/")}if(isFinite(this.maxDepth)&&ee.length>this.maxDepth)return this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:A,path:H,depth:ee.length,maxDepth:this.maxDepth}),!1;if(!this.preservePaths){if(ee.includes("..")||Q&&/^[a-z]:\.\.$/i.test(ee[0]??""))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:A,path:H}),!1;let[ne,te]=(0,g.stripAbsolutePath)(H);ne&&(A.path=String(te),this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:A,path:H}))}if(i.default.isAbsolute(A.path)?A.absolute=(0,h.normalizeWindowsPath)(i.default.resolve(A.path)):A.absolute=(0,h.normalizeWindowsPath)(i.default.resolve(this.cwd,A.path)),!this.preservePaths&&typeof A.absolute=="string"&&A.absolute.indexOf(this.cwd+"/")!==0&&A.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:A,path:(0,h.normalizeWindowsPath)(A.path),resolvedPath:A.absolute,cwd:this.cwd}),!1;if(A.absolute===this.cwd&&A.type!=="Directory"&&A.type!=="GNUDumpDir")return!1;if(this.win32){let{root:ne}=i.default.win32.parse(String(A.absolute));A.absolute=ne+m.encode(String(A.absolute).slice(ne.length));let{root:te}=i.default.win32.parse(A.path);A.path=te+m.encode(A.path.slice(te.length))}return!0}[y](A){if(!this[M](A))return A.resume();switch(o.default.equal(typeof A.absolute,"string"),A.type){case"Directory":case"GNUDumpDir":A.mode&&(A.mode=A.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[S](A);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[L](A)}}[j](A,H){A.name==="CwdError"?this.emit("error",A):(this.warn("TAR_ENTRY_ERROR",A,{entry:H}),this[B](),H.resume())}[x](A,H,ee){(0,u.mkdir)((0,h.normalizeWindowsPath)(A),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:H},ee)}[D](A){return this.forceChown||this.preserveOwner&&(typeof A.uid=="number"&&A.uid!==this.processUid||typeof A.gid=="number"&&A.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[T](A){return $(this.uid,A.uid,this.processUid)}[C](A){return $(this.gid,A.gid,this.processGid)}[w](A,H){let ee=typeof A.mode=="number"?A.mode&4095:this.fmode,ne=new c.WriteStream(String(A.absolute),{flags:(0,l.getWriteFlag)(A.size),mode:ee,autoClose:!1});ne.on("error",re=>{ne.fd&&s.default.close(ne.fd,()=>{}),ne.write=()=>!0,this[j](re,A),H()});let te=1,ae=v(re=>{if(re){ne.fd&&s.default.close(ne.fd,()=>{}),this[j](re,A),H();return}--te===0&&ne.fd!==void 0&&s.default.close(ne.fd,ue=>{ue?this[j](ue,A):this[B](),H()})},"done");ne.on("finish",()=>{let re=String(A.absolute),ue=ne.fd;if(typeof ue=="number"&&A.mtime&&!this.noMtime){te++;let ie=A.atime||new Date,le=A.mtime;s.default.futimes(ue,ie,le,fe=>fe?s.default.utimes(re,ie,le,me=>ae(me&&fe)):ae())}if(typeof ue=="number"&&this[D](A)){te++;let ie=this[T](A),le=this[C](A);typeof ie=="number"&&typeof le=="number"&&s.default.fchown(ue,ie,le,fe=>fe?s.default.chown(re,ie,le,me=>ae(me&&fe)):ae())}ae()});let he=this.transform&&this.transform(A)||A;he!==A&&(he.on("error",re=>{this[j](re,A),H()}),A.pipe(he)),he.pipe(ne)}[O](A,H){let ee=typeof A.mode=="number"?A.mode&4095:this.dmode;this[x](String(A.absolute),ee,ne=>{if(ne){this[j](ne,A),H();return}let te=1,ae=v(()=>{--te===0&&(H(),this[B](),A.resume())},"done");A.mtime&&!this.noMtime&&(te++,s.default.utimes(String(A.absolute),A.atime||new Date,A.mtime,ae)),this[D](A)&&(te++,s.default.chown(String(A.absolute),Number(this[T](A)),Number(this[C](A)),ae)),ae()})}[L](A){A.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${A.type}`,{entry:A}),A.resume()}[I](A,H){this[R](A,String(A.linkpath),"symlink",H)}[P](A,H){let ee=(0,h.normalizeWindowsPath)(i.default.resolve(this.cwd,String(A.linkpath)));this[R](A,ee,"link",H)}[V](){this[U]++}[B](){this[U]--,this[W]()}[N](A){this[B](),A.resume()}[b](A,H){return A.type==="File"&&!this.unlink&&H.isFile()&&H.nlink<=1&&!Q}[S](A){this[V]();let H=[A.path];A.linkpath&&H.push(A.linkpath),this.reservations.reserve(H,ee=>this[E](A,ee))}[E](A,H){let ee=v(he=>{H(he)},"done"),ne=v(()=>{this[x](this.cwd,this.dmode,he=>{if(he){this[j](he,A),ee();return}this[Z]=!0,te()})},"checkCwd"),te=v(()=>{if(A.absolute!==this.cwd){let he=(0,h.normalizeWindowsPath)(i.default.dirname(String(A.absolute)));if(he!==this.cwd)return this[x](he,this.dmode,re=>{if(re){this[j](re,A),ee();return}ae()})}ae()},"start"),ae=v(()=>{s.default.lstat(String(A.absolute),(he,re)=>{if(re&&(this.keep||this.newer&&re.mtime>(A.mtime??re.mtime))){this[N](A),ee();return}if(he||this[b](A,re))return this[_](null,A,ee);if(re.isDirectory()){if(A.type==="Directory"){let ue=this.chmod&&A.mode&&(re.mode&4095)!==A.mode,ie=v(le=>this[_](le??null,A,ee),"afterChmod");return ue?s.default.chmod(String(A.absolute),Number(A.mode),ie):ie()}if(A.absolute!==this.cwd)return s.default.rmdir(String(A.absolute),ue=>this[_](ue??null,A,ee))}if(A.absolute===this.cwd)return this[_](null,A,ee);F(String(A.absolute),ue=>this[_](ue??null,A,ee))})},"afterMakeParent");this[Z]?te():ne()}[_](A,H,ee){if(A){this[j](A,H),ee();return}switch(H.type){case"File":case"OldFile":case"ContiguousFile":return this[w](H,ee);case"Link":return this[P](H,ee);case"SymbolicLink":return this[I](H,ee);case"Directory":case"GNUDumpDir":return this[O](H,ee)}}[R](A,H,ee,ne){s.default[ee](H,String(A.absolute),te=>{te?this[j](te,A):(this[B](),A.resume()),ne()})}};e.Unpack=q;var J=v(A=>{try{return[null,A()]}catch(H){return[H,null]}},"callSync"),Y=class extends q{static{v(this,"UnpackSync")}sync=!0;[_](A,H){return super[_](A,H,()=>{})}[S](A){if(!this[Z]){let te=this[x](this.cwd,this.dmode);if(te)return this[j](te,A);this[Z]=!0}if(A.absolute!==this.cwd){let te=(0,h.normalizeWindowsPath)(i.default.dirname(String(A.absolute)));if(te!==this.cwd){let ae=this[x](te,this.dmode);if(ae)return this[j](ae,A)}}let[H,ee]=J(()=>s.default.lstatSync(String(A.absolute)));if(ee&&(this.keep||this.newer&&ee.mtime>(A.mtime??ee.mtime)))return this[N](A);if(H||this[b](A,ee))return this[_](null,A);if(ee.isDirectory()){if(A.type==="Directory"){let ae=this.chmod&&A.mode&&(ee.mode&4095)!==A.mode,[he]=ae?J(()=>{s.default.chmodSync(String(A.absolute),Number(A.mode))}):[];return this[_](he,A)}let[te]=J(()=>s.default.rmdirSync(String(A.absolute)));this[_](te,A)}let[ne]=A.absolute===this.cwd?[]:J(()=>z(String(A.absolute)));this[_](ne,A)}[w](A,H){let ee=typeof A.mode=="number"?A.mode&4095:this.fmode,ne=v(he=>{let re;try{s.default.closeSync(te)}catch(ue){re=ue}(he||re)&&this[j](he||re,A),H()},"oner"),te;try{te=s.default.openSync(String(A.absolute),(0,l.getWriteFlag)(A.size),ee)}catch(he){return ne(he)}let ae=this.transform&&this.transform(A)||A;ae!==A&&(ae.on("error",he=>this[j](he,A)),A.pipe(ae)),ae.on("data",he=>{try{s.default.writeSync(te,he,0,he.length)}catch(re){ne(re)}}),ae.on("end",()=>{let he=null;if(A.mtime&&!this.noMtime){let re=A.atime||new Date,ue=A.mtime;try{s.default.futimesSync(te,re,ue)}catch(ie){try{s.default.utimesSync(String(A.absolute),re,ue)}catch{he=ie}}}if(this[D](A)){let re=this[T](A),ue=this[C](A);try{s.default.fchownSync(te,Number(re),Number(ue))}catch(ie){try{s.default.chownSync(String(A.absolute),Number(re),Number(ue))}catch{he=he||ie}}}ne(he)})}[O](A,H){let ee=typeof A.mode=="number"?A.mode&4095:this.dmode,ne=this[x](String(A.absolute),ee);if(ne){this[j](ne,A),H();return}if(A.mtime&&!this.noMtime)try{s.default.utimesSync(String(A.absolute),A.atime||new Date,A.mtime)}catch{}if(this[D](A))try{s.default.chownSync(String(A.absolute),Number(this[T](A)),Number(this[C](A)))}catch{}H(),A.resume()}[x](A,H){try{return(0,u.mkdirSync)((0,h.normalizeWindowsPath)(A),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cwd:this.cwd,mode:H})}catch(ee){return ee}}[R](A,H,ee,ne){let te=`${ee}Sync`;try{s.default[te](H,String(A.absolute)),ne(),A.resume()}catch(ae){return this[j](ae,A)}}};e.UnpackSync=Y}),Mc=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(h,d,g,m){m===void 0&&(m=g);var f=Object.getOwnPropertyDescriptor(d,g);(!f||("get"in f?!d.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:v(function(){return d[g]},"get")}),Object.defineProperty(h,m,f)}:function(h,d,g,m){m===void 0&&(m=g),h[m]=d[g]}),a=e&&e.__setModuleDefault||(Object.create?function(h,d){Object.defineProperty(h,"default",{enumerable:!0,value:d})}:function(h,d){h.default=d}),p=e&&e.__importStar||function(h){if(h&&h.__esModule)return h;var d={};if(h!=null)for(var g in h)g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)&&r(d,h,g);return a(d,h),d},n=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.extract=void 0;var c=p(Tr()),o=n(require("node:fs")),t=br(),s=Pr(),i=ku(),l=v(h=>{let d=new i.UnpackSync(h),g=h.file,m=o.default.statSync(g),f=h.maxReadSize||16*1024*1024;new c.ReadStreamSync(g,{readSize:f,size:m.size}).pipe(d)},"extractFileSync"),u=v((h,d)=>{let g=new i.Unpack(h),m=h.maxReadSize||16*1024*1024,f=h.file;return new Promise((y,S)=>{g.on("error",S),g.on("close",y),o.default.stat(f,(E,b)=>{if(E)S(E);else{let _=new c.ReadStream(f,{readSize:m,size:b.size});_.on("error",S),_.pipe(g)}})})},"extractFile");e.extract=(0,s.makeCommand)(l,u,h=>new i.UnpackSync(h),h=>new i.Unpack(h),(h,d)=>{d?.length&&(0,t.filesFilter)(h,d)})}),An=K(e=>{"use strict";var r=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.replace=void 0;var a=Tr(),p=r(require("node:fs")),n=r(require("node:path")),c=xr(),o=br(),t=Pr(),s=oo(),i=po(),l=v((m,f)=>{let y=new i.PackSync(m),S=!0,E,b;try{try{E=p.default.openSync(m.file,"r+")}catch(O){if(O?.code==="ENOENT")E=p.default.openSync(m.file,"w+");else throw O}let _=p.default.fstatSync(E),w=Buffer.alloc(512);e:for(b=0;b<_.size;b+=512){for(let I=0,P=0;I<512;I+=P){if(P=p.default.readSync(E,w,I,w.length-I,b+I),b===0&&w[0]===31&&w[1]===139)throw new Error("cannot append to compressed archives");if(!P)break e}let O=new c.Header(w);if(!O.cksumValid)break;let R=512*Math.ceil((O.size||0)/512);if(b+R+512>_.size)break;b+=R,m.mtimeCache&&O.mtime&&m.mtimeCache.set(String(O.path),O.mtime)}S=!1,u(m,y,b,E,f)}finally{if(S)try{p.default.closeSync(E)}catch{}}},"replaceSync"),u=v((m,f,y,S,E)=>{let b=new a.WriteStreamSync(m.file,{fd:S,start:y});f.pipe(b),d(f,E)},"streamSync"),h=v((m,f)=>{f=Array.from(f);let y=new i.Pack(m),S=v((E,b,_)=>{let w=v((L,M)=>{L?p.default.close(E,x=>_(L)):_(null,M)},"cb"),O=0;if(b===0)return w(null,0);let R=0,I=Buffer.alloc(512),P=v((L,M)=>{if(L||typeof M>"u")return w(L);if(R+=M,R<512&&M)return p.default.read(E,I,R,I.length-R,O+R,P);if(O===0&&I[0]===31&&I[1]===139)return w(new Error("cannot append to compressed archives"));if(R<512)return w(null,O);let x=new c.Header(I);if(!x.cksumValid)return w(null,O);let j=512*Math.ceil((x.size??0)/512);if(O+j+512>b||(O+=j+512,O>=b))return w(null,O);m.mtimeCache&&x.mtime&&m.mtimeCache.set(String(x.path),x.mtime),R=0,p.default.read(E,I,0,512,O,P)},"onread");p.default.read(E,I,0,512,O,P)},"getPos");return new Promise((E,b)=>{y.on("error",b);let _="r+",w=v((O,R)=>{if(O&&O.code==="ENOENT"&&_==="r+")return _="w+",p.default.open(m.file,_,w);if(O||!R)return b(O);p.default.fstat(R,(I,P)=>{if(I)return p.default.close(R,()=>b(I));S(R,P.size,(L,M)=>{if(L)return b(L);let x=new a.WriteStream(m.file,{fd:R,start:M});y.pipe(x),x.on("error",b),x.on("close",E),g(y,f)})})},"onopen");p.default.open(m.file,_,w)})},"replaceAsync"),d=v((m,f)=>{f.forEach(y=>{y.charAt(0)==="@"?(0,o.list)({file:n.default.resolve(m.cwd,y.slice(1)),sync:!0,noResume:!0,onReadEntry:v(S=>m.add(S),"onReadEntry")}):m.add(y)}),m.end()},"addFilesSync"),g=v(async(m,f)=>{for(let y=0;y<f.length;y++){let S=String(f[y]);S.charAt(0)==="@"?await(0,o.list)({file:n.default.resolve(String(m.cwd),S.slice(1)),noResume:!0,onReadEntry:v(E=>m.add(E),"onReadEntry")}):m.add(S)}m.end()},"addFilesAsync");e.replace=(0,t.makeCommand)(l,h,()=>{throw new TypeError("file is required")},()=>{throw new TypeError("file is required")},(m,f)=>{if(!(0,s.isFile)(m))throw new TypeError("file is required");if(m.gzip||m.brotli||m.zstd||m.file.endsWith(".br")||m.file.endsWith(".tbr"))throw new TypeError("cannot append to compressed archives");if(!f?.length)throw new TypeError("no paths specified to add/replace")})}),jc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.update=void 0;var r=Pr(),a=An();e.update=(0,r.makeCommand)(a.replace.syncFile,a.replace.asyncFile,a.replace.syncNoFile,a.replace.asyncNoFile,(n,c=[])=>{a.replace.validate?.(n,c),p(n)});var p=v(n=>{let c=n.filter;n.mtimeCache||(n.mtimeCache=new Map),n.filter=c?(o,t)=>c(o,t)&&!((n.mtimeCache?.get(o)??t.mtime??0)>(t.mtime??0)):(o,t)=>!((n.mtimeCache?.get(o)??t.mtime??0)>(t.mtime??0))},"mtimeFilter")}),Lu=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(l,u,h,d){d===void 0&&(d=h);var g=Object.getOwnPropertyDescriptor(u,h);(!g||("get"in g?!u.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:v(function(){return u[h]},"get")}),Object.defineProperty(l,d,g)}:function(l,u,h,d){d===void 0&&(d=h),l[d]=u[h]}),a=e&&e.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),p=e&&e.__exportStar||function(l,u){for(var h in l)h!=="default"&&!Object.prototype.hasOwnProperty.call(u,h)&&r(u,l,h)},n=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var h in l)h!=="default"&&Object.prototype.hasOwnProperty.call(l,h)&&r(u,l,h);return a(u,l),u};Object.defineProperty(e,"__esModule",{value:!0}),e.u=e.types=e.r=e.t=e.x=e.c=void 0,p(Dc(),e);var c=Dc();Object.defineProperty(e,"c",{enumerable:!0,get:v(function(){return c.create},"get")}),p(Mc(),e);var o=Mc();Object.defineProperty(e,"x",{enumerable:!0,get:v(function(){return o.extract},"get")}),p(xr(),e),p(br(),e);var t=br();Object.defineProperty(e,"t",{enumerable:!0,get:v(function(){return t.list},"get")}),p(po(),e),p(uo(),e),p(ao(),e),p(lo(),e),p(An(),e);var s=An();Object.defineProperty(e,"r",{enumerable:!0,get:v(function(){return s.replace},"get")}),e.types=n(Iu()),p(ku(),e),p(jc(),e);var i=jc();Object.defineProperty(e,"u",{enumerable:!0,get:v(function(){return i.update},"get")}),p(Nu(),e)}),Zt=K((e,r)=>{r.exports={cacheFetches:Symbol.for("pacote.Fetcher._cacheFetches"),readPackageJson:Symbol.for("package.Fetcher._readPackageJson"),tarballFromResolved:Symbol.for("pacote.Fetcher._tarballFromResolved")}}),Tb=K((e,r)=>{var{resolve:a}=require("node:path"),{tmpdir:p,homedir:n}=require("node:os");r.exports=(c=!1)=>{let o=p(),t=process.getuid?process.getuid():process.pid,s=n()||a(o,"npm-"+t),i=c||process.platform,l=i==="win32"?"npm-cache":".npm",u=i==="win32"&&process.env.LOCALAPPDATA||s;return{cacache:a(u,l,"_cacache"),tufcache:a(u,l,"_tuf")}}}),Du=K((e,r)=>{var a=v((n,c)=>typeof c=="string"?{[n]:c}:c,"binObj"),p=v((n,c)=>{let o=a(n.name,n.bin),t=c.replace(/^[^\\/]*\//,"");for(let s of Object.entries(o))if(s[1]===t)return!0;return!1},"hasBin");r.exports=(n,c)=>n&&n.bin?p(n,c):!1}),Mu=K((e,r)=>{var a=v(p=>{let n=p;for(;n.endsWith("/");)n=n.slice(0,-1);return n},"removeTrailingSlashes");r.exports=a}),Pb=K((e,r)=>{"use strict";var a=require("fs"),p=require("path"),n=require("events").EventEmitter,c=Ot().Minimatch,o=class ju extends n{static{v(this,"Walker")}constructor(u){u=u||{},super(u),this.isSymbolicLink=u.isSymbolicLink,this.path=u.path||process.cwd(),this.basename=p.basename(this.path),this.ignoreFiles=u.ignoreFiles||[".ignore"],this.ignoreRules={},this.parent=u.parent||null,this.includeEmpty=!!u.includeEmpty,this.root=this.parent?this.parent.root:this.path,this.follow=!!u.follow,this.result=this.parent?this.parent.result:new Set,this.entries=null,this.sawError=!1,this.exact=u.exact}sort(u,h){return u.localeCompare(h,"en")}emit(u,h){let d=!1;return this.sawError&&u==="error"||(u==="error"?this.sawError=!0:u==="done"&&!this.parent&&(h=Array.from(h).map(g=>/^@/.test(g)?`./${g}`:g).sort(this.sort),this.result=h),u==="error"&&this.parent?d=this.parent.emit("error",h):d=super.emit(u,h)),d}start(){return a.readdir(this.path,(u,h)=>u?this.emit("error",u):this.onReaddir(h)),this}isIgnoreFile(u){return u!=="."&&u!==".."&&this.ignoreFiles.indexOf(u)!==-1}onReaddir(u){this.entries=u,u.length===0?(this.includeEmpty&&this.result.add(this.path.slice(this.root.length+1)),this.emit("done",this.result)):this.entries.some(h=>this.isIgnoreFile(h))?this.addIgnoreFiles():this.filterEntries()}addIgnoreFiles(){let u=this.entries.filter(g=>this.isIgnoreFile(g)),h=u.length,d=v(()=>{--h===0&&this.filterEntries()},"then");u.forEach(g=>this.addIgnoreFile(g,d))}addIgnoreFile(u,h){let d=p.resolve(this.path,u);a.readFile(d,"utf8",(g,m)=>g?this.emit("error",g):this.onReadIgnoreFile(u,m,h))}onReadIgnoreFile(u,h,d){let g={matchBase:!0,dot:!0,flipNegate:!0,nocase:!0},m=h.split(/\r?\n/).filter(f=>!/^#|^$/.test(f.trim())).map(f=>new c(f.trim(),g));this.ignoreRules[u]=m,d()}filterEntries(){let u=this.entries.map(d=>{let g=this.filterEntry(d),m=this.filterEntry(d,!0);return g||m?[d,g,m]:!1}).filter(d=>d),h=u.length;if(h===0)this.emit("done",this.result);else{let d=v(()=>{--h===0&&this.emit("done",this.result)},"then");u.forEach(g=>{let m=g[0],f=g[1],y=g[2];this.stat({entry:m,file:f,dir:y},d)})}}onstat({st:u,entry:h,file:d,dir:g,isSymbolicLink:m},f){let y=this.path+"/"+h;u.isDirectory()?g?this.walker(h,{isSymbolicLink:m,exact:d||this.filterEntry(h+"/")},f):f():(d&&this.result.add(y.slice(this.root.length+1)),f())}stat({entry:u,file:h,dir:d},g){let m=this.path+"/"+u;a.lstat(m,(f,y)=>{if(f)this.emit("error",f);else{let S=y.isSymbolicLink();this.follow&&S?a.stat(m,(E,b)=>{E?this.emit("error",E):this.onstat({st:b,entry:u,file:h,dir:d,isSymbolicLink:S},g)}):this.onstat({st:y,entry:u,file:h,dir:d,isSymbolicLink:S},g)}})}walkerOpt(u,h){return{path:this.path+"/"+u,parent:this,ignoreFiles:this.ignoreFiles,follow:this.follow,includeEmpty:this.includeEmpty,...h}}walker(u,h,d){new ju(this.walkerOpt(u,h)).on("done",d).start()}filterEntry(u,h,d){let g=!0;if(this.parent&&this.parent.filterEntry){let m=this.basename+"/"+u,f=d||u;if(g=this.parent.filterEntry(m,h,f),!g&&!this.exact)return!1}return this.ignoreFiles.forEach(m=>{this.ignoreRules[m]&&this.ignoreRules[m].forEach(f=>{if(f.negate!==g){let y=d&&f.globParts.some(S=>S.length<=(S.slice(-1)[0]?1:2));(f.match("/"+u)||f.match(u)||h&&(f.match("/"+u+"/")||f.match(u+"/")||f.negate&&(f.match("/"+u,!0)||f.match(u,!0))||y&&(f.match("/"+d+"/")||f.match(d+"/")||f.negate&&(f.match("/"+d,!0)||f.match(d,!0)))))&&(g=f.negate)}})}),g}},t=class $u extends o{static{v(this,"WalkerSync")}start(){return this.onReaddir(a.readdirSync(this.path)),this}addIgnoreFile(u,h){let d=p.resolve(this.path,u);this.onReadIgnoreFile(u,a.readFileSync(d,"utf8"),h)}stat({entry:u,file:h,dir:d},g){let m=this.path+"/"+u,f=a.lstatSync(m),y=f.isSymbolicLink();this.follow&&y&&(f=a.statSync(m)),this.onstat({st:f,entry:u,file:h,dir:d,isSymbolicLink:y},g)}walker(u,h,d){new $u(this.walkerOpt(u,h)).start(),d()}},s=v((l,u)=>{let h=new Promise((d,g)=>{new o(l).on("done",d).on("error",g).start()});return u?h.then(d=>u(null,d),u):h},"walk"),i=v(l=>new t(l).start().result,"walkSync");r.exports=s,s.sync=i,s.Walker=o,s.WalkerSync=t}),xb=K((e,r)=>{"use strict";var{Walker:a}=Pb(),{lstatSync:p,readFileSync:n}=require("fs"),{basename:c,dirname:o,extname:t,join:s,relative:i,resolve:l,sep:u}=require("path"),{log:h}=ct(),d=Symbol("npm-packlist.rules.default"),g=Symbol("npm-packlist.rules.strict"),m=v(w=>/\*/.test(w),"nameIsBadForWindows"),f=[".npmignore",".gitignore","**/.git","**/.svn","**/.hg","**/CVS","**/.git/**","**/.svn/**","**/.hg/**","**/CVS/**","/.lock-wscript","/.wafpickle-*","/build/config.gypi","npm-debug.log","**/.npmrc",".*.swp",".DS_Store","**/.DS_Store/**","._*","**/._*/**","*.orig","/archived-packages/**"],y=["/.git"],S=v(w=>w.split("\\").join("/"),"normalizePath"),E=v((w,O,R=[])=>{for(let M of[".npmignore",".gitignore"])try{let x=n(s(w,M),{encoding:"utf8"});R.push(x);break}catch(x){if(x.code!=="ENOENT")throw x}if(!O)return R;let I=O.split(u,1)[0],P=s(w,I),L=i(P,s(w,O));return E(P,L,R)},"readOutOfTreeIgnoreFiles"),b=class Rn extends a{static{v(this,"PackWalker")}constructor(O,R){let I={...R,includeEmpty:!1,follow:!1,path:l(R?.path||O.path).replace(/\\/g,"/"),ignoreFiles:R?.ignoreFiles||[d,"package.json",".npmignore",".gitignore",g]};super(I),this.isPackage=I.isPackage,this.seen=I.seen||new Set,this.tree=O,this.requiredFiles=I.requiredFiles||[];let P=[];if(I.prefix&&I.workspaces){let L=S(I.path),M=S(I.prefix),x=I.workspaces.map(j=>S(j));if(L!==M&&x.includes(L)){let j=i(I.prefix,o(I.path));P.push(...E(I.prefix,j))}else L===M&&P.push(...x.map(j=>S(i(I.path,j))))}this.injectRules(d,[...f,...P]),this.isPackage||this.injectRules(g,[...y,...this.requiredFiles.map(L=>`!${L}`)])}addIgnoreFile(O,R){return O!=="package.json"||!this.isPackage?super.addIgnoreFile(O,R):this.processPackage(R)}emit(O,R){return O!=="done"||!this.isPackage?super.emit(O,R):(this.gatherBundles().then(()=>{super.emit("done",this.result)}),!0)}filterEntries(){return this.ignoreRules["package.json"]?(this.ignoreRules[".npmignore"]=null,this.ignoreRules[".gitignore"]=null):this.ignoreRules[".npmignore"]?this.ignoreRules[".gitignore"]=null:this.ignoreRules[".gitignore"]&&!this.ignoreRules[".npmignore"]&&h.warn("gitignore-fallback","No .npmignore file found, using .gitignore for file exclusion. Consider creating a .npmignore file to explicitly control published files."),super.filterEntries()}onstat(O,R){return!O.st.isFile()&&!O.st.isDirectory()?R():super.onstat(O,R)}stat(O,R){return m(O.entry)?R():super.stat(O,R)}walkerOpt(O,R){let I=null;if(this.tree.workspaces){let P=[...this.tree.workspaces.values()].map(M=>M.replace(/\\/g,"/")),L=s(this.path,O).replace(/\\/g,"/");P.includes(L)&&(I=[d,"package.json",".npmignore",".gitignore",g])}else I=[d,".npmignore",".gitignore",g];return{...super.walkerOpt(O,R),ignoreFiles:I,requiredFiles:this.requiredFiles.map(P=>i(P,O)===".."?i(O,P).replace(/\\/g,"/"):!1).filter(Boolean)}}walker(O,R,I){new Rn(this.tree,this.walkerOpt(O,R)).on("done",I).start()}sort(O,R){let I=t(O).toLowerCase(),P=t(R).toLowerCase(),L=c(O).toLowerCase(),M=c(R).toLowerCase();return I.localeCompare(P,"en")||L.localeCompare(M,"en")||O.localeCompare(R,"en")}injectRules(O,R,I=()=>{}){this.onReadIgnoreFile(O,`${R.join(`
31
+ `)}
32
+ `,I)}processPackage(O){let{bin:R,browser:I,files:P,main:L}=this.tree.package,M=[],x=[...y,"!/package.json","!/readme{,.*[^~$]}","!/copying{,.*[^~$]}","!/license{,.*[^~$]}","!/licence{,.*[^~$]}","/.git","/node_modules",".npmrc","/package-lock.json","/yarn.lock","/pnpm-lock.yaml","/bun.lockb"];if(P){for(let j of P){j.startsWith("./")&&(j=j.slice(1)),j.endsWith("/*")&&(j+="*");let U=`!${j}`;try{let V=p(s(this.path,j.replace(/^!+/,"")).replace(/\\/g,"/"));V.isFile()?(x.unshift(U),this.requiredFiles.push(j.startsWith("/")?j.slice(1):j)):V.isDirectory()&&(M.push(U),M.push(`${U}/**`))}catch{M.push(U)}}this.injectRules("package.json",["*",...M])}if(I&&x.push(`!/${I}`),L&&x.push(`!/${L}`),R)for(let j in R)x.push(`!/${R[j]}`);this.injectRules(g,x,O)}async gatherBundles(){if(this.seen.has(this.tree))return;this.seen.add(this.tree);let O;if(this.tree.isProjectRoot){let{bundleDependencies:R}=this.tree.package;O=R||[]}else{let{dependencies:R,optionalDependencies:I}=this.tree.package;O=Object.keys(R||{}).concat(Object.keys(I||{}))}for(let R of O){let I=this.tree.edgesOut.get(R);if(!I||I.peer||I.dev)continue;let P=this.tree.edgesOut.get(R).to;if(!P)continue;let L=P.path,M=P.target,x={path:L,isPackage:!0,ignoreFiles:[],seen:this.seen};P.isLink&&x.ignoreFiles.push(d),x.ignoreFiles.push("package.json"),P.isLink&&(x.ignoreFiles.push(".npmignore"),x.ignoreFiles.push(".gitignore")),x.ignoreFiles.push(g);let j=new Rn(M,x),U=await new Promise((B,G)=>{j.on("error",G),j.on("done",B),j.start()}),V=i(this.root,j.path);for(let B of U)this.result.add(s(V,B).replace(/\\/g,"/"))}}},_=v((w,O,R)=>{typeof O=="function"&&(R=O,O={});let I=new Promise((P,L)=>{new b(w,{...O,isPackage:!0}).on("done",P).on("error",L).start()});return R?I.then(P=>R(null,P),R):I},"walk");r.exports=_,_.Walker=b}),Nb=K((e,r)=>{var{resolve:a,dirname:p,delimiter:n}=require("path"),c=a(__dirname,"../lib/node-gyp-bin"),o=v((t,s,i)=>{let l=Object.keys(i).filter(m=>/^path$/i.test(m)&&i[m]).map(m=>i[m].split(n)).reduce((m,f)=>m.concat(f.filter(y=>!m.includes(y))),[]).join(n),u=[];s&&u.push(...s);let h=t,d;do u.push(a(h,"node_modules",".bin")),d=h,h=p(h);while(h!==d);u.push(c,l);let g=u.join(n);for(let m of Object.keys(i))/^path$/i.test(m)&&(i[m]=g);return i},"setPATH");r.exports=o}),kb=K((e,r)=>{var a=Nb(),{resolve:p}=require("path"),n,c=v(o=>{let{args:t,binPaths:s,cmd:i,env:l,event:u,nodeGyp:h,path:d,scriptShell:g=!0,stdio:m,stdioString:f}=o;h?n=h:l.npm_config_node_gyp?n=l.npm_config_node_gyp:n=require.resolve("node-gyp/bin/node-gyp.js");let y={env:a(d,s,{...process.env,...l,npm_package_json:p(d,"package.json"),npm_lifecycle_event:u,npm_lifecycle_script:i,npm_config_node_gyp:n}),stdioString:f,stdio:m,cwd:d,shell:g};return[i,t,y]},"makeSpawnArgs");r.exports=c}),Lb=K((e,r)=>{var a=v((p,n,c={})=>{for(let[o,t]of Object.entries(p))t!==void 0&&(t===null||t===!1?c[`${n}${o}`]="":Array.isArray(t)?t.forEach((s,i)=>{a({[`${o}_${i}`]:s},`${n}`,c)}):typeof t=="object"?a(t,`${n}${o}_`,c):c[`${n}${o}`]=String(t));return c},"packageEnvs");r.exports=p=>a({name:p.name,version:p.version,config:p.config,engines:p.engines,bin:p.bin},"npm_package_")}),Db=K((e,r)=>{var a=require("util"),p=require("fs"),{stat:n}=p.promises||{stat:a.promisify(p.stat)};async function c(o){return await n(`${o}/binding.gyp`).then(t=>t.isFile()).catch(()=>!1)}v(c,"isNodeGypPackage"),r.exports={isNodeGypPackage:c,defaultGypInstallScript:"node-gyp rebuild"}}),Mb=K((e,r)=>{var a=new Set,p=!1,n=["SIGINT","SIGTERM"],c=v(i=>{for(let l of a)l.kill(i)},"handleSignal"),o=v(()=>{for(let i of n)process.on(i,c);p=!0},"setupListeners"),t=v(()=>{if(a.size===0){for(let i of n)process.removeListener(i,c);p=!1}},"cleanupListeners"),s=v(i=>{a.add(i),p||o(),i.once("exit",()=>{a.delete(i),t()})},"add");r.exports={add:s,handleSignal:c,forwardedSignals:n}}),Bu=K((e,r)=>{var{stat:a}=require("node:fs/promises"),{resolve:p}=require("node:path");r.exports=async n=>{try{return(await a(p(n,"server.js"))).isFile()}catch{return!1}}}),jb=K((e,r)=>{var a=kb(),p=Kn(),n=Lb(),{isNodeGypPackage:c,defaultGypInstallScript:o}=Db(),t=Mb(),s=Bu(),i=v(async l=>{let{args:u=[],binPaths:h=!1,env:d={},event:g,nodeGyp:m,path:f,pkg:y,scriptShell:S,signalTimeout:E=500,stdio:b="pipe",stdioString:_}=l,{scripts:w={},gypfile:O}=y,R=null;if(l.cmd?R=l.cmd:y.scripts&&y.scripts[g]?R=y.scripts[g]:g==="install"&&!w.install&&!w.preinstall&&O!==!1&&await c(f)?R=o:g==="start"&&await s(f)&&(R="node server.js"),!R)return{code:0,signal:null};let I=v(()=>{},"inputEnd");if(b==="inherit"){let j;y._id?j=`
33
+ > ${y._id} ${g}
34
+ `:j=`
35
+ > ${g}
36
+ `,j+=`> ${R.trim().replace(/\n/g,`
37
+ > `)}`,u.length&&(j+=` ${u.join(" ")}`),j+=`
38
+ `;let{output:U,input:V}=ct();U.standard(j),I=V.start()}let[P,L,M]=a({args:u,binPaths:h,cmd:R,env:{...d,...n(y)},event:g,nodeGyp:m,path:f,scriptShell:S,stdio:b,stdioString:_}),x=p(P,L,M,{event:g,script:R,pkgid:y._id,path:f});return b==="inherit"&&t.add(x.process),x.stdin&&x.stdin.end(),x.catch(j=>{let{signal:U}=j;if(b==="inherit"&&U)return process.kill(process.pid,U),new Promise((V,B)=>setTimeout(()=>B(j),E));throw j}).finally(I)},"runScriptPkg");r.exports=i}),$b=K((e,r)=>{var a=v(p=>{if(typeof p!="object"||!p)throw new TypeError("invalid options object provided to runScript");let{event:n,path:c,scriptShell:o,env:t={},stdio:s="pipe",args:i=[],cmd:l}=p;if(!n||typeof n!="string")throw new TypeError("valid event not provided to runScript");if(!c||typeof c!="string")throw new TypeError("valid path not provided to runScript");if(o!==void 0&&typeof o!="string")throw new TypeError("invalid scriptShell option provided to runScript");if(typeof t!="object"||!t)throw new TypeError("invalid env option provided to runScript");if(typeof s!="string"&&!Array.isArray(s))throw new TypeError("invalid stdio option provided to runScript");if(!Array.isArray(i)||i.some(u=>typeof u!="string"))throw new TypeError("invalid args option provided to runScript");if(l!==void 0&&typeof l!="string")throw new TypeError("invalid cmd option provided to runScript")},"validateOptions");r.exports=a}),Bb=K((e,r)=>{var a=ro(),p=jb(),n=$b(),c=Bu(),o=v(async t=>{if(n(t),t.pkg)return p(t);let{content:s}=await a.normalize(t.path);return p({...t,pkg:s})},"runScript");r.exports=Object.assign(o,{isServerPackage:c})}),kr=K((e,r)=>{var{resolve:a}=require("node:path"),{stat:p,chmod:n}=require("node:fs/promises"),c=Is(),o=Cr(),t=er(),s=Zt(),i=class extends t{static{v(this,"FileFetcher")}constructor(l,u){super(l,u),this.resolved=this.spec.fetchSpec}get types(){return["file"]}manifest(){return this.package?Promise.resolve(this.package):c.tmp.withTmp(this.cache,this.opts,l=>this.extract(l).then(()=>this[s.readPackageJson](l)).then(u=>this.package={...u,_integrity:this.integrity&&String(this.integrity),_resolved:this.resolved,_from:this.from}))}#e(l,u){return l.bin?Promise.all(Object.keys(l.bin).map(async h=>{let d=a(u,l.bin[h]);try{let g=await p(d),m=g.mode|73;if(m===g.mode)return;await n(d,m)}catch{}})):Promise.resolve()}extract(l){return super.extract(l).then(u=>this.package?u:this[s.readPackageJson](l).then(h=>this.#e(h,l)).then(()=>u))}[s.tarballFromResolved](){return new o.ReadStream(this.resolved)}packument(){return this.manifest().then(l=>({name:l.name,"dist-tags":{[this.defaultTag]:l.version},versions:{[l.version]:{...l,dist:{tarball:`file:${this.resolved}`,integrity:this.integrity&&String(this.integrity)}}}}))}};r.exports=i}),Ub=K((e,r)=>{var a=Du(),p=v(n=>({cwd:n._resolved,prefix:"package/",portable:!0,gzip:{level:9},filter:v((c,o)=>(a(n,c)&&(o.mode|=73),!0),"filter"),mtime:new Date("1985-10-26T08:15:00.000Z")}),"tarCreateOptions");r.exports=p}),fo=K((e,r)=>{var{resolve:a}=require("node:path"),p=xb(),n=Bb(),c=Lu(),{Minipass:o}=Pe(),t=er(),s=kr(),i=Zt(),l=Ub(),u=class extends t{static{v(this,"DirFetcher")}constructor(h,d){super(h,d),this.resolved=this.spec.fetchSpec,this.tree=d.tree||null,this.Arborist=d.Arborist||null}static tarCreateOptions(h){return l(h)}get types(){return["directory"]}#e(){return this.manifest().then(h=>{if(!h.scripts||!h.scripts.prepare||this.opts.ignoreScripts)return;let d=this.opts.foregroundScripts?"inherit":"pipe";return n({scriptShell:this.opts.scriptShell||void 0,pkg:h,event:"prepare",path:this.resolved,stdio:d,env:{npm_package_resolved:this.resolved,npm_package_integrity:this.integrity,npm_package_json:a(this.resolved,"package.json")}})})}[i.tarballFromResolved](){if(!this.tree&&!this.Arborist)throw new Error("DirFetcher requires either a tree or an Arborist constructor to pack");let h=new o;h.resolved=this.resolved,h.integrity=this.integrity;let{prefix:d,workspaces:g}=this.opts;return this.#e().then(async()=>{if(!this.tree){let m=new this.Arborist({path:this.resolved});this.tree=await m.loadActual()}return p(this.tree,{path:this.resolved,prefix:d,workspaces:g})}).then(m=>c.c(l(this.package),m).on("error",f=>h.emit("error",f)).pipe(h)).catch(m=>h.emit("error",m)),h}manifest(){return this.package?Promise.resolve(this.package):this[i.readPackageJson](this.resolved).then(h=>this.package={...h,_integrity:this.integrity&&String(this.integrity),_resolved:this.resolved,_from:this.from})}packument(){return s.prototype.packument.apply(this)}};r.exports=u}),Uu=K((e,r)=>{"use strict";var{URL:a}=require("node:url");function p(i){try{let u=new a(i).pathname.slice(1);if(!u.match(/^-/)){u=u.split("/");var l=u.indexOf("_rewrite");return l===-1?l=u.length-1:l++,decodeURIComponent(u[l])}}catch{}}v(p,"packageName");var n=class extends Error{static{v(this,"HttpErrorBase")}constructor(i,l,u,h){super(),this.name=this.constructor.name,this.headers=typeof l.headers?.raw=="function"?l.headers.raw():l.headers,this.statusCode=l.status,this.code=`E${l.status}`,this.method=i,this.uri=l.url,this.body=u,this.pkgid=h?h.toString():p(l.url),Error.captureStackTrace(this,this.constructor)}},c=class extends n{static{v(this,"HttpErrorGeneral")}constructor(i,l,u,h){super(i,l,u,h),this.message=`${l.status} ${l.statusText} - ${this.method.toUpperCase()} ${this.spec||this.uri}${u&&u.error?" - "+u.error:""}`}},o=class extends n{static{v(this,"HttpErrorAuthOTP")}constructor(i,l,u,h){super(i,l,u,h),this.message="OTP required for authentication",this.code="EOTP"}},t=class extends n{static{v(this,"HttpErrorAuthIPAddress")}constructor(i,l,u,h){super(i,l,u,h),this.message="Login is not allowed from your IP address",this.code="EAUTHIP"}},s=class extends n{static{v(this,"HttpErrorAuthUnknown")}constructor(i,l,u,h){super(i,l,u,h),this.message="Unable to authenticate, need: "+l.headers.get("www-authenticate")}};r.exports={HttpErrorBase:n,HttpErrorGeneral:c,HttpErrorAuthOTP:o,HttpErrorAuthIPAddress:t,HttpErrorAuthUnknown:s}}),Fb=K((e,r)=>{var a=so(),p=class extends Error{static{v(this,"SizeError")}constructor(c,o){super(`Bad data size: expected ${o} bytes, but got ${c}`),this.expect=o,this.found=c,this.code="EBADSIZE",Error.captureStackTrace(this,this.constructor)}get name(){return"SizeError"}},n=class extends a{static{v(this,"MinipassSized")}constructor(c={}){if(super(c),c.objectMode)throw new TypeError(`${this.constructor.name} streams only work with string and buffer data`);if(this.found=0,this.expect=c.size,typeof this.expect!="number"||this.expect>Number.MAX_SAFE_INTEGER||isNaN(this.expect)||this.expect<0||!isFinite(this.expect)||this.expect!==Math.floor(this.expect))throw new Error("invalid expected size: "+this.expect)}write(c,o,t){let s=Buffer.isBuffer(c)?c:typeof c=="string"?Buffer.from(c,typeof o=="string"?o:"utf8"):c;return Buffer.isBuffer(s)?(this.found+=s.length,this.found>this.expect&&this.emit("error",new p(this.found,this.expect)),super.write(c,o,t)):(this.emit("error",new TypeError(`${this.constructor.name} streams only work with string and buffer data`)),!1)}emit(c,...o){return c==="end"&&this.found!==this.expect&&this.emit("error",new p(this.found,this.expect)),super.emit(c,...o)}};n.SizeError=p,r.exports=n}),Hb=K((e,r)=>{"use strict";var{Minipass:a}=Pe(),p=Symbol("type"),n=Symbol("buffer"),c=class Cn{static{v(this,"Blob")}constructor(t,s){this[p]="";let i=[],l=0;if(t){let h=t,d=Number(h.length);for(let g=0;g<d;g++){let m=h[g],f=m instanceof Buffer?m:ArrayBuffer.isView(m)?Buffer.from(m.buffer,m.byteOffset,m.byteLength):m instanceof ArrayBuffer?Buffer.from(m):m instanceof Cn?m[n]:typeof m=="string"?Buffer.from(m):Buffer.from(String(m));l+=f.length,i.push(f)}}this[n]=Buffer.concat(i,l);let u=s&&s.type!==void 0&&String(s.type).toLowerCase();u&&!/[^\u0020-\u007E]/.test(u)&&(this[p]=u)}get size(){return this[n].length}get type(){return this[p]}text(){return Promise.resolve(this[n].toString())}arrayBuffer(){let t=this[n],s=t.byteOffset,i=t.byteLength,l=t.buffer.slice(s,s+i);return Promise.resolve(l)}stream(){return new a().end(this[n])}slice(t,s,i){let l=this.size,u=t===void 0?0:t<0?Math.max(l+t,0):Math.min(t,l),h=s===void 0?l:s<0?Math.max(l+s,0):Math.min(s,l),d=Math.max(h-u,0),g=this[n].slice(u,u+d),m=new Cn([],{type:i});return m[n]=g,m}get[Symbol.toStringTag](){return"Blob"}static get BUFFER(){return n}};Object.defineProperties(c.prototype,{size:{enumerable:!0},type:{enumerable:!0}}),r.exports=c}),Fu=K((e,r)=>{"use strict";var a=class extends Error{static{v(this,"FetchError")}constructor(p,n,c){super(p),this.code="FETCH_ERROR",c&&Object.assign(this,c),this.errno=this.code,this.type=this.code==="EBADSIZE"&&this.found>this.expect?"max-size":n,this.message=p,Error.captureStackTrace(this,this.constructor)}get name(){return"FetchError"}set name(p){}get[Symbol.toStringTag](){return"FetchError"}};r.exports=a}),Gb=K((e,r)=>{r.exports={}}),go=K((e,r)=>{"use strict";var{Minipass:a}=Pe(),p=Fb(),n=Hb(),{BUFFER:c}=n,o=Fu(),t;try{t=Gb().convert}catch{}var s=Symbol("Body internals"),i=Symbol("consumeBody"),l=class{static{v(this,"Body")}constructor(g,m={}){let{size:f=0,timeout:y=0}=m,S=g==null?null:u(g)?Buffer.from(g.toString()):h(g)||Buffer.isBuffer(g)?g:Object.prototype.toString.call(g)==="[object ArrayBuffer]"?Buffer.from(g):ArrayBuffer.isView(g)?Buffer.from(g.buffer,g.byteOffset,g.byteLength):a.isStream(g)?g:Buffer.from(String(g));this[s]={body:S,disturbed:!1,error:null},this.size=f,this.timeout=y,a.isStream(S)&&S.on("error",E=>{let b=E.name==="AbortError"?E:new o(`Invalid response while trying to fetch ${this.url}: ${E.message}`,"system",E);this[s].error=b})}get body(){return this[s].body}get bodyUsed(){return this[s].disturbed}arrayBuffer(){return this[i]().then(g=>g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength))}blob(){let g=this.headers&&this.headers.get("content-type")||"";return this[i]().then(m=>Object.assign(new n([],{type:g.toLowerCase()}),{[c]:m}))}async json(){let g=await this[i]();try{return JSON.parse(g.toString())}catch(m){throw new o(`invalid json response body at ${this.url} reason: ${m.message}`,"invalid-json")}}text(){return this[i]().then(g=>g.toString())}buffer(){return this[i]()}textConverted(){return this[i]().then(g=>d(g,this.headers))}[i](){if(this[s].disturbed)return Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[s].disturbed=!0,this[s].error)return Promise.reject(this[s].error);if(this.body===null)return Promise.resolve(Buffer.alloc(0));if(Buffer.isBuffer(this.body))return Promise.resolve(this.body);let g=h(this.body)?this.body.stream():this.body;if(!a.isStream(g))return Promise.resolve(Buffer.alloc(0));let m=this.size&&g instanceof p||!this.size&&g instanceof a&&!(g instanceof p)?g:this.size?new p({size:this.size}):new a,f=this.timeout&&m.writable?setTimeout(()=>{m.emit("error",new o(`Response timeout while trying to fetch ${this.url} (over ${this.timeout}ms)`,"body-timeout"))},this.timeout):null;return f&&f.unref&&f.unref(),new Promise(y=>{m!==g&&(g.on("error",S=>m.emit("error",S)),g.pipe(m)),y()}).then(()=>m.concat()).then(y=>(clearTimeout(f),y)).catch(y=>{throw clearTimeout(f),y.name==="AbortError"||y.name==="FetchError"?y:y.name==="RangeError"?new o(`Could not create Buffer from response body for ${this.url}: ${y.message}`,"system",y):new o(`Invalid response body while trying to fetch ${this.url}: ${y.message}`,"system",y)})}static clone(g){if(g.bodyUsed)throw new Error("cannot clone body after it is used");let m=g.body;if(a.isStream(m)&&typeof m.getBoundary!="function"){let f=new a,y=new a,S=new a;return f.on("error",E=>{y.emit("error",E),S.emit("error",E)}),m.on("error",E=>f.emit("error",E)),f.pipe(y),f.pipe(S),m.pipe(f),g[s].body=y,S}else return g.body}static extractContentType(g){return g==null?null:typeof g=="string"?"text/plain;charset=UTF-8":u(g)?"application/x-www-form-urlencoded;charset=UTF-8":h(g)?g.type||null:Buffer.isBuffer(g)||Object.prototype.toString.call(g)==="[object ArrayBuffer]"||ArrayBuffer.isView(g)?null:typeof g.getBoundary=="function"?`multipart/form-data;boundary=${g.getBoundary()}`:a.isStream(g)?null:"text/plain;charset=UTF-8"}static getTotalBytes(g){let{body:m}=g;return m==null?0:h(m)?m.size:Buffer.isBuffer(m)?m.length:m&&typeof m.getLengthSync=="function"&&(m._lengthRetrievers&&m._lengthRetrievers.length===0||m.hasKnownLength&&m.hasKnownLength())?m.getLengthSync():null}static writeToStream(g,m){let{body:f}=m;return f==null?g.end():Buffer.isBuffer(f)||typeof f=="string"?g.end(f):(h(f)?f.stream():f).on("error",y=>g.emit("error",y)).pipe(g),g}};Object.defineProperties(l.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}});var u=v(g=>typeof g!="object"||typeof g.append!="function"||typeof g.delete!="function"||typeof g.get!="function"||typeof g.getAll!="function"||typeof g.has!="function"||typeof g.set!="function"?!1:g.constructor.name==="URLSearchParams"||Object.prototype.toString.call(g)==="[object URLSearchParams]"||typeof g.sort=="function","isURLSearchParams"),h=v(g=>typeof g=="object"&&typeof g.arrayBuffer=="function"&&typeof g.type=="string"&&typeof g.stream=="function"&&typeof g.constructor=="function"&&typeof g.constructor.name=="string"&&/^(Blob|File)$/.test(g.constructor.name)&&/^(Blob|File)$/.test(g[Symbol.toStringTag]),"isBlob"),d=v((g,m)=>{if(typeof t!="function")throw new Error("The package `encoding` must be installed to use the textConverted() function");let f=m&&m.get("content-type"),y="utf-8",S;f&&(S=/charset=([^;]*)/i.exec(f));let E=g.slice(0,1024).toString();return!S&&E&&(S=/<meta.+?charset=(['"])(.+?)\1/i.exec(E)),!S&&E&&(S=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(E),S||(S=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(E),S&&S.pop()),S&&(S=/charset=(.*)/i.exec(S.pop()))),!S&&E&&(S=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(E)),S&&(y=S.pop(),(y==="gb2312"||y==="gbk")&&(y="gb18030")),t(g,"UTF-8",y).toString()},"convertBody");r.exports=l}),mo=K((e,r)=>{"use strict";var a=/[^^_`a-zA-Z\-0-9!#$%&'*+.|~]/,p=/[^\t\x20-\x7e\x80-\xff]/,n=v(h=>{if(h=`${h}`,a.test(h)||h==="")throw new TypeError(`${h} is not a legal HTTP header name`)},"validateName"),c=v(h=>{if(h=`${h}`,p.test(h))throw new TypeError(`${h} is not a legal HTTP header value`)},"validateValue"),o=v((h,d)=>{d=d.toLowerCase();for(let g in h)if(g.toLowerCase()===d)return g},"find"),t=Symbol("map"),s=class In{static{v(this,"Headers")}constructor(d=void 0){if(this[t]=Object.create(null),d instanceof In){let g=d.raw(),m=Object.keys(g);for(let f of m)for(let y of g[f])this.append(f,y);return}if(d!=null)if(typeof d=="object"){let g=d[Symbol.iterator];if(g!=null){if(typeof g!="function")throw new TypeError("Header pairs must be iterable");let m=[];for(let f of d){if(typeof f!="object"||typeof f[Symbol.iterator]!="function")throw new TypeError("Each header pair must be iterable");let y=Array.from(f);if(y.length!==2)throw new TypeError("Each header pair must be a name/value tuple");m.push(y)}for(let f of m)this.append(f[0],f[1])}else for(let m of Object.keys(d))this.append(m,d[m])}else throw new TypeError("Provided initializer must be an object")}get(d){d=`${d}`,n(d);let g=o(this[t],d);return g===void 0?null:this[t][g].join(", ")}forEach(d,g=void 0){let m=i(this);for(let f=0;f<m.length;f++){let[y,S]=m[f];d.call(g,S,y,this),m=i(this)}}set(d,g){d=`${d}`,g=`${g}`,n(d),c(g);let m=o(this[t],d);this[t][m!==void 0?m:d]=[g]}append(d,g){d=`${d}`,g=`${g}`,n(d),c(g);let m=o(this[t],d);m!==void 0?this[t][m].push(g):this[t][d]=[g]}has(d){return d=`${d}`,n(d),o(this[t],d)!==void 0}delete(d){d=`${d}`,n(d);let g=o(this[t],d);g!==void 0&&delete this[t][g]}raw(){return this[t]}keys(){return new u(this,"key")}values(){return new u(this,"value")}[Symbol.iterator](){return new u(this,"key+value")}entries(){return new u(this,"key+value")}get[Symbol.toStringTag](){return"Headers"}static exportNodeCompatibleHeaders(d){let g=Object.assign(Object.create(null),d[t]),m=o(d[t],"Host");return m!==void 0&&(g[m]=g[m][0]),g}static createHeadersLenient(d){let g=new In;for(let m of Object.keys(d))if(!a.test(m))if(Array.isArray(d[m]))for(let f of d[m])p.test(f)||(g[t][m]===void 0?g[t][m]=[f]:g[t][m].push(f));else p.test(d[m])||(g[t][m]=[d[m]]);return g}};Object.defineProperties(s.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});var i=v((h,d="key+value")=>Object.keys(h[t]).sort().map(d==="key"?g=>g.toLowerCase():d==="value"?g=>h[t][g].join(", "):g=>[g.toLowerCase(),h[t][g].join(", ")]),"getHeaders"),l=Symbol("internal"),u=class Hu{static{v(this,"HeadersIterator")}constructor(d,g){this[l]={target:d,kind:g,index:0}}get[Symbol.toStringTag](){return"HeadersIterator"}next(){if(!this||Object.getPrototypeOf(this)!==Hu.prototype)throw new TypeError("Value of `this` is not a HeadersIterator");let{target:d,kind:g,index:m}=this[l],f=i(d,g),y=f.length;return m>=y?{value:void 0,done:!0}:(this[l].index++,{value:f[m],done:!1})}};Object.setPrototypeOf(u.prototype,Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))),r.exports=s}),Vb=K((e,r)=>{"use strict";var a=require("http"),{STATUS_CODES:p}=a,n=mo(),c=go(),{clone:o,extractContentType:t}=c,s=Symbol("Response internals"),i=class Gu extends c{static{v(this,"Response")}constructor(u=null,h={}){super(u,h);let d=h.status||200,g=new n(h.headers);if(u!=null&&!g.has("Content-Type")){let m=t(u);m&&g.append("Content-Type",m)}this[s]={url:h.url,status:d,statusText:h.statusText||p[d],headers:g,counter:h.counter,trailer:Promise.resolve(h.trailer||new n)}}get trailer(){return this[s].trailer}get url(){return this[s].url||""}get status(){return this[s].status}get ok(){return this[s].status>=200&&this[s].status<300}get redirected(){return this[s].counter>0}get statusText(){return this[s].statusText}get headers(){return this[s].headers}clone(){return new Gu(o(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,trailer:this.trailer})}get[Symbol.toStringTag](){return"Response"}};r.exports=i,Object.defineProperties(i.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}})}),Wb=K((e,r)=>{r.exports={name:"minipass-fetch",version:"4.0.1",description:"An implementation of window.fetch in Node.js using Minipass streams",license:"MIT",main:"lib/index.js",scripts:{"test:tls-fixtures":"./test/fixtures/tls/setup.sh",test:"tap",snap:"tap",lint:"npm run eslint",postlint:"template-oss-check",lintfix:"npm run eslint -- --fix",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},tap:{"coverage-map":"map.js","check-coverage":!0,"nyc-arg":["--exclude","tap-snapshots/**"]},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","@ungap/url-search-params":"^0.2.2","abort-controller":"^3.0.0","abortcontroller-polyfill":"~1.7.3",encoding:"^0.1.13","form-data":"^4.0.0",nock:"^13.2.4",parted:"^0.1.1","string-to-arraybuffer":"^1.0.2",tap:"^16.0.0"},dependencies:{minipass:"^7.0.3","minipass-sized":"^1.0.3",minizlib:"^3.0.1"},optionalDependencies:{encoding:"^0.1.13"},repository:{type:"git",url:"git+https://github.com/npm/minipass-fetch.git"},keywords:["fetch","minipass","node-fetch","window.fetch"],files:["bin/","lib/"],engines:{node:"^18.17.0 || >=20.5.0"},author:"GitHub Inc.",templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.23.3",publish:"true"}}}),zb=K((e,r)=>{"use strict";var{URL:a}=require("url"),{Minipass:p}=Pe(),n=mo(),{exportNodeCompatibleHeaders:c}=n,o=go(),{clone:t,extractContentType:s,getTotalBytes:i}=o,l=Wb().version,u=`minipass-fetch/${l} (+https://github.com/isaacs/minipass-fetch)`,h=Symbol("Request internals"),d=v(f=>typeof f=="object"&&typeof f[h]=="object","isRequest"),g=v(f=>{let y=f&&typeof f=="object"&&Object.getPrototypeOf(f);return!!(y&&y.constructor.name==="AbortSignal")},"isAbortSignal"),m=class Vu extends o{static{v(this,"Request")}constructor(y,S={}){let E=d(y)?new a(y.url):y&&y.href?new a(y.href):new a(`${y}`);d(y)?S={...y[h],...S}:(!y||typeof y=="string")&&(y={});let b=(S.method||y.method||"GET").toUpperCase(),_=b==="GET"||b==="HEAD";if((S.body!==null&&S.body!==void 0||d(y)&&y.body!==null)&&_)throw new TypeError("Request with GET/HEAD method cannot have body");let w=S.body!==null&&S.body!==void 0?S.body:d(y)&&y.body!==null?t(y):null;super(w,{timeout:S.timeout||y.timeout||0,size:S.size||y.size||0});let O=new n(S.headers||y.headers||{});if(w!=null&&!O.has("Content-Type")){let Q=s(w);Q&&O.append("Content-Type",Q)}let R="signal"in S?S.signal:null;if(R!=null&&!g(R))throw new TypeError("Expected signal must be an instanceof AbortSignal");let{ca:I,cert:P,ciphers:L,clientCertEngine:M,crl:x,dhparam:j,ecdhCurve:U,family:V,honorCipherOrder:B,key:G,passphrase:W,pfx:N,rejectUnauthorized:D=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0",secureOptions:T,secureProtocol:C,servername:Z,sessionIdContext:X}=S;this[h]={method:b,redirect:S.redirect||y.redirect||"follow",headers:O,parsedURL:E,signal:R,ca:I,cert:P,ciphers:L,clientCertEngine:M,crl:x,dhparam:j,ecdhCurve:U,family:V,honorCipherOrder:B,key:G,passphrase:W,pfx:N,rejectUnauthorized:D,secureOptions:T,secureProtocol:C,servername:Z,sessionIdContext:X},this.follow=S.follow!==void 0?S.follow:y.follow!==void 0?y.follow:20,this.compress=S.compress!==void 0?S.compress:y.compress!==void 0?y.compress:!0,this.counter=S.counter||y.counter||0,this.agent=S.agent||y.agent}get method(){return this[h].method}get url(){return this[h].parsedURL.toString()}get headers(){return this[h].headers}get redirect(){return this[h].redirect}get signal(){return this[h].signal}clone(){return new Vu(this)}get[Symbol.toStringTag](){return"Request"}static getNodeRequestOptions(y){let S=y[h].parsedURL,E=new n(y[h].headers);if(E.has("Accept")||E.set("Accept","*/*"),!/^https?:$/.test(S.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(y.signal&&p.isStream(y.body)&&typeof y.body.destroy!="function")throw new Error("Cancellation of streamed requests with AbortSignal is not supported");let b=(y.body===null||y.body===void 0)&&/^(POST|PUT)$/i.test(y.method)?"0":y.body!==null&&y.body!==void 0?i(y):null;b&&E.set("Content-Length",b+""),E.has("User-Agent")||E.set("User-Agent",u),y.compress&&!E.has("Accept-Encoding")&&E.set("Accept-Encoding","gzip,deflate");let _=typeof y.agent=="function"?y.agent(S):y.agent;!E.has("Connection")&&!_&&E.set("Connection","close");let{ca:w,cert:O,ciphers:R,clientCertEngine:I,crl:P,dhparam:L,ecdhCurve:M,family:x,honorCipherOrder:j,key:U,passphrase:V,pfx:B,rejectUnauthorized:G,secureOptions:W,secureProtocol:N,servername:D,sessionIdContext:T}=y[h];return{auth:S.username||S.password?`${S.username}:${S.password}`:"",host:S.host,hostname:S.hostname,path:`${S.pathname}${S.search}`,port:S.port,protocol:S.protocol,method:y.method,headers:c(E),agent:_,ca:w,cert:O,ciphers:R,clientCertEngine:I,crl:P,dhparam:L,ecdhCurve:M,family:x,honorCipherOrder:j,key:U,passphrase:V,pfx:B,rejectUnauthorized:G,secureOptions:W,secureProtocol:N,servername:D,sessionIdContext:T,timeout:y.timeout}}};r.exports=m,Object.defineProperties(m.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}})}),qb=K((e,r)=>{"use strict";var a=class extends Error{static{v(this,"AbortError")}constructor(p){super(p),this.code="FETCH_ABORTED",this.type="aborted",Error.captureStackTrace(this,this.constructor)}get name(){return"AbortError"}set name(p){}};r.exports=a}),Lr=K((e,r)=>{"use strict";var{URL:a}=require("url"),p=require("http"),n=require("https"),c=Ts(),{Minipass:o}=Pe(),t=go(),{writeToStream:s,getTotalBytes:i}=t,l=Vb(),u=mo(),{createHeadersLenient:h}=u,d=zb(),{getNodeRequestOptions:g}=d,m=Fu(),f=qb(),y=v(async(S,E)=>{if(/^data:/.test(S)){let b=new d(S,E);return Promise.resolve().then(()=>new Promise((_,w)=>{let O,R;try{let{pathname:L,search:M}=new a(S),x=L.split(",");if(x.length<2)throw new Error("invalid data: URI");let j=x.shift(),U=/;base64$/.test(j);O=U?j.slice(0,-7):j;let V=decodeURIComponent(x.join(",")+M);R=U?Buffer.from(V,"base64"):Buffer.from(V)}catch(L){return w(new m(`[${b.method}] ${b.url} invalid URL, ${L.message}`,"system",L))}let{signal:I}=b;if(I&&I.aborted)return w(new f("The user aborted a request."));let P={"Content-Length":R.length};return O&&(P["Content-Type"]=O),_(new l(R,{headers:P}))}))}return new Promise((b,_)=>{let w=new d(S,E),O;try{O=g(w)}catch(V){return _(V)}let R=(O.protocol==="https:"?n:p).request,{signal:I}=w,P=null,L=v(()=>{let V=new f("The user aborted a request.");_(V),o.isStream(w.body)&&typeof w.body.destroy=="function"&&w.body.destroy(V),P&&P.body&&P.body.emit("error",V)},"abort");if(I&&I.aborted)return L();let M=v(()=>{L(),x()},"abortAndFinalize"),x=v(()=>{j.abort(),I&&I.removeEventListener("abort",M),clearTimeout(U)},"finalize"),j=R(O);I&&I.addEventListener("abort",M);let U=null;w.timeout&&j.once("socket",()=>{U=setTimeout(()=>{_(new m(`network timeout at: ${w.url}`,"request-timeout")),x()},w.timeout)}),j.on("error",V=>{j.res&&j.res.emit("error",V),_(new m(`request to ${w.url} failed, reason: ${V.message}`,"system",V)),x()}),j.on("response",V=>{clearTimeout(U);let B=h(V.headers);if(y.isRedirect(V.statusCode)){let C=B.get("Location"),Z=null;try{Z=C===null?null:new a(C,w.url).toString()}catch{if(w.redirect!=="manual"){_(new m(`uri requested responds with an invalid redirect URL: ${C}`,"invalid-redirect")),x();return}}if(w.redirect==="error"){_(new m(`uri requested responds with a redirect, redirect mode is set to error: ${w.url}`,"no-redirect")),x();return}else if(w.redirect==="manual"){if(Z!==null)try{B.set("Location",Z)}catch(X){_(X)}}else if(w.redirect==="follow"&&Z!==null){if(w.counter>=w.follow){_(new m(`maximum redirect reached at: ${w.url}`,"max-redirect")),x();return}if(V.statusCode!==303&&w.body&&i(w)===null){_(new m("Cannot follow redirect with body being a readable stream","unsupported-redirect")),x();return}w.headers.set("host",new a(Z).host);let X={headers:new u(w.headers),follow:w.follow,counter:w.counter+1,agent:w.agent,compress:w.compress,method:w.method,body:w.body,signal:w.signal,timeout:w.timeout},Q=new a(w.url),k=new a(Z);Q.hostname!==k.hostname&&(X.headers.delete("authorization"),X.headers.delete("cookie")),(V.statusCode===303||(V.statusCode===301||V.statusCode===302)&&w.method==="POST")&&(X.method="GET",X.body=void 0,X.headers.delete("content-length")),b(y(new d(Z,X))),x();return}}V.once("end",()=>I&&I.removeEventListener("abort",M));let G=new o;G.on("error",x),V.on("error",C=>G.emit("error",C)),V.on("data",C=>G.write(C)),V.on("end",()=>G.end());let W={url:w.url,status:V.statusCode,statusText:V.statusMessage,headers:B,size:w.size,timeout:w.timeout,counter:w.counter,trailer:new Promise(C=>V.on("end",()=>C(h(V.trailers))))},N=B.get("Content-Encoding");if(!w.compress||w.method==="HEAD"||N===null||V.statusCode===204||V.statusCode===304){P=new l(G,W),b(P);return}let D={flush:c.constants.Z_SYNC_FLUSH,finishFlush:c.constants.Z_SYNC_FLUSH};if(N==="gzip"||N==="x-gzip"){let C=new c.Gunzip(D);P=new l(G.on("error",Z=>C.emit("error",Z)).pipe(C),W),b(P);return}if(N==="deflate"||N==="x-deflate"){V.once("data",C=>{let Z=(C[0]&15)===8?new c.Inflate:new c.InflateRaw;G.on("error",X=>Z.emit("error",X)).pipe(Z),P=new l(Z,W),b(P)});return}if(N==="br"){try{var T=new c.BrotliDecompress}catch(C){_(C),x();return}G.on("error",C=>T.emit("error",C)).pipe(T),P=new l(T,W),b(P);return}P=new l(G,W),b(P)}),s(j,w)})},"fetch");r.exports=y,y.isRedirect=S=>S===301||S===302||S===303||S===307||S===308,y.Headers=u,y.Request=d,y.Response=l,y.FetchError=m,y.AbortError=f}),Kb=K((e,r)=>{r.exports={name:"npm-registry-fetch",version:"19.0.0",description:"Fetch-based http client for use with npm registry APIs",main:"lib",files:["bin/","lib/"],scripts:{eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",test:"tap",posttest:"npm run lint",npmclilint:"npmcli-lint",postsnap:"npm run lintfix --",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/npm-registry-fetch.git"},keywords:["npm","registry","fetch"],author:"GitHub Inc.",license:"ISC",dependencies:{"@npmcli/redact":"^3.0.0",jsonparse:"^1.3.1","make-fetch-happen":"^15.0.0",minipass:"^7.0.2","minipass-fetch":"^4.0.0",minizlib:"^3.0.1","npm-package-arg":"^13.0.0","proc-log":"^5.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",cacache:"^20.0.0",nock:"^13.2.4","require-inject":"^1.4.4",ssri:"^12.0.0",tap:"^16.0.1"},tap:{"check-coverage":!0,"test-ignore":"test[\\\\/](util|cache)[\\\\/]","nyc-arg":["--exclude","tap-snapshots/**"]},engines:{node:"^20.17.0 || >=22.9.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}}),Wu=K((e,r)=>{var a=Kb();r.exports={maxSockets:12,method:"GET",registry:"https://registry.npmjs.org/",timeout:300*1e3,strictSSL:!0,noProxy:process.env.NOPROXY,userAgent:`${a.name}@${a.version}/node@${process.version}+${process.arch} (${process.platform})`}}),zu=K((e,r)=>{var a="regex",p="path",n={type:a,pattern:/\b(npms?_)[a-zA-Z0-9]{36,48}\b/gi,replacement:"[REDACTED_NPM_SECRET]"},c={type:a,pattern:/\b(Basic\s+|Bearer\s+)[\w+=\-.]+\b/gi,replacement:"[REDACTED_AUTH_HEADER]"},o={type:a,pattern:/\b[A-Za-z0-9-_]{10,}(?!\.\d+\.)\.[A-Za-z0-9-_]{3,}\.[A-Za-z0-9-_]{20,}\b/gi,replacement:"[REDACTED_JSON_WEB_TOKEN]"},t={type:a,pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,replacement:"[REDACTED_UUID]"},s={type:a,pattern:/(?:https?|ftp):\/\/[^\s/"$.?#].[^\s"]*/gi,replacement:"[REDACTED_URL]"},i={type:p,predicate:v(({path:g})=>g.endsWith(".headers.authorization"),"predicate"),replacement:"[REDACTED_HEADER_AUTHORIZATION]"},l={type:p,predicate:v(({path:g})=>g.endsWith(".headers.set-cookie"),"predicate"),replacement:"[REDACTED_HEADER_SET_COOKIE]"},u={type:p,predicate:v(({path:g})=>g.endsWith(".headers.cookie"),"predicate"),replacement:"[REDACTED_HEADER_COOKIE]"},h={type:p,predicate:v(({path:g})=>g.endsWith(".request"),"predicate"),replacement:v(g=>({method:g?.method,path:g?.path,headers:g?.headers,url:g?.url}),"replacement")},d={type:p,predicate:v(({path:g})=>g.endsWith(".response"),"predicate"),replacement:v(g=>({data:g?.data,status:g?.status,headers:g?.headers}),"replacement")};r.exports={TYPE_REGEX:a,TYPE_URL:"url",TYPE_PATH:p,NPM_SECRET:n,AUTH_HEADER:c,JSON_WEB_TOKEN:o,UUID:t,URL_MATCHER:s,DEEP_HEADER_AUTHORIZATION:i,DEEP_HEADER_SET_COOKIE:l,DEEP_HEADER_COOKIE:u,REWRITE_REQUEST:h,REWRITE_RESPONSE:d}}),Jb=K((e,r)=>{var{URL_MATCHER:a,TYPE_URL:p,TYPE_REGEX:n,TYPE_PATH:c}=zu(),o=v((_=0)=>(_=typeof _=="string"?_.length:_,_<8?"*".repeat(8):"*".repeat(_)),"asterisk"),t=v(_=>_.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"escapeRegExp"),s=v(_=>{let w=decodeURIComponent(_),O=encodeURIComponent(_);return[...new Set([O,w,_])].map(t).join("|")},"urlEncodeRegexGroup"),i=v((_,...w)=>{let O="";for(let R=0;R<w.length;R++)O+=_[R]+`(${s(w[R])})`;return O+=_[_.length-1],new RegExp(O)},"urlEncodeRegexTag"),l=v(({hostname:_,replacement:w}={})=>({type:p,predicate:v(({url:O})=>O.hostname===_,"predicate"),pattern:v(({url:O})=>i`(^${O.protocol}//${O.username}:.+@)?${O.hostname}`,"pattern"),replacement:`$1${w||o()}`}),"redactUrlHostnameMatcher"),u=v(({param:_,replacement:w}={})=>({type:p,predicate:v(({url:O})=>O.searchParams.has(_),"predicate"),pattern:v(({url:O})=>i`(${_}=)${O.searchParams.get(_)}`,"pattern"),replacement:`$1${w||o()}`}),"redactUrlSearchParamsMatcher"),h=v(({replacement:_}={})=>({type:p,predicate:v(({url:w})=>w.password,"predicate"),pattern:v(({url:w})=>i`(^${w.protocol}//${w.username}:)${w.password}`,"pattern"),replacement:`$1${_||o()}`}),"redactUrlPasswordMatcher"),d=v((..._)=>w=>{try{let O=new URL(w);return y(..._)(w,{url:O})}catch{return w}},"redactUrlReplacement"),g=v((..._)=>({...a,replacement:d(..._)}),"redactUrlMatcher"),m={[n]:_=>w=>(typeof w=="string"&&(w=w.replace(_.pattern,_.replacement)),w),[p]:_=>(w,O)=>{if(typeof w=="string")try{let R=O?.url||new URL(w),{predicate:I,pattern:P}=_;I({url:R})&&(w=w.replace(P({url:R}),_.replacement))}catch{return w}return w},[c]:_=>(w,O)=>{let R=O?.path,I=R.join(".").toLowerCase(),{predicate:P,replacement:L}=_,M=typeof L=="function"?L:()=>L;return P({rawPath:R,path:I})&&(w=M(w,{rawPath:R,path:I})),w}},f=v(_=>m[_.type](_),"redactMatcher"),y=v((..._)=>(w,O)=>_.flat().reduce((R,I)=>(typeof I=="function"?I:f(I))(R,O),w),"redactMatchers"),S=v(()=>(_,w)=>typeof w=="number"?o(_):w+o(_.substring(w.length).length),"redactDynamicReplacement"),E=v(_=>(w,O)=>typeof O=="number"?o(_):O+o(_),"redactFixedReplacement"),b=v((_,w)=>y(h({replacement:w}))(_),"redactUrlPassword");r.exports={asterisk:o,escapeRegExp:t,urlEncodeRegexGroup:s,urlEncodeRegexTag:i,redactUrlHostnameMatcher:l,redactUrlSearchParamsMatcher:u,redactUrlPasswordMatcher:h,redactUrlMatcher:g,redactUrlReplacement:d,redactDynamicReplacement:S,redactFixedReplacement:E,redactMatchers:y,redactUrlPassword:b}}),Zb=K((e,r)=>{var a=zu(),{redactUrlPassword:p}=Jb(),n="***",c=v(s=>typeof s!="string"||!s?s:p(s,n).replace(a.NPM_SECRET.pattern,`npm_${n}`).replace(a.UUID.pattern,n),"redact"),o=v(s=>{let i=/[\s=]/g,l=null,u="",h=0;for(;l=i.exec(s);)u+=c(s.slice(h,l.index))+l[0],h=i.lastIndex;return u+c(s.slice(h))},"splitAndRedact"),t=v(s=>typeof s=="string"?o(s):Array.isArray(s)?s.map(i=>typeof i=="string"?o(i):i):s,"redactLog");r.exports={redact:c,redactLog:t}}),Xb=K((e,r)=>{"use strict";var a=Uu(),{Response:p}=Lr(),n=Wu(),{log:c}=ct(),{redact:o}=Zb(),t="https://github.com/npm/cli/wiki/No-auth-for-URI,-but-auth-present-for-scoped-registry",s=v(async({method:u,uri:h,res:d,startTime:g,auth:m,opts:f})=>(f={...n,...f},d.headers.has("npm-notice")&&!d.headers.has("x-local-cache")&&c.notice("",d.headers.get("npm-notice")),d.status>=400?(i(u,d,g),m&&m.scopeAuthKey&&!m.token&&!m.auth&&c.warn("registry",`No auth for URI, but auth present for scoped registry.
39
+
40
+ URI: ${h}
41
+ Scoped Registry Key: ${m.scopeAuthKey}
42
+
43
+ More info here: ${t}`),l(u,d,g,f)):(d.body.on("end",()=>i(u,d,g,f)),f.ignoreBody?(d.body.resume(),new p(null,d)):d)),"checkResponse");r.exports=s;function i(u,h,d){let g=Date.now()-d,m=h.headers.get("x-fetch-attempts"),f=m&&m>1?` attempt #${m}`:"",y=h.headers.get("x-local-cache-status"),S=y?` (cache ${y})`:"",E=o(h.url);y==="hit"?c.http("cache",`${E} ${g}ms${f}${S}`):c.http("fetch",`${u.toUpperCase()} ${h.status} ${E} ${g}ms${f}${S}`)}v(i,"logRequest");function l(u,h,d,g){return h.buffer().catch(()=>null).then(m=>{let f=m;try{f=JSON.parse(m.toString("utf8"))}catch{}if(h.status===401&&h.headers.get("www-authenticate")){let y=h.headers.get("www-authenticate").split(/,\s*/).map(S=>S.toLowerCase());throw y.indexOf("ipaddress")!==-1?new a.HttpErrorAuthIPAddress(u,h,f,g.spec):y.indexOf("otp")!==-1?new a.HttpErrorAuthOTP(u,h,f,g.spec):new a.HttpErrorAuthUnknown(u,h,f,g.spec)}else throw h.status===401&&m!=null&&/one-time pass/.test(m.toString("utf8"))?new a.HttpErrorAuthOTP(u,h,f,g.spec):new a.HttpErrorGeneral(u,h,f,g.spec)})}v(l,"checkErrors")}),Yb=K((e,r)=>{"use strict";var a=require("fs"),p=Ir(),{URL:n}=require("url"),c=v((h,d)=>{let g=new n(h),m=`//${g.host}${g.pathname}`;for(;m.length>2;){let f=o(m,d);if(f)return{regKey:m,authKey:f};m=m.replace(/([^/]+|\/)$/,"")}return{regKey:!1,authKey:null}},"regFromURI"),o=v((h,d)=>d[`${h}:_authToken`]?"_authToken":d[`${h}:_auth`]?"_auth":d[`${h}:username`]&&d[`${h}:_password`]?"username":d[`${h}:certfile`]&&d[`${h}:keyfile`]?"certfile":!1,"hasAuth"),t=v((h,d)=>{let g=new n(h),m=new n(d);return g.host===m.host},"sameHost"),s=v(h=>{let{spec:d}=h,{scope:g,subSpec:m}=d?p(d):{},f=m&&m.scope,y=m?f:g;return y&&h[`${y}:registry`]||h.registry},"getRegistry"),i=v(h=>{try{return a.readFileSync(h,"utf8")}catch(d){if(d.code!=="ENOENT")throw d;return null}},"maybeReadFile"),l=v((h,d={})=>{let{forceAuth:g}=d;if(!h)throw new Error("URI is required");let{regKey:m,authKey:f}=c(h,g||d);if(g&&!m)return new u({regKey:!1,authKey:null,scopeAuthKey:null,token:g._authToken||g.token,username:g.username,password:g._password||g.password,auth:g._auth||g.auth,certfile:g.certfile,keyfile:g.keyfile});if(!m){let O=s(d);if(O&&h!==O&&t(h,O))return l(O,d);if(O!==d.registry){let{regKey:R,authKey:I}=c(O,d);return new u({scopeAuthKey:R,regKey:R,authKey:I})}}let{[`${m}:_authToken`]:y,[`${m}:username`]:S,[`${m}:_password`]:E,[`${m}:_auth`]:b,[`${m}:certfile`]:_,[`${m}:keyfile`]:w}=d;return new u({scopeAuthKey:null,regKey:m,authKey:f,token:y,auth:b,username:S,password:E,certfile:_,keyfile:w})},"getAuth"),u=class{static{v(this,"Auth")}constructor({token:h,auth:d,username:g,password:m,scopeAuthKey:f,certfile:y,keyfile:S,regKey:E,authKey:b}){if(this.scopeAuthKey=f,this.regKey=E,this.authKey=b,this.token=null,this.auth=null,this.isBasicAuth=!1,this.cert=null,this.key=null,h)this.token=h;else if(d)this.auth=d;else if(g&&m){let _=Buffer.from(m,"base64").toString("utf8");this.auth=Buffer.from(`${g}:${_}`,"utf8").toString("base64"),this.isBasicAuth=!0}if(y&&S){let _=i(y,"utf-8"),w=i(S,"utf-8");_&&w&&(this.cert=_,this.key=w)}}};r.exports=l}),Qb=K((e,r)=>{var a=require("dns"),p=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],n=v(c=>{let{strictSSL:o,...t}={...c};if(t.method=t.method?t.method.toUpperCase():"GET",o==null?t.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":t.rejectUnauthorized=o!==!1,!t.retry)t.retry={retries:0};else if(typeof t.retry=="string"){let s=parseInt(t.retry,10);isFinite(s)?t.retry={retries:s}:t.retry={retries:0}}else typeof t.retry=="number"?t.retry={retries:t.retry}:t.retry={retries:0,...t.retry};return t.dns={ttl:300*1e3,lookup:a.lookup,...t.dns},t.cache=t.cache||"default",t.cache==="default"&&Object.keys(t.headers||{}).some(s=>p.includes(s.toLowerCase()))&&(t.cache="no-store"),t.cacheAdditionalHeaders=t.cacheAdditionalHeaders||[],t.cacheManager&&!t.cachePath&&(t.cachePath=t.cacheManager),t},"configureOptions");r.exports=n}),e_=K((e,r)=>{"use strict";var a=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),p=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),n=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},o={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function t(u){let h=parseInt(u,10);return isFinite(h)?h:0}v(t,"toNumberOrZero");function s(u){return u?n.has(u.status):!0}v(s,"isErrorResponse");function i(u){let h={};if(!u)return h;let d=u.trim().split(/,/);for(let g of d){let[m,f]=g.split(/=/,2);h[m.trim()]=f===void 0?!0:f.trim().replace(/^"|"$/g,"")}return h}v(i,"parseCacheControl");function l(u){let h=[];for(let d in u){let g=u[d];h.push(g===!0?d:d+"="+g)}if(h.length)return h.join(", ")}v(l,"formatCacheControl"),r.exports=class{static{v(this,"CachePolicy")}constructor(u,h,{shared:d,cacheHeuristic:g,immutableMinTimeToLive:m,ignoreCargoCult:f,_fromObject:y}={}){if(y){this._fromObject(y);return}if(!h||!h.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(u),this._responseTime=this.now(),this._isShared=d!==!1,this._ignoreCargoCult=!!f,this._cacheHeuristic=g!==void 0?g:.1,this._immutableMinTtl=m!==void 0?m:24*3600*1e3,this._status="status"in h?h.status:200,this._resHeaders=h.headers,this._rescc=i(h.headers["cache-control"]),this._method="method"in u?u.method:"GET",this._url=u.url,this._host=u.headers.host,this._noAuthorization=!u.headers.authorization,this._reqHeaders=h.headers.vary?u.headers:null,this._reqcc=i(u.headers["cache-control"]),this._ignoreCargoCult&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),h.headers["cache-control"]==null&&/no-cache/.test(h.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&p.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||a.has(this._status)))}_hasExplicitExpiration(){return!!(this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires)}_assertRequestHasHeaders(u){if(!u||!u.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(u){return!this.evaluateRequest(u).revalidation}_evaluateRequestHitResult(u){return{response:{headers:this.responseHeaders()},revalidation:u}}_evaluateRequestRevalidation(u,h){return{synchronous:h,headers:this.revalidationHeaders(u)}}_evaluateRequestMissResult(u){return{response:void 0,revalidation:this._evaluateRequestRevalidation(u,!0)}}evaluateRequest(u){if(this._assertRequestHasHeaders(u),this._rescc["must-revalidate"])return this._evaluateRequestMissResult(u);if(!this._requestMatches(u,!1))return this._evaluateRequestMissResult(u);let h=i(u.headers["cache-control"]);return h["no-cache"]||/no-cache/.test(u.headers.pragma)?this._evaluateRequestMissResult(u):h["max-age"]&&this.age()>t(h["max-age"])?this._evaluateRequestMissResult(u):h["min-fresh"]&&this.maxAge()-this.age()<t(h["min-fresh"])?this._evaluateRequestMissResult(u):this.stale()?"max-stale"in h&&(h["max-stale"]===!0||h["max-stale"]>this.age()-this.maxAge())?this._evaluateRequestHitResult(void 0):this.useStaleWhileRevalidate()?this._evaluateRequestHitResult(this._evaluateRequestRevalidation(u,!1)):this._evaluateRequestMissResult(u):this._evaluateRequestHitResult(void 0)}_requestMatches(u,h){return!!((!this._url||this._url===u.url)&&this._host===u.headers.host&&(!u.method||this._method===u.method||h&&u.method==="HEAD")&&this._varyMatches(u))}_allowsStoringAuthenticated(){return!!(this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"])}_varyMatches(u){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let h=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of h)if(u.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(u){let h={};for(let d in u)c[d]||(h[d]=u[d]);if(u.connection){let d=u.connection.trim().split(/\s*,\s*/);for(let g of d)delete h[g]}if(h.warning){let d=h.warning.split(/,/).filter(g=>!/^\s*1[0-9][0-9]/.test(g));d.length?h.warning=d.join(",").trim():delete h.warning}return h}responseHeaders(){let u=this._copyWithoutHopByHopHeaders(this._resHeaders),h=this.age();return h>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(u.warning=(u.warning?`${u.warning}, `:"")+'113 - "rfc7234 5.5.4"'),u.age=`${Math.round(h)}`,u.date=new Date(this.now()).toUTCString(),u}date(){let u=Date.parse(this._resHeaders.date);return isFinite(u)?u:this._responseTime}age(){let u=this._ageValue(),h=(this.now()-this._responseTime)/1e3;return u+h}_ageValue(){return t(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return t(this._rescc["s-maxage"])}if(this._rescc["max-age"])return t(this._rescc["max-age"]);let u=this._rescc.immutable?this._immutableMinTtl:0,h=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<h?0:Math.max(u,(d-h)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&h>d)return Math.max(u,(h-d)/1e3*this._cacheHeuristic)}return u}timeToLive(){let u=this.maxAge()-this.age(),h=u+t(this._rescc["stale-if-error"]),d=u+t(this._rescc["stale-while-revalidate"]);return Math.round(Math.max(0,u,h,d)*1e3)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+t(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){let u=t(this._rescc["stale-while-revalidate"]);return u>0&&this.maxAge()+u>this.age()}static fromObject(u){return new this(void 0,void 0,{_fromObject:u})}_fromObject(u){if(this._responseTime)throw Error("Reinitialized");if(!u||u.v!==1)throw Error("Invalid serialization");this._responseTime=u.t,this._isShared=u.sh,this._cacheHeuristic=u.ch,this._immutableMinTtl=u.imm!==void 0?u.imm:24*3600*1e3,this._ignoreCargoCult=!!u.icc,this._status=u.st,this._resHeaders=u.resh,this._rescc=u.rescc,this._method=u.m,this._url=u.u,this._host=u.h,this._noAuthorization=u.a,this._reqHeaders=u.reqh,this._reqcc=u.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,icc:this._ignoreCargoCult,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(u){this._assertRequestHasHeaders(u);let h=this._copyWithoutHopByHopHeaders(u.headers);if(delete h["if-range"],!this._requestMatches(u,!0)||!this.storable())return delete h["if-none-match"],delete h["if-modified-since"],h;if(this._resHeaders.etag&&(h["if-none-match"]=h["if-none-match"]?`${h["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),h["accept-ranges"]||h["if-match"]||h["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete h["if-modified-since"],h["if-none-match"]){let d=h["if-none-match"].split(/,/).filter(g=>!/^\s*W\//.test(g));d.length?h["if-none-match"]=d.join(",").trim():delete h["if-none-match"]}}else this._resHeaders["last-modified"]&&!h["if-modified-since"]&&(h["if-modified-since"]=this._resHeaders["last-modified"]);return h}revalidatedPolicy(u,h){if(this._assertRequestHasHeaders(u),this._useStaleIfError()&&s(h))return{policy:this,modified:!1,matches:!0};if(!h||!h.headers)throw Error("Response headers missing");let d=!1;h.status!==void 0&&h.status!=304?d=!1:h.headers.etag&&!/^\s*W\//.test(h.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===h.headers.etag:this._resHeaders.etag&&h.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===h.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===h.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!h.headers.etag&&!h.headers["last-modified"]&&(d=!0);let g={shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,ignoreCargoCult:this._ignoreCargoCult};if(!d)return{policy:new this.constructor(u,h,g),modified:h.status!=304,matches:!1};let m={};for(let y in this._resHeaders)m[y]=y in h.headers&&!o[y]?h.headers[y]:this._resHeaders[y];let f=Object.assign({},h,{status:this._status,method:this._method,headers:m});return{policy:new this.constructor(u,f,g),modified:!1,matches:!0}}}}),t_=K((e,r)=>{"use strict";r.exports=t,r.exports.preferredCharsets=t;var a=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function p(u){for(var h=u.split(","),d=0,g=0;d<h.length;d++){var m=n(h[d].trim(),d);m&&(h[g++]=m)}return h.length=g,h}v(p,"parseAcceptCharset");function n(u,h){var d=a.exec(u);if(!d)return null;var g=d[1],m=1;if(d[2])for(var f=d[2].split(";"),y=0;y<f.length;y++){var S=f[y].trim().split("=");if(S[0]==="q"){m=parseFloat(S[1]);break}}return{charset:g,q:m,i:h}}v(n,"parseCharset");function c(u,h,d){for(var g={o:-1,q:0,s:0},m=0;m<h.length;m++){var f=o(u,h[m],d);f&&(g.s-f.s||g.q-f.q||g.o-f.o)<0&&(g=f)}return g}v(c,"getCharsetPriority");function o(u,h,d){var g=0;if(h.charset.toLowerCase()===u.toLowerCase())g|=1;else if(h.charset!=="*")return null;return{i:d,o:h.i,q:h.q,s:g}}v(o,"specify");function t(u,h){var d=p(u===void 0?"*":u||"");if(!h)return d.filter(l).sort(s).map(i);var g=h.map(v(function(m,f){return c(m,d,f)},"getPriority"));return g.filter(l).sort(s).map(v(function(m){return h[g.indexOf(m)]},"getCharset"))}v(t,"preferredCharsets");function s(u,h){return h.q-u.q||h.s-u.s||u.o-h.o||u.i-h.i||0}v(s,"compareSpecs");function i(u){return u.charset}v(i,"getFullCharset");function l(u){return u.q>0}v(l,"isQuality")}),r_=K((e,r)=>{"use strict";r.exports=t,r.exports.preferredEncodings=t;var a=/^\s*([^\s;]+)\s*(?:;(.*))?$/;function p(u){for(var h=u.split(","),d=!1,g=1,m=0,f=0;m<h.length;m++){var y=n(h[m].trim(),m);y&&(h[f++]=y,d=d||o("identity",y),g=Math.min(g,y.q||1))}return d||(h[f++]={encoding:"identity",q:g,i:m}),h.length=f,h}v(p,"parseAcceptEncoding");function n(u,h){var d=a.exec(u);if(!d)return null;var g=d[1],m=1;if(d[2])for(var f=d[2].split(";"),y=0;y<f.length;y++){var S=f[y].trim().split("=");if(S[0]==="q"){m=parseFloat(S[1]);break}}return{encoding:g,q:m,i:h}}v(n,"parseEncoding");function c(u,h,d){for(var g={encoding:u,o:-1,q:0,s:0},m=0;m<h.length;m++){var f=o(u,h[m],d);f&&(g.s-f.s||g.q-f.q||g.o-f.o)<0&&(g=f)}return g}v(c,"getEncodingPriority");function o(u,h,d){var g=0;if(h.encoding.toLowerCase()===u.toLowerCase())g|=1;else if(h.encoding!=="*")return null;return{encoding:u,i:d,o:h.i,q:h.q,s:g}}v(o,"specify");function t(u,h,d){var g=p(u||""),m=d?v(function(y,S){if(y.q!==S.q)return S.q-y.q;var E=d.indexOf(y.encoding),b=d.indexOf(S.encoding);return E===-1&&b===-1?S.s-y.s||y.o-S.o||y.i-S.i:E!==-1&&b!==-1?E-b:E===-1?1:-1},"comparator"):s;if(!h)return g.filter(l).sort(m).map(i);var f=h.map(v(function(y,S){return c(y,g,S)},"getPriority"));return f.filter(l).sort(m).map(v(function(y){return h[f.indexOf(y)]},"getEncoding"))}v(t,"preferredEncodings");function s(u,h){return h.q-u.q||h.s-u.s||u.o-h.o||u.i-h.i}v(s,"compareSpecs");function i(u){return u.encoding}v(i,"getFullEncoding");function l(u){return u.q>0}v(l,"isQuality")}),s_=K((e,r)=>{"use strict";r.exports=t,r.exports.preferredLanguages=t;var a=/^\s*([^\s\-;]+)(?:-([^\s;]+))?\s*(?:;(.*))?$/;function p(u){for(var h=u.split(","),d=0,g=0;d<h.length;d++){var m=n(h[d].trim(),d);m&&(h[g++]=m)}return h.length=g,h}v(p,"parseAcceptLanguage");function n(u,h){var d=a.exec(u);if(!d)return null;var g=d[1],m=d[2],f=g;m&&(f+="-"+m);var y=1;if(d[3])for(var S=d[3].split(";"),E=0;E<S.length;E++){var b=S[E].split("=");b[0]==="q"&&(y=parseFloat(b[1]))}return{prefix:g,suffix:m,q:y,i:h,full:f}}v(n,"parseLanguage");function c(u,h,d){for(var g={o:-1,q:0,s:0},m=0;m<h.length;m++){var f=o(u,h[m],d);f&&(g.s-f.s||g.q-f.q||g.o-f.o)<0&&(g=f)}return g}v(c,"getLanguagePriority");function o(u,h,d){var g=n(u);if(!g)return null;var m=0;if(h.full.toLowerCase()===g.full.toLowerCase())m|=4;else if(h.prefix.toLowerCase()===g.full.toLowerCase())m|=2;else if(h.full.toLowerCase()===g.prefix.toLowerCase())m|=1;else if(h.full!=="*")return null;return{i:d,o:h.i,q:h.q,s:m}}v(o,"specify");function t(u,h){var d=p(u===void 0?"*":u||"");if(!h)return d.filter(l).sort(s).map(i);var g=h.map(v(function(m,f){return c(m,d,f)},"getPriority"));return g.filter(l).sort(s).map(v(function(m){return h[g.indexOf(m)]},"getLanguage"))}v(t,"preferredLanguages");function s(u,h){return h.q-u.q||h.s-u.s||u.o-h.o||u.i-h.i||0}v(s,"compareSpecs");function i(u){return u.full}v(i,"getFullLanguage");function l(u){return u.q>0}v(l,"isQuality")}),i_=K((e,r)=>{"use strict";r.exports=t,r.exports.preferredMediaTypes=t;var a=/^\s*([^\s\/;]+)\/([^;\s]+)\s*(?:;(.*))?$/;function p(m){for(var f=d(m),y=0,S=0;y<f.length;y++){var E=n(f[y].trim(),y);E&&(f[S++]=E)}return f.length=S,f}v(p,"parseAccept");function n(m,f){var y=a.exec(m);if(!y)return null;var S=Object.create(null),E=1,b=y[2],_=y[1];if(y[3])for(var w=g(y[3]).map(h),O=0;O<w.length;O++){var R=w[O],I=R[0].toLowerCase(),P=R[1],L=P&&P[0]==='"'&&P[P.length-1]==='"'?P.slice(1,-1):P;if(I==="q"){E=parseFloat(L);break}S[I]=L}return{type:_,subtype:b,params:S,q:E,i:f}}v(n,"parseMediaType");function c(m,f,y){for(var S={o:-1,q:0,s:0},E=0;E<f.length;E++){var b=o(m,f[E],y);b&&(S.s-b.s||S.q-b.q||S.o-b.o)<0&&(S=b)}return S}v(c,"getMediaTypePriority");function o(m,f,y){var S=n(m),E=0;if(!S)return null;if(f.type.toLowerCase()==S.type.toLowerCase())E|=4;else if(f.type!="*")return null;if(f.subtype.toLowerCase()==S.subtype.toLowerCase())E|=2;else if(f.subtype!="*")return null;var b=Object.keys(f.params);if(b.length>0)if(b.every(function(_){return f.params[_]=="*"||(f.params[_]||"").toLowerCase()==(S.params[_]||"").toLowerCase()}))E|=1;else return null;return{i:y,o:f.i,q:f.q,s:E}}v(o,"specify");function t(m,f){var y=p(m===void 0?"*/*":m||"");if(!f)return y.filter(l).sort(s).map(i);var S=f.map(v(function(E,b){return c(E,y,b)},"getPriority"));return S.filter(l).sort(s).map(v(function(E){return f[S.indexOf(E)]},"getType"))}v(t,"preferredMediaTypes");function s(m,f){return f.q-m.q||f.s-m.s||m.o-f.o||m.i-f.i||0}v(s,"compareSpecs");function i(m){return m.type+"/"+m.subtype}v(i,"getFullType");function l(m){return m.q>0}v(l,"isQuality");function u(m){for(var f=0,y=0;(y=m.indexOf('"',y))!==-1;)f++,y++;return f}v(u,"quoteCount");function h(m){var f=m.indexOf("="),y,S;return f===-1?y=m:(y=m.slice(0,f),S=m.slice(f+1)),[y,S]}v(h,"splitKeyValuePair");function d(m){for(var f=m.split(","),y=1,S=0;y<f.length;y++)u(f[S])%2==0?f[++S]=f[y]:f[S]+=","+f[y];return f.length=S+1,f}v(d,"splitMediaTypes");function g(m){for(var f=m.split(";"),y=1,S=0;y<f.length;y++)u(f[S])%2==0?f[++S]=f[y]:f[S]+=";"+f[y];f.length=S+1;for(var y=0;y<f.length;y++)f[y]=f[y].trim();return f}v(g,"splitParameters")}),n_=K((e,r)=>{"use strict";var a=t_(),p=r_(),n=s_(),c=i_();r.exports=o,r.exports.Negotiator=o;function o(t){if(!(this instanceof o))return new o(t);this.request=t}v(o,"Negotiator"),o.prototype.charset=v(function(t){var s=this.charsets(t);return s&&s[0]},"charset"),o.prototype.charsets=v(function(t){return a(this.request.headers["accept-charset"],t)},"charsets"),o.prototype.encoding=v(function(t,s){var i=this.encodings(t,s);return i&&i[0]},"encoding"),o.prototype.encodings=v(function(t,s){var i=s||{};return p(this.request.headers["accept-encoding"],t,i.preferred)},"encodings"),o.prototype.language=v(function(t){var s=this.languages(t);return s&&s[0]},"language"),o.prototype.languages=v(function(t){return n(this.request.headers["accept-language"],t)},"languages"),o.prototype.mediaType=v(function(t){var s=this.mediaTypes(t);return s&&s[0]},"mediaType"),o.prototype.mediaTypes=v(function(t){return c(this.request.headers.accept,t)},"mediaTypes"),o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}),qu=K((e,r)=>{var a=e_(),p=n_(),n=vt(),c={shared:!1,ignoreCargoCult:!0},o={status:200,headers:{}},t=v(l=>{let u={method:l.method,url:l.url,headers:{},compress:l.compress};return l.headers.forEach((h,d)=>{u.headers[d]=h}),u},"requestObject"),s=v(l=>{let u={status:l.status,headers:{}};return l.headers.forEach((h,d)=>{u.headers[d]=h}),u},"responseObject"),i=class{static{v(this,"CachePolicy")}constructor({entry:l,request:u,response:h,options:d}){this.entry=l,this.request=t(u),this.response=s(h),this.options=d,this.policy=new a(this.request,this.response,c),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(l,u){return!u.cachePath||u.cache==="no-store"||!["GET","HEAD"].includes(l.method)?!1:new a(t(l),o,c).storable()}satisfies(l){let u=t(l);if(this.request.headers.host!==u.headers.host||this.request.compress!==u.compress)return!1;let h=new p(this.request),d=new p(u);return JSON.stringify(h.mediaTypes())!==JSON.stringify(d.mediaTypes())||JSON.stringify(h.languages())!==JSON.stringify(d.languages())||JSON.stringify(h.encodings())!==JSON.stringify(d.encodings())?!1:this.options.integrity?n.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(l){let u=t(l);return u.method="GET",!this.policy.satisfiesWithoutRevalidation(u)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(l){let u=t(l);return this.policy.revalidationHeaders(u)}revalidated(l,u){let h=t(l),d=s(u);return!this.policy.revalidatedPolicy(h,d).modified}};r.exports=i}),o_=K((e,r)=>{var a=class extends Error{static{v(this,"NotCachedError")}constructor(p){super(`request to ${p} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};r.exports={NotCachedError:a}}),Ku=K((e,r)=>{"use strict";var a=Or(),p=class extends a{static{v(this,"CachingMinipassPipeline")}#e=[];#t=new Map;constructor(n,...c){super(),this.#e=n.events,c.length&&this.push(...c)}on(n,c){return this.#e.includes(n)&&this.#t.has(n)?c(...this.#t.get(n)):super.on(n,c)}emit(n,...c){return this.#e.includes(n)&&this.#t.set(n,c),super.emit(n,...c)}};r.exports=p}),a_=K((e,r)=>{var{URL:a,format:p}=require("url"),n={auth:!1,fragment:!1,search:!0,unicode:!1},c=v(o=>{let t=new a(o.url);return`make-fetch-happen:request-cache:${p(t,n)}`},"cacheKey");r.exports=c}),Ju=K((e,r)=>{"use strict";var{LRUCache:a}=Kt(),p=require("dns"),n=new a({max:50}),c=v(({family:o=0,hints:t=p.ADDRCONFIG,all:s=!1,verbatim:i=void 0,ttl:l=300*1e3,lookup:u=p.lookup})=>({hints:t,lookup:v((h,...d)=>{let g=d.pop(),m=d[0]??{},f={family:o,hints:t,all:s,verbatim:i,...typeof m=="number"?{family:m}:m},y=JSON.stringify({hostname:h,...f});if(n.has(y)){let S=n.get(y);return process.nextTick(g,null,...S)}u(h,f,(S,...E)=>S?g(S):(n.set(y,E,{ttl:l}),g(null,...E)))},"lookup")}),"getOptions");r.exports={cache:n,getOptions:c}}),Zu=K((e,r)=>{"use strict";var a=Ju(),p=v(o=>{let t=parseInt(o.family??"0",10),s=o.keepAlive??!0,i={keepAliveMsecs:s?1e3:void 0,maxSockets:o.maxSockets??15,maxTotalSockets:1/0,maxFreeSockets:s?256:void 0,scheduling:"fifo",...o,family:t,keepAlive:s,timeouts:{idle:o.timeout??0,connection:0,response:0,transfer:0,...o.timeouts},...a.getOptions({family:t,...o.dns})};return delete i.timeout,i},"normalizeOptions"),n=v(o=>{let t="",s=Object.entries(o).sort((i,l)=>i[0]-l[0]);for(let[i,l]of s)l==null?l="null":l instanceof URL?l=l.toString():typeof l=="object"&&(l=n(l)),t+=`${i}:${l}:`;return t},"createKey"),c=v(({secureEndpoint:o,...t})=>n({secureEndpoint:!!o,family:t.family,hints:t.hints,localAddress:t.localAddress,strictSsl:o?!!t.rejectUnauthorized:!1,ca:o?t.ca:null,cert:o?t.cert:null,key:o?t.key:null,keepAlive:t.keepAlive,keepAliveMsecs:t.keepAliveMsecs,maxSockets:t.maxSockets,maxTotalSockets:t.maxTotalSockets,maxFreeSockets:t.maxFreeSockets,scheduling:t.scheduling,timeouts:t.timeouts,proxy:t.proxy}),"cacheOptions");r.exports={normalizeOptions:p,cacheOptions:c}}),l_=K((e,r)=>{var a=1e3,p=a*60,n=p*60,c=n*24,o=c*7,t=c*365.25;r.exports=function(h,d){d=d||{};var g=typeof h;if(g==="string"&&h.length>0)return s(h);if(g==="number"&&isFinite(h))return d.long?l(h):i(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function s(h){if(h=String(h),!(h.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(d){var g=parseFloat(d[1]),m=(d[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return g*t;case"weeks":case"week":case"w":return g*o;case"days":case"day":case"d":return g*c;case"hours":case"hour":case"hrs":case"hr":case"h":return g*n;case"minutes":case"minute":case"mins":case"min":case"m":return g*p;case"seconds":case"second":case"secs":case"sec":case"s":return g*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return g;default:return}}}}v(s,"parse");function i(h){var d=Math.abs(h);return d>=c?Math.round(h/c)+"d":d>=n?Math.round(h/n)+"h":d>=p?Math.round(h/p)+"m":d>=a?Math.round(h/a)+"s":h+"ms"}v(i,"fmtShort");function l(h){var d=Math.abs(h);return d>=c?u(h,d,c,"day"):d>=n?u(h,d,n,"hour"):d>=p?u(h,d,p,"minute"):d>=a?u(h,d,a,"second"):h+" ms"}v(l,"fmtLong");function u(h,d,g,m){var f=d>=g*1.5;return Math.round(h/g)+" "+m+(f?"s":"")}v(u,"plural")}),Xu=K((e,r)=>{function a(p){c.debug=c,c.default=c,c.coerce=u,c.disable=i,c.enable=t,c.enabled=l,c.humanize=l_(),c.destroy=h,Object.keys(p).forEach(d=>{c[d]=p[d]}),c.names=[],c.skips=[],c.formatters={};function n(d){let g=0;for(let m=0;m<d.length;m++)g=(g<<5)-g+d.charCodeAt(m),g|=0;return c.colors[Math.abs(g)%c.colors.length]}v(n,"selectColor"),c.selectColor=n;function c(d){let g,m=null,f,y;function S(...E){if(!S.enabled)return;let b=S,_=Number(new Date),w=_-(g||_);b.diff=w,b.prev=g,b.curr=_,g=_,E[0]=c.coerce(E[0]),typeof E[0]!="string"&&E.unshift("%O");let O=0;E[0]=E[0].replace(/%([a-zA-Z%])/g,(R,I)=>{if(R==="%%")return"%";O++;let P=c.formatters[I];if(typeof P=="function"){let L=E[O];R=P.call(b,L),E.splice(O,1),O--}return R}),c.formatArgs.call(b,E),(b.log||c.log).apply(b,E)}return v(S,"debug"),S.namespace=d,S.useColors=c.useColors(),S.color=c.selectColor(d),S.extend=o,S.destroy=c.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:v(()=>m!==null?m:(f!==c.namespaces&&(f=c.namespaces,y=c.enabled(d)),y),"get"),set:v(E=>{m=E},"set")}),typeof c.init=="function"&&c.init(S),S}v(c,"createDebug");function o(d,g){let m=c(this.namespace+(typeof g>"u"?":":g)+d);return m.log=this.log,m}v(o,"extend");function t(d){c.save(d),c.namespaces=d,c.names=[],c.skips=[];let g=(typeof d=="string"?d:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let m of g)m[0]==="-"?c.skips.push(m.slice(1)):c.names.push(m)}v(t,"enable");function s(d,g){let m=0,f=0,y=-1,S=0;for(;m<d.length;)if(f<g.length&&(g[f]===d[m]||g[f]==="*"))g[f]==="*"?(y=f,S=m,f++):(m++,f++);else if(y!==-1)f=y+1,S++,m=S;else return!1;for(;f<g.length&&g[f]==="*";)f++;return f===g.length}v(s,"matchesTemplate");function i(){let d=[...c.names,...c.skips.map(g=>"-"+g)].join(",");return c.enable(""),d}v(i,"disable");function l(d){for(let g of c.skips)if(s(d,g))return!1;for(let g of c.names)if(s(d,g))return!0;return!1}v(l,"enabled");function u(d){return d instanceof Error?d.stack||d.message:d}v(u,"coerce");function h(){}return v(h,"destroy"),c.enable(c.load()),c}v(a,"setup"),r.exports=a}),c_=K((e,r)=>{e.formatArgs=p,e.save=n,e.load=c,e.useColors=a,e.storage=o(),e.destroy=(()=>{let s=!1;return()=>{s||(s=!0)}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function a(){let s;return!1}v(a,"useColors");function p(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff),!this.useColors)return;let i="color: "+this.color;s.splice(1,0,i,"color: inherit");let l=0,u=0;s[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(l++,h==="%c"&&(u=l))}),s.splice(u,0,i)}v(p,"formatArgs"),e.log=console.debug||console.log||(()=>{});function n(s){try{s?e.storage.setItem("debug",s):e.storage.removeItem("debug")}catch{}}v(n,"save");function c(){let s;try{s=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=void 0),s}v(c,"load");function o(){try{return}catch{}}v(o,"localstorage"),r.exports=Xu()(e);var{formatters:t}=r.exports;t.j=function(s){try{return JSON.stringify(s)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}),u_=K((e,r)=>{"use strict";r.exports=(a,p=process.argv)=>{let n=a.startsWith("-")?"":a.length===1?"-":"--",c=p.indexOf(n+a),o=p.indexOf("--");return c!==-1&&(o===-1||c<o)}}),h_=K((e,r)=>{"use strict";var a=require("os"),p=require("tty"),n=u_(),{env:c}=process,o;n("no-color")||n("no-colors")||n("color=false")||n("color=never")?o=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?o=1:c.FORCE_COLOR==="false"?o=0:o=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function t(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}v(t,"translateLevel");function s(l,u){if(o===0)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(l&&!u&&o===void 0)return 0;let h=o||0;if(c.TERM==="dumb")return h;if(process.platform==="win32"){let d=a.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:h;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:h}v(s,"supportsColor");function i(l){let u=s(l,l&&l.isTTY);return t(u)}v(i,"getSupportLevel"),r.exports={supportsColor:i,stdout:t(s(!0,p.isatty(1))),stderr:t(s(!0,p.isatty(2)))}}),p_=K((e,r)=>{var a=require("tty"),p=require("util");e.init=l,e.log=t,e.formatArgs=c,e.save=s,e.load=i,e.useColors=n,e.destroy=p.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=h_();h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}e.inspectOpts=Object.keys(process.env).filter(h=>/^debug_/i.test(h)).reduce((h,d)=>{let g=d.substring(6).toLowerCase().replace(/_([a-z])/g,(f,y)=>y.toUpperCase()),m=process.env[d];return/^(yes|on|true|enabled)$/i.test(m)?m=!0:/^(no|off|false|disabled)$/i.test(m)?m=!1:m==="null"?m=null:m=Number(m),h[g]=m,h},{});function n(){return"colors"in e.inspectOpts?!!e.inspectOpts.colors:a.isatty(process.stderr.fd)}v(n,"useColors");function c(h){let{namespace:d,useColors:g}=this;if(g){let m=this.color,f="\x1B[3"+(m<8?m:"8;5;"+m),y=` ${f};1m${d} \x1B[0m`;h[0]=y+h[0].split(`
44
+ `).join(`
45
+ `+y),h.push(f+"m+"+r.exports.humanize(this.diff)+"\x1B[0m")}else h[0]=o()+d+" "+h[0]}v(c,"formatArgs");function o(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}v(o,"getDate");function t(...h){return process.stderr.write(p.formatWithOptions(e.inspectOpts,...h)+`
46
+ `)}v(t,"log");function s(h){h?process.env.DEBUG=h:delete void 0}v(s,"save");function i(){}v(i,"load");function l(h){h.inspectOpts={};let d=Object.keys(e.inspectOpts);for(let g=0;g<d.length;g++)h.inspectOpts[d[g]]=e.inspectOpts[d[g]]}v(l,"init"),r.exports=Xu()(e);var{formatters:u}=r.exports;u.o=function(h){return this.inspectOpts.colors=this.useColors,p.inspect(h,this.inspectOpts).split(`
47
+ `).map(d=>d.trim()).join(" ")},u.O=function(h){return this.inspectOpts.colors=this.useColors,p.inspect(h,this.inspectOpts)}}),Xt=K((e,r)=>{typeof process>"u"||process.type==="renderer"||process.__nwjs?r.exports=c_():r.exports=p_()}),d_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(i,l,u,h){h===void 0&&(h=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:v(function(){return l[u]},"get")}),Object.defineProperty(i,h,d)}:function(i,l,u,h){h===void 0&&(h=u),i[h]=l[u]}),a=e&&e.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),p=e&&e.__importStar||function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u in i)u!=="default"&&Object.prototype.hasOwnProperty.call(i,u)&&r(l,i,u);return a(l,i),l};Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.json=e.toBuffer=void 0;var n=p(require("http")),c=p(require("https"));async function o(i){let l=0,u=[];for await(let h of i)l+=h.length,u.push(h);return Buffer.concat(u,l)}v(o,"toBuffer"),e.toBuffer=o;async function t(i){let l=(await o(i)).toString("utf8");try{return JSON.parse(l)}catch(u){let h=u;throw h.message+=` (input: ${l})`,h}}v(t,"json"),e.json=t;function s(i,l={}){let u=((typeof i=="string"?i:i.href).startsWith("https:")?c:n).request(i,l),h=new Promise((d,g)=>{u.once("response",d).once("error",g).end()});return u.then=h.then.bind(h),u}v(s,"req"),e.req=s}),Ps=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(l,u,h,d){d===void 0&&(d=h);var g=Object.getOwnPropertyDescriptor(u,h);(!g||("get"in g?!u.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:v(function(){return u[h]},"get")}),Object.defineProperty(l,d,g)}:function(l,u,h,d){d===void 0&&(d=h),l[d]=u[h]}),a=e&&e.__setModuleDefault||(Object.create?function(l,u){Object.defineProperty(l,"default",{enumerable:!0,value:u})}:function(l,u){l.default=u}),p=e&&e.__importStar||function(l){if(l&&l.__esModule)return l;var u={};if(l!=null)for(var h in l)h!=="default"&&Object.prototype.hasOwnProperty.call(l,h)&&r(u,l,h);return a(u,l),u},n=e&&e.__exportStar||function(l,u){for(var h in l)h!=="default"&&!Object.prototype.hasOwnProperty.call(u,h)&&r(u,l,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;var c=p(require("net")),o=p(require("http")),t=require("https");n(d_(),e);var s=Symbol("AgentBaseInternalState"),i=class extends o.Agent{static{v(this,"Agent")}constructor(l){super(l),this[s]={}}isSecureEndpoint(l){if(l){if(typeof l.secureEndpoint=="boolean")return l.secureEndpoint;if(typeof l.protocol=="string")return l.protocol==="https:"}let{stack:u}=new Error;return typeof u!="string"?!1:u.split(`
48
+ `).some(h=>h.indexOf("(https.js:")!==-1||h.indexOf("node:https:")!==-1)}incrementSockets(l){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[l]||(this.sockets[l]=[]);let u=new c.Socket({writable:!1});return this.sockets[l].push(u),this.totalSocketCount++,u}decrementSockets(l,u){if(!this.sockets[l]||u===null)return;let h=this.sockets[l],d=h.indexOf(u);d!==-1&&(h.splice(d,1),this.totalSocketCount--,h.length===0&&delete this.sockets[l])}getName(l){return this.isSecureEndpoint(l)?t.Agent.prototype.getName.call(this,l):super.getName(l)}createSocket(l,u,h){let d={...u,secureEndpoint:this.isSecureEndpoint(u)},g=this.getName(d),m=this.incrementSockets(g);Promise.resolve().then(()=>this.connect(l,d)).then(f=>{if(this.decrementSockets(g,m),f instanceof o.Agent)try{return f.addRequest(l,d)}catch(y){return h(y)}this[s].currentSocket=f,super.createSocket(l,u,h)},f=>{this.decrementSockets(g,m),h(f)})}createConnection(){let l=this[s].currentSocket;if(this[s].currentSocket=void 0,!l)throw new Error("No socket was returned in the `connect()` function");return l}get defaultPort(){return this[s].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(l){this[s]&&(this[s].defaultPort=l)}get protocol(){return this[s].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(l){this[s]&&(this[s].protocol=l)}};e.Agent=i}),f_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(g,m,f,y){y===void 0&&(y=f);var S=Object.getOwnPropertyDescriptor(m,f);(!S||("get"in S?!m.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:v(function(){return m[f]},"get")}),Object.defineProperty(g,y,S)}:function(g,m,f,y){y===void 0&&(y=f),g[y]=m[f]}),a=e&&e.__setModuleDefault||(Object.create?function(g,m){Object.defineProperty(g,"default",{enumerable:!0,value:m})}:function(g,m){g.default=m}),p=e&&e.__importStar||function(g){if(g&&g.__esModule)return g;var m={};if(g!=null)for(var f in g)f!=="default"&&Object.prototype.hasOwnProperty.call(g,f)&&r(m,g,f);return a(m,g),m},n=e&&e.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpProxyAgent=void 0;var c=p(require("net")),o=p(require("tls")),t=n(Xt()),s=require("events"),i=Ps(),l=require("url"),u=(0,t.default)("http-proxy-agent"),h=class extends i.Agent{static{v(this,"HttpProxyAgent")}constructor(g,m){super(m),this.proxy=typeof g=="string"?new l.URL(g):g,this.proxyHeaders=m?.headers??{},u("Creating new HttpProxyAgent instance: %o",this.proxy.href);let f=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),y=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...m?d(m,"headers"):null,host:f,port:y}}addRequest(g,m){g._header=null,this.setRequestProps(g,m),super.addRequest(g,m)}setRequestProps(g,m){let{proxy:f}=this,y=m.secureEndpoint?"https:":"http:",S=g.getHeader("host")||"localhost",E=`${y}//${S}`,b=new l.URL(g.path,E);m.port!==80&&(b.port=String(m.port)),g.path=String(b);let _=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(f.username||f.password){let w=`${decodeURIComponent(f.username)}:${decodeURIComponent(f.password)}`;_["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}_["Proxy-Connection"]||(_["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let w of Object.keys(_)){let O=_[w];O&&g.setHeader(w,O)}}async connect(g,m){g._header=null,g.path.includes("://")||this.setRequestProps(g,m);let f,y;u("Regenerating stored HTTP header string for request"),g._implicitHeader(),g.outputData&&g.outputData.length>0&&(u("Patching connection write() output buffer with updated header"),f=g.outputData[0].data,y=f.indexOf(`\r
49
+ \r
50
+ `)+4,g.outputData[0].data=g._header+f.substring(y),u("Output buffer: %o",g.outputData[0].data));let S;return this.proxy.protocol==="https:"?(u("Creating `tls.Socket`: %o",this.connectOpts),S=o.connect(this.connectOpts)):(u("Creating `net.Socket`: %o",this.connectOpts),S=c.connect(this.connectOpts)),await(0,s.once)(S,"connect"),S}};h.protocols=["http","https"],e.HttpProxyAgent=h;function d(g,...m){let f={},y;for(y in g)m.includes(y)||(f[y]=g[y]);return f}v(d,"omit")}),g_=K(e=>{"use strict";var r=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseProxyResponse=void 0;var a=r(Xt()),p=(0,a.default)("https-proxy-agent:parse-proxy-response");function n(c){return new Promise((o,t)=>{let s=0,i=[];function l(){let m=c.read();m?g(m):c.once("readable",l)}v(l,"read");function u(){c.removeListener("end",h),c.removeListener("error",d),c.removeListener("readable",l)}v(u,"cleanup");function h(){u(),p("onend"),t(new Error("Proxy connection ended before receiving CONNECT response"))}v(h,"onend");function d(m){u(),p("onerror %o",m),t(m)}v(d,"onerror");function g(m){i.push(m),s+=m.length;let f=Buffer.concat(i,s),y=f.indexOf(`\r
51
+ \r
52
+ `);if(y===-1){p("have not received end of HTTP headers yet..."),l();return}let S=f.slice(0,y).toString("ascii").split(`\r
53
+ `),E=S.shift();if(!E)return c.destroy(),t(new Error("No header received from proxy CONNECT response"));let b=E.split(" "),_=+b[1],w=b.slice(2).join(" "),O={};for(let R of S){if(!R)continue;let I=R.indexOf(":");if(I===-1)return c.destroy(),t(new Error(`Invalid header from proxy CONNECT response: "${R}"`));let P=R.slice(0,I).toLowerCase(),L=R.slice(I+1).trimStart(),M=O[P];typeof M=="string"?O[P]=[M,L]:Array.isArray(M)?M.push(L):O[P]=L}p("got proxy server response: %o %o",E,O),u(),o({connect:{statusCode:_,statusText:w,headers:O},buffered:f})}v(g,"ondata"),c.on("error",d),c.on("end",h),l()})}v(n,"parseProxyResponse"),e.parseProxyResponse=n}),m_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(y,S,E,b){b===void 0&&(b=E);var _=Object.getOwnPropertyDescriptor(S,E);(!_||("get"in _?!S.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:v(function(){return S[E]},"get")}),Object.defineProperty(y,b,_)}:function(y,S,E,b){b===void 0&&(b=E),y[b]=S[E]}),a=e&&e.__setModuleDefault||(Object.create?function(y,S){Object.defineProperty(y,"default",{enumerable:!0,value:S})}:function(y,S){y.default=S}),p=e&&e.__importStar||function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&r(S,y,E);return a(S,y),S},n=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;var c=p(require("net")),o=p(require("tls")),t=n(require("assert")),s=n(Xt()),i=Ps(),l=require("url"),u=g_(),h=(0,s.default)("https-proxy-agent"),d=v(y=>y.servername===void 0&&y.host&&!c.isIP(y.host)?{...y,servername:y.host}:y,"setServernameFromNonIpHost"),g=class extends i.Agent{static{v(this,"HttpsProxyAgent")}constructor(y,S){super(S),this.options={path:void 0},this.proxy=typeof y=="string"?new l.URL(y):y,this.proxyHeaders=S?.headers??{},h("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let E=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),b=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...S?f(S,"headers"):null,host:E,port:b}}async connect(y,S){let{proxy:E}=this;if(!S.host)throw new TypeError('No "host" provided');let b;E.protocol==="https:"?(h("Creating `tls.Socket`: %o",this.connectOpts),b=o.connect(d(this.connectOpts))):(h("Creating `net.Socket`: %o",this.connectOpts),b=c.connect(this.connectOpts));let _=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},w=c.isIPv6(S.host)?`[${S.host}]`:S.host,O=`CONNECT ${w}:${S.port} HTTP/1.1\r
54
+ `;if(E.username||E.password){let M=`${decodeURIComponent(E.username)}:${decodeURIComponent(E.password)}`;_["Proxy-Authorization"]=`Basic ${Buffer.from(M).toString("base64")}`}_.Host=`${w}:${S.port}`,_["Proxy-Connection"]||(_["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let M of Object.keys(_))O+=`${M}: ${_[M]}\r
55
+ `;let R=(0,u.parseProxyResponse)(b);b.write(`${O}\r
56
+ `);let{connect:I,buffered:P}=await R;if(y.emit("proxyConnect",I),this.emit("proxyConnect",I,y),I.statusCode===200)return y.once("socket",m),S.secureEndpoint?(h("Upgrading socket connection to TLS"),o.connect({...f(d(S),"host","path","port"),socket:b})):b;b.destroy();let L=new c.Socket({writable:!1});return L.readable=!0,y.once("socket",M=>{h("Replaying proxy buffer for failed request"),(0,t.default)(M.listenerCount("data")>0),M.push(P),M.push(null)}),L}};g.protocols=["http","https"],e.HttpsProxyAgent=g;function m(y){y.resume()}v(m,"resume");function f(y,...S){let E={},b;for(b in y)S.includes(b)||(E[b]=y[b]);return E}v(f,"omit")}),y_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("buffer"),a={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};e.ERRORS=a;function p(u){if(!r.Buffer.isEncoding(u))throw new Error(a.INVALID_ENCODING)}v(p,"checkEncoding"),e.checkEncoding=p;function n(u){return typeof u=="number"&&isFinite(u)&&i(u)}v(n,"isFiniteInteger"),e.isFiniteInteger=n;function c(u,h){if(typeof u=="number"){if(!n(u)||u<0)throw new Error(h?a.INVALID_OFFSET:a.INVALID_LENGTH)}else throw new Error(h?a.INVALID_OFFSET_NON_NUMBER:a.INVALID_LENGTH_NON_NUMBER)}v(c,"checkOffsetOrLengthValue");function o(u){c(u,!1)}v(o,"checkLengthValue"),e.checkLengthValue=o;function t(u){c(u,!0)}v(t,"checkOffsetValue"),e.checkOffsetValue=t;function s(u,h){if(u<0||u>h.length)throw new Error(a.INVALID_TARGET_OFFSET)}v(s,"checkTargetOffset"),e.checkTargetOffset=s;function i(u){return typeof u=="number"&&isFinite(u)&&Math.floor(u)===u}v(i,"isInteger");function l(u){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof r.Buffer.prototype[u]>"u")throw new Error(`Platform does not support Buffer.prototype.${u}.`)}v(l,"bigIntAndBufferInt64Check"),e.bigIntAndBufferInt64Check=l}),v_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y_(),a=4096,p="utf8",n=class Yu{static{v(this,"SmartBuffer")}constructor(o){if(this.length=0,this._encoding=p,this._writeOffset=0,this._readOffset=0,Yu.isSmartBufferOptions(o))if(o.encoding&&(r.checkEncoding(o.encoding),this._encoding=o.encoding),o.size)if(r.isFiniteInteger(o.size)&&o.size>0)this._buff=Buffer.allocUnsafe(o.size);else throw new Error(r.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(o.buff)if(Buffer.isBuffer(o.buff))this._buff=o.buff,this.length=o.buff.length;else throw new Error(r.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(a);else{if(typeof o<"u")throw new Error(r.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(a)}}static fromSize(o,t){return new this({size:o,encoding:t})}static fromBuffer(o,t){return new this({buff:o,encoding:t})}static fromOptions(o){return new this(o)}static isSmartBufferOptions(o){let t=o;return t&&(t.encoding!==void 0||t.size!==void 0||t.buff!==void 0)}readInt8(o){return this._readNumberValue(Buffer.prototype.readInt8,1,o)}readInt16BE(o){return this._readNumberValue(Buffer.prototype.readInt16BE,2,o)}readInt16LE(o){return this._readNumberValue(Buffer.prototype.readInt16LE,2,o)}readInt32BE(o){return this._readNumberValue(Buffer.prototype.readInt32BE,4,o)}readInt32LE(o){return this._readNumberValue(Buffer.prototype.readInt32LE,4,o)}readBigInt64BE(o){return r.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,o)}readBigInt64LE(o){return r.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,o)}writeInt8(o,t){return this._writeNumberValue(Buffer.prototype.writeInt8,1,o,t),this}insertInt8(o,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,o,t)}writeInt16BE(o,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,o,t)}insertInt16BE(o,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,o,t)}writeInt16LE(o,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,o,t)}insertInt16LE(o,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,o,t)}writeInt32BE(o,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,o,t)}insertInt32BE(o,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,o,t)}writeInt32LE(o,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,o,t)}insertInt32LE(o,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,o,t)}writeBigInt64BE(o,t){return r.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,o,t)}insertBigInt64BE(o,t){return r.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,o,t)}writeBigInt64LE(o,t){return r.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,o,t)}insertBigInt64LE(o,t){return r.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,o,t)}readUInt8(o){return this._readNumberValue(Buffer.prototype.readUInt8,1,o)}readUInt16BE(o){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,o)}readUInt16LE(o){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,o)}readUInt32BE(o){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,o)}readUInt32LE(o){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,o)}readBigUInt64BE(o){return r.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,o)}readBigUInt64LE(o){return r.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,o)}writeUInt8(o,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,o,t)}insertUInt8(o,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,o,t)}writeUInt16BE(o,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,o,t)}insertUInt16BE(o,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,o,t)}writeUInt16LE(o,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,o,t)}insertUInt16LE(o,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,o,t)}writeUInt32BE(o,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,o,t)}insertUInt32BE(o,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,o,t)}writeUInt32LE(o,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,o,t)}insertUInt32LE(o,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,o,t)}writeBigUInt64BE(o,t){return r.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,o,t)}insertBigUInt64BE(o,t){return r.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,o,t)}writeBigUInt64LE(o,t){return r.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,o,t)}insertBigUInt64LE(o,t){return r.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,o,t)}readFloatBE(o){return this._readNumberValue(Buffer.prototype.readFloatBE,4,o)}readFloatLE(o){return this._readNumberValue(Buffer.prototype.readFloatLE,4,o)}writeFloatBE(o,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,o,t)}insertFloatBE(o,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,o,t)}writeFloatLE(o,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,o,t)}insertFloatLE(o,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,o,t)}readDoubleBE(o){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,o)}readDoubleLE(o){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,o)}writeDoubleBE(o,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,o,t)}insertDoubleBE(o,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,o,t)}writeDoubleLE(o,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,o,t)}insertDoubleLE(o,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,o,t)}readString(o,t){let s;typeof o=="number"?(r.checkLengthValue(o),s=Math.min(o,this.length-this._readOffset)):(t=o,s=this.length-this._readOffset),typeof t<"u"&&r.checkEncoding(t);let i=this._buff.slice(this._readOffset,this._readOffset+s).toString(t||this._encoding);return this._readOffset+=s,i}insertString(o,t,s){return r.checkOffsetValue(t),this._handleString(o,!0,t,s)}writeString(o,t,s){return this._handleString(o,!1,t,s)}readStringNT(o){typeof o<"u"&&r.checkEncoding(o);let t=this.length;for(let i=this._readOffset;i<this.length;i++)if(this._buff[i]===0){t=i;break}let s=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,s.toString(o||this._encoding)}insertStringNT(o,t,s){return r.checkOffsetValue(t),this.insertString(o,t,s),this.insertUInt8(0,t+o.length),this}writeStringNT(o,t,s){return this.writeString(o,t,s),this.writeUInt8(0,typeof t=="number"?t+o.length:this.writeOffset),this}readBuffer(o){typeof o<"u"&&r.checkLengthValue(o);let t=typeof o=="number"?o:this.length,s=Math.min(this.length,this._readOffset+t),i=this._buff.slice(this._readOffset,s);return this._readOffset=s,i}insertBuffer(o,t){return r.checkOffsetValue(t),this._handleBuffer(o,!0,t)}writeBuffer(o,t){return this._handleBuffer(o,!1,t)}readBufferNT(){let o=this.length;for(let s=this._readOffset;s<this.length;s++)if(this._buff[s]===0){o=s;break}let t=this._buff.slice(this._readOffset,o);return this._readOffset=o+1,t}insertBufferNT(o,t){return r.checkOffsetValue(t),this.insertBuffer(o,t),this.insertUInt8(0,t+o.length),this}writeBufferNT(o,t){return typeof t<"u"&&r.checkOffsetValue(t),this.writeBuffer(o,t),this.writeUInt8(0,typeof t=="number"?t+o.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(o){r.checkOffsetValue(o),r.checkTargetOffset(o,this),this._readOffset=o}get writeOffset(){return this._writeOffset}set writeOffset(o){r.checkOffsetValue(o),r.checkTargetOffset(o,this),this._writeOffset=o}get encoding(){return this._encoding}set encoding(o){r.checkEncoding(o),this._encoding=o}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(o){let t=typeof o=="string"?o:this._encoding;return r.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(o,t,s,i){let l=this._writeOffset,u=this._encoding;typeof s=="number"?l=s:typeof s=="string"&&(r.checkEncoding(s),u=s),typeof i=="string"&&(r.checkEncoding(i),u=i);let h=Buffer.byteLength(o,u);return t?this.ensureInsertable(h,l):this._ensureWriteable(h,l),this._buff.write(o,l,h,u),t?this._writeOffset+=h:typeof s=="number"?this._writeOffset=Math.max(this._writeOffset,l+h):this._writeOffset+=h,this}_handleBuffer(o,t,s){let i=typeof s=="number"?s:this._writeOffset;return t?this.ensureInsertable(o.length,i):this._ensureWriteable(o.length,i),o.copy(this._buff,i),t?this._writeOffset+=o.length:typeof s=="number"?this._writeOffset=Math.max(this._writeOffset,i+o.length):this._writeOffset+=o.length,this}ensureReadable(o,t){let s=this._readOffset;if(typeof t<"u"&&(r.checkOffsetValue(t),s=t),s<0||s+o>this.length)throw new Error(r.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(o,t){r.checkOffsetValue(t),this._ensureCapacity(this.length+o),t<this.length&&this._buff.copy(this._buff,t+o,t,this._buff.length),t+o>this.length?this.length=t+o:this.length+=o}_ensureWriteable(o,t){let s=typeof t=="number"?t:this._writeOffset;this._ensureCapacity(s+o),s+o>this.length&&(this.length=s+o)}_ensureCapacity(o){let t=this._buff.length;if(o>t){let s=this._buff,i=t*3/2+1;i<o&&(i=o),this._buff=Buffer.allocUnsafe(i),s.copy(this._buff,0,0,t)}}_readNumberValue(o,t,s){this.ensureReadable(t,s);let i=o.call(this._buff,typeof s=="number"?s:this._readOffset);return typeof s>"u"&&(this._readOffset+=t),i}_insertNumberValue(o,t,s,i){return r.checkOffsetValue(i),this.ensureInsertable(t,i),o.call(this._buff,s,i),this._writeOffset+=t,this}_writeNumberValue(o,t,s,i){if(typeof i=="number"){if(i<0)throw new Error(r.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);r.checkOffsetValue(i)}let l=typeof i=="number"?i:this._writeOffset;return this._ensureWriteable(t,l),o.call(this._buff,s,l),typeof i=="number"?this._writeOffset=Math.max(this._writeOffset,l+t):this._writeOffset+=t,this}};e.SmartBuffer=n}),Qu=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SOCKS5_NO_ACCEPTABLE_AUTH=e.SOCKS5_CUSTOM_AUTH_END=e.SOCKS5_CUSTOM_AUTH_START=e.SOCKS_INCOMING_PACKET_SIZES=e.SocksClientState=e.Socks5Response=e.Socks5HostType=e.Socks5Auth=e.Socks4Response=e.SocksCommand=e.ERRORS=e.DEFAULT_TIMEOUT=void 0;var r=3e4;e.DEFAULT_TIMEOUT=r;var a={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"};e.ERRORS=a;var p={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:v(d=>d+7,"Socks5ResponseHostname"),Socks4Response:8};e.SOCKS_INCOMING_PACKET_SIZES=p;var n;(function(d){d[d.connect=1]="connect",d[d.bind=2]="bind",d[d.associate=3]="associate"})(n||(e.SocksCommand=n={}));var c;(function(d){d[d.Granted=90]="Granted",d[d.Failed=91]="Failed",d[d.Rejected=92]="Rejected",d[d.RejectedIdent=93]="RejectedIdent"})(c||(e.Socks4Response=c={}));var o;(function(d){d[d.NoAuth=0]="NoAuth",d[d.GSSApi=1]="GSSApi",d[d.UserPass=2]="UserPass"})(o||(e.Socks5Auth=o={}));var t=128;e.SOCKS5_CUSTOM_AUTH_START=t;var s=254;e.SOCKS5_CUSTOM_AUTH_END=s;var i=255;e.SOCKS5_NO_ACCEPTABLE_AUTH=i;var l;(function(d){d[d.Granted=0]="Granted",d[d.Failure=1]="Failure",d[d.NotAllowed=2]="NotAllowed",d[d.NetworkUnreachable=3]="NetworkUnreachable",d[d.HostUnreachable=4]="HostUnreachable",d[d.ConnectionRefused=5]="ConnectionRefused",d[d.TTLExpired=6]="TTLExpired",d[d.CommandNotSupported=7]="CommandNotSupported",d[d.AddressNotSupported=8]="AddressNotSupported"})(l||(e.Socks5Response=l={}));var u;(function(d){d[d.IPv4=1]="IPv4",d[d.Hostname=3]="Hostname",d[d.IPv6=4]="IPv6"})(u||(e.Socks5HostType=u={}));var h;(function(d){d[d.Created=0]="Created",d[d.Connecting=1]="Connecting",d[d.Connected=2]="Connected",d[d.SentInitialHandshake=3]="SentInitialHandshake",d[d.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",d[d.SentAuthentication=5]="SentAuthentication",d[d.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",d[d.SentFinalHandshake=7]="SentFinalHandshake",d[d.ReceivedFinalResponse=8]="ReceivedFinalResponse",d[d.BoundWaitingForConnection=9]="BoundWaitingForConnection",d[d.Established=10]="Established",d[d.Disconnected=11]="Disconnected",d[d.Error=99]="Error"})(h||(e.SocksClientState=h={}))}),eh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shuffleArray=e.SocksClientError=void 0;var r=class extends Error{static{v(this,"SocksClientError")}constructor(p,n){super(p),this.options=n}};e.SocksClientError=r;function a(p){for(let n=p.length-1;n>0;n--){let c=Math.floor(Math.random()*(n+1));[p[n],p[c]]=[p[c],p[n]]}}v(a,"shuffleArray"),e.shuffleArray=a}),Tn=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInSubnet=r,e.isCorrect=a,e.numberToPaddedHex=p,e.stringToPaddedHex=n,e.testBit=c;function r(o){return this.subnetMask<o.subnetMask?!1:this.mask(o.subnetMask)===o.mask()}v(r,"isInSubnet");function a(o){return function(){return this.addressMinusSuffix!==this.correctForm()?!1:this.subnetMask===o&&!this.parsedSubnet?!0:this.parsedSubnet===String(this.subnetMask)}}v(a,"isCorrect");function p(o){return o.toString(16).padStart(2,"0")}v(p,"numberToPaddedHex");function n(o){return p(parseInt(o,10))}v(n,"stringToPaddedHex");function c(o,t){let{length:s}=o;if(t>s)return!1;let i=s-t;return o.substring(i,i+1)==="1"}v(c,"testBit")}),th=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RE_SUBNET_STRING=e.RE_ADDRESS=e.GROUPS=e.BITS=void 0,e.BITS=32,e.GROUPS=4,e.RE_ADDRESS=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/g,e.RE_SUBNET_STRING=/\/\d{1,2}$/}),yo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddressError=void 0;var r=class extends Error{static{v(this,"AddressError")}constructor(a,p){super(a),this.name="AddressError",this.parseMessage=p}};e.AddressError=r}),rh=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(s,i,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(i,l);(!h||("get"in h?!i.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:v(function(){return i[l]},"get")}),Object.defineProperty(s,u,h)}:function(s,i,l,u){u===void 0&&(u=l),s[u]=i[l]}),a=e&&e.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),p=e&&e.__importStar||function(s){if(s&&s.__esModule)return s;var i={};if(s!=null)for(var l in s)l!=="default"&&Object.prototype.hasOwnProperty.call(s,l)&&r(i,s,l);return a(i,s),i};Object.defineProperty(e,"__esModule",{value:!0}),e.Address4=void 0;var n=p(Tn()),c=p(th()),o=yo(),t=class lt{static{v(this,"Address4")}constructor(i){this.groups=c.GROUPS,this.parsedAddress=[],this.parsedSubnet="",this.subnet="/32",this.subnetMask=32,this.v4=!0,this.isCorrect=n.isCorrect(c.BITS),this.isInSubnet=n.isInSubnet,this.address=i;let l=c.RE_SUBNET_STRING.exec(i);if(l){if(this.parsedSubnet=l[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,this.subnetMask<0||this.subnetMask>c.BITS)throw new o.AddressError("Invalid subnet mask.");i=i.replace(c.RE_SUBNET_STRING,"")}this.addressMinusSuffix=i,this.parsedAddress=this.parse(i)}static isValid(i){try{return new lt(i),!0}catch{return!1}}parse(i){let l=i.split(".");if(!i.match(c.RE_ADDRESS))throw new o.AddressError("Invalid IPv4 address.");return l}correctForm(){return this.parsedAddress.map(i=>parseInt(i,10)).join(".")}static fromHex(i){let l=i.replace(/:/g,"").padStart(8,"0"),u=[],h;for(h=0;h<8;h+=2){let d=l.slice(h,h+2);u.push(parseInt(d,16))}return new lt(u.join("."))}static fromInteger(i){return lt.fromHex(i.toString(16))}static fromArpa(i){let l=i.replace(/(\.in-addr\.arpa)?\.$/,"").split(".").reverse().join(".");return new lt(l)}toHex(){return this.parsedAddress.map(i=>n.stringToPaddedHex(i)).join(":")}toArray(){return this.parsedAddress.map(i=>parseInt(i,10))}toGroup6(){let i=[],l;for(l=0;l<c.GROUPS;l+=2)i.push(`${n.stringToPaddedHex(this.parsedAddress[l])}${n.stringToPaddedHex(this.parsedAddress[l+1])}`);return i.join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(i=>n.stringToPaddedHex(i)).join("")}`)}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(c.BITS-this.subnetMask)}`)}startAddress(){return lt.fromBigInt(this._startAddress())}startAddressExclusive(){let i=BigInt("1");return lt.fromBigInt(this._startAddress()+i)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(c.BITS-this.subnetMask)}`)}endAddress(){return lt.fromBigInt(this._endAddress())}endAddressExclusive(){let i=BigInt("1");return lt.fromBigInt(this._endAddress()-i)}static fromBigInt(i){return lt.fromHex(i.toString(16))}mask(i){return i===void 0&&(i=this.subnetMask),this.getBitsBase2(0,i)}getBitsBase2(i,l){return this.binaryZeroPad().slice(i,l)}reverseForm(i){i||(i={});let l=this.correctForm().split(".").reverse().join(".");return i.omitSuffix?l:`${l}.in-addr.arpa.`}isMulticast(){return this.isInSubnet(new lt("224.0.0.0/4"))}binaryZeroPad(){return this.bigInt().toString(2).padStart(c.BITS,"0")}groupForV6(){let i=this.parsedAddress;return this.address.replace(c.RE_ADDRESS,`<span class="hover-group group-v4 group-6">${i.slice(0,2).join(".")}</span>.<span class="hover-group group-v4 group-7">${i.slice(2,4).join(".")}</span>`)}};e.Address4=t}),sh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RE_URL_WITH_PORT=e.RE_URL=e.RE_ZONE_STRING=e.RE_SUBNET_STRING=e.RE_BAD_ADDRESS=e.RE_BAD_CHARACTERS=e.TYPES=e.SCOPES=e.GROUPS=e.BITS=void 0,e.BITS=128,e.GROUPS=8,e.SCOPES={0:"Reserved",1:"Interface local",2:"Link local",4:"Admin local",5:"Site local",8:"Organization local",14:"Global",15:"Reserved"},e.TYPES={"ff01::1/128":"Multicast (All nodes on this interface)","ff01::2/128":"Multicast (All routers on this interface)","ff02::1/128":"Multicast (All nodes on this link)","ff02::2/128":"Multicast (All routers on this link)","ff05::2/128":"Multicast (All routers in this site)","ff02::5/128":"Multicast (OSPFv3 AllSPF routers)","ff02::6/128":"Multicast (OSPFv3 AllDR routers)","ff02::9/128":"Multicast (RIP routers)","ff02::a/128":"Multicast (EIGRP routers)","ff02::d/128":"Multicast (PIM routers)","ff02::16/128":"Multicast (MLDv2 reports)","ff01::fb/128":"Multicast (mDNSv6)","ff02::fb/128":"Multicast (mDNSv6)","ff05::fb/128":"Multicast (mDNSv6)","ff02::1:2/128":"Multicast (All DHCP servers and relay agents on this link)","ff05::1:2/128":"Multicast (All DHCP servers and relay agents in this site)","ff02::1:3/128":"Multicast (All DHCP servers on this link)","ff05::1:3/128":"Multicast (All DHCP servers in this site)","::/128":"Unspecified","::1/128":"Loopback","ff00::/8":"Multicast","fe80::/10":"Link-local unicast"},e.RE_BAD_CHARACTERS=/([^0-9a-f:/%])/gi,e.RE_BAD_ADDRESS=/([0-9a-f]{5,}|:{3,}|[^:]:$|^:[^:]|\/$)/gi,e.RE_SUBNET_STRING=/\/\d{1,3}(?=%|$)/,e.RE_ZONE_STRING=/%.*$/,e.RE_URL=/^\[{0,1}([0-9a-f:]+)\]{0,1}/,e.RE_URL_WITH_PORT=/\[([0-9a-f:]+)\]:([0-9]{1,5})/}),ih=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spanAllZeroes=r,e.spanAll=a,e.spanLeadingZeroes=n,e.simpleGroup=c;function r(o){return o.replace(/(0+)/g,'<span class="zero">$1</span>')}v(r,"spanAllZeroes");function a(o,t=0){return o.split("").map((s,i)=>`<span class="digit value-${s} position-${i+t}">${r(s)}</span>`).join("")}v(a,"spanAll");function p(o){return o.replace(/^(0+)/,'<span class="zero">$1</span>')}v(p,"spanLeadingZeroesSimple");function n(o){return o.split(":").map(t=>p(t)).join(":")}v(n,"spanLeadingZeroes");function c(o,t=0){return o.split(":").map((s,i)=>/group-v4/.test(s)?s:`<span class="hover-group group-${i+t}">${p(s)}</span>`)}v(c,"simpleGroup")}),S_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(i,l,u,h){h===void 0&&(h=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:v(function(){return l[u]},"get")}),Object.defineProperty(i,h,d)}:function(i,l,u,h){h===void 0&&(h=u),i[h]=l[u]}),a=e&&e.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),p=e&&e.__importStar||function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u in i)u!=="default"&&Object.prototype.hasOwnProperty.call(i,u)&&r(l,i,u);return a(l,i),l};Object.defineProperty(e,"__esModule",{value:!0}),e.ADDRESS_BOUNDARY=void 0,e.groupPossibilities=c,e.padGroup=o,e.simpleRegularExpression=t,e.possibleElisions=s;var n=p(sh());function c(i){return`(${i.join("|")})`}v(c,"groupPossibilities");function o(i){return i.length<4?`0{0,${4-i.length}}${i}`:i}v(o,"padGroup"),e.ADDRESS_BOUNDARY="[^A-Fa-f0-9:]";function t(i){let l=[];i.forEach((h,d)=>{parseInt(h,16)===0&&l.push(d)});let u=l.map(h=>i.map((d,g)=>{if(g===h){let m=g===0||g===n.GROUPS-1?":":"";return c([o(d),m])}return o(d)}).join(":"));return u.push(i.map(o).join(":")),c(u)}v(t,"simpleRegularExpression");function s(i,l,u){let h=l?"":":",d=u?"":":",g=[];!l&&!u&&g.push("::"),l&&u&&g.push(""),(u&&!l||!u&&l)&&g.push(":"),g.push(`${h}(:0{1,4}){1,${i-1}}`),g.push(`(0{1,4}:){1,${i-1}}${d}`),g.push(`(0{1,4}:){${i-1}}0{1,4}`);for(let m=1;m<i-1;m++)for(let f=1;f<i-m;f++)g.push(`(0{1,4}:){${f}}:(0{1,4}:){${i-f-m-1}}0{1,4}`);return c(g)}v(s,"possibleElisions")}),E_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(E,b,_,w){w===void 0&&(w=_);var O=Object.getOwnPropertyDescriptor(b,_);(!O||("get"in O?!b.__esModule:O.writable||O.configurable))&&(O={enumerable:!0,get:v(function(){return b[_]},"get")}),Object.defineProperty(E,w,O)}:function(E,b,_,w){w===void 0&&(w=_),E[w]=b[_]}),a=e&&e.__setModuleDefault||(Object.create?function(E,b){Object.defineProperty(E,"default",{enumerable:!0,value:b})}:function(E,b){E.default=b}),p=e&&e.__importStar||function(E){if(E&&E.__esModule)return E;var b={};if(E!=null)for(var _ in E)_!=="default"&&Object.prototype.hasOwnProperty.call(E,_)&&r(b,E,_);return a(b,E),b};Object.defineProperty(e,"__esModule",{value:!0}),e.Address6=void 0;var n=p(Tn()),c=p(th()),o=p(sh()),t=p(ih()),s=rh(),i=S_(),l=yo(),u=Tn();function h(E){if(!E)throw new Error("Assertion failed.")}v(h,"assert");function d(E){let b=/(\d+)(\d{3})/;for(;b.test(E);)E=E.replace(b,"$1,$2");return E}v(d,"addCommas");function g(E){return E=E.replace(/^(0{1,})([1-9]+)$/,'<span class="parse-error">$1</span>$2'),E=E.replace(/^(0{1,})(0)$/,'<span class="parse-error">$1</span>$2'),E}v(g,"spanLeadingZeroes4");function m(E,b){let _=[],w=[],O;for(O=0;O<E.length;O++)O<b[0]?_.push(E[O]):O>b[1]&&w.push(E[O]);return _.concat(["compact"]).concat(w)}v(m,"compact");function f(E){return parseInt(E,16).toString(16).padStart(4,"0")}v(f,"paddedHex");function y(E){return E&255}v(y,"unsignByte");var S=class $e{static{v(this,"Address6")}constructor(b,_){this.addressMinusSuffix="",this.parsedSubnet="",this.subnet="/128",this.subnetMask=128,this.v4=!1,this.zone="",this.isInSubnet=n.isInSubnet,this.isCorrect=n.isCorrect(o.BITS),_===void 0?this.groups=o.GROUPS:this.groups=_,this.address=b;let w=o.RE_SUBNET_STRING.exec(b);if(w){if(this.parsedSubnet=w[0].replace("/",""),this.subnetMask=parseInt(this.parsedSubnet,10),this.subnet=`/${this.subnetMask}`,Number.isNaN(this.subnetMask)||this.subnetMask<0||this.subnetMask>o.BITS)throw new l.AddressError("Invalid subnet mask.");b=b.replace(o.RE_SUBNET_STRING,"")}else if(/\//.test(b))throw new l.AddressError("Invalid subnet mask.");let O=o.RE_ZONE_STRING.exec(b);O&&(this.zone=O[0],b=b.replace(o.RE_ZONE_STRING,"")),this.addressMinusSuffix=b,this.parsedAddress=this.parse(this.addressMinusSuffix)}static isValid(b){try{return new $e(b),!0}catch{return!1}}static fromBigInt(b){let _=b.toString(16).padStart(32,"0"),w=[],O;for(O=0;O<o.GROUPS;O++)w.push(_.slice(O*4,(O+1)*4));return new $e(w.join(":"))}static fromURL(b){let _,w=null,O;if(b.indexOf("[")!==-1&&b.indexOf("]:")!==-1){if(O=o.RE_URL_WITH_PORT.exec(b),O===null)return{error:"failed to parse address with port",address:null,port:null};_=O[1],w=O[2]}else if(b.indexOf("/")!==-1){if(b=b.replace(/^[a-z0-9]+:\/\//,""),O=o.RE_URL.exec(b),O===null)return{error:"failed to parse address from URL",address:null,port:null};_=O[1]}else _=b;return w?(w=parseInt(w,10),(w<0||w>65536)&&(w=null)):w=null,{address:new $e(_),port:w}}static fromAddress4(b){let _=new s.Address4(b),w=o.BITS-(c.BITS-_.subnetMask);return new $e(`::ffff:${_.correctForm()}/${w}`)}static fromArpa(b){let _=b.replace(/(\.ip6\.arpa)?\.$/,""),w=7;if(_.length!==63)throw new l.AddressError("Invalid 'ip6.arpa' form.");let O=_.split(".").reverse();for(let R=w;R>0;R--){let I=R*4;O.splice(I,0,":")}return _=O.join(""),new $e(_)}microsoftTranscription(){return`${this.correctForm().replace(/:/g,"-")}.ipv6-literal.net`}mask(b=this.subnetMask){return this.getBitsBase2(0,b)}possibleSubnets(b=128){let _=o.BITS-this.subnetMask,w=Math.abs(b-o.BITS),O=_-w;return O<0?"0":d((BigInt("2")**BigInt(O)).toString(10))}_startAddress(){return BigInt(`0b${this.mask()+"0".repeat(o.BITS-this.subnetMask)}`)}startAddress(){return $e.fromBigInt(this._startAddress())}startAddressExclusive(){let b=BigInt("1");return $e.fromBigInt(this._startAddress()+b)}_endAddress(){return BigInt(`0b${this.mask()+"1".repeat(o.BITS-this.subnetMask)}`)}endAddress(){return $e.fromBigInt(this._endAddress())}endAddressExclusive(){let b=BigInt("1");return $e.fromBigInt(this._endAddress()-b)}getScope(){let b=o.SCOPES[parseInt(this.getBits(12,16).toString(10),10)];return this.getType()==="Global unicast"&&b!=="Link local"&&(b="Global"),b||"Unknown"}getType(){for(let b of Object.keys(o.TYPES))if(this.isInSubnet(new $e(b)))return o.TYPES[b];return"Global unicast"}getBits(b,_){return BigInt(`0b${this.getBitsBase2(b,_)}`)}getBitsBase2(b,_){return this.binaryZeroPad().slice(b,_)}getBitsBase16(b,_){let w=_-b;if(w%4!==0)throw new Error("Length of bits to retrieve must be divisible by four");return this.getBits(b,_).toString(16).padStart(w/4,"0")}getBitsPastSubnet(){return this.getBitsBase2(this.subnetMask,o.BITS)}reverseForm(b){b||(b={});let _=Math.floor(this.subnetMask/4),w=this.canonicalForm().replace(/:/g,"").split("").slice(0,_).reverse().join(".");return _>0?b.omitSuffix?w:`${w}.ip6.arpa.`:b.omitSuffix?"":"ip6.arpa."}correctForm(){let b,_=[],w=0,O=[];for(b=0;b<this.parsedAddress.length;b++){let P=parseInt(this.parsedAddress[b],16);P===0&&w++,P!==0&&w>0&&(w>1&&O.push([b-w,b-1]),w=0)}w>1&&O.push([this.parsedAddress.length-w,this.parsedAddress.length-1]);let R=O.map(P=>P[1]-P[0]+1);if(O.length>0){let P=R.indexOf(Math.max(...R));_=m(this.parsedAddress,O[P])}else _=this.parsedAddress;for(b=0;b<_.length;b++)_[b]!=="compact"&&(_[b]=parseInt(_[b],16).toString(16));let I=_.join(":");return I=I.replace(/^compact$/,"::"),I=I.replace(/(^compact)|(compact$)/,":"),I=I.replace(/compact/,""),I}binaryZeroPad(){return this.bigInt().toString(2).padStart(o.BITS,"0")}parse4in6(b){let _=b.split(":"),w=_.slice(-1)[0].match(c.RE_ADDRESS);if(w){this.parsedAddress4=w[0],this.address4=new s.Address4(this.parsedAddress4);for(let O=0;O<this.address4.groups;O++)if(/^0[0-9]+/.test(this.address4.parsedAddress[O]))throw new l.AddressError("IPv4 addresses can't have leading zeroes.",b.replace(c.RE_ADDRESS,this.address4.parsedAddress.map(g).join(".")));this.v4=!0,_[_.length-1]=this.address4.toGroup6(),b=_.join(":")}return b}parse(b){b=this.parse4in6(b);let _=b.match(o.RE_BAD_CHARACTERS);if(_)throw new l.AddressError(`Bad character${_.length>1?"s":""} detected in address: ${_.join("")}`,b.replace(o.RE_BAD_CHARACTERS,'<span class="parse-error">$1</span>'));let w=b.match(o.RE_BAD_ADDRESS);if(w)throw new l.AddressError(`Address failed regex: ${w.join("")}`,b.replace(o.RE_BAD_ADDRESS,'<span class="parse-error">$1</span>'));let O=[],R=b.split("::");if(R.length===2){let I=R[0].split(":"),P=R[1].split(":");I.length===1&&I[0]===""&&(I=[]),P.length===1&&P[0]===""&&(P=[]);let L=this.groups-(I.length+P.length);if(!L)throw new l.AddressError("Error parsing groups");this.elidedGroups=L,this.elisionBegin=I.length,this.elisionEnd=I.length+this.elidedGroups,O=O.concat(I);for(let M=0;M<L;M++)O.push("0");O=O.concat(P)}else if(R.length===1)O=b.split(":"),this.elidedGroups=0;else throw new l.AddressError("Too many :: groups found");if(O=O.map(I=>parseInt(I,16).toString(16)),O.length!==this.groups)throw new l.AddressError("Incorrect number of groups found");return O}canonicalForm(){return this.parsedAddress.map(f).join(":")}decimal(){return this.parsedAddress.map(b=>parseInt(b,16).toString(10).padStart(5,"0")).join(":")}bigInt(){return BigInt(`0x${this.parsedAddress.map(f).join("")}`)}to4(){let b=this.binaryZeroPad().split("");return s.Address4.fromHex(BigInt(`0b${b.slice(96,128).join("")}`).toString(16))}to4in6(){let b=this.to4(),_=new $e(this.parsedAddress.slice(0,6).join(":"),6).correctForm(),w="";return/:$/.test(_)||(w=":"),_+w+b.address}inspectTeredo(){let b=this.getBitsBase16(0,32),_=(this.getBits(80,96)^BigInt("0xffff")).toString(),w=s.Address4.fromHex(this.getBitsBase16(32,64)),O=this.getBits(96,128),R=s.Address4.fromHex((O^BigInt("0xffffffff")).toString(16)),I=this.getBitsBase2(64,80),P=(0,u.testBit)(I,15),L=(0,u.testBit)(I,14),M=(0,u.testBit)(I,8),x=(0,u.testBit)(I,9),j=BigInt(`0b${I.slice(2,6)+I.slice(8,16)}`).toString(10);return{prefix:`${b.slice(0,4)}:${b.slice(4,8)}`,server4:w.address,client4:R.address,flags:I,coneNat:P,microsoft:{reserved:L,universalLocal:x,groupIndividual:M,nonce:j},udpPort:_}}inspect6to4(){let b=this.getBitsBase16(0,16),_=s.Address4.fromHex(this.getBitsBase16(16,48));return{prefix:b.slice(0,4),gateway:_.address}}to6to4(){if(!this.is4())return null;let b=["2002",this.getBitsBase16(96,112),this.getBitsBase16(112,128),"","/16"].join(":");return new $e(b)}toByteArray(){let b=this.bigInt().toString(16),_=`${"0".repeat(b.length%2)}${b}`,w=[];for(let O=0,R=_.length;O<R;O+=2)w.push(parseInt(_.substring(O,O+2),16));return w}toUnsignedByteArray(){return this.toByteArray().map(y)}static fromByteArray(b){return this.fromUnsignedByteArray(b.map(y))}static fromUnsignedByteArray(b){let _=BigInt("256"),w=BigInt("0"),O=BigInt("1");for(let R=b.length-1;R>=0;R--)w+=O*BigInt(b[R].toString(10)),O*=_;return $e.fromBigInt(w)}isCanonical(){return this.addressMinusSuffix===this.canonicalForm()}isLinkLocal(){return this.getBitsBase2(0,64)==="1111111010000000000000000000000000000000000000000000000000000000"}isMulticast(){return this.getType()==="Multicast"}is4(){return this.v4}isTeredo(){return this.isInSubnet(new $e("2001::/32"))}is6to4(){return this.isInSubnet(new $e("2002::/16"))}isLoopback(){return this.getType()==="Loopback"}href(b){return b===void 0?b="":b=`:${b}`,`http://[${this.correctForm()}]${b}/`}link(b){b||(b={}),b.className===void 0&&(b.className=""),b.prefix===void 0&&(b.prefix="/#address="),b.v4===void 0&&(b.v4=!1);let _=this.correctForm;b.v4&&(_=this.to4in6);let w=_.call(this);return b.className?`<a href="${b.prefix}${w}" class="${b.className}">${w}</a>`:`<a href="${b.prefix}${w}">${w}</a>`}group(){if(this.elidedGroups===0)return t.simpleGroup(this.address).join(":");h(typeof this.elidedGroups=="number"),h(typeof this.elisionBegin=="number");let b=[],[_,w]=this.address.split("::");_.length?b.push(...t.simpleGroup(_)):b.push("");let O=["hover-group"];for(let R=this.elisionBegin;R<this.elisionBegin+this.elidedGroups;R++)O.push(`group-${R}`);return b.push(`<span class="${O.join(" ")}"></span>`),w.length?b.push(...t.simpleGroup(w,this.elisionEnd)):b.push(""),this.is4()&&(h(this.address4 instanceof s.Address4),b.pop(),b.push(this.address4.groupForV6())),b.join(":")}regularExpressionString(b=!1){let _=[],w=new $e(this.correctForm());if(w.elidedGroups===0)_.push((0,i.simpleRegularExpression)(w.parsedAddress));else if(w.elidedGroups===o.GROUPS)_.push((0,i.possibleElisions)(o.GROUPS));else{let O=w.address.split("::");O[0].length&&_.push((0,i.simpleRegularExpression)(O[0].split(":"))),h(typeof w.elidedGroups=="number"),_.push((0,i.possibleElisions)(w.elidedGroups,O[0].length!==0,O[1].length!==0)),O[1].length&&_.push((0,i.simpleRegularExpression)(O[1].split(":"))),_=[_.join(":")]}return b||(_=["(?=^|",i.ADDRESS_BOUNDARY,"|[^\\w\\:])(",..._,")(?=[^\\w\\:]|",i.ADDRESS_BOUNDARY,"|$)"]),_.join("")}regularExpression(b=!1){return new RegExp(this.regularExpressionString(b),"i")}};e.Address6=S}),nh=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(s,i,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(i,l);(!h||("get"in h?!i.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:v(function(){return i[l]},"get")}),Object.defineProperty(s,u,h)}:function(s,i,l,u){u===void 0&&(u=l),s[u]=i[l]}),a=e&&e.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),p=e&&e.__importStar||function(s){if(s&&s.__esModule)return s;var i={};if(s!=null)for(var l in s)l!=="default"&&Object.prototype.hasOwnProperty.call(s,l)&&r(i,s,l);return a(i,s),i};Object.defineProperty(e,"__esModule",{value:!0}),e.v6=e.AddressError=e.Address6=e.Address4=void 0;var n=rh();Object.defineProperty(e,"Address4",{enumerable:!0,get:v(function(){return n.Address4},"get")});var c=E_();Object.defineProperty(e,"Address6",{enumerable:!0,get:v(function(){return c.Address6},"get")});var o=yo();Object.defineProperty(e,"AddressError",{enumerable:!0,get:v(function(){return o.AddressError},"get")});var t=p(ih());e.v6={helpers:t}}),b_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ipToBuffer=e.int32ToIpv4=e.ipv4ToInt32=e.validateSocksClientChainOptions=e.validateSocksClientOptions=void 0;var r=eh(),a=Qu(),p=require("stream"),n=nh(),c=require("net");function o(m,f=["connect","bind","associate"]){if(!a.SocksCommand[m.command])throw new r.SocksClientError(a.ERRORS.InvalidSocksCommand,m);if(f.indexOf(m.command)===-1)throw new r.SocksClientError(a.ERRORS.InvalidSocksCommandForOperation,m);if(!i(m.destination))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsDestination,m);if(!l(m.proxy))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsProxy,m);if(s(m.proxy,m),m.timeout&&!u(m.timeout))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsTimeout,m);if(m.existing_socket&&!(m.existing_socket instanceof p.Duplex))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsExistingSocket,m)}v(o,"validateSocksClientOptions"),e.validateSocksClientOptions=o;function t(m){if(m.command!=="connect")throw new r.SocksClientError(a.ERRORS.InvalidSocksCommandChain,m);if(!i(m.destination))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsDestination,m);if(!(m.proxies&&Array.isArray(m.proxies)&&m.proxies.length>=2))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsProxiesLength,m);if(m.proxies.forEach(f=>{if(!l(f))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsProxy,m);s(f,m)}),m.timeout&&!u(m.timeout))throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsTimeout,m)}v(t,"validateSocksClientChainOptions"),e.validateSocksClientChainOptions=t;function s(m,f){if(m.custom_auth_method!==void 0){if(m.custom_auth_method<a.SOCKS5_CUSTOM_AUTH_START||m.custom_auth_method>a.SOCKS5_CUSTOM_AUTH_END)throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsCustomAuthRange,f);if(m.custom_auth_request_handler===void 0||typeof m.custom_auth_request_handler!="function")throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,f);if(m.custom_auth_response_size===void 0)throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,f);if(m.custom_auth_response_handler===void 0||typeof m.custom_auth_response_handler!="function")throw new r.SocksClientError(a.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,f)}}v(s,"validateCustomProxyAuth");function i(m){return m&&typeof m.host=="string"&&Buffer.byteLength(m.host)<256&&typeof m.port=="number"&&m.port>=0&&m.port<=65535}v(i,"isValidSocksRemoteHost");function l(m){return m&&(typeof m.host=="string"||typeof m.ipaddress=="string")&&typeof m.port=="number"&&m.port>=0&&m.port<=65535&&(m.type===4||m.type===5)}v(l,"isValidSocksProxy");function u(m){return typeof m=="number"&&m>0}v(u,"isValidTimeoutValue");function h(m){return new n.Address4(m).toArray().reduce((f,y)=>(f<<8)+y,0)>>>0}v(h,"ipv4ToInt32"),e.ipv4ToInt32=h;function d(m){let f=m>>>24&255,y=m>>>16&255,S=m>>>8&255,E=m&255;return[f,y,S,E].join(".")}v(d,"int32ToIpv4"),e.int32ToIpv4=d;function g(m){if(c.isIPv4(m)){let f=new n.Address4(m);return Buffer.from(f.toArray())}else if(c.isIPv6(m)){let f=new n.Address6(m);return Buffer.from(f.canonicalForm().split(":").map(y=>y.padStart(4,"0")).join(""),"hex")}else throw new Error("Invalid IP address format")}v(g,"ipToBuffer"),e.ipToBuffer=g}),__=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReceiveBuffer=void 0;var r=class{static{v(this,"ReceiveBuffer")}constructor(a=4096){this.buffer=Buffer.allocUnsafe(a),this.offset=0,this.originalSize=a}get length(){return this.offset}append(a){if(!Buffer.isBuffer(a))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+a.length>=this.buffer.length){let p=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+a.length)),p.copy(this.buffer)}return a.copy(this.buffer,this.offset),this.offset+=a.length}peek(a){if(a>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,a)}get(a){if(a>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");let p=Buffer.allocUnsafe(a);return this.buffer.slice(0,a).copy(p),this.buffer.copyWithin(0,a,a+this.offset-a),this.offset-=a,p}};e.ReceiveBuffer=r}),w_=K(e=>{"use strict";var r=e&&e.__awaiter||function(u,h,d,g){function m(f){return f instanceof d?f:new d(function(y){y(f)})}return v(m,"adopt"),new(d||(d=Promise))(function(f,y){function S(_){try{b(g.next(_))}catch(w){y(w)}}v(S,"fulfilled");function E(_){try{b(g.throw(_))}catch(w){y(w)}}v(E,"rejected");function b(_){_.done?f(_.value):m(_.value).then(S,E)}v(b,"step"),b((g=g.apply(u,h||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksClientError=e.SocksClient=void 0;var a=require("events"),p=require("net"),n=v_(),c=Qu(),o=b_(),t=__(),s=eh();Object.defineProperty(e,"SocksClientError",{enumerable:!0,get:v(function(){return s.SocksClientError},"get")});var i=nh(),l=class Pn extends a.EventEmitter{static{v(this,"SocksClient")}constructor(h){super(),this.options=Object.assign({},h),(0,o.validateSocksClientOptions)(h),this.setState(c.SocksClientState.Created)}static createConnection(h,d){return new Promise((g,m)=>{try{(0,o.validateSocksClientOptions)(h,["connect"])}catch(y){return typeof d=="function"?(d(y),g(y)):m(y)}let f=new Pn(h);f.connect(h.existing_socket),f.once("established",y=>{f.removeAllListeners(),typeof d=="function"&&d(null,y),g(y)}),f.once("error",y=>{f.removeAllListeners(),typeof d=="function"?(d(y),g(y)):m(y)})})}static createConnectionChain(h,d){return new Promise((g,m)=>r(this,void 0,void 0,function*(){try{(0,o.validateSocksClientChainOptions)(h)}catch(f){return typeof d=="function"?(d(f),g(f)):m(f)}h.randomizeChain&&(0,s.shuffleArray)(h.proxies);try{let f;for(let y=0;y<h.proxies.length;y++){let S=h.proxies[y],E=y===h.proxies.length-1?h.destination:{host:h.proxies[y+1].host||h.proxies[y+1].ipaddress,port:h.proxies[y+1].port},b=yield Pn.createConnection({command:"connect",proxy:S,destination:E,existing_socket:f});f=f||b.socket}typeof d=="function"?(d(null,{socket:f}),g({socket:f})):g({socket:f})}catch(f){typeof d=="function"?(d(f),g(f)):m(f)}}))}static createUDPFrame(h){let d=new n.SmartBuffer;return d.writeUInt16BE(0),d.writeUInt8(h.frameNumber||0),p.isIPv4(h.remoteHost.host)?(d.writeUInt8(c.Socks5HostType.IPv4),d.writeUInt32BE((0,o.ipv4ToInt32)(h.remoteHost.host))):p.isIPv6(h.remoteHost.host)?(d.writeUInt8(c.Socks5HostType.IPv6),d.writeBuffer((0,o.ipToBuffer)(h.remoteHost.host))):(d.writeUInt8(c.Socks5HostType.Hostname),d.writeUInt8(Buffer.byteLength(h.remoteHost.host)),d.writeString(h.remoteHost.host)),d.writeUInt16BE(h.remoteHost.port),d.writeBuffer(h.data),d.toBuffer()}static parseUDPFrame(h){let d=n.SmartBuffer.fromBuffer(h);d.readOffset=2;let g=d.readUInt8(),m=d.readUInt8(),f;m===c.Socks5HostType.IPv4?f=(0,o.int32ToIpv4)(d.readUInt32BE()):m===c.Socks5HostType.IPv6?f=i.Address6.fromByteArray(Array.from(d.readBuffer(16))).canonicalForm():f=d.readString(d.readUInt8());let y=d.readUInt16BE();return{frameNumber:g,remoteHost:{host:f,port:y},data:d.readBuffer()}}setState(h){this.state!==c.SocksClientState.Error&&(this.state=h)}connect(h){this.onDataReceived=g=>this.onDataReceivedHandler(g),this.onClose=()=>this.onCloseHandler(),this.onError=g=>this.onErrorHandler(g),this.onConnect=()=>this.onConnectHandler();let d=setTimeout(()=>this.onEstablishedTimeout(),this.options.timeout||c.DEFAULT_TIMEOUT);d.unref&&typeof d.unref=="function"&&d.unref(),h?this.socket=h:this.socket=new p.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(c.SocksClientState.Connecting),this.receiveBuffer=new t.ReceiveBuffer,h?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),this.options.set_tcp_nodelay!==void 0&&this.options.set_tcp_nodelay!==null&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",g=>{setImmediate(()=>{if(this.receiveBuffer.length>0){let m=this.receiveBuffer.get(this.receiveBuffer.length);g.socket.emit("data",m)}g.socket.resume()})})}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==c.SocksClientState.Established&&this.state!==c.SocksClientState.BoundWaitingForConnection&&this.closeSocket(c.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(c.SocksClientState.Connected),this.options.proxy.type===4?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(c.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(h){this.receiveBuffer.append(h),this.processData()}processData(){for(;this.state!==c.SocksClientState.Established&&this.state!==c.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===c.SocksClientState.SentInitialHandshake)this.options.proxy.type===4?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===c.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===c.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else if(this.state===c.SocksClientState.BoundWaitingForConnection)this.options.proxy.type===4?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse();else{this.closeSocket(c.ERRORS.InternalError);break}}onCloseHandler(){this.closeSocket(c.ERRORS.SocketClosed)}onErrorHandler(h){this.closeSocket(h.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(h){this.state!==c.SocksClientState.Error&&(this.setState(c.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new s.SocksClientError(h,this.options)))}sendSocks4InitialHandshake(){let h=this.options.proxy.userId||"",d=new n.SmartBuffer;d.writeUInt8(4),d.writeUInt8(c.SocksCommand[this.options.command]),d.writeUInt16BE(this.options.destination.port),p.isIPv4(this.options.destination.host)?(d.writeBuffer((0,o.ipToBuffer)(this.options.destination.host)),d.writeStringNT(h)):(d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(0),d.writeUInt8(1),d.writeStringNT(h),d.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=c.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(d.toBuffer())}handleSocks4FinalHandshakeResponse(){let h=this.receiveBuffer.get(8);if(h[1]!==c.Socks4Response.Granted)this.closeSocket(`${c.ERRORS.Socks4ProxyRejectedConnection} - (${c.Socks4Response[h[1]]})`);else if(c.SocksCommand[this.options.command]===c.SocksCommand.bind){let d=n.SmartBuffer.fromBuffer(h);d.readOffset=2;let g={port:d.readUInt16BE(),host:(0,o.int32ToIpv4)(d.readUInt32BE())};g.host==="0.0.0.0"&&(g.host=this.options.proxy.ipaddress),this.setState(c.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:g,socket:this.socket})}else this.setState(c.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){let h=this.receiveBuffer.get(8);if(h[1]!==c.Socks4Response.Granted)this.closeSocket(`${c.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${c.Socks4Response[h[1]]})`);else{let d=n.SmartBuffer.fromBuffer(h);d.readOffset=2;let g={port:d.readUInt16BE(),host:(0,o.int32ToIpv4)(d.readUInt32BE())};this.setState(c.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:g,socket:this.socket})}}sendSocks5InitialHandshake(){let h=new n.SmartBuffer,d=[c.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&d.push(c.Socks5Auth.UserPass),this.options.proxy.custom_auth_method!==void 0&&d.push(this.options.proxy.custom_auth_method),h.writeUInt8(5),h.writeUInt8(d.length);for(let g of d)h.writeUInt8(g);this.nextRequiredPacketBufferSize=c.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(h.toBuffer()),this.setState(c.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){let h=this.receiveBuffer.get(2);h[0]!==5?this.closeSocket(c.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):h[1]===c.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(c.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):h[1]===c.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=c.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):h[1]===c.Socks5Auth.UserPass?(this.socks5ChosenAuthType=c.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):h[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(c.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){let h=this.options.proxy.userId||"",d=this.options.proxy.password||"",g=new n.SmartBuffer;g.writeUInt8(1),g.writeUInt8(Buffer.byteLength(h)),g.writeString(h),g.writeUInt8(Buffer.byteLength(d)),g.writeString(d),this.nextRequiredPacketBufferSize=c.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(g.toBuffer()),this.setState(c.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return r(this,void 0,void 0,function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(c.SocksClientState.SentAuthentication)})}handleSocks5CustomAuthHandshakeResponse(h){return r(this,void 0,void 0,function*(){return yield this.options.proxy.custom_auth_response_handler(h)})}handleSocks5AuthenticationNoAuthHandshakeResponse(h){return r(this,void 0,void 0,function*(){return h[1]===0})}handleSocks5AuthenticationUserPassHandshakeResponse(h){return r(this,void 0,void 0,function*(){return h[1]===0})}handleInitialSocks5AuthenticationHandshakeResponse(){return r(this,void 0,void 0,function*(){this.setState(c.SocksClientState.ReceivedAuthenticationResponse);let h=!1;this.socks5ChosenAuthType===c.Socks5Auth.NoAuth?h=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===c.Socks5Auth.UserPass?h=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(h=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),h?this.sendSocks5CommandRequest():this.closeSocket(c.ERRORS.Socks5AuthenticationFailed)})}sendSocks5CommandRequest(){let h=new n.SmartBuffer;h.writeUInt8(5),h.writeUInt8(c.SocksCommand[this.options.command]),h.writeUInt8(0),p.isIPv4(this.options.destination.host)?(h.writeUInt8(c.Socks5HostType.IPv4),h.writeBuffer((0,o.ipToBuffer)(this.options.destination.host))):p.isIPv6(this.options.destination.host)?(h.writeUInt8(c.Socks5HostType.IPv6),h.writeBuffer((0,o.ipToBuffer)(this.options.destination.host))):(h.writeUInt8(c.Socks5HostType.Hostname),h.writeUInt8(this.options.destination.host.length),h.writeString(this.options.destination.host)),h.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(h.toBuffer()),this.setState(c.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){let h=this.receiveBuffer.peek(5);if(h[0]!==5||h[1]!==c.Socks5Response.Granted)this.closeSocket(`${c.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${c.Socks5Response[h[1]]}`);else{let d=h[3],g,m;if(d===c.Socks5HostType.IPv4){let f=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<f){this.nextRequiredPacketBufferSize=f;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(f).slice(4)),g={host:(0,o.int32ToIpv4)(m.readUInt32BE()),port:m.readUInt16BE()},g.host==="0.0.0.0"&&(g.host=this.options.proxy.ipaddress)}else if(d===c.Socks5HostType.Hostname){let f=h[4],y=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(f);if(this.receiveBuffer.length<y){this.nextRequiredPacketBufferSize=y;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(y).slice(5)),g={host:m.readString(f),port:m.readUInt16BE()}}else if(d===c.Socks5HostType.IPv6){let f=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<f){this.nextRequiredPacketBufferSize=f;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(f).slice(4)),g={host:i.Address6.fromByteArray(Array.from(m.readBuffer(16))).canonicalForm(),port:m.readUInt16BE()}}this.setState(c.SocksClientState.ReceivedFinalResponse),c.SocksCommand[this.options.command]===c.SocksCommand.connect?(this.setState(c.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:g,socket:this.socket})):c.SocksCommand[this.options.command]===c.SocksCommand.bind?(this.setState(c.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:g,socket:this.socket})):c.SocksCommand[this.options.command]===c.SocksCommand.associate&&(this.setState(c.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:g,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){let h=this.receiveBuffer.peek(5);if(h[0]!==5||h[1]!==c.Socks5Response.Granted)this.closeSocket(`${c.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${c.Socks5Response[h[1]]}`);else{let d=h[3],g,m;if(d===c.Socks5HostType.IPv4){let f=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<f){this.nextRequiredPacketBufferSize=f;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(f).slice(4)),g={host:(0,o.int32ToIpv4)(m.readUInt32BE()),port:m.readUInt16BE()},g.host==="0.0.0.0"&&(g.host=this.options.proxy.ipaddress)}else if(d===c.Socks5HostType.Hostname){let f=h[4],y=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(f);if(this.receiveBuffer.length<y){this.nextRequiredPacketBufferSize=y;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(y).slice(5)),g={host:m.readString(f),port:m.readUInt16BE()}}else if(d===c.Socks5HostType.IPv6){let f=c.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<f){this.nextRequiredPacketBufferSize=f;return}m=n.SmartBuffer.fromBuffer(this.receiveBuffer.get(f).slice(4)),g={host:i.Address6.fromByteArray(Array.from(m.readBuffer(16))).canonicalForm(),port:m.readUInt16BE()}}this.setState(c.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:g,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}};e.SocksClient=l}),O_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(p,n,c,o){o===void 0&&(o=c);var t=Object.getOwnPropertyDescriptor(n,c);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:v(function(){return n[c]},"get")}),Object.defineProperty(p,o,t)}:function(p,n,c,o){o===void 0&&(o=c),p[o]=n[c]}),a=e&&e.__exportStar||function(p,n){for(var c in p)c!=="default"&&!Object.prototype.hasOwnProperty.call(n,c)&&r(n,p,c)};Object.defineProperty(e,"__esModule",{value:!0}),a(w_(),e)}),A_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(y,S,E,b){b===void 0&&(b=E);var _=Object.getOwnPropertyDescriptor(S,E);(!_||("get"in _?!S.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:v(function(){return S[E]},"get")}),Object.defineProperty(y,b,_)}:function(y,S,E,b){b===void 0&&(b=E),y[b]=S[E]}),a=e&&e.__setModuleDefault||(Object.create?function(y,S){Object.defineProperty(y,"default",{enumerable:!0,value:S})}:function(y,S){y.default=S}),p=e&&e.__importStar||function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var E in y)E!=="default"&&Object.prototype.hasOwnProperty.call(y,E)&&r(S,y,E);return a(S,y),S},n=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.SocksProxyAgent=void 0;var c=O_(),o=Ps(),t=n(Xt()),s=p(require("dns")),i=p(require("net")),l=p(require("tls")),u=require("url"),h=(0,t.default)("socks-proxy-agent"),d=v(y=>y.servername===void 0&&y.host&&!i.isIP(y.host)?{...y,servername:y.host}:y,"setServernameFromNonIpHost");function g(y){let S=!1,E=5,b=y.hostname,_=parseInt(y.port,10)||1080;switch(y.protocol.replace(":","")){case"socks4":S=!0,E=4;break;case"socks4a":E=4;break;case"socks5":S=!0,E=5;break;case"socks":E=5;break;case"socks5h":E=5;break;default:throw new TypeError(`A "socks" protocol must be specified! Got: ${String(y.protocol)}`)}let w={host:b,port:_,type:E};return y.username&&Object.defineProperty(w,"userId",{value:decodeURIComponent(y.username),enumerable:!1}),y.password!=null&&Object.defineProperty(w,"password",{value:decodeURIComponent(y.password),enumerable:!1}),{lookup:S,proxy:w}}v(g,"parseSocksURL");var m=class extends o.Agent{static{v(this,"SocksProxyAgent")}constructor(y,S){super(S);let E=typeof y=="string"?new u.URL(y):y,{proxy:b,lookup:_}=g(E);this.shouldLookup=_,this.proxy=b,this.timeout=S?.timeout??null,this.socketOptions=S?.socketOptions??null}async connect(y,S){let{shouldLookup:E,proxy:b,timeout:_}=this;if(!S.host)throw new Error("No `host` defined!");let{host:w}=S,{port:O,lookup:R=s.lookup}=S;E&&(w=await new Promise((M,x)=>{R(w,{},(j,U)=>{j?x(j):M(U)})}));let I={proxy:b,destination:{host:w,port:typeof O=="number"?O:parseInt(O,10)},command:"connect",timeout:_??void 0,socket_options:this.socketOptions??void 0},P=v(M=>{y.destroy(),L.destroy(),M&&M.destroy()},"cleanup");h("Creating socks proxy connection: %o",I);let{socket:L}=await c.SocksClient.createConnection(I);if(h("Successfully created socks proxy connection"),_!==null&&(L.setTimeout(_),L.on("timeout",()=>P())),S.secureEndpoint){h("Upgrading socket connection to TLS");let M=l.connect({...f(d(S),"host","path","port"),socket:L});return M.once("error",x=>{h("Socket TLS error",x.message),P(M)}),M}return L}};m.protocols=["socks","socks4","socks4a","socks5","socks5h"],e.SocksProxyAgent=m;function f(y,...S){let E={},b;for(b in y)S.includes(b)||(E[b]=y[b]);return E}v(f,"omit")}),oh=K((e,r)=>{"use strict";var a=class extends Error{static{v(this,"InvalidProxyProtocolError")}constructor(t){super(`Invalid protocol \`${t.protocol}\` connecting to proxy \`${t.host}\``),this.code="EINVALIDPROXY",this.proxy=t}},p=class extends Error{static{v(this,"ConnectionTimeoutError")}constructor(t){super(`Timeout connecting to host \`${t}\``),this.code="ECONNECTIONTIMEOUT",this.host=t}},n=class extends Error{static{v(this,"IdleTimeoutError")}constructor(t){super(`Idle timeout reached for host \`${t}\``),this.code="EIDLETIMEOUT",this.host=t}},c=class extends Error{static{v(this,"ResponseTimeoutError")}constructor(t,s){let i="Response timeout ";s&&(i+=`from proxy \`${s.host}\` `),i+=`connecting to host \`${t.host}\``,super(i),this.code="ERESPONSETIMEOUT",this.proxy=s,this.request=t}},o=class extends Error{static{v(this,"TransferTimeoutError")}constructor(t,s){let i="Transfer timeout ";s&&(i+=`from proxy \`${s.host}\` `),i+=`for \`${t.host}\``,super(i),this.code="ETRANSFERTIMEOUT",this.proxy=s,this.request=t}};r.exports={InvalidProxyProtocolError:a,ConnectionTimeoutError:p,IdleTimeoutError:n,ResponseTimeoutError:c,TransferTimeoutError:o}}),ah=K((e,r)=>{"use strict";var{HttpProxyAgent:a}=f_(),{HttpsProxyAgent:p}=m_(),{SocksProxyAgent:n}=A_(),{LRUCache:c}=Kt(),{InvalidProxyProtocolError:o}=oh(),t=new c({max:20}),s=new Set(n.protocols),i=new Set(["https_proxy","http_proxy","proxy","no_proxy"]),l=Object.entries(process.env).reduce((g,[m,f])=>(m=m.toLowerCase(),i.has(m)&&(g[m]=f),g),{}),u=v(g=>{g=new URL(g);let m=g.protocol.slice(0,-1);if(s.has(m))return n;if(m==="https"||m==="http")return[a,p];throw new o(g)},"getProxyAgent"),h=v((g,m)=>{if(typeof m=="string"&&(m=m.split(",").map(y=>y.trim()).filter(Boolean)),!m||!m.length)return!1;let f=g.hostname.split(".").reverse();return m.some(y=>{let S=y.split(".").filter(Boolean).reverse();if(!S.length)return!1;for(let E=0;E<S.length;E++)if(f[E]!==S[E])return!1;return!0})},"isNoProxy"),d=v((g,{proxy:m,noProxy:f})=>(g=new URL(g),m||(m=g.protocol==="https:"?l.https_proxy:l.https_proxy||l.http_proxy||l.proxy),f||(f=l.no_proxy),!m||h(g,f)?null:new URL(m)),"getProxy");r.exports={getProxyAgent:u,getProxy:d,proxyCache:t}}),R_=K((e,r)=>{"use strict";var a=require("net"),p=require("tls"),{once:n}=require("events"),c=require("timers/promises"),{normalizeOptions:o,cacheOptions:t}=Zu(),{getProxy:s,getProxyAgent:i,proxyCache:l}=ah(),u=oh(),{Agent:h}=Ps();r.exports=class extends h{static{v(this,"Agent")}#e;#t;#r;#s;#i;constructor(d={}){let{timeouts:g,proxy:m,noProxy:f,...y}=o(d);super(y),this.#e=y,this.#t=g,m&&(this.#r=new URL(m),this.#s=f,this.#i=i(m))}get proxy(){return this.#r?{url:this.#r}:{}}#c(d){if(!this.#r)return;let g=s(`${d.protocol}//${d.host}:${d.port}`,{proxy:this.#r,noProxy:this.#s});if(!g)return;let m=t({...d,...this.#e,timeouts:this.#t,proxy:g});if(l.has(m))return l.get(m);let f=this.#i;Array.isArray(f)&&(f=this.isSecureEndpoint(d)?f[1]:f[0]);let y=new f(g,{...this.#e,socketOptions:{family:this.#e.family}});return l.set(m,y),y}async#l({promises:d,options:g,timeout:m},f=new AbortController){if(m){let S=c.setTimeout(m,null,{signal:f.signal}).then(()=>{throw new u.ConnectionTimeoutError(`${g.host}:${g.port}`)}).catch(E=>{if(E.name!=="AbortError")throw E});d.push(S)}let y;try{y=await Promise.race(d),f.abort()}catch(S){throw f.abort(),S}return y}async connect(d,g){g.lookup??=this.#e.lookup;let m,f=this.#t.connection,y=this.isSecureEndpoint(g),S=this.#c(g);if(S){let w=Date.now();m=await this.#l({options:g,timeout:f,promises:[S.connect(d,g)]}),f&&(f=f-(Date.now()-w))}else m=(y?p:a).connect(g);m.setKeepAlive(this.keepAlive,this.keepAliveMsecs),m.setNoDelay(this.keepAlive);let E=new AbortController,{signal:b}=E,_=m[y?"secureConnecting":"connecting"]?n(m,y?"secureConnect":"connect",{signal:b}):Promise.resolve();return await this.#l({options:g,timeout:f,promises:[_,n(m,"error",{signal:b}).then(w=>{throw w[0]})]},E),this.#t.idle&&m.setTimeout(this.#t.idle,()=>{m.destroy(new u.IdleTimeoutError(`${g.host}:${g.port}`))}),m}addRequest(d,g){let m=this.#c(g);if(m?.setRequestProps&&m.setRequestProps(d,g),d.setHeader("connection",this.keepAlive?"keep-alive":"close"),this.#t.response){let f;d.once("finish",()=>{setTimeout(()=>{d.destroy(new u.ResponseTimeoutError(d,this.#r))},this.#t.response)}),d.once("response",()=>{clearTimeout(f)})}if(this.#t.transfer){let f;d.once("response",y=>{setTimeout(()=>{y.destroy(new u.TransferTimeoutError(d,this.#r))},this.#t.transfer),y.once("close",()=>{clearTimeout(f)})})}return super.addRequest(d,g)}}}),C_=K((e,r)=>{"use strict";var{LRUCache:a}=Kt(),{normalizeOptions:p,cacheOptions:n}=Zu(),{getProxy:c,proxyCache:o}=ah(),t=Ju(),s=R_(),i=new a({max:20}),l=v((u,{agent:h,proxy:d,noProxy:g,...m}={})=>{if(h!=null)return h;u=new URL(u);let f=c(u,{proxy:d,noProxy:g}),y={...p(m),proxy:f},S=n({...y,secureEndpoint:u.protocol==="https:"});if(i.has(S))return i.get(S);let E=new s(y);return i.set(S,E),E},"getAgent");r.exports={getAgent:l,Agent:s,HttpAgent:s,HttpsAgent:s,cache:{proxy:o,agent:i,dns:t.cache,clear:v(()=>{o.clear(),i.clear(),t.cache.clear()},"clear")}}}),I_=K((e,r)=>{r.exports={name:"make-fetch-happen",version:"15.0.2",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^4.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^5.0.0","promise-retry":"^2.0.1",ssri:"^12.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.25.0",publish:"true"}}}),vo=K((e,r)=>{var{Minipass:a}=Pe(),p=Lr(),n=ws(),c=vt(),{log:o}=ct(),t=Ku(),{getAgent:s}=C_(),i=I_(),l=`${i.name}/${i.version} (+https://npm.im/${i.name})`,u=["ECONNRESET","ECONNREFUSED","EADDRINUSE","ETIMEDOUT","ECONNECTIONTIMEOUT","EIDLETIMEOUT","ERESPONSETIMEOUT","ETRANSFERTIMEOUT"],h=["request-timeout"],d=v((g,m)=>{let f=s(g.url,{...m,signal:void 0});g.headers.has("connection")||g.headers.set("connection",f?"keep-alive":"close"),g.headers.has("user-agent")||g.headers.set("user-agent",l);let y={...m,agent:f,redirect:"manual"};return n(async(S,E)=>{let b=new p.Request(g,y);try{let _=await p(b,y);if(y.integrity&&_.status===200){let O=c.integrityStream({algorithms:y.algorithms,integrity:y.integrity,size:y.size}),R=new t({events:["integrity","size"]},_.body,O);O.on("integrity",I=>R.emit("integrity",I)),O.on("size",I=>R.emit("size",I)),_=new p.Response(R,_),_.body.hasIntegrityEmitter=!0}_.headers.set("x-fetch-attempts",E);let w=a.isStream(b.body);return b.method!=="POST"&&!w&&([408,420,429].includes(_.status)||_.status>=500)?(typeof m.onRetry=="function"&&m.onRetry(_),o.http("fetch",`${b.method} ${b.url} attempt ${E} failed with ${_.status}`),S(_)):_}catch(_){let w=_.code==="EPROMISERETRY"?_.retried.code:_.code,O=_.retried instanceof p.Response||u.includes(w)&&h.includes(_.type);if(b.method==="POST"||O)throw _;return typeof m.onRetry=="function"&&m.onRetry(_),o.http("fetch",`${b.method} ${b.url} attempt ${E} failed with ${_.code}`),S(_)}},m.retry).catch(S=>{if(S.status>=400&&S.type!=="system")return S;throw S})},"remoteFetch");r.exports=d}),T_=K((e,r)=>{var{Request:a,Response:p}=Lr(),{Minipass:n}=Pe(),c=no(),o=Is(),t=require("url"),s=Ku(),i=qu(),l=a_(),u=vo(),h=v((b,_)=>Object.prototype.hasOwnProperty.call(b,_),"hasOwnProperty"),d=["accept-charset","accept-encoding","accept-language","accept","cache-control"],g=["cache-control","content-encoding","content-language","content-type","date","etag","expires","last-modified","link","location","pragma","vary"],m=v((b,_,w)=>{let O={time:Date.now(),url:b.url,reqHeaders:{},resHeaders:{},options:{compress:w.compress!=null?w.compress:b.compress}};_.status!==200&&_.status!==304&&(O.status=_.status);for(let P of d)b.headers.has(P)&&(O.reqHeaders[P]=b.headers.get(P));let R=b.headers.get("host"),I=new t.URL(b.url);if(R&&I.host!==R&&(O.reqHeaders.host=R),_.headers.has("vary")){let P=_.headers.get("vary");if(P!=="*"){let L=P.trim().toLowerCase().split(/\s*,\s*/);for(let M of L)b.headers.has(M)&&(O.reqHeaders[M]=b.headers.get(M))}}for(let P of g)_.headers.has(P)&&(O.resHeaders[P]=_.headers.get(P));for(let P of w.cacheAdditionalHeaders)_.headers.has(P)&&(O.resHeaders[P]=_.headers.get(P));return O},"getMetadata"),f=Symbol("request"),y=Symbol("response"),S=Symbol("policy"),E=class Wt{static{v(this,"CacheEntry")}constructor({entry:_,request:w,response:O,options:R}){_?(this.key=_.key,this.entry=_,this.entry.metadata.time=this.entry.metadata.time||this.entry.time):this.key=l(w),this.options=R,this[f]=w,this[y]=O,this[S]=null}static async find(_,w){try{var O=await o.index.compact(w.cachePath,l(_),(I,P)=>{let L=new Wt({entry:I,options:w}),M=new Wt({entry:P,options:w});return L.policy.satisfies(M.request)},{validateEntry:v(I=>I.metadata&&I.metadata.resHeaders&&I.metadata.resHeaders["content-encoding"]===null?!1:I.integrity===null?!!(I.metadata&&I.metadata.status):!0,"validateEntry")})}catch{return}if(w.cache==="reload")return;let R;for(let I of O){let P=new Wt({entry:I,options:w});if(P.policy.satisfies(_)){R=P;break}}return R}static async invalidate(_,w){let O=l(_);try{await o.rm.entry(w.cachePath,O,{removeFully:!0})}catch{}}get request(){return this[f]||(this[f]=new a(this.entry.metadata.url,{method:"GET",headers:this.entry.metadata.reqHeaders,...this.entry.metadata.options})),this[f]}get response(){return this[y]||(this[y]=new p(null,{url:this.entry.metadata.url,counter:this.options.counter,status:this.entry.metadata.status||200,headers:{...this.entry.metadata.resHeaders,"content-length":this.entry.size}})),this[y]}get policy(){return this[S]||(this[S]=new i({entry:this.entry,request:this.request,response:this.response,options:this.options})),this[S]}async store(_){if(this.request.method!=="GET"||![200,301,308].includes(this.response.status)||!this.policy.storable())return this.response.headers.set("x-local-cache-status","skip"),this.response;let w=this.response.headers.get("content-length"),O={algorithms:this.options.algorithms,metadata:m(this.request,this.response,this.options),size:w,integrity:this.options.integrity,integrityEmitter:this.response.body.hasIntegrityEmitter&&this.response.body},R=null;if(this.response.status===200){let I,P,L=new Promise((x,j)=>{I=x,P=j}).catch(x=>{R.emit("error",x)});R=new s({events:["integrity","size"]},new c({flush(){return L}})),R.hasIntegrityEmitter=!0;let M=v(()=>{let x=new n,j=o.put.stream(this.options.cachePath,this.key,O);j.on("integrity",U=>R.emit("integrity",U)),j.on("size",U=>R.emit("size",U)),x.pipe(j),j.promise().then(I,P),R.unshift(x),R.unshift(this.response.body)},"onResume");R.once("resume",M),R.once("end",()=>R.removeListener("resume",M))}else await o.index.insert(this.options.cachePath,this.key,null,O);return this.response.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),this.response.headers.set("x-local-cache-key",encodeURIComponent(this.key)),this.response.headers.set("x-local-cache-mode","stream"),this.response.headers.set("x-local-cache-status",_),this.response.headers.set("x-local-cache-time",new Date().toISOString()),new p(R,{url:this.response.url,status:this.response.status,headers:this.response.headers,counter:this.options.counter})}async respond(_,w,O){let R;if(_==="HEAD"||[301,308].includes(this.response.status))R=this.response;else{let I=new n,P={...this.policy.responseHeaders()},L=v(()=>{let M=o.get.stream.byDigest(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize});M.on("error",async x=>{M.pause(),x.code==="EINTEGRITY"&&await o.rm.content(this.options.cachePath,this.entry.integrity,{memoize:this.options.memoize}),(x.code==="ENOENT"||x.code==="EINTEGRITY")&&await Wt.invalidate(this.request,this.options),I.emit("error",x),M.resume()}),I.emit("integrity",this.entry.integrity),I.emit("size",Number(P["content-length"])),M.pipe(I)},"onResume");I.once("resume",L),I.once("end",()=>I.removeListener("resume",L)),R=new p(I,{url:this.entry.metadata.url,counter:w.counter,status:200,headers:P})}return R.headers.set("x-local-cache",encodeURIComponent(this.options.cachePath)),R.headers.set("x-local-cache-hash",encodeURIComponent(this.entry.integrity)),R.headers.set("x-local-cache-key",encodeURIComponent(this.key)),R.headers.set("x-local-cache-mode","stream"),R.headers.set("x-local-cache-status",O),R.headers.set("x-local-cache-time",new Date(this.entry.metadata.time).toUTCString()),R}async revalidate(_,w){let O=new a(_,{headers:this.policy.revalidationHeaders(_)});try{var R=await u(O,{...w,headers:void 0})}catch(I){if(!this.policy.mustRevalidate)return this.respond(_.method,w,"stale");throw I}if(this.policy.revalidated(O,R)){let I=m(_,R,w);for(let P of g)!h(I.resHeaders,P)&&h(this.entry.metadata.resHeaders,P)&&(I.resHeaders[P]=this.entry.metadata.resHeaders[P]);for(let P of w.cacheAdditionalHeaders){let L=h(I.resHeaders,P),M=h(this.entry.metadata.resHeaders,P),x=h(this.policy.response.headers,P);!L&&M&&(I.resHeaders[P]=this.entry.metadata.resHeaders[P]),!x&&L&&(this.policy.response.headers[P]=I.resHeaders[P])}try{await o.index.insert(w.cachePath,this.key,this.entry.integrity,{size:this.entry.size,metadata:I})}catch{}return this.respond(_.method,w,"revalidated")}return new Wt({request:_,response:R,options:w}).store("updated")}};r.exports=E}),P_=K((e,r)=>{var{NotCachedError:a}=o_(),p=T_(),n=vo(),c=v(async(o,t)=>{let s=await p.find(o,t);if(!s){if(t.cache==="only-if-cached")throw new a(o.url);let l=await n(o,t);return new p({request:o,response:l,options:t}).store("miss")}if(t.cache==="no-cache")return s.revalidate(o,t);let i=s.policy.needsRevalidation(o);return t.cache==="force-cache"||t.cache==="only-if-cached"||!i?s.respond(o.method,t,i?"stale":"hit"):s.revalidate(o,t)},"cacheFetch");c.invalidate=async(o,t)=>{if(t.cachePath)return p.invalidate(o,t)},r.exports=c}),x_=K((e,r)=>{"use strict";var{FetchError:a,Request:p,isRedirect:n}=Lr(),c=require("url"),o=qu(),t=P_(),s=vo(),i=v((h,d,g)=>{if(!n(d.status)||g.redirect==="manual")return!1;if(g.redirect==="error")throw new a(`redirect mode is set to error: ${h.url}`,"no-redirect",{code:"ENOREDIRECT"});if(!d.headers.has("location"))throw new a(`redirect location header missing for: ${h.url}`,"no-location",{code:"EINVALIDREDIRECT"});if(h.counter>=h.follow)throw new a(`maximum redirect reached at: ${h.url}`,"max-redirect",{code:"EMAXREDIRECT"});return!0},"canFollowRedirect"),l=v((h,d,g)=>{let m={...g},f=d.headers.get("location"),y=new c.URL(f,/^https?:/.test(f)?void 0:h.url);return new c.URL(h.url).hostname!==y.hostname&&(h.headers.delete("authorization"),h.headers.delete("cookie")),(d.status===303||h.method==="POST"&&[301,302].includes(d.status))&&(m.method="GET",m.body=null,h.headers.delete("content-length")),m.headers={},h.headers.forEach((S,E)=>{m.headers[E]=S}),m.counter=++h.counter,{request:new p(c.format(y),m),options:m}},"getRedirect"),u=v(async(h,d)=>{let g=o.storable(h,d)?await t(h,d):await s(h,d);if(!["GET","HEAD"].includes(h.method)&&g.status>=200&&g.status<=399&&await t.invalidate(h,d),!i(h,g,d))return g;let m=l(h,g,d);return u(m.request,m.options)},"fetch");r.exports=u}),xs=K((e,r)=>{var{FetchError:a,Headers:p,Request:n,Response:c}=Lr(),o=Qb(),t=x_(),s=v((i,l)=>{let u=o(l),h=new n(i,u);return t(h,u)},"makeFetchHappen");s.defaults=(i,l={},u=s)=>{typeof i=="object"&&(l=i,i=null);let h=v((d,g={})=>{let m=d||i,f={...l,...g,headers:{...l.headers,...g.headers}};return u(m,f)},"defaultedFetch");return h.defaults=(d,g={})=>s.defaults(d,g,h),h},r.exports=s,r.exports.FetchError=a,r.exports.Headers=p,r.exports.Request=n,r.exports.Response=c}),N_=K((e,r)=>{var a={},p=a.LEFT_BRACE=1,n=a.RIGHT_BRACE=2,c=a.LEFT_BRACKET=3,o=a.RIGHT_BRACKET=4,t=a.COLON=5,s=a.COMMA=6,i=a.TRUE=7,l=a.FALSE=8,u=a.NULL=9,h=a.STRING=10,d=a.NUMBER=11,g=a.START=17,m=a.STOP=18,f=a.TRUE1=33,y=a.TRUE2=34,S=a.TRUE3=35,E=a.FALSE1=49,b=a.FALSE2=50,_=a.FALSE3=51,w=a.FALSE4=52,O=a.NULL1=65,R=a.NULL2=66,I=a.NULL3=67,P=a.NUMBER1=81,L=a.NUMBER3=83,M=a.STRING1=97,x=a.STRING2=98,j=a.STRING3=99,U=a.STRING4=100,V=a.STRING5=101,B=a.STRING6=102,G=a.VALUE=113,W=a.KEY=114,N=a.OBJECT=129,D=a.ARRAY=130,T=92,C=47,Z=8,X=12,Q=10,k=13,F=9,z=64*1024;function $(){this.tState=g,this.value=void 0,this.string=void 0,this.stringBuffer=Buffer.alloc?Buffer.alloc(z):new Buffer(z),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=G,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:new Buffer(2),3:new Buffer(3),4:new Buffer(4)},this.offset=-1}v($,"Parser"),$.toknam=function(J){for(var Y=Object.keys(a),A=0,H=Y.length;A<H;A++){var ee=Y[A];if(a[ee]===J)return ee}return J&&"0x"+J.toString(16)};var q=$.prototype;q.onError=function(J){throw J},q.charError=function(J,Y){this.tState=m,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(J[Y]))+" at position "+Y+" in state "+$.toknam(this.tState)))},q.appendStringChar=function(J){this.stringBufferOffset>=z&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=J},q.appendStringBuf=function(J,Y,A){var H=J.length;typeof Y=="number"&&(typeof A=="number"?A<0?H=J.length-Y+A:H=A-Y:H=J.length-Y),H<0&&(H=0),this.stringBufferOffset+H>z&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),J.copy(this.stringBuffer,this.stringBufferOffset,Y,A),this.stringBufferOffset+=H},q.write=function(J){typeof J=="string"&&(J=new Buffer(J));for(var Y,A=0,H=J.length;A<H;A++)if(this.tState===g){if(Y=J[A],this.offset++,Y===123)this.onToken(p,"{");else if(Y===125)this.onToken(n,"}");else if(Y===91)this.onToken(c,"[");else if(Y===93)this.onToken(o,"]");else if(Y===58)this.onToken(t,":");else if(Y===44)this.onToken(s,",");else if(Y===116)this.tState=f;else if(Y===102)this.tState=E;else if(Y===110)this.tState=O;else if(Y===34)this.string="",this.stringBufferOffset=0,this.tState=M;else if(Y===45)this.string="-",this.tState=P;else if(Y>=48&&Y<64)this.string=String.fromCharCode(Y),this.tState=L;else if(!(Y===32||Y===9||Y===10||Y===13))return this.charError(J,A)}else if(this.tState===M)if(Y=J[A],this.bytes_remaining>0){for(var ee=0;ee<this.bytes_remaining;ee++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+ee]=J[ee];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,A=A+ee-1}else if(this.bytes_remaining===0&&Y>=128){if(Y<=193||Y>244)return this.onError(new Error("Invalid UTF-8 character at position "+A+" in state "+$.toknam(this.tState)));if(Y>=194&&Y<=223&&(this.bytes_in_sequence=2),Y>=224&&Y<=239&&(this.bytes_in_sequence=3),Y>=240&&Y<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+A>J.length){for(var ne=0;ne<=J.length-1-A;ne++)this.temp_buffs[this.bytes_in_sequence][ne]=J[A+ne];this.bytes_remaining=A+this.bytes_in_sequence-J.length,A=J.length-1}else this.appendStringBuf(J,A,A+this.bytes_in_sequence),A=A+this.bytes_in_sequence-1}else if(Y===34)this.tState=g,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(h,this.string),this.offset+=Buffer.byteLength(this.string,"utf8")+1,this.string=void 0;else if(Y===92)this.tState=x;else if(Y>=32)this.appendStringChar(Y);else return this.charError(J,A);else if(this.tState===x)if(Y=J[A],Y===34)this.appendStringChar(Y),this.tState=M;else if(Y===92)this.appendStringChar(T),this.tState=M;else if(Y===47)this.appendStringChar(C),this.tState=M;else if(Y===98)this.appendStringChar(Z),this.tState=M;else if(Y===102)this.appendStringChar(X),this.tState=M;else if(Y===110)this.appendStringChar(Q),this.tState=M;else if(Y===114)this.appendStringChar(k),this.tState=M;else if(Y===116)this.appendStringChar(F),this.tState=M;else if(Y===117)this.unicode="",this.tState=j;else return this.charError(J,A);else if(this.tState===j||this.tState===U||this.tState===V||this.tState===B)if(Y=J[A],Y>=48&&Y<64||Y>64&&Y<=70||Y>96&&Y<=102){if(this.unicode+=String.fromCharCode(Y),this.tState++===B){var te=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&te>=56320&&te<57344?(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate,te))),this.highSurrogate=void 0):this.highSurrogate===void 0&&te>=55296&&te<56320?this.highSurrogate=te:(this.highSurrogate!==void 0&&(this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(new Buffer(String.fromCharCode(te)))),this.tState=M}}else return this.charError(J,A);else if(this.tState===P||this.tState===L)switch(Y=J[A],Y){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(Y),this.tState=L;break;default:this.tState=g;var ae=Number(this.string);if(isNaN(ae))return this.charError(J,A);this.string.match(/[0-9]+/)==this.string&&ae.toString()!=this.string?this.onToken(h,this.string):this.onToken(d,ae),this.offset+=this.string.length-1,this.string=void 0,A--;break}else if(this.tState===f)if(J[A]===114)this.tState=y;else return this.charError(J,A);else if(this.tState===y)if(J[A]===117)this.tState=S;else return this.charError(J,A);else if(this.tState===S)if(J[A]===101)this.tState=g,this.onToken(i,!0),this.offset+=3;else return this.charError(J,A);else if(this.tState===E)if(J[A]===97)this.tState=b;else return this.charError(J,A);else if(this.tState===b)if(J[A]===108)this.tState=_;else return this.charError(J,A);else if(this.tState===_)if(J[A]===115)this.tState=w;else return this.charError(J,A);else if(this.tState===w)if(J[A]===101)this.tState=g,this.onToken(l,!1),this.offset+=4;else return this.charError(J,A);else if(this.tState===O)if(J[A]===117)this.tState=R;else return this.charError(J,A);else if(this.tState===R)if(J[A]===108)this.tState=I;else return this.charError(J,A);else if(this.tState===I)if(J[A]===108)this.tState=g,this.onToken(u,null),this.offset+=3;else return this.charError(J,A)},q.onToken=function(J,Y){},q.parseError=function(J,Y){this.tState=m,this.onError(new Error("Unexpected "+$.toknam(J)+(Y?"("+JSON.stringify(Y)+")":"")+" in state "+$.toknam(this.state)))},q.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})},q.pop=function(){var J=this.value,Y=this.stack.pop();this.value=Y.value,this.key=Y.key,this.mode=Y.mode,this.emit(J),this.mode||(this.state=G)},q.emit=function(J){this.mode&&(this.state=s),this.onValue(J)},q.onValue=function(J){},q.onToken=function(J,Y){if(this.state===G)if(J===h||J===d||J===i||J===l||J===u)this.value&&(this.value[this.key]=Y),this.emit(Y);else if(J===p)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=W,this.mode=N;else if(J===c)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=D,this.state=G;else if(J===n)if(this.mode===N)this.pop();else return this.parseError(J,Y);else if(J===o)if(this.mode===D)this.pop();else return this.parseError(J,Y);else return this.parseError(J,Y);else if(this.state===W)if(J===h)this.key=Y,this.state=t;else if(J===n)this.pop();else return this.parseError(J,Y);else if(this.state===t)if(J===t)this.state=G;else return this.parseError(J,Y);else if(this.state===s)if(J===s)this.mode===D?(this.key++,this.state=G):this.mode===N&&(this.state=W);else if(J===o&&this.mode===D||J===n&&this.mode===N)this.pop();else return this.parseError(J,Y);else return this.parseError(J,Y)},$.C=a,r.exports=$}),k_=K((e,r)=>{var a=N_(),{Minipass:p}=Pe(),n=class extends Error{static{v(this,"JSONStreamError")}constructor(t,s){super(t.message),Error.captureStackTrace(this,s||this.constructor)}get name(){return"JSONStreamError"}},c=v((t,s)=>typeof t=="string"?String(s)===t:t&&typeof t.test=="function"?t.test(s):typeof t=="boolean"||typeof t=="object"?t:typeof t=="function"?t(s):!1,"check"),o=class lh extends p{static{v(this,"JSONStream")}#e=0;#t=!1;#r=null;#s=null;#i=null;#c;#l;#h=null;#o=null;constructor(s){super({...s,objectMode:!0});let i=this.#l=new a;i.onValue=l=>this.#a(l),this.#c=i.onToken,i.onToken=(l,u)=>this.#d(l,u),i.onError=l=>this.#n(l),this.#h=typeof s.path=="string"?s.path.split(".").map(l=>l==="$*"?{emitKey:!0}:l==="*"?!0:l===""?{recurse:!0}:l):Array.isArray(s.path)&&s.path.length?s.path:null,typeof s.map=="function"&&(this.#i=s.map)}#u(s,i){this.#s!==!1&&(this.#s=this.#s||{},this.#s[s]=i),this.#r!==!1&&this.#s===!1&&(this.#r=this.#r||{},this.#r[s]=i)}#n(s){let i=this.#t?this.end:this.write;return this.#t=!1,this.emit("error",new n(s,i))}#d(s,i){let l=this.#l;if(this.#c.call(this.#l,s,i),l.stack.length===0&&this.#o){let u=this.#o;this.#h||super.write(u),this.#o=null,this.#e=0}}#a(s){let i=this.#l;if(this.#o=s,!this.#h)return;let l=0,u=0,h=!1;for(;l<this.#h.length;){let g=this.#h[l];if(u++,g&&!g.recurse){let m=u===i.stack.length?i:i.stack[u];if(!m)return;if(!c(g,m.key)){this.#u(m.key,s);return}h=!!g.emitKey,l++}else{if(l++,l>=this.#h.length)return;let m=this.#h[l];if(!m)return;for(;;){let f=u===i.stack.length?i:i.stack[u];if(!f)return;if(c(m,f.key)){l++,Object.isFrozen(i.stack[u])||(i.stack[u].value=null);break}else this.#u(f.key,s);u++}}}if(this.#s){let g=this.#s;this.#s=!1,this.emit("header",g)}if(u!==i.stack.length)return;this.#e++;let d=i.stack.slice(1).map(g=>g.key).concat([i.key]);if(s!=null){let g=this.#i?this.#i(s,d):s;if(g!=null){let m=h?{value:g}:g;h&&(m.key=i.key),super.write(m)}}i.value&&delete i.value[i.key];for(let g of i.stack)g.value=null}write(s,i){if(typeof s=="string")s=Buffer.from(s,i);else if(!Buffer.isBuffer(s))return this.emit("error",new TypeError("Can only parse JSON from string or buffer input"));return this.#l.write(s),this.flowing}end(s,i){this.#t=!0,s&&this.write(s,i);let l=this.#s;this.#s=null;let u=this.#r;return this.#r=null,l&&this.emit("header",l),u&&this.emit("footer",u),super.end()}static get JSONStreamError(){return n}static parse(s,i){return new lh({path:s,map:i})}};r.exports=o}),ch=K((e,r)=>{"use strict";var{HttpErrorAuthOTP:a}=Uu(),p=Xb(),n=Yb(),c=xs(),o=k_(),t=Ir(),s=require("querystring"),i=require("url"),l=Ts(),{Minipass:u}=Pe(),h=Wu(),d=v(b=>{try{return!!new i.URL(b)}catch{return!1}},"urlIsValid");r.exports=g;function g(b,_={}){let w={...h,..._},O=d(b),R=w.registry||h.registry;O||(R=w.registry=w.spec&&y(w.spec,w)||w.registry||R,b=`${R.trim().replace(/\/?$/g,"")}/${b.trim().replace(/^\//,"")}`,new i.URL(b));let I=w.method||"GET",P=Date.now(),L=n(b,w),M=E(b,L,w),x=w.body,j=u.isStream(x),U=x&&typeof x=="object"&&typeof x.then=="function";if(x&&!j&&!U&&typeof x!="string"&&!Buffer.isBuffer(x)?(M["content-type"]=M["content-type"]||"application/json",x=JSON.stringify(x)):x&&!M["content-type"]&&(M["content-type"]="application/octet-stream"),w.gzip)if(M["content-encoding"]="gzip",j){let G=new l.Gzip;x.on("error",W=>G.emit("error",W)),x=x.pipe(G)}else U||(x=new l.Gzip().end(x).concat());let V=new i.URL(b);if(w.query){let G=typeof w.query=="string"?s.parse(w.query):w.query;Object.keys(G).forEach(W=>{G[W]!==void 0&&V.searchParams.set(W,G[W])}),b=i.format(V)}V.searchParams.get("write")==="true"&&I==="GET"&&(w.offline=!1,w.preferOffline=!1,w.preferOnline=!0);let B=v(async G=>{let W=c(b,{agent:w.agent,algorithms:w.algorithms,body:G,cache:S(w),cachePath:w.cache,ca:w.ca,cert:L.cert||w.cert,headers:M,integrity:w.integrity,key:L.key||w.key,localAddress:w.localAddress,maxSockets:w.maxSockets,memoize:w.memoize,method:I,noProxy:w.noProxy,proxy:w.httpsProxy||w.proxy,retry:w.retry?w.retry:{retries:w.fetchRetries,factor:w.fetchRetryFactor,minTimeout:w.fetchRetryMintimeout,maxTimeout:w.fetchRetryMaxtimeout},strictSSL:w.strictSSL,timeout:w.timeout||3e4}).then(N=>p({method:I,uri:b,res:N,registry:R,startTime:P,auth:L,opts:w}));return typeof w.otpPrompt=="function"?W.catch(async N=>{if(N instanceof a){let D;try{D=await w.otpPrompt()}catch{}if(!D)throw N;return g(b,{...w,otp:D})}throw N}):W},"doFetch");return Promise.resolve(x).then(B)}v(g,"regFetch"),r.exports.getAuth=n,r.exports.json=m;function m(b,_){return g(b,_).then(w=>w.json())}v(m,"fetchJSON"),r.exports.json.stream=f;function f(b,_,w={}){let O={...h,...w},R=o.parse(_,O.mapJSON);return g(b,O).then(I=>I.body.on("error",P=>R.emit("error",P)).pipe(R)).catch(I=>R.emit("error",I)),R}v(f,"fetchJSONStream"),r.exports.pickRegistry=y;function y(b,_={}){b=t(b);let w=b.scope&&_[b.scope.replace(/^@?/,"@")+":registry"];return!w&&_.scope&&(w=_[_.scope.replace(/^@?/,"@")+":registry"]),w||(w=_.registry||h.registry),w}v(y,"pickRegistry");function S(b){return b.offline?"only-if-cached":b.preferOffline?"force-cache":b.preferOnline?"no-cache":"default"}v(S,"getCacheMode");function E(b,_,w){let O=Object.assign({"user-agent":w.userAgent},w.headers||{});return w.authType&&(O["npm-auth-type"]=w.authType),w.scope&&(O["npm-scope"]=w.scope),w.npmSession&&(O["npm-session"]=w.npmSession),w.npmCommand&&(O["npm-command"]=w.npmCommand),_.token?O.authorization=`Bearer ${_.token}`:_.auth&&(O.authorization=`Basic ${_.auth}`),w.otp&&(O["npm-otp"]=w.otp),O}v(E,"getHeaders")}),uh=K((e,r)=>{r.exports={name:"pacote",version:"21.0.1",description:"JavaScript package downloader",author:"GitHub Inc.",bin:{pacote:"bin/index.js"},license:"ISC",main:"lib/index.js",scripts:{test:"tap",snap:"tap",lint:"npm run eslint",postlint:"template-oss-check",lintfix:"npm run eslint -- --fix",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},tap:{timeout:300,"nyc-arg":["--exclude","tap-snapshots/**"]},devDependencies:{"@npmcli/arborist":"^9.0.2","@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.4","hosted-git-info":"^9.0.0","mutate-fs":"^2.1.1",nock:"^13.2.4","npm-registry-mock":"^1.3.2",rimraf:"^6.0.1",tap:"^16.0.1"},files:["bin/","lib/"],keywords:["packages","npm","git"],dependencies:{"@npmcli/git":"^6.0.0","@npmcli/installed-package-contents":"^3.0.0","@npmcli/package-json":"^7.0.0","@npmcli/promise-spawn":"^8.0.0","@npmcli/run-script":"^10.0.0",cacache:"^20.0.0","fs-minipass":"^3.0.0",minipass:"^7.0.2","npm-package-arg":"^13.0.0","npm-packlist":"^10.0.1","npm-pick-manifest":"^10.0.0","npm-registry-fetch":"^19.0.0","proc-log":"^5.0.0","promise-retry":"^2.0.1",sigstore:"^4.0.0",ssri:"^12.0.0",tar:"^7.4.3"},engines:{node:"^20.17.0 || >=22.9.0"},repository:{type:"git",url:"git+https://github.com/npm/pacote.git"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",version:"4.23.4",windowsCI:!1,publish:"true"}}}),Ns=K((e,r)=>{var a=ch(),{Minipass:p}=Pe(),n=er(),c=kr(),o=Zt(),t=uh().version,s=class extends n{static{v(this,"RemoteFetcher")}constructor(i,l){super(i,l),this.resolved=this.spec.fetchSpec;let u=new URL(this.resolved);this.replaceRegistryHost!=="never"&&(this.replaceRegistryHost==="always"||this.replaceRegistryHost===u.host)&&(this.resolved=new URL(u.pathname,this.registry).href);let h=this.spec.name?`${this.spec.name}@`:"";this.pkgid=l.pkgid?l.pkgid:`remote:${h}${this.resolved}`}get[o.cacheFetches](){return!1}[o.tarballFromResolved](){let i=new p;i.hasIntegrityEmitter=!0;let l={...this.opts,headers:this.#e(),spec:this.spec,integrity:this.integrity,algorithms:[this.pickIntegrityAlgorithm()]};return a(this.resolved,l).then(u=>{u.body.on("error",h=>i.emit("error",h)),u.body.on("integrity",h=>{this.integrity=h,i.emit("integrity",h)}),u.body.pipe(i)}).catch(u=>i.emit("error",u)),i}#e(){return{"user-agent":this.opts.userAgent||`pacote/${t} node/${process.version}`,...this.opts.headers||{},"pacote-version":t,"pacote-req-type":"tarball","pacote-pkg-id":this.pkgid,...this.integrity?{"pacote-integrity":String(this.integrity)}:{},...this.opts.headers||{}}}get types(){return["remote"]}packument(){return c.prototype.packument.apply(this)}manifest(){return c.prototype.manifest.apply(this)}};r.exports=s}),L_=K((e,r)=>{var a=v((p,n)=>{if(p.hosted){let c=p.hosted,o={noCommittish:!0};return`${c.https&&c.auth?c.https(o):c.shortcut(o)}#${n}`}else return p.rawSpec.replace(/#.*$/,"")+`#${n}`},"addGitSha");r.exports=a}),D_=K((e,r)=>{var a=Kn();r.exports=(p,n,c,o,t)=>{let s=p.endsWith(".js"),i=s?process.execPath:p,l=(s?[p]:[]).concat(n);return a(i,l,{cwd:c,env:o},t)}}),hh=K((e,r)=>{var a=Is(),p=gu(),n=Ir(),c=to(),{Minipass:o}=Pe(),{log:t}=ct(),s=fo(),i=er(),l=kr(),u=Ns(),h=Zt(),d=L_(),g=D_(),m=/^[a-f0-9]{40}$/,f=v((E,b)=>E.sshurl&&!(E.https&&E.auth)&&y(E.sshurl(b))||E.https&&y(E.https(b)),"repoUrl"),y=v(E=>E&&`git+${E}`.replace(/^(git\+)+/,"git+"),"addGitPlus"),S=class extends i{static{v(this,"GitFetcher")}constructor(E,b){super(E,b),this.opts.integrity&&(delete this.opts.integrity,t.warn(`skipping integrity check for git dependency ${this.spec.fetchSpec}`)),this.resolvedRef=null,this.spec.hosted&&(this.from=this.spec.hosted.shortcut({noCommittish:!1})),this.spec.gitCommittish&&m.test(this.spec.gitCommittish)?(this.resolvedSha=this.spec.gitCommittish,this.resolved=this.spec.hosted?f(this.spec.hosted,{noCommittish:!1}):this.spec.rawSpec):this.resolvedSha="",this.Arborist=b.Arborist||null}static repoUrl(E,b){return f(E,b)}get types(){return["git"]}resolve(){if(this.resolved)return super.resolve();let E=this.spec.hosted;return E?this.#e(E):this.#t(this.spec.fetchSpec)}#e(E){return this.#t(E.https&&E.https()).catch(b=>{if(b instanceof p.errors.GitPathspecError)throw b;let _=E.sshurl&&E.sshurl();if(!_||E.auth)throw b;return this.#t(_)})}#t(E){if(!E)return Promise.reject(new Error(`No git url for ${this.spec}`));let b=this.spec.gitRange,_=this.spec.name;return p.revs(E,this.opts).then(w=>b?c({versions:w.versions,"dist-tags":w["dist-tags"],name:_},b,this.opts):this.spec.gitCommittish?w.refs[this.spec.gitCommittish]||w.refs[w.shas[this.spec.gitCommittish]]:w.refs.HEAD).then(w=>!w||!w.sha?this.#i():(this.resolvedRef=w,this.resolvedSha=w.sha,this.#s(w.sha),this.resolved))}#r(E){this.resolved=this.spec.hosted?f(n(E).hosted,{noCommittish:!1}):E}#s(E){this.#r(d(this.spec,E))}#i(){return this.#l(()=>this.resolved)}#c(E){return this[h.readPackageJson](E).then(b=>{let _=b.scripts;if(!b.workspaces&&(!_||!(_.postinstall||_.build||_.preinstall||_.install||_.prepack||_.prepare)))return;let w=process.env._PACOTE_NO_PREPARE_?process.env._PACOTE_NO_PREPARE_.split(`
57
+ `):[];if(w.includes(this.resolved)){t.info("prepare","skip prepare, already seen",this.resolved);return}return w.push(this.resolved),g(this.npmBin,[].concat(this.npmInstallCmd).concat(this.npmCliConfig),E,{...process.env,_PACOTE_NO_PREPARE_:w.join(`
58
+ `)},{message:"git dep preparation failed"})})}[h.tarballFromResolved](){let E=new o;return E.resolved=this.resolved,E.from=this.from,this.#l(b=>this.#c(b).then(()=>new Promise((_,w)=>{if(!this.Arborist)throw new Error("GitFetcher requires an Arborist constructor to pack a tarball");let O=new s(`file:${b}`,{...this.opts,Arborist:this.Arborist,resolved:null,integrity:null})[h.tarballFromResolved]();O.on("error",w),O.on("end",_),O.pipe(E)}))).catch(b=>E.emit("error",b)),E}#l(E,b=!0){let _={tmpPrefix:"git-clone"},w=this.resolvedSha||this.spec.gitCommittish,O=this.spec.hosted,R=this.resolved;return b=b&&O&&R===f(O,{noCommittish:!1})&&O.tarball,a.tmp.withTmp(this.cache,_,async I=>{if(b){let L=this.spec.name?`${this.spec.name}@`:"";return new u(O.tarball({noCommittish:!1}),{...this.opts,allowGitIgnore:!0,pkgid:`git:${L}${this.resolved}`,resolved:this.resolved,integrity:null}).extract(I).then(()=>E(I),M=>{if(M.constructor.name.match(/^Http/))return this.#l(E,!1);throw M})}let P=await(O?this.#h(w,I):this.#o(this.spec.fetchSpec,w,I));return this.resolvedSha=P,this.resolved||await this.#s(P),E(I)})}#h(E,b){let _=this.spec.hosted;return this.#o(_.https({noCommittish:!0}),E,b).catch(w=>{if(w instanceof p.errors.GitPathspecError)throw w;let O=_.sshurl&&_.sshurl({noCommittish:!0});if(!O||_.auth)throw w;return this.#o(O,E,b)})}#o(E,b,_){let{opts:w,spec:O}=this;return p.clone(E,b,_,{...w,spec:O})}manifest(){return this.package?Promise.resolve(this.package):this.spec.hosted&&this.resolved?l.prototype.manifest.apply(this):this.#l(E=>this[h.readPackageJson](E).then(b=>this.package={...b,_resolved:this.resolved,_from:this.from}))}packument(){return l.prototype.packument.apply(this)}};r.exports=S}),ph=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Signature=e.Envelope=void 0,e.Envelope={fromJSON(n){return{payload:p(n.payload)?Buffer.from(r(n.payload)):Buffer.alloc(0),payloadType:p(n.payloadType)?globalThis.String(n.payloadType):"",signatures:globalThis.Array.isArray(n?.signatures)?n.signatures.map(c=>e.Signature.fromJSON(c)):[]}},toJSON(n){let c={};return n.payload.length!==0&&(c.payload=a(n.payload)),n.payloadType!==""&&(c.payloadType=n.payloadType),n.signatures?.length&&(c.signatures=n.signatures.map(o=>e.Signature.toJSON(o))),c}},e.Signature={fromJSON(n){return{sig:p(n.sig)?Buffer.from(r(n.sig)):Buffer.alloc(0),keyid:p(n.keyid)?globalThis.String(n.keyid):""}},toJSON(n){let c={};return n.sig.length!==0&&(c.sig=a(n.sig)),n.keyid!==""&&(c.keyid=n.keyid),c}};function r(n){return Uint8Array.from(globalThis.Buffer.from(n,"base64"))}v(r,"bytesFromBase64");function a(n){return globalThis.Buffer.from(n).toString("base64")}v(a,"base64FromBytes");function p(n){return n!=null}v(p,"isSet")}),M_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=void 0,e.Timestamp={fromJSON(a){return{seconds:r(a.seconds)?globalThis.String(a.seconds):"0",nanos:r(a.nanos)?globalThis.Number(a.nanos):0}},toJSON(a){let p={};return a.seconds!=="0"&&(p.seconds=a.seconds),a.nanos!==0&&(p.nanos=Math.round(a.nanos)),p}};function r(a){return a!=null}v(r,"isSet")}),Dr=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimeRange=e.X509CertificateChain=e.SubjectAlternativeName=e.X509Certificate=e.DistinguishedName=e.ObjectIdentifierValuePair=e.ObjectIdentifier=e.PublicKeyIdentifier=e.PublicKey=e.RFC3161SignedTimestamp=e.LogId=e.MessageSignature=e.HashOutput=e.SubjectAlternativeNameType=e.PublicKeyDetails=e.HashAlgorithm=void 0,e.hashAlgorithmFromJSON=p,e.hashAlgorithmToJSON=n,e.publicKeyDetailsFromJSON=o,e.publicKeyDetailsToJSON=t,e.subjectAlternativeNameTypeFromJSON=i,e.subjectAlternativeNameTypeToJSON=l;var r=M_(),a;(function(f){f[f.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",f[f.SHA2_256=1]="SHA2_256",f[f.SHA2_384=2]="SHA2_384",f[f.SHA2_512=3]="SHA2_512",f[f.SHA3_256=4]="SHA3_256",f[f.SHA3_384=5]="SHA3_384"})(a||(e.HashAlgorithm=a={}));function p(f){switch(f){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return a.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return a.SHA2_256;case 2:case"SHA2_384":return a.SHA2_384;case 3:case"SHA2_512":return a.SHA2_512;case 4:case"SHA3_256":return a.SHA3_256;case 5:case"SHA3_384":return a.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum HashAlgorithm")}}v(p,"hashAlgorithmFromJSON");function n(f){switch(f){case a.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case a.SHA2_256:return"SHA2_256";case a.SHA2_384:return"SHA2_384";case a.SHA2_512:return"SHA2_512";case a.SHA3_256:return"SHA3_256";case a.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum HashAlgorithm")}}v(n,"hashAlgorithmToJSON");var c;(function(f){f[f.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",f[f.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",f[f.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",f[f.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",f[f.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",f[f.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",f[f.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",f[f.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",f[f.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",f[f.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",f[f.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",f[f.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",f[f.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",f[f.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",f[f.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",f[f.PKIX_ED25519=7]="PKIX_ED25519",f[f.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",f[f.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",f[f.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",f[f.LMS_SHA256=14]="LMS_SHA256",f[f.LMOTS_SHA256=15]="LMOTS_SHA256",f[f.ML_DSA_65=21]="ML_DSA_65",f[f.ML_DSA_87=22]="ML_DSA_87"})(c||(e.PublicKeyDetails=c={}));function o(f){switch(f){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return c.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return c.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return c.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return c.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return c.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return c.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return c.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return c.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return c.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return c.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return c.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return c.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return c.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return c.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return c.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return c.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return c.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return c.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return c.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return c.LMS_SHA256;case 15:case"LMOTS_SHA256":return c.LMOTS_SHA256;case 21:case"ML_DSA_65":return c.ML_DSA_65;case 22:case"ML_DSA_87":return c.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum PublicKeyDetails")}}v(o,"publicKeyDetailsFromJSON");function t(f){switch(f){case c.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case c.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case c.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case c.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case c.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case c.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case c.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case c.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case c.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case c.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case c.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case c.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case c.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case c.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case c.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case c.PKIX_ED25519:return"PKIX_ED25519";case c.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case c.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case c.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case c.LMS_SHA256:return"LMS_SHA256";case c.LMOTS_SHA256:return"LMOTS_SHA256";case c.ML_DSA_65:return"ML_DSA_65";case c.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum PublicKeyDetails")}}v(t,"publicKeyDetailsToJSON");var s;(function(f){f[f.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",f[f.EMAIL=1]="EMAIL",f[f.URI=2]="URI",f[f.OTHER_NAME=3]="OTHER_NAME"})(s||(e.SubjectAlternativeNameType=s={}));function i(f){switch(f){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return s.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return s.EMAIL;case 2:case"URI":return s.URI;case 3:case"OTHER_NAME":return s.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum SubjectAlternativeNameType")}}v(i,"subjectAlternativeNameTypeFromJSON");function l(f){switch(f){case s.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case s.EMAIL:return"EMAIL";case s.URI:return"URI";case s.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+f+" for enum SubjectAlternativeNameType")}}v(l,"subjectAlternativeNameTypeToJSON"),e.HashOutput={fromJSON(f){return{algorithm:m(f.algorithm)?p(f.algorithm):0,digest:m(f.digest)?Buffer.from(u(f.digest)):Buffer.alloc(0)}},toJSON(f){let y={};return f.algorithm!==0&&(y.algorithm=n(f.algorithm)),f.digest.length!==0&&(y.digest=h(f.digest)),y}},e.MessageSignature={fromJSON(f){return{messageDigest:m(f.messageDigest)?e.HashOutput.fromJSON(f.messageDigest):void 0,signature:m(f.signature)?Buffer.from(u(f.signature)):Buffer.alloc(0)}},toJSON(f){let y={};return f.messageDigest!==void 0&&(y.messageDigest=e.HashOutput.toJSON(f.messageDigest)),f.signature.length!==0&&(y.signature=h(f.signature)),y}},e.LogId={fromJSON(f){return{keyId:m(f.keyId)?Buffer.from(u(f.keyId)):Buffer.alloc(0)}},toJSON(f){let y={};return f.keyId.length!==0&&(y.keyId=h(f.keyId)),y}},e.RFC3161SignedTimestamp={fromJSON(f){return{signedTimestamp:m(f.signedTimestamp)?Buffer.from(u(f.signedTimestamp)):Buffer.alloc(0)}},toJSON(f){let y={};return f.signedTimestamp.length!==0&&(y.signedTimestamp=h(f.signedTimestamp)),y}},e.PublicKey={fromJSON(f){return{rawBytes:m(f.rawBytes)?Buffer.from(u(f.rawBytes)):void 0,keyDetails:m(f.keyDetails)?o(f.keyDetails):0,validFor:m(f.validFor)?e.TimeRange.fromJSON(f.validFor):void 0}},toJSON(f){let y={};return f.rawBytes!==void 0&&(y.rawBytes=h(f.rawBytes)),f.keyDetails!==0&&(y.keyDetails=t(f.keyDetails)),f.validFor!==void 0&&(y.validFor=e.TimeRange.toJSON(f.validFor)),y}},e.PublicKeyIdentifier={fromJSON(f){return{hint:m(f.hint)?globalThis.String(f.hint):""}},toJSON(f){let y={};return f.hint!==""&&(y.hint=f.hint),y}},e.ObjectIdentifier={fromJSON(f){return{id:globalThis.Array.isArray(f?.id)?f.id.map(y=>globalThis.Number(y)):[]}},toJSON(f){let y={};return f.id?.length&&(y.id=f.id.map(S=>Math.round(S))),y}},e.ObjectIdentifierValuePair={fromJSON(f){return{oid:m(f.oid)?e.ObjectIdentifier.fromJSON(f.oid):void 0,value:m(f.value)?Buffer.from(u(f.value)):Buffer.alloc(0)}},toJSON(f){let y={};return f.oid!==void 0&&(y.oid=e.ObjectIdentifier.toJSON(f.oid)),f.value.length!==0&&(y.value=h(f.value)),y}},e.DistinguishedName={fromJSON(f){return{organization:m(f.organization)?globalThis.String(f.organization):"",commonName:m(f.commonName)?globalThis.String(f.commonName):""}},toJSON(f){let y={};return f.organization!==""&&(y.organization=f.organization),f.commonName!==""&&(y.commonName=f.commonName),y}},e.X509Certificate={fromJSON(f){return{rawBytes:m(f.rawBytes)?Buffer.from(u(f.rawBytes)):Buffer.alloc(0)}},toJSON(f){let y={};return f.rawBytes.length!==0&&(y.rawBytes=h(f.rawBytes)),y}},e.SubjectAlternativeName={fromJSON(f){return{type:m(f.type)?i(f.type):0,identity:m(f.regexp)?{$case:"regexp",regexp:globalThis.String(f.regexp)}:m(f.value)?{$case:"value",value:globalThis.String(f.value)}:void 0}},toJSON(f){let y={};return f.type!==0&&(y.type=l(f.type)),f.identity?.$case==="regexp"?y.regexp=f.identity.regexp:f.identity?.$case==="value"&&(y.value=f.identity.value),y}},e.X509CertificateChain={fromJSON(f){return{certificates:globalThis.Array.isArray(f?.certificates)?f.certificates.map(y=>e.X509Certificate.fromJSON(y)):[]}},toJSON(f){let y={};return f.certificates?.length&&(y.certificates=f.certificates.map(S=>e.X509Certificate.toJSON(S))),y}},e.TimeRange={fromJSON(f){return{start:m(f.start)?g(f.start):void 0,end:m(f.end)?g(f.end):void 0}},toJSON(f){let y={};return f.start!==void 0&&(y.start=f.start.toISOString()),f.end!==void 0&&(y.end=f.end.toISOString()),y}};function u(f){return Uint8Array.from(globalThis.Buffer.from(f,"base64"))}v(u,"bytesFromBase64");function h(f){return globalThis.Buffer.from(f).toString("base64")}v(h,"base64FromBytes");function d(f){let y=(globalThis.Number(f.seconds)||0)*1e3;return y+=(f.nanos||0)/1e6,new globalThis.Date(y)}v(d,"fromTimestamp");function g(f){return f instanceof globalThis.Date?f:typeof f=="string"?new globalThis.Date(f):d(r.Timestamp.fromJSON(f))}v(g,"fromJsonTimestamp");function m(f){return f!=null}v(m,"isSet")}),dh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransparencyLogEntry=e.InclusionPromise=e.InclusionProof=e.Checkpoint=e.KindVersion=void 0;var r=Dr();e.KindVersion={fromJSON(c){return{kind:n(c.kind)?globalThis.String(c.kind):"",version:n(c.version)?globalThis.String(c.version):""}},toJSON(c){let o={};return c.kind!==""&&(o.kind=c.kind),c.version!==""&&(o.version=c.version),o}},e.Checkpoint={fromJSON(c){return{envelope:n(c.envelope)?globalThis.String(c.envelope):""}},toJSON(c){let o={};return c.envelope!==""&&(o.envelope=c.envelope),o}},e.InclusionProof={fromJSON(c){return{logIndex:n(c.logIndex)?globalThis.String(c.logIndex):"0",rootHash:n(c.rootHash)?Buffer.from(a(c.rootHash)):Buffer.alloc(0),treeSize:n(c.treeSize)?globalThis.String(c.treeSize):"0",hashes:globalThis.Array.isArray(c?.hashes)?c.hashes.map(o=>Buffer.from(a(o))):[],checkpoint:n(c.checkpoint)?e.Checkpoint.fromJSON(c.checkpoint):void 0}},toJSON(c){let o={};return c.logIndex!=="0"&&(o.logIndex=c.logIndex),c.rootHash.length!==0&&(o.rootHash=p(c.rootHash)),c.treeSize!=="0"&&(o.treeSize=c.treeSize),c.hashes?.length&&(o.hashes=c.hashes.map(t=>p(t))),c.checkpoint!==void 0&&(o.checkpoint=e.Checkpoint.toJSON(c.checkpoint)),o}},e.InclusionPromise={fromJSON(c){return{signedEntryTimestamp:n(c.signedEntryTimestamp)?Buffer.from(a(c.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(c){let o={};return c.signedEntryTimestamp.length!==0&&(o.signedEntryTimestamp=p(c.signedEntryTimestamp)),o}},e.TransparencyLogEntry={fromJSON(c){return{logIndex:n(c.logIndex)?globalThis.String(c.logIndex):"0",logId:n(c.logId)?r.LogId.fromJSON(c.logId):void 0,kindVersion:n(c.kindVersion)?e.KindVersion.fromJSON(c.kindVersion):void 0,integratedTime:n(c.integratedTime)?globalThis.String(c.integratedTime):"0",inclusionPromise:n(c.inclusionPromise)?e.InclusionPromise.fromJSON(c.inclusionPromise):void 0,inclusionProof:n(c.inclusionProof)?e.InclusionProof.fromJSON(c.inclusionProof):void 0,canonicalizedBody:n(c.canonicalizedBody)?Buffer.from(a(c.canonicalizedBody)):Buffer.alloc(0)}},toJSON(c){let o={};return c.logIndex!=="0"&&(o.logIndex=c.logIndex),c.logId!==void 0&&(o.logId=r.LogId.toJSON(c.logId)),c.kindVersion!==void 0&&(o.kindVersion=e.KindVersion.toJSON(c.kindVersion)),c.integratedTime!=="0"&&(o.integratedTime=c.integratedTime),c.inclusionPromise!==void 0&&(o.inclusionPromise=e.InclusionPromise.toJSON(c.inclusionPromise)),c.inclusionProof!==void 0&&(o.inclusionProof=e.InclusionProof.toJSON(c.inclusionProof)),c.canonicalizedBody.length!==0&&(o.canonicalizedBody=p(c.canonicalizedBody)),o}};function a(c){return Uint8Array.from(globalThis.Buffer.from(c,"base64"))}v(a,"bytesFromBase64");function p(c){return globalThis.Buffer.from(c).toString("base64")}v(p,"base64FromBytes");function n(c){return c!=null}v(n,"isSet")}),fh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bundle=e.VerificationMaterial=e.TimestampVerificationData=void 0;var r=ph(),a=Dr(),p=dh();e.TimestampVerificationData={fromJSON(c){return{rfc3161Timestamps:globalThis.Array.isArray(c?.rfc3161Timestamps)?c.rfc3161Timestamps.map(o=>a.RFC3161SignedTimestamp.fromJSON(o)):[]}},toJSON(c){let o={};return c.rfc3161Timestamps?.length&&(o.rfc3161Timestamps=c.rfc3161Timestamps.map(t=>a.RFC3161SignedTimestamp.toJSON(t))),o}},e.VerificationMaterial={fromJSON(c){return{content:n(c.publicKey)?{$case:"publicKey",publicKey:a.PublicKeyIdentifier.fromJSON(c.publicKey)}:n(c.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:a.X509CertificateChain.fromJSON(c.x509CertificateChain)}:n(c.certificate)?{$case:"certificate",certificate:a.X509Certificate.fromJSON(c.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(c?.tlogEntries)?c.tlogEntries.map(o=>p.TransparencyLogEntry.fromJSON(o)):[],timestampVerificationData:n(c.timestampVerificationData)?e.TimestampVerificationData.fromJSON(c.timestampVerificationData):void 0}},toJSON(c){let o={};return c.content?.$case==="publicKey"?o.publicKey=a.PublicKeyIdentifier.toJSON(c.content.publicKey):c.content?.$case==="x509CertificateChain"?o.x509CertificateChain=a.X509CertificateChain.toJSON(c.content.x509CertificateChain):c.content?.$case==="certificate"&&(o.certificate=a.X509Certificate.toJSON(c.content.certificate)),c.tlogEntries?.length&&(o.tlogEntries=c.tlogEntries.map(t=>p.TransparencyLogEntry.toJSON(t))),c.timestampVerificationData!==void 0&&(o.timestampVerificationData=e.TimestampVerificationData.toJSON(c.timestampVerificationData)),o}},e.Bundle={fromJSON(c){return{mediaType:n(c.mediaType)?globalThis.String(c.mediaType):"",verificationMaterial:n(c.verificationMaterial)?e.VerificationMaterial.fromJSON(c.verificationMaterial):void 0,content:n(c.messageSignature)?{$case:"messageSignature",messageSignature:a.MessageSignature.fromJSON(c.messageSignature)}:n(c.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:r.Envelope.fromJSON(c.dsseEnvelope)}:void 0}},toJSON(c){let o={};return c.mediaType!==""&&(o.mediaType=c.mediaType),c.verificationMaterial!==void 0&&(o.verificationMaterial=e.VerificationMaterial.toJSON(c.verificationMaterial)),c.content?.$case==="messageSignature"?o.messageSignature=a.MessageSignature.toJSON(c.content.messageSignature):c.content?.$case==="dsseEnvelope"&&(o.dsseEnvelope=r.Envelope.toJSON(c.content.dsseEnvelope)),o}};function n(c){return c!=null}v(n,"isSet")}),gh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientTrustConfig=e.ServiceConfiguration=e.Service=e.SigningConfig=e.TrustedRoot=e.CertificateAuthority=e.TransparencyLogInstance=e.ServiceSelector=void 0,e.serviceSelectorFromJSON=p,e.serviceSelectorToJSON=n;var r=Dr(),a;(function(o){o[o.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",o[o.ALL=1]="ALL",o[o.ANY=2]="ANY",o[o.EXACT=3]="EXACT"})(a||(e.ServiceSelector=a={}));function p(o){switch(o){case 0:case"SERVICE_SELECTOR_UNDEFINED":return a.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return a.ALL;case 2:case"ANY":return a.ANY;case 3:case"EXACT":return a.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+o+" for enum ServiceSelector")}}v(p,"serviceSelectorFromJSON");function n(o){switch(o){case a.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case a.ALL:return"ALL";case a.ANY:return"ANY";case a.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+o+" for enum ServiceSelector")}}v(n,"serviceSelectorToJSON"),e.TransparencyLogInstance={fromJSON(o){return{baseUrl:c(o.baseUrl)?globalThis.String(o.baseUrl):"",hashAlgorithm:c(o.hashAlgorithm)?(0,r.hashAlgorithmFromJSON)(o.hashAlgorithm):0,publicKey:c(o.publicKey)?r.PublicKey.fromJSON(o.publicKey):void 0,logId:c(o.logId)?r.LogId.fromJSON(o.logId):void 0,checkpointKeyId:c(o.checkpointKeyId)?r.LogId.fromJSON(o.checkpointKeyId):void 0,operator:c(o.operator)?globalThis.String(o.operator):""}},toJSON(o){let t={};return o.baseUrl!==""&&(t.baseUrl=o.baseUrl),o.hashAlgorithm!==0&&(t.hashAlgorithm=(0,r.hashAlgorithmToJSON)(o.hashAlgorithm)),o.publicKey!==void 0&&(t.publicKey=r.PublicKey.toJSON(o.publicKey)),o.logId!==void 0&&(t.logId=r.LogId.toJSON(o.logId)),o.checkpointKeyId!==void 0&&(t.checkpointKeyId=r.LogId.toJSON(o.checkpointKeyId)),o.operator!==""&&(t.operator=o.operator),t}},e.CertificateAuthority={fromJSON(o){return{subject:c(o.subject)?r.DistinguishedName.fromJSON(o.subject):void 0,uri:c(o.uri)?globalThis.String(o.uri):"",certChain:c(o.certChain)?r.X509CertificateChain.fromJSON(o.certChain):void 0,validFor:c(o.validFor)?r.TimeRange.fromJSON(o.validFor):void 0,operator:c(o.operator)?globalThis.String(o.operator):""}},toJSON(o){let t={};return o.subject!==void 0&&(t.subject=r.DistinguishedName.toJSON(o.subject)),o.uri!==""&&(t.uri=o.uri),o.certChain!==void 0&&(t.certChain=r.X509CertificateChain.toJSON(o.certChain)),o.validFor!==void 0&&(t.validFor=r.TimeRange.toJSON(o.validFor)),o.operator!==""&&(t.operator=o.operator),t}},e.TrustedRoot={fromJSON(o){return{mediaType:c(o.mediaType)?globalThis.String(o.mediaType):"",tlogs:globalThis.Array.isArray(o?.tlogs)?o.tlogs.map(t=>e.TransparencyLogInstance.fromJSON(t)):[],certificateAuthorities:globalThis.Array.isArray(o?.certificateAuthorities)?o.certificateAuthorities.map(t=>e.CertificateAuthority.fromJSON(t)):[],ctlogs:globalThis.Array.isArray(o?.ctlogs)?o.ctlogs.map(t=>e.TransparencyLogInstance.fromJSON(t)):[],timestampAuthorities:globalThis.Array.isArray(o?.timestampAuthorities)?o.timestampAuthorities.map(t=>e.CertificateAuthority.fromJSON(t)):[]}},toJSON(o){let t={};return o.mediaType!==""&&(t.mediaType=o.mediaType),o.tlogs?.length&&(t.tlogs=o.tlogs.map(s=>e.TransparencyLogInstance.toJSON(s))),o.certificateAuthorities?.length&&(t.certificateAuthorities=o.certificateAuthorities.map(s=>e.CertificateAuthority.toJSON(s))),o.ctlogs?.length&&(t.ctlogs=o.ctlogs.map(s=>e.TransparencyLogInstance.toJSON(s))),o.timestampAuthorities?.length&&(t.timestampAuthorities=o.timestampAuthorities.map(s=>e.CertificateAuthority.toJSON(s))),t}},e.SigningConfig={fromJSON(o){return{mediaType:c(o.mediaType)?globalThis.String(o.mediaType):"",caUrls:globalThis.Array.isArray(o?.caUrls)?o.caUrls.map(t=>e.Service.fromJSON(t)):[],oidcUrls:globalThis.Array.isArray(o?.oidcUrls)?o.oidcUrls.map(t=>e.Service.fromJSON(t)):[],rekorTlogUrls:globalThis.Array.isArray(o?.rekorTlogUrls)?o.rekorTlogUrls.map(t=>e.Service.fromJSON(t)):[],rekorTlogConfig:c(o.rekorTlogConfig)?e.ServiceConfiguration.fromJSON(o.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(o?.tsaUrls)?o.tsaUrls.map(t=>e.Service.fromJSON(t)):[],tsaConfig:c(o.tsaConfig)?e.ServiceConfiguration.fromJSON(o.tsaConfig):void 0}},toJSON(o){let t={};return o.mediaType!==""&&(t.mediaType=o.mediaType),o.caUrls?.length&&(t.caUrls=o.caUrls.map(s=>e.Service.toJSON(s))),o.oidcUrls?.length&&(t.oidcUrls=o.oidcUrls.map(s=>e.Service.toJSON(s))),o.rekorTlogUrls?.length&&(t.rekorTlogUrls=o.rekorTlogUrls.map(s=>e.Service.toJSON(s))),o.rekorTlogConfig!==void 0&&(t.rekorTlogConfig=e.ServiceConfiguration.toJSON(o.rekorTlogConfig)),o.tsaUrls?.length&&(t.tsaUrls=o.tsaUrls.map(s=>e.Service.toJSON(s))),o.tsaConfig!==void 0&&(t.tsaConfig=e.ServiceConfiguration.toJSON(o.tsaConfig)),t}},e.Service={fromJSON(o){return{url:c(o.url)?globalThis.String(o.url):"",majorApiVersion:c(o.majorApiVersion)?globalThis.Number(o.majorApiVersion):0,validFor:c(o.validFor)?r.TimeRange.fromJSON(o.validFor):void 0,operator:c(o.operator)?globalThis.String(o.operator):""}},toJSON(o){let t={};return o.url!==""&&(t.url=o.url),o.majorApiVersion!==0&&(t.majorApiVersion=Math.round(o.majorApiVersion)),o.validFor!==void 0&&(t.validFor=r.TimeRange.toJSON(o.validFor)),o.operator!==""&&(t.operator=o.operator),t}},e.ServiceConfiguration={fromJSON(o){return{selector:c(o.selector)?p(o.selector):0,count:c(o.count)?globalThis.Number(o.count):0}},toJSON(o){let t={};return o.selector!==0&&(t.selector=n(o.selector)),o.count!==0&&(t.count=Math.round(o.count)),t}},e.ClientTrustConfig={fromJSON(o){return{mediaType:c(o.mediaType)?globalThis.String(o.mediaType):"",trustedRoot:c(o.trustedRoot)?e.TrustedRoot.fromJSON(o.trustedRoot):void 0,signingConfig:c(o.signingConfig)?e.SigningConfig.fromJSON(o.signingConfig):void 0}},toJSON(o){let t={};return o.mediaType!==""&&(t.mediaType=o.mediaType),o.trustedRoot!==void 0&&(t.trustedRoot=e.TrustedRoot.toJSON(o.trustedRoot)),o.signingConfig!==void 0&&(t.signingConfig=e.SigningConfig.toJSON(o.signingConfig)),t}};function c(o){return o!=null}v(c,"isSet")}),j_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Input=e.Artifact=e.ArtifactVerificationOptions_ObserverTimestampOptions=e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=e.ArtifactVerificationOptions_TimestampAuthorityOptions=e.ArtifactVerificationOptions_CtlogOptions=e.ArtifactVerificationOptions_TlogOptions=e.ArtifactVerificationOptions=e.PublicKeyIdentities=e.CertificateIdentities=e.CertificateIdentity=void 0;var r=fh(),a=Dr(),p=gh();e.CertificateIdentity={fromJSON(t){return{issuer:o(t.issuer)?globalThis.String(t.issuer):"",san:o(t.san)?a.SubjectAlternativeName.fromJSON(t.san):void 0,oids:globalThis.Array.isArray(t?.oids)?t.oids.map(s=>a.ObjectIdentifierValuePair.fromJSON(s)):[]}},toJSON(t){let s={};return t.issuer!==""&&(s.issuer=t.issuer),t.san!==void 0&&(s.san=a.SubjectAlternativeName.toJSON(t.san)),t.oids?.length&&(s.oids=t.oids.map(i=>a.ObjectIdentifierValuePair.toJSON(i))),s}},e.CertificateIdentities={fromJSON(t){return{identities:globalThis.Array.isArray(t?.identities)?t.identities.map(s=>e.CertificateIdentity.fromJSON(s)):[]}},toJSON(t){let s={};return t.identities?.length&&(s.identities=t.identities.map(i=>e.CertificateIdentity.toJSON(i))),s}},e.PublicKeyIdentities={fromJSON(t){return{publicKeys:globalThis.Array.isArray(t?.publicKeys)?t.publicKeys.map(s=>a.PublicKey.fromJSON(s)):[]}},toJSON(t){let s={};return t.publicKeys?.length&&(s.publicKeys=t.publicKeys.map(i=>a.PublicKey.toJSON(i))),s}},e.ArtifactVerificationOptions={fromJSON(t){return{signers:o(t.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:e.CertificateIdentities.fromJSON(t.certificateIdentities)}:o(t.publicKeys)?{$case:"publicKeys",publicKeys:e.PublicKeyIdentities.fromJSON(t.publicKeys)}:void 0,tlogOptions:o(t.tlogOptions)?e.ArtifactVerificationOptions_TlogOptions.fromJSON(t.tlogOptions):void 0,ctlogOptions:o(t.ctlogOptions)?e.ArtifactVerificationOptions_CtlogOptions.fromJSON(t.ctlogOptions):void 0,tsaOptions:o(t.tsaOptions)?e.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(t.tsaOptions):void 0,integratedTsOptions:o(t.integratedTsOptions)?e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(t.integratedTsOptions):void 0,observerOptions:o(t.observerOptions)?e.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(t.observerOptions):void 0}},toJSON(t){let s={};return t.signers?.$case==="certificateIdentities"?s.certificateIdentities=e.CertificateIdentities.toJSON(t.signers.certificateIdentities):t.signers?.$case==="publicKeys"&&(s.publicKeys=e.PublicKeyIdentities.toJSON(t.signers.publicKeys)),t.tlogOptions!==void 0&&(s.tlogOptions=e.ArtifactVerificationOptions_TlogOptions.toJSON(t.tlogOptions)),t.ctlogOptions!==void 0&&(s.ctlogOptions=e.ArtifactVerificationOptions_CtlogOptions.toJSON(t.ctlogOptions)),t.tsaOptions!==void 0&&(s.tsaOptions=e.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(t.tsaOptions)),t.integratedTsOptions!==void 0&&(s.integratedTsOptions=e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(t.integratedTsOptions)),t.observerOptions!==void 0&&(s.observerOptions=e.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(t.observerOptions)),s}},e.ArtifactVerificationOptions_TlogOptions={fromJSON(t){return{threshold:o(t.threshold)?globalThis.Number(t.threshold):0,performOnlineVerification:o(t.performOnlineVerification)?globalThis.Boolean(t.performOnlineVerification):!1,disable:o(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let s={};return t.threshold!==0&&(s.threshold=Math.round(t.threshold)),t.performOnlineVerification!==!1&&(s.performOnlineVerification=t.performOnlineVerification),t.disable!==!1&&(s.disable=t.disable),s}},e.ArtifactVerificationOptions_CtlogOptions={fromJSON(t){return{threshold:o(t.threshold)?globalThis.Number(t.threshold):0,disable:o(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let s={};return t.threshold!==0&&(s.threshold=Math.round(t.threshold)),t.disable!==!1&&(s.disable=t.disable),s}},e.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(t){return{threshold:o(t.threshold)?globalThis.Number(t.threshold):0,disable:o(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let s={};return t.threshold!==0&&(s.threshold=Math.round(t.threshold)),t.disable!==!1&&(s.disable=t.disable),s}},e.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(t){return{threshold:o(t.threshold)?globalThis.Number(t.threshold):0,disable:o(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let s={};return t.threshold!==0&&(s.threshold=Math.round(t.threshold)),t.disable!==!1&&(s.disable=t.disable),s}},e.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(t){return{threshold:o(t.threshold)?globalThis.Number(t.threshold):0,disable:o(t.disable)?globalThis.Boolean(t.disable):!1}},toJSON(t){let s={};return t.threshold!==0&&(s.threshold=Math.round(t.threshold)),t.disable!==!1&&(s.disable=t.disable),s}},e.Artifact={fromJSON(t){return{data:o(t.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(t.artifactUri)}:o(t.artifact)?{$case:"artifact",artifact:Buffer.from(n(t.artifact))}:o(t.artifactDigest)?{$case:"artifactDigest",artifactDigest:a.HashOutput.fromJSON(t.artifactDigest)}:void 0}},toJSON(t){let s={};return t.data?.$case==="artifactUri"?s.artifactUri=t.data.artifactUri:t.data?.$case==="artifact"?s.artifact=c(t.data.artifact):t.data?.$case==="artifactDigest"&&(s.artifactDigest=a.HashOutput.toJSON(t.data.artifactDigest)),s}},e.Input={fromJSON(t){return{artifactTrustRoot:o(t.artifactTrustRoot)?p.TrustedRoot.fromJSON(t.artifactTrustRoot):void 0,artifactVerificationOptions:o(t.artifactVerificationOptions)?e.ArtifactVerificationOptions.fromJSON(t.artifactVerificationOptions):void 0,bundle:o(t.bundle)?r.Bundle.fromJSON(t.bundle):void 0,artifact:o(t.artifact)?e.Artifact.fromJSON(t.artifact):void 0}},toJSON(t){let s={};return t.artifactTrustRoot!==void 0&&(s.artifactTrustRoot=p.TrustedRoot.toJSON(t.artifactTrustRoot)),t.artifactVerificationOptions!==void 0&&(s.artifactVerificationOptions=e.ArtifactVerificationOptions.toJSON(t.artifactVerificationOptions)),t.bundle!==void 0&&(s.bundle=r.Bundle.toJSON(t.bundle)),t.artifact!==void 0&&(s.artifact=e.Artifact.toJSON(t.artifact)),s}};function n(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}v(n,"bytesFromBase64");function c(t){return globalThis.Buffer.from(t).toString("base64")}v(c,"base64FromBytes");function o(t){return t!=null}v(o,"isSet")}),ks=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(p,n,c,o){o===void 0&&(o=c);var t=Object.getOwnPropertyDescriptor(n,c);(!t||("get"in t?!n.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:v(function(){return n[c]},"get")}),Object.defineProperty(p,o,t)}:function(p,n,c,o){o===void 0&&(o=c),p[o]=n[c]}),a=e&&e.__exportStar||function(p,n){for(var c in p)c!=="default"&&!Object.prototype.hasOwnProperty.call(n,c)&&r(n,p,c)};Object.defineProperty(e,"__esModule",{value:!0}),a(ph(),e),a(fh(),e),a(Dr(),e),a(dh(),e),a(gh(),e),a(j_(),e)}),So=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BUNDLE_V03_MEDIA_TYPE=e.BUNDLE_V03_LEGACY_MEDIA_TYPE=e.BUNDLE_V02_MEDIA_TYPE=e.BUNDLE_V01_MEDIA_TYPE=void 0,e.isBundleWithCertificateChain=r,e.isBundleWithPublicKey=a,e.isBundleWithMessageSignature=p,e.isBundleWithDsseEnvelope=n,e.BUNDLE_V01_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.1",e.BUNDLE_V02_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.2",e.BUNDLE_V03_LEGACY_MEDIA_TYPE="application/vnd.dev.sigstore.bundle+json;version=0.3",e.BUNDLE_V03_MEDIA_TYPE="application/vnd.dev.sigstore.bundle.v0.3+json";function r(c){return c.verificationMaterial.content.$case==="x509CertificateChain"}v(r,"isBundleWithCertificateChain");function a(c){return c.verificationMaterial.content.$case==="publicKey"}v(a,"isBundleWithPublicKey");function p(c){return c.content.$case==="messageSignature"}v(p,"isBundleWithMessageSignature");function n(c){return c.content.$case==="dsseEnvelope"}v(n,"isBundleWithDsseEnvelope")}),$_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toMessageSignatureBundle=p,e.toDSSEBundle=n;var r=ks(),a=So();function p(i){return{mediaType:i.certificateChain?a.BUNDLE_V02_MEDIA_TYPE:a.BUNDLE_V03_MEDIA_TYPE,content:{$case:"messageSignature",messageSignature:{messageDigest:{algorithm:r.HashAlgorithm.SHA2_256,digest:i.digest},signature:i.signature}},verificationMaterial:t(i)}}v(p,"toMessageSignatureBundle");function n(i){return{mediaType:i.certificateChain?a.BUNDLE_V02_MEDIA_TYPE:a.BUNDLE_V03_MEDIA_TYPE,content:{$case:"dsseEnvelope",dsseEnvelope:c(i)},verificationMaterial:t(i)}}v(n,"toDSSEBundle");function c(i){return{payloadType:i.artifactType,payload:i.artifact,signatures:[o(i)]}}v(c,"toEnvelope");function o(i){return{keyid:i.keyHint||"",sig:i.signature}}v(o,"toSignature");function t(i){return{content:s(i),tlogEntries:[],timestampVerificationData:{rfc3161Timestamps:[]}}}v(t,"toVerificationMaterial");function s(i){return i.certificate?i.certificateChain?{$case:"x509CertificateChain",x509CertificateChain:{certificates:[{rawBytes:i.certificate}]}}:{$case:"certificate",certificate:{rawBytes:i.certificate}}:{$case:"publicKey",publicKey:{hint:i.keyHint||""}}}v(s,"toKeyContent")}),mh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ValidationError=void 0;var r=class extends Error{static{v(this,"ValidationError")}constructor(a,p){super(a),this.fields=p}};e.ValidationError=r}),yh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertBundle=a,e.assertBundleV01=p,e.isBundleV01=n,e.assertBundleV02=c,e.assertBundleLatest=o;var r=mh();function a(u){let h=t(u);if(h.length>0)throw new r.ValidationError("invalid bundle",h)}v(a,"assertBundle");function p(u){let h=[];if(h.push(...t(u)),h.push(...s(u)),h.length>0)throw new r.ValidationError("invalid v0.1 bundle",h)}v(p,"assertBundleV01");function n(u){try{return p(u),!0}catch{return!1}}v(n,"isBundleV01");function c(u){let h=[];if(h.push(...t(u)),h.push(...i(u)),h.length>0)throw new r.ValidationError("invalid v0.2 bundle",h)}v(c,"assertBundleV02");function o(u){let h=[];if(h.push(...t(u)),h.push(...i(u)),h.push(...l(u)),h.length>0)throw new r.ValidationError("invalid bundle",h)}v(o,"assertBundleLatest");function t(u){let h=[];if((u.mediaType===void 0||!u.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\+json;version=\d\.\d/)&&!u.mediaType.match(/^application\/vnd\.dev\.sigstore\.bundle\.v\d\.\d\+json/))&&h.push("mediaType"),u.content===void 0)h.push("content");else switch(u.content.$case){case"messageSignature":u.content.messageSignature.messageDigest===void 0?h.push("content.messageSignature.messageDigest"):u.content.messageSignature.messageDigest.digest.length===0&&h.push("content.messageSignature.messageDigest.digest"),u.content.messageSignature.signature.length===0&&h.push("content.messageSignature.signature");break;case"dsseEnvelope":u.content.dsseEnvelope.payload.length===0&&h.push("content.dsseEnvelope.payload"),u.content.dsseEnvelope.signatures.length!==1?h.push("content.dsseEnvelope.signatures"):u.content.dsseEnvelope.signatures[0].sig.length===0&&h.push("content.dsseEnvelope.signatures[0].sig");break}if(u.verificationMaterial===void 0)h.push("verificationMaterial");else{if(u.verificationMaterial.content===void 0)h.push("verificationMaterial.content");else switch(u.verificationMaterial.content.$case){case"x509CertificateChain":u.verificationMaterial.content.x509CertificateChain.certificates.length===0&&h.push("verificationMaterial.content.x509CertificateChain.certificates"),u.verificationMaterial.content.x509CertificateChain.certificates.forEach((d,g)=>{d.rawBytes.length===0&&h.push(`verificationMaterial.content.x509CertificateChain.certificates[${g}].rawBytes`)});break;case"certificate":u.verificationMaterial.content.certificate.rawBytes.length===0&&h.push("verificationMaterial.content.certificate.rawBytes");break}u.verificationMaterial.tlogEntries===void 0?h.push("verificationMaterial.tlogEntries"):u.verificationMaterial.tlogEntries.length>0&&u.verificationMaterial.tlogEntries.forEach((d,g)=>{d.logId===void 0&&h.push(`verificationMaterial.tlogEntries[${g}].logId`),d.kindVersion===void 0&&h.push(`verificationMaterial.tlogEntries[${g}].kindVersion`)})}return h}v(t,"validateBundleBase");function s(u){let h=[];return u.verificationMaterial&&u.verificationMaterial.tlogEntries?.length>0&&u.verificationMaterial.tlogEntries.forEach((d,g)=>{d.inclusionPromise===void 0&&h.push(`verificationMaterial.tlogEntries[${g}].inclusionPromise`)}),h}v(s,"validateInclusionPromise");function i(u){let h=[];return u.verificationMaterial&&u.verificationMaterial.tlogEntries?.length>0&&u.verificationMaterial.tlogEntries.forEach((d,g)=>{d.inclusionProof===void 0?h.push(`verificationMaterial.tlogEntries[${g}].inclusionProof`):d.inclusionProof.checkpoint===void 0&&h.push(`verificationMaterial.tlogEntries[${g}].inclusionProof.checkpoint`)}),h}v(i,"validateInclusionProof");function l(u){let h=[];return u.verificationMaterial?.content?.$case==="x509CertificateChain"&&h.push("verificationMaterial.content.$case"),h}v(l,"validateNoCertificateChain")}),B_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envelopeToJSON=e.envelopeFromJSON=e.bundleToJSON=e.bundleFromJSON=void 0;var r=ks(),a=So(),p=yh(),n=v(s=>{let i=r.Bundle.fromJSON(s);switch(i.mediaType){case a.BUNDLE_V01_MEDIA_TYPE:(0,p.assertBundleV01)(i);break;case a.BUNDLE_V02_MEDIA_TYPE:(0,p.assertBundleV02)(i);break;default:(0,p.assertBundleLatest)(i);break}return i},"bundleFromJSON");e.bundleFromJSON=n;var c=v(s=>r.Bundle.toJSON(s),"bundleToJSON");e.bundleToJSON=c;var o=v(s=>r.Envelope.fromJSON(s),"envelopeFromJSON");e.envelopeFromJSON=o;var t=v(s=>r.Envelope.toJSON(s),"envelopeToJSON");e.envelopeToJSON=t}),Ls=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBundleV01=e.assertBundleV02=e.assertBundleV01=e.assertBundleLatest=e.assertBundle=e.envelopeToJSON=e.envelopeFromJSON=e.bundleToJSON=e.bundleFromJSON=e.ValidationError=e.isBundleWithPublicKey=e.isBundleWithMessageSignature=e.isBundleWithDsseEnvelope=e.isBundleWithCertificateChain=e.BUNDLE_V03_MEDIA_TYPE=e.BUNDLE_V03_LEGACY_MEDIA_TYPE=e.BUNDLE_V02_MEDIA_TYPE=e.BUNDLE_V01_MEDIA_TYPE=e.toMessageSignatureBundle=e.toDSSEBundle=void 0;var r=$_();Object.defineProperty(e,"toDSSEBundle",{enumerable:!0,get:v(function(){return r.toDSSEBundle},"get")}),Object.defineProperty(e,"toMessageSignatureBundle",{enumerable:!0,get:v(function(){return r.toMessageSignatureBundle},"get")});var a=So();Object.defineProperty(e,"BUNDLE_V01_MEDIA_TYPE",{enumerable:!0,get:v(function(){return a.BUNDLE_V01_MEDIA_TYPE},"get")}),Object.defineProperty(e,"BUNDLE_V02_MEDIA_TYPE",{enumerable:!0,get:v(function(){return a.BUNDLE_V02_MEDIA_TYPE},"get")}),Object.defineProperty(e,"BUNDLE_V03_LEGACY_MEDIA_TYPE",{enumerable:!0,get:v(function(){return a.BUNDLE_V03_LEGACY_MEDIA_TYPE},"get")}),Object.defineProperty(e,"BUNDLE_V03_MEDIA_TYPE",{enumerable:!0,get:v(function(){return a.BUNDLE_V03_MEDIA_TYPE},"get")}),Object.defineProperty(e,"isBundleWithCertificateChain",{enumerable:!0,get:v(function(){return a.isBundleWithCertificateChain},"get")}),Object.defineProperty(e,"isBundleWithDsseEnvelope",{enumerable:!0,get:v(function(){return a.isBundleWithDsseEnvelope},"get")}),Object.defineProperty(e,"isBundleWithMessageSignature",{enumerable:!0,get:v(function(){return a.isBundleWithMessageSignature},"get")}),Object.defineProperty(e,"isBundleWithPublicKey",{enumerable:!0,get:v(function(){return a.isBundleWithPublicKey},"get")});var p=mh();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:v(function(){return p.ValidationError},"get")});var n=B_();Object.defineProperty(e,"bundleFromJSON",{enumerable:!0,get:v(function(){return n.bundleFromJSON},"get")}),Object.defineProperty(e,"bundleToJSON",{enumerable:!0,get:v(function(){return n.bundleToJSON},"get")}),Object.defineProperty(e,"envelopeFromJSON",{enumerable:!0,get:v(function(){return n.envelopeFromJSON},"get")}),Object.defineProperty(e,"envelopeToJSON",{enumerable:!0,get:v(function(){return n.envelopeToJSON},"get")});var c=yh();Object.defineProperty(e,"assertBundle",{enumerable:!0,get:v(function(){return c.assertBundle},"get")}),Object.defineProperty(e,"assertBundleLatest",{enumerable:!0,get:v(function(){return c.assertBundleLatest},"get")}),Object.defineProperty(e,"assertBundleV01",{enumerable:!0,get:v(function(){return c.assertBundleV01},"get")}),Object.defineProperty(e,"assertBundleV02",{enumerable:!0,get:v(function(){return c.assertBundleV02},"get")}),Object.defineProperty(e,"isBundleV01",{enumerable:!0,get:v(function(){return c.isBundleV01},"get")})}),Ds=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ByteStream=void 0;var r=class extends Error{static{v(this,"StreamError")}},a=class xn{static{v(this,"ByteStream")}constructor(n){this.start=0,n?(this.buf=n,this.view=Buffer.from(n)):(this.buf=new ArrayBuffer(0),this.view=Buffer.from(this.buf))}get buffer(){return this.view.subarray(0,this.start)}get length(){return this.view.byteLength}get position(){return this.start}seek(n){this.start=n}slice(n,c){let o=n+c;if(o>this.length)throw new r("request past end of buffer");return this.view.subarray(n,o)}appendChar(n){this.ensureCapacity(1),this.view[this.start]=n,this.start+=1}appendUint16(n){this.ensureCapacity(2);let c=new Uint16Array([n]),o=new Uint8Array(c.buffer);this.view[this.start]=o[1],this.view[this.start+1]=o[0],this.start+=2}appendUint24(n){this.ensureCapacity(3);let c=new Uint32Array([n]),o=new Uint8Array(c.buffer);this.view[this.start]=o[2],this.view[this.start+1]=o[1],this.view[this.start+2]=o[0],this.start+=3}appendView(n){this.ensureCapacity(n.length),this.view.set(n,this.start),this.start+=n.length}getBlock(n){if(n<=0)return Buffer.alloc(0);if(this.start+n>this.view.length)throw new Error("request past end of buffer");let c=this.view.subarray(this.start,this.start+n);return this.start+=n,c}getUint8(){return this.getBlock(1)[0]}getUint16(){let n=this.getBlock(2);return n[0]<<8|n[1]}ensureCapacity(n){if(this.start+n>this.view.byteLength){let c=xn.BLOCK_SIZE+(n>xn.BLOCK_SIZE?n:0);this.realloc(this.view.byteLength+c)}}realloc(n){let c=new ArrayBuffer(n),o=Buffer.from(c);o.set(this.view),this.buf=c,this.view=o}};e.ByteStream=a,a.BLOCK_SIZE=1024}),Eo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ASN1TypeError=e.ASN1ParseError=void 0;var r=class extends Error{static{v(this,"ASN1ParseError")}};e.ASN1ParseError=r;var a=class extends Error{static{v(this,"ASN1TypeError")}};e.ASN1TypeError=a}),U_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeLength=a,e.encodeLength=p;var r=Eo();function a(n){let c=n.getUint8();if(!(c&128))return c;let o=c&127;if(o>6)throw new r.ASN1ParseError("length exceeds 6 byte limit");let t=0;for(let s=0;s<o;s++)t=t*256+n.getUint8();if(t===0)throw new r.ASN1ParseError("indefinite length encoding not supported");return t}v(a,"decodeLength");function p(n){if(n<128)return Buffer.from([n]);let c=BigInt(n),o=[];for(;c>0n;)o.unshift(Number(c&255n)),c=c>>8n;return Buffer.from([128|o.length,...o])}v(p,"encodeLength")}),F_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseInteger=p,e.parseStringASCII=n,e.parseTime=c,e.parseOID=o,e.parseBoolean=t,e.parseBitString=s;var r=/^(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/,a=/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d{3})?Z$/;function p(i){let l=0,u=i.length,h=i[l],d=h>127,g=d?255:0;for(;h==g&&++l<u;)h=i[l];if(u-l===0)return BigInt(d?-1:0);h=d?h-256:h;let m=BigInt(h);for(let f=l+1;f<u;++f)m=m*BigInt(256)+BigInt(i[f]);return m}v(p,"parseInteger");function n(i){return i.toString("ascii")}v(n,"parseStringASCII");function c(i,l){let u=n(i),h=l?r.exec(u):a.exec(u);if(!h)throw new Error("invalid time");if(l){let d=Number(h[1]);d+=d>=50?1900:2e3,h[1]=d.toString()}return new Date(`${h[1]}-${h[2]}-${h[3]}T${h[4]}:${h[5]}:${h[6]}Z`)}v(c,"parseTime");function o(i){let l=0,u=i.length,h=i[l++],d=Math.floor(h/40),g=h%40,m=`${d}.${g}`,f=0;for(;l<u;++l)h=i[l],f=(f<<7)+(h&127),!(h&128)&&(m+=`.${f}`,f=0);return m}v(o,"parseOID");function t(i){return i[0]!==0}v(t,"parseBoolean");function s(i){let l=i[0],u=1,h=i.length,d=[];for(let g=u;g<h;++g){let m=i[g],f=g===h-1?l:0;for(let y=7;y>=f;--y)d.push(m>>y&1)}return d}v(s,"parseBitString")}),H_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ASN1Tag=void 0;var r=Eo(),a={BOOLEAN:1,INTEGER:2,BIT_STRING:3,OCTET_STRING:4,OBJECT_IDENTIFIER:6,SEQUENCE:16,SET:17,PRINTABLE_STRING:19,UTC_TIME:23,GENERALIZED_TIME:24},p={UNIVERSAL:0,APPLICATION:1,CONTEXT_SPECIFIC:2,PRIVATE:3},n=class{static{v(this,"ASN1Tag")}constructor(c){if(this.number=c&31,this.constructed=(c&32)===32,this.class=c>>6,this.number===31)throw new r.ASN1ParseError("long form tags not supported");if(this.class===p.UNIVERSAL&&this.number===0)throw new r.ASN1ParseError("unsupported tag 0x00")}isUniversal(){return this.class===p.UNIVERSAL}isContextSpecific(c){let o=this.class===p.CONTEXT_SPECIFIC;return c!==void 0?o&&this.number===c:o}isBoolean(){return this.isUniversal()&&this.number===a.BOOLEAN}isInteger(){return this.isUniversal()&&this.number===a.INTEGER}isBitString(){return this.isUniversal()&&this.number===a.BIT_STRING}isOctetString(){return this.isUniversal()&&this.number===a.OCTET_STRING}isOID(){return this.isUniversal()&&this.number===a.OBJECT_IDENTIFIER}isUTCTime(){return this.isUniversal()&&this.number===a.UTC_TIME}isGeneralizedTime(){return this.isUniversal()&&this.number===a.GENERALIZED_TIME}toDER(){return this.number|(this.constructed?32:0)|this.class<<6}};e.ASN1Tag=n}),G_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ASN1Obj=void 0;var r=Ds(),a=Eo(),p=U_(),n=F_(),c=H_(),o=class{static{v(this,"ASN1Obj")}constructor(i,l,u){this.tag=i,this.value=l,this.subs=u}static parseBuffer(i){return t(new r.ByteStream(i))}toDER(){let i=new r.ByteStream;if(this.subs.length>0)for(let h of this.subs)i.appendView(h.toDER());else i.appendView(this.value);let l=i.buffer,u=new r.ByteStream;return u.appendChar(this.tag.toDER()),u.appendView((0,p.encodeLength)(l.length)),u.appendView(l),u.buffer}toBoolean(){if(!this.tag.isBoolean())throw new a.ASN1TypeError("not a boolean");return(0,n.parseBoolean)(this.value)}toInteger(){if(!this.tag.isInteger())throw new a.ASN1TypeError("not an integer");return(0,n.parseInteger)(this.value)}toOID(){if(!this.tag.isOID())throw new a.ASN1TypeError("not an OID");return(0,n.parseOID)(this.value)}toDate(){switch(!0){case this.tag.isUTCTime():return(0,n.parseTime)(this.value,!0);case this.tag.isGeneralizedTime():return(0,n.parseTime)(this.value,!1);default:throw new a.ASN1TypeError("not a date")}}toBitString(){if(!this.tag.isBitString())throw new a.ASN1TypeError("not a bit string");return(0,n.parseBitString)(this.value)}};e.ASN1Obj=o;function t(i){let l=new c.ASN1Tag(i.getUint8()),u=(0,p.decodeLength)(i),h=i.slice(i.position,u),d=i.position,g=[];if(l.constructed)g=s(i,u);else if(l.isOctetString())try{g=s(i,u)}catch{}return g.length===0&&i.seek(d+u),new o(l,h,g)}v(t,"parseStream");function s(i,l){let u=i.position+l;if(u>i.length)throw new a.ASN1ParseError("invalid length");let h=[];for(;i.position<u;)h.push(t(i));if(i.position!==u)throw new a.ASN1ParseError("invalid length");return h}v(s,"collectSubs")}),bo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ASN1Obj=void 0;var r=G_();Object.defineProperty(e,"ASN1Obj",{enumerable:!0,get:v(function(){return r.ASN1Obj},"get")})}),Mr=K(e=>{"use strict";var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.createPublicKey=p,e.digest=n,e.verify=c,e.bufferEqual=o;var a=r(require("crypto"));function p(t,s="spki"){return typeof t=="string"?a.default.createPublicKey(t):a.default.createPublicKey({key:t,format:"der",type:s})}v(p,"createPublicKey");function n(t,...s){let i=a.default.createHash(t);for(let l of s)i.update(l);return i.digest()}v(n,"digest");function c(t,s,i,l){try{return a.default.verify(l,t,s,i)}catch{return!1}}v(c,"verify");function o(t,s){try{return a.default.timingSafeEqual(t,s)}catch{return!1}}v(o,"bufferEqual")}),V_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preAuthEncoding=a;var r="DSSEv1";function a(p,n){let c=[r,p.length,p,n.length,""].join(" ");return Buffer.concat([Buffer.from(c,"ascii"),n])}v(a,"preAuthEncoding")}),W_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64Encode=p,e.base64Decode=n;var r="base64",a="utf-8";function p(c){return Buffer.from(c,a).toString(r)}v(p,"base64Encode");function n(c){return Buffer.from(c,r).toString(a)}v(n,"base64Decode")}),z_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.canonicalize=r;function r(a){let p="";if(a===null||typeof a!="object"||a.toJSON!=null)p+=JSON.stringify(a);else if(Array.isArray(a)){p+="[";let n=!0;a.forEach(c=>{n||(p+=","),n=!1,p+=r(c)}),p+="]"}else{p+="{";let n=!0;Object.keys(a).sort().forEach(c=>{n||(p+=","),n=!1,p+=JSON.stringify(c),p+=":",p+=r(a[c])}),p+="}"}return p}v(r,"canonicalize")}),vh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toDER=p,e.fromDER=n;var r=/-----BEGIN (.*)-----/,a=/-----END (.*)-----/;function p(c){let o="";return c.split(`
59
+ `).forEach(t=>{t.match(r)||t.match(a)||(o+=t)}),Buffer.from(o,"base64")}v(p,"toDER");function n(c,o="CERTIFICATE"){let t=c.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${o}-----`,...t,`-----END ${o}-----`].join(`
60
+ `).concat(`
61
+ `)}v(n,"fromDER")}),_o=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHA2_HASH_ALGOS=e.ECDSA_SIGNATURE_ALGOS=void 0,e.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"},e.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}}),Sh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RFC3161TimestampVerificationError=void 0;var r=class extends Error{static{v(this,"RFC3161TimestampVerificationError")}};e.RFC3161TimestampVerificationError=r}),q_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(s,i,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(i,l);(!h||("get"in h?!i.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:v(function(){return i[l]},"get")}),Object.defineProperty(s,u,h)}:function(s,i,l,u){u===void 0&&(u=l),s[u]=i[l]}),a=e&&e.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),p=e&&e.__importStar||function(){var s=v(function(i){return s=Object.getOwnPropertyNames||function(l){var u=[];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(u[u.length]=h);return u},s(i)},"ownKeys");return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u=s(i),h=0;h<u.length;h++)u[h]!=="default"&&r(l,i,u[h]);return a(l,i),l}}();Object.defineProperty(e,"__esModule",{value:!0}),e.TSTInfo=void 0;var n=p(Mr()),c=_o(),o=Sh(),t=class{static{v(this,"TSTInfo")}constructor(s){this.root=s}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let s=this.messageImprintObj.subs[0].subs[0].toOID();return c.SHA2_HASH_ALGOS[s]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(s){let i=n.digest(this.messageImprintHashAlgorithm,s);if(!n.bufferEqual(i,this.messageImprintHashedMessage))throw new o.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};e.TSTInfo=t}),K_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(d,g,m,f){f===void 0&&(f=m);var y=Object.getOwnPropertyDescriptor(g,m);(!y||("get"in y?!g.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:v(function(){return g[m]},"get")}),Object.defineProperty(d,f,y)}:function(d,g,m,f){f===void 0&&(f=m),d[f]=g[m]}),a=e&&e.__setModuleDefault||(Object.create?function(d,g){Object.defineProperty(d,"default",{enumerable:!0,value:g})}:function(d,g){d.default=g}),p=e&&e.__importStar||function(){var d=v(function(g){return d=Object.getOwnPropertyNames||function(m){var f=[];for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(f[f.length]=y);return f},d(g)},"ownKeys");return function(g){if(g&&g.__esModule)return g;var m={};if(g!=null)for(var f=d(g),y=0;y<f.length;y++)f[y]!=="default"&&r(m,g,f[y]);return a(m,g),m}}();Object.defineProperty(e,"__esModule",{value:!0}),e.RFC3161Timestamp=void 0;var n=bo(),c=p(Mr()),o=_o(),t=Sh(),s=q_(),i="1.2.840.113549.1.7.2",l="1.2.840.113549.1.9.16.1.4",u="1.2.840.113549.1.9.4",h=class Eh{static{v(this,"RFC3161Timestamp")}constructor(g){this.root=g}static parse(g){let m=n.ASN1Obj.parseBuffer(g);return new Eh(m)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let g=this.signerDigestAlgorithmObj.subs[0].toOID();return o.SHA2_HASH_ALGOS[g]}get signatureAlgorithm(){let g=this.signatureAlgorithmObj.subs[0].toOID();return o.ECDSA_SIGNATURE_ALGOS[g]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new s.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(g,m){if(!this.timeStampTokenObj)throw new t.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==i)throw new t.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==l)throw new t.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(g),this.verifyMessageDigest(),this.verifySignature(m)}verifyMessageDigest(){let g=c.digest(this.signerDigestAlgorithm,this.tstInfo.raw),m=this.messageDigestAttributeObj.subs[1].subs[0].value;if(!c.bufferEqual(g,m))throw new t.RFC3161TimestampVerificationError("signed data does not match tstInfo")}verifySignature(g){let m=this.signedAttrsObj.toDER();if(m[0]=49,!c.verify(m,g,this.signatureValue,this.signatureAlgorithm))throw new t.RFC3161TimestampVerificationError("signature verification failed")}get pkiStatusInfoObj(){return this.root.subs[0]}get timeStampTokenObj(){return this.root.subs[1]}get contentTypeObj(){return this.timeStampTokenObj.subs[0]}get signedDataObj(){return this.timeStampTokenObj.subs.find(g=>g.tag.isContextSpecific(0)).subs[0]}get encapContentInfoObj(){return this.signedDataObj.subs[2]}get signerInfosObj(){let g=this.signedDataObj;return g.subs[g.subs.length-1]}get signerInfoObj(){return this.signerInfosObj.subs[0]}get eContentTypeObj(){return this.encapContentInfoObj.subs[0]}get eContentObj(){return this.encapContentInfoObj.subs[1]}get signedAttrsObj(){return this.signerInfoObj.subs.find(g=>g.tag.isContextSpecific(0))}get messageDigestAttributeObj(){return this.signedAttrsObj.subs.find(g=>g.subs[0].tag.isOID()&&g.subs[0].toOID()===u)}get signerSidObj(){return this.signerInfoObj.subs[1]}get signerDigestAlgorithmObj(){return this.signerInfoObj.subs[2]}get signatureAlgorithmObj(){return this.signerInfoObj.subs[4]}get signatureValueObj(){return this.signerInfoObj.subs[5]}};e.RFC3161Timestamp=h}),J_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RFC3161Timestamp=void 0;var r=K_();Object.defineProperty(e,"RFC3161Timestamp",{enumerable:!0,get:v(function(){return r.RFC3161Timestamp},"get")})}),Z_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(t,s,i,l){l===void 0&&(l=i);var u=Object.getOwnPropertyDescriptor(s,i);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:v(function(){return s[i]},"get")}),Object.defineProperty(t,l,u)}:function(t,s,i,l){l===void 0&&(l=i),t[l]=s[i]}),a=e&&e.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:!0,value:s})}:function(t,s){t.default=s}),p=e&&e.__importStar||function(){var t=v(function(s){return t=Object.getOwnPropertyNames||function(i){var l=[];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(l[l.length]=u);return l},t(s)},"ownKeys");return function(s){if(s&&s.__esModule)return s;var i={};if(s!=null)for(var l=t(s),u=0;u<l.length;u++)l[u]!=="default"&&r(i,s,l[u]);return a(i,s),i}}();Object.defineProperty(e,"__esModule",{value:!0}),e.SignedCertificateTimestamp=void 0;var n=p(Mr()),c=Ds(),o=class bh{static{v(this,"SignedCertificateTimestamp")}constructor(s){this.version=s.version,this.logID=s.logID,this.timestamp=s.timestamp,this.extensions=s.extensions,this.hashAlgorithm=s.hashAlgorithm,this.signatureAlgorithm=s.signatureAlgorithm,this.signature=s.signature}get datetime(){return new Date(Number(this.timestamp.readBigInt64BE()))}get algorithm(){switch(this.hashAlgorithm){case 0:return"none";case 1:return"md5";case 2:return"sha1";case 3:return"sha224";case 4:return"sha256";case 5:return"sha384";case 6:return"sha512";default:return"unknown"}}verify(s,i){let l=new c.ByteStream;return l.appendChar(this.version),l.appendChar(0),l.appendView(this.timestamp),l.appendUint16(1),l.appendView(s),l.appendUint16(this.extensions.byteLength),this.extensions.byteLength>0&&l.appendView(this.extensions),n.verify(l.buffer,i,this.signature,this.algorithm)}static parse(s){let i=new c.ByteStream(s),l=i.getUint8(),u=i.getBlock(32),h=i.getBlock(8),d=i.getUint16(),g=i.getBlock(d),m=i.getUint8(),f=i.getUint8(),y=i.getUint16(),S=i.getBlock(y);if(i.position!==s.length)throw new Error("SCT buffer length mismatch");return new bh({version:l,logID:u,timestamp:h,extensions:g,hashAlgorithm:m,signatureAlgorithm:f,signature:S})}};e.SignedCertificateTimestamp=o}),_h=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.X509SCTExtension=e.X509SubjectKeyIDExtension=e.X509AuthorityKeyIDExtension=e.X509SubjectAlternativeNameExtension=e.X509KeyUsageExtension=e.X509BasicConstraintsExtension=e.X509Extension=void 0;var r=Ds(),a=Z_(),p=class{static{v(this,"X509Extension")}constructor(l){this.root=l}get oid(){return this.root.subs[0].toOID()}get critical(){return this.root.subs.length===3?this.root.subs[1].toBoolean():!1}get value(){return this.extnValueObj.value}get valueObj(){return this.extnValueObj}get extnValueObj(){return this.root.subs[this.root.subs.length-1]}};e.X509Extension=p;var n=class extends p{static{v(this,"X509BasicConstraintsExtension")}get isCA(){return this.sequence.subs[0]?.toBoolean()??!1}get pathLenConstraint(){return this.sequence.subs.length>1?this.sequence.subs[1].toInteger():void 0}get sequence(){return this.extnValueObj.subs[0]}};e.X509BasicConstraintsExtension=n;var c=class extends p{static{v(this,"X509KeyUsageExtension")}get digitalSignature(){return this.bitString[0]===1}get keyCertSign(){return this.bitString[5]===1}get crlSign(){return this.bitString[6]===1}get bitString(){return this.extnValueObj.subs[0].toBitString()}};e.X509KeyUsageExtension=c;var o=class extends p{static{v(this,"X509SubjectAlternativeNameExtension")}get rfc822Name(){return this.findGeneralName(1)?.value.toString("ascii")}get uri(){return this.findGeneralName(6)?.value.toString("ascii")}otherName(l){let u=this.findGeneralName(0);return u===void 0||u.subs[0].toOID()!==l?void 0:u.subs[1].subs[0].value.toString("ascii")}findGeneralName(l){return this.generalNames.find(u=>u.tag.isContextSpecific(l))}get generalNames(){return this.extnValueObj.subs[0].subs}};e.X509SubjectAlternativeNameExtension=o;var t=class extends p{static{v(this,"X509AuthorityKeyIDExtension")}get keyIdentifier(){return this.findSequenceMember(0)?.value}findSequenceMember(l){return this.sequence.subs.find(u=>u.tag.isContextSpecific(l))}get sequence(){return this.extnValueObj.subs[0]}};e.X509AuthorityKeyIDExtension=t;var s=class extends p{static{v(this,"X509SubjectKeyIDExtension")}get keyIdentifier(){return this.extnValueObj.subs[0].value}};e.X509SubjectKeyIDExtension=s;var i=class extends p{static{v(this,"X509SCTExtension")}constructor(l){super(l)}get signedCertificateTimestamps(){let l=this.extnValueObj.subs[0].value,u=new r.ByteStream(l),h=u.getUint16()+2,d=[];for(;u.position<h;){let g=u.getUint16(),m=u.getBlock(g);d.push(a.SignedCertificateTimestamp.parse(m))}if(u.position!==h)throw new Error("SCT list length does not match actual length");return d}};e.X509SCTExtension=i}),X_=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(m,f,y,S){S===void 0&&(S=y);var E=Object.getOwnPropertyDescriptor(f,y);(!E||("get"in E?!f.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:v(function(){return f[y]},"get")}),Object.defineProperty(m,S,E)}:function(m,f,y,S){S===void 0&&(S=y),m[S]=f[y]}),a=e&&e.__setModuleDefault||(Object.create?function(m,f){Object.defineProperty(m,"default",{enumerable:!0,value:f})}:function(m,f){m.default=f}),p=e&&e.__importStar||function(){var m=v(function(f){return m=Object.getOwnPropertyNames||function(y){var S=[];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(S[S.length]=E);return S},m(f)},"ownKeys");return function(f){if(f&&f.__esModule)return f;var y={};if(f!=null)for(var S=m(f),E=0;E<S.length;E++)S[E]!=="default"&&r(y,f,S[E]);return a(y,f),y}}();Object.defineProperty(e,"__esModule",{value:!0}),e.X509Certificate=e.EXTENSION_OID_SCT=void 0;var n=bo(),c=p(Mr()),o=_o(),t=p(vh()),s=_h(),i="2.5.29.14",l="2.5.29.15",u="2.5.29.17",h="2.5.29.19",d="2.5.29.35";e.EXTENSION_OID_SCT="1.3.6.1.4.1.11129.2.4.2";var g=class Nn{static{v(this,"X509Certificate")}constructor(f){this.root=f}static parse(f){let y=typeof f=="string"?t.toDER(f):f,S=n.ASN1Obj.parseBuffer(y);return new Nn(S)}get tbsCertificate(){return this.tbsCertificateObj}get version(){return`v${(this.versionObj.subs[0].toInteger()+BigInt(1)).toString()}`}get serialNumber(){return this.serialNumberObj.value}get notBefore(){return this.validityObj.subs[0].toDate()}get notAfter(){return this.validityObj.subs[1].toDate()}get issuer(){return this.issuerObj.value}get subject(){return this.subjectObj.value}get publicKey(){return this.subjectPublicKeyInfoObj.toDER()}get signatureAlgorithm(){let f=this.signatureAlgorithmObj.subs[0].toOID();return o.ECDSA_SIGNATURE_ALGOS[f]}get signatureValue(){return this.signatureValueObj.value.subarray(1)}get subjectAltName(){let f=this.extSubjectAltName;return f?.uri||f?.rfc822Name}get extensions(){return this.extensionsObj?.subs[0]?.subs||[]}get extKeyUsage(){let f=this.findExtension(l);return f?new s.X509KeyUsageExtension(f):void 0}get extBasicConstraints(){let f=this.findExtension(h);return f?new s.X509BasicConstraintsExtension(f):void 0}get extSubjectAltName(){let f=this.findExtension(u);return f?new s.X509SubjectAlternativeNameExtension(f):void 0}get extAuthorityKeyID(){let f=this.findExtension(d);return f?new s.X509AuthorityKeyIDExtension(f):void 0}get extSubjectKeyID(){let f=this.findExtension(i);return f?new s.X509SubjectKeyIDExtension(f):void 0}get extSCT(){let f=this.findExtension(e.EXTENSION_OID_SCT);return f?new s.X509SCTExtension(f):void 0}get isCA(){let f=this.extBasicConstraints?.isCA||!1;return this.extKeyUsage?f&&this.extKeyUsage.keyCertSign:f}extension(f){let y=this.findExtension(f);return y?new s.X509Extension(y):void 0}verify(f){let y=f?.publicKey||this.publicKey,S=c.createPublicKey(y);return c.verify(this.tbsCertificate.toDER(),S,this.signatureValue,this.signatureAlgorithm)}validForDate(f){return this.notBefore<=f&&f<=this.notAfter}equals(f){return this.root.toDER().equals(f.root.toDER())}clone(){let f=this.root.toDER(),y=Buffer.alloc(f.length);return f.copy(y),Nn.parse(y)}findExtension(f){return this.extensions.find(y=>y.subs[0].toOID()===f)}get tbsCertificateObj(){return this.root.subs[0]}get signatureAlgorithmObj(){return this.root.subs[1]}get signatureValueObj(){return this.root.subs[2]}get versionObj(){return this.tbsCertificateObj.subs[0]}get serialNumberObj(){return this.tbsCertificateObj.subs[1]}get issuerObj(){return this.tbsCertificateObj.subs[3]}get validityObj(){return this.tbsCertificateObj.subs[4]}get subjectObj(){return this.tbsCertificateObj.subs[5]}get subjectPublicKeyInfoObj(){return this.tbsCertificateObj.subs[6]}get extensionsObj(){return this.tbsCertificateObj.subs.find(f=>f.tag.isContextSpecific(3))}};e.X509Certificate=g}),Y_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.X509SCTExtension=e.X509Certificate=e.EXTENSION_OID_SCT=void 0;var r=X_();Object.defineProperty(e,"EXTENSION_OID_SCT",{enumerable:!0,get:v(function(){return r.EXTENSION_OID_SCT},"get")}),Object.defineProperty(e,"X509Certificate",{enumerable:!0,get:v(function(){return r.X509Certificate},"get")});var a=_h();Object.defineProperty(e,"X509SCTExtension",{enumerable:!0,get:v(function(){return a.X509SCTExtension},"get")})}),Xe=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(s,i,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(i,l);(!h||("get"in h?!i.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:v(function(){return i[l]},"get")}),Object.defineProperty(s,u,h)}:function(s,i,l,u){u===void 0&&(u=l),s[u]=i[l]}),a=e&&e.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),p=e&&e.__importStar||function(){var s=v(function(i){return s=Object.getOwnPropertyNames||function(l){var u=[];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(u[u.length]=h);return u},s(i)},"ownKeys");return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u=s(i),h=0;h<u.length;h++)u[h]!=="default"&&r(l,i,u[h]);return a(l,i),l}}();Object.defineProperty(e,"__esModule",{value:!0}),e.X509SCTExtension=e.X509Certificate=e.EXTENSION_OID_SCT=e.ByteStream=e.RFC3161Timestamp=e.pem=e.json=e.encoding=e.dsse=e.crypto=e.ASN1Obj=void 0;var n=bo();Object.defineProperty(e,"ASN1Obj",{enumerable:!0,get:v(function(){return n.ASN1Obj},"get")}),e.crypto=p(Mr()),e.dsse=p(V_()),e.encoding=p(W_()),e.json=p(z_()),e.pem=p(vh());var c=J_();Object.defineProperty(e,"RFC3161Timestamp",{enumerable:!0,get:v(function(){return c.RFC3161Timestamp},"get")});var o=Ds();Object.defineProperty(e,"ByteStream",{enumerable:!0,get:v(function(){return o.ByteStream},"get")});var t=Y_();Object.defineProperty(e,"EXTENSION_OID_SCT",{enumerable:!0,get:v(function(){return t.EXTENSION_OID_SCT},"get")}),Object.defineProperty(e,"X509Certificate",{enumerable:!0,get:v(function(){return t.X509Certificate},"get")}),Object.defineProperty(e,"X509SCTExtension",{enumerable:!0,get:v(function(){return t.X509SCTExtension},"get")})}),Q_=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extractJWTSubject=a;var r=Xe();function a(p){let n=p.split(".",3),c=JSON.parse(r.encoding.base64Decode(n[1]));if(c.email){if(!c.email_verified)throw new Error("JWT email not verified by issuer");return c.email}if(c.sub)return c.sub;throw new Error("JWT subject not found")}v(a,"extractJWTSubject")}),ew=K((e,r)=>{r.exports={name:"@sigstore/sign",version:"4.0.1",description:"Sigstore signing library",main:"dist/index.js",types:"dist/index.d.ts",scripts:{clean:"shx rm -rf dist *.tsbuildinfo",build:"tsc --build",test:"jest"},files:["dist"],author:"bdehamer@github.com",license:"Apache-2.0",repository:{type:"git",url:"git+https://github.com/sigstore/sigstore-js.git"},bugs:{url:"https://github.com/sigstore/sigstore-js/issues"},homepage:"https://github.com/sigstore/sigstore-js/tree/main/packages/sign#readme",publishConfig:{provenance:!0},devDependencies:{"@sigstore/jest":"^0.0.0","@sigstore/mock":"^0.11.0","@sigstore/rekor-types":"^4.0.0","@types/make-fetch-happen":"^10.0.4","@types/promise-retry":"^1.1.6"},dependencies:{"@sigstore/bundle":"^4.0.0","@sigstore/core":"^3.0.0","@sigstore/protobuf-specs":"^0.5.0","make-fetch-happen":"^15.0.2","proc-log":"^5.0.0","promise-retry":"^2.0.1"},engines:{node:"^20.17.0 || >=22.9.0"}}}),tw=K(e=>{"use strict";var r=e&&e.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.getUserAgent=void 0;var a=r(require("os")),p=v(()=>{let n=ew().version,c=process.version,o=a.default.platform(),t=a.default.arch();return`sigstore-js/${n} (Node ${c}) (${o}/${t})`},"getUserAgent");e.getUserAgent=p}),Nt=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(c,o,t,s){s===void 0&&(s=t);var i=Object.getOwnPropertyDescriptor(o,t);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:v(function(){return o[t]},"get")}),Object.defineProperty(c,s,i)}:function(c,o,t,s){s===void 0&&(s=t),c[s]=o[t]}),a=e&&e.__setModuleDefault||(Object.create?function(c,o){Object.defineProperty(c,"default",{enumerable:!0,value:o})}:function(c,o){c.default=o}),p=e&&e.__importStar||function(){var c=v(function(o){return c=Object.getOwnPropertyNames||function(t){var s=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(s[s.length]=i);return s},c(o)},"ownKeys");return function(o){if(o&&o.__esModule)return o;var t={};if(o!=null)for(var s=c(o),i=0;i<s.length;i++)s[i]!=="default"&&r(t,o,s[i]);return a(t,o),t}}();Object.defineProperty(e,"__esModule",{value:!0}),e.ua=e.oidc=e.pem=e.json=e.encoding=e.dsse=e.crypto=void 0;var n=Xe();Object.defineProperty(e,"crypto",{enumerable:!0,get:v(function(){return n.crypto},"get")}),Object.defineProperty(e,"dsse",{enumerable:!0,get:v(function(){return n.dsse},"get")}),Object.defineProperty(e,"encoding",{enumerable:!0,get:v(function(){return n.encoding},"get")}),Object.defineProperty(e,"json",{enumerable:!0,get:v(function(){return n.json},"get")}),Object.defineProperty(e,"pem",{enumerable:!0,get:v(function(){return n.pem},"get")}),e.oidc=p(Q_()),e.ua=p(tw())}),wh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBundleBuilder=void 0;var r=class{static{v(this,"BaseBundleBuilder")}constructor(p){this.signer=p.signer,this.witnesses=p.witnesses}async create(p){let n=await this.prepare(p).then(i=>this.signer.sign(i)),c=await this.package(p,n),o=await Promise.all(this.witnesses.map(i=>i.testify(c.content,a(n.key)))),t=[],s=[];return o.forEach(({tlogEntries:i,rfc3161Timestamps:l})=>{t.push(...i??[]),s.push(...l??[])}),c.verificationMaterial.tlogEntries=t,c.verificationMaterial.timestampVerificationData={rfc3161Timestamps:s},c}async prepare(p){return p.data}};e.BaseBundleBuilder=r;function a(p){switch(p.$case){case"publicKey":return p.publicKey;case"x509Certificate":return p.certificate}}v(a,"publicKey")}),Oh=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(s,i,l,u){u===void 0&&(u=l);var h=Object.getOwnPropertyDescriptor(i,l);(!h||("get"in h?!i.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:v(function(){return i[l]},"get")}),Object.defineProperty(s,u,h)}:function(s,i,l,u){u===void 0&&(u=l),s[u]=i[l]}),a=e&&e.__setModuleDefault||(Object.create?function(s,i){Object.defineProperty(s,"default",{enumerable:!0,value:i})}:function(s,i){s.default=i}),p=e&&e.__importStar||function(){var s=v(function(i){return s=Object.getOwnPropertyNames||function(l){var u=[];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(u[u.length]=h);return u},s(i)},"ownKeys");return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u=s(i),h=0;h<u.length;h++)u[h]!=="default"&&r(l,i,u[h]);return a(l,i),l}}();Object.defineProperty(e,"__esModule",{value:!0}),e.toMessageSignatureBundle=o,e.toDSSEBundle=t;var n=p(Ls()),c=Nt();function o(s,i){let l=c.crypto.digest("sha256",s.data);return n.toMessageSignatureBundle({digest:l,signature:i.signature,certificate:i.key.$case==="x509Certificate"?c.pem.toDER(i.key.certificate):void 0,keyHint:i.key.$case==="publicKey"?i.key.hint:void 0,certificateChain:!0})}v(o,"toMessageSignatureBundle");function t(s,i,l){return n.toDSSEBundle({artifact:s.data,artifactType:s.type,signature:i.signature,certificate:i.key.$case==="x509Certificate"?c.pem.toDER(i.key.certificate):void 0,keyHint:i.key.$case==="publicKey"?i.key.hint:void 0,certificateChain:l})}v(t,"toDSSEBundle")}),rw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DSSEBundleBuilder=void 0;var r=Nt(),a=wh(),p=Oh(),n=class extends a.BaseBundleBuilder{static{v(this,"DSSEBundleBuilder")}constructor(o){super(o),this.certificateChain=o.certificateChain??!1}async prepare(o){let t=c(o);return r.dsse.preAuthEncoding(t.type,t.data)}async package(o,t){return(0,p.toDSSEBundle)(c(o),t,this.certificateChain)}};e.DSSEBundleBuilder=n;function c(o){return{...o,type:o.type??""}}v(c,"artifactDefaults")}),sw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageSignatureBundleBuilder=void 0;var r=wh(),a=Oh(),p=class extends r.BaseBundleBuilder{static{v(this,"MessageSignatureBundleBuilder")}constructor(n){super(n)}async package(n,c){return(0,a.toMessageSignatureBundle)(n,c)}};e.MessageSignatureBundleBuilder=p}),iw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageSignatureBundleBuilder=e.DSSEBundleBuilder=void 0;var r=rw();Object.defineProperty(e,"DSSEBundleBuilder",{enumerable:!0,get:v(function(){return r.DSSEBundleBuilder},"get")});var a=sw();Object.defineProperty(e,"MessageSignatureBundleBuilder",{enumerable:!0,get:v(function(){return a.MessageSignatureBundleBuilder},"get")})}),wo=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HTTPError=void 0;var r=class extends Error{static{v(this,"HTTPError")}constructor({status:a,message:p,location:n}){super(`(${a}) ${p}`),this.statusCode=a,this.location=n}};e.HTTPError=r}),jr=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InternalError=void 0,e.internalError=p;var r=wo(),a=class extends Error{static{v(this,"InternalError")}constructor({code:n,message:c,cause:o}){super(c),this.name=this.constructor.name,this.cause=o,this.code=n}};e.InternalError=a;function p(n,c,o){throw n instanceof r.HTTPError&&(o+=` - ${n.message}`),new a({code:c,message:o,cause:n})}v(p,"internalError")}),nw=K(e=>{"use strict";var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CIContextProvider=void 0;var a=r(xs()),p=[c,o],n=class{static{v(this,"CIContextProvider")}constructor(t="sigstore"){this.audience=t}async getToken(){return Promise.any(p.map(t=>t(this.audience))).catch(()=>Promise.reject("CI: no tokens available"))}};e.CIContextProvider=n;async function c(t){if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL||!process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN)return Promise.reject("no token available");let s=new URL(process.env.ACTIONS_ID_TOKEN_REQUEST_URL);return s.searchParams.append("audience",t),(await(0,a.default)(s.href,{retry:2,headers:{Accept:"application/json",Authorization:`Bearer ${process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN}`}})).json().then(i=>i.value)}v(c,"getGHAToken");async function o(){return process.env.SIGSTORE_ID_TOKEN?process.env.SIGSTORE_ID_TOKEN:Promise.reject("no token available")}v(o,"getEnv")}),ow=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CIContextProvider=void 0;var r=nw();Object.defineProperty(e,"CIContextProvider",{enumerable:!0,get:v(function(){return r.CIContextProvider},"get")})}),Oo=K(e=>{"use strict";var r=e&&e.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(e,"__esModule",{value:!0}),e.fetchWithRetry=g;var a=require("http2"),p=r(xs()),n=ct(),c=r(ws()),o=Nt(),t=wo(),{HTTP2_HEADER_LOCATION:s,HTTP2_HEADER_CONTENT_TYPE:i,HTTP2_HEADER_USER_AGENT:l,HTTP_STATUS_INTERNAL_SERVER_ERROR:u,HTTP_STATUS_TOO_MANY_REQUESTS:h,HTTP_STATUS_REQUEST_TIMEOUT:d}=a.constants;async function g(S,E){return(0,c.default)(async(b,_)=>{let w=E.method||"POST",O={[l]:o.ua.getUserAgent(),...E.headers},R=await(0,p.default)(S,{method:w,headers:O,body:E.body,timeout:E.timeout,retry:!1}).catch(I=>(n.log.http("fetch",`${w} ${S} attempt ${_} failed with ${I}`),b(I)));if(R.ok)return R;{let I=await m(R);if(n.log.http("fetch",`${w} ${S} attempt ${_} failed with ${R.status}`),f(R.status))return b(I);throw I}},y(E.retry))}v(g,"fetchWithRetry");var m=v(async S=>{let E=S.statusText,b=S.headers.get(s)||void 0;if(S.headers.get(i)?.includes("application/json"))try{E=(await S.json()).message||E}catch{}return new t.HTTPError({status:S.status,message:E,location:b})},"errorFromResponse"),f=v(S=>[d,h].includes(S)||S>=u,"retryable"),y=v(S=>typeof S=="boolean"?{retries:S?1:0}:typeof S=="number"?{retries:S}:{retries:0,...S},"retryOpts")}),aw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Fulcio=void 0;var r=Oo(),a=class{static{v(this,"Fulcio")}constructor(p){this.options=p}async createSigningCertificate(p){let{baseURL:n,retry:c,timeout:o}=this.options,t=`${n}/api/v2/signingCert`;return(await(0,r.fetchWithRetry)(t,{headers:{"Content-Type":"application/json"},body:JSON.stringify(p),timeout:o,retry:c})).json()}};e.Fulcio=a}),lw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CAClient=void 0;var r=jr(),a=aw(),p=class{static{v(this,"CAClient")}constructor(c){this.fulcio=new a.Fulcio({baseURL:c.fulcioBaseURL,retry:c.retry,timeout:c.timeout})}async createSigningCertificate(c,o,t){let s=n(c,o,t);try{let i=await this.fulcio.createSigningCertificate(s);return(i.signedCertificateEmbeddedSct?i.signedCertificateEmbeddedSct:i.signedCertificateDetachedSct).chain.certificates}catch(i){(0,r.internalError)(i,"CA_CREATE_SIGNING_CERTIFICATE_ERROR","error creating signing certificate")}}};e.CAClient=p;function n(c,o,t){return{credentials:{oidcIdentityToken:c},publicKeyRequest:{publicKey:{algorithm:"ECDSA",content:o},proofOfPossession:t.toString("base64")}}}v(n,"toCertificateRequest")}),cw=K(e=>{"use strict";var r=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.EphemeralSigner=void 0;var a=r(require("crypto")),p="ec",n="P-256",c=class{static{v(this,"EphemeralSigner")}constructor(){this.keypair=a.default.generateKeyPairSync(p,{namedCurve:n})}async sign(o){let t=a.default.sign(null,o,this.keypair.privateKey),s=this.keypair.publicKey.export({format:"pem",type:"spki"}).toString("ascii");return{signature:t,key:{$case:"publicKey",publicKey:s}}}};e.EphemeralSigner=c}),uw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FulcioSigner=e.DEFAULT_FULCIO_URL=void 0;var r=jr(),a=Nt(),p=lw(),n=cw();e.DEFAULT_FULCIO_URL="https://fulcio.sigstore.dev";var c=class{static{v(this,"FulcioSigner")}constructor(o){this.ca=new p.CAClient({...o,fulcioBaseURL:o.fulcioBaseURL||e.DEFAULT_FULCIO_URL}),this.identityProvider=o.identityProvider,this.keyHolder=o.keyHolder||new n.EphemeralSigner}async sign(o){let t=await this.getIdentityToken(),s;try{s=a.oidc.extractJWTSubject(t)}catch(u){throw new r.InternalError({code:"IDENTITY_TOKEN_PARSE_ERROR",message:`invalid identity token: ${t}`,cause:u})}let i=await this.keyHolder.sign(Buffer.from(s));if(i.key.$case!=="publicKey")throw new r.InternalError({code:"CA_CREATE_SIGNING_CERTIFICATE_ERROR",message:"unexpected format for signing key"});let l=await this.ca.createSigningCertificate(t,i.key.publicKey,i.signature);return{signature:(await this.keyHolder.sign(o)).signature,key:{$case:"x509Certificate",certificate:l[0]}}}async getIdentityToken(){try{return await this.identityProvider.getToken()}catch(o){throw new r.InternalError({code:"IDENTITY_TOKEN_READ_ERROR",message:"error retrieving identity token",cause:o})}}};e.FulcioSigner=c}),hw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FulcioSigner=e.DEFAULT_FULCIO_URL=void 0;var r=uw();Object.defineProperty(e,"DEFAULT_FULCIO_URL",{enumerable:!0,get:v(function(){return r.DEFAULT_FULCIO_URL},"get")}),Object.defineProperty(e,"FulcioSigner",{enumerable:!0,get:v(function(){return r.FulcioSigner},"get")})}),pw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rekor=void 0;var r=Oo(),a=class{static{v(this,"Rekor")}constructor(n){this.options=n}async createEntry(n){let{baseURL:c,timeout:o,retry:t}=this.options,s=`${c}/api/v1/log/entries`,i=await(await(0,r.fetchWithRetry)(s,{headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n),timeout:o,retry:t})).json();return p(i)}async getEntry(n){let{baseURL:c,timeout:o,retry:t}=this.options,s=`${c}/api/v1/log/entries/${n}`,i=await(await(0,r.fetchWithRetry)(s,{method:"GET",headers:{Accept:"application/json"},timeout:o,retry:t})).json();return p(i)}};e.Rekor=a;function p(n){let c=Object.entries(n);if(c.length!=1)throw new Error("Received multiple entries in Rekor response");let[o,t]=c[0];return{...t,uuid:o}}v(p,"entryFromResponse")}),dw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TLogClient=void 0;var r=jr(),a=wo(),p=pw(),n=class{static{v(this,"TLogClient")}constructor(o){this.fetchOnConflict=o.fetchOnConflict??!1,this.rekor=new p.Rekor({baseURL:o.rekorBaseURL,retry:o.retry,timeout:o.timeout})}async createEntry(o){let t;try{t=await this.rekor.createEntry(o)}catch(s){if(c(s)&&this.fetchOnConflict){let i=s.location.split("/").pop()||"";try{t=await this.rekor.getEntry(i)}catch(l){(0,r.internalError)(l,"TLOG_FETCH_ENTRY_ERROR","error fetching tlog entry")}}else(0,r.internalError)(s,"TLOG_CREATE_ENTRY_ERROR","error creating tlog entry")}return t}};e.TLogClient=n;function c(o){return o instanceof a.HTTPError&&o.statusCode===409&&o.location!==void 0}v(c,"entryExistsError")}),fw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toProposedEntry=n;var r=Ls(),a=Nt(),p="sha256";function n(i,l,u="dsse"){switch(i.$case){case"dsseEnvelope":return u==="intoto"?t(i.dsseEnvelope,l):o(i.dsseEnvelope,l);case"messageSignature":return c(i.messageSignature,l)}}v(n,"toProposedEntry");function c(i,l){let u=i.messageDigest.digest.toString("hex"),h=i.signature.toString("base64"),d=a.encoding.base64Encode(l);return{apiVersion:"0.0.1",kind:"hashedrekord",spec:{data:{hash:{algorithm:p,value:u}},signature:{content:h,publicKey:{content:d}}}}}v(c,"toProposedHashedRekordEntry");function o(i,l){let u=JSON.stringify((0,r.envelopeToJSON)(i)),h=a.encoding.base64Encode(l);return{apiVersion:"0.0.1",kind:"dsse",spec:{proposedContent:{envelope:u,verifiers:[h]}}}}v(o,"toProposedDSSEEntry");function t(i,l){let u=a.crypto.digest(p,i.payload).toString("hex"),h=s(i,l),d=a.encoding.base64Encode(i.payload.toString("base64")),g=a.encoding.base64Encode(i.signatures[0].sig.toString("base64")),m=i.signatures[0].keyid,f=a.encoding.base64Encode(l),y={payloadType:i.payloadType,payload:d,signatures:[{sig:g,publicKey:f}]};return m.length>0&&(y.signatures[0].keyid=m),{apiVersion:"0.0.2",kind:"intoto",spec:{content:{envelope:y,hash:{algorithm:p,value:h},payloadHash:{algorithm:p,value:u}}}}}v(t,"toProposedIntotoEntry");function s(i,l){let u={payloadType:i.payloadType,payload:i.payload.toString("base64"),signatures:[{sig:i.signatures[0].sig.toString("base64"),publicKey:l}]};return i.signatures[0].keyid.length>0&&(u.signatures[0].keyid=i.signatures[0].keyid),a.crypto.digest(p,a.json.canonicalize(u)).toString("hex")}v(s,"calculateDSSEHash")}),gw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RekorWitness=e.DEFAULT_REKOR_URL=void 0;var r=Nt(),a=dw(),p=fw();e.DEFAULT_REKOR_URL="https://rekor.sigstore.dev";var n=class{static{v(this,"RekorWitness")}constructor(s){this.entryType=s.entryType,this.tlog=new a.TLogClient({...s,rekorBaseURL:s.rekorBaseURL||e.DEFAULT_REKOR_URL})}async testify(s,i){let l=(0,p.toProposedEntry)(s,i,this.entryType),u=await this.tlog.createEntry(l);return c(u)}};e.RekorWitness=n;function c(s){let i=Buffer.from(s.logID,"hex"),l=r.encoding.base64Decode(s.body),u=JSON.parse(l),h=s?.verification?.signedEntryTimestamp?o(s.verification.signedEntryTimestamp):void 0,d=s?.verification?.inclusionProof?t(s.verification.inclusionProof):void 0;return{tlogEntries:[{logIndex:s.logIndex.toString(),logId:{keyId:i},integratedTime:s.integratedTime.toString(),kindVersion:{kind:u.kind,version:u.apiVersion},inclusionPromise:h,inclusionProof:d,canonicalizedBody:Buffer.from(s.body,"base64")}]}}v(c,"toTransparencyLogEntry");function o(s){return{signedEntryTimestamp:Buffer.from(s,"base64")}}v(o,"inclusionPromise");function t(s){return{logIndex:s.logIndex.toString(),treeSize:s.treeSize.toString(),rootHash:Buffer.from(s.rootHash,"hex"),hashes:s.hashes.map(i=>Buffer.from(i,"hex")),checkpoint:{envelope:s.checkpoint}}}v(t,"inclusionProof")}),mw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TimestampAuthority=void 0;var r=Oo(),a=class{static{v(this,"TimestampAuthority")}constructor(p){this.options=p}async createTimestamp(p){let{baseURL:n,timeout:c,retry:o}=this.options,t=`${n}/api/v1/timestamp`;return(await(0,r.fetchWithRetry)(t,{headers:{"Content-Type":"application/json"},body:JSON.stringify(p),timeout:c,retry:o})).buffer()}};e.TimestampAuthority=a}),yw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TSAClient=void 0;var r=jr(),a=mw(),p=Nt(),n="sha256",c=class{static{v(this,"TSAClient")}constructor(o){this.tsa=new a.TimestampAuthority({baseURL:o.tsaBaseURL,retry:o.retry,timeout:o.timeout})}async createTimestamp(o){let t={artifactHash:p.crypto.digest(n,o).toString("base64"),hashAlgorithm:n};try{return await this.tsa.createTimestamp(t)}catch(s){(0,r.internalError)(s,"TSA_CREATE_TIMESTAMP_ERROR","error creating timestamp")}}};e.TSAClient=c}),vw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TSAWitness=void 0;var r=yw(),a=class{static{v(this,"TSAWitness")}constructor(n){this.tsa=new r.TSAClient({tsaBaseURL:n.tsaBaseURL,retry:n.retry,timeout:n.timeout})}async testify(n){let c=p(n);return{rfc3161Timestamps:[{signedTimestamp:await this.tsa.createTimestamp(c)}]}}};e.TSAWitness=a;function p(n){switch(n.$case){case"dsseEnvelope":return n.dsseEnvelope.signatures[0].sig;case"messageSignature":return n.messageSignature.signature}}v(p,"extractSignature")}),Sw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TSAWitness=e.RekorWitness=e.DEFAULT_REKOR_URL=void 0;var r=gw();Object.defineProperty(e,"DEFAULT_REKOR_URL",{enumerable:!0,get:v(function(){return r.DEFAULT_REKOR_URL},"get")}),Object.defineProperty(e,"RekorWitness",{enumerable:!0,get:v(function(){return r.RekorWitness},"get")});var a=vw();Object.defineProperty(e,"TSAWitness",{enumerable:!0,get:v(function(){return a.TSAWitness},"get")})}),Ah=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TSAWitness=e.RekorWitness=e.DEFAULT_REKOR_URL=e.FulcioSigner=e.DEFAULT_FULCIO_URL=e.CIContextProvider=e.InternalError=e.MessageSignatureBundleBuilder=e.DSSEBundleBuilder=void 0;var r=iw();Object.defineProperty(e,"DSSEBundleBuilder",{enumerable:!0,get:v(function(){return r.DSSEBundleBuilder},"get")}),Object.defineProperty(e,"MessageSignatureBundleBuilder",{enumerable:!0,get:v(function(){return r.MessageSignatureBundleBuilder},"get")});var a=jr();Object.defineProperty(e,"InternalError",{enumerable:!0,get:v(function(){return a.InternalError},"get")});var p=ow();Object.defineProperty(e,"CIContextProvider",{enumerable:!0,get:v(function(){return p.CIContextProvider},"get")});var n=hw();Object.defineProperty(e,"DEFAULT_FULCIO_URL",{enumerable:!0,get:v(function(){return n.DEFAULT_FULCIO_URL},"get")}),Object.defineProperty(e,"FulcioSigner",{enumerable:!0,get:v(function(){return n.FulcioSigner},"get")});var c=Sw();Object.defineProperty(e,"DEFAULT_REKOR_URL",{enumerable:!0,get:v(function(){return c.DEFAULT_REKOR_URL},"get")}),Object.defineProperty(e,"RekorWitness",{enumerable:!0,get:v(function(){return c.RekorWitness},"get")}),Object.defineProperty(e,"TSAWitness",{enumerable:!0,get:v(function(){return c.TSAWitness},"get")})}),Ew=K(e=>{"use strict";var r=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.appDataPath=n;var a=r(require("os")),p=r(require("path"));function n(c){let o=a.default.homedir();switch(process.platform){case"darwin":{let t=p.default.join(o,"Library","Application Support");return p.default.join(t,c)}case"win32":{let t=process.env.LOCALAPPDATA||p.default.join(o,"AppData","Local");return p.default.join(t,c,"Data")}default:{let t=process.env.XDG_DATA_HOME||p.default.join(o,".local","share");return p.default.join(t,c)}}}v(n,"appDataPath")}),St=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedAlgorithmError=e.CryptoError=e.LengthOrHashMismatchError=e.UnsignedMetadataError=e.RepositoryError=e.ValueError=void 0;var r=class extends Error{static{v(this,"ValueError")}};e.ValueError=r;var a=class extends Error{static{v(this,"RepositoryError")}};e.RepositoryError=a;var p=class extends a{static{v(this,"UnsignedMetadataError")}};e.UnsignedMetadataError=p;var n=class extends a{static{v(this,"LengthOrHashMismatchError")}};e.LengthOrHashMismatchError=n;var c=class extends Error{static{v(this,"CryptoError")}};e.CryptoError=c;var o=class extends c{static{v(this,"UnsupportedAlgorithmError")}};e.UnsupportedAlgorithmError=o}),bw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDefined=r,e.isObject=a,e.isStringArray=p,e.isObjectArray=n,e.isStringRecord=c,e.isObjectRecord=o;function r(t){return t!==void 0}v(r,"isDefined");function a(t){return typeof t=="object"&&t!==null}v(a,"isObject");function p(t){return Array.isArray(t)&&t.every(s=>typeof s=="string")}v(p,"isStringArray");function n(t){return Array.isArray(t)&&t.every(a)}v(n,"isObjectArray");function c(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(s=>typeof s=="string")&&Object.values(t).every(s=>typeof s=="string")}v(c,"isStringRecord");function o(t){return typeof t=="object"&&t!==null&&Object.keys(t).every(s=>typeof s=="string")&&Object.values(t).every(s=>typeof s=="object"&&s!==null)}v(o,"isObjectRecord")}),Rh=K((e,r)=>{function a(n){let c=[];if(typeof n=="string")c.push(p(n));else if(typeof n=="boolean")c.push(JSON.stringify(n));else if(Number.isInteger(n))c.push(JSON.stringify(n));else if(n===null)c.push(JSON.stringify(n));else if(Array.isArray(n)){c.push("[");let o=!0;n.forEach(t=>{o||c.push(","),o=!1,c.push(a(t))}),c.push("]")}else if(typeof n=="object"){c.push("{");let o=!0;Object.keys(n).sort().forEach(t=>{o||c.push(","),o=!1,c.push(p(t)),c.push(":"),c.push(a(n[t]))}),c.push("}")}else throw new TypeError("cannot encode "+n.toString());return c.join("")}v(a,"canonicalize");function p(n){return'"'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}v(p,"canonicalizeString"),r.exports={canonicalize:a}}),_w=K(e=>{"use strict";var r=e&&e.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(e,"__esModule",{value:!0}),e.verifySignature=void 0;var a=Rh(),p=r(require("crypto")),n=v((c,o,t)=>{let s=Buffer.from((0,a.canonicalize)(c));return p.default.verify(void 0,s,o,Buffer.from(t,"hex"))},"verifySignature");e.verifySignature=n}),gt=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(n,c,o,t){t===void 0&&(t=o);var s=Object.getOwnPropertyDescriptor(c,o);(!s||("get"in s?!c.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:v(function(){return c[o]},"get")}),Object.defineProperty(n,t,s)}:function(n,c,o,t){t===void 0&&(t=o),n[t]=c[o]}),a=e&&e.__setModuleDefault||(Object.create?function(n,c){Object.defineProperty(n,"default",{enumerable:!0,value:c})}:function(n,c){n.default=c}),p=e&&e.__importStar||function(){var n=v(function(c){return n=Object.getOwnPropertyNames||function(o){var t=[];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[t.length]=s);return t},n(c)},"ownKeys");return function(c){if(c&&c.__esModule)return c;var o={};if(c!=null)for(var t=n(c),s=0;s<t.length;s++)t[s]!=="default"&&r(o,c,t[s]);return a(o,c),o}}();Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.guard=void 0,e.guard=p(bw()),e.crypto=p(_w())}),Yt=K(e=>{"use strict";var r=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0}),e.Signed=e.MetadataKind=void 0,e.isMetadataKind=t;var a=r(require("util")),p=St(),n=gt(),c=["1","0","31"],o;(function(l){l.Root="root",l.Timestamp="timestamp",l.Snapshot="snapshot",l.Targets="targets"})(o||(e.MetadataKind=o={}));function t(l){return typeof l=="string"&&Object.values(o).includes(l)}v(t,"isMetadataKind");var s=class Ch{static{v(this,"Signed")}specVersion;expires;version;unrecognizedFields;constructor(u){this.specVersion=u.specVersion||c.join(".");let h=this.specVersion.split(".");if(!(h.length===2||h.length===3)||!h.every(d=>i(d)))throw new p.ValueError("Failed to parse specVersion");if(h[0]!=c[0])throw new p.ValueError("Unsupported specVersion");this.expires=u.expires,this.version=u.version,this.unrecognizedFields=u.unrecognizedFields||{}}equals(u){return u instanceof Ch?this.specVersion===u.specVersion&&this.expires===u.expires&&this.version===u.version&&a.default.isDeepStrictEqual(this.unrecognizedFields,u.unrecognizedFields):!1}isExpired(u){return u||(u=new Date),u>=new Date(this.expires)}static commonFieldsFromJSON(u){let{spec_version:h,expires:d,version:g,...m}=u;if(n.guard.isDefined(h)){if(typeof h!="string")throw new TypeError("spec_version must be a string")}else throw new p.ValueError("spec_version is not defined");if(n.guard.isDefined(d)){if(typeof d!="string")throw new TypeError("expires must be a string")}else throw new p.ValueError("expires is not defined");if(n.guard.isDefined(g)){if(typeof g!="number")throw new TypeError("version must be a number")}else throw new p.ValueError("version is not defined");return{specVersion:h,expires:d,version:g,unrecognizedFields:m}}};e.Signed=s;function i(l){return!isNaN(Number(l))}v(i,"isNumeric")}),Ms=K(e=>{"use strict";var r=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.TargetFile=e.MetaFile=void 0;var a=r(require("crypto")),p=r(require("util")),n=St(),c=gt(),o=class kn{static{v(this,"MetaFile")}version;length;hashes;unrecognizedFields;constructor(l){if(l.version<=0)throw new n.ValueError("Metafile version must be at least 1");l.length!==void 0&&s(l.length),this.version=l.version,this.length=l.length,this.hashes=l.hashes,this.unrecognizedFields=l.unrecognizedFields||{}}equals(l){return l instanceof kn?this.version===l.version&&this.length===l.length&&p.default.isDeepStrictEqual(this.hashes,l.hashes)&&p.default.isDeepStrictEqual(this.unrecognizedFields,l.unrecognizedFields):!1}verify(l){if(this.length!==void 0&&l.length!==this.length)throw new n.LengthOrHashMismatchError(`Expected length ${this.length} but got ${l.length}`);this.hashes&&Object.entries(this.hashes).forEach(([u,h])=>{let d;try{d=a.default.createHash(u)}catch{throw new n.LengthOrHashMismatchError(`Hash algorithm ${u} not supported`)}let g=d.update(l).digest("hex");if(g!==h)throw new n.LengthOrHashMismatchError(`Expected hash ${h} but got ${g}`)})}toJSON(){let l={version:this.version,...this.unrecognizedFields};return this.length!==void 0&&(l.length=this.length),this.hashes&&(l.hashes=this.hashes),l}static fromJSON(l){let{version:u,length:h,hashes:d,...g}=l;if(typeof u!="number")throw new TypeError("version must be a number");if(c.guard.isDefined(h)&&typeof h!="number")throw new TypeError("length must be a number");if(c.guard.isDefined(d)&&!c.guard.isStringRecord(d))throw new TypeError("hashes must be string keys and values");return new kn({version:u,length:h,hashes:d,unrecognizedFields:g})}};e.MetaFile=o;var t=class Ln{static{v(this,"TargetFile")}length;path;hashes;unrecognizedFields;constructor(l){s(l.length),this.length=l.length,this.path=l.path,this.hashes=l.hashes,this.unrecognizedFields=l.unrecognizedFields||{}}get custom(){let l=this.unrecognizedFields.custom;return!l||Array.isArray(l)||typeof l!="object"?{}:l}equals(l){return l instanceof Ln?this.length===l.length&&this.path===l.path&&p.default.isDeepStrictEqual(this.hashes,l.hashes)&&p.default.isDeepStrictEqual(this.unrecognizedFields,l.unrecognizedFields):!1}async verify(l){let u=0,h=Object.keys(this.hashes).reduce((d,g)=>{try{d[g]=a.default.createHash(g)}catch{throw new n.LengthOrHashMismatchError(`Hash algorithm ${g} not supported`)}return d},{});for await(let d of l)u+=d.length,Object.values(h).forEach(g=>{g.update(d)});if(u!==this.length)throw new n.LengthOrHashMismatchError(`Expected length ${this.length} but got ${u}`);Object.entries(h).forEach(([d,g])=>{let m=this.hashes[d],f=g.digest("hex");if(f!==m)throw new n.LengthOrHashMismatchError(`Expected hash ${m} but got ${f}`)})}toJSON(){return{length:this.length,hashes:this.hashes,...this.unrecognizedFields}}static fromJSON(l,u){let{length:h,hashes:d,...g}=u;if(typeof h!="number")throw new TypeError("length must be a number");if(!c.guard.isStringRecord(d))throw new TypeError("hashes must have string keys and values");return new Ln({length:h,path:l,hashes:d,unrecognizedFields:g})}};e.TargetFile=t;function s(i){if(i<0)throw new n.ValueError("Length must be at least 0")}v(s,"validateLength")}),ww=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeOIDString=a;var r=6;function a(n){let c=n.split("."),o=parseInt(c[0],10)*40+parseInt(c[1],10),t=[];c.slice(2).forEach(i=>{let l=p(parseInt(i,10));t.push(...l)});let s=Buffer.from([o,...t]);return Buffer.from([r,s.length,...s])}v(a,"encodeOIDString");function p(n){let c=[],o=0;for(;n>0;)c.unshift(n&127|o),n>>=7,o=128;return c}v(p,"encodeVariableLengthInteger")}),Ow=K(e=>{"use strict";var r=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.getPublicKey=h;var a=r(require("crypto")),p=St(),n=ww(),c=48,o=3,t=0,s="1.3.101.112",i="1.2.840.10045.2.1",l="1.2.840.10045.3.1.7",u="-----BEGIN PUBLIC KEY-----";function h(E){switch(E.keyType){case"rsa":return d(E);case"ed25519":return g(E);case"ecdsa":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":return m(E);default:throw new p.UnsupportedAlgorithmError(`Unsupported key type: ${E.keyType}`)}}v(h,"getPublicKey");function d(E){if(!E.keyVal.startsWith(u))throw new p.CryptoError("Invalid key format");let b=a.default.createPublicKey(E.keyVal);switch(E.scheme){case"rsassa-pss-sha256":return{key:b,padding:a.default.constants.RSA_PKCS1_PSS_PADDING};default:throw new p.UnsupportedAlgorithmError(`Unsupported RSA scheme: ${E.scheme}`)}}v(d,"getRSAPublicKey");function g(E){let b;if(E.keyVal.startsWith(u))b=a.default.createPublicKey(E.keyVal);else{if(!S(E.keyVal))throw new p.CryptoError("Invalid key format");b=a.default.createPublicKey({key:f.hexToDER(E.keyVal),format:"der",type:"spki"})}return{key:b}}v(g,"getED25519PublicKey");function m(E){let b;if(E.keyVal.startsWith(u))b=a.default.createPublicKey(E.keyVal);else{if(!S(E.keyVal))throw new p.CryptoError("Invalid key format");b=a.default.createPublicKey({key:y.hexToDER(E.keyVal),format:"der",type:"spki"})}return{key:b}}v(m,"getECDCSAPublicKey");var f={hexToDER:v(E=>{let b=Buffer.from(E,"hex"),_=(0,n.encodeOIDString)(s),w=Buffer.concat([Buffer.concat([Buffer.from([c]),Buffer.from([_.length]),_]),Buffer.concat([Buffer.from([o]),Buffer.from([b.length+1]),Buffer.from([t]),b])]);return Buffer.concat([Buffer.from([c]),Buffer.from([w.length]),w])},"hexToDER")},y={hexToDER:v(E=>{let b=Buffer.from(E,"hex"),_=Buffer.concat([Buffer.from([o]),Buffer.from([b.length+1]),Buffer.from([t]),b]),w=Buffer.concat([(0,n.encodeOIDString)(i),(0,n.encodeOIDString)(l)]),O=Buffer.concat([Buffer.from([c]),Buffer.from([w.length]),w]);return Buffer.concat([Buffer.from([c]),Buffer.from([O.length+_.length]),O,_])},"hexToDER")},S=v(E=>/^[0-9a-fA-F]+$/.test(E),"isHex")}),Ao=K(e=>{"use strict";var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Key=void 0;var a=r(require("util")),p=St(),n=gt(),c=Ow(),o=class Dn{static{v(this,"Key")}keyID;keyType;scheme;keyVal;unrecognizedFields;constructor(s){let{keyID:i,keyType:l,scheme:u,keyVal:h,unrecognizedFields:d}=s;this.keyID=i,this.keyType=l,this.scheme=u,this.keyVal=h,this.unrecognizedFields=d||{}}verifySignature(s){let i=s.signatures[this.keyID];if(!i)throw new p.UnsignedMetadataError("no signature for key found in metadata");if(!this.keyVal.public)throw new p.UnsignedMetadataError("no public key found");let l=(0,c.getPublicKey)({keyType:this.keyType,scheme:this.scheme,keyVal:this.keyVal.public}),u=s.signed.toJSON();try{if(!n.crypto.verifySignature(u,l,i.sig))throw new p.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}catch(h){throw h instanceof p.UnsignedMetadataError?h:new p.UnsignedMetadataError(`failed to verify ${this.keyID} signature`)}}equals(s){return s instanceof Dn?this.keyID===s.keyID&&this.keyType===s.keyType&&this.scheme===s.scheme&&a.default.isDeepStrictEqual(this.keyVal,s.keyVal)&&a.default.isDeepStrictEqual(this.unrecognizedFields,s.unrecognizedFields):!1}toJSON(){return{keytype:this.keyType,scheme:this.scheme,keyval:this.keyVal,...this.unrecognizedFields}}static fromJSON(s,i){let{keytype:l,scheme:u,keyval:h,...d}=i;if(typeof l!="string")throw new TypeError("keytype must be a string");if(typeof u!="string")throw new TypeError("scheme must be a string");if(!n.guard.isStringRecord(h))throw new TypeError("keyval must be a string record");return new Dn({keyID:s,keyType:l,scheme:u,keyVal:h,unrecognizedFields:d})}};e.Key=o}),Aw=K((e,r)=>{"use strict";r.exports=a;function a(c,o,t){c instanceof RegExp&&(c=p(c,t)),o instanceof RegExp&&(o=p(o,t));var s=n(c,o,t);return s&&{start:s[0],end:s[1],pre:t.slice(0,s[0]),body:t.slice(s[0]+c.length,s[1]),post:t.slice(s[1]+o.length)}}v(a,"balanced");function p(c,o){var t=o.match(c);return t?t[0]:null}v(p,"maybeMatch"),a.range=n;function n(c,o,t){var s,i,l,u,h,d=t.indexOf(c),g=t.indexOf(o,d+1),m=d;if(d>=0&&g>0){if(c===o)return[d,g];for(s=[],l=t.length;m>=0&&!h;)m==d?(s.push(m),d=t.indexOf(c,m+1)):s.length==1?h=[s.pop(),g]:(i=s.pop(),i<l&&(l=i,u=g),g=t.indexOf(o,m+1)),m=d<g&&d>=0?d:g;s.length&&(h=[l,u])}return h}v(n,"range")}),Rw=K((e,r)=>{var a=Aw();r.exports=h;var p="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",c="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",t="\0PERIOD"+Math.random()+"\0";function s(S){return parseInt(S,10)==S?parseInt(S,10):S.charCodeAt(0)}v(s,"numeric");function i(S){return S.split("\\\\").join(p).split("\\{").join(n).split("\\}").join(c).split("\\,").join(o).split("\\.").join(t)}v(i,"escapeBraces");function l(S){return S.split(p).join("\\").split(n).join("{").split(c).join("}").split(o).join(",").split(t).join(".")}v(l,"unescapeBraces");function u(S){if(!S)return[""];var E=[],b=a("{","}",S);if(!b)return S.split(",");var _=b.pre,w=b.body,O=b.post,R=_.split(",");R[R.length-1]+="{"+w+"}";var I=u(O);return O.length&&(R[R.length-1]+=I.shift(),R.push.apply(R,I)),E.push.apply(E,R),E}v(u,"parseCommaParts");function h(S){return S?(S.substr(0,2)==="{}"&&(S="\\{\\}"+S.substr(2)),y(i(S),!0).map(l)):[]}v(h,"expandTop");function d(S){return"{"+S+"}"}v(d,"embrace");function g(S){return/^-?0\d/.test(S)}v(g,"isPadded");function m(S,E){return S<=E}v(m,"lte");function f(S,E){return S>=E}v(f,"gte");function y(S,E){var b=[],_=a("{","}",S);if(!_)return[S];var w=_.pre,O=_.post.length?y(_.post,!1):[""];if(/\$$/.test(_.pre))for(var R=0;R<O.length;R++){var I=w+"{"+_.body+"}"+O[R];b.push(I)}else{var P=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(_.body),L=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(_.body),M=P||L,x=_.body.indexOf(",")>=0;if(!M&&!x)return _.post.match(/,(?!,).*\}/)?(S=_.pre+"{"+_.body+c+_.post,y(S)):[S];var j;if(M)j=_.body.split(/\.\./);else if(j=u(_.body),j.length===1&&(j=y(j[0],!1).map(d),j.length===1))return O.map(function(F){return _.pre+j[0]+F});var U;if(M){var V=s(j[0]),B=s(j[1]),G=Math.max(j[0].length,j[1].length),W=j.length==3?Math.abs(s(j[2])):1,N=m,D=B<V;D&&(W*=-1,N=f);var T=j.some(g);U=[];for(var C=V;N(C,B);C+=W){var Z;if(L)Z=String.fromCharCode(C),Z==="\\"&&(Z="");else if(Z=String(C),T){var X=G-Z.length;if(X>0){var Q=new Array(X+1).join("0");C<0?Z="-"+Q+Z.slice(1):Z=Q+Z}}U.push(Z)}}else{U=[];for(var k=0;k<j.length;k++)U.push.apply(U,y(j[k],!1))}for(var k=0;k<U.length;k++)for(var R=0;R<O.length;R++){var I=w+U[k]+O[R];(!E||M||I)&&b.push(I)}}return b}v(y,"expand")}),Cw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertValidPattern=void 0;var r=1024*64,a=v(p=>{if(typeof p!="string")throw new TypeError("invalid pattern");if(p.length>r)throw new TypeError("pattern is too long")},"assertValidPattern");e.assertValidPattern=a}),Iw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseClass=void 0;var r={"[: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]},a=v(o=>o.replace(/[[\]\\-]/g,"\\$&"),"braceEscape"),p=v(o=>o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regexpEscape"),n=v(o=>o.join(""),"rangesToString"),c=v((o,t)=>{let s=t;if(o.charAt(s)!=="[")throw new Error("not in a brace expression");let i=[],l=[],u=s+1,h=!1,d=!1,g=!1,m=!1,f=s,y="";e:for(;u<o.length;){let b=o.charAt(u);if((b==="!"||b==="^")&&u===s+1){m=!0,u++;continue}if(b==="]"&&h&&!g){f=u+1;break}if(h=!0,b==="\\"&&!g){g=!0,u++;continue}if(b==="["&&!g){for(let[_,[w,O,R]]of Object.entries(r))if(o.startsWith(_,u)){if(y)return["$.",!1,o.length-s,!0];u+=_.length,R?l.push(w):i.push(w),d=d||O;continue e}}if(g=!1,y){b>y?i.push(a(y)+"-"+a(b)):b===y&&i.push(a(b)),y="",u++;continue}if(o.startsWith("-]",u+1)){i.push(a(b+"-")),u+=2;continue}if(o.startsWith("-",u+1)){y=b,u+=2;continue}i.push(a(b)),u++}if(f<u)return["",!1,0,!1];if(!i.length&&!l.length)return["$.",!1,o.length-s,!0];if(l.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){let b=i[0].length===2?i[0].slice(-1):i[0];return[p(b),!1,f-s,!1]}let S="["+(m?"^":"")+n(i)+"]",E="["+(m?"":"^")+n(l)+"]";return[i.length&&l.length?"("+S+"|"+E+")":i.length?S:E,d,f-s,!0]},"parseClass");e.parseClass=c}),Mn=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unescape=void 0;var r=v((a,{windowsPathsNoEscape:p=!1}={})=>p?a.replace(/\[([^\/\\])\]/g,"$1"):a.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),"unescape");e.unescape=r}),$c=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AST=void 0;var r=Iw(),a=Mn(),p=new Set(["!","?","+","*","@"]),n=v(m=>p.has(m),"isExtglobType"),c="(?!(?:^|/)\\.\\.?(?:$|/))",o="(?!\\.)",t=new Set(["[","."]),s=new Set(["..","."]),i=new Set("().*{}+?[]^$\\!"),l=v(m=>m.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),u="[^/]",h=u+"*?",d=u+"+?",g=class Ze{static{v(this,"AST")}type;#e;#t;#r=!1;#s=[];#i;#c;#l;#h=!1;#o;#u;#n=!1;constructor(f,y,S={}){this.type=f,f&&(this.#t=!0),this.#i=y,this.#e=this.#i?this.#i.#e:this,this.#o=this.#e===this?S:this.#e.#o,this.#l=this.#e===this?[]:this.#e.#l,f==="!"&&!this.#e.#h&&this.#l.push(this),this.#c=this.#i?this.#i.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let f of this.#s)if(typeof f!="string"&&(f.type||f.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#s.map(f=>String(f)).join("|")+")":this.#u=this.#s.map(f=>String(f)).join("")}#d(){if(this!==this.#e)throw new Error("should only call on root");if(this.#h)return this;this.toString(),this.#h=!0;let f;for(;f=this.#l.pop();){if(f.type!=="!")continue;let y=f,S=y.#i;for(;S;){for(let E=y.#c+1;!S.type&&E<S.#s.length;E++)for(let b of f.#s){if(typeof b=="string")throw new Error("string part in extglob AST??");b.copyIn(S.#s[E])}y=S,S=y.#i}}return this}push(...f){for(let y of f)if(y!==""){if(typeof y!="string"&&!(y instanceof Ze&&y.#i===this))throw new Error("invalid part: "+y);this.#s.push(y)}}toJSON(){let f=this.type===null?this.#s.slice().map(y=>typeof y=="string"?y:y.toJSON()):[this.type,...this.#s.map(y=>y.toJSON())];return this.isStart()&&!this.type&&f.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#h&&this.#i?.type==="!")&&f.push({}),f}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#c===0)return!0;let f=this.#i;for(let y=0;y<this.#c;y++){let S=f.#s[y];if(!(S instanceof Ze&&S.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#i?.type==="!")return!0;if(!this.#i?.isEnd())return!1;if(!this.type)return this.#i?.isEnd();let f=this.#i?this.#i.#s.length:0;return this.#c===f-1}copyIn(f){typeof f=="string"?this.push(f):this.push(f.clone(this))}clone(f){let y=new Ze(this.type,f);for(let S of this.#s)y.copyIn(S);return y}static#a(f,y,S,E){let b=!1,_=!1,w=-1,O=!1;if(y.type===null){let M=S,x="";for(;M<f.length;){let j=f.charAt(M++);if(b||j==="\\"){b=!b,x+=j;continue}if(_){M===w+1?(j==="^"||j==="!")&&(O=!0):j==="]"&&!(M===w+2&&O)&&(_=!1),x+=j;continue}else if(j==="["){_=!0,w=M,O=!1,x+=j;continue}if(!E.noext&&n(j)&&f.charAt(M)==="("){y.push(x),x="";let U=new Ze(j,y);M=Ze.#a(f,U,M,E),y.push(U);continue}x+=j}return y.push(x),M}let R=S+1,I=new Ze(null,y),P=[],L="";for(;R<f.length;){let M=f.charAt(R++);if(b||M==="\\"){b=!b,L+=M;continue}if(_){R===w+1?(M==="^"||M==="!")&&(O=!0):M==="]"&&!(R===w+2&&O)&&(_=!1),L+=M;continue}else if(M==="["){_=!0,w=R,O=!1,L+=M;continue}if(n(M)&&f.charAt(R)==="("){I.push(L),L="";let x=new Ze(M,I);I.push(x),R=Ze.#a(f,x,R,E);continue}if(M==="|"){I.push(L),L="",P.push(I),I=new Ze(null,y);continue}if(M===")")return L===""&&y.#s.length===0&&(y.#n=!0),I.push(L),L="",y.push(...P,I),R;L+=M}return y.type=null,y.#t=void 0,y.#s=[f.substring(S-1)],R}static fromGlob(f,y={}){let S=new Ze(null,void 0,y);return Ze.#a(f,S,0,y),S}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let f=this.toString(),[y,S,E,b]=this.toRegExpSource();if(!(E||this.#t||this.#o.nocase&&!this.#o.nocaseMagicOnly&&f.toUpperCase()!==f.toLowerCase()))return S;let _=(this.#o.nocase?"i":"")+(b?"u":"");return Object.assign(new RegExp(`^${y}$`,_),{_src:y,_glob:f})}get options(){return this.#o}toRegExpSource(f){let y=f??!!this.#o.dot;if(this.#e===this&&this.#d(),!this.type){let O=this.isStart()&&this.isEnd(),R=this.#s.map(L=>{let[M,x,j,U]=typeof L=="string"?Ze.#g(L,this.#t,O):L.toRegExpSource(f);return this.#t=this.#t||j,this.#r=this.#r||U,M}).join(""),I="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&s.has(this.#s[0]))){let L=t,M=y&&L.has(R.charAt(0))||R.startsWith("\\.")&&L.has(R.charAt(2))||R.startsWith("\\.\\.")&&L.has(R.charAt(4)),x=!y&&!f&&L.has(R.charAt(0));I=M?c:x?o:""}let P="";return this.isEnd()&&this.#e.#h&&this.#i?.type==="!"&&(P="(?:$|\\/)"),[I+R+P,(0,a.unescape)(R),this.#t=!!this.#t,this.#r]}let S=this.type==="*"||this.type==="+",E=this.type==="!"?"(?:(?!(?:":"(?:",b=this.#f(y);if(this.isStart()&&this.isEnd()&&!b&&this.type!=="!"){let O=this.toString();return this.#s=[O],this.type=null,this.#t=void 0,[O,(0,a.unescape)(this.toString()),!1,!1]}let _=!S||f||y||!o?"":this.#f(!0);_===b&&(_=""),_&&(b=`(?:${b})(?:${_})*?`);let w="";if(this.type==="!"&&this.#n)w=(this.isStart()&&!y?o:"")+d;else{let O=this.type==="!"?"))"+(this.isStart()&&!y&&!f?o:"")+h+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&_?")":this.type==="*"&&_?")?":`)${this.type}`;w=E+b+O}return[w,(0,a.unescape)(b),this.#t=!!this.#t,this.#r]}#f(f){return this.#s.map(y=>{if(typeof y=="string")throw new Error("string type in extglob ast??");let[S,E,b,_]=y.toRegExpSource(f);return this.#r=this.#r||_,S}).filter(y=>!(this.isStart()&&this.isEnd())||!!y).join("|")}static#g(f,y,S=!1){let E=!1,b="",_=!1;for(let w=0;w<f.length;w++){let O=f.charAt(w);if(E){E=!1,b+=(i.has(O)?"\\":"")+O;continue}if(O==="\\"){w===f.length-1?b+="\\\\":E=!0;continue}if(O==="["){let[R,I,P,L]=(0,r.parseClass)(f,w);if(P){b+=R,_=_||I,w+=P-1,y=y||L;continue}}if(O==="*"){S&&f==="*"?b+=d:b+=h,y=!0;continue}if(O==="?"){b+=u,y=!0;continue}b+=l(O)}return[b,(0,a.unescape)(f),!!y,_]}};e.AST=g}),Bc=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escape=void 0;var r=v((a,{windowsPathsNoEscape:p=!1}={})=>p?a.replace(/[?*()[\]]/g,"[$&]"):a.replace(/[?*()[\]\\]/g,"\\$&"),"escape");e.escape=r}),Tw=K(e=>{"use strict";var r=e&&e.__importDefault||function($){return $&&$.__esModule?$:{default:$}};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;var a=r(Rw()),p=Cw(),n=$c(),c=Bc(),o=Mn(),t=v(($,q,J={})=>((0,p.assertValidPattern)(q),!J.nocomment&&q.charAt(0)==="#"?!1:new Q(q,J).match($)),"minimatch");e.minimatch=t;var s=/^\*+([^+@!?\*\[\(]*)$/,i=v($=>q=>!q.startsWith(".")&&q.endsWith($),"starDotExtTest"),l=v($=>q=>q.endsWith($),"starDotExtTestDot"),u=v($=>($=$.toLowerCase(),q=>!q.startsWith(".")&&q.toLowerCase().endsWith($)),"starDotExtTestNocase"),h=v($=>($=$.toLowerCase(),q=>q.toLowerCase().endsWith($)),"starDotExtTestNocaseDot"),d=/^\*+\.\*+$/,g=v($=>!$.startsWith(".")&&$.includes("."),"starDotStarTest"),m=v($=>$!=="."&&$!==".."&&$.includes("."),"starDotStarTestDot"),f=/^\.\*+$/,y=v($=>$!=="."&&$!==".."&&$.startsWith("."),"dotStarTest"),S=/^\*+$/,E=v($=>$.length!==0&&!$.startsWith("."),"starTest"),b=v($=>$.length!==0&&$!=="."&&$!=="..","starTestDot"),_=/^\?+([^+@!?\*\[\(]*)?$/,w=v(([$,q=""])=>{let J=P([$]);return q?(q=q.toLowerCase(),Y=>J(Y)&&Y.toLowerCase().endsWith(q)):J},"qmarksTestNocase"),O=v(([$,q=""])=>{let J=L([$]);return q?(q=q.toLowerCase(),Y=>J(Y)&&Y.toLowerCase().endsWith(q)):J},"qmarksTestNocaseDot"),R=v(([$,q=""])=>{let J=L([$]);return q?Y=>J(Y)&&Y.endsWith(q):J},"qmarksTestDot"),I=v(([$,q=""])=>{let J=P([$]);return q?Y=>J(Y)&&Y.endsWith(q):J},"qmarksTest"),P=v(([$])=>{let q=$.length;return J=>J.length===q&&!J.startsWith(".")},"qmarksTestNoExt"),L=v(([$])=>{let q=$.length;return J=>J.length===q&&J!=="."&&J!==".."},"qmarksTestNoExtDot"),M=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",x={win32:{sep:"\\"},posix:{sep:"/"}};e.sep=M==="win32"?x.win32.sep:x.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol("globstar **"),e.minimatch.GLOBSTAR=e.GLOBSTAR;var j="[^/]",U=j+"*?",V="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",B="(?:(?!(?:\\/|^)\\.).)*?",G=v(($,q={})=>J=>(0,e.minimatch)(J,$,q),"filter");e.filter=G,e.minimatch.filter=e.filter;var W=v(($,q={})=>Object.assign({},$,q),"ext"),N=v($=>{if(!$||typeof $!="object"||!Object.keys($).length)return e.minimatch;let q=e.minimatch;return Object.assign(v((J,Y,A={})=>q(J,Y,W($,A)),"m"),{Minimatch:class extends q.Minimatch{static{v(this,"Minimatch")}constructor(J,Y={}){super(J,W($,Y))}static defaults(J){return q.defaults(W($,J)).Minimatch}},AST:class extends q.AST{static{v(this,"AST")}constructor(J,Y,A={}){super(J,Y,W($,A))}static fromGlob(J,Y={}){return q.AST.fromGlob(J,W($,Y))}},unescape:v((J,Y={})=>q.unescape(J,W($,Y)),"unescape"),escape:v((J,Y={})=>q.escape(J,W($,Y)),"escape"),filter:v((J,Y={})=>q.filter(J,W($,Y)),"filter"),defaults:v(J=>q.defaults(W($,J)),"defaults"),makeRe:v((J,Y={})=>q.makeRe(J,W($,Y)),"makeRe"),braceExpand:v((J,Y={})=>q.braceExpand(J,W($,Y)),"braceExpand"),match:v((J,Y,A={})=>q.match(J,Y,W($,A)),"match"),sep:q.sep,GLOBSTAR:e.GLOBSTAR})},"defaults");e.defaults=N,e.minimatch.defaults=e.defaults;var D=v(($,q={})=>((0,p.assertValidPattern)($),q.nobrace||!/\{(?:(?!\{).)*\}/.test($)?[$]:(0,a.default)($)),"braceExpand");e.braceExpand=D,e.minimatch.braceExpand=e.braceExpand;var T=v(($,q={})=>new Q($,q).makeRe(),"makeRe");e.makeRe=T,e.minimatch.makeRe=e.makeRe;var C=v(($,q,J={})=>{let Y=new Q(q,J);return $=$.filter(A=>Y.match(A)),Y.options.nonull&&!$.length&&$.push(q),$},"match");e.match=C,e.minimatch.match=e.match;var Z=/[?*]|[+@!]\(.*?\)|\[|\]/,X=v($=>$.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"regExpEscape"),Q=class{static{v(this,"Minimatch")}options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor($,q={}){(0,p.assertValidPattern)($),q=q||{},this.options=q,this.pattern=$,this.platform=q.platform||M,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!q.windowsPathsNoEscape||q.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!q.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!q.nonegate,this.comment=!1,this.empty=!1,this.partial=!!q.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=q.windowsNoMagicRoot!==void 0?q.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(let $ of this.set)for(let q of $)if(typeof q!="string")return!0;return!1}debug(...$){}make(){let $=this.pattern,q=this.options;if(!q.nocomment&&$.charAt(0)==="#"){this.comment=!0;return}if(!$){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],q.debug&&(this.debug=(...A)=>{}),this.debug(this.pattern,this.globSet);let J=this.globSet.map(A=>this.slashSplit(A));this.globParts=this.preprocess(J),this.debug(this.pattern,this.globParts);let Y=this.globParts.map((A,H,ee)=>{if(this.isWindows&&this.windowsNoMagicRoot){let ne=A[0]===""&&A[1]===""&&(A[2]==="?"||!Z.test(A[2]))&&!Z.test(A[3]),te=/^[a-z]:/i.test(A[0]);if(ne)return[...A.slice(0,4),...A.slice(4).map(ae=>this.parse(ae))];if(te)return[A[0],...A.slice(1).map(ae=>this.parse(ae))]}return A.map(ne=>this.parse(ne))});if(this.debug(this.pattern,Y),this.set=Y.filter(A=>A.indexOf(!1)===-1),this.isWindows)for(let A=0;A<this.set.length;A++){let H=this.set[A];H[0]===""&&H[1]===""&&this.globParts[A][2]==="?"&&typeof H[3]=="string"&&/^[a-z]:$/i.test(H[3])&&(H[2]="?")}this.debug(this.pattern,this.set)}preprocess($){if(this.options.noglobstar)for(let J=0;J<$.length;J++)for(let Y=0;Y<$[J].length;Y++)$[J][Y]==="**"&&($[J][Y]="*");let{optimizationLevel:q=1}=this.options;return q>=2?($=this.firstPhasePreProcess($),$=this.secondPhasePreProcess($)):q>=1?$=this.levelOneOptimize($):$=this.adjascentGlobstarOptimize($),$}adjascentGlobstarOptimize($){return $.map(q=>{let J=-1;for(;(J=q.indexOf("**",J+1))!==-1;){let Y=J;for(;q[Y+1]==="**";)Y++;Y!==J&&q.splice(J,Y-J)}return q})}levelOneOptimize($){return $.map(q=>(q=q.reduce((J,Y)=>{let A=J[J.length-1];return Y==="**"&&A==="**"?J:Y===".."&&A&&A!==".."&&A!=="."&&A!=="**"?(J.pop(),J):(J.push(Y),J)},[]),q.length===0?[""]:q))}levelTwoFileOptimize($){Array.isArray($)||($=this.slashSplit($));let q=!1;do{if(q=!1,!this.preserveMultipleSlashes){for(let Y=1;Y<$.length-1;Y++){let A=$[Y];Y===1&&A===""&&$[0]===""||(A==="."||A==="")&&(q=!0,$.splice(Y,1),Y--)}$[0]==="."&&$.length===2&&($[1]==="."||$[1]==="")&&(q=!0,$.pop())}let J=0;for(;(J=$.indexOf("..",J+1))!==-1;){let Y=$[J-1];Y&&Y!=="."&&Y!==".."&&Y!=="**"&&(q=!0,$.splice(J-1,2),J-=2)}}while(q);return $.length===0?[""]:$}firstPhasePreProcess($){let q=!1;do{q=!1;for(let J of $){let Y=-1;for(;(Y=J.indexOf("**",Y+1))!==-1;){let H=Y;for(;J[H+1]==="**";)H++;H>Y&&J.splice(Y+1,H-Y);let ee=J[Y+1],ne=J[Y+2],te=J[Y+3];if(ee!==".."||!ne||ne==="."||ne===".."||!te||te==="."||te==="..")continue;q=!0,J.splice(Y,1);let ae=J.slice(0);ae[Y]="**",$.push(ae),Y--}if(!this.preserveMultipleSlashes){for(let H=1;H<J.length-1;H++){let ee=J[H];H===1&&ee===""&&J[0]===""||(ee==="."||ee==="")&&(q=!0,J.splice(H,1),H--)}J[0]==="."&&J.length===2&&(J[1]==="."||J[1]==="")&&(q=!0,J.pop())}let A=0;for(;(A=J.indexOf("..",A+1))!==-1;){let H=J[A-1];if(H&&H!=="."&&H!==".."&&H!=="**"){q=!0;let ee=A===1&&J[A+1]==="**"?["."]:[];J.splice(A-1,2,...ee),J.length===0&&J.push(""),A-=2}}}}while(q);return $}secondPhasePreProcess($){for(let q=0;q<$.length-1;q++)for(let J=q+1;J<$.length;J++){let Y=this.partsMatch($[q],$[J],!this.preserveMultipleSlashes);if(Y){$[q]=[],$[J]=Y;break}}return $.filter(q=>q.length)}partsMatch($,q,J=!1){let Y=0,A=0,H=[],ee="";for(;Y<$.length&&A<q.length;)if($[Y]===q[A])H.push(ee==="b"?q[A]:$[Y]),Y++,A++;else if(J&&$[Y]==="**"&&q[A]===$[Y+1])H.push($[Y]),Y++;else if(J&&q[A]==="**"&&$[Y]===q[A+1])H.push(q[A]),A++;else if($[Y]==="*"&&q[A]&&(this.options.dot||!q[A].startsWith("."))&&q[A]!=="**"){if(ee==="b")return!1;ee="a",H.push($[Y]),Y++,A++}else if(q[A]==="*"&&$[Y]&&(this.options.dot||!$[Y].startsWith("."))&&$[Y]!=="**"){if(ee==="a")return!1;ee="b",H.push(q[A]),Y++,A++}else return!1;return $.length===q.length&&H}parseNegate(){if(this.nonegate)return;let $=this.pattern,q=!1,J=0;for(let Y=0;Y<$.length&&$.charAt(Y)==="!";Y++)q=!q,J++;J&&(this.pattern=$.slice(J)),this.negate=q}matchOne($,q,J=!1){let Y=this.options;if(this.isWindows){let le=typeof $[0]=="string"&&/^[a-z]:$/i.test($[0]),fe=!le&&$[0]===""&&$[1]===""&&$[2]==="?"&&/^[a-z]:$/i.test($[3]),me=typeof q[0]=="string"&&/^[a-z]:$/i.test(q[0]),ce=!me&&q[0]===""&&q[1]===""&&q[2]==="?"&&typeof q[3]=="string"&&/^[a-z]:$/i.test(q[3]),pe=fe?3:le?0:void 0,de=ce?3:me?0:void 0;if(typeof pe=="number"&&typeof de=="number"){let[ye,Ee]=[$[pe],q[de]];ye.toLowerCase()===Ee.toLowerCase()&&(q[de]=ye,de>pe?q=q.slice(de):pe>de&&($=$.slice(pe)))}}let{optimizationLevel:A=1}=this.options;A>=2&&($=this.levelTwoFileOptimize($)),this.debug("matchOne",this,{file:$,pattern:q}),this.debug("matchOne",$.length,q.length);for(var H=0,ee=0,ne=$.length,te=q.length;H<ne&&ee<te;H++,ee++){this.debug("matchOne loop");var ae=q[ee],he=$[H];if(this.debug(q,ae,he),ae===!1)return!1;if(ae===e.GLOBSTAR){this.debug("GLOBSTAR",[q,ae,he]);var re=H,ue=ee+1;if(ue===te){for(this.debug("** at the end");H<ne;H++)if($[H]==="."||$[H]===".."||!Y.dot&&$[H].charAt(0)===".")return!1;return!0}for(;re<ne;){var ie=$[re];if(this.debug(`
62
+ globstar while`,$,re,q,ue,ie),this.matchOne($.slice(re),q.slice(ue),J))return this.debug("globstar found match!",re,ne,ie),!0;if(ie==="."||ie===".."||!Y.dot&&ie.charAt(0)==="."){this.debug("dot detected!",$,re,q,ue);break}this.debug("globstar swallow a segment, and continue"),re++}return!!(J&&(this.debug(`
63
+ >>> no match, partial?`,$,re,q,ue),re===ne))}let le;if(typeof ae=="string"?(le=he===ae,this.debug("string match",ae,he,le)):(le=ae.test(he),this.debug("pattern match",ae,he,le)),!le)return!1}if(H===ne&&ee===te)return!0;if(H===ne)return J;if(ee===te)return H===ne-1&&$[H]==="";throw new Error("wtf?")}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse($){(0,p.assertValidPattern)($);let q=this.options;if($==="**")return e.GLOBSTAR;if($==="")return"";let J,Y=null;(J=$.match(S))?Y=q.dot?b:E:(J=$.match(s))?Y=(q.nocase?q.dot?h:u:q.dot?l:i)(J[1]):(J=$.match(_))?Y=(q.nocase?q.dot?O:w:q.dot?R:I)(J):(J=$.match(d))?Y=q.dot?m:g:(J=$.match(f))&&(Y=y);let A=n.AST.fromGlob($,this.options).toMMPattern();return Y&&typeof A=="object"&&Reflect.defineProperty(A,"test",{value:Y}),A}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let $=this.set;if(!$.length)return this.regexp=!1,this.regexp;let q=this.options,J=q.noglobstar?U:q.dot?V:B,Y=new Set(q.nocase?["i"]:[]),A=$.map(ne=>{let te=ne.map(ae=>{if(ae instanceof RegExp)for(let he of ae.flags.split(""))Y.add(he);return typeof ae=="string"?X(ae):ae===e.GLOBSTAR?e.GLOBSTAR:ae._src});return te.forEach((ae,he)=>{let re=te[he+1],ue=te[he-1];ae!==e.GLOBSTAR||ue===e.GLOBSTAR||(ue===void 0?re!==void 0&&re!==e.GLOBSTAR?te[he+1]="(?:\\/|"+J+"\\/)?"+re:te[he]=J:re===void 0?te[he-1]=ue+"(?:\\/|"+J+")?":re!==e.GLOBSTAR&&(te[he-1]=ue+"(?:\\/|\\/"+J+"\\/)"+re,te[he+1]=e.GLOBSTAR))}),te.filter(ae=>ae!==e.GLOBSTAR).join("/")}).join("|"),[H,ee]=$.length>1?["(?:",")"]:["",""];A="^"+H+A+ee+"$",this.negate&&(A="^(?!"+A+").+$");try{this.regexp=new RegExp(A,[...Y].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit($){return this.preserveMultipleSlashes?$.split("/"):this.isWindows&&/^\/\/[^\/]+/.test($)?["",...$.split(/\/+/)]:$.split(/\/+/)}match($,q=this.partial){if(this.debug("match",$,this.pattern),this.comment)return!1;if(this.empty)return $==="";if($==="/"&&q)return!0;let J=this.options;this.isWindows&&($=$.split("\\").join("/"));let Y=this.slashSplit($);this.debug(this.pattern,"split",Y);let A=this.set;this.debug(this.pattern,"set",A);let H=Y[Y.length-1];if(!H)for(let ee=Y.length-2;!H&&ee>=0;ee--)H=Y[ee];for(let ee=0;ee<A.length;ee++){let ne=A[ee],te=Y;if(J.matchBase&&ne.length===1&&(te=[H]),this.matchOne(te,ne,q))return J.flipNegate?!0:!this.negate}return J.flipNegate?!1:this.negate}static defaults($){return e.minimatch.defaults($).Minimatch}};e.Minimatch=Q;var k=$c();Object.defineProperty(e,"AST",{enumerable:!0,get:v(function(){return k.AST},"get")});var F=Bc();Object.defineProperty(e,"escape",{enumerable:!0,get:v(function(){return F.escape},"get")});var z=Mn();Object.defineProperty(e,"unescape",{enumerable:!0,get:v(function(){return z.unescape},"get")}),e.minimatch.AST=n.AST,e.minimatch.Minimatch=Q,e.minimatch.escape=c.escape,e.minimatch.unescape=o.unescape}),Ih=K(e=>{"use strict";var r=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.SuccinctRoles=e.DelegatedRole=e.Role=e.TOP_LEVEL_ROLE_NAMES=void 0;var a=r(require("crypto")),p=Tw(),n=r(require("util")),c=St(),o=gt();e.TOP_LEVEL_ROLE_NAMES=["root","targets","snapshot","timestamp"];var t=class jn{static{v(this,"Role")}keyIDs;threshold;unrecognizedFields;constructor(g){let{keyIDs:m,threshold:f,unrecognizedFields:y}=g;if(s(m))throw new c.ValueError("duplicate key IDs found");if(f<1)throw new c.ValueError("threshold must be at least 1");this.keyIDs=m,this.threshold=f,this.unrecognizedFields=y||{}}equals(g){return g instanceof jn?this.threshold===g.threshold&&n.default.isDeepStrictEqual(this.keyIDs,g.keyIDs)&&n.default.isDeepStrictEqual(this.unrecognizedFields,g.unrecognizedFields):!1}toJSON(){return{keyids:this.keyIDs,threshold:this.threshold,...this.unrecognizedFields}}static fromJSON(g){let{keyids:m,threshold:f,...y}=g;if(!o.guard.isStringArray(m))throw new TypeError("keyids must be an array");if(typeof f!="number")throw new TypeError("threshold must be a number");return new jn({keyIDs:m,threshold:f,unrecognizedFields:y})}};e.Role=t;function s(d){return new Set(d).size!==d.length}v(s,"hasDuplicates");var i=class $n extends t{static{v(this,"DelegatedRole")}name;terminating;paths;pathHashPrefixes;constructor(g){super(g);let{name:m,terminating:f,paths:y,pathHashPrefixes:S}=g;if(this.name=m,this.terminating=f,g.paths&&g.pathHashPrefixes)throw new c.ValueError("paths and pathHashPrefixes are mutually exclusive");this.paths=y,this.pathHashPrefixes=S}equals(g){return g instanceof $n?super.equals(g)&&this.name===g.name&&this.terminating===g.terminating&&n.default.isDeepStrictEqual(this.paths,g.paths)&&n.default.isDeepStrictEqual(this.pathHashPrefixes,g.pathHashPrefixes):!1}isDelegatedPath(g){if(this.paths)return this.paths.some(m=>u(g,m));if(this.pathHashPrefixes){let m=a.default.createHash("sha256").update(g).digest("hex");return this.pathHashPrefixes.some(f=>m.startsWith(f))}return!1}toJSON(){let g={...super.toJSON(),name:this.name,terminating:this.terminating};return this.paths&&(g.paths=this.paths),this.pathHashPrefixes&&(g.path_hash_prefixes=this.pathHashPrefixes),g}static fromJSON(g){let{keyids:m,threshold:f,name:y,terminating:S,paths:E,path_hash_prefixes:b,..._}=g;if(!o.guard.isStringArray(m))throw new TypeError("keyids must be an array of strings");if(typeof f!="number")throw new TypeError("threshold must be a number");if(typeof y!="string")throw new TypeError("name must be a string");if(typeof S!="boolean")throw new TypeError("terminating must be a boolean");if(o.guard.isDefined(E)&&!o.guard.isStringArray(E))throw new TypeError("paths must be an array of strings");if(o.guard.isDefined(b)&&!o.guard.isStringArray(b))throw new TypeError("path_hash_prefixes must be an array of strings");return new $n({keyIDs:m,threshold:f,name:y,terminating:S,paths:E,pathHashPrefixes:b,unrecognizedFields:_})}};e.DelegatedRole=i;var l=v((d,g)=>d.map((m,f)=>[m,g[f]]),"zip");function u(d,g){let m=d.split("/"),f=g.split("/");return f.length!=m.length?!1:l(m,f).every(([y,S])=>(0,p.minimatch)(y,S))}v(u,"isTargetInPathPattern");var h=class Bn extends t{static{v(this,"SuccinctRoles")}bitLength;namePrefix;numberOfBins;suffixLen;constructor(g){super(g);let{bitLength:m,namePrefix:f}=g;if(m<=0||m>32)throw new c.ValueError("bitLength must be between 1 and 32");this.bitLength=m,this.namePrefix=f,this.numberOfBins=Math.pow(2,m),this.suffixLen=(this.numberOfBins-1).toString(16).length}equals(g){return g instanceof Bn?super.equals(g)&&this.bitLength===g.bitLength&&this.namePrefix===g.namePrefix:!1}getRoleForTarget(g){let m=a.default.createHash("sha256").update(g).digest().subarray(0,4),f=32-this.bitLength,y=(m.readUInt32BE()>>>f).toString(16).padStart(this.suffixLen,"0");return`${this.namePrefix}-${y}`}*getRoles(){for(let g=0;g<this.numberOfBins;g++){let m=g.toString(16).padStart(this.suffixLen,"0");yield`${this.namePrefix}-${m}`}}isDelegatedRole(g){let m=this.namePrefix+"-";if(!g.startsWith(m))return!1;let f=g.slice(m.length,g.length);if(f.length!=this.suffixLen||!f.match(/^[0-9a-fA-F]+$/))return!1;let y=parseInt(f,16);return 0<=y&&y<this.numberOfBins}toJSON(){return{...super.toJSON(),bit_length:this.bitLength,name_prefix:this.namePrefix}}static fromJSON(g){let{keyids:m,threshold:f,bit_length:y,name_prefix:S,...E}=g;if(!o.guard.isStringArray(m))throw new TypeError("keyids must be an array of strings");if(typeof f!="number")throw new TypeError("threshold must be a number");if(typeof y!="number")throw new TypeError("bit_length must be a number");if(typeof S!="string")throw new TypeError("name_prefix must be a string");return new Bn({keyIDs:m,threshold:f,bitLength:y,namePrefix:S,unrecognizedFields:E})}};e.SuccinctRoles=h}),Th=K(e=>{"use strict";var r=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Root=void 0;var a=r(require("util")),p=Yt(),n=St(),c=Ao(),o=Ih(),t=gt(),s=class Un extends p.Signed{static{v(this,"Root")}type=p.MetadataKind.Root;keys;roles;consistentSnapshot;constructor(g){if(super(g),this.keys=g.keys||{},this.consistentSnapshot=g.consistentSnapshot??!0,!g.roles)this.roles=o.TOP_LEVEL_ROLE_NAMES.reduce((m,f)=>({...m,[f]:new o.Role({keyIDs:[],threshold:1})}),{});else{let m=new Set(Object.keys(g.roles));if(!o.TOP_LEVEL_ROLE_NAMES.every(f=>m.has(f)))throw new n.ValueError("missing top-level role");this.roles=g.roles}}addKey(g,m){if(!this.roles[m])throw new n.ValueError(`role ${m} does not exist`);this.roles[m].keyIDs.includes(g.keyID)||this.roles[m].keyIDs.push(g.keyID),this.keys[g.keyID]=g}equals(g){return g instanceof Un?super.equals(g)&&this.consistentSnapshot===g.consistentSnapshot&&a.default.isDeepStrictEqual(this.keys,g.keys)&&a.default.isDeepStrictEqual(this.roles,g.roles):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,keys:i(this.keys),roles:l(this.roles),consistent_snapshot:this.consistentSnapshot,...this.unrecognizedFields}}static fromJSON(g){let{unrecognizedFields:m,...f}=p.Signed.commonFieldsFromJSON(g),{keys:y,roles:S,consistent_snapshot:E,...b}=m;if(typeof E!="boolean")throw new TypeError("consistent_snapshot must be a boolean");return new Un({...f,keys:u(y),roles:h(S),consistentSnapshot:E,unrecognizedFields:b})}};e.Root=s;function i(d){return Object.entries(d).reduce((g,[m,f])=>({...g,[m]:f.toJSON()}),{})}v(i,"keysToJSON");function l(d){return Object.entries(d).reduce((g,[m,f])=>({...g,[m]:f.toJSON()}),{})}v(l,"rolesToJSON");function u(d){let g;if(t.guard.isDefined(d)){if(!t.guard.isObjectRecord(d))throw new TypeError("keys must be an object");g=Object.entries(d).reduce((m,[f,y])=>({...m,[f]:c.Key.fromJSON(f,y)}),{})}return g}v(u,"keysFromJSON");function h(d){let g;if(t.guard.isDefined(d)){if(!t.guard.isObjectRecord(d))throw new TypeError("roles must be an object");g=Object.entries(d).reduce((m,[f,y])=>({...m,[f]:o.Role.fromJSON(y)}),{})}return g}v(h,"rolesFromJSON")}),Ph=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Signature=void 0;var r=class xh{static{v(this,"Signature")}keyID;sig;constructor(p){let{keyID:n,sig:c}=p;this.keyID=n,this.sig=c}toJSON(){return{keyid:this.keyID,sig:this.sig}}static fromJSON(p){let{keyid:n,sig:c}=p;if(typeof n!="string")throw new TypeError("keyid must be a string");if(typeof c!="string")throw new TypeError("sig must be a string");return new xh({keyID:n,sig:c})}};e.Signature=r}),Nh=K(e=>{"use strict";var r=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.Snapshot=void 0;var a=r(require("util")),p=Yt(),n=Ms(),c=gt(),o=class Fn extends p.Signed{static{v(this,"Snapshot")}type=p.MetadataKind.Snapshot;meta;constructor(l){super(l),this.meta=l.meta||{"targets.json":new n.MetaFile({version:1})}}equals(l){return l instanceof Fn?super.equals(l)&&a.default.isDeepStrictEqual(this.meta,l.meta):!1}toJSON(){return{_type:this.type,meta:t(this.meta),spec_version:this.specVersion,version:this.version,expires:this.expires,...this.unrecognizedFields}}static fromJSON(l){let{unrecognizedFields:u,...h}=p.Signed.commonFieldsFromJSON(l),{meta:d,...g}=u;return new Fn({...h,meta:s(d),unrecognizedFields:g})}};e.Snapshot=o;function t(i){return Object.entries(i).reduce((l,[u,h])=>({...l,[u]:h.toJSON()}),{})}v(t,"metaToJSON");function s(i){let l;if(c.guard.isDefined(i))if(c.guard.isObjectRecord(i))l=Object.entries(i).reduce((u,[h,d])=>({...u,[h]:n.MetaFile.fromJSON(d)}),{});else throw new TypeError("meta field is malformed");return l}v(s,"metaFromJSON")}),Pw=K(e=>{"use strict";var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.Delegations=void 0;var a=r(require("util")),p=St(),n=Ao(),c=Ih(),o=gt(),t=class Hn{static{v(this,"Delegations")}keys;roles;unrecognizedFields;succinctRoles;constructor(d){if(this.keys=d.keys,this.unrecognizedFields=d.unrecognizedFields||{},d.roles&&Object.keys(d.roles).some(g=>c.TOP_LEVEL_ROLE_NAMES.includes(g)))throw new p.ValueError("Delegated role name conflicts with top-level role name");this.succinctRoles=d.succinctRoles,this.roles=d.roles}equals(d){return d instanceof Hn?a.default.isDeepStrictEqual(this.keys,d.keys)&&a.default.isDeepStrictEqual(this.roles,d.roles)&&a.default.isDeepStrictEqual(this.unrecognizedFields,d.unrecognizedFields)&&a.default.isDeepStrictEqual(this.succinctRoles,d.succinctRoles):!1}*rolesForTarget(d){if(this.roles)for(let g of Object.values(this.roles))g.isDelegatedPath(d)&&(yield{role:g.name,terminating:g.terminating});else this.succinctRoles&&(yield{role:this.succinctRoles.getRoleForTarget(d),terminating:!0})}toJSON(){let d={keys:s(this.keys),...this.unrecognizedFields};return this.roles?d.roles=i(this.roles):this.succinctRoles&&(d.succinct_roles=this.succinctRoles.toJSON()),d}static fromJSON(d){let{keys:g,roles:m,succinct_roles:f,...y}=d,S;return o.guard.isObject(f)&&(S=c.SuccinctRoles.fromJSON(f)),new Hn({keys:l(g),roles:u(m),unrecognizedFields:y,succinctRoles:S})}};e.Delegations=t;function s(h){return Object.entries(h).reduce((d,[g,m])=>({...d,[g]:m.toJSON()}),{})}v(s,"keysToJSON");function i(h){return Object.values(h).map(d=>d.toJSON())}v(i,"rolesToJSON");function l(h){if(!o.guard.isObjectRecord(h))throw new TypeError("keys is malformed");return Object.entries(h).reduce((d,[g,m])=>({...d,[g]:n.Key.fromJSON(g,m)}),{})}v(l,"keysFromJSON");function u(h){let d;if(o.guard.isDefined(h)){if(!o.guard.isObjectArray(h))throw new TypeError("roles is malformed");d=h.reduce((g,m)=>{let f=c.DelegatedRole.fromJSON(m);return{...g,[f.name]:f}},{})}return d}v(u,"rolesFromJSON")}),kh=K(e=>{"use strict";var r=e&&e.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.Targets=void 0;var a=r(require("util")),p=Yt(),n=Pw(),c=Ms(),o=gt(),t=class Gn extends p.Signed{static{v(this,"Targets")}type=p.MetadataKind.Targets;targets;delegations;constructor(h){super(h),this.targets=h.targets||{},this.delegations=h.delegations}addTarget(h){this.targets[h.path]=h}equals(h){return h instanceof Gn?super.equals(h)&&a.default.isDeepStrictEqual(this.targets,h.targets)&&a.default.isDeepStrictEqual(this.delegations,h.delegations):!1}toJSON(){let h={_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,targets:s(this.targets),...this.unrecognizedFields};return this.delegations&&(h.delegations=this.delegations.toJSON()),h}static fromJSON(h){let{unrecognizedFields:d,...g}=p.Signed.commonFieldsFromJSON(h),{targets:m,delegations:f,...y}=d;return new Gn({...g,targets:i(m),delegations:l(f),unrecognizedFields:y})}};e.Targets=t;function s(u){return Object.entries(u).reduce((h,[d,g])=>({...h,[d]:g.toJSON()}),{})}v(s,"targetsToJSON");function i(u){let h;if(o.guard.isDefined(u))if(o.guard.isObjectRecord(u))h=Object.entries(u).reduce((d,[g,m])=>({...d,[g]:c.TargetFile.fromJSON(g,m)}),{});else throw new TypeError("targets must be an object");return h}v(i,"targetsFromJSON");function l(u){let h;if(o.guard.isDefined(u))if(o.guard.isObject(u))h=n.Delegations.fromJSON(u);else throw new TypeError("delegations must be an object");return h}v(l,"delegationsFromJSON")}),Lh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=void 0;var r=Yt(),a=Ms(),p=gt(),n=class Vn extends r.Signed{static{v(this,"Timestamp")}type=r.MetadataKind.Timestamp;snapshotMeta;constructor(t){super(t),this.snapshotMeta=t.snapshotMeta||new a.MetaFile({version:1})}equals(t){return t instanceof Vn?super.equals(t)&&this.snapshotMeta.equals(t.snapshotMeta):!1}toJSON(){return{_type:this.type,spec_version:this.specVersion,version:this.version,expires:this.expires,meta:{"snapshot.json":this.snapshotMeta.toJSON()},...this.unrecognizedFields}}static fromJSON(t){let{unrecognizedFields:s,...i}=r.Signed.commonFieldsFromJSON(t),{meta:l,...u}=s;return new Vn({...i,snapshotMeta:c(l),unrecognizedFields:u})}};e.Timestamp=n;function c(o){let t;if(p.guard.isDefined(o)){let s=o["snapshot.json"];if(!p.guard.isDefined(s)||!p.guard.isObject(s))throw new TypeError("missing snapshot.json in meta");t=a.MetaFile.fromJSON(s)}return t}v(c,"snapshotMetaFromJSON")}),xw=K(e=>{"use strict";var r=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var a=Rh(),p=r(require("util")),n=Yt(),c=St(),o=Th(),t=Ph(),s=Nh(),i=kh(),l=Lh(),u=gt(),h=class Wn{static{v(this,"Metadata")}signed;signatures;unrecognizedFields;constructor(g,m,f){this.signed=g,this.signatures=m||{},this.unrecognizedFields=f||{}}sign(g,m=!0){let f=Buffer.from((0,a.canonicalize)(this.signed.toJSON())),y=g(f);m||(this.signatures={}),this.signatures[y.keyID]=y}verifyDelegate(g,m){let f,y={};switch(this.signed.type){case n.MetadataKind.Root:y=this.signed.keys,f=this.signed.roles[g];break;case n.MetadataKind.Targets:if(!this.signed.delegations)throw new c.ValueError(`No delegations found for ${g}`);y=this.signed.delegations.keys,this.signed.delegations.roles?f=this.signed.delegations.roles[g]:this.signed.delegations.succinctRoles&&this.signed.delegations.succinctRoles.isDelegatedRole(g)&&(f=this.signed.delegations.succinctRoles);break;default:throw new TypeError("invalid metadata type")}if(!f)throw new c.ValueError(`no delegation found for ${g}`);let S=new Set;if(f.keyIDs.forEach(E=>{let b=y[E];if(b)try{b.verifySignature(m),S.add(b.keyID)}catch{}}),S.size<f.threshold)throw new c.UnsignedMetadataError(`${g} was signed by ${S.size}/${f.threshold} keys`)}equals(g){return g instanceof Wn?this.signed.equals(g.signed)&&p.default.isDeepStrictEqual(this.signatures,g.signatures)&&p.default.isDeepStrictEqual(this.unrecognizedFields,g.unrecognizedFields):!1}toJSON(){return{signatures:Object.values(this.signatures).map(g=>g.toJSON()),signed:this.signed.toJSON(),...this.unrecognizedFields}}static fromJSON(g,m){let{signed:f,signatures:y,...S}=m;if(!u.guard.isDefined(f)||!u.guard.isObject(f))throw new TypeError("signed is not defined");if(g!==f._type)throw new c.ValueError(`expected '${g}', got ${f._type}`);if(!u.guard.isObjectArray(y))throw new TypeError("signatures is not an array");let E;switch(g){case n.MetadataKind.Root:E=o.Root.fromJSON(f);break;case n.MetadataKind.Timestamp:E=l.Timestamp.fromJSON(f);break;case n.MetadataKind.Snapshot:E=s.Snapshot.fromJSON(f);break;case n.MetadataKind.Targets:E=i.Targets.fromJSON(f);break;default:throw new TypeError("invalid metadata type")}let b={};return y.forEach(_=>{let w=t.Signature.fromJSON(_);if(b[w.keyID])throw new c.ValueError(`multiple signatures found for keyid: ${w.keyID}`);b[w.keyID]=w}),new Wn(E,b,S)}};e.Metadata=h}),Ro=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Timestamp=e.Targets=e.Snapshot=e.Signature=e.Root=e.Metadata=e.Key=e.TargetFile=e.MetaFile=e.ValueError=e.MetadataKind=void 0;var r=Yt();Object.defineProperty(e,"MetadataKind",{enumerable:!0,get:v(function(){return r.MetadataKind},"get")});var a=St();Object.defineProperty(e,"ValueError",{enumerable:!0,get:v(function(){return a.ValueError},"get")});var p=Ms();Object.defineProperty(e,"MetaFile",{enumerable:!0,get:v(function(){return p.MetaFile},"get")}),Object.defineProperty(e,"TargetFile",{enumerable:!0,get:v(function(){return p.TargetFile},"get")});var n=Ao();Object.defineProperty(e,"Key",{enumerable:!0,get:v(function(){return n.Key},"get")});var c=xw();Object.defineProperty(e,"Metadata",{enumerable:!0,get:v(function(){return c.Metadata},"get")});var o=Th();Object.defineProperty(e,"Root",{enumerable:!0,get:v(function(){return o.Root},"get")});var t=Ph();Object.defineProperty(e,"Signature",{enumerable:!0,get:v(function(){return t.Signature},"get")});var s=Nh();Object.defineProperty(e,"Snapshot",{enumerable:!0,get:v(function(){return s.Snapshot},"get")});var i=kh();Object.defineProperty(e,"Targets",{enumerable:!0,get:v(function(){return i.Targets},"get")});var l=Lh();Object.defineProperty(e,"Timestamp",{enumerable:!0,get:v(function(){return l.Timestamp},"get")})}),Co=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadHTTPError=e.DownloadLengthMismatchError=e.DownloadError=e.ExpiredMetadataError=e.EqualVersionError=e.BadVersionError=e.RepositoryError=e.PersistError=e.RuntimeError=e.ValueError=void 0;var r=class extends Error{static{v(this,"ValueError")}};e.ValueError=r;var a=class extends Error{static{v(this,"RuntimeError")}};e.RuntimeError=a;var p=class extends Error{static{v(this,"PersistError")}};e.PersistError=p;var n=class extends Error{static{v(this,"RepositoryError")}};e.RepositoryError=n;var c=class extends n{static{v(this,"BadVersionError")}};e.BadVersionError=c;var o=class extends c{static{v(this,"EqualVersionError")}};e.EqualVersionError=o;var t=class extends n{static{v(this,"ExpiredMetadataError")}};e.ExpiredMetadataError=t;var s=class extends Error{static{v(this,"DownloadError")}};e.DownloadError=s;var i=class extends s{static{v(this,"DownloadLengthMismatchError")}};e.DownloadLengthMismatchError=i;var l=class extends s{static{v(this,"DownloadHTTPError")}statusCode;constructor(u,h){super(u),this.statusCode=h}};e.DownloadHTTPError=l}),Nw=K(e=>{"use strict";var r=e&&e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.withTempFile=void 0;var a=r(require("fs/promises")),p=r(require("os")),n=r(require("path")),c=v(async t=>o(async s=>t(n.default.join(s,"tempfile"))),"withTempFile");e.withTempFile=c;var o=v(async t=>{let s=await a.default.realpath(p.default.tmpdir()),i=await a.default.mkdtemp(s+n.default.sep);try{return await t(i)}finally{await a.default.rm(i,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")}),Dh=K(e=>{"use strict";var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultFetcher=e.BaseFetcher=void 0;var a=r(Xt()),p=r(require("fs")),n=r(xs()),c=r(require("util")),o=Co(),t=Nw(),s=(0,a.default)("tuf:fetch"),i=class{static{v(this,"BaseFetcher")}async downloadFile(h,d,g){return(0,t.withTempFile)(async m=>{let f=await this.fetch(h),y=0,S=p.default.createWriteStream(m);try{for await(let E of f){if(y+=E.length,y>d)throw new o.DownloadLengthMismatchError("Max length reached");await u(S,E)}}finally{await c.default.promisify(S.close).bind(S)()}return g(m)})}async downloadBytes(h,d){return this.downloadFile(h,d,async g=>{let m=p.default.createReadStream(g),f=[];for await(let y of m)f.push(y);return Buffer.concat(f)})}};e.BaseFetcher=i;var l=class extends i{static{v(this,"DefaultFetcher")}timeout;retry;constructor(h={}){super(),this.timeout=h.timeout,this.retry=h.retry}async fetch(h){s("GET %s",h);let d=await(0,n.default)(h,{timeout:this.timeout,retry:this.retry});if(!d.ok||!d?.body)throw new o.DownloadHTTPError("Failed to download",d.status);return d.body}};e.DefaultFetcher=l;var u=v(async(h,d)=>new Promise((g,m)=>{h.write(d,f=>{f&&m(f),g(!0)})}),"writeBufferToStream")}),kw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultConfig=void 0,e.defaultConfig={maxRootRotations:256,maxDelegations:32,rootMaxLength:512e3,timestampMaxLength:16384,snapshotMaxLength:2e6,targetsMaxLength:5e6,prefixTargetsWithHash:!0,fetchTimeout:1e5,fetchRetries:void 0,fetchRetry:2}}),Lw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TrustedMetadataStore=void 0;var r=Ro(),a=Co(),p=class{static{v(this,"TrustedMetadataStore")}trustedSet={};referenceTime;constructor(n){this.referenceTime=new Date,this.loadTrustedRoot(n)}get root(){if(!this.trustedSet.root)throw new ReferenceError("No trusted root metadata");return this.trustedSet.root}get timestamp(){return this.trustedSet.timestamp}get snapshot(){return this.trustedSet.snapshot}get targets(){return this.trustedSet.targets}getRole(n){return this.trustedSet[n]}updateRoot(n){let c=JSON.parse(n.toString("utf8")),o=r.Metadata.fromJSON(r.MetadataKind.Root,c);if(o.signed.type!=r.MetadataKind.Root)throw new a.RepositoryError(`Expected 'root', got ${o.signed.type}`);if(this.root.verifyDelegate(r.MetadataKind.Root,o),o.signed.version!=this.root.signed.version+1)throw new a.BadVersionError(`Expected version ${this.root.signed.version+1}, got ${o.signed.version}`);return o.verifyDelegate(r.MetadataKind.Root,o),this.trustedSet.root=o,o}updateTimestamp(n){if(this.snapshot)throw new a.RuntimeError("Cannot update timestamp after snapshot");if(this.root.signed.isExpired(this.referenceTime))throw new a.ExpiredMetadataError("Final root.json is expired");let c=JSON.parse(n.toString("utf8")),o=r.Metadata.fromJSON(r.MetadataKind.Timestamp,c);if(o.signed.type!=r.MetadataKind.Timestamp)throw new a.RepositoryError(`Expected 'timestamp', got ${o.signed.type}`);if(this.root.verifyDelegate(r.MetadataKind.Timestamp,o),this.timestamp){if(o.signed.version<this.timestamp.signed.version)throw new a.BadVersionError(`New timestamp version ${o.signed.version} is less than current version ${this.timestamp.signed.version}`);if(o.signed.version===this.timestamp.signed.version)throw new a.EqualVersionError(`New timestamp version ${o.signed.version} is equal to current version ${this.timestamp.signed.version}`);let t=this.timestamp.signed.snapshotMeta,s=o.signed.snapshotMeta;if(s.version<t.version)throw new a.BadVersionError(`New snapshot version ${s.version} is less than current version ${t.version}`)}return this.trustedSet.timestamp=o,this.checkFinalTimestamp(),o}updateSnapshot(n,c=!1){if(!this.timestamp)throw new a.RuntimeError("Cannot update snapshot before timestamp");if(this.targets)throw new a.RuntimeError("Cannot update snapshot after targets");this.checkFinalTimestamp();let o=this.timestamp.signed.snapshotMeta;c||o.verify(n);let t=JSON.parse(n.toString("utf8")),s=r.Metadata.fromJSON(r.MetadataKind.Snapshot,t);if(s.signed.type!=r.MetadataKind.Snapshot)throw new a.RepositoryError(`Expected 'snapshot', got ${s.signed.type}`);return this.root.verifyDelegate(r.MetadataKind.Snapshot,s),this.snapshot&&Object.entries(this.snapshot.signed.meta).forEach(([i,l])=>{let u=s.signed.meta[i];if(!u)throw new a.RepositoryError(`Missing file ${i} in new snapshot`);if(u.version<l.version)throw new a.BadVersionError(`New version ${u.version} of ${i} is less than current version ${l.version}`)}),this.trustedSet.snapshot=s,this.checkFinalSnapsnot(),s}updateDelegatedTargets(n,c,o){if(!this.snapshot)throw new a.RuntimeError("Cannot update delegated targets before snapshot");this.checkFinalSnapsnot();let t=this.trustedSet[o];if(!t)throw new a.RuntimeError(`No trusted ${o} metadata`);let s=this.snapshot.signed.meta?.[`${c}.json`];if(!s)throw new a.RepositoryError(`Missing ${c}.json in snapshot`);s.verify(n);let i=JSON.parse(n.toString("utf8")),l=r.Metadata.fromJSON(r.MetadataKind.Targets,i);if(l.signed.type!=r.MetadataKind.Targets)throw new a.RepositoryError(`Expected 'targets', got ${l.signed.type}`);t.verifyDelegate(c,l);let u=l.signed.version;if(u!=s.version)throw new a.BadVersionError(`Version ${u} of ${c} does not match snapshot version ${s.version}`);if(l.signed.isExpired(this.referenceTime))throw new a.ExpiredMetadataError(`${c}.json is expired`);this.trustedSet[c]=l}loadTrustedRoot(n){let c=JSON.parse(n.toString("utf8")),o=r.Metadata.fromJSON(r.MetadataKind.Root,c);if(o.signed.type!=r.MetadataKind.Root)throw new a.RepositoryError(`Expected 'root', got ${o.signed.type}`);o.verifyDelegate(r.MetadataKind.Root,o),this.trustedSet.root=o}checkFinalTimestamp(){if(!this.timestamp)throw new ReferenceError("No trusted timestamp metadata");if(this.timestamp.signed.isExpired(this.referenceTime))throw new a.ExpiredMetadataError("Final timestamp.json is expired")}checkFinalSnapsnot(){if(!this.snapshot)throw new ReferenceError("No trusted snapshot metadata");if(!this.timestamp)throw new ReferenceError("No trusted timestamp metadata");if(this.snapshot.signed.isExpired(this.referenceTime))throw new a.ExpiredMetadataError("snapshot.json is expired");let n=this.timestamp.signed.snapshotMeta;if(this.snapshot.signed.version!==n.version)throw new a.BadVersionError("Snapshot version doesn't match timestamp")}};e.TrustedMetadataStore=p}),Dw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.join=a;var r=require("url");function a(c,o){return new r.URL(p(c)+n(o)).toString()}v(a,"join");function p(c){return c.endsWith("/")?c:c+"/"}v(p,"ensureTrailingSlash");function n(c){return c.startsWith("/")?c.slice(1):c}v(n,"removeLeadingSlash")}),Mw=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(f,y,S,E){E===void 0&&(E=S);var b=Object.getOwnPropertyDescriptor(y,S);(!b||("get"in b?!y.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:v(function(){return y[S]},"get")}),Object.defineProperty(f,E,b)}:function(f,y,S,E){E===void 0&&(E=S),f[E]=y[S]}),a=e&&e.__setModuleDefault||(Object.create?function(f,y){Object.defineProperty(f,"default",{enumerable:!0,value:y})}:function(f,y){f.default=y}),p=e&&e.__importStar||function(){var f=v(function(y){return f=Object.getOwnPropertyNames||function(S){var E=[];for(var b in S)Object.prototype.hasOwnProperty.call(S,b)&&(E[E.length]=b);return E},f(y)},"ownKeys");return function(y){if(y&&y.__esModule)return y;var S={};if(y!=null)for(var E=f(y),b=0;b<E.length;b++)E[b]!=="default"&&r(S,y,E[b]);return a(S,y),S}}(),n=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.Updater=void 0;var c=Ro(),o=n(Xt()),t=p(require("fs")),s=p(require("path")),i=kw(),l=Co(),u=Dh(),h=Lw(),d=p(Dw()),g=(0,o.default)("tuf:cache"),m=class{static{v(this,"Updater")}dir;metadataBaseUrl;targetDir;targetBaseUrl;forceCache;trustedSet;config;fetcher;constructor(f){let{metadataDir:y,metadataBaseUrl:S,targetDir:E,targetBaseUrl:b,fetcher:_,config:w}=f;this.dir=y,this.metadataBaseUrl=S,this.targetDir=E,this.targetBaseUrl=b,this.forceCache=f.forceCache??!1;let O=this.loadLocalMetadata(c.MetadataKind.Root);this.trustedSet=new h.TrustedMetadataStore(O),this.config={...i.defaultConfig,...w},this.fetcher=_||new u.DefaultFetcher({timeout:this.config.fetchTimeout,retry:this.config.fetchRetries??this.config.fetchRetry})}async refresh(){if(this.forceCache)try{await this.loadTimestamp({checkRemote:!1})}catch{await this.loadRoot(),await this.loadTimestamp()}else await this.loadRoot(),await this.loadTimestamp();await this.loadSnapshot(),await this.loadTargets(c.MetadataKind.Targets,c.MetadataKind.Root)}async getTargetInfo(f){return this.trustedSet.targets||await this.refresh(),this.preorderDepthFirstWalk(f)}async downloadTarget(f,y,S){let E=y||this.generateTargetPath(f);if(!S){if(!this.targetBaseUrl)throw new l.ValueError("Target base URL not set");S=this.targetBaseUrl}let b=f.path;if(this.trustedSet.root.signed.consistentSnapshot&&this.config.prefixTargetsWithHash){let w=Object.values(f.hashes),{dir:O,base:R}=s.parse(b),I=`${w[0]}.${R}`;b=O?`${O}/${I}`:I}let _=d.join(S,b);return await this.fetcher.downloadFile(_,f.length,async w=>{await f.verify(t.createReadStream(w)),g("WRITE %s",E),t.copyFileSync(w,E)}),E}async findCachedTarget(f,y){y||(y=this.generateTargetPath(f));try{if(t.existsSync(y))return await f.verify(t.createReadStream(y)),y}catch{return}}loadLocalMetadata(f){let y=s.join(this.dir,`${f}.json`);return g("READ %s",y),t.readFileSync(y)}async loadRoot(){let f=this.trustedSet.root.signed.version+1,y=f+this.config.maxRootRotations;for(let S=f;S<y;S++){let E=d.join(this.metadataBaseUrl,`${S}.root.json`);try{let b=await this.fetcher.downloadBytes(E,this.config.rootMaxLength);this.trustedSet.updateRoot(b),this.persistMetadata(c.MetadataKind.Root,b)}catch(b){if(b instanceof l.DownloadHTTPError&&[403,404].includes(b.statusCode))break;throw b}}}async loadTimestamp({checkRemote:f}={checkRemote:!0}){try{let E=this.loadLocalMetadata(c.MetadataKind.Timestamp);if(this.trustedSet.updateTimestamp(E),!f)return}catch{}let y=d.join(this.metadataBaseUrl,"timestamp.json"),S=await this.fetcher.downloadBytes(y,this.config.timestampMaxLength);try{this.trustedSet.updateTimestamp(S)}catch(E){if(E instanceof l.EqualVersionError)return;throw E}this.persistMetadata(c.MetadataKind.Timestamp,S)}async loadSnapshot(){try{let f=this.loadLocalMetadata(c.MetadataKind.Snapshot);this.trustedSet.updateSnapshot(f,!0)}catch{if(!this.trustedSet.timestamp)throw new ReferenceError("No timestamp metadata");let f=this.trustedSet.timestamp.signed.snapshotMeta,y=f.length||this.config.snapshotMaxLength,S=this.trustedSet.root.signed.consistentSnapshot?f.version:void 0,E=d.join(this.metadataBaseUrl,S?`${S}.snapshot.json`:"snapshot.json");try{let b=await this.fetcher.downloadBytes(E,y);this.trustedSet.updateSnapshot(b),this.persistMetadata(c.MetadataKind.Snapshot,b)}catch(b){throw new l.RuntimeError(`Unable to load snapshot metadata error ${b}`)}}}async loadTargets(f,y){if(this.trustedSet.getRole(f))return this.trustedSet.getRole(f);try{let S=this.loadLocalMetadata(f);this.trustedSet.updateDelegatedTargets(S,f,y)}catch{if(!this.trustedSet.snapshot)throw new ReferenceError("No snapshot metadata");let S=this.trustedSet.snapshot.signed.meta[`${f}.json`],E=S.length||this.config.targetsMaxLength,b=this.trustedSet.root.signed.consistentSnapshot?S.version:void 0,_=encodeURIComponent(f),w=d.join(this.metadataBaseUrl,b?`${b}.${_}.json`:`${_}.json`);try{let O=await this.fetcher.downloadBytes(w,E);this.trustedSet.updateDelegatedTargets(O,f,y),this.persistMetadata(f,O)}catch(O){throw new l.RuntimeError(`Unable to load targets error ${O}`)}}return this.trustedSet.getRole(f)}async preorderDepthFirstWalk(f){let y=[{roleName:c.MetadataKind.Targets,parentRoleName:c.MetadataKind.Root}],S=new Set;for(;S.size<=this.config.maxDelegations&&y.length>0;){let{roleName:E,parentRoleName:b}=y.pop();if(S.has(E))continue;let _=(await this.loadTargets(E,b))?.signed;if(!_)continue;let w=_.targets?.[f];if(w)return w;if(S.add(E),_.delegations){let O=[],R=_.delegations.rolesForTarget(f);for(let{role:I,terminating:P}of R)if(O.push({roleName:I,parentRoleName:E}),P){y.splice(0);break}O.reverse(),y.push(...O)}}}generateTargetPath(f){if(!this.targetDir)throw new l.ValueError("Target directory not set");let y=encodeURIComponent(f.path);return s.join(this.targetDir,y)}persistMetadata(f,y){let S=encodeURIComponent(f);try{let E=s.join(this.dir,`${S}.json`);g("WRITE %s",E),t.writeFileSync(E,y.toString("utf8"))}catch(E){throw new l.PersistError(`Failed to persist metadata ${S} error: ${E}`)}}};e.Updater=m}),jw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Updater=e.BaseFetcher=e.TargetFile=void 0;var r=Ro();Object.defineProperty(e,"TargetFile",{enumerable:!0,get:v(function(){return r.TargetFile},"get")});var a=Dh();Object.defineProperty(e,"BaseFetcher",{enumerable:!0,get:v(function(){return a.BaseFetcher},"get")});var p=Mw();Object.defineProperty(e,"Updater",{enumerable:!0,get:v(function(){return p.Updater},"get")})}),Mh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TUFError=void 0;var r=class extends Error{static{v(this,"TUFError")}constructor({code:a,message:p,cause:n}){super(p),this.code=a,this.cause=n,this.name=this.constructor.name}};e.TUFError=r}),$w=K(e=>{"use strict";var r=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.readTarget=n;var a=r(require("fs")),p=Mh();async function n(o,t){let s=await c(o,t);return new Promise((i,l)=>{a.default.readFile(s,"utf-8",(u,h)=>{u?l(new p.TUFError({code:"TUF_READ_TARGET_ERROR",message:`error reading target ${s}`,cause:u})):i(h)})})}v(n,"readTarget");async function c(o,t){let s;try{s=await o.getTargetInfo(t)}catch(l){throw new p.TUFError({code:"TUF_REFRESH_METADATA_ERROR",message:"error refreshing TUF metadata",cause:l})}if(!s)throw new p.TUFError({code:"TUF_FIND_TARGET_ERROR",message:`target ${t} not found`});let i=await o.findCachedTarget(s);if(!i)try{i=await o.downloadTarget(s)}catch(l){throw new p.TUFError({code:"TUF_DOWNLOAD_TARGET_ERROR",message:`error downloading target ${i}`,cause:l})}return i}v(c,"getTargetPath")}),Bw=K((e,r)=>{r.exports={"https://tuf-repo-cdn.sigstore.dev":{"root.json":"ewogInNpZ25hdHVyZXMiOiBbCiAgewogICAia2V5aWQiOiAiNmYyNjAwODlkNTkyM2RhZjIwMTY2Y2E2NTdjNTQzYWY2MTgzNDZhYjk3MTg4NGE5OTk2MmIwMTk4OGJiZTBjMyIsCiAgICJzaWciOiAiIgogIH0sCiAgewogICAia2V5aWQiOiAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiIsCiAgICJzaWciOiAiMzA0NTAyMjEwMGJiZGRkNDY0ZjgwNjZjZWI4OGJhNzg3Mzc1YzEyY2Q2MzMwNjgwZTA4YzI5MTA3MDNlNjUzOGM3MWNjNzlhZDIwMjIwNTE5MGIwNmU0NTM3ZmU5NjFiM2VmODFmZTY4ZWRjZDAwODljMTlmOTE5YWZlZDQyM2I5YWFmZDcwMDY0MTE1MyIKICB9LAogIHsKICAgImtleWlkIjogIjIyZjRjYWVjNmQ4ZTZmOTU1NWFmNjZiM2Q0YzNjYjA2YTNiYjIzZmRjN2UzOWM5MTZjNjFmNDYyZTZmNTJiMDYiLAogICAic2lnIjogIjMwNDQwMjIwNjkzMDZjZDUyNTdmNzMyYTc0MGMxYWZlNjBhOGU0MzNjNWRlNThlYWZlYWRiZTk5YzMzNmM5YzcxZDE5OGNmODAyMjAwZDc3Mzk1M2FlN2RiYzQ4ZDNlNWJhZDlhNmY2NGJhZmZmMTk2YjdlMmFkNGE1MmExOTUxOTM2N2Q0N2RjMDQyIgogIH0sCiAgewogICAia2V5aWQiOiAiNjE2NDM4MzgxMjViNDQwYjQwZGI2OTQyZjVjYjVhMzFjMGRjMDQzNjgzMTZlYjJhYWE1OGI5NTkwNGE1ODIyMiIsCiAgICJzaWciOiAiMzA0NDAyMjA0ZDIxYTJlYzgwZGY2NmU2MWY2ZmUyOTEyOTUxZGM0N2RmODM2MDM2ZjhjMGFiMTA4MTZkMzc1ZTcxZGJmNzllMDIyMDU0N2FkY2UxYWZkZjA0ZTY3OTRlZmEyMDNkZDUyNjRjNmY3ZTBlZjc4ZTU3ZmU5MzRiMGQyNmNiOTk0ZWVjNzYiCiAgfSwKICB7CiAgICJrZXlpZCI6ICJhNjg3ZTViZjRmYWI4MmIwZWU1OGQ0NmUwNWM5NTM1MTQ1YTJjOWFmYjQ1OGY0M2Q0MmI0NWNhMGZkY2UyYTcwIiwKICAgInNpZyI6ICIzMDQ1MDIyMDYwODI2NDk2NTU3MTQ0ZWIxNjQ5ODkzZWQ1ZjZmNGVhNTQ1MzZmZWIwY2E4MmY4Yjg5YWU2NDFiZTM5NzQzZTUwMjIxMDBhZDcxMThiNWU5ZDQ4MzczMjYyMDZlNDEyZmM2ZGEyOTk5OTI1ZDExMDMyOGE3YzE2NmIwNmM2MjQzMzZjOTNmIgogIH0sCiAgewogICAia2V5aWQiOiAiMTgzZTY0ZjM3NjcwZGMxM2NhMGQyODk5NWEzMDUzZjM3NDA5NTRkZGNlNDQzMjFhNDFlNDY1MzRjZjQ0ZTYzMiIsCiAgICJzaWciOiAiMzA0NjAyMjEwMGQ4MTc5NDM5YzJlNzNlYjBjMTczM2FiZWU3ZmFmODMyZGNhZWE3MjYzZWRjYjQ5MTk4OTFjM2EyNDdmMDU5MjMwMjIxMDBlMWE0MzdlMDc5N2U4MDNmOWI3MmRjOWQyZDkyMTU1YjBhMjI3MGMyNGVmZGQ1ZjRiM2E1ZDhmMGIwZjQzMWE3IgogIH0KIF0sCiAic2lnbmVkIjogewogICJfdHlwZSI6ICJyb290IiwKICAiY29uc2lzdGVudF9zbmFwc2hvdCI6IHRydWUsCiAgImV4cGlyZXMiOiAiMjAyNi0wMS0yMlQxMzowNTo1OVoiLAogICJrZXlzIjogewogICAiMGM4NzQzMmMzYmYwOWZkOTkxODlmZGMzMmZhNWVhZWRmNGU0YTVmYWM3YmFiNzNmYTA0YTJlMGZjNjRhZjZmNSI6IHsKICAgICJrZXlpZF9oYXNoX2FsZ29yaXRobXMiOiBbCiAgICAgInNoYTI1NiIsCiAgICAgInNoYTUxMiIKICAgIF0sCiAgICAia2V5dHlwZSI6ICJlY2RzYSIsCiAgICAia2V5dmFsIjogewogICAgICJwdWJsaWMiOiAiLS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVdSaUdyNStqKzNKNVNzSCtadHI1bkUySDJ3TzdcbkJWK25PM3M5M2dMY2ExOHFUT3pIWTFvV3lBR0R5a01Tc0dUVUJTdDlEK0FuMEtmS3NEMm1mU000MlE9PVxuLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4iCiAgICB9LAogICAgInNjaGVtZSI6ICJlY2RzYS1zaGEyLW5pc3RwMjU2IiwKICAgICJ4LXR1Zi1vbi1jaS1vbmxpbmUtdXJpIjogImdjcGttczpwcm9qZWN0cy9zaWdzdG9yZS1yb290LXNpZ25pbmcvbG9jYXRpb25zL2dsb2JhbC9rZXlSaW5ncy9yb290L2NyeXB0b0tleXMvdGltZXN0YW1wL2NyeXB0b0tleVZlcnNpb25zLzEiCiAgIH0sCiAgICIxODNlNjRmMzc2NzBkYzEzY2EwZDI4OTk1YTMwNTNmMzc0MDk1NGRkY2U0NDMyMWE0MWU0NjUzNGNmNDRlNjMyIjogewogICAgImtleXR5cGUiOiAiZWNkc2EiLAogICAgImtleXZhbCI6IHsKICAgICAicHVibGljIjogIi0tLS0tQkVHSU4gUFVCTElDIEtFWS0tLS0tXG5NRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVNeHBQT0pDSVo1b3RHNDEwNmZHSnNlRVFpM1Y5XG5wa01ZUTR1eVY5VGoxTTdXSFhJeUxHK2prZnZ1RzBnbFExSlpiUlpaQlYzZ0FSNHNvamRHSElTZW93PT1cbi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLVxuIgogICAgfSwKICAgICJzY2hlbWUiOiAiZWNkc2Etc2hhMi1uaXN0cDI1NiIsCiAgICAieC10dWYtb24tY2kta2V5b3duZXIiOiAiQGxhbmNlIgogICB9LAogICAiMjJmNGNhZWM2ZDhlNmY5NTU1YWY2NmIzZDRjM2NiMDZhM2JiMjNmZGM3ZTM5YzkxNmM2MWY0NjJlNmY1MmIwNiI6IHsKICAgICJrZXlpZF9oYXNoX2FsZ29yaXRobXMiOiBbCiAgICAgInNoYTI1NiIsCiAgICAgInNoYTUxMiIKICAgIF0sCiAgICAia2V5dHlwZSI6ICJlY2RzYSIsCiAgICAia2V5dmFsIjogewogICAgICJwdWJsaWMiOiAiLS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRXpCelZPbUhDUG9qTVZMU0kzNjRXaWlWOE5QckRcbjZJZ1J4Vmxpc2t6L3YreTNKRVI1bWNWR2NPTmxpRGNXTUM1SjJsZkhtalBOUGhiNEg3eG04THpmU0E9PVxuLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4iCiAgICB9LAogICAgInNjaGVtZSI6ICJlY2RzYS1zaGEyLW5pc3RwMjU2IiwKICAgICJ4LXR1Zi1vbi1jaS1rZXlvd25lciI6ICJAc2FudGlhZ290b3JyZXMiCiAgIH0sCiAgICI2MTY0MzgzODEyNWI0NDBiNDBkYjY5NDJmNWNiNWEzMWMwZGMwNDM2ODMxNmViMmFhYTU4Yjk1OTA0YTU4MjIyIjogewogICAgImtleWlkX2hhc2hfYWxnb3JpdGhtcyI6IFsKICAgICAic2hhMjU2IiwKICAgICAic2hhNTEyIgogICAgXSwKICAgICJrZXl0eXBlIjogImVjZHNhIiwKICAgICJrZXl2YWwiOiB7CiAgICAgInB1YmxpYyI6ICItLS0tLUJFR0lOIFBVQkxJQyBLRVktLS0tLVxuTUZrd0V3WUhLb1pJemowQ0FRWUlLb1pJemowREFRY0RRZ0FFaW5pa1NzQVFtWWtOZUg1ZVlxL0NuSXpMYWFjT1xueGxTYWF3UURPd3FLeS90Q3F4cTV4eFBTSmMyMUs0V0loczlHeU9rS2Z6dWVZM0dJTHpjTUpaNGNXdz09XG4tLS0tLUVORCBQVUJMSUMgS0VZLS0tLS1cbiIKICAgIH0sCiAgICAic2NoZW1lIjogImVjZHNhLXNoYTItbmlzdHAyNTYiLAogICAgIngtdHVmLW9uLWNpLWtleW93bmVyIjogIkBib2JjYWxsYXdheSIKICAgfSwKICAgImE2ODdlNWJmNGZhYjgyYjBlZTU4ZDQ2ZTA1Yzk1MzUxNDVhMmM5YWZiNDU4ZjQzZDQyYjQ1Y2EwZmRjZTJhNzAiOiB7CiAgICAia2V5aWRfaGFzaF9hbGdvcml0aG1zIjogWwogICAgICJzaGEyNTYiLAogICAgICJzaGE1MTIiCiAgICBdLAogICAgImtleXR5cGUiOiAiZWNkc2EiLAogICAgImtleXZhbCI6IHsKICAgICAicHVibGljIjogIi0tLS0tQkVHSU4gUFVCTElDIEtFWS0tLS0tXG5NRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUwZ2hyaDkyTHcxWXIzaWRHVjVXcUN0TURCOEN4XG4rRDhoZEM0dzJaTE5JcGxWUm9WR0xza1lhM2doZU15T2ppSjhrUGkxNWFRMi8vN1Arb2o3VXZKUEd3PT1cbi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLVxuIgogICAgfSwKICAgICJzY2hlbWUiOiAiZWNkc2Etc2hhMi1uaXN0cDI1NiIsCiAgICAieC10dWYtb24tY2kta2V5b3duZXIiOiAiQGpvc2h1YWdsIgogICB9LAogICAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiI6IHsKICAgICJrZXlpZF9oYXNoX2FsZ29yaXRobXMiOiBbCiAgICAgInNoYTI1NiIsCiAgICAgInNoYTUxMiIKICAgIF0sCiAgICAia2V5dHlwZSI6ICJlY2RzYSIsCiAgICAia2V5dmFsIjogewogICAgICJwdWJsaWMiOiAiLS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS1cbk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRUVYc3ozU1pYRmI4ak1WNDJqNnBKbHlqYmpSOEtcbk4zQndvY2V4cTZMTUliNXFzV0tPUXZMTjE2TlVlZkxjNEhzd09vdW1Sc1ZWYWFqU3BRUzZmb2JrUnc9PVxuLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tXG4iCiAgICB9LAogICAgInNjaGVtZSI6ICJlY2RzYS1zaGEyLW5pc3RwMjU2IiwKICAgICJ4LXR1Zi1vbi1jaS1rZXlvd25lciI6ICJAbW5tNjc4IgogICB9CiAgfSwKICAicm9sZXMiOiB7CiAgICJyb290IjogewogICAgImtleWlkcyI6IFsKICAgICAiZTcxYTU0ZDU0MzgzNWJhODZhZGFkOTQ2MDM3OWM3NjQxZmI4NzI2ZDE2NGVhNzY2ODAxYTFjNTIyYWJhN2VhMiIsCiAgICAgIjIyZjRjYWVjNmQ4ZTZmOTU1NWFmNjZiM2Q0YzNjYjA2YTNiYjIzZmRjN2UzOWM5MTZjNjFmNDYyZTZmNTJiMDYiLAogICAgICI2MTY0MzgzODEyNWI0NDBiNDBkYjY5NDJmNWNiNWEzMWMwZGMwNDM2ODMxNmViMmFhYTU4Yjk1OTA0YTU4MjIyIiwKICAgICAiYTY4N2U1YmY0ZmFiODJiMGVlNThkNDZlMDVjOTUzNTE0NWEyYzlhZmI0NThmNDNkNDJiNDVjYTBmZGNlMmE3MCIsCiAgICAgIjE4M2U2NGYzNzY3MGRjMTNjYTBkMjg5OTVhMzA1M2YzNzQwOTU0ZGRjZTQ0MzIxYTQxZTQ2NTM0Y2Y0NGU2MzIiCiAgICBdLAogICAgInRocmVzaG9sZCI6IDMKICAgfSwKICAgInNuYXBzaG90IjogewogICAgImtleWlkcyI6IFsKICAgICAiMGM4NzQzMmMzYmYwOWZkOTkxODlmZGMzMmZhNWVhZWRmNGU0YTVmYWM3YmFiNzNmYTA0YTJlMGZjNjRhZjZmNSIKICAgIF0sCiAgICAidGhyZXNob2xkIjogMSwKICAgICJ4LXR1Zi1vbi1jaS1leHBpcnktcGVyaW9kIjogMzY1MCwKICAgICJ4LXR1Zi1vbi1jaS1zaWduaW5nLXBlcmlvZCI6IDM2NQogICB9LAogICAidGFyZ2V0cyI6IHsKICAgICJrZXlpZHMiOiBbCiAgICAgImU3MWE1NGQ1NDM4MzViYTg2YWRhZDk0NjAzNzljNzY0MWZiODcyNmQxNjRlYTc2NjgwMWExYzUyMmFiYTdlYTIiLAogICAgICIyMmY0Y2FlYzZkOGU2Zjk1NTVhZjY2YjNkNGMzY2IwNmEzYmIyM2ZkYzdlMzljOTE2YzYxZjQ2MmU2ZjUyYjA2IiwKICAgICAiNjE2NDM4MzgxMjViNDQwYjQwZGI2OTQyZjVjYjVhMzFjMGRjMDQzNjgzMTZlYjJhYWE1OGI5NTkwNGE1ODIyMiIsCiAgICAgImE2ODdlNWJmNGZhYjgyYjBlZTU4ZDQ2ZTA1Yzk1MzUxNDVhMmM5YWZiNDU4ZjQzZDQyYjQ1Y2EwZmRjZTJhNzAiLAogICAgICIxODNlNjRmMzc2NzBkYzEzY2EwZDI4OTk1YTMwNTNmMzc0MDk1NGRkY2U0NDMyMWE0MWU0NjUzNGNmNDRlNjMyIgogICAgXSwKICAgICJ0aHJlc2hvbGQiOiAzCiAgIH0sCiAgICJ0aW1lc3RhbXAiOiB7CiAgICAia2V5aWRzIjogWwogICAgICIwYzg3NDMyYzNiZjA5ZmQ5OTE4OWZkYzMyZmE1ZWFlZGY0ZTRhNWZhYzdiYWI3M2ZhMDRhMmUwZmM2NGFmNmY1IgogICAgXSwKICAgICJ0aHJlc2hvbGQiOiAxLAogICAgIngtdHVmLW9uLWNpLWV4cGlyeS1wZXJpb2QiOiA3LAogICAgIngtdHVmLW9uLWNpLXNpZ25pbmctcGVyaW9kIjogNgogICB9CiAgfSwKICAic3BlY192ZXJzaW9uIjogIjEuMCIsCiAgInZlcnNpb24iOiAxMywKICAieC10dWYtb24tY2ktZXhwaXJ5LXBlcmlvZCI6IDE5NywKICAieC10dWYtb24tY2ktc2lnbmluZy1wZXJpb2QiOiA0NgogfQp9",targets:{"trusted_root.json":"ewogICJtZWRpYVR5cGUiOiAiYXBwbGljYXRpb24vdm5kLmRldi5zaWdzdG9yZS50cnVzdGVkcm9vdCtqc29uO3ZlcnNpb249MC4xIiwKICAidGxvZ3MiOiBbCiAgICB7CiAgICAgICJiYXNlVXJsIjogImh0dHBzOi8vcmVrb3Iuc2lnc3RvcmUuZGV2IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUyRzJZKzJ0YWJkVFY1QmNHaUJJeDBhOWZBRndya0JibUxTR3RrczRMM3FYNnlZWTB6dWZCbmhDOFVyL2l5NTVHaFdQLzlBL2JZMkxoQzMwTTkrUll0dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjEtMDEtMTJUMTE6NTM6MjdaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJ3Tkk5YXRRR2x6K1ZXZk82TFJ5Z0g0UVVmWS84VzRSRndpVDVpNVdSZ0IwPSIKICAgICAgfQogICAgfQogIF0sCiAgImNlcnRpZmljYXRlQXV0aG9yaXRpZXMiOiBbCiAgICB7CiAgICAgICJzdWJqZWN0IjogewogICAgICAgICJvcmdhbml6YXRpb24iOiAic2lnc3RvcmUuZGV2IiwKICAgICAgICAiY29tbW9uTmFtZSI6ICJzaWdzdG9yZSIKICAgICAgfSwKICAgICAgInVyaSI6ICJodHRwczovL2Z1bGNpby5zaWdzdG9yZS5kZXYiLAogICAgICAiY2VydENoYWluIjogewogICAgICAgICJjZXJ0aWZpY2F0ZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlCK0RDQ0FYNmdBd0lCQWdJVE5Wa0Rab0Npb2ZQRHN5N2RmbTZnZUxidWh6QUtCZ2dxaGtqT1BRUURBekFxTVJVd0V3WURWUVFLRXd4emFXZHpkRzl5WlM1a1pYWXhFVEFQQmdOVkJBTVRDSE5wWjNOMGIzSmxNQjRYRFRJeE1ETXdOekF6TWpBeU9Wb1hEVE14TURJeU16QXpNakF5T1Zvd0tqRVZNQk1HQTFVRUNoTU1jMmxuYzNSdmNtVXVaR1YyTVJFd0R3WURWUVFERXdoemFXZHpkRzl5WlRCMk1CQUdCeXFHU000OUFnRUdCU3VCQkFBaUEySUFCTFN5QTdJaTVrK3BOTzhaRVdZMHlsZW1XRG93T2tOYTNrTCtHWkU1WjVHV2VoTDkvQTliUk5BM1JicnNaNWkwSmNhc3RhUkw3U3A1ZnAvakQ1ZHhxYy9VZFRWbmx2UzE2YW4rMllmc3dlL1F1TG9sUlVDcmNPRTIrMmlBNSt0emQ2Tm1NR1F3RGdZRFZSMFBBUUgvQkFRREFnRUdNQklHQTFVZEV3RUIvd1FJTUFZQkFmOENBUUV3SFFZRFZSME9CQllFRk1qRkhRQkJtaVFwTWxFazZ3MnVTdTFLQnRQc01COEdBMVVkSXdRWU1CYUFGTWpGSFFCQm1pUXBNbEVrNncydVN1MUtCdFBzTUFvR0NDcUdTTTQ5QkFNREEyZ0FNR1VDTUg4bGlXSmZNdWk2dlhYQmhqRGdZNE13c2xtTi9USnhWZS84M1dyRm9td21OZjA1NnkxWDQ4RjljNG0zYTNvelhBSXhBS2pSYXk1L2FqL2pzS0tHSWttUWF0akk4dXVwSHIvK0N4RnZhSldtcFlxTmtMREdSVSs5b3J6aDVoSTJScmN1YVE9PSIKICAgICAgICAgIH0KICAgICAgICBdCiAgICAgIH0sCiAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAic3RhcnQiOiAiMjAyMS0wMy0wN1QwMzoyMDoyOVoiLAogICAgICAgICJlbmQiOiAiMjAyMi0xMi0zMVQyMzo1OTo1OS45OTlaIgogICAgICB9CiAgICB9LAogICAgewogICAgICAic3ViamVjdCI6IHsKICAgICAgICAib3JnYW5pemF0aW9uIjogInNpZ3N0b3JlLmRldiIsCiAgICAgICAgImNvbW1vbk5hbWUiOiAic2lnc3RvcmUiCiAgICAgIH0sCiAgICAgICJ1cmkiOiAiaHR0cHM6Ly9mdWxjaW8uc2lnc3RvcmUuZGV2IiwKICAgICAgImNlcnRDaGFpbiI6IHsKICAgICAgICAiY2VydGlmaWNhdGVzIjogWwogICAgICAgICAgewogICAgICAgICAgICAicmF3Qnl0ZXMiOiAiTUlJQ0dqQ0NBYUdnQXdJQkFnSVVBTG5WaVZmblUwYnJKYXNtUmtIcm4vVW5mYVF3Q2dZSUtvWkl6ajBFQXdNd0tqRVZNQk1HQTFVRUNoTU1jMmxuYzNSdmNtVXVaR1YyTVJFd0R3WURWUVFERXdoemFXZHpkRzl5WlRBZUZ3MHlNakEwTVRNeU1EQTJNVFZhRncwek1URXdNRFV4TXpVMk5UaGFNRGN4RlRBVEJnTlZCQW9UREhOcFozTjBiM0psTG1SbGRqRWVNQndHQTFVRUF4TVZjMmxuYzNSdmNtVXRhVzUwWlhKdFpXUnBZWFJsTUhZd0VBWUhLb1pJemowQ0FRWUZLNEVFQUNJRFlnQUU4UlZTL3lzSCtOT3Z1RFp5UEladGlsZ1VGOU5sYXJZcEFkOUhQMXZCQkgxVTVDVjc3TFNTN3MwWmlING5FN0h2N3B0UzZMdnZSL1NUazc5OExWZ016TGxKNEhlSWZGM3RIU2FleExjWXBTQVNyMWtTME4vUmdCSnovOWpXQ2lYbm8zc3dlVEFPQmdOVkhROEJBZjhFQkFNQ0FRWXdFd1lEVlIwbEJBd3dDZ1lJS3dZQkJRVUhBd013RWdZRFZSMFRBUUgvQkFnd0JnRUIvd0lCQURBZEJnTlZIUTRFRmdRVTM5UHB6MVlrRVpiNXFOanBLRldpeGk0WVpEOHdId1lEVlIwakJCZ3dGb0FVV01BZVg1RkZwV2FwZXN5UW9aTWkwQ3JGeGZvd0NnWUlLb1pJemowRUF3TURad0F3WkFJd1BDc1FLNERZaVpZRFBJYURpNUhGS25meFh4NkFTU1ZtRVJmc3luWUJpWDJYNlNKUm5aVTg0LzlEWmRuRnZ2eG1BakJPdDZRcEJsYzRKLzBEeHZrVENxcGNsdnppTDZCQ0NQbmpkbElCM1B1M0J4c1BteWdVWTdJaTJ6YmRDZGxpaW93PSIKICAgICAgICAgIH0sCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlCOXpDQ0FYeWdBd0lCQWdJVUFMWk5BUEZkeEhQd2plRGxvRHd5WUNoQU8vNHdDZ1lJS29aSXpqMEVBd013S2pFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNUkV3RHdZRFZRUURFd2h6YVdkemRHOXlaVEFlRncweU1URXdNRGN4TXpVMk5UbGFGdzB6TVRFd01EVXhNelUyTlRoYU1Db3hGVEFUQmdOVkJBb1RESE5wWjNOMGIzSmxMbVJsZGpFUk1BOEdBMVVFQXhNSWMybG5jM1J2Y21Vd2RqQVFCZ2NxaGtqT1BRSUJCZ1VyZ1FRQUlnTmlBQVQ3WGVGVDRyYjNQUUd3UzRJYWp0TGszL09sbnBnYW5nYUJjbFlwc1lCcjVpKzR5bkIwN2NlYjNMUDBPSU9aZHhleFg2OWM1aVZ1eUpSUStIejA1eWkrVUYzdUJXQWxIcGlTNXNoMCtIMkdIRTdTWHJrMUVDNW0xVHIxOUw5Z2c5MmpZekJoTUE0R0ExVWREd0VCL3dRRUF3SUJCakFQQmdOVkhSTUJBZjhFQlRBREFRSC9NQjBHQTFVZERnUVdCQlJZd0I1ZmtVV2xacWw2ekpDaGt5TFFLc1hGK2pBZkJnTlZIU01FR0RBV2dCUll3QjVma1VXbFpxbDZ6SkNoa3lMUUtzWEYrakFLQmdncWhrak9QUVFEQXdOcEFEQm1BakVBajFuSGVYWnArMTNOV0JOYStFRHNEUDhHMVdXZzF0Q01XUC9XSFBxcGFWbzBqaHN3ZU5GWmdTczBlRTd3WUk0cUFqRUEyV0I5b3Q5OHNJa29GM3ZaWWRkMy9WdFdCNWI5VE5NZWE3SXgvc3RKNVRmY0xMZUFCTEU0Qk5KT3NRNHZuQkhKIgogICAgICAgICAgfQogICAgICAgIF0KICAgICAgfSwKICAgICAgInZhbGlkRm9yIjogewogICAgICAgICJzdGFydCI6ICIyMDIyLTA0LTEzVDIwOjA2OjE1WiIKICAgICAgfQogICAgfQogIF0sCiAgImN0bG9ncyI6IFsKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9jdGZlLnNpZ3N0b3JlLmRldi90ZXN0IiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUViZndSK1JKdWRYc2NnUkJScEtYMVhGRHkzUHl1ZER4ei9TZm5SaTFmVDhla3BmQmQyTzF1b3o3anIzWjhuS3p4QTY5RVVRK2VGQ0ZJM3pldWJQV1U3dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjEtMDMtMTRUMDA6MDA6MDBaIiwKICAgICAgICAgICJlbmQiOiAiMjAyMi0xMC0zMVQyMzo1OTo1OS45OTlaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICJDR0NTOENoUy8yaEYwZEZySjRTY1JXY1lyQlk5d3pqU2JlYThJZ1kyYjNJPSIKICAgICAgfQogICAgfSwKICAgIHsKICAgICAgImJhc2VVcmwiOiAiaHR0cHM6Ly9jdGZlLnNpZ3N0b3JlLmRldi8yMDIyIiwKICAgICAgImhhc2hBbGdvcml0aG0iOiAiU0hBMl8yNTYiLAogICAgICAicHVibGljS2V5IjogewogICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUVpUFNsRmkwQ21GVGZFakNVcUY5SHVDRWNZWE5LQWFZYWxJSm1CWjh5eWV6UGpUcWh4cktCcE1uYW9jVnRMSkJJMWVNM3VYblF6UUdBSmRKNGdzOUZ5dz09IiwKICAgICAgICAia2V5RGV0YWlscyI6ICJQS0lYX0VDRFNBX1AyNTZfU0hBXzI1NiIsCiAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgInN0YXJ0IjogIjIwMjItMTAtMjBUMDA6MDA6MDBaIgogICAgICAgIH0KICAgICAgfSwKICAgICAgImxvZ0lkIjogewogICAgICAgICJrZXlJZCI6ICIzVDB3YXNiSEVUSmpHUjRjbVdjM0FxSktYcmplUEszL2g0cHlnQzhwN280PSIKICAgICAgfQogICAgfQogIF0sCiAgInRpbWVzdGFtcEF1dGhvcml0aWVzIjogWwogICAgewogICAgICAic3ViamVjdCI6IHsKICAgICAgICAib3JnYW5pemF0aW9uIjogInNpZ3N0b3JlLmRldiIsCiAgICAgICAgImNvbW1vbk5hbWUiOiAic2lnc3RvcmUtdHNhLXNlbGZzaWduZWQiCiAgICAgIH0sCiAgICAgICJ1cmkiOiAiaHR0cHM6Ly90aW1lc3RhbXAuc2lnc3RvcmUuZGV2L2FwaS92MS90aW1lc3RhbXAiLAogICAgICAiY2VydENoYWluIjogewogICAgICAgICJjZXJ0aWZpY2F0ZXMiOiBbCiAgICAgICAgICB7CiAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNSUlDRURDQ0FaYWdBd0lCQWdJVU9oTlVMd3lRWWU2OHdVTXZ5NHFPaXlvaml3d3dDZ1lJS29aSXpqMEVBd013T1RFVk1CTUdBMVVFQ2hNTWMybG5jM1J2Y21VdVpHVjJNU0F3SGdZRFZRUURFeGR6YVdkemRHOXlaUzEwYzJFdGMyVnNabk5wWjI1bFpEQWVGdzB5TlRBME1EZ3dOalU1TkROYUZ3MHpOVEEwTURZd05qVTVORE5hTUM0eEZUQVRCZ05WQkFvVERITnBaM04wYjNKbExtUmxkakVWTUJNR0ExVUVBeE1NYzJsbmMzUnZjbVV0ZEhOaE1IWXdFQVlIS29aSXpqMENBUVlGSzRFRUFDSURZZ0FFNHJhMlo4aEtOaWcyVDlrRmpDQVRvR0czMGpreStXUXYzQnpMK21LdmgxU0tOUi9Vd3V3c2ZOQ2c0c3J5b1lBZDhFNmlzb3ZWQTNNNGFvTmRtOVFEaTUwWjhuVEV5dnFnZkRQdFRJd1hJdGZpVy9BRmYxVjd1d2tia0FvajB4eGNvMm93YURBT0JnTlZIUThCQWY4RUJBTUNCNEF3SFFZRFZSME9CQllFRkluOWVVT0h6OUJsUnNNQ1JzY3NjMXQ5dE9zRE1COEdBMVVkSXdRWU1CYUFGSmpzQWU5L3UxSC8xSlVlYjRxSW1GTUhpYzYvTUJZR0ExVWRKUUVCL3dRTU1Bb0dDQ3NHQVFVRkJ3TUlNQW9HQ0NxR1NNNDlCQU1EQTJnQU1HVUNNRHRwc1YvNkthTzBxeUYvVU1zWDJhU1VYS1FGZG9HVHB0UUdjMGZ0cTFjc3VsSFBHRzZkc215TU5kM0pCK0czRVFJeEFPYWp2QmNqcEptS2I0TnYrMlRhb2o4VWM1K2I2aWg2RlhDQ0tyYVNxdXBlMDd6cXN3TWNYSlRlMWNFeHZIdnZsdz09IgogICAgICAgICAgfSwKICAgICAgICAgIHsKICAgICAgICAgICAgInJhd0J5dGVzIjogIk1JSUI5ekNDQVh5Z0F3SUJBZ0lVVjdmMEdMRE9vRXpJaDhMWFNXODBPSmlVcDE0d0NnWUlLb1pJemowRUF3TXdPVEVWTUJNR0ExVUVDaE1NYzJsbmMzUnZjbVV1WkdWMk1TQXdIZ1lEVlFRREV4ZHphV2R6ZEc5eVpTMTBjMkV0YzJWc1puTnBaMjVsWkRBZUZ3MHlOVEEwTURnd05qVTVORE5hRncwek5UQTBNRFl3TmpVNU5ETmFNRGt4RlRBVEJnTlZCQW9UREhOcFozTjBiM0psTG1SbGRqRWdNQjRHQTFVRUF4TVhjMmxuYzNSdmNtVXRkSE5oTFhObGJHWnphV2R1WldRd2RqQVFCZ2NxaGtqT1BRSUJCZ1VyZ1FRQUlnTmlBQVFVUU50ZlJUL291M1lBVGE2d0Iva0tUZTcwY2ZKd3lSSUJvdk1udDhSY0pwaC9DT0U4MnV5UzZGbXBwTExMMVZCUEdjUGZwUVBZSk5Yeld3aThpY3doS1E2Vy9RZTJoM29lYkJiMkZIcHdOSkRxbytUTWFDL3RkZmt2L0VsSkI3MmpSVEJETUE0R0ExVWREd0VCL3dRRUF3SUJCakFTQmdOVkhSTUJBZjhFQ0RBR0FRSC9BZ0VBTUIwR0ExVWREZ1FXQkJTWTdBSHZmN3RSLzlTVkhtK0tpSmhUQjRuT3Z6QUtCZ2dxaGtqT1BRUURBd05wQURCbUFqRUF3R0VHcmZHWlIxY2VuMVI4L0RUVk1JOTQzTHNzWm1KUnREcC9pN1NmR0htR1JQNmdSYnVqOXZPSzNiNjdaMFFRQWpFQXVUMkg2NzNMUUVhSFRjeVFTWnJrcDRtWDdXd2ttRitzVmJrWVk1bVhOK1JNSDEzS1VFSEhPcUFTYWVtWVdLL0UiCiAgICAgICAgICB9CiAgICAgICAgXQogICAgICB9LAogICAgICAidmFsaWRGb3IiOiB7CiAgICAgICAgInN0YXJ0IjogIjIwMjUtMDctMDRUMDA6MDA6MDBaIgogICAgICB9CiAgICB9CiAgXQp9Cg==","registry.npmjs.org%2Fkeys.json":"ewogICAgImtleXMiOiBbCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OmpsM2J3c3d1ODBQampva0NnaDBvMnc1YzJVNExoUUFFNTdnajljejFrekEiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTFPbGIzek1BRkZ4WEtIaUlrUU81Y0ozWWhsNWk2VVBwK0lodXRlQkpidUhjQTVVb2dLbzBFV3RsV3dXNktTYUtvVE5FWUw3SmxDUWlWbmtoQmt0VWdnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIxOTk5LTAxLTAxVDAwOjAwOjAwLjAwMFoiLAogICAgICAgICAgICAgICAgICAgICJlbmQiOiAiMjAyNS0wMS0yOVQwMDowMDowMC4wMDBaIgogICAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAgICJrZXlJZCI6ICJTSEEyNTY6amwzYndzd3U4MFBqam9rQ2doMG8ydzVjMlU0TGhRQUU1N2dqOWN6MWt6QSIsCiAgICAgICAgICAgICJrZXlVc2FnZSI6ICJucG06YXR0ZXN0YXRpb25zIiwKICAgICAgICAgICAgInB1YmxpY0tleSI6IHsKICAgICAgICAgICAgICAgICJyYXdCeXRlcyI6ICJNRmt3RXdZSEtvWkl6ajBDQVFZSUtvWkl6ajBEQVFjRFFnQUUxT2xiM3pNQUZGeFhLSGlJa1FPNWNKM1lobDVpNlVQcCtJaHV0ZUJKYnVIY0E1VW9nS28wRVd0bFd3VzZLU2FLb1RORVlMN0psQ1FpVm5raEJrdFVnZz09IiwKICAgICAgICAgICAgICAgICJrZXlEZXRhaWxzIjogIlBLSVhfRUNEU0FfUDI1Nl9TSEFfMjU2IiwKICAgICAgICAgICAgICAgICJ2YWxpZEZvciI6IHsKICAgICAgICAgICAgICAgICAgICAic3RhcnQiOiAiMjAyMi0xMi0wMVQwMDowMDowMC4wMDBaIiwKICAgICAgICAgICAgICAgICAgICAiZW5kIjogIjIwMjUtMDEtMjlUMDA6MDA6MDAuMDAwWiIKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgewogICAgICAgICAgICAia2V5SWQiOiAiU0hBMjU2OkRoUTh3UjVBUEJ2RkhMRi8rVGMrQVl2UE9kVHBjSURxT2h4c0JIUndDN1UiLAogICAgICAgICAgICAia2V5VXNhZ2UiOiAibnBtOnNpZ25hdHVyZXMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgIHsKICAgICAgICAgICAgImtleUlkIjogIlNIQTI1NjpEaFE4d1I1QVBCdkZITEYvK1RjK0FZdlBPZFRwY0lEcU9oeHNCSFJ3QzdVIiwKICAgICAgICAgICAgImtleVVzYWdlIjogIm5wbTphdHRlc3RhdGlvbnMiLAogICAgICAgICAgICAicHVibGljS2V5IjogewogICAgICAgICAgICAgICAgInJhd0J5dGVzIjogIk1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVk2WWE3VysrN2FVUHp2TVRyZXpINlljeDNjK0hPS1lDY05HeWJKWlNDSnEvZmQ3UWE4dXVBS3RkSWtVUXRRaUVLRVJoQW1FNWxNTUpoUDhPa0RPYTJnPT0iLAogICAgICAgICAgICAgICAgImtleURldGFpbHMiOiAiUEtJWF9FQ0RTQV9QMjU2X1NIQV8yNTYiLAogICAgICAgICAgICAgICAgInZhbGlkRm9yIjogewogICAgICAgICAgICAgICAgICAgICJzdGFydCI6ICIyMDI1LTAxLTEzVDAwOjAwOjAwLjAwMFoiCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICBdCn0K"}}}}),Uw=K(e=>{"use strict";var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.TUFClient=void 0;var a=r(require("fs")),p=r(require("path")),n=jw(),c=Io(),o=$w(),t="targets",s=class{static{v(this,"TUFClient")}constructor(h){let d=new URL(h.mirrorURL),g=encodeURIComponent(d.host+d.pathname.replace(/\/$/,"")),m=p.default.join(h.cachePath,g);i(m),l({cachePath:m,mirrorURL:h.mirrorURL,tufRootPath:h.rootPath,forceInit:h.forceInit}),this.updater=u({mirrorURL:h.mirrorURL,cachePath:m,forceCache:h.forceCache,retry:h.retry,timeout:h.timeout})}async refresh(){return this.updater.refresh()}getTarget(h){return(0,o.readTarget)(this.updater,h)}};e.TUFClient=s;function i(h){let d=p.default.join(h,t);a.default.existsSync(h)||a.default.mkdirSync(h,{recursive:!0}),a.default.existsSync(d)||a.default.mkdirSync(d)}v(i,"initTufCache");function l({cachePath:h,mirrorURL:d,tufRootPath:g,forceInit:m}){let f=p.default.join(h,"root.json");if(!a.default.existsSync(f)||m)if(g)a.default.copyFileSync(g,f);else{let y=Bw()[d];if(!y)throw new c.TUFError({code:"TUF_INIT_CACHE_ERROR",message:`No root.json found for mirror: ${d}`});a.default.writeFileSync(f,Buffer.from(y["root.json"],"base64")),Object.entries(y.targets).forEach(([S,E])=>{a.default.writeFileSync(p.default.join(h,t,S),Buffer.from(E,"base64"))})}}v(l,"seedCache");function u(h){let d={fetchTimeout:h.timeout,fetchRetry:h.retry};return new n.Updater({metadataBaseUrl:h.mirrorURL,targetBaseUrl:`${h.mirrorURL}/targets`,metadataDir:h.cachePath,targetDir:p.default.join(h.cachePath,t),forceCache:h.forceCache,config:d})}v(u,"initClient")}),Io=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TUFError=e.DEFAULT_MIRROR_URL=void 0,e.getTrustedRoot=s,e.initTUF=i;var r=ks(),a=Ew(),p=Uw();e.DEFAULT_MIRROR_URL="https://tuf-repo-cdn.sigstore.dev";var n="sigstore-js",c={retries:2},o=5e3,t="trusted_root.json";async function s(h={}){let d=await l(h).getTarget(t);return r.TrustedRoot.fromJSON(JSON.parse(d))}v(s,"getTrustedRoot");async function i(h={}){let d=l(h);return d.refresh().then(()=>d)}v(i,"initTUF");function l(h){return new p.TUFClient({cachePath:h.cachePath||(0,a.appDataPath)(n),rootPath:h.rootPath,mirrorURL:h.mirrorURL||e.DEFAULT_MIRROR_URL,retry:h.retry??c,timeout:h.timeout??o,forceCache:h.forceCache??!1,forceInit:h.forceInit??h.force??!1})}v(l,"createClient");var u=Mh();Object.defineProperty(e,"TUFError",{enumerable:!0,get:v(function(){return u.TUFError},"get")})}),Fw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DSSESignatureContent=void 0;var r=Xe(),a=class{static{v(this,"DSSESignatureContent")}constructor(p){this.env=p}compareDigest(p){return r.crypto.bufferEqual(p,r.crypto.digest("sha256",this.env.payload))}compareSignature(p){return r.crypto.bufferEqual(p,this.signature)}verifySignature(p){return r.crypto.verify(this.preAuthEncoding,p,this.signature)}get signature(){return this.env.signatures.length>0?this.env.signatures[0].sig:Buffer.from("")}get preAuthEncoding(){return r.dsse.preAuthEncoding(this.env.payloadType,this.env.payload)}};e.DSSESignatureContent=a}),Hw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MessageSignatureContent=void 0;var r=Xe(),a=class{static{v(this,"MessageSignatureContent")}constructor(p,n){this.signature=p.signature,this.messageDigest=p.messageDigest.digest,this.artifact=n}compareSignature(p){return r.crypto.bufferEqual(p,this.signature)}compareDigest(p){return r.crypto.bufferEqual(p,this.messageDigest)}verifySignature(p){return r.crypto.verify(this.artifact,p,this.signature)}};e.MessageSignatureContent=a}),Gw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toSignedEntity=n,e.signatureContent=c;var r=Xe(),a=Fw(),p=Hw();function n(t,s){let{tlogEntries:i,timestampVerificationData:l}=t.verificationMaterial,u=[];for(let h of i)u.push({$case:"transparency-log",tlogEntry:h});for(let h of l?.rfc3161Timestamps??[])u.push({$case:"timestamp-authority",timestamp:r.RFC3161Timestamp.parse(h.signedTimestamp)});return{signature:c(t,s),key:o(t),tlogEntries:i,timestamps:u}}v(n,"toSignedEntity");function c(t,s){switch(t.content.$case){case"dsseEnvelope":return new a.DSSESignatureContent(t.content.dsseEnvelope);case"messageSignature":return new p.MessageSignatureContent(t.content.messageSignature,s)}}v(c,"signatureContent");function o(t){switch(t.verificationMaterial.content.$case){case"publicKey":return{$case:"public-key",hint:t.verificationMaterial.content.publicKey.hint};case"x509CertificateChain":return{$case:"certificate",certificate:r.X509Certificate.parse(t.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes)};case"certificate":return{$case:"certificate",certificate:r.X509Certificate.parse(t.verificationMaterial.content.certificate.rawBytes)}}}v(o,"key")}),Ue=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolicyError=e.VerificationError=void 0;var r=class extends Error{static{v(this,"BaseError")}constructor({code:n,message:c,cause:o}){super(c),this.code=n,this.cause=o,this.name=this.constructor.name}},a=class extends r{static{v(this,"VerificationError")}};e.VerificationError=a;var p=class extends r{static{v(this,"PolicyError")}};e.PolicyError=p}),Vw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterCertAuthorities=r,e.filterTLogAuthorities=a;function r(p,n){return p.filter(c=>c.validFor.start<=n&&c.validFor.end>=n)}v(r,"filterCertAuthorities");function a(p,n){return p.filter(c=>n.logID&&!c.logID.equals(n.logID)?!1:c.validFor.start<=n.targetDate&&n.targetDate<=c.validFor.end)}v(a,"filterTLogAuthorities")}),Qt=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filterTLogAuthorities=e.filterCertAuthorities=void 0,e.toTrustMaterial=t;var r=Xe(),a=ks(),p=Ue(),n=new Date(0),c=new Date(864e13),o=Vw();Object.defineProperty(e,"filterCertAuthorities",{enumerable:!0,get:v(function(){return o.filterCertAuthorities},"get")}),Object.defineProperty(e,"filterTLogAuthorities",{enumerable:!0,get:v(function(){return o.filterTLogAuthorities},"get")});function t(u,h){let d=typeof h=="function"?h:l(h);return{certificateAuthorities:u.certificateAuthorities.map(i),timestampAuthorities:u.timestampAuthorities.map(i),tlogs:u.tlogs.map(s),ctlogs:u.ctlogs.map(s),publicKey:d}}v(t,"toTrustMaterial");function s(u){let h=u.publicKey.keyDetails,d=h===a.PublicKeyDetails.PKCS1_RSA_PKCS1V5||h===a.PublicKeyDetails.PKIX_RSA_PKCS1V5||h===a.PublicKeyDetails.PKIX_RSA_PKCS1V15_2048_SHA256||h===a.PublicKeyDetails.PKIX_RSA_PKCS1V15_3072_SHA256||h===a.PublicKeyDetails.PKIX_RSA_PKCS1V15_4096_SHA256?"pkcs1":"spki";return{logID:u.logId.keyId,publicKey:r.crypto.createPublicKey(u.publicKey.rawBytes,d),validFor:{start:u.publicKey.validFor?.start||n,end:u.publicKey.validFor?.end||c}}}v(s,"createTLogAuthority");function i(u){return{certChain:u.certChain.certificates.map(h=>r.X509Certificate.parse(h.rawBytes)),validFor:{start:u.validFor?.start||n,end:u.validFor?.end||c}}}v(i,"createCertAuthority");function l(u){return h=>{let d=(u||{})[h];if(!d)throw new p.VerificationError({code:"PUBLIC_KEY_ERROR",message:`key not found: ${h}`});return{publicKey:r.crypto.createPublicKey(d.rawBytes),validFor:v(g=>(d.validFor?.start||n)<=g&&(d.validFor?.end||c)>=g,"validFor")}}}v(l,"keyLocator")}),jh=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CertificateChainVerifier=void 0,e.verifyCertificateChain=p;var r=Ue(),a=Qt();function p(o,t,s){let i=(0,a.filterCertAuthorities)(s,o),l;for(let u of i)try{return new n({trustedCerts:u.certChain,untrustedCert:t,timestamp:o}).verify()}catch(h){l=h}throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"Failed to verify certificate chain",cause:l})}v(p,"verifyCertificateChain");var n=class{static{v(this,"CertificateChainVerifier")}constructor(o){this.untrustedCert=o.untrustedCert,this.trustedCerts=o.trustedCerts,this.localCerts=c([...o.trustedCerts,o.untrustedCert]),this.timestamp=o.timestamp}verify(){let o=this.sort();if(this.checkPath(o),!o.every(t=>t.validForDate(this.timestamp)))throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate is not valid or expired at the specified date"});return o}sort(){let o=this.untrustedCert,t=this.buildPaths(o);if(t=t.filter(i=>i.some(l=>this.trustedCerts.includes(l))),t.length===0)throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"no trusted certificate path found"});let s=t.reduce((i,l)=>i.length<l.length?i:l);return[o,...s].slice(0,-1)}buildPaths(o){let t=[],s=this.findIssuer(o);if(s.length===0)throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"no valid certificate path found"});for(let i=0;i<s.length;i++){let l=s[i];if(l.equals(o)){t.push([o]);continue}let u=this.buildPaths(l);for(let h=0;h<u.length;h++)t.push([l,...u[h]])}return t}findIssuer(o){let t=[],s;return o.subject.equals(o.issuer)&&o.verify()?[o]:(o.extAuthorityKeyID&&(s=o.extAuthorityKeyID.keyIdentifier),this.localCerts.forEach(i=>{if(s&&i.extSubjectKeyID){i.extSubjectKeyID.keyIdentifier.equals(s)&&t.push(i);return}i.subject.equals(o.issuer)&&t.push(i)}),t=t.filter(i=>{try{return o.verify(i)}catch{return!1}}),t)}checkPath(o){if(o.length<1)throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"certificate chain must contain at least one certificate"});if(!o.slice(1).every(t=>t.isCA))throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"intermediate certificate is not a CA"});for(let t=o.length-2;t>=0;t--)if(!o[t].issuer.equals(o[t+1].subject))throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"incorrect certificate name chaining"});for(let t=0;t<o.length;t++){let s=o[t];if(s.extBasicConstraints?.isCA){let i=s.extBasicConstraints.pathLenConstraint;if(i!==void 0&&i<t-1)throw new r.VerificationError({code:"CERTIFICATE_ERROR",message:"path length constraint exceeded"})}}}};e.CertificateChainVerifier=n;function c(o){for(let t=0;t<o.length;t++)for(let s=t+1;s<o.length;s++)o[t].equals(o[s])&&(o.splice(s,1),s--);return o}v(c,"dedupeCertificates")}),Ww=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifySCTs=n;var r=Xe(),a=Ue(),p=Qt();function n(c,o,t){let s,i=c.clone();for(let d=0;d<i.extensions.length;d++){let g=i.extensions[d];if(g.subs[0].toOID()===r.EXTENSION_OID_SCT){s=new r.X509SCTExtension(g),i.extensions.splice(d,1);break}}if(!s)return[];if(s.signedCertificateTimestamps.length===0)return[];let l=new r.ByteStream,u=r.crypto.digest("sha256",o.publicKey);l.appendView(u);let h=i.tbsCertificate.toDER();return l.appendUint24(h.length),l.appendView(h),s.signedCertificateTimestamps.map(d=>{if(!(0,p.filterTLogAuthorities)(t,{logID:d.logID,targetDate:d.datetime}).some(g=>d.verify(l.buffer,g.publicKey)))throw new a.VerificationError({code:"CERTIFICATE_ERROR",message:"SCT verification failed"});return d.logID})}v(n,"verifySCTs")}),zw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyPublicKey=t,e.verifyCertificate=s;var r=Xe(),a=Ue(),p=jh(),n=Ww(),c="1.3.6.1.4.1.57264.1.1",o="1.3.6.1.4.1.57264.1.8";function t(l,u,h){let d=h.publicKey(l);return u.forEach(g=>{if(!d.validFor(g))throw new a.VerificationError({code:"PUBLIC_KEY_ERROR",message:`Public key is not valid for timestamp: ${g.toISOString()}`})}),{key:d.publicKey}}v(t,"verifyPublicKey");function s(l,u,h){let d=[];return u.forEach(g=>{d=(0,p.verifyCertificateChain)(g,l,h.certificateAuthorities)}),{scts:(0,n.verifySCTs)(d[0],d[1],h.ctlogs),signer:i(d[0])}}v(s,"verifyCertificate");function i(l){let u,h=l.extension(o);h?u=h.valueObj.subs?.[0]?.value.toString("ascii"):u=l.extension(c)?.value.toString("ascii");let d={extensions:{issuer:u},subjectAlternativeName:l.subjectAltName};return{key:r.crypto.createPublicKey(l.publicKey),identity:d}}v(i,"getSigner")}),qw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifySubjectAlternativeName=a,e.verifyExtensions=p;var r=Ue();function a(n,c){if(c===void 0||!c.match(n))throw new r.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`certificate identity error - expected ${n}, got ${c}`})}v(a,"verifySubjectAlternativeName");function p(n,c={}){let o;for(o in n)if(c[o]!==n[o])throw new r.PolicyError({code:"UNTRUSTED_SIGNER_ERROR",message:`invalid certificate extension - expected ${o}=${n[o]}, got ${o}=${c[o]}`})}v(p,"verifyExtensions")}),Kw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyCheckpoint=o;var r=Xe(),a=Ue(),p=Qt(),n=`
64
+
65
+ `,c=/\u2014 (\S+) (\S+)\n/g;function o(l,u){let h=(0,p.filterTLogAuthorities)(u,{targetDate:new Date(Number(l.integratedTime)*1e3)}),d=l.inclusionProof,g=s.fromString(d.checkpoint.envelope),m=i.fromString(g.note);if(!t(g,h))throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});if(!r.crypto.bufferEqual(m.logHash,d.rootHash))throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"root hash mismatch"})}v(o,"verifyCheckpoint");function t(l,u){let h=Buffer.from(l.note,"utf-8");return l.signatures.every(d=>{let g=u.find(m=>r.crypto.bufferEqual(m.logID.subarray(0,4),d.keyHint));return g?r.crypto.verify(h,g.publicKey,d.signature):!1})}v(t,"verifySignedNote");var s=class $h{static{v(this,"SignedNote")}constructor(u,h){this.note=u,this.signatures=h}static fromString(u){if(!u.includes(n))throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let h=u.indexOf(n),d=u.slice(0,h+1),g=u.slice(h+n.length).matchAll(c),m=Array.from(g,f=>{let[,y,S]=f,E=Buffer.from(S,"base64");if(E.length<5)throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:y,keyHint:E.subarray(0,4),signature:E.subarray(4)}});if(m.length===0)throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new $h(d,m)}},i=class Bh{static{v(this,"LogCheckpoint")}constructor(u,h,d,g){this.origin=u,this.logSize=h,this.logHash=d,this.rest=g}static fromString(u){let h=u.trimEnd().split(`
66
+ `);if(h.length<3)throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let d=h[0],g=BigInt(h[1]),m=Buffer.from(h[2],"base64"),f=h.slice(3);return new Bh(d,g,m,f)}}}),Jw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyMerkleInclusion=c;var r=Xe(),a=Ue(),p=Buffer.from([0]),n=Buffer.from([1]);function c(g){let m=g.inclusionProof,f=BigInt(m.logIndex),y=BigInt(m.treeSize);if(f<0n||f>=y)throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${f}`});let{inner:S,border:E}=o(f,y);if(m.hashes.length!==S+E)throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let b=m.hashes.slice(0,S),_=m.hashes.slice(S),w=d(g.canonicalizedBody),O=s(t(w,b,f),_);if(!r.crypto.bufferEqual(O,m.rootHash))throw new a.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}v(c,"verifyMerkleInclusion");function o(g,m){let f=i(g,m),y=l(g>>BigInt(f));return{inner:f,border:y}}v(o,"decompInclProof");function t(g,m,f){return m.reduce((y,S,E)=>f>>BigInt(E)&BigInt(1)?h(S,y):h(y,S),g)}v(t,"chainInner");function s(g,m){return m.reduce((f,y)=>h(y,f),g)}v(s,"chainBorderRight");function i(g,m){return u(g^m-BigInt(1))}v(i,"innerProofSize");function l(g){return g.toString(2).split("1").length-1}v(l,"onesCount");function u(g){return g===0n?0:g.toString(2).length}v(u,"bitLength");function h(g,m){return r.crypto.digest("sha256",n,g,m)}v(h,"hashChildren");function d(g){return r.crypto.digest("sha256",p,g)}v(d,"hashLeaf")}),Zw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTLogSET=n;var r=Xe(),a=Ue(),p=Qt();function n(o,t){if(!(0,p.filterTLogAuthorities)(t,{logID:o.logId.keyId,targetDate:new Date(Number(o.integratedTime)*1e3)}).some(s=>{let i=c(o),l=Buffer.from(r.json.canonicalize(i),"utf8"),u=o.inclusionPromise.signedEntryTimestamp;return r.crypto.verify(l,s.publicKey,u)}))throw new a.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}v(n,"verifyTLogSET");function c(o){let{integratedTime:t,logIndex:s,logId:i,canonicalizedBody:l}=o;return{body:l.toString("base64"),integratedTime:Number(t),logIndex:Number(s),logID:i.keyId.toString("hex")}}v(c,"toVerificationPayload")}),Xw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyRFC3161Timestamp=c;var r=Xe(),a=Ue(),p=jh(),n=Qt();function c(s,i,l){let u=s.signingTime;if(l=(0,n.filterCertAuthorities)(l,u),l=t(l,{serialNumber:s.signerSerialNumber,issuer:s.signerIssuer}),!l.some(h=>{try{return o(s,i,h),!0}catch{return!1}}))throw new a.VerificationError({code:"TIMESTAMP_ERROR",message:"timestamp could not be verified"})}v(c,"verifyRFC3161Timestamp");function o(s,i,l){let[u,...h]=l.certChain,d=r.crypto.createPublicKey(u.publicKey),g=s.signingTime;try{new p.CertificateChainVerifier({untrustedCert:u,trustedCerts:h,timestamp:g}).verify()}catch{throw new a.VerificationError({code:"TIMESTAMP_ERROR",message:"invalid certificate chain"})}s.verify(i,d)}v(o,"verifyTimestampForCA");function t(s,i){return s.filter(l=>l.certChain.length>0&&r.crypto.bufferEqual(l.certChain[0].serialNumber,i.serialNumber)&&r.crypto.bufferEqual(l.certChain[0].issuer,i.issuer))}v(t,"filterCAsBySerialAndIssuer")}),Yw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTSATimestamp=o,e.verifyTLogTimestamp=t;var r=Ue(),a=Kw(),p=Jw(),n=Zw(),c=Xw();function o(l,u,h){return(0,c.verifyRFC3161Timestamp)(l,u,h),{type:"timestamp-authority",logID:l.signerSerialNumber,timestamp:l.signingTime}}v(o,"verifyTSATimestamp");function t(l,u){let h=!1;if(s(l)&&((0,n.verifyTLogSET)(l,u),h=!0),i(l)&&((0,p.verifyMerkleInclusion)(l),(0,a.verifyCheckpoint)(l,u),h=!0),!h)throw new r.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"});return{type:"transparency-log",logID:l.logId.keyId,timestamp:new Date(Number(l.integratedTime)*1e3)}}v(t,"verifyTLogTimestamp");function s(l){return l.inclusionPromise!==void 0}v(s,"isTLogEntryWithInclusionPromise");function i(l){return l.inclusionProof!==void 0}v(i,"isTLogEntryWithInclusionProof")}),Qw=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyDSSETLogBody=a;var r=Ue();function a(n,c){switch(n.apiVersion){case"0.0.1":return p(n,c);default:throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported dsse version: ${n.apiVersion}`})}}v(a,"verifyDSSETLogBody");function p(n,c){if(n.spec.signatures?.length!==1)throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let o=n.spec.signatures[0].signature;if(!c.compareSignature(Buffer.from(o,"base64")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let t=n.spec.payloadHash?.value||"";if(!c.compareDigest(Buffer.from(t,"hex")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}v(p,"verifyDSSE001TLogBody")}),eO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyHashedRekordTLogBody=a;var r=Ue();function a(n,c){switch(n.apiVersion){case"0.0.1":return p(n,c);default:throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported hashedrekord version: ${n.apiVersion}`})}}v(a,"verifyHashedRekordTLogBody");function p(n,c){let o=n.spec.signature.content||"";if(!c.compareSignature(Buffer.from(o,"base64")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"signature mismatch"});let t=n.spec.data.hash?.value||"";if(!c.compareDigest(Buffer.from(t,"hex")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"digest mismatch"})}v(p,"verifyHashedrekord001TLogBody")}),tO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyIntotoTLogBody=a;var r=Ue();function a(c,o){switch(c.apiVersion){case"0.0.2":return p(c,o);default:throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported intoto version: ${c.apiVersion}`})}}v(a,"verifyIntotoTLogBody");function p(c,o){if(c.spec.content.envelope.signatures?.length!==1)throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"signature count mismatch"});let t=n(c.spec.content.envelope.signatures[0].sig);if(!o.compareSignature(Buffer.from(t,"base64")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"tlog entry signature mismatch"});let s=c.spec.content.payloadHash?.value||"";if(!o.compareDigest(Buffer.from(s,"hex")))throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:"DSSE payload hash mismatch"})}v(p,"verifyIntoto002TLogBody");function n(c){return Buffer.from(c,"base64").toString("utf-8")}v(n,"base64Decode")}),rO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyTLogBody=c;var r=Ue(),a=Qw(),p=eO(),n=tO();function c(o,t){let{kind:s,version:i}=o.kindVersion,l=JSON.parse(o.canonicalizedBody.toString("utf8"));if(s!==l.kind||i!==l.apiVersion)throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${s}/${i}, received: ${l.kind}/${l.apiVersion}`});switch(l.kind){case"dsse":return(0,a.verifyDSSETLogBody)(l,t);case"intoto":return(0,n.verifyIntotoTLogBody)(l,t);case"hashedrekord":return(0,p.verifyHashedRekordTLogBody)(l,t);default:throw new r.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${s}`})}}v(c,"verifyTLogBody")}),sO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Verifier=void 0;var r=require("util"),a=Ue(),p=zw(),n=qw(),c=Yw(),o=rO(),t=class{static{v(this,"Verifier")}constructor(i,l={}){this.trustMaterial=i,this.options={ctlogThreshold:l.ctlogThreshold??1,tlogThreshold:l.tlogThreshold??1,tsaThreshold:l.tsaThreshold??0}}verify(i,l){let u=this.verifyTimestamps(i),h=this.verifySigningKey(i,u);return this.verifyTLogs(i),this.verifySignature(i,h),l&&this.verifyPolicy(l,h.identity||{}),h}verifyTimestamps(i){let l=0,u=0,h=i.timestamps.map(d=>{switch(d.$case){case"timestamp-authority":return u++,(0,c.verifyTSATimestamp)(d.timestamp,i.signature.signature,this.trustMaterial.timestampAuthorities);case"transparency-log":return l++,(0,c.verifyTLogTimestamp)(d.tlogEntry,this.trustMaterial.tlogs)}});if(s(h))throw new a.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(l<this.options.tlogThreshold)throw new a.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.tlogThreshold} tlog timestamps, got ${l}`});if(u<this.options.tsaThreshold)throw new a.VerificationError({code:"TIMESTAMP_ERROR",message:`expected ${this.options.tsaThreshold} tsa timestamps, got ${u}`});return h.map(d=>d.timestamp)}verifySigningKey({key:i},l){switch(i.$case){case"public-key":return(0,p.verifyPublicKey)(i.hint,l,this.trustMaterial);case"certificate":{let u=(0,p.verifyCertificate)(i.certificate,l,this.trustMaterial);if(s(u.scts))throw new a.VerificationError({code:"CERTIFICATE_ERROR",message:"duplicate SCT"});if(u.scts.length<this.options.ctlogThreshold)throw new a.VerificationError({code:"CERTIFICATE_ERROR",message:`expected ${this.options.ctlogThreshold} SCTs, got ${u.scts.length}`});return u.signer}}}verifyTLogs({signature:i,tlogEntries:l}){l.forEach(u=>(0,o.verifyTLogBody)(u,i))}verifySignature(i,l){if(!i.signature.verifySignature(l.key))throw new a.VerificationError({code:"SIGNATURE_ERROR",message:"signature verification failed"})}verifyPolicy(i,l){i.subjectAlternativeName&&(0,n.verifySubjectAlternativeName)(i.subjectAlternativeName,l.subjectAlternativeName),i.extensions&&(0,n.verifyExtensions)(i.extensions,l.extensions)}};e.Verifier=t;function s(i){for(let l=0;l<i.length;l++)for(let u=l+1;u<i.length;u++)if((0,r.isDeepStrictEqual)(i[l],i[u]))return!0;return!1}v(s,"containsDupes")}),To=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Verifier=e.toTrustMaterial=e.VerificationError=e.PolicyError=e.toSignedEntity=void 0;var r=Gw();Object.defineProperty(e,"toSignedEntity",{enumerable:!0,get:v(function(){return r.toSignedEntity},"get")});var a=Ue();Object.defineProperty(e,"PolicyError",{enumerable:!0,get:v(function(){return a.PolicyError},"get")}),Object.defineProperty(e,"VerificationError",{enumerable:!0,get:v(function(){return a.VerificationError},"get")});var p=Qt();Object.defineProperty(e,"toTrustMaterial",{enumerable:!0,get:v(function(){return p.toTrustMaterial},"get")});var n=sO();Object.defineProperty(e,"Verifier",{enumerable:!0,get:v(function(){return n.Verifier},"get")})}),iO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_TIMEOUT=e.DEFAULT_RETRY=void 0,e.createBundleBuilder=n,e.createKeyFinder=c,e.createVerificationPolicy=o;var r=Xe(),a=Ah(),p=To();e.DEFAULT_RETRY={retries:2},e.DEFAULT_TIMEOUT=5e3;function n(h,d){let g={signer:t(d),witnesses:i(d)};switch(h){case"messageSignature":return new a.MessageSignatureBundleBuilder(g);case"dsseEnvelope":return new a.DSSEBundleBuilder({...g,certificateChain:d.legacyCompatibility})}}v(n,"createBundleBuilder");function c(h){return d=>{let g=h(d);if(!g)throw new p.VerificationError({code:"PUBLIC_KEY_ERROR",message:`key not found: ${d}`});return{publicKey:r.crypto.createPublicKey(g),validFor:v(()=>!0,"validFor")}}}v(c,"createKeyFinder");function o(h){let d={},g=h.certificateIdentityEmail||h.certificateIdentityURI;return g&&(d.subjectAlternativeName=g),h.certificateIssuer&&(d.extensions={issuer:h.certificateIssuer}),d}v(o,"createVerificationPolicy");function t(h){return new a.FulcioSigner({fulcioBaseURL:h.fulcioURL,identityProvider:h.identityProvider||s(h),retry:h.retry??e.DEFAULT_RETRY,timeout:h.timeout??e.DEFAULT_TIMEOUT})}v(t,"initSigner");function s(h){let d=h.identityToken;return d?{getToken:v(()=>Promise.resolve(d),"getToken")}:new a.CIContextProvider("sigstore")}v(s,"initIdentityProvider");function i(h){let d=[];return l(h)&&d.push(new a.RekorWitness({rekorBaseURL:h.rekorURL,entryType:h.legacyCompatibility?"intoto":"dsse",fetchOnConflict:!1,retry:h.retry??e.DEFAULT_RETRY,timeout:h.timeout??e.DEFAULT_TIMEOUT})),u(h)&&d.push(new a.TSAWitness({tsaBaseURL:h.tsaServerURL,retry:h.retry??e.DEFAULT_RETRY,timeout:h.timeout??e.DEFAULT_TIMEOUT})),d}v(i,"initWitnesses");function l(h){return h.tlogUpload!==!1}v(l,"isRekorEnabled");function u(h){return h.tsaServerURL!==void 0}v(u,"isTSAEnabled")}),nO=K(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(h,d,g,m){m===void 0&&(m=g);var f=Object.getOwnPropertyDescriptor(d,g);(!f||("get"in f?!d.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:v(function(){return d[g]},"get")}),Object.defineProperty(h,m,f)}:function(h,d,g,m){m===void 0&&(m=g),h[m]=d[g]}),a=e&&e.__setModuleDefault||(Object.create?function(h,d){Object.defineProperty(h,"default",{enumerable:!0,value:d})}:function(h,d){h.default=d}),p=e&&e.__importStar||function(){var h=v(function(d){return h=Object.getOwnPropertyNames||function(g){var m=[];for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&(m[m.length]=f);return m},h(d)},"ownKeys");return function(d){if(d&&d.__esModule)return d;var g={};if(d!=null)for(var m=h(d),f=0;f<m.length;f++)m[f]!=="default"&&r(g,d,m[f]);return a(g,d),g}}();Object.defineProperty(e,"__esModule",{value:!0}),e.sign=s,e.attest=i,e.verify=l,e.createVerifier=u;var n=Ls(),c=p(Io()),o=To(),t=p(iO());async function s(h,d={}){let g=await t.createBundleBuilder("messageSignature",d).create({data:h});return(0,n.bundleToJSON)(g)}v(s,"sign");async function i(h,d,g={}){let m=await t.createBundleBuilder("dsseEnvelope",g).create({data:h,type:d});return(0,n.bundleToJSON)(m)}v(i,"attest");async function l(h,d,g){let m;return Buffer.isBuffer(d)?m=d:g=d,u(g).then(f=>f.verify(h,m))}v(l,"verify");async function u(h={}){let d=await c.getTrustedRoot({mirrorURL:h.tufMirrorURL,rootPath:h.tufRootPath,cachePath:h.tufCachePath,forceCache:h.tufForceCache,retry:h.retry??t.DEFAULT_RETRY,timeout:h.timeout??t.DEFAULT_TIMEOUT}),g=h.keySelector?t.createKeyFinder(h.keySelector):void 0,m=(0,o.toTrustMaterial)(d,g),f={ctlogThreshold:h.ctLogThreshold,tlogThreshold:h.tlogThreshold},y=new o.Verifier(m,f),S=t.createVerificationPolicy(h);return{verify:v((E,b)=>{let _=(0,n.bundleFromJSON)(E),w=(0,o.toSignedEntity)(_,b);y.verify(w,S)},"verify")}}v(u,"createVerifier")}),oO=K(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verify=e.sign=e.createVerifier=e.attest=e.VerificationError=e.PolicyError=e.TUFError=e.InternalError=e.DEFAULT_REKOR_URL=e.DEFAULT_FULCIO_URL=e.ValidationError=void 0;var r=Ls();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:v(function(){return r.ValidationError},"get")});var a=Ah();Object.defineProperty(e,"DEFAULT_FULCIO_URL",{enumerable:!0,get:v(function(){return a.DEFAULT_FULCIO_URL},"get")}),Object.defineProperty(e,"DEFAULT_REKOR_URL",{enumerable:!0,get:v(function(){return a.DEFAULT_REKOR_URL},"get")}),Object.defineProperty(e,"InternalError",{enumerable:!0,get:v(function(){return a.InternalError},"get")});var p=Io();Object.defineProperty(e,"TUFError",{enumerable:!0,get:v(function(){return p.TUFError},"get")});var n=To();Object.defineProperty(e,"PolicyError",{enumerable:!0,get:v(function(){return n.PolicyError},"get")}),Object.defineProperty(e,"VerificationError",{enumerable:!0,get:v(function(){return n.VerificationError},"get")});var c=nO();Object.defineProperty(e,"attest",{enumerable:!0,get:v(function(){return c.attest},"get")}),Object.defineProperty(e,"createVerifier",{enumerable:!0,get:v(function(){return c.createVerifier},"get")}),Object.defineProperty(e,"sign",{enumerable:!0,get:v(function(){return c.sign},"get")}),Object.defineProperty(e,"verify",{enumerable:!0,get:v(function(){return c.verify},"get")})}),Uh=K((e,r)=>{var a=require("node:crypto"),p=ro(),n=to(),c=vt(),o=Ir(),t=oO(),s=ch(),i=er(),l=Ns(),u=uh().version,h=Mu(),d=Zt(),g="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",m="application/json",f="2015-01-01T00:00:00.000Z",y=class extends i{static{v(this,"RegistryFetcher")}#e;constructor(S,E){super(S,E),this.packumentCache=this.opts.packumentCache||null,this.registry=s.pickRegistry(S,E),this.packumentUrl=`${h(this.registry)}/${this.spec.escapedName}`,this.#e=`${this.fullMetadata?"full":"corgi"}:${this.packumentUrl}`;let b=new URL(this.registry),_=`//${b.host}${b.pathname}`;this.opts[`${_}:_keys`]&&(this.registryKeys=this.opts[`${_}:_keys`])}async resolve(){if(await this.manifest(),!this.resolved)throw Object.assign(new Error("Invalid package manifest: no `dist.tarball` field"),{package:this.spec.toString()});return this.resolved}#t(){return{"user-agent":this.opts.userAgent||`pacote/${u} node/${process.version}`,...this.opts.headers||{},"pacote-version":u,"pacote-req-type":"packument","pacote-pkg-id":`registry:${this.spec.name}`,accept:this.fullMetadata?m:g}}async packument(){if(this.packumentCache?.has(this.#e))return this.packumentCache.get(this.#e);try{let S=await s(this.packumentUrl,{...this.opts,headers:this.#t(),spec:this.spec,integrity:null}),E=await S.json(),b=S.headers.get("content-length");return b&&(E._contentLength=Number(b)),this.packumentCache?.set(this.#e,E),E}catch(S){if(this.packumentCache?.delete(this.#e),S.code!=="E404"||this.fullMetadata)throw S;return this.fullMetadata=!0,this.packument()}}async manifest(){if(this.package)return this.package;this.opts.verifySignatures&&(this.fullMetadata=!0);let S=await this.packument(),E=p.normalizeSteps.filter(O=>O!=="_attributes"),b=await new p().fromContent(n(S,this.spec.fetchSpec,{...this.opts,defaultTag:this.defaultTag,before:this.before})).normalize({steps:E}).then(O=>O.content),_=S.time?.[b.version];_&&(b._time=_);let{dist:w}=b;if(w){this.resolved=b._resolved=w.tarball,b._from=this.from;let O=w.integrity?c.parse(w.integrity):w.shasum?c.fromHex(w.shasum,"sha1",{...this.opts}):null;if(O){if(this.integrity&&!this.integrity.match(O)){for(let R of Object.keys(this.integrity))if(O[R])throw Object.assign(new Error(`Integrity checksum failed when using ${R}: wanted ${this.integrity} but got ${O}.`),{code:"EINTEGRITY"})}this.integrity=O}}if(this.integrity){if(b._integrity=String(this.integrity),w.signatures)if(this.opts.verifySignatures){let O=`${b._id}:${b._integrity}`;for(let R of w.signatures){let I=this.registryKeys&&this.registryKeys.filter(M=>M.keyid===R.keyid)[0];if(!I)throw Object.assign(new Error(`${b._id} has a registry signature with keyid: ${R.keyid} but no corresponding public key can be found`),{code:"EMISSINGSIGNATUREKEY"});let P=Date.parse(b._time||f);if(!(!I.expires||P<Date.parse(I.expires)))throw Object.assign(new Error(`${b._id} has a registry signature with keyid: ${R.keyid} but the corresponding public key has expired ${I.expires}`),{code:"EEXPIREDSIGNATUREKEY"});let L=a.createVerify("SHA256");if(L.write(O),L.end(),!L.verify(I.pemkey,R.sig,"base64"))throw Object.assign(new Error(`${b._id} has an invalid registry signature with keyid: ${I.keyid} and signature: ${R.sig}`),{code:"EINTEGRITYSIGNATURE",keyid:I.keyid,signature:R.sig,resolved:b._resolved,integrity:b._integrity})}b._signatures=w.signatures}else b._signatures=w.signatures;if(w.attestations)if(this.opts.verifyAttestations){let O=new URL(w.attestations.url).pathname,R=h(this.registry)+O,I=await s(R,{...this.opts,integrity:null}),{attestations:P}=await I.json(),L=P.map(({predicateType:j,bundle:U})=>{let V=JSON.parse(Buffer.from(U.dsseEnvelope.payload,"base64").toString("utf8")),B=U.dsseEnvelope.signatures[0].keyid,G=U.dsseEnvelope.signatures[0].sig;return{predicateType:j,bundle:U,statement:V,keyid:B,signature:G}}),M=L.map(j=>j.keyid).filter(j=>!!j),x=(this.registryKeys||[]).filter(j=>M.includes(j.keyid));if(!x.length)throw Object.assign(new Error(`${b._id} has attestations but no corresponding public key(s) can be found`),{code:"EMISSINGSIGNATUREKEY"});for(let{predicateType:j,bundle:U,keyid:V,signature:B,statement:G}of L){let W=x.find(C=>C.keyid===V);if(V){if(!W)throw Object.assign(new Error(`${b._id} has attestations with keyid: ${V} but no corresponding public key can be found`),{code:"EMISSINGSIGNATUREKEY"});let C=new Date(Number(U.verificationMaterial.tlogEntries[0].integratedTime)*1e3);if(!(!W.expires||C<Date.parse(W.expires)))throw Object.assign(new Error(`${b._id} has attestations with keyid: ${V} but the corresponding public key has expired ${W.expires}`),{code:"EEXPIREDSIGNATUREKEY"})}let N={name:G.subject[0].name,sha512:G.subject[0].digest.sha512},D=this.spec.type==="version"?o.toPurl(this.spec):this.spec;if(N.name!==D)throw Object.assign(new Error(`${b._id} package name and version (PURL): ${D} doesn't match what was signed: ${N.name}`),{code:"EATTESTATIONSUBJECT"});let T=c.parse(this.integrity).hexDigest();if(N.sha512!==T)throw Object.assign(new Error(`${b._id} package integrity (hex digest): ${T} doesn't match what was signed: ${N.sha512}`),{code:"EATTESTATIONSUBJECT"});try{let C={tufCachePath:this.tufCache,tufForceCache:!0,keySelector:W?()=>W.pemkey:void 0};await t.verify(U,C)}catch(C){throw Object.assign(new Error(`${b._id} failed to verify attestation: ${C.message}`),{code:"EATTESTATIONVERIFY",predicateType:j,keyid:V,signature:B,resolved:b._resolved,integrity:b._integrity})}}b._attestations=w.attestations}else b._attestations=w.attestations}return this.package=b,this.package}[d.tarballFromResolved](){return new l(this.resolved,{...this.opts,resolved:this.resolved,pkgid:`registry:${this.spec.name}@${this.resolved}`})[d.tarballFromResolved]()}get types(){return["tag","version","range"]}};r.exports=y}),er=K((e,r)=>{var{basename:a,dirname:p}=require("node:path"),{rm:n,mkdir:c}=require("node:fs/promises"),o=ro(),t=Is(),s=Cr(),i=vb(),l=Ir(),u=ws(),h=vt(),d=Lu(),{Minipass:g}=Pe(),{log:m}=ct(),f=Zt(),y=Tb(),S=Du(),E=Mu(),b=v(M=>o.prepare(M).then(x=>x.content),"packageJsonPrepare"),_=v(M=>o.normalize(M).then(x=>x.content),"packageJsonNormalize"),w=class{static{v(this,"FetcherBase")}constructor(M,x){if(!x||typeof x!="object")throw new TypeError("options object is required");this.spec=l(M,x.where),this.allowGitIgnore=!!x.allowGitIgnore,this.from=this.spec.registry?`${this.spec.name}@${this.spec.rawSpec}`:this.spec.saveSpec,this.#r(),this.opts={...x},this.cache=x.cache||y().cacache,this.tufCache=x.tufCache||y().tufcache,this.resolved=x.resolved||null,this.defaultIntegrityAlgorithm=x.defaultIntegrityAlgorithm||"sha512",typeof x.integrity=="string"&&(this.opts.integrity=h.parse(x.integrity)),this.package=null,this.type=this.constructor.name,this.fmode=x.fmode||438,this.dmode=x.dmode||511,this.umask=x.umask||0,this.preferOnline=!!x.preferOnline,this.preferOffline=!!x.preferOffline,this.offline=!!x.offline,this.before=x.before,this.fullMetadata=this.before?!0:!!x.fullMetadata,this.fullReadJson=!!x.fullReadJson,this[f.readPackageJson]=this.fullReadJson?b:_,this.replaceRegistryHost=!x.replaceRegistryHost||x.replaceRegistryHost==="npmjs"?"registry.npmjs.org":x.replaceRegistryHost,this.defaultTag=x.defaultTag||"latest",this.registry=E(x.registry||"https://registry.npmjs.org"),this.npmBin=x.npmBin||"npm",this.npmInstallCmd=x.npmInstallCmd||["install","--force"],this.npmCliConfig=x.npmCliConfig||[`--cache=${p(this.cache)}`,`--prefer-offline=${!!this.preferOffline}`,`--prefer-online=${!!this.preferOnline}`,`--offline=${!!this.offline}`,...this.before?[`--before=${this.before.toISOString()}`]:[],"--no-progress","--no-save","--no-audit","--include=dev","--include=peer","--include=optional","--no-package-lock-only","--no-dry-run"]}get integrity(){return this.opts.integrity||null}set integrity(M){if(!M)return;M=h.parse(M);let x=this.opts.integrity;x?x.merge(M):this.opts.integrity=M}get notImplementedError(){return new Error("not implemented in this fetcher type: "+this.type)}resolve(){return this.resolved?Promise.resolve(this.resolved):Promise.reject(this.notImplementedError)}packument(){return Promise.reject(this.notImplementedError)}manifest(){return Promise.reject(this.notImplementedError)}[f.tarballFromResolved](){throw this.notImplementedError}tarball(){return this.tarballStream(M=>M.concat().then(x=>(x.integrity=this.integrity&&String(this.integrity),x.resolved=this.resolved,x.from=this.from,x)))}#e(){let M=Date.now(),x=t.get.stream.byDigest(this.cache,this.integrity,this.opts),j=Date.now()-M;return m.http("cache",`${this.spec} ${j}ms (cache hit)`),x}get[f.cacheFetches](){return!0}#t(M){if(!this.opts.cache||!this[f.cacheFetches]){if(M.hasIntegrityEmitter)return M.on("integrity",V=>this.integrity=V),M;let U=h.integrityStream(this.opts);return U.on("integrity",V=>this.integrity=V),M.on("error",V=>U.emit("error",V)),M.pipe(U)}let x=new g;M.on("error",U=>x.emit("error",U)),M.pipe(x,{end:!1});let j=t.put.stream(this.opts.cache,`pacote:tarball:${this.from}`,this.opts);return j.on("integrity",U=>this.integrity=U),j.on("error",U=>M.emit("error",U)),M.pipe(j),j.promise().catch(()=>{}).then(()=>x.end()),x}pickIntegrityAlgorithm(){return this.integrity?this.integrity.pickAlgorithm(this.opts):this.defaultIntegrityAlgorithm}isDataCorruptionError(M){return M.code==="EINTEGRITY"||M.code==="Z_DATA_ERROR"}get types(){return!1}#r(){if(this.types&&!this.types.includes(this.spec.type))throw new TypeError(`Wrong spec type (${this.spec.type}) for ${this.constructor.name}. Supported types: ${this.types.join(", ")}`)}isRetriableError(M){return this.isDataCorruptionError(M)||M.code==="ENOENT"||M.code==="EISDIR"}tarballStream(M){let x=!this.preferOnline&&this.integrity&&this.resolved?M(this.#e()).catch(U=>{if(this.isDataCorruptionError(U))return m.warn("tarball",`cached data for ${this.spec} (${this.integrity}) seems to be corrupted. Refreshing cache.`),this.cleanupCached().then(()=>{throw U});throw U}):null,j=v(U=>{if(U){if(!this.isRetriableError(U))throw U;m.silly("tarball",`no local data for ${this.spec}. Extracting by manifest.`)}return this.resolve().then(()=>u(V=>M(this.#t(this[f.tarballFromResolved]())).catch(B=>{if(this.isRetriableError(B))return m.warn("tarball",`tarball data for ${this.spec} (${this.integrity}) seems to be corrupted. Trying again.`),this.cleanupCached().then(()=>V(B));throw B}),{retries:1,minTimeout:0,maxTimeout:0}))},"fromResolved");return x?x.catch(j):j()}cleanupCached(){return t.rm.content(this.cache,this.integrity,this.opts)}#s(M){return i({path:M,depth:1}).then(x=>Promise.all(x.map(j=>n(j,{recursive:!0,force:!0}))))}async#i(M){return await this.#s(M),await c(M,{recursive:!0})}async extract(M){return await this.#i(M),this.tarballStream(x=>this.#l(M,x))}#c(M){return this.tarballStream(x=>new Promise((j,U)=>{let V=new s.WriteStream(M);x.on("error",B=>V.emit("error",B)),V.on("error",B=>U(B)),V.on("close",()=>j({integrity:this.integrity&&String(this.integrity),resolved:this.resolved,from:this.from})),x.pipe(V)}))}async tarballFile(M){let x=p(M);return await c(x,{recursive:!0}),this.#c(M)}#l(M,x){let j=d.x(this.#o({cwd:M})),U=new Promise((V,B)=>{j.on("end",()=>{V({resolved:this.resolved,integrity:this.integrity&&String(this.integrity),from:this.from})}),j.on("error",G=>{m.warn("tar",G.message),m.silly("tar",G),B(G)}),x.on("error",G=>B(G))});return x.pipe(j),U}#h(M,x,j){let U=/Directory|GNUDumpDir/.test(j)?this.dmode:/File$/.test(j)?this.fmode:0,V=S(this.package,M)?73:0;return(x|U)&~this.umask|V|384}#o({cwd:M}){let x=new Set;return{cwd:M,noChmod:!0,noMtime:!0,filter:v((j,U)=>{if(/Link$/.test(U.type))return!1;if(U.mode=this.#h(U.path,U.mode,U.type),/File$/.test(U.type)){let V=a(U.path);if(V===".npmignore")x.add(U.path);else if(V===".gitignore"&&!this.allowGitIgnore){let B=U.path.replace(/\.gitignore$/,".npmignore");if(x.has(B))return!1;U.path=B}return!0}},"filter"),strip:1,onwarn:v((j,U,V)=>{m.warn("tar",j,U),m.silly("tar",j,U,V)},"onwarn"),umask:this.umask,preserveOwner:!1}}};r.exports=w;var O=hh(),R=Uh(),I=kr(),P=fo(),L=Ns();w.get=(M,x={})=>{let j=l(M,x.where);switch(j.type){case"git":return new O(j,x);case"remote":return new L(j,x);case"version":case"range":case"tag":case"alias":return new R(j.subSpec||j,x);case"file":return new I(j,x);case"directory":return new P(j,x);default:throw new TypeError("Unknown spec type: "+j.type)}}}),{get:xt}=er(),aO=hh(),lO=Uh(),cO=kr(),uO=fo(),hO=Ns(),Po=v((e,r)=>xt(e,r).tarball(),"tarball");Po.stream=(e,r,a)=>xt(e,a).tarballStream(r);Po.file=(e,r,a)=>xt(e,a).tarballFile(r);Fh.exports={GitFetcher:aO,RegistryFetcher:lO,FileFetcher:cO,DirFetcher:uO,RemoteFetcher:hO,resolve:v((e,r)=>xt(e,r).resolve(),"resolve"),extract:v((e,r,a)=>xt(e,a).extract(r),"extract"),manifest:v((e,r)=>xt(e,r).manifest(),"manifest"),packument:v((e,r)=>xt(e,r).packument(),"packument"),tarball:Po};});var ko=ge((n2,Vh)=>{var No=Object.defineProperty,pO=Object.getOwnPropertyDescriptor,dO=Object.getOwnPropertyNames,fO=Object.prototype.hasOwnProperty,gO=(e,r)=>{for(var a in r)No(e,a,{get:r[a],enumerable:!0})},mO=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dO(r))!fO.call(e,n)&&n!==a&&No(e,n,{get:()=>r[n],enumerable:!(p=pO(r,n))||p.enumerable});return e},yO=e=>mO(No({},"__esModule",{value:!0}),e),Hh={};gO(Hh,{DARWIN:()=>SO,S_IXGRP:()=>_O,S_IXOTH:()=>wO,S_IXUSR:()=>bO,WIN32:()=>EO});Vh.exports=yO(Hh);var vO=require("node:os"),Gh=(0,vO.platform)(),SO=Gh==="darwin",EO=Gh==="win32",bO=64,_O=8,wO=1});var $r=ge((o2,zh)=>{var Lo=Object.defineProperty,OO=Object.getOwnPropertyDescriptor,AO=Object.getOwnPropertyNames,RO=Object.prototype.hasOwnProperty,CO=(e,r)=>{for(var a in r)Lo(e,a,{get:r[a],enumerable:!0})},IO=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of AO(r))!RO.call(e,n)&&n!==a&&Lo(e,n,{get:()=>r[n],enumerable:!(p=OO(r,n))||p.enumerable});return e},TO=e=>IO(Lo({},"__esModule",{value:!0}),e),Wh={};CO(Wh,{clearEnv:()=>kO,getEnvValue:()=>xO,hasOverride:()=>DO,resetEnv:()=>LO,setEnv:()=>NO,withEnv:()=>MO,withEnvSync:()=>jO});zh.exports=TO(Wh);var PO=require("node:async_hooks"),js=new PO.AsyncLocalStorage,tr=new Map;function xO(e){let r=js.getStore();return r?.has(e)?r.get(e):tr.has(e)?tr.get(e):process.env[e]}function NO(e,r){tr.set(e,r)}function kO(e){tr.delete(e)}function LO(){tr.clear()}function DO(e){return js.getStore()?.has(e)||tr.has(e)}async function MO(e,r){let a=new Map(Object.entries(e));return await js.run(a,r)}function jO(e,r){let a=new Map(Object.entries(e));return js.run(a,r)}});var Jh=ge((a2,Kh)=>{var Do=Object.defineProperty,$O=Object.getOwnPropertyDescriptor,BO=Object.getOwnPropertyNames,UO=Object.prototype.hasOwnProperty,FO=(e,r)=>{for(var a in r)Do(e,a,{get:r[a],enumerable:!0})},HO=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of BO(r))!UO.call(e,n)&&n!==a&&Do(e,n,{get:()=>r[n],enumerable:!(p=$O(r,n))||p.enumerable});return e},GO=e=>HO(Do({},"__esModule",{value:!0}),e),qh={};FO(qh,{getNpmConfigRegistry:()=>VO,getNpmConfigUserAgent:()=>WO,getNpmLifecycleEvent:()=>zO,getNpmRegistry:()=>qO,getNpmToken:()=>KO});Kh.exports=GO(qh);var Br=$r();function VO(){return(0,Br.getEnvValue)("npm_config_registry")}function WO(){return(0,Br.getEnvValue)("npm_config_user_agent")}function zO(){return(0,Br.getEnvValue)("npm_lifecycle_event")}function qO(){return(0,Br.getEnvValue)("NPM_REGISTRY")}function KO(){return(0,Br.getEnvValue)("NPM_TOKEN")}});var Yh=ge((l2,Xh)=>{var jo=Object.defineProperty,JO=Object.getOwnPropertyDescriptor,ZO=Object.getOwnPropertyNames,XO=Object.prototype.hasOwnProperty,YO=(e,r)=>{for(var a in r)jo(e,a,{get:r[a],enumerable:!0})},QO=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ZO(r))!XO.call(e,n)&&n!==a&&jo(e,n,{get:()=>r[n],enumerable:!(p=JO(r,n))||p.enumerable});return e},eA=e=>QO(jo({},"__esModule",{value:!0}),e),Zh={};YO(Zh,{AT_LATEST:()=>sA,LATEST:()=>iA,PACKAGE:()=>rA,PACKAGE_DEFAULT_VERSION:()=>nA,getLifecycleScriptNames:()=>uA,getNpmLifecycleEvent:()=>cA,getPackageDefaultNodeRange:()=>oA,getPackageDefaultSocketCategories:()=>aA,getPackageExtensions:()=>lA,getPackumentCache:()=>hA,getPacoteCachePath:()=>pA});Xh.exports=eA(Zh);var tA=Jh(),$s,Bs,Us,Fs,Hs,Mo,rA="package",sA="@latest",iA="latest",nA="1.0.0";function oA(){if(Bs===void 0)try{Bs=require("../lib/package-default-node-range")}catch{Bs=">=18"}return Bs}function aA(){if(Us===void 0)try{Us=require("../lib/package-default-socket-categories")}catch{Us=[]}return Us}function lA(){if(Fs===void 0)try{let e=require("../lib/package-extensions");Fs=Object.entries(e)}catch{Fs=[]}return Fs}function cA(){return(0,tA.getNpmLifecycleEvent)()}function uA(){if($s===void 0)try{$s=require("../lib/lifecycle-script-names")}catch{$s=[]}return $s}function hA(){return Mo===void 0&&(Mo=new Map),Mo}function pA(){if(Hs===void 0)try{let e=xo(),{normalizePath:r}=require("../lib/path"),a=Reflect.getPrototypeOf(e.RegistryFetcher.prototype)?.constructor,p=a?new a("x",{}).cache:"";Hs=r(p)}catch{Hs=""}return Hs}});var Vs=ge((c2,tp)=>{var Bo=Object.defineProperty,dA=Object.getOwnPropertyDescriptor,fA=Object.getOwnPropertyNames,gA=Object.prototype.hasOwnProperty,mA=(e,r)=>{for(var a in r)Bo(e,a,{get:r[a],enumerable:!0})},yA=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of fA(r))!gA.call(e,n)&&n!==a&&Bo(e,n,{get:()=>r[n],enumerable:!(p=dA(r,n))||p.enumerable});return e},vA=e=>yA(Bo({},"__esModule",{value:!0}),e),Qh={};mA(Qh,{getAbortController:()=>ep,getAbortSignal:()=>SA,getSpinner:()=>EA});tp.exports=vA(Qh);var $o;function ep(){return $o===void 0&&($o=new AbortController),$o}function SA(){return ep().signal}var Gs;function EA(){if(Gs===void 0)try{let{Spinner:e}=require("../lib/spinner");Gs=e()??null}catch{Gs=null}return Gs??null}});var sp=ge((u2,rp)=>{"use strict";var bA=Object.defineProperty,Te=(e,r)=>bA(e,"name",{value:r,configurable:!0}),Ur=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ws=Ur((e,r)=>{"use strict";var a=require("path"),p="\\\\/",n=`[^${p}]`,c="\\.",o="\\+",t="\\?",s="\\/",i="(?=.)",l="[^/]",u=`(?:${s}|$)`,h=`(?:^|${s})`,d=`${c}{1,2}${u}`,g=`(?!${c})`,m=`(?!${h}${d})`,f=`(?!${c}{0,1}${u})`,y=`(?!${d})`,S=`[^.${s}]`,E=`${l}*?`,b={DOT_LITERAL:c,PLUS_LITERAL:o,QMARK_LITERAL:t,SLASH_LITERAL:s,ONE_CHAR:i,QMARK:l,END_ANCHOR:u,DOTS_SLASH:d,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:f,NO_DOTS_SLASH:y,QMARK_NO_DOT:S,STAR:E,START_ANCHOR:h},_={...b,SLASH_LITERAL:`[${p}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${c}{1,2}(?:[${p}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${p}])${c}{1,2}(?:[${p}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${p}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${p}]|$))`,QMARK_NO_DOT:`[^.${p}]`,START_ANCHOR:`(?:^|[${p}])`,END_ANCHOR:`(?:[${p}]|$)`},w={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:w,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:a.sep,extglobChars(O){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${O.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(O){return O===!0?_:b}}}),Uo=Ur(e=>{"use strict";var r=require("path"),a=process.platform==="win32",{REGEX_BACKSLASH:p,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:o}=Ws();e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),e.hasRegexChars=t=>c.test(t),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(o,"\\$1"),e.toPosixSlashes=t=>t.replace(p,"/"),e.removeBackslashes=t=>t.replace(n,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10},e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:a===!0||r.sep==="\\",e.escapeLast=(t,s,i)=>{let l=t.lastIndexOf(s,i);return l===-1?t:t[l-1]==="\\"?e.escapeLast(t,s,l-1):`${t.slice(0,l)}\\${t.slice(l)}`},e.removePrefix=(t,s={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),s.prefix="./"),i},e.wrapOutput=(t,s={},i={})=>{let l=i.contains?"":"^",u=i.contains?"":"$",h=`${l}(?:${t})${u}`;return s.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}),_A=Ur((e,r)=>{"use strict";var a=Uo(),{CHAR_ASTERISK:p,CHAR_AT:n,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:o,CHAR_DOT:t,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:y}=Ws(),S=Te(_=>_===i||_===c,"isPathSeparator"),E=Te(_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)},"depth"),b=Te((_,w)=>{let O=w||{},R=_.length-1,I=O.parts===!0||O.scanToEnd===!0,P=[],L=[],M=[],x=_,j=-1,U=0,V=0,B=!1,G=!1,W=!1,N=!1,D=!1,T=!1,C=!1,Z=!1,X=!1,Q=!1,k=0,F,z,$={value:"",depth:0,isGlob:!1},q=Te(()=>j>=R,"eos"),J=Te(()=>x.charCodeAt(j+1),"peek"),Y=Te(()=>(F=z,x.charCodeAt(++j)),"advance");for(;j<R;){z=Y();let te;if(z===c){C=$.backslashes=!0,z=Y(),z===l&&(T=!0);continue}if(T===!0||z===l){for(k++;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,Y();continue}if(z===l){k++;continue}if(T!==!0&&z===t&&(z=Y())===t){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(T!==!0&&z===o){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===m&&(k--,k===0)){T=!1,B=$.isBrace=!0,Q=!0;break}}if(I===!0)continue;break}if(z===i){if(P.push(j),L.push($),$={value:"",depth:0,isGlob:!1},Q===!0)continue;if(F===t&&j===U+1){U+=2;continue}V=j+1;continue}if(O.noext!==!0&&(z===d||z===n||z===p||z===g||z===s)&&J()===u){if(W=$.isGlob=!0,N=$.isExtglob=!0,Q=!0,z===s&&j===U&&(X=!0),I===!0){for(;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,z=Y();continue}if(z===f){W=$.isGlob=!0,Q=!0;break}}continue}break}if(z===p){if(F===p&&(D=$.isGlobstar=!0),W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===g){if(W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===h){for(;q()!==!0&&(te=Y());){if(te===c){C=$.backslashes=!0,Y();continue}if(te===y){G=$.isBracket=!0,W=$.isGlob=!0,Q=!0;break}}if(I===!0)continue;break}if(O.nonegate!==!0&&z===s&&j===U){Z=$.negated=!0,U++;continue}if(O.noparen!==!0&&z===u){if(W=$.isGlob=!0,I===!0){for(;q()!==!0&&(z=Y());){if(z===u){C=$.backslashes=!0,z=Y();continue}if(z===f){Q=!0;break}}continue}break}if(W===!0){if(Q=!0,I===!0)continue;break}}O.noext===!0&&(N=!1,W=!1);let A=x,H="",ee="";U>0&&(H=x.slice(0,U),x=x.slice(U),V-=U),A&&W===!0&&V>0?(A=x.slice(0,V),ee=x.slice(V)):W===!0?(A="",ee=x):A=x,A&&A!==""&&A!=="/"&&A!==x&&S(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),O.unescape===!0&&(ee&&(ee=a.removeBackslashes(ee)),A&&C===!0&&(A=a.removeBackslashes(A)));let ne={prefix:H,input:_,start:U,base:A,glob:ee,isBrace:B,isBracket:G,isGlob:W,isExtglob:N,isGlobstar:D,negated:Z,negatedExtglob:X};if(O.tokens===!0&&(ne.maxDepth=0,S(z)||L.push($),ne.tokens=L),O.parts===!0||O.tokens===!0){let te;for(let ae=0;ae<P.length;ae++){let he=te?te+1:U,re=P[ae],ue=_.slice(he,re);O.tokens&&(ae===0&&U!==0?(L[ae].isPrefix=!0,L[ae].value=H):L[ae].value=ue,E(L[ae]),ne.maxDepth+=L[ae].depth),(ae!==0||ue!=="")&&M.push(ue),te=re}if(te&&te+1<_.length){let ae=_.slice(te+1);M.push(ae),O.tokens&&(L[L.length-1].value=ae,E(L[L.length-1]),ne.maxDepth+=L[L.length-1].depth)}ne.slashes=P,ne.parts=M}return ne},"scan");r.exports=b}),wA=Ur((e,r)=>{"use strict";var a=Ws(),p=Uo(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:t,REPLACEMENTS:s}=a,i=Te((h,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...h,d);h.sort();let g=`[${h.join("-")}]`;try{new RegExp(g)}catch{return h.map(m=>p.escapeRegex(m)).join("..")}return g},"expandRange"),l=Te((h,d)=>`Missing ${h}: "${d}" - use "\\\\${d}" to match literal characters`,"syntaxError"),u=Te((h,d)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=s[h]||h;let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);let y={type:"bos",value:"",output:g.prepend||""},S=[y],E=g.capture?"":"?:",b=p.isWindows(d),_=a.globChars(b),w=a.extglobChars(_),{DOT_LITERAL:O,PLUS_LITERAL:R,SLASH_LITERAL:I,ONE_CHAR:P,DOTS_SLASH:L,NO_DOT:M,NO_DOT_SLASH:x,NO_DOTS_SLASH:j,QMARK:U,QMARK_NO_DOT:V,STAR:B,START_ANCHOR:G}=_,W=Te(re=>`(${E}(?:(?!${G}${re.dot?L:O}).)*?)`,"globstar"),N=g.dot?"":M,D=g.dot?U:V,T=g.bash===!0?W(g):B;g.capture&&(T=`(${T})`),typeof g.noext=="boolean"&&(g.noextglob=g.noext);let C={input:h,index:-1,start:0,dot:g.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};h=p.removePrefix(h,C),f=h.length;let Z=[],X=[],Q=[],k=y,F,z=Te(()=>C.index===f-1,"eos"),$=C.peek=(re=1)=>h[C.index+re],q=C.advance=()=>h[++C.index]||"",J=Te(()=>h.slice(C.index+1),"remaining"),Y=Te((re="",ue=0)=>{C.consumed+=re,C.index+=ue},"consume"),A=Te(re=>{C.output+=re.output!=null?re.output:re.value,Y(re.value)},"append"),H=Te(()=>{let re=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)q(),C.start++,re++;return re%2===0?!1:(C.negated=!0,C.start++,!0)},"negate"),ee=Te(re=>{C[re]++,Q.push(re)},"increment"),ne=Te(re=>{C[re]--,Q.pop()},"decrement"),te=Te(re=>{if(k.type==="globstar"){let ue=C.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||Z.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!ue&&!ie&&(C.output=C.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=T,C.output+=k.output)}if(Z.length&&re.type!=="paren"&&(Z[Z.length-1].inner+=re.value),(re.value||re.output)&&A(re),k&&k.type==="text"&&re.type==="text"){k.value+=re.value,k.output=(k.output||"")+re.value;return}re.prev=k,S.push(re),k=re},"push"),ae=Te((re,ue)=>{let ie={...w[ue],conditions:1,inner:""};ie.prev=k,ie.parens=C.parens,ie.output=C.output;let le=(g.capture?"(":"")+ie.open;ee("parens"),te({type:re,value:ue,output:C.output?"":P}),te({type:"paren",extglob:!0,value:q(),output:le}),Z.push(ie)},"extglobOpen"),he=Te(re=>{let ue=re.close+(g.capture?")":""),ie;if(re.type==="negate"){let le=T;if(re.inner&&re.inner.length>1&&re.inner.includes("/")&&(le=W(g)),(le!==T||z()||/^\)+$/.test(J()))&&(ue=re.close=`)$))${le}`),re.inner.includes("*")&&(ie=J())&&/^\.[^\\/.]+$/.test(ie)){let fe=u(ie,{...d,fastpaths:!1}).output;ue=re.close=`)${fe})${le})`}re.prev.type==="bos"&&(C.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:F,output:ue}),ne("parens")},"extglobClose");if(g.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let re=!1,ue=h.replace(t,(ie,le,fe,me,ce,pe)=>me==="\\"?(re=!0,ie):me==="?"?le?le+me+(ce?U.repeat(ce.length):""):pe===0?D+(ce?U.repeat(ce.length):""):U.repeat(fe.length):me==="."?O.repeat(fe.length):me==="*"?le?le+me+(ce?T:""):T:le?ie:`\\${ie}`);return re===!0&&(g.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),ue===h&&g.contains===!0?(C.output=h,C):(C.output=p.wrapOutput(ue,C,d),C)}for(;!z();){if(F=q(),F==="\0")continue;if(F==="\\"){let ie=$();if(ie==="/"&&g.bash!==!0||ie==="."||ie===";")continue;if(!ie){F+="\\",te({type:"text",value:F});continue}let le=/^\\+/.exec(J()),fe=0;if(le&&le[0].length>2&&(fe=le[0].length,C.index+=fe,fe%2!==0&&(F+="\\")),g.unescape===!0?F=q():F+=q(),C.brackets===0){te({type:"text",value:F});continue}}if(C.brackets>0&&(F!=="]"||k.value==="["||k.value==="[^")){if(g.posix!==!1&&F===":"){let ie=k.value.slice(1);if(ie.includes("[")&&(k.posix=!0,ie.includes(":"))){let le=k.value.lastIndexOf("["),fe=k.value.slice(0,le),me=k.value.slice(le+2),ce=c[me];if(ce){k.value=fe+ce,C.backtrack=!0,q(),!y.output&&S.indexOf(k)===1&&(y.output=P);continue}}}(F==="["&&$()!==":"||F==="-"&&$()==="]")&&(F=`\\${F}`),F==="]"&&(k.value==="["||k.value==="[^")&&(F=`\\${F}`),g.posix===!0&&F==="!"&&k.value==="["&&(F="^"),k.value+=F,A({value:F});continue}if(C.quotes===1&&F!=='"'){F=p.escapeRegex(F),k.value+=F,A({value:F});continue}if(F==='"'){C.quotes=C.quotes===1?0:1,g.keepQuotes===!0&&te({type:"text",value:F});continue}if(F==="("){ee("parens"),te({type:"paren",value:F});continue}if(F===")"){if(C.parens===0&&g.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=Z[Z.length-1];if(ie&&C.parens===ie.parens+1){he(Z.pop());continue}te({type:"paren",value:F,output:C.parens?")":"\\)"}),ne("parens");continue}if(F==="["){if(g.nobracket===!0||!J().includes("]")){if(g.nobracket!==!0&&g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F=`\\${F}`}else ee("brackets");te({type:"bracket",value:F});continue}if(F==="]"){if(g.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){te({type:"text",value:F,output:`\\${F}`});continue}if(C.brackets===0){if(g.strictBrackets===!0)throw new SyntaxError(l("opening","["));te({type:"text",value:F,output:`\\${F}`});continue}ne("brackets");let ie=k.value.slice(1);if(k.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(F=`/${F}`),k.value+=F,A({value:F}),g.literalBrackets===!1||p.hasRegexChars(ie))continue;let le=p.escapeRegex(k.value);if(C.output=C.output.slice(0,-k.value.length),g.literalBrackets===!0){C.output+=le,k.value=le;continue}k.value=`(${E}${le}|${k.value})`,C.output+=k.value;continue}if(F==="{"&&g.nobrace!==!0){ee("braces");let ie={type:"brace",value:F,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};X.push(ie),te(ie);continue}if(F==="}"){let ie=X[X.length-1];if(g.nobrace===!0||!ie){te({type:"text",value:F,output:F});continue}let le=")";if(ie.dots===!0){let fe=S.slice(),me=[];for(let ce=fe.length-1;ce>=0&&(S.pop(),fe[ce].type!=="brace");ce--)fe[ce].type!=="dots"&&me.unshift(fe[ce].value);le=i(me,g),C.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let fe=C.output.slice(0,ie.outputIndex),me=C.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",F=le="\\}",C.output=fe;for(let ce of me)C.output+=ce.output||ce.value}te({type:"brace",value:F,output:le}),ne("braces"),X.pop();continue}if(F==="|"){Z.length>0&&Z[Z.length-1].conditions++,te({type:"text",value:F});continue}if(F===","){let ie=F,le=X[X.length-1];le&&Q[Q.length-1]==="braces"&&(le.comma=!0,ie="|"),te({type:"comma",value:F,output:ie});continue}if(F==="/"){if(k.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",S.pop(),k=y;continue}te({type:"slash",value:F,output:I});continue}if(F==="."){if(C.braces>0&&k.type==="dot"){k.value==="."&&(k.output=O);let ie=X[X.length-1];k.type="dots",k.output+=F,k.value+=F,ie.dots=!0;continue}if(C.braces+C.parens===0&&k.type!=="bos"&&k.type!=="slash"){te({type:"text",value:F,output:O});continue}te({type:"dot",value:F,output:O});continue}if(F==="?"){if(!(k&&k.value==="(")&&g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("qmark",F);continue}if(k&&k.type==="paren"){let ie=$(),le=F;if(ie==="<"&&!p.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(J()))&&(le=`\\${F}`),te({type:"text",value:F,output:le});continue}if(g.dot!==!0&&(k.type==="slash"||k.type==="bos")){te({type:"qmark",value:F,output:V});continue}te({type:"qmark",value:F,output:U});continue}if(F==="!"){if(g.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){ae("negate",F);continue}if(g.nonegate!==!0&&C.index===0){H();continue}}if(F==="+"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("plus",F);continue}if(k&&k.value==="("||g.regex===!1){te({type:"plus",value:F,output:R});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||C.parens>0){te({type:"plus",value:F});continue}te({type:"plus",value:R});continue}if(F==="@"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){te({type:"at",extglob:!0,value:F,output:""});continue}te({type:"text",value:F});continue}if(F!=="*"){(F==="$"||F==="^")&&(F=`\\${F}`);let ie=o.exec(J());ie&&(F+=ie[0],C.index+=ie[0].length),te({type:"text",value:F});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=F,k.output=T,C.backtrack=!0,C.globstar=!0,Y(F);continue}let re=J();if(g.noextglob!==!0&&/^\([^?]/.test(re)){ae("star",F);continue}if(k.type==="star"){if(g.noglobstar===!0){Y(F);continue}let ie=k.prev,le=ie.prev,fe=ie.type==="slash"||ie.type==="bos",me=le&&(le.type==="star"||le.type==="globstar");if(g.bash===!0&&(!fe||re[0]&&re[0]!=="/")){te({type:"star",value:F,output:""});continue}let ce=C.braces>0&&(ie.type==="comma"||ie.type==="brace"),pe=Z.length&&(ie.type==="pipe"||ie.type==="paren");if(!fe&&ie.type!=="paren"&&!ce&&!pe){te({type:"star",value:F,output:""});continue}for(;re.slice(0,3)==="/**";){let de=h[C.index+4];if(de&&de!=="/")break;re=re.slice(3),Y("/**",3)}if(ie.type==="bos"&&z()){k.type="globstar",k.value+=F,k.output=W(g),C.output=k.output,C.globstar=!0,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!me&&z()){C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=W(g)+(g.strictSlashes?")":"|$)"),k.value+=F,C.globstar=!0,C.output+=ie.output+k.output,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){let de=re[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=`${W(g)}${I}|${I}${de})`,k.value+=F,C.output+=ie.output+k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){k.type="globstar",k.value+=F,k.output=`(?:^|${I}|${W(g)}${I})`,C.output=k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-k.output.length),k.type="globstar",k.output=W(g),k.value+=F,C.output+=k.output,C.globstar=!0,Y(F);continue}let ue={type:"star",value:F,output:T};if(g.bash===!0){ue.output=".*?",(k.type==="bos"||k.type==="slash")&&(ue.output=N+ue.output),te(ue);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&g.regex===!0){ue.output=F,te(ue);continue}(C.index===C.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(C.output+=x,k.output+=x):g.dot===!0?(C.output+=j,k.output+=j):(C.output+=N,k.output+=N),$()!=="*"&&(C.output+=P,k.output+=P)),te(ue)}for(;C.brackets>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));C.output=p.escapeLast(C.output,"["),ne("brackets")}for(;C.parens>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing",")"));C.output=p.escapeLast(C.output,"("),ne("parens")}for(;C.braces>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","}"));C.output=p.escapeLast(C.output,"{"),ne("braces")}if(g.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&te({type:"maybe_slash",value:"",output:`${I}?`}),C.backtrack===!0){C.output="";for(let re of C.tokens)C.output+=re.output!=null?re.output:re.value,re.suffix&&(C.output+=re.suffix)}return C},"parse");u.fastpaths=(h,d)=>{let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);h=s[h]||h;let y=p.isWindows(d),{DOT_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:b,DOTS_SLASH:_,NO_DOT:w,NO_DOTS:O,NO_DOTS_SLASH:R,STAR:I,START_ANCHOR:P}=a.globChars(y),L=g.dot?O:w,M=g.dot?R:w,x=g.capture?"":"?:",j={negated:!1,prefix:""},U=g.bash===!0?".*?":I;g.capture&&(U=`(${U})`);let V=Te(N=>N.noglobstar===!0?U:`(${x}(?:(?!${P}${N.dot?_:S}).)*?)`,"globstar"),B=Te(N=>{switch(N){case"*":return`${L}${b}${U}`;case".*":return`${S}${b}${U}`;case"*.*":return`${L}${U}${S}${b}${U}`;case"*/*":return`${L}${U}${E}${b}${M}${U}`;case"**":return L+V(g);case"**/*":return`(?:${L}${V(g)}${E})?${M}${b}${U}`;case"**/*.*":return`(?:${L}${V(g)}${E})?${M}${U}${S}${b}${U}`;case"**/.*":return`(?:${L}${V(g)}${E})?${S}${b}${U}`;default:{let D=/^(.*?)\.(\w+)$/.exec(N);if(!D)return;let T=B(D[1]);return T?T+S+D[2]:void 0}}},"create"),G=p.removePrefix(h,j),W=B(G);return W&&g.strictSlashes!==!0&&(W+=`${E}?`),W},r.exports=u}),OA=Ur((e,r)=>{"use strict";var a=require("path"),p=_A(),n=wA(),c=Uo(),o=Ws(),t=Te(i=>i&&typeof i=="object"&&!Array.isArray(i),"isObject"),s=Te((i,l,u=!1)=>{if(Array.isArray(i)){let E=i.map(b=>s(b,l,u));return Te(b=>{for(let _ of E){let w=_(b);if(w)return w}return!1},"arrayMatcher")}let h=t(i)&&i.tokens&&i.input;if(i===""||typeof i!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},g=c.isWindows(l),m=h?s.compileRe(i,l):s.makeRe(i,l,!1,!0),f=m.state;delete m.state;let y=Te(()=>!1,"isIgnored");if(d.ignore){let E={...l,ignore:null,onMatch:null,onResult:null};y=s(d.ignore,E,u)}let S=Te((E,b=!1)=>{let{isMatch:_,match:w,output:O}=s.test(E,m,l,{glob:i,posix:g}),R={glob:i,state:f,regex:m,posix:g,input:E,output:O,match:w,isMatch:_};return typeof d.onResult=="function"&&d.onResult(R),_===!1?(R.isMatch=!1,b?R:!1):y(E)?(typeof d.onIgnore=="function"&&d.onIgnore(R),R.isMatch=!1,b?R:!1):(typeof d.onMatch=="function"&&d.onMatch(R),b?R:!0)},"matcher");return u&&(S.state=f),S},"picomatch");s.test=(i,l,u,{glob:h,posix:d}={})=>{if(typeof i!="string")throw new TypeError("Expected input to be a string");if(i==="")return{isMatch:!1,output:""};let g=u||{},m=g.format||(d?c.toPosixSlashes:null),f=i===h,y=f&&m?m(i):i;return f===!1&&(y=m?m(i):i,f=y===h),(f===!1||g.capture===!0)&&(g.matchBase===!0||g.basename===!0?f=s.matchBase(i,l,u,d):f=l.exec(y)),{isMatch:!!f,match:f,output:y}},s.matchBase=(i,l,u,h=c.isWindows(u))=>(l instanceof RegExp?l:s.makeRe(l,u)).test(a.basename(i)),s.isMatch=(i,l,u)=>s(l,u)(i),s.parse=(i,l)=>Array.isArray(i)?i.map(u=>s.parse(u,l)):n(i,{...l,fastpaths:!1}),s.scan=(i,l)=>p(i,l),s.compileRe=(i,l,u=!1,h=!1)=>{if(u===!0)return i.output;let d=l||{},g=d.contains?"":"^",m=d.contains?"":"$",f=`${g}(?:${i.output})${m}`;i&&i.negated===!0&&(f=`^(?!${f}).*$`);let y=s.toRegex(f,l);return h===!0&&(y.state=i),y},s.makeRe=(i,l={},u=!1,h=!1)=>{if(!i||typeof i!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(i[0]==="."||i[0]==="*")&&(d.output=n.fastpaths(i,l)),d.output||(d=n(i,l)),s.compileRe(d,l,u,h)},s.toRegex=(i,l)=>{try{let u=l||{};return new RegExp(i,u.flags||(u.nocase?"i":""))}catch(u){if(l&&l.debug===!0)throw u;return/$^/}},s.constants=o,r.exports=s});rp.exports=OA()});var dp=ge((h2,pp)=>{"use strict";var AA=Object.defineProperty,oe=(e,r)=>AA(e,"name",{value:r,configurable:!0}),Se=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),RA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(p){return p.reduce((n,c)=>[].concat(n,c),[])}oe(r,"flatten"),e.flatten=r;function a(p,n){let c=[[]],o=0;for(let t of p)n(t)?(o++,c[o]=[]):c[o].push(t);return c}oe(a,"splitWhen"),e.splitWhen=a}),CA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(a){return a.code==="ENOENT"}oe(r,"isEnoentCodeError"),e.isEnoentCodeError=r}),IA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{static{oe(this,"DirentFromStats")}constructor(p,n){this.name=p,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function a(p,n){return new r(p,n)}oe(a,"createDirentFromStats"),e.createDirentFromStats=a}),TA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var r=require("os"),a=require("path"),p=r.platform()==="win32",n=2,c=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,o=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,t=/^\\\\([.?])/,s=/\\(?![!()+@[\]{}])/g;function i(f){return f.replace(/\\/g,"/")}oe(i,"unixify"),e.unixify=i;function l(f,y){return a.resolve(f,y)}oe(l,"makeAbsolute"),e.makeAbsolute=l;function u(f){if(f.charAt(0)==="."){let y=f.charAt(1);if(y==="/"||y==="\\")return f.slice(n)}return f}oe(u,"removeLeadingDotSegment"),e.removeLeadingDotSegment=u,e.escape=p?h:d;function h(f){return f.replace(o,"\\$2")}oe(h,"escapeWindowsPath"),e.escapeWindowsPath=h;function d(f){return f.replace(c,"\\$2")}oe(d,"escapePosixPath"),e.escapePosixPath=d,e.convertPathToPattern=p?g:m;function g(f){return h(f).replace(t,"//$1").replace(s,"/")}oe(g,"convertWindowsPathToPattern"),e.convertWindowsPathToPattern=g;function m(f){return d(f)}oe(m,"convertPosixPathToPattern"),e.convertPosixPathToPattern=m}),PA=Se((e,r)=>{r.exports=oe(function(a){if(typeof a!="string"||a==="")return!1;for(var p;p=/(\\).|([@?!+*]\(.*\))/g.exec(a);){if(p[2])return!0;a=a.slice(p.index+p[0].length)}return!1},"isExtglob")}),xA=Se((e,r)=>{var a=PA(),p={"{":"}","(":")","[":"]"},n=oe(function(o){if(o[0]==="!")return!0;for(var t=0,s=-2,i=-2,l=-2,u=-2,h=-2;t<o.length;){if(o[t]==="*"||o[t+1]==="?"&&/[\].+)]/.test(o[t])||i!==-1&&o[t]==="["&&o[t+1]!=="]"&&(i<t&&(i=o.indexOf("]",t)),i>t&&(h===-1||h>i||(h=o.indexOf("\\",t),h===-1||h>i)))||l!==-1&&o[t]==="{"&&o[t+1]!=="}"&&(l=o.indexOf("}",t),l>t&&(h=o.indexOf("\\",t),h===-1||h>l))||u!==-1&&o[t]==="("&&o[t+1]==="?"&&/[:!=]/.test(o[t+2])&&o[t+3]!==")"&&(u=o.indexOf(")",t),u>t&&(h=o.indexOf("\\",t),h===-1||h>u))||s!==-1&&o[t]==="("&&o[t+1]!=="|"&&(s<t&&(s=o.indexOf("|",t)),s!==-1&&o[s+1]!==")"&&(u=o.indexOf(")",s),u>s&&(h=o.indexOf("\\",s),h===-1||h>u))))return!0;if(o[t]==="\\"){var d=o[t+1];t+=2;var g=p[d];if(g){var m=o.indexOf(g,t);m!==-1&&(t=m+1)}if(o[t]==="!")return!0}else t++}return!1},"strictCheck"),c=oe(function(o){if(o[0]==="!")return!0;for(var t=0;t<o.length;){if(/[*?{}()[\]]/.test(o[t]))return!0;if(o[t]==="\\"){var s=o[t+1];t+=2;var i=p[s];if(i){var l=o.indexOf(i,t);l!==-1&&(t=l+1)}if(o[t]==="!")return!0}else t++}return!1},"relaxedCheck");r.exports=oe(function(o,t){if(typeof o!="string"||o==="")return!1;if(a(o))return!0;var s=n;return t&&t.strict===!1&&(s=c),s(o)},"isGlob")}),NA=Se((e,r)=>{"use strict";var a=xA(),p=require("path").posix.dirname,n=require("os").platform()==="win32",c="/",o=/\\/g,t=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,i=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=oe(function(l,u){var h=Object.assign({flipBackslashes:!0},u);h.flipBackslashes&&n&&l.indexOf(c)<0&&(l=l.replace(o,c)),t.test(l)&&(l+=c),l+="a";do l=p(l);while(a(l)||s.test(l));return l.replace(i,"$1")},"globParent")}),Ho=Se(e=>{"use strict";e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,a)=>r.nodes.find(p=>p.type===a),e.exceedsLimit=(r,a,p=1,n)=>n===!1||!e.isInteger(r)||!e.isInteger(a)?!1:(Number(a)-Number(r))/Number(p)>=n,e.escapeNode=(r,a=0,p)=>{let n=r.nodes[a];n&&(p&&n.type===p||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((a,p)=>(p.type==="text"&&a.push(p.value),p.type==="range"&&(p.type="text"),a),[]),e.flatten=(...r)=>{let a=[],p=oe(n=>{for(let c=0;c<n.length;c++){let o=n[c];if(Array.isArray(o)){p(o);continue}o!==void 0&&a.push(o)}return a},"flat");return p(r),a}}),Go=Se((e,r)=>{"use strict";var a=Ho();r.exports=(p,n={})=>{let c=oe((o,t={})=>{let s=n.escapeInvalid&&a.isInvalidBrace(t),i=o.invalid===!0&&n.escapeInvalid===!0,l="";if(o.value)return(s||i)&&a.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let u of o.nodes)l+=c(u);return l},"stringify");return c(p)}}),kA=Se((e,r)=>{"use strict";r.exports=function(a){return typeof a=="number"?a-a===0:typeof a=="string"&&a.trim()!==""?Number.isFinite?Number.isFinite(+a):isFinite(+a):!1}}),LA=Se((e,r)=>{"use strict";var a=kA(),p=oe((S,E,b)=>{if(a(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(E===void 0||S===E)return String(S);if(a(E)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let _={relaxZeros:!0,...b};typeof _.strictZeros=="boolean"&&(_.relaxZeros=_.strictZeros===!1);let w=String(_.relaxZeros),O=String(_.shorthand),R=String(_.capture),I=String(_.wrap),P=S+":"+E+"="+w+O+R+I;if(p.cache.hasOwnProperty(P))return p.cache[P].result;let L=Math.min(S,E),M=Math.max(S,E);if(Math.abs(L-M)===1){let B=S+"|"+E;return _.capture?`(${B})`:_.wrap===!1?B:`(?:${B})`}let x=f(S)||f(E),j={min:S,max:E,a:L,b:M},U=[],V=[];if(x&&(j.isPadded=x,j.maxLen=String(j.max).length),L<0){let B=M<0?Math.abs(M):1;V=t(B,Math.abs(L),j,_),L=j.a=0}return M>=0&&(U=t(L,M,j,_)),j.negatives=V,j.positives=U,j.result=n(V,U,_),_.capture===!0?j.result=`(${j.result})`:_.wrap!==!1&&U.length+V.length>1&&(j.result=`(?:${j.result})`),p.cache[P]=j,j.result},"toRegexRange");function n(S,E,b){let _=s(S,E,"-",!1,b)||[],w=s(E,S,"",!1,b)||[],O=s(S,E,"-?",!0,b)||[];return _.concat(O).concat(w).join("|")}oe(n,"collatePatterns");function c(S,E){let b=1,_=1,w=h(S,b),O=new Set([E]);for(;S<=w&&w<=E;)O.add(w),b+=1,w=h(S,b);for(w=d(E+1,_)-1;S<w&&w<=E;)O.add(w),_+=1,w=d(E+1,_)-1;return O=[...O],O.sort(l),O}oe(c,"splitToRanges");function o(S,E,b){if(S===E)return{pattern:S,count:[],digits:0};let _=i(S,E),w=_.length,O="",R=0;for(let I=0;I<w;I++){let[P,L]=_[I];P===L?O+=P:P!=="0"||L!=="9"?O+=m(P,L,b):R++}return R&&(O+=b.shorthand===!0?"\\d":"[0-9]"),{pattern:O,count:[R],digits:w}}oe(o,"rangeToPattern");function t(S,E,b,_){let w=c(S,E),O=[],R=S,I;for(let P=0;P<w.length;P++){let L=w[P],M=o(String(R),String(L),_),x="";if(!b.isPadded&&I&&I.pattern===M.pattern){I.count.length>1&&I.count.pop(),I.count.push(M.count[0]),I.string=I.pattern+g(I.count),R=L+1;continue}b.isPadded&&(x=y(L,b,_)),M.string=x+M.pattern+g(M.count),O.push(M),R=L+1,I=M}return O}oe(t,"splitToPatterns");function s(S,E,b,_,w){let O=[];for(let R of S){let{string:I}=R;!_&&!u(E,"string",I)&&O.push(b+I),_&&u(E,"string",I)&&O.push(b+I)}return O}oe(s,"filterPatterns");function i(S,E){let b=[];for(let _=0;_<S.length;_++)b.push([S[_],E[_]]);return b}oe(i,"zip");function l(S,E){return S>E?1:E>S?-1:0}oe(l,"compare");function u(S,E,b){return S.some(_=>_[E]===b)}oe(u,"contains");function h(S,E){return Number(String(S).slice(0,-E)+"9".repeat(E))}oe(h,"countNines");function d(S,E){return S-S%Math.pow(10,E)}oe(d,"countZeros");function g(S){let[E=0,b=""]=S;return b||E>1?`{${E+(b?","+b:"")}}`:""}oe(g,"toQuantifier");function m(S,E,b){return`[${S}${E-S===1?"":"-"}${E}]`}oe(m,"toCharacterClass");function f(S){return/^-?(0+)\d/.test(S)}oe(f,"hasPadding");function y(S,E,b){if(!E.isPadded)return S;let _=Math.abs(E.maxLen-String(S).length),w=b.relaxZeros!==!1;switch(_){case 0:return"";case 1:return w?"0?":"0";case 2:return w?"0{0,2}":"00";default:return w?`0{0,${_}}`:`0{${_}}`}}oe(y,"padZeros"),p.cache={},p.clearCache=()=>p.cache={},r.exports=p}),ip=Se((e,r)=>{"use strict";var a=require("util"),p=LA(),n=oe(_=>_!==null&&typeof _=="object"&&!Array.isArray(_),"isObject"),c=oe(_=>w=>_===!0?Number(w):String(w),"transform"),o=oe(_=>typeof _=="number"||typeof _=="string"&&_!=="","isValidValue"),t=oe(_=>Number.isInteger(+_),"isNumber"),s=oe(_=>{let w=`${_}`,O=-1;if(w[0]==="-"&&(w=w.slice(1)),w==="0")return!1;for(;w[++O]==="0";);return O>0},"zeros"),i=oe((_,w,O)=>typeof _=="string"||typeof w=="string"?!0:O.stringify===!0,"stringify"),l=oe((_,w,O)=>{if(w>0){let R=_[0]==="-"?"-":"";R&&(_=_.slice(1)),_=R+_.padStart(R?w-1:w,"0")}return O===!1?String(_):_},"pad"),u=oe((_,w)=>{let O=_[0]==="-"?"-":"";for(O&&(_=_.slice(1),w--);_.length<w;)_="0"+_;return O?"-"+_:_},"toMaxLen"),h=oe((_,w,O)=>{_.negatives.sort((M,x)=>M<x?-1:M>x?1:0),_.positives.sort((M,x)=>M<x?-1:M>x?1:0);let R=w.capture?"":"?:",I="",P="",L;return _.positives.length&&(I=_.positives.map(M=>u(String(M),O)).join("|")),_.negatives.length&&(P=`-(${R}${_.negatives.map(M=>u(String(M),O)).join("|")})`),I&&P?L=`${I}|${P}`:L=I||P,w.wrap?`(${R}${L})`:L},"toSequence"),d=oe((_,w,O,R)=>{if(O)return p(_,w,{wrap:!1,...R});let I=String.fromCharCode(_);if(_===w)return I;let P=String.fromCharCode(w);return`[${I}-${P}]`},"toRange"),g=oe((_,w,O)=>{if(Array.isArray(_)){let R=O.wrap===!0,I=O.capture?"":"?:";return R?`(${I}${_.join("|")})`:_.join("|")}return p(_,w,O)},"toRegex"),m=oe((..._)=>new RangeError("Invalid range arguments: "+a.inspect(..._)),"rangeError"),f=oe((_,w,O)=>{if(O.strictRanges===!0)throw m([_,w]);return[]},"invalidRange"),y=oe((_,w)=>{if(w.strictRanges===!0)throw new TypeError(`Expected step "${_}" to be a number`);return[]},"invalidStep"),S=oe((_,w,O=1,R={})=>{let I=Number(_),P=Number(w);if(!Number.isInteger(I)||!Number.isInteger(P)){if(R.strictRanges===!0)throw m([_,w]);return[]}I===0&&(I=0),P===0&&(P=0);let L=I>P,M=String(_),x=String(w),j=String(O);O=Math.max(Math.abs(O),1);let U=s(M)||s(x)||s(j),V=U?Math.max(M.length,x.length,j.length):0,B=U===!1&&i(_,w,R)===!1,G=R.transform||c(B);if(R.toRegex&&O===1)return d(u(_,V),u(w,V),!0,R);let W={negatives:[],positives:[]},N=oe(C=>W[C<0?"negatives":"positives"].push(Math.abs(C)),"push"),D=[],T=0;for(;L?I>=P:I<=P;)R.toRegex===!0&&O>1?N(I):D.push(l(G(I,T),V,B)),I=L?I-O:I+O,T++;return R.toRegex===!0?O>1?h(W,R,V):g(D,null,{wrap:!1,...R}):D},"fillNumbers"),E=oe((_,w,O=1,R={})=>{if(!t(_)&&_.length>1||!t(w)&&w.length>1)return f(_,w,R);let I=R.transform||(B=>String.fromCharCode(B)),P=`${_}`.charCodeAt(0),L=`${w}`.charCodeAt(0),M=P>L,x=Math.min(P,L),j=Math.max(P,L);if(R.toRegex&&O===1)return d(x,j,!1,R);let U=[],V=0;for(;M?P>=L:P<=L;)U.push(I(P,V)),P=M?P-O:P+O,V++;return R.toRegex===!0?g(U,null,{wrap:!1,options:R}):U},"fillLetters"),b=oe((_,w,O,R={})=>{if(w==null&&o(_))return[_];if(!o(_)||!o(w))return f(_,w,R);if(typeof O=="function")return b(_,w,1,{transform:O});if(n(O))return b(_,w,0,O);let I={...R};return I.capture===!0&&(I.wrap=!0),O=O||I.step||1,t(O)?t(_)&&t(w)?S(_,w,O,I):E(_,w,Math.max(Math.abs(O),1),I):O!=null&&!n(O)?y(O,I):b(_,w,1,O)},"fill");r.exports=b}),DA=Se((e,r)=>{"use strict";var a=ip(),p=Ho(),n=oe((c,o={})=>{let t=oe((s,i={})=>{let l=p.isInvalidBrace(i),u=s.invalid===!0&&o.escapeInvalid===!0,h=l===!0||u===!0,d=o.escapeInvalid===!0?"\\":"",g="";if(s.isOpen===!0||s.isClose===!0)return d+s.value;if(s.type==="open")return h?d+s.value:"(";if(s.type==="close")return h?d+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":h?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let m=p.reduce(s.nodes),f=a(...m,{...o,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return m.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let m of s.nodes)g+=t(m,s);return g},"walk");return t(c)},"compile");r.exports=n}),MA=Se((e,r)=>{"use strict";var a=ip(),p=Go(),n=Ho(),c=oe((t="",s="",i=!1)=>{let l=[];if(t=[].concat(t),s=[].concat(s),!s.length)return t;if(!t.length)return i?n.flatten(s).map(u=>`{${u}}`):s;for(let u of t)if(Array.isArray(u))for(let h of u)l.push(c(h,s,i));else for(let h of s)i===!0&&typeof h=="string"&&(h=`{${h}}`),l.push(Array.isArray(h)?c(u,h,i):u+h);return n.flatten(l)},"append"),o=oe((t,s={})=>{let i=s.rangeLimit===void 0?1e3:s.rangeLimit,l=oe((u,h={})=>{u.queue=[];let d=h,g=h.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,g=d.queue;if(u.invalid||u.dollar){g.push(c(g.pop(),p(u,s)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){g.push(c(g.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let S=n.reduce(u.nodes);if(n.exceedsLimit(...S,s.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let E=a(...S,s);E.length===0&&(E=p(u,s)),g.push(c(g.pop(),E)),u.nodes=[];return}let m=n.encloseBrace(u),f=u.queue,y=u;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,f=y.queue;for(let S=0;S<u.nodes.length;S++){let E=u.nodes[S];if(E.type==="comma"&&u.type==="brace"){S===1&&f.push(""),f.push("");continue}if(E.type==="close"){g.push(c(g.pop(),f,m));continue}if(E.value&&E.type!=="open"){f.push(c(f.pop(),E.value));continue}E.nodes&&l(E,u)}return f},"walk");return n.flatten(l(t))},"expand");r.exports=o}),jA=Se((e,r)=>{"use strict";r.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
67
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),$A=Se((e,r)=>{"use strict";var a=Go(),{MAX_LENGTH:p,CHAR_BACKSLASH:n,CHAR_BACKTICK:c,CHAR_COMMA:o,CHAR_DOT:t,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:u,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:f,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=jA(),S=oe((E,b={})=>{if(typeof E!="string")throw new TypeError("Expected a string");let _=b||{},w=typeof _.maxLength=="number"?Math.min(p,_.maxLength):p;if(E.length>w)throw new SyntaxError(`Input length (${E.length}), exceeds max characters (${w})`);let O={type:"root",input:E,nodes:[]},R=[O],I=O,P=O,L=0,M=E.length,x=0,j=0,U,V=oe(()=>E[x++],"advance"),B=oe(G=>{if(G.type==="text"&&P.type==="dot"&&(P.type="text"),P&&P.type==="text"&&G.type==="text"){P.value+=G.value;return}return I.nodes.push(G),G.parent=I,G.prev=P,P=G,G},"push");for(B({type:"bos"});x<M;)if(I=R[R.length-1],U=V(),!(U===y||U===f)){if(U===n){B({type:"text",value:(b.keepEscaping?U:"")+V()});continue}if(U===d){B({type:"text",value:"\\"+U});continue}if(U===h){L++;let G;for(;x<M&&(G=V());){if(U+=G,G===h){L++;continue}if(G===n){U+=V();continue}if(G===d&&(L--,L===0))break}B({type:"text",value:U});continue}if(U===s){I=B({type:"paren",nodes:[]}),R.push(I),B({type:"text",value:U});continue}if(U===i){if(I.type!=="paren"){B({type:"text",value:U});continue}I=R.pop(),B({type:"text",value:U}),I=R[R.length-1];continue}if(U===g||U===m||U===c){let G=U,W;for(b.keepQuotes!==!0&&(U="");x<M&&(W=V());){if(W===n){U+=W+V();continue}if(W===G){b.keepQuotes===!0&&(U+=W);break}U+=W}B({type:"text",value:U});continue}if(U===l){j++;let G={type:"brace",open:!0,close:!1,dollar:P.value&&P.value.slice(-1)==="$"||I.dollar===!0,depth:j,commas:0,ranges:0,nodes:[]};I=B(G),R.push(I),B({type:"open",value:U});continue}if(U===u){if(I.type!=="brace"){B({type:"text",value:U});continue}let G="close";I=R.pop(),I.close=!0,B({type:G,value:U}),j--,I=R[R.length-1];continue}if(U===o&&j>0){if(I.ranges>0){I.ranges=0;let G=I.nodes.shift();I.nodes=[G,{type:"text",value:a(I)}]}B({type:"comma",value:U}),I.commas++;continue}if(U===t&&j>0&&I.commas===0){let G=I.nodes;if(j===0||G.length===0){B({type:"text",value:U});continue}if(P.type==="dot"){if(I.range=[],P.value+=U,P.type="range",I.nodes.length!==3&&I.nodes.length!==5){I.invalid=!0,I.ranges=0,P.type="text";continue}I.ranges++,I.args=[];continue}if(P.type==="range"){G.pop();let W=G[G.length-1];W.value+=P.value+U,P=W,I.ranges--;continue}B({type:"dot",value:U});continue}B({type:"text",value:U})}do if(I=R.pop(),I.type!=="root"){I.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let G=R[R.length-1],W=G.nodes.indexOf(I);G.nodes.splice(W,1,...I.nodes)}while(R.length>0);return B({type:"eos"}),O},"parse");r.exports=S}),BA=Se((e,r)=>{"use strict";var a=Go(),p=DA(),n=MA(),c=$A(),o=oe((t,s={})=>{let i=[];if(Array.isArray(t))for(let l of t){let u=o.create(l,s);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(o.create(t,s));return s&&s.expand===!0&&s.nodupes===!0&&(i=[...new Set(i)]),i},"braces");o.parse=(t,s={})=>c(t,s),o.stringify=(t,s={})=>a(typeof t=="string"?o.parse(t,s):t,s),o.compile=(t,s={})=>(typeof t=="string"&&(t=o.parse(t,s)),p(t,s)),o.expand=(t,s={})=>{typeof t=="string"&&(t=o.parse(t,s));let i=n(t,s);return s.noempty===!0&&(i=i.filter(Boolean)),s.nodupes===!0&&(i=[...new Set(i)]),i},o.create=(t,s={})=>t===""||t.length<3?[t]:s.expand!==!0?o.compile(t,s):o.expand(t,s),r.exports=o}),Ks=Se((e,r)=>{"use strict";var a=require("path"),p="\\\\/",n=`[^${p}]`,c="\\.",o="\\+",t="\\?",s="\\/",i="(?=.)",l="[^/]",u=`(?:${s}|$)`,h=`(?:^|${s})`,d=`${c}{1,2}${u}`,g=`(?!${c})`,m=`(?!${h}${d})`,f=`(?!${c}{0,1}${u})`,y=`(?!${d})`,S=`[^.${s}]`,E=`${l}*?`,b={DOT_LITERAL:c,PLUS_LITERAL:o,QMARK_LITERAL:t,SLASH_LITERAL:s,ONE_CHAR:i,QMARK:l,END_ANCHOR:u,DOTS_SLASH:d,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:f,NO_DOTS_SLASH:y,QMARK_NO_DOT:S,STAR:E,START_ANCHOR:h},_={...b,SLASH_LITERAL:`[${p}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${c}{1,2}(?:[${p}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${p}])${c}{1,2}(?:[${p}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${p}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${p}]|$))`,QMARK_NO_DOT:`[^.${p}]`,START_ANCHOR:`(?:^|[${p}])`,END_ANCHOR:`(?:[${p}]|$)`},w={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:w,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:a.sep,extglobChars(O){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${O.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(O){return O===!0?_:b}}}),Js=Se(e=>{"use strict";var r=require("path"),a=process.platform==="win32",{REGEX_BACKSLASH:p,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:o}=Ks();e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),e.hasRegexChars=t=>c.test(t),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(o,"\\$1"),e.toPosixSlashes=t=>t.replace(p,"/"),e.removeBackslashes=t=>t.replace(n,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10},e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:a===!0||r.sep==="\\",e.escapeLast=(t,s,i)=>{let l=t.lastIndexOf(s,i);return l===-1?t:t[l-1]==="\\"?e.escapeLast(t,s,l-1):`${t.slice(0,l)}\\${t.slice(l)}`},e.removePrefix=(t,s={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),s.prefix="./"),i},e.wrapOutput=(t,s={},i={})=>{let l=i.contains?"":"^",u=i.contains?"":"$",h=`${l}(?:${t})${u}`;return s.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}),UA=Se((e,r)=>{"use strict";var a=Js(),{CHAR_ASTERISK:p,CHAR_AT:n,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:o,CHAR_DOT:t,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:y}=Ks(),S=oe(_=>_===i||_===c,"isPathSeparator"),E=oe(_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)},"depth"),b=oe((_,w)=>{let O=w||{},R=_.length-1,I=O.parts===!0||O.scanToEnd===!0,P=[],L=[],M=[],x=_,j=-1,U=0,V=0,B=!1,G=!1,W=!1,N=!1,D=!1,T=!1,C=!1,Z=!1,X=!1,Q=!1,k=0,F,z,$={value:"",depth:0,isGlob:!1},q=oe(()=>j>=R,"eos"),J=oe(()=>x.charCodeAt(j+1),"peek"),Y=oe(()=>(F=z,x.charCodeAt(++j)),"advance");for(;j<R;){z=Y();let te;if(z===c){C=$.backslashes=!0,z=Y(),z===l&&(T=!0);continue}if(T===!0||z===l){for(k++;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,Y();continue}if(z===l){k++;continue}if(T!==!0&&z===t&&(z=Y())===t){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(T!==!0&&z===o){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===m&&(k--,k===0)){T=!1,B=$.isBrace=!0,Q=!0;break}}if(I===!0)continue;break}if(z===i){if(P.push(j),L.push($),$={value:"",depth:0,isGlob:!1},Q===!0)continue;if(F===t&&j===U+1){U+=2;continue}V=j+1;continue}if(O.noext!==!0&&(z===d||z===n||z===p||z===g||z===s)&&J()===u){if(W=$.isGlob=!0,N=$.isExtglob=!0,Q=!0,z===s&&j===U&&(X=!0),I===!0){for(;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,z=Y();continue}if(z===f){W=$.isGlob=!0,Q=!0;break}}continue}break}if(z===p){if(F===p&&(D=$.isGlobstar=!0),W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===g){if(W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===h){for(;q()!==!0&&(te=Y());){if(te===c){C=$.backslashes=!0,Y();continue}if(te===y){G=$.isBracket=!0,W=$.isGlob=!0,Q=!0;break}}if(I===!0)continue;break}if(O.nonegate!==!0&&z===s&&j===U){Z=$.negated=!0,U++;continue}if(O.noparen!==!0&&z===u){if(W=$.isGlob=!0,I===!0){for(;q()!==!0&&(z=Y());){if(z===u){C=$.backslashes=!0,z=Y();continue}if(z===f){Q=!0;break}}continue}break}if(W===!0){if(Q=!0,I===!0)continue;break}}O.noext===!0&&(N=!1,W=!1);let A=x,H="",ee="";U>0&&(H=x.slice(0,U),x=x.slice(U),V-=U),A&&W===!0&&V>0?(A=x.slice(0,V),ee=x.slice(V)):W===!0?(A="",ee=x):A=x,A&&A!==""&&A!=="/"&&A!==x&&S(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),O.unescape===!0&&(ee&&(ee=a.removeBackslashes(ee)),A&&C===!0&&(A=a.removeBackslashes(A)));let ne={prefix:H,input:_,start:U,base:A,glob:ee,isBrace:B,isBracket:G,isGlob:W,isExtglob:N,isGlobstar:D,negated:Z,negatedExtglob:X};if(O.tokens===!0&&(ne.maxDepth=0,S(z)||L.push($),ne.tokens=L),O.parts===!0||O.tokens===!0){let te;for(let ae=0;ae<P.length;ae++){let he=te?te+1:U,re=P[ae],ue=_.slice(he,re);O.tokens&&(ae===0&&U!==0?(L[ae].isPrefix=!0,L[ae].value=H):L[ae].value=ue,E(L[ae]),ne.maxDepth+=L[ae].depth),(ae!==0||ue!=="")&&M.push(ue),te=re}if(te&&te+1<_.length){let ae=_.slice(te+1);M.push(ae),O.tokens&&(L[L.length-1].value=ae,E(L[L.length-1]),ne.maxDepth+=L[L.length-1].depth)}ne.slashes=P,ne.parts=M}return ne},"scan");r.exports=b}),FA=Se((e,r)=>{"use strict";var a=Ks(),p=Js(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:t,REPLACEMENTS:s}=a,i=oe((h,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...h,d);h.sort();let g=`[${h.join("-")}]`;try{new RegExp(g)}catch{return h.map(m=>p.escapeRegex(m)).join("..")}return g},"expandRange"),l=oe((h,d)=>`Missing ${h}: "${d}" - use "\\\\${d}" to match literal characters`,"syntaxError"),u=oe((h,d)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=s[h]||h;let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);let y={type:"bos",value:"",output:g.prepend||""},S=[y],E=g.capture?"":"?:",b=p.isWindows(d),_=a.globChars(b),w=a.extglobChars(_),{DOT_LITERAL:O,PLUS_LITERAL:R,SLASH_LITERAL:I,ONE_CHAR:P,DOTS_SLASH:L,NO_DOT:M,NO_DOT_SLASH:x,NO_DOTS_SLASH:j,QMARK:U,QMARK_NO_DOT:V,STAR:B,START_ANCHOR:G}=_,W=oe(re=>`(${E}(?:(?!${G}${re.dot?L:O}).)*?)`,"globstar"),N=g.dot?"":M,D=g.dot?U:V,T=g.bash===!0?W(g):B;g.capture&&(T=`(${T})`),typeof g.noext=="boolean"&&(g.noextglob=g.noext);let C={input:h,index:-1,start:0,dot:g.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};h=p.removePrefix(h,C),f=h.length;let Z=[],X=[],Q=[],k=y,F,z=oe(()=>C.index===f-1,"eos"),$=C.peek=(re=1)=>h[C.index+re],q=C.advance=()=>h[++C.index]||"",J=oe(()=>h.slice(C.index+1),"remaining"),Y=oe((re="",ue=0)=>{C.consumed+=re,C.index+=ue},"consume"),A=oe(re=>{C.output+=re.output!=null?re.output:re.value,Y(re.value)},"append"),H=oe(()=>{let re=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)q(),C.start++,re++;return re%2===0?!1:(C.negated=!0,C.start++,!0)},"negate"),ee=oe(re=>{C[re]++,Q.push(re)},"increment"),ne=oe(re=>{C[re]--,Q.pop()},"decrement"),te=oe(re=>{if(k.type==="globstar"){let ue=C.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||Z.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!ue&&!ie&&(C.output=C.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=T,C.output+=k.output)}if(Z.length&&re.type!=="paren"&&(Z[Z.length-1].inner+=re.value),(re.value||re.output)&&A(re),k&&k.type==="text"&&re.type==="text"){k.value+=re.value,k.output=(k.output||"")+re.value;return}re.prev=k,S.push(re),k=re},"push"),ae=oe((re,ue)=>{let ie={...w[ue],conditions:1,inner:""};ie.prev=k,ie.parens=C.parens,ie.output=C.output;let le=(g.capture?"(":"")+ie.open;ee("parens"),te({type:re,value:ue,output:C.output?"":P}),te({type:"paren",extglob:!0,value:q(),output:le}),Z.push(ie)},"extglobOpen"),he=oe(re=>{let ue=re.close+(g.capture?")":""),ie;if(re.type==="negate"){let le=T;if(re.inner&&re.inner.length>1&&re.inner.includes("/")&&(le=W(g)),(le!==T||z()||/^\)+$/.test(J()))&&(ue=re.close=`)$))${le}`),re.inner.includes("*")&&(ie=J())&&/^\.[^\\/.]+$/.test(ie)){let fe=u(ie,{...d,fastpaths:!1}).output;ue=re.close=`)${fe})${le})`}re.prev.type==="bos"&&(C.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:F,output:ue}),ne("parens")},"extglobClose");if(g.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let re=!1,ue=h.replace(t,(ie,le,fe,me,ce,pe)=>me==="\\"?(re=!0,ie):me==="?"?le?le+me+(ce?U.repeat(ce.length):""):pe===0?D+(ce?U.repeat(ce.length):""):U.repeat(fe.length):me==="."?O.repeat(fe.length):me==="*"?le?le+me+(ce?T:""):T:le?ie:`\\${ie}`);return re===!0&&(g.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),ue===h&&g.contains===!0?(C.output=h,C):(C.output=p.wrapOutput(ue,C,d),C)}for(;!z();){if(F=q(),F==="\0")continue;if(F==="\\"){let ie=$();if(ie==="/"&&g.bash!==!0||ie==="."||ie===";")continue;if(!ie){F+="\\",te({type:"text",value:F});continue}let le=/^\\+/.exec(J()),fe=0;if(le&&le[0].length>2&&(fe=le[0].length,C.index+=fe,fe%2!==0&&(F+="\\")),g.unescape===!0?F=q():F+=q(),C.brackets===0){te({type:"text",value:F});continue}}if(C.brackets>0&&(F!=="]"||k.value==="["||k.value==="[^")){if(g.posix!==!1&&F===":"){let ie=k.value.slice(1);if(ie.includes("[")&&(k.posix=!0,ie.includes(":"))){let le=k.value.lastIndexOf("["),fe=k.value.slice(0,le),me=k.value.slice(le+2),ce=c[me];if(ce){k.value=fe+ce,C.backtrack=!0,q(),!y.output&&S.indexOf(k)===1&&(y.output=P);continue}}}(F==="["&&$()!==":"||F==="-"&&$()==="]")&&(F=`\\${F}`),F==="]"&&(k.value==="["||k.value==="[^")&&(F=`\\${F}`),g.posix===!0&&F==="!"&&k.value==="["&&(F="^"),k.value+=F,A({value:F});continue}if(C.quotes===1&&F!=='"'){F=p.escapeRegex(F),k.value+=F,A({value:F});continue}if(F==='"'){C.quotes=C.quotes===1?0:1,g.keepQuotes===!0&&te({type:"text",value:F});continue}if(F==="("){ee("parens"),te({type:"paren",value:F});continue}if(F===")"){if(C.parens===0&&g.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=Z[Z.length-1];if(ie&&C.parens===ie.parens+1){he(Z.pop());continue}te({type:"paren",value:F,output:C.parens?")":"\\)"}),ne("parens");continue}if(F==="["){if(g.nobracket===!0||!J().includes("]")){if(g.nobracket!==!0&&g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F=`\\${F}`}else ee("brackets");te({type:"bracket",value:F});continue}if(F==="]"){if(g.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){te({type:"text",value:F,output:`\\${F}`});continue}if(C.brackets===0){if(g.strictBrackets===!0)throw new SyntaxError(l("opening","["));te({type:"text",value:F,output:`\\${F}`});continue}ne("brackets");let ie=k.value.slice(1);if(k.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(F=`/${F}`),k.value+=F,A({value:F}),g.literalBrackets===!1||p.hasRegexChars(ie))continue;let le=p.escapeRegex(k.value);if(C.output=C.output.slice(0,-k.value.length),g.literalBrackets===!0){C.output+=le,k.value=le;continue}k.value=`(${E}${le}|${k.value})`,C.output+=k.value;continue}if(F==="{"&&g.nobrace!==!0){ee("braces");let ie={type:"brace",value:F,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};X.push(ie),te(ie);continue}if(F==="}"){let ie=X[X.length-1];if(g.nobrace===!0||!ie){te({type:"text",value:F,output:F});continue}let le=")";if(ie.dots===!0){let fe=S.slice(),me=[];for(let ce=fe.length-1;ce>=0&&(S.pop(),fe[ce].type!=="brace");ce--)fe[ce].type!=="dots"&&me.unshift(fe[ce].value);le=i(me,g),C.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let fe=C.output.slice(0,ie.outputIndex),me=C.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",F=le="\\}",C.output=fe;for(let ce of me)C.output+=ce.output||ce.value}te({type:"brace",value:F,output:le}),ne("braces"),X.pop();continue}if(F==="|"){Z.length>0&&Z[Z.length-1].conditions++,te({type:"text",value:F});continue}if(F===","){let ie=F,le=X[X.length-1];le&&Q[Q.length-1]==="braces"&&(le.comma=!0,ie="|"),te({type:"comma",value:F,output:ie});continue}if(F==="/"){if(k.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",S.pop(),k=y;continue}te({type:"slash",value:F,output:I});continue}if(F==="."){if(C.braces>0&&k.type==="dot"){k.value==="."&&(k.output=O);let ie=X[X.length-1];k.type="dots",k.output+=F,k.value+=F,ie.dots=!0;continue}if(C.braces+C.parens===0&&k.type!=="bos"&&k.type!=="slash"){te({type:"text",value:F,output:O});continue}te({type:"dot",value:F,output:O});continue}if(F==="?"){if(!(k&&k.value==="(")&&g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("qmark",F);continue}if(k&&k.type==="paren"){let ie=$(),le=F;if(ie==="<"&&!p.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(J()))&&(le=`\\${F}`),te({type:"text",value:F,output:le});continue}if(g.dot!==!0&&(k.type==="slash"||k.type==="bos")){te({type:"qmark",value:F,output:V});continue}te({type:"qmark",value:F,output:U});continue}if(F==="!"){if(g.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){ae("negate",F);continue}if(g.nonegate!==!0&&C.index===0){H();continue}}if(F==="+"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("plus",F);continue}if(k&&k.value==="("||g.regex===!1){te({type:"plus",value:F,output:R});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||C.parens>0){te({type:"plus",value:F});continue}te({type:"plus",value:R});continue}if(F==="@"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){te({type:"at",extglob:!0,value:F,output:""});continue}te({type:"text",value:F});continue}if(F!=="*"){(F==="$"||F==="^")&&(F=`\\${F}`);let ie=o.exec(J());ie&&(F+=ie[0],C.index+=ie[0].length),te({type:"text",value:F});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=F,k.output=T,C.backtrack=!0,C.globstar=!0,Y(F);continue}let re=J();if(g.noextglob!==!0&&/^\([^?]/.test(re)){ae("star",F);continue}if(k.type==="star"){if(g.noglobstar===!0){Y(F);continue}let ie=k.prev,le=ie.prev,fe=ie.type==="slash"||ie.type==="bos",me=le&&(le.type==="star"||le.type==="globstar");if(g.bash===!0&&(!fe||re[0]&&re[0]!=="/")){te({type:"star",value:F,output:""});continue}let ce=C.braces>0&&(ie.type==="comma"||ie.type==="brace"),pe=Z.length&&(ie.type==="pipe"||ie.type==="paren");if(!fe&&ie.type!=="paren"&&!ce&&!pe){te({type:"star",value:F,output:""});continue}for(;re.slice(0,3)==="/**";){let de=h[C.index+4];if(de&&de!=="/")break;re=re.slice(3),Y("/**",3)}if(ie.type==="bos"&&z()){k.type="globstar",k.value+=F,k.output=W(g),C.output=k.output,C.globstar=!0,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!me&&z()){C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=W(g)+(g.strictSlashes?")":"|$)"),k.value+=F,C.globstar=!0,C.output+=ie.output+k.output,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){let de=re[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=`${W(g)}${I}|${I}${de})`,k.value+=F,C.output+=ie.output+k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){k.type="globstar",k.value+=F,k.output=`(?:^|${I}|${W(g)}${I})`,C.output=k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-k.output.length),k.type="globstar",k.output=W(g),k.value+=F,C.output+=k.output,C.globstar=!0,Y(F);continue}let ue={type:"star",value:F,output:T};if(g.bash===!0){ue.output=".*?",(k.type==="bos"||k.type==="slash")&&(ue.output=N+ue.output),te(ue);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&g.regex===!0){ue.output=F,te(ue);continue}(C.index===C.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(C.output+=x,k.output+=x):g.dot===!0?(C.output+=j,k.output+=j):(C.output+=N,k.output+=N),$()!=="*"&&(C.output+=P,k.output+=P)),te(ue)}for(;C.brackets>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));C.output=p.escapeLast(C.output,"["),ne("brackets")}for(;C.parens>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing",")"));C.output=p.escapeLast(C.output,"("),ne("parens")}for(;C.braces>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","}"));C.output=p.escapeLast(C.output,"{"),ne("braces")}if(g.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&te({type:"maybe_slash",value:"",output:`${I}?`}),C.backtrack===!0){C.output="";for(let re of C.tokens)C.output+=re.output!=null?re.output:re.value,re.suffix&&(C.output+=re.suffix)}return C},"parse");u.fastpaths=(h,d)=>{let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);h=s[h]||h;let y=p.isWindows(d),{DOT_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:b,DOTS_SLASH:_,NO_DOT:w,NO_DOTS:O,NO_DOTS_SLASH:R,STAR:I,START_ANCHOR:P}=a.globChars(y),L=g.dot?O:w,M=g.dot?R:w,x=g.capture?"":"?:",j={negated:!1,prefix:""},U=g.bash===!0?".*?":I;g.capture&&(U=`(${U})`);let V=oe(N=>N.noglobstar===!0?U:`(${x}(?:(?!${P}${N.dot?_:S}).)*?)`,"globstar"),B=oe(N=>{switch(N){case"*":return`${L}${b}${U}`;case".*":return`${S}${b}${U}`;case"*.*":return`${L}${U}${S}${b}${U}`;case"*/*":return`${L}${U}${E}${b}${M}${U}`;case"**":return L+V(g);case"**/*":return`(?:${L}${V(g)}${E})?${M}${b}${U}`;case"**/*.*":return`(?:${L}${V(g)}${E})?${M}${U}${S}${b}${U}`;case"**/.*":return`(?:${L}${V(g)}${E})?${S}${b}${U}`;default:{let D=/^(.*?)\.(\w+)$/.exec(N);if(!D)return;let T=B(D[1]);return T?T+S+D[2]:void 0}}},"create"),G=p.removePrefix(h,j),W=B(G);return W&&g.strictSlashes!==!0&&(W+=`${E}?`),W},r.exports=u}),HA=Se((e,r)=>{"use strict";var a=require("path"),p=UA(),n=FA(),c=Js(),o=Ks(),t=oe(i=>i&&typeof i=="object"&&!Array.isArray(i),"isObject"),s=oe((i,l,u=!1)=>{if(Array.isArray(i)){let E=i.map(b=>s(b,l,u));return oe(b=>{for(let _ of E){let w=_(b);if(w)return w}return!1},"arrayMatcher")}let h=t(i)&&i.tokens&&i.input;if(i===""||typeof i!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},g=c.isWindows(l),m=h?s.compileRe(i,l):s.makeRe(i,l,!1,!0),f=m.state;delete m.state;let y=oe(()=>!1,"isIgnored");if(d.ignore){let E={...l,ignore:null,onMatch:null,onResult:null};y=s(d.ignore,E,u)}let S=oe((E,b=!1)=>{let{isMatch:_,match:w,output:O}=s.test(E,m,l,{glob:i,posix:g}),R={glob:i,state:f,regex:m,posix:g,input:E,output:O,match:w,isMatch:_};return typeof d.onResult=="function"&&d.onResult(R),_===!1?(R.isMatch=!1,b?R:!1):y(E)?(typeof d.onIgnore=="function"&&d.onIgnore(R),R.isMatch=!1,b?R:!1):(typeof d.onMatch=="function"&&d.onMatch(R),b?R:!0)},"matcher");return u&&(S.state=f),S},"picomatch");s.test=(i,l,u,{glob:h,posix:d}={})=>{if(typeof i!="string")throw new TypeError("Expected input to be a string");if(i==="")return{isMatch:!1,output:""};let g=u||{},m=g.format||(d?c.toPosixSlashes:null),f=i===h,y=f&&m?m(i):i;return f===!1&&(y=m?m(i):i,f=y===h),(f===!1||g.capture===!0)&&(g.matchBase===!0||g.basename===!0?f=s.matchBase(i,l,u,d):f=l.exec(y)),{isMatch:!!f,match:f,output:y}},s.matchBase=(i,l,u,h=c.isWindows(u))=>(l instanceof RegExp?l:s.makeRe(l,u)).test(a.basename(i)),s.isMatch=(i,l,u)=>s(l,u)(i),s.parse=(i,l)=>Array.isArray(i)?i.map(u=>s.parse(u,l)):n(i,{...l,fastpaths:!1}),s.scan=(i,l)=>p(i,l),s.compileRe=(i,l,u=!1,h=!1)=>{if(u===!0)return i.output;let d=l||{},g=d.contains?"":"^",m=d.contains?"":"$",f=`${g}(?:${i.output})${m}`;i&&i.negated===!0&&(f=`^(?!${f}).*$`);let y=s.toRegex(f,l);return h===!0&&(y.state=i),y},s.makeRe=(i,l={},u=!1,h=!1)=>{if(!i||typeof i!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(i[0]==="."||i[0]==="*")&&(d.output=n.fastpaths(i,l)),d.output||(d=n(i,l)),s.compileRe(d,l,u,h)},s.toRegex=(i,l)=>{try{let u=l||{};return new RegExp(i,u.flags||(u.nocase?"i":""))}catch(u){if(l&&l.debug===!0)throw u;return/$^/}},s.constants=o,r.exports=s}),GA=Se((e,r)=>{"use strict";r.exports=HA()}),VA=Se((e,r)=>{"use strict";var a=require("util"),p=BA(),n=GA(),c=Js(),o=oe(i=>i===""||i==="./","isEmptyString"),t=oe(i=>{let l=i.indexOf("{");return l>-1&&i.indexOf("}",l)>-1},"hasBraces"),s=oe((i,l,u)=>{l=[].concat(l),i=[].concat(i);let h=new Set,d=new Set,g=new Set,m=0,f=oe(S=>{g.add(S.output),u&&u.onResult&&u.onResult(S)},"onResult");for(let S=0;S<l.length;S++){let E=n(String(l[S]),{...u,onResult:f},!0),b=E.state.negated||E.state.negatedExtglob;b&&m++;for(let _ of i){let w=E(_,!0);(b?!w.isMatch:w.isMatch)&&(b?h.add(w.output):(h.delete(w.output),d.add(w.output)))}}let y=(m===l.length?[...g]:[...d]).filter(S=>!h.has(S));if(u&&y.length===0){if(u.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(u.nonull===!0||u.nullglob===!0)return u.unescape?l.map(S=>S.replace(/\\/g,"")):l}return y},"micromatch");s.match=s,s.matcher=(i,l)=>n(i,l),s.isMatch=(i,l,u)=>n(l,u)(i),s.any=s.isMatch,s.not=(i,l,u={})=>{l=[].concat(l).map(String);let h=new Set,d=[],g=oe(f=>{u.onResult&&u.onResult(f),d.push(f.output)},"onResult"),m=new Set(s(i,l,{...u,onResult:g}));for(let f of d)m.has(f)||h.add(f);return[...h]},s.contains=(i,l,u)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${a.inspect(i)}"`);if(Array.isArray(l))return l.some(h=>s.contains(i,h,u));if(typeof l=="string"){if(o(i)||o(l))return!1;if(i.includes(l)||i.startsWith("./")&&i.slice(2).includes(l))return!0}return s.isMatch(i,l,{...u,contains:!0})},s.matchKeys=(i,l,u)=>{if(!c.isObject(i))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(i),l,u),d={};for(let g of h)d[g]=i[g];return d},s.some=(i,l,u)=>{let h=[].concat(i);for(let d of[].concat(l)){let g=n(String(d),u);if(h.some(m=>g(m)))return!0}return!1},s.every=(i,l,u)=>{let h=[].concat(i);for(let d of[].concat(l)){let g=n(String(d),u);if(!h.every(m=>g(m)))return!1}return!0},s.all=(i,l,u)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${a.inspect(i)}"`);return[].concat(l).every(h=>n(h,u)(i))},s.capture=(i,l,u)=>{let h=c.isWindows(u),d=n.makeRe(String(i),{...u,capture:!0}).exec(h?c.toPosixSlashes(l):l);if(d)return d.slice(1).map(g=>g===void 0?"":g)},s.makeRe=(...i)=>n.makeRe(...i),s.scan=(...i)=>n.scan(...i),s.parse=(i,l)=>{let u=[];for(let h of[].concat(i||[]))for(let d of p(String(h),l))u.push(n.parse(d,l));return u},s.braces=(i,l)=>{if(typeof i!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!t(i)?[i]:p(i,l)},s.braceExpand=(i,l)=>{if(typeof i!="string")throw new TypeError("Expected a string");return s.braces(i,{...l,expand:!0})},s.hasBraces=t,r.exports=s}),WA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=require("path"),a=NA(),p=VA(),n="**",c="\\",o=/[*?]|^!/,t=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,i=/[!*+?@]\([^(]*\)/,l=/,|\.\./,u=/(?!^)\/{2,}/g;function h(D,T={}){return!d(D,T)}oe(h,"isStaticPattern"),e.isStaticPattern=h;function d(D,T={}){return D===""?!1:!!(T.caseSensitiveMatch===!1||D.includes(c)||o.test(D)||t.test(D)||s.test(D)||T.extglob!==!1&&i.test(D)||T.braceExpansion!==!1&&g(D))}oe(d,"isDynamicPattern"),e.isDynamicPattern=d;function g(D){let T=D.indexOf("{");if(T===-1)return!1;let C=D.indexOf("}",T+1);if(C===-1)return!1;let Z=D.slice(T,C);return l.test(Z)}oe(g,"hasBraceExpansion");function m(D){return y(D)?D.slice(1):D}oe(m,"convertToPositivePattern"),e.convertToPositivePattern=m;function f(D){return"!"+D}oe(f,"convertToNegativePattern"),e.convertToNegativePattern=f;function y(D){return D.startsWith("!")&&D[1]!=="("}oe(y,"isNegativePattern"),e.isNegativePattern=y;function S(D){return!y(D)}oe(S,"isPositivePattern"),e.isPositivePattern=S;function E(D){return D.filter(y)}oe(E,"getNegativePatterns"),e.getNegativePatterns=E;function b(D){return D.filter(S)}oe(b,"getPositivePatterns"),e.getPositivePatterns=b;function _(D){return D.filter(T=>!O(T))}oe(_,"getPatternsInsideCurrentDirectory"),e.getPatternsInsideCurrentDirectory=_;function w(D){return D.filter(O)}oe(w,"getPatternsOutsideCurrentDirectory"),e.getPatternsOutsideCurrentDirectory=w;function O(D){return D.startsWith("..")||D.startsWith("./..")}oe(O,"isPatternRelatedToParentDirectory"),e.isPatternRelatedToParentDirectory=O;function R(D){return a(D,{flipBackslashes:!1})}oe(R,"getBaseDirectory"),e.getBaseDirectory=R;function I(D){return D.includes(n)}oe(I,"hasGlobStar"),e.hasGlobStar=I;function P(D){return D.endsWith("/"+n)}oe(P,"endsWithSlashGlobStar"),e.endsWithSlashGlobStar=P;function L(D){let T=r.basename(D);return P(D)||h(T)}oe(L,"isAffectDepthOfReadingPattern"),e.isAffectDepthOfReadingPattern=L;function M(D){return D.reduce((T,C)=>T.concat(x(C)),[])}oe(M,"expandPatternsWithBraceExpansion"),e.expandPatternsWithBraceExpansion=M;function x(D){let T=p.braces(D,{expand:!0,nodupes:!0,keepEscaping:!0});return T.sort((C,Z)=>C.length-Z.length),T.filter(C=>C!=="")}oe(x,"expandBraceExpansion"),e.expandBraceExpansion=x;function j(D,T){let{parts:C}=p.scan(D,Object.assign(Object.assign({},T),{parts:!0}));return C.length===0&&(C=[D]),C[0].startsWith("/")&&(C[0]=C[0].slice(1),C.unshift("")),C}oe(j,"getPatternParts"),e.getPatternParts=j;function U(D,T){return p.makeRe(D,T)}oe(U,"makeRe"),e.makeRe=U;function V(D,T){return D.map(C=>U(C,T))}oe(V,"convertPatternsToRe"),e.convertPatternsToRe=V;function B(D,T){return T.some(C=>C.test(D))}oe(B,"matchAny"),e.matchAny=B;function G(D){return D.replace(u,"/")}oe(G,"removeDuplicateSlashes"),e.removeDuplicateSlashes=G;function W(D){let T=[],C=[];for(let Z of D)N(Z)?T.push(Z):C.push(Z);return[T,C]}oe(W,"partitionAbsoluteAndRelative"),e.partitionAbsoluteAndRelative=W;function N(D){return r.isAbsolute(D)}oe(N,"isAbsolute"),e.isAbsolute=N}),zA=Se((e,r)=>{"use strict";var a=require("stream"),p=a.PassThrough,n=Array.prototype.slice;r.exports=c;function c(){let t=[],s=n.call(arguments),i=!1,l=s[s.length-1];l&&!Array.isArray(l)&&l.pipe==null?s.pop():l={};let u=l.end!==!1,h=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=p(l);function g(){for(let y=0,S=arguments.length;y<S;y++)t.push(o(arguments[y],l));return m(),this}oe(g,"addStream");function m(){if(i)return;i=!0;let y=t.shift();if(!y){process.nextTick(f);return}Array.isArray(y)||(y=[y]);let S=y.length+1;function E(){--S>0||(i=!1,m())}oe(E,"next");function b(_){function w(){_.removeListener("merge2UnpipeEnd",w),_.removeListener("end",w),h&&_.removeListener("error",O),E()}oe(w,"onend");function O(R){d.emit("error",R)}if(oe(O,"onerror"),_._readableState.endEmitted)return E();_.on("merge2UnpipeEnd",w),_.on("end",w),h&&_.on("error",O),_.pipe(d,{end:!1}),_.resume()}oe(b,"pipe");for(let _=0;_<y.length;_++)b(y[_]);E()}oe(m,"mergeStream");function f(){i=!1,d.emit("queueDrain"),u&&d.end()}return oe(f,"endStream"),d.setMaxListeners(0),d.add=g,d.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),s.length&&g.apply(null,s),d}oe(c,"merge2");function o(t,s){if(Array.isArray(t))for(let i=0,l=t.length;i<l;i++)t[i]=o(t[i],s);else{if(!t._readableState&&t.pipe&&(t=t.pipe(p(s))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}oe(o,"pauseStreams")}),qA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=zA();function a(n){let c=r(n);return n.forEach(o=>{o.once("error",t=>c.emit("error",t))}),c.once("close",()=>p(n)),c.once("end",()=>p(n)),c}oe(a,"merge"),e.merge=a;function p(n){n.forEach(c=>c.emit("close"))}oe(p,"propagateCloseEventToSources")}),KA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(p){return typeof p=="string"}oe(r,"isString"),e.isString=r;function a(p){return p===""}oe(a,"isEmpty"),e.isEmpty=a}),At=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=RA();e.array=r;var a=CA();e.errno=a;var p=IA();e.fs=p;var n=TA();e.path=n;var c=WA();e.pattern=c;var o=qA();e.stream=o;var t=KA();e.string=t}),JA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=At();function a(l,u){let h=p(l,u),d=p(u.ignore,u),g=c(h),m=o(h,d),f=g.filter(b=>r.pattern.isStaticPattern(b,u)),y=g.filter(b=>r.pattern.isDynamicPattern(b,u)),S=n(f,m,!1),E=n(y,m,!0);return S.concat(E)}oe(a,"generate"),e.generate=a;function p(l,u){let h=l;return u.braceExpansion&&(h=r.pattern.expandPatternsWithBraceExpansion(h)),u.baseNameMatch&&(h=h.map(d=>d.includes("/")?d:`**/${d}`)),h.map(d=>r.pattern.removeDuplicateSlashes(d))}oe(p,"processPatterns");function n(l,u,h){let d=[],g=r.pattern.getPatternsOutsideCurrentDirectory(l),m=r.pattern.getPatternsInsideCurrentDirectory(l),f=t(g),y=t(m);return d.push(...s(f,u,h)),"."in y?d.push(i(".",m,u,h)):d.push(...s(y,u,h)),d}oe(n,"convertPatternsToTasks"),e.convertPatternsToTasks=n;function c(l){return r.pattern.getPositivePatterns(l)}oe(c,"getPositivePatterns"),e.getPositivePatterns=c;function o(l,u){return r.pattern.getNegativePatterns(l).concat(u).map(r.pattern.convertToPositivePattern)}oe(o,"getNegativePatternsAsPositive"),e.getNegativePatternsAsPositive=o;function t(l){let u={};return l.reduce((h,d)=>{let g=r.pattern.getBaseDirectory(d);return g in h?h[g].push(d):h[g]=[d],h},u)}oe(t,"groupPatternsByBaseDirectory"),e.groupPatternsByBaseDirectory=t;function s(l,u,h){return Object.keys(l).map(d=>i(d,l[d],u,h))}oe(s,"convertPatternGroupsToTasks"),e.convertPatternGroupsToTasks=s;function i(l,u,h,d){return{dynamic:d,positive:u,negative:h,base:l,patterns:[].concat(u,h.map(r.pattern.convertToNegativePattern))}}oe(i,"convertPatternGroupToTask"),e.convertPatternGroupToTask=i}),ZA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(n,c,o){c.fs.lstat(n,(t,s)=>{if(t!==null){a(o,t);return}if(!s.isSymbolicLink()||!c.followSymbolicLink){p(o,s);return}c.fs.stat(n,(i,l)=>{if(i!==null){if(c.throwErrorOnBrokenSymbolicLink){a(o,i);return}p(o,s);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),p(o,l)})})}oe(r,"read"),e.read=r;function a(n,c){n(c)}oe(a,"callFailureCallback");function p(n,c){n(null,c)}oe(p,"callSuccessCallback")}),XA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(a,p){let n=p.fs.lstatSync(a);if(!n.isSymbolicLink()||!p.followSymbolicLink)return n;try{let c=p.fs.statSync(a);return p.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!p.throwErrorOnBrokenSymbolicLink)return n;throw c}}oe(r,"read"),e.read=r}),YA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function a(p){return p===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),p)}oe(a,"createFileSystemAdapter"),e.createFileSystemAdapter=a}),QA=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=YA(),a=class{static{oe(this,"Settings")}constructor(p={}){this._options=p,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(p,n){return p??n}};e.default=a}),rr=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=ZA(),a=XA(),p=QA();e.Settings=p.default;function n(t,s,i){if(typeof s=="function"){r.read(t,o(),s);return}r.read(t,o(s),i)}oe(n,"stat"),e.stat=n;function c(t,s){let i=o(s);return a.read(t,i)}oe(c,"statSync"),e.statSync=c;function o(t={}){return t instanceof p.default?t:new p.default(t)}oe(o,"getSettings")}),eR=Se((e,r)=>{var a;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(global):p=>(a||(a=Promise.resolve())).then(p).catch(n=>setTimeout(()=>{throw n},0))}),tR=Se((e,r)=>{r.exports=p;var a=eR();function p(n,c){let o,t,s,i=!0;Array.isArray(n)?(o=[],t=n.length):(s=Object.keys(n),o={},t=s.length);function l(h){function d(){c&&c(h,o),c=null}oe(d,"end"),i?a(d):d()}oe(l,"done");function u(h,d,g){o[h]=g,(--t===0||d)&&l(d)}oe(u,"each"),t?s?s.forEach(function(h){n[h](function(d,g){u(h,d,g)})}):n.forEach(function(h,d){h(function(g,m){u(d,g,m)})}):l(null),i=!1}oe(p,"runParallel")}),np=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var a=Number.parseInt(r[0],10),p=Number.parseInt(r[1],10),n=10,c=10,o=a>n,t=a===n&&p>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o||t}),rR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{static{oe(this,"DirentFromStats")}constructor(p,n){this.name=p,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function a(p,n){return new r(p,n)}oe(a,"createDirentFromStats"),e.createDirentFromStats=a}),op=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=rR();e.fs=r}),ap=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(a,p,n){return a.endsWith(n)?a+p:a+n+p}oe(r,"joinPathSegments"),e.joinPathSegments=r}),sR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=rr(),a=tR(),p=np(),n=op(),c=ap();function o(h,d,g){if(!d.stats&&p.IS_SUPPORT_READDIR_WITH_FILE_TYPES){t(h,d,g);return}i(h,d,g)}oe(o,"read"),e.read=o;function t(h,d,g){d.fs.readdir(h,{withFileTypes:!0},(m,f)=>{if(m!==null){l(g,m);return}let y=f.map(E=>({dirent:E,name:E.name,path:c.joinPathSegments(h,E.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){u(g,y);return}let S=y.map(E=>s(E,d));a(S,(E,b)=>{if(E!==null){l(g,E);return}u(g,b)})})}oe(t,"readdirWithFileTypes"),e.readdirWithFileTypes=t;function s(h,d){return g=>{if(!h.dirent.isSymbolicLink()){g(null,h);return}d.fs.stat(h.path,(m,f)=>{if(m!==null){if(d.throwErrorOnBrokenSymbolicLink){g(m);return}g(null,h);return}h.dirent=n.fs.createDirentFromStats(h.name,f),g(null,h)})}}oe(s,"makeRplTaskEntry");function i(h,d,g){d.fs.readdir(h,(m,f)=>{if(m!==null){l(g,m);return}let y=f.map(S=>{let E=c.joinPathSegments(h,S,d.pathSegmentSeparator);return b=>{r.stat(E,d.fsStatSettings,(_,w)=>{if(_!==null){b(_);return}let O={name:S,path:E,dirent:n.fs.createDirentFromStats(S,w)};d.stats&&(O.stats=w),b(null,O)})}});a(y,(S,E)=>{if(S!==null){l(g,S);return}u(g,E)})})}oe(i,"readdir"),e.readdir=i;function l(h,d){h(d)}oe(l,"callFailureCallback");function u(h,d){h(null,d)}oe(u,"callSuccessCallback")}),iR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=rr(),a=np(),p=op(),n=ap();function c(s,i){return!i.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES?o(s,i):t(s,i)}oe(c,"read"),e.read=c;function o(s,i){return i.fs.readdirSync(s,{withFileTypes:!0}).map(l=>{let u={dirent:l,name:l.name,path:n.joinPathSegments(s,l.name,i.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&i.followSymbolicLinks)try{let h=i.fs.statSync(u.path);u.dirent=p.fs.createDirentFromStats(u.name,h)}catch(h){if(i.throwErrorOnBrokenSymbolicLink)throw h}return u})}oe(o,"readdirWithFileTypes"),e.readdirWithFileTypes=o;function t(s,i){return i.fs.readdirSync(s).map(l=>{let u=n.joinPathSegments(s,l,i.pathSegmentSeparator),h=r.statSync(u,i.fsStatSettings),d={name:l,path:u,dirent:p.fs.createDirentFromStats(l,h)};return i.stats&&(d.stats=h),d})}oe(t,"readdir"),e.readdir=t}),nR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function a(p){return p===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),p)}oe(a,"createFileSystemAdapter"),e.createFileSystemAdapter=a}),oR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=rr(),p=nR(),n=class{static{oe(this,"Settings")}constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=p.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new a.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,o){return c??o}};e.default=n}),Vo=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=sR(),a=iR(),p=oR();e.Settings=p.default;function n(t,s,i){if(typeof s=="function"){r.read(t,o(),s);return}r.read(t,o(s),i)}oe(n,"scandir"),e.scandir=n;function c(t,s){let i=o(s);return a.read(t,i)}oe(c,"scandirSync"),e.scandirSync=c;function o(t={}){return t instanceof p.default?t:new p.default(t)}oe(o,"getSettings")}),aR=Se((e,r)=>{"use strict";function a(p){var n=new p,c=n;function o(){var s=n;return s.next?n=s.next:(n=new p,c=n),s.next=null,s}oe(o,"get");function t(s){c.next=s,c=s}return oe(t,"release"),{get:o,release:t}}oe(a,"reusify"),r.exports=a}),lR=Se((e,r)=>{"use strict";var a=aR();function p(t,s,i){if(typeof t=="function"&&(i=s,s=t,t=null),!(i>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=a(c),u=null,h=null,d=0,g=null,m={push:w,drain:n,saturated:n,pause:y,paused:!1,get concurrency(){return i},set concurrency(M){if(!(M>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(i=M,!m.paused)for(;u&&d<i;)d++,R()},running:f,resume:b,idle:_,length:S,getQueue:E,unshift:O,empty:n,kill:I,killAndDrain:P,error:L};return m;function f(){return d}function y(){m.paused=!0}function S(){for(var M=u,x=0;M;)M=M.next,x++;return x}function E(){for(var M=u,x=[];M;)x.push(M.value),M=M.next;return x}function b(){if(m.paused){if(m.paused=!1,u===null){d++,R();return}for(;u&&d<i;)d++,R()}}function _(){return d===0&&m.length()===0}function w(M,x){var j=l.get();j.context=t,j.release=R,j.value=M,j.callback=x||n,j.errorHandler=g,d>=i||m.paused?h?(h.next=j,h=j):(u=j,h=j,m.saturated()):(d++,s.call(t,j.value,j.worked))}function O(M,x){var j=l.get();j.context=t,j.release=R,j.value=M,j.callback=x||n,j.errorHandler=g,d>=i||m.paused?u?(j.next=u,u=j):(u=j,h=j,m.saturated()):(d++,s.call(t,j.value,j.worked))}function R(M){M&&l.release(M);var x=u;x&&d<=i?m.paused?d--:(h===u&&(h=null),u=x.next,x.next=null,s.call(t,x.value,x.worked),h===null&&m.empty()):--d===0&&m.drain()}function I(){u=null,h=null,m.drain=n}function P(){u=null,h=null,m.drain(),m.drain=n}function L(M){g=M}}oe(p,"fastqueue");function n(){}oe(n,"noop");function c(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var t=this;this.worked=oe(function(s,i){var l=t.callback,u=t.errorHandler,h=t.value;t.value=null,t.callback=n,t.errorHandler&&u(s,h),l.call(t.context,s,i),t.release(t)},"worked")}oe(c,"Task");function o(t,s,i){typeof t=="function"&&(i=s,s=t,t=null);function l(y,S){s.call(this,y).then(function(E){S(null,E)},S)}oe(l,"asyncWrapper");var u=p(t,l,i),h=u.push,d=u.unshift;return u.push=g,u.unshift=m,u.drained=f,u;function g(y){var S=new Promise(function(E,b){h(y,function(_,w){if(_){b(_);return}E(w)})});return S.catch(n),S}function m(y){var S=new Promise(function(E,b){d(y,function(_,w){if(_){b(_);return}E(w)})});return S.catch(n),S}function f(){var y=new Promise(function(S){process.nextTick(function(){if(u.idle())S();else{var E=u.drain;u.drain=function(){typeof E=="function"&&E(),S(),u.drain=E}}})});return y}}oe(o,"queueAsPromised"),r.exports=p,r.exports.promise=o}),Wo=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,o){return c.errorFilter===null?!0:!c.errorFilter(o)}oe(r,"isFatalError"),e.isFatalError=r;function a(c,o){return c===null||c(o)}oe(a,"isAppliedFilter"),e.isAppliedFilter=a;function p(c,o){return c.split(/[/\\]/).join(o)}oe(p,"replacePathSegmentSeparator"),e.replacePathSegmentSeparator=p;function n(c,o,t){return c===""?o:c.endsWith(t)?c+o:c+t+o}oe(n,"joinPathSegments"),e.joinPathSegments=n}),lp=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Wo(),a=class{static{oe(this,"Reader")}constructor(p,n){this._root=p,this._settings=n,this._root=r.replacePathSegmentSeparator(p,n.pathSegmentSeparator)}};e.default=a}),cp=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("events"),a=Vo(),p=lR(),n=Wo(),c=lp(),o=class extends c.default{static{oe(this,"AsyncReader")}constructor(t,s){super(t,s),this._settings=s,this._scandir=a.scandir,this._emitter=new r.EventEmitter,this._queue=p(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,s){let i={directory:t,base:s};this._queue.push(i,l=>{l!==null&&this._handleError(l)})}_worker(t,s){this._scandir(t.directory,this._settings.fsScandirSettings,(i,l)=>{if(i!==null){s(i,void 0);return}for(let u of l)this._handleEntry(u,t.base);s(null,void 0)})}_handleError(t){this._isDestroyed||!n.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,s){if(this._isDestroyed||this._isFatalError)return;let i=t.path;s!==void 0&&(t.path=n.joinPathSegments(s,t.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,s===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};e.default=o}),cR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=cp(),a=class{static{oe(this,"AsyncProvider")}constructor(c,o){this._root=c,this._settings=o,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(o=>{p(c,o)}),this._reader.onEntry(o=>{this._storage.push(o)}),this._reader.onEnd(()=>{n(c,this._storage)}),this._reader.read()}};e.default=a;function p(c,o){c(o)}oe(p,"callFailureCallback");function n(c,o){c(null,o)}oe(n,"callSuccessCallback")}),uR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=cp(),p=class{static{oe(this,"StreamProvider")}constructor(n,c){this._root=n,this._settings=c,this._reader=new a.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:oe(()=>{},"read"),destroy:oe(()=>{this._reader.isDestroyed||this._reader.destroy()},"destroy")})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=p}),hR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Vo(),a=Wo(),p=lp(),n=class extends p.default{static{oe(this,"SyncReader")}constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,o){this._queue.add({directory:c,base:o})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,o){try{let t=this._scandir(c,this._settings.fsScandirSettings);for(let s of t)this._handleEntry(s,o)}catch(t){this._handleError(t)}}_handleError(c){if(a.isFatalError(this._settings,c))throw c}_handleEntry(c,o){let t=c.path;o!==void 0&&(c.path=a.joinPathSegments(o,c.name,this._settings.pathSegmentSeparator)),a.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(t,o===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=n}),pR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=hR(),a=class{static{oe(this,"SyncProvider")}constructor(p,n){this._root=p,this._settings=n,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=a}),dR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=Vo(),p=class{static{oe(this,"Settings")}constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new a.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,c){return n??c}};e.default=p}),zo=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=cR(),a=uR(),p=pR(),n=dR();e.Settings=n.default;function c(i,l,u){if(typeof l=="function"){new r.default(i,s()).read(l);return}new r.default(i,s(l)).read(u)}oe(c,"walk"),e.walk=c;function o(i,l){let u=s(l);return new p.default(i,u).read()}oe(o,"walkSync"),e.walkSync=o;function t(i,l){let u=s(l);return new a.default(i,u).read()}oe(t,"walkStream"),e.walkStream=t;function s(i={}){return i instanceof n.default?i:new n.default(i)}oe(s,"getSettings")}),qo=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=rr(),p=At(),n=class{static{oe(this,"Reader")}constructor(c){this._settings=c,this._fsStatSettings=new a.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,o){let t={name:o,path:o,dirent:p.fs.createDirentFromStats(o,c)};return this._settings.stats&&(t.stats=c),t}_isFatalError(c){return!p.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=n}),up=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=rr(),p=zo(),n=qo(),c=class extends n.default{static{oe(this,"ReaderStream")}constructor(){super(...arguments),this._walkStream=p.walkStream,this._stat=a.stat}dynamic(o,t){return this._walkStream(o,t)}static(o,t){let s=o.map(this._getFullEntryPath,this),i=new r.PassThrough({objectMode:!0});i._write=(l,u,h)=>this._getEntry(s[l],o[l],t).then(d=>{d!==null&&t.entryFilter(d)&&i.push(d),l===s.length-1&&i.end(),h()}).catch(h);for(let l=0;l<s.length;l++)i.write(l);return i}_getEntry(o,t,s){return this._getStat(o).then(i=>this._makeEntry(i,t)).catch(i=>{if(s.errorFilter(i))return null;throw i})}_getStat(o){return new Promise((t,s)=>{this._stat(o,this._fsStatSettings,(i,l)=>i===null?t(l):s(i))})}};e.default=c}),fR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=zo(),a=qo(),p=up(),n=class extends a.default{static{oe(this,"ReaderAsync")}constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new p.default(this._settings)}dynamic(c,o){return new Promise((t,s)=>{this._walkAsync(c,o,(i,l)=>{i===null?t(l):s(i)})})}async static(c,o){let t=[],s=this._readerStream.static(c,o);return new Promise((i,l)=>{s.once("error",l),s.on("data",u=>t.push(u)),s.once("end",()=>i(t))})}};e.default=n}),gR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=At(),a=class{static{oe(this,"Matcher")}constructor(p,n,c){this._patterns=p,this._settings=n,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){for(let p of this._patterns){let n=this._getPatternSegments(p),c=this._splitSegmentsIntoSections(n);this._storage.push({complete:c.length<=1,pattern:p,segments:n,sections:c})}}_getPatternSegments(p){return r.pattern.getPatternParts(p,this._micromatchOptions).map(n=>r.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:r.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(p){return r.array.splitWhen(p,n=>n.dynamic&&r.pattern.hasGlobStar(n.pattern))}};e.default=a}),mR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=gR(),a=class extends r.default{static{oe(this,"PartialMatcher")}match(p){let n=p.split("/"),c=n.length,o=this._storage.filter(t=>!t.complete||t.segments.length>c);for(let t of o){let s=t.sections[0];if(!t.complete&&c>s.length||n.every((i,l)=>{let u=t.segments[l];return!!(u.dynamic&&u.patternRe.test(i)||!u.dynamic&&u.pattern===i)}))return!0}return!1}};e.default=a}),yR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=At(),a=mR(),p=class{static{oe(this,"DeepFilter")}constructor(n,c){this._settings=n,this._micromatchOptions=c}getFilter(n,c,o){let t=this._getMatcher(c),s=this._getNegativePatternsRe(o);return i=>this._filter(n,i,t,s)}_getMatcher(n){return new a.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let c=n.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(n,c,o,t){if(this._isSkippedByDeep(n,c.path)||this._isSkippedSymbolicLink(c))return!1;let s=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(s,o)?!1:this._isSkippedByNegativePatterns(s,t)}_isSkippedByDeep(n,c){return this._settings.deep===1/0?!1:this._getEntryLevel(n,c)>=this._settings.deep}_getEntryLevel(n,c){let o=c.split("/").length;if(n==="")return o;let t=n.split("/").length;return o-t}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,c){return!this._settings.baseNameMatch&&!c.match(n)}_isSkippedByNegativePatterns(n,c){return!r.pattern.matchAny(n,c)}};e.default=p}),vR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=At(),a=class{static{oe(this,"EntryFilter")}constructor(p,n){this._settings=p,this._micromatchOptions=n,this.index=new Map}getFilter(p,n){let[c,o]=r.pattern.partitionAbsoluteAndRelative(n),t={positive:{all:r.pattern.convertPatternsToRe(p,this._micromatchOptions)},negative:{absolute:r.pattern.convertPatternsToRe(c,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:r.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,t)}_filter(p,n){let c=r.path.removeLeadingDotSegment(p.path);if(this._settings.unique&&this._isDuplicateEntry(c)||this._onlyFileFilter(p)||this._onlyDirectoryFilter(p))return!1;let o=this._isMatchToPatternsSet(c,n,p.dirent.isDirectory());return this._settings.unique&&o&&this._createIndexRecord(c),o}_isDuplicateEntry(p){return this.index.has(p)}_createIndexRecord(p){this.index.set(p,void 0)}_onlyFileFilter(p){return this._settings.onlyFiles&&!p.dirent.isFile()}_onlyDirectoryFilter(p){return this._settings.onlyDirectories&&!p.dirent.isDirectory()}_isMatchToPatternsSet(p,n,c){return!(!this._isMatchToPatterns(p,n.positive.all,c)||this._isMatchToPatterns(p,n.negative.relative,c)||this._isMatchToAbsoluteNegative(p,n.negative.absolute,c))}_isMatchToAbsoluteNegative(p,n,c){if(n.length===0)return!1;let o=r.path.makeAbsolute(this._settings.cwd,p);return this._isMatchToPatterns(o,n,c)}_isMatchToPatterns(p,n,c){if(n.length===0)return!1;let o=r.pattern.matchAny(p,n);return!o&&c?r.pattern.matchAny(p+"/",n):o}};e.default=a}),SR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=At(),a=class{static{oe(this,"ErrorFilter")}constructor(p){this._settings=p}getFilter(){return p=>this._isNonFatalError(p)}_isNonFatalError(p){return r.errno.isEnoentCodeError(p)||this._settings.suppressErrors}};e.default=a}),ER=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=At(),a=class{static{oe(this,"EntryTransformer")}constructor(p){this._settings=p}getTransformer(){return p=>this._transform(p)}_transform(p){let n=p.path;return this._settings.absolute&&(n=r.path.makeAbsolute(this._settings.cwd,n),n=r.path.unixify(n)),this._settings.markDirectories&&p.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},p),{path:n}):n}};e.default=a}),Ko=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=yR(),p=vR(),n=SR(),c=ER(),o=class{static{oe(this,"Provider")}constructor(t){this._settings=t,this.errorFilter=new n.default(this._settings),this.entryFilter=new p.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new a.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let s=t.base==="."?"":t.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=o}),bR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=fR(),a=Ko(),p=class extends a.default{static{oe(this,"ProviderAsync")}constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(n){let c=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(c,n,o)).map(t=>o.transform(t))}api(n,c,o){return c.dynamic?this._reader.dynamic(n,o):this._reader.static(c.patterns,o)}};e.default=p}),_R=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=up(),p=Ko(),n=class extends p.default{static{oe(this,"ProviderStream")}constructor(){super(...arguments),this._reader=new a.default(this._settings)}read(c){let o=this._getRootDirectory(c),t=this._getReaderOptions(c),s=this.api(o,c,t),i=new r.Readable({objectMode:!0,read:oe(()=>{},"read")});return s.once("error",l=>i.emit("error",l)).on("data",l=>i.emit("data",t.transform(l))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(c,o,t){return o.dynamic?this._reader.dynamic(c,t):this._reader.static(o.patterns,t)}};e.default=n}),wR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=rr(),a=zo(),p=qo(),n=class extends p.default{static{oe(this,"ReaderSync")}constructor(){super(...arguments),this._walkSync=a.walkSync,this._statSync=r.statSync}dynamic(c,o){return this._walkSync(c,o)}static(c,o){let t=[];for(let s of c){let i=this._getFullEntryPath(s),l=this._getEntry(i,s,o);l===null||!o.entryFilter(l)||t.push(l)}return t}_getEntry(c,o,t){try{let s=this._getStat(c);return this._makeEntry(s,o)}catch(s){if(t.errorFilter(s))return null;throw s}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=n}),OR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=wR(),a=Ko(),p=class extends a.default{static{oe(this,"ProviderSync")}constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(n){let c=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(c,n,o).map(o.transform)}api(n,c,o){return c.dynamic?this._reader.dynamic(n,o):this._reader.static(c.patterns,o)}};e.default=p}),AR=Se(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=require("fs"),a=require("os"),p=Math.max(a.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var n=class{static{oe(this,"Settings")}constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,p),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(c,o){return c===void 0?o:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=n}),hp=JA(),RR=bR(),CR=_R(),IR=OR(),Fo=AR(),tt=At();async function zs(e,r){et(e);let a=qs(e,RR.default,r),p=await Promise.all(a);return tt.array.flatten(p)}oe(zs,"FastGlob");(function(e){e.glob=e,e.globSync=r,e.globStream=a,e.async=e;function r(i,l){et(i);let u=qs(i,IR.default,l);return tt.array.flatten(u)}oe(r,"sync"),e.sync=r;function a(i,l){et(i);let u=qs(i,CR.default,l);return tt.stream.merge(u)}oe(a,"stream"),e.stream=a;function p(i,l){et(i);let u=[].concat(i),h=new Fo.default(l);return hp.generate(u,h)}oe(p,"generateTasks"),e.generateTasks=p;function n(i,l){et(i);let u=new Fo.default(l);return tt.pattern.isDynamicPattern(i,u)}oe(n,"isDynamicPattern"),e.isDynamicPattern=n;function c(i){return et(i),tt.path.escape(i)}oe(c,"escapePath"),e.escapePath=c;function o(i){return et(i),tt.path.convertPathToPattern(i)}oe(o,"convertPathToPattern"),e.convertPathToPattern=o;let t;(function(i){function l(h){return et(h),tt.path.escapePosixPath(h)}oe(l,"escapePath"),i.escapePath=l;function u(h){return et(h),tt.path.convertPosixPathToPattern(h)}oe(u,"convertPathToPattern"),i.convertPathToPattern=u})(t=e.posix||(e.posix={}));let s;(function(i){function l(h){return et(h),tt.path.escapeWindowsPath(h)}oe(l,"escapePath"),i.escapePath=l;function u(h){return et(h),tt.path.convertWindowsPathToPattern(h)}oe(u,"convertPathToPattern"),i.convertPathToPattern=u})(s=e.win32||(e.win32={}))})(zs||(zs={}));function qs(e,r,a){let p=[].concat(e),n=new Fo.default(a),c=hp.generate(p,n),o=new r(n);return c.map(o.read,o)}oe(qs,"getWorks");function et(e){if(![].concat(e).every(r=>tt.string.isString(r)&&!tt.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}oe(et,"assertPatternsInput");pp.exports=zs;});var kt=ge(($2,gp)=>{var Jo=Object.defineProperty,TR=Object.getOwnPropertyDescriptor,PR=Object.getOwnPropertyNames,xR=Object.prototype.hasOwnProperty,NR=(e,r)=>{for(var a in r)Jo(e,a,{get:r[a],enumerable:!0})},kR=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of PR(r))!xR.call(e,n)&&n!==a&&Jo(e,n,{get:()=>r[n],enumerable:!(p=TR(r,n))||p.enumerable});return e},LR=e=>kR(Jo({},"__esModule",{value:!0}),e),fp={};NR(fp,{CACHE_DIR:()=>XR,CACHE_TTL_DIR:()=>YR,CHANGELOG_MD:()=>FR,DOT_GITHUB:()=>JR,DOT_GIT_DIR:()=>KR,DOT_PACKAGE_LOCK_JSON:()=>zR,DOT_SOCKET_DIR:()=>ZR,ESLINT_CONFIG_JS:()=>VR,EXTENSIONS:()=>bC,EXTENSIONS_JSON:()=>GR,EXT_CJS:()=>tC,EXT_CMD:()=>rC,EXT_CTS:()=>sC,EXT_DTS:()=>iC,EXT_JS:()=>nC,EXT_JSON:()=>oC,EXT_LOCK:()=>aC,EXT_LOCKB:()=>lC,EXT_MD:()=>cC,EXT_MJS:()=>uC,EXT_MTS:()=>hC,EXT_PS1:()=>pC,EXT_YAML:()=>dC,EXT_YML:()=>fC,GITIGNORE:()=>WR,LICENSE:()=>jR,LICENSE_GLOB:()=>gC,LICENSE_GLOB_RECURSIVE:()=>mC,LICENSE_MD:()=>$R,LICENSE_ORIGINAL:()=>BR,LICENSE_ORIGINAL_GLOB:()=>yC,LICENSE_ORIGINAL_GLOB_RECURSIVE:()=>vC,MANIFEST_JSON:()=>HR,NODE_MODULES:()=>qR,NODE_MODULES_GLOB_RECURSIVE:()=>QR,PACKAGE_JSON:()=>DR,README_GLOB:()=>SC,README_GLOB_RECURSIVE:()=>EC,README_MD:()=>UR,ROLLUP_EXTERNAL_SUFFIX:()=>_C,SLASH_NODE_MODULES_SLASH:()=>eC,TSCONFIG_JSON:()=>MR});gp.exports=LR(fp);var DR="package.json",MR="tsconfig.json",jR="LICENSE",$R="LICENSE.md",BR="LICENSE.original",UR="README.md",FR="CHANGELOG.md",HR="manifest.json",GR="extensions.json",VR="eslint.config.js",WR=".gitignore",zR=".package-lock.json",qR="node_modules",KR=".git",JR=".github",ZR=".socket",XR="cache",YR="ttl",QR="**/node_modules",eC="/node_modules/",tC=".cjs",rC=".cmd",sC=".cts",iC=".d.ts",nC=".js",oC=".json",aC=".lock",lC=".lockb",cC=".md",uC=".mjs",hC=".mts",pC=".ps1",dC=".yaml",fC=".yml",gC="LICEN[CS]E{[.-]*,}",mC="**/LICEN[CS]E{[.-]*,}",yC="*.original{.*,}",vC="**/*.original{.*,}",SC="README{.*,}",EC="**/README{.*,}",bC="extensions",_C="__rollup_external"});var Ep=ge((B2,Sp)=>{var Yo=Object.defineProperty,wC=Object.getOwnPropertyDescriptor,OC=Object.getOwnPropertyNames,AC=Object.prototype.hasOwnProperty,RC=(e,r)=>{for(var a in r)Yo(e,a,{get:r[a],enumerable:!0})},CC=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of OC(r))!AC.call(e,n)&&n!==a&&Yo(e,n,{get:()=>r[n],enumerable:!(p=wC(r,n))||p.enumerable});return e},IC=e=>CC(Yo({},"__esModule",{value:!0}),e),yp={};RC(yp,{defaultIgnore:()=>vp,getGlobMatcher:()=>kC,globStreamLicenses:()=>NC});Sp.exports=IC(yp);var TC=mr(),vp=(0,TC.objectFreeze)(["**/.git","**/.npmrc","**/node_modules","**/.DS_Store","**/.gitignore","**/.hg","**/.lock-wscript","**/.npmignore","**/.svn","**/.wafpickle-*","**/.*.swp","**/._*/**","**/archived-packages/**","**/build/config.gypi","**/CVS","**/npm-debug.log","**/*.orig","**/.env","**/.eslintcache","**/.nvm","**/.tap","**/.vscode","**/*.tsbuildinfo","**/Thumbs.db","**/bower_components"]),Zo;function PC(){return Zo===void 0&&(Zo=sp()),Zo}var Xo;function xC(){if(Xo===void 0){let e=dp();Xo=e.default||e}return Xo}function NC(e,r){let{ignore:a,ignoreOriginals:p,recursive:n,...c}={__proto__:null,...r},o=[...Array.isArray(a)?a:vp,"**/*.{cjs,cts,js,json,mjs,mts,ts}"];return p&&o.push(kt().LICENSE_ORIGINAL_GLOB_RECURSIVE),xC().globStream([n?kt().LICENSE_GLOB_RECURSIVE:kt().LICENSE_GLOB],{__proto__:null,absolute:!0,caseSensitiveMatch:!1,cwd:e,...c,...o?{ignore:o}:{}})}var mp=new Map;function kC(e,r){let a=Array.isArray(e)?e:[e],p=JSON.stringify({patterns:a,options:r}),n=mp.get(p);if(n)return n;let c=a.filter(i=>!i.startsWith("!")),o=a.filter(i=>i.startsWith("!")).map(i=>i.slice(1)),t=PC(),s={dot:!0,nocase:!0,...r,...o.length>0?{ignore:o}:{}};return n=t(c.length>0?c:a,s),mp.set(p,n),n}});var wp=ge((U2,_p)=>{var Qo=Object.defineProperty,LC=Object.getOwnPropertyDescriptor,DC=Object.getOwnPropertyNames,MC=Object.prototype.hasOwnProperty,jC=(e,r)=>{for(var a in r)Qo(e,a,{get:r[a],enumerable:!0})},$C=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of DC(r))!MC.call(e,n)&&n!==a&&Qo(e,n,{get:()=>r[n],enumerable:!(p=LC(r,n))||p.enumerable});return e},BC=e=>$C(Qo({},"__esModule",{value:!0}),e),bp={};jC(bp,{isJsonPrimitive:()=>GC,jsonParse:()=>VC});_p.exports=BC(bp);var UC=yr(),FC=JSON.parse;function HC(e){if(!e||typeof e!="object")return!1;let r=e;if(typeof r.length!="number"||typeof r.copy!="function"||typeof r.slice!="function"||typeof r.length=="number"&&r.length>0&&typeof r[0]!="number")return!1;let a=e.constructor;return!!(typeof a?.isBuffer=="function"&&a.isBuffer(e))}function GC(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"}function VC(e,r){let{filepath:a,reviver:p,throws:n}={__proto__:null,...r},c=n===void 0||!!n,o=HC(e)?e.toString("utf8"):e;try{return FC((0,UC.stripBom)(o),p)}catch(t){if(c){let s=t;throw s&&typeof a=="string"&&(s.message=`${a}: ${s.message}`),s}}}});var Ys=ge((F2,Tp)=>{var na=Object.defineProperty,WC=Object.getOwnPropertyDescriptor,zC=Object.getOwnPropertyNames,qC=Object.prototype.hasOwnProperty,KC=(e,r)=>{for(var a in r)na(e,a,{get:r[a],enumerable:!0})},JC=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of zC(r))!qC.call(e,n)&&n!==a&&na(e,n,{get:()=>r[n],enumerable:!(p=WC(r,n))||p.enumerable});return e},ZC=e=>JC(na({},"__esModule",{value:!0}),e),Rp={};KC(Rp,{isAbsolute:()=>Xs,isNodeModules:()=>i1,isPath:()=>n1,isRelative:()=>o1,normalizePath:()=>oa,pathLikeToString:()=>Rt,relativeResolve:()=>u1,splitPath:()=>a1,trimLeadingDotSlash:()=>l1});Tp.exports=ZC(Rp);var Zs=ko(),Op=yr(),Cp=92,XC=58,Ip=47,YC=97,QC=122,ra=65,sa=90,ia=/[/\\]/,e1=/(?:^|[/\\])node_modules(?:[/\\]|$)/;function Fr(e){return e===Ip||e===Cp}function t1(e){return e>=ra&&e<=sa||e>=YC&&e<=QC}var ea;function r1(){return ea===void 0&&(ea=require("node:buffer")),ea}var ta;function s1(){return ta===void 0&&(ta=require("node:url")),ta}function i1(e){let r=Rt(e);return e1.test(r)}function Xs(e){let r=Rt(e),{length:a}=r;if(a===0)return!1;let p=r.charCodeAt(0);return!!(p===Ip||p===Cp||Zs.WIN32&&a>2&&t1(p)&&r.charCodeAt(1)===XC&&Fr(r.charCodeAt(2)))}function n1(e){let r=Rt(e);if(typeof r!="string"||r.length===0||/^[a-z][a-z0-9+.-]+:/i.test(r))return!1;if(r==="."||r===".."||Xs(r))return!0;if(r.includes("/")||r.includes("\\")){if(r.startsWith("@")&&!r.startsWith("@/")){let a=r.split("/");if(a.length<=2&&!a[1]?.includes("\\"))return!1}return!0}return!1}function o1(e){let r=Rt(e);return typeof r!="string"?!1:r.length===0?!0:!Xs(r)}function oa(e){let r=Rt(e),{length:a}=r;if(a===0)return".";if(a<2)return a===1&&r.charCodeAt(0)===92?"/":r;let p=0,n=0,c="";if(a>4&&r.charCodeAt(3)===92){let u=r.charCodeAt(2);(u===63||u===46)&&r.charCodeAt(0)===92&&r.charCodeAt(1)===92&&(n=2,c="//")}if(n===0)if(a>2&&(r.charCodeAt(0)===92&&r.charCodeAt(1)===92&&r.charCodeAt(2)!==92||r.charCodeAt(0)===47&&r.charCodeAt(1)===47&&r.charCodeAt(2)!==47)){let u=-1,h=!1,d=2;for(;d<a&&(r.charCodeAt(d)===47||r.charCodeAt(d)===92);)d++;for(;d<a;){let g=r.charCodeAt(d);if(g===47||g===92){u=d;break}d++}if(u>2){for(d=u;d<a&&(r.charCodeAt(d)===47||r.charCodeAt(d)===92);)d++;d<a&&(h=!0)}if(u>2&&h)n=2,c="//";else{for(p=r.charCodeAt(n);p===47||p===92;)n+=1,p=r.charCodeAt(n);n&&(c="/")}}else{for(p=r.charCodeAt(n);p===47||p===92;)n+=1,p=r.charCodeAt(n);n&&(c="/")}let o=(0,Op.search)(r,ia,{fromIndex:n});if(o===-1){let u=r.slice(n);return u==="."||u.length===0?c||".":u===".."?c?c.slice(0,-1)||"/":"..":c+u}let t="",s=0,i=0;for(;o!==-1;){let u=r.slice(n,o);if(u.length>0&&u!==".")if(u==="..")if(s>0){let h=t.lastIndexOf("/");if(h===-1)t="",s=0,i>0&&!c&&(t="..",i=1);else{let d=h+1;t.slice(d)===".."?(t=`${t}/${u}`,i+=1):(t=t.slice(0,h),s-=1)}}else c||(t=t+(t.length===0?"":"/")+u,i+=1);else t=t+(t.length===0?"":"/")+u,s+=1;for(n=o+1,p=r.charCodeAt(n);p===47||p===92;)n+=1,p=r.charCodeAt(n);o=(0,Op.search)(r,ia,{fromIndex:n})}let l=r.slice(n);if(l.length>0&&l!==".")if(l==="..")if(s>0){let u=t.lastIndexOf("/");if(u===-1)t="",s=0,i>0&&!c&&(t="..",i=1);else{let h=u+1;t.slice(h)===".."?(t=`${t}/${l}`,i+=1):(t=t.slice(0,u),s-=1)}}else c||(t=t+(t.length===0?"":"/")+l,i+=1);else t=t+(t.length===0?"":"/")+l,s+=1;return t.length===0?c||".":c+t}function Rt(e){if(e==null)return"";if(typeof e=="string")return e;let{Buffer:r}=r1();if(r.isBuffer(e))return e.toString("utf8");let a=s1();if(e instanceof URL)try{return a.fileURLToPath(e)}catch{let p=e.pathname,n=decodeURIComponent(p);if(Zs.WIN32&&n.startsWith("/")){let c=n.charCodeAt(1)|32;if(!(n.length>=3&&c>=97&&c<=122&&n.charAt(2)===":"))return n}return n}return String(e)}function a1(e){let r=Rt(e);return r===""?[]:r.split(ia)}function l1(e){let r=Rt(e);return r.startsWith("./")||r.startsWith(".\\")?r.slice(2):r}function Ap(...e){let r="",a=!1;for(let p=e.length-1;p>=0&&!a;p-=1){let n=e[p];typeof n!="string"||n.length===0||(r=n+(r.length===0?"":`/${r}`),a=Xs(n))}return a||(r=require("node:process").cwd()+(r.length===0?"":`/${r}`)),oa(r)}function c1(e,r){if(e===r)return"";let a=Ap(e),p=Ap(r);if(a===p)return"";if(Zs.WIN32){let d=a.toLowerCase(),g=p.toLowerCase();if(d===g)return""}let n=1,c=a.length,o=c-n,t=1,s=p.length-t,i=o<s?o:s,l=-1,u=0;for(;u<i;u+=1){let d=a.charCodeAt(n+u),g=p.charCodeAt(t+u);if(Zs.WIN32&&(d>=ra&&d<=sa&&(d+=32),g>=ra&&g<=sa&&(g+=32)),d!==g)break;Fr(a.charCodeAt(n+u))&&(l=u)}if(u===i){if(s>i){let d=p.charCodeAt(t+u);if(Fr(d))return p.slice(t+u+1);if(u===0)return p.slice(t+u)}else if(o>i){let d=a.charCodeAt(n+u);Fr(d)?l=u:u===0&&(l=0)}}let h="";for(u=n+l+1;u<=c;u+=1){let d=a.charCodeAt(u);(u===c||Fr(d))&&(h+=h.length===0?"..":"/..")}return h+p.slice(t+l)}function u1(e,r){let a=c1(e,r);return a===""?"":oa(a)}});var la=ge((H2,Np)=>{var aa=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,p1=Object.getOwnPropertyNames,d1=Object.prototype.hasOwnProperty,f1=(e,r)=>{for(var a in r)aa(e,a,{get:r[a],enumerable:!0})},g1=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of p1(r))!d1.call(e,n)&&n!==a&&aa(e,n,{get:()=>r[n],enumerable:!(p=h1(r,n))||p.enumerable});return e},m1=e=>g1(aa({},"__esModule",{value:!0}),e),Pp={};f1(Pp,{clearPath:()=>y1,getPathValue:()=>v1,hasOverride:()=>S1,invalidateCaches:()=>ei,registerCacheInvalidation:()=>E1,resetPaths:()=>b1,setPath:()=>_1});Np.exports=m1(Pp);var sr=new Map,Qs=new Map,xp=[];function y1(e){sr.delete(e),ei()}function v1(e,r){if(sr.has(e))return sr.get(e);if(Qs.has(e))return Qs.get(e);let a=r();return Qs.set(e,a),a}function S1(e){return sr.has(e)}function ei(){Qs.clear();for(let e of xp)try{e()}catch{}}function E1(e){xp.push(e)}function b1(){sr.clear(),ei()}function _1(e,r){sr.set(e,r),ei()}});var Dp=ge((G2,Lp)=>{var ca=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,O1=Object.getOwnPropertyNames,A1=Object.prototype.hasOwnProperty,R1=(e,r)=>{for(var a in r)ca(e,a,{get:r[a],enumerable:!0})},C1=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of O1(r))!A1.call(e,n)&&n!==a&&ca(e,n,{get:()=>r[n],enumerable:!(p=w1(r,n))||p.enumerable});return e},I1=e=>C1(ca({},"__esModule",{value:!0}),e),kp={};R1(kp,{getHome:()=>P1});Lp.exports=I1(kp);var T1=$r();function P1(){return(0,T1.getEnvValue)("HOME")}});var $p=ge((V2,jp)=>{var ua=Object.defineProperty,x1=Object.getOwnPropertyDescriptor,N1=Object.getOwnPropertyNames,k1=Object.prototype.hasOwnProperty,L1=(e,r)=>{for(var a in r)ua(e,a,{get:r[a],enumerable:!0})},D1=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of N1(r))!k1.call(e,n)&&n!==a&&ua(e,n,{get:()=>r[n],enumerable:!(p=x1(r,n))||p.enumerable});return e},M1=e=>D1(ua({},"__esModule",{value:!0}),e),Mp={};L1(Mp,{envAsBoolean:()=>j1,envAsNumber:()=>$1,envAsString:()=>B1});jp.exports=M1(Mp);function j1(e){if(!e)return!1;let r=e.toLowerCase();return r==="true"||r==="1"||r==="yes"}function $1(e){if(!e)return 0;let r=Number(e);return Number.isNaN(r)?0:r}function B1(e){return e||""}});var Fp=ge((W2,Up)=>{var ha=Object.defineProperty,U1=Object.getOwnPropertyDescriptor,F1=Object.getOwnPropertyNames,H1=Object.prototype.hasOwnProperty,G1=(e,r)=>{for(var a in r)ha(e,a,{get:r[a],enumerable:!0})},V1=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of F1(r))!H1.call(e,n)&&n!==a&&ha(e,n,{get:()=>r[n],enumerable:!(p=U1(r,n))||p.enumerable});return e},W1=e=>V1(ha({},"__esModule",{value:!0}),e),Bp={};G1(Bp,{getSocketAcceptRisks:()=>z1,getSocketApiBaseUrl:()=>q1,getSocketApiProxy:()=>K1,getSocketApiTimeout:()=>J1,getSocketApiToken:()=>Z1,getSocketCacacheDir:()=>X1,getSocketConfig:()=>Y1,getSocketDebug:()=>Q1,getSocketDlxDirEnv:()=>eI,getSocketHome:()=>tI,getSocketNoApiToken:()=>rI,getSocketNpmRegistry:()=>sI,getSocketOrgSlug:()=>iI,getSocketRegistryUrl:()=>nI,getSocketViewAllRisks:()=>oI});Up.exports=W1(Bp);var ti=$p(),Ve=$r();function z1(){return(0,ti.envAsBoolean)((0,Ve.getEnvValue)("SOCKET_ACCEPT_RISKS"))}function q1(){return(0,Ve.getEnvValue)("SOCKET_API_BASE_URL")}function K1(){return(0,Ve.getEnvValue)("SOCKET_API_PROXY")}function J1(){return(0,ti.envAsNumber)((0,Ve.getEnvValue)("SOCKET_API_TIMEOUT"))}function Z1(){return(0,Ve.getEnvValue)("SOCKET_API_TOKEN")}function X1(){return(0,Ve.getEnvValue)("SOCKET_CACACHE_DIR")}function Y1(){return(0,Ve.getEnvValue)("SOCKET_CONFIG")}function Q1(){return(0,Ve.getEnvValue)("SOCKET_DEBUG")}function eI(){return(0,Ve.getEnvValue)("SOCKET_DLX_DIR")}function tI(){return(0,Ve.getEnvValue)("SOCKET_HOME")}function rI(){return(0,ti.envAsBoolean)((0,Ve.getEnvValue)("SOCKET_NO_API_TOKEN"))}function sI(){return(0,Ve.getEnvValue)("SOCKET_NPM_REGISTRY")}function iI(){return(0,Ve.getEnvValue)("SOCKET_ORG_SLUG")}function nI(){return(0,Ve.getEnvValue)("SOCKET_REGISTRY_URL")}function oI(){return(0,ti.envAsBoolean)((0,Ve.getEnvValue)("SOCKET_VIEW_ALL_RISKS"))}});var Vp=ge((z2,Gp)=>{var pa=Object.defineProperty,aI=Object.getOwnPropertyDescriptor,lI=Object.getOwnPropertyNames,cI=Object.prototype.hasOwnProperty,uI=(e,r)=>{for(var a in r)pa(e,a,{get:r[a],enumerable:!0})},hI=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of lI(r))!cI.call(e,n)&&n!==a&&pa(e,n,{get:()=>r[n],enumerable:!(p=aI(r,n))||p.enumerable});return e},pI=e=>hI(pa({},"__esModule",{value:!0}),e),Hp={};uI(Hp,{getAppdata:()=>dI,getComspec:()=>mI,getLocalappdata:()=>fI,getUserprofile:()=>gI});Gp.exports=pI(Hp);var ri=$r();function dI(){return(0,ri.getEnvValue)("APPDATA")}function fI(){return(0,ri.getEnvValue)("LOCALAPPDATA")}function gI(){return(0,ri.getEnvValue)("USERPROFILE")}function mI(){return(0,ri.getEnvValue)("COMSPEC")}});var Ct=ge((q2,qp)=>{var da=Object.defineProperty,yI=Object.getOwnPropertyDescriptor,vI=Object.getOwnPropertyNames,SI=Object.prototype.hasOwnProperty,EI=(e,r)=>{for(var a in r)da(e,a,{get:r[a],enumerable:!0})},bI=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of vI(r))!SI.call(e,n)&&n!==a&&da(e,n,{get:()=>r[n],enumerable:!(p=yI(r,n))||p.enumerable});return e},_I=e=>bI(da({},"__esModule",{value:!0}),e),Wp={};EI(Wp,{CACHE_SOCKET_API_DIR:()=>$I,REGISTRY:()=>BI,REGISTRY_SCOPE_DELIMITER:()=>UI,SOCKET_API_BASE_URL:()=>wI,SOCKET_APP_PREFIX:()=>MI,SOCKET_CLI_APP_NAME:()=>NI,SOCKET_DLX_APP_NAME:()=>kI,SOCKET_FIREWALL_APP_NAME:()=>LI,SOCKET_GITHUB_ORG:()=>II,SOCKET_IPC_HANDSHAKE:()=>jI,SOCKET_OVERRIDE_SCOPE:()=>CI,SOCKET_PUBLIC_API_KEY:()=>zp,SOCKET_PUBLIC_API_TOKEN:()=>OI,SOCKET_REGISTRY_APP_NAME:()=>DI,SOCKET_REGISTRY_NPM_ORG:()=>xI,SOCKET_REGISTRY_PACKAGE_NAME:()=>PI,SOCKET_REGISTRY_REPO_NAME:()=>TI,SOCKET_REGISTRY_SCOPE:()=>AI,SOCKET_SECURITY_SCOPE:()=>RI});qp.exports=_I(Wp);var wI="https://api.socket.dev/v0",zp="sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api",OI=zp,AI="@socketregistry",RI="@socketsecurity",CI="@socketoverride",II="SocketDev",TI="socket-registry",PI="@socketsecurity/registry",xI="socketregistry",NI="socket",kI="dlx",LI="sfw",DI="registry",MI="_",jI="SOCKET_IPC_HANDSHAKE",$I="socket-api",BI="registry",UI="__"});var Zp=ge((K2,Jp)=>{var fa=Object.defineProperty,FI=Object.getOwnPropertyDescriptor,HI=Object.getOwnPropertyNames,GI=Object.prototype.hasOwnProperty,VI=(e,r)=>{for(var a in r)fa(e,a,{get:r[a],enumerable:!0})},WI=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of HI(r))!GI.call(e,n)&&n!==a&&fa(e,n,{get:()=>r[n],enumerable:!(p=FI(r,n))||p.enumerable});return e},zI=e=>WI(fa({},"__esModule",{value:!0}),e),Kp={};VI(Kp,{CACHE_GITHUB_DIR:()=>KI,GITHUB_API_BASE_URL:()=>qI});Jp.exports=zI(Kp);var qI="https://api.github.com",KI="github"});var ma=ge((J2,od)=>{var JI=Object.create,ni=Object.defineProperty,ZI=Object.getOwnPropertyDescriptor,XI=Object.getOwnPropertyNames,YI=Object.getPrototypeOf,QI=Object.prototype.hasOwnProperty,eT=(e,r)=>{for(var a in r)ni(e,a,{get:r[a],enumerable:!0})},Xp=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of XI(r))!QI.call(e,n)&&n!==a&&ni(e,n,{get:()=>r[n],enumerable:!(p=ZI(r,n))||p.enumerable});return e},Yp=(e,r,a)=>(a=e!=null?JI(YI(e)):{},Xp(r||!e||!e.__esModule?ni(a,"default",{value:e,enumerable:!0}):a,e)),tT=e=>Xp(ni({},"__esModule",{value:!0}),e),Qp={};eT(Qp,{getOsHomeDir:()=>td,getOsTmpDir:()=>iT,getSocketAppCacheDir:()=>rd,getSocketAppCacheTtlDir:()=>sd,getSocketAppDir:()=>oi,getSocketCacacheDir:()=>oT,getSocketCliDir:()=>lT,getSocketDlxDir:()=>aT,getSocketHomePath:()=>nT,getSocketRegistryDir:()=>cT,getSocketRegistryGithubCacheDir:()=>uT,getSocketUserDir:()=>Gr,getUserHomeDir:()=>id,invalidateCache:()=>nd});od.exports=tT(Qp);var ed=Yp(require("node:os")),Lt=Yp(require("node:path")),rT=Dp(),ii=Fp(),sT=Vp(),Et=Ys(),ga=la();function td(){return(0,ga.getPathValue)("homedir",()=>ed.homedir())}function iT(){return(0,ga.getPathValue)("tmpdir",()=>ed.tmpdir())}function nT(){return Gr()}var si;function Gr(){return si===void 0&&(si=(0,Et.normalizePath)(Lt.join(id(),kt().DOT_SOCKET_DIR))),si}function oi(e){return(0,Et.normalizePath)(Lt.join(Gr(),`${Ct().SOCKET_APP_PREFIX}${e}`))}var Hr;function oT(){return Hr===void 0&&((0,ii.getSocketCacacheDir)()?Hr=(0,Et.normalizePath)((0,ii.getSocketCacacheDir)()):Hr=(0,Et.normalizePath)(Lt.join(Gr(),`${Ct().SOCKET_APP_PREFIX}cacache`))),Hr}function aT(){return(0,ii.getSocketDlxDirEnv)()?(0,Et.normalizePath)((0,ii.getSocketDlxDirEnv)()):(0,Et.normalizePath)(Lt.join(Gr(),`${Ct().SOCKET_APP_PREFIX}${Ct().SOCKET_DLX_APP_NAME}`))}function rd(e){return(0,Et.normalizePath)(Lt.join(oi(e),kt().CACHE_DIR))}function sd(e){return(0,Et.normalizePath)(Lt.join(rd(e),kt().CACHE_TTL_DIR))}function lT(){return oi(Ct().SOCKET_CLI_APP_NAME)}function cT(){return oi(Ct().SOCKET_REGISTRY_APP_NAME)}function uT(){return(0,Et.normalizePath)(Lt.join(sd(Ct().SOCKET_REGISTRY_APP_NAME),Zp().CACHE_GITHUB_DIR))}function id(){let e=(0,rT.getHome)();return e||(0,sT.getUserprofile)()||td()}function nd(){si=void 0,Hr=void 0}(0,ga.registerCacheInvalidation)(nd)});var ka=ge((cU,tf)=>{var hT=Object.create,Vr=Object.defineProperty,pT=Object.getOwnPropertyDescriptor,dT=Object.getOwnPropertyNames,fT=Object.getPrototypeOf,gT=Object.prototype.hasOwnProperty,se=(e,r)=>Vr(e,"name",{value:r,configurable:!0}),ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),mT=(e,r)=>{for(var a in r)Vr(e,a,{get:r[a],enumerable:!0})},fd=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of dT(r))!gT.call(e,n)&&n!==a&&Vr(e,n,{get:()=>r[n],enumerable:!(p=pT(r,n))||p.enumerable});return e},Le=(e,r,a)=>(a=e!=null?hT(fT(e)):{},fd(r||!e||!e.__esModule?Vr(a,"default",{value:e,enumerable:!0}):a,e)),yT=e=>fd(Vr({},"__esModule",{value:!0}),e),vT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(p){return p.reduce((n,c)=>[].concat(n,c),[])}se(r,"flatten"),e.flatten=r;function a(p,n){let c=[[]],o=0;for(let t of p)n(t)?(o++,c[o]=[]):c[o].push(t);return c}se(a,"splitWhen"),e.splitWhen=a}),ST=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(a){return a.code==="ENOENT"}se(r,"isEnoentCodeError"),e.isEnoentCodeError=r}),ET=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{static{se(this,"DirentFromStats")}constructor(p,n){this.name=p,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function a(p,n){return new r(p,n)}se(a,"createDirentFromStats"),e.createDirentFromStats=a}),bT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPosixPathToPattern=e.convertWindowsPathToPattern=e.convertPathToPattern=e.escapePosixPath=e.escapeWindowsPath=e.escape=e.removeLeadingDotSegment=e.makeAbsolute=e.unixify=void 0;var r=require("os"),a=require("path"),p=r.platform()==="win32",n=2,c=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,o=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,t=/^\\\\([.?])/,s=/\\(?![!()+@[\]{}])/g;function i(f){return f.replace(/\\/g,"/")}se(i,"unixify"),e.unixify=i;function l(f,y){return a.resolve(f,y)}se(l,"makeAbsolute"),e.makeAbsolute=l;function u(f){if(f.charAt(0)==="."){let y=f.charAt(1);if(y==="/"||y==="\\")return f.slice(n)}return f}se(u,"removeLeadingDotSegment"),e.removeLeadingDotSegment=u,e.escape=p?h:d;function h(f){return f.replace(o,"\\$2")}se(h,"escapeWindowsPath"),e.escapeWindowsPath=h;function d(f){return f.replace(c,"\\$2")}se(d,"escapePosixPath"),e.escapePosixPath=d,e.convertPathToPattern=p?g:m;function g(f){return h(f).replace(t,"//$1").replace(s,"/")}se(g,"convertWindowsPathToPattern"),e.convertWindowsPathToPattern=g;function m(f){return d(f)}se(m,"convertPosixPathToPattern"),e.convertPosixPathToPattern=m}),_T=ve((e,r)=>{r.exports=se(function(a){if(typeof a!="string"||a==="")return!1;for(var p;p=/(\\).|([@?!+*]\(.*\))/g.exec(a);){if(p[2])return!0;a=a.slice(p.index+p[0].length)}return!1},"isExtglob")}),gd=ve((e,r)=>{var a=_T(),p={"{":"}","(":")","[":"]"},n=se(function(o){if(o[0]==="!")return!0;for(var t=0,s=-2,i=-2,l=-2,u=-2,h=-2;t<o.length;){if(o[t]==="*"||o[t+1]==="?"&&/[\].+)]/.test(o[t])||i!==-1&&o[t]==="["&&o[t+1]!=="]"&&(i<t&&(i=o.indexOf("]",t)),i>t&&(h===-1||h>i||(h=o.indexOf("\\",t),h===-1||h>i)))||l!==-1&&o[t]==="{"&&o[t+1]!=="}"&&(l=o.indexOf("}",t),l>t&&(h=o.indexOf("\\",t),h===-1||h>l))||u!==-1&&o[t]==="("&&o[t+1]==="?"&&/[:!=]/.test(o[t+2])&&o[t+3]!==")"&&(u=o.indexOf(")",t),u>t&&(h=o.indexOf("\\",t),h===-1||h>u))||s!==-1&&o[t]==="("&&o[t+1]!=="|"&&(s<t&&(s=o.indexOf("|",t)),s!==-1&&o[s+1]!==")"&&(u=o.indexOf(")",s),u>s&&(h=o.indexOf("\\",s),h===-1||h>u))))return!0;if(o[t]==="\\"){var d=o[t+1];t+=2;var g=p[d];if(g){var m=o.indexOf(g,t);m!==-1&&(t=m+1)}if(o[t]==="!")return!0}else t++}return!1},"strictCheck"),c=se(function(o){if(o[0]==="!")return!0;for(var t=0;t<o.length;){if(/[*?{}()[\]]/.test(o[t]))return!0;if(o[t]==="\\"){var s=o[t+1];t+=2;var i=p[s];if(i){var l=o.indexOf(i,t);l!==-1&&(t=l+1)}if(o[t]==="!")return!0}else t++}return!1},"relaxedCheck");r.exports=se(function(o,t){if(typeof o!="string"||o==="")return!1;if(a(o))return!0;var s=n;return t&&t.strict===!1&&(s=c),s(o)},"isGlob")}),wT=ve((e,r)=>{"use strict";var a=gd(),p=require("path").posix.dirname,n=require("os").platform()==="win32",c="/",o=/\\/g,t=/[\{\[].*[\}\]]$/,s=/(^|[^\\])([\{\[]|\([^\)]+$)/,i=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=se(function(l,u){var h=Object.assign({flipBackslashes:!0},u);h.flipBackslashes&&n&&l.indexOf(c)<0&&(l=l.replace(o,c)),t.test(l)&&(l+=c),l+="a";do l=p(l);while(a(l)||s.test(l));return l.replace(i,"$1")},"globParent")}),Ea=ve(e=>{"use strict";e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,a)=>r.nodes.find(p=>p.type===a),e.exceedsLimit=(r,a,p=1,n)=>n===!1||!e.isInteger(r)||!e.isInteger(a)?!1:(Number(a)-Number(r))/Number(p)>=n,e.escapeNode=(r,a=0,p)=>{let n=r.nodes[a];n&&(p&&n.type===p||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((a,p)=>(p.type==="text"&&a.push(p.value),p.type==="range"&&(p.type="text"),a),[]),e.flatten=(...r)=>{let a=[],p=se(n=>{for(let c=0;c<n.length;c++){let o=n[c];if(Array.isArray(o)){p(o);continue}o!==void 0&&a.push(o)}return a},"flat");return p(r),a}}),ba=ve((e,r)=>{"use strict";var a=Ea();r.exports=(p,n={})=>{let c=se((o,t={})=>{let s=n.escapeInvalid&&a.isInvalidBrace(t),i=o.invalid===!0&&n.escapeInvalid===!0,l="";if(o.value)return(s||i)&&a.isOpenOrClose(o)?"\\"+o.value:o.value;if(o.value)return o.value;if(o.nodes)for(let u of o.nodes)l+=c(u);return l},"stringify");return c(p)}}),OT=ve((e,r)=>{"use strict";r.exports=function(a){return typeof a=="number"?a-a===0:typeof a=="string"&&a.trim()!==""?Number.isFinite?Number.isFinite(+a):isFinite(+a):!1}}),AT=ve((e,r)=>{"use strict";var a=OT(),p=se((S,E,b)=>{if(a(S)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(E===void 0||S===E)return String(S);if(a(E)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let _={relaxZeros:!0,...b};typeof _.strictZeros=="boolean"&&(_.relaxZeros=_.strictZeros===!1);let w=String(_.relaxZeros),O=String(_.shorthand),R=String(_.capture),I=String(_.wrap),P=S+":"+E+"="+w+O+R+I;if(p.cache.hasOwnProperty(P))return p.cache[P].result;let L=Math.min(S,E),M=Math.max(S,E);if(Math.abs(L-M)===1){let B=S+"|"+E;return _.capture?`(${B})`:_.wrap===!1?B:`(?:${B})`}let x=f(S)||f(E),j={min:S,max:E,a:L,b:M},U=[],V=[];if(x&&(j.isPadded=x,j.maxLen=String(j.max).length),L<0){let B=M<0?Math.abs(M):1;V=t(B,Math.abs(L),j,_),L=j.a=0}return M>=0&&(U=t(L,M,j,_)),j.negatives=V,j.positives=U,j.result=n(V,U,_),_.capture===!0?j.result=`(${j.result})`:_.wrap!==!1&&U.length+V.length>1&&(j.result=`(?:${j.result})`),p.cache[P]=j,j.result},"toRegexRange");function n(S,E,b){let _=s(S,E,"-",!1,b)||[],w=s(E,S,"",!1,b)||[],O=s(S,E,"-?",!0,b)||[];return _.concat(O).concat(w).join("|")}se(n,"collatePatterns");function c(S,E){let b=1,_=1,w=h(S,b),O=new Set([E]);for(;S<=w&&w<=E;)O.add(w),b+=1,w=h(S,b);for(w=d(E+1,_)-1;S<w&&w<=E;)O.add(w),_+=1,w=d(E+1,_)-1;return O=[...O],O.sort(l),O}se(c,"splitToRanges");function o(S,E,b){if(S===E)return{pattern:S,count:[],digits:0};let _=i(S,E),w=_.length,O="",R=0;for(let I=0;I<w;I++){let[P,L]=_[I];P===L?O+=P:P!=="0"||L!=="9"?O+=m(P,L,b):R++}return R&&(O+=b.shorthand===!0?"\\d":"[0-9]"),{pattern:O,count:[R],digits:w}}se(o,"rangeToPattern");function t(S,E,b,_){let w=c(S,E),O=[],R=S,I;for(let P=0;P<w.length;P++){let L=w[P],M=o(String(R),String(L),_),x="";if(!b.isPadded&&I&&I.pattern===M.pattern){I.count.length>1&&I.count.pop(),I.count.push(M.count[0]),I.string=I.pattern+g(I.count),R=L+1;continue}b.isPadded&&(x=y(L,b,_)),M.string=x+M.pattern+g(M.count),O.push(M),R=L+1,I=M}return O}se(t,"splitToPatterns");function s(S,E,b,_,w){let O=[];for(let R of S){let{string:I}=R;!_&&!u(E,"string",I)&&O.push(b+I),_&&u(E,"string",I)&&O.push(b+I)}return O}se(s,"filterPatterns");function i(S,E){let b=[];for(let _=0;_<S.length;_++)b.push([S[_],E[_]]);return b}se(i,"zip");function l(S,E){return S>E?1:E>S?-1:0}se(l,"compare");function u(S,E,b){return S.some(_=>_[E]===b)}se(u,"contains");function h(S,E){return Number(String(S).slice(0,-E)+"9".repeat(E))}se(h,"countNines");function d(S,E){return S-S%Math.pow(10,E)}se(d,"countZeros");function g(S){let[E=0,b=""]=S;return b||E>1?`{${E+(b?","+b:"")}}`:""}se(g,"toQuantifier");function m(S,E,b){return`[${S}${E-S===1?"":"-"}${E}]`}se(m,"toCharacterClass");function f(S){return/^-?(0+)\d/.test(S)}se(f,"hasPadding");function y(S,E,b){if(!E.isPadded)return S;let _=Math.abs(E.maxLen-String(S).length),w=b.relaxZeros!==!1;switch(_){case 0:return"";case 1:return w?"0?":"0";case 2:return w?"0{0,2}":"00";default:return w?`0{0,${_}}`:`0{${_}}`}}se(y,"padZeros"),p.cache={},p.clearCache=()=>p.cache={},r.exports=p}),md=ve((e,r)=>{"use strict";var a=require("util"),p=AT(),n=se(_=>_!==null&&typeof _=="object"&&!Array.isArray(_),"isObject"),c=se(_=>w=>_===!0?Number(w):String(w),"transform"),o=se(_=>typeof _=="number"||typeof _=="string"&&_!=="","isValidValue"),t=se(_=>Number.isInteger(+_),"isNumber"),s=se(_=>{let w=`${_}`,O=-1;if(w[0]==="-"&&(w=w.slice(1)),w==="0")return!1;for(;w[++O]==="0";);return O>0},"zeros"),i=se((_,w,O)=>typeof _=="string"||typeof w=="string"?!0:O.stringify===!0,"stringify"),l=se((_,w,O)=>{if(w>0){let R=_[0]==="-"?"-":"";R&&(_=_.slice(1)),_=R+_.padStart(R?w-1:w,"0")}return O===!1?String(_):_},"pad"),u=se((_,w)=>{let O=_[0]==="-"?"-":"";for(O&&(_=_.slice(1),w--);_.length<w;)_="0"+_;return O?"-"+_:_},"toMaxLen"),h=se((_,w,O)=>{_.negatives.sort((M,x)=>M<x?-1:M>x?1:0),_.positives.sort((M,x)=>M<x?-1:M>x?1:0);let R=w.capture?"":"?:",I="",P="",L;return _.positives.length&&(I=_.positives.map(M=>u(String(M),O)).join("|")),_.negatives.length&&(P=`-(${R}${_.negatives.map(M=>u(String(M),O)).join("|")})`),I&&P?L=`${I}|${P}`:L=I||P,w.wrap?`(${R}${L})`:L},"toSequence"),d=se((_,w,O,R)=>{if(O)return p(_,w,{wrap:!1,...R});let I=String.fromCharCode(_);if(_===w)return I;let P=String.fromCharCode(w);return`[${I}-${P}]`},"toRange"),g=se((_,w,O)=>{if(Array.isArray(_)){let R=O.wrap===!0,I=O.capture?"":"?:";return R?`(${I}${_.join("|")})`:_.join("|")}return p(_,w,O)},"toRegex"),m=se((..._)=>new RangeError("Invalid range arguments: "+a.inspect(..._)),"rangeError"),f=se((_,w,O)=>{if(O.strictRanges===!0)throw m([_,w]);return[]},"invalidRange"),y=se((_,w)=>{if(w.strictRanges===!0)throw new TypeError(`Expected step "${_}" to be a number`);return[]},"invalidStep"),S=se((_,w,O=1,R={})=>{let I=Number(_),P=Number(w);if(!Number.isInteger(I)||!Number.isInteger(P)){if(R.strictRanges===!0)throw m([_,w]);return[]}I===0&&(I=0),P===0&&(P=0);let L=I>P,M=String(_),x=String(w),j=String(O);O=Math.max(Math.abs(O),1);let U=s(M)||s(x)||s(j),V=U?Math.max(M.length,x.length,j.length):0,B=U===!1&&i(_,w,R)===!1,G=R.transform||c(B);if(R.toRegex&&O===1)return d(u(_,V),u(w,V),!0,R);let W={negatives:[],positives:[]},N=se(C=>W[C<0?"negatives":"positives"].push(Math.abs(C)),"push"),D=[],T=0;for(;L?I>=P:I<=P;)R.toRegex===!0&&O>1?N(I):D.push(l(G(I,T),V,B)),I=L?I-O:I+O,T++;return R.toRegex===!0?O>1?h(W,R,V):g(D,null,{wrap:!1,...R}):D},"fillNumbers"),E=se((_,w,O=1,R={})=>{if(!t(_)&&_.length>1||!t(w)&&w.length>1)return f(_,w,R);let I=R.transform||(B=>String.fromCharCode(B)),P=`${_}`.charCodeAt(0),L=`${w}`.charCodeAt(0),M=P>L,x=Math.min(P,L),j=Math.max(P,L);if(R.toRegex&&O===1)return d(x,j,!1,R);let U=[],V=0;for(;M?P>=L:P<=L;)U.push(I(P,V)),P=M?P-O:P+O,V++;return R.toRegex===!0?g(U,null,{wrap:!1,options:R}):U},"fillLetters"),b=se((_,w,O,R={})=>{if(w==null&&o(_))return[_];if(!o(_)||!o(w))return f(_,w,R);if(typeof O=="function")return b(_,w,1,{transform:O});if(n(O))return b(_,w,0,O);let I={...R};return I.capture===!0&&(I.wrap=!0),O=O||I.step||1,t(O)?t(_)&&t(w)?S(_,w,O,I):E(_,w,Math.max(Math.abs(O),1),I):O!=null&&!n(O)?y(O,I):b(_,w,1,O)},"fill");r.exports=b}),RT=ve((e,r)=>{"use strict";var a=md(),p=Ea(),n=se((c,o={})=>{let t=se((s,i={})=>{let l=p.isInvalidBrace(i),u=s.invalid===!0&&o.escapeInvalid===!0,h=l===!0||u===!0,d=o.escapeInvalid===!0?"\\":"",g="";if(s.isOpen===!0||s.isClose===!0)return d+s.value;if(s.type==="open")return h?d+s.value:"(";if(s.type==="close")return h?d+s.value:")";if(s.type==="comma")return s.prev.type==="comma"?"":h?s.value:"|";if(s.value)return s.value;if(s.nodes&&s.ranges>0){let m=p.reduce(s.nodes),f=a(...m,{...o,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return m.length>1&&f.length>1?`(${f})`:f}if(s.nodes)for(let m of s.nodes)g+=t(m,s);return g},"walk");return t(c)},"compile");r.exports=n}),CT=ve((e,r)=>{"use strict";var a=md(),p=ba(),n=Ea(),c=se((t="",s="",i=!1)=>{let l=[];if(t=[].concat(t),s=[].concat(s),!s.length)return t;if(!t.length)return i?n.flatten(s).map(u=>`{${u}}`):s;for(let u of t)if(Array.isArray(u))for(let h of u)l.push(c(h,s,i));else for(let h of s)i===!0&&typeof h=="string"&&(h=`{${h}}`),l.push(Array.isArray(h)?c(u,h,i):u+h);return n.flatten(l)},"append"),o=se((t,s={})=>{let i=s.rangeLimit===void 0?1e3:s.rangeLimit,l=se((u,h={})=>{u.queue=[];let d=h,g=h.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,g=d.queue;if(u.invalid||u.dollar){g.push(c(g.pop(),p(u,s)));return}if(u.type==="brace"&&u.invalid!==!0&&u.nodes.length===2){g.push(c(g.pop(),["{}"]));return}if(u.nodes&&u.ranges>0){let S=n.reduce(u.nodes);if(n.exceedsLimit(...S,s.step,i))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let E=a(...S,s);E.length===0&&(E=p(u,s)),g.push(c(g.pop(),E)),u.nodes=[];return}let m=n.encloseBrace(u),f=u.queue,y=u;for(;y.type!=="brace"&&y.type!=="root"&&y.parent;)y=y.parent,f=y.queue;for(let S=0;S<u.nodes.length;S++){let E=u.nodes[S];if(E.type==="comma"&&u.type==="brace"){S===1&&f.push(""),f.push("");continue}if(E.type==="close"){g.push(c(g.pop(),f,m));continue}if(E.value&&E.type!=="open"){f.push(c(f.pop(),E.value));continue}E.nodes&&l(E,u)}return f},"walk");return n.flatten(l(t))},"expand");r.exports=o}),IT=ve((e,r)=>{"use strict";r.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
68
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),TT=ve((e,r)=>{"use strict";var a=ba(),{MAX_LENGTH:p,CHAR_BACKSLASH:n,CHAR_BACKTICK:c,CHAR_COMMA:o,CHAR_DOT:t,CHAR_LEFT_PARENTHESES:s,CHAR_RIGHT_PARENTHESES:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:u,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:f,CHAR_ZERO_WIDTH_NOBREAK_SPACE:y}=IT(),S=se((E,b={})=>{if(typeof E!="string")throw new TypeError("Expected a string");let _=b||{},w=typeof _.maxLength=="number"?Math.min(p,_.maxLength):p;if(E.length>w)throw new SyntaxError(`Input length (${E.length}), exceeds max characters (${w})`);let O={type:"root",input:E,nodes:[]},R=[O],I=O,P=O,L=0,M=E.length,x=0,j=0,U,V=se(()=>E[x++],"advance"),B=se(G=>{if(G.type==="text"&&P.type==="dot"&&(P.type="text"),P&&P.type==="text"&&G.type==="text"){P.value+=G.value;return}return I.nodes.push(G),G.parent=I,G.prev=P,P=G,G},"push");for(B({type:"bos"});x<M;)if(I=R[R.length-1],U=V(),!(U===y||U===f)){if(U===n){B({type:"text",value:(b.keepEscaping?U:"")+V()});continue}if(U===d){B({type:"text",value:"\\"+U});continue}if(U===h){L++;let G;for(;x<M&&(G=V());){if(U+=G,G===h){L++;continue}if(G===n){U+=V();continue}if(G===d&&(L--,L===0))break}B({type:"text",value:U});continue}if(U===s){I=B({type:"paren",nodes:[]}),R.push(I),B({type:"text",value:U});continue}if(U===i){if(I.type!=="paren"){B({type:"text",value:U});continue}I=R.pop(),B({type:"text",value:U}),I=R[R.length-1];continue}if(U===g||U===m||U===c){let G=U,W;for(b.keepQuotes!==!0&&(U="");x<M&&(W=V());){if(W===n){U+=W+V();continue}if(W===G){b.keepQuotes===!0&&(U+=W);break}U+=W}B({type:"text",value:U});continue}if(U===l){j++;let G={type:"brace",open:!0,close:!1,dollar:P.value&&P.value.slice(-1)==="$"||I.dollar===!0,depth:j,commas:0,ranges:0,nodes:[]};I=B(G),R.push(I),B({type:"open",value:U});continue}if(U===u){if(I.type!=="brace"){B({type:"text",value:U});continue}let G="close";I=R.pop(),I.close=!0,B({type:G,value:U}),j--,I=R[R.length-1];continue}if(U===o&&j>0){if(I.ranges>0){I.ranges=0;let G=I.nodes.shift();I.nodes=[G,{type:"text",value:a(I)}]}B({type:"comma",value:U}),I.commas++;continue}if(U===t&&j>0&&I.commas===0){let G=I.nodes;if(j===0||G.length===0){B({type:"text",value:U});continue}if(P.type==="dot"){if(I.range=[],P.value+=U,P.type="range",I.nodes.length!==3&&I.nodes.length!==5){I.invalid=!0,I.ranges=0,P.type="text";continue}I.ranges++,I.args=[];continue}if(P.type==="range"){G.pop();let W=G[G.length-1];W.value+=P.value+U,P=W,I.ranges--;continue}B({type:"dot",value:U});continue}B({type:"text",value:U})}do if(I=R.pop(),I.type!=="root"){I.nodes.forEach(N=>{N.nodes||(N.type==="open"&&(N.isOpen=!0),N.type==="close"&&(N.isClose=!0),N.nodes||(N.type="text"),N.invalid=!0)});let G=R[R.length-1],W=G.nodes.indexOf(I);G.nodes.splice(W,1,...I.nodes)}while(R.length>0);return B({type:"eos"}),O},"parse");r.exports=S}),PT=ve((e,r)=>{"use strict";var a=ba(),p=RT(),n=CT(),c=TT(),o=se((t,s={})=>{let i=[];if(Array.isArray(t))for(let l of t){let u=o.create(l,s);Array.isArray(u)?i.push(...u):i.push(u)}else i=[].concat(o.create(t,s));return s&&s.expand===!0&&s.nodupes===!0&&(i=[...new Set(i)]),i},"braces");o.parse=(t,s={})=>c(t,s),o.stringify=(t,s={})=>a(typeof t=="string"?o.parse(t,s):t,s),o.compile=(t,s={})=>(typeof t=="string"&&(t=o.parse(t,s)),p(t,s)),o.expand=(t,s={})=>{typeof t=="string"&&(t=o.parse(t,s));let i=n(t,s);return s.noempty===!0&&(i=i.filter(Boolean)),s.nodupes===!0&&(i=[...new Set(i)]),i},o.create=(t,s={})=>t===""||t.length<3?[t]:s.expand!==!0?o.compile(t,s):o.expand(t,s),r.exports=o}),li=ve((e,r)=>{"use strict";var a=require("path"),p="\\\\/",n=`[^${p}]`,c="\\.",o="\\+",t="\\?",s="\\/",i="(?=.)",l="[^/]",u=`(?:${s}|$)`,h=`(?:^|${s})`,d=`${c}{1,2}${u}`,g=`(?!${c})`,m=`(?!${h}${d})`,f=`(?!${c}{0,1}${u})`,y=`(?!${d})`,S=`[^.${s}]`,E=`${l}*?`,b={DOT_LITERAL:c,PLUS_LITERAL:o,QMARK_LITERAL:t,SLASH_LITERAL:s,ONE_CHAR:i,QMARK:l,END_ANCHOR:u,DOTS_SLASH:d,NO_DOT:g,NO_DOTS:m,NO_DOT_SLASH:f,NO_DOTS_SLASH:y,QMARK_NO_DOT:S,STAR:E,START_ANCHOR:h},_={...b,SLASH_LITERAL:`[${p}]`,QMARK:n,STAR:`${n}*?`,DOTS_SLASH:`${c}{1,2}(?:[${p}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${p}])${c}{1,2}(?:[${p}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${p}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${p}]|$))`,QMARK_NO_DOT:`[^.${p}]`,START_ANCHOR:`(?:^|[${p}])`,END_ANCHOR:`(?:[${p}]|$)`},w={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:w,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:a.sep,extglobChars(O){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${O.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(O){return O===!0?_:b}}}),ci=ve(e=>{"use strict";var r=require("path"),a=process.platform==="win32",{REGEX_BACKSLASH:p,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:o}=li();e.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),e.hasRegexChars=t=>c.test(t),e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t),e.escapeRegex=t=>t.replace(o,"\\$1"),e.toPosixSlashes=t=>t.replace(p,"/"),e.removeBackslashes=t=>t.replace(n,s=>s==="\\"?"":s),e.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10},e.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:a===!0||r.sep==="\\",e.escapeLast=(t,s,i)=>{let l=t.lastIndexOf(s,i);return l===-1?t:t[l-1]==="\\"?e.escapeLast(t,s,l-1):`${t.slice(0,l)}\\${t.slice(l)}`},e.removePrefix=(t,s={})=>{let i=t;return i.startsWith("./")&&(i=i.slice(2),s.prefix="./"),i},e.wrapOutput=(t,s={},i={})=>{let l=i.contains?"":"^",u=i.contains?"":"$",h=`${l}(?:${t})${u}`;return s.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}}),xT=ve((e,r)=>{"use strict";var a=ci(),{CHAR_ASTERISK:p,CHAR_AT:n,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:o,CHAR_DOT:t,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:i,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:y}=li(),S=se(_=>_===i||_===c,"isPathSeparator"),E=se(_=>{_.isPrefix!==!0&&(_.depth=_.isGlobstar?1/0:1)},"depth"),b=se((_,w)=>{let O=w||{},R=_.length-1,I=O.parts===!0||O.scanToEnd===!0,P=[],L=[],M=[],x=_,j=-1,U=0,V=0,B=!1,G=!1,W=!1,N=!1,D=!1,T=!1,C=!1,Z=!1,X=!1,Q=!1,k=0,F,z,$={value:"",depth:0,isGlob:!1},q=se(()=>j>=R,"eos"),J=se(()=>x.charCodeAt(j+1),"peek"),Y=se(()=>(F=z,x.charCodeAt(++j)),"advance");for(;j<R;){z=Y();let te;if(z===c){C=$.backslashes=!0,z=Y(),z===l&&(T=!0);continue}if(T===!0||z===l){for(k++;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,Y();continue}if(z===l){k++;continue}if(T!==!0&&z===t&&(z=Y())===t){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(T!==!0&&z===o){if(B=$.isBrace=!0,W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===m&&(k--,k===0)){T=!1,B=$.isBrace=!0,Q=!0;break}}if(I===!0)continue;break}if(z===i){if(P.push(j),L.push($),$={value:"",depth:0,isGlob:!1},Q===!0)continue;if(F===t&&j===U+1){U+=2;continue}V=j+1;continue}if(O.noext!==!0&&(z===d||z===n||z===p||z===g||z===s)&&J()===u){if(W=$.isGlob=!0,N=$.isExtglob=!0,Q=!0,z===s&&j===U&&(X=!0),I===!0){for(;q()!==!0&&(z=Y());){if(z===c){C=$.backslashes=!0,z=Y();continue}if(z===f){W=$.isGlob=!0,Q=!0;break}}continue}break}if(z===p){if(F===p&&(D=$.isGlobstar=!0),W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===g){if(W=$.isGlob=!0,Q=!0,I===!0)continue;break}if(z===h){for(;q()!==!0&&(te=Y());){if(te===c){C=$.backslashes=!0,Y();continue}if(te===y){G=$.isBracket=!0,W=$.isGlob=!0,Q=!0;break}}if(I===!0)continue;break}if(O.nonegate!==!0&&z===s&&j===U){Z=$.negated=!0,U++;continue}if(O.noparen!==!0&&z===u){if(W=$.isGlob=!0,I===!0){for(;q()!==!0&&(z=Y());){if(z===u){C=$.backslashes=!0,z=Y();continue}if(z===f){Q=!0;break}}continue}break}if(W===!0){if(Q=!0,I===!0)continue;break}}O.noext===!0&&(N=!1,W=!1);let A=x,H="",ee="";U>0&&(H=x.slice(0,U),x=x.slice(U),V-=U),A&&W===!0&&V>0?(A=x.slice(0,V),ee=x.slice(V)):W===!0?(A="",ee=x):A=x,A&&A!==""&&A!=="/"&&A!==x&&S(A.charCodeAt(A.length-1))&&(A=A.slice(0,-1)),O.unescape===!0&&(ee&&(ee=a.removeBackslashes(ee)),A&&C===!0&&(A=a.removeBackslashes(A)));let ne={prefix:H,input:_,start:U,base:A,glob:ee,isBrace:B,isBracket:G,isGlob:W,isExtglob:N,isGlobstar:D,negated:Z,negatedExtglob:X};if(O.tokens===!0&&(ne.maxDepth=0,S(z)||L.push($),ne.tokens=L),O.parts===!0||O.tokens===!0){let te;for(let ae=0;ae<P.length;ae++){let he=te?te+1:U,re=P[ae],ue=_.slice(he,re);O.tokens&&(ae===0&&U!==0?(L[ae].isPrefix=!0,L[ae].value=H):L[ae].value=ue,E(L[ae]),ne.maxDepth+=L[ae].depth),(ae!==0||ue!=="")&&M.push(ue),te=re}if(te&&te+1<_.length){let ae=_.slice(te+1);M.push(ae),O.tokens&&(L[L.length-1].value=ae,E(L[L.length-1]),ne.maxDepth+=L[L.length-1].depth)}ne.slashes=P,ne.parts=M}return ne},"scan");r.exports=b}),NT=ve((e,r)=>{"use strict";var a=li(),p=ci(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_BACKREF:t,REPLACEMENTS:s}=a,i=se((h,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...h,d);h.sort();let g=`[${h.join("-")}]`;try{new RegExp(g)}catch{return h.map(m=>p.escapeRegex(m)).join("..")}return g},"expandRange"),l=se((h,d)=>`Missing ${h}: "${d}" - use "\\\\${d}" to match literal characters`,"syntaxError"),u=se((h,d)=>{if(typeof h!="string")throw new TypeError("Expected a string");h=s[h]||h;let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);let y={type:"bos",value:"",output:g.prepend||""},S=[y],E=g.capture?"":"?:",b=p.isWindows(d),_=a.globChars(b),w=a.extglobChars(_),{DOT_LITERAL:O,PLUS_LITERAL:R,SLASH_LITERAL:I,ONE_CHAR:P,DOTS_SLASH:L,NO_DOT:M,NO_DOT_SLASH:x,NO_DOTS_SLASH:j,QMARK:U,QMARK_NO_DOT:V,STAR:B,START_ANCHOR:G}=_,W=se(re=>`(${E}(?:(?!${G}${re.dot?L:O}).)*?)`,"globstar"),N=g.dot?"":M,D=g.dot?U:V,T=g.bash===!0?W(g):B;g.capture&&(T=`(${T})`),typeof g.noext=="boolean"&&(g.noextglob=g.noext);let C={input:h,index:-1,start:0,dot:g.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:S};h=p.removePrefix(h,C),f=h.length;let Z=[],X=[],Q=[],k=y,F,z=se(()=>C.index===f-1,"eos"),$=C.peek=(re=1)=>h[C.index+re],q=C.advance=()=>h[++C.index]||"",J=se(()=>h.slice(C.index+1),"remaining"),Y=se((re="",ue=0)=>{C.consumed+=re,C.index+=ue},"consume"),A=se(re=>{C.output+=re.output!=null?re.output:re.value,Y(re.value)},"append"),H=se(()=>{let re=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)q(),C.start++,re++;return re%2===0?!1:(C.negated=!0,C.start++,!0)},"negate"),ee=se(re=>{C[re]++,Q.push(re)},"increment"),ne=se(re=>{C[re]--,Q.pop()},"decrement"),te=se(re=>{if(k.type==="globstar"){let ue=C.braces>0&&(re.type==="comma"||re.type==="brace"),ie=re.extglob===!0||Z.length&&(re.type==="pipe"||re.type==="paren");re.type!=="slash"&&re.type!=="paren"&&!ue&&!ie&&(C.output=C.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=T,C.output+=k.output)}if(Z.length&&re.type!=="paren"&&(Z[Z.length-1].inner+=re.value),(re.value||re.output)&&A(re),k&&k.type==="text"&&re.type==="text"){k.value+=re.value,k.output=(k.output||"")+re.value;return}re.prev=k,S.push(re),k=re},"push"),ae=se((re,ue)=>{let ie={...w[ue],conditions:1,inner:""};ie.prev=k,ie.parens=C.parens,ie.output=C.output;let le=(g.capture?"(":"")+ie.open;ee("parens"),te({type:re,value:ue,output:C.output?"":P}),te({type:"paren",extglob:!0,value:q(),output:le}),Z.push(ie)},"extglobOpen"),he=se(re=>{let ue=re.close+(g.capture?")":""),ie;if(re.type==="negate"){let le=T;if(re.inner&&re.inner.length>1&&re.inner.includes("/")&&(le=W(g)),(le!==T||z()||/^\)+$/.test(J()))&&(ue=re.close=`)$))${le}`),re.inner.includes("*")&&(ie=J())&&/^\.[^\\/.]+$/.test(ie)){let fe=u(ie,{...d,fastpaths:!1}).output;ue=re.close=`)${fe})${le})`}re.prev.type==="bos"&&(C.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:F,output:ue}),ne("parens")},"extglobClose");if(g.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(h)){let re=!1,ue=h.replace(t,(ie,le,fe,me,ce,pe)=>me==="\\"?(re=!0,ie):me==="?"?le?le+me+(ce?U.repeat(ce.length):""):pe===0?D+(ce?U.repeat(ce.length):""):U.repeat(fe.length):me==="."?O.repeat(fe.length):me==="*"?le?le+me+(ce?T:""):T:le?ie:`\\${ie}`);return re===!0&&(g.unescape===!0?ue=ue.replace(/\\/g,""):ue=ue.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),ue===h&&g.contains===!0?(C.output=h,C):(C.output=p.wrapOutput(ue,C,d),C)}for(;!z();){if(F=q(),F==="\0")continue;if(F==="\\"){let ie=$();if(ie==="/"&&g.bash!==!0||ie==="."||ie===";")continue;if(!ie){F+="\\",te({type:"text",value:F});continue}let le=/^\\+/.exec(J()),fe=0;if(le&&le[0].length>2&&(fe=le[0].length,C.index+=fe,fe%2!==0&&(F+="\\")),g.unescape===!0?F=q():F+=q(),C.brackets===0){te({type:"text",value:F});continue}}if(C.brackets>0&&(F!=="]"||k.value==="["||k.value==="[^")){if(g.posix!==!1&&F===":"){let ie=k.value.slice(1);if(ie.includes("[")&&(k.posix=!0,ie.includes(":"))){let le=k.value.lastIndexOf("["),fe=k.value.slice(0,le),me=k.value.slice(le+2),ce=c[me];if(ce){k.value=fe+ce,C.backtrack=!0,q(),!y.output&&S.indexOf(k)===1&&(y.output=P);continue}}}(F==="["&&$()!==":"||F==="-"&&$()==="]")&&(F=`\\${F}`),F==="]"&&(k.value==="["||k.value==="[^")&&(F=`\\${F}`),g.posix===!0&&F==="!"&&k.value==="["&&(F="^"),k.value+=F,A({value:F});continue}if(C.quotes===1&&F!=='"'){F=p.escapeRegex(F),k.value+=F,A({value:F});continue}if(F==='"'){C.quotes=C.quotes===1?0:1,g.keepQuotes===!0&&te({type:"text",value:F});continue}if(F==="("){ee("parens"),te({type:"paren",value:F});continue}if(F===")"){if(C.parens===0&&g.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=Z[Z.length-1];if(ie&&C.parens===ie.parens+1){he(Z.pop());continue}te({type:"paren",value:F,output:C.parens?")":"\\)"}),ne("parens");continue}if(F==="["){if(g.nobracket===!0||!J().includes("]")){if(g.nobracket!==!0&&g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));F=`\\${F}`}else ee("brackets");te({type:"bracket",value:F});continue}if(F==="]"){if(g.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){te({type:"text",value:F,output:`\\${F}`});continue}if(C.brackets===0){if(g.strictBrackets===!0)throw new SyntaxError(l("opening","["));te({type:"text",value:F,output:`\\${F}`});continue}ne("brackets");let ie=k.value.slice(1);if(k.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(F=`/${F}`),k.value+=F,A({value:F}),g.literalBrackets===!1||p.hasRegexChars(ie))continue;let le=p.escapeRegex(k.value);if(C.output=C.output.slice(0,-k.value.length),g.literalBrackets===!0){C.output+=le,k.value=le;continue}k.value=`(${E}${le}|${k.value})`,C.output+=k.value;continue}if(F==="{"&&g.nobrace!==!0){ee("braces");let ie={type:"brace",value:F,output:"(",outputIndex:C.output.length,tokensIndex:C.tokens.length};X.push(ie),te(ie);continue}if(F==="}"){let ie=X[X.length-1];if(g.nobrace===!0||!ie){te({type:"text",value:F,output:F});continue}let le=")";if(ie.dots===!0){let fe=S.slice(),me=[];for(let ce=fe.length-1;ce>=0&&(S.pop(),fe[ce].type!=="brace");ce--)fe[ce].type!=="dots"&&me.unshift(fe[ce].value);le=i(me,g),C.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let fe=C.output.slice(0,ie.outputIndex),me=C.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",F=le="\\}",C.output=fe;for(let ce of me)C.output+=ce.output||ce.value}te({type:"brace",value:F,output:le}),ne("braces"),X.pop();continue}if(F==="|"){Z.length>0&&Z[Z.length-1].conditions++,te({type:"text",value:F});continue}if(F===","){let ie=F,le=X[X.length-1];le&&Q[Q.length-1]==="braces"&&(le.comma=!0,ie="|"),te({type:"comma",value:F,output:ie});continue}if(F==="/"){if(k.type==="dot"&&C.index===C.start+1){C.start=C.index+1,C.consumed="",C.output="",S.pop(),k=y;continue}te({type:"slash",value:F,output:I});continue}if(F==="."){if(C.braces>0&&k.type==="dot"){k.value==="."&&(k.output=O);let ie=X[X.length-1];k.type="dots",k.output+=F,k.value+=F,ie.dots=!0;continue}if(C.braces+C.parens===0&&k.type!=="bos"&&k.type!=="slash"){te({type:"text",value:F,output:O});continue}te({type:"dot",value:F,output:O});continue}if(F==="?"){if(!(k&&k.value==="(")&&g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("qmark",F);continue}if(k&&k.type==="paren"){let ie=$(),le=F;if(ie==="<"&&!p.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(J()))&&(le=`\\${F}`),te({type:"text",value:F,output:le});continue}if(g.dot!==!0&&(k.type==="slash"||k.type==="bos")){te({type:"qmark",value:F,output:V});continue}te({type:"qmark",value:F,output:U});continue}if(F==="!"){if(g.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){ae("negate",F);continue}if(g.nonegate!==!0&&C.index===0){H();continue}}if(F==="+"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){ae("plus",F);continue}if(k&&k.value==="("||g.regex===!1){te({type:"plus",value:F,output:R});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||C.parens>0){te({type:"plus",value:F});continue}te({type:"plus",value:R});continue}if(F==="@"){if(g.noextglob!==!0&&$()==="("&&$(2)!=="?"){te({type:"at",extglob:!0,value:F,output:""});continue}te({type:"text",value:F});continue}if(F!=="*"){(F==="$"||F==="^")&&(F=`\\${F}`);let ie=o.exec(J());ie&&(F+=ie[0],C.index+=ie[0].length),te({type:"text",value:F});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=F,k.output=T,C.backtrack=!0,C.globstar=!0,Y(F);continue}let re=J();if(g.noextglob!==!0&&/^\([^?]/.test(re)){ae("star",F);continue}if(k.type==="star"){if(g.noglobstar===!0){Y(F);continue}let ie=k.prev,le=ie.prev,fe=ie.type==="slash"||ie.type==="bos",me=le&&(le.type==="star"||le.type==="globstar");if(g.bash===!0&&(!fe||re[0]&&re[0]!=="/")){te({type:"star",value:F,output:""});continue}let ce=C.braces>0&&(ie.type==="comma"||ie.type==="brace"),pe=Z.length&&(ie.type==="pipe"||ie.type==="paren");if(!fe&&ie.type!=="paren"&&!ce&&!pe){te({type:"star",value:F,output:""});continue}for(;re.slice(0,3)==="/**";){let de=h[C.index+4];if(de&&de!=="/")break;re=re.slice(3),Y("/**",3)}if(ie.type==="bos"&&z()){k.type="globstar",k.value+=F,k.output=W(g),C.output=k.output,C.globstar=!0,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!me&&z()){C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=W(g)+(g.strictSlashes?")":"|$)"),k.value+=F,C.globstar=!0,C.output+=ie.output+k.output,Y(F);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&re[0]==="/"){let de=re[1]!==void 0?"|$":"";C.output=C.output.slice(0,-(ie.output+k.output).length),ie.output=`(?:${ie.output}`,k.type="globstar",k.output=`${W(g)}${I}|${I}${de})`,k.value+=F,C.output+=ie.output+k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&re[0]==="/"){k.type="globstar",k.value+=F,k.output=`(?:^|${I}|${W(g)}${I})`,C.output=k.output,C.globstar=!0,Y(F+q()),te({type:"slash",value:"/",output:""});continue}C.output=C.output.slice(0,-k.output.length),k.type="globstar",k.output=W(g),k.value+=F,C.output+=k.output,C.globstar=!0,Y(F);continue}let ue={type:"star",value:F,output:T};if(g.bash===!0){ue.output=".*?",(k.type==="bos"||k.type==="slash")&&(ue.output=N+ue.output),te(ue);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&g.regex===!0){ue.output=F,te(ue);continue}(C.index===C.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(C.output+=x,k.output+=x):g.dot===!0?(C.output+=j,k.output+=j):(C.output+=N,k.output+=N),$()!=="*"&&(C.output+=P,k.output+=P)),te(ue)}for(;C.brackets>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","]"));C.output=p.escapeLast(C.output,"["),ne("brackets")}for(;C.parens>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing",")"));C.output=p.escapeLast(C.output,"("),ne("parens")}for(;C.braces>0;){if(g.strictBrackets===!0)throw new SyntaxError(l("closing","}"));C.output=p.escapeLast(C.output,"{"),ne("braces")}if(g.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&te({type:"maybe_slash",value:"",output:`${I}?`}),C.backtrack===!0){C.output="";for(let re of C.tokens)C.output+=re.output!=null?re.output:re.value,re.suffix&&(C.output+=re.suffix)}return C},"parse");u.fastpaths=(h,d)=>{let g={...d},m=typeof g.maxLength=="number"?Math.min(n,g.maxLength):n,f=h.length;if(f>m)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${m}`);h=s[h]||h;let y=p.isWindows(d),{DOT_LITERAL:S,SLASH_LITERAL:E,ONE_CHAR:b,DOTS_SLASH:_,NO_DOT:w,NO_DOTS:O,NO_DOTS_SLASH:R,STAR:I,START_ANCHOR:P}=a.globChars(y),L=g.dot?O:w,M=g.dot?R:w,x=g.capture?"":"?:",j={negated:!1,prefix:""},U=g.bash===!0?".*?":I;g.capture&&(U=`(${U})`);let V=se(N=>N.noglobstar===!0?U:`(${x}(?:(?!${P}${N.dot?_:S}).)*?)`,"globstar"),B=se(N=>{switch(N){case"*":return`${L}${b}${U}`;case".*":return`${S}${b}${U}`;case"*.*":return`${L}${U}${S}${b}${U}`;case"*/*":return`${L}${U}${E}${b}${M}${U}`;case"**":return L+V(g);case"**/*":return`(?:${L}${V(g)}${E})?${M}${b}${U}`;case"**/*.*":return`(?:${L}${V(g)}${E})?${M}${U}${S}${b}${U}`;case"**/.*":return`(?:${L}${V(g)}${E})?${S}${b}${U}`;default:{let D=/^(.*?)\.(\w+)$/.exec(N);if(!D)return;let T=B(D[1]);return T?T+S+D[2]:void 0}}},"create"),G=p.removePrefix(h,j),W=B(G);return W&&g.strictSlashes!==!0&&(W+=`${E}?`),W},r.exports=u}),kT=ve((e,r)=>{"use strict";var a=require("path"),p=xT(),n=NT(),c=ci(),o=li(),t=se(i=>i&&typeof i=="object"&&!Array.isArray(i),"isObject"),s=se((i,l,u=!1)=>{if(Array.isArray(i)){let E=i.map(b=>s(b,l,u));return se(b=>{for(let _ of E){let w=_(b);if(w)return w}return!1},"arrayMatcher")}let h=t(i)&&i.tokens&&i.input;if(i===""||typeof i!="string"&&!h)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},g=c.isWindows(l),m=h?s.compileRe(i,l):s.makeRe(i,l,!1,!0),f=m.state;delete m.state;let y=se(()=>!1,"isIgnored");if(d.ignore){let E={...l,ignore:null,onMatch:null,onResult:null};y=s(d.ignore,E,u)}let S=se((E,b=!1)=>{let{isMatch:_,match:w,output:O}=s.test(E,m,l,{glob:i,posix:g}),R={glob:i,state:f,regex:m,posix:g,input:E,output:O,match:w,isMatch:_};return typeof d.onResult=="function"&&d.onResult(R),_===!1?(R.isMatch=!1,b?R:!1):y(E)?(typeof d.onIgnore=="function"&&d.onIgnore(R),R.isMatch=!1,b?R:!1):(typeof d.onMatch=="function"&&d.onMatch(R),b?R:!0)},"matcher");return u&&(S.state=f),S},"picomatch");s.test=(i,l,u,{glob:h,posix:d}={})=>{if(typeof i!="string")throw new TypeError("Expected input to be a string");if(i==="")return{isMatch:!1,output:""};let g=u||{},m=g.format||(d?c.toPosixSlashes:null),f=i===h,y=f&&m?m(i):i;return f===!1&&(y=m?m(i):i,f=y===h),(f===!1||g.capture===!0)&&(g.matchBase===!0||g.basename===!0?f=s.matchBase(i,l,u,d):f=l.exec(y)),{isMatch:!!f,match:f,output:y}},s.matchBase=(i,l,u,h=c.isWindows(u))=>(l instanceof RegExp?l:s.makeRe(l,u)).test(a.basename(i)),s.isMatch=(i,l,u)=>s(l,u)(i),s.parse=(i,l)=>Array.isArray(i)?i.map(u=>s.parse(u,l)):n(i,{...l,fastpaths:!1}),s.scan=(i,l)=>p(i,l),s.compileRe=(i,l,u=!1,h=!1)=>{if(u===!0)return i.output;let d=l||{},g=d.contains?"":"^",m=d.contains?"":"$",f=`${g}(?:${i.output})${m}`;i&&i.negated===!0&&(f=`^(?!${f}).*$`);let y=s.toRegex(f,l);return h===!0&&(y.state=i),y},s.makeRe=(i,l={},u=!1,h=!1)=>{if(!i||typeof i!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(i[0]==="."||i[0]==="*")&&(d.output=n.fastpaths(i,l)),d.output||(d=n(i,l)),s.compileRe(d,l,u,h)},s.toRegex=(i,l)=>{try{let u=l||{};return new RegExp(i,u.flags||(u.nocase?"i":""))}catch(u){if(l&&l.debug===!0)throw u;return/$^/}},s.constants=o,r.exports=s}),LT=ve((e,r)=>{"use strict";r.exports=kT()}),DT=ve((e,r)=>{"use strict";var a=require("util"),p=PT(),n=LT(),c=ci(),o=se(i=>i===""||i==="./","isEmptyString"),t=se(i=>{let l=i.indexOf("{");return l>-1&&i.indexOf("}",l)>-1},"hasBraces"),s=se((i,l,u)=>{l=[].concat(l),i=[].concat(i);let h=new Set,d=new Set,g=new Set,m=0,f=se(S=>{g.add(S.output),u&&u.onResult&&u.onResult(S)},"onResult");for(let S=0;S<l.length;S++){let E=n(String(l[S]),{...u,onResult:f},!0),b=E.state.negated||E.state.negatedExtglob;b&&m++;for(let _ of i){let w=E(_,!0);(b?!w.isMatch:w.isMatch)&&(b?h.add(w.output):(h.delete(w.output),d.add(w.output)))}}let y=(m===l.length?[...g]:[...d]).filter(S=>!h.has(S));if(u&&y.length===0){if(u.failglob===!0)throw new Error(`No matches found for "${l.join(", ")}"`);if(u.nonull===!0||u.nullglob===!0)return u.unescape?l.map(S=>S.replace(/\\/g,"")):l}return y},"micromatch");s.match=s,s.matcher=(i,l)=>n(i,l),s.isMatch=(i,l,u)=>n(l,u)(i),s.any=s.isMatch,s.not=(i,l,u={})=>{l=[].concat(l).map(String);let h=new Set,d=[],g=se(f=>{u.onResult&&u.onResult(f),d.push(f.output)},"onResult"),m=new Set(s(i,l,{...u,onResult:g}));for(let f of d)m.has(f)||h.add(f);return[...h]},s.contains=(i,l,u)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${a.inspect(i)}"`);if(Array.isArray(l))return l.some(h=>s.contains(i,h,u));if(typeof l=="string"){if(o(i)||o(l))return!1;if(i.includes(l)||i.startsWith("./")&&i.slice(2).includes(l))return!0}return s.isMatch(i,l,{...u,contains:!0})},s.matchKeys=(i,l,u)=>{if(!c.isObject(i))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(i),l,u),d={};for(let g of h)d[g]=i[g];return d},s.some=(i,l,u)=>{let h=[].concat(i);for(let d of[].concat(l)){let g=n(String(d),u);if(h.some(m=>g(m)))return!0}return!1},s.every=(i,l,u)=>{let h=[].concat(i);for(let d of[].concat(l)){let g=n(String(d),u);if(!h.every(m=>g(m)))return!1}return!0},s.all=(i,l,u)=>{if(typeof i!="string")throw new TypeError(`Expected a string: "${a.inspect(i)}"`);return[].concat(l).every(h=>n(h,u)(i))},s.capture=(i,l,u)=>{let h=c.isWindows(u),d=n.makeRe(String(i),{...u,capture:!0}).exec(h?c.toPosixSlashes(l):l);if(d)return d.slice(1).map(g=>g===void 0?"":g)},s.makeRe=(...i)=>n.makeRe(...i),s.scan=(...i)=>n.scan(...i),s.parse=(i,l)=>{let u=[];for(let h of[].concat(i||[]))for(let d of p(String(h),l))u.push(n.parse(d,l));return u},s.braces=(i,l)=>{if(typeof i!="string")throw new TypeError("Expected a string");return l&&l.nobrace===!0||!t(i)?[i]:p(i,l)},s.braceExpand=(i,l)=>{if(typeof i!="string")throw new TypeError("Expected a string");return s.braces(i,{...l,expand:!0})},s.hasBraces=t,r.exports=s}),MT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAbsolute=e.partitionAbsoluteAndRelative=e.removeDuplicateSlashes=e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=require("path"),a=wT(),p=DT(),n="**",c="\\",o=/[*?]|^!/,t=/\[[^[]*]/,s=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,i=/[!*+?@]\([^(]*\)/,l=/,|\.\./,u=/(?!^)\/{2,}/g;function h(D,T={}){return!d(D,T)}se(h,"isStaticPattern"),e.isStaticPattern=h;function d(D,T={}){return D===""?!1:!!(T.caseSensitiveMatch===!1||D.includes(c)||o.test(D)||t.test(D)||s.test(D)||T.extglob!==!1&&i.test(D)||T.braceExpansion!==!1&&g(D))}se(d,"isDynamicPattern"),e.isDynamicPattern=d;function g(D){let T=D.indexOf("{");if(T===-1)return!1;let C=D.indexOf("}",T+1);if(C===-1)return!1;let Z=D.slice(T,C);return l.test(Z)}se(g,"hasBraceExpansion");function m(D){return y(D)?D.slice(1):D}se(m,"convertToPositivePattern"),e.convertToPositivePattern=m;function f(D){return"!"+D}se(f,"convertToNegativePattern"),e.convertToNegativePattern=f;function y(D){return D.startsWith("!")&&D[1]!=="("}se(y,"isNegativePattern"),e.isNegativePattern=y;function S(D){return!y(D)}se(S,"isPositivePattern"),e.isPositivePattern=S;function E(D){return D.filter(y)}se(E,"getNegativePatterns"),e.getNegativePatterns=E;function b(D){return D.filter(S)}se(b,"getPositivePatterns"),e.getPositivePatterns=b;function _(D){return D.filter(T=>!O(T))}se(_,"getPatternsInsideCurrentDirectory"),e.getPatternsInsideCurrentDirectory=_;function w(D){return D.filter(O)}se(w,"getPatternsOutsideCurrentDirectory"),e.getPatternsOutsideCurrentDirectory=w;function O(D){return D.startsWith("..")||D.startsWith("./..")}se(O,"isPatternRelatedToParentDirectory"),e.isPatternRelatedToParentDirectory=O;function R(D){return a(D,{flipBackslashes:!1})}se(R,"getBaseDirectory"),e.getBaseDirectory=R;function I(D){return D.includes(n)}se(I,"hasGlobStar"),e.hasGlobStar=I;function P(D){return D.endsWith("/"+n)}se(P,"endsWithSlashGlobStar"),e.endsWithSlashGlobStar=P;function L(D){let T=r.basename(D);return P(D)||h(T)}se(L,"isAffectDepthOfReadingPattern"),e.isAffectDepthOfReadingPattern=L;function M(D){return D.reduce((T,C)=>T.concat(x(C)),[])}se(M,"expandPatternsWithBraceExpansion"),e.expandPatternsWithBraceExpansion=M;function x(D){let T=p.braces(D,{expand:!0,nodupes:!0,keepEscaping:!0});return T.sort((C,Z)=>C.length-Z.length),T.filter(C=>C!=="")}se(x,"expandBraceExpansion"),e.expandBraceExpansion=x;function j(D,T){let{parts:C}=p.scan(D,Object.assign(Object.assign({},T),{parts:!0}));return C.length===0&&(C=[D]),C[0].startsWith("/")&&(C[0]=C[0].slice(1),C.unshift("")),C}se(j,"getPatternParts"),e.getPatternParts=j;function U(D,T){return p.makeRe(D,T)}se(U,"makeRe"),e.makeRe=U;function V(D,T){return D.map(C=>U(C,T))}se(V,"convertPatternsToRe"),e.convertPatternsToRe=V;function B(D,T){return T.some(C=>C.test(D))}se(B,"matchAny"),e.matchAny=B;function G(D){return D.replace(u,"/")}se(G,"removeDuplicateSlashes"),e.removeDuplicateSlashes=G;function W(D){let T=[],C=[];for(let Z of D)N(Z)?T.push(Z):C.push(Z);return[T,C]}se(W,"partitionAbsoluteAndRelative"),e.partitionAbsoluteAndRelative=W;function N(D){return r.isAbsolute(D)}se(N,"isAbsolute"),e.isAbsolute=N}),jT=ve((e,r)=>{"use strict";var a=require("stream"),p=a.PassThrough,n=Array.prototype.slice;r.exports=c;function c(){let t=[],s=n.call(arguments),i=!1,l=s[s.length-1];l&&!Array.isArray(l)&&l.pipe==null?s.pop():l={};let u=l.end!==!1,h=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=p(l);function g(){for(let y=0,S=arguments.length;y<S;y++)t.push(o(arguments[y],l));return m(),this}se(g,"addStream");function m(){if(i)return;i=!0;let y=t.shift();if(!y){process.nextTick(f);return}Array.isArray(y)||(y=[y]);let S=y.length+1;function E(){--S>0||(i=!1,m())}se(E,"next");function b(_){function w(){_.removeListener("merge2UnpipeEnd",w),_.removeListener("end",w),h&&_.removeListener("error",O),E()}se(w,"onend");function O(R){d.emit("error",R)}if(se(O,"onerror"),_._readableState.endEmitted)return E();_.on("merge2UnpipeEnd",w),_.on("end",w),h&&_.on("error",O),_.pipe(d,{end:!1}),_.resume()}se(b,"pipe");for(let _=0;_<y.length;_++)b(y[_]);E()}se(m,"mergeStream");function f(){i=!1,d.emit("queueDrain"),u&&d.end()}return se(f,"endStream"),d.setMaxListeners(0),d.add=g,d.on("unpipe",function(y){y.emit("merge2UnpipeEnd")}),s.length&&g.apply(null,s),d}se(c,"merge2");function o(t,s){if(Array.isArray(t))for(let i=0,l=t.length;i<l;i++)t[i]=o(t[i],s);else{if(!t._readableState&&t.pipe&&(t=t.pipe(p(s))),!t._readableState||!t.pause||!t.pipe)throw new Error("Only readable stream can be merged.");t.pause()}return t}se(o,"pauseStreams")}),$T=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=jT();function a(n){let c=r(n);return n.forEach(o=>{o.once("error",t=>c.emit("error",t))}),c.once("close",()=>p(n)),c.once("end",()=>p(n)),c}se(a,"merge"),e.merge=a;function p(n){n.forEach(c=>c.emit("close"))}se(p,"propagateCloseEventToSources")}),BT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(p){return typeof p=="string"}se(r,"isString"),e.isString=r;function a(p){return p===""}se(a,"isEmpty"),e.isEmpty=a}),It=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=vT();e.array=r;var a=ST();e.errno=a;var p=ET();e.fs=p;var n=bT();e.path=n;var c=MT();e.pattern=c;var o=$T();e.stream=o;var t=BT();e.string=t}),UT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=It();function a(l,u){let h=p(l,u),d=p(u.ignore,u),g=c(h),m=o(h,d),f=g.filter(b=>r.pattern.isStaticPattern(b,u)),y=g.filter(b=>r.pattern.isDynamicPattern(b,u)),S=n(f,m,!1),E=n(y,m,!0);return S.concat(E)}se(a,"generate"),e.generate=a;function p(l,u){let h=l;return u.braceExpansion&&(h=r.pattern.expandPatternsWithBraceExpansion(h)),u.baseNameMatch&&(h=h.map(d=>d.includes("/")?d:`**/${d}`)),h.map(d=>r.pattern.removeDuplicateSlashes(d))}se(p,"processPatterns");function n(l,u,h){let d=[],g=r.pattern.getPatternsOutsideCurrentDirectory(l),m=r.pattern.getPatternsInsideCurrentDirectory(l),f=t(g),y=t(m);return d.push(...s(f,u,h)),"."in y?d.push(i(".",m,u,h)):d.push(...s(y,u,h)),d}se(n,"convertPatternsToTasks"),e.convertPatternsToTasks=n;function c(l){return r.pattern.getPositivePatterns(l)}se(c,"getPositivePatterns"),e.getPositivePatterns=c;function o(l,u){return r.pattern.getNegativePatterns(l).concat(u).map(r.pattern.convertToPositivePattern)}se(o,"getNegativePatternsAsPositive"),e.getNegativePatternsAsPositive=o;function t(l){let u={};return l.reduce((h,d)=>{let g=r.pattern.getBaseDirectory(d);return g in h?h[g].push(d):h[g]=[d],h},u)}se(t,"groupPatternsByBaseDirectory"),e.groupPatternsByBaseDirectory=t;function s(l,u,h){return Object.keys(l).map(d=>i(d,l[d],u,h))}se(s,"convertPatternGroupsToTasks"),e.convertPatternGroupsToTasks=s;function i(l,u,h,d){return{dynamic:d,positive:u,negative:h,base:l,patterns:[].concat(u,h.map(r.pattern.convertToNegativePattern))}}se(i,"convertPatternGroupToTask"),e.convertPatternGroupToTask=i}),FT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(n,c,o){c.fs.lstat(n,(t,s)=>{if(t!==null){a(o,t);return}if(!s.isSymbolicLink()||!c.followSymbolicLink){p(o,s);return}c.fs.stat(n,(i,l)=>{if(i!==null){if(c.throwErrorOnBrokenSymbolicLink){a(o,i);return}p(o,s);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),p(o,l)})})}se(r,"read"),e.read=r;function a(n,c){n(c)}se(a,"callFailureCallback");function p(n,c){n(null,c)}se(p,"callSuccessCallback")}),HT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(a,p){let n=p.fs.lstatSync(a);if(!n.isSymbolicLink()||!p.followSymbolicLink)return n;try{let c=p.fs.statSync(a);return p.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!p.throwErrorOnBrokenSymbolicLink)return n;throw c}}se(r,"read"),e.read=r}),GT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function a(p){return p===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),p)}se(a,"createFileSystemAdapter"),e.createFileSystemAdapter=a}),VT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=GT(),a=class{static{se(this,"Settings")}constructor(p={}){this._options=p,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(p,n){return p??n}};e.default=a}),ar=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=FT(),a=HT(),p=VT();e.Settings=p.default;function n(t,s,i){if(typeof s=="function"){r.read(t,o(),s);return}r.read(t,o(s),i)}se(n,"stat"),e.stat=n;function c(t,s){let i=o(s);return a.read(t,i)}se(c,"statSync"),e.statSync=c;function o(t={}){return t instanceof p.default?t:new p.default(t)}se(o,"getSettings")}),WT=ve((e,r)=>{var a;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(global):p=>(a||(a=Promise.resolve())).then(p).catch(n=>setTimeout(()=>{throw n},0))}),zT=ve((e,r)=>{r.exports=p;var a=WT();function p(n,c){let o,t,s,i=!0;Array.isArray(n)?(o=[],t=n.length):(s=Object.keys(n),o={},t=s.length);function l(h){function d(){c&&c(h,o),c=null}se(d,"end"),i?a(d):d()}se(l,"done");function u(h,d,g){o[h]=g,(--t===0||d)&&l(d)}se(u,"each"),t?s?s.forEach(function(h){n[h](function(d,g){u(h,d,g)})}):n.forEach(function(h,d){h(function(g,m){u(d,g,m)})}):l(null),i=!1}se(p,"runParallel")}),yd=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var a=Number.parseInt(r[0],10),p=Number.parseInt(r[1],10),n=10,c=10,o=a>n,t=a===n&&p>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=o||t}),qT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{static{se(this,"DirentFromStats")}constructor(p,n){this.name=p,this.isBlockDevice=n.isBlockDevice.bind(n),this.isCharacterDevice=n.isCharacterDevice.bind(n),this.isDirectory=n.isDirectory.bind(n),this.isFIFO=n.isFIFO.bind(n),this.isFile=n.isFile.bind(n),this.isSocket=n.isSocket.bind(n),this.isSymbolicLink=n.isSymbolicLink.bind(n)}};function a(p,n){return new r(p,n)}se(a,"createDirentFromStats"),e.createDirentFromStats=a}),vd=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=qT();e.fs=r}),Sd=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(a,p,n){return a.endsWith(n)?a+p:a+n+p}se(r,"joinPathSegments"),e.joinPathSegments=r}),KT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=ar(),a=zT(),p=yd(),n=vd(),c=Sd();function o(h,d,g){if(!d.stats&&p.IS_SUPPORT_READDIR_WITH_FILE_TYPES){t(h,d,g);return}i(h,d,g)}se(o,"read"),e.read=o;function t(h,d,g){d.fs.readdir(h,{withFileTypes:!0},(m,f)=>{if(m!==null){l(g,m);return}let y=f.map(E=>({dirent:E,name:E.name,path:c.joinPathSegments(h,E.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){u(g,y);return}let S=y.map(E=>s(E,d));a(S,(E,b)=>{if(E!==null){l(g,E);return}u(g,b)})})}se(t,"readdirWithFileTypes"),e.readdirWithFileTypes=t;function s(h,d){return g=>{if(!h.dirent.isSymbolicLink()){g(null,h);return}d.fs.stat(h.path,(m,f)=>{if(m!==null){if(d.throwErrorOnBrokenSymbolicLink){g(m);return}g(null,h);return}h.dirent=n.fs.createDirentFromStats(h.name,f),g(null,h)})}}se(s,"makeRplTaskEntry");function i(h,d,g){d.fs.readdir(h,(m,f)=>{if(m!==null){l(g,m);return}let y=f.map(S=>{let E=c.joinPathSegments(h,S,d.pathSegmentSeparator);return b=>{r.stat(E,d.fsStatSettings,(_,w)=>{if(_!==null){b(_);return}let O={name:S,path:E,dirent:n.fs.createDirentFromStats(S,w)};d.stats&&(O.stats=w),b(null,O)})}});a(y,(S,E)=>{if(S!==null){l(g,S);return}u(g,E)})})}se(i,"readdir"),e.readdir=i;function l(h,d){h(d)}se(l,"callFailureCallback");function u(h,d){h(null,d)}se(u,"callSuccessCallback")}),JT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=ar(),a=yd(),p=vd(),n=Sd();function c(s,i){return!i.stats&&a.IS_SUPPORT_READDIR_WITH_FILE_TYPES?o(s,i):t(s,i)}se(c,"read"),e.read=c;function o(s,i){return i.fs.readdirSync(s,{withFileTypes:!0}).map(l=>{let u={dirent:l,name:l.name,path:n.joinPathSegments(s,l.name,i.pathSegmentSeparator)};if(u.dirent.isSymbolicLink()&&i.followSymbolicLinks)try{let h=i.fs.statSync(u.path);u.dirent=p.fs.createDirentFromStats(u.name,h)}catch(h){if(i.throwErrorOnBrokenSymbolicLink)throw h}return u})}se(o,"readdirWithFileTypes"),e.readdirWithFileTypes=o;function t(s,i){return i.fs.readdirSync(s).map(l=>{let u=n.joinPathSegments(s,l,i.pathSegmentSeparator),h=r.statSync(u,i.fsStatSettings),d={name:l,path:u,dirent:p.fs.createDirentFromStats(l,h)};return i.stats&&(d.stats=h),d})}se(t,"readdir"),e.readdir=t}),ZT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=require("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function a(p){return p===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),p)}se(a,"createFileSystemAdapter"),e.createFileSystemAdapter=a}),XT=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=ar(),p=ZT(),n=class{static{se(this,"Settings")}constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=p.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new a.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,o){return c??o}};e.default=n}),_a=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=KT(),a=JT(),p=XT();e.Settings=p.default;function n(t,s,i){if(typeof s=="function"){r.read(t,o(),s);return}r.read(t,o(s),i)}se(n,"scandir"),e.scandir=n;function c(t,s){let i=o(s);return a.read(t,i)}se(c,"scandirSync"),e.scandirSync=c;function o(t={}){return t instanceof p.default?t:new p.default(t)}se(o,"getSettings")}),YT=ve((e,r)=>{"use strict";function a(p){var n=new p,c=n;function o(){var s=n;return s.next?n=s.next:(n=new p,c=n),s.next=null,s}se(o,"get");function t(s){c.next=s,c=s}return se(t,"release"),{get:o,release:t}}se(a,"reusify"),r.exports=a}),QT=ve((e,r)=>{"use strict";var a=YT();function p(t,s,i){if(typeof t=="function"&&(i=s,s=t,t=null),!(i>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var l=a(c),u=null,h=null,d=0,g=null,m={push:w,drain:n,saturated:n,pause:y,paused:!1,get concurrency(){return i},set concurrency(M){if(!(M>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(i=M,!m.paused)for(;u&&d<i;)d++,R()},running:f,resume:b,idle:_,length:S,getQueue:E,unshift:O,empty:n,kill:I,killAndDrain:P,error:L};return m;function f(){return d}function y(){m.paused=!0}function S(){for(var M=u,x=0;M;)M=M.next,x++;return x}function E(){for(var M=u,x=[];M;)x.push(M.value),M=M.next;return x}function b(){if(m.paused){if(m.paused=!1,u===null){d++,R();return}for(;u&&d<i;)d++,R()}}function _(){return d===0&&m.length()===0}function w(M,x){var j=l.get();j.context=t,j.release=R,j.value=M,j.callback=x||n,j.errorHandler=g,d>=i||m.paused?h?(h.next=j,h=j):(u=j,h=j,m.saturated()):(d++,s.call(t,j.value,j.worked))}function O(M,x){var j=l.get();j.context=t,j.release=R,j.value=M,j.callback=x||n,j.errorHandler=g,d>=i||m.paused?u?(j.next=u,u=j):(u=j,h=j,m.saturated()):(d++,s.call(t,j.value,j.worked))}function R(M){M&&l.release(M);var x=u;x&&d<=i?m.paused?d--:(h===u&&(h=null),u=x.next,x.next=null,s.call(t,x.value,x.worked),h===null&&m.empty()):--d===0&&m.drain()}function I(){u=null,h=null,m.drain=n}function P(){u=null,h=null,m.drain(),m.drain=n}function L(M){g=M}}se(p,"fastqueue");function n(){}se(n,"noop");function c(){this.value=null,this.callback=n,this.next=null,this.release=n,this.context=null,this.errorHandler=null;var t=this;this.worked=se(function(s,i){var l=t.callback,u=t.errorHandler,h=t.value;t.value=null,t.callback=n,t.errorHandler&&u(s,h),l.call(t.context,s,i),t.release(t)},"worked")}se(c,"Task");function o(t,s,i){typeof t=="function"&&(i=s,s=t,t=null);function l(y,S){s.call(this,y).then(function(E){S(null,E)},S)}se(l,"asyncWrapper");var u=p(t,l,i),h=u.push,d=u.unshift;return u.push=g,u.unshift=m,u.drained=f,u;function g(y){var S=new Promise(function(E,b){h(y,function(_,w){if(_){b(_);return}E(w)})});return S.catch(n),S}function m(y){var S=new Promise(function(E,b){d(y,function(_,w){if(_){b(_);return}E(w)})});return S.catch(n),S}function f(){var y=new Promise(function(S){process.nextTick(function(){if(u.idle())S();else{var E=u.drain;u.drain=function(){typeof E=="function"&&E(),S(),u.drain=E}}})});return y}}se(o,"queueAsPromised"),r.exports=p,r.exports.promise=o}),wa=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,o){return c.errorFilter===null?!0:!c.errorFilter(o)}se(r,"isFatalError"),e.isFatalError=r;function a(c,o){return c===null||c(o)}se(a,"isAppliedFilter"),e.isAppliedFilter=a;function p(c,o){return c.split(/[/\\]/).join(o)}se(p,"replacePathSegmentSeparator"),e.replacePathSegmentSeparator=p;function n(c,o,t){return c===""?o:c.endsWith(t)?c+o:c+t+o}se(n,"joinPathSegments"),e.joinPathSegments=n}),Ed=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=wa(),a=class{static{se(this,"Reader")}constructor(p,n){this._root=p,this._settings=n,this._root=r.replacePathSegmentSeparator(p,n.pathSegmentSeparator)}};e.default=a}),bd=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("events"),a=_a(),p=QT(),n=wa(),c=Ed(),o=class extends c.default{static{se(this,"AsyncReader")}constructor(t,s){super(t,s),this._settings=s,this._scandir=a.scandir,this._emitter=new r.EventEmitter,this._queue=p(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,s){let i={directory:t,base:s};this._queue.push(i,l=>{l!==null&&this._handleError(l)})}_worker(t,s){this._scandir(t.directory,this._settings.fsScandirSettings,(i,l)=>{if(i!==null){s(i,void 0);return}for(let u of l)this._handleEntry(u,t.base);s(null,void 0)})}_handleError(t){this._isDestroyed||!n.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,s){if(this._isDestroyed||this._isFatalError)return;let i=t.path;s!==void 0&&(t.path=n.joinPathSegments(s,t.name,this._settings.pathSegmentSeparator)),n.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&n.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(i,s===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};e.default=o}),eP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=bd(),a=class{static{se(this,"AsyncProvider")}constructor(c,o){this._root=c,this._settings=o,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(o=>{p(c,o)}),this._reader.onEntry(o=>{this._storage.push(o)}),this._reader.onEnd(()=>{n(c,this._storage)}),this._reader.read()}};e.default=a;function p(c,o){c(o)}se(p,"callFailureCallback");function n(c,o){c(null,o)}se(n,"callSuccessCallback")}),tP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=bd(),p=class{static{se(this,"StreamProvider")}constructor(n,c){this._root=n,this._settings=c,this._reader=new a.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:se(()=>{},"read"),destroy:se(()=>{this._reader.isDestroyed||this._reader.destroy()},"destroy")})}read(){return this._reader.onError(n=>{this._stream.emit("error",n)}),this._reader.onEntry(n=>{this._stream.push(n)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=p}),rP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=_a(),a=wa(),p=Ed(),n=class extends p.default{static{se(this,"SyncReader")}constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,o){this._queue.add({directory:c,base:o})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,o){try{let t=this._scandir(c,this._settings.fsScandirSettings);for(let s of t)this._handleEntry(s,o)}catch(t){this._handleError(t)}}_handleError(c){if(a.isFatalError(this._settings,c))throw c}_handleEntry(c,o){let t=c.path;o!==void 0&&(c.path=a.joinPathSegments(o,c.name,this._settings.pathSegmentSeparator)),a.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&a.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(t,o===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=n}),sP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=rP(),a=class{static{se(this,"SyncProvider")}constructor(p,n){this._root=p,this._settings=n,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=a}),iP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=_a(),p=class{static{se(this,"Settings")}constructor(n={}){this._options=n,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new a.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(n,c){return n??c}};e.default=p}),Oa=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=eP(),a=tP(),p=sP(),n=iP();e.Settings=n.default;function c(i,l,u){if(typeof l=="function"){new r.default(i,s()).read(l);return}new r.default(i,s(l)).read(u)}se(c,"walk"),e.walk=c;function o(i,l){let u=s(l);return new p.default(i,u).read()}se(o,"walkSync"),e.walkSync=o;function t(i,l){let u=s(l);return new a.default(i,u).read()}se(t,"walkStream"),e.walkStream=t;function s(i={}){return i instanceof n.default?i:new n.default(i)}se(s,"getSettings")}),Aa=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=ar(),p=It(),n=class{static{se(this,"Reader")}constructor(c){this._settings=c,this._fsStatSettings=new a.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,o){let t={name:o,path:o,dirent:p.fs.createDirentFromStats(o,c)};return this._settings.stats&&(t.stats=c),t}_isFatalError(c){return!p.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=n}),_d=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=ar(),p=Oa(),n=Aa(),c=class extends n.default{static{se(this,"ReaderStream")}constructor(){super(...arguments),this._walkStream=p.walkStream,this._stat=a.stat}dynamic(o,t){return this._walkStream(o,t)}static(o,t){let s=o.map(this._getFullEntryPath,this),i=new r.PassThrough({objectMode:!0});i._write=(l,u,h)=>this._getEntry(s[l],o[l],t).then(d=>{d!==null&&t.entryFilter(d)&&i.push(d),l===s.length-1&&i.end(),h()}).catch(h);for(let l=0;l<s.length;l++)i.write(l);return i}_getEntry(o,t,s){return this._getStat(o).then(i=>this._makeEntry(i,t)).catch(i=>{if(s.errorFilter(i))return null;throw i})}_getStat(o){return new Promise((t,s)=>{this._stat(o,this._fsStatSettings,(i,l)=>i===null?t(l):s(i))})}};e.default=c}),nP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Oa(),a=Aa(),p=_d(),n=class extends a.default{static{se(this,"ReaderAsync")}constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new p.default(this._settings)}dynamic(c,o){return new Promise((t,s)=>{this._walkAsync(c,o,(i,l)=>{i===null?t(l):s(i)})})}async static(c,o){let t=[],s=this._readerStream.static(c,o);return new Promise((i,l)=>{s.once("error",l),s.on("data",u=>t.push(u)),s.once("end",()=>i(t))})}};e.default=n}),oP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=It(),a=class{static{se(this,"Matcher")}constructor(p,n,c){this._patterns=p,this._settings=n,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){for(let p of this._patterns){let n=this._getPatternSegments(p),c=this._splitSegmentsIntoSections(n);this._storage.push({complete:c.length<=1,pattern:p,segments:n,sections:c})}}_getPatternSegments(p){return r.pattern.getPatternParts(p,this._micromatchOptions).map(n=>r.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:r.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(p){return r.array.splitWhen(p,n=>n.dynamic&&r.pattern.hasGlobStar(n.pattern))}};e.default=a}),aP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=oP(),a=class extends r.default{static{se(this,"PartialMatcher")}match(p){let n=p.split("/"),c=n.length,o=this._storage.filter(t=>!t.complete||t.segments.length>c);for(let t of o){let s=t.sections[0];if(!t.complete&&c>s.length||n.every((i,l)=>{let u=t.segments[l];return!!(u.dynamic&&u.patternRe.test(i)||!u.dynamic&&u.pattern===i)}))return!0}return!1}};e.default=a}),lP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=It(),a=aP(),p=class{static{se(this,"DeepFilter")}constructor(n,c){this._settings=n,this._micromatchOptions=c}getFilter(n,c,o){let t=this._getMatcher(c),s=this._getNegativePatternsRe(o);return i=>this._filter(n,i,t,s)}_getMatcher(n){return new a.default(n,this._settings,this._micromatchOptions)}_getNegativePatternsRe(n){let c=n.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(n,c,o,t){if(this._isSkippedByDeep(n,c.path)||this._isSkippedSymbolicLink(c))return!1;let s=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(s,o)?!1:this._isSkippedByNegativePatterns(s,t)}_isSkippedByDeep(n,c){return this._settings.deep===1/0?!1:this._getEntryLevel(n,c)>=this._settings.deep}_getEntryLevel(n,c){let o=c.split("/").length;if(n==="")return o;let t=n.split("/").length;return o-t}_isSkippedSymbolicLink(n){return!this._settings.followSymbolicLinks&&n.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(n,c){return!this._settings.baseNameMatch&&!c.match(n)}_isSkippedByNegativePatterns(n,c){return!r.pattern.matchAny(n,c)}};e.default=p}),cP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=It(),a=class{static{se(this,"EntryFilter")}constructor(p,n){this._settings=p,this._micromatchOptions=n,this.index=new Map}getFilter(p,n){let[c,o]=r.pattern.partitionAbsoluteAndRelative(n),t={positive:{all:r.pattern.convertPatternsToRe(p,this._micromatchOptions)},negative:{absolute:r.pattern.convertPatternsToRe(c,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:r.pattern.convertPatternsToRe(o,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return s=>this._filter(s,t)}_filter(p,n){let c=r.path.removeLeadingDotSegment(p.path);if(this._settings.unique&&this._isDuplicateEntry(c)||this._onlyFileFilter(p)||this._onlyDirectoryFilter(p))return!1;let o=this._isMatchToPatternsSet(c,n,p.dirent.isDirectory());return this._settings.unique&&o&&this._createIndexRecord(c),o}_isDuplicateEntry(p){return this.index.has(p)}_createIndexRecord(p){this.index.set(p,void 0)}_onlyFileFilter(p){return this._settings.onlyFiles&&!p.dirent.isFile()}_onlyDirectoryFilter(p){return this._settings.onlyDirectories&&!p.dirent.isDirectory()}_isMatchToPatternsSet(p,n,c){return!(!this._isMatchToPatterns(p,n.positive.all,c)||this._isMatchToPatterns(p,n.negative.relative,c)||this._isMatchToAbsoluteNegative(p,n.negative.absolute,c))}_isMatchToAbsoluteNegative(p,n,c){if(n.length===0)return!1;let o=r.path.makeAbsolute(this._settings.cwd,p);return this._isMatchToPatterns(o,n,c)}_isMatchToPatterns(p,n,c){if(n.length===0)return!1;let o=r.pattern.matchAny(p,n);return!o&&c?r.pattern.matchAny(p+"/",n):o}};e.default=a}),uP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=It(),a=class{static{se(this,"ErrorFilter")}constructor(p){this._settings=p}getFilter(){return p=>this._isNonFatalError(p)}_isNonFatalError(p){return r.errno.isEnoentCodeError(p)||this._settings.suppressErrors}};e.default=a}),hP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=It(),a=class{static{se(this,"EntryTransformer")}constructor(p){this._settings=p}getTransformer(){return p=>this._transform(p)}_transform(p){let n=p.path;return this._settings.absolute&&(n=r.path.makeAbsolute(this._settings.cwd,n),n=r.path.unixify(n)),this._settings.markDirectories&&p.dirent.isDirectory()&&(n+="/"),this._settings.objectMode?Object.assign(Object.assign({},p),{path:n}):n}};e.default=a}),Ra=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("path"),a=lP(),p=cP(),n=uP(),c=hP(),o=class{static{se(this,"Provider")}constructor(t){this._settings=t,this.errorFilter=new n.default(this._settings),this.entryFilter=new p.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new a.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(t){return r.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let s=t.base==="."?"":t.base;return{basePath:s,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(s,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=o}),pP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=nP(),a=Ra(),p=class extends a.default{static{se(this,"ProviderAsync")}constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(n){let c=this._getRootDirectory(n),o=this._getReaderOptions(n);return(await this.api(c,n,o)).map(t=>o.transform(t))}api(n,c,o){return c.dynamic?this._reader.dynamic(n,o):this._reader.static(c.patterns,o)}};e.default=p}),dP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=require("stream"),a=_d(),p=Ra(),n=class extends p.default{static{se(this,"ProviderStream")}constructor(){super(...arguments),this._reader=new a.default(this._settings)}read(c){let o=this._getRootDirectory(c),t=this._getReaderOptions(c),s=this.api(o,c,t),i=new r.Readable({objectMode:!0,read:se(()=>{},"read")});return s.once("error",l=>i.emit("error",l)).on("data",l=>i.emit("data",t.transform(l))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(c,o,t){return o.dynamic?this._reader.dynamic(c,t):this._reader.static(o.patterns,t)}};e.default=n}),fP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=ar(),a=Oa(),p=Aa(),n=class extends p.default{static{se(this,"ReaderSync")}constructor(){super(...arguments),this._walkSync=a.walkSync,this._statSync=r.statSync}dynamic(c,o){return this._walkSync(c,o)}static(c,o){let t=[];for(let s of c){let i=this._getFullEntryPath(s),l=this._getEntry(i,s,o);l===null||!o.entryFilter(l)||t.push(l)}return t}_getEntry(c,o,t){try{let s=this._getStat(c);return this._makeEntry(s,o)}catch(s){if(t.errorFilter(s))return null;throw s}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=n}),gP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=fP(),a=Ra(),p=class extends a.default{static{se(this,"ProviderSync")}constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(n){let c=this._getRootDirectory(n),o=this._getReaderOptions(n);return this.api(c,n,o).map(o.transform)}api(n,c,o){return c.dynamic?this._reader.dynamic(n,o):this._reader.static(c.patterns,o)}};e.default=p}),mP=ve(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=require("fs"),a=require("os"),p=Math.max(a.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var n=class{static{se(this,"Settings")}constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,p),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(c,o){return c===void 0?o:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=n}),wd=ve((e,r)=>{"use strict";var a=UT(),p=pP(),n=dP(),c=gP(),o=mP(),t=It();async function s(u,h){l(u);let d=i(u,p.default,h),g=await Promise.all(d);return t.array.flatten(g)}se(s,"FastGlob"),function(u){u.glob=u,u.globSync=h,u.globStream=d,u.async=u;function h(b,_){l(b);let w=i(b,c.default,_);return t.array.flatten(w)}se(h,"sync"),u.sync=h;function d(b,_){l(b);let w=i(b,n.default,_);return t.stream.merge(w)}se(d,"stream"),u.stream=d;function g(b,_){l(b);let w=[].concat(b),O=new o.default(_);return a.generate(w,O)}se(g,"generateTasks"),u.generateTasks=g;function m(b,_){l(b);let w=new o.default(_);return t.pattern.isDynamicPattern(b,w)}se(m,"isDynamicPattern"),u.isDynamicPattern=m;function f(b){return l(b),t.path.escape(b)}se(f,"escapePath"),u.escapePath=f;function y(b){return l(b),t.path.convertPathToPattern(b)}se(y,"convertPathToPattern"),u.convertPathToPattern=y;let S;(function(b){function _(O){return l(O),t.path.escapePosixPath(O)}se(_,"escapePath"),b.escapePath=_;function w(O){return l(O),t.path.convertPosixPathToPattern(O)}se(w,"convertPathToPattern"),b.convertPathToPattern=w})(S=u.posix||(u.posix={}));let E;(function(b){function _(O){return l(O),t.path.escapeWindowsPath(O)}se(_,"escapePath"),b.escapePath=_;function w(O){return l(O),t.path.convertWindowsPathToPattern(O)}se(w,"convertPathToPattern"),b.convertPathToPattern=w})(E=u.win32||(u.win32={}))}(s||(s={}));function i(u,h,d){let g=[].concat(u),m=new o.default(d),f=a.generate(g,m),y=new h(m);return f.map(y.read,y)}se(i,"getWorks");function l(u){if(![].concat(u).every(h=>t.string.isString(h)&&!t.string.isEmpty(h)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}se(l,"assertPatternsInput"),r.exports=s}),yP=ve((e,r)=>{function a(Q){return Array.isArray(Q)?Q:[Q]}se(a,"makeArray");var p=void 0,n="",c=" ",o="\\",t=/^\s+$/,s=/(?:[^\\]|^)\\$/,i=/^\\!/,l=/^\\#/,u=/\r?\n/g,h=/^\.{0,2}\/|^\.{1,2}$/,d=/\/$/,g="/",m="node-ignore";typeof Symbol<"u"&&(m=Symbol.for("node-ignore"));var f=m,y=se((Q,k,F)=>(Object.defineProperty(Q,k,{value:F}),F),"define"),S=/([0-z])-([0-z])/g,E=se(()=>!1,"RETURN_FALSE"),b=se(Q=>Q.replace(S,(k,F,z)=>F.charCodeAt(0)<=z.charCodeAt(0)?k:n),"sanitizeRange"),_=se(Q=>{let{length:k}=Q;return Q.slice(0,k-k%2)},"cleanRangeBackSlash"),w=[[/^\uFEFF/,()=>n],[/((?:\\\\)*?)(\\?\s+)$/,(Q,k,F)=>k+(F.indexOf("\\")===0?c:n)],[/(\\+?)\s/g,(Q,k)=>{let{length:F}=k;return k.slice(0,F-F%2)+c}],[/[\\$.|*+(){^]/g,Q=>`\\${Q}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,se(function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"},"startingReplacer")],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Q,k,F)=>k+6<F.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Q,k,F)=>{let z=F.replace(/\\\*/g,"[^\\/]*");return k+z}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Q,k,F,z,$)=>k===o?`\\[${F}${_(z)}${$}`:$==="]"&&z.length%2===0?`[${b(F)}${z}]`:"[]"],[/(?:[^*])$/,Q=>/\/$/.test(Q)?`${Q}$`:`${Q}(?=$|\\/$)`]],O=/(^|\\\/)?\\\*$/,R="regex",I="checkRegex",P="_",L={[R](Q,k){return`${k?`${k}[^/]+`:"[^/]*"}(?=$|\\/$)`},[I](Q,k){return`${k?`${k}[^/]*`:"[^/]*"}(?=$|\\/$)`}},M=se(Q=>w.reduce((k,[F,z])=>k.replace(F,z.bind(Q)),Q),"makeRegexPrefix"),x=se(Q=>typeof Q=="string","isString"),j=se(Q=>Q&&x(Q)&&!t.test(Q)&&!s.test(Q)&&Q.indexOf("#")!==0,"checkPattern"),U=se(Q=>Q.split(u).filter(Boolean),"splitPattern"),V=class{static{se(this,"IgnoreRule")}constructor(Q,k,F,z,$,q){this.pattern=Q,this.mark=k,this.negative=$,y(this,"body",F),y(this,"ignoreCase",z),y(this,"regexPrefix",q)}get regex(){let Q=P+R;return this[Q]?this[Q]:this._make(R,Q)}get checkRegex(){let Q=P+I;return this[Q]?this[Q]:this._make(I,Q)}_make(Q,k){let F=this.regexPrefix.replace(O,L[Q]),z=this.ignoreCase?new RegExp(F,"i"):new RegExp(F);return y(this,k,z)}},B=se(({pattern:Q,mark:k},F)=>{let z=!1,$=Q;$.indexOf("!")===0&&(z=!0,$=$.substr(1)),$=$.replace(i,"!").replace(l,"#");let q=M($);return new V(Q,k,$,F,z,q)},"createRule"),G=class{static{se(this,"RuleManager")}constructor(Q){this._ignoreCase=Q,this._rules=[]}_add(Q){if(Q&&Q[f]){this._rules=this._rules.concat(Q._rules._rules),this._added=!0;return}if(x(Q)&&(Q={pattern:Q}),j(Q.pattern)){let k=B(Q,this._ignoreCase);this._added=!0,this._rules.push(k)}}add(Q){return this._added=!1,a(x(Q)?U(Q):Q).forEach(this._add,this),this._added}test(Q,k,F){let z=!1,$=!1,q;this._rules.forEach(Y=>{let{negative:A}=Y;$===A&&z!==$||A&&!z&&!$&&!k||!Y[F].test(Q)||(z=!A,$=A,q=A?p:Y)});let J={ignored:z,unignored:$};return q&&(J.rule=q),J}},W=se((Q,k)=>{throw new k(Q)},"throwError"),N=se((Q,k,F)=>x(Q)?Q?N.isNotRelative(Q)?F(`path should be a \`path.relative()\`d string, but got "${k}"`,RangeError):!0:F("path must not be empty",TypeError):F(`path must be a string, but got \`${k}\``,TypeError),"checkPath"),D=se(Q=>h.test(Q),"isNotRelative");N.isNotRelative=D,N.convert=Q=>Q;var T=class{static{se(this,"Ignore")}constructor({ignorecase:Q=!0,ignoreCase:k=Q,allowRelativePaths:F=!1}={}){y(this,f,!0),this._rules=new G(k),this._strictPathCheck=!F,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Q){return this._rules.add(Q)&&this._initCache(),this}addPattern(Q){return this.add(Q)}_test(Q,k,F,z){let $=Q&&N.convert(Q);return N($,Q,this._strictPathCheck?W:E),this._t($,k,F,z)}checkIgnore(Q){if(!d.test(Q))return this.test(Q);let k=Q.split(g).filter(Boolean);if(k.pop(),k.length){let F=this._t(k.join(g)+g,this._testCache,!0,k);if(F.ignored)return F}return this._rules.test(Q,!1,I)}_t(Q,k,F,z){if(Q in k)return k[Q];if(z||(z=Q.split(g).filter(Boolean)),z.pop(),!z.length)return k[Q]=this._rules.test(Q,F,R);let $=this._t(z.join(g)+g,k,F,z);return k[Q]=$.ignored?$:this._rules.test(Q,F,R)}ignores(Q){return this._test(Q,this._ignoreCache,!1).ignored}createFilter(){return Q=>!this.ignores(Q)}filter(Q){return a(Q).filter(this.createFilter())}test(Q){return this._test(Q,this._testCache,!0)}},C=se(Q=>new T(Q),"factory"),Z=se(Q=>N(Q&&N.convert(Q),Q,E),"isPathValid"),X=se(()=>{let Q=se(F=>/^\\\\\?\\/.test(F)||/["<>|\u0000-\u001F]+/u.test(F)?F:F.replace(/\\/g,"/"),"makePosix");N.convert=Q;let k=/^[a-z]:\//i;N.isNotRelative=F=>k.test(F)||D(F)},"setupWindows");typeof process<"u"&&process.platform==="win32"&&X(),r.exports=C,C.default=C,r.exports.isPathValid=Z,y(r.exports,Symbol.for("setupWindows"),X)}),Od={};mT(Od,{deleteAsync:()=>Qd,deleteSync:()=>ef});tf.exports=yT(Od);var vP=Le(require("node:fs"),1),SP=Le(require("node:fs/promises"),1),Ad=Le(require("node:path"),1),Ca=Le(require("node:process"),1),Rd=Le(require("node:process"),1),EP=Le(require("node:fs"),1),ir=Le(require("node:path"),1),Cd=require("node:events"),bP=require("node:stream"),Id=require("node:stream/promises");function Td(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(let n of e)va(n);let r=e.some(({readableObjectMode:n})=>n),a=_P(e,r),p=new wP({objectMode:r,writableHighWaterMark:a,readableHighWaterMark:a});for(let n of e)p.add(n);return e.length===0&&Nd(p),p}se(Td,"mergeStreams");var _P=se((e,r)=>{if(e.length===0)return 16384;let a=e.filter(({readableObjectMode:p})=>p===r).map(({readableHighWaterMark:p})=>p);return Math.max(...a)},"getHighWaterMark"),wP=class extends bP.PassThrough{static{se(this,"MergedStream")}#e=new Set([]);#t=new Set([]);#r=new Set([]);#s;add(e){va(e),!this.#e.has(e)&&(this.#e.add(e),this.#s??=OP(this,this.#e),CP({passThroughStream:this,stream:e,streams:this.#e,ended:this.#t,aborted:this.#r,onFinished:this.#s}),e.pipe(this,{end:!1}))}remove(e){return va(e),this.#e.has(e)?(e.unpipe(this),!0):!1}},OP=se(async(e,r)=>{ai(e,ad);let a=new AbortController;try{await Promise.race([AP(e,a),RP(e,r,a)])}finally{a.abort(),ai(e,-ad)}},"onMergedStreamFinished"),AP=se(async(e,{signal:r})=>{await(0,Id.finished)(e,{signal:r,cleanup:!0})},"onMergedStreamEnd"),RP=se(async(e,r,{signal:a})=>{for await(let[p]of(0,Cd.on)(e,"unpipe",{signal:a}))r.has(p)&&p.emit(xd)},"onInputStreamsUnpipe"),va=se(e=>{if(typeof e?.pipe!="function")throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},"validateStream"),CP=se(async({passThroughStream:e,stream:r,streams:a,ended:p,aborted:n,onFinished:c})=>{ai(e,ld);let o=new AbortController;try{await Promise.race([IP(c,r),TP({passThroughStream:e,stream:r,streams:a,ended:p,aborted:n,controller:o}),PP({stream:r,streams:a,ended:p,aborted:n,controller:o})])}finally{o.abort(),ai(e,-ld)}a.size===p.size+n.size&&(p.size===0&&n.size>0?Sa(e):Nd(e))},"endWhenStreamsDone"),Pd=se(e=>e?.code==="ERR_STREAM_PREMATURE_CLOSE","isAbortError"),IP=se(async(e,r)=>{try{await e,Sa(r)}catch(a){Pd(a)?Sa(r):kd(r,a)}},"afterMergedStreamFinished"),TP=se(async({passThroughStream:e,stream:r,streams:a,ended:p,aborted:n,controller:{signal:c}})=>{try{await(0,Id.finished)(r,{signal:c,cleanup:!0,readable:!0,writable:!1}),a.has(r)&&p.add(r)}catch(o){if(c.aborted||!a.has(r))return;Pd(o)?n.add(r):kd(e,o)}},"onInputStreamEnd"),PP=se(async({stream:e,streams:r,ended:a,aborted:p,controller:{signal:n}})=>{await(0,Cd.once)(e,xd,{signal:n}),r.delete(e),a.delete(e),p.delete(e)},"onInputStreamUnpipe"),xd=Symbol("unpipe"),Nd=se(e=>{e.writable&&e.end()},"endStream"),Sa=se(e=>{(e.readable||e.writable)&&e.destroy()},"abortStream"),kd=se((e,r)=>{e.destroyed||(e.once("error",xP),e.destroy(r))},"errorStream"),xP=se(()=>{},"noop"),ai=se((e,r)=>{let a=e.getMaxListeners();a!==0&&a!==Number.POSITIVE_INFINITY&&e.setMaxListeners(a+r)},"updateMaxListeners"),ad=2,ld=1,Wr=Le(wd(),1),NP=Le(require("node:fs"),1),kP=Le(require("node:fs/promises"),1);async function ui(e,r,a){if(typeof a!="string")throw new TypeError(`Expected a string, got ${typeof a}`);try{return(await kP.default[e](a))[r]()}catch(p){if(p.code==="ENOENT")return!1;throw p}}se(ui,"isType");function hi(e,r,a){if(typeof a!="string")throw new TypeError(`Expected a string, got ${typeof a}`);try{return NP.default[e](a)[r]()}catch(p){if(p.code==="ENOENT")return!1;throw p}}se(hi,"isTypeSync");var Z2=ui.bind(void 0,"stat","isFile"),LP=ui.bind(void 0,"stat","isDirectory"),X2=ui.bind(void 0,"lstat","isSymbolicLink"),Y2=hi.bind(void 0,"statSync","isFile"),DP=hi.bind(void 0,"statSync","isDirectory"),Q2=hi.bind(void 0,"lstatSync","isSymbolicLink"),MP=require("node:util"),jP=require("node:child_process"),eU=Le(require("node:path"),1),$P=require("node:url"),tU=(0,MP.promisify)(jP.execFile);function pi(e){return e instanceof URL?(0,$P.fileURLToPath)(e):e}se(pi,"toPath");var rU=10*1024*1024,BP=Le(require("node:process"),1),UP=Le(require("node:fs"),1),FP=Le(require("node:fs/promises"),1),nr=Le(require("node:path"),1),Ld=Le(wd(),1),HP=Le(yP(),1);function or(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}se(or,"slash");var Ia=se(e=>e[0]==="!","isNegativePattern"),GP=["**/node_modules","**/flow-typed","**/coverage","**/.git"],Dd={absolute:!0,dot:!0},VP="**/.gitignore",WP=se((e,r)=>Ia(e)?"!"+nr.default.posix.join(r,e.slice(1)):nr.default.posix.join(r,e),"applyBaseToPattern"),zP=se((e,r)=>{let a=or(nr.default.relative(r,nr.default.dirname(e.filePath)));return e.content.split(/\r?\n/).filter(p=>p&&!p.startsWith("#")).map(p=>WP(p,a))},"parseIgnoreFile"),qP=se((e,r)=>{if(r=or(r),nr.default.isAbsolute(e)){if(or(e).startsWith(r))return nr.default.relative(r,e);throw new Error(`Path ${e} is not in cwd ${r}`)}return e},"toRelativePath"),Md=se((e,r)=>{let a=e.flatMap(n=>zP(n,r)),p=(0,HP.default)().add(a);return n=>(n=pi(n),n=qP(n,r),n?p.ignores(or(n)):!1)},"getIsIgnoredPredicate"),jd=se((e={})=>({cwd:pi(e.cwd)??BP.default.cwd(),suppressErrors:!!e.suppressErrors,deep:typeof e.deep=="number"?e.deep:Number.POSITIVE_INFINITY,ignore:[...e.ignore??[],...GP]}),"normalizeOptions"),KP=se(async(e,r)=>{let{cwd:a,suppressErrors:p,deep:n,ignore:c}=jd(r),o=await(0,Ld.default)(e,{cwd:a,suppressErrors:p,deep:n,ignore:c,...Dd}),t=await Promise.all(o.map(async s=>({filePath:s,content:await FP.default.readFile(s,"utf8")})));return Md(t,a)},"isIgnoredByIgnoreFiles"),JP=se((e,r)=>{let{cwd:a,suppressErrors:p,deep:n,ignore:c}=jd(r),o=Ld.default.sync(e,{cwd:a,suppressErrors:p,deep:n,ignore:c,...Dd}).map(t=>({filePath:t,content:UP.default.readFileSync(t,"utf8")}));return Md(o,a)},"isIgnoredByIgnoreFilesSync"),ZP=se(e=>{if(e.some(r=>typeof r!="string"))throw new TypeError("Patterns must be a string or an array of strings")},"assertPatternsInput"),$d=se((e,r)=>{let a=Ia(e)?e.slice(1):e;return ir.default.isAbsolute(a)?a:ir.default.join(r,a)},"normalizePathForDirectoryGlob"),Bd=se(({directoryPath:e,files:r,extensions:a})=>{let p=a?.length>0?`.${a.length>1?`{${a.join(",")}}`:a[0]}`:"";return r?r.map(n=>ir.default.posix.join(e,`**/${ir.default.extname(n)?n:`${n}${p}`}`)):[ir.default.posix.join(e,`**${p?`/*${p}`:""}`)]},"getDirectoryGlob"),cd=se(async(e,{cwd:r=Rd.default.cwd(),files:a,extensions:p}={})=>(await Promise.all(e.map(async n=>await LP($d(n,r))?Bd({directoryPath:n,files:a,extensions:p}):n))).flat(),"directoryToGlob"),ud=se((e,{cwd:r=Rd.default.cwd(),files:a,extensions:p}={})=>e.flatMap(n=>DP($d(n,r))?Bd({directoryPath:n,files:a,extensions:p}):n),"directoryToGlobSync"),Ta=se(e=>(e=[...new Set([e].flat())],ZP(e),e),"toPatternsArray"),XP=se(e=>{if(!e)return;let r;try{r=EP.default.statSync(e)}catch{return}if(!r.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},"checkCwdOption"),Ud=se((e={})=>(e={...e,ignore:e.ignore??[],expandDirectories:e.expandDirectories??!0,cwd:pi(e.cwd)},XP(e.cwd),e),"normalizeOptions"),Fd=se(e=>async(r,a)=>e(Ta(r),Ud(a)),"normalizeArguments"),di=se(e=>(r,a)=>e(Ta(r),Ud(a)),"normalizeArgumentsSync"),Hd=se(e=>{let{ignoreFiles:r,gitignore:a}=e,p=r?Ta(r):[];return a&&p.push(VP),p},"getIgnoreFilesPatterns"),YP=se(async e=>{let r=Hd(e);return Vd(r.length>0&&await KP(r,e))},"getFilter"),Gd=se(e=>{let r=Hd(e);return Vd(r.length>0&&JP(r,e))},"getFilterSync"),Vd=se(e=>{let r=new Set;return a=>{let p=ir.default.normalize(a.path??a);return r.has(p)||e&&e(p)?!1:(r.add(p),!0)}},"createFilterFunction"),Wd=se((e,r)=>e.flat().filter(a=>r(a)),"unionFastGlobResults"),zd=se((e,r)=>{let a=[];for(;e.length>0;){let p=e.findIndex(c=>Ia(c));if(p===-1){a.push({patterns:e,options:r});break}let n=e[p].slice(1);for(let c of a)c.options.ignore.push(n);p!==0&&a.push({patterns:e.slice(0,p),options:{...r,ignore:[...r.ignore,n]}}),e=e.slice(p+1)}return a},"convertNegativePatterns"),qd=se((e,r)=>({...r?{cwd:r}:{},...Array.isArray(e)?{files:e}:e}),"normalizeExpandDirectoriesOption"),Kd=se(async(e,r)=>{let a=zd(e,r),{cwd:p,expandDirectories:n}=r;if(!n)return a;let c=qd(n,p);return Promise.all(a.map(async o=>{let{patterns:t,options:s}=o;return[t,s.ignore]=await Promise.all([cd(t,c),cd(s.ignore,{cwd:p})]),{patterns:t,options:s}}))},"generateTasks"),Pa=se((e,r)=>{let a=zd(e,r),{cwd:p,expandDirectories:n}=r;if(!n)return a;let c=qd(n,p);return a.map(o=>{let{patterns:t,options:s}=o;return t=ud(t,c),s.ignore=ud(s.ignore,{cwd:p}),{patterns:t,options:s}})},"generateTasksSync"),QP=Fd(async(e,r)=>{let[a,p]=await Promise.all([Kd(e,r),YP(r)]),n=await Promise.all(a.map(c=>(0,Wr.default)(c.patterns,c.options)));return Wd(n,p)}),ex=di((e,r)=>{let a=Pa(e,r),p=Gd(r),n=a.map(c=>Wr.default.sync(c.patterns,c.options));return Wd(n,p)}),sU=di((e,r)=>{let a=Pa(e,r),p=Gd(r),n=a.map(c=>Wr.default.stream(c.patterns,c.options));return Td(n).filter(c=>p(c))}),iU=di((e,r)=>e.some(a=>Wr.default.isDynamicPattern(a,r))),nU=Fd(Kd),oU=di(Pa),{convertPathToPattern:aU}=Wr.default,tx=Le(gd(),1),hd=Le(require("node:process"),1),rx=Le(require("node:path"),1);function Jd(e){let r=hd.default.cwd();return e=rx.default.resolve(e),hd.default.platform==="win32"&&(r=r.toLowerCase(),e=e.toLowerCase()),e===r}se(Jd,"isPathCwd");var ya=Le(require("node:path"),1);function Zd(e,r){let a=ya.default.relative(r,e);return!!(a&&a!==".."&&!a.startsWith(`..${ya.default.sep}`)&&a!==ya.default.resolve(e))}se(Zd,"isPathInside");async function Xd(e,r,{concurrency:a=Number.POSITIVE_INFINITY,stopOnError:p=!0,signal:n}={}){return new Promise((c,o)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof r!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(a)&&a>=1||a===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${a}\` (${typeof a})`);let t=[],s=[],i=new Map,l=!1,u=!1,h=!1,d=0,g=0,m=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),f=se(()=>{E(n.reason)},"signalListener"),y=se(()=>{n?.removeEventListener("abort",f)},"cleanup"),S=se(_=>{c(_),y()},"resolve"),E=se(_=>{l=!0,u=!0,o(_),y()},"reject");n&&(n.aborted&&E(n.reason),n.addEventListener("abort",f,{once:!0}));let b=se(async()=>{if(u)return;let _=await m.next(),w=g;if(g++,_.done){if(h=!0,d===0&&!u){if(!p&&s.length>0){E(new AggregateError(s));return}if(u=!0,i.size===0){S(t);return}let O=[];for(let[R,I]of t.entries())i.get(R)!==pd&&O.push(I);S(O)}return}d++,(async()=>{try{let O=await _.value;if(u)return;let R=await r(O,w);R===pd&&i.set(w,R),t[w]=R,d--,await b()}catch(O){if(p)E(O);else{s.push(O),d--;try{await b()}catch(R){E(R)}}}})()},"next");(async()=>{for(let _=0;_<a;_++){try{await b()}catch(w){E(w);break}if(h||l)break}})()})}se(Xd,"pMap");var pd=Symbol("skip"),{toString:lU}=Object.prototype,dd=class Yd extends Error{static{se(this,"PresentableError")}constructor(r,{cause:a}={}){if(super(),r instanceof Yd)return r;if(typeof r!="string")throw new TypeError("Message required.");this.name="PresentableError",this.message=r,this.cause=a}get isPresentable(){return!0}};function xa(e,r){if(Jd(e))throw new dd("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!Zd(e,r))throw new dd("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}se(xa,"safeCheck");function Na(e){return e=Array.isArray(e)?e:[e],e=e.map(r=>Ca.default.platform==="win32"&&(0,tx.default)(r)===!1?or(r):r),e}se(Na,"normalizePatterns");async function Qd(e,{force:r,dryRun:a,cwd:p=Ca.default.cwd(),onProgress:n=se(()=>{},"onProgress"),...c}={}){c={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:p,...c},e=Na(e);let o=(await QP(e,c)).sort((i,l)=>l.localeCompare(i));o.length===0&&n({totalCount:0,deletedCount:0,percent:1});let t=0,s=await Xd(o,se(async i=>(i=Ad.default.resolve(p,i),r||xa(i,p),a||await SP.default.rm(i,{recursive:!0,force:!0}),t+=1,n({totalCount:o.length,deletedCount:t,percent:t/o.length,path:i}),i),"mapper"),c);return s.sort((i,l)=>i.localeCompare(l)),s}se(Qd,"deleteAsync");function ef(e,{force:r,dryRun:a,cwd:p=Ca.default.cwd(),...n}={}){n={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:p,...n},e=Na(e);let c=ex(e,n).sort((o,t)=>t.localeCompare(o)).map(o=>(o=Ad.default.resolve(p,o),r||xa(o,p),a||vP.default.rmSync(o,{recursive:!0,force:!0}),o));return c.sort((o,t)=>o.localeCompare(t)),c}se(ef,"deleteSync");});var ja=ge((UU,ff)=>{var Ma=Object.defineProperty,sx=Object.getOwnPropertyDescriptor,ix=Object.getOwnPropertyNames,nx=Object.prototype.hasOwnProperty,ox=(e,r)=>{for(var a in r)Ma(e,a,{get:r[a],enumerable:!0})},ax=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ix(r))!nx.call(e,n)&&n!==a&&Ma(e,n,{get:()=>r[n],enumerable:!(p=sx(r,n))||p.enumerable});return e},lx=e=>ax(Ma({},"__esModule",{value:!0}),e),sf={};ox(sf,{findUp:()=>dx,findUpSync:()=>fx,invalidatePathCache:()=>hf,isDir:()=>gx,isDirEmptySync:()=>cf,isDirSync:()=>mx,isSymLinkSync:()=>yx,readDirNames:()=>Sx,readDirNamesSync:()=>Ex,readFileBinary:()=>bx,readFileBinarySync:()=>wx,readFileUtf8:()=>_x,readFileUtf8Sync:()=>Ox,readJson:()=>Ax,readJsonSync:()=>Rx,safeDelete:()=>Cx,safeDeleteSync:()=>Ix,safeReadFile:()=>Tx,safeReadFileSync:()=>Px,safeStats:()=>pf,safeStatsSync:()=>df,uniqueSync:()=>xx,validateFiles:()=>vx,writeJson:()=>Nx,writeJsonSync:()=>kx});ff.exports=lx(sf);var cx=Vs(),gi=pr(),rf=Ep(),nf=wp(),ux=mr(),Ye=Ys(),hx=la(),px=nn(),mi=(0,cx.getAbortSignal)(),of=(0,ux.objectFreeze)({__proto__:null,force:!0,maxRetries:3,recursive:!0,retryDelay:200}),La;function De(){return La===void 0&&(La=require("node:fs")),La}var Da;function Dt(){return Da===void 0&&(Da=require("node:path")),Da}function af(e,r,a){let{ignore:p,includeEmpty:n=!0,sort:c=!0}={__proto__:null,...a},o=Dt(),t=e.filter(s=>s.isDirectory()&&(n||!cf(o.join(r||s.parentPath,s.name),{ignore:p}))).map(s=>s.name);return c?t.sort(px.naturalCompare):t}function lf(e,r,a,p,n=2){let c=a?r:"";return`${JSON.stringify(e,p,n).replace(/\n/g,r)}${c}`}async function dx(e,r){let{cwd:a=process.cwd(),signal:p=mi}={__proto__:null,...r},{onlyDirectories:n=!1,onlyFiles:c=!0}={__proto__:null,...r};n&&(c=!1),c&&(n=!1);let o=De(),t=Dt(),s=t.resolve(a),{root:i}=t.parse(s),l=(0,gi.isArray)(e)?e:[e];for(;s&&s!==i;){for(let u of l){if(p?.aborted)return;let h=t.join(s,u);try{let d=await o.promises.stat(h);if(!n&&d.isFile()||!c&&d.isDirectory())return(0,Ye.normalizePath)(h)}catch{}}s=t.dirname(s)}}function fx(e,r){let{cwd:a=process.cwd(),stopAt:p}={__proto__:null,...r},{onlyDirectories:n=!1,onlyFiles:c=!0}={__proto__:null,...r};n&&(c=!1),c&&(n=!1);let o=De(),t=Dt(),s=t.resolve(a),{root:i}=t.parse(s),l=p?t.resolve(p):void 0,u=(0,gi.isArray)(e)?e:[e];for(;s&&s!==i;){if(l&&s===l){for(let h of u){let d=t.join(s,h);try{let g=o.statSync(d);if(!n&&g.isFile()||!c&&g.isDirectory())return(0,Ye.normalizePath)(d)}catch{}}return}for(let h of u){let d=t.join(s,h);try{let g=o.statSync(d);if(!n&&g.isFile()||!c&&g.isDirectory())return(0,Ye.normalizePath)(d)}catch{}}s=t.dirname(s)}}async function gx(e){return!!(await pf(e))?.isDirectory()}function mx(e){return!!df(e)?.isDirectory()}function cf(e,r){let{ignore:a=rf.defaultIgnore}={__proto__:null,...r},p=De();try{let n=p.readdirSync(e),{length:c}=n;if(c===0)return!0;let o=(0,rf.getGlobMatcher)(a,{cwd:(0,Ye.pathLikeToString)(e)}),t=0;for(let s=0;s<c;s+=1){let i=n[s];i&&o(i)&&(t+=1)}return t===c}catch{return!1}}function yx(e){let r=De();try{return r.lstatSync(e).isSymbolicLink()}catch{}return!1}function vx(e){let r=De(),a=[],p=[],{R_OK:n}=r.constants;for(let c of e)try{r.accessSync(c,n),a.push(c)}catch{p.push(c)}return{__proto__:null,validPaths:a,invalidPaths:p}}async function Sx(e,r){let a=De();try{return af(await a.promises.readdir(e,{__proto__:null,encoding:"utf8",withFileTypes:!0}),String(e),r)}catch{}return[]}function Ex(e,r){let a=De();try{return af(a.readdirSync(e,{__proto__:null,encoding:"utf8",withFileTypes:!0}),String(e),r)}catch{}return[]}async function bx(e,r){let a=typeof r=="string"?{encoding:r}:r;return await De().promises.readFile(e,{signal:mi,...a,encoding:null})}async function _x(e,r){let a=typeof r=="string"?{encoding:r}:r;return await De().promises.readFile(e,{signal:mi,...a,encoding:"utf8"})}function wx(e,r){let a=typeof r=="string"?{encoding:r}:r;return De().readFileSync(e,{...a,encoding:null})}function Ox(e,r){let a=typeof r=="string"?{encoding:r}:r;return De().readFileSync(e,{...a,encoding:"utf8"})}async function Ax(e,r){let a=typeof r=="string"?{encoding:r}:r,{reviver:p,throws:n,...c}={__proto__:null,...a},o=n===void 0||!!n,t=De(),s="";try{s=await t.promises.readFile(e,{__proto__:null,encoding:"utf8",...c})}catch(i){if(o)throw i;return}return(0,nf.jsonParse)(s,{filepath:String(e),reviver:p,throws:o})}function Rx(e,r){let a=typeof r=="string"?{encoding:r}:r,{reviver:p,throws:n,...c}={__proto__:null,...a},o=n===void 0||!!n,t=De(),s="";try{s=t.readFileSync(e,{__proto__:null,encoding:"utf8",...c})}catch(i){if(o)throw i;return}return(0,nf.jsonParse)(s,{filepath:String(e),reviver:p,throws:o})}var fi;function uf(){if(fi===void 0){let e=Dt(),{getOsTmpDir:r,getSocketCacacheDir:a,getSocketUserDir:p}=ma();fi=[e.resolve(r()),e.resolve(a()),e.resolve(p())]}return fi}function hf(){fi=void 0}(0,hx.registerCacheInvalidation)(hf);async function Cx(e,r){let a=ka(),{deleteAsync:p}=a,n={__proto__:null,...r},c=(0,gi.isArray)(e)?e.map(Ye.pathLikeToString):[(0,Ye.pathLikeToString)(e)],o=n.force!==!1;if(!o&&c.length>0){let t=Dt(),s=uf();c.every(i=>{let l=t.resolve(i);for(let u of s){let h=l.startsWith(u+t.sep)||l===u,d=t.relative(u,l).startsWith("..");if(h&&!d)return!0}return!1})&&(o=!0)}await p(c,{concurrency:n.maxRetries||of.maxRetries,dryRun:!1,force:o,onlyFiles:!1})}function Ix(e,r){let a=ka(),{deleteSync:p}=a,n={__proto__:null,...r},c=(0,gi.isArray)(e)?e.map(Ye.pathLikeToString):[(0,Ye.pathLikeToString)(e)],o=n.force!==!1;if(!o&&c.length>0){let t=Dt(),s=uf();c.every(i=>{let l=t.resolve(i);for(let u of s){let h=l.startsWith(u+t.sep)||l===u,d=t.relative(u,l).startsWith("..");if(h&&!d)return!0}return!1})&&(o=!0)}p(c,{concurrency:n.maxRetries||of.maxRetries,dryRun:!1,force:o,onlyFiles:!1})}async function Tx(e,r){let a=typeof r=="string"?{encoding:r}:r,p=De();try{return await p.promises.readFile(e,{signal:mi,...a})}catch{}}async function pf(e){let r=De();try{return await r.promises.stat(e)}catch{}}function df(e,r){let a=typeof r=="string"?{encoding:r}:r,p=De();try{return p.statSync(e,{__proto__:null,throwIfNoEntry:!1,...a})}catch{}}function Px(e,r){let a=typeof r=="string"?{encoding:r}:r,p=De();try{return p.readFileSync(e,{__proto__:null,...a})}catch{}}function xx(e){let r=De(),a=Dt(),p=String(e);if(!r.existsSync(p))return(0,Ye.normalizePath)(p);let n=a.dirname(p),c=a.extname(p),o=a.basename(p,c),t=1,s;do s=a.join(n,`${o}-${t}${c}`),t++;while(r.existsSync(s));return(0,Ye.normalizePath)(s)}async function Nx(e,r,a){let p=typeof a=="string"?{encoding:a}:a,{EOL:n,finalEOL:c,replacer:o,spaces:t,...s}={__proto__:null,...p},i=De(),l=lf(r,n||`
69
+ `,c!==void 0?c:!0,o,t);await i.promises.writeFile(e,l,{encoding:"utf8",...s,__proto__:null})}function kx(e,r,a){let p=typeof a=="string"?{encoding:a}:a,{EOL:n,finalEOL:c,replacer:o,spaces:t,...s}={__proto__:null,...p},i=De(),l=lf(r,n||`
70
+ `,c!==void 0?c:!0,o,t);i.writeFileSync(e,l,{encoding:"utf8",...s,__proto__:null})}});var Sf=ge((FU,vf)=>{var Ua=Object.defineProperty,Lx=Object.getOwnPropertyDescriptor,Dx=Object.getOwnPropertyNames,Mx=Object.prototype.hasOwnProperty,jx=(e,r)=>{for(var a in r)Ua(e,a,{get:r[a],enumerable:!0})},$x=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Dx(r))!Mx.call(e,n)&&n!==a&&Ua(e,n,{get:()=>r[n],enumerable:!(p=Lx(r,n))||p.enumerable});return e},Bx=e=>$x(Ua({},"__esModule",{value:!0}),e),gf={};jx(gf,{normalizeIterationOptions:()=>Ha,normalizeRetryOptions:()=>zr,pEach:()=>Hx,pEachChunk:()=>Vx,pFilter:()=>Gx,pFilterChunk:()=>yf,pRetry:()=>yi,resolveRetryOptions:()=>Ga});vf.exports=Bx(gf);var $a=$i(),Ux=Vs(),Fa=pr(),mf=(0,Ux.getAbortSignal)(),Ba;function Fx(){return Ba===void 0&&(Ba=require("node:timers/promises")),Ba}function Ha(e){let r=typeof e=="number"?{concurrency:e}:e,{concurrency:a=1,retries:p,signal:n=mf}={__proto__:null,...r};return{__proto__:null,concurrency:Math.max(1,a),retries:zr({signal:n,...Ga(p)}),signal:n}}function zr(e){let r=Ga(e),{args:a=[],backoffFactor:p=r.factor||2,baseDelayMs:n=r.minTimeout||200,jitter:c=!0,maxDelayMs:o=r.maxTimeout||1e4,onRetry:t,onRetryCancelOnFalse:s=!1,onRetryRethrow:i=!1,retries:l=r.retries||0,signal:u=mf}=r;return{args:a,backoffFactor:p,baseDelayMs:n,jitter:c,maxDelayMs:o,minTimeout:n,maxTimeout:o,onRetry:t,onRetryCancelOnFalse:s,onRetryRethrow:i,retries:l,signal:u}}function Ga(e){let r={__proto__:null,retries:0,minTimeout:200,maxTimeout:1e4,factor:2};return typeof e=="number"?{...r,retries:e}:e?{...r,...e}:r}async function Hx(e,r,a){let p=Ha(a),{concurrency:n,retries:c,signal:o}=p,t=(0,Fa.arrayChunk)(e,n);for(let s of t){if(o?.aborted)return;await Promise.all(s.map(i=>yi((...l)=>r(l[0]),{...c,args:[i],signal:o})))}}async function Gx(e,r,a){let p=Ha(a);return(await yf((0,Fa.arrayChunk)(e,p.concurrency),r,p.retries)).flat()}async function Vx(e,r,a){let{chunkSize:p=100,...n}=a||{},c=(0,Fa.arrayChunk)(e,p),o=zr(n),{signal:t}=o;for(let s of c){if(t?.aborted)return;await yi((...i)=>r(i[0]),{...o,args:[s]})}}async function yf(e,r,a){let p=zr(a),{signal:n}=p,{length:c}=e,o=Array(c);for(let t=0;t<c;t+=1)if(n?.aborted)o[t]=[];else{let s=e[t],i=await Promise.all(s.map(l=>yi((...u)=>r(u[0]),{...p,args:[l]})));o[t]=s.filter((l,u)=>i[u])}return o}async function yi(e,r){let{args:a,backoffFactor:p,baseDelayMs:n,jitter:c,maxDelayMs:o,onRetry:t,onRetryCancelOnFalse:s,onRetryRethrow:i,retries:l,signal:u}=zr(r);if(u?.aborted)return;if(l===0)return await e(...a||[],{signal:u});let h=Fx(),d=l,g=n,m=$a.UNDEFINED_TOKEN;for(;d-->=0;){if(u?.aborted)return;try{return await e(...a||[],{signal:u})}catch(f){if(m===$a.UNDEFINED_TOKEN&&(m=f),d<0)break;let y=g;if(c&&(y+=Math.floor(Math.random()*g)),y=Math.min(y,o),typeof t=="function")try{let S=t(l-d,f,y);if(S===!1&&s)break;typeof S=="number"&&S>=0&&(y=Math.min(S,o))}catch(S){if(i)throw S}try{await h.setTimeout(y,void 0,{signal:u})}catch{return}if(u?.aborted)return;g=Math.min(g*p,o)}}if(m!==$a.UNDEFINED_TOKEN)throw m}});var Af=ge((HU,Of)=>{var Ka=Object.defineProperty,Wx=Object.getOwnPropertyDescriptor,zx=Object.getOwnPropertyNames,qx=Object.prototype.hasOwnProperty,Kx=(e,r)=>{for(var a in r)Ka(e,a,{get:r[a],enumerable:!0})},Jx=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of zx(r))!qx.call(e,n)&&n!==a&&Ka(e,n,{get:()=>r[n],enumerable:!(p=Wx(r,n))||p.enumerable});return e},Zx=e=>Jx(Ka({},"__esModule",{value:!0}),e),Ef={};Kx(Ef,{load:()=>Yx,onExit:()=>tN,signals:()=>rN,unload:()=>sN});Of.exports=Zx(Ef);var Wa=Reflect.apply,xe=globalThis.process,za=xe?.emit,bf=xe?.platform??"",qa=xe?.reallyExit,_f=bf==="win32",Va;function Xx(){return Va===void 0&&(Va=require("node:events")),Va}var mt;function Ei(){if(mt===void 0){if(xe?.__signal_exit_emitter__)mt=xe.__signal_exit_emitter__;else if(xe){let e=Xx().EventEmitter;mt=xe.__signal_exit_emitter__=new e,mt.count=0,mt.emitted={__proto__:null}}mt&&!mt.infinite&&(mt.setMaxListeners(Number.POSITIVE_INFINITY),mt.infinite=!0)}return mt}var vi;function wf(){if(vi===void 0){vi={__proto__:null};let e=Ei(),r=Ja();for(let a of r)vi[a]=function(){if((xe?.listeners(a)||[]).length===e.count){let p=_f&&a==="SIGHUP"?"SIGINT":a;xe?.kill(xe?.pid,p)}}}return vi}var Mt;function Ja(){return Mt===void 0&&(Mt=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],_f||Mt.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),bf==="linux"&&Mt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")),Mt}var Si=!1;function Yx(){if(Si||!xe)return;Si=!0;let e=Ei();e.count!==void 0&&(e.count+=1);let r=Ja(),a=wf();Mt=r.filter(p=>{try{return xe.on(p,a[p]),!0}catch{}return!1}),xe.emit=Qx,xe.reallyExit=eN}function Qx(e,r,...a){if(e==="exit"){let p=r;if(p===void 0){let o=xe?.exitCode;p=typeof o=="number"?o:void 0}else xe&&(xe.exitCode=p);let n=Wa(za,this,[e,p,...a]),c=typeof p=="number"?p:null;return n}return Wa(za,this,[e,r,...a])}function eN(e){let r=e||0;throw xe&&(xe.exitCode=r),Wa(qa,xe,[r]),new Error("processReallyExit should never return")}function tN(e,r){if(!xe)return function(){};if(typeof e!="function")throw new TypeError("a callback must be provided for exit handler");let{alwaysLast:a}={__proto__:null,...r},p="exit";a&&(p="afterexit");let n=Ei();return n.on(p,e),function(){n.removeListener(p,e),!n.listeners("exit").length&&n.listeners("afterexit").length}}function rN(){return Mt}function sN(){if(!Si||!xe)return;Si=!1;let e=Ja(),r=wf();for(let p of e)try{xe.removeListener(p,r[p])}catch{}xe.emit=za,qa!==void 0&&(xe.reallyExit=qa);let a=Ei();a.count!==void 0&&(a.count-=1)}});var If=ge((GU,Cf)=>{var Qa=Object.defineProperty,iN=Object.getOwnPropertyDescriptor,nN=Object.getOwnPropertyNames,oN=Object.prototype.hasOwnProperty,aN=(e,r)=>{for(var a in r)Qa(e,a,{get:r[a],enumerable:!0})},lN=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of nN(r))!oN.call(e,n)&&n!==a&&Qa(e,n,{get:()=>r[n],enumerable:!(p=iN(r,n))||p.enumerable});return e},cN=e=>lN(Qa({},"__esModule",{value:!0}),e),Rf={};aN(Rf,{processLock:()=>pN});Cf.exports=cN(Rf);var Tt=require("node:fs"),Za=ja(),Xa=vs(),uN=Sf(),hN=Af(),Ya=class{activeLocks=new Set;touchTimers=new Map;exitHandlerRegistered=!1;ensureExitHandler(){this.exitHandlerRegistered||((0,hN.onExit)(()=>{for(let r of this.touchTimers.values())clearInterval(r);this.touchTimers.clear();for(let r of this.activeLocks)try{(0,Tt.existsSync)(r)&&(0,Za.safeDeleteSync)(r,{recursive:!0})}catch{}}),this.exitHandlerRegistered=!0)}touchLock(r){try{if((0,Tt.existsSync)(r)){let a=new Date;(0,Tt.utimesSync)(r,a,a)}}catch(a){Xa.logger.warn(`Failed to touch lock ${r}: ${a instanceof Error?a.message:String(a)}`)}}startTouchTimer(r,a){if(a<=0||this.touchTimers.has(r))return;let p=setInterval(()=>{this.touchLock(r)},a);p.unref(),this.touchTimers.set(r,p)}stopTouchTimer(r){let a=this.touchTimers.get(r);a&&(clearInterval(a),this.touchTimers.delete(r))}isStale(r,a){try{if(!(0,Tt.existsSync)(r))return!1;let p=(0,Tt.statSync)(r),n=Math.floor((Date.now()-p.mtime.getTime())/1e3),c=Math.floor(a/1e3);return n>c}catch{return!1}}async acquire(r,a={}){let{baseDelayMs:p=100,maxDelayMs:n=1e3,retries:c=3,staleMs:o=5e3,touchIntervalMs:t=2e3}=a;return this.ensureExitHandler(),await(0,uN.pRetry)(async()=>{try{if((0,Tt.existsSync)(r)&&this.isStale(r,o)){Xa.logger.log(`Removing stale lock: ${r}`);try{(0,Za.safeDeleteSync)(r,{recursive:!0})}catch{}}return(0,Tt.mkdirSync)(r,{recursive:!1}),this.activeLocks.add(r),this.startTouchTimer(r,t),()=>this.release(r)}catch(s){throw s instanceof Error&&s.code==="EEXIST"?this.isStale(r,o)?new Error(`Stale lock detected: ${r}`):new Error(`Lock already exists: ${r}`):s}},{retries:c,baseDelayMs:p,maxDelayMs:n,jitter:!0})}release(r){this.stopTouchTimer(r);try{(0,Tt.existsSync)(r)&&(0,Za.safeDeleteSync)(r,{recursive:!0}),this.activeLocks.delete(r)}catch(a){Xa.logger.warn(`Failed to release lock ${r}: ${a instanceof Error?a.message:String(a)}`)}}async withLock(r,a,p){let n=await this.acquire(r,p);try{return await a()}finally{n()}}},pN=new Ya});var kf=ge((VU,Nf)=>{"use strict";var dN=Object.defineProperty,ke=(e,r)=>dN(e,"name",{value:r,configurable:!0}),lr=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),fN=lr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=void 0;var r=require("fs"),a=require("fs/promises"),p=ke(async(t,s={})=>{let{ignoreErrors:i=!1}=s;try{return c(await(0,a.stat)(t),s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"isexe");e.isexe=p;var n=ke((t,s={})=>{let{ignoreErrors:i=!1}=s;try{return c((0,r.statSync)(t),s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"sync");e.sync=n;var c=ke((t,s)=>t.isFile()&&o(t,s),"checkStat"),o=ke((t,s)=>{let i=s.uid??process.getuid?.(),l=s.groups??process.getgroups?.()??[],u=s.gid??process.getgid?.()??l[0];if(i===void 0||u===void 0)throw new Error("cannot get uid or gid");let h=new Set([u,...l]),d=t.mode,g=t.uid,m=t.gid,f=parseInt("100",8),y=parseInt("010",8),S=parseInt("001",8),E=f|y;return!!(d&S||d&y&&h.has(m)||d&f&&g===i||d&E&&i===0)},"checkMode")}),gN=lr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=void 0;var r=require("fs"),a=require("fs/promises"),p=ke(async(t,s={})=>{let{ignoreErrors:i=!1}=s;try{return o(await(0,a.stat)(t),t,s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"isexe");e.isexe=p;var n=ke((t,s={})=>{let{ignoreErrors:i=!1}=s;try{return o((0,r.statSync)(t),t,s)}catch(l){let u=l;if(i||u.code==="EACCES")return!1;throw u}},"sync");e.sync=n;var c=ke((t,s)=>{let{pathExt:i=process.env.PATHEXT||""}=s,l=i.split(";");if(l.indexOf("")!==-1)return!0;for(let u=0;u<l.length;u++){let h=l[u].toLowerCase(),d=t.substring(t.length-h.length).toLowerCase();if(h&&d===h)return!0}return!1},"checkPathExt"),o=ke((t,s,i)=>t.isFile()&&c(s,i),"checkStat")}),mN=lr(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})}),yN=lr(e=>{"use strict";var r=e&&e.__createBinding||(Object.create?function(i,l,u,h){h===void 0&&(h=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:ke(function(){return l[u]},"get")}),Object.defineProperty(i,h,d)}:function(i,l,u,h){h===void 0&&(h=u),i[h]=l[u]}),a=e&&e.__setModuleDefault||(Object.create?function(i,l){Object.defineProperty(i,"default",{enumerable:!0,value:l})}:function(i,l){i.default=l}),p=e&&e.__importStar||function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var u in i)u!=="default"&&Object.prototype.hasOwnProperty.call(i,u)&&r(l,i,u);return a(l,i),l},n=e&&e.__exportStar||function(i,l){for(var u in i)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&r(l,i,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;var c=p(fN());e.posix=c;var o=p(gN());e.win32=o,n(mN(),e);var t=process.env._ISEXE_TEST_PLATFORM_||process.platform,s=t==="win32"?o:c;e.isexe=s.isexe,e.sync=s.sync}),vN=lr((e,r)=>{var{isexe:a,sync:p}=yN(),{join:n,delimiter:c,sep:o,posix:t}=require("path"),s=process.platform==="win32",i=new RegExp(`[${t.sep}${o===t.sep?"":o}]`.replace(/(\\)/g,"\\$1")),l=new RegExp(`^\\.${i.source}`),u=ke(f=>Object.assign(new Error(`not found: ${f}`),{code:"ENOENT"}),"getNotFoundError"),h=ke((f,{path:y=process.env.PATH,pathExt:S=process.env.PATHEXT,delimiter:E=c})=>{let b=f.match(i)?[""]:[...s?[process.cwd()]:[],...(y||"").split(E)];if(s){let _=S||[".EXE",".CMD",".BAT",".COM"].join(E),w=_.split(E).flatMap(O=>[O,O.toLowerCase()]);return f.includes(".")&&w[0]!==""&&w.unshift(""),{pathEnv:b,pathExt:w,pathExtExe:_}}return{pathEnv:b,pathExt:[""]}},"getPathInfo"),d=ke((f,y)=>{let S=/^".*"$/.test(f)?f.slice(1,-1):f;return(!S&&l.test(y)?y.slice(0,2):"")+n(S,y)},"getPathPart"),g=ke(async(f,y={})=>{let{pathEnv:S,pathExt:E,pathExtExe:b}=h(f,y),_=[];for(let w of S){let O=d(w,f);for(let R of E){let I=O+R;if(await a(I,{pathExt:b,ignoreErrors:!0})){if(!y.all)return I;_.push(I)}}}if(y.all&&_.length)return _;if(y.nothrow)return null;throw u(f)},"which"),m=ke((f,y={})=>{let{pathEnv:S,pathExt:E,pathExtExe:b}=h(f,y),_=[];for(let w of S){let O=d(w,f);for(let R of E){let I=O+R;if(p(I,{pathExt:b,ignoreErrors:!0})){if(!y.all)return I;_.push(I)}}}if(y.all&&_.length)return _;if(y.nothrow)return null;throw u(f)},"whichSync");r.exports=g,g.sync=m}),SN=lr((e,r)=>{"use strict";var a=ke((n,c)=>{if(!n.length)return'""';let o;if(!/[ \t\n\v"]/.test(n))o=n;else{o='"';for(let t=0;t<=n.length;++t){let s=0;for(;n[t]==="\\";)++t,++s;if(t===n.length){o+="\\".repeat(s*2);break}n[t]==='"'?(o+="\\".repeat(s*2+1),o+=n[t]):(o+="\\".repeat(s),o+=n[t])}o+='"'}return o=o.replace(/[ !%^&()<>|"]/g,"^$&"),c&&(o=o.replace(/[ !%^&()<>|"]/g,"^$&")),o},"cmd"),p=ke(n=>n.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(n)?`'${n.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):n:"''","sh");r.exports={cmd:a,sh:p}}),{spawn:EN}=require("child_process"),bN=require("os"),_N=vN(),Tf=SN(),tl=ke((e,r,a={},p={})=>{if(a.shell)return xf(e,r,a,p);let n,c,o=new Promise((d,g)=>{n=d,c=g}),t=new Error("command failed"),s=[],i=[],l=ke(d=>({cmd:e,args:r,...d,...ON(s,i,a),...p}),"getResult"),u=ke((d,g)=>{let m=l(g);c(Object.assign(d,m))},"rejectWithOpts"),h=EN(e,r,a);return o.stdin=h.stdin,o.process=h,h.on("error",u),h.stdout&&(h.stdout.on("data",d=>s.push(d)),h.stdout.on("error",u)),h.stderr&&(h.stderr.on("data",d=>i.push(d)),h.stderr.on("error",u)),h.on("close",(d,g)=>{d||g?u(t,{code:d,signal:g}):n(l({code:d,signal:g}))}),o},"promiseSpawn"),xf=ke((e,r,a,p)=>{let n=a.shell;n===!0&&(n=process.platform==="win32"?process.env.ComSpec||"cmd.exe":"sh");let c={...a,shell:!1},o=[],t=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(n)){let s=!1,i="",l=!1;for(let h=0;h<e.length;++h){let d=e.charAt(h);if(d===" "&&!l)break;i+=d,(d==='"'||d==="'")&&(l=!l)}let u;try{u=_N.sync(i,{path:c.env&&Pf(c.env,"PATH")||process.env.PATH,pathext:c.env&&Pf(c.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{u=i.toLowerCase()}s=u.endsWith(".cmd")||u.endsWith(".bat");for(let h of r)t+=` ${Tf.cmd(h,s)}`;o.push("/d","/s","/c",t),c.windowsVerbatimArguments=!0}else{for(let s of r)t+=` ${Tf.sh(s)}`;o.push("-c",t)}return tl(n,o,c,p)},"spawnWithShell"),wN=ke((e,r={},a={})=>{let p={...r,shell:!0},n=[].concat(e),c=process.platform;if(c==="linux"&&bN.release().toLowerCase().includes("microsoft")&&(c="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=p.command;return o||(c==="win32"?(p.shell=process.env.ComSpec,o='start ""'):c==="wsl"?o="sensible-browser":c==="darwin"?o="open":o="xdg-open"),xf(o,n,p,a)},"open");tl.open=wN;var el=ke((e="pipe",r)=>e==="pipe"||e===null?!0:Array.isArray(e)?el(e[r],r):!1,"isPipe"),ON=ke((e,r,{stdioString:a=!0,stdio:p})=>{let n={stdout:null,stderr:null};return el(p,1)&&(n.stdout=Buffer.concat(e),a&&(n.stdout=n.stdout.toString().trim())),el(p,2)&&(n.stderr=Buffer.concat(r),a&&(n.stderr=n.stderr.toString().trim())),n},"stdioResult"),Pf=ke((e,r)=>{r=r.toLowerCase();for(let a of Object.keys(e).sort())if(a.toLowerCase()===r)return e[a]},"findInObject");Nf.exports=tl});var ll=ge((WU,Bf)=>{var al=Object.defineProperty,AN=Object.getOwnPropertyDescriptor,RN=Object.getOwnPropertyNames,CN=Object.prototype.hasOwnProperty,IN=(e,r)=>{for(var a in r)al(e,a,{get:r[a],enumerable:!0})},TN=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of RN(r))!CN.call(e,n)&&n!==a&&al(e,n,{get:()=>r[n],enumerable:!(p=AN(r,n))||p.enumerable});return e},PN=e=>TN(al({},"__esModule",{value:!0}),e),Df={};IN(Df,{isSpawnError:()=>MN,isStdioType:()=>nl,spawn:()=>jN,spawnSync:()=>$N});Bf.exports=PN(Df);var Mf=Vs(),xN=pr(),qr=mr(),Lf=yr(),NN=(0,Mf.getAbortSignal)(),kN=(0,Mf.getSpinner)(),jf=/\.(?:cmd|bat|ps1)$/i,rl;function LN(){return rl===void 0&&(rl=require("node:child_process")),rl}var sl;function DN(){return sl===void 0&&(sl=kf()),sl}var il;function $f(){return il===void 0&&(il=require("node:path")),il}function MN(e){if(e===null||typeof e!="object")return!1;let r=e;return(0,qr.hasOwn)(r,"code")&&typeof r.code<"u"||(0,qr.hasOwn)(r,"errno")&&typeof r.errno<"u"||(0,qr.hasOwn)(r,"syscall")&&typeof r.syscall=="string"}function nl(e,r){return arguments.length===1?typeof e=="string"&&["pipe","ignore","inherit","overlapped"].includes(e):e===r||e==null&&r==="pipe"||(0,xN.isArray)(e)&&e.length>2&&e[0]===r&&e[1]===r&&e[2]===r}function ol(e){let r=e,{stderr:a,stdout:p}=r;return typeof p=="string"&&(r.stdout=(0,Lf.stripAnsi)(p)),typeof a=="string"&&(r.stderr=(0,Lf.stripAnsi)(a)),r}function jN(e,r,a,p){let n=(0,qr.getOwn)(a,"shell"),c=process.platform==="win32",o=e;if(c&&n&&jf.test(o)){let w=$f();o=w.basename(o,w.extname(o))}let{spinner:t=kN,stripAnsi:s=!0,...i}={__proto__:null,...a},l=t,{env:u,stdio:h,stdioString:d=!0}=i,g=!!l?.isSpinning&&!nl(h,"ignore")&&!nl(h,"pipe"),m=g;g&&l.stop();let f=DN(),y=u?{__proto__:null,...process.env,...u}:process.env,S={__proto__:null,cwd:typeof i.cwd=="string"?i.cwd:void 0,env:y,signal:NN,stdio:i.stdio,stdioString:d,shell:i.shell,timeout:i.timeout,uid:i.uid,gid:i.gid},E=f(o,r?[...r]:[],S,p),b=E,_;return s&&d?_=E.then(w=>{let O=ol(w);return"code"in O&&(O.exitCode=O.code),O}).catch(w=>{throw ol(w)}):_=E.then(w=>{if("code"in w){let O=w;return O.exitCode=w.code,O}return w}),m&&(_=_.finally(()=>{l.start()})),_.process=b.process,_.stdin=b.stdin,_}function $N(e,r,a){let p=(0,qr.getOwn)(a,"shell"),n=process.platform==="win32",c=e;if(n&&p&&jf.test(c)){let h=$f();c=h.basename(c,h.extname(c))}let{stripAnsi:o=!0,...t}={__proto__:null,...a},{stdioString:s=!0}=t,i={encoding:s?"utf8":"buffer",...t},l=i.encoding!=="buffer",u=LN().spawnSync(c,r,i);if(l){let{stderr:h,stdout:d}=u;d&&(u.stdout=d.toString().trim()),h&&(u.stderr=h.toString().trim())}return o&&l?ol(u):u}});var zf=ge((zU,Wf)=>{var BN=Object.create,wi=Object.defineProperty,UN=Object.getOwnPropertyDescriptor,FN=Object.getOwnPropertyNames,HN=Object.getPrototypeOf,GN=Object.prototype.hasOwnProperty,VN=(e,r)=>{for(var a in r)wi(e,a,{get:r[a],enumerable:!0})},Uf=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of FN(r))!GN.call(e,n)&&n!==a&&wi(e,n,{get:()=>r[n],enumerable:!(p=UN(r,n))||p.enumerable});return e},Ff=(e,r,a)=>(a=e!=null?BN(HN(e)):{},Uf(r||!e||!e.__esModule?wi(a,"default",{value:e,enumerable:!0}):a,e)),WN=e=>Uf(wi({},"__esModule",{value:!0}),e),Hf={};VN(Hf,{dlxPackage:()=>nk,downloadPackage:()=>Gf,executePackage:()=>Vf});Wf.exports=WN(Hf);var zN=require("node:crypto"),bi=require("node:fs"),Pt=Ff(require("node:path")),qN=Ff(xo()),KN=ko(),JN=Yh(),ZN=ja(),_i=Ys(),XN=ma(),YN=If(),QN=ll(),ek=/[~^><=xX* ]|\|\|/;function tk(e){return(0,zN.createHash)("sha256").update(e).digest("hex").slice(0,16)}function rk(e){if(e.startsWith("@")){let a=e.split("@");return a.length===3?{name:a[1],version:a[2]}:a.length===2?{name:`@${a[1]}`,version:void 0}:{name:`@${a[1]}`,version:a[2]}}let r=e.lastIndexOf("@");return r===-1?{name:e,version:void 0}:{name:e.slice(0,r),version:e.slice(r+1)}}async function sk(e,r,a){let p=tk(e),n=(0,_i.normalizePath)(Pt.default.join((0,XN.getSocketDlxDir)(),p)),c=(0,_i.normalizePath)(Pt.default.join(n,"node_modules",r)),o=Pt.default.join(n,".lock");return await YN.processLock.withLock(o,async()=>{if(!a&&(0,bi.existsSync)(c)){let s=Pt.default.join(c,"package.json");if((0,bi.existsSync)(s))return{installed:!1,packageDir:n}}await bi.promises.mkdir(n,{recursive:!0});let t=(0,JN.getPacoteCachePath)();return await qN.default.extract(e,c,{cache:t||Pt.default.join(n,".cache")}),{installed:!0,packageDir:n}},{staleMs:5e3,touchIntervalMs:2e3})}function ik(e,r,a){let p=(0,_i.normalizePath)(Pt.default.join(e,"node_modules",r)),n=Pt.default.join(p,"package.json"),c=(0,ZN.readJsonSync)(n).bin,o;if(typeof c=="string")o=c;else if(typeof c=="object"&&c!==null){let t=a||r.split("/").pop();o=c[t]}if(!o)throw new Error(`No binary found for package "${r}"`);return(0,_i.normalizePath)(Pt.default.join(p,o))}async function nk(e,r,a){let p=await Gf(r),n=Vf(p.binaryPath,e,r?.spawnOptions,a);return{...p,spawnPromise:n}}async function Gf(e){let{force:r,package:a}={__proto__:null,...e},{name:p,version:n}=rk(a),c=n!==void 0&&ek.test(n),o=r!==void 0?r:c,t=n?`${p}@${n}`:p,{installed:s,packageDir:i}=await sk(t,p,o),l=ik(i,p);if(!KN.WIN32&&(0,bi.existsSync)(l)){let{chmodSync:u}=require("node:fs");try{u(l,493)}catch{}}return{binaryPath:l,installed:s,packageDir:i}}function Vf(e,r,a,p){return(0,QN.spawn)(e,r,a,p)}});var Xf=ge((qU,Zf)=>{var cl=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,ak=Object.getOwnPropertyNames,lk=Object.prototype.hasOwnProperty,ck=(e,r)=>{for(var a in r)cl(e,a,{get:r[a],enumerable:!0})},uk=(e,r,a,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of ak(r))!lk.call(e,n)&&n!==a&&cl(e,n,{get:()=>r[n],enumerable:!(p=ok(r,n))||p.enumerable});return e},hk=e=>uk(cl({},"__esModule",{value:!0}),e),Jf={};ck(Jf,{createEnvProxy:()=>gk,envAsBoolean:()=>mk,envAsNumber:()=>yk,envAsString:()=>vk,findCaseInsensitiveEnvKey:()=>Kr});Zf.exports=hk(Jf);var pk=Number,dk=Number.isFinite,fk=Number.parseInt,qf=String,Kf=new Set(["APPDATA","COMSPEC","HOME","LOCALAPPDATA","PATH","PATHEXT","PROGRAMFILES","SYSTEMROOT","TEMP","TMP","USERPROFILE","WINDIR"]);function gk(e,r){return new Proxy({},{get(a,p){if(typeof p!="string")return;if(r&&p in r)return r[p];if(p in e)return e[p];let n=p.toUpperCase();if(Kf.has(n)){if(r){let o=Kr(r,n);if(o!==void 0)return r[o]}let c=Kr(e,n);if(c!==void 0)return e[c]}},ownKeys(a){return[...new Set([...Object.keys(e),...r?Object.keys(r):[]])]},getOwnPropertyDescriptor(a,p){if(typeof p!="string")return;let n=this.get?.(a,p,a);return n!==void 0?{enumerable:!0,configurable:!0,writable:!0,value:n}:void 0},has(a,p){if(typeof p!="string")return!1;if(r&&p in r||p in e)return!0;let n=p.toUpperCase();return!!(Kf.has(n)&&(r&&Kr(r,n)!==void 0||Kr(e,n)!==void 0))},set(a,p,n){return typeof p=="string"&&r?(r[p]=n,!0):!1}})}function mk(e,r=!1){if(typeof e=="string"){let a=e.trim();return a==="1"||a.toLowerCase()==="true"}return e==null?!!r:!!e}function yk(e,r=0){let a=fk(String(e),10);return(dk(a)?a:pk(r))||0}function vk(e,r=""){return typeof e=="string"?e.trim():e==null?r===""?r:qf(r).trim():qf(e).trim()}function Kr(e,r){let a=r.length;for(let p of Object.keys(e))if(p.length===a&&p.toUpperCase()===r)return p}});var Jr=ge((KU,Yf)=>{"use strict";var Sk="2.0.0",Ek=Number.MAX_SAFE_INTEGER||9007199254740991,bk=16,_k=250,wk=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Yf.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:bk,MAX_SAFE_BUILD_LENGTH:_k,MAX_SAFE_INTEGER:Ek,RELEASE_TYPES:wk,SEMVER_SPEC_VERSION:Sk,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Zr=ge((JU,Qf)=>{"use strict";var Ok=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Qf.exports=Ok});var cr=ge((yt,eg)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:ul,MAX_SAFE_BUILD_LENGTH:Ak,MAX_LENGTH:Rk}=Jr(),Ck=Zr();yt=eg.exports={};var Ik=yt.re=[],Tk=yt.safeRe=[],be=yt.src=[],Pk=yt.safeSrc=[],_e=yt.t={},xk=0,hl="[a-zA-Z0-9-]",Nk=[["\\s",1],["\\d",Rk],[hl,Ak]],kk=e=>{for(let[r,a]of Nk)e=e.split(`${r}*`).join(`${r}{0,${a}}`).split(`${r}+`).join(`${r}{1,${a}}`);return e},Ae=(e,r,a)=>{let p=kk(r),n=xk++;Ck(e,n,r),_e[e]=n,be[n]=r,Pk[n]=p,Ik[n]=new RegExp(r,a?"g":void 0),Tk[n]=new RegExp(p,a?"g":void 0)};Ae("NUMERICIDENTIFIER","0|[1-9]\\d*");Ae("NUMERICIDENTIFIERLOOSE","\\d+");Ae("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hl}*`);Ae("MAINVERSION",`(${be[_e.NUMERICIDENTIFIER]})\\.(${be[_e.NUMERICIDENTIFIER]})\\.(${be[_e.NUMERICIDENTIFIER]})`);Ae("MAINVERSIONLOOSE",`(${be[_e.NUMERICIDENTIFIERLOOSE]})\\.(${be[_e.NUMERICIDENTIFIERLOOSE]})\\.(${be[_e.NUMERICIDENTIFIERLOOSE]})`);Ae("PRERELEASEIDENTIFIER",`(?:${be[_e.NONNUMERICIDENTIFIER]}|${be[_e.NUMERICIDENTIFIER]})`);Ae("PRERELEASEIDENTIFIERLOOSE",`(?:${be[_e.NONNUMERICIDENTIFIER]}|${be[_e.NUMERICIDENTIFIERLOOSE]})`);Ae("PRERELEASE",`(?:-(${be[_e.PRERELEASEIDENTIFIER]}(?:\\.${be[_e.PRERELEASEIDENTIFIER]})*))`);Ae("PRERELEASELOOSE",`(?:-?(${be[_e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${be[_e.PRERELEASEIDENTIFIERLOOSE]})*))`);Ae("BUILDIDENTIFIER",`${hl}+`);Ae("BUILD",`(?:\\+(${be[_e.BUILDIDENTIFIER]}(?:\\.${be[_e.BUILDIDENTIFIER]})*))`);Ae("FULLPLAIN",`v?${be[_e.MAINVERSION]}${be[_e.PRERELEASE]}?${be[_e.BUILD]}?`);Ae("FULL",`^${be[_e.FULLPLAIN]}$`);Ae("LOOSEPLAIN",`[v=\\s]*${be[_e.MAINVERSIONLOOSE]}${be[_e.PRERELEASELOOSE]}?${be[_e.BUILD]}?`);Ae("LOOSE",`^${be[_e.LOOSEPLAIN]}$`);Ae("GTLT","((?:<|>)?=?)");Ae("XRANGEIDENTIFIERLOOSE",`${be[_e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Ae("XRANGEIDENTIFIER",`${be[_e.NUMERICIDENTIFIER]}|x|X|\\*`);Ae("XRANGEPLAIN",`[v=\\s]*(${be[_e.XRANGEIDENTIFIER]})(?:\\.(${be[_e.XRANGEIDENTIFIER]})(?:\\.(${be[_e.XRANGEIDENTIFIER]})(?:${be[_e.PRERELEASE]})?${be[_e.BUILD]}?)?)?`);Ae("XRANGEPLAINLOOSE",`[v=\\s]*(${be[_e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${be[_e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${be[_e.XRANGEIDENTIFIERLOOSE]})(?:${be[_e.PRERELEASELOOSE]})?${be[_e.BUILD]}?)?)?`);Ae("XRANGE",`^${be[_e.GTLT]}\\s*${be[_e.XRANGEPLAIN]}$`);Ae("XRANGELOOSE",`^${be[_e.GTLT]}\\s*${be[_e.XRANGEPLAINLOOSE]}$`);Ae("COERCEPLAIN",`(^|[^\\d])(\\d{1,${ul}})(?:\\.(\\d{1,${ul}}))?(?:\\.(\\d{1,${ul}}))?`);Ae("COERCE",`${be[_e.COERCEPLAIN]}(?:$|[^\\d])`);Ae("COERCEFULL",be[_e.COERCEPLAIN]+`(?:${be[_e.PRERELEASE]})?(?:${be[_e.BUILD]})?(?:$|[^\\d])`);Ae("COERCERTL",be[_e.COERCE],!0);Ae("COERCERTLFULL",be[_e.COERCEFULL],!0);Ae("LONETILDE","(?:~>?)");Ae("TILDETRIM",`(\\s*)${be[_e.LONETILDE]}\\s+`,!0);yt.tildeTrimReplace="$1~";Ae("TILDE",`^${be[_e.LONETILDE]}${be[_e.XRANGEPLAIN]}$`);Ae("TILDELOOSE",`^${be[_e.LONETILDE]}${be[_e.XRANGEPLAINLOOSE]}$`);Ae("LONECARET","(?:\\^)");Ae("CARETTRIM",`(\\s*)${be[_e.LONECARET]}\\s+`,!0);yt.caretTrimReplace="$1^";Ae("CARET",`^${be[_e.LONECARET]}${be[_e.XRANGEPLAIN]}$`);Ae("CARETLOOSE",`^${be[_e.LONECARET]}${be[_e.XRANGEPLAINLOOSE]}$`);Ae("COMPARATORLOOSE",`^${be[_e.GTLT]}\\s*(${be[_e.LOOSEPLAIN]})$|^$`);Ae("COMPARATOR",`^${be[_e.GTLT]}\\s*(${be[_e.FULLPLAIN]})$|^$`);Ae("COMPARATORTRIM",`(\\s*)${be[_e.GTLT]}\\s*(${be[_e.LOOSEPLAIN]}|${be[_e.XRANGEPLAIN]})`,!0);yt.comparatorTrimReplace="$1$2$3";Ae("HYPHENRANGE",`^\\s*(${be[_e.XRANGEPLAIN]})\\s+-\\s+(${be[_e.XRANGEPLAIN]})\\s*$`);Ae("HYPHENRANGELOOSE",`^\\s*(${be[_e.XRANGEPLAINLOOSE]})\\s+-\\s+(${be[_e.XRANGEPLAINLOOSE]})\\s*$`);Ae("STAR","(<|>)?=?\\s*\\*");Ae("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Ae("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Oi=ge((ZU,tg)=>{"use strict";var Lk=Object.freeze({loose:!0}),Dk=Object.freeze({}),Mk=e=>e?typeof e!="object"?Lk:e:Dk;tg.exports=Mk});var pl=ge((XU,ig)=>{"use strict";var rg=/^[0-9]+$/,sg=(e,r)=>{let a=rg.test(e),p=rg.test(r);return a&&p&&(e=+e,r=+r),e===r?0:a&&!p?-1:p&&!a?1:e<r?-1:1},jk=(e,r)=>sg(r,e);ig.exports={compareIdentifiers:sg,rcompareIdentifiers:jk}});var Fe=ge((YU,og)=>{"use strict";var Ai=Zr(),{MAX_LENGTH:ng,MAX_SAFE_INTEGER:Ri}=Jr(),{safeRe:Ci,t:Ii}=cr(),$k=Oi(),{compareIdentifiers:ur}=pl(),dl=class e{constructor(r,a){if(a=$k(a),r instanceof e){if(r.loose===!!a.loose&&r.includePrerelease===!!a.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>ng)throw new TypeError(`version is longer than ${ng} characters`);Ai("SemVer",r,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let p=r.trim().match(a.loose?Ci[Ii.LOOSE]:Ci[Ii.FULL]);if(!p)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+p[1],this.minor=+p[2],this.patch=+p[3],this.major>Ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ri||this.patch<0)throw new TypeError("Invalid patch version");p[4]?this.prerelease=p[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let c=+n;if(c>=0&&c<Ri)return c}return n}):this.prerelease=[],this.build=p[5]?p[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(Ai("SemVer.compare",this.version,this.options,r),!(r instanceof e)){if(typeof r=="string"&&r===this.version)return 0;r=new e(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof e||(r=new e(r,this.options)),ur(this.major,r.major)||ur(this.minor,r.minor)||ur(this.patch,r.patch)}comparePre(r){if(r instanceof e||(r=new e(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let a=0;do{let p=this.prerelease[a],n=r.prerelease[a];if(Ai("prerelease compare",a,p,n),p===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(p===void 0)return-1;if(p===n)continue;return ur(p,n)}while(++a)}compareBuild(r){r instanceof e||(r=new e(r,this.options));let a=0;do{let p=this.build[a],n=r.build[a];if(Ai("build compare",a,p,n),p===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(p===void 0)return-1;if(p===n)continue;return ur(p,n)}while(++a)}inc(r,a,p){if(r.startsWith("pre")){if(!a&&p===!1)throw new Error("invalid increment argument: identifier is empty");if(a){let n=`-${a}`.match(this.options.loose?Ci[Ii.PRERELEASELOOSE]:Ci[Ii.PRERELEASE]);if(!n||n[1]!==a)throw new Error(`invalid identifier: ${a}`)}}switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",a,p);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",a,p);break;case"prepatch":this.prerelease.length=0,this.inc("patch",a,p),this.inc("pre",a,p);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",a,p),this.inc("pre",a,p);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let n=Number(p)?1:0;if(this.prerelease.length===0)this.prerelease=[n];else{let c=this.prerelease.length;for(;--c>=0;)typeof this.prerelease[c]=="number"&&(this.prerelease[c]++,c=-2);if(c===-1){if(a===this.prerelease.join(".")&&p===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(a){let c=[a,n];p===!1&&(c=[a]),ur(this.prerelease[0],a)===0?isNaN(this.prerelease[1])&&(this.prerelease=c):this.prerelease=c}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};og.exports=dl});var jt=ge((QU,lg)=>{"use strict";var ag=Fe(),Bk=(e,r,a=!1)=>{if(e instanceof ag)return e;try{return new ag(e,r)}catch(p){if(!a)return null;throw p}};lg.exports=Bk});var ug=ge((eF,cg)=>{"use strict";var Uk=jt(),Fk=(e,r)=>{let a=Uk(e,r);return a?a.version:null};cg.exports=Fk});var pg=ge((tF,hg)=>{"use strict";var Hk=jt(),Gk=(e,r)=>{let a=Hk(e.trim().replace(/^[=v]+/,""),r);return a?a.version:null};hg.exports=Gk});var gg=ge((rF,fg)=>{"use strict";var dg=Fe(),Vk=(e,r,a,p,n)=>{typeof a=="string"&&(n=p,p=a,a=void 0);try{return new dg(e instanceof dg?e.version:e,a).inc(r,p,n).version}catch{return null}};fg.exports=Vk});var vg=ge((sF,yg)=>{"use strict";var mg=jt(),Wk=(e,r)=>{let a=mg(e,null,!0),p=mg(r,null,!0),n=a.compare(p);if(n===0)return null;let c=n>0,o=c?a:p,t=c?p:a,s=!!o.prerelease.length;if(!!t.prerelease.length&&!s){if(!t.patch&&!t.minor)return"major";if(t.compareMain(o)===0)return t.minor&&!t.patch?"minor":"patch"}let l=s?"pre":"";return a.major!==p.major?l+"major":a.minor!==p.minor?l+"minor":a.patch!==p.patch?l+"patch":"prerelease"};yg.exports=Wk});var Eg=ge((iF,Sg)=>{"use strict";var zk=Fe(),qk=(e,r)=>new zk(e,r).major;Sg.exports=qk});var _g=ge((nF,bg)=>{"use strict";var Kk=Fe(),Jk=(e,r)=>new Kk(e,r).minor;bg.exports=Jk});var Og=ge((oF,wg)=>{"use strict";var Zk=Fe(),Xk=(e,r)=>new Zk(e,r).patch;wg.exports=Xk});var Rg=ge((aF,Ag)=>{"use strict";var Yk=jt(),Qk=(e,r)=>{let a=Yk(e,r);return a&&a.prerelease.length?a.prerelease:null};Ag.exports=Qk});var rt=ge((lF,Ig)=>{"use strict";var Cg=Fe(),eL=(e,r,a)=>new Cg(e,a).compare(new Cg(r,a));Ig.exports=eL});var Pg=ge((cF,Tg)=>{"use strict";var tL=rt(),rL=(e,r,a)=>tL(r,e,a);Tg.exports=rL});var Ng=ge((uF,xg)=>{"use strict";var sL=rt(),iL=(e,r)=>sL(e,r,!0);xg.exports=iL});var Ti=ge((hF,Lg)=>{"use strict";var kg=Fe(),nL=(e,r,a)=>{let p=new kg(e,a),n=new kg(r,a);return p.compare(n)||p.compareBuild(n)};Lg.exports=nL});var Mg=ge((pF,Dg)=>{"use strict";var oL=Ti(),aL=(e,r)=>e.sort((a,p)=>oL(a,p,r));Dg.exports=aL});var $g=ge((dF,jg)=>{"use strict";var lL=Ti(),cL=(e,r)=>e.sort((a,p)=>lL(p,a,r));jg.exports=cL});var Xr=ge((fF,Bg)=>{"use strict";var uL=rt(),hL=(e,r,a)=>uL(e,r,a)>0;Bg.exports=hL});var Pi=ge((gF,Ug)=>{"use strict";var pL=rt(),dL=(e,r,a)=>pL(e,r,a)<0;Ug.exports=dL});var fl=ge((mF,Fg)=>{"use strict";var fL=rt(),gL=(e,r,a)=>fL(e,r,a)===0;Fg.exports=gL});var gl=ge((yF,Hg)=>{"use strict";var mL=rt(),yL=(e,r,a)=>mL(e,r,a)!==0;Hg.exports=yL});var xi=ge((vF,Gg)=>{"use strict";var vL=rt(),SL=(e,r,a)=>vL(e,r,a)>=0;Gg.exports=SL});var Ni=ge((SF,Vg)=>{"use strict";var EL=rt(),bL=(e,r,a)=>EL(e,r,a)<=0;Vg.exports=bL});var ml=ge((EF,Wg)=>{"use strict";var _L=fl(),wL=gl(),OL=Xr(),AL=xi(),RL=Pi(),CL=Ni(),IL=(e,r,a,p)=>{switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e===a;case"!==":return typeof e=="object"&&(e=e.version),typeof a=="object"&&(a=a.version),e!==a;case"":case"=":case"==":return _L(e,a,p);case"!=":return wL(e,a,p);case">":return OL(e,a,p);case">=":return AL(e,a,p);case"<":return RL(e,a,p);case"<=":return CL(e,a,p);default:throw new TypeError(`Invalid operator: ${r}`)}};Wg.exports=IL});var qg=ge((bF,zg)=>{"use strict";var TL=Fe(),PL=jt(),{safeRe:ki,t:Li}=cr(),xL=(e,r)=>{if(e instanceof TL)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};let a=null;if(!r.rtl)a=e.match(r.includePrerelease?ki[Li.COERCEFULL]:ki[Li.COERCE]);else{let s=r.includePrerelease?ki[Li.COERCERTLFULL]:ki[Li.COERCERTL],i;for(;(i=s.exec(e))&&(!a||a.index+a[0].length!==e.length);)(!a||i.index+i[0].length!==a.index+a[0].length)&&(a=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}if(a===null)return null;let p=a[2],n=a[3]||"0",c=a[4]||"0",o=r.includePrerelease&&a[5]?`-${a[5]}`:"",t=r.includePrerelease&&a[6]?`+${a[6]}`:"";return PL(`${p}.${n}.${c}${o}${t}`,r)};zg.exports=xL});var Jg=ge((_F,Kg)=>{"use strict";var yl=class{constructor(){this.max=1e3,this.map=new Map}get(r){let a=this.map.get(r);if(a!==void 0)return this.map.delete(r),this.map.set(r,a),a}delete(r){return this.map.delete(r)}set(r,a){if(!this.delete(r)&&a!==void 0){if(this.map.size>=this.max){let n=this.map.keys().next().value;this.delete(n)}this.map.set(r,a)}return this}};Kg.exports=yl});var st=ge((wF,Qg)=>{"use strict";var NL=/\s+/g,vl=class e{constructor(r,a){if(a=LL(a),r instanceof e)return r.loose===!!a.loose&&r.includePrerelease===!!a.includePrerelease?r:new e(r.raw,a);if(r instanceof Sl)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=r.trim().replace(NL," "),this.set=this.raw.split("||").map(p=>this.parseRange(p.trim())).filter(p=>p.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let p=this.set[0];if(this.set=this.set.filter(n=>!Xg(n[0])),this.set.length===0)this.set=[p];else if(this.set.length>1){for(let n of this.set)if(n.length===1&&FL(n[0])){this.set=[n];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){r>0&&(this.formatted+="||");let a=this.set[r];for(let p=0;p<a.length;p++)p>0&&(this.formatted+=" "),this.formatted+=a[p].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){let p=((this.options.includePrerelease&&BL)|(this.options.loose&&UL))+":"+r,n=Zg.get(p);if(n)return n;let c=this.options.loose,o=c?Ke[We.HYPHENRANGELOOSE]:Ke[We.HYPHENRANGE];r=r.replace(o,XL(this.options.includePrerelease)),Ne("hyphen replace",r),r=r.replace(Ke[We.COMPARATORTRIM],ML),Ne("comparator trim",r),r=r.replace(Ke[We.TILDETRIM],jL),Ne("tilde trim",r),r=r.replace(Ke[We.CARETTRIM],$L),Ne("caret trim",r);let t=r.split(" ").map(u=>HL(u,this.options)).join(" ").split(/\s+/).map(u=>ZL(u,this.options));c&&(t=t.filter(u=>(Ne("loose invalid filter",u,this.options),!!u.match(Ke[We.COMPARATORLOOSE])))),Ne("range list",t);let s=new Map,i=t.map(u=>new Sl(u,this.options));for(let u of i){if(Xg(u))return[u];s.set(u.value,u)}s.size>1&&s.has("")&&s.delete("");let l=[...s.values()];return Zg.set(p,l),l}intersects(r,a){if(!(r instanceof e))throw new TypeError("a Range is required");return this.set.some(p=>Yg(p,a)&&r.set.some(n=>Yg(n,a)&&p.every(c=>n.every(o=>c.intersects(o,a)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new DL(r,this.options)}catch{return!1}for(let a=0;a<this.set.length;a++)if(YL(this.set[a],r,this.options))return!0;return!1}};Qg.exports=vl;var kL=Jg(),Zg=new kL,LL=Oi(),Sl=Yr(),Ne=Zr(),DL=Fe(),{safeRe:Ke,t:We,comparatorTrimReplace:ML,tildeTrimReplace:jL,caretTrimReplace:$L}=cr(),{FLAG_INCLUDE_PRERELEASE:BL,FLAG_LOOSE:UL}=Jr(),Xg=e=>e.value==="<0.0.0-0",FL=e=>e.value==="",Yg=(e,r)=>{let a=!0,p=e.slice(),n=p.pop();for(;a&&p.length;)a=p.every(c=>n.intersects(c,r)),n=p.pop();return a},HL=(e,r)=>(Ne("comp",e,r),e=WL(e,r),Ne("caret",e),e=GL(e,r),Ne("tildes",e),e=qL(e,r),Ne("xrange",e),e=JL(e,r),Ne("stars",e),e),ze=e=>!e||e.toLowerCase()==="x"||e==="*",GL=(e,r)=>e.trim().split(/\s+/).map(a=>VL(a,r)).join(" "),VL=(e,r)=>{let a=r.loose?Ke[We.TILDELOOSE]:Ke[We.TILDE];return e.replace(a,(p,n,c,o,t)=>{Ne("tilde",e,p,n,c,o,t);let s;return ze(n)?s="":ze(c)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:ze(o)?s=`>=${n}.${c}.0 <${n}.${+c+1}.0-0`:t?(Ne("replaceTilde pr",t),s=`>=${n}.${c}.${o}-${t} <${n}.${+c+1}.0-0`):s=`>=${n}.${c}.${o} <${n}.${+c+1}.0-0`,Ne("tilde return",s),s})},WL=(e,r)=>e.trim().split(/\s+/).map(a=>zL(a,r)).join(" "),zL=(e,r)=>{Ne("caret",e,r);let a=r.loose?Ke[We.CARETLOOSE]:Ke[We.CARET],p=r.includePrerelease?"-0":"";return e.replace(a,(n,c,o,t,s)=>{Ne("caret",e,n,c,o,t,s);let i;return ze(c)?i="":ze(o)?i=`>=${c}.0.0${p} <${+c+1}.0.0-0`:ze(t)?c==="0"?i=`>=${c}.${o}.0${p} <${c}.${+o+1}.0-0`:i=`>=${c}.${o}.0${p} <${+c+1}.0.0-0`:s?(Ne("replaceCaret pr",s),c==="0"?o==="0"?i=`>=${c}.${o}.${t}-${s} <${c}.${o}.${+t+1}-0`:i=`>=${c}.${o}.${t}-${s} <${c}.${+o+1}.0-0`:i=`>=${c}.${o}.${t}-${s} <${+c+1}.0.0-0`):(Ne("no pr"),c==="0"?o==="0"?i=`>=${c}.${o}.${t}${p} <${c}.${o}.${+t+1}-0`:i=`>=${c}.${o}.${t}${p} <${c}.${+o+1}.0-0`:i=`>=${c}.${o}.${t} <${+c+1}.0.0-0`),Ne("caret return",i),i})},qL=(e,r)=>(Ne("replaceXRanges",e,r),e.split(/\s+/).map(a=>KL(a,r)).join(" ")),KL=(e,r)=>{e=e.trim();let a=r.loose?Ke[We.XRANGELOOSE]:Ke[We.XRANGE];return e.replace(a,(p,n,c,o,t,s)=>{Ne("xRange",e,p,n,c,o,t,s);let i=ze(c),l=i||ze(o),u=l||ze(t),h=u;return n==="="&&h&&(n=""),s=r.includePrerelease?"-0":"",i?n===">"||n==="<"?p="<0.0.0-0":p="*":n&&h?(l&&(o=0),t=0,n===">"?(n=">=",l?(c=+c+1,o=0,t=0):(o=+o+1,t=0)):n==="<="&&(n="<",l?c=+c+1:o=+o+1),n==="<"&&(s="-0"),p=`${n+c}.${o}.${t}${s}`):l?p=`>=${c}.0.0${s} <${+c+1}.0.0-0`:u&&(p=`>=${c}.${o}.0${s} <${c}.${+o+1}.0-0`),Ne("xRange return",p),p})},JL=(e,r)=>(Ne("replaceStars",e,r),e.trim().replace(Ke[We.STAR],"")),ZL=(e,r)=>(Ne("replaceGTE0",e,r),e.trim().replace(Ke[r.includePrerelease?We.GTE0PRE:We.GTE0],"")),XL=e=>(r,a,p,n,c,o,t,s,i,l,u,h)=>(ze(p)?a="":ze(n)?a=`>=${p}.0.0${e?"-0":""}`:ze(c)?a=`>=${p}.${n}.0${e?"-0":""}`:o?a=`>=${a}`:a=`>=${a}${e?"-0":""}`,ze(i)?s="":ze(l)?s=`<${+i+1}.0.0-0`:ze(u)?s=`<${i}.${+l+1}.0-0`:h?s=`<=${i}.${l}.${u}-${h}`:e?s=`<${i}.${l}.${+u+1}-0`:s=`<=${s}`,`${a} ${s}`.trim()),YL=(e,r,a)=>{for(let p=0;p<e.length;p++)if(!e[p].test(r))return!1;if(r.prerelease.length&&!a.includePrerelease){for(let p=0;p<e.length;p++)if(Ne(e[p].semver),e[p].semver!==Sl.ANY&&e[p].semver.prerelease.length>0){let n=e[p].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch)return!0}return!1}return!0}});var Yr=ge((OF,nm)=>{"use strict";var Qr=Symbol("SemVer ANY"),_l=class e{static get ANY(){return Qr}constructor(r,a){if(a=em(a),r instanceof e){if(r.loose===!!a.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),bl("comparator",r,a),this.options=a,this.loose=!!a.loose,this.parse(r),this.semver===Qr?this.value="":this.value=this.operator+this.semver.version,bl("comp",this)}parse(r){let a=this.options.loose?tm[rm.COMPARATORLOOSE]:tm[rm.COMPARATOR],p=r.match(a);if(!p)throw new TypeError(`Invalid comparator: ${r}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new sm(p[2],this.options.loose):this.semver=Qr}toString(){return this.value}test(r){if(bl("Comparator.test",r,this.options.loose),this.semver===Qr||r===Qr)return!0;if(typeof r=="string")try{r=new sm(r,this.options)}catch{return!1}return El(r,this.operator,this.semver,this.options)}intersects(r,a){if(!(r instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new im(r.value,a).test(this.value):r.operator===""?r.value===""?!0:new im(this.value,a).test(r.semver):(a=em(a),a.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!a.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||El(this.semver,"<",r.semver,a)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||El(this.semver,">",r.semver,a)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}};nm.exports=_l;var em=Oi(),{safeRe:tm,t:rm}=cr(),El=ml(),bl=Zr(),sm=Fe(),im=st()});var es=ge((AF,om)=>{"use strict";var QL=st(),eD=(e,r,a)=>{try{r=new QL(r,a)}catch{return!1}return r.test(e)};om.exports=eD});var lm=ge((RF,am)=>{"use strict";var tD=st(),rD=(e,r)=>new tD(e,r).set.map(a=>a.map(p=>p.value).join(" ").trim().split(" "));am.exports=rD});var um=ge((CF,cm)=>{"use strict";var sD=Fe(),iD=st(),nD=(e,r,a)=>{let p=null,n=null,c=null;try{c=new iD(r,a)}catch{return null}return e.forEach(o=>{c.test(o)&&(!p||n.compare(o)===-1)&&(p=o,n=new sD(p,a))}),p};cm.exports=nD});var pm=ge((IF,hm)=>{"use strict";var oD=Fe(),aD=st(),lD=(e,r,a)=>{let p=null,n=null,c=null;try{c=new aD(r,a)}catch{return null}return e.forEach(o=>{c.test(o)&&(!p||n.compare(o)===1)&&(p=o,n=new oD(p,a))}),p};hm.exports=lD});var gm=ge((TF,fm)=>{"use strict";var wl=Fe(),cD=st(),dm=Xr(),uD=(e,r)=>{e=new cD(e,r);let a=new wl("0.0.0");if(e.test(a)||(a=new wl("0.0.0-0"),e.test(a)))return a;a=null;for(let p=0;p<e.set.length;++p){let n=e.set[p],c=null;n.forEach(o=>{let t=new wl(o.semver.version);switch(o.operator){case">":t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!c||dm(t,c))&&(c=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),c&&(!a||dm(a,c))&&(a=c)}return a&&e.test(a)?a:null};fm.exports=uD});var ym=ge((PF,mm)=>{"use strict";var hD=st(),pD=(e,r)=>{try{return new hD(e,r).range||"*"}catch{return null}};mm.exports=pD});var Di=ge((xF,bm)=>{"use strict";var dD=Fe(),Em=Yr(),{ANY:fD}=Em,gD=st(),mD=es(),vm=Xr(),Sm=Pi(),yD=Ni(),vD=xi(),SD=(e,r,a,p)=>{e=new dD(e,p),r=new gD(r,p);let n,c,o,t,s;switch(a){case">":n=vm,c=yD,o=Sm,t=">",s=">=";break;case"<":n=Sm,c=vD,o=vm,t="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(mD(e,r,p))return!1;for(let i=0;i<r.set.length;++i){let l=r.set[i],u=null,h=null;if(l.forEach(d=>{d.semver===fD&&(d=new Em(">=0.0.0")),u=u||d,h=h||d,n(d.semver,u.semver,p)?u=d:o(d.semver,h.semver,p)&&(h=d)}),u.operator===t||u.operator===s||(!h.operator||h.operator===t)&&c(e,h.semver))return!1;if(h.operator===s&&o(e,h.semver))return!1}return!0};bm.exports=SD});var wm=ge((NF,_m)=>{"use strict";var ED=Di(),bD=(e,r,a)=>ED(e,r,">",a);_m.exports=bD});var Am=ge((kF,Om)=>{"use strict";var _D=Di(),wD=(e,r,a)=>_D(e,r,"<",a);Om.exports=wD});var Im=ge((LF,Cm)=>{"use strict";var Rm=st(),OD=(e,r,a)=>(e=new Rm(e,a),r=new Rm(r,a),e.intersects(r,a));Cm.exports=OD});var Pm=ge((DF,Tm)=>{"use strict";var AD=es(),RD=rt();Tm.exports=(e,r,a)=>{let p=[],n=null,c=null,o=e.sort((l,u)=>RD(l,u,a));for(let l of o)AD(l,r,a)?(c=l,n||(n=l)):(c&&p.push([n,c]),c=null,n=null);n&&p.push([n,null]);let t=[];for(let[l,u]of p)l===u?t.push(l):!u&&l===o[0]?t.push("*"):u?l===o[0]?t.push(`<=${u}`):t.push(`${l} - ${u}`):t.push(`>=${l}`);let s=t.join(" || "),i=typeof r.raw=="string"?r.raw:String(r);return s.length<i.length?s:r}});var Mm=ge((MF,Dm)=>{"use strict";var xm=st(),Al=Yr(),{ANY:Ol}=Al,ts=es(),Rl=rt(),CD=(e,r,a={})=>{if(e===r)return!0;e=new xm(e,a),r=new xm(r,a);let p=!1;e:for(let n of e.set){for(let c of r.set){let o=TD(n,c,a);if(p=p||o!==null,o)continue e}if(p)return!1}return!0},ID=[new Al(">=0.0.0-0")],Nm=[new Al(">=0.0.0")],TD=(e,r,a)=>{if(e===r)return!0;if(e.length===1&&e[0].semver===Ol){if(r.length===1&&r[0].semver===Ol)return!0;a.includePrerelease?e=ID:e=Nm}if(r.length===1&&r[0].semver===Ol){if(a.includePrerelease)return!0;r=Nm}let p=new Set,n,c;for(let d of e)d.operator===">"||d.operator===">="?n=km(n,d,a):d.operator==="<"||d.operator==="<="?c=Lm(c,d,a):p.add(d.semver);if(p.size>1)return null;let o;if(n&&c){if(o=Rl(n.semver,c.semver,a),o>0)return null;if(o===0&&(n.operator!==">="||c.operator!=="<="))return null}for(let d of p){if(n&&!ts(d,String(n),a)||c&&!ts(d,String(c),a))return null;for(let g of r)if(!ts(d,String(g),a))return!1;return!0}let t,s,i,l,u=c&&!a.includePrerelease&&c.semver.prerelease.length?c.semver:!1,h=n&&!a.includePrerelease&&n.semver.prerelease.length?n.semver:!1;u&&u.prerelease.length===1&&c.operator==="<"&&u.prerelease[0]===0&&(u=!1);for(let d of r){if(l=l||d.operator===">"||d.operator===">=",i=i||d.operator==="<"||d.operator==="<=",n){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(t=km(n,d,a),t===d&&t!==n)return!1}else if(n.operator===">="&&!ts(n.semver,String(d),a))return!1}if(c){if(u&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===u.major&&d.semver.minor===u.minor&&d.semver.patch===u.patch&&(u=!1),d.operator==="<"||d.operator==="<="){if(s=Lm(c,d,a),s===d&&s!==c)return!1}else if(c.operator==="<="&&!ts(c.semver,String(d),a))return!1}if(!d.operator&&(c||n)&&o!==0)return!1}return!(n&&i&&!c&&o!==0||c&&l&&!n&&o!==0||h||u)},km=(e,r,a)=>{if(!e)return r;let p=Rl(e.semver,r.semver,a);return p>0?e:p<0||r.operator===">"&&e.operator===">="?r:e},Lm=(e,r,a)=>{if(!e)return r;let p=Rl(e.semver,r.semver,a);return p<0?e:p>0||r.operator==="<"&&e.operator==="<="?r:e};Dm.exports=CD});var Um=ge((jF,Bm)=>{"use strict";var Cl=cr(),jm=Jr(),PD=Fe(),$m=pl(),xD=jt(),ND=ug(),kD=pg(),LD=gg(),DD=vg(),MD=Eg(),jD=_g(),$D=Og(),BD=Rg(),UD=rt(),FD=Pg(),HD=Ng(),GD=Ti(),VD=Mg(),WD=$g(),zD=Xr(),qD=Pi(),KD=fl(),JD=gl(),ZD=xi(),XD=Ni(),YD=ml(),QD=qg(),eM=Yr(),tM=st(),rM=es(),sM=lm(),iM=um(),nM=pm(),oM=gm(),aM=ym(),lM=Di(),cM=wm(),uM=Am(),hM=Im(),pM=Pm(),dM=Mm();Bm.exports={parse:xD,valid:ND,clean:kD,inc:LD,diff:DD,major:MD,minor:jD,patch:$D,prerelease:BD,compare:UD,rcompare:FD,compareLoose:HD,compareBuild:GD,sort:VD,rsort:WD,gt:zD,lt:qD,eq:KD,neq:JD,gte:ZD,lte:XD,cmp:YD,coerce:QD,Comparator:eM,Range:tM,satisfies:rM,toComparators:sM,maxSatisfying:iM,minSatisfying:nM,minVersion:oM,validRange:aM,outside:lM,gtr:cM,ltr:uM,intersects:hM,simplifyRange:pM,subset:dM,SemVer:PD,re:Cl.re,src:Cl.src,tokens:Cl.t,SEMVER_SPEC_VERSION:jm.SEMVER_SPEC_VERSION,RELEASE_TYPES:jm.RELEASE_TYPES,compareIdentifiers:$m.compareIdentifiers,rcompareIdentifiers:$m.rcompareIdentifiers}});var qm=bt(vs(),1);var Mi=require("node:fs"),Fm=require("node:os"),Il=bt(require("node:path"),1);var Hm=bt(zf(),1),Gm=bt(Xf(),1),pt=bt(vs(),1),Vm=bt(ll(),1),fM=bt(Um(),1),gM=Il.default.join((0,Fm.homedir)(),".socket","_dlx"),$F=(0,Gm.envAsBoolean)(process.env.SOCKET_CLI_DISABLE_NODE_FORWARDING),BF=__MIN_NODE_VERSION__;function mM(e){if(!e)throw new Error("CLI package directory not initialized");return{cliEntry:Il.default.join(e,"node_modules","@socketsecurity","cli","dist","index.js")}}function Wm(){return process.argv?process.argv.slice(2):[]}async function yM(e,r){let a=await(0,Vm.spawn)(process.execPath,[e,...r],{env:{...process.env,PKG_EXECPATH:process.env.PKG_EXECPATH||"PKG_INVOKE_NODEJS"},stdio:"inherit"});process.exit(a.code??0)}async function vM(){pt.logger.log("\u{1F4E6} Socket CLI not found, downloading..."),pt.logger.log(""),(0,Mi.mkdirSync)(gM,{recursive:!0});try{let e=await(0,Hm.dlxPackage)([],{force:!1,package:"@socketsecurity/cli",spawnOptions:{stdio:"pipe"}});pt.logger.log(` Installed to: ${e.packageDir}`);try{await e.spawnPromise}catch{}return pt.logger.log("\u2705 Socket CLI installed successfully"),pt.logger.log(""),e}catch(e){pt.logger.error("Failed to download Socket CLI"),pt.logger.error(` Error: ${e instanceof Error?e.message:String(e)}`),process.exit(1)}}async function zm(e){let a=(await vM()).packageDir,{cliEntry:p}=mM(a);(0,Mi.existsSync)(p)&&await yM(p,e),pt.logger.error("Socket CLI installation failed"),pt.logger.error(" CLI entry point not found after installation"),pt.logger.error(` Looked in: ${p}`),process.exit(1)}async function SM(){let e=Wm();await zm(e)}SM().catch(e=>{qm.logger.error(`Bootstrap error: ${e instanceof Error?e.message:String(e)}`),process.exit(1)});
71
+ /*! Bundled license information:
72
+
73
+ @socketsecurity/lib/dist/external/pacote.js:
74
+ (*! Bundled license information:
75
+
76
+ imurmurhash/imurmurhash.js:
77
+ (**
78
+ * @preserve
79
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
80
+ *
81
+ * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
82
+ * @see http://github.com/homebrewing/brauhaus-diff
83
+ * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
84
+ * @see http://github.com/garycourt/murmurhash-js
85
+ * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
86
+ * @see http://sites.google.com/site/murmurhash/
87
+ *)
88
+
89
+ negotiator/index.js:
90
+ (*!
91
+ * negotiator
92
+ * Copyright(c) 2012 Federico Romero
93
+ * Copyright(c) 2012-2014 Isaac Z. Schlueter
94
+ * Copyright(c) 2015 Douglas Christopher Wilson
95
+ * MIT Licensed
96
+ *)
97
+
98
+ make-fetch-happen/lib/fetch.js:
99
+ (**
100
+ * @license
101
+ * Copyright (c) 2010-2012 Mikeal Rogers
102
+ * Licensed under the Apache License, Version 2.0 (the "License");
103
+ * you may not use this file except in compliance with the License.
104
+ * You may obtain a copy of the License at
105
+ * http://www.apache.org/licenses/LICENSE-2.0
106
+ * Unless required by applicable law or agreed to in writing,
107
+ * software distributed under the License is distributed on an "AS
108
+ * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
109
+ * express or implied. See the License for the specific language
110
+ * governing permissions and limitations under the License.
111
+ *)
112
+ *)
113
+
114
+ @socketsecurity/lib/dist/external/fast-glob.js:
115
+ (*! Bundled license information:
116
+
117
+ is-extglob/index.js:
118
+ (*!
119
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
120
+ *
121
+ * Copyright (c) 2014-2016, Jon Schlinkert.
122
+ * Licensed under the MIT License.
123
+ *)
124
+
125
+ is-glob/index.js:
126
+ (*!
127
+ * is-glob <https://github.com/jonschlinkert/is-glob>
128
+ *
129
+ * Copyright (c) 2014-2017, Jon Schlinkert.
130
+ * Released under the MIT License.
131
+ *)
132
+
133
+ is-number/index.js:
134
+ (*!
135
+ * is-number <https://github.com/jonschlinkert/is-number>
136
+ *
137
+ * Copyright (c) 2014-present, Jon Schlinkert.
138
+ * Released under the MIT License.
139
+ *)
140
+
141
+ to-regex-range/index.js:
142
+ (*!
143
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
144
+ *
145
+ * Copyright (c) 2015-present, Jon Schlinkert.
146
+ * Released under the MIT License.
147
+ *)
148
+
149
+ fill-range/index.js:
150
+ (*!
151
+ * fill-range <https://github.com/jonschlinkert/fill-range>
152
+ *
153
+ * Copyright (c) 2014-present, Jon Schlinkert.
154
+ * Licensed under the MIT License.
155
+ *)
156
+
157
+ queue-microtask/index.js:
158
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
159
+
160
+ run-parallel/index.js:
161
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
162
+ *)
163
+
164
+ @socketsecurity/lib/dist/external/del.js:
165
+ (*! Bundled license information:
166
+
167
+ is-extglob/index.js:
168
+ (*!
169
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
170
+ *
171
+ * Copyright (c) 2014-2016, Jon Schlinkert.
172
+ * Licensed under the MIT License.
173
+ *)
174
+
175
+ is-glob/index.js:
176
+ (*!
177
+ * is-glob <https://github.com/jonschlinkert/is-glob>
178
+ *
179
+ * Copyright (c) 2014-2017, Jon Schlinkert.
180
+ * Released under the MIT License.
181
+ *)
182
+
183
+ is-number/index.js:
184
+ (*!
185
+ * is-number <https://github.com/jonschlinkert/is-number>
186
+ *
187
+ * Copyright (c) 2014-present, Jon Schlinkert.
188
+ * Released under the MIT License.
189
+ *)
190
+
191
+ to-regex-range/index.js:
192
+ (*!
193
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
194
+ *
195
+ * Copyright (c) 2015-present, Jon Schlinkert.
196
+ * Released under the MIT License.
197
+ *)
198
+
199
+ fill-range/index.js:
200
+ (*!
201
+ * fill-range <https://github.com/jonschlinkert/fill-range>
202
+ *
203
+ * Copyright (c) 2014-present, Jon Schlinkert.
204
+ * Licensed under the MIT License.
205
+ *)
206
+
207
+ queue-microtask/index.js:
208
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
209
+
210
+ run-parallel/index.js:
211
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
212
+ *)
213
+ */