claude-code-best 2.4.4 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (614) hide show
  1. package/dist/chunks/AddWorkspaceDirectory-Cj5bvJgD.js +1 -0
  2. package/dist/chunks/App-2tgSv9lb.js +1 -0
  3. package/dist/chunks/ApproveApiKey-DWa-XTLb.js +1 -0
  4. package/dist/chunks/ApproveApiKey-SIUwkD8j.js +1 -0
  5. package/dist/chunks/AssistantSessionChooser-DF9eeJZS.js +1 -0
  6. package/dist/chunks/BackgroundTasksDialog-DXJdube9.js +2 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-BOSW4Zdy.js +1 -0
  8. package/dist/chunks/ClaudeInChromeOnboarding-BW4XHmkw.js +1 -0
  9. package/dist/chunks/ClaudeMdExternalIncludesDialog-B8oAAHSI.js +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-Bz0JyaOG.js +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-DYhmGSkx.js +1 -0
  12. package/dist/chunks/DesktopHandoff-CcsM_OAS.js +1 -0
  13. package/dist/chunks/DevChannelsDialog-DXRgY00D.js +1 -0
  14. package/dist/chunks/Dialog-DYFGqyDs.js +1 -0
  15. package/dist/chunks/DiffDialog-PvNZfZby.js +3 -0
  16. package/dist/chunks/Doctor--B1HUENo.js +1 -0
  17. package/dist/chunks/Doctor-CE_jL9jC.js +3 -0
  18. package/dist/chunks/ExitFlow-C4ybxKPn.js +2 -0
  19. package/dist/chunks/Feedback-B5rPGl_C.js +2 -0
  20. package/dist/chunks/Grove-C2YjB3zL.js +1 -0
  21. package/dist/chunks/Grove-CKVpREDU.js +11 -0
  22. package/dist/chunks/HybridTransport-Byjvz-DL.js +4 -0
  23. package/dist/chunks/ITermBackend-Co9XpeS4.js +1 -0
  24. package/dist/chunks/InProcessTransport-DB52dh4f.js +1 -0
  25. package/dist/chunks/InvalidConfigDialog-CNsqbNU3.js +1 -0
  26. package/dist/chunks/InvalidSettingsDialog-ClnZaN6b.js +1 -0
  27. package/dist/chunks/ListItem-OFARanN7.js +1 -0
  28. package/dist/chunks/MCPConnectionManager-CDsa79pu.js +1 -0
  29. package/dist/chunks/McpParsingWarnings-DZkzoeZf.js +1 -0
  30. package/dist/chunks/MessageSelector-CkeGQPNM.js +3 -0
  31. package/dist/chunks/Messages-PfbzLYOU.js +11 -0
  32. package/dist/chunks/Onboarding-BwoGQB4g.js +1 -0
  33. package/dist/chunks/OverageCreditUpsell-Q5g2YjQw.js +1 -0
  34. package/dist/chunks/PermissionDialog-5MlJf7ew.js +1 -0
  35. package/dist/chunks/PluginSettings-B2ASJ0Rx.js +17 -0
  36. package/dist/chunks/PressEnterToContinue-BdA9zDGs.js +1 -0
  37. package/dist/chunks/PromptInputFooterSuggestions-D4lMVCqj.js +1 -0
  38. package/dist/chunks/PromptInputHelpMenu-BvLtS6an.js +1 -0
  39. package/dist/chunks/QueryEngine-Av0G5fze.js +1 -0
  40. package/dist/chunks/REPL-DCwqua0C.js +1 -0
  41. package/dist/chunks/REPL-Dh8vzGmF.js +97 -0
  42. package/dist/chunks/RemoteCallout-BV_hoz98.js +1 -0
  43. package/dist/chunks/RemoteSessionManager-Cxoy1ud2.js +2 -0
  44. package/dist/chunks/ResumeConversation-B3WuB8rs.js +1 -0
  45. package/dist/chunks/SSETransport-pIm26VJq.js +4 -0
  46. package/dist/chunks/SearchBox-DfOmUoaI.js +1 -0
  47. package/dist/chunks/SearchExtraToolsTool-D70C-cmA.js +1 -0
  48. package/dist/chunks/SentryErrorBoundary-B6EWoJml.js +2 -0
  49. package/dist/chunks/SentryErrorBoundary-oJUBarGg.js +1 -0
  50. package/dist/chunks/Settings-CreAhCsb.js +2 -0
  51. package/dist/chunks/TeleportProgress-DPzGpyyM.js +1 -0
  52. package/dist/chunks/TeleportRepoMismatchDialog-DqWQX6j8.js +1 -0
  53. package/dist/chunks/TeleportResumeWrapper-DPSO0S49.js +1 -0
  54. package/dist/chunks/ThemePicker-DueihHcy.js +1 -0
  55. package/dist/chunks/TmuxBackend-BNaZNAeP.js +9 -0
  56. package/dist/chunks/TrustDialog-CIzAlGn9.js +1 -0
  57. package/dist/chunks/TungstenTool-C5IqKVr0.js +1 -0
  58. package/dist/chunks/TungstenTool-V-Bwqlx3.js +1 -0
  59. package/dist/chunks/ValidationErrorsList-1k1qbsRo.js +2 -0
  60. package/dist/chunks/WelcomeV2-CR6TtXXM.js +1 -0
  61. package/dist/chunks/WindowsTerminalBackend-C5SeTXqC.js +2 -0
  62. package/dist/chunks/add-dir-DAMizKzF.js +1 -0
  63. package/dist/chunks/agentDisplay-B9z7i8b_.js +1 -0
  64. package/dist/chunks/agents-D5u0p1UC.js +103 -0
  65. package/dist/chunks/agents-DCh_gEvJ.js +2 -0
  66. package/dist/chunks/ajv-B_OpU_Uh.js +8 -0
  67. package/dist/chunks/analytics-DqMQntaB.js +1 -0
  68. package/dist/chunks/ant-DRJq-cEg.js +1 -0
  69. package/dist/chunks/api-B6URs6nc.js +1 -0
  70. package/dist/chunks/api-Dz_3z1kl.js +1 -0
  71. package/dist/chunks/asciicast-aoKFhc7C.js +1 -0
  72. package/dist/chunks/asciicast-o5Zg4dJt.js +4 -0
  73. package/dist/chunks/assistant-BRGDWkKB.js +1 -0
  74. package/dist/chunks/assistant-tPxOUa-Z.js +1 -0
  75. package/dist/chunks/assistant-zVegFdAO.js +1 -0
  76. package/dist/chunks/attributionHooks-PygdohOh.js +1 -0
  77. package/dist/chunks/attributionTrailer-BpvhXgRP.js +1 -0
  78. package/dist/chunks/auth-CqURlg4d.js +1 -0
  79. package/dist/chunks/auth-D4isgfuK.js +1 -0
  80. package/dist/chunks/autoMode-DVt4K4I2.js +45 -0
  81. package/dist/chunks/autoModeDenials-Cp6VFdsm.js +1 -0
  82. package/dist/chunks/autonomy-BZzW8QJZ.js +1 -0
  83. package/dist/chunks/autonomy-Ffv0QIyl.js +19 -0
  84. package/dist/chunks/autonomyPanel-MwuzDvv_.js +1 -0
  85. package/dist/chunks/axios-DLnc2dVy.js +1 -0
  86. package/dist/chunks/axios-DhfaybwJ.js +12 -0
  87. package/dist/chunks/backgroundHousekeeping-CYnAG60-.js +17 -0
  88. package/dist/chunks/backgroundHousekeeping-DUmxC6h0.js +1 -0
  89. package/dist/chunks/banner-CVXH2xts.js +2 -0
  90. package/dist/chunks/base64-js-DIVSFswY.js +1 -0
  91. package/dist/chunks/bedrockClient-qi1-JCOK.js +15 -0
  92. package/dist/chunks/bg-DK0E4ZtW.js +9 -0
  93. package/dist/chunks/bg-Dbh5z3Y8.js +1 -0
  94. package/dist/chunks/branch-DXefFdDE.js +3 -0
  95. package/dist/chunks/break-cache-ByJ7U2Ts.js +8 -0
  96. package/dist/chunks/bridge-qr4GQW_c.js +2 -0
  97. package/dist/chunks/bridgeConfig-CJ-KznTS.js +1 -0
  98. package/dist/chunks/bridgeConfig-CNbOKpAg.js +1 -0
  99. package/dist/chunks/bridgeEnabled-5vsPrjuq.js +1 -0
  100. package/dist/chunks/bridgeEnabled-BUJTCUHY.js +1 -0
  101. package/dist/chunks/bridgeMain-BimZwc2P.js +68 -0
  102. package/dist/chunks/bridgeMain-DYL4fl6A.js +1 -0
  103. package/dist/chunks/bridgeMessaging-BiE0CTqq.js +1 -0
  104. package/dist/chunks/bridgePointer-FvAMj3re.js +1 -0
  105. package/dist/chunks/browser-fLRXxIsQ.js +1 -0
  106. package/dist/chunks/btw-FpimqEqk.js +1 -0
  107. package/dist/chunks/buddy-BA3Cr067.js +3 -0
  108. package/dist/chunks/bundledMode-kSQejuY4.js +1 -0
  109. package/dist/chunks/bypassPermissionsKillswitch-CSC9p8mO.js +1 -0
  110. package/dist/chunks/caches-BUBkfP2Q.js +3 -0
  111. package/dist/chunks/caches-CTfNpKhW.js +1 -0
  112. package/dist/chunks/capacityWake-BXlUpptF.js +1 -0
  113. package/dist/chunks/ccrClient-BOxUn9EJ.js +1 -0
  114. package/dist/chunks/ccshareResume-DWLjTF22.js +1 -0
  115. package/dist/chunks/changeDetector-Y9KV5LgG.js +1 -0
  116. package/dist/chunks/channelNotification-CC7Xb06W.js +1 -0
  117. package/dist/chunks/channelNotification-l3EXKDNB.js +1 -0
  118. package/dist/chunks/chokidar-BcI3rIKm.js +1 -0
  119. package/dist/chunks/chokidar-SzksMqYp.js +1 -0
  120. package/dist/chunks/chrome-BnKyWWQL.js +1 -0
  121. package/dist/chunks/chromeNativeHost-4U39yLtd.js +1 -0
  122. package/dist/chunks/chunk-DR8-3Aex.js +1 -0
  123. package/dist/chunks/classPrivateFieldSet2-EAQNhHs8.js +1 -0
  124. package/dist/chunks/claudeDesktop-D0S1eq1F.js +1 -0
  125. package/dist/chunks/cleanup-Bg_gFgcj.js +1 -0
  126. package/dist/chunks/clear-OUVFUt8Z.js +1 -0
  127. package/dist/chunks/cliLaunch-BQa48gsr.js +1 -0
  128. package/dist/chunks/client-B47ZvTMo.js +1 -0
  129. package/dist/chunks/client-CPn1wQyc.js +7 -0
  130. package/dist/chunks/client-_sjL0I7A.js +35 -0
  131. package/dist/chunks/color-D5MCzz9h.js +1 -0
  132. package/dist/chunks/color-convert-ULbeSgNC.js +1 -0
  133. package/dist/chunks/commands-FJGWgQsa.js +1 -0
  134. package/dist/chunks/commitAttribution-BFshsh2H.js +2 -0
  135. package/dist/chunks/commitAttribution-DSv9FggK.js +1 -0
  136. package/dist/chunks/common-B379wT22.js +1 -0
  137. package/dist/chunks/common-B_BC3eMY.js +1 -0
  138. package/dist/chunks/common-CMCv4N_v.js +1 -0
  139. package/dist/chunks/compact-DWNaf1wR.js +3 -0
  140. package/dist/chunks/companion-CyK_Dr1U.js +1 -0
  141. package/dist/chunks/completionCache-DHfUBBMH.js +1 -0
  142. package/dist/chunks/completionCache-DORrtxkS.js +4 -0
  143. package/dist/chunks/computerUseLock-BjoDJH2h.js +1 -0
  144. package/dist/chunks/config-BdCuh6eA.js +1 -0
  145. package/dist/chunks/config-DNz6Eitr.js +1 -0
  146. package/dist/chunks/connectHeadless-CwsFt-Mh.js +1 -0
  147. package/dist/chunks/constants-41VpZw2G.js +1 -0
  148. package/dist/chunks/context-BOjdTj0i.js +1 -0
  149. package/dist/chunks/context-noninteractive-Bd2HO-vU.js +1 -0
  150. package/dist/chunks/context-noninteractive-k2ibficU.js +54 -0
  151. package/dist/chunks/controlMessageCompat-BJhFiS7u.js +1 -0
  152. package/dist/chunks/conversation-BP0phkOY.js +1 -0
  153. package/dist/chunks/conversation-Ci8O_eZ-.js +1 -0
  154. package/dist/chunks/copy-B0VUJ2rH.js +7 -0
  155. package/dist/chunks/createSSHSession-DqmkCS_k.js +6 -0
  156. package/dist/chunks/createSession-B9MhWusY.js +1 -0
  157. package/dist/chunks/createSession-CJEsHz58.js +1 -0
  158. package/dist/chunks/cron-DiW7eIPP.js +1 -0
  159. package/dist/chunks/cronJitterConfig-BzPaa52I.js +6 -0
  160. package/dist/chunks/crossProjectResume-tWsqBUHc.js +40 -0
  161. package/dist/chunks/cwd--iizewsn.js +1 -0
  162. package/dist/chunks/cwd-BgpSJxd7.js +1 -0
  163. package/dist/chunks/daemon-VYRit6Aq.js +2 -0
  164. package/dist/chunks/dangerousBackend-BU_PHGR2.js +1 -0
  165. package/dist/chunks/datadog-Bd1s_VFj.js +1 -0
  166. package/dist/chunks/datadog-DJowkWhh.js +1 -0
  167. package/dist/chunks/debug-DM5ezCBS.js +1 -0
  168. package/dist/chunks/debug-UI3T040K.js +5 -0
  169. package/dist/chunks/debugUtils-BBMFODKH.js +1 -0
  170. package/dist/chunks/defineProperty-80gRi2ZW.js +1 -0
  171. package/dist/chunks/desktop-BDowrzvG.js +1 -0
  172. package/dist/chunks/detached-D300jlhj.js +5 -0
  173. package/dist/chunks/detect-libc-DNuQfUvI.js +1 -0
  174. package/dist/chunks/detectRepository-CBk3S2zv.js +1 -0
  175. package/dist/chunks/detectRepository-DCTvg4p0.js +1 -0
  176. package/dist/chunks/detection-CQsNad64.js +1 -0
  177. package/dist/chunks/detection-DJ-vTbBf.js +1 -0
  178. package/dist/chunks/diff-auU5sUOw.js +1 -0
  179. package/dist/chunks/directoryCompletion-DP_4B1GL.js +1 -0
  180. package/dist/chunks/dist-CanSxOZ1.js +5 -0
  181. package/dist/chunks/dist-Cg1a1Exw.js +29 -0
  182. package/dist/chunks/dist-Q7YNoZ0H.js +20 -0
  183. package/dist/chunks/dist-es-4z5T3Jzm.js +1 -0
  184. package/dist/chunks/dist-es-B2jg52tM2.js +1 -0
  185. package/dist/chunks/dist-es-B6OXHQ1S.js +1 -0
  186. package/dist/chunks/dist-es-B8NEy5hc.js +1 -0
  187. package/dist/chunks/dist-es-BVGppqE4.js +1 -0
  188. package/dist/chunks/dist-es-Bcw5GZko.js +1 -0
  189. package/dist/chunks/dist-es-BoIJpncb.js +9 -0
  190. package/dist/chunks/dist-es-Bu_Fshi1.js +1 -0
  191. package/dist/chunks/dist-es-C-1vn4OP2.js +1 -0
  192. package/dist/chunks/dist-es-C41b_0B5.js +1 -0
  193. package/dist/chunks/dist-es-CCZYybbG2.js +1 -0
  194. package/dist/chunks/dist-es-CLK1mey-.js +1 -0
  195. package/dist/chunks/dist-es-CQz2aNf72.js +1 -0
  196. package/dist/chunks/dist-es-CSfI8B8l.js +1 -0
  197. package/dist/chunks/dist-es-CUZBYppo.js +1 -0
  198. package/dist/chunks/dist-es-CZkzHpjF.js +1 -0
  199. package/dist/chunks/dist-es-Cbf0_D8d.js +5 -0
  200. package/dist/chunks/dist-es-ChHe-SVL.js +1 -0
  201. package/dist/chunks/dist-es-ClYOf0My.js +1 -0
  202. package/dist/chunks/dist-es-D-kJbj4A2.js +1 -0
  203. package/dist/chunks/dist-es-D1LN6CJd.js +1 -0
  204. package/dist/chunks/dist-es-DC1sC3ph.js +1 -0
  205. package/dist/chunks/dist-es-DGn8uOwQ2.js +1 -0
  206. package/dist/chunks/dist-es-DK5fTeKM2.js +1 -0
  207. package/dist/chunks/dist-es-DN7otr6F.js +1 -0
  208. package/dist/chunks/dist-es-DPM0mPK5.js +1 -0
  209. package/dist/chunks/dist-es-DqZAh3nG.js +1 -0
  210. package/dist/chunks/dist-es-DuAZyxJ02.js +5 -0
  211. package/dist/chunks/dist-es-HVQrM0oE.js +1 -0
  212. package/dist/chunks/dist-es-OVleIB54.js +1 -0
  213. package/dist/chunks/dist-es-UAs0rdXg.js +1 -0
  214. package/dist/chunks/dist-es-WvMMuHmx2.js +1 -0
  215. package/dist/chunks/dist-es-fjXft-jH.js +1 -0
  216. package/dist/chunks/dist-es-hdN_ShpZ.js +3 -0
  217. package/dist/chunks/dist-es-neiUvMJb.js +1 -0
  218. package/dist/chunks/dist-es-yMYpDtui2.js +1 -0
  219. package/dist/chunks/dist-es-zjcbuB72.js +1 -0
  220. package/dist/chunks/distRoot-CcxmnzqQ.js +1 -0
  221. package/dist/chunks/doctor-bKPp6AeL.js +1 -0
  222. package/dist/chunks/earlyInput-JGJo1zcC.js +1 -0
  223. package/dist/chunks/earlyInput-tRkbxFv2.js +2 -0
  224. package/dist/chunks/effort-BQj2QnnA.js +9 -0
  225. package/dist/chunks/entry-CUu6-QhT.js +14 -0
  226. package/dist/chunks/env-chR0gV31.js +1 -0
  227. package/dist/chunks/envLessBridgeConfig-CixkwbRF.js +1 -0
  228. package/dist/chunks/envLessBridgeConfig-Ju4W58xf.js +1 -0
  229. package/dist/chunks/envUtils-BWeoiL4Y.js +1 -0
  230. package/dist/chunks/escHotkey-Cyz0yyh1.js +259 -0
  231. package/dist/chunks/esm--xjzB1hI.js +1 -0
  232. package/dist/chunks/esm-B2HIF0XY.js +1 -0
  233. package/dist/chunks/esm-BGQPWnJy.js +1 -0
  234. package/dist/chunks/esm-C-1qL9Mn.js +1 -0
  235. package/dist/chunks/esm-C3jcs1DH.js +1 -0
  236. package/dist/chunks/esm-C97WL9nC.js +1 -0
  237. package/dist/chunks/esm-CIL-SKM8.js +1 -0
  238. package/dist/chunks/esm-CJlBxjtx.js +1 -0
  239. package/dist/chunks/esm-CsGLyWmS.js +56 -0
  240. package/dist/chunks/esm-DQHmDm-H.js +1 -0
  241. package/dist/chunks/esm-DcdOXSzi.js +1 -0
  242. package/dist/chunks/esm-DhNYgGTV.js +1 -0
  243. package/dist/chunks/esm-DxPW7qPs.js +1 -0
  244. package/dist/chunks/esm-FBUWr3vI.js +1 -0
  245. package/dist/chunks/esm-QgL6y---.js +10 -0
  246. package/dist/chunks/esm-v0kPjgVS.js +1 -0
  247. package/dist/chunks/esm-vIn-YV_h.js +1 -0
  248. package/dist/chunks/event-streams-BV7ngMXu.js +1 -0
  249. package/dist/chunks/eventLoopStallDetector-Dnh1fc31.js +1 -0
  250. package/dist/chunks/execAsync-BkA6ogic.js +1 -0
  251. package/dist/chunks/execFileNoThrow-CuQN1sz8.js +1 -0
  252. package/dist/chunks/execSyncWrapper-C2XQnFVo.js +1 -0
  253. package/dist/chunks/execa-CGue6Z3n.js +34 -0
  254. package/dist/chunks/executor-4EeD8GNm.js +1561 -0
  255. package/dist/chunks/executor-BHEuNh5F.js +1 -0
  256. package/dist/chunks/exit-DijkO8eo.js +1 -0
  257. package/dist/chunks/exit-_obETqBv.js +2 -0
  258. package/dist/chunks/export-DA-bBZkX.js +2 -0
  259. package/dist/chunks/exportRenderer-3y4tGdSB.js +1 -0
  260. package/dist/chunks/extra-usage-CS6VwKJt.js +1 -0
  261. package/dist/chunks/extra-usage-DGHEQOrY.js +1 -0
  262. package/dist/chunks/extra-usage-core-DOgT4u4i.js +1 -0
  263. package/dist/chunks/extra-usage-noninteractive-DYnfiRlV.js +1 -0
  264. package/dist/chunks/extraUsage-CfxgfpX_.js +1 -0
  265. package/dist/chunks/extractMemories-jvjCvtpC.js +1 -0
  266. package/dist/chunks/fast-Bbtx_Bs1.js +1 -0
  267. package/dist/chunks/fast-CzRUJBTK.js +1 -0
  268. package/dist/chunks/featureCheck-Cm0YNDXO.js +1 -0
  269. package/dist/chunks/featureCheck-p7OeCYzj.js +1 -0
  270. package/dist/chunks/feedback-FoXtdHAV.js +1 -0
  271. package/dist/chunks/figures-gfT9mM8P.js +1 -0
  272. package/dist/chunks/fileStateCache-C7-TxF8G.js +1 -0
  273. package/dist/chunks/files-DYvAZGxp.js +2 -0
  274. package/dist/chunks/firstPartyEventLogger-KIwaBY-E.js +1 -0
  275. package/dist/chunks/flushGate-C2Icy43G.js +1 -0
  276. package/dist/chunks/foundry-sdk-BFN5VDFQ.js +1 -0
  277. package/dist/chunks/fpsMetrics-DeezdcwV.js +1 -0
  278. package/dist/chunks/fuse-Ch_OAlm3.js +1 -0
  279. package/dist/chunks/gates-CbQLZHtm.js +1 -0
  280. package/dist/chunks/gates-DSI3vpwO.js +1 -0
  281. package/dist/chunks/gemini-BrNJGX4k.js +1 -0
  282. package/dist/chunks/generateRecap-B0fvSCjo.js +1 -0
  283. package/dist/chunks/generateSessionName-DvRYa39O.js +1 -0
  284. package/dist/chunks/genericProcessUtils-BGvcwuPt.js +23 -0
  285. package/dist/chunks/getMachineId-bsd-BMtYGBUL.js +1 -0
  286. package/dist/chunks/getMachineId-darwin-CiLdFH7z.js +2 -0
  287. package/dist/chunks/getMachineId-linux-Cr27rIeY.js +1 -0
  288. package/dist/chunks/getMachineId-unsupported-ceiBLwAN.js +1 -0
  289. package/dist/chunks/getMachineId-win-DFTmsQHq.js +1 -0
  290. package/dist/chunks/git-CN3qtTb_.js +6 -0
  291. package/dist/chunks/git-D23Mzu_K.js +1 -0
  292. package/dist/chunks/githubRepoPathMapping-Dut3d6nn.js +1 -0
  293. package/dist/chunks/graceful-fs-Cgc0rjGF.js +2 -0
  294. package/dist/chunks/grok-Ftoheab3.js +1 -0
  295. package/dist/chunks/growthbook-BynnuVTn.js +1 -0
  296. package/dist/chunks/hash-BRmOQc3c.js +1 -0
  297. package/dist/chunks/heapdump-hQ_w0LPC.js +5 -0
  298. package/dist/chunks/help-DQsHHv6r.js +1 -0
  299. package/dist/chunks/hooks-BLLL4iPv.js +1 -0
  300. package/dist/chunks/hooks-BhVDc8yb.js +79 -0
  301. package/dist/chunks/hostAdapter-D1eWmmhu.js +1 -0
  302. package/dist/chunks/hostGuard-zim_4F9V.js +1 -0
  303. package/dist/chunks/httpAuthSchemes-Wq4XWeLL.js +13 -0
  304. package/dist/chunks/ide-CPmMXLL-.js +2 -0
  305. package/dist/chunks/inboundAttachments-Bmf6vYsE.js +1 -0
  306. package/dist/chunks/inboundAttachments-D-p91z3w.js +1 -0
  307. package/dist/chunks/index.min-BJnb9GQI.js +1 -0
  308. package/dist/chunks/initReplBridge-BiHXpDEY.js +1 -0
  309. package/dist/chunks/insights-CTlTyvjj.js +822 -0
  310. package/dist/chunks/install-IPuD3Lq8.js +1 -0
  311. package/dist/chunks/install-github-app-Bmu_sA9e.js +147 -0
  312. package/dist/chunks/install-slack-app-Rfl81Jqo.js +1 -0
  313. package/dist/chunks/instinctParser-DHMa8xa0.js +1 -0
  314. package/dist/chunks/instrumentation-DWwmOmr0.js +12 -0
  315. package/dist/chunks/intl-Pse97ORk.js +1 -0
  316. package/dist/chunks/isObject-DaxDnPKm.js +1 -0
  317. package/dist/chunks/isSymbol-Dp3irZaY.js +1 -0
  318. package/dist/chunks/job-BXEt0izn.js +2 -0
  319. package/dist/chunks/json-bigint-OxRwRvup.js +8 -0
  320. package/dist/chunks/jsx-runtime-D-D469L8.js +1 -0
  321. package/dist/chunks/jws-2vqRyZtR.js +3 -0
  322. package/dist/chunks/jwtUtils-CpXwh_du.js +1 -0
  323. package/dist/chunks/keybindings-DRDgVvqz.js +2 -0
  324. package/dist/chunks/lang-D3ZHlfT6.js +1 -0
  325. package/dist/chunks/language-B_-BfBT4.js +1 -0
  326. package/dist/chunks/language-DcSjogBx.js +1 -0
  327. package/dist/chunks/launchAgentsPlatform-BPm_VMln.js +1 -0
  328. package/dist/chunks/launchAutofixPr-D2qac07g.js +2 -0
  329. package/dist/chunks/launchCommand-Du91jxMC.js +1 -0
  330. package/dist/chunks/launchLocalMemory-D_hBbXKE.js +3 -0
  331. package/dist/chunks/launchLocalVault-CPzNWvQ9.js +3 -0
  332. package/dist/chunks/launchMemoryStores-Djq2KhKb.js +1 -0
  333. package/dist/chunks/launchOnboarding-Bh6E7vdc.js +8 -0
  334. package/dist/chunks/launchSchedule-C988bQ-5.js +1 -0
  335. package/dist/chunks/launchSkillStore-DqrP6Gme.js +1 -0
  336. package/dist/chunks/launchTeleport-DFhybaq_.js +3 -0
  337. package/dist/chunks/launchVault-p_CSK4ZQ.js +1 -0
  338. package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
  339. package/dist/chunks/lib-B4Q0Nrpb.js +14 -0
  340. package/dist/chunks/lib-Ca3QWJjN.js +2 -0
  341. package/dist/chunks/lib-inCisXen.js +8 -0
  342. package/dist/chunks/loadAgentsDir-Ci5mr0vm.js +4601 -0
  343. package/dist/chunks/loadAgentsDir-vB1QEZ7H.js +1 -0
  344. package/dist/chunks/loadPluginHooks-xYCEZ6t5.js +1 -0
  345. package/dist/chunks/loadSso-sDs471GC.js +1 -0
  346. package/dist/chunks/localSearch-DtVqtfvk.js +1 -0
  347. package/dist/chunks/localSearch-Vpn6W5aY.js +1 -0
  348. package/dist/chunks/lockfile-DBwdlC3K.js +1 -0
  349. package/dist/chunks/log-CzsijfHZ.js +1 -0
  350. package/dist/chunks/login-D-N78G6r.js +1 -0
  351. package/dist/chunks/login-D9IWjvza.js +1 -0
  352. package/dist/chunks/logoV2Utils-SAulcC5x.js +1 -0
  353. package/dist/chunks/logout-CFggVS-9.js +1 -0
  354. package/dist/chunks/magicDocs-BfoeYhin.js +57 -0
  355. package/dist/chunks/main-C6be1KFk.js +31 -0
  356. package/dist/chunks/main-DhMlhVj3.js +1108 -0
  357. package/dist/chunks/mappers-uIrAj-Wd.js +1 -0
  358. package/dist/chunks/mcp-CAYGNxCb.js +1 -0
  359. package/dist/chunks/mcp-COQap0SM.js +6 -0
  360. package/dist/chunks/mcp-DlM0OC6R.js +2 -0
  361. package/dist/chunks/mcpServer-1SnOWb8_.js +1 -0
  362. package/dist/chunks/mcpServer-DXvS3v4x.js +1 -0
  363. package/dist/chunks/memoize-DNnuA2aU.js +1 -0
  364. package/dist/chunks/memoize-DxwLawI2.js +1 -0
  365. package/dist/chunks/memory-XccPLQLt.js +1 -0
  366. package/dist/chunks/mobile-umu5P0cM.js +2 -0
  367. package/dist/chunks/modalContext-CmSKRyea.js +1 -0
  368. package/dist/chunks/model-CbiDGGJU.js +1 -0
  369. package/dist/chunks/model-DdbcxKub.js +1 -0
  370. package/dist/chunks/normalization-Cox8C0dP.js +1 -0
  371. package/dist/chunks/oauth-CdZEzMww.js +1 -0
  372. package/dist/chunks/oauth-CmensepG.js +1 -0
  373. package/dist/chunks/observationStore-tvkldXUo.js +4 -0
  374. package/dist/chunks/onChangeAppState-Dp0JIXd8.js +1 -0
  375. package/dist/chunks/open-CDditBQ-.js +1 -0
  376. package/dist/chunks/openai-6KcHd4Hw.js +10 -0
  377. package/dist/chunks/openaiShared-D5lOejS1.js +16 -0
  378. package/dist/chunks/output-style-XDb9-2Kk.js +1 -0
  379. package/dist/chunks/overageCreditGrant-DYiB4sr-.js +1 -0
  380. package/dist/chunks/p-map-9Ud1LOrJ.js +1 -0
  381. package/dist/chunks/p-map-D7WEmnBE.js +1 -0
  382. package/dist/chunks/package-BhL7chzt.js +1 -0
  383. package/dist/chunks/panel-ByW1omJn.js +1 -0
  384. package/dist/chunks/panel-Bz_8td5D.js +1 -0
  385. package/dist/chunks/parseConnectUrl-BS6i9JPo.js +1 -0
  386. package/dist/chunks/parser-CmngCwjB.js +1 -0
  387. package/dist/chunks/parser-SWIZo39J.js +1 -0
  388. package/dist/chunks/passes-Cbc6T_Tj.js +1 -0
  389. package/dist/chunks/path-C4kbwvSH.js +1 -0
  390. package/dist/chunks/paths-Q2255dD7.js +39 -0
  391. package/dist/chunks/permissions-BLzPHh_3.js +3 -0
  392. package/dist/chunks/permissions-DXLfdE7b.js +1 -0
  393. package/dist/chunks/permissions-Ps_D01ZB.js +1 -0
  394. package/dist/chunks/pipeTransport-D7NIp3aA.js +1 -0
  395. package/dist/chunks/plan-DloFVJK7.js +1 -0
  396. package/dist/chunks/platform-CuyedWpe.js +2 -0
  397. package/dist/chunks/plist-BO4ZqMZc.js +6 -0
  398. package/dist/chunks/plugin-XR9IBPMM.js +1 -0
  399. package/dist/chunks/pluginAutoupdate-Cr9hP0zG.js +1 -0
  400. package/dist/chunks/pluginBlocklist-CM9uP8CY.js +1 -0
  401. package/dist/chunks/pluginCliCommands-BQkrvES5.js +1 -0
  402. package/dist/chunks/pluginFlagging-CJ1--2Kw.js +1 -0
  403. package/dist/chunks/pluginOperations-B0rLuSvo.js +2 -0
  404. package/dist/chunks/pluginStartupCheck-Bjdc8zhz.js +1 -0
  405. package/dist/chunks/pluginStartupCheck-Cu2ezD51.js +1 -0
  406. package/dist/chunks/plugins-BgOP_8TX.js +4 -0
  407. package/dist/chunks/policyLimits-CKy_gTEt.js +1 -0
  408. package/dist/chunks/pollConfig-DhptuhFw.js +1 -0
  409. package/dist/chunks/poller-Ds0Y6Cir.js +1 -0
  410. package/dist/chunks/poor-DF0aqXDx.js +1 -0
  411. package/dist/chunks/poorMode-C5Frra4j.js +1 -0
  412. package/dist/chunks/poorMode-DJvjO2nW.js +1 -0
  413. package/dist/chunks/postCommitAttribution-Ehmwzzuq.js +1 -0
  414. package/dist/chunks/print-CPtR0KTa.js +39 -0
  415. package/dist/chunks/privacy-settings-e-7lc7Un.js +1 -0
  416. package/dist/chunks/process-CWupreF6.js +1 -0
  417. package/dist/chunks/process-DMKLUQIO.js +1 -0
  418. package/dist/chunks/processBashCommand-D5dC6Mya.js +1 -0
  419. package/dist/chunks/processSlashCommand-DHRUtZ-C.js +6 -0
  420. package/dist/chunks/projectContext-0fpRKUeH.js +1 -0
  421. package/dist/chunks/projectContext-eXMSfgdZ.js +1 -0
  422. package/dist/chunks/prompt-4tea6NJQ.js +54 -0
  423. package/dist/chunks/prompt-CQC-mh6u.js +1 -0
  424. package/dist/chunks/prompt-DEPUnJdB.js +222 -0
  425. package/dist/chunks/prompt-DawxLANl.js +1 -0
  426. package/dist/chunks/promptEditor-Ci-h04-5.js +4 -0
  427. package/dist/chunks/protocolHandler-DhqM32qE.js +13 -0
  428. package/dist/chunks/protocols-CAyQOlkr.js +7 -0
  429. package/dist/chunks/proxy-CfZp-wce.js +99 -0
  430. package/dist/chunks/rate-limit-options-B0l29Zx8.js +1 -0
  431. package/dist/chunks/rcDebugLog-BbPkkigY.js +11 -0
  432. package/dist/chunks/referral-ByevBJrE.js +1 -0
  433. package/dist/chunks/refresh-B_CwwIRX.js +1 -0
  434. package/dist/chunks/registerProtocol-DzhaQH02.js +36 -0
  435. package/dist/chunks/registry-DkHA4cRu.js +1 -0
  436. package/dist/chunks/release-notes-CZthYkei.js +4 -0
  437. package/dist/chunks/releaseNotes-CwKpIsyd.js +2 -0
  438. package/dist/chunks/reload-plugins-DxWfXvrN.js +1 -0
  439. package/dist/chunks/remote-env-BiRLWIrh.js +1 -0
  440. package/dist/chunks/remoteBridgeCore-nz1fPY1U.js +1 -0
  441. package/dist/chunks/remoteControlServer-FzLUxh2B.js +3 -0
  442. package/dist/chunks/rename-DmGuyncE.js +1 -0
  443. package/dist/chunks/renderOptions-BiyC2rj1.js +1 -0
  444. package/dist/chunks/resume-7GeU7RMS.js +2 -0
  445. package/dist/chunks/rewind-CXplHgh_.js +1 -0
  446. package/dist/chunks/rollback-DbSpxmJE.js +11 -0
  447. package/dist/chunks/runtimeObserver-Duod-ign.js +10 -0
  448. package/dist/chunks/runtimeObserver-OgM9ZYxZ.js +1 -0
  449. package/dist/chunks/sandbox-adapter-CxkhKgaa.js +1 -0
  450. package/dist/chunks/sandbox-toggle-Cc96R6Ox.js +1 -0
  451. package/dist/chunks/sanitization-CYp-9DbE.js +1 -0
  452. package/dist/chunks/satisfies-BaHgd_ie.js +1 -0
  453. package/dist/chunks/schemas-BGAvj1T4.js +40 -0
  454. package/dist/chunks/sdk-DEtgRZvI.js +1 -0
  455. package/dist/chunks/sdkHeapDumpMonitor--fevrC5z.js +1 -0
  456. package/dist/chunks/searchExtraTools-DQ6e601b.js +1 -0
  457. package/dist/chunks/semver-Cq33BYay.js +1 -0
  458. package/dist/chunks/semver-Tw0AFar5.js +1 -0
  459. package/dist/chunks/sentry-BUHYuYGj.js +13 -0
  460. package/dist/chunks/server-C5XZSlto.js +1 -0
  461. package/dist/chunks/server-DzOdtq8A.js +1 -0
  462. package/dist/chunks/serverBanner-WlSYP-f8.js +1 -0
  463. package/dist/chunks/serverLog-DtsUvDiY.js +1 -0
  464. package/dist/chunks/session-DgLqm7ZI.js +2 -0
  465. package/dist/chunks/sessionDataUploader-Ctjo1bgR.js +1 -0
  466. package/dist/chunks/sessionDiscovery-DgNea6qa.js +1 -0
  467. package/dist/chunks/sessionFileAccessHooks-7Svz-7S-.js +1 -0
  468. package/dist/chunks/sessionManager-Dw72ZUTg.js +1 -0
  469. package/dist/chunks/sessionMemory-DIrR3zvb.js +1 -0
  470. package/dist/chunks/sessionMemory-_dmj8lcH.js +1 -0
  471. package/dist/chunks/sessionMemoryUtils-BdQtSkRx.js +1 -0
  472. package/dist/chunks/sessionObserver-CuWMVPlT.js +20 -0
  473. package/dist/chunks/sessionObserver-_adufOGQ.js +1 -0
  474. package/dist/chunks/sessionStorage-W7okgAlQ.js +1 -0
  475. package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +3 -0
  476. package/dist/chunks/sessionTitle-DzkMzHer.js +14 -0
  477. package/dist/chunks/sessionTracing-DTjmc0EF.js +11 -0
  478. package/dist/chunks/settingsSync-CfYDkakY.js +1 -0
  479. package/dist/chunks/setup-BKUG46jQ.js +9 -0
  480. package/dist/chunks/setup-CmLngvpJ.js +1 -0
  481. package/dist/chunks/setup-TqJ7-Nxh.js +2 -0
  482. package/dist/chunks/shadowedRuleDetection-DesT0yKM.js +1 -0
  483. package/dist/chunks/shellQuote-DgjT8KBA.js +1 -0
  484. package/dist/chunks/sideQuestion-BAq0YyKY.js +20 -0
  485. package/dist/chunks/signin-QEeYpJZw.js +1 -0
  486. package/dist/chunks/sink-B3uP8Cf8.js +1 -0
  487. package/dist/chunks/sink-CaWMZBw_.js +1 -0
  488. package/dist/chunks/sinks-COcy5GnB.js +2 -0
  489. package/dist/chunks/sinks-oFfsKySL.js +1 -0
  490. package/dist/chunks/skill-learning-DOIMPtWE.js +5 -0
  491. package/dist/chunks/skillChangeDetector-CA_Tdx8N.js +1 -0
  492. package/dist/chunks/skillGapStore-CWuw1dYh.js +1 -0
  493. package/dist/chunks/skillGapStore-DpEoKhn-.js +5 -0
  494. package/dist/chunks/skillGenerator-9y3Q4YoO.js +8 -0
  495. package/dist/chunks/skillLearning-BhM09bQD.js +1 -0
  496. package/dist/chunks/skillLearning-_o2D06yM.js +1 -0
  497. package/dist/chunks/skillPanel-Dt24mZTZ.js +28 -0
  498. package/dist/chunks/skillSearchPanel-gaXN64Fu.js +21 -0
  499. package/dist/chunks/skills-Dx3dMHYk.js +1 -0
  500. package/dist/chunks/slashCommandParsing-Cari0pNg.js +1 -0
  501. package/dist/chunks/sleep-8Eb9j_Ly.js +1 -0
  502. package/dist/chunks/sprites-5OAB-Ui2.js +1 -0
  503. package/dist/chunks/src-BIPP3_mo.js +26 -0
  504. package/dist/chunks/src-BJz1KAd_.js +6 -0
  505. package/dist/chunks/src-BRAdBA8A.js +1 -0
  506. package/dist/chunks/src-BRC_BuUP.js +1 -0
  507. package/dist/chunks/src-BaB-bpCj.js +5 -0
  508. package/dist/chunks/src-BlLavFUS.js +7 -0
  509. package/dist/chunks/src-C5yhFG0C.js +19 -0
  510. package/dist/chunks/src-CI_jaaBj.js +2 -0
  511. package/dist/chunks/src-CRsA-Z4y.js +1 -0
  512. package/dist/chunks/src-CYLfL70h.js +1 -0
  513. package/dist/chunks/src-DJXCzwyJ.js +1 -0
  514. package/dist/chunks/src-DJXKJavk.js +1 -0
  515. package/dist/chunks/src-Di342QoJ.js +53 -0
  516. package/dist/chunks/src-DsMd9Q9e.js +2 -0
  517. package/dist/chunks/src-DzH9IdOo.js +1 -0
  518. package/dist/chunks/src-hdbPEvzO.js +9 -0
  519. package/dist/chunks/src-poaoYkuc.js +1 -0
  520. package/dist/chunks/src-x7u_sB6m.js +1 -0
  521. package/dist/chunks/sso-oidc-BX1MlBX0.js +1 -0
  522. package/dist/chunks/startupProfiler-DnXZaX4A.js +3 -0
  523. package/dist/chunks/startupProfiler-SOE--nM9.js +1 -0
  524. package/dist/chunks/state-B2GIOsTB.js +1 -0
  525. package/dist/chunks/state-Ce1HlR-H.js +1 -0
  526. package/dist/chunks/state-sIHsFpDu.js +1 -0
  527. package/dist/chunks/staticRender-Br64h1E1.js +1 -0
  528. package/dist/chunks/stats-TUExo9iU.js +1 -0
  529. package/dist/chunks/status-Dghaz1my.js +1 -0
  530. package/dist/chunks/statusNoticeHelpers-DVZSSXeK.js +1 -0
  531. package/dist/chunks/stdio-BEEzuxaZ.js +1 -0
  532. package/dist/chunks/stdio-D4cT86R0.js +3 -0
  533. package/dist/chunks/stickers-2K05wjSp.js +1 -0
  534. package/dist/chunks/store-DhI7Lcan.js +1 -0
  535. package/dist/chunks/sts-BDFJ-6QE.js +1 -0
  536. package/dist/chunks/subprocessEnv-CggQWZCx.js +1 -0
  537. package/dist/chunks/subprocessEnv-DV6q6o6w.js +1 -0
  538. package/dist/chunks/supports-color-lkzOMQ6u.js +1 -0
  539. package/dist/chunks/systemPromptSections-BcN_XBTx.js +1 -0
  540. package/dist/chunks/systemPromptSections-DB93ZNWP.js +1 -0
  541. package/dist/chunks/systemTheme-dDbitcxB.js +1 -0
  542. package/dist/chunks/tag-ZcVkzFjz.js +11 -0
  543. package/dist/chunks/tasks-DbB33ekt.js +1 -0
  544. package/dist/chunks/teamHelpers-BmN9nKz-.js +1 -0
  545. package/dist/chunks/teamHelpers-yeTNtZbb.js +1 -0
  546. package/dist/chunks/teammate-DMYOtLTK.js +1 -0
  547. package/dist/chunks/teammateModeSnapshot-CPjJJDL1.js +1 -0
  548. package/dist/chunks/teammateModeSnapshot-CsNIJTKi.js +1 -0
  549. package/dist/chunks/teleport-JHgpwZIh.js +1 -0
  550. package/dist/chunks/templateJobs-Db630FZD.js +12 -0
  551. package/dist/chunks/terminalSetup-DJqWE8fc.js +33 -0
  552. package/dist/chunks/terminalSetup-ygKHrVKR.js +1 -0
  553. package/dist/chunks/theme-MmfFhdTD.js +1 -0
  554. package/dist/chunks/thinkback-CrNirB0V.js +1 -0
  555. package/dist/chunks/thinkback-Quc7KPmi.js +1 -0
  556. package/dist/chunks/thinkback-play-CQ1s7oqg.js +1 -0
  557. package/dist/chunks/tmux-CvbhsfwG.js +1 -0
  558. package/dist/chunks/toolEventObserver-BqMplcIk.js +1 -0
  559. package/dist/chunks/toolEventObserver-DBq2XBYY.js +1 -0
  560. package/dist/chunks/toolPool-BkCtTKXz.js +1 -0
  561. package/dist/chunks/toolPool-C7bOwJfR.js +1 -0
  562. package/dist/chunks/trustedDevice-C9Zevohz.js +1 -0
  563. package/dist/chunks/trustedDevice-DEuQUTbz.js +1 -0
  564. package/dist/chunks/tui-BVc2q4Xv.js +6 -0
  565. package/dist/chunks/turndown.es-Bv06VjMb.js +69 -0
  566. package/dist/chunks/types-CQ1wrnQ0.js +1 -0
  567. package/dist/chunks/types-Csi32ZXh.js +17 -0
  568. package/dist/chunks/types-RJTEOuIt.js +3 -0
  569. package/dist/chunks/udsClient-BvG_Jip0.js +1 -0
  570. package/dist/chunks/ultrareviewCommand-DrlfRrXq.js +3 -0
  571. package/dist/chunks/undercover-CBeHiWUd.js +1 -0
  572. package/dist/chunks/undercover-DKn95mh9.js +31 -0
  573. package/dist/chunks/up-D-U4wUCe.js +12 -0
  574. package/dist/chunks/updateCCB-CJ7dCUan.js +11 -0
  575. package/dist/chunks/upgrade-Degqbu8S.js +1 -0
  576. package/dist/chunks/upgrade-ucJ-lnlY.js +1 -0
  577. package/dist/chunks/upload-pTZQCPLt.js +1 -0
  578. package/dist/chunks/upstreamproxy-DcLeL2XX.js +11 -0
  579. package/dist/chunks/usage-D96a7Cke.js +1 -0
  580. package/dist/chunks/usage-DVQMUMcC.js +1 -0
  581. package/dist/chunks/useKeybinding-FsOnjW6T.js +1 -0
  582. package/dist/chunks/useMainLoopModel-B7ch2o9K.js +1 -0
  583. package/dist/chunks/useManagePlugins-BfGzHMvO.js +1 -0
  584. package/dist/chunks/useMergedTools-TemEvCrX.js +1 -0
  585. package/dist/chunks/useSearchInput-B-V4kIa-.js +1 -0
  586. package/dist/chunks/useSettingsErrors-B2JGz1s8.js +1 -0
  587. package/dist/chunks/useVoice-BuwYDm2U.js +1 -0
  588. package/dist/chunks/util-CeIKZmj9.js +1 -0
  589. package/dist/chunks/utils-CwhszpkT.js +1 -0
  590. package/dist/chunks/v4-f1i_CNUT.js +1 -0
  591. package/dist/chunks/validatePlugin-BlVho93x.js +1 -0
  592. package/dist/chunks/vertex-sdk-CSGw3fvU.js +9 -0
  593. package/dist/chunks/vim-DUZQCWUP.js +1 -0
  594. package/dist/chunks/voice-BkRIHZiM.js +2 -0
  595. package/dist/chunks/voice-DXiiy8HX.js +8 -0
  596. package/dist/chunks/voiceModeEnabled-CPQUE3PU.js +1 -0
  597. package/dist/chunks/voiceModeEnabled-DB8GCzAF.js +1 -0
  598. package/dist/chunks/voiceStreamSTT-DgoDscHn.js +1 -0
  599. package/dist/chunks/voiceStreamSTT-Dr_wH1Kh.js +1 -0
  600. package/dist/chunks/which-DqSAIvp2.js +1 -0
  601. package/dist/chunks/windowsPaths-C9CigqoF.js +1 -0
  602. package/dist/chunks/windowsPaths-swxCp7bX.js +2 -0
  603. package/dist/chunks/workSecret-mS2OrpxF.js +1 -0
  604. package/dist/chunks/workerRegistry-CT7_kjvY.js +1 -0
  605. package/dist/chunks/worktree-DU3xtwKW.js +1 -0
  606. package/dist/chunks/worktreeModeEnabled-Db6b_Iy_.js +1 -0
  607. package/dist/chunks/worktreeModeEnabled-THQb19xR.js +1 -0
  608. package/dist/chunks/wrapper-BSK0MCQH.js +1 -0
  609. package/dist/chunks/wrapper-D5qL1aQL.js +6 -0
  610. package/dist/chunks/xdg-CBxMmQux.js +1 -0
  611. package/dist/chunks/xml-DD_ldd3X.js +1 -0
  612. package/dist/chunks/zod-DT6hytkp.js +1 -0
  613. package/dist/cli.js +1 -10934
  614. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import{a as e,i as t,n,r,t as i}from"./chunk-DR8-3Aex.js";import{n as a,t as o}from"./defineProperty-80gRi2ZW.js";import{a as s,c,i as l,l as u,n as d,o as f,r as p,s as m,t as h,u as g}from"./classPrivateFieldSet2-EAQNhHs8.js";import{t as _}from"./semver-Cq33BYay.js";var v=i((e=>{a();var n,r,i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.Minipass=e.isWritable=e.isReadable=e.isStream=void 0;var s=typeof process==`object`&&process?process:{stdout:null,stderr:null},c=t(`node:events`),l=i(t(`node:stream`)),u=t(`node:string_decoder`);e.isStream=t=>!!t&&typeof t==`object`&&(t instanceof re||t instanceof l.default||(0,e.isReadable)(t)||(0,e.isWritable)(t)),e.isReadable=e=>!!e&&typeof e==`object`&&e instanceof c.EventEmitter&&typeof e.pipe==`function`&&e.pipe!==l.default.Writable.prototype.pipe,e.isWritable=e=>!!e&&typeof e==`object`&&e instanceof c.EventEmitter&&typeof e.write==`function`&&typeof e.end==`function`;var d=Symbol(`EOF`),f=Symbol(`maybeEmitEnd`),p=Symbol(`emittedEnd`),m=Symbol(`emittingEnd`),h=Symbol(`emittedError`),g=Symbol(`closed`),_=Symbol(`read`),v=Symbol(`flush`),y=Symbol(`flushChunk`),b=Symbol(`encoding`),x=Symbol(`decoder`),S=Symbol(`flowing`),C=Symbol(`paused`),w=Symbol(`resume`),T=Symbol(`buffer`),E=Symbol(`pipes`),D=Symbol(`bufferLength`),O=Symbol(`bufferPush`),k=Symbol(`bufferShift`),A=Symbol(`objectMode`),j=Symbol(`destroyed`),M=Symbol(`error`),N=Symbol(`emitData`),P=Symbol(`emitEnd`),F=Symbol(`emitEnd2`),I=Symbol(`async`),L=Symbol(`abort`),R=Symbol(`aborted`),z=Symbol(`signal`),B=Symbol(`dataListeners`),V=Symbol(`discarded`),H=e=>Promise.resolve().then(e),U=e=>e(),W=e=>e===`end`||e===`finish`||e===`prefinish`,G=e=>e instanceof ArrayBuffer||!!e&&typeof e==`object`&&e.constructor&&e.constructor.name===`ArrayBuffer`&&e.byteLength>=0,ee=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),K=class{constructor(e,t,n){o(this,`src`,void 0),o(this,`dest`,void 0),o(this,`opts`,void 0),o(this,`ondrain`,void 0),this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[w](),this.dest.on(`drain`,this.ondrain)}unpipe(){this.dest.removeListener(`drain`,this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},q=class extends K{unpipe(){this.src.removeListener(`error`,this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit(`error`,e),e.on(`error`,this.proxyErrors)}},te=e=>!!e.objectMode,ne=e=>!e.objectMode&&!!e.encoding&&e.encoding!==`buffer`;n=Symbol.asyncIterator,r=Symbol.iterator;var re=class extends c.EventEmitter{constructor(...e){let t=e[0]||{};if(super(),o(this,S,!1),o(this,C,!1),o(this,E,[]),o(this,T,[]),o(this,A,void 0),o(this,b,void 0),o(this,I,void 0),o(this,x,void 0),o(this,d,!1),o(this,p,!1),o(this,m,!1),o(this,g,!1),o(this,h,null),o(this,D,0),o(this,j,!1),o(this,z,void 0),o(this,R,!1),o(this,B,0),o(this,V,!1),o(this,`writable`,!0),o(this,`readable`,!0),t.objectMode&&typeof t.encoding==`string`)throw TypeError(`Encoding and objectMode may not be used together`);te(t)?(this[A]=!0,this[b]=null):ne(t)?(this[b]=t.encoding,this[A]=!1):(this[A]=!1,this[b]=null),this[I]=!!t.async,this[x]=this[b]?new u.StringDecoder(this[b]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,`buffer`,{get:()=>this[T]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,`pipes`,{get:()=>this[E]});let{signal:n}=t;n&&(this[z]=n,n.aborted?this[L]():n.addEventListener(`abort`,()=>this[L]()))}get bufferLength(){return this[D]}get encoding(){return this[b]}set encoding(e){throw Error(`Encoding must be set at instantiation time`)}setEncoding(e){throw Error(`Encoding must be set at instantiation time`)}get objectMode(){return this[A]}set objectMode(e){throw Error(`objectMode must be set at instantiation time`)}get async(){return this[I]}set async(e){this[I]=this[I]||!!e}[L](){this[R]=!0,this.emit(`abort`,this[z]?.reason),this.destroy(this[z]?.reason)}get aborted(){return this[R]}set aborted(e){}write(e,t,n){if(this[R])return!1;if(this[d])throw Error(`write after end`);if(this[j])return this.emit(`error`,Object.assign(Error(`Cannot call write after a stream was destroyed`),{code:`ERR_STREAM_DESTROYED`})),!0;typeof t==`function`&&(n=t,t=`utf8`),t||(t=`utf8`);let r=this[I]?H:U;if(!this[A]&&!Buffer.isBuffer(e)){if(ee(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(G(e))e=Buffer.from(e);else if(typeof e!=`string`)throw Error(`Non-contiguous data written to non-objectMode stream`)}return this[A]?(this[S]&&this[D]!==0&&this[v](!0),this[S]?this.emit(`data`,e):this[O](e),this[D]!==0&&this.emit(`readable`),n&&r(n),this[S]):e.length?(typeof e==`string`&&!(t===this[b]&&!this[x]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[b]&&(e=this[x].write(e)),this[S]&&this[D]!==0&&this[v](!0),this[S]?this.emit(`data`,e):this[O](e),this[D]!==0&&this.emit(`readable`),n&&r(n),this[S]):(this[D]!==0&&this.emit(`readable`),n&&r(n),this[S])}read(e){if(this[j])return null;if(this[V]=!1,this[D]===0||e===0||e&&e>this[D])return this[f](),null;this[A]&&(e=null),this[T].length>1&&!this[A]&&(this[T]=[this[b]?this[T].join(``):Buffer.concat(this[T],this[D])]);let t=this[_](e||null,this[T][0]);return this[f](),t}[_](e,t){if(this[A])this[k]();else{let n=t;e===n.length||e===null?this[k]():typeof n==`string`?(this[T][0]=n.slice(e),t=n.slice(0,e),this[D]-=e):(this[T][0]=n.subarray(e),t=n.subarray(0,e),this[D]-=e)}return this.emit(`data`,t),!this[T].length&&!this[d]&&this.emit(`drain`),t}end(e,t,n){return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=`utf8`),e!==void 0&&this.write(e,t),n&&this.once(`end`,n),this[d]=!0,this.writable=!1,(this[S]||!this[C])&&this[f](),this}[w](){this[j]||(!this[B]&&!this[E].length&&(this[V]=!0),this[C]=!1,this[S]=!0,this.emit(`resume`),this[T].length?this[v]():this[d]?this[f]():this.emit(`drain`))}resume(){return this[w]()}pause(){this[S]=!1,this[C]=!0,this[V]=!1}get destroyed(){return this[j]}get flowing(){return this[S]}get paused(){return this[C]}[O](e){this[A]?this[D]+=1:this[D]+=e.length,this[T].push(e)}[k](){return this[A]?--this[D]:this[D]-=this[T][0].length,this[T].shift()}[v](e=!1){do;while(this[y](this[k]())&&this[T].length);!e&&!this[T].length&&!this[d]&&this.emit(`drain`)}[y](e){return this.emit(`data`,e),this[S]}pipe(e,t){if(this[j])return e;this[V]=!1;let n=this[p];return t=t||{},e===s.stdout||e===s.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[E].push(t.proxyErrors?new q(this,e,t):new K(this,e,t)),this[I]?H(()=>this[w]()):this[w]()),e}unpipe(e){let t=this[E].find(t=>t.dest===e);t&&(this[E].length===1?(this[S]&&this[B]===0&&(this[S]=!1),this[E]=[]):this[E].splice(this[E].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if(e===`data`)this[V]=!1,this[B]++,!this[E].length&&!this[S]&&this[w]();else if(e===`readable`&&this[D]!==0)super.emit(`readable`);else if(W(e)&&this[p])super.emit(e),this.removeAllListeners(e);else if(e===`error`&&this[h]){let e=t;this[I]?H(()=>e.call(this,this[h])):e.call(this,this[h])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return e===`data`&&(this[B]=this.listeners(`data`).length,this[B]===0&&!this[V]&&!this[E].length&&(this[S]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return(e===`data`||e===void 0)&&(this[B]=0,!this[V]&&!this[E].length&&(this[S]=!1)),t}get emittedEnd(){return this[p]}[f](){!this[m]&&!this[p]&&!this[j]&&this[T].length===0&&this[d]&&(this[m]=!0,this.emit(`end`),this.emit(`prefinish`),this.emit(`finish`),this[g]&&this.emit(`close`),this[m]=!1)}emit(e,...t){let n=t[0];if(e!==`error`&&e!==`close`&&e!==j&&this[j])return!1;if(e===`data`)return!this[A]&&!n?!1:this[I]?(H(()=>this[N](n)),!0):this[N](n);if(e===`end`)return this[P]();if(e===`close`){if(this[g]=!0,!this[p]&&!this[j])return!1;let e=super.emit(`close`);return this.removeAllListeners(`close`),e}else if(e===`error`){this[h]=n,super.emit(M,n);let e=!this[z]||this.listeners(`error`).length?super.emit(`error`,n):!1;return this[f](),e}else if(e===`resume`){let e=super.emit(`resume`);return this[f](),e}else if(e===`finish`||e===`prefinish`){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[f](),r}[N](e){for(let t of this[E])t.dest.write(e)===!1&&this.pause();let t=this[V]?!1:super.emit(`data`,e);return this[f](),t}[P](){return this[p]?!1:(this[p]=!0,this.readable=!1,this[I]?(H(()=>this[F]()),!0):this[F]())}[F](){if(this[x]){let e=this[x].end();if(e){for(let t of this[E])t.dest.write(e);this[V]||super.emit(`data`,e)}}for(let e of this[E])e.end();let e=super.emit(`end`);return this.removeAllListeners(`end`),e}async collect(){let e=Object.assign([],{dataLength:0});this[A]||(e.dataLength=0);let t=this.promise();return this.on(`data`,t=>{e.push(t),this[A]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[A])throw Error(`cannot concat in objectMode`);let e=await this.collect();return this[b]?e.join(``):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(j,()=>t(Error(`stream destroyed`))),this.on(`error`,e=>t(e)),this.on(`end`,()=>e())})}[n](){this[V]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[d])return t();let r,i,a=e=>{this.off(`data`,o),this.off(`end`,s),this.off(j,c),t(),i(e)},o=e=>{this.off(`error`,a),this.off(`end`,s),this.off(j,c),this.pause(),r({value:e,done:!!this[d]})},s=()=>{this.off(`error`,a),this.off(`data`,o),this.off(j,c),t(),r({done:!0,value:void 0})},c=()=>a(Error(`stream destroyed`));return new Promise((e,t)=>{i=t,r=e,this.once(j,c),this.once(`error`,a),this.once(`end`,s),this.once(`data`,o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[r](){this[V]=!1;let e=!1,t=()=>(this.pause(),this.off(M,t),this.off(j,t),this.off(`end`,t),e=!0,{done:!0,value:void 0});return this.once(`end`,t),this.once(M,t),this.once(j,t),{next:()=>{if(e)return t();let n=this.read();return n===null?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[j])return e?this.emit(`error`,e):this.emit(j),this;this[j]=!0,this[V]=!0,this[T].length=0,this[D]=0;let t=this;return typeof t.close==`function`&&!this[g]&&t.close(),e?this.emit(`error`,e):this.emit(j),this}static get isStream(){return e.isStream}};e.Minipass=re})),y=i(((e,t)=>{var{Minipass:n}=v(),r=Symbol(`_data`),i=Symbol(`_length`);t.exports=class extends n{constructor(e){super(e),this[r]=[],this[i]=0}write(e,t,n){typeof t==`function`&&(n=t,t=`utf8`),t||(t=`utf8`);let a=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[r].push(a),this[i]+=a.length,n&&n(),!0}end(e,t,n){typeof e==`function`&&(n=e,e=null),typeof t==`function`&&(n=t,t=`utf8`),e&&this.write(e,t);let a=Buffer.concat(this[r],this[i]);return super.write(a),super.end(n)}};var a=class extends n{constructor(e){super(e),this[r]=[],this[i]=0}write(e,t,n){typeof t==`function`&&(n=t,t=`utf8`),t||(t=`utf8`);let a=Buffer.isBuffer(e)?e:Buffer.from(e,t);return this[r].push(a),this[i]+=a.length,super.write(e,t,n)}end(e,t,n){typeof e==`function`&&(n=e,e=null),typeof t==`function`&&(n=t,t=`utf8`),e&&this.write(e,t);let a=Buffer.concat(this[r],this[i]);return this.emit(`collect`,a),super.end(n)}};t.exports.PassThrough=a})),b=i(((e,n)=>{var r=typeof process==`object`&&process?process:{stdout:null,stderr:null},i=t(`events`),a=t(`stream`),o=t(`string_decoder`).StringDecoder,s=Symbol(`EOF`),c=Symbol(`maybeEmitEnd`),l=Symbol(`emittedEnd`),u=Symbol(`emittingEnd`),d=Symbol(`emittedError`),f=Symbol(`closed`),p=Symbol(`read`),m=Symbol(`flush`),h=Symbol(`flushChunk`),g=Symbol(`encoding`),_=Symbol(`decoder`),v=Symbol(`flowing`),y=Symbol(`paused`),b=Symbol(`resume`),x=Symbol(`bufferLength`),S=Symbol(`bufferPush`),C=Symbol(`bufferShift`),w=Symbol(`objectMode`),T=Symbol(`destroyed`),E=Symbol(`emitData`),D=Symbol(`emitEnd`),O=Symbol(`emitEnd2`),k=Symbol(`async`),A=e=>Promise.resolve().then(e),j=global._MP_NO_ITERATOR_SYMBOLS_!==`1`,M=j&&Symbol.asyncIterator||Symbol(`asyncIterator not implemented`),N=j&&Symbol.iterator||Symbol(`iterator not implemented`),P=e=>e===`end`||e===`finish`||e===`prefinish`,F=e=>e instanceof ArrayBuffer||typeof e==`object`&&e.constructor&&e.constructor.name===`ArrayBuffer`&&e.byteLength>=0,I=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),L=class{constructor(e,t,n){this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[b](),t.on(`drain`,this.ondrain)}unpipe(){this.dest.removeListener(`drain`,this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},R=class extends L{unpipe(){this.src.removeListener(`error`,this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>t.emit(`error`,e),e.on(`error`,this.proxyErrors)}};n.exports=class e extends a{constructor(e){super(),this[v]=!1,this[y]=!1,this.pipes=[],this.buffer=[],this[w]=e&&e.objectMode||!1,this[w]?this[g]=null:this[g]=e&&e.encoding||null,this[g]===`buffer`&&(this[g]=null),this[k]=e&&!!e.async||!1,this[_]=this[g]?new o(this[g]):null,this[s]=!1,this[l]=!1,this[u]=!1,this[f]=!1,this[d]=null,this.writable=!0,this.readable=!0,this[x]=0,this[T]=!1}get bufferLength(){return this[x]}get encoding(){return this[g]}set encoding(e){if(this[w])throw Error(`cannot set encoding in objectMode`);if(this[g]&&e!==this[g]&&(this[_]&&this[_].lastNeed||this[x]))throw Error(`cannot change encoding`);this[g]!==e&&(this[_]=e?new o(e):null,this.buffer.length&&(this.buffer=this.buffer.map(e=>this[_].write(e)))),this[g]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[w]}set objectMode(e){this[w]=this[w]||!!e}get async(){return this[k]}set async(e){this[k]=this[k]||!!e}write(e,t,n){if(this[s])throw Error(`write after end`);if(this[T])return this.emit(`error`,Object.assign(Error(`Cannot call write after a stream was destroyed`),{code:`ERR_STREAM_DESTROYED`})),!0;typeof t==`function`&&(n=t,t=`utf8`),t||(t=`utf8`);let r=this[k]?A:e=>e();return!this[w]&&!Buffer.isBuffer(e)&&(I(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):F(e)?e=Buffer.from(e):typeof e!=`string`&&(this.objectMode=!0)),this[w]?(this.flowing&&this[x]!==0&&this[m](!0),this.flowing?this.emit(`data`,e):this[S](e),this[x]!==0&&this.emit(`readable`),n&&r(n),this.flowing):e.length?(typeof e==`string`&&!(t===this[g]&&!this[_].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[g]&&(e=this[_].write(e)),this.flowing&&this[x]!==0&&this[m](!0),this.flowing?this.emit(`data`,e):this[S](e),this[x]!==0&&this.emit(`readable`),n&&r(n),this.flowing):(this[x]!==0&&this.emit(`readable`),n&&r(n),this.flowing)}read(e){if(this[T])return null;if(this[x]===0||e===0||e>this[x])return this[c](),null;this[w]&&(e=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join(``)]:this.buffer=[Buffer.concat(this.buffer,this[x])]);let t=this[p](e||null,this.buffer[0]);return this[c](),t}[p](e,t){return e===t.length||e===null?this[C]():(this.buffer[0]=t.slice(e),t=t.slice(0,e),this[x]-=e),this.emit(`data`,t),!this.buffer.length&&!this[s]&&this.emit(`drain`),t}end(e,t,n){return typeof e==`function`&&(n=e,e=null),typeof t==`function`&&(n=t,t=`utf8`),e&&this.write(e,t),n&&this.once(`end`,n),this[s]=!0,this.writable=!1,(this.flowing||!this[y])&&this[c](),this}[b](){this[T]||(this[y]=!1,this[v]=!0,this.emit(`resume`),this.buffer.length?this[m]():this[s]?this[c]():this.emit(`drain`))}resume(){return this[b]()}pause(){this[v]=!1,this[y]=!0}get destroyed(){return this[T]}get flowing(){return this[v]}get paused(){return this[y]}[S](e){this[w]?this[x]+=1:this[x]+=e.length,this.buffer.push(e)}[C](){return this.buffer.length&&(this[w]?--this[x]:this[x]-=this.buffer[0].length),this.buffer.shift()}[m](e){do;while(this[h](this[C]()));!e&&!this.buffer.length&&!this[s]&&this.emit(`drain`)}[h](e){return e?(this.emit(`data`,e),this.flowing):!1}pipe(e,t){if(this[T])return;let n=this[l];return t=t||{},e===r.stdout||e===r.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this.pipes.push(t.proxyErrors?new R(this,e,t):new L(this,e,t)),this[k]?A(()=>this[b]()):this[b]()),e}unpipe(e){let t=this.pipes.find(t=>t.dest===e);t&&(this.pipes.splice(this.pipes.indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);return e===`data`&&!this.pipes.length&&!this.flowing?this[b]():e===`readable`&&this[x]!==0?super.emit(`readable`):P(e)&&this[l]?(super.emit(e),this.removeAllListeners(e)):e===`error`&&this[d]&&(this[k]?A(()=>t.call(this,this[d])):t.call(this,this[d])),n}get emittedEnd(){return this[l]}[c](){!this[u]&&!this[l]&&!this[T]&&this.buffer.length===0&&this[s]&&(this[u]=!0,this.emit(`end`),this.emit(`prefinish`),this.emit(`finish`),this[f]&&this.emit(`close`),this[u]=!1)}emit(e,t,...n){if(e!==`error`&&e!==`close`&&e!==T&&this[T])return;if(e===`data`)return t?this[k]?A(()=>this[E](t)):this[E](t):!1;if(e===`end`)return this[D]();if(e===`close`){if(this[f]=!0,!this[l]&&!this[T])return;let e=super.emit(`close`);return this.removeAllListeners(`close`),e}else if(e===`error`){this[d]=t;let e=super.emit(`error`,t);return this[c](),e}else if(e===`resume`){let e=super.emit(`resume`);return this[c](),e}else if(e===`finish`||e===`prefinish`){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,t,...n);return this[c](),r}[E](e){for(let t of this.pipes)t.dest.write(e)===!1&&this.pause();let t=super.emit(`data`,e);return this[c](),t}[D](){this[l]||(this[l]=!0,this.readable=!1,this[k]?A(()=>this[O]()):this[O]())}[O](){if(this[_]){let e=this[_].end();if(e){for(let t of this.pipes)t.dest.write(e);super.emit(`data`,e)}}for(let e of this.pipes)e.end();let e=super.emit(`end`);return this.removeAllListeners(`end`),e}collect(){let e=[];this[w]||(e.dataLength=0);let t=this.promise();return this.on(`data`,t=>{e.push(t),this[w]||(e.dataLength+=t.length)}),t.then(()=>e)}concat(){return this[w]?Promise.reject(Error(`cannot concat in objectMode`)):this.collect().then(e=>this[w]?Promise.reject(Error(`cannot concat in objectMode`)):this[g]?e.join(``):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(T,()=>t(Error(`stream destroyed`))),this.on(`error`,e=>t(e)),this.on(`end`,()=>e())})}[M](){return{next:()=>{let e=this.read();if(e!==null)return Promise.resolve({done:!1,value:e});if(this[s])return Promise.resolve({done:!0});let t=null,n=null,r=e=>{this.removeListener(`data`,i),this.removeListener(`end`,a),n(e)},i=e=>{this.removeListener(`error`,r),this.removeListener(`end`,a),this.pause(),t({value:e,done:!!this[s]})},a=()=>{this.removeListener(`error`,r),this.removeListener(`data`,i),t({done:!0})},o=()=>r(Error(`stream destroyed`));return new Promise((e,s)=>{n=s,t=e,this.once(T,o),this.once(`error`,r),this.once(`end`,a),this.once(`data`,i)})}}}[N](){return{next:()=>{let e=this.read();return{value:e,done:e===null}}}}destroy(e){return this[T]?(e?this.emit(`error`,e):this.emit(T),this):(this[T]=!0,this.buffer.length=0,this[x]=0,typeof this.close==`function`&&!this[f]&&this.close(),e?this.emit(`error`,e):this.emit(T),this)}static isStream(t){return!!t&&(t instanceof e||t instanceof a||t instanceof i&&(typeof t.pipe==`function`||typeof t.write==`function`&&typeof t.end==`function`))}}})),x=i(((e,n)=>{var r=b(),i=t(`events`),a=e=>e&&e instanceof i&&(typeof e.pipe==`function`||typeof e.write==`function`&&typeof e.end==`function`),o=Symbol(`_head`),s=Symbol(`_tail`),c=Symbol(`_linkStreams`),l=Symbol(`_setHead`),u=Symbol(`_setTail`),d=Symbol(`_onError`),f=Symbol(`_onData`),p=Symbol(`_onEnd`),m=Symbol(`_onDrain`),h=Symbol(`_streams`);n.exports=class extends r{constructor(e,...t){a(e)&&(t.unshift(e),e={}),super(e),this[h]=[],t.length&&this.push(...t)}[c](e){return e.reduce((e,t)=>(e.on(`error`,e=>t.emit(`error`,e)),e.pipe(t),t))}push(...e){this[h].push(...e),this[s]&&e.unshift(this[s]);let t=this[c](e);this[u](t),this[o]||this[l](e[0])}unshift(...e){this[h].unshift(...e),this[o]&&e.push(this[o]);let t=this[c](e);this[l](e[0]),this[s]||this[u](t)}destroy(e){return this[h].forEach(e=>typeof e.destroy==`function`&&e.destroy()),super.destroy(e)}[u](e){this[s]=e,e.on(`error`,t=>this[d](e,t)),e.on(`data`,t=>this[f](e,t)),e.on(`end`,()=>this[p](e)),e.on(`finish`,()=>this[p](e))}[d](e,t){e===this[s]&&this.emit(`error`,t)}[f](e,t){e===this[s]&&super.write(t)}[p](e){e===this[s]&&super.end()}pause(){return super.pause(),this[s]&&this[s].pause&&this[s].pause()}emit(e,...t){return e===`resume`&&this[s]&&this[s].resume&&this[s].resume(),super.emit(e,...t)}[l](e){this[o]=e,e.on(`drain`,()=>this[m](e))}[m](e){e===this[o]&&this.emit(`drain`)}write(e,t,n){return this[o].write(e,t,n)&&(this.flowing||this.buffer.length===0)}end(e,t,n){return this[o].end(e,t,n),this}}})),S=i(((e,n)=>{g(),c(),f(),l(),d();var r=t(`crypto`),{Minipass:i}=v(),a=[`sha512`,`sha384`,`sha256`],o=[`sha512`],_=r.getHashes(),y=/^[a-z0-9+/]+(?:=?=?)$/i,b=/^([a-z0-9]+)-([^?]+)(\?[?\S*]*)?$/,x=/^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/,S=/^[\x21-\x7E]+$/,C=[`md5`,`whirlpool`,`sha1`,`sha224`,`sha256`,`sha384`,`sha512`,`sha3`,`sha3-256`,`sha3-384`,`sha3-512`,`sha3_256`,`sha3_384`,`sha3_512`].filter(e=>_.includes(e)),w=e=>e?.length?`?${e.join(`?`)}`:``,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakSet,k=class extends i{constructor(e){super(),u(this,O),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),this.size=0,this.opts=e,s(O,this,A).call(this),e?.algorithms?this.algorithms=[...e.algorithms]:this.algorithms=[...o],this.algorithm!==null&&!this.algorithms.includes(this.algorithm)&&this.algorithms.push(this.algorithm),this.hashes=this.algorithms.map(r.createHash)}on(e,t){return e===`size`&&p(E,this)?t(p(E,this)):e===`integrity`&&p(T,this)?t(p(T,this)):e===`verified`&&p(D,this)?t(p(D,this)):super.on(e,t)}emit(e,t){return e===`end`&&s(O,this,j).call(this),super.emit(e,t)}write(e){return this.size+=e.length,this.hashes.forEach(t=>t.update(e)),super.write(e)}};function A(){this.sri=this.opts?.integrity?F(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=w(this.opts?.options)}function j(){this.goodSri||s(O,this,A).call(this);let e=F(this.hashes.map((e,t)=>`${this.algorithms[t]}-${e.digest(`base64`)}${this.optString}`).join(` `),this.opts),t=this.goodSri&&e.match(this.sri,this.opts);if(typeof this.expectedSize==`number`&&this.size!==this.expectedSize){let e=Error(`stream size mismatch when checking ${this.sri}.\n Wanted: ${this.expectedSize}\n Found: ${this.size}`);e.code=`EBADSIZE`,e.found=this.size,e.expected=this.expectedSize,e.sri=this.sri,this.emit(`error`,e)}else if(this.sri&&!t){let t=Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);t.code=`EINTEGRITY`,t.found=e,t.expected=this.digests,t.algorithm=this.algorithm,t.sri=this.sri,this.emit(`error`,t)}else h(E,this,this.size),this.emit(`size`,this.size),h(T,this,e),this.emit(`integrity`,e),t&&(h(D,this,t),this.emit(`verified`,t))}var M=class{get isHash(){return!0}constructor(e,t){let n=t?.strict;this.source=e.trim(),this.digest=``,this.algorithm=``,this.options=[];let r=this.source.match(n?x:b);if(!r||n&&!a.includes(r[1])||!_.includes(r[1]))return;this.algorithm=r[1],this.digest=r[2];let i=r[3];i&&(this.options=i.slice(1).split(`?`))}hexDigest(){return this.digest&&Buffer.from(this.digest,`base64`).toString(`hex`)}toJSON(){return this.toString()}match(e,t){let n=F(e,t);if(!n)return!1;if(n.isIntegrity){let e=n.pickAlgorithm(t,[this.algorithm]);return e&&n[e].find(e=>e.digest===this.digest)||!1}return n.digest===this.digest?n:!1}toString(e){return e?.strict&&!(a.includes(this.algorithm)&&this.digest.match(y)&&this.options.every(e=>e.match(S)))?``:`${this.algorithm}-${this.digest}${w(this.options)}`}};function N(e,t,n,r){let i=e!==``,a=!1,o=``,s=r.length-1;for(let e=0;e<s;e++){let i=M.prototype.toString.call(r[e],n);i&&(a=!0,o+=i,o+=t)}let c=M.prototype.toString.call(r[s],n);return c&&(a=!0,o+=c),i&&a?e+t+o:e+o}var P=class{get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let t=e?.sep||` `,n=``;if(e?.strict){t=t.replace(/\S+/g,` `);for(let r of a)this[r]&&(n=N(n,t,e,this[r]))}else for(let r of Object.keys(this))n=N(n,t,e,this[r]);return n}concat(e,t){let n=typeof e==`string`?e:L(e,t);return F(`${this.toString(t)} ${n}`,t)}hexDigest(){return F(this,{single:!0}).hexDigest()}merge(e,t){let n=F(e,t);for(let e in n)if(this[e]){if(!this[e].find(t=>n[e].find(e=>t.digest===e.digest)))throw Error(`hashes do not match, cannot update integrity`)}else this[e]=n[e]}match(e,t){let n=F(e,t);if(!n)return!1;let r=n.pickAlgorithm(t,Object.keys(this));return!!r&&this[r].find(e=>n[r].find(t=>e.digest===t.digest))||!1}pickAlgorithm(e,t){let n=e?.pickAlgorithm||G,r=Object.keys(this);return t?.length&&(r=r.filter(e=>t.includes(e))),r.length?r.reduce((e,t)=>n(e,t)||e):null}};n.exports.parse=F;function F(e,t){if(!e)return null;if(typeof e==`string`)return I(e,t);if(e.algorithm&&e.digest){let n=new P;return n[e.algorithm]=[e],I(L(n,t),t)}else return I(L(e,t),t)}function I(e,t){if(t?.single)return new M(e,t);let n=e.trim().split(/\s+/).reduce((e,n)=>{let r=new M(n,t);if(r.algorithm&&r.digest){let t=r.algorithm;Object.keys(e).includes(t)||(e[t]=[]),e[t].push(r)}return e},new P);return n.isEmpty()?null:n}n.exports.stringify=L;function L(e,t){return e.algorithm&&e.digest?M.prototype.toString.call(e,t):typeof e==`string`?L(F(e,t),t):P.prototype.toString.call(e,t)}n.exports.fromHex=R;function R(e,t,n){let r=w(n?.options);return F(`${t}-${Buffer.from(e,`hex`).toString(`base64`)}${r}`,n)}n.exports.fromData=z;function z(e,t){let n=t?.algorithms||[...o],i=w(t?.options);return n.reduce((n,a)=>{let o=new M(`${a}-${r.createHash(a).update(e).digest(`base64`)}${i}`,t);if(o.algorithm&&o.digest){let e=o.algorithm;n[e]||(n[e]=[]),n[e].push(o)}return n},new P)}n.exports.fromStream=B;function B(e,t){let n=U(t);return new Promise((t,r)=>{e.pipe(n),e.on(`error`,r),n.on(`error`,r);let i;n.on(`integrity`,e=>{i=e}),n.on(`end`,()=>t(i)),n.resume()})}n.exports.checkData=V;function V(e,t,n){if(t=F(t,n),!t||!Object.keys(t).length){if(n?.error)throw Object.assign(Error(`No valid integrity hashes to check against`),{code:`EINTEGRITY`});return!1}let i=t.pickAlgorithm(n),a=F({algorithm:i,digest:r.createHash(i).update(e).digest(`base64`)}),o=a.match(t,n);if(n=n||{},o||!n.error)return o;if(typeof n.size==`number`&&e.length!==n.size){let r=Error(`data size mismatch when checking ${t}.\n Wanted: ${n.size}\n Found: ${e.length}`);throw r.code=`EBADSIZE`,r.found=e.length,r.expected=n.size,r.sri=t,r}else{let n=Error(`Integrity checksum failed when using ${i}: Wanted ${t}, but got ${a}. (${e.length} bytes)`);throw n.code=`EINTEGRITY`,n.found=a,n.expected=t,n.algorithm=i,n.sri=t,n}}n.exports.checkStream=H;function H(e,t,n){if(n=n||Object.create(null),n.integrity=t,t=F(t,n),!t||!Object.keys(t).length)return Promise.reject(Object.assign(Error(`No valid integrity hashes to check against`),{code:`EINTEGRITY`}));let r=U(n);return new Promise((t,n)=>{e.pipe(r),e.on(`error`,n),r.on(`error`,n);let i;r.on(`verified`,e=>{i=e}),r.on(`end`,()=>t(i)),r.resume()})}n.exports.integrityStream=U;function U(e=Object.create(null)){return new k(e)}n.exports.create=W;function W(e){let t=e?.algorithms||[...o],n=w(e?.options),i=t.map(r.createHash);return{update:function(e,t){return i.forEach(n=>n.update(e,t)),this},digest:function(){return t.reduce((t,r)=>{let a=new M(`${r}-${i.shift().digest(`base64`)}${n}`,e);return t[a.algorithm]||(t[a.algorithm]=[]),t[a.algorithm].push(a),t},new P)}}}function G(e,t){return C.indexOf(e.toLowerCase())>=C.indexOf(t.toLowerCase())?e:t}})),C=i(((e,t)=>{t.exports=(e,{copy:t,wrap:n})=>{let r={};if(e&&typeof e==`object`)for(let n of t)e[n]!==void 0&&(r[n]=e[n]);else r[n]=e;return r}})),w=i(((e,t)=>{var n=_();t.exports={satisfies:e=>n.satisfies(process.version,e,{includePrerelease:!0})}})),T=i(((e,n)=>{var{inspect:r}=t(`util`),i=class{constructor(e,t,n){let r=`${t}: ${n.syscall} returned ${n.code} (${n.message})`;n.path!==void 0&&(r+=` ${n.path}`),n.dest!==void 0&&(r+=` => ${n.dest}`),this.code=e,Object.defineProperties(this,{name:{value:`SystemError`,enumerable:!1,writable:!0,configurable:!0},message:{value:r,enumerable:!1,writable:!0,configurable:!0},info:{value:n,enumerable:!0,configurable:!0,writable:!1},errno:{get(){return n.errno},set(e){n.errno=e},enumerable:!0,configurable:!0},syscall:{get(){return n.syscall},set(e){n.syscall=e},enumerable:!0,configurable:!0}}),n.path!==void 0&&Object.defineProperty(this,`path`,{get(){return n.path},set(e){n.path=e},enumerable:!0,configurable:!0}),n.dest!==void 0&&Object.defineProperty(this,`dest`,{get(){return n.dest},set(e){n.dest=e},enumerable:!0,configurable:!0})}toString(){return`${this.name} [${this.code}]: ${this.message}`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t){return r(this,{...t,getters:!0,customInspect:!1})}};function a(e,t){n.exports[e]=class extends i{constructor(n){super(e,t,n)}}}a(`ERR_FS_CP_DIR_TO_NON_DIR`,`Cannot overwrite directory with non-directory`),a(`ERR_FS_CP_EEXIST`,`Target already exists`),a(`ERR_FS_CP_EINVAL`,`Invalid src or dest`),a(`ERR_FS_CP_FIFO_PIPE`,`Cannot copy a FIFO pipe`),a(`ERR_FS_CP_NON_DIR_TO_DIR`,`Cannot overwrite non-directory with directory`),a(`ERR_FS_CP_SOCKET`,`Cannot copy a socket file`),a(`ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY`,`Cannot overwrite symlink in subdirectory of self`),a(`ERR_FS_CP_UNKNOWN`,`Cannot copy an unknown file type`),a(`ERR_FS_EISDIR`,`Path is a directory`),n.exports.ERR_INVALID_ARG_TYPE=class extends Error{constructor(e,t,n){super(),this.code=`ERR_INVALID_ARG_TYPE`,this.message=`The ${e} argument must be ${t}. Received ${typeof n}`}}})),E=i(((e,n)=>{var{ERR_FS_CP_DIR_TO_NON_DIR:r,ERR_FS_CP_EEXIST:i,ERR_FS_CP_EINVAL:a,ERR_FS_CP_FIFO_PIPE:o,ERR_FS_CP_NON_DIR_TO_DIR:s,ERR_FS_CP_SOCKET:c,ERR_FS_CP_SYMLINK_TO_SUBDIRECTORY:l,ERR_FS_CP_UNKNOWN:u,ERR_FS_EISDIR:d,ERR_INVALID_ARG_TYPE:f}=T(),{constants:{errno:{EEXIST:p,EISDIR:m,EINVAL:h,ENOTDIR:g}}}=t(`os`),{chmod:_,copyFile:v,lstat:y,mkdir:b,readdir:x,readlink:S,stat:C,symlink:w,unlink:E,utimes:D}=t(`fs/promises`),{dirname:O,isAbsolute:k,join:A,parse:j,resolve:M,sep:N,toNamespacedPath:P}=t(`path`),{fileURLToPath:F}=t(`url`),I={dereference:!1,errorOnExist:!1,filter:void 0,force:!0,preserveTimestamps:!1,recursive:!1};async function L(e,t,n){if(n!=null&&typeof n!=`object`)throw new f(`options`,[`Object`],n);return z(P(R(e)),P(R(t)),{...I,...n})}function R(e){return e!=null&&e.href&&e.origin?F(e):e}async function z(e,t,n){n.preserveTimestamps&&process.arch===`ia32`&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended`,`TimestampPrecisionWarning`);let{srcStat:r,destStat:i}=await B(e,t,n);return await G(e,r,t),n.filter?q(U,i,e,t,n):U(i,e,t,n)}async function B(e,t,n){let{0:i,1:o}=await H(e,t,n);if(o){if(V(i,o))throw new a({message:`src and dest cannot be the same`,path:t,syscall:`cp`,errno:h});if(i.isDirectory()&&!o.isDirectory())throw new r({message:`cannot overwrite directory ${e} with non-directory ${t}`,path:t,syscall:`cp`,errno:m});if(!i.isDirectory()&&o.isDirectory())throw new s({message:`cannot overwrite non-directory ${e} with directory ${t}`,path:t,syscall:`cp`,errno:g})}if(i.isDirectory()&&K(e,t))throw new a({message:`cannot copy ${e} to a subdirectory of self ${t}`,path:t,syscall:`cp`,errno:h});return{srcStat:i,destStat:o}}function V(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function H(e,t,n){let r=n.dereference?e=>C(e,{bigint:!0}):e=>y(e,{bigint:!0});return Promise.all([r(e),r(t).catch(e=>{if(e.code===`ENOENT`)return null;throw e})])}async function U(e,t,n,r){let i=O(n);return await W(i)||await b(i,{recursive:!0}),ne(e,t,n,r)}function W(e){return C(e).then(()=>!0,e=>e.code===`ENOENT`?!1:Promise.reject(e))}async function G(e,t,n){let r=M(O(e)),i=M(O(n));if(i===r||i===j(i).root)return;let o;try{o=await C(i,{bigint:!0})}catch(e){if(e.code===`ENOENT`)return;throw e}if(V(t,o))throw new a({message:`cannot copy ${e} to a subdirectory of self ${n}`,path:n,syscall:`cp`,errno:h});return G(e,t,i)}var ee=e=>M(e).split(N).filter(Boolean);function K(e,t){let n=ee(e),r=ee(t);return n.every((e,t)=>r[t]===e)}async function q(e,t,n,r,i,a){if(await i.filter(n,r))return e(t,n,r,i,a)}function te(e,t,n,r){return r.filter?q(ne,e,t,n,r):ne(e,t,n,r)}async function ne(e,t,n,r){let i=await(r.dereference?C:y)(t);if(i.isDirectory()&&r.recursive)return ue(i,e,t,n,r);if(i.isDirectory())throw new d({message:`${t} is a directory (not copied)`,path:t,syscall:`cp`,errno:h});if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return re(i,e,t,n,r);if(i.isSymbolicLink())return fe(e,t,n);throw i.isSocket()?new c({message:`cannot copy a socket file: ${n}`,path:n,syscall:`cp`,errno:h}):i.isFIFO()?new o({message:`cannot copy a FIFO pipe: ${n}`,path:n,syscall:`cp`,errno:h}):new u({message:`cannot copy an unknown file type: ${n}`,path:n,syscall:`cp`,errno:h})}function re(e,t,n,r,i){return t?ie(e,n,r,i):ae(e,n,r,i)}async function ie(e,t,n,r){if(r.force)return await E(n),ae(e,t,n,r);if(r.errorOnExist)throw new i({message:`${n} already exists`,path:n,syscall:`cp`,errno:p})}async function ae(e,t,n,r){return await v(t,n),r.preserveTimestamps?J(e.mode,t,n):ce(n,e.mode)}async function J(e,t,n){return Y(e)&&await oe(n,e),se(e,t,n)}function Y(e){return(e&128)==0}function oe(e,t){return ce(e,t|128)}async function se(e,t,n){return await le(t,n),ce(n,e)}function ce(e,t){return _(e,t)}async function le(e,t){let n=await C(e);return D(t,n.atime,n.mtime)}function ue(e,t,n,r,i){return t?de(n,r,i):X(e.mode,n,r,i)}async function X(e,t,n,r){return await b(n),await de(t,n,r),ce(n,e)}async function de(e,t,n){let r=await x(e);for(let i=0;i<r.length;i++){let a=r[i],o=A(e,a),s=A(t,a),{destStat:c}=await B(o,s,n);await te(c,o,s,n)}}async function fe(e,t,n){let r=await S(t);if(k(r)||(r=M(O(t),r)),!e)return w(r,n);let i;try{i=await S(n)}catch(e){if(e.code===`EINVAL`||e.code===`UNKNOWN`)return w(r,n);throw e}if(k(i)||(i=M(O(n),i)),K(r,i))throw new a({message:`cannot copy ${r} to a subdirectory of self ${i}`,path:n,syscall:`cp`,errno:h});if((await C(t)).isDirectory()&&K(i,r))throw new l({message:`cannot overwrite ${i} with ${r}`,path:n,syscall:`cp`,errno:h});return pe(r,n)}async function pe(e,t){return await E(t),w(e,t)}n.exports=L})),D=i(((e,n)=>{var r=t(`fs/promises`),i=C(),a=w(),o=E(),s=a.satisfies(`>=16.7.0`);n.exports=async(e,t,n)=>{let a=i(n,{copy:[`dereference`,`errorOnExist`,`filter`,`force`,`preserveTimestamps`,`recursive`]});return s?r.cp(e,t,a):o(e,t,a)}})),O=i(((e,n)=>{var{join:r,sep:i}=t(`path`),a=C(),{mkdir:o,mkdtemp:s,rm:c}=t(`fs/promises`);n.exports=async(e,t,n)=>{let l=a(n,{copy:[`tmpPrefix`]});await o(e,{recursive:!0});let u=await s(r(`${e}${i}`,l.tmpPrefix||``)),d,f;try{f=await t(u)}catch(e){d=e}try{await c(u,{force:!0,recursive:!0})}catch{}if(d)throw d;return f}})),k=i(((e,n)=>{var{readdir:r}=t(`fs/promises`),{join:i}=t(`path`);n.exports=async e=>{let t=[];for(let n of await r(e))if(n.startsWith(`@`))for(let a of await r(i(e,n)))t.push(i(n,a));else t.push(n);return t}})),A=i(((e,n)=>{var{dirname:r,join:i,resolve:a,relative:o,isAbsolute:s}=t(`path`),c=t(`fs/promises`),l=async e=>{try{return await c.access(e),!0}catch(e){return e.code!==`ENOENT`}},u=async(e,t,n={},d=!0,f=[])=>{if(!e||!t)throw TypeError("`source` and `destination` file required");if(n={overwrite:!0,...n},!n.overwrite&&await l(t))throw Error(`The destination file exists: ${t}`);await c.mkdir(r(t),{recursive:!0});try{await c.rename(e,t)}catch(r){if(r.code===`EXDEV`||r.code===`EPERM`){let r=await c.lstat(e);if(r.isDirectory()){let r=await c.readdir(e);await Promise.all(r.map(r=>u(i(e,r),i(t,r),n,!1,f)))}else r.isSymbolicLink()?f.push({source:e,destination:t}):await c.copyFile(e,t)}else throw r}d&&(await Promise.all(f.map(async({source:e,destination:t})=>{let n=await c.readlink(e);s(n)&&(n=a(t,o(e,n)));let i=`file`;try{i=await c.stat(a(r(e),n)),i.isDirectory()&&(i=`junction`)}catch{}await c.symlink(n,t,i)})),await c.rm(e,{recursive:!0,force:!0}))};n.exports=u})),j=i(((e,t)=>{t.exports={cp:D(),withTempDir:O(),readdirScoped:k(),moveFile:A()}})),M=i(((e,n)=>{var r=t(`crypto`),{withTempDir:i}=j(),a=t(`fs/promises`),o=t(`path`);n.exports.mkdir=s,n.exports.tmpName=function(e,t){let n=r.randomUUID();return o.join(e,`tmp`,t?`${t}-${n}`:n)};async function s(e,t={}){let{tmpPrefix:n}=t,r=o.join(e,`tmp`);await a.mkdir(r,{recursive:!0,owner:`inherit`});let i=`${r}${o.sep}${n||``}`;return a.mkdtemp(i,{owner:`inherit`})}n.exports.withTmp=c;function c(e,t,n){return n||(n=t,t={}),i(o.join(e,`tmp`),n,t)}})),N=r({author:()=>ee,default:()=>q,dependencies:()=>H,description:()=>I,devDependencies:()=>U,engines:()=>W,files:()=>R,keywords:()=>V,license:()=>`ISC`,main:()=>L,name:()=>P,repository:()=>B,scripts:()=>z,tap:()=>K,templateOSS:()=>G,version:()=>F}),P,F,I,L,R,z,B,V,H,U,W,G,ee,K,q,te=n((()=>{P=`cacache`,F=`20.0.4`,I=`Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.`,L=`lib/index.js`,R=[`bin/`,`lib/`],z={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}"`},B={type:`git`,url:`git+https://github.com/npm/cacache.git`},V=[`cache`,`caching`,`content-addressable`,`sri`,`sri hash`,`subresource integrity`,`cache`,`storage`,`store`,`file store`,`filesystem`,`disk cache`,`disk storage`],H={"@npmcli/fs":`^5.0.0`,"fs-minipass":`^3.0.0`,glob:`^13.0.0`,"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:`^13.0.0`},U={"@npmcli/eslint-config":`^6.0.1`,"@npmcli/template-oss":`4.29.0`,tap:`^16.0.0`},W={node:`^20.17.0 || >=22.9.0`},G={"//@npmcli/template-oss":`This file is partially managed by @npmcli/template-oss. Edits may be overwritten.`,windowsCI:!1,version:`4.29.0`,publish:`true`},ee=`GitHub Inc.`,K={"nyc-arg":[`--exclude`,`tap-snapshots/**`]},q={name:P,version:F,"cache-version":{content:`2`,index:`5`},description:I,main:L,files:R,scripts:z,repository:B,keywords:V,license:`ISC`,dependencies:H,devDependencies:U,engines:W,templateOSS:G,author:ee,tap:K}})),ne=i(((e,t)=>{t.exports=n;function n(e){return[e.slice(0,2),e.slice(2,4),e.slice(4)]}})),re=i(((n,r)=>{var i=(te(),e(N).default)[`cache-version`].content,a=ne(),o=t(`path`),s=S();r.exports=c;function c(e,t){let n=s.parse(t,{single:!0});return o.join(l(e),n.algorithm,...a(n.hexDigest()))}r.exports.contentDir=l;function l(e){return o.join(e,`content-v${i}`)}})),ie=i(((n,r)=>{var i=t(`crypto`),{appendFile:a,mkdir:o,readFile:s,readdir:c,rm:l,writeFile:u}=t(`fs/promises`),{Minipass:d}=v(),f=t(`path`),p=S(),{tmpName:m}=M(),h=re(),g=ne(),_=(te(),e(N).default)[`cache-version`].index,{moveFile:y}=j(),b=5;r.exports.NotFoundError=class extends Error{constructor(e,t){super(`No cache entry for ${t} found in ${e}`),this.code=`ENOENT`,this.cache=e,this.key=t}},r.exports.compact=x;async function x(e,t,n,r={}){let i=P(e,t),a=await O(i),s=[];for(let e=a.length-1;e>=0;--e){let t=a[e];if(t.integrity===null&&!r.validateEntry)break;(!r.validateEntry||r.validateEntry(t)===!0)&&(s.length===0||!s.find(e=>n(e,t)))&&s.unshift(t)}let c=`
2
+ `+s.map(e=>{let t=JSON.stringify(e);return`${I(t)}\t${t}`}).join(`
3
+ `),d=async()=>{let t=m(e,r.tmpPrefix);return await o(f.dirname(t),{recursive:!0}),{target:t,moved:!1}},p=async e=>{if(!e.moved)return l(e.target,{recursive:!0,force:!0})},h=async e=>{await u(e.target,c,{flag:`wx`}),await o(f.dirname(i),{recursive:!0}),await y(e.target,i),e.moved=!0},g=await d();try{await h(g)}finally{await p(g)}return s.reverse().map(t=>R(e,t,!0))}r.exports.insert=C;async function C(e,t,n,r={}){let{metadata:i,size:s,time:c}=r,l=P(e,t),u={key:t,integrity:n&&p.stringify(n),time:c||Date.now(),size:s,metadata:i};try{await o(f.dirname(l),{recursive:!0});let e=JSON.stringify(u);await a(l,`\n${I(e)}\t${e}`)}catch(e){if(e.code===`ENOENT`)return;throw e}return R(e,u)}r.exports.find=w;async function w(e,t){let n=P(e,t);try{return(await O(n)).reduce((n,r)=>r&&r.key===t?R(e,r):n,null)}catch(e){if(e.code===`ENOENT`)return null;throw e}}r.exports.delete=T;function T(e,t,n={}){return n.removeFully?l(P(e,t),{recursive:!0,force:!0}):C(e,t,null,n)}r.exports.lsStream=E;function E(e){let t=A(e),n=new d({objectMode:!0});return Promise.resolve().then(async()=>{let{default:r}=await import(`./p-map-9Ud1LOrJ.js`);return await r(await z(t),async i=>{let a=f.join(t,i);await r(await z(a),async t=>{let i=f.join(a,t);await r(await z(i),async t=>{let r=f.join(i,t);try{let t=(await O(r)).reduce((e,t)=>(e.set(t.key,t),e),new Map);for(let r of t.values()){let t=R(e,r);t&&n.write(t)}}catch(e){if(e.code===`ENOENT`)return;throw e}},{concurrency:b})},{concurrency:b})},{concurrency:b}),n.end(),n}).catch(e=>n.emit(`error`,e)),n}r.exports.ls=D;async function D(e){return(await E(e).collect()).reduce((e,t)=>(e[t.key]=t,e),{})}r.exports.bucketEntries=O;async function O(e,t){return k(await s(e,`utf8`),t)}function k(e){let t=[];return e.split(`
4
+ `).forEach(e=>{if(!e)return;let n=e.split(` `);if(!n[1]||I(n[1])!==n[0])return;let r;try{r=JSON.parse(n[1])}catch{}r&&t.push(r)}),t}r.exports.bucketDir=A;function A(e){return f.join(e,`index-v${_}`)}r.exports.bucketPath=P;function P(e,t){let n=F(t);return f.join.apply(f,[A(e)].concat(g(n)))}r.exports.hashKey=F;function F(e){return L(e,`sha256`)}r.exports.hashEntry=I;function I(e){return L(e,`sha1`)}function L(e,t){return i.createHash(t).update(e).digest(`hex`)}function R(e,t,n){return!t.integrity&&!n?null:{key:t.key,integrity:t.integrity,path:t.integrity?h(e,t.integrity):void 0,size:t.size,time:t.time,metadata:t.metadata}}function z(e){return c(e).catch(e=>{if(e.code===`ENOENT`||e.code===`ENOTDIR`)return[];throw e})}})),ae=i((e=>{a(),f(),g(),c(),l(),d();var n,r,i,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,ee,K,q,te,ne,re,ie,ae=((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports))(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.tracing=e.metrics=void 0;var n=t(`node:diagnostics_channel`);e.metrics=(0,n.channel)(`lru-cache:metrics`),e.tracing=(0,n.tracingChannel)(`lru-cache`)});Object.defineProperty(e,`__esModule`,{value:!0}),e.LRUCache=void 0;var J=ae(),Y=()=>J.metrics.hasSubscribers||J.tracing.hasSubscribers,oe=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,se=new Set,ce=typeof process==`object`&&process?process:{},le=(e,t,n,r)=>{typeof ce.emitWarning==`function`?ce.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},ue=e=>!se.has(e),X=e=>!!e&&e===Math.floor(e)&&e>0&&isFinite(e),de=e=>X(e)?e<=2**8?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?fe:null:null,fe=class extends Array{constructor(e){super(e),this.fill(0)}},pe=(n=class e{static create(t){let i=de(t);if(!i)return[];r._=s(n,e,!0);let a=new e(t,i);return r._=s(n,e,!1),a}constructor(t,i){if(o(this,`heap`,void 0),o(this,`length`,void 0),!s(n,e,r)._)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new i(t),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},r={_:!1},n),Z=(i=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakSet,W=new WeakMap,G=new WeakMap,ee=new WeakMap,K=new WeakMap,q=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=Symbol.iterator,re=Symbol.toStringTag,class e{get perf(){return p(C,this)}static unsafeExposeInternals(e){return{starts:p(I,e),ttls:p(L,e),autopurgeTimers:p(R,e),sizes:p(F,e),keyMap:p(E,e),keyList:p(D,e),valList:p(O,e),next:p(k,e),prev:p(A,e),get head(){return p(j,e)},get tail(){return p(M,e)},free:p(N,e),isBackgroundFetch:t=>s(U,e,$).call(e,t),backgroundFetch:(t,n,r,i)=>s(U,e,Se).call(e,t,n,r,i),moveToTail:t=>s(U,e,Oe).call(e,t),indexes:t=>s(U,e,Q).call(e,t),rindexes:t=>s(U,e,ge).call(e,t),isStale:t=>p(K,e).call(e,t)}}get max(){return p(i,this)}get maxSize(){return p(_,this)}get calculatedSize(){return p(T,this)}get size(){return p(w,this)}get fetchMethod(){return p(x,this)}get memoMethod(){return p(S,this)}get dispose(){return p(v,this)}get onInsert(){return p(y,this)}get disposeAfter(){return p(b,this)}constructor(t){u(this,U),m(this,i,void 0),m(this,_,void 0),m(this,v,void 0),m(this,y,void 0),m(this,b,void 0),m(this,x,void 0),m(this,S,void 0),m(this,C,void 0),o(this,`ttl`,void 0),o(this,`ttlResolution`,void 0),o(this,`ttlAutopurge`,void 0),o(this,`updateAgeOnGet`,void 0),o(this,`updateAgeOnHas`,void 0),o(this,`allowStale`,void 0),o(this,`noDisposeOnSet`,void 0),o(this,`noUpdateTTL`,void 0),o(this,`maxEntrySize`,void 0),o(this,`sizeCalculation`,void 0),o(this,`noDeleteOnFetchRejection`,void 0),o(this,`noDeleteOnStaleGet`,void 0),o(this,`allowStaleOnFetchAbort`,void 0),o(this,`allowStaleOnFetchRejection`,void 0),o(this,`ignoreFetchAbort`,void 0),m(this,w,void 0),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),m(this,O,void 0),m(this,k,void 0),m(this,A,void 0),m(this,j,void 0),m(this,M,void 0),m(this,N,void 0),m(this,P,void 0),m(this,F,void 0),m(this,I,void 0),m(this,L,void 0),m(this,R,void 0),m(this,z,void 0),m(this,B,void 0),m(this,V,void 0),m(this,H,void 0),m(this,W,()=>{}),m(this,G,()=>{}),m(this,ee,()=>{}),m(this,K,()=>!1),m(this,q,e=>{}),m(this,te,(e,t,n)=>{}),m(this,ne,(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0}),o(this,re,`LRUCache`);let{max:n=0,ttl:r,ttlResolution:a=1,ttlAutopurge:c,updateAgeOnGet:l,updateAgeOnHas:d,allowStale:f,dispose:g,onInsert:ie,disposeAfter:ae,noDisposeOnSet:J,noUpdateTTL:Y,maxSize:ce=0,maxEntrySize:fe=0,sizeCalculation:Z,fetchMethod:Q,memoMethod:ge,noDeleteOnFetchRejection:_e,noDeleteOnStaleGet:ve,allowStaleOnFetchRejection:ye,allowStaleOnFetchAbort:be,ignoreFetchAbort:xe,perf:Se}=t;if(Se!==void 0&&typeof Se?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(h(C,this,Se??oe),n!==0&&!X(n))throw TypeError(`max option must be a nonnegative integer`);let $=n?de(n):Array;if(!$)throw Error(`invalid max value: `+n);if(h(i,this,n),h(_,this,ce),this.maxEntrySize=fe||p(_,this),this.sizeCalculation=Z,this.sizeCalculation){if(!p(_,this)&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(ge!==void 0&&typeof ge!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(h(S,this,ge),Q!==void 0&&typeof Q!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(h(x,this,Q),h(B,this,!!Q),h(E,this,new Map),h(D,this,Array.from({length:n}).fill(void 0)),h(O,this,Array.from({length:n}).fill(void 0)),h(k,this,new $(n)),h(A,this,new $(n)),h(j,this,0),h(M,this,0),h(N,this,pe.create(n)),h(w,this,0),h(T,this,0),typeof g==`function`&&h(v,this,g),typeof ie==`function`&&h(y,this,ie),typeof ae==`function`?(h(b,this,ae),h(P,this,[])):(h(b,this,void 0),h(P,this,void 0)),h(z,this,!!p(v,this)),h(H,this,!!p(y,this)),h(V,this,!!p(b,this)),this.noDisposeOnSet=!!J,this.noUpdateTTL=!!Y,this.noDeleteOnFetchRejection=!!_e,this.allowStaleOnFetchRejection=!!ye,this.allowStaleOnFetchAbort=!!be,this.ignoreFetchAbort=!!xe,this.maxEntrySize!==0){if(p(_,this)!==0&&!X(p(_,this)))throw TypeError(`maxSize must be a positive integer if specified`);if(!X(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);s(U,this,he).call(this)}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!ve,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!d,this.ttlResolution=X(a)||a===0?a:1,this.ttlAutopurge=!!c,this.ttl=r||0,this.ttl){if(!X(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);s(U,this,me).call(this)}if(p(i,this)===0&&this.ttl===0&&p(_,this)===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!p(i,this)&&!p(_,this)){let t=`LRU_CACHE_UNBOUNDED`;ue(t)&&(se.add(t),le(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return p(E,this).has(e)?1/0:0}*entries(){for(let e of s(U,this,Q).call(this))p(O,this)[e]!==void 0&&p(D,this)[e]!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield[p(D,this)[e],p(O,this)[e]])}*rentries(){for(let e of s(U,this,ge).call(this))p(O,this)[e]!==void 0&&p(D,this)[e]!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield[p(D,this)[e],p(O,this)[e]])}*keys(){for(let e of s(U,this,Q).call(this)){let t=p(D,this)[e];t!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield t)}}*rkeys(){for(let e of s(U,this,ge).call(this)){let t=p(D,this)[e];t!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield t)}}*values(){for(let e of s(U,this,Q).call(this))p(O,this)[e]!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield p(O,this)[e])}*rvalues(){for(let e of s(U,this,ge).call(this))p(O,this)[e]!==void 0&&!s(U,this,$).call(this,p(O,this)[e])&&(yield p(O,this)[e])}[ie](){return this.entries()}find(e,t={}){for(let n of s(U,this,Q).call(this)){let r=p(O,this)[n],i=s(U,this,$).call(this,r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,p(D,this)[n],this))return s(U,this,Ee).call(this,p(D,this)[n],t)}}forEach(e,t=this){for(let n of s(U,this,Q).call(this)){let r=p(O,this)[n],i=s(U,this,$).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,p(D,this)[n],this)}}rforEach(e,t=this){for(let n of s(U,this,ge).call(this)){let r=p(O,this)[n],i=s(U,this,$).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,p(D,this)[n],this)}}purgeStale(){let e=!1;for(let t of s(U,this,ge).call(this,{allowStale:!0}))p(K,this).call(this,t)&&(s(U,this,ke).call(this,p(D,this)[t],`expire`),e=!0);return e}info(e){let t=p(E,this).get(e);if(t===void 0)return;let n=p(O,this)[t],r=s(U,this,$).call(this,n)?n.__staleWhileFetching:n;if(r===void 0)return;let i={value:r};if(p(L,this)&&p(I,this)){let e=p(L,this)[t],n=p(I,this)[t];e&&n&&(i.ttl=e-(p(C,this).now()-n),i.start=Date.now())}return p(F,this)&&(i.size=p(F,this)[t]),i}dump(){let e=[];for(let t of s(U,this,Q).call(this,{allowStale:!0})){let n=p(D,this)[t],r=p(O,this)[t],i=s(U,this,$).call(this,r)?r.__staleWhileFetching:r;if(i===void 0||n===void 0)continue;let a={value:i};if(p(L,this)&&p(I,this)){a.ttl=p(L,this)[t];let e=p(C,this).now()-p(I,this)[t];a.start=Math.floor(Date.now()-e)}p(F,this)&&(a.size=p(F,this)[t]),e.unshift([n,a])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=p(C,this).now()-e}s(U,this,ve).call(this,t,n.value,n)}}set(e,t,n={}){let{status:r=J.metrics.hasSubscribers?{}:void 0}=n;n.status=r,r&&(r.op=`set`,r.key=e,t!==void 0&&(r.value=t));let i=s(U,this,ve).call(this,e,t,n);return r&&J.metrics.hasSubscribers&&J.metrics.publish(r),i}pop(){try{for(;p(w,this);){let e=p(O,this)[p(j,this)];if(s(U,this,ye).call(this,!0),s(U,this,$).call(this,e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(p(V,this)&&p(P,this)){let e=p(P,this),t;for(;t=e?.shift();)p(b,this)?.call(this,...t)}}}has(e,t={}){let{status:n=J.metrics.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`has`,n.key=e);let r=s(U,this,be).call(this,e,t);return J.metrics.hasSubscribers&&J.metrics.publish(n),r}peek(e,t={}){let{status:n=Y()?{}:void 0}=t;n&&(n.op=`peek`,n.key=e),t.status=n;let r=s(U,this,xe).call(this,e,t);return J.metrics.hasSubscribers&&J.metrics.publish(n),r}fetch(e,t={}){let n=J.tracing.hasSubscribers,{status:r=Y()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=s(U,this,Ce).call(this,e,t);return r&&Y()&&n&&(r.trace=!0,J.tracing.tracePromise(()=>i,r).catch(()=>{})),i}forceFetch(e,t={}){let n=J.tracing.hasSubscribers,{status:r=Y()?{}:void 0}=t;t.status=r,r&&t.context&&(r.context=t.context);let i=s(U,this,we).call(this,e,t);return r&&Y()&&n&&(r.trace=!0,J.tracing.tracePromise(()=>i,r).catch(()=>{})),i}memo(e,t={}){let{status:n=J.metrics.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`memo`,n.key=e,t.context&&(n.context=t.context));let r=s(U,this,Te).call(this,e,t);return n&&(n.value=r),J.metrics.hasSubscribers&&J.metrics.publish(n),r}get(e,t={}){let{status:n=J.metrics.hasSubscribers?{}:void 0}=t;t.status=n,n&&(n.op=`get`,n.key=e);let r=s(U,this,Ee).call(this,e,t);return n&&(r!==void 0&&(n.value=r),J.metrics.hasSubscribers&&J.metrics.publish(n)),r}delete(e){return s(U,this,ke).call(this,e,`delete`)}clear(){return s(U,this,Ae).call(this,`delete`)}});function me(){let e=new fe(p(i,this)),t=new fe(p(i,this));h(L,this,e),h(I,this,t);let n=this.ttlAutopurge?Array.from({length:p(i,this)}):void 0;h(R,this,n),h(ee,this,(n,i,a=p(C,this).now())=>{t[n]=i===0?0:a,e[n]=i,r(n,i)}),h(W,this,n=>{t[n]=e[n]===0?0:p(C,this).now(),r(n,e[n])});let r=this.ttlAutopurge?(e,t)=>{if(n?.[e]&&(clearTimeout(n[e]),n[e]=void 0),t&&t!==0&&n){let r=setTimeout(()=>{p(K,this).call(this,e)&&s(U,this,ke).call(this,p(D,this)[e],`expire`)},t+1);r.unref&&r.unref(),n[e]=r}}:()=>{};h(G,this,(n,r)=>{if(e[r]){let i=e[r],s=t[r];if(!i||!s)return;n.ttl=i,n.start=s,n.now=a||o(),n.remainingTTL=i-(n.now-s)}});let a=0,o=()=>{let e=p(C,this).now();if(this.ttlResolution>0){a=e;let t=setTimeout(()=>a=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=p(E,this).get(n);if(r===void 0)return 0;let i=e[r],s=t[r];return!i||!s?1/0:i-((a||o())-s)},h(K,this,n=>{let r=t[n],i=e[n];return!!i&&!!r&&(a||o())-r>i})}function he(){let e=new fe(p(i,this));h(T,this,0),h(F,this,e),h(q,this,t=>{h(T,this,p(T,this)-e[t]),e[t]=0}),h(ne,this,(e,t,n,r)=>{if(s(U,this,$).call(this,t))return 0;if(!X(n))if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!X(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`);return n}),h(te,this,(t,n,r)=>{if(e[t]=n,p(_,this)){let n=p(_,this)-e[t];for(;p(T,this)>n;)s(U,this,ye).call(this,!0)}h(T,this,p(T,this)+e[t]),r&&(r.entrySize=n,r.totalCalculatedSize=p(T,this))})}function*Q({allowStale:e=this.allowStale}={}){if(p(w,this))for(let t=p(M,this);s(U,this,_e).call(this,t)&&((e||!p(K,this).call(this,t))&&(yield t),t!==p(j,this));)t=p(A,this)[t]}function*ge({allowStale:e=this.allowStale}={}){if(p(w,this))for(let t=p(j,this);s(U,this,_e).call(this,t)&&((e||!p(K,this).call(this,t))&&(yield t),t!==p(M,this));)t=p(k,this)[t]}function _e(e){return e!==void 0&&p(E,this).get(p(D,this)[e])===e}function ve(e,t,n={}){var r;let{ttl:a=this.ttl,start:o,noDisposeOnSet:c=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:u}=n;if(t===void 0)return u&&(u.set=`deleted`),this.delete(e),this;let{noUpdateTTL:d=this.noUpdateTTL}=n;u&&!s(U,this,$).call(this,t)&&(u.value=t);let f=p(ne,this).call(this,e,t,n.size||0,l,u);if(this.maxEntrySize&&f>this.maxEntrySize)return s(U,this,ke).call(this,e,`set`),u&&(u.set=`miss`,u.maxEntrySizeExceeded=!0),this;let m=p(w,this)===0?void 0:p(E,this).get(e);if(m===void 0)m=p(w,this)===0?p(M,this):p(N,this).length===0?p(w,this)===p(i,this)?s(U,this,ye).call(this,!1):p(w,this):p(N,this).pop(),p(D,this)[m]=e,p(O,this)[m]=t,p(E,this).set(e,m),p(k,this)[p(M,this)]=m,p(A,this)[m]=p(M,this),h(M,this,m),h(w,this,(r=p(w,this),r++,r)),p(te,this).call(this,m,f,u),u&&(u.set=`add`),d=!1,p(H,this)&&p(y,this)?.call(this,t,e,`add`);else{s(U,this,Oe).call(this,m);let n=p(O,this)[m];if(t!==n){if(p(B,this)&&s(U,this,$).call(this,n)){n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:t}=n;t!==void 0&&!c&&(p(z,this)&&p(v,this)?.call(this,t,e,`set`),p(V,this)&&p(P,this)?.push([t,e,`set`]))}else c||(p(z,this)&&p(v,this)?.call(this,n,e,`set`),p(V,this)&&p(P,this)?.push([n,e,`set`]));if(p(q,this).call(this,m),p(te,this).call(this,m,f,u),p(O,this)[m]=t,u){u.set=`replace`;let e=n&&s(U,this,$).call(this,n)?n.__staleWhileFetching:n;e!==void 0&&(u.oldValue=e)}}else u&&(u.set=`update`);p(H,this)&&this.onInsert?.(t,e,t===n?`update`:`replace`)}if(a!==0&&!p(L,this)&&s(U,this,me).call(this),p(L,this)&&(d||p(ee,this).call(this,m,a,o),u&&p(G,this).call(this,u,m)),!c&&p(V,this)&&p(P,this)){let e=p(P,this),t;for(;t=e?.shift();)p(b,this)?.call(this,...t)}return this}function ye(e){var t;let n=p(j,this),r=p(D,this)[n],i=p(O,this)[n];return p(B,this)&&s(U,this,$).call(this,i)?i.__abortController.abort(Error(`evicted`)):(p(z,this)||p(V,this))&&(p(z,this)&&p(v,this)?.call(this,i,r,`evict`),p(V,this)&&p(P,this)?.push([i,r,`evict`])),p(q,this).call(this,n),p(R,this)?.[n]&&(clearTimeout(p(R,this)[n]),p(R,this)[n]=void 0),e&&(p(D,this)[n]=void 0,p(O,this)[n]=void 0,p(N,this).push(n)),p(w,this)===1?(h(j,this,h(M,this,0)),p(N,this).length=0):h(j,this,p(k,this)[n]),p(E,this).delete(r),h(w,this,(t=p(w,this),t--,t)),n}function be(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=p(E,this).get(e);if(i!==void 0){let e=p(O,this)[i];if(s(U,this,$).call(this,e)&&e.__staleWhileFetching===void 0)return!1;if(p(K,this).call(this,i))r&&(r.has=`stale`,p(G,this).call(this,r,i));else return n&&p(W,this).call(this,i),r&&(r.has=`hit`,p(G,this).call(this,r,i)),!0}else r&&(r.has=`miss`);return!1}function xe(e,t){let{status:n,allowStale:r=this.allowStale}=t,i=p(E,this).get(e);if(i===void 0||!r&&p(K,this).call(this,i)){n&&(n.peek=i===void 0?`miss`:`stale`);return}let a=p(O,this)[i],o=s(U,this,$).call(this,a)?a.__staleWhileFetching:a;return n&&(o===void 0?n.peek=`miss`:(n.peek=`hit`,n.value=o)),o}function Se(e,t,n,r){let i=t===void 0?void 0:p(O,this)[t];if(s(U,this,$).call(this,i))return i;let a=new AbortController,{signal:o}=n;o?.addEventListener(`abort`,()=>a.abort(o.reason),{signal:a.signal});let c={signal:a.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:o}=a.signal,l=n.ignoreFetchAbort&&r!==void 0,u=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&r!==void 0);if(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),o&&!l&&!i)return d(a.signal.reason,u);let f=m,h=p(O,this)[t];return(h===m||h===void 0&&l&&i)&&(r===void 0?f.__staleWhileFetching===void 0?s(U,this,ke).call(this,e,`fetch`):p(O,this)[t]=f.__staleWhileFetching:(n.status&&(n.status.fetchUpdated=!0),s(U,this,ve).call(this,e,r,c.options))),r},u=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),d(e,!1)),d=(r,i)=>{let{aborted:o}=a.signal,c=o&&n.allowStaleOnFetchAbort,l=c||n.allowStaleOnFetchRejection,u=l||n.noDeleteOnFetchRejection,d=m;if(p(O,this)[t]===m&&(!u||!i&&d.__staleWhileFetching===void 0?s(U,this,ke).call(this,e,`fetch`):c||(p(O,this)[t]=d.__staleWhileFetching)),l)return n.status&&d.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw r},f=(t,r)=>{let o=p(x,this)?.call(this,e,i,c);o&&o instanceof Promise&&o.then(e=>t(e===void 0?void 0:e),r),a.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};n.status&&(n.status.fetchDispatched=!0);let m=new Promise(f).then(l,u),h=Object.assign(m,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return t===void 0?(s(U,this,ve).call(this,e,h,{...c.options,status:void 0}),t=p(E,this).get(e)):p(O,this)[t]=h,h}function $(e){if(!p(B,this))return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof AbortController}async function Ce(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:g,forceRefresh:_=!1,status:v,signal:y}=t;if(v&&(v.op=`fetch`,v.key=e,_&&(v.forceRefresh=!0)),!p(B,this))return v&&(v.fetch=`get`),s(U,this,Ee).call(this,e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:v});let b={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:m,status:v,signal:y},x=p(E,this).get(e);if(x===void 0){v&&(v.fetch=`miss`);let t=s(U,this,Se).call(this,e,x,b,g);return t.__returned=t}else{let t=p(O,this)[x];if(s(U,this,$).call(this,t)){let e=n&&t.__staleWhileFetching!==void 0;return v&&(v.fetch=`inflight`,e&&(v.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=p(K,this).call(this,x);if(!_&&!i)return v&&(v.fetch=`hit`),s(U,this,Oe).call(this,x),r&&p(W,this).call(this,x),v&&p(G,this).call(this,v,x),t;let a=s(U,this,Se).call(this,e,x,b,g),o=a.__staleWhileFetching!==void 0&&n;return v&&(v.fetch=i?`stale`:`refresh`,o&&i&&(v.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async function we(e,t={}){let n=await s(U,this,Ce).call(this,e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}function Te(e,t={}){let n=p(S,this);if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,status:i,forceRefresh:a,...o}=t;i&&a&&(i.forceRefresh=!0);let c=s(U,this,Ee).call(this,e,o),l=a||c===void 0;if(i&&(i.memo=l?`miss`:`hit`,l||(i.value=c)),!l)return c;let u=n(e,c,{options:o,context:r});return i&&(i.value=u),s(U,this,ve).call(this,e,u,o),u}function Ee(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=p(E,this).get(e);if(o===void 0){a&&(a.get=`miss`);return}let c=p(O,this)[o],l=s(U,this,$).call(this,c);return a&&p(G,this).call(this,a,o),p(K,this).call(this,o)?l?(a&&(a.get=`stale-fetching`),n&&c.__staleWhileFetching!==void 0?(a&&(a.returnedStale=!0),c.__staleWhileFetching):void 0):(i||s(U,this,ke).call(this,e,`expire`),a&&(a.get=`stale`),n?(a&&(a.returnedStale=!0),c):void 0):(a&&(a.get=l?`fetching`:`hit`),s(U,this,Oe).call(this,o),r&&p(W,this).call(this,o),l?c.__staleWhileFetching:c)}function De(e,t){p(A,this)[t]=e,p(k,this)[e]=t}function Oe(e){e!==p(M,this)&&(e===p(j,this)?h(j,this,p(k,this)[e]):s(U,this,De).call(this,p(A,this)[e],p(k,this)[e]),s(U,this,De).call(this,p(M,this),e),h(M,this,e))}function ke(e,t){J.metrics.hasSubscribers&&J.metrics.publish({op:`delete`,delete:t,key:e});let n=!1;if(p(w,this)!==0){let i=p(E,this).get(e);if(i!==void 0)if(p(R,this)?.[i]&&(clearTimeout(p(R,this)?.[i]),p(R,this)[i]=void 0),n=!0,p(w,this)===1)s(U,this,Ae).call(this,t);else{var r;p(q,this).call(this,i);let n=p(O,this)[i];if(s(U,this,$).call(this,n)?n.__abortController.abort(Error(`deleted`)):(p(z,this)||p(V,this))&&(p(z,this)&&p(v,this)?.call(this,n,e,t),p(V,this)&&p(P,this)?.push([n,e,t])),p(E,this).delete(e),p(D,this)[i]=void 0,p(O,this)[i]=void 0,i===p(M,this))h(M,this,p(A,this)[i]);else if(i===p(j,this))h(j,this,p(k,this)[i]);else{let e=p(A,this)[i];p(k,this)[e]=p(k,this)[i];let t=p(k,this)[i];p(A,this)[t]=p(A,this)[i]}h(w,this,(r=p(w,this),r--,r)),p(N,this).push(i)}}if(p(V,this)&&p(P,this)?.length){let e=p(P,this),t;for(;t=e?.shift();)p(b,this)?.call(this,...t)}return n}function Ae(e){for(let t of s(U,this,ge).call(this,{allowStale:!0})){let n=p(O,this)[t];if(s(U,this,$).call(this,n))n.__abortController.abort(Error(`deleted`));else{let r=p(D,this)[t];p(z,this)&&p(v,this)?.call(this,n,r,e),p(V,this)&&p(P,this)?.push([n,r,e])}}if(p(E,this).clear(),p(O,this).fill(void 0),p(D,this).fill(void 0),p(L,this)&&p(I,this)){p(L,this).fill(0),p(I,this).fill(0);for(let e of p(R,this)??[])e!==void 0&&clearTimeout(e);p(R,this)?.fill(void 0)}if(p(F,this)&&p(F,this).fill(0),h(j,this,0),h(M,this,0),p(N,this).length=0,h(T,this,0),h(w,this,0),p(V,this)&&p(P,this)){let e=p(P,this),t;for(;t=e?.shift();)p(b,this)?.call(this,...t)}}e.LRUCache=Z})),J=i(((e,t)=>{var{LRUCache:n}=ae(),r=new n({max:500,maxSize:50*1024*1024,ttl:180*1e3,sizeCalculation:(e,t)=>t.startsWith(`key:`)?e.data.length:e.length});t.exports.clearMemoized=i;function i(){let e={};return r.forEach((t,n)=>{e[n]=t}),r.clear(),e}t.exports.put=a;function a(e,t,n,r){u(r).set(`key:${e}:${t.key}`,{entry:t,data:n}),o(e,t.integrity,n,r)}t.exports.put.byDigest=o;function o(e,t,n,r){u(r).set(`digest:${e}:${t}`,n)}t.exports.get=s;function s(e,t,n){return u(n).get(`key:${e}:${t}`)}t.exports.get.byDigest=c;function c(e,t,n){return u(n).get(`digest:${e}:${t}`)}var l=class{constructor(e){this.obj=e}get(e){return this.obj[e]}set(e,t){this.obj[e]=t}};function u(e){return!e||!e.memoize?r:e.memoize.get&&e.memoize.set?e.memoize:typeof e.memoize==`object`?new l(e.memoize):r}})),Y=i((e=>{var{Minipass:n}=v(),r=t(`events`).EventEmitter,i=t(`fs`),a=i.writev,o=Symbol(`_autoClose`),s=Symbol(`_close`),c=Symbol(`_ended`),l=Symbol(`_fd`),u=Symbol(`_finished`),d=Symbol(`_flags`),f=Symbol(`_flush`),p=Symbol(`_handleChunk`),m=Symbol(`_makeBuf`),h=Symbol(`_mode`),g=Symbol(`_needDrain`),_=Symbol(`_onerror`),y=Symbol(`_onopen`),b=Symbol(`_onread`),x=Symbol(`_onwrite`),S=Symbol(`_open`),C=Symbol(`_path`),w=Symbol(`_pos`),T=Symbol(`_queue`),E=Symbol(`_read`),D=Symbol(`_readSize`),O=Symbol(`_reading`),k=Symbol(`_remain`),A=Symbol(`_size`),j=Symbol(`_write`),M=Symbol(`_writing`),N=Symbol(`_defaultFlag`),P=Symbol(`_errored`),F=class extends n{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!=`string`)throw TypeError(`path must be a string`);this[P]=!1,this[l]=typeof t.fd==`number`?t.fd:null,this[C]=e,this[D]=t.readSize||16*1024*1024,this[O]=!1,this[A]=typeof t.size==`number`?t.size:1/0,this[k]=this[A],this[o]=typeof t.autoClose==`boolean`?t.autoClose:!0,typeof this[l]==`number`?this[E]():this[S]()}get fd(){return this[l]}get path(){return this[C]}write(){throw TypeError(`this is a readable stream`)}end(){throw TypeError(`this is a readable stream`)}[S](){i.open(this[C],`r`,(e,t)=>this[y](e,t))}[y](e,t){e?this[_](e):(this[l]=t,this.emit(`open`,t),this[E]())}[m](){return Buffer.allocUnsafe(Math.min(this[D],this[k]))}[E](){if(!this[O]){this[O]=!0;let e=this[m]();if(e.length===0)return process.nextTick(()=>this[b](null,0,e));i.read(this[l],e,0,e.length,null,(e,t,n)=>this[b](e,t,n))}}[b](e,t,n){this[O]=!1,e?this[_](e):this[p](t,n)&&this[E]()}[s](){if(this[o]&&typeof this[l]==`number`){let e=this[l];this[l]=null,i.close(e,e=>e?this.emit(`error`,e):this.emit(`close`))}}[_](e){this[O]=!0,this[s](),this.emit(`error`,e)}[p](e,t){let n=!1;return this[k]-=e,e>0&&(n=super.write(e<t.length?t.slice(0,e):t)),(e===0||this[k]<=0)&&(n=!1,this[s](),super.end()),n}emit(e,t){switch(e){case`prefinish`:case`finish`:break;case`drain`:typeof this[l]==`number`&&this[E]();break;case`error`:return this[P]?void 0:(this[P]=!0,super.emit(e,t));default:return super.emit(e,t)}}},I=class extends F{[S](){let e=!0;try{this[y](null,i.openSync(this[C],`r`)),e=!1}finally{e&&this[s]()}}[E](){let e=!0;try{if(!this[O]){this[O]=!0;do{let e=this[m](),t=e.length===0?0:i.readSync(this[l],e,0,e.length,null);if(!this[p](t,e))break}while(!0);this[O]=!1}e=!1}finally{e&&this[s]()}}[s](){if(this[o]&&typeof this[l]==`number`){let e=this[l];this[l]=null,i.closeSync(e),this.emit(`close`)}}},L=class extends r{constructor(e,t){t=t||{},super(t),this.readable=!1,this.writable=!0,this[P]=!1,this[M]=!1,this[c]=!1,this[g]=!1,this[T]=[],this[C]=e,this[l]=typeof t.fd==`number`?t.fd:null,this[h]=t.mode===void 0?438:t.mode,this[w]=typeof t.start==`number`?t.start:null,this[o]=typeof t.autoClose==`boolean`?t.autoClose:!0;let n=this[w]===null?`w`:`r+`;this[N]=t.flags===void 0,this[d]=this[N]?n:t.flags,this[l]===null&&this[S]()}emit(e,t){if(e===`error`){if(this[P])return;this[P]=!0}return super.emit(e,t)}get fd(){return this[l]}get path(){return this[C]}[_](e){this[s](),this[M]=!0,this.emit(`error`,e)}[S](){i.open(this[C],this[d],this[h],(e,t)=>this[y](e,t))}[y](e,t){this[N]&&this[d]===`r+`&&e&&e.code===`ENOENT`?(this[d]=`w`,this[S]()):e?this[_](e):(this[l]=t,this.emit(`open`,t),this[M]||this[f]())}end(e,t){return e&&this.write(e,t),this[c]=!0,!this[M]&&!this[T].length&&typeof this[l]==`number`&&this[x](null,0),this}write(e,t){return typeof e==`string`&&(e=Buffer.from(e,t)),this[c]?(this.emit(`error`,Error(`write() after end()`)),!1):this[l]===null||this[M]||this[T].length?(this[T].push(e),this[g]=!0,!1):(this[M]=!0,this[j](e),!0)}[j](e){i.write(this[l],e,0,e.length,this[w],(e,t)=>this[x](e,t))}[x](e,t){e?this[_](e):(this[w]!==null&&(this[w]+=t),this[T].length?this[f]():(this[M]=!1,this[c]&&!this[u]?(this[u]=!0,this[s](),this.emit(`finish`)):this[g]&&(this[g]=!1,this.emit(`drain`))))}[f](){if(this[T].length===0)this[c]&&this[x](null,0);else if(this[T].length===1)this[j](this[T].pop());else{let e=this[T];this[T]=[],a(this[l],e,this[w],(e,t)=>this[x](e,t))}}[s](){if(this[o]&&typeof this[l]==`number`){let e=this[l];this[l]=null,i.close(e,e=>e?this.emit(`error`,e):this.emit(`close`))}}},R=class extends L{[S](){let e;if(this[N]&&this[d]===`r+`)try{e=i.openSync(this[C],this[d],this[h])}catch(e){if(e.code===`ENOENT`)return this[d]=`w`,this[S]();throw e}else e=i.openSync(this[C],this[d],this[h]);this[y](null,e)}[s](){if(this[o]&&typeof this[l]==`number`){let e=this[l];this[l]=null,i.closeSync(e),this.emit(`close`)}}[j](e){let t=!0;try{this[x](null,i.writeSync(this[l],e,0,e.length,this[w])),t=!1}finally{if(t)try{this[s]()}catch{}}}};e.ReadStream=F,e.ReadStreamSync=I,e.WriteStream=L,e.WriteStreamSync=R})),oe=i(((e,n)=>{var r=t(`fs/promises`),i=Y(),a=S(),o=re(),s=x();n.exports=l;var c=64*1024*1024;async function l(e,t,n={}){let{size:i}=n,{stat:o,cpath:l,sri:d}=await m(e,t,async(e,t)=>({stat:i?{size:i}:await r.stat(e),cpath:e,sri:t}));if(o.size>c)return u(l,o.size,d,new s).concat();let f=await r.readFile(l,{encoding:null});if(o.size!==f.length)throw h(o.size,f.length);if(!a.checkData(f,d))throw g(d,l);return f}var u=(e,t,n,r)=>(r.push(new i.ReadStream(e,{size:t,readSize:c}),a.integrityStream({integrity:n,size:t})),r);n.exports.stream=d,n.exports.readStream=d;function d(e,t,n={}){let{size:i}=n,a=new s;return Promise.resolve().then(async()=>{let{stat:n,cpath:o,sri:s}=await m(e,t,async(e,t)=>({stat:i?{size:i}:await r.stat(e),cpath:e,sri:t}));return u(o,n.size,s,a)}).catch(e=>a.emit(`error`,e)),a}n.exports.copy=f;function f(e,t,n){return m(e,t,e=>r.copyFile(e,n))}n.exports.hasContent=p;async function p(e,t){if(!t)return!1;try{return await m(e,t,async(e,t)=>{let n=await r.stat(e);return{size:n.size,sri:t,stat:n}})}catch(e){if(e.code===`ENOENT`)return!1;if(e.code===`EPERM`){if(process.platform!==`win32`)throw e;return!1}}}async function m(e,t,n){let r=a.parse(t),i=r[r.pickAlgorithm()];if(i.length<=1)return n(o(e,i[0]),i[0]);{let t=await Promise.all(i.map(async t=>{try{return await m(e,t,n)}catch(e){return e.code===`ENOENT`?Object.assign(Error(`No matching content found for `+r.toString()),{code:`ENOENT`}):e}})),a=t.find(e=>!(e instanceof Error));if(a)return a;throw t.find(e=>e.code===`ENOENT`)||t.find(e=>e instanceof Error)}}function h(e,t){let n=Error(`Bad data size: expected inserted data to be ${e} bytes, but got ${t} instead`);return n.expected=e,n.found=t,n.code=`EBADSIZE`,n}function g(e,t){let n=Error(`Integrity verification failed for ${e} (${t})`);return n.code=`EINTEGRITY`,n.sri=e,n.path=t,n}})),se=i(((e,t)=>{var n=y(),{Minipass:r}=v(),i=x(),a=ie(),o=J(),s=oe();async function c(e,t,n={}){let{integrity:r,memoize:i,size:c}=n,l=o.get(e,t,n);if(l&&i!==!1)return{metadata:l.entry.metadata,data:l.data,integrity:l.entry.integrity,size:l.entry.size};let u=await a.find(e,t,n);if(!u)throw new a.NotFoundError(e,t);let d=await s(e,u.integrity,{integrity:r,size:c});return i&&o.put(e,u,d,n),{data:d,metadata:u.metadata,size:u.size,integrity:u.integrity}}t.exports=c;async function l(e,t,n={}){let{integrity:r,memoize:i,size:a}=n,c=o.get.byDigest(e,t,n);if(c&&i!==!1)return c;let l=await s(e,t,{integrity:r,size:a});return i&&o.put.byDigest(e,t,l,n),l}t.exports.byDigest=l;var u=e=>{let t=new r;return t.on(`newListener`,function(t,n){t===`metadata`&&n(e.entry.metadata),t===`integrity`&&n(e.entry.integrity),t===`size`&&n(e.entry.size)}),t.end(e.data),t};function d(e,t,r={}){let{memoize:c,size:l}=r,d=o.get(e,t,r);if(d&&c!==!1)return u(d);let f=new i;return Promise.resolve().then(async()=>{let i=await a.find(e,t);if(!i)throw new a.NotFoundError(e,t);f.emit(`metadata`,i.metadata),f.emit(`integrity`,i.integrity),f.emit(`size`,i.size),f.on(`newListener`,function(e,t){e===`metadata`&&t(i.metadata),e===`integrity`&&t(i.integrity),e===`size`&&t(i.size)});let u=s.readStream(e,i.integrity,{...r,size:typeof l==`number`?l:i.size});if(c){let t=new n.PassThrough;t.on(`collect`,t=>o.put(e,i,t,r)),f.unshift(t)}return f.unshift(u),f}).catch(e=>f.emit(`error`,e)),f}t.exports.stream=d;function f(e,t,a={}){let{memoize:c}=a,l=o.get.byDigest(e,t,a);if(l&&c!==!1){let e=new r;return e.end(l),e}else{let r=s.readStream(e,t,a);if(!c)return r;let l=new n.PassThrough;return l.on(`collect`,n=>o.put.byDigest(e,t,n,a)),new i(r,l)}}t.exports.stream.byDigest=f;function p(e,t,n={}){let{memoize:r}=n,i=o.get(e,t,n);return i&&r!==!1?Promise.resolve(i.entry):a.find(e,t)}t.exports.info=p;async function m(e,t,n,r={}){let i=await a.find(e,t,r);if(!i)throw new a.NotFoundError(e,t);return await s.copy(e,i.integrity,n,r),{metadata:i.metadata,size:i.size,integrity:i.integrity}}t.exports.copy=m;async function h(e,t,n,r={}){return await s.copy(e,t,n,r),t}t.exports.copy.byDigest=h,t.exports.hasContent=s.hasContent})),ce=i(((e,t)=>{var n=b(),r=Symbol(`_flush`),i=Symbol(`_flushed`),a=Symbol(`_flushing`);t.exports=class extends n{constructor(e={}){if(typeof e==`function`&&(e={flush:e}),super(e),typeof e.flush!=`function`&&typeof this.flush!=`function`)throw TypeError(`must provide flush function in options`);this[r]=e.flush||this.flush}emit(e,...t){if(e!==`end`&&e!==`finish`||this[i])return super.emit(e,...t);if(this[a])return;this[a]=!0;let n=e=>{this[i]=!0,e?super.emit(`error`,e):super.emit(`end`)},o=this[r](n);o&&o.then&&o.then(()=>n(),e=>n(e))}}})),le=i(((e,n)=>{var r=t(`events`),i=re(),a=t(`fs/promises`),{moveFile:o}=j(),{Minipass:s}=v(),c=x(),l=ce(),u=t(`path`),d=S(),{tmpName:f}=M(),p=Y();n.exports=h;var m=new Map;async function h(e,t,n={}){let{algorithms:r,size:i,integrity:o}=n;if(typeof i==`number`&&t.length!==i)throw T(i,t.length);let s=d.fromData(t,r?{algorithms:r}:{});if(o&&!d.checkData(t,o,n))throw E(o,s);for(let r in s){let i=await C(e,n),o=s[r].toString();try{await a.writeFile(i.target,t,{flag:`wx`}),await w(i,e,o,n)}finally{i.moved||await a.rm(i.target,{recursive:!0,force:!0})}}return{integrity:s,size:t.length}}n.exports.stream=_;var g=class extends l{constructor(e,t){super(),this.opts=t,this.cache=e,this.inputStream=new s,this.inputStream.on(`error`,e=>this.emit(`error`,e)),this.inputStream.on(`drain`,()=>this.emit(`drain`)),this.handleContentP=null}write(e,t,n){return this.handleContentP||(this.handleContentP=y(this.inputStream,this.cache,this.opts),this.handleContentP.catch(e=>this.emit(`error`,e))),this.inputStream.write(e,t,n)}flush(e){this.inputStream.end(()=>{if(!this.handleContentP){let t=Error(`Cache input stream was empty`);return t.code=`ENODATA`,Promise.reject(t).catch(e)}this.handleContentP.then(t=>{t.integrity&&this.emit(`integrity`,t.integrity),t.size!==null&&this.emit(`size`,t.size),e()},t=>e(t))})}};function _(e,t={}){return new g(e,t)}async function y(e,t,n){let r=await C(t,n);try{let i=await b(e,t,r.target,n);return await w(r,t,i.integrity,n),i}finally{r.moved||await a.rm(r.target,{recursive:!0,force:!0})}}async function b(e,t,n,i){let a=new p.WriteStream(n,{flags:`wx`});if(i.integrityEmitter){let[t,n]=await Promise.all([r.once(i.integrityEmitter,`integrity`).then(e=>e[0]),r.once(i.integrityEmitter,`size`).then(e=>e[0]),new c(e,a).promise()]);return{integrity:t,size:n}}let o,s,l=d.integrityStream({integrity:i.integrity,algorithms:i.algorithms,size:i.size});return l.on(`integrity`,e=>{o=e}),l.on(`size`,e=>{s=e}),await new c(e,l,a).promise(),{integrity:o,size:s}}async function C(e,t){let n=f(e,t.tmpPrefix);return await a.mkdir(u.dirname(n),{recursive:!0}),{target:n,moved:!1}}async function w(e,t,n){let r=i(t,n),s=u.dirname(r);return m.has(r)||m.set(r,a.mkdir(s,{recursive:!0}).then(async()=>(await o(e.target,r,{overwrite:!1}),e.moved=!0,e.moved)).catch(e=>{if(!e.message.startsWith(`The destination file exists`))throw Object.assign(e,{code:`EEXIST`})}).finally(()=>{m.delete(r)})),m.get(r)}function T(e,t){let n=Error(`Bad data size: expected inserted data to be ${e} bytes, but got ${t} instead`);return n.expected=e,n.found=t,n.code=`EBADSIZE`,n}function E(e,t){let n=Error(`Integrity check failed:
5
+ Wanted: ${e}
6
+ Found: ${t}`);return n.code=`EINTEGRITY`,n.expected=e,n.found=t,n}})),ue=i(((e,t)=>{var n=ie(),r=J(),i=le(),a=ce(),{PassThrough:o}=y(),s=x(),c=e=>({algorithms:[`sha512`],...e});t.exports=l;async function l(e,t,a,o={}){let{memoize:s}=o;o=c(o);let l=await i(e,a,o),u=await n.insert(e,t,l.integrity,{...o,size:l.size});return s&&r.put(e,u,a,o),l.integrity}t.exports.stream=u;function u(e,t,l={}){let{memoize:u}=l;l=c(l);let d,f,p,m,h=new s;if(u){let e=new o().on(`collect`,e=>{m=e});h.push(e)}let g=i.stream(e,l).on(`integrity`,e=>{d=e}).on(`size`,e=>{f=e}).on(`error`,e=>{p=e});return h.push(g),h.push(new a({async flush(){if(!p){let i=await n.insert(e,t,d,{...l,size:f});u&&m&&r.put(e,i,m,l),h.emit(`integrity`,d),h.emit(`size`,f)}}})),h}})),X=i((e=>{g(),a(),c(),d(),l(),f();var n=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.range=e.balanced=void 0,e.balanced=(n,r,i)=>{let a=n instanceof RegExp?t(n,i):n,o=r instanceof RegExp?t(r,i):r,s=a!==null&&o!=null&&(0,e.range)(a,o,i);return s&&{start:s[0],end:s[1],pre:i.slice(0,s[0]),body:i.slice(s[0]+a.length,s[1]),post:i.slice(s[1]+o.length)}};var t=(e,t)=>{let n=t.match(e);return n?n[0]:null};e.range=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i<a&&(a=i,o=l),l=n.indexOf(t,u+1);u=c<l&&c>=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s}}),i=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.EXPANSION_MAX=void 0,e.expand=S;var t=r(),n=`\0SLASH`+Math.random()+`\0`,i=`\0OPEN`+Math.random()+`\0`,a=`\0CLOSE`+Math.random()+`\0`,o=`\0COMMA`+Math.random()+`\0`,s=`\0PERIOD`+Math.random()+`\0`,c=new RegExp(n,`g`),l=new RegExp(i,`g`),u=new RegExp(a,`g`),d=new RegExp(o,`g`),f=new RegExp(s,`g`),p=/\\\\/g,m=/\\{/g,h=/\\}/g,g=/\\,/g,_=/\\./g;e.EXPANSION_MAX=1e5;function v(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function y(e){return e.replace(p,n).replace(m,i).replace(h,a).replace(g,o).replace(_,s)}function b(e){return e.replace(c,`\\`).replace(l,`{`).replace(u,`}`).replace(d,`,`).replace(f,`.`)}function x(e){if(!e)return[``];let n=[],r=(0,t.balanced)(`{`,`}`,e);if(!r)return e.split(`,`);let{pre:i,body:a,post:o}=r,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;let c=x(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),n.push.apply(n,s),n}function S(t,n={}){if(!t)return[];let{max:r=e.EXPANSION_MAX}=n;return t.slice(0,2)===`{}`&&(t=`\\{\\}`+t.slice(2)),D(y(t),r,!0).map(b)}function C(e){return`{`+e+`}`}function w(e){return/^-?0\d/.test(e)}function T(e,t){return e<=t}function E(e,t){return e>=t}function D(e,n,r){let i=[],o=(0,t.balanced)(`{`,`}`,e);if(!o)return[e];let s=o.pre,c=o.post.length?D(o.post,n,!1):[``];if(/\$$/.test(o.pre))for(let e=0;e<c.length&&e<n;e++){let t=s+`{`+o.body+`}`+c[e];i.push(t)}else{let t=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),u=t||l,d=o.body.indexOf(`,`)>=0;if(!u&&!d)return o.post.match(/,(?!,).*\}/)?(e=o.pre+`{`+o.body+a+o.post,D(e,n,!0)):[e];let f;if(u)f=o.body.split(/\.\./);else if(f=x(o.body),f.length===1&&f[0]!==void 0&&(f=D(f[0],n,!1).map(C),f.length===1))return c.map(e=>o.pre+f[0]+e);let p;if(u&&f[0]!==void 0&&f[1]!==void 0){let e=v(f[0]),t=v(f[1]),n=Math.max(f[0].length,f[1].length),r=f.length===3&&f[2]!==void 0?Math.abs(v(f[2])):1,i=T;t<e&&(r*=-1,i=E);let a=f.some(w);p=[];for(let o=e;i(o,t);o+=r){let e;if(l)e=String.fromCharCode(o),e===`\\`&&(e=``);else if(e=String(o),a){let t=n-e.length;if(t>0){let n=Array(t+1).join(`0`);e=o<0?`-`+n+e.slice(1):n+e}}p.push(e)}}else{p=[];for(let e=0;e<f.length;e++)p.push.apply(p,D(f[e],n,!1))}for(let e=0;e<p.length;e++)for(let t=0;t<c.length&&i.length<n;t++){let n=s+p[e]+c[t];(!r||u||n)&&i.push(n)}}return i}}),_=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.assertValidPattern=void 0;var t=1024*64;e.assertValidPattern=e=>{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>t)throw TypeError(`pattern is too long`)}}),v=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.parseClass=void 0;var t={"[: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]},n=e=>e.replace(/[[\]\\-]/g,`\\$&`),r=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),i=e=>e.join(``);e.parseClass=(e,a)=>{let o=a;if(e.charAt(o)!==`[`)throw Error(`not in a brace expression`);let s=[],c=[],l=o+1,u=!1,d=!1,f=!1,p=!1,m=o,h=``;t:for(;l<e.length;){let r=e.charAt(l);if((r===`!`||r===`^`)&&l===o+1){p=!0,l++;continue}if(r===`]`&&u&&!f){m=l+1;break}if(u=!0,r===`\\`&&!f){f=!0,l++;continue}if(r===`[`&&!f){for(let[n,[r,i,a]]of Object.entries(t))if(e.startsWith(n,l)){if(h)return[`$.`,!1,e.length-o,!0];l+=n.length,a?c.push(r):s.push(r),d=d||i;continue t}}if(f=!1,h){r>h?s.push(n(h)+`-`+n(r)):r===h&&s.push(n(r)),h=``,l++;continue}if(e.startsWith(`-]`,l+1)){s.push(n(r+`-`)),l+=2;continue}if(e.startsWith(`-`,l+1)){h=r,l+=2;continue}s.push(n(r)),l++}if(m<l)return[``,!1,0,!1];if(!s.length&&!c.length)return[`$.`,!1,e.length-o,!0];if(c.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!p)return[r(s[0].length===2?s[0].slice(-1):s[0]),!1,m-o,!1];let g=`[`+(p?`^`:``)+i(s)+`]`,_=`[`+(p?``:`^`)+i(c)+`]`;return[s.length&&c.length?`(`+g+`|`+_+`)`:s.length?g:_,d,m-o,!0]}}),y=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.unescape=void 0,e.unescape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!0}={})=>n?t?e.replace(/\[([^\/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,`$1$2`).replace(/\\([^\/])/g,`$1`):t?e.replace(/\[([^\/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,`$1$2`).replace(/\\([^\/{}])/g,`$1`)}),b=n(e=>{var t,n,r,i,a,c,l,d,f,g,_,b,x;Object.defineProperty(e,`__esModule`,{value:!0}),e.AST=void 0;var S=v(),C=y(),w=new Set([`!`,`?`,`+`,`*`,`@`]),T=e=>w.has(e),E=`(?!(?:^|/)\\.\\.?(?:$|/))`,D=`(?!\\.)`,O=new Set([`[`,`.`]),k=new Set([`..`,`.`]),A=new Set(`().*{}+?[]^$\\!`),j=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),M=`[^/]`,N=M+`*?`,P=M+`+?`,F=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,d=new WeakMap,f=new WeakMap,g=new WeakMap,_=new WeakMap,b=new WeakSet,x=class e{constructor(e,s,v={}){u(this,b),o(this,`type`,void 0),m(this,t,void 0),m(this,n,void 0),m(this,r,!1),m(this,i,[]),m(this,a,void 0),m(this,c,void 0),m(this,l,void 0),m(this,d,!1),m(this,f,void 0),m(this,g,void 0),m(this,_,!1),this.type=e,e&&h(n,this,!0),h(a,this,s),h(t,this,p(a,this)?p(t,p(a,this)):this),h(f,this,p(t,this)===this?v:p(f,p(t,this))),h(l,this,p(t,this)===this?[]:p(l,p(t,this))),e===`!`&&!p(d,p(t,this))&&p(l,this).push(this),h(c,this,p(a,this)?p(i,p(a,this)).length:0)}get hasMagic(){if(p(n,this)!==void 0)return p(n,this);for(let e of p(i,this))if(typeof e!=`string`&&(e.type||e.hasMagic))return h(n,this,!0);return p(n,this)}toString(){return p(g,this)===void 0?this.type?h(g,this,this.type+`(`+p(i,this).map(e=>String(e)).join(`|`)+`)`):h(g,this,p(i,this).map(e=>String(e)).join(``)):p(g,this)}push(...t){for(let n of t)if(n!==``){if(typeof n!=`string`&&!(n instanceof e&&p(a,n)===this))throw Error(`invalid part: `+n);p(i,this).push(n)}}toJSON(){let e=this.type===null?p(i,this).slice().map(e=>typeof e==`string`?e:e.toJSON()):[this.type,...p(i,this).map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===p(t,this)||p(d,p(t,this))&&p(a,this)?.type===`!`)&&e.push({}),e}isStart(){if(p(t,this)===this)return!0;if(!p(a,this)?.isStart())return!1;if(p(c,this)===0)return!0;let n=p(a,this);for(let t=0;t<p(c,this);t++){let r=p(i,n)[t];if(!(r instanceof e&&r.type===`!`))return!1}return!0}isEnd(){if(p(t,this)===this||p(a,this)?.type===`!`)return!0;if(!p(a,this)?.isEnd())return!1;if(!this.type)return p(a,this)?.isEnd();let e=p(a,this)?p(i,p(a,this)).length:0;return p(c,this)===e-1}copyIn(e){typeof e==`string`?this.push(e):this.push(e.clone(this))}clone(t){let n=new e(this.type,t);for(let e of p(i,this))n.copyIn(e);return n}static fromGlob(t,n={}){let r=new e(null,void 0,n);return s(x,e,L).call(e,t,r,0,n),r}toMMPattern(){if(this!==p(t,this))return p(t,this).toMMPattern();let e=this.toString(),[r,i,a,o]=this.toRegExpSource();if(!(a||p(n,this)||p(f,this).nocase&&!p(f,this).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return i;let s=(p(f,this).nocase?`i`:``)+(o?`u`:``);return Object.assign(RegExp(`^${r}$`,s),{_src:r,_glob:e})}get options(){return p(f,this)}toRegExpSource(o){let c=o??!!p(f,this).dot;if(p(t,this)===this&&s(b,this,I).call(this),!this.type){let l=this.isStart()&&this.isEnd()&&!p(i,this).some(e=>typeof e!=`string`),u=p(i,this).map(t=>{let[i,a,c,u]=typeof t==`string`?s(x,e,z).call(e,t,p(n,this),l):t.toRegExpSource(o);return h(n,this,p(n,this)||c),h(r,this,p(r,this)||u),i}).join(``),f=``;if(this.isStart()&&typeof p(i,this)[0]==`string`&&!(p(i,this).length===1&&k.has(p(i,this)[0]))){let e=O,t=c&&e.has(u.charAt(0))||u.startsWith(`\\.`)&&e.has(u.charAt(2))||u.startsWith(`\\.\\.`)&&e.has(u.charAt(4)),n=!c&&!o&&e.has(u.charAt(0));f=t?E:n?D:``}let m=``;return this.isEnd()&&p(d,p(t,this))&&p(a,this)?.type===`!`&&(m=`(?:$|\\/)`),[f+u+m,(0,C.unescape)(u),h(n,this,!!p(n,this)),p(r,this)]}let l=this.type===`*`||this.type===`+`,u=this.type===`!`?`(?:(?!(?:`:`(?:`,m=s(b,this,R).call(this,c);if(this.isStart()&&this.isEnd()&&!m&&this.type!==`!`){let e=this.toString();return h(i,this,[e]),this.type=null,h(n,this,void 0),[e,(0,C.unescape)(this.toString()),!1,!1]}let g=!l||o||c||!D?``:s(b,this,R).call(this,!0);g===m&&(g=``),g&&(m=`(?:${m})(?:${g})*?`);let v=``;if(this.type===`!`&&p(_,this))v=(this.isStart()&&!c?D:``)+P;else{let e=this.type===`!`?`))`+(this.isStart()&&!c&&!o?D:``)+N+`)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&g?`)`:this.type===`*`&&g?`)?`:`)${this.type}`;v=u+m+e}return[v,(0,C.unescape)(m),h(n,this,!!p(n,this)),p(r,this)]}},x);function I(){if(this!==p(t,this))throw Error(`should only call on root`);if(p(d,this))return this;this.toString(),h(d,this,!0);let e;for(;e=p(l,this).pop();){if(e.type!==`!`)continue;let t=e,n=p(a,t);for(;n;){for(let r=p(c,t)+1;!n.type&&r<p(i,n).length;r++)for(let t of p(i,e)){if(typeof t==`string`)throw Error(`string part in extglob AST??`);t.copyIn(p(i,n)[r])}t=n,n=p(a,t)}}return this}function L(e,t,r,a){let o=!1,c=!1,l=-1,u=!1;if(t.type===null){let n=r,i=``;for(;n<e.length;){let r=e.charAt(n++);if(o||r===`\\`){o=!o,i+=r;continue}if(c){n===l+1?(r===`^`||r===`!`)&&(u=!0):r===`]`&&!(n===l+2&&u)&&(c=!1),i+=r;continue}else if(r===`[`){c=!0,l=n,u=!1,i+=r;continue}if(!a.noext&&T(r)&&e.charAt(n)===`(`){t.push(i),i=``;let o=new x(r,t);n=s(x,x,L).call(x,e,o,n,a),t.push(o);continue}i+=r}return t.push(i),n}let d=r+1,f=new x(null,t),m=[],g=``;for(;d<e.length;){let n=e.charAt(d++);if(o||n===`\\`){o=!o,g+=n;continue}if(c){d===l+1?(n===`^`||n===`!`)&&(u=!0):n===`]`&&!(d===l+2&&u)&&(c=!1),g+=n;continue}else if(n===`[`){c=!0,l=d,u=!1,g+=n;continue}if(T(n)&&e.charAt(d)===`(`){f.push(g),g=``;let t=new x(n,f);f.push(t),d=s(x,x,L).call(x,e,t,d,a);continue}if(n===`|`){f.push(g),g=``,m.push(f),f=new x(null,t);continue}if(n===`)`)return g===``&&p(i,t).length===0&&h(_,t,!0),f.push(g),g=``,t.push(...m,f),d;g+=n}return t.type=null,h(n,t,void 0),h(i,t,[e.substring(r-1)]),d}function R(e){return p(i,this).map(t=>{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,i,a,o]=t.toRegExpSource(e);return h(r,this,p(r,this)||o),n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}function z(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;s<e.length;s++){let c=e.charAt(s);if(r){r=!1,i+=(A.has(c)?`\\`:``)+c;continue}if(c===`*`){if(o)continue;o=!0,i+=n&&/^[*]+$/.test(e)?P:N,t=!0;continue}else o=!1;if(c===`\\`){s===e.length-1?i+=`\\\\`:r=!0;continue}if(c===`[`){let[n,r,o,c]=(0,S.parseClass)(e,s);if(o){i+=n,a=a||r,s+=o-1,t=t||c;continue}}if(c===`?`){i+=M,t=!0;continue}i+=j(c)}return[i,(0,C.unescape)(e),!!t,a]}e.AST=F}),x=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.escape=void 0,e.escape=(e,{windowsPathsNoEscape:t=!1,magicalBraces:n=!1}={})=>n?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`)}),S=n(e=>{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 t=i(),n=_(),r=b(),a=x(),s=y();e.minimatch=(e,t,r={})=>((0,n.assertValidPattern)(t),!r.nocomment&&t.charAt(0)===`#`?!1:new B(t,r).match(e));var c=/^\*+([^+@!?\*\[\(]*)$/,l=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),u=e=>t=>t.endsWith(e),d=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),f=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),p=/^\*+\.\*+$/,m=e=>!e.startsWith(`.`)&&e.includes(`.`),h=e=>e!==`.`&&e!==`..`&&e.includes(`.`),g=/^\.\*+$/,v=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),S=/^\*+$/,C=e=>e.length!==0&&!e.startsWith(`.`),w=e=>e.length!==0&&e!==`.`&&e!==`..`,T=/^\?+([^+@!?\*\[\(]*)?$/,E=([e,t=``])=>{let n=A([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},D=([e,t=``])=>{let n=j([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},O=([e,t=``])=>{let n=j([e]);return t?e=>n(e)&&e.endsWith(t):n},k=([e,t=``])=>{let n=A([e]);return t?e=>n(e)&&e.endsWith(t):n},A=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},j=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},M=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,N={win32:{sep:`\\`},posix:{sep:`/`}};e.sep=M===`win32`?N.win32.sep:N.posix.sep,e.minimatch.sep=e.sep,e.GLOBSTAR=Symbol(`globstar **`),e.minimatch.GLOBSTAR=e.GLOBSTAR;var P=`[^/]*?`,F=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,I=`(?:(?!(?:\\/|^)\\.).)*?`;e.filter=(t,n={})=>r=>(0,e.minimatch)(r,t,n),e.minimatch.filter=e.filter;var L=(e,t={})=>Object.assign({},e,t);e.defaults=t=>{if(!t||typeof t!=`object`||!Object.keys(t).length)return e.minimatch;let n=e.minimatch;return Object.assign((e,r,i={})=>n(e,r,L(t,i)),{Minimatch:class extends n.Minimatch{constructor(e,n={}){super(e,L(t,n))}static defaults(e){return n.defaults(L(t,e)).Minimatch}},AST:class extends n.AST{constructor(e,n,r={}){super(e,n,L(t,r))}static fromGlob(e,r={}){return n.AST.fromGlob(e,L(t,r))}},unescape:(e,r={})=>n.unescape(e,L(t,r)),escape:(e,r={})=>n.escape(e,L(t,r)),filter:(e,r={})=>n.filter(e,L(t,r)),defaults:e=>n.defaults(L(t,e)),makeRe:(e,r={})=>n.makeRe(e,L(t,r)),braceExpand:(e,r={})=>n.braceExpand(e,L(t,r)),match:(e,r,i={})=>n.match(e,r,L(t,i)),sep:n.sep,GLOBSTAR:e.GLOBSTAR})},e.minimatch.defaults=e.defaults,e.braceExpand=(e,r={})=>((0,n.assertValidPattern)(e),r.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,t.expand)(e,{max:r.braceExpandMax})),e.minimatch.braceExpand=e.braceExpand,e.makeRe=(e,t={})=>new B(e,t).makeRe(),e.minimatch.makeRe=e.makeRe,e.match=(e,t,n={})=>{let r=new B(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e},e.minimatch.match=e.match;var R=/[?*]|[+@!]\(.*?\)|\[|\]/,z=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),B=class{constructor(e,t={}){o(this,`options`,void 0),o(this,`set`,void 0),o(this,`pattern`,void 0),o(this,`windowsPathsNoEscape`,void 0),o(this,`nonegate`,void 0),o(this,`negate`,void 0),o(this,`comment`,void 0),o(this,`empty`,void 0),o(this,`preserveMultipleSlashes`,void 0),o(this,`partial`,void 0),o(this,`globSet`,void 0),o(this,`globParts`,void 0),o(this,`nocase`,void 0),o(this,`isWindows`,void 0),o(this,`platform`,void 0),o(this,`windowsNoMagicRoot`,void 0),o(this,`regexp`,void 0),(0,n.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||M,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!R.test(e[2]))&&!R.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e<this.set.length;e++){let t=this.set[e];t[0]===``&&t[1]===``&&this.globParts[e][2]===`?`&&typeof t[3]==`string`&&/^[a-z]:$/i.test(t[3])&&(t[2]=`?`)}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)e[t][n]===`**`&&(e[t][n]=`*`);let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){let r=e[n];n===1&&r===``&&e[0]===``||(r===`.`||r===``)&&(t=!0,e.splice(n,1),n--)}e[0]===`.`&&e.length===2&&(e[1]===`.`||e[1]===``)&&(t=!0,e.pop())}let n=0;for(;(n=e.indexOf(`..`,n+1))!==-1;){let r=e[n-1];r&&r!==`.`&&r!==`..`&&r!==`**`&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[``]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let r=-1;for(;(r=n.indexOf(`**`,r+1))!==-1;){let i=r;for(;n[i+1]===`**`;)i++;i>r&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){let r=n[e];e===1&&r===``&&n[0]===``||(r===`.`||r===``)&&(t=!0,n.splice(e,1),e--)}n[0]===`.`&&n.length===2&&(n[1]===`.`||n[1]===``)&&(t=!0,n.pop())}let i=0;for(;(i=n.indexOf(`..`,i+1))!==-1;){let e=n[i-1];if(e&&e!==`.`&&e!==`..`&&e!==`**`){t=!0;let e=i===1&&n[i+1]===`**`?[`.`]:[];n.splice(i-1,2,...e),n.length===0&&n.push(``),i-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){let r=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(r){e[t]=[],e[n]=r;break}}return e.filter(e=>e.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r<e.length&&i<t.length;)if(e[r]===t[i])a.push(o===`b`?t[i]:e[r]),r++,i++;else if(n&&e[r]===`**`&&t[i]===e[r+1])a.push(e[r]),r++;else if(n&&t[i]===`**`&&e[r]===t[i+1])a.push(t[i]),i++;else if(e[r]===`*`&&t[i]&&(this.options.dot||!t[i].startsWith(`.`))&&t[i]!==`**`){if(o===`b`)return!1;o=`a`,a.push(e[r]),r++,i++}else if(t[i]===`*`&&e[r]&&(this.options.dot||!e[r].startsWith(`.`))&&e[r]!==`**`){if(o===`a`)return!1;o=`b`,a.push(t[i]),r++,i++}else return!1;return e.length===t.length&&a}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,n=0;for(let r=0;r<e.length&&e.charAt(r)===`!`;r++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(t,n,r=!1){let i=this.options;if(this.isWindows){let e=typeof t[0]==`string`&&/^[a-z]:$/i.test(t[0]),r=!e&&t[0]===``&&t[1]===``&&t[2]===`?`&&/^[a-z]:$/i.test(t[3]),i=typeof n[0]==`string`&&/^[a-z]:$/i.test(n[0]),a=!i&&n[0]===``&&n[1]===``&&n[2]===`?`&&typeof n[3]==`string`&&/^[a-z]:$/i.test(n[3]),o=r?3:e?0:void 0,s=a?3:i?0:void 0;if(typeof o==`number`&&typeof s==`number`){let[e,r]=[t[o],n[s]];e.toLowerCase()===r.toLowerCase()&&(n[s]=e,s>o?n=n.slice(s):o>s&&(t=t.slice(o)))}}let{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug(`matchOne`,this,{file:t,pattern:n}),this.debug(`matchOne`,t.length,n.length);for(var o=0,s=0,c=t.length,l=n.length;o<c&&s<l;o++,s++){this.debug(`matchOne loop`);var u=n[s],d=t[o];if(this.debug(n,u,d),u===!1)return!1;if(u===e.GLOBSTAR){this.debug(`GLOBSTAR`,[n,u,d]);var f=o,p=s+1;if(p===l){for(this.debug(`** at the end`);o<c;o++)if(t[o]===`.`||t[o]===`..`||!i.dot&&t[o].charAt(0)===`.`)return!1;return!0}for(;f<c;){var m=t[f];if(this.debug(`
7
+ globstar while`,t,f,n,p,m),this.matchOne(t.slice(f),n.slice(p),r))return this.debug(`globstar found match!`,f,c,m),!0;if(m===`.`||m===`..`||!i.dot&&m.charAt(0)===`.`){this.debug(`dot detected!`,t,f,n,p);break}this.debug(`globstar swallow a segment, and continue`),f++}return!!(r&&(this.debug(`
8
+ >>> no match, partial?`,t,f,n,p),f===c))}let a;if(typeof u==`string`?(a=d===u,this.debug(`string match`,u,d,a)):(a=u.test(d),this.debug(`pattern match`,u,d,a)),!a)return!1}if(o===c&&s===l)return!0;if(o===c)return r;if(s===l)return o===c-1&&t[o]===``;throw Error(`wtf?`)}braceExpand(){return(0,e.braceExpand)(this.pattern,this.options)}parse(t){(0,n.assertValidPattern)(t);let i=this.options;if(t===`**`)return e.GLOBSTAR;if(t===``)return``;let a,o=null;(a=t.match(S))?o=i.dot?w:C:(a=t.match(c))?o=(i.nocase?i.dot?f:d:i.dot?u:l)(a[1]):(a=t.match(T))?o=(i.nocase?i.dot?D:E:i.dot?O:k)(a):(a=t.match(p))?o=i.dot?h:m:(a=t.match(g))&&(o=v);let s=r.AST.fromGlob(t,this.options).toMMPattern();return o&&typeof s==`object`&&Reflect.defineProperty(s,`test`,{value:o}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let n=this.options,r=n.noglobstar?P:n.dot?F:I,i=new Set(n.nocase?[`i`]:[]),a=t.map(t=>{let n=t.map(t=>{if(t instanceof RegExp)for(let e of t.flags.split(``))i.add(e);return typeof t==`string`?z(t):t===e.GLOBSTAR?e.GLOBSTAR:t._src});n.forEach((t,i)=>{let a=n[i+1],o=n[i-1];t!==e.GLOBSTAR||o===e.GLOBSTAR||(o===void 0?a!==void 0&&a!==e.GLOBSTAR?n[i+1]=`(?:\\/|`+r+`\\/)?`+a:n[i]=r:a===void 0?n[i-1]=o+`(?:\\/|\\/`+r+`)?`:a!==e.GLOBSTAR&&(n[i-1]=o+`(?:\\/|\\/`+r+`\\/)`+a,n[i+1]=e.GLOBSTAR))});let a=n.filter(t=>t!==e.GLOBSTAR);if(this.partial&&a.length>=1){let e=[];for(let t=1;t<=a.length;t++)e.push(a.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return a.join(`/`)}).join(`|`),[o,s]=t.length>1?[`(?:`,`)`]:[``,``];a=`^`+o+a+s+`$`,this.partial&&(a=`^(?:\\/|`+o+a.slice(1,-1)+s+`)$`),this.negate&&(a=`^(?!`+a+`).+$`);try{this.regexp=new RegExp(a,[...i].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^\/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e=0;e<i.length;e++){let o=i[e],s=r;if(n.matchBase&&o.length===1&&(s=[a]),this.matchOne(s,o,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return e.minimatch.defaults(t).Minimatch}};e.Minimatch=B;var V=b();Object.defineProperty(e,`AST`,{enumerable:!0,get:function(){return V.AST}});var H=x();Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return H.escape}});var U=y();Object.defineProperty(e,`unescape`,{enumerable:!0,get:function(){return U.unescape}}),e.minimatch.AST=r.AST,e.minimatch.Minimatch=B,e.minimatch.escape=a.escape,e.minimatch.unescape=s.unescape}),C=n(e=>{var t,n,r,i,a,c,l,d,f,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U;let W,G;Object.defineProperty(e,`__esModule`,{value:!0}),e.LRUCache=void 0;var ee=typeof performance==`object`&&performance&&typeof performance.now==`function`?performance:Date,K=new Set,q=typeof process==`object`&&process?process:{},te=(e,t,n,r)=>{typeof q.emitWarning==`function`?q.emitWarning(e,t,n,r):console.error(`[${n}] ${t}: ${e}`)},ne=globalThis.AbortController,re=globalThis.AbortSignal;if(typeof ne>`u`){re=class{constructor(){o(this,`onabort`,void 0),o(this,`_onabort`,[]),o(this,`reason`,void 0),o(this,`aborted`,!1)}addEventListener(e,t){this._onabort.push(t)}},ne=class{constructor(){o(this,`signal`,new re),t()}abort(e){if(!this.signal.aborted){this.signal.reason=e,this.signal.aborted=!0;for(let t of this.signal._onabort)t(e);this.signal.onabort?.(e)}}};let e=q.env?.LRU_CACHE_IGNORE_AC_WARNING!==`1`,t=()=>{e&&(e=!1,te("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`,t))}}var ie=e=>!K.has(e),ae=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),J=e=>ae(e)?e<=2**8?Uint8Array:e<=2**16?Uint16Array:e<=2**32?Uint32Array:e<=2**53-1?Y:null:null,Y=class extends Array{constructor(e){super(e),this.fill(0)}},oe=(t=class e{static create(r){let i=J(r);if(!i)return[];n._=s(t,e,!0);let a=new e(r,i);return n._=s(t,e,!1),a}constructor(r,i){if(o(this,`heap`,void 0),o(this,`length`,void 0),!s(t,e,n)._)throw TypeError(`instantiate Stack using Stack.create(n)`);this.heap=new i(r),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},n={_:!1},t),se=(r=new WeakMap,i=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,d=new WeakMap,f=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakMap,w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakSet,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,U=new WeakMap,G=Symbol.iterator,W=Symbol.toStringTag,class e{get perf(){return p(g,this)}static unsafeExposeInternals(e){return{starts:p(k,e),ttls:p(A,e),autopurgeTimers:p(j,e),sizes:p(O,e),keyMap:p(y,e),keyList:p(b,e),valList:p(x,e),next:p(S,e),prev:p(C,e),get head(){return p(w,e)},get tail(){return p(T,e)},free:p(E,e),isBackgroundFetch:t=>s(I,e,Z).call(e,t),backgroundFetch:(t,n,r,i)=>s(I,e,pe).call(e,t,n,r,i),moveToTail:t=>s(I,e,he).call(e,t),indexes:t=>s(I,e,ue).call(e,t),rindexes:t=>s(I,e,X).call(e,t),isStale:t=>p(B,e).call(e,t)}}get max(){return p(r,this)}get maxSize(){return p(i,this)}get calculatedSize(){return p(v,this)}get size(){return p(_,this)}get fetchMethod(){return p(d,this)}get memoMethod(){return p(f,this)}get dispose(){return p(a,this)}get onInsert(){return p(c,this)}get disposeAfter(){return p(l,this)}constructor(t){u(this,I),m(this,r,void 0),m(this,i,void 0),m(this,a,void 0),m(this,c,void 0),m(this,l,void 0),m(this,d,void 0),m(this,f,void 0),m(this,g,void 0),o(this,`ttl`,void 0),o(this,`ttlResolution`,void 0),o(this,`ttlAutopurge`,void 0),o(this,`updateAgeOnGet`,void 0),o(this,`updateAgeOnHas`,void 0),o(this,`allowStale`,void 0),o(this,`noDisposeOnSet`,void 0),o(this,`noUpdateTTL`,void 0),o(this,`maxEntrySize`,void 0),o(this,`sizeCalculation`,void 0),o(this,`noDeleteOnFetchRejection`,void 0),o(this,`noDeleteOnStaleGet`,void 0),o(this,`allowStaleOnFetchAbort`,void 0),o(this,`allowStaleOnFetchRejection`,void 0),o(this,`ignoreFetchAbort`,void 0),m(this,_,void 0),m(this,v,void 0),m(this,y,void 0),m(this,b,void 0),m(this,x,void 0),m(this,S,void 0),m(this,C,void 0),m(this,w,void 0),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),m(this,O,void 0),m(this,k,void 0),m(this,A,void 0),m(this,j,void 0),m(this,M,void 0),m(this,N,void 0),m(this,P,void 0),m(this,F,void 0),m(this,L,()=>{}),m(this,R,()=>{}),m(this,z,()=>{}),m(this,B,()=>!1),m(this,V,e=>{}),m(this,H,(e,t,n)=>{}),m(this,U,(e,t,n,r)=>{if(n||r)throw TypeError(`cannot set size without setting maxSize or maxEntrySize on cache`);return 0}),o(this,W,`LRUCache`);let{max:n=0,ttl:G,ttlResolution:q=1,ttlAutopurge:ne,updateAgeOnGet:re,updateAgeOnHas:Y,allowStale:se,dispose:ue,onInsert:X,disposeAfter:de,noDisposeOnSet:fe,noUpdateTTL:pe,maxSize:Z=0,maxEntrySize:me=0,sizeCalculation:he,fetchMethod:Q,memoMethod:ge,noDeleteOnFetchRejection:_e,noDeleteOnStaleGet:ve,allowStaleOnFetchRejection:ye,allowStaleOnFetchAbort:be,ignoreFetchAbort:xe,perf:Se}=t;if(Se!==void 0&&typeof Se?.now!=`function`)throw TypeError(`perf option must have a now() method if specified`);if(h(g,this,Se??ee),n!==0&&!ae(n))throw TypeError(`max option must be a nonnegative integer`);let $=n?J(n):Array;if(!$)throw Error(`invalid max value: `+n);if(h(r,this,n),h(i,this,Z),this.maxEntrySize=me||p(i,this),this.sizeCalculation=he,this.sizeCalculation){if(!p(i,this)&&!this.maxEntrySize)throw TypeError(`cannot set sizeCalculation without setting maxSize or maxEntrySize`);if(typeof this.sizeCalculation!=`function`)throw TypeError(`sizeCalculation set to non-function`)}if(ge!==void 0&&typeof ge!=`function`)throw TypeError(`memoMethod must be a function if defined`);if(h(f,this,ge),Q!==void 0&&typeof Q!=`function`)throw TypeError(`fetchMethod must be a function if specified`);if(h(d,this,Q),h(N,this,!!Q),h(y,this,new Map),h(b,this,Array(n).fill(void 0)),h(x,this,Array(n).fill(void 0)),h(S,this,new $(n)),h(C,this,new $(n)),h(w,this,0),h(T,this,0),h(E,this,oe.create(n)),h(_,this,0),h(v,this,0),typeof ue==`function`&&h(a,this,ue),typeof X==`function`&&h(c,this,X),typeof de==`function`?(h(l,this,de),h(D,this,[])):(h(l,this,void 0),h(D,this,void 0)),h(M,this,!!p(a,this)),h(F,this,!!p(c,this)),h(P,this,!!p(l,this)),this.noDisposeOnSet=!!fe,this.noUpdateTTL=!!pe,this.noDeleteOnFetchRejection=!!_e,this.allowStaleOnFetchRejection=!!ye,this.allowStaleOnFetchAbort=!!be,this.ignoreFetchAbort=!!xe,this.maxEntrySize!==0){if(p(i,this)!==0&&!ae(p(i,this)))throw TypeError(`maxSize must be a positive integer if specified`);if(!ae(this.maxEntrySize))throw TypeError(`maxEntrySize must be a positive integer if specified`);s(I,this,le).call(this)}if(this.allowStale=!!se,this.noDeleteOnStaleGet=!!ve,this.updateAgeOnGet=!!re,this.updateAgeOnHas=!!Y,this.ttlResolution=ae(q)||q===0?q:1,this.ttlAutopurge=!!ne,this.ttl=G||0,this.ttl){if(!ae(this.ttl))throw TypeError(`ttl must be a positive integer if specified`);s(I,this,ce).call(this)}if(p(r,this)===0&&this.ttl===0&&p(i,this)===0)throw TypeError(`At least one of max, maxSize, or ttl is required`);if(!this.ttlAutopurge&&!p(r,this)&&!p(i,this)){let t=`LRU_CACHE_UNBOUNDED`;ie(t)&&(K.add(t),te(`TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.`,`UnboundedCacheWarning`,t,e))}}getRemainingTTL(e){return p(y,this).has(e)?1/0:0}*entries(){for(let e of s(I,this,ue).call(this))p(x,this)[e]!==void 0&&p(b,this)[e]!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield[p(b,this)[e],p(x,this)[e]])}*rentries(){for(let e of s(I,this,X).call(this))p(x,this)[e]!==void 0&&p(b,this)[e]!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield[p(b,this)[e],p(x,this)[e]])}*keys(){for(let e of s(I,this,ue).call(this)){let t=p(b,this)[e];t!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield t)}}*rkeys(){for(let e of s(I,this,X).call(this)){let t=p(b,this)[e];t!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield t)}}*values(){for(let e of s(I,this,ue).call(this))p(x,this)[e]!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield p(x,this)[e])}*rvalues(){for(let e of s(I,this,X).call(this))p(x,this)[e]!==void 0&&!s(I,this,Z).call(this,p(x,this)[e])&&(yield p(x,this)[e])}[G](){return this.entries()}find(e,t={}){for(let n of s(I,this,ue).call(this)){let r=p(x,this)[n],i=s(I,this,Z).call(this,r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,p(b,this)[n],this))return this.get(p(b,this)[n],t)}}forEach(e,t=this){for(let n of s(I,this,ue).call(this)){let r=p(x,this)[n],i=s(I,this,Z).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,p(b,this)[n],this)}}rforEach(e,t=this){for(let n of s(I,this,X).call(this)){let r=p(x,this)[n],i=s(I,this,Z).call(this,r)?r.__staleWhileFetching:r;i!==void 0&&e.call(t,i,p(b,this)[n],this)}}purgeStale(){let e=!1;for(let t of s(I,this,X).call(this,{allowStale:!0}))p(B,this).call(this,t)&&(s(I,this,Q).call(this,p(b,this)[t],`expire`),e=!0);return e}info(e){let t=p(y,this).get(e);if(t===void 0)return;let n=p(x,this)[t],r=s(I,this,Z).call(this,n)?n.__staleWhileFetching:n;if(r===void 0)return;let i={value:r};if(p(A,this)&&p(k,this)){let e=p(A,this)[t],n=p(k,this)[t];e&&n&&(i.ttl=e-(p(g,this).now()-n),i.start=Date.now())}return p(O,this)&&(i.size=p(O,this)[t]),i}dump(){let e=[];for(let t of s(I,this,ue).call(this,{allowStale:!0})){let n=p(b,this)[t],r=p(x,this)[t],i=s(I,this,Z).call(this,r)?r.__staleWhileFetching:r;if(i===void 0||n===void 0)continue;let a={value:i};if(p(A,this)&&p(k,this)){a.ttl=p(A,this)[t];let e=p(g,this).now()-p(k,this)[t];a.start=Math.floor(Date.now()-e)}p(O,this)&&(a.size=p(O,this)[t]),e.unshift([n,a])}return e}load(e){this.clear();for(let[t,n]of e){if(n.start){let e=Date.now()-n.start;n.start=p(g,this).now()-e}this.set(t,n.value,n)}}set(e,t,n={}){var i;if(t===void 0)return this.delete(e),this;let{ttl:o=this.ttl,start:u,noDisposeOnSet:d=this.noDisposeOnSet,sizeCalculation:f=this.sizeCalculation,status:m}=n,{noUpdateTTL:g=this.noUpdateTTL}=n,v=p(U,this).call(this,e,t,n.size||0,f);if(this.maxEntrySize&&v>this.maxEntrySize)return m&&(m.set=`miss`,m.maxEntrySizeExceeded=!0),s(I,this,Q).call(this,e,`set`),this;let w=p(_,this)===0?void 0:p(y,this).get(e);if(w===void 0)w=p(_,this)===0?p(T,this):p(E,this).length===0?p(_,this)===p(r,this)?s(I,this,fe).call(this,!1):p(_,this):p(E,this).pop(),p(b,this)[w]=e,p(x,this)[w]=t,p(y,this).set(e,w),p(S,this)[p(T,this)]=w,p(C,this)[w]=p(T,this),h(T,this,w),h(_,this,(i=p(_,this),i++,i)),p(H,this).call(this,w,v,m),m&&(m.set=`add`),g=!1,p(F,this)&&p(c,this)?.call(this,t,e,`add`);else{s(I,this,he).call(this,w);let n=p(x,this)[w];if(t!==n){if(p(N,this)&&s(I,this,Z).call(this,n)){n.__abortController.abort(Error(`replaced`));let{__staleWhileFetching:t}=n;t!==void 0&&!d&&(p(M,this)&&p(a,this)?.call(this,t,e,`set`),p(P,this)&&p(D,this)?.push([t,e,`set`]))}else d||(p(M,this)&&p(a,this)?.call(this,n,e,`set`),p(P,this)&&p(D,this)?.push([n,e,`set`]));if(p(V,this).call(this,w),p(H,this).call(this,w,v,m),p(x,this)[w]=t,m){m.set=`replace`;let e=n&&s(I,this,Z).call(this,n)?n.__staleWhileFetching:n;e!==void 0&&(m.oldValue=e)}}else m&&(m.set=`update`);p(F,this)&&this.onInsert?.(t,e,t===n?`update`:`replace`)}if(o!==0&&!p(A,this)&&s(I,this,ce).call(this),p(A,this)&&(g||p(z,this).call(this,w,o,u),m&&p(R,this).call(this,m,w)),!d&&p(P,this)&&p(D,this)){let e=p(D,this),t;for(;t=e?.shift();)p(l,this)?.call(this,...t)}return this}pop(){try{for(;p(_,this);){let e=p(x,this)[p(w,this)];if(s(I,this,fe).call(this,!0),s(I,this,Z).call(this,e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(p(P,this)&&p(D,this)){let e=p(D,this),t;for(;t=e?.shift();)p(l,this)?.call(this,...t)}}}has(e,t={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=t,i=p(y,this).get(e);if(i!==void 0){let e=p(x,this)[i];if(s(I,this,Z).call(this,e)&&e.__staleWhileFetching===void 0)return!1;if(p(B,this).call(this,i))r&&(r.has=`stale`,p(R,this).call(this,r,i));else return n&&p(L,this).call(this,i),r&&(r.has=`hit`,p(R,this).call(this,r,i)),!0}else r&&(r.has=`miss`);return!1}peek(e,t={}){let{allowStale:n=this.allowStale}=t,r=p(y,this).get(e);if(r===void 0||!n&&p(B,this).call(this,r))return;let i=p(x,this)[r];return s(I,this,Z).call(this,i)?i.__staleWhileFetching:i}async fetch(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,context:g,forceRefresh:_=!1,status:v,signal:b}=t;if(!p(N,this))return v&&(v.fetch=`get`),this.get(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:v});let S={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:a,noDisposeOnSet:o,size:c,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:m,status:v,signal:b},C=p(y,this).get(e);if(C===void 0){v&&(v.fetch=`miss`);let t=s(I,this,pe).call(this,e,C,S,g);return t.__returned=t}else{let t=p(x,this)[C];if(s(I,this,Z).call(this,t)){let e=n&&t.__staleWhileFetching!==void 0;return v&&(v.fetch=`inflight`,e&&(v.returnedStale=!0)),e?t.__staleWhileFetching:t.__returned=t}let i=p(B,this).call(this,C);if(!_&&!i)return v&&(v.fetch=`hit`),s(I,this,he).call(this,C),r&&p(L,this).call(this,C),v&&p(R,this).call(this,v,C),t;let a=s(I,this,pe).call(this,e,C,S,g),o=a.__staleWhileFetching!==void 0&&n;return v&&(v.fetch=i?`stale`:`refresh`,o&&i&&(v.returnedStale=!0)),o?a.__staleWhileFetching:a.__returned=a}}async forceFetch(e,t={}){let n=await this.fetch(e,t);if(n===void 0)throw Error(`fetch() returned undefined`);return n}memo(e,t={}){let n=p(f,this);if(!n)throw Error(`no memoMethod provided to constructor`);let{context:r,forceRefresh:i,...a}=t,o=this.get(e,a);if(!i&&o!==void 0)return o;let s=n(e,o,{options:a,context:r});return this.set(e,s,a),s}get(e,t={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:a}=t,o=p(y,this).get(e);if(o!==void 0){let t=p(x,this)[o],c=s(I,this,Z).call(this,t);return a&&p(R,this).call(this,a,o),p(B,this).call(this,o)?(a&&(a.get=`stale`),c?(a&&n&&t.__staleWhileFetching!==void 0&&(a.returnedStale=!0),n?t.__staleWhileFetching:void 0):(i||s(I,this,Q).call(this,e,`expire`),a&&n&&(a.returnedStale=!0),n?t:void 0)):(a&&(a.get=`hit`),c?t.__staleWhileFetching:(s(I,this,he).call(this,o),r&&p(L,this).call(this,o),t))}else a&&(a.get=`miss`)}delete(e){return s(I,this,Q).call(this,e,`delete`)}clear(){return s(I,this,ge).call(this,`delete`)}});function ce(){let e=new Y(p(r,this)),t=new Y(p(r,this));h(A,this,e),h(k,this,t);let n=this.ttlAutopurge?Array(p(r,this)):void 0;h(j,this,n),h(z,this,(r,i,a=p(g,this).now())=>{if(t[r]=i===0?0:a,e[r]=i,n?.[r]&&(clearTimeout(n[r]),n[r]=void 0),i!==0&&n){let e=setTimeout(()=>{p(B,this).call(this,r)&&s(I,this,Q).call(this,p(b,this)[r],`expire`)},i+1);e.unref&&e.unref(),n[r]=e}}),h(L,this,n=>{t[n]=e[n]===0?0:p(g,this).now()}),h(R,this,(n,r)=>{if(e[r]){let o=e[r],s=t[r];if(!o||!s)return;n.ttl=o,n.start=s,n.now=i||a(),n.remainingTTL=o-(n.now-s)}});let i=0,a=()=>{let e=p(g,this).now();if(this.ttlResolution>0){i=e;let t=setTimeout(()=>i=0,this.ttlResolution);t.unref&&t.unref()}return e};this.getRemainingTTL=n=>{let r=p(y,this).get(n);if(r===void 0)return 0;let o=e[r],s=t[r];return!o||!s?1/0:o-((i||a())-s)},h(B,this,n=>{let r=t[n],o=e[n];return!!o&&!!r&&(i||a())-r>o})}function le(){let e=new Y(p(r,this));h(v,this,0),h(O,this,e),h(V,this,t=>{h(v,this,p(v,this)-e[t]),e[t]=0}),h(U,this,(e,t,n,r)=>{if(s(I,this,Z).call(this,t))return 0;if(!ae(n))if(r){if(typeof r!=`function`)throw TypeError(`sizeCalculation must be a function`);if(n=r(t,e),!ae(n))throw TypeError(`sizeCalculation return invalid (expect positive integer)`)}else throw TypeError(`invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.`);return n}),h(H,this,(t,n,r)=>{if(e[t]=n,p(i,this)){let n=p(i,this)-e[t];for(;p(v,this)>n;)s(I,this,fe).call(this,!0)}h(v,this,p(v,this)+e[t]),r&&(r.entrySize=n,r.totalCalculatedSize=p(v,this))})}function*ue({allowStale:e=this.allowStale}={}){if(p(_,this))for(let t=p(T,this);!(!s(I,this,de).call(this,t)||((e||!p(B,this).call(this,t))&&(yield t),t===p(w,this)));)t=p(C,this)[t]}function*X({allowStale:e=this.allowStale}={}){if(p(_,this))for(let t=p(w,this);!(!s(I,this,de).call(this,t)||((e||!p(B,this).call(this,t))&&(yield t),t===p(T,this)));)t=p(S,this)[t]}function de(e){return e!==void 0&&p(y,this).get(p(b,this)[e])===e}function fe(e){var t;let n=p(w,this),r=p(b,this)[n],i=p(x,this)[n];return p(N,this)&&s(I,this,Z).call(this,i)?i.__abortController.abort(Error(`evicted`)):(p(M,this)||p(P,this))&&(p(M,this)&&p(a,this)?.call(this,i,r,`evict`),p(P,this)&&p(D,this)?.push([i,r,`evict`])),p(V,this).call(this,n),p(j,this)?.[n]&&(clearTimeout(p(j,this)[n]),p(j,this)[n]=void 0),e&&(p(b,this)[n]=void 0,p(x,this)[n]=void 0,p(E,this).push(n)),p(_,this)===1?(h(w,this,h(T,this,0)),p(E,this).length=0):h(w,this,p(S,this)[n]),p(y,this).delete(r),h(_,this,(t=p(_,this),t--,t)),n}function pe(e,t,n,r){let i=t===void 0?void 0:p(x,this)[t];if(s(I,this,Z).call(this,i))return i;let a=new ne,{signal:o}=n;o?.addEventListener(`abort`,()=>a.abort(o.reason),{signal:a.signal});let c={signal:a.signal,options:n,context:r},l=(r,i=!1)=>{let{aborted:o}=a.signal,l=n.ignoreFetchAbort&&r!==void 0,u=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&r!==void 0);if(n.status&&(o&&!i?(n.status.fetchAborted=!0,n.status.fetchError=a.signal.reason,l&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),o&&!l&&!i)return f(a.signal.reason,u);let d=h,m=p(x,this)[t];return(m===h||l&&i&&m===void 0)&&(r===void 0?d.__staleWhileFetching===void 0?s(I,this,Q).call(this,e,`fetch`):p(x,this)[t]=d.__staleWhileFetching:(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,c.options))),r},u=e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),f(e,!1)),f=(r,i)=>{let{aborted:o}=a.signal,c=o&&n.allowStaleOnFetchAbort,l=c||n.allowStaleOnFetchRejection,u=l||n.noDeleteOnFetchRejection,d=h;if(p(x,this)[t]===h&&(!u||!i&&d.__staleWhileFetching===void 0?s(I,this,Q).call(this,e,`fetch`):c||(p(x,this)[t]=d.__staleWhileFetching)),l)return n.status&&d.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw r},m=(t,r)=>{let o=p(d,this)?.call(this,e,i,c);o&&o instanceof Promise&&o.then(e=>t(e===void 0?void 0:e),r),a.signal.addEventListener(`abort`,()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(t(void 0),n.allowStaleOnFetchAbort&&(t=e=>l(e,!0)))})};n.status&&(n.status.fetchDispatched=!0);let h=new Promise(m).then(l,u),g=Object.assign(h,{__abortController:a,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.set(e,g,{...c.options,status:void 0}),t=p(y,this).get(e)):p(x,this)[t]=g,g}function Z(e){if(!p(N,this))return!1;let t=e;return!!t&&t instanceof Promise&&t.hasOwnProperty(`__staleWhileFetching`)&&t.__abortController instanceof ne}function me(e,t){p(C,this)[t]=e,p(S,this)[e]=t}function he(e){e!==p(T,this)&&(e===p(w,this)?h(w,this,p(S,this)[e]):s(I,this,me).call(this,p(C,this)[e],p(S,this)[e]),s(I,this,me).call(this,p(T,this),e),h(T,this,e))}function Q(e,t){let n=!1;if(p(_,this)!==0){let i=p(y,this).get(e);if(i!==void 0)if(p(j,this)?.[i]&&(clearTimeout(p(j,this)?.[i]),p(j,this)[i]=void 0),n=!0,p(_,this)===1)s(I,this,ge).call(this,t);else{var r;p(V,this).call(this,i);let n=p(x,this)[i];if(s(I,this,Z).call(this,n)?n.__abortController.abort(Error(`deleted`)):(p(M,this)||p(P,this))&&(p(M,this)&&p(a,this)?.call(this,n,e,t),p(P,this)&&p(D,this)?.push([n,e,t])),p(y,this).delete(e),p(b,this)[i]=void 0,p(x,this)[i]=void 0,i===p(T,this))h(T,this,p(C,this)[i]);else if(i===p(w,this))h(w,this,p(S,this)[i]);else{let e=p(C,this)[i];p(S,this)[e]=p(S,this)[i];let t=p(S,this)[i];p(C,this)[t]=p(C,this)[i]}h(_,this,(r=p(_,this),r--,r)),p(E,this).push(i)}}if(p(P,this)&&p(D,this)?.length){let e=p(D,this),t;for(;t=e?.shift();)p(l,this)?.call(this,...t)}return n}function ge(e){for(let t of s(I,this,X).call(this,{allowStale:!0})){let n=p(x,this)[t];if(s(I,this,Z).call(this,n))n.__abortController.abort(Error(`deleted`));else{let r=p(b,this)[t];p(M,this)&&p(a,this)?.call(this,n,r,e),p(P,this)&&p(D,this)?.push([n,r,e])}}if(p(y,this).clear(),p(x,this).fill(void 0),p(b,this).fill(void 0),p(A,this)&&p(k,this)){p(A,this).fill(0),p(k,this).fill(0);for(let e of p(j,this)??[])e!==void 0&&clearTimeout(e);p(j,this)?.fill(void 0)}if(p(O,this)&&p(O,this).fill(0),h(w,this,0),h(T,this,0),p(E,this).length=0,h(v,this,0),h(_,this,0),p(P,this)&&p(D,this)){let e=p(D,this),t;for(;t=e?.shift();)p(l,this)?.call(this,...t)}}e.LRUCache=se}),w=n(e=>{let n,r;var i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};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},s=t(`node:events`),c=i(t(`node:stream`)),l=t(`node:string_decoder`);e.isStream=t=>!!t&&typeof t==`object`&&(t instanceof ne||t instanceof c.default||(0,e.isReadable)(t)||(0,e.isWritable)(t)),e.isReadable=e=>!!e&&typeof e==`object`&&e instanceof s.EventEmitter&&typeof e.pipe==`function`&&e.pipe!==c.default.Writable.prototype.pipe,e.isWritable=e=>!!e&&typeof e==`object`&&e instanceof s.EventEmitter&&typeof e.write==`function`&&typeof e.end==`function`;var u=Symbol(`EOF`),d=Symbol(`maybeEmitEnd`),f=Symbol(`emittedEnd`),p=Symbol(`emittingEnd`),m=Symbol(`emittedError`),h=Symbol(`closed`),g=Symbol(`read`),_=Symbol(`flush`),v=Symbol(`flushChunk`),y=Symbol(`encoding`),b=Symbol(`decoder`),x=Symbol(`flowing`),S=Symbol(`paused`),C=Symbol(`resume`),w=Symbol(`buffer`),T=Symbol(`pipes`),E=Symbol(`bufferLength`),D=Symbol(`bufferPush`),O=Symbol(`bufferShift`),k=Symbol(`objectMode`),A=Symbol(`destroyed`),j=Symbol(`error`),M=Symbol(`emitData`),N=Symbol(`emitEnd`),P=Symbol(`emitEnd2`),F=Symbol(`async`),I=Symbol(`abort`),L=Symbol(`aborted`),R=Symbol(`signal`),z=Symbol(`dataListeners`),B=Symbol(`discarded`),V=e=>Promise.resolve().then(e),H=e=>e(),U=e=>e===`end`||e===`finish`||e===`prefinish`,W=e=>e instanceof ArrayBuffer||!!e&&typeof e==`object`&&e.constructor&&e.constructor.name===`ArrayBuffer`&&e.byteLength>=0,G=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),ee=class{constructor(e,t,n){o(this,`src`,void 0),o(this,`dest`,void 0),o(this,`opts`,void 0),o(this,`ondrain`,void 0),this.src=e,this.dest=t,this.opts=n,this.ondrain=()=>e[C](),this.dest.on(`drain`,this.ondrain)}unpipe(){this.dest.removeListener(`drain`,this.ondrain)}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},K=class extends ee{unpipe(){this.src.removeListener(`error`,this.proxyErrors),super.unpipe()}constructor(e,t,n){super(e,t,n),this.proxyErrors=e=>this.dest.emit(`error`,e),e.on(`error`,this.proxyErrors)}},q=e=>!!e.objectMode,te=e=>!e.objectMode&&!!e.encoding&&e.encoding!==`buffer`,ne=(n=Symbol.asyncIterator,r=Symbol.iterator,class extends s.EventEmitter{constructor(...e){var t=(...e)=>(super(...e),o(this,x,!1),o(this,S,!1),o(this,T,[]),o(this,w,[]),o(this,k,void 0),o(this,y,void 0),o(this,F,void 0),o(this,b,void 0),o(this,u,!1),o(this,f,!1),o(this,p,!1),o(this,h,!1),o(this,m,null),o(this,E,0),o(this,A,!1),o(this,R,void 0),o(this,L,!1),o(this,z,0),o(this,B,!1),o(this,`writable`,!0),o(this,`readable`,!0),this);let n=e[0]||{};if(t(),n.objectMode&&typeof n.encoding==`string`)throw TypeError(`Encoding and objectMode may not be used together`);q(n)?(this[k]=!0,this[y]=null):te(n)?(this[y]=n.encoding,this[k]=!1):(this[k]=!1,this[y]=null),this[F]=!!n.async,this[b]=this[y]?new l.StringDecoder(this[y]):null,n&&n.debugExposeBuffer===!0&&Object.defineProperty(this,`buffer`,{get:()=>this[w]}),n&&n.debugExposePipes===!0&&Object.defineProperty(this,`pipes`,{get:()=>this[T]});let{signal:r}=n;r&&(this[R]=r,r.aborted?this[I]():r.addEventListener(`abort`,()=>this[I]()))}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(e){throw Error(`Encoding must be set at instantiation time`)}setEncoding(e){throw Error(`Encoding must be set at instantiation time`)}get objectMode(){return this[k]}set objectMode(e){throw Error(`objectMode must be set at instantiation time`)}get async(){return this[F]}set async(e){this[F]=this[F]||!!e}[I](){this[L]=!0,this.emit(`abort`,this[R]?.reason),this.destroy(this[R]?.reason)}get aborted(){return this[L]}set aborted(e){}write(e,t,n){if(this[L])return!1;if(this[u])throw Error(`write after end`);if(this[A])return this.emit(`error`,Object.assign(Error(`Cannot call write after a stream was destroyed`),{code:`ERR_STREAM_DESTROYED`})),!0;typeof t==`function`&&(n=t,t=`utf8`),t||(t=`utf8`);let r=this[F]?V:H;if(!this[k]&&!Buffer.isBuffer(e)){if(G(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(W(e))e=Buffer.from(e);else if(typeof e!=`string`)throw Error(`Non-contiguous data written to non-objectMode stream`)}return this[k]?(this[x]&&this[E]!==0&&this[_](!0),this[x]?this.emit(`data`,e):this[D](e),this[E]!==0&&this.emit(`readable`),n&&r(n),this[x]):e.length?(typeof e==`string`&&!(t===this[y]&&!this[b]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[y]&&(e=this[b].write(e)),this[x]&&this[E]!==0&&this[_](!0),this[x]?this.emit(`data`,e):this[D](e),this[E]!==0&&this.emit(`readable`),n&&r(n),this[x]):(this[E]!==0&&this.emit(`readable`),n&&r(n),this[x])}read(e){if(this[A])return null;if(this[B]=!1,this[E]===0||e===0||e&&e>this[E])return this[d](),null;this[k]&&(e=null),this[w].length>1&&!this[k]&&(this[w]=[this[y]?this[w].join(``):Buffer.concat(this[w],this[E])]);let t=this[g](e||null,this[w][0]);return this[d](),t}[g](e,t){if(this[k])this[O]();else{let n=t;e===n.length||e===null?this[O]():typeof n==`string`?(this[w][0]=n.slice(e),t=n.slice(0,e),this[E]-=e):(this[w][0]=n.subarray(e),t=n.subarray(0,e),this[E]-=e)}return this.emit(`data`,t),!this[w].length&&!this[u]&&this.emit(`drain`),t}end(e,t,n){return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=`utf8`),e!==void 0&&this.write(e,t),n&&this.once(`end`,n),this[u]=!0,this.writable=!1,(this[x]||!this[S])&&this[d](),this}[C](){this[A]||(!this[z]&&!this[T].length&&(this[B]=!0),this[S]=!1,this[x]=!0,this.emit(`resume`),this[w].length?this[_]():this[u]?this[d]():this.emit(`drain`))}resume(){return this[C]()}pause(){this[x]=!1,this[S]=!0,this[B]=!1}get destroyed(){return this[A]}get flowing(){return this[x]}get paused(){return this[S]}[D](e){this[k]?this[E]+=1:this[E]+=e.length,this[w].push(e)}[O](){return this[k]?--this[E]:this[E]-=this[w][0].length,this[w].shift()}[_](e=!1){do;while(this[v](this[O]())&&this[w].length);!e&&!this[w].length&&!this[u]&&this.emit(`drain`)}[v](e){return this.emit(`data`,e),this[x]}pipe(e,t){if(this[A])return e;this[B]=!1;let n=this[f];return t=t||{},e===a.stdout||e===a.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,n?t.end&&e.end():(this[T].push(t.proxyErrors?new K(this,e,t):new ee(this,e,t)),this[F]?V(()=>this[C]()):this[C]()),e}unpipe(e){let t=this[T].find(t=>t.dest===e);t&&(this[T].length===1?(this[x]&&this[z]===0&&(this[x]=!1),this[T]=[]):this[T].splice(this[T].indexOf(t),1),t.unpipe())}addListener(e,t){return this.on(e,t)}on(e,t){let n=super.on(e,t);if(e===`data`)this[B]=!1,this[z]++,!this[T].length&&!this[x]&&this[C]();else if(e===`readable`&&this[E]!==0)super.emit(`readable`);else if(U(e)&&this[f])super.emit(e),this.removeAllListeners(e);else if(e===`error`&&this[m]){let e=t;this[F]?V(()=>e.call(this,this[m])):e.call(this,this[m])}return n}removeListener(e,t){return this.off(e,t)}off(e,t){let n=super.off(e,t);return e===`data`&&(this[z]=this.listeners(`data`).length,this[z]===0&&!this[B]&&!this[T].length&&(this[x]=!1)),n}removeAllListeners(e){let t=super.removeAllListeners(e);return(e===`data`||e===void 0)&&(this[z]=0,!this[B]&&!this[T].length&&(this[x]=!1)),t}get emittedEnd(){return this[f]}[d](){!this[p]&&!this[f]&&!this[A]&&this[w].length===0&&this[u]&&(this[p]=!0,this.emit(`end`),this.emit(`prefinish`),this.emit(`finish`),this[h]&&this.emit(`close`),this[p]=!1)}emit(e,...t){let n=t[0];if(e!==`error`&&e!==`close`&&e!==A&&this[A])return!1;if(e===`data`)return!this[k]&&!n?!1:this[F]?(V(()=>this[M](n)),!0):this[M](n);if(e===`end`)return this[N]();if(e===`close`){if(this[h]=!0,!this[f]&&!this[A])return!1;let e=super.emit(`close`);return this.removeAllListeners(`close`),e}else if(e===`error`){this[m]=n,super.emit(j,n);let e=!this[R]||this.listeners(`error`).length?super.emit(`error`,n):!1;return this[d](),e}else if(e===`resume`){let e=super.emit(`resume`);return this[d](),e}else if(e===`finish`||e===`prefinish`){let t=super.emit(e);return this.removeAllListeners(e),t}let r=super.emit(e,...t);return this[d](),r}[M](e){for(let t of this[T])t.dest.write(e)===!1&&this.pause();let t=this[B]?!1:super.emit(`data`,e);return this[d](),t}[N](){return this[f]?!1:(this[f]=!0,this.readable=!1,this[F]?(V(()=>this[P]()),!0):this[P]())}[P](){if(this[b]){let e=this[b].end();if(e){for(let t of this[T])t.dest.write(e);this[B]||super.emit(`data`,e)}}for(let e of this[T])e.end();let e=super.emit(`end`);return this.removeAllListeners(`end`),e}async collect(){let e=Object.assign([],{dataLength:0});this[k]||(e.dataLength=0);let t=this.promise();return this.on(`data`,t=>{e.push(t),this[k]||(e.dataLength+=t.length)}),await t,e}async concat(){if(this[k])throw Error(`cannot concat in objectMode`);let e=await this.collect();return this[y]?e.join(``):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(A,()=>t(Error(`stream destroyed`))),this.on(`error`,e=>t(e)),this.on(`end`,()=>e())})}[n](){this[B]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return{next:()=>{if(e)return t();let n=this.read();if(n!==null)return Promise.resolve({done:!1,value:n});if(this[u])return t();let r,i,a=e=>{this.off(`data`,o),this.off(`end`,s),this.off(A,c),t(),i(e)},o=e=>{this.off(`error`,a),this.off(`end`,s),this.off(A,c),this.pause(),r({value:e,done:!!this[u]})},s=()=>{this.off(`error`,a),this.off(`data`,o),this.off(A,c),t(),r({done:!0,value:void 0})},c=()=>a(Error(`stream destroyed`));return new Promise((e,t)=>{i=t,r=e,this.once(A,c),this.once(`error`,a),this.once(`end`,s),this.once(`data`,o)})},throw:t,return:t,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[r](){this[B]=!1;let e=!1,t=()=>(this.pause(),this.off(j,t),this.off(A,t),this.off(`end`,t),e=!0,{done:!0,value:void 0});return this.once(`end`,t),this.once(j,t),this.once(A,t),{next:()=>{if(e)return t();let n=this.read();return n===null?t():{done:!1,value:n}},throw:t,return:t,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(e){if(this[A])return e?this.emit(`error`,e):this.emit(A),this;this[A]=!0,this[B]=!0,this[w].length=0,this[E]=0;let t=this;return typeof t.close==`function`&&!this[h]&&t.close(),e?this.emit(`error`,e):this.emit(A),this}static get isStream(){return e.isStream}});e.Minipass=ne}),T=n(e=>{var n,r,i,a,c,l,d,f,g,_,v,y,b,x,S,T,E,D,O,k,A,j,M,N,P,F,I,L,R,z,B,V,H,U,W,G,ee;let K,q;var te=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),ne=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),re=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!==`default`&&Object.prototype.hasOwnProperty.call(e,n)&&te(t,e,n);return ne(t,e),t};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 ie=C(),ae=t(`node:path`),J=t(`node:url`),Y=t(`fs`),oe=re(t(`node:fs`)),se=Y.realpathSync.native,ce=t(`node:fs/promises`),le=w(),ue={lstatSync:Y.lstatSync,readdir:Y.readdir,readdirSync:Y.readdirSync,readlinkSync:Y.readlinkSync,realpathSync:se,promises:{lstat:ce.lstat,readdir:ce.readdir,readlink:ce.readlink,realpath:ce.realpath}},X=e=>!e||e===ue||e===oe?ue:{...ue,...e,promises:{...ue.promises,...e.promises||{}}},de=/^\\\\\?\\([a-z]:)\\?$/i,fe=e=>e.replace(/\//g,`\\`).replace(de,`$1\\`),pe=/[\\\/]/,Z=0,me=1,he=2,Q=4,ge=6,_e=8,ve=10,ye=12,be=15,xe=~be,Se=16,$=32,Ce=64,we=128,Te=256,Ee=512,De=Ce|we|Ee,Oe=1023,ke=e=>e.isFile()?_e:e.isDirectory()?Q:e.isSymbolicLink()?ve:e.isCharacterDevice()?he:e.isBlockDevice()?ge:e.isSocket()?ye:e.isFIFO()?me:Z,Ae=new ie.LRUCache({max:2**12}),je=e=>{let t=Ae.get(e);if(t)return t;let n=e.normalize(`NFKD`);return Ae.set(e,n),n},Me=new ie.LRUCache({max:2**12}),Ne=e=>{let t=Me.get(e);if(t)return t;let n=je(e.toLowerCase());return Me.set(e,n),n},Pe=class extends ie.LRUCache{constructor(){super({max:256})}};e.ResolveCache=Pe;var Fe=class extends ie.LRUCache{constructor(e=16*1024){super({maxSize:e,sizeCalculation:e=>e.length+1})}};e.ChildrenCache=Fe;var Ie=Symbol(`PathScurry setAsCwd`),Le=(n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakMap,d=new WeakMap,f=new WeakMap,g=new WeakMap,_=new WeakMap,v=new WeakMap,y=new WeakMap,b=new WeakMap,x=new WeakMap,S=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakMap,k=new WeakMap,A=new WeakMap,j=new WeakMap,M=new WeakMap,N=new WeakMap,P=new WeakMap,F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakSet,B=new WeakMap,V=new WeakMap,H=new WeakMap,class{get dev(){return p(r,this)}get mode(){return p(i,this)}get nlink(){return p(a,this)}get uid(){return p(c,this)}get gid(){return p(l,this)}get rdev(){return p(d,this)}get blksize(){return p(f,this)}get ino(){return p(g,this)}get size(){return p(_,this)}get blocks(){return p(v,this)}get atimeMs(){return p(y,this)}get mtimeMs(){return p(b,this)}get ctimeMs(){return p(x,this)}get birthtimeMs(){return p(S,this)}get atime(){return p(T,this)}get mtime(){return p(E,this)}get ctime(){return p(D,this)}get birthtime(){return p(O,this)}get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=Z,s,C,w,U,W){u(this,z),o(this,`name`,void 0),o(this,`root`,void 0),o(this,`roots`,void 0),o(this,`parent`,void 0),o(this,`nocase`,void 0),o(this,`isCWD`,!1),m(this,n,void 0),m(this,r,void 0),m(this,i,void 0),m(this,a,void 0),m(this,c,void 0),m(this,l,void 0),m(this,d,void 0),m(this,f,void 0),m(this,g,void 0),m(this,_,void 0),m(this,v,void 0),m(this,y,void 0),m(this,b,void 0),m(this,x,void 0),m(this,S,void 0),m(this,T,void 0),m(this,E,void 0),m(this,D,void 0),m(this,O,void 0),m(this,k,void 0),m(this,A,void 0),m(this,j,void 0),m(this,M,void 0),m(this,N,void 0),m(this,P,void 0),m(this,F,void 0),m(this,I,void 0),m(this,L,void 0),m(this,R,void 0),m(this,B,[]),m(this,V,!1),m(this,H,void 0),this.name=e,h(k,this,w?Ne(e):je(e)),h(F,this,t&Oe),this.nocase=w,this.roots=C,this.root=s||this,h(I,this,U),h(j,this,W.fullpath),h(N,this,W.relative),h(P,this,W.relativePosix),this.parent=W.parent,this.parent?h(n,this,p(n,this.parent)):h(n,this,X(W.fs))}depth(){return p(A,this)===void 0?this.parent?h(A,this,this.parent.depth()+1):h(A,this,0):p(A,this)}childrenCache(){return p(I,this)}resolve(e){var t;if(!e)return this;let n=this.getRootString(e),r=e.substring(n.length).split(this.splitSep);return n?s(z,t=this.getRoot(n),Re).call(t,r):s(z,this,Re).call(this,r)}children(){let e=p(I,this).get(this);if(e)return e;let t=Object.assign([],{provisional:0});return p(I,this).set(this,t),h(F,this,p(F,this)&~Se),t}child(e,t){if(e===``||e===`.`)return this;if(e===`..`)return this.parent||this;let n=this.children(),r=this.nocase?Ne(e):je(e);for(let e of n)if(p(k,e)===r)return e;let i=this.parent?this.sep:``,a=p(j,this)?p(j,this)+i+e:void 0,o=this.newChild(e,Z,{...t,parent:this,fullpath:a});return this.canReaddir()||h(F,o,p(F,o)|we),n.push(o),o}relative(){if(this.isCWD)return``;if(p(N,this)!==void 0)return p(N,this);let e=this.name,t=this.parent;if(!t)return h(N,this,this.name);let n=t.relative();return n+(!n||!t.parent?``:this.sep)+e}relativePosix(){if(this.sep===`/`)return this.relative();if(this.isCWD)return``;if(p(P,this)!==void 0)return p(P,this);let e=this.name,t=this.parent;if(!t)return h(P,this,this.fullpathPosix());let n=t.relativePosix();return n+(!n||!t.parent?``:`/`)+e}fullpath(){if(p(j,this)!==void 0)return p(j,this);let e=this.name,t=this.parent;if(!t)return h(j,this,this.name);let n=t.fullpath()+(t.parent?this.sep:``)+e;return h(j,this,n)}fullpathPosix(){if(p(M,this)!==void 0)return p(M,this);if(this.sep===`/`)return h(M,this,this.fullpath());if(!this.parent){let e=this.fullpath().replace(/\\/g,`/`);return/^[a-z]:\//i.test(e)?h(M,this,`//?/${e}`):h(M,this,e)}let e=this.parent,t=e.fullpathPosix(),n=t+(!t||!e.parent?``:`/`)+this.name;return h(M,this,n)}isUnknown(){return(p(F,this)&be)===Z}isType(e){return this[`is${e}`]()}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(p(F,this)&be)===_e}isDirectory(){return(p(F,this)&be)===Q}isCharacterDevice(){return(p(F,this)&be)===he}isBlockDevice(){return(p(F,this)&be)===ge}isFIFO(){return(p(F,this)&be)===me}isSocket(){return(p(F,this)&be)===ye}isSymbolicLink(){return(p(F,this)&ve)===ve}lstatCached(){return p(F,this)&$?this:void 0}readlinkCached(){return p(L,this)}realpathCached(){return p(R,this)}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(p(L,this))return!0;if(!this.parent)return!1;let e=p(F,this)&be;return!(e!==Z&&e!==ve||p(F,this)&Te||p(F,this)&we)}calledReaddir(){return!!(p(F,this)&Se)}isENOENT(){return!!(p(F,this)&we)}isNamed(e){return this.nocase?p(k,this)===Ne(e):p(k,this)===je(e)}async readlink(){let e=p(L,this);if(e)return e;if(this.canReadlink()&&this.parent)try{let e=await p(n,this).promises.readlink(this.fullpath()),t=(await this.parent.realpath())?.resolve(e);if(t)return h(L,this,t)}catch(e){s(z,this,Ke).call(this,e.code);return}}readlinkSync(){let e=p(L,this);if(e)return e;if(this.canReadlink()&&this.parent)try{let e=p(n,this).readlinkSync(this.fullpath()),t=this.parent.realpathSync()?.resolve(e);if(t)return h(L,this,t)}catch(e){s(z,this,Ke).call(this,e.code);return}}async lstat(){if((p(F,this)&we)===0)try{return s(z,this,Ze).call(this,await p(n,this).promises.lstat(this.fullpath())),this}catch(e){s(z,this,Ge).call(this,e.code)}}lstatSync(){if((p(F,this)&we)===0)try{return s(z,this,Ze).call(this,p(n,this).lstatSync(this.fullpath())),this}catch(e){s(z,this,Ge).call(this,e.code)}}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let n=r.slice(0,r.provisional);t?e(null,n):queueMicrotask(()=>e(null,n));return}if(p(B,this).push(e),p(V,this))return;h(V,this,!0);let i=this.fullpath();p(n,this).readdir(i,{withFileTypes:!0},(e,t)=>{if(e)s(z,this,We).call(this,e.code),r.provisional=0;else{for(let e of t)s(z,this,qe).call(this,e,r);s(z,this,ze).call(this,r)}s(z,this,Qe).call(this,r.slice(0,r.provisional))})}async readdir(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(p(H,this))await p(H,this);else{let r=()=>{};h(H,this,new Promise(e=>r=e));try{for(let r of await p(n,this).promises.readdir(t,{withFileTypes:!0}))s(z,this,qe).call(this,r,e);s(z,this,ze).call(this,e)}catch(t){s(z,this,We).call(this,t.code),e.provisional=0}h(H,this,void 0),r()}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return[];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let r of p(n,this).readdirSync(t,{withFileTypes:!0}))s(z,this,qe).call(this,r,e);s(z,this,ze).call(this,e)}catch(t){s(z,this,We).call(this,t.code),e.provisional=0}return e.slice(0,e.provisional)}canReaddir(){if(p(F,this)&De)return!1;let e=be&p(F,this);return e===Z||e===Q||e===ve}shouldWalk(e,t){return(p(F,this)&Q)===Q&&!(p(F,this)&De)&&!e.has(this)&&(!t||t(this))}async realpath(){if(p(R,this))return p(R,this);if(!((Ee|Te|we)&p(F,this)))try{let e=await p(n,this).promises.realpath(this.fullpath());return h(R,this,this.resolve(e))}catch{s(z,this,He).call(this)}}realpathSync(){if(p(R,this))return p(R,this);if(!((Ee|Te|we)&p(F,this)))try{let e=p(n,this).realpathSync(this.fullpath());return h(R,this,this.resolve(e))}catch{s(z,this,He).call(this)}}[Ie](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),n=[],r=this;for(;r&&r.parent;)t.add(r),h(N,r,n.join(this.sep)),h(P,r,n.join(`/`)),r=r.parent,n.push(`..`);for(r=e;r&&r.parent&&!t.has(r);)h(N,r,void 0),h(P,r,void 0),r=r.parent}});function Re(e){let t=this;for(let n of e)t=t.child(n);return t}function ze(e){h(F,this,p(F,this)|Se);for(let t=e.provisional;t<e.length;t++){let n=e[t];n&&s(z,n,Be).call(n)}}function Be(){p(F,this)&we||(h(F,this,(p(F,this)|we)&xe),s(z,this,Ve).call(this))}function Ve(){let e=this.children();e.provisional=0;for(let t of e)s(z,t,Be).call(t)}function He(){h(F,this,p(F,this)|Ee),s(z,this,Ue).call(this)}function Ue(){if(p(F,this)&Ce)return;let e=p(F,this);(e&be)===Q&&(e&=xe),h(F,this,e|Ce),s(z,this,Ve).call(this)}function We(e=``){e===`ENOTDIR`||e===`EPERM`?s(z,this,Ue).call(this):e===`ENOENT`?s(z,this,Be).call(this):this.children().provisional=0}function Ge(e=``){var t;e===`ENOTDIR`?s(z,t=this.parent,Ue).call(t):e===`ENOENT`&&s(z,this,Be).call(this)}function Ke(e=``){var t;let n=p(F,this);n|=Te,e===`ENOENT`&&(n|=we),(e===`EINVAL`||e===`UNKNOWN`)&&(n&=xe),h(F,this,n),e===`ENOTDIR`&&this.parent&&s(z,t=this.parent,Ue).call(t)}function qe(e,t){return s(z,this,Ye).call(this,e,t)||s(z,this,Je).call(this,e,t)}function Je(e,t){let n=ke(e),r=this.newChild(e.name,n,{parent:this}),i=p(F,r)&be;return i!==Q&&i!==ve&&i!==Z&&h(F,r,p(F,r)|Ce),t.unshift(r),t.provisional++,r}function Ye(e,t){for(let n=t.provisional;n<t.length;n++){let r=t[n];if((this.nocase?Ne(e.name):je(e.name))===p(k,r))return s(z,this,Xe).call(this,e,r,n,t)}}function Xe(e,t,n,r){let i=t.name;return h(F,t,p(F,t)&xe|ke(e)),i!==e.name&&(t.name=e.name),n!==r.provisional&&(n===r.length-1?r.pop():r.splice(n,1),r.unshift(t)),r.provisional++,t}function Ze(e){let{atime:t,atimeMs:n,birthtime:o,birthtimeMs:s,blksize:u,blocks:m,ctime:C,ctimeMs:w,dev:k,gid:A,ino:j,mode:M,mtime:N,mtimeMs:P,nlink:I,rdev:L,size:R,uid:z}=e;h(T,this,t),h(y,this,n),h(O,this,o),h(S,this,s),h(f,this,u),h(v,this,m),h(D,this,C),h(x,this,w),h(r,this,k),h(l,this,A),h(g,this,j),h(i,this,M),h(E,this,N),h(b,this,P),h(a,this,I),h(d,this,L),h(_,this,R),h(c,this,z);let B=ke(e);h(F,this,p(F,this)&xe|B|$),B!==Z&&B!==Q&&B!==ve&&h(F,this,p(F,this)|Ce)}function Qe(e){h(V,this,!1);let t=p(B,this).slice();p(B,this).length=0,t.forEach(t=>t(null,e))}e.PathBase=Le;var $e=class e extends Le{constructor(e,t=Z,n,r,i,a,s){super(e,t,n,r,i,a,s),o(this,`sep`,`\\`),o(this,`splitSep`,pe)}newChild(t,n=Z,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return ae.win32.parse(e).root}getRoot(e){if(e=fe(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,n]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=n;return this.roots[e]=new nt(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,`\\`).replace(de,`$1\\`),e===t}};e.PathWin32=$e;var et=class e extends Le{constructor(e,t=Z,n,r,i,a,s){super(e,t,n,r,i,a,s),o(this,`splitSep`,`/`),o(this,`sep`,`/`)}getRootString(e){return e.startsWith(`/`)?`/`:``}getRoot(e){return this.root}newChild(t,n=Z,r={}){return new e(t,n,this.root,this.roots,this.nocase,this.childrenCache(),r)}};e.PathPosix=et;var tt=(U=new WeakMap,W=new WeakMap,G=new WeakMap,ee=new WeakMap,K=Symbol.asyncIterator,q=Symbol.iterator,class{constructor(e=process.cwd(),t,n,{nocase:r,childrenCacheSize:i=16*1024,fs:a=ue}={}){o(this,`root`,void 0),o(this,`rootPath`,void 0),o(this,`roots`,void 0),o(this,`cwd`,void 0),m(this,U,void 0),m(this,W,void 0),m(this,G,void 0),o(this,`nocase`,void 0),m(this,ee,void 0),h(ee,this,X(a)),(e instanceof URL||e.startsWith(`file://`))&&(e=(0,J.fileURLToPath)(e));let s=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(s),h(U,this,new Pe),h(W,this,new Pe),h(G,this,new Fe(i));let c=s.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),r===void 0)throw TypeError(`must provide nocase setting to PathScurryBase ctor`);this.nocase=r,this.root=this.newRoot(p(ee,this)),this.roots[this.rootPath]=this.root;let l=this.root,u=c.length-1,d=t.sep,f=this.rootPath,g=!1;for(let e of c){let t=u--;l=l.child(e,{relative:Array(t).fill(`..`).join(d),relativePosix:Array(t).fill(`..`).join(`/`),fullpath:f+=(g?``:d)+e}),g=!0}this.cwd=l}depth(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return p(G,this)}resolve(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=p(U,this).get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpath();return p(U,this).set(t,r),r}resolvePosix(...e){let t=``;for(let n=e.length-1;n>=0;n--){let r=e[n];if(!(!r||r===`.`)&&(t=t?`${r}/${t}`:r,this.isAbsolute(r)))break}let n=p(W,this).get(t);if(n!==void 0)return n;let r=this.cwd.resolve(t).fullpathPosix();return p(W,this).set(t,r),r}relative(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n}=t;if(e.canReaddir()){let t=await e.readdir();return n?t:t.map(e=>e.name)}else return[]}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0}=t;return e.canReaddir()?n?e.readdirSync():e.readdirSync().map(e=>e.name):[]}async lstat(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e==`string`&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e.withFileTypes,e=this.cwd);let n=await e.readlink();return t?n:n?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e.withFileTypes,e=this.cwd);let n=e.readlinkSync();return t?n:n?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e.withFileTypes,e=this.cwd);let n=await e.realpath();return t?n:n?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e.withFileTypes,e=this.cwd);let n=e.realpathSync();return t?n:n?.fullpath()}async walk(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set,c=(e,t)=>{s.add(e),e.readdirCB((e,l)=>{if(e)return t(e);let u=l.length;if(!u)return t();let d=()=>{--u===0&&t()};for(let e of l)(!i||i(e))&&o.push(n?e:e.fullpath()),r&&e.isSymbolicLink()?e.realpath().then(e=>e?.isUnknown()?e.lstat():e).then(e=>e?.shouldWalk(s,a)?c(e,d):d()):e.shouldWalk(s,a)?c(e,d):d()},!0)},l=e;return new Promise((e,t)=>{c(l,n=>{if(n)return t(n);e(o)})})}walkSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=[];(!i||i(e))&&o.push(n?e:e.fullpath());let s=new Set([e]);for(let e of s){let t=e.readdirSync();for(let e of t){(!i||i(e))&&o.push(n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&s.add(t)}}return o}[K](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[q](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t;(!i||i(e))&&(yield n?e:e.fullpath());let o=new Set([e]);for(let e of o){let t=e.readdirSync();for(let e of t){(!i||i(e))&&(yield n?e:e.fullpath());let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(o,a)&&o.add(t)}}}stream(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new le.Minipass({objectMode:!0});(!i||i(e))&&o.write(n?e:e.fullpath());let s=new Set,c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let d=(t,p,m=!1)=>{if(t)return o.emit(`error`,t);if(r&&!m){let e=[];for(let t of p)t.isSymbolicLink()&&e.push(t.realpath().then(e=>e?.isUnknown()?e.lstat():e));if(e.length){Promise.all(e).then(()=>d(null,p,!0));return}}for(let t of p)t&&(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of p){let t=e.realpathCached()||e;t.shouldWalk(s,a)&&c.push(t)}e&&!o.flowing?o.once(`drain`,u):f||u()},f=!0;t.readdirCB(d,!0),f=!1}};return u(),o}streamSync(e=this.cwd,t={}){typeof e==`string`?e=this.cwd.resolve(e):e instanceof Le||(t=e,e=this.cwd);let{withFileTypes:n=!0,follow:r=!1,filter:i,walkFilter:a}=t,o=new le.Minipass({objectMode:!0}),s=new Set;(!i||i(e))&&o.write(n?e:e.fullpath());let c=[e],l=0,u=()=>{let e=!1;for(;!e;){let t=c.shift();if(!t){l===0&&o.end();return}l++,s.add(t);let u=t.readdirSync();for(let t of u)(!i||i(t))&&(o.write(n?t:t.fullpath())||(e=!0));l--;for(let e of u){let t=e;if(e.isSymbolicLink()){if(!(r&&(t=e.realpathSync())))continue;t.isUnknown()&&t.lstatSync()}t.shouldWalk(s,a)&&c.push(t)}}e&&!o.flowing&&o.once(`drain`,u)};return u(),o}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e==`string`?this.cwd.resolve(e):e,this.cwd[Ie](t)}});e.PathScurryBase=tt;var nt=class extends tt{constructor(e=process.cwd(),t={}){var n=(...e)=>(super(...e),o(this,`sep`,`\\`),this);let{nocase:r=!0}=t;n(e,ae.win32,`\\`,{...t,nocase:r}),this.nocase=r;for(let e=this.cwd;e;e=e.parent)e.nocase=this.nocase}parseRootPath(e){return ae.win32.parse(e).root.toUpperCase()}newRoot(e){return new $e(this.rootPath,Q,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)||e.startsWith(`\\`)||/^[a-z]:(\/|\\)/i.test(e)}};e.PathScurryWin32=nt;var rt=class extends tt{constructor(e=process.cwd(),t={}){var n=(...e)=>(super(...e),o(this,`sep`,`/`),this);let{nocase:r=!1}=t;n(e,ae.posix,`/`,{...t,nocase:r}),this.nocase=r}parseRootPath(e){return`/`}newRoot(e){return new et(this.rootPath,Q,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith(`/`)}};e.PathScurryPosix=rt;var it=class extends rt{constructor(e=process.cwd(),t={}){let{nocase:n=!0}=t;super(e,{...t,nocase:n})}};e.PathScurryDarwin=it,e.Path=process.platform===`win32`?$e:et,e.PathScurry=process.platform===`win32`?nt:process.platform===`darwin`?it:rt}),E=n(e=>{var t,n,r,i,a,s,c,l,u,d;Object.defineProperty(e,`__esModule`,{value:!0}),e.Pattern=void 0;var f=S(),g=e=>e.length>=1,_=e=>e.length>=1,v=Symbol.for(`nodejs.util.inspect.custom`);e.Pattern=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap,l=new WeakMap,u=new WeakMap,d=new WeakMap,class e{constructor(e,f,v,y){if(m(this,t,void 0),m(this,n,void 0),m(this,r,void 0),o(this,`length`,void 0),m(this,i,void 0),m(this,a,void 0),m(this,s,void 0),m(this,c,void 0),m(this,l,void 0),m(this,u,void 0),m(this,d,!0),!g(e))throw TypeError(`empty pattern list`);if(!_(f))throw TypeError(`empty glob list`);if(f.length!==e.length)throw TypeError(`mismatched pattern list and glob list lengths`);if(this.length=e.length,v<0||v>=this.length)throw TypeError(`index out of range`);if(h(t,this,e),h(n,this,f),h(r,this,v),h(i,this,y),p(r,this)===0){if(this.isUNC()){let[e,r,i,a,...o]=p(t,this),[s,c,l,u,...d]=p(n,this);o[0]===``&&(o.shift(),d.shift());let f=[e,r,i,a,``].join(`/`),m=[s,c,l,u,``].join(`/`);h(t,this,[f,...o]),h(n,this,[m,...d]),this.length=p(t,this).length}else if(this.isDrive()||this.isAbsolute()){let[e,...r]=p(t,this),[i,...a]=p(n,this);r[0]===``&&(r.shift(),a.shift());let o=e+`/`,s=i+`/`;h(t,this,[o,...r]),h(n,this,[s,...a]),this.length=p(t,this).length}}}[v](){return`Pattern <`+p(n,this).slice(p(r,this)).join(`/`)+`>`}pattern(){return p(t,this)[p(r,this)]}isString(){return typeof p(t,this)[p(r,this)]==`string`}isGlobstar(){return p(t,this)[p(r,this)]===f.GLOBSTAR}isRegExp(){return p(t,this)[p(r,this)]instanceof RegExp}globString(){return h(s,this,p(s,this)||(p(r,this)===0?this.isAbsolute()?p(n,this)[0]+p(n,this).slice(1).join(`/`):p(n,this).join(`/`):p(n,this).slice(p(r,this)).join(`/`)))}hasMore(){return this.length>p(r,this)+1}rest(){return p(a,this)===void 0?this.hasMore()?(h(a,this,new e(p(t,this),p(n,this),p(r,this)+1,p(i,this))),h(u,p(a,this),p(u,this)),h(l,p(a,this),p(l,this)),h(c,p(a,this),p(c,this)),p(a,this)):h(a,this,null):p(a,this)}isUNC(){let e=p(t,this);return p(l,this)===void 0?h(l,this,p(i,this)===`win32`&&p(r,this)===0&&e[0]===``&&e[1]===``&&typeof e[2]==`string`&&!!e[2]&&typeof e[3]==`string`&&!!e[3]):p(l,this)}isDrive(){let e=p(t,this);return p(c,this)===void 0?h(c,this,p(i,this)===`win32`&&p(r,this)===0&&this.length>1&&typeof e[0]==`string`&&/^[a-z]:$/i.test(e[0])):p(c,this)}isAbsolute(){let e=p(t,this);return p(u,this)===void 0?h(u,this,e[0]===``&&e.length>1||this.isDrive()||this.isUNC()):p(u,this)}root(){let e=p(t,this)[0];return typeof e==`string`&&this.isAbsolute()&&p(r,this)===0?e:``}checkFollowGlobstar(){return!(p(r,this)===0||!this.isGlobstar()||!p(d,this))}markFollowGlobstar(){return p(r,this)===0||!this.isGlobstar()||!p(d,this)?!1:(h(d,this,!1),!0)}})}),D=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Ignore=void 0;var t=S(),n=E(),r=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Ignore=class{constructor(e,{nobrace:t,nocase:n,noext:i,noglobstar:a,platform:s=r}){o(this,`relative`,void 0),o(this,`relativeChildren`,void 0),o(this,`absolute`,void 0),o(this,`absoluteChildren`,void 0),o(this,`platform`,void 0),o(this,`mmopts`,void 0),this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=s,this.mmopts={dot:!0,nobrace:t,nocase:n,noext:i,noglobstar:a,optimizationLevel:2,platform:s,nocomment:!0,nonegate:!0};for(let t of e)this.add(t)}add(e){let r=new t.Minimatch(e,this.mmopts);for(let e=0;e<r.set.length;e++){let i=r.set[e],a=r.globParts[e];if(!i||!a)throw Error(`invalid pattern object`);for(;i[0]===`.`&&a[0]===`.`;)i.shift(),a.shift();let o=new n.Pattern(i,a,0,this.platform),s=new t.Minimatch(o.globString(),this.mmopts),c=a[a.length-1]===`**`,l=o.isAbsolute();l?this.absolute.push(s):this.relative.push(s),c&&(l?this.absoluteChildren.push(s):this.relativeChildren.push(s))}}ignored(e){let t=e.fullpath(),n=`${t}/`,r=e.relative()||`.`,i=`${r}/`;for(let e of this.relative)if(e.match(r)||e.match(i))return!0;for(let e of this.absolute)if(e.match(t)||e.match(n))return!0;return!1}childrenIgnored(e){let t=e.fullpath()+`/`,n=(e.relative()||`.`)+`/`;for(let e of this.relativeChildren)if(e.match(n))return!0;for(let e of this.absoluteChildren)if(e.match(t))return!0;return!1}}}),O=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Processor=e.SubWalks=e.MatchRecord=e.HasWalkedCache=void 0;var t=S(),n=class e{constructor(e=new Map){o(this,`store`,void 0),this.store=e}copy(){return new e(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let n=e.fullpath(),r=this.store.get(n);r?r.add(t.globString()):this.store.set(n,new Set([t.globString()]))}};e.HasWalkedCache=n;var r=class{constructor(){o(this,`store`,new Map)}add(e,t,n){let r=(t?2:0)|!!n,i=this.store.get(e);this.store.set(e,i===void 0?r:r&i)}entries(){return[...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}};e.MatchRecord=r;var i=class{constructor(){o(this,`store`,new Map)}add(e,t){if(!e.canReaddir())return;let n=this.store.get(e);n?n.find(e=>e.globString()===t.globString())||n.push(t):this.store.set(e,[t])}get(e){let t=this.store.get(e);if(!t)throw Error(`attempting to walk unknown path`);return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return[...this.store.keys()].filter(e=>e.canReaddir())}};e.SubWalks=i,e.Processor=class e{constructor(e,t){o(this,`hasWalkedCache`,void 0),o(this,`matches`,new r),o(this,`subwalks`,new i),o(this,`patterns`,void 0),o(this,`follow`,void 0),o(this,`dot`,void 0),o(this,`opts`,void 0),this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new n}processPatterns(e,n){this.patterns=n;let r=n.map(t=>[e,t]);for(let[e,n]of r){this.hasWalkedCache.storeWalked(e,n);let r=n.root(),i=n.isAbsolute()&&this.opts.absolute!==!1;if(r){e=e.resolve(r===`/`&&this.opts.root!==void 0?this.opts.root:r);let t=n.rest();if(t)n=t;else{this.matches.add(e,!0,!1);continue}}if(e.isENOENT())continue;let a,o,s=!1;for(;typeof(a=n.pattern())==`string`&&(o=n.rest());)e=e.resolve(a),n=o,s=!0;if(a=n.pattern(),o=n.rest(),s){if(this.hasWalkedCache.hasWalked(e,n))continue;this.hasWalkedCache.storeWalked(e,n)}if(typeof a==`string`){let t=a===`..`||a===``||a===`.`;this.matches.add(e.resolve(a),i,t);continue}else if(a===t.GLOBSTAR){(!e.isSymbolicLink()||this.follow||n.checkFollowGlobstar())&&this.subwalks.add(e,n);let t=o?.pattern(),r=o?.rest();if(!o||(t===``||t===`.`)&&!r)this.matches.add(e,i,t===``||t===`.`);else if(t===`..`){let t=e.parent||e;r?this.hasWalkedCache.hasWalked(t,r)||this.subwalks.add(t,r):this.matches.add(t,i,!0)}}else a instanceof RegExp&&this.subwalks.add(e,n)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(e,n){let r=this.subwalks.get(e),i=this.child();for(let e of n)for(let n of r){let r=n.isAbsolute(),a=n.pattern(),o=n.rest();a===t.GLOBSTAR?i.testGlobstar(e,n,o,r):a instanceof RegExp?i.testRegExp(e,a,o,r):i.testString(e,a,o,r)}return i}testGlobstar(e,t,n,r){if((this.dot||!e.name.startsWith(`.`))&&(t.hasMore()||this.matches.add(e,r,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(n&&t.checkFollowGlobstar()?this.subwalks.add(e,n):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),n){let t=n.pattern();if(typeof t==`string`&&t!==`..`&&t!==``&&t!==`.`)this.testString(e,t,n.rest(),r);else if(t===`..`){let t=e.parent||e;this.subwalks.add(t,n)}else t instanceof RegExp&&this.testRegExp(e,t,n.rest(),r)}}testRegExp(e,t,n,r){t.test(e.name)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}testString(e,t,n,r){e.isNamed(t)&&(n?this.subwalks.add(e,n):this.matches.add(e,r,!1))}}}),k=n(e=>{var t,n,r,i;Object.defineProperty(e,`__esModule`,{value:!0}),e.GlobStream=e.GlobWalker=e.GlobUtil=void 0;var a=w(),c=D(),l=O(),d=(e,t)=>typeof e==`string`?new c.Ignore([e],t):Array.isArray(e)?new c.Ignore(e,t):e,f=(t=new WeakMap,n=new WeakMap,r=new WeakMap,i=new WeakSet,class{constructor(e,a,s){if(u(this,i),o(this,`path`,void 0),o(this,`patterns`,void 0),o(this,`opts`,void 0),o(this,`seen`,new Set),o(this,`paused`,!1),o(this,`aborted`,!1),m(this,t,[]),m(this,n,void 0),m(this,r,void 0),o(this,`signal`,void 0),o(this,`maxDepth`,void 0),o(this,`includeChildMatches`,void 0),this.patterns=e,this.path=a,this.opts=s,h(r,this,!s.posix&&s.platform===`win32`?`\\`:`/`),this.includeChildMatches=s.includeChildMatches!==!1,(s.ignore||!this.includeChildMatches)&&(h(n,this,d(s.ignore??[],s)),!this.includeChildMatches&&typeof p(n,this).add!=`function`))throw Error(`cannot ignore child matches, ignore lacks add() method.`);this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener(`abort`,()=>{p(t,this).length=0}))}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=p(t,this).shift());)e()}onResume(e){this.signal?.aborted||(this.paused?p(t,this).push(e):e())}async matchCheck(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||await e.realpath(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=await r.realpath();e&&(e.isUnknown()||this.opts.stat)&&await e.lstat()}return this.matchCheckTest(r,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!s(i,this,g).call(this,e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=e.realpathCached()||e.realpathSync(),!n)return;e=n}let r=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let e=r.realpathSync();e&&(e?.isUnknown()||this.opts.stat)&&e.lstatSync()}return this.matchCheckTest(r,t)}matchFinish(e,t){if(s(i,this,g).call(this,e))return;if(!this.includeChildMatches&&p(n,this)?.add){let t=`${e.relativePosix()}/**`;p(n,this).add(t)}let a=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let o=this.opts.mark&&e.isDirectory()?p(r,this):``;if(this.opts.withFileTypes)this.matchEmit(e);else if(a){let t=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(t+o)}else{let t=this.opts.posix?e.relativePosix():e.relative(),n=this.opts.dotRelative&&!t.startsWith(`..`+p(r,this))?`.`+p(r,this):``;this.matchEmit(t?n+t+o:`.`+o)}}async match(e,t,n){let r=await this.matchCheck(e,n);r&&this.matchFinish(r,t)}matchSync(e,t,n){let r=this.matchCheckSync(e,n);r&&this.matchFinish(r,t)}walkCB(e,t,n){this.signal?.aborted&&n(),this.walkCB2(e,t,new l.Processor(this.opts),n)}walkCB2(e,t,n,r){if(s(i,this,_).call(this,e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2(e,t,n,r));return}n.processPatterns(e,t);let a=1,o=()=>{--a===0&&r()};for(let[e,t,r]of n.matches.entries())s(i,this,g).call(this,e)||(a++,this.match(e,t,r).then(()=>o()));for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;a++;let t=e.readdirCached();e.calledReaddir()?this.walkCB3(e,t,n,o):e.readdirCB((t,r)=>this.walkCB3(e,r,n,o),!0)}o()}walkCB3(e,t,n,r){n=n.filterEntries(e,t);let a=1,o=()=>{--a===0&&r()};for(let[e,t,r]of n.matches.entries())s(i,this,g).call(this,e)||(a++,this.match(e,t,r).then(()=>o()));for(let[e,t]of n.subwalks.entries())a++,this.walkCB2(e,t,n.child(),o);o()}walkCBSync(e,t,n){this.signal?.aborted&&n(),this.walkCB2Sync(e,t,new l.Processor(this.opts),n)}walkCB2Sync(e,t,n,r){if(s(i,this,_).call(this,e))return r();if(this.signal?.aborted&&r(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,n,r));return}n.processPatterns(e,t);let a=1,o=()=>{--a===0&&r()};for(let[e,t,r]of n.matches.entries())s(i,this,g).call(this,e)||this.matchSync(e,t,r);for(let e of n.subwalkTargets()){if(this.maxDepth!==1/0&&e.depth()>=this.maxDepth)continue;a++;let t=e.readdirSync();this.walkCB3Sync(e,t,n,o)}o()}walkCB3Sync(e,t,n,r){n=n.filterEntries(e,t);let a=1,o=()=>{--a===0&&r()};for(let[e,t,r]of n.matches.entries())s(i,this,g).call(this,e)||this.matchSync(e,t,r);for(let[e,t]of n.subwalks.entries())a++,this.walkCB2Sync(e,t,n.child(),o);o()}});function g(e){return this.seen.has(e)||!!p(n,this)?.ignored?.(e)}function _(e){return!!p(n,this)?.childrenIgnored?.(e)}e.GlobUtil=f,e.GlobWalker=class extends f{constructor(e,t,n){super(e,t,n),o(this,`matches`,new Set)}matchEmit(e){this.matches.add(e)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},e.GlobStream=class extends f{constructor(e,t,n){((...e)=>(super(...e),o(this,`results`,void 0),this))(e,t,n),this.results=new a.Minipass({signal:this.signal,objectMode:!0}),this.results.on(`drain`,()=>this.resume()),this.results.on(`resume`,()=>this.resume())}matchEmit(e){this.results.write(e),this.results.flowing||this.pause()}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end())}):this.walkCB(e,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}}}),A=n(e=>{let n,r;Object.defineProperty(e,`__esModule`,{value:!0}),e.Glob=void 0;var i=S(),a=t(`node:url`),s=T(),c=E(),l=k(),u=typeof process==`object`&&process&&typeof process.platform==`string`?process.platform:`linux`;e.Glob=(n=Symbol.iterator,r=Symbol.asyncIterator,class{constructor(e,t){if(o(this,`absolute`,void 0),o(this,`cwd`,void 0),o(this,`root`,void 0),o(this,`dot`,void 0),o(this,`dotRelative`,void 0),o(this,`follow`,void 0),o(this,`ignore`,void 0),o(this,`magicalBraces`,void 0),o(this,`mark`,void 0),o(this,`matchBase`,void 0),o(this,`maxDepth`,void 0),o(this,`nobrace`,void 0),o(this,`nocase`,void 0),o(this,`nodir`,void 0),o(this,`noext`,void 0),o(this,`noglobstar`,void 0),o(this,`pattern`,void 0),o(this,`platform`,void 0),o(this,`realpath`,void 0),o(this,`scurry`,void 0),o(this,`stat`,void 0),o(this,`signal`,void 0),o(this,`windowsPathsNoEscape`,void 0),o(this,`withFileTypes`,void 0),o(this,`includeChildMatches`,void 0),o(this,`opts`,void 0),o(this,`patterns`,void 0),!t)throw TypeError(`glob options required`);if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith(`file://`))&&(t.cwd=(0,a.fileURLToPath)(t.cwd)):this.cwd=``,this.cwd=t.cwd||``,this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw Error(`cannot set absolute and withFileTypes:true`);if(typeof e==`string`&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(e=>e.replace(/\\/g,`/`))),this.matchBase){if(t.noglobstar)throw TypeError(`base matching requires globstar`);e=e.map(e=>e.includes(`/`)?e:`./**/${e}`)}if(this.pattern=e,this.platform=t.platform||u,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw Error(`nocase option contradicts provided scurry option`)}else this.scurry=new(t.platform===`win32`?s.PathScurryWin32:t.platform===`darwin`?s.PathScurryDarwin:t.platform?s.PathScurryPosix:s.PathScurry)(this.cwd,{nocase:t.nocase,fs:t.fs});this.nocase=this.scurry.nocase;let n=this.platform===`darwin`||this.platform===`win32`,r={braceExpandMax:1e4,...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},[l,d]=this.pattern.map(e=>new i.Minimatch(e,r)).reduce((e,t)=>(e[0].push(...t.set),e[1].push(...t.globParts),e),[[],[]]);this.patterns=l.map((e,t)=>{let n=d[t];if(!n)throw Error(`invalid pattern object`);return new c.Pattern(e,n,0,this.platform)})}async walk(){return[...await new l.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new l.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new l.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new l.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth===1/0?1/0:this.maxDepth+this.scurry.cwd.depth(),platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[n](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[r](){return this.iterate()}})}),j=n(e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.hasMagic=void 0;var t=S();e.hasMagic=(e,n={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new t.Minimatch(r,n).hasMagic())return!0;return!1}});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=z,e.globStream=B,e.globSync=V,e.globIterateSync=U,e.globIterate=W;var M=S(),N=A(),P=j(),F=S();Object.defineProperty(e,`escape`,{enumerable:!0,get:function(){return F.escape}}),Object.defineProperty(e,`unescape`,{enumerable:!0,get:function(){return F.unescape}});var I=A();Object.defineProperty(e,`Glob`,{enumerable:!0,get:function(){return I.Glob}});var L=j();Object.defineProperty(e,`hasMagic`,{enumerable:!0,get:function(){return L.hasMagic}});var R=D();Object.defineProperty(e,`Ignore`,{enumerable:!0,get:function(){return R.Ignore}});function z(e,t={}){return new N.Glob(e,t).streamSync()}function B(e,t={}){return new N.Glob(e,t).stream()}function V(e,t={}){return new N.Glob(e,t).walkSync()}async function H(e,t={}){return new N.Glob(e,t).walk()}function U(e,t={}){return new N.Glob(e,t).iterateSync()}function W(e,t={}){return new N.Glob(e,t).iterate()}e.streamSync=z,e.stream=Object.assign(B,{sync:z}),e.iterateSync=U,e.iterate=Object.assign(W,{sync:U}),e.sync=Object.assign(V,{stream:z,iterate:U}),e.glob=Object.assign(H,{glob:H,globSync:V,sync:e.sync,globStream:B,stream:e.stream,globStreamSync:z,streamSync:e.streamSync,globIterate:W,iterate:e.iterate,globIterateSync:U,iterateSync:e.iterateSync,Glob:N.Glob,hasMagic:P.hasMagic,escape:M.escape,unescape:M.unescape}),e.glob.glob=e.glob})),de=i(((e,n)=>{var{glob:r}=X(),i=t(`path`),a=e=>e.split(i.win32.sep).join(i.posix.sep);n.exports=(e,t)=>r(a(e),t)})),fe=i(((e,n)=>{var r=t(`fs/promises`),i=re(),{hasContent:a}=oe();n.exports=o;async function o(e,t){let n=await a(e,t);return n&&n.sri?(await r.rm(i(e,n.sri),{recursive:!0,force:!0}),!0):!1}})),pe=i(((e,n)=>{var{rm:r}=t(`fs/promises`),i=de(),a=ie(),o=J(),s=t(`path`),c=fe();n.exports=l,n.exports.entry=l;function l(e,t,n){return o.clearMemoized(),a.delete(e,t,n)}n.exports.content=u;function u(e,t){return o.clearMemoized(),c(e,t)}n.exports.all=d;async function d(e){o.clearMemoized();let t=await i(s.join(e,`*(content-*|index-*)`),{silent:!0,nosort:!0});return Promise.all(t.map(e=>r(e,{recursive:!0,force:!0})))}})),Z=i(((e,n)=>{var{mkdir:r,readFile:i,rm:a,stat:o,truncate:s,writeFile:c}=t(`fs/promises`),l=re(),u=Y(),d=de(),f=ie(),p=t(`path`),m=S(),h=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),g=e=>({concurrency:20,log:{silly(){}},...e});n.exports=_;async function _(e,t){t=g(t),t.log.silly(`verify`,`verifying cache at`,e);let n=[v,b,x,w,E,D,y],r={};for(let i of n){let n=i.name,a=new Date,o=await i(e,t);o&&Object.keys(o).forEach(e=>{r[e]=o[e]});let s=new Date;r.runTime||(r.runTime={}),r.runTime[n]=s-a}return r.runTime.total=r.endTime-r.startTime,t.log.silly(`verify`,`verification finished for`,e,`in`,`${r.runTime.total}ms`),r}async function v(){return{startTime:new Date}}async function y(){return{endTime:new Date}}async function b(e,t){return t.log.silly(`verify`,`fixing cache permissions`),await r(e,{recursive:!0}),null}async function x(e,t){t.log.silly(`verify`,`garbage collecting content`);let{default:n}=await import(`./p-map-9Ud1LOrJ.js`),r=f.lsStream(e),i=new Set;r.on(`data`,e=>{if(t.filter&&!t.filter(e))return;let n=m.parse(e.integrity);for(let e in n)i.add(n[e].toString())}),await new Promise((e,t)=>{r.on(`end`,e).on(`error`,t)});let s=l.contentDir(e),c=await d(p.join(s,`**`),{follow:!1,nodir:!0,nosort:!0}),u={verifiedContent:0,reclaimedCount:0,reclaimedSize:0,badContentCount:0,keptSize:0};return await n(c,async e=>{let t=e.split(/[/\\]/),n=t.slice(t.length-3).join(``),r=t[t.length-4],s=m.fromHex(n,r);if(i.has(s.toString())){let t=await C(e,s);t.valid?(u.verifiedContent++,u.keptSize+=t.size):(u.reclaimedCount++,u.badContentCount++,u.reclaimedSize+=t.size)}else{u.reclaimedCount++;let t=await o(e);await a(e,{recursive:!0,force:!0}),u.reclaimedSize+=t.size}return u},{concurrency:t.concurrency}),u}async function C(e,t){let n={};try{let{size:r}=await o(e);n.size=r,n.valid=!0,await m.checkStream(new u.ReadStream(e),t)}catch(t){if(t.code===`ENOENT`)return{size:0,valid:!1};if(t.code!==`EINTEGRITY`)throw t;await a(e,{recursive:!0,force:!0}),n.valid=!1}return n}async function w(e,t){t.log.silly(`verify`,`rebuilding index`);let{default:n}=await import(`./p-map-9Ud1LOrJ.js`),r=await f.ls(e),i={missingContent:0,rejectedEntries:0,totalEntries:0},a={};for(let n in r)if(h(r,n)){let o=f.hashKey(n),s=r[n],c=t.filter&&!t.filter(s);c&&i.rejectedEntries++,a[o]&&!c?a[o].push(s):a[o]&&c||(c?(a[o]=[],a[o]._path=f.bucketPath(e,n)):(a[o]=[s],a[o]._path=f.bucketPath(e,n)))}return await n(Object.keys(a),n=>T(e,a[n],i,t),{concurrency:t.concurrency}),i}async function T(e,t,n){await s(t._path);for(let r of t){let t=l(e,r.integrity);try{await o(t),await f.insert(e,r.key,r.integrity,{metadata:r.metadata,size:r.size,time:r.time}),n.totalEntries++}catch(e){if(e.code===`ENOENT`)n.rejectedEntries++,n.missingContent++;else throw e}}}function E(e,t){return t.log.silly(`verify`,`cleaning tmp directory`),a(p.join(e,`tmp`),{recursive:!0,force:!0})}async function D(e,t){let n=p.join(e,`_lastverified`);return t.log.silly(`verify`,`writing verifile to `+n),c(n,`${Date.now()}`)}n.exports.lastRun=O;async function O(e){let t=await i(p.join(e,`_lastverified`),{encoding:`utf8`});return new Date(+t)}})),me=i(((e,t)=>{var n=se(),r=ue(),i=pe(),a=Z(),{clearMemoized:o}=J(),s=M(),c=ie();t.exports.index={},t.exports.index.compact=c.compact,t.exports.index.insert=c.insert,t.exports.ls=c.ls,t.exports.ls.stream=c.lsStream,t.exports.get=n,t.exports.get.byDigest=n.byDigest,t.exports.get.stream=n.stream,t.exports.get.stream.byDigest=n.stream.byDigest,t.exports.get.copy=n.copy,t.exports.get.copy.byDigest=n.copy.byDigest,t.exports.get.info=n.info,t.exports.get.hasContent=n.hasContent,t.exports.put=r,t.exports.put.stream=r.stream,t.exports.rm=i.entry,t.exports.rm.all=i.all,t.exports.rm.entry=t.exports.rm,t.exports.rm.content=i.content,t.exports.clearMemoized=o,t.exports.tmp={},t.exports.tmp.mkdir=s.mkdir,t.exports.tmp.withTmp=s.withTmp,t.exports.verify=a,t.exports.verify.lastRun=a.lastRun}));export default me();export{};