@openclaw/discord 2026.5.20-beta.2 → 2026.5.22

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 (3044) hide show
  1. package/dist/{account-inspect-CcJ-bl80.js → account-inspect-C4sJZNbI.js} +1 -1
  2. package/dist/account-inspect-api.js +1 -1
  3. package/dist/{accounts-C2TOAmpo.js → accounts-dXTfmnSZ.js} +1 -1
  4. package/dist/action-runtime-api.js +1 -1
  5. package/dist/api.js +13 -13
  6. package/dist/{approval-handler.runtime-hi6B0JCi.js → approval-handler.runtime-CyGGSiMH.js} +3 -3
  7. package/dist/{audit-DJIvRRzY.js → audit-DkBvCBsG.js} +3 -3
  8. package/dist/{channel-BswuOAN6.js → channel-LszCFESI.js} +16 -16
  9. package/dist/{channel-actions-CSepY2Kq.js → channel-actions-DDwcJy6_.js} +4 -4
  10. package/dist/{channel-actions.runtime-CSjcHZNT.js → channel-actions.runtime-CnwxnT58.js} +4 -4
  11. package/dist/channel-config-api.js +1 -1
  12. package/dist/channel-plugin-api.js +1 -1
  13. package/dist/{channel.setup-C0rcLtB9.js → channel.setup-rrsenw1h.js} +4 -4
  14. package/dist/{components-DDPGekgY.js → components-CE63uOrc.js} +3 -0
  15. package/dist/{config-schema-BGgg8U6A.js → config-schema-Kuf9IrLg.js} +4 -0
  16. package/dist/contract-api.js +2 -2
  17. package/dist/{conversation-identity-CAyt5wzy.js → conversation-identity-jwZ56ing.js} +2 -2
  18. package/dist/{directory-config-BcWtq4k8.js → directory-config-Do_NA_H8.js} +1 -1
  19. package/dist/directory-contract-api.js +1 -1
  20. package/dist/{directory-live-5HHCCe5Q.js → directory-live-DekuEEl8.js} +1 -1
  21. package/dist/{doctor-BLcVWv42.js → doctor-DmPhrTLR.js} +3 -3
  22. package/dist/{handle-action.guild-admin-DX2D9qkG.js → handle-action.guild-admin-09HC30Oh.js} +1 -1
  23. package/dist/{manager.runtime-Dq0mc5K0.js → manager.runtime-DPtx2pxB.js} +3 -3
  24. package/dist/{message-handler-wQJd4Peh.js → message-handler-miSYjwxl.js} +5 -5
  25. package/dist/{message-handler.preflight-ANdoLbtA.js → message-handler.preflight-DiLKljGS.js} +8 -8
  26. package/dist/{message-handler.process-DG4qm0sQ.js → message-handler.process-BKvQTmVP.js} +8 -8
  27. package/dist/{message-utils-Bw-wDr8G.js → message-utils-U-ax3LTX.js} +1 -1
  28. package/dist/{outbound-adapter-TGbHliO_.js → outbound-adapter-CF4KuNM6.js} +7 -6
  29. package/dist/{probe-CRWV5COl.js → probe-DfIM7zSY.js} +1 -1
  30. package/dist/{probe.runtime-h9mEzmMs.js → probe.runtime-DoXDN3rt.js} +1 -1
  31. package/dist/{provider-CzKMDsSE.js → provider-Bv9Sx9lq.js} +142 -23
  32. package/dist/{provider-session.runtime-D0XbJS5X.js → provider-session.runtime-BbEz2CZt.js} +3 -3
  33. package/dist/provider.runtime-DKBGMsC7.js +2 -0
  34. package/dist/{resolve-allowlist-common-Bec0FONA.js → resolve-allowlist-common-QzX-w4-_.js} +1 -1
  35. package/dist/{resolve-channels-DcWaMURg.js → resolve-channels-BDjtLmjX.js} +1 -1
  36. package/dist/{resolve-users-TQPLKDeV.js → resolve-users-BeaV5INm.js} +1 -1
  37. package/dist/{runtime-DP_0_5a0.js → runtime-DxQPyNY7.js} +214 -7
  38. package/dist/runtime-api.actions.js +2 -2
  39. package/dist/runtime-api.js +19 -19
  40. package/dist/runtime-api.lookup.js +5 -5
  41. package/dist/runtime-api.monitor-Wt6Qf0SL.js +5 -0
  42. package/dist/runtime-api.monitor.js +4 -4
  43. package/dist/runtime-api.send.js +5 -5
  44. package/dist/runtime-api.threads.js +3 -3
  45. package/dist/{send-CEAtV0qd.js → send-BjHCUrvn.js} +9 -5
  46. package/dist/{send.components-sY6aQV0K.js → send.components-BcCQ27av.js} +42 -8
  47. package/dist/{send.outbound-1vG9pOh2.js → send.outbound-CyvhKilL.js} +3 -3
  48. package/dist/{send.shared-D4clao4K.js → send.shared-C3uAu6bc.js} +2 -2
  49. package/dist/setup-plugin-api.js +1 -1
  50. package/dist/{shared-mo-r7V5W.js → shared-CgAcqTsg.js} +4 -4
  51. package/dist/{subagent-hooks-D65kqOor.js → subagent-hooks-DehrqnoK.js} +2 -2
  52. package/dist/subagent-hooks-api.js +1 -1
  53. package/dist/{target-resolver-BpGdnBIZ.js → target-resolver-squYahVm.js} +2 -2
  54. package/dist/{targets-DMdVjHOU.js → targets-BeetkGO0.js} +1 -1
  55. package/dist/test-api.js +3 -3
  56. package/dist/{thread-bindings-BQz8z6MR.js → thread-bindings-BD9jKFo5.js} +3 -3
  57. package/dist/{thread-bindings.discord-api-Ddalj9wo.js → thread-bindings.discord-api-D2EF_9XS.js} +3 -3
  58. package/dist/{thread-bindings.manager-I5f-Oykv.js → thread-bindings.manager-AEGKdE3O.js} +2 -2
  59. package/node_modules/@discordjs/voice/LICENSE +191 -0
  60. package/node_modules/@discordjs/voice/README.md +120 -0
  61. package/node_modules/@discordjs/voice/dist/index.d.mts +1930 -0
  62. package/node_modules/@discordjs/voice/dist/index.d.ts +1930 -0
  63. package/node_modules/@discordjs/voice/dist/index.js +3241 -0
  64. package/node_modules/@discordjs/voice/dist/index.js.map +1 -0
  65. package/node_modules/@discordjs/voice/dist/index.mjs +3180 -0
  66. package/node_modules/@discordjs/voice/dist/index.mjs.map +1 -0
  67. package/node_modules/@discordjs/voice/package.json +100 -0
  68. package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +299 -0
  69. package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +25092 -0
  70. package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +294 -0
  71. package/node_modules/@napi-rs/wasm-runtime/package.json +70 -0
  72. package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +15 -0
  73. package/node_modules/@napi-rs/wasm-runtime/runtime.js +8 -0
  74. package/node_modules/@snazzah/davey/README.md +58 -0
  75. package/node_modules/@snazzah/davey/browser.js +1 -0
  76. package/node_modules/@snazzah/davey/index.d.ts +260 -0
  77. package/node_modules/@snazzah/davey/index.js +523 -0
  78. package/node_modules/@snazzah/davey/package.json +140 -0
  79. package/node_modules/@snazzah/davey-android-arm-eabi/README.md +3 -0
  80. package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
  81. package/node_modules/@snazzah/davey-android-arm-eabi/package.json +40 -0
  82. package/node_modules/@snazzah/davey-android-arm64/README.md +3 -0
  83. package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
  84. package/node_modules/@snazzah/davey-android-arm64/package.json +40 -0
  85. package/node_modules/@snazzah/davey-darwin-arm64/README.md +3 -0
  86. package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
  87. package/node_modules/@snazzah/davey-darwin-arm64/package.json +40 -0
  88. package/node_modules/@snazzah/davey-darwin-x64/README.md +3 -0
  89. package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
  90. package/node_modules/@snazzah/davey-darwin-x64/package.json +40 -0
  91. package/node_modules/@snazzah/davey-freebsd-x64/README.md +3 -0
  92. package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
  93. package/node_modules/@snazzah/davey-freebsd-x64/package.json +40 -0
  94. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/README.md +3 -0
  95. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
  96. package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +40 -0
  97. package/node_modules/@snazzah/davey-linux-arm64-gnu/README.md +3 -0
  98. package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
  99. package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +43 -0
  100. package/node_modules/@snazzah/davey-linux-arm64-musl/README.md +3 -0
  101. package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
  102. package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +43 -0
  103. package/node_modules/@snazzah/davey-linux-x64-gnu/README.md +3 -0
  104. package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
  105. package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
  106. package/node_modules/@snazzah/davey-linux-x64-musl/README.md +3 -0
  107. package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
  108. package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
  109. package/node_modules/@snazzah/davey-wasm32-wasi/README.md +3 -0
  110. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi-browser.js +71 -0
  111. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi.cjs +123 -0
  112. package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
  113. package/node_modules/@snazzah/davey-wasm32-wasi/package.json +45 -0
  114. package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker-browser.mjs +32 -0
  115. package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker.mjs +63 -0
  116. package/node_modules/@snazzah/davey-win32-arm64-msvc/README.md +3 -0
  117. package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
  118. package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +40 -0
  119. package/node_modules/@snazzah/davey-win32-ia32-msvc/README.md +3 -0
  120. package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
  121. package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +40 -0
  122. package/node_modules/@snazzah/davey-win32-x64-msvc/README.md +3 -0
  123. package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
  124. package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +40 -0
  125. package/node_modules/@tybys/wasm-util/README.md +193 -0
  126. package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
  127. package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
  128. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2920 -0
  129. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2920 -0
  130. package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
  131. package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2942 -0
  132. package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
  133. package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
  134. package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
  135. package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
  136. package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
  137. package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
  138. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
  139. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
  140. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
  141. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
  142. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
  143. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1586 -0
  144. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
  145. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
  146. package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
  147. package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
  148. package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
  149. package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
  150. package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
  151. package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
  152. package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
  153. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
  154. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
  155. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
  156. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
  157. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
  158. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1581 -0
  159. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
  160. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
  161. package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
  162. package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
  163. package/node_modules/@tybys/wasm-util/package.json +58 -0
  164. package/node_modules/@types/node/LICENSE +21 -0
  165. package/node_modules/@types/node/README.md +15 -0
  166. package/node_modules/@types/node/assert/strict.d.ts +59 -0
  167. package/node_modules/@types/node/assert.d.ts +950 -0
  168. package/node_modules/@types/node/async_hooks.d.ts +711 -0
  169. package/node_modules/@types/node/buffer.buffer.d.ts +466 -0
  170. package/node_modules/@types/node/buffer.d.ts +1765 -0
  171. package/node_modules/@types/node/child_process.d.ts +1366 -0
  172. package/node_modules/@types/node/cluster.d.ts +432 -0
  173. package/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
  174. package/node_modules/@types/node/console.d.ts +93 -0
  175. package/node_modules/@types/node/constants.d.ts +14 -0
  176. package/node_modules/@types/node/crypto.d.ts +4058 -0
  177. package/node_modules/@types/node/dgram.d.ts +537 -0
  178. package/node_modules/@types/node/diagnostics_channel.d.ts +552 -0
  179. package/node_modules/@types/node/dns/promises.d.ts +497 -0
  180. package/node_modules/@types/node/dns.d.ts +876 -0
  181. package/node_modules/@types/node/domain.d.ts +150 -0
  182. package/node_modules/@types/node/events.d.ts +1008 -0
  183. package/node_modules/@types/node/fs/promises.d.ts +1468 -0
  184. package/node_modules/@types/node/fs.d.ts +4780 -0
  185. package/node_modules/@types/node/globals.d.ts +150 -0
  186. package/node_modules/@types/node/globals.typedarray.d.ts +101 -0
  187. package/node_modules/@types/node/http.d.ts +2147 -0
  188. package/node_modules/@types/node/http2.d.ts +2485 -0
  189. package/node_modules/@types/node/https.d.ts +400 -0
  190. package/node_modules/@types/node/index.d.ts +117 -0
  191. package/node_modules/@types/node/inspector/promises.d.ts +35 -0
  192. package/node_modules/@types/node/inspector.d.ts +264 -0
  193. package/node_modules/@types/node/inspector.generated.d.ts +4406 -0
  194. package/node_modules/@types/node/module.d.ts +755 -0
  195. package/node_modules/@types/node/net.d.ts +970 -0
  196. package/node_modules/@types/node/os.d.ts +498 -0
  197. package/node_modules/@types/node/package.json +155 -0
  198. package/node_modules/@types/node/path/posix.d.ts +8 -0
  199. package/node_modules/@types/node/path/win32.d.ts +8 -0
  200. package/node_modules/@types/node/path.d.ts +178 -0
  201. package/node_modules/@types/node/perf_hooks.d.ts +612 -0
  202. package/node_modules/@types/node/process.d.ts +2204 -0
  203. package/node_modules/@types/node/punycode.d.ts +89 -0
  204. package/node_modules/@types/node/querystring.d.ts +139 -0
  205. package/node_modules/@types/node/quic.d.ts +897 -0
  206. package/node_modules/@types/node/readline/promises.d.ts +158 -0
  207. package/node_modules/@types/node/readline.d.ts +507 -0
  208. package/node_modules/@types/node/repl.d.ts +420 -0
  209. package/node_modules/@types/node/sea.d.ts +47 -0
  210. package/node_modules/@types/node/sqlite.d.ts +1068 -0
  211. package/node_modules/@types/node/stream/consumers.d.ts +114 -0
  212. package/node_modules/@types/node/stream/iter.d.ts +301 -0
  213. package/node_modules/@types/node/stream/promises.d.ts +211 -0
  214. package/node_modules/@types/node/stream/web.d.ts +300 -0
  215. package/node_modules/@types/node/stream.d.ts +1774 -0
  216. package/node_modules/@types/node/string_decoder.d.ts +27 -0
  217. package/node_modules/@types/node/test/reporters.d.ts +59 -0
  218. package/node_modules/@types/node/test.d.ts +2279 -0
  219. package/node_modules/@types/node/timers/promises.d.ts +93 -0
  220. package/node_modules/@types/node/timers.d.ts +149 -0
  221. package/node_modules/@types/node/tls.d.ts +1193 -0
  222. package/node_modules/@types/node/trace_events.d.ts +103 -0
  223. package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
  224. package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
  225. package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
  226. package/node_modules/@types/node/ts5.6/index.d.ts +119 -0
  227. package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
  228. package/node_modules/@types/node/ts5.7/index.d.ts +119 -0
  229. package/node_modules/@types/node/tty.d.ts +225 -0
  230. package/node_modules/@types/node/url.d.ts +556 -0
  231. package/node_modules/@types/node/util/types.d.ts +558 -0
  232. package/node_modules/@types/node/util.d.ts +1677 -0
  233. package/node_modules/@types/node/v8.d.ts +980 -0
  234. package/node_modules/@types/node/vm.d.ts +1136 -0
  235. package/node_modules/@types/node/wasi.d.ts +131 -0
  236. package/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
  237. package/node_modules/@types/node/web-globals/blob.d.ts +23 -0
  238. package/node_modules/@types/node/web-globals/console.d.ts +9 -0
  239. package/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
  240. package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  241. package/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
  242. package/node_modules/@types/node/web-globals/events.d.ts +106 -0
  243. package/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
  244. package/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
  245. package/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
  246. package/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
  247. package/node_modules/@types/node/web-globals/performance.d.ts +45 -0
  248. package/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  249. package/node_modules/@types/node/web-globals/streams.d.ts +115 -0
  250. package/node_modules/@types/node/web-globals/timers.d.ts +44 -0
  251. package/node_modules/@types/node/web-globals/url.d.ts +24 -0
  252. package/node_modules/@types/node/worker_threads.d.ts +671 -0
  253. package/node_modules/@types/node/zlib/iter.d.ts +131 -0
  254. package/node_modules/@types/node/zlib.d.ts +589 -0
  255. package/node_modules/@types/ws/LICENSE +21 -0
  256. package/node_modules/@types/ws/README.md +15 -0
  257. package/node_modules/@types/ws/index.d.mts +451 -0
  258. package/node_modules/@types/ws/index.d.ts +445 -0
  259. package/node_modules/@types/ws/package.json +72 -0
  260. package/node_modules/agent-base/LICENSE +22 -0
  261. package/node_modules/agent-base/README.md +69 -0
  262. package/node_modules/agent-base/dist/helpers.d.ts +10 -0
  263. package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
  264. package/node_modules/agent-base/dist/helpers.js +37 -0
  265. package/node_modules/agent-base/dist/helpers.js.map +1 -0
  266. package/node_modules/agent-base/dist/index.d.ts +37 -0
  267. package/node_modules/agent-base/dist/index.d.ts.map +1 -0
  268. package/node_modules/agent-base/dist/index.js +146 -0
  269. package/node_modules/agent-base/dist/index.js.map +1 -0
  270. package/node_modules/agent-base/package.json +46 -0
  271. package/node_modules/debug/LICENSE +20 -0
  272. package/node_modules/debug/README.md +481 -0
  273. package/node_modules/debug/package.json +64 -0
  274. package/node_modules/debug/src/browser.js +272 -0
  275. package/node_modules/debug/src/common.js +292 -0
  276. package/node_modules/debug/src/index.js +10 -0
  277. package/node_modules/debug/src/node.js +263 -0
  278. package/node_modules/discord-api-types/CHANGELOG.md +2442 -0
  279. package/node_modules/discord-api-types/LICENSE +21 -0
  280. package/node_modules/discord-api-types/README.md +102 -0
  281. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts +906 -0
  282. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.d.ts.map +1 -0
  283. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js +3 -0
  284. package/node_modules/discord-api-types/_generated_/rest/v10/interfaces.js.map +1 -0
  285. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts +908 -0
  286. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.d.ts.map +1 -0
  287. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js +3 -0
  288. package/node_modules/discord-api-types/_generated_/rest/v9/interfaces.js.map +1 -0
  289. package/node_modules/discord-api-types/gateway/common.d.ts +9 -0
  290. package/node_modules/discord-api-types/gateway/common.d.ts.map +1 -0
  291. package/node_modules/discord-api-types/gateway/common.js +3 -0
  292. package/node_modules/discord-api-types/gateway/common.js.map +1 -0
  293. package/node_modules/discord-api-types/gateway/index.d.ts +2 -0
  294. package/node_modules/discord-api-types/gateway/index.d.ts.map +1 -0
  295. package/node_modules/discord-api-types/gateway/index.js +20 -0
  296. package/node_modules/discord-api-types/gateway/index.js.map +1 -0
  297. package/node_modules/discord-api-types/gateway/index.mjs +9 -0
  298. package/node_modules/discord-api-types/gateway/v10.d.ts +2054 -0
  299. package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -0
  300. package/node_modules/discord-api-types/gateway/v10.js +277 -0
  301. package/node_modules/discord-api-types/gateway/v10.js.map +1 -0
  302. package/node_modules/discord-api-types/gateway/v10.mjs +9 -0
  303. package/node_modules/discord-api-types/gateway/v6.d.ts +658 -0
  304. package/node_modules/discord-api-types/gateway/v6.d.ts.map +1 -0
  305. package/node_modules/discord-api-types/gateway/v6.js +158 -0
  306. package/node_modules/discord-api-types/gateway/v6.js.map +1 -0
  307. package/node_modules/discord-api-types/gateway/v6.mjs +10 -0
  308. package/node_modules/discord-api-types/gateway/v8.d.ts +1575 -0
  309. package/node_modules/discord-api-types/gateway/v8.d.ts.map +1 -0
  310. package/node_modules/discord-api-types/gateway/v8.js +231 -0
  311. package/node_modules/discord-api-types/gateway/v8.js.map +1 -0
  312. package/node_modules/discord-api-types/gateway/v8.mjs +8 -0
  313. package/node_modules/discord-api-types/gateway/v9.d.ts +2053 -0
  314. package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -0
  315. package/node_modules/discord-api-types/gateway/v9.js +276 -0
  316. package/node_modules/discord-api-types/gateway/v9.js.map +1 -0
  317. package/node_modules/discord-api-types/gateway/v9.mjs +9 -0
  318. package/node_modules/discord-api-types/globals.d.ts +102 -0
  319. package/node_modules/discord-api-types/globals.d.ts.map +1 -0
  320. package/node_modules/discord-api-types/globals.js +105 -0
  321. package/node_modules/discord-api-types/globals.js.map +1 -0
  322. package/node_modules/discord-api-types/globals.mjs +4 -0
  323. package/node_modules/discord-api-types/package.json +215 -0
  324. package/node_modules/discord-api-types/payloads/common.d.ts +344 -0
  325. package/node_modules/discord-api-types/payloads/common.d.ts.map +1 -0
  326. package/node_modules/discord-api-types/payloads/common.js +310 -0
  327. package/node_modules/discord-api-types/payloads/common.js.map +1 -0
  328. package/node_modules/discord-api-types/payloads/index.d.ts +2 -0
  329. package/node_modules/discord-api-types/payloads/index.d.ts.map +1 -0
  330. package/node_modules/discord-api-types/payloads/index.js +20 -0
  331. package/node_modules/discord-api-types/payloads/index.js.map +1 -0
  332. package/node_modules/discord-api-types/payloads/index.mjs +101 -0
  333. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
  334. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  335. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  336. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  337. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
  338. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  339. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  340. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  341. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
  342. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  343. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  344. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  345. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
  346. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  347. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  348. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  349. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
  350. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  351. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  352. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  353. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
  354. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  355. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  356. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  357. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
  358. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  359. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  360. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  361. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
  362. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  363. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  364. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  365. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
  366. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  367. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
  368. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  369. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
  370. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  371. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  372. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  373. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
  374. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  375. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  376. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  377. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
  378. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  379. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  380. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  381. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
  382. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  383. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  384. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  385. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts +68 -0
  386. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  387. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js +18 -0
  388. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/chatInput.js.map +1 -0
  389. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
  390. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  391. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js +3 -0
  392. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  393. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
  394. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
  395. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js +3 -0
  396. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/entryPoint.js.map +1 -0
  397. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts +9 -0
  398. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  399. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js +3 -0
  400. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/internals.js.map +1 -0
  401. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts +55 -0
  402. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  403. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js +21 -0
  404. package/node_modules/discord-api-types/payloads/v10/_interactions/_applicationCommands/permissions.js.map +1 -0
  405. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts +194 -0
  406. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.d.ts.map +1 -0
  407. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js +89 -0
  408. package/node_modules/discord-api-types/payloads/v10/_interactions/applicationCommands.js.map +1 -0
  409. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts +11 -0
  410. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.d.ts.map +1 -0
  411. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js +3 -0
  412. package/node_modules/discord-api-types/payloads/v10/_interactions/autocomplete.js.map +1 -0
  413. package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts +230 -0
  414. package/node_modules/discord-api-types/payloads/v10/_interactions/base.d.ts.map +1 -0
  415. package/node_modules/discord-api-types/payloads/v10/_interactions/base.js +3 -0
  416. package/node_modules/discord-api-types/payloads/v10/_interactions/base.js.map +1 -0
  417. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts +42 -0
  418. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.d.ts.map +1 -0
  419. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js +3 -0
  420. package/node_modules/discord-api-types/payloads/v10/_interactions/messageComponents.js.map +1 -0
  421. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts +77 -0
  422. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.d.ts.map +1 -0
  423. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js +3 -0
  424. package/node_modules/discord-api-types/payloads/v10/_interactions/modalSubmit.js.map +1 -0
  425. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts +4 -0
  426. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.d.ts.map +1 -0
  427. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js +3 -0
  428. package/node_modules/discord-api-types/payloads/v10/_interactions/ping.js.map +1 -0
  429. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts +124 -0
  430. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.d.ts.map +1 -0
  431. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js +63 -0
  432. package/node_modules/discord-api-types/payloads/v10/_interactions/responses.js.map +1 -0
  433. package/node_modules/discord-api-types/payloads/v10/application.d.ts +387 -0
  434. package/node_modules/discord-api-types/payloads/v10/application.d.ts.map +1 -0
  435. package/node_modules/discord-api-types/payloads/v10/application.js +152 -0
  436. package/node_modules/discord-api-types/payloads/v10/application.js.map +1 -0
  437. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts +694 -0
  438. package/node_modules/discord-api-types/payloads/v10/auditLog.d.ts.map +1 -0
  439. package/node_modules/discord-api-types/payloads/v10/auditLog.js +85 -0
  440. package/node_modules/discord-api-types/payloads/v10/auditLog.js.map +1 -0
  441. package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts +222 -0
  442. package/node_modules/discord-api-types/payloads/v10/autoModeration.d.ts.map +1 -0
  443. package/node_modules/discord-api-types/payloads/v10/autoModeration.js +88 -0
  444. package/node_modules/discord-api-types/payloads/v10/autoModeration.js.map +1 -0
  445. package/node_modules/discord-api-types/payloads/v10/channel.d.ts +653 -0
  446. package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -0
  447. package/node_modules/discord-api-types/payloads/v10/channel.js +219 -0
  448. package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -0
  449. package/node_modules/discord-api-types/payloads/v10/emoji.d.ts +79 -0
  450. package/node_modules/discord-api-types/payloads/v10/emoji.d.ts.map +1 -0
  451. package/node_modules/discord-api-types/payloads/v10/emoji.js +6 -0
  452. package/node_modules/discord-api-types/payloads/v10/emoji.js.map +1 -0
  453. package/node_modules/discord-api-types/payloads/v10/gateway.d.ts +456 -0
  454. package/node_modules/discord-api-types/payloads/v10/gateway.d.ts.map +1 -0
  455. package/node_modules/discord-api-types/payloads/v10/gateway.js +103 -0
  456. package/node_modules/discord-api-types/payloads/v10/gateway.js.map +1 -0
  457. package/node_modules/discord-api-types/payloads/v10/guild.d.ts +1223 -0
  458. package/node_modules/discord-api-types/payloads/v10/guild.d.ts.map +1 -0
  459. package/node_modules/discord-api-types/payloads/v10/guild.js +403 -0
  460. package/node_modules/discord-api-types/payloads/v10/guild.js.map +1 -0
  461. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts +244 -0
  462. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.d.ts.map +1 -0
  463. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js +74 -0
  464. package/node_modules/discord-api-types/payloads/v10/guildScheduledEvent.js.map +1 -0
  465. package/node_modules/discord-api-types/payloads/v10/index.d.ts +25 -0
  466. package/node_modules/discord-api-types/payloads/v10/index.d.ts.map +1 -0
  467. package/node_modules/discord-api-types/payloads/v10/index.js +37 -0
  468. package/node_modules/discord-api-types/payloads/v10/index.js.map +1 -0
  469. package/node_modules/discord-api-types/payloads/v10/index.mjs +101 -0
  470. package/node_modules/discord-api-types/payloads/v10/interactions.d.ts +25 -0
  471. package/node_modules/discord-api-types/payloads/v10/interactions.d.ts.map +1 -0
  472. package/node_modules/discord-api-types/payloads/v10/interactions.js +19 -0
  473. package/node_modules/discord-api-types/payloads/v10/interactions.js.map +1 -0
  474. package/node_modules/discord-api-types/payloads/v10/invite.d.ts +132 -0
  475. package/node_modules/discord-api-types/payloads/v10/invite.d.ts.map +1 -0
  476. package/node_modules/discord-api-types/payloads/v10/invite.js +31 -0
  477. package/node_modules/discord-api-types/payloads/v10/invite.js.map +1 -0
  478. package/node_modules/discord-api-types/payloads/v10/message.d.ts +2155 -0
  479. package/node_modules/discord-api-types/payloads/v10/message.d.ts.map +1 -0
  480. package/node_modules/discord-api-types/payloads/v10/message.js +590 -0
  481. package/node_modules/discord-api-types/payloads/v10/message.js.map +1 -0
  482. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts +216 -0
  483. package/node_modules/discord-api-types/payloads/v10/monetization.d.ts.map +1 -0
  484. package/node_modules/discord-api-types/payloads/v10/monetization.js +101 -0
  485. package/node_modules/discord-api-types/payloads/v10/monetization.js.map +1 -0
  486. package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts +144 -0
  487. package/node_modules/discord-api-types/payloads/v10/oauth2.d.ts.map +1 -0
  488. package/node_modules/discord-api-types/payloads/v10/oauth2.js +148 -0
  489. package/node_modules/discord-api-types/payloads/v10/oauth2.js.map +1 -0
  490. package/node_modules/discord-api-types/payloads/v10/permissions.d.ts +124 -0
  491. package/node_modules/discord-api-types/payloads/v10/permissions.d.ts.map +1 -0
  492. package/node_modules/discord-api-types/payloads/v10/permissions.js +17 -0
  493. package/node_modules/discord-api-types/payloads/v10/permissions.js.map +1 -0
  494. package/node_modules/discord-api-types/payloads/v10/poll.d.ts +111 -0
  495. package/node_modules/discord-api-types/payloads/v10/poll.d.ts.map +1 -0
  496. package/node_modules/discord-api-types/payloads/v10/poll.js +17 -0
  497. package/node_modules/discord-api-types/payloads/v10/poll.js.map +1 -0
  498. package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts +43 -0
  499. package/node_modules/discord-api-types/payloads/v10/soundboard.d.ts.map +1 -0
  500. package/node_modules/discord-api-types/payloads/v10/soundboard.js +6 -0
  501. package/node_modules/discord-api-types/payloads/v10/soundboard.js.map +1 -0
  502. package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts +82 -0
  503. package/node_modules/discord-api-types/payloads/v10/stageInstance.d.ts.map +1 -0
  504. package/node_modules/discord-api-types/payloads/v10/stageInstance.js +21 -0
  505. package/node_modules/discord-api-types/payloads/v10/stageInstance.js.map +1 -0
  506. package/node_modules/discord-api-types/payloads/v10/sticker.d.ts +125 -0
  507. package/node_modules/discord-api-types/payloads/v10/sticker.d.ts.map +1 -0
  508. package/node_modules/discord-api-types/payloads/v10/sticker.js +31 -0
  509. package/node_modules/discord-api-types/payloads/v10/sticker.js.map +1 -0
  510. package/node_modules/discord-api-types/payloads/v10/teams.d.ts +79 -0
  511. package/node_modules/discord-api-types/payloads/v10/teams.d.ts.map +1 -0
  512. package/node_modules/discord-api-types/payloads/v10/teams.js +24 -0
  513. package/node_modules/discord-api-types/payloads/v10/teams.js.map +1 -0
  514. package/node_modules/discord-api-types/payloads/v10/template.d.ts +64 -0
  515. package/node_modules/discord-api-types/payloads/v10/template.d.ts.map +1 -0
  516. package/node_modules/discord-api-types/payloads/v10/template.js +6 -0
  517. package/node_modules/discord-api-types/payloads/v10/template.js.map +1 -0
  518. package/node_modules/discord-api-types/payloads/v10/user.d.ts +430 -0
  519. package/node_modules/discord-api-types/payloads/v10/user.d.ts.map +1 -0
  520. package/node_modules/discord-api-types/payloads/v10/user.js +191 -0
  521. package/node_modules/discord-api-types/payloads/v10/user.js.map +1 -0
  522. package/node_modules/discord-api-types/payloads/v10/voice.d.ts +101 -0
  523. package/node_modules/discord-api-types/payloads/v10/voice.d.ts.map +1 -0
  524. package/node_modules/discord-api-types/payloads/v10/voice.js +6 -0
  525. package/node_modules/discord-api-types/payloads/v10/voice.js.map +1 -0
  526. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts +190 -0
  527. package/node_modules/discord-api-types/payloads/v10/webhook.d.ts.map +1 -0
  528. package/node_modules/discord-api-types/payloads/v10/webhook.js +69 -0
  529. package/node_modules/discord-api-types/payloads/v10/webhook.js.map +1 -0
  530. package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts +469 -0
  531. package/node_modules/discord-api-types/payloads/v6/auditLog.d.ts.map +1 -0
  532. package/node_modules/discord-api-types/payloads/v6/auditLog.js +58 -0
  533. package/node_modules/discord-api-types/payloads/v6/auditLog.js.map +1 -0
  534. package/node_modules/discord-api-types/payloads/v6/channel.d.ts +339 -0
  535. package/node_modules/discord-api-types/payloads/v6/channel.d.ts.map +1 -0
  536. package/node_modules/discord-api-types/payloads/v6/channel.js +94 -0
  537. package/node_modules/discord-api-types/payloads/v6/channel.js.map +1 -0
  538. package/node_modules/discord-api-types/payloads/v6/emoji.d.ts +27 -0
  539. package/node_modules/discord-api-types/payloads/v6/emoji.d.ts.map +1 -0
  540. package/node_modules/discord-api-types/payloads/v6/emoji.js +6 -0
  541. package/node_modules/discord-api-types/payloads/v6/emoji.js.map +1 -0
  542. package/node_modules/discord-api-types/payloads/v6/gateway.d.ts +149 -0
  543. package/node_modules/discord-api-types/payloads/v6/gateway.d.ts.map +1 -0
  544. package/node_modules/discord-api-types/payloads/v6/gateway.js +45 -0
  545. package/node_modules/discord-api-types/payloads/v6/gateway.js.map +1 -0
  546. package/node_modules/discord-api-types/payloads/v6/guild.d.ts +310 -0
  547. package/node_modules/discord-api-types/payloads/v6/guild.d.ts.map +1 -0
  548. package/node_modules/discord-api-types/payloads/v6/guild.js +118 -0
  549. package/node_modules/discord-api-types/payloads/v6/guild.js.map +1 -0
  550. package/node_modules/discord-api-types/payloads/v6/index.d.ts +13 -0
  551. package/node_modules/discord-api-types/payloads/v6/index.d.ts.map +1 -0
  552. package/node_modules/discord-api-types/payloads/v6/index.js +29 -0
  553. package/node_modules/discord-api-types/payloads/v6/index.js.map +1 -0
  554. package/node_modules/discord-api-types/payloads/v6/index.mjs +30 -0
  555. package/node_modules/discord-api-types/payloads/v6/invite.d.ts +42 -0
  556. package/node_modules/discord-api-types/payloads/v6/invite.d.ts.map +1 -0
  557. package/node_modules/discord-api-types/payloads/v6/invite.js +16 -0
  558. package/node_modules/discord-api-types/payloads/v6/invite.js.map +1 -0
  559. package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts +28 -0
  560. package/node_modules/discord-api-types/payloads/v6/oauth2.d.ts.map +1 -0
  561. package/node_modules/discord-api-types/payloads/v6/oauth2.js +6 -0
  562. package/node_modules/discord-api-types/payloads/v6/oauth2.js.map +1 -0
  563. package/node_modules/discord-api-types/payloads/v6/permissions.d.ts +75 -0
  564. package/node_modules/discord-api-types/payloads/v6/permissions.d.ts.map +1 -0
  565. package/node_modules/discord-api-types/payloads/v6/permissions.js +56 -0
  566. package/node_modules/discord-api-types/payloads/v6/permissions.js.map +1 -0
  567. package/node_modules/discord-api-types/payloads/v6/teams.d.ts +36 -0
  568. package/node_modules/discord-api-types/payloads/v6/teams.d.ts.map +1 -0
  569. package/node_modules/discord-api-types/payloads/v6/teams.js +17 -0
  570. package/node_modules/discord-api-types/payloads/v6/teams.js.map +1 -0
  571. package/node_modules/discord-api-types/payloads/v6/user.d.ts +79 -0
  572. package/node_modules/discord-api-types/payloads/v6/user.d.ts.map +1 -0
  573. package/node_modules/discord-api-types/payloads/v6/user.js +48 -0
  574. package/node_modules/discord-api-types/payloads/v6/user.js.map +1 -0
  575. package/node_modules/discord-api-types/payloads/v6/voice.d.ts +37 -0
  576. package/node_modules/discord-api-types/payloads/v6/voice.d.ts.map +1 -0
  577. package/node_modules/discord-api-types/payloads/v6/voice.js +6 -0
  578. package/node_modules/discord-api-types/payloads/v6/voice.js.map +1 -0
  579. package/node_modules/discord-api-types/payloads/v6/webhook.d.ts +32 -0
  580. package/node_modules/discord-api-types/payloads/v6/webhook.d.ts.map +1 -0
  581. package/node_modules/discord-api-types/payloads/v6/webhook.js +15 -0
  582. package/node_modules/discord-api-types/payloads/v6/webhook.js.map +1 -0
  583. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts +12 -0
  584. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  585. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  586. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  587. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts +28 -0
  588. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  589. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  590. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  591. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts +11 -0
  592. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  593. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  594. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  595. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts +15 -0
  596. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  597. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  598. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  599. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts +27 -0
  600. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  601. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  602. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  603. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +12 -0
  604. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  605. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  606. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  607. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts +27 -0
  608. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  609. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  610. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  611. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts +12 -0
  612. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  613. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  614. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  615. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts +28 -0
  616. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  617. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js +23 -0
  618. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  619. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts +13 -0
  620. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  621. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  622. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  623. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +18 -0
  624. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  625. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  626. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  627. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +18 -0
  628. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  629. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  630. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  631. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts +12 -0
  632. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  633. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  634. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  635. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts +90 -0
  636. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  637. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js +29 -0
  638. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/chatInput.js.map +1 -0
  639. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts +102 -0
  640. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  641. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js +3 -0
  642. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  643. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts +11 -0
  644. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  645. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js +3 -0
  646. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/internals.js.map +1 -0
  647. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts +53 -0
  648. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  649. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js +14 -0
  650. package/node_modules/discord-api-types/payloads/v8/_interactions/_applicationCommands/permissions.js.map +1 -0
  651. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts +112 -0
  652. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.d.ts.map +1 -0
  653. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js +32 -0
  654. package/node_modules/discord-api-types/payloads/v8/_interactions/applicationCommands.js.map +1 -0
  655. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts +18 -0
  656. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.d.ts.map +1 -0
  657. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js +3 -0
  658. package/node_modules/discord-api-types/payloads/v8/_interactions/autocomplete.js.map +1 -0
  659. package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts +116 -0
  660. package/node_modules/discord-api-types/payloads/v8/_interactions/base.d.ts.map +1 -0
  661. package/node_modules/discord-api-types/payloads/v8/_interactions/base.js +3 -0
  662. package/node_modules/discord-api-types/payloads/v8/_interactions/base.js.map +1 -0
  663. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts +43 -0
  664. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.d.ts.map +1 -0
  665. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js +3 -0
  666. package/node_modules/discord-api-types/payloads/v8/_interactions/messageComponents.js.map +1 -0
  667. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts +48 -0
  668. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.d.ts.map +1 -0
  669. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js +3 -0
  670. package/node_modules/discord-api-types/payloads/v8/_interactions/modalSubmit.js.map +1 -0
  671. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts +7 -0
  672. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.d.ts.map +1 -0
  673. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js +3 -0
  674. package/node_modules/discord-api-types/payloads/v8/_interactions/ping.js.map +1 -0
  675. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts +138 -0
  676. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.d.ts.map +1 -0
  677. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js +53 -0
  678. package/node_modules/discord-api-types/payloads/v8/_interactions/responses.js.map +1 -0
  679. package/node_modules/discord-api-types/payloads/v8/application.d.ts +134 -0
  680. package/node_modules/discord-api-types/payloads/v8/application.d.ts.map +1 -0
  681. package/node_modules/discord-api-types/payloads/v8/application.js +28 -0
  682. package/node_modules/discord-api-types/payloads/v8/application.js.map +1 -0
  683. package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts +637 -0
  684. package/node_modules/discord-api-types/payloads/v8/auditLog.d.ts.map +1 -0
  685. package/node_modules/discord-api-types/payloads/v8/auditLog.js +67 -0
  686. package/node_modules/discord-api-types/payloads/v8/auditLog.js.map +1 -0
  687. package/node_modules/discord-api-types/payloads/v8/channel.d.ts +1268 -0
  688. package/node_modules/discord-api-types/payloads/v8/channel.d.ts.map +1 -0
  689. package/node_modules/discord-api-types/payloads/v8/channel.js +253 -0
  690. package/node_modules/discord-api-types/payloads/v8/channel.js.map +1 -0
  691. package/node_modules/discord-api-types/payloads/v8/emoji.d.ts +53 -0
  692. package/node_modules/discord-api-types/payloads/v8/emoji.d.ts.map +1 -0
  693. package/node_modules/discord-api-types/payloads/v8/emoji.js +6 -0
  694. package/node_modules/discord-api-types/payloads/v8/emoji.js.map +1 -0
  695. package/node_modules/discord-api-types/payloads/v8/gateway.d.ts +332 -0
  696. package/node_modules/discord-api-types/payloads/v8/gateway.d.ts.map +1 -0
  697. package/node_modules/discord-api-types/payloads/v8/gateway.js +79 -0
  698. package/node_modules/discord-api-types/payloads/v8/gateway.js.map +1 -0
  699. package/node_modules/discord-api-types/payloads/v8/guild.d.ts +1001 -0
  700. package/node_modules/discord-api-types/payloads/v8/guild.d.ts.map +1 -0
  701. package/node_modules/discord-api-types/payloads/v8/guild.js +264 -0
  702. package/node_modules/discord-api-types/payloads/v8/guild.js.map +1 -0
  703. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts +163 -0
  704. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.d.ts.map +1 -0
  705. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js +39 -0
  706. package/node_modules/discord-api-types/payloads/v8/guildScheduledEvent.js.map +1 -0
  707. package/node_modules/discord-api-types/payloads/v8/index.d.ts +20 -0
  708. package/node_modules/discord-api-types/payloads/v8/index.d.ts.map +1 -0
  709. package/node_modules/discord-api-types/payloads/v8/index.js +36 -0
  710. package/node_modules/discord-api-types/payloads/v8/index.js.map +1 -0
  711. package/node_modules/discord-api-types/payloads/v8/index.mjs +51 -0
  712. package/node_modules/discord-api-types/payloads/v8/interactions.d.ts +31 -0
  713. package/node_modules/discord-api-types/payloads/v8/interactions.d.ts.map +1 -0
  714. package/node_modules/discord-api-types/payloads/v8/interactions.js +24 -0
  715. package/node_modules/discord-api-types/payloads/v8/interactions.js.map +1 -0
  716. package/node_modules/discord-api-types/payloads/v8/invite.d.ts +114 -0
  717. package/node_modules/discord-api-types/payloads/v8/invite.d.ts.map +1 -0
  718. package/node_modules/discord-api-types/payloads/v8/invite.js +17 -0
  719. package/node_modules/discord-api-types/payloads/v8/invite.js.map +1 -0
  720. package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts +117 -0
  721. package/node_modules/discord-api-types/payloads/v8/oauth2.d.ts.map +1 -0
  722. package/node_modules/discord-api-types/payloads/v8/oauth2.js +121 -0
  723. package/node_modules/discord-api-types/payloads/v8/oauth2.js.map +1 -0
  724. package/node_modules/discord-api-types/payloads/v8/permissions.d.ts +77 -0
  725. package/node_modules/discord-api-types/payloads/v8/permissions.d.ts.map +1 -0
  726. package/node_modules/discord-api-types/payloads/v8/permissions.js +6 -0
  727. package/node_modules/discord-api-types/payloads/v8/permissions.js.map +1 -0
  728. package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts +76 -0
  729. package/node_modules/discord-api-types/payloads/v8/stageInstance.d.ts.map +1 -0
  730. package/node_modules/discord-api-types/payloads/v8/stageInstance.js +20 -0
  731. package/node_modules/discord-api-types/payloads/v8/stageInstance.js.map +1 -0
  732. package/node_modules/discord-api-types/payloads/v8/sticker.d.ts +133 -0
  733. package/node_modules/discord-api-types/payloads/v8/sticker.d.ts.map +1 -0
  734. package/node_modules/discord-api-types/payloads/v8/sticker.js +34 -0
  735. package/node_modules/discord-api-types/payloads/v8/sticker.js.map +1 -0
  736. package/node_modules/discord-api-types/payloads/v8/teams.d.ts +69 -0
  737. package/node_modules/discord-api-types/payloads/v8/teams.d.ts.map +1 -0
  738. package/node_modules/discord-api-types/payloads/v8/teams.js +17 -0
  739. package/node_modules/discord-api-types/payloads/v8/teams.js.map +1 -0
  740. package/node_modules/discord-api-types/payloads/v8/template.d.ts +68 -0
  741. package/node_modules/discord-api-types/payloads/v8/template.d.ts.map +1 -0
  742. package/node_modules/discord-api-types/payloads/v8/template.js +6 -0
  743. package/node_modules/discord-api-types/payloads/v8/template.js.map +1 -0
  744. package/node_modules/discord-api-types/payloads/v8/user.d.ts +228 -0
  745. package/node_modules/discord-api-types/payloads/v8/user.d.ts.map +1 -0
  746. package/node_modules/discord-api-types/payloads/v8/user.js +108 -0
  747. package/node_modules/discord-api-types/payloads/v8/user.js.map +1 -0
  748. package/node_modules/discord-api-types/payloads/v8/voice.d.ts +94 -0
  749. package/node_modules/discord-api-types/payloads/v8/voice.d.ts.map +1 -0
  750. package/node_modules/discord-api-types/payloads/v8/voice.js +6 -0
  751. package/node_modules/discord-api-types/payloads/v8/voice.js.map +1 -0
  752. package/node_modules/discord-api-types/payloads/v8/webhook.d.ts +82 -0
  753. package/node_modules/discord-api-types/payloads/v8/webhook.d.ts.map +1 -0
  754. package/node_modules/discord-api-types/payloads/v8/webhook.js +25 -0
  755. package/node_modules/discord-api-types/payloads/v8/webhook.js.map +1 -0
  756. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts +6 -0
  757. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.d.ts.map +1 -0
  758. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js +3 -0
  759. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/attachment.js.map +1 -0
  760. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts +23 -0
  761. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.d.ts.map +1 -0
  762. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js +3 -0
  763. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/base.js.map +1 -0
  764. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts +5 -0
  765. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.d.ts.map +1 -0
  766. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js +3 -0
  767. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/boolean.js.map +1 -0
  768. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts +9 -0
  769. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -0
  770. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js +3 -0
  771. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.js.map +1 -0
  772. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts +18 -0
  773. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.d.ts.map +1 -0
  774. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js +3 -0
  775. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/integer.js.map +1 -0
  776. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts +6 -0
  777. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.d.ts.map +1 -0
  778. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js +3 -0
  779. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/mentionable.js.map +1 -0
  780. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts +18 -0
  781. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.d.ts.map +1 -0
  782. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js +3 -0
  783. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/number.js.map +1 -0
  784. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts +6 -0
  785. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.d.ts.map +1 -0
  786. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js +3 -0
  787. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/role.js.map +1 -0
  788. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts +26 -0
  789. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.d.ts.map +1 -0
  790. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js +21 -0
  791. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/shared.js.map +1 -0
  792. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts +17 -0
  793. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.d.ts.map +1 -0
  794. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js +3 -0
  795. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/string.js.map +1 -0
  796. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts +13 -0
  797. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.d.ts.map +1 -0
  798. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js +3 -0
  799. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommand.js.map +1 -0
  800. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts +13 -0
  801. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.d.ts.map +1 -0
  802. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js +3 -0
  803. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/subcommandGroup.js.map +1 -0
  804. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts +6 -0
  805. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.d.ts.map +1 -0
  806. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js +3 -0
  807. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/user.js.map +1 -0
  808. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts +68 -0
  809. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.d.ts.map +1 -0
  810. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js +18 -0
  811. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/chatInput.js.map +1 -0
  812. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts +66 -0
  813. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.d.ts.map +1 -0
  814. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js +3 -0
  815. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/contextMenu.js.map +1 -0
  816. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts +20 -0
  817. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.d.ts.map +1 -0
  818. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js +3 -0
  819. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/entryPoint.js.map +1 -0
  820. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts +9 -0
  821. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.d.ts.map +1 -0
  822. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js +3 -0
  823. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/internals.js.map +1 -0
  824. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts +55 -0
  825. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.d.ts.map +1 -0
  826. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js +21 -0
  827. package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/permissions.js.map +1 -0
  828. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts +192 -0
  829. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.d.ts.map +1 -0
  830. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js +89 -0
  831. package/node_modules/discord-api-types/payloads/v9/_interactions/applicationCommands.js.map +1 -0
  832. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts +11 -0
  833. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.d.ts.map +1 -0
  834. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js +3 -0
  835. package/node_modules/discord-api-types/payloads/v9/_interactions/autocomplete.js.map +1 -0
  836. package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts +233 -0
  837. package/node_modules/discord-api-types/payloads/v9/_interactions/base.d.ts.map +1 -0
  838. package/node_modules/discord-api-types/payloads/v9/_interactions/base.js +3 -0
  839. package/node_modules/discord-api-types/payloads/v9/_interactions/base.js.map +1 -0
  840. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts +42 -0
  841. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.d.ts.map +1 -0
  842. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js +3 -0
  843. package/node_modules/discord-api-types/payloads/v9/_interactions/messageComponents.js.map +1 -0
  844. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts +77 -0
  845. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.d.ts.map +1 -0
  846. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js +3 -0
  847. package/node_modules/discord-api-types/payloads/v9/_interactions/modalSubmit.js.map +1 -0
  848. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts +4 -0
  849. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.d.ts.map +1 -0
  850. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js +3 -0
  851. package/node_modules/discord-api-types/payloads/v9/_interactions/ping.js.map +1 -0
  852. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts +124 -0
  853. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.d.ts.map +1 -0
  854. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js +63 -0
  855. package/node_modules/discord-api-types/payloads/v9/_interactions/responses.js.map +1 -0
  856. package/node_modules/discord-api-types/payloads/v9/application.d.ts +387 -0
  857. package/node_modules/discord-api-types/payloads/v9/application.d.ts.map +1 -0
  858. package/node_modules/discord-api-types/payloads/v9/application.js +152 -0
  859. package/node_modules/discord-api-types/payloads/v9/application.js.map +1 -0
  860. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts +694 -0
  861. package/node_modules/discord-api-types/payloads/v9/auditLog.d.ts.map +1 -0
  862. package/node_modules/discord-api-types/payloads/v9/auditLog.js +85 -0
  863. package/node_modules/discord-api-types/payloads/v9/auditLog.js.map +1 -0
  864. package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts +222 -0
  865. package/node_modules/discord-api-types/payloads/v9/autoModeration.d.ts.map +1 -0
  866. package/node_modules/discord-api-types/payloads/v9/autoModeration.js +88 -0
  867. package/node_modules/discord-api-types/payloads/v9/autoModeration.js.map +1 -0
  868. package/node_modules/discord-api-types/payloads/v9/channel.d.ts +656 -0
  869. package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -0
  870. package/node_modules/discord-api-types/payloads/v9/channel.js +219 -0
  871. package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -0
  872. package/node_modules/discord-api-types/payloads/v9/emoji.d.ts +79 -0
  873. package/node_modules/discord-api-types/payloads/v9/emoji.d.ts.map +1 -0
  874. package/node_modules/discord-api-types/payloads/v9/emoji.js +6 -0
  875. package/node_modules/discord-api-types/payloads/v9/emoji.js.map +1 -0
  876. package/node_modules/discord-api-types/payloads/v9/gateway.d.ts +444 -0
  877. package/node_modules/discord-api-types/payloads/v9/gateway.d.ts.map +1 -0
  878. package/node_modules/discord-api-types/payloads/v9/gateway.js +103 -0
  879. package/node_modules/discord-api-types/payloads/v9/gateway.js.map +1 -0
  880. package/node_modules/discord-api-types/payloads/v9/guild.d.ts +1215 -0
  881. package/node_modules/discord-api-types/payloads/v9/guild.d.ts.map +1 -0
  882. package/node_modules/discord-api-types/payloads/v9/guild.js +395 -0
  883. package/node_modules/discord-api-types/payloads/v9/guild.js.map +1 -0
  884. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts +244 -0
  885. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.d.ts.map +1 -0
  886. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js +74 -0
  887. package/node_modules/discord-api-types/payloads/v9/guildScheduledEvent.js.map +1 -0
  888. package/node_modules/discord-api-types/payloads/v9/index.d.ts +25 -0
  889. package/node_modules/discord-api-types/payloads/v9/index.d.ts.map +1 -0
  890. package/node_modules/discord-api-types/payloads/v9/index.js +37 -0
  891. package/node_modules/discord-api-types/payloads/v9/index.js.map +1 -0
  892. package/node_modules/discord-api-types/payloads/v9/index.mjs +101 -0
  893. package/node_modules/discord-api-types/payloads/v9/interactions.d.ts +25 -0
  894. package/node_modules/discord-api-types/payloads/v9/interactions.d.ts.map +1 -0
  895. package/node_modules/discord-api-types/payloads/v9/interactions.js +19 -0
  896. package/node_modules/discord-api-types/payloads/v9/interactions.js.map +1 -0
  897. package/node_modules/discord-api-types/payloads/v9/invite.d.ts +132 -0
  898. package/node_modules/discord-api-types/payloads/v9/invite.d.ts.map +1 -0
  899. package/node_modules/discord-api-types/payloads/v9/invite.js +31 -0
  900. package/node_modules/discord-api-types/payloads/v9/invite.js.map +1 -0
  901. package/node_modules/discord-api-types/payloads/v9/message.d.ts +2151 -0
  902. package/node_modules/discord-api-types/payloads/v9/message.d.ts.map +1 -0
  903. package/node_modules/discord-api-types/payloads/v9/message.js +590 -0
  904. package/node_modules/discord-api-types/payloads/v9/message.js.map +1 -0
  905. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts +216 -0
  906. package/node_modules/discord-api-types/payloads/v9/monetization.d.ts.map +1 -0
  907. package/node_modules/discord-api-types/payloads/v9/monetization.js +101 -0
  908. package/node_modules/discord-api-types/payloads/v9/monetization.js.map +1 -0
  909. package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts +132 -0
  910. package/node_modules/discord-api-types/payloads/v9/oauth2.d.ts.map +1 -0
  911. package/node_modules/discord-api-types/payloads/v9/oauth2.js +136 -0
  912. package/node_modules/discord-api-types/payloads/v9/oauth2.js.map +1 -0
  913. package/node_modules/discord-api-types/payloads/v9/permissions.d.ts +124 -0
  914. package/node_modules/discord-api-types/payloads/v9/permissions.d.ts.map +1 -0
  915. package/node_modules/discord-api-types/payloads/v9/permissions.js +17 -0
  916. package/node_modules/discord-api-types/payloads/v9/permissions.js.map +1 -0
  917. package/node_modules/discord-api-types/payloads/v9/poll.d.ts +111 -0
  918. package/node_modules/discord-api-types/payloads/v9/poll.d.ts.map +1 -0
  919. package/node_modules/discord-api-types/payloads/v9/poll.js +17 -0
  920. package/node_modules/discord-api-types/payloads/v9/poll.js.map +1 -0
  921. package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts +43 -0
  922. package/node_modules/discord-api-types/payloads/v9/soundboard.d.ts.map +1 -0
  923. package/node_modules/discord-api-types/payloads/v9/soundboard.js +6 -0
  924. package/node_modules/discord-api-types/payloads/v9/soundboard.js.map +1 -0
  925. package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts +82 -0
  926. package/node_modules/discord-api-types/payloads/v9/stageInstance.d.ts.map +1 -0
  927. package/node_modules/discord-api-types/payloads/v9/stageInstance.js +21 -0
  928. package/node_modules/discord-api-types/payloads/v9/stageInstance.js.map +1 -0
  929. package/node_modules/discord-api-types/payloads/v9/sticker.d.ts +125 -0
  930. package/node_modules/discord-api-types/payloads/v9/sticker.d.ts.map +1 -0
  931. package/node_modules/discord-api-types/payloads/v9/sticker.js +31 -0
  932. package/node_modules/discord-api-types/payloads/v9/sticker.js.map +1 -0
  933. package/node_modules/discord-api-types/payloads/v9/teams.d.ts +79 -0
  934. package/node_modules/discord-api-types/payloads/v9/teams.d.ts.map +1 -0
  935. package/node_modules/discord-api-types/payloads/v9/teams.js +24 -0
  936. package/node_modules/discord-api-types/payloads/v9/teams.js.map +1 -0
  937. package/node_modules/discord-api-types/payloads/v9/template.d.ts +64 -0
  938. package/node_modules/discord-api-types/payloads/v9/template.d.ts.map +1 -0
  939. package/node_modules/discord-api-types/payloads/v9/template.js +6 -0
  940. package/node_modules/discord-api-types/payloads/v9/template.js.map +1 -0
  941. package/node_modules/discord-api-types/payloads/v9/user.d.ts +430 -0
  942. package/node_modules/discord-api-types/payloads/v9/user.d.ts.map +1 -0
  943. package/node_modules/discord-api-types/payloads/v9/user.js +191 -0
  944. package/node_modules/discord-api-types/payloads/v9/user.js.map +1 -0
  945. package/node_modules/discord-api-types/payloads/v9/voice.d.ts +98 -0
  946. package/node_modules/discord-api-types/payloads/v9/voice.d.ts.map +1 -0
  947. package/node_modules/discord-api-types/payloads/v9/voice.js +6 -0
  948. package/node_modules/discord-api-types/payloads/v9/voice.js.map +1 -0
  949. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts +190 -0
  950. package/node_modules/discord-api-types/payloads/v9/webhook.d.ts.map +1 -0
  951. package/node_modules/discord-api-types/payloads/v9/webhook.js +69 -0
  952. package/node_modules/discord-api-types/payloads/v9/webhook.js.map +1 -0
  953. package/node_modules/discord-api-types/rest/common.d.ts +307 -0
  954. package/node_modules/discord-api-types/rest/common.d.ts.map +1 -0
  955. package/node_modules/discord-api-types/rest/common.js +311 -0
  956. package/node_modules/discord-api-types/rest/common.js.map +1 -0
  957. package/node_modules/discord-api-types/rest/index.d.ts +2 -0
  958. package/node_modules/discord-api-types/rest/index.d.ts.map +1 -0
  959. package/node_modules/discord-api-types/rest/index.js +20 -0
  960. package/node_modules/discord-api-types/rest/index.js.map +1 -0
  961. package/node_modules/discord-api-types/rest/index.mjs +15 -0
  962. package/node_modules/discord-api-types/rest/v10/application.d.ts +31 -0
  963. package/node_modules/discord-api-types/rest/v10/application.d.ts.map +1 -0
  964. package/node_modules/discord-api-types/rest/v10/application.js +3 -0
  965. package/node_modules/discord-api-types/rest/v10/application.js.map +1 -0
  966. package/node_modules/discord-api-types/rest/v10/auditLog.d.ts +31 -0
  967. package/node_modules/discord-api-types/rest/v10/auditLog.d.ts.map +1 -0
  968. package/node_modules/discord-api-types/rest/v10/auditLog.js +3 -0
  969. package/node_modules/discord-api-types/rest/v10/auditLog.js.map +1 -0
  970. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts +68 -0
  971. package/node_modules/discord-api-types/rest/v10/autoModeration.d.ts.map +1 -0
  972. package/node_modules/discord-api-types/rest/v10/autoModeration.js +3 -0
  973. package/node_modules/discord-api-types/rest/v10/autoModeration.js.map +1 -0
  974. package/node_modules/discord-api-types/rest/v10/channel.d.ts +764 -0
  975. package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -0
  976. package/node_modules/discord-api-types/rest/v10/channel.js +18 -0
  977. package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -0
  978. package/node_modules/discord-api-types/rest/v10/emoji.d.ts +85 -0
  979. package/node_modules/discord-api-types/rest/v10/emoji.d.ts.map +1 -0
  980. package/node_modules/discord-api-types/rest/v10/emoji.js +3 -0
  981. package/node_modules/discord-api-types/rest/v10/emoji.js.map +1 -0
  982. package/node_modules/discord-api-types/rest/v10/gateway.d.ts +10 -0
  983. package/node_modules/discord-api-types/rest/v10/gateway.d.ts.map +1 -0
  984. package/node_modules/discord-api-types/rest/v10/gateway.js +3 -0
  985. package/node_modules/discord-api-types/rest/v10/gateway.js.map +1 -0
  986. package/node_modules/discord-api-types/rest/v10/guild.d.ts +1062 -0
  987. package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -0
  988. package/node_modules/discord-api-types/rest/v10/guild.js +3 -0
  989. package/node_modules/discord-api-types/rest/v10/guild.js.map +1 -0
  990. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts +124 -0
  991. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.d.ts.map +1 -0
  992. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js +3 -0
  993. package/node_modules/discord-api-types/rest/v10/guildScheduledEvent.js.map +1 -0
  994. package/node_modules/discord-api-types/rest/v10/index.d.ts +87 -0
  995. package/node_modules/discord-api-types/rest/v10/index.d.ts.map +1 -0
  996. package/node_modules/discord-api-types/rest/v10/index.js +1286 -0
  997. package/node_modules/discord-api-types/rest/v10/index.js.map +1 -0
  998. package/node_modules/discord-api-types/rest/v10/index.mjs +15 -0
  999. package/node_modules/discord-api-types/rest/v10/interactions.d.ts +290 -0
  1000. package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -0
  1001. package/node_modules/discord-api-types/rest/v10/interactions.js +3 -0
  1002. package/node_modules/discord-api-types/rest/v10/interactions.js.map +1 -0
  1003. package/node_modules/discord-api-types/rest/v10/invite.d.ts +28 -0
  1004. package/node_modules/discord-api-types/rest/v10/invite.d.ts.map +1 -0
  1005. package/node_modules/discord-api-types/rest/v10/invite.js +3 -0
  1006. package/node_modules/discord-api-types/rest/v10/invite.js.map +1 -0
  1007. package/node_modules/discord-api-types/rest/v10/monetization.d.ts +130 -0
  1008. package/node_modules/discord-api-types/rest/v10/monetization.d.ts.map +1 -0
  1009. package/node_modules/discord-api-types/rest/v10/monetization.js +12 -0
  1010. package/node_modules/discord-api-types/rest/v10/monetization.js.map +1 -0
  1011. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts +193 -0
  1012. package/node_modules/discord-api-types/rest/v10/oauth2.d.ts.map +1 -0
  1013. package/node_modules/discord-api-types/rest/v10/oauth2.js +3 -0
  1014. package/node_modules/discord-api-types/rest/v10/oauth2.js.map +1 -0
  1015. package/node_modules/discord-api-types/rest/v10/poll.d.ts +50 -0
  1016. package/node_modules/discord-api-types/rest/v10/poll.d.ts.map +1 -0
  1017. package/node_modules/discord-api-types/rest/v10/poll.js +3 -0
  1018. package/node_modules/discord-api-types/rest/v10/poll.js.map +1 -0
  1019. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts +98 -0
  1020. package/node_modules/discord-api-types/rest/v10/soundboard.d.ts.map +1 -0
  1021. package/node_modules/discord-api-types/rest/v10/soundboard.js +3 -0
  1022. package/node_modules/discord-api-types/rest/v10/soundboard.js.map +1 -0
  1023. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts +59 -0
  1024. package/node_modules/discord-api-types/rest/v10/stageInstance.d.ts.map +1 -0
  1025. package/node_modules/discord-api-types/rest/v10/stageInstance.js +3 -0
  1026. package/node_modules/discord-api-types/rest/v10/stageInstance.js.map +1 -0
  1027. package/node_modules/discord-api-types/rest/v10/sticker.d.ts +85 -0
  1028. package/node_modules/discord-api-types/rest/v10/sticker.d.ts.map +1 -0
  1029. package/node_modules/discord-api-types/rest/v10/sticker.js +3 -0
  1030. package/node_modules/discord-api-types/rest/v10/sticker.js.map +1 -0
  1031. package/node_modules/discord-api-types/rest/v10/template.d.ts +65 -0
  1032. package/node_modules/discord-api-types/rest/v10/template.d.ts.map +1 -0
  1033. package/node_modules/discord-api-types/rest/v10/template.js +3 -0
  1034. package/node_modules/discord-api-types/rest/v10/template.js.map +1 -0
  1035. package/node_modules/discord-api-types/rest/v10/user.d.ts +122 -0
  1036. package/node_modules/discord-api-types/rest/v10/user.d.ts.map +1 -0
  1037. package/node_modules/discord-api-types/rest/v10/user.js +3 -0
  1038. package/node_modules/discord-api-types/rest/v10/user.js.map +1 -0
  1039. package/node_modules/discord-api-types/rest/v10/voice.d.ts +57 -0
  1040. package/node_modules/discord-api-types/rest/v10/voice.d.ts.map +1 -0
  1041. package/node_modules/discord-api-types/rest/v10/voice.js +3 -0
  1042. package/node_modules/discord-api-types/rest/v10/voice.js.map +1 -0
  1043. package/node_modules/discord-api-types/rest/v10/webhook.d.ts +275 -0
  1044. package/node_modules/discord-api-types/rest/v10/webhook.d.ts.map +1 -0
  1045. package/node_modules/discord-api-types/rest/v10/webhook.js +3 -0
  1046. package/node_modules/discord-api-types/rest/v10/webhook.js.map +1 -0
  1047. package/node_modules/discord-api-types/rest/v6/auditLog.d.ts +17 -0
  1048. package/node_modules/discord-api-types/rest/v6/auditLog.d.ts.map +1 -0
  1049. package/node_modules/discord-api-types/rest/v6/auditLog.js +3 -0
  1050. package/node_modules/discord-api-types/rest/v6/auditLog.js.map +1 -0
  1051. package/node_modules/discord-api-types/rest/v6/channel.d.ts +268 -0
  1052. package/node_modules/discord-api-types/rest/v6/channel.d.ts.map +1 -0
  1053. package/node_modules/discord-api-types/rest/v6/channel.js +15 -0
  1054. package/node_modules/discord-api-types/rest/v6/channel.js.map +1 -0
  1055. package/node_modules/discord-api-types/rest/v6/emoji.d.ts +50 -0
  1056. package/node_modules/discord-api-types/rest/v6/emoji.d.ts.map +1 -0
  1057. package/node_modules/discord-api-types/rest/v6/emoji.js +3 -0
  1058. package/node_modules/discord-api-types/rest/v6/emoji.js.map +1 -0
  1059. package/node_modules/discord-api-types/rest/v6/gateway.d.ts +14 -0
  1060. package/node_modules/discord-api-types/rest/v6/gateway.d.ts.map +1 -0
  1061. package/node_modules/discord-api-types/rest/v6/gateway.js +3 -0
  1062. package/node_modules/discord-api-types/rest/v6/gateway.js.map +1 -0
  1063. package/node_modules/discord-api-types/rest/v6/guild.d.ts +465 -0
  1064. package/node_modules/discord-api-types/rest/v6/guild.d.ts.map +1 -0
  1065. package/node_modules/discord-api-types/rest/v6/guild.js +3 -0
  1066. package/node_modules/discord-api-types/rest/v6/guild.js.map +1 -0
  1067. package/node_modules/discord-api-types/rest/v6/index.d.ts +348 -0
  1068. package/node_modules/discord-api-types/rest/v6/index.d.ts.map +1 -0
  1069. package/node_modules/discord-api-types/rest/v6/index.js +499 -0
  1070. package/node_modules/discord-api-types/rest/v6/index.js.map +1 -0
  1071. package/node_modules/discord-api-types/rest/v6/index.mjs +9 -0
  1072. package/node_modules/discord-api-types/rest/v6/invite.d.ts +20 -0
  1073. package/node_modules/discord-api-types/rest/v6/invite.d.ts.map +1 -0
  1074. package/node_modules/discord-api-types/rest/v6/invite.js +3 -0
  1075. package/node_modules/discord-api-types/rest/v6/invite.js.map +1 -0
  1076. package/node_modules/discord-api-types/rest/v6/oauth2.d.ts +177 -0
  1077. package/node_modules/discord-api-types/rest/v6/oauth2.d.ts.map +1 -0
  1078. package/node_modules/discord-api-types/rest/v6/oauth2.js +3 -0
  1079. package/node_modules/discord-api-types/rest/v6/oauth2.js.map +1 -0
  1080. package/node_modules/discord-api-types/rest/v6/user.d.ts +80 -0
  1081. package/node_modules/discord-api-types/rest/v6/user.d.ts.map +1 -0
  1082. package/node_modules/discord-api-types/rest/v6/user.js +3 -0
  1083. package/node_modules/discord-api-types/rest/v6/user.js.map +1 -0
  1084. package/node_modules/discord-api-types/rest/v6/voice.d.ts +8 -0
  1085. package/node_modules/discord-api-types/rest/v6/voice.d.ts.map +1 -0
  1086. package/node_modules/discord-api-types/rest/v6/voice.js +3 -0
  1087. package/node_modules/discord-api-types/rest/v6/voice.js.map +1 -0
  1088. package/node_modules/discord-api-types/rest/v6/webhook.d.ts +139 -0
  1089. package/node_modules/discord-api-types/rest/v6/webhook.d.ts.map +1 -0
  1090. package/node_modules/discord-api-types/rest/v6/webhook.js +3 -0
  1091. package/node_modules/discord-api-types/rest/v6/webhook.js.map +1 -0
  1092. package/node_modules/discord-api-types/rest/v8/auditLog.d.ts +32 -0
  1093. package/node_modules/discord-api-types/rest/v8/auditLog.d.ts.map +1 -0
  1094. package/node_modules/discord-api-types/rest/v8/auditLog.js +3 -0
  1095. package/node_modules/discord-api-types/rest/v8/auditLog.js.map +1 -0
  1096. package/node_modules/discord-api-types/rest/v8/channel.d.ts +564 -0
  1097. package/node_modules/discord-api-types/rest/v8/channel.d.ts.map +1 -0
  1098. package/node_modules/discord-api-types/rest/v8/channel.js +3 -0
  1099. package/node_modules/discord-api-types/rest/v8/channel.js.map +1 -0
  1100. package/node_modules/discord-api-types/rest/v8/emoji.d.ts +69 -0
  1101. package/node_modules/discord-api-types/rest/v8/emoji.d.ts.map +1 -0
  1102. package/node_modules/discord-api-types/rest/v8/emoji.js +3 -0
  1103. package/node_modules/discord-api-types/rest/v8/emoji.js.map +1 -0
  1104. package/node_modules/discord-api-types/rest/v8/gateway.d.ts +14 -0
  1105. package/node_modules/discord-api-types/rest/v8/gateway.d.ts.map +1 -0
  1106. package/node_modules/discord-api-types/rest/v8/gateway.js +3 -0
  1107. package/node_modules/discord-api-types/rest/v8/gateway.js.map +1 -0
  1108. package/node_modules/discord-api-types/rest/v8/guild.d.ts +882 -0
  1109. package/node_modules/discord-api-types/rest/v8/guild.d.ts.map +1 -0
  1110. package/node_modules/discord-api-types/rest/v8/guild.js +3 -0
  1111. package/node_modules/discord-api-types/rest/v8/guild.js.map +1 -0
  1112. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts +141 -0
  1113. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.d.ts.map +1 -0
  1114. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js +3 -0
  1115. package/node_modules/discord-api-types/rest/v8/guildScheduledEvent.js.map +1 -0
  1116. package/node_modules/discord-api-types/rest/v8/index.d.ts +539 -0
  1117. package/node_modules/discord-api-types/rest/v8/index.d.ts.map +1 -0
  1118. package/node_modules/discord-api-types/rest/v8/index.js +747 -0
  1119. package/node_modules/discord-api-types/rest/v8/index.js.map +1 -0
  1120. package/node_modules/discord-api-types/rest/v8/index.mjs +10 -0
  1121. package/node_modules/discord-api-types/rest/v8/interactions.d.ts +257 -0
  1122. package/node_modules/discord-api-types/rest/v8/interactions.d.ts.map +1 -0
  1123. package/node_modules/discord-api-types/rest/v8/interactions.js +3 -0
  1124. package/node_modules/discord-api-types/rest/v8/interactions.js.map +1 -0
  1125. package/node_modules/discord-api-types/rest/v8/invite.d.ts +32 -0
  1126. package/node_modules/discord-api-types/rest/v8/invite.d.ts.map +1 -0
  1127. package/node_modules/discord-api-types/rest/v8/invite.js +3 -0
  1128. package/node_modules/discord-api-types/rest/v8/invite.js.map +1 -0
  1129. package/node_modules/discord-api-types/rest/v8/oauth2.d.ts +213 -0
  1130. package/node_modules/discord-api-types/rest/v8/oauth2.d.ts.map +1 -0
  1131. package/node_modules/discord-api-types/rest/v8/oauth2.js +3 -0
  1132. package/node_modules/discord-api-types/rest/v8/oauth2.js.map +1 -0
  1133. package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts +63 -0
  1134. package/node_modules/discord-api-types/rest/v8/stageInstance.d.ts.map +1 -0
  1135. package/node_modules/discord-api-types/rest/v8/stageInstance.js +3 -0
  1136. package/node_modules/discord-api-types/rest/v8/stageInstance.js.map +1 -0
  1137. package/node_modules/discord-api-types/rest/v8/sticker.d.ts +70 -0
  1138. package/node_modules/discord-api-types/rest/v8/sticker.d.ts.map +1 -0
  1139. package/node_modules/discord-api-types/rest/v8/sticker.js +3 -0
  1140. package/node_modules/discord-api-types/rest/v8/sticker.js.map +1 -0
  1141. package/node_modules/discord-api-types/rest/v8/template.d.ts +83 -0
  1142. package/node_modules/discord-api-types/rest/v8/template.d.ts.map +1 -0
  1143. package/node_modules/discord-api-types/rest/v8/template.js +3 -0
  1144. package/node_modules/discord-api-types/rest/v8/template.js.map +1 -0
  1145. package/node_modules/discord-api-types/rest/v8/user.d.ts +109 -0
  1146. package/node_modules/discord-api-types/rest/v8/user.d.ts.map +1 -0
  1147. package/node_modules/discord-api-types/rest/v8/user.js +3 -0
  1148. package/node_modules/discord-api-types/rest/v8/user.js.map +1 -0
  1149. package/node_modules/discord-api-types/rest/v8/voice.d.ts +8 -0
  1150. package/node_modules/discord-api-types/rest/v8/voice.d.ts.map +1 -0
  1151. package/node_modules/discord-api-types/rest/v8/voice.js +3 -0
  1152. package/node_modules/discord-api-types/rest/v8/voice.js.map +1 -0
  1153. package/node_modules/discord-api-types/rest/v8/webhook.d.ts +283 -0
  1154. package/node_modules/discord-api-types/rest/v8/webhook.d.ts.map +1 -0
  1155. package/node_modules/discord-api-types/rest/v8/webhook.js +3 -0
  1156. package/node_modules/discord-api-types/rest/v8/webhook.js.map +1 -0
  1157. package/node_modules/discord-api-types/rest/v9/application.d.ts +31 -0
  1158. package/node_modules/discord-api-types/rest/v9/application.d.ts.map +1 -0
  1159. package/node_modules/discord-api-types/rest/v9/application.js +3 -0
  1160. package/node_modules/discord-api-types/rest/v9/application.js.map +1 -0
  1161. package/node_modules/discord-api-types/rest/v9/auditLog.d.ts +31 -0
  1162. package/node_modules/discord-api-types/rest/v9/auditLog.d.ts.map +1 -0
  1163. package/node_modules/discord-api-types/rest/v9/auditLog.js +3 -0
  1164. package/node_modules/discord-api-types/rest/v9/auditLog.js.map +1 -0
  1165. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts +68 -0
  1166. package/node_modules/discord-api-types/rest/v9/autoModeration.d.ts.map +1 -0
  1167. package/node_modules/discord-api-types/rest/v9/autoModeration.js +3 -0
  1168. package/node_modules/discord-api-types/rest/v9/autoModeration.js.map +1 -0
  1169. package/node_modules/discord-api-types/rest/v9/channel.d.ts +777 -0
  1170. package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -0
  1171. package/node_modules/discord-api-types/rest/v9/channel.js +18 -0
  1172. package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -0
  1173. package/node_modules/discord-api-types/rest/v9/emoji.d.ts +85 -0
  1174. package/node_modules/discord-api-types/rest/v9/emoji.d.ts.map +1 -0
  1175. package/node_modules/discord-api-types/rest/v9/emoji.js +3 -0
  1176. package/node_modules/discord-api-types/rest/v9/emoji.js.map +1 -0
  1177. package/node_modules/discord-api-types/rest/v9/gateway.d.ts +10 -0
  1178. package/node_modules/discord-api-types/rest/v9/gateway.d.ts.map +1 -0
  1179. package/node_modules/discord-api-types/rest/v9/gateway.js +3 -0
  1180. package/node_modules/discord-api-types/rest/v9/gateway.js.map +1 -0
  1181. package/node_modules/discord-api-types/rest/v9/guild.d.ts +1068 -0
  1182. package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -0
  1183. package/node_modules/discord-api-types/rest/v9/guild.js +3 -0
  1184. package/node_modules/discord-api-types/rest/v9/guild.js.map +1 -0
  1185. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts +124 -0
  1186. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.d.ts.map +1 -0
  1187. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js +3 -0
  1188. package/node_modules/discord-api-types/rest/v9/guildScheduledEvent.js.map +1 -0
  1189. package/node_modules/discord-api-types/rest/v9/index.d.ts +87 -0
  1190. package/node_modules/discord-api-types/rest/v9/index.d.ts.map +1 -0
  1191. package/node_modules/discord-api-types/rest/v9/index.js +1293 -0
  1192. package/node_modules/discord-api-types/rest/v9/index.js.map +1 -0
  1193. package/node_modules/discord-api-types/rest/v9/index.mjs +15 -0
  1194. package/node_modules/discord-api-types/rest/v9/interactions.d.ts +290 -0
  1195. package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -0
  1196. package/node_modules/discord-api-types/rest/v9/interactions.js +3 -0
  1197. package/node_modules/discord-api-types/rest/v9/interactions.js.map +1 -0
  1198. package/node_modules/discord-api-types/rest/v9/invite.d.ts +28 -0
  1199. package/node_modules/discord-api-types/rest/v9/invite.d.ts.map +1 -0
  1200. package/node_modules/discord-api-types/rest/v9/invite.js +3 -0
  1201. package/node_modules/discord-api-types/rest/v9/invite.js.map +1 -0
  1202. package/node_modules/discord-api-types/rest/v9/monetization.d.ts +130 -0
  1203. package/node_modules/discord-api-types/rest/v9/monetization.d.ts.map +1 -0
  1204. package/node_modules/discord-api-types/rest/v9/monetization.js +12 -0
  1205. package/node_modules/discord-api-types/rest/v9/monetization.js.map +1 -0
  1206. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts +193 -0
  1207. package/node_modules/discord-api-types/rest/v9/oauth2.d.ts.map +1 -0
  1208. package/node_modules/discord-api-types/rest/v9/oauth2.js +3 -0
  1209. package/node_modules/discord-api-types/rest/v9/oauth2.js.map +1 -0
  1210. package/node_modules/discord-api-types/rest/v9/poll.d.ts +50 -0
  1211. package/node_modules/discord-api-types/rest/v9/poll.d.ts.map +1 -0
  1212. package/node_modules/discord-api-types/rest/v9/poll.js +3 -0
  1213. package/node_modules/discord-api-types/rest/v9/poll.js.map +1 -0
  1214. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts +98 -0
  1215. package/node_modules/discord-api-types/rest/v9/soundboard.d.ts.map +1 -0
  1216. package/node_modules/discord-api-types/rest/v9/soundboard.js +3 -0
  1217. package/node_modules/discord-api-types/rest/v9/soundboard.js.map +1 -0
  1218. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts +59 -0
  1219. package/node_modules/discord-api-types/rest/v9/stageInstance.d.ts.map +1 -0
  1220. package/node_modules/discord-api-types/rest/v9/stageInstance.js +3 -0
  1221. package/node_modules/discord-api-types/rest/v9/stageInstance.js.map +1 -0
  1222. package/node_modules/discord-api-types/rest/v9/sticker.d.ts +85 -0
  1223. package/node_modules/discord-api-types/rest/v9/sticker.d.ts.map +1 -0
  1224. package/node_modules/discord-api-types/rest/v9/sticker.js +3 -0
  1225. package/node_modules/discord-api-types/rest/v9/sticker.js.map +1 -0
  1226. package/node_modules/discord-api-types/rest/v9/template.d.ts +65 -0
  1227. package/node_modules/discord-api-types/rest/v9/template.d.ts.map +1 -0
  1228. package/node_modules/discord-api-types/rest/v9/template.js +3 -0
  1229. package/node_modules/discord-api-types/rest/v9/template.js.map +1 -0
  1230. package/node_modules/discord-api-types/rest/v9/user.d.ts +122 -0
  1231. package/node_modules/discord-api-types/rest/v9/user.d.ts.map +1 -0
  1232. package/node_modules/discord-api-types/rest/v9/user.js +3 -0
  1233. package/node_modules/discord-api-types/rest/v9/user.js.map +1 -0
  1234. package/node_modules/discord-api-types/rest/v9/voice.d.ts +57 -0
  1235. package/node_modules/discord-api-types/rest/v9/voice.d.ts.map +1 -0
  1236. package/node_modules/discord-api-types/rest/v9/voice.js +3 -0
  1237. package/node_modules/discord-api-types/rest/v9/voice.js.map +1 -0
  1238. package/node_modules/discord-api-types/rest/v9/webhook.d.ts +275 -0
  1239. package/node_modules/discord-api-types/rest/v9/webhook.d.ts.map +1 -0
  1240. package/node_modules/discord-api-types/rest/v9/webhook.js +3 -0
  1241. package/node_modules/discord-api-types/rest/v9/webhook.js.map +1 -0
  1242. package/node_modules/discord-api-types/rpc/common.d.ts +453 -0
  1243. package/node_modules/discord-api-types/rpc/common.d.ts.map +1 -0
  1244. package/node_modules/discord-api-types/rpc/common.js +240 -0
  1245. package/node_modules/discord-api-types/rpc/common.js.map +1 -0
  1246. package/node_modules/discord-api-types/rpc/index.d.ts +2 -0
  1247. package/node_modules/discord-api-types/rpc/index.d.ts.map +1 -0
  1248. package/node_modules/discord-api-types/rpc/index.js +20 -0
  1249. package/node_modules/discord-api-types/rpc/index.js.map +1 -0
  1250. package/node_modules/discord-api-types/rpc/index.mjs +13 -0
  1251. package/node_modules/discord-api-types/rpc/v10.d.ts +2191 -0
  1252. package/node_modules/discord-api-types/rpc/v10.d.ts.map +1 -0
  1253. package/node_modules/discord-api-types/rpc/v10.js +299 -0
  1254. package/node_modules/discord-api-types/rpc/v10.js.map +1 -0
  1255. package/node_modules/discord-api-types/rpc/v10.mjs +13 -0
  1256. package/node_modules/discord-api-types/rpc/v8.d.ts +39 -0
  1257. package/node_modules/discord-api-types/rpc/v8.d.ts.map +1 -0
  1258. package/node_modules/discord-api-types/rpc/v8.js +18 -0
  1259. package/node_modules/discord-api-types/rpc/v8.js.map +1 -0
  1260. package/node_modules/discord-api-types/rpc/v8.mjs +10 -0
  1261. package/node_modules/discord-api-types/rpc/v9.d.ts +39 -0
  1262. package/node_modules/discord-api-types/rpc/v9.d.ts.map +1 -0
  1263. package/node_modules/discord-api-types/rpc/v9.js +18 -0
  1264. package/node_modules/discord-api-types/rpc/v9.js.map +1 -0
  1265. package/node_modules/discord-api-types/rpc/v9.mjs +10 -0
  1266. package/node_modules/discord-api-types/scripts/versions.mjs +46 -0
  1267. package/node_modules/discord-api-types/utils/index.d.ts +2 -0
  1268. package/node_modules/discord-api-types/utils/index.d.ts.map +1 -0
  1269. package/node_modules/discord-api-types/utils/index.js +20 -0
  1270. package/node_modules/discord-api-types/utils/index.js.map +1 -0
  1271. package/node_modules/discord-api-types/utils/index.mjs +17 -0
  1272. package/node_modules/discord-api-types/utils/internals.d.ts +34 -0
  1273. package/node_modules/discord-api-types/utils/internals.d.ts.map +1 -0
  1274. package/node_modules/discord-api-types/utils/internals.js +13 -0
  1275. package/node_modules/discord-api-types/utils/internals.js.map +1 -0
  1276. package/node_modules/discord-api-types/utils/v10.d.ts +100 -0
  1277. package/node_modules/discord-api-types/utils/v10.d.ts.map +1 -0
  1278. package/node_modules/discord-api-types/utils/v10.js +158 -0
  1279. package/node_modules/discord-api-types/utils/v10.js.map +1 -0
  1280. package/node_modules/discord-api-types/utils/v10.mjs +17 -0
  1281. package/node_modules/discord-api-types/utils/v8.d.ts +66 -0
  1282. package/node_modules/discord-api-types/utils/v8.d.ts.map +1 -0
  1283. package/node_modules/discord-api-types/utils/v8.js +96 -0
  1284. package/node_modules/discord-api-types/utils/v8.js.map +1 -0
  1285. package/node_modules/discord-api-types/utils/v8.mjs +11 -0
  1286. package/node_modules/discord-api-types/utils/v9.d.ts +100 -0
  1287. package/node_modules/discord-api-types/utils/v9.d.ts.map +1 -0
  1288. package/node_modules/discord-api-types/utils/v9.js +158 -0
  1289. package/node_modules/discord-api-types/utils/v9.js.map +1 -0
  1290. package/node_modules/discord-api-types/utils/v9.mjs +17 -0
  1291. package/node_modules/discord-api-types/v10.d.ts +8 -0
  1292. package/node_modules/discord-api-types/v10.d.ts.map +1 -0
  1293. package/node_modules/discord-api-types/v10.js +47 -0
  1294. package/node_modules/discord-api-types/v10.js.map +1 -0
  1295. package/node_modules/discord-api-types/v10.mjs +132 -0
  1296. package/node_modules/discord-api-types/v6.d.ts +5 -0
  1297. package/node_modules/discord-api-types/v6.d.ts.map +1 -0
  1298. package/node_modules/discord-api-types/v6.js +21 -0
  1299. package/node_modules/discord-api-types/v6.js.map +1 -0
  1300. package/node_modules/discord-api-types/v6.mjs +44 -0
  1301. package/node_modules/discord-api-types/v8.d.ts +7 -0
  1302. package/node_modules/discord-api-types/v8.d.ts.map +1 -0
  1303. package/node_modules/discord-api-types/v8.js +46 -0
  1304. package/node_modules/discord-api-types/v8.js.map +1 -0
  1305. package/node_modules/discord-api-types/v8.mjs +72 -0
  1306. package/node_modules/discord-api-types/v9.d.ts +8 -0
  1307. package/node_modules/discord-api-types/v9.d.ts.map +1 -0
  1308. package/node_modules/discord-api-types/v9.js +47 -0
  1309. package/node_modules/discord-api-types/v9.js.map +1 -0
  1310. package/node_modules/discord-api-types/v9.mjs +129 -0
  1311. package/node_modules/discord-api-types/voice/index.d.ts +2 -0
  1312. package/node_modules/discord-api-types/voice/index.d.ts.map +1 -0
  1313. package/node_modules/discord-api-types/voice/index.js +20 -0
  1314. package/node_modules/discord-api-types/voice/index.js.map +1 -0
  1315. package/node_modules/discord-api-types/voice/index.mjs +8 -0
  1316. package/node_modules/discord-api-types/voice/v4.d.ts +174 -0
  1317. package/node_modules/discord-api-types/voice/v4.d.ts.map +1 -0
  1318. package/node_modules/discord-api-types/voice/v4.js +179 -0
  1319. package/node_modules/discord-api-types/voice/v4.js.map +1 -0
  1320. package/node_modules/discord-api-types/voice/v4.mjs +6 -0
  1321. package/node_modules/discord-api-types/voice/v8.d.ts +632 -0
  1322. package/node_modules/discord-api-types/voice/v8.d.ts.map +1 -0
  1323. package/node_modules/discord-api-types/voice/v8.js +236 -0
  1324. package/node_modules/discord-api-types/voice/v8.js.map +1 -0
  1325. package/node_modules/discord-api-types/voice/v8.mjs +8 -0
  1326. package/node_modules/https-proxy-agent/LICENSE +22 -0
  1327. package/node_modules/https-proxy-agent/README.md +70 -0
  1328. package/node_modules/https-proxy-agent/dist/index.d.ts +43 -0
  1329. package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
  1330. package/node_modules/https-proxy-agent/dist/index.js +150 -0
  1331. package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  1332. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +12 -0
  1333. package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
  1334. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +94 -0
  1335. package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  1336. package/node_modules/https-proxy-agent/package.json +50 -0
  1337. package/node_modules/ms/index.js +162 -0
  1338. package/node_modules/ms/license.md +21 -0
  1339. package/node_modules/ms/package.json +38 -0
  1340. package/node_modules/ms/readme.md +59 -0
  1341. package/node_modules/opusscript/LICENSE +20 -0
  1342. package/node_modules/opusscript/README.md +53 -0
  1343. package/node_modules/opusscript/build/COPYING.libopus +44 -0
  1344. package/node_modules/opusscript/build/opusscript_native_nasm.js +93 -0
  1345. package/node_modules/opusscript/build/opusscript_native_wasm.js +77 -0
  1346. package/node_modules/opusscript/build/opusscript_native_wasm.wasm +0 -0
  1347. package/node_modules/opusscript/index.d.ts +100 -0
  1348. package/node_modules/opusscript/index.js +120 -0
  1349. package/node_modules/opusscript/package.json +26 -0
  1350. package/node_modules/prism-media/LICENSE +190 -0
  1351. package/node_modules/prism-media/README.md +69 -0
  1352. package/node_modules/prism-media/package.json +65 -0
  1353. package/node_modules/prism-media/src/core/FFmpeg.js +160 -0
  1354. package/node_modules/prism-media/src/core/VolumeTransformer.js +128 -0
  1355. package/node_modules/prism-media/src/core/WebmBase.js +229 -0
  1356. package/node_modules/prism-media/src/core/index.js +9 -0
  1357. package/node_modules/prism-media/src/index.js +5 -0
  1358. package/node_modules/prism-media/src/opus/OggDemuxer.js +143 -0
  1359. package/node_modules/prism-media/src/opus/Opus.js +212 -0
  1360. package/node_modules/prism-media/src/opus/WebmDemuxer.js +24 -0
  1361. package/node_modules/prism-media/src/opus/index.js +10 -0
  1362. package/node_modules/prism-media/src/util/loader.js +13 -0
  1363. package/node_modules/prism-media/src/vorbis/WebmDemuxer.js +22 -0
  1364. package/node_modules/prism-media/src/vorbis/index.js +8 -0
  1365. package/node_modules/prism-media/typings/index.d.ts +43 -0
  1366. package/node_modules/prism-media/typings/opus.d.ts +30 -0
  1367. package/node_modules/prism-media/typings/vorbis.d.ts +5 -0
  1368. package/node_modules/tslib/CopyrightNotice.txt +15 -0
  1369. package/node_modules/tslib/LICENSE.txt +12 -0
  1370. package/node_modules/tslib/README.md +164 -0
  1371. package/node_modules/tslib/SECURITY.md +41 -0
  1372. package/node_modules/tslib/modules/index.d.ts +38 -0
  1373. package/node_modules/tslib/modules/index.js +70 -0
  1374. package/node_modules/tslib/modules/package.json +3 -0
  1375. package/node_modules/tslib/package.json +47 -0
  1376. package/node_modules/tslib/tslib.d.ts +460 -0
  1377. package/node_modules/tslib/tslib.es6.html +1 -0
  1378. package/node_modules/tslib/tslib.es6.js +402 -0
  1379. package/node_modules/tslib/tslib.es6.mjs +401 -0
  1380. package/node_modules/tslib/tslib.html +1 -0
  1381. package/node_modules/tslib/tslib.js +484 -0
  1382. package/node_modules/typebox/build/compile/code.d.mts +12 -0
  1383. package/node_modules/typebox/build/compile/code.mjs +65 -0
  1384. package/node_modules/typebox/build/compile/compile.d.mts +6 -0
  1385. package/node_modules/typebox/build/compile/compile.mjs +12 -0
  1386. package/node_modules/typebox/build/compile/index.d.mts +8 -0
  1387. package/node_modules/typebox/build/compile/index.mjs +14 -0
  1388. package/node_modules/typebox/build/compile/validator.d.mts +43 -0
  1389. package/node_modules/typebox/build/compile/validator.mjs +121 -0
  1390. package/node_modules/typebox/build/error/errors.d.mts +214 -0
  1391. package/node_modules/typebox/build/error/errors.mjs +18 -0
  1392. package/node_modules/typebox/build/error/index.d.mts +1 -0
  1393. package/node_modules/typebox/build/error/index.mjs +1 -0
  1394. package/node_modules/typebox/build/format/_idna.d.mts +2 -0
  1395. package/node_modules/typebox/build/format/_idna.mjs +216 -0
  1396. package/node_modules/typebox/build/format/_puny.d.mts +1 -0
  1397. package/node_modules/typebox/build/format/_puny.mjs +74 -0
  1398. package/node_modules/typebox/build/format/_registry.d.mts +15 -0
  1399. package/node_modules/typebox/build/format/_registry.mjs +96 -0
  1400. package/node_modules/typebox/build/format/date.d.mts +6 -0
  1401. package/node_modules/typebox/build/format/date.mjs +19 -0
  1402. package/node_modules/typebox/build/format/date_time.d.mts +6 -0
  1403. package/node_modules/typebox/build/format/date_time.mjs +11 -0
  1404. package/node_modules/typebox/build/format/duration.d.mts +5 -0
  1405. package/node_modules/typebox/build/format/duration.mjs +8 -0
  1406. package/node_modules/typebox/build/format/email.d.mts +5 -0
  1407. package/node_modules/typebox/build/format/email.mjs +8 -0
  1408. package/node_modules/typebox/build/format/format.d.mts +22 -0
  1409. package/node_modules/typebox/build/format/format.mjs +22 -0
  1410. package/node_modules/typebox/build/format/hostname.d.mts +7 -0
  1411. package/node_modules/typebox/build/format/hostname.mjs +18 -0
  1412. package/node_modules/typebox/build/format/idn_email.d.mts +5 -0
  1413. package/node_modules/typebox/build/format/idn_email.mjs +8 -0
  1414. package/node_modules/typebox/build/format/idn_hostname.d.mts +7 -0
  1415. package/node_modules/typebox/build/format/idn_hostname.mjs +19 -0
  1416. package/node_modules/typebox/build/format/index.d.mts +4 -0
  1417. package/node_modules/typebox/build/format/index.mjs +4 -0
  1418. package/node_modules/typebox/build/format/ipv4.d.mts +6 -0
  1419. package/node_modules/typebox/build/format/ipv4.mjs +38 -0
  1420. package/node_modules/typebox/build/format/ipv6.d.mts +5 -0
  1421. package/node_modules/typebox/build/format/ipv6.mjs +67 -0
  1422. package/node_modules/typebox/build/format/iri.d.mts +5 -0
  1423. package/node_modules/typebox/build/format/iri.mjs +13 -0
  1424. package/node_modules/typebox/build/format/iri_reference.d.mts +5 -0
  1425. package/node_modules/typebox/build/format/iri_reference.mjs +60 -0
  1426. package/node_modules/typebox/build/format/json_pointer.d.mts +6 -0
  1427. package/node_modules/typebox/build/format/json_pointer.mjs +9 -0
  1428. package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +6 -0
  1429. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +9 -0
  1430. package/node_modules/typebox/build/format/regex.d.mts +6 -0
  1431. package/node_modules/typebox/build/format/regex.mjs +17 -0
  1432. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +6 -0
  1433. package/node_modules/typebox/build/format/relative_json_pointer.mjs +9 -0
  1434. package/node_modules/typebox/build/format/time.d.mts +5 -0
  1435. package/node_modules/typebox/build/format/time.mjs +27 -0
  1436. package/node_modules/typebox/build/format/uri.d.mts +5 -0
  1437. package/node_modules/typebox/build/format/uri.mjs +135 -0
  1438. package/node_modules/typebox/build/format/uri_reference.d.mts +5 -0
  1439. package/node_modules/typebox/build/format/uri_reference.mjs +9 -0
  1440. package/node_modules/typebox/build/format/uri_template.d.mts +6 -0
  1441. package/node_modules/typebox/build/format/uri_template.mjs +10 -0
  1442. package/node_modules/typebox/build/format/url.d.mts +6 -0
  1443. package/node_modules/typebox/build/format/url.mjs +9 -0
  1444. package/node_modules/typebox/build/format/uuid.d.mts +6 -0
  1445. package/node_modules/typebox/build/format/uuid.mjs +9 -0
  1446. package/node_modules/typebox/build/guard/emit.d.mts +58 -0
  1447. package/node_modules/typebox/build/guard/emit.mjs +194 -0
  1448. package/node_modules/typebox/build/guard/globals.d.mts +35 -0
  1449. package/node_modules/typebox/build/guard/globals.mjs +90 -0
  1450. package/node_modules/typebox/build/guard/guard.d.mts +69 -0
  1451. package/node_modules/typebox/build/guard/guard.mjs +217 -0
  1452. package/node_modules/typebox/build/guard/index.d.mts +6 -0
  1453. package/node_modules/typebox/build/guard/index.mjs +6 -0
  1454. package/node_modules/typebox/build/guard/native.d.mts +20 -0
  1455. package/node_modules/typebox/build/guard/native.mjs +60 -0
  1456. package/node_modules/typebox/build/guard/string.d.mts +6 -0
  1457. package/node_modules/typebox/build/guard/string.mjs +164 -0
  1458. package/node_modules/typebox/build/index.d.mts +8 -0
  1459. package/node_modules/typebox/build/index.mjs +14 -0
  1460. package/node_modules/typebox/build/schema/build.d.mts +39 -0
  1461. package/node_modules/typebox/build/schema/build.mjs +118 -0
  1462. package/node_modules/typebox/build/schema/check.d.mts +6 -0
  1463. package/node_modules/typebox/build/schema/check.mjs +14 -0
  1464. package/node_modules/typebox/build/schema/compile.d.mts +22 -0
  1465. package/node_modules/typebox/build/schema/compile.mjs +46 -0
  1466. package/node_modules/typebox/build/schema/engine/_context.d.mts +35 -0
  1467. package/node_modules/typebox/build/schema/engine/_context.mjs +129 -0
  1468. package/node_modules/typebox/build/schema/engine/_exact_optional.d.mts +3 -0
  1469. package/node_modules/typebox/build/schema/engine/_exact_optional.mjs +20 -0
  1470. package/node_modules/typebox/build/schema/engine/_externals.d.mts +7 -0
  1471. package/node_modules/typebox/build/schema/engine/_externals.mjs +25 -0
  1472. package/node_modules/typebox/build/schema/engine/_functions.d.mts +6 -0
  1473. package/node_modules/typebox/build/schema/engine/_functions.mjs +47 -0
  1474. package/node_modules/typebox/build/schema/engine/_guard.d.mts +6 -0
  1475. package/node_modules/typebox/build/schema/engine/_guard.mjs +26 -0
  1476. package/node_modules/typebox/build/schema/engine/_reducer.d.mts +4 -0
  1477. package/node_modules/typebox/build/schema/engine/_reducer.mjs +45 -0
  1478. package/node_modules/typebox/build/schema/engine/_refine.d.mts +6 -0
  1479. package/node_modules/typebox/build/schema/engine/_refine.mjs +29 -0
  1480. package/node_modules/typebox/build/schema/engine/_stack.d.mts +18 -0
  1481. package/node_modules/typebox/build/schema/engine/_stack.mjs +107 -0
  1482. package/node_modules/typebox/build/schema/engine/_unique.d.mts +2 -0
  1483. package/node_modules/typebox/build/schema/engine/_unique.mjs +5 -0
  1484. package/node_modules/typebox/build/schema/engine/additionalItems.d.mts +6 -0
  1485. package/node_modules/typebox/build/schema/engine/additionalItems.mjs +50 -0
  1486. package/node_modules/typebox/build/schema/engine/additionalProperties.d.mts +9 -0
  1487. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +110 -0
  1488. package/node_modules/typebox/build/schema/engine/allOf.d.mts +6 -0
  1489. package/node_modules/typebox/build/schema/engine/allOf.mjs +47 -0
  1490. package/node_modules/typebox/build/schema/engine/anyOf.d.mts +6 -0
  1491. package/node_modules/typebox/build/schema/engine/anyOf.mjs +52 -0
  1492. package/node_modules/typebox/build/schema/engine/boolean.d.mts +5 -0
  1493. package/node_modules/typebox/build/schema/engine/boolean.mjs +25 -0
  1494. package/node_modules/typebox/build/schema/engine/const.d.mts +6 -0
  1495. package/node_modules/typebox/build/schema/engine/const.mjs +30 -0
  1496. package/node_modules/typebox/build/schema/engine/contains.d.mts +6 -0
  1497. package/node_modules/typebox/build/schema/engine/contains.mjs +42 -0
  1498. package/node_modules/typebox/build/schema/engine/dependencies.d.mts +6 -0
  1499. package/node_modules/typebox/build/schema/engine/dependencies.mjs +45 -0
  1500. package/node_modules/typebox/build/schema/engine/dependentRequired.d.mts +6 -0
  1501. package/node_modules/typebox/build/schema/engine/dependentRequired.mjs +40 -0
  1502. package/node_modules/typebox/build/schema/engine/dependentSchemas.d.mts +6 -0
  1503. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +38 -0
  1504. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +6 -0
  1505. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +25 -0
  1506. package/node_modules/typebox/build/schema/engine/enum.d.mts +6 -0
  1507. package/node_modules/typebox/build/schema/engine/enum.mjs +33 -0
  1508. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.d.mts +6 -0
  1509. package/node_modules/typebox/build/schema/engine/exclusiveMaximum.mjs +25 -0
  1510. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.d.mts +6 -0
  1511. package/node_modules/typebox/build/schema/engine/exclusiveMinimum.mjs +25 -0
  1512. package/node_modules/typebox/build/schema/engine/format.d.mts +6 -0
  1513. package/node_modules/typebox/build/schema/engine/format.mjs +26 -0
  1514. package/node_modules/typebox/build/schema/engine/if.d.mts +6 -0
  1515. package/node_modules/typebox/build/schema/engine/if.mjs +47 -0
  1516. package/node_modules/typebox/build/schema/engine/index.d.mts +49 -0
  1517. package/node_modules/typebox/build/schema/engine/index.mjs +55 -0
  1518. package/node_modules/typebox/build/schema/engine/items.d.mts +6 -0
  1519. package/node_modules/typebox/build/schema/engine/items.mjs +68 -0
  1520. package/node_modules/typebox/build/schema/engine/maxContains.d.mts +6 -0
  1521. package/node_modules/typebox/build/schema/engine/maxContains.mjs +42 -0
  1522. package/node_modules/typebox/build/schema/engine/maxItems.d.mts +6 -0
  1523. package/node_modules/typebox/build/schema/engine/maxItems.mjs +25 -0
  1524. package/node_modules/typebox/build/schema/engine/maxLength.d.mts +6 -0
  1525. package/node_modules/typebox/build/schema/engine/maxLength.mjs +25 -0
  1526. package/node_modules/typebox/build/schema/engine/maxProperties.d.mts +6 -0
  1527. package/node_modules/typebox/build/schema/engine/maxProperties.mjs +25 -0
  1528. package/node_modules/typebox/build/schema/engine/maximum.d.mts +6 -0
  1529. package/node_modules/typebox/build/schema/engine/maximum.mjs +25 -0
  1530. package/node_modules/typebox/build/schema/engine/minContains.d.mts +6 -0
  1531. package/node_modules/typebox/build/schema/engine/minContains.mjs +41 -0
  1532. package/node_modules/typebox/build/schema/engine/minItems.d.mts +6 -0
  1533. package/node_modules/typebox/build/schema/engine/minItems.mjs +25 -0
  1534. package/node_modules/typebox/build/schema/engine/minLength.d.mts +6 -0
  1535. package/node_modules/typebox/build/schema/engine/minLength.mjs +25 -0
  1536. package/node_modules/typebox/build/schema/engine/minProperties.d.mts +6 -0
  1537. package/node_modules/typebox/build/schema/engine/minProperties.mjs +25 -0
  1538. package/node_modules/typebox/build/schema/engine/minimum.d.mts +6 -0
  1539. package/node_modules/typebox/build/schema/engine/minimum.mjs +25 -0
  1540. package/node_modules/typebox/build/schema/engine/multipleOf.d.mts +6 -0
  1541. package/node_modules/typebox/build/schema/engine/multipleOf.mjs +25 -0
  1542. package/node_modules/typebox/build/schema/engine/not.d.mts +6 -0
  1543. package/node_modules/typebox/build/schema/engine/not.mjs +37 -0
  1544. package/node_modules/typebox/build/schema/engine/oneOf.d.mts +6 -0
  1545. package/node_modules/typebox/build/schema/engine/oneOf.mjs +58 -0
  1546. package/node_modules/typebox/build/schema/engine/pattern.d.mts +6 -0
  1547. package/node_modules/typebox/build/schema/engine/pattern.mjs +28 -0
  1548. package/node_modules/typebox/build/schema/engine/patternProperties.d.mts +6 -0
  1549. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +44 -0
  1550. package/node_modules/typebox/build/schema/engine/prefixItems.d.mts +6 -0
  1551. package/node_modules/typebox/build/schema/engine/prefixItems.mjs +35 -0
  1552. package/node_modules/typebox/build/schema/engine/properties.d.mts +6 -0
  1553. package/node_modules/typebox/build/schema/engine/properties.mjs +75 -0
  1554. package/node_modules/typebox/build/schema/engine/propertyNames.d.mts +6 -0
  1555. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +39 -0
  1556. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +6 -0
  1557. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +25 -0
  1558. package/node_modules/typebox/build/schema/engine/ref.d.mts +6 -0
  1559. package/node_modules/typebox/build/schema/engine/ref.mjs +58 -0
  1560. package/node_modules/typebox/build/schema/engine/required.d.mts +6 -0
  1561. package/node_modules/typebox/build/schema/engine/required.mjs +32 -0
  1562. package/node_modules/typebox/build/schema/engine/schema.d.mts +9 -0
  1563. package/node_modules/typebox/build/schema/engine/schema.mjs +352 -0
  1564. package/node_modules/typebox/build/schema/engine/type.d.mts +6 -0
  1565. package/node_modules/typebox/build/schema/engine/type.mjs +74 -0
  1566. package/node_modules/typebox/build/schema/engine/unevaluatedItems.d.mts +6 -0
  1567. package/node_modules/typebox/build/schema/engine/unevaluatedItems.mjs +51 -0
  1568. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.d.mts +6 -0
  1569. package/node_modules/typebox/build/schema/engine/unevaluatedProperties.mjs +51 -0
  1570. package/node_modules/typebox/build/schema/engine/uniqueItems.d.mts +6 -0
  1571. package/node_modules/typebox/build/schema/engine/uniqueItems.mjs +51 -0
  1572. package/node_modules/typebox/build/schema/errors.d.mts +6 -0
  1573. package/node_modules/typebox/build/schema/errors.mjs +24 -0
  1574. package/node_modules/typebox/build/schema/index.d.mts +3 -0
  1575. package/node_modules/typebox/build/schema/index.mjs +9 -0
  1576. package/node_modules/typebox/build/schema/parse.d.mts +13 -0
  1577. package/node_modules/typebox/build/schema/parse.mjs +27 -0
  1578. package/node_modules/typebox/build/schema/pointer/index.d.mts +2 -0
  1579. package/node_modules/typebox/build/schema/pointer/index.mjs +2 -0
  1580. package/node_modules/typebox/build/schema/pointer/pointer.d.mts +10 -0
  1581. package/node_modules/typebox/build/schema/pointer/pointer.mjs +106 -0
  1582. package/node_modules/typebox/build/schema/pointer/pointer_get.d.mts +9 -0
  1583. package/node_modules/typebox/build/schema/pointer/pointer_get.mjs +2 -0
  1584. package/node_modules/typebox/build/schema/resolve/index.d.mts +1 -0
  1585. package/node_modules/typebox/build/schema/resolve/index.mjs +1 -0
  1586. package/node_modules/typebox/build/schema/resolve/ref.d.mts +3 -0
  1587. package/node_modules/typebox/build/schema/resolve/ref.mjs +146 -0
  1588. package/node_modules/typebox/build/schema/resolve/resolve.d.mts +1 -0
  1589. package/node_modules/typebox/build/schema/resolve/resolve.mjs +1 -0
  1590. package/node_modules/typebox/build/schema/schema.d.mts +10 -0
  1591. package/node_modules/typebox/build/schema/schema.mjs +10 -0
  1592. package/node_modules/typebox/build/schema/static/_canonical.d.mts +7 -0
  1593. package/node_modules/typebox/build/schema/static/_canonical.mjs +2 -0
  1594. package/node_modules/typebox/build/schema/static/_comparer.d.mts +6 -0
  1595. package/node_modules/typebox/build/schema/static/_comparer.mjs +2 -0
  1596. package/node_modules/typebox/build/schema/static/_elements.d.mts +18 -0
  1597. package/node_modules/typebox/build/schema/static/_elements.mjs +2 -0
  1598. package/node_modules/typebox/build/schema/static/additionalProperties.d.mts +7 -0
  1599. package/node_modules/typebox/build/schema/static/additionalProperties.mjs +3 -0
  1600. package/node_modules/typebox/build/schema/static/allOf.d.mts +3 -0
  1601. package/node_modules/typebox/build/schema/static/allOf.mjs +2 -0
  1602. package/node_modules/typebox/build/schema/static/anyOf.d.mts +3 -0
  1603. package/node_modules/typebox/build/schema/static/anyOf.mjs +2 -0
  1604. package/node_modules/typebox/build/schema/static/const.d.mts +1 -0
  1605. package/node_modules/typebox/build/schema/static/const.mjs +2 -0
  1606. package/node_modules/typebox/build/schema/static/enum.d.mts +1 -0
  1607. package/node_modules/typebox/build/schema/static/enum.mjs +2 -0
  1608. package/node_modules/typebox/build/schema/static/if.d.mts +15 -0
  1609. package/node_modules/typebox/build/schema/static/if.mjs +2 -0
  1610. package/node_modules/typebox/build/schema/static/index.d.mts +1 -0
  1611. package/node_modules/typebox/build/schema/static/index.mjs +1 -0
  1612. package/node_modules/typebox/build/schema/static/items.d.mts +7 -0
  1613. package/node_modules/typebox/build/schema/static/items.mjs +2 -0
  1614. package/node_modules/typebox/build/schema/static/oneOf.d.mts +3 -0
  1615. package/node_modules/typebox/build/schema/static/oneOf.mjs +2 -0
  1616. package/node_modules/typebox/build/schema/static/patternProperties.d.mts +7 -0
  1617. package/node_modules/typebox/build/schema/static/patternProperties.mjs +2 -0
  1618. package/node_modules/typebox/build/schema/static/prefixItems.d.mts +3 -0
  1619. package/node_modules/typebox/build/schema/static/prefixItems.mjs +2 -0
  1620. package/node_modules/typebox/build/schema/static/properties.d.mts +32 -0
  1621. package/node_modules/typebox/build/schema/static/properties.mjs +2 -0
  1622. package/node_modules/typebox/build/schema/static/ref.d.mts +8 -0
  1623. package/node_modules/typebox/build/schema/static/ref.mjs +3 -0
  1624. package/node_modules/typebox/build/schema/static/required.d.mts +3 -0
  1625. package/node_modules/typebox/build/schema/static/required.mjs +3 -0
  1626. package/node_modules/typebox/build/schema/static/schema.d.mts +56 -0
  1627. package/node_modules/typebox/build/schema/static/schema.mjs +2 -0
  1628. package/node_modules/typebox/build/schema/static/static.d.mts +4 -0
  1629. package/node_modules/typebox/build/schema/static/static.mjs +3 -0
  1630. package/node_modules/typebox/build/schema/static/type.d.mts +4 -0
  1631. package/node_modules/typebox/build/schema/static/type.mjs +3 -0
  1632. package/node_modules/typebox/build/schema/static/unevaluatedProperties.d.mts +7 -0
  1633. package/node_modules/typebox/build/schema/static/unevaluatedProperties.mjs +3 -0
  1634. package/node_modules/typebox/build/schema/types/_guard.d.mts +10 -0
  1635. package/node_modules/typebox/build/schema/types/_guard.mjs +16 -0
  1636. package/node_modules/typebox/build/schema/types/_refine.d.mts +13 -0
  1637. package/node_modules/typebox/build/schema/types/_refine.mjs +18 -0
  1638. package/node_modules/typebox/build/schema/types/additionalItems.d.mts +9 -0
  1639. package/node_modules/typebox/build/schema/types/additionalItems.mjs +14 -0
  1640. package/node_modules/typebox/build/schema/types/additionalProperties.d.mts +9 -0
  1641. package/node_modules/typebox/build/schema/types/additionalProperties.mjs +14 -0
  1642. package/node_modules/typebox/build/schema/types/allOf.d.mts +9 -0
  1643. package/node_modules/typebox/build/schema/types/allOf.mjs +15 -0
  1644. package/node_modules/typebox/build/schema/types/anchor.d.mts +8 -0
  1645. package/node_modules/typebox/build/schema/types/anchor.mjs +12 -0
  1646. package/node_modules/typebox/build/schema/types/anyOf.d.mts +9 -0
  1647. package/node_modules/typebox/build/schema/types/anyOf.mjs +15 -0
  1648. package/node_modules/typebox/build/schema/types/const.d.mts +9 -0
  1649. package/node_modules/typebox/build/schema/types/const.mjs +12 -0
  1650. package/node_modules/typebox/build/schema/types/contains.d.mts +9 -0
  1651. package/node_modules/typebox/build/schema/types/contains.mjs +14 -0
  1652. package/node_modules/typebox/build/schema/types/contentEncoding.d.mts +9 -0
  1653. package/node_modules/typebox/build/schema/types/contentEncoding.mjs +13 -0
  1654. package/node_modules/typebox/build/schema/types/contentMediaType.d.mts +9 -0
  1655. package/node_modules/typebox/build/schema/types/contentMediaType.mjs +13 -0
  1656. package/node_modules/typebox/build/schema/types/default.d.mts +9 -0
  1657. package/node_modules/typebox/build/schema/types/default.mjs +12 -0
  1658. package/node_modules/typebox/build/schema/types/defs.d.mts +6 -0
  1659. package/node_modules/typebox/build/schema/types/defs.mjs +12 -0
  1660. package/node_modules/typebox/build/schema/types/dependencies.d.mts +11 -0
  1661. package/node_modules/typebox/build/schema/types/dependencies.mjs +16 -0
  1662. package/node_modules/typebox/build/schema/types/dependentRequired.d.mts +9 -0
  1663. package/node_modules/typebox/build/schema/types/dependentRequired.mjs +15 -0
  1664. package/node_modules/typebox/build/schema/types/dependentSchemas.d.mts +9 -0
  1665. package/node_modules/typebox/build/schema/types/dependentSchemas.mjs +15 -0
  1666. package/node_modules/typebox/build/schema/types/dynamicAnchor.d.mts +8 -0
  1667. package/node_modules/typebox/build/schema/types/dynamicAnchor.mjs +12 -0
  1668. package/node_modules/typebox/build/schema/types/dynamicRef.d.mts +8 -0
  1669. package/node_modules/typebox/build/schema/types/dynamicRef.mjs +12 -0
  1670. package/node_modules/typebox/build/schema/types/else.d.mts +9 -0
  1671. package/node_modules/typebox/build/schema/types/else.mjs +14 -0
  1672. package/node_modules/typebox/build/schema/types/enum.d.mts +9 -0
  1673. package/node_modules/typebox/build/schema/types/enum.mjs +13 -0
  1674. package/node_modules/typebox/build/schema/types/exclusiveMaximum.d.mts +9 -0
  1675. package/node_modules/typebox/build/schema/types/exclusiveMaximum.mjs +13 -0
  1676. package/node_modules/typebox/build/schema/types/exclusiveMinimum.d.mts +9 -0
  1677. package/node_modules/typebox/build/schema/types/exclusiveMinimum.mjs +13 -0
  1678. package/node_modules/typebox/build/schema/types/format.d.mts +9 -0
  1679. package/node_modules/typebox/build/schema/types/format.mjs +13 -0
  1680. package/node_modules/typebox/build/schema/types/id.d.mts +9 -0
  1681. package/node_modules/typebox/build/schema/types/id.mjs +13 -0
  1682. package/node_modules/typebox/build/schema/types/if.d.mts +9 -0
  1683. package/node_modules/typebox/build/schema/types/if.mjs +14 -0
  1684. package/node_modules/typebox/build/schema/types/index.d.mts +54 -0
  1685. package/node_modules/typebox/build/schema/types/index.mjs +60 -0
  1686. package/node_modules/typebox/build/schema/types/items.d.mts +19 -0
  1687. package/node_modules/typebox/build/schema/types/items.mjs +26 -0
  1688. package/node_modules/typebox/build/schema/types/maxContains.d.mts +9 -0
  1689. package/node_modules/typebox/build/schema/types/maxContains.mjs +13 -0
  1690. package/node_modules/typebox/build/schema/types/maxItems.d.mts +9 -0
  1691. package/node_modules/typebox/build/schema/types/maxItems.mjs +13 -0
  1692. package/node_modules/typebox/build/schema/types/maxLength.d.mts +9 -0
  1693. package/node_modules/typebox/build/schema/types/maxLength.mjs +13 -0
  1694. package/node_modules/typebox/build/schema/types/maxProperties.d.mts +9 -0
  1695. package/node_modules/typebox/build/schema/types/maxProperties.mjs +13 -0
  1696. package/node_modules/typebox/build/schema/types/maximum.d.mts +9 -0
  1697. package/node_modules/typebox/build/schema/types/maximum.mjs +13 -0
  1698. package/node_modules/typebox/build/schema/types/minContains.d.mts +9 -0
  1699. package/node_modules/typebox/build/schema/types/minContains.mjs +13 -0
  1700. package/node_modules/typebox/build/schema/types/minItems.d.mts +9 -0
  1701. package/node_modules/typebox/build/schema/types/minItems.mjs +13 -0
  1702. package/node_modules/typebox/build/schema/types/minLength.d.mts +9 -0
  1703. package/node_modules/typebox/build/schema/types/minLength.mjs +13 -0
  1704. package/node_modules/typebox/build/schema/types/minProperties.d.mts +9 -0
  1705. package/node_modules/typebox/build/schema/types/minProperties.mjs +13 -0
  1706. package/node_modules/typebox/build/schema/types/minimum.d.mts +9 -0
  1707. package/node_modules/typebox/build/schema/types/minimum.mjs +13 -0
  1708. package/node_modules/typebox/build/schema/types/multipleOf.d.mts +9 -0
  1709. package/node_modules/typebox/build/schema/types/multipleOf.mjs +13 -0
  1710. package/node_modules/typebox/build/schema/types/not.d.mts +9 -0
  1711. package/node_modules/typebox/build/schema/types/not.mjs +14 -0
  1712. package/node_modules/typebox/build/schema/types/oneOf.d.mts +9 -0
  1713. package/node_modules/typebox/build/schema/types/oneOf.mjs +15 -0
  1714. package/node_modules/typebox/build/schema/types/pattern.d.mts +9 -0
  1715. package/node_modules/typebox/build/schema/types/pattern.mjs +14 -0
  1716. package/node_modules/typebox/build/schema/types/patternProperties.d.mts +9 -0
  1717. package/node_modules/typebox/build/schema/types/patternProperties.mjs +15 -0
  1718. package/node_modules/typebox/build/schema/types/prefixItems.d.mts +8 -0
  1719. package/node_modules/typebox/build/schema/types/prefixItems.mjs +14 -0
  1720. package/node_modules/typebox/build/schema/types/properties.d.mts +9 -0
  1721. package/node_modules/typebox/build/schema/types/properties.mjs +15 -0
  1722. package/node_modules/typebox/build/schema/types/propertyNames.d.mts +9 -0
  1723. package/node_modules/typebox/build/schema/types/propertyNames.mjs +15 -0
  1724. package/node_modules/typebox/build/schema/types/recursiveAnchor.d.mts +12 -0
  1725. package/node_modules/typebox/build/schema/types/recursiveAnchor.mjs +19 -0
  1726. package/node_modules/typebox/build/schema/types/recursiveRef.d.mts +8 -0
  1727. package/node_modules/typebox/build/schema/types/recursiveRef.mjs +12 -0
  1728. package/node_modules/typebox/build/schema/types/ref.d.mts +9 -0
  1729. package/node_modules/typebox/build/schema/types/ref.mjs +13 -0
  1730. package/node_modules/typebox/build/schema/types/required.d.mts +9 -0
  1731. package/node_modules/typebox/build/schema/types/required.mjs +14 -0
  1732. package/node_modules/typebox/build/schema/types/schema.d.mts +9 -0
  1733. package/node_modules/typebox/build/schema/types/schema.mjs +14 -0
  1734. package/node_modules/typebox/build/schema/types/then.d.mts +9 -0
  1735. package/node_modules/typebox/build/schema/types/then.mjs +14 -0
  1736. package/node_modules/typebox/build/schema/types/type.d.mts +9 -0
  1737. package/node_modules/typebox/build/schema/types/type.mjs +15 -0
  1738. package/node_modules/typebox/build/schema/types/unevaluatedItems.d.mts +9 -0
  1739. package/node_modules/typebox/build/schema/types/unevaluatedItems.mjs +14 -0
  1740. package/node_modules/typebox/build/schema/types/unevaluatedProperties.d.mts +9 -0
  1741. package/node_modules/typebox/build/schema/types/unevaluatedProperties.mjs +14 -0
  1742. package/node_modules/typebox/build/schema/types/uniqueItems.d.mts +9 -0
  1743. package/node_modules/typebox/build/schema/types/uniqueItems.mjs +13 -0
  1744. package/node_modules/typebox/build/system/arguments/arguments.d.mts +5 -0
  1745. package/node_modules/typebox/build/system/arguments/arguments.mjs +9 -0
  1746. package/node_modules/typebox/build/system/arguments/index.d.mts +1 -0
  1747. package/node_modules/typebox/build/system/arguments/index.mjs +1 -0
  1748. package/node_modules/typebox/build/system/environment/environment.d.mts +1 -0
  1749. package/node_modules/typebox/build/system/environment/environment.mjs +1 -0
  1750. package/node_modules/typebox/build/system/environment/evaluate.d.mts +9 -0
  1751. package/node_modules/typebox/build/system/environment/evaluate.mjs +37 -0
  1752. package/node_modules/typebox/build/system/environment/index.d.mts +1 -0
  1753. package/node_modules/typebox/build/system/environment/index.mjs +1 -0
  1754. package/node_modules/typebox/build/system/hashing/hash.d.mts +4 -0
  1755. package/node_modules/typebox/build/system/hashing/hash.mjs +232 -0
  1756. package/node_modules/typebox/build/system/hashing/index.d.mts +1 -0
  1757. package/node_modules/typebox/build/system/hashing/index.mjs +1 -0
  1758. package/node_modules/typebox/build/system/index.d.mts +4 -0
  1759. package/node_modules/typebox/build/system/index.mjs +4 -0
  1760. package/node_modules/typebox/build/system/locale/_config.d.mts +7 -0
  1761. package/node_modules/typebox/build/system/locale/_config.mjs +15 -0
  1762. package/node_modules/typebox/build/system/locale/_locale.d.mts +40 -0
  1763. package/node_modules/typebox/build/system/locale/_locale.mjs +40 -0
  1764. package/node_modules/typebox/build/system/locale/ar_001.d.mts +3 -0
  1765. package/node_modules/typebox/build/system/locale/ar_001.mjs +41 -0
  1766. package/node_modules/typebox/build/system/locale/bn_BD.d.mts +3 -0
  1767. package/node_modules/typebox/build/system/locale/bn_BD.mjs +41 -0
  1768. package/node_modules/typebox/build/system/locale/cs_CZ.d.mts +3 -0
  1769. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +41 -0
  1770. package/node_modules/typebox/build/system/locale/de_DE.d.mts +3 -0
  1771. package/node_modules/typebox/build/system/locale/de_DE.mjs +41 -0
  1772. package/node_modules/typebox/build/system/locale/el_GR.d.mts +3 -0
  1773. package/node_modules/typebox/build/system/locale/el_GR.mjs +41 -0
  1774. package/node_modules/typebox/build/system/locale/en_US.d.mts +3 -0
  1775. package/node_modules/typebox/build/system/locale/en_US.mjs +40 -0
  1776. package/node_modules/typebox/build/system/locale/es_419.d.mts +3 -0
  1777. package/node_modules/typebox/build/system/locale/es_419.mjs +41 -0
  1778. package/node_modules/typebox/build/system/locale/es_AR.d.mts +3 -0
  1779. package/node_modules/typebox/build/system/locale/es_AR.mjs +41 -0
  1780. package/node_modules/typebox/build/system/locale/es_ES.d.mts +3 -0
  1781. package/node_modules/typebox/build/system/locale/es_ES.mjs +41 -0
  1782. package/node_modules/typebox/build/system/locale/es_MX.d.mts +3 -0
  1783. package/node_modules/typebox/build/system/locale/es_MX.mjs +41 -0
  1784. package/node_modules/typebox/build/system/locale/fa_IR.d.mts +3 -0
  1785. package/node_modules/typebox/build/system/locale/fa_IR.mjs +41 -0
  1786. package/node_modules/typebox/build/system/locale/fil_PH.d.mts +3 -0
  1787. package/node_modules/typebox/build/system/locale/fil_PH.mjs +41 -0
  1788. package/node_modules/typebox/build/system/locale/fr_CA.d.mts +3 -0
  1789. package/node_modules/typebox/build/system/locale/fr_CA.mjs +41 -0
  1790. package/node_modules/typebox/build/system/locale/fr_FR.d.mts +3 -0
  1791. package/node_modules/typebox/build/system/locale/fr_FR.mjs +41 -0
  1792. package/node_modules/typebox/build/system/locale/ha_NG.d.mts +3 -0
  1793. package/node_modules/typebox/build/system/locale/ha_NG.mjs +41 -0
  1794. package/node_modules/typebox/build/system/locale/hi_IN.d.mts +3 -0
  1795. package/node_modules/typebox/build/system/locale/hi_IN.mjs +41 -0
  1796. package/node_modules/typebox/build/system/locale/hu_HU.d.mts +3 -0
  1797. package/node_modules/typebox/build/system/locale/hu_HU.mjs +41 -0
  1798. package/node_modules/typebox/build/system/locale/id_ID.d.mts +3 -0
  1799. package/node_modules/typebox/build/system/locale/id_ID.mjs +41 -0
  1800. package/node_modules/typebox/build/system/locale/index.d.mts +1 -0
  1801. package/node_modules/typebox/build/system/locale/index.mjs +1 -0
  1802. package/node_modules/typebox/build/system/locale/it_IT.d.mts +3 -0
  1803. package/node_modules/typebox/build/system/locale/it_IT.mjs +41 -0
  1804. package/node_modules/typebox/build/system/locale/ja_JP.d.mts +3 -0
  1805. package/node_modules/typebox/build/system/locale/ja_JP.mjs +41 -0
  1806. package/node_modules/typebox/build/system/locale/ko_KR.d.mts +3 -0
  1807. package/node_modules/typebox/build/system/locale/ko_KR.mjs +41 -0
  1808. package/node_modules/typebox/build/system/locale/ms_MY.d.mts +3 -0
  1809. package/node_modules/typebox/build/system/locale/ms_MY.mjs +41 -0
  1810. package/node_modules/typebox/build/system/locale/nl_NL.d.mts +3 -0
  1811. package/node_modules/typebox/build/system/locale/nl_NL.mjs +41 -0
  1812. package/node_modules/typebox/build/system/locale/pl_PL.d.mts +3 -0
  1813. package/node_modules/typebox/build/system/locale/pl_PL.mjs +41 -0
  1814. package/node_modules/typebox/build/system/locale/pt_BR.d.mts +3 -0
  1815. package/node_modules/typebox/build/system/locale/pt_BR.mjs +41 -0
  1816. package/node_modules/typebox/build/system/locale/pt_PT.d.mts +3 -0
  1817. package/node_modules/typebox/build/system/locale/pt_PT.mjs +41 -0
  1818. package/node_modules/typebox/build/system/locale/ro_RO.d.mts +3 -0
  1819. package/node_modules/typebox/build/system/locale/ro_RO.mjs +41 -0
  1820. package/node_modules/typebox/build/system/locale/ru_RU.d.mts +3 -0
  1821. package/node_modules/typebox/build/system/locale/ru_RU.mjs +41 -0
  1822. package/node_modules/typebox/build/system/locale/sv_SE.d.mts +3 -0
  1823. package/node_modules/typebox/build/system/locale/sv_SE.mjs +41 -0
  1824. package/node_modules/typebox/build/system/locale/sw_TZ.d.mts +3 -0
  1825. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +41 -0
  1826. package/node_modules/typebox/build/system/locale/th_TH.d.mts +3 -0
  1827. package/node_modules/typebox/build/system/locale/th_TH.mjs +41 -0
  1828. package/node_modules/typebox/build/system/locale/tr_TR.d.mts +3 -0
  1829. package/node_modules/typebox/build/system/locale/tr_TR.mjs +41 -0
  1830. package/node_modules/typebox/build/system/locale/uk_UA.d.mts +3 -0
  1831. package/node_modules/typebox/build/system/locale/uk_UA.mjs +41 -0
  1832. package/node_modules/typebox/build/system/locale/ur_PK.d.mts +3 -0
  1833. package/node_modules/typebox/build/system/locale/ur_PK.mjs +41 -0
  1834. package/node_modules/typebox/build/system/locale/vi_VN.d.mts +3 -0
  1835. package/node_modules/typebox/build/system/locale/vi_VN.mjs +41 -0
  1836. package/node_modules/typebox/build/system/locale/yo_NG.d.mts +3 -0
  1837. package/node_modules/typebox/build/system/locale/yo_NG.mjs +41 -0
  1838. package/node_modules/typebox/build/system/locale/zh_Hans.d.mts +3 -0
  1839. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +41 -0
  1840. package/node_modules/typebox/build/system/locale/zh_Hant.d.mts +3 -0
  1841. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +41 -0
  1842. package/node_modules/typebox/build/system/memory/assign.d.mts +14 -0
  1843. package/node_modules/typebox/build/system/memory/assign.mjs +11 -0
  1844. package/node_modules/typebox/build/system/memory/clone.d.mts +6 -0
  1845. package/node_modules/typebox/build/system/memory/clone.mjs +63 -0
  1846. package/node_modules/typebox/build/system/memory/create.d.mts +8 -0
  1847. package/node_modules/typebox/build/system/memory/create.mjs +30 -0
  1848. package/node_modules/typebox/build/system/memory/discard.d.mts +4 -0
  1849. package/node_modules/typebox/build/system/memory/discard.mjs +17 -0
  1850. package/node_modules/typebox/build/system/memory/index.d.mts +1 -0
  1851. package/node_modules/typebox/build/system/memory/index.mjs +1 -0
  1852. package/node_modules/typebox/build/system/memory/memory.d.mts +6 -0
  1853. package/node_modules/typebox/build/system/memory/memory.mjs +7 -0
  1854. package/node_modules/typebox/build/system/memory/metrics.d.mts +14 -0
  1855. package/node_modules/typebox/build/system/memory/metrics.mjs +8 -0
  1856. package/node_modules/typebox/build/system/memory/update.d.mts +7 -0
  1857. package/node_modules/typebox/build/system/memory/update.mjs +32 -0
  1858. package/node_modules/typebox/build/system/settings/index.d.mts +1 -0
  1859. package/node_modules/typebox/build/system/settings/index.mjs +1 -0
  1860. package/node_modules/typebox/build/system/settings/settings.d.mts +56 -0
  1861. package/node_modules/typebox/build/system/settings/settings.mjs +32 -0
  1862. package/node_modules/typebox/build/system/system.d.mts +6 -0
  1863. package/node_modules/typebox/build/system/system.mjs +6 -0
  1864. package/node_modules/typebox/build/system/unreachable/index.d.mts +1 -0
  1865. package/node_modules/typebox/build/system/unreachable/index.mjs +1 -0
  1866. package/node_modules/typebox/build/system/unreachable/unreachable.d.mts +3 -0
  1867. package/node_modules/typebox/build/system/unreachable/unreachable.mjs +6 -0
  1868. package/node_modules/typebox/build/type/action/_optional.d.mts +19 -0
  1869. package/node_modules/typebox/build/type/action/_optional.mjs +40 -0
  1870. package/node_modules/typebox/build/type/action/_readonly.d.mts +19 -0
  1871. package/node_modules/typebox/build/type/action/_readonly.mjs +40 -0
  1872. package/node_modules/typebox/build/type/action/awaited.d.mts +15 -0
  1873. package/node_modules/typebox/build/type/action/awaited.mjs +15 -0
  1874. package/node_modules/typebox/build/type/action/capitalize.d.mts +11 -0
  1875. package/node_modules/typebox/build/type/action/capitalize.mjs +11 -0
  1876. package/node_modules/typebox/build/type/action/conditional.d.mts +13 -0
  1877. package/node_modules/typebox/build/type/action/conditional.mjs +12 -0
  1878. package/node_modules/typebox/build/type/action/constructor_parameters.d.mts +11 -0
  1879. package/node_modules/typebox/build/type/action/constructor_parameters.mjs +11 -0
  1880. package/node_modules/typebox/build/type/action/evaluate.d.mts +11 -0
  1881. package/node_modules/typebox/build/type/action/evaluate.mjs +11 -0
  1882. package/node_modules/typebox/build/type/action/exclude.d.mts +11 -0
  1883. package/node_modules/typebox/build/type/action/exclude.mjs +11 -0
  1884. package/node_modules/typebox/build/type/action/extract.d.mts +11 -0
  1885. package/node_modules/typebox/build/type/action/extract.mjs +11 -0
  1886. package/node_modules/typebox/build/type/action/index.d.mts +27 -0
  1887. package/node_modules/typebox/build/type/action/index.mjs +27 -0
  1888. package/node_modules/typebox/build/type/action/indexed.d.mts +14 -0
  1889. package/node_modules/typebox/build/type/action/indexed.mjs +14 -0
  1890. package/node_modules/typebox/build/type/action/instance_type.d.mts +11 -0
  1891. package/node_modules/typebox/build/type/action/instance_type.mjs +11 -0
  1892. package/node_modules/typebox/build/type/action/interface.d.mts +14 -0
  1893. package/node_modules/typebox/build/type/action/interface.mjs +22 -0
  1894. package/node_modules/typebox/build/type/action/keyof.d.mts +11 -0
  1895. package/node_modules/typebox/build/type/action/keyof.mjs +11 -0
  1896. package/node_modules/typebox/build/type/action/lowercase.d.mts +11 -0
  1897. package/node_modules/typebox/build/type/action/lowercase.mjs +11 -0
  1898. package/node_modules/typebox/build/type/action/mapped.d.mts +14 -0
  1899. package/node_modules/typebox/build/type/action/mapped.mjs +12 -0
  1900. package/node_modules/typebox/build/type/action/module.d.mts +12 -0
  1901. package/node_modules/typebox/build/type/action/module.mjs +12 -0
  1902. package/node_modules/typebox/build/type/action/non_nullable.d.mts +11 -0
  1903. package/node_modules/typebox/build/type/action/non_nullable.mjs +11 -0
  1904. package/node_modules/typebox/build/type/action/omit.d.mts +14 -0
  1905. package/node_modules/typebox/build/type/action/omit.mjs +14 -0
  1906. package/node_modules/typebox/build/type/action/options.d.mts +11 -0
  1907. package/node_modules/typebox/build/type/action/options.mjs +11 -0
  1908. package/node_modules/typebox/build/type/action/parameters.d.mts +11 -0
  1909. package/node_modules/typebox/build/type/action/parameters.mjs +11 -0
  1910. package/node_modules/typebox/build/type/action/partial.d.mts +11 -0
  1911. package/node_modules/typebox/build/type/action/partial.mjs +11 -0
  1912. package/node_modules/typebox/build/type/action/pick.d.mts +14 -0
  1913. package/node_modules/typebox/build/type/action/pick.mjs +14 -0
  1914. package/node_modules/typebox/build/type/action/readonly_object.d.mts +16 -0
  1915. package/node_modules/typebox/build/type/action/readonly_object.mjs +16 -0
  1916. package/node_modules/typebox/build/type/action/required.d.mts +11 -0
  1917. package/node_modules/typebox/build/type/action/required.mjs +11 -0
  1918. package/node_modules/typebox/build/type/action/return_type.d.mts +11 -0
  1919. package/node_modules/typebox/build/type/action/return_type.mjs +11 -0
  1920. package/node_modules/typebox/build/type/action/uncapitalize.d.mts +11 -0
  1921. package/node_modules/typebox/build/type/action/uncapitalize.mjs +11 -0
  1922. package/node_modules/typebox/build/type/action/uppercase.d.mts +11 -0
  1923. package/node_modules/typebox/build/type/action/uppercase.mjs +11 -0
  1924. package/node_modules/typebox/build/type/engine/awaited/index.d.mts +1 -0
  1925. package/node_modules/typebox/build/type/engine/awaited/index.mjs +1 -0
  1926. package/node_modules/typebox/build/type/engine/awaited/instantiate.d.mts +11 -0
  1927. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +20 -0
  1928. package/node_modules/typebox/build/type/engine/call/distribute_arguments.d.mts +15 -0
  1929. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +53 -0
  1930. package/node_modules/typebox/build/type/engine/call/instantiate.d.mts +23 -0
  1931. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +48 -0
  1932. package/node_modules/typebox/build/type/engine/call/resolve_arguments.d.mts +13 -0
  1933. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +33 -0
  1934. package/node_modules/typebox/build/type/engine/call/resolve_target.d.mts +25 -0
  1935. package/node_modules/typebox/build/type/engine/call/resolve_target.mjs +27 -0
  1936. package/node_modules/typebox/build/type/engine/conditional/index.d.mts +1 -0
  1937. package/node_modules/typebox/build/type/engine/conditional/index.mjs +1 -0
  1938. package/node_modules/typebox/build/type/engine/conditional/instantiate.d.mts +12 -0
  1939. package/node_modules/typebox/build/type/engine/conditional/instantiate.mjs +23 -0
  1940. package/node_modules/typebox/build/type/engine/constructor_parameters/index.d.mts +1 -0
  1941. package/node_modules/typebox/build/type/engine/constructor_parameters/index.mjs +1 -0
  1942. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.d.mts +15 -0
  1943. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +24 -0
  1944. package/node_modules/typebox/build/type/engine/cyclic/candidates.d.mts +9 -0
  1945. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +19 -0
  1946. package/node_modules/typebox/build/type/engine/cyclic/check.d.mts +24 -0
  1947. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +51 -0
  1948. package/node_modules/typebox/build/type/engine/cyclic/dependencies.d.mts +25 -0
  1949. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +53 -0
  1950. package/node_modules/typebox/build/type/engine/cyclic/extends.d.mts +31 -0
  1951. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +53 -0
  1952. package/node_modules/typebox/build/type/engine/cyclic/index.d.mts +6 -0
  1953. package/node_modules/typebox/build/type/engine/cyclic/index.mjs +6 -0
  1954. package/node_modules/typebox/build/type/engine/cyclic/instantiate.d.mts +20 -0
  1955. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +30 -0
  1956. package/node_modules/typebox/build/type/engine/cyclic/target.d.mts +10 -0
  1957. package/node_modules/typebox/build/type/engine/cyclic/target.mjs +16 -0
  1958. package/node_modules/typebox/build/type/engine/enum/enum_to_union.d.mts +14 -0
  1959. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +24 -0
  1960. package/node_modules/typebox/build/type/engine/enum/index.d.mts +2 -0
  1961. package/node_modules/typebox/build/type/engine/enum/index.mjs +2 -0
  1962. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.d.mts +8 -0
  1963. package/node_modules/typebox/build/type/engine/enum/typescript_enum_to_enum_values.mjs +9 -0
  1964. package/node_modules/typebox/build/type/engine/evaluate/broaden.d.mts +16 -0
  1965. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +47 -0
  1966. package/node_modules/typebox/build/type/engine/evaluate/compare.d.mts +15 -0
  1967. package/node_modules/typebox/build/type/engine/evaluate/compare.mjs +22 -0
  1968. package/node_modules/typebox/build/type/engine/evaluate/composite.d.mts +30 -0
  1969. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +63 -0
  1970. package/node_modules/typebox/build/type/engine/evaluate/distribute.d.mts +27 -0
  1971. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +45 -0
  1972. package/node_modules/typebox/build/type/engine/evaluate/evaluate.d.mts +14 -0
  1973. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +27 -0
  1974. package/node_modules/typebox/build/type/engine/evaluate/flatten.d.mts +6 -0
  1975. package/node_modules/typebox/build/type/engine/evaluate/flatten.mjs +11 -0
  1976. package/node_modules/typebox/build/type/engine/evaluate/index.d.mts +8 -0
  1977. package/node_modules/typebox/build/type/engine/evaluate/index.mjs +8 -0
  1978. package/node_modules/typebox/build/type/engine/evaluate/instantiate.d.mts +8 -0
  1979. package/node_modules/typebox/build/type/engine/evaluate/instantiate.mjs +12 -0
  1980. package/node_modules/typebox/build/type/engine/evaluate/narrow.d.mts +5 -0
  1981. package/node_modules/typebox/build/type/engine/evaluate/narrow.mjs +11 -0
  1982. package/node_modules/typebox/build/type/engine/exclude/index.d.mts +1 -0
  1983. package/node_modules/typebox/build/type/engine/exclude/index.mjs +1 -0
  1984. package/node_modules/typebox/build/type/engine/exclude/instantiate.d.mts +9 -0
  1985. package/node_modules/typebox/build/type/engine/exclude/instantiate.mjs +16 -0
  1986. package/node_modules/typebox/build/type/engine/exclude/operation.d.mts +11 -0
  1987. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +24 -0
  1988. package/node_modules/typebox/build/type/engine/extract/index.d.mts +1 -0
  1989. package/node_modules/typebox/build/type/engine/extract/index.mjs +1 -0
  1990. package/node_modules/typebox/build/type/engine/extract/instantiate.d.mts +9 -0
  1991. package/node_modules/typebox/build/type/engine/extract/instantiate.mjs +16 -0
  1992. package/node_modules/typebox/build/type/engine/extract/operation.d.mts +11 -0
  1993. package/node_modules/typebox/build/type/engine/extract/operation.mjs +24 -0
  1994. package/node_modules/typebox/build/type/engine/helpers/index.d.mts +3 -0
  1995. package/node_modules/typebox/build/type/engine/helpers/index.mjs +3 -0
  1996. package/node_modules/typebox/build/type/engine/helpers/keys.d.mts +3 -0
  1997. package/node_modules/typebox/build/type/engine/helpers/keys.mjs +8 -0
  1998. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.d.mts +7 -0
  1999. package/node_modules/typebox/build/type/engine/helpers/keys_to_indexer.mjs +15 -0
  2000. package/node_modules/typebox/build/type/engine/helpers/union.d.mts +7 -0
  2001. package/node_modules/typebox/build/type/engine/helpers/union.mjs +3 -0
  2002. package/node_modules/typebox/build/type/engine/index.d.mts +31 -0
  2003. package/node_modules/typebox/build/type/engine/index.mjs +37 -0
  2004. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.d.mts +6 -0
  2005. package/node_modules/typebox/build/type/engine/indexable/from_cyclic.mjs +8 -0
  2006. package/node_modules/typebox/build/type/engine/indexable/from_enum.d.mts +6 -0
  2007. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +8 -0
  2008. package/node_modules/typebox/build/type/engine/indexable/from_intersect.d.mts +5 -0
  2009. package/node_modules/typebox/build/type/engine/indexable/from_intersect.mjs +8 -0
  2010. package/node_modules/typebox/build/type/engine/indexable/from_literal.d.mts +3 -0
  2011. package/node_modules/typebox/build/type/engine/indexable/from_literal.mjs +5 -0
  2012. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.d.mts +5 -0
  2013. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +8 -0
  2014. package/node_modules/typebox/build/type/engine/indexable/from_type.d.mts +17 -0
  2015. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +22 -0
  2016. package/node_modules/typebox/build/type/engine/indexable/from_union.d.mts +4 -0
  2017. package/node_modules/typebox/build/type/engine/indexable/from_union.mjs +7 -0
  2018. package/node_modules/typebox/build/type/engine/indexable/to_indexable.d.mts +9 -0
  2019. package/node_modules/typebox/build/type/engine/indexable/to_indexable.mjs +14 -0
  2020. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.d.mts +10 -0
  2021. package/node_modules/typebox/build/type/engine/indexable/to_indexable_keys.mjs +12 -0
  2022. package/node_modules/typebox/build/type/engine/indexed/array_indexer.d.mts +12 -0
  2023. package/node_modules/typebox/build/type/engine/indexed/array_indexer.mjs +18 -0
  2024. package/node_modules/typebox/build/type/engine/indexed/from_array.d.mts +15 -0
  2025. package/node_modules/typebox/build/type/engine/indexed/from_array.mjs +35 -0
  2026. package/node_modules/typebox/build/type/engine/indexed/from_object.d.mts +16 -0
  2027. package/node_modules/typebox/build/type/engine/indexed/from_object.mjs +40 -0
  2028. package/node_modules/typebox/build/type/engine/indexed/from_tuple.d.mts +13 -0
  2029. package/node_modules/typebox/build/type/engine/indexed/from_tuple.mjs +35 -0
  2030. package/node_modules/typebox/build/type/engine/indexed/from_type.d.mts +11 -0
  2031. package/node_modules/typebox/build/type/engine/indexed/from_type.mjs +14 -0
  2032. package/node_modules/typebox/build/type/engine/indexed/index.d.mts +1 -0
  2033. package/node_modules/typebox/build/type/engine/indexed/index.mjs +1 -0
  2034. package/node_modules/typebox/build/type/engine/indexed/instantiate.d.mts +15 -0
  2035. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +25 -0
  2036. package/node_modules/typebox/build/type/engine/instance_type/index.d.mts +1 -0
  2037. package/node_modules/typebox/build/type/engine/instance_type/index.mjs +1 -0
  2038. package/node_modules/typebox/build/type/engine/instance_type/instantiate.d.mts +12 -0
  2039. package/node_modules/typebox/build/type/engine/instance_type/instantiate.mjs +21 -0
  2040. package/node_modules/typebox/build/type/engine/instantiate.d.mts +165 -0
  2041. package/node_modules/typebox/build/type/engine/instantiate.mjs +159 -0
  2042. package/node_modules/typebox/build/type/engine/interface/index.d.mts +1 -0
  2043. package/node_modules/typebox/build/type/engine/interface/index.mjs +1 -0
  2044. package/node_modules/typebox/build/type/engine/interface/instantiate.d.mts +18 -0
  2045. package/node_modules/typebox/build/type/engine/interface/instantiate.mjs +23 -0
  2046. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.d.mts +5 -0
  2047. package/node_modules/typebox/build/type/engine/intrinsics/from_literal.mjs +9 -0
  2048. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.d.mts +6 -0
  2049. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +8 -0
  2050. package/node_modules/typebox/build/type/engine/intrinsics/from_type.d.mts +10 -0
  2051. package/node_modules/typebox/build/type/engine/intrinsics/from_type.mjs +13 -0
  2052. package/node_modules/typebox/build/type/engine/intrinsics/from_union.d.mts +6 -0
  2053. package/node_modules/typebox/build/type/engine/intrinsics/from_union.mjs +7 -0
  2054. package/node_modules/typebox/build/type/engine/intrinsics/index.d.mts +1 -0
  2055. package/node_modules/typebox/build/type/engine/intrinsics/index.mjs +1 -0
  2056. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.d.mts +38 -0
  2057. package/node_modules/typebox/build/type/engine/intrinsics/instantiate.mjs +52 -0
  2058. package/node_modules/typebox/build/type/engine/intrinsics/mapping.d.mts +9 -0
  2059. package/node_modules/typebox/build/type/engine/intrinsics/mapping.mjs +4 -0
  2060. package/node_modules/typebox/build/type/engine/keyof/from_any.d.mts +6 -0
  2061. package/node_modules/typebox/build/type/engine/keyof/from_any.mjs +8 -0
  2062. package/node_modules/typebox/build/type/engine/keyof/from_array.d.mts +4 -0
  2063. package/node_modules/typebox/build/type/engine/keyof/from_array.mjs +5 -0
  2064. package/node_modules/typebox/build/type/engine/keyof/from_object.d.mts +10 -0
  2065. package/node_modules/typebox/build/type/engine/keyof/from_object.mjs +20 -0
  2066. package/node_modules/typebox/build/type/engine/keyof/from_record.d.mts +4 -0
  2067. package/node_modules/typebox/build/type/engine/keyof/from_record.mjs +5 -0
  2068. package/node_modules/typebox/build/type/engine/keyof/from_tuple.d.mts +5 -0
  2069. package/node_modules/typebox/build/type/engine/keyof/from_tuple.mjs +7 -0
  2070. package/node_modules/typebox/build/type/engine/keyof/from_type.d.mts +15 -0
  2071. package/node_modules/typebox/build/type/engine/keyof/from_type.mjs +23 -0
  2072. package/node_modules/typebox/build/type/engine/keyof/index.d.mts +1 -0
  2073. package/node_modules/typebox/build/type/engine/keyof/index.mjs +1 -0
  2074. package/node_modules/typebox/build/type/engine/keyof/instantiate.d.mts +15 -0
  2075. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +25 -0
  2076. package/node_modules/typebox/build/type/engine/mapped/index.d.mts +1 -0
  2077. package/node_modules/typebox/build/type/engine/mapped/index.mjs +1 -0
  2078. package/node_modules/typebox/build/type/engine/mapped/instantiate.d.mts +10 -0
  2079. package/node_modules/typebox/build/type/engine/mapped/instantiate.mjs +15 -0
  2080. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.d.mts +22 -0
  2081. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +42 -0
  2082. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.d.mts +16 -0
  2083. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +34 -0
  2084. package/node_modules/typebox/build/type/engine/module/index.d.mts +1 -0
  2085. package/node_modules/typebox/build/type/engine/module/index.mjs +1 -0
  2086. package/node_modules/typebox/build/type/engine/module/instantiate.d.mts +21 -0
  2087. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +34 -0
  2088. package/node_modules/typebox/build/type/engine/non_nullable/index.d.mts +1 -0
  2089. package/node_modules/typebox/build/type/engine/non_nullable/index.mjs +1 -0
  2090. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.d.mts +14 -0
  2091. package/node_modules/typebox/build/type/engine/non_nullable/instantiate.mjs +22 -0
  2092. package/node_modules/typebox/build/type/engine/object/collapse.d.mts +12 -0
  2093. package/node_modules/typebox/build/type/engine/object/collapse.mjs +14 -0
  2094. package/node_modules/typebox/build/type/engine/object/from_cyclic.d.mts +6 -0
  2095. package/node_modules/typebox/build/type/engine/object/from_cyclic.mjs +8 -0
  2096. package/node_modules/typebox/build/type/engine/object/from_intersect.d.mts +17 -0
  2097. package/node_modules/typebox/build/type/engine/object/from_intersect.mjs +22 -0
  2098. package/node_modules/typebox/build/type/engine/object/from_object.d.mts +3 -0
  2099. package/node_modules/typebox/build/type/engine/object/from_object.mjs +4 -0
  2100. package/node_modules/typebox/build/type/engine/object/from_tuple.d.mts +6 -0
  2101. package/node_modules/typebox/build/type/engine/object/from_tuple.mjs +9 -0
  2102. package/node_modules/typebox/build/type/engine/object/from_type.d.mts +14 -0
  2103. package/node_modules/typebox/build/type/engine/object/from_type.mjs +20 -0
  2104. package/node_modules/typebox/build/type/engine/object/from_union.d.mts +12 -0
  2105. package/node_modules/typebox/build/type/engine/object/from_union.mjs +19 -0
  2106. package/node_modules/typebox/build/type/engine/object/index.d.mts +1 -0
  2107. package/node_modules/typebox/build/type/engine/object/index.mjs +1 -0
  2108. package/node_modules/typebox/build/type/engine/omit/from_type.d.mts +12 -0
  2109. package/node_modules/typebox/build/type/engine/omit/from_type.mjs +18 -0
  2110. package/node_modules/typebox/build/type/engine/omit/index.d.mts +1 -0
  2111. package/node_modules/typebox/build/type/engine/omit/index.mjs +1 -0
  2112. package/node_modules/typebox/build/type/engine/omit/instantiate.d.mts +9 -0
  2113. package/node_modules/typebox/build/type/engine/omit/instantiate.mjs +16 -0
  2114. package/node_modules/typebox/build/type/engine/options/index.d.mts +1 -0
  2115. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  2116. package/node_modules/typebox/build/type/engine/options/instantiate.d.mts +8 -0
  2117. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +14 -0
  2118. package/node_modules/typebox/build/type/engine/parameters/index.d.mts +1 -0
  2119. package/node_modules/typebox/build/type/engine/parameters/index.mjs +1 -0
  2120. package/node_modules/typebox/build/type/engine/parameters/instantiate.d.mts +15 -0
  2121. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +24 -0
  2122. package/node_modules/typebox/build/type/engine/partial/from_cyclic.d.mts +10 -0
  2123. package/node_modules/typebox/build/type/engine/partial/from_cyclic.mjs +11 -0
  2124. package/node_modules/typebox/build/type/engine/partial/from_intersect.d.mts +5 -0
  2125. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +7 -0
  2126. package/node_modules/typebox/build/type/engine/partial/from_object.d.mts +8 -0
  2127. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +11 -0
  2128. package/node_modules/typebox/build/type/engine/partial/from_type.d.mts +12 -0
  2129. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +17 -0
  2130. package/node_modules/typebox/build/type/engine/partial/from_union.d.mts +5 -0
  2131. package/node_modules/typebox/build/type/engine/partial/from_union.mjs +7 -0
  2132. package/node_modules/typebox/build/type/engine/partial/index.d.mts +1 -0
  2133. package/node_modules/typebox/build/type/engine/partial/index.mjs +1 -0
  2134. package/node_modules/typebox/build/type/engine/partial/instantiate.d.mts +9 -0
  2135. package/node_modules/typebox/build/type/engine/partial/instantiate.mjs +15 -0
  2136. package/node_modules/typebox/build/type/engine/patterns/index.d.mts +2 -0
  2137. package/node_modules/typebox/build/type/engine/patterns/index.mjs +2 -0
  2138. package/node_modules/typebox/build/type/engine/patterns/pattern.d.mts +6 -0
  2139. package/node_modules/typebox/build/type/engine/patterns/pattern.mjs +11 -0
  2140. package/node_modules/typebox/build/type/engine/patterns/template.d.mts +7 -0
  2141. package/node_modules/typebox/build/type/engine/patterns/template.mjs +20 -0
  2142. package/node_modules/typebox/build/type/engine/pick/from_type.d.mts +13 -0
  2143. package/node_modules/typebox/build/type/engine/pick/from_type.mjs +20 -0
  2144. package/node_modules/typebox/build/type/engine/pick/index.d.mts +1 -0
  2145. package/node_modules/typebox/build/type/engine/pick/index.mjs +1 -0
  2146. package/node_modules/typebox/build/type/engine/pick/instantiate.d.mts +9 -0
  2147. package/node_modules/typebox/build/type/engine/pick/instantiate.mjs +16 -0
  2148. package/node_modules/typebox/build/type/engine/readonly_object/from_array.d.mts +5 -0
  2149. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +7 -0
  2150. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.d.mts +10 -0
  2151. package/node_modules/typebox/build/type/engine/readonly_object/from_cyclic.mjs +11 -0
  2152. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.d.mts +5 -0
  2153. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +7 -0
  2154. package/node_modules/typebox/build/type/engine/readonly_object/from_object.d.mts +8 -0
  2155. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +11 -0
  2156. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.d.mts +5 -0
  2157. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +7 -0
  2158. package/node_modules/typebox/build/type/engine/readonly_object/from_type.d.mts +16 -0
  2159. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +22 -0
  2160. package/node_modules/typebox/build/type/engine/readonly_object/from_union.d.mts +5 -0
  2161. package/node_modules/typebox/build/type/engine/readonly_object/from_union.mjs +7 -0
  2162. package/node_modules/typebox/build/type/engine/readonly_object/index.d.mts +1 -0
  2163. package/node_modules/typebox/build/type/engine/readonly_object/index.mjs +1 -0
  2164. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.d.mts +9 -0
  2165. package/node_modules/typebox/build/type/engine/readonly_object/instantiate.mjs +15 -0
  2166. package/node_modules/typebox/build/type/engine/record/from_key.d.mts +24 -0
  2167. package/node_modules/typebox/build/type/engine/record/from_key.mjs +40 -0
  2168. package/node_modules/typebox/build/type/engine/record/from_key_any.d.mts +4 -0
  2169. package/node_modules/typebox/build/type/engine/record/from_key_any.mjs +6 -0
  2170. package/node_modules/typebox/build/type/engine/record/from_key_boolean.d.mts +7 -0
  2171. package/node_modules/typebox/build/type/engine/record/from_key_boolean.mjs +5 -0
  2172. package/node_modules/typebox/build/type/engine/record/from_key_enum.d.mts +6 -0
  2173. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +8 -0
  2174. package/node_modules/typebox/build/type/engine/record/from_key_integer.d.mts +5 -0
  2175. package/node_modules/typebox/build/type/engine/record/from_key_integer.mjs +7 -0
  2176. package/node_modules/typebox/build/type/engine/record/from_key_intersect.d.mts +5 -0
  2177. package/node_modules/typebox/build/type/engine/record/from_key_intersect.mjs +8 -0
  2178. package/node_modules/typebox/build/type/engine/record/from_key_literal.d.mts +11 -0
  2179. package/node_modules/typebox/build/type/engine/record/from_key_literal.mjs +10 -0
  2180. package/node_modules/typebox/build/type/engine/record/from_key_number.d.mts +5 -0
  2181. package/node_modules/typebox/build/type/engine/record/from_key_number.mjs +7 -0
  2182. package/node_modules/typebox/build/type/engine/record/from_key_string.d.mts +5 -0
  2183. package/node_modules/typebox/build/type/engine/record/from_key_string.mjs +12 -0
  2184. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.d.mts +8 -0
  2185. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +12 -0
  2186. package/node_modules/typebox/build/type/engine/record/from_key_union.d.mts +20 -0
  2187. package/node_modules/typebox/build/type/engine/record/from_key_union.mjs +39 -0
  2188. package/node_modules/typebox/build/type/engine/record/index.d.mts +1 -0
  2189. package/node_modules/typebox/build/type/engine/record/index.mjs +1 -0
  2190. package/node_modules/typebox/build/type/engine/record/instantiate.d.mts +9 -0
  2191. package/node_modules/typebox/build/type/engine/record/instantiate.mjs +17 -0
  2192. package/node_modules/typebox/build/type/engine/record/record_create.d.mts +3 -0
  2193. package/node_modules/typebox/build/type/engine/record/record_create.mjs +7 -0
  2194. package/node_modules/typebox/build/type/engine/ref/index.d.mts +1 -0
  2195. package/node_modules/typebox/build/type/engine/ref/index.mjs +1 -0
  2196. package/node_modules/typebox/build/type/engine/ref/instantiate.d.mts +6 -0
  2197. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +10 -0
  2198. package/node_modules/typebox/build/type/engine/required/from_cyclic.d.mts +10 -0
  2199. package/node_modules/typebox/build/type/engine/required/from_cyclic.mjs +11 -0
  2200. package/node_modules/typebox/build/type/engine/required/from_intersect.d.mts +5 -0
  2201. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +7 -0
  2202. package/node_modules/typebox/build/type/engine/required/from_object.d.mts +8 -0
  2203. package/node_modules/typebox/build/type/engine/required/from_object.mjs +11 -0
  2204. package/node_modules/typebox/build/type/engine/required/from_type.d.mts +12 -0
  2205. package/node_modules/typebox/build/type/engine/required/from_type.mjs +17 -0
  2206. package/node_modules/typebox/build/type/engine/required/from_union.d.mts +5 -0
  2207. package/node_modules/typebox/build/type/engine/required/from_union.mjs +7 -0
  2208. package/node_modules/typebox/build/type/engine/required/index.d.mts +1 -0
  2209. package/node_modules/typebox/build/type/engine/required/index.mjs +1 -0
  2210. package/node_modules/typebox/build/type/engine/required/instantiate.d.mts +9 -0
  2211. package/node_modules/typebox/build/type/engine/required/instantiate.mjs +15 -0
  2212. package/node_modules/typebox/build/type/engine/rest/index.d.mts +1 -0
  2213. package/node_modules/typebox/build/type/engine/rest/index.mjs +1 -0
  2214. package/node_modules/typebox/build/type/engine/rest/spread.d.mts +12 -0
  2215. package/node_modules/typebox/build/type/engine/rest/spread.mjs +19 -0
  2216. package/node_modules/typebox/build/type/engine/return_type/index.d.mts +1 -0
  2217. package/node_modules/typebox/build/type/engine/return_type/index.mjs +1 -0
  2218. package/node_modules/typebox/build/type/engine/return_type/instantiate.d.mts +12 -0
  2219. package/node_modules/typebox/build/type/engine/return_type/instantiate.mjs +21 -0
  2220. package/node_modules/typebox/build/type/engine/template_literal/create.d.mts +1 -0
  2221. package/node_modules/typebox/build/type/engine/template_literal/create.mjs +5 -0
  2222. package/node_modules/typebox/build/type/engine/template_literal/decode.d.mts +30 -0
  2223. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +81 -0
  2224. package/node_modules/typebox/build/type/engine/template_literal/encode.d.mts +33 -0
  2225. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +81 -0
  2226. package/node_modules/typebox/build/type/engine/template_literal/index.d.mts +6 -0
  2227. package/node_modules/typebox/build/type/engine/template_literal/index.mjs +6 -0
  2228. package/node_modules/typebox/build/type/engine/template_literal/instantiate.d.mts +9 -0
  2229. package/node_modules/typebox/build/type/engine/template_literal/instantiate.mjs +15 -0
  2230. package/node_modules/typebox/build/type/engine/template_literal/is_finite.d.mts +12 -0
  2231. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +26 -0
  2232. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.d.mts +6 -0
  2233. package/node_modules/typebox/build/type/engine/template_literal/is_pattern.mjs +9 -0
  2234. package/node_modules/typebox/build/type/engine/template_literal/static.d.mts +18 -0
  2235. package/node_modules/typebox/build/type/engine/template_literal/static.mjs +2 -0
  2236. package/node_modules/typebox/build/type/engine/this/expand_this.d.mts +19 -0
  2237. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +32 -0
  2238. package/node_modules/typebox/build/type/engine/tuple/to_object.d.mts +12 -0
  2239. package/node_modules/typebox/build/type/engine/tuple/to_object.mjs +14 -0
  2240. package/node_modules/typebox/build/type/extends/any.d.mts +9 -0
  2241. package/node_modules/typebox/build/type/extends/any.mjs +12 -0
  2242. package/node_modules/typebox/build/type/extends/array.d.mts +20 -0
  2243. package/node_modules/typebox/build/type/extends/array.mjs +21 -0
  2244. package/node_modules/typebox/build/type/extends/async_iterator.d.mts +7 -0
  2245. package/node_modules/typebox/build/type/extends/async_iterator.mjs +9 -0
  2246. package/node_modules/typebox/build/type/extends/bigint.d.mts +7 -0
  2247. package/node_modules/typebox/build/type/extends/bigint.mjs +9 -0
  2248. package/node_modules/typebox/build/type/extends/boolean.d.mts +7 -0
  2249. package/node_modules/typebox/build/type/extends/boolean.mjs +9 -0
  2250. package/node_modules/typebox/build/type/extends/constructor.d.mts +10 -0
  2251. package/node_modules/typebox/build/type/extends/constructor.mjs +17 -0
  2252. package/node_modules/typebox/build/type/extends/enum.d.mts +7 -0
  2253. package/node_modules/typebox/build/type/extends/enum.mjs +6 -0
  2254. package/node_modules/typebox/build/type/extends/extends.d.mts +13 -0
  2255. package/node_modules/typebox/build/type/extends/extends.mjs +17 -0
  2256. package/node_modules/typebox/build/type/extends/extends_left.d.mts +55 -0
  2257. package/node_modules/typebox/build/type/extends/extends_left.mjs +83 -0
  2258. package/node_modules/typebox/build/type/extends/extends_right.d.mts +25 -0
  2259. package/node_modules/typebox/build/type/extends/extends_right.mjs +44 -0
  2260. package/node_modules/typebox/build/type/extends/function.d.mts +10 -0
  2261. package/node_modules/typebox/build/type/extends/function.mjs +17 -0
  2262. package/node_modules/typebox/build/type/extends/index.d.mts +2 -0
  2263. package/node_modules/typebox/build/type/extends/index.mjs +2 -0
  2264. package/node_modules/typebox/build/type/extends/inference.d.mts +34 -0
  2265. package/node_modules/typebox/build/type/extends/inference.mjs +62 -0
  2266. package/node_modules/typebox/build/type/extends/integer.d.mts +8 -0
  2267. package/node_modules/typebox/build/type/extends/integer.mjs +10 -0
  2268. package/node_modules/typebox/build/type/extends/intersect.d.mts +6 -0
  2269. package/node_modules/typebox/build/type/extends/intersect.mjs +15 -0
  2270. package/node_modules/typebox/build/type/extends/iterator.d.mts +7 -0
  2271. package/node_modules/typebox/build/type/extends/iterator.mjs +9 -0
  2272. package/node_modules/typebox/build/type/extends/literal.d.mts +18 -0
  2273. package/node_modules/typebox/build/type/extends/literal.mjs +44 -0
  2274. package/node_modules/typebox/build/type/extends/never.d.mts +8 -0
  2275. package/node_modules/typebox/build/type/extends/never.mjs +9 -0
  2276. package/node_modules/typebox/build/type/extends/null.d.mts +7 -0
  2277. package/node_modules/typebox/build/type/extends/null.mjs +9 -0
  2278. package/node_modules/typebox/build/type/extends/number.d.mts +7 -0
  2279. package/node_modules/typebox/build/type/extends/number.mjs +9 -0
  2280. package/node_modules/typebox/build/type/extends/object.d.mts +25 -0
  2281. package/node_modules/typebox/build/type/extends/object.mjs +87 -0
  2282. package/node_modules/typebox/build/type/extends/parameters.d.mts +15 -0
  2283. package/node_modules/typebox/build/type/extends/parameters.mjs +28 -0
  2284. package/node_modules/typebox/build/type/extends/promise.d.mts +7 -0
  2285. package/node_modules/typebox/build/type/extends/promise.mjs +9 -0
  2286. package/node_modules/typebox/build/type/extends/result.d.mts +24 -0
  2287. package/node_modules/typebox/build/type/extends/result.mjs +36 -0
  2288. package/node_modules/typebox/build/type/extends/return_type.d.mts +7 -0
  2289. package/node_modules/typebox/build/type/extends/return_type.mjs +9 -0
  2290. package/node_modules/typebox/build/type/extends/string.d.mts +7 -0
  2291. package/node_modules/typebox/build/type/extends/string.mjs +9 -0
  2292. package/node_modules/typebox/build/type/extends/symbol.d.mts +7 -0
  2293. package/node_modules/typebox/build/type/extends/symbol.mjs +9 -0
  2294. package/node_modules/typebox/build/type/extends/template_literal.d.mts +6 -0
  2295. package/node_modules/typebox/build/type/extends/template_literal.mjs +7 -0
  2296. package/node_modules/typebox/build/type/extends/tuple.d.mts +25 -0
  2297. package/node_modules/typebox/build/type/extends/tuple.mjs +60 -0
  2298. package/node_modules/typebox/build/type/extends/undefined.d.mts +8 -0
  2299. package/node_modules/typebox/build/type/extends/undefined.mjs +10 -0
  2300. package/node_modules/typebox/build/type/extends/union.d.mts +11 -0
  2301. package/node_modules/typebox/build/type/extends/union.mjs +24 -0
  2302. package/node_modules/typebox/build/type/extends/unknown.d.mts +9 -0
  2303. package/node_modules/typebox/build/type/extends/unknown.mjs +12 -0
  2304. package/node_modules/typebox/build/type/extends/void.d.mts +7 -0
  2305. package/node_modules/typebox/build/type/extends/void.mjs +9 -0
  2306. package/node_modules/typebox/build/type/index.d.mts +5 -0
  2307. package/node_modules/typebox/build/type/index.mjs +5 -0
  2308. package/node_modules/typebox/build/type/script/index.d.mts +1 -0
  2309. package/node_modules/typebox/build/type/script/index.mjs +1 -0
  2310. package/node_modules/typebox/build/type/script/mapping.d.mts +365 -0
  2311. package/node_modules/typebox/build/type/script/mapping.mjs +532 -0
  2312. package/node_modules/typebox/build/type/script/parser.d.mts +260 -0
  2313. package/node_modules/typebox/build/type/script/parser.mjs +135 -0
  2314. package/node_modules/typebox/build/type/script/script.d.mts +17 -0
  2315. package/node_modules/typebox/build/type/script/script.mjs +21 -0
  2316. package/node_modules/typebox/build/type/script/token/bigint.d.mts +8 -0
  2317. package/node_modules/typebox/build/type/script/token/bigint.mjs +14 -0
  2318. package/node_modules/typebox/build/type/script/token/const.d.mts +11 -0
  2319. package/node_modules/typebox/build/type/script/token/const.mjs +18 -0
  2320. package/node_modules/typebox/build/type/script/token/ident.d.mts +16 -0
  2321. package/node_modules/typebox/build/type/script/token/ident.mjs +26 -0
  2322. package/node_modules/typebox/build/type/script/token/index.d.mts +12 -0
  2323. package/node_modules/typebox/build/type/script/token/index.mjs +12 -0
  2324. package/node_modules/typebox/build/type/script/token/integer.d.mts +11 -0
  2325. package/node_modules/typebox/build/type/script/token/integer.mjs +19 -0
  2326. package/node_modules/typebox/build/type/script/token/internal/char.d.mts +75 -0
  2327. package/node_modules/typebox/build/type/script/token/internal/char.mjs +26 -0
  2328. package/node_modules/typebox/build/type/script/token/internal/guard.d.mts +1 -0
  2329. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +15 -0
  2330. package/node_modules/typebox/build/type/script/token/internal/many.d.mts +7 -0
  2331. package/node_modules/typebox/build/type/script/token/internal/many.mjs +14 -0
  2332. package/node_modules/typebox/build/type/script/token/internal/match.d.mts +6 -0
  2333. package/node_modules/typebox/build/type/script/token/internal/match.mjs +11 -0
  2334. package/node_modules/typebox/build/type/script/token/internal/optional.d.mts +5 -0
  2335. package/node_modules/typebox/build/type/script/token/internal/optional.mjs +9 -0
  2336. package/node_modules/typebox/build/type/script/token/internal/take.d.mts +6 -0
  2337. package/node_modules/typebox/build/type/script/token/internal/take.mjs +30 -0
  2338. package/node_modules/typebox/build/type/script/token/internal/trim.d.mts +19 -0
  2339. package/node_modules/typebox/build/type/script/token/internal/trim.mjs +34 -0
  2340. package/node_modules/typebox/build/type/script/token/number.d.mts +11 -0
  2341. package/node_modules/typebox/build/type/script/token/number.mjs +19 -0
  2342. package/node_modules/typebox/build/type/script/token/rest.d.mts +4 -0
  2343. package/node_modules/typebox/build/type/script/token/rest.mjs +9 -0
  2344. package/node_modules/typebox/build/type/script/token/span.d.mts +11 -0
  2345. package/node_modules/typebox/build/type/script/token/span.mjs +24 -0
  2346. package/node_modules/typebox/build/type/script/token/string.d.mts +11 -0
  2347. package/node_modules/typebox/build/type/script/token/string.mjs +20 -0
  2348. package/node_modules/typebox/build/type/script/token/unsigned_integer.d.mts +16 -0
  2349. package/node_modules/typebox/build/type/script/token/unsigned_integer.mjs +26 -0
  2350. package/node_modules/typebox/build/type/script/token/unsigned_number.d.mts +17 -0
  2351. package/node_modules/typebox/build/type/script/token/unsigned_number.mjs +38 -0
  2352. package/node_modules/typebox/build/type/script/token/until.d.mts +7 -0
  2353. package/node_modules/typebox/build/type/script/token/until.mjs +21 -0
  2354. package/node_modules/typebox/build/type/script/token/until_1.d.mts +5 -0
  2355. package/node_modules/typebox/build/type/script/token/until_1.mjs +12 -0
  2356. package/node_modules/typebox/build/type/types/_codec.d.mts +30 -0
  2357. package/node_modules/typebox/build/type/types/_codec.mjs +61 -0
  2358. package/node_modules/typebox/build/type/types/_immutable.d.mts +16 -0
  2359. package/node_modules/typebox/build/type/types/_immutable.mjs +26 -0
  2360. package/node_modules/typebox/build/type/types/_optional.d.mts +16 -0
  2361. package/node_modules/typebox/build/type/types/_optional.mjs +27 -0
  2362. package/node_modules/typebox/build/type/types/_readonly.d.mts +16 -0
  2363. package/node_modules/typebox/build/type/types/_readonly.mjs +26 -0
  2364. package/node_modules/typebox/build/type/types/_refine.d.mts +26 -0
  2365. package/node_modules/typebox/build/type/types/_refine.mjs +37 -0
  2366. package/node_modules/typebox/build/type/types/any.d.mts +10 -0
  2367. package/node_modules/typebox/build/type/types/any.mjs +18 -0
  2368. package/node_modules/typebox/build/type/types/array.d.mts +18 -0
  2369. package/node_modules/typebox/build/type/types/array.mjs +25 -0
  2370. package/node_modules/typebox/build/type/types/async_iterator.d.mts +20 -0
  2371. package/node_modules/typebox/build/type/types/async_iterator.mjs +28 -0
  2372. package/node_modules/typebox/build/type/types/base.d.mts +50 -0
  2373. package/node_modules/typebox/build/type/types/base.mjs +84 -0
  2374. package/node_modules/typebox/build/type/types/bigint.d.mts +12 -0
  2375. package/node_modules/typebox/build/type/types/bigint.mjs +21 -0
  2376. package/node_modules/typebox/build/type/types/boolean.d.mts +11 -0
  2377. package/node_modules/typebox/build/type/types/boolean.mjs +17 -0
  2378. package/node_modules/typebox/build/type/types/call.d.mts +16 -0
  2379. package/node_modules/typebox/build/type/types/call.mjs +22 -0
  2380. package/node_modules/typebox/build/type/types/constructor.d.mts +18 -0
  2381. package/node_modules/typebox/build/type/types/constructor.mjs +24 -0
  2382. package/node_modules/typebox/build/type/types/cyclic.d.mts +16 -0
  2383. package/node_modules/typebox/build/type/types/cyclic.mjs +29 -0
  2384. package/node_modules/typebox/build/type/types/deferred.d.mts +12 -0
  2385. package/node_modules/typebox/build/type/types/deferred.mjs +16 -0
  2386. package/node_modules/typebox/build/type/types/enum.d.mts +16 -0
  2387. package/node_modules/typebox/build/type/types/enum.mjs +17 -0
  2388. package/node_modules/typebox/build/type/types/function.d.mts +21 -0
  2389. package/node_modules/typebox/build/type/types/function.mjs +25 -0
  2390. package/node_modules/typebox/build/type/types/generic.d.mts +13 -0
  2391. package/node_modules/typebox/build/type/types/generic.mjs +17 -0
  2392. package/node_modules/typebox/build/type/types/identifier.d.mts +11 -0
  2393. package/node_modules/typebox/build/type/types/identifier.mjs +17 -0
  2394. package/node_modules/typebox/build/type/types/index.d.mts +48 -0
  2395. package/node_modules/typebox/build/type/types/index.mjs +54 -0
  2396. package/node_modules/typebox/build/type/types/infer.d.mts +15 -0
  2397. package/node_modules/typebox/build/type/types/infer.mjs +20 -0
  2398. package/node_modules/typebox/build/type/types/integer.d.mts +12 -0
  2399. package/node_modules/typebox/build/type/types/integer.mjs +21 -0
  2400. package/node_modules/typebox/build/type/types/intersect.d.mts +15 -0
  2401. package/node_modules/typebox/build/type/types/intersect.mjs +24 -0
  2402. package/node_modules/typebox/build/type/types/iterator.d.mts +20 -0
  2403. package/node_modules/typebox/build/type/types/iterator.mjs +28 -0
  2404. package/node_modules/typebox/build/type/types/literal.d.mts +31 -0
  2405. package/node_modules/typebox/build/type/types/literal.mjs +62 -0
  2406. package/node_modules/typebox/build/type/types/never.d.mts +12 -0
  2407. package/node_modules/typebox/build/type/types/never.mjs +22 -0
  2408. package/node_modules/typebox/build/type/types/null.d.mts +11 -0
  2409. package/node_modules/typebox/build/type/types/null.mjs +17 -0
  2410. package/node_modules/typebox/build/type/types/number.d.mts +12 -0
  2411. package/node_modules/typebox/build/type/types/number.mjs +21 -0
  2412. package/node_modules/typebox/build/type/types/object.d.mts +18 -0
  2413. package/node_modules/typebox/build/type/types/object.mjs +28 -0
  2414. package/node_modules/typebox/build/type/types/parameter.d.mts +17 -0
  2415. package/node_modules/typebox/build/type/types/parameter.mjs +21 -0
  2416. package/node_modules/typebox/build/type/types/promise.d.mts +21 -0
  2417. package/node_modules/typebox/build/type/types/promise.mjs +29 -0
  2418. package/node_modules/typebox/build/type/types/properties.d.mts +43 -0
  2419. package/node_modules/typebox/build/type/types/properties.mjs +15 -0
  2420. package/node_modules/typebox/build/type/types/record.d.mts +46 -0
  2421. package/node_modules/typebox/build/type/types/record.mjs +60 -0
  2422. package/node_modules/typebox/build/type/types/ref.d.mts +19 -0
  2423. package/node_modules/typebox/build/type/types/ref.mjs +18 -0
  2424. package/node_modules/typebox/build/type/types/rest.d.mts +11 -0
  2425. package/node_modules/typebox/build/type/types/rest.mjs +17 -0
  2426. package/node_modules/typebox/build/type/types/schema.d.mts +176 -0
  2427. package/node_modules/typebox/build/type/types/schema.mjs +15 -0
  2428. package/node_modules/typebox/build/type/types/static.d.mts +48 -0
  2429. package/node_modules/typebox/build/type/types/static.mjs +3 -0
  2430. package/node_modules/typebox/build/type/types/string.d.mts +12 -0
  2431. package/node_modules/typebox/build/type/types/string.mjs +22 -0
  2432. package/node_modules/typebox/build/type/types/symbol.d.mts +11 -0
  2433. package/node_modules/typebox/build/type/types/symbol.mjs +17 -0
  2434. package/node_modules/typebox/build/type/types/template_literal.d.mts +28 -0
  2435. package/node_modules/typebox/build/type/types/template_literal.mjs +37 -0
  2436. package/node_modules/typebox/build/type/types/this.d.mts +14 -0
  2437. package/node_modules/typebox/build/type/types/this.mjs +17 -0
  2438. package/node_modules/typebox/build/type/types/tuple.d.mts +38 -0
  2439. package/node_modules/typebox/build/type/types/tuple.mjs +25 -0
  2440. package/node_modules/typebox/build/type/types/undefined.d.mts +11 -0
  2441. package/node_modules/typebox/build/type/types/undefined.mjs +17 -0
  2442. package/node_modules/typebox/build/type/types/union.d.mts +15 -0
  2443. package/node_modules/typebox/build/type/types/union.mjs +24 -0
  2444. package/node_modules/typebox/build/type/types/unknown.d.mts +10 -0
  2445. package/node_modules/typebox/build/type/types/unknown.mjs +17 -0
  2446. package/node_modules/typebox/build/type/types/unsafe.d.mts +10 -0
  2447. package/node_modules/typebox/build/type/types/unsafe.mjs +20 -0
  2448. package/node_modules/typebox/build/type/types/void.d.mts +11 -0
  2449. package/node_modules/typebox/build/type/types/void.mjs +17 -0
  2450. package/node_modules/typebox/build/typebox.d.mts +73 -0
  2451. package/node_modules/typebox/build/typebox.mjs +89 -0
  2452. package/node_modules/typebox/build/value/assert/assert.d.mts +14 -0
  2453. package/node_modules/typebox/build/value/assert/assert.mjs +28 -0
  2454. package/node_modules/typebox/build/value/assert/index.d.mts +1 -0
  2455. package/node_modules/typebox/build/value/assert/index.mjs +1 -0
  2456. package/node_modules/typebox/build/value/check/check.d.mts +5 -0
  2457. package/node_modules/typebox/build/value/check/check.mjs +11 -0
  2458. package/node_modules/typebox/build/value/check/index.d.mts +1 -0
  2459. package/node_modules/typebox/build/value/check/index.mjs +1 -0
  2460. package/node_modules/typebox/build/value/clean/additional.d.mts +2 -0
  2461. package/node_modules/typebox/build/value/clean/additional.mjs +6 -0
  2462. package/node_modules/typebox/build/value/clean/clean.d.mts +15 -0
  2463. package/node_modules/typebox/build/value/clean/clean.mjs +15 -0
  2464. package/node_modules/typebox/build/value/clean/from_array.d.mts +2 -0
  2465. package/node_modules/typebox/build/value/clean/from_array.mjs +8 -0
  2466. package/node_modules/typebox/build/value/clean/from_base.d.mts +2 -0
  2467. package/node_modules/typebox/build/value/clean/from_base.mjs +4 -0
  2468. package/node_modules/typebox/build/value/clean/from_cyclic.d.mts +2 -0
  2469. package/node_modules/typebox/build/value/clean/from_cyclic.mjs +6 -0
  2470. package/node_modules/typebox/build/value/clean/from_intersect.d.mts +2 -0
  2471. package/node_modules/typebox/build/value/clean/from_intersect.mjs +26 -0
  2472. package/node_modules/typebox/build/value/clean/from_object.d.mts +2 -0
  2473. package/node_modules/typebox/build/value/clean/from_object.mjs +31 -0
  2474. package/node_modules/typebox/build/value/clean/from_record.d.mts +2 -0
  2475. package/node_modules/typebox/build/value/clean/from_record.mjs +32 -0
  2476. package/node_modules/typebox/build/value/clean/from_ref.d.mts +2 -0
  2477. package/node_modules/typebox/build/value/clean/from_ref.mjs +8 -0
  2478. package/node_modules/typebox/build/value/clean/from_tuple.d.mts +2 -0
  2479. package/node_modules/typebox/build/value/clean/from_tuple.mjs +14 -0
  2480. package/node_modules/typebox/build/value/clean/from_type.d.mts +2 -0
  2481. package/node_modules/typebox/build/value/clean/from_type.mjs +23 -0
  2482. package/node_modules/typebox/build/value/clean/from_union.d.mts +2 -0
  2483. package/node_modules/typebox/build/value/clean/from_union.mjs +13 -0
  2484. package/node_modules/typebox/build/value/clean/index.d.mts +1 -0
  2485. package/node_modules/typebox/build/value/clean/index.mjs +1 -0
  2486. package/node_modules/typebox/build/value/clone/clone.d.mts +5 -0
  2487. package/node_modules/typebox/build/value/clone/clone.mjs +83 -0
  2488. package/node_modules/typebox/build/value/clone/index.d.mts +1 -0
  2489. package/node_modules/typebox/build/value/clone/index.mjs +1 -0
  2490. package/node_modules/typebox/build/value/codec/callback.d.mts +2 -0
  2491. package/node_modules/typebox/build/value/codec/callback.mjs +25 -0
  2492. package/node_modules/typebox/build/value/codec/decode.d.mts +12 -0
  2493. package/node_modules/typebox/build/value/codec/decode.mjs +50 -0
  2494. package/node_modules/typebox/build/value/codec/encode.d.mts +12 -0
  2495. package/node_modules/typebox/build/value/codec/encode.mjs +50 -0
  2496. package/node_modules/typebox/build/value/codec/from_array.d.mts +2 -0
  2497. package/node_modules/typebox/build/value/codec/from_array.mjs +38 -0
  2498. package/node_modules/typebox/build/value/codec/from_cyclic.d.mts +2 -0
  2499. package/node_modules/typebox/build/value/codec/from_cyclic.mjs +8 -0
  2500. package/node_modules/typebox/build/value/codec/from_intersect.d.mts +2 -0
  2501. package/node_modules/typebox/build/value/codec/from_intersect.mjs +58 -0
  2502. package/node_modules/typebox/build/value/codec/from_object.d.mts +2 -0
  2503. package/node_modules/typebox/build/value/codec/from_object.mjs +45 -0
  2504. package/node_modules/typebox/build/value/codec/from_record.d.mts +2 -0
  2505. package/node_modules/typebox/build/value/codec/from_record.mjs +44 -0
  2506. package/node_modules/typebox/build/value/codec/from_ref.d.mts +2 -0
  2507. package/node_modules/typebox/build/value/codec/from_ref.mjs +31 -0
  2508. package/node_modules/typebox/build/value/codec/from_tuple.d.mts +2 -0
  2509. package/node_modules/typebox/build/value/codec/from_tuple.mjs +35 -0
  2510. package/node_modules/typebox/build/value/codec/from_type.d.mts +2 -0
  2511. package/node_modules/typebox/build/value/codec/from_type.mjs +22 -0
  2512. package/node_modules/typebox/build/value/codec/from_union.d.mts +2 -0
  2513. package/node_modules/typebox/build/value/codec/from_union.mjs +40 -0
  2514. package/node_modules/typebox/build/value/codec/has.d.mts +5 -0
  2515. package/node_modules/typebox/build/value/codec/has.mjs +93 -0
  2516. package/node_modules/typebox/build/value/codec/index.d.mts +3 -0
  2517. package/node_modules/typebox/build/value/codec/index.mjs +3 -0
  2518. package/node_modules/typebox/build/value/convert/convert.d.mts +13 -0
  2519. package/node_modules/typebox/build/value/convert/convert.mjs +15 -0
  2520. package/node_modules/typebox/build/value/convert/from_additional.d.mts +6 -0
  2521. package/node_modules/typebox/build/value/convert/from_additional.mjs +18 -0
  2522. package/node_modules/typebox/build/value/convert/from_array.d.mts +2 -0
  2523. package/node_modules/typebox/build/value/convert/from_array.mjs +7 -0
  2524. package/node_modules/typebox/build/value/convert/from_base.d.mts +2 -0
  2525. package/node_modules/typebox/build/value/convert/from_base.mjs +4 -0
  2526. package/node_modules/typebox/build/value/convert/from_bigint.d.mts +2 -0
  2527. package/node_modules/typebox/build/value/convert/from_bigint.mjs +6 -0
  2528. package/node_modules/typebox/build/value/convert/from_boolean.d.mts +2 -0
  2529. package/node_modules/typebox/build/value/convert/from_boolean.mjs +6 -0
  2530. package/node_modules/typebox/build/value/convert/from_cyclic.d.mts +2 -0
  2531. package/node_modules/typebox/build/value/convert/from_cyclic.mjs +6 -0
  2532. package/node_modules/typebox/build/value/convert/from_enum.d.mts +2 -0
  2533. package/node_modules/typebox/build/value/convert/from_enum.mjs +7 -0
  2534. package/node_modules/typebox/build/value/convert/from_integer.d.mts +2 -0
  2535. package/node_modules/typebox/build/value/convert/from_integer.mjs +6 -0
  2536. package/node_modules/typebox/build/value/convert/from_intersect.d.mts +2 -0
  2537. package/node_modules/typebox/build/value/convert/from_intersect.mjs +8 -0
  2538. package/node_modules/typebox/build/value/convert/from_literal.d.mts +2 -0
  2539. package/node_modules/typebox/build/value/convert/from_literal.mjs +44 -0
  2540. package/node_modules/typebox/build/value/convert/from_null.d.mts +2 -0
  2541. package/node_modules/typebox/build/value/convert/from_null.mjs +6 -0
  2542. package/node_modules/typebox/build/value/convert/from_number.d.mts +2 -0
  2543. package/node_modules/typebox/build/value/convert/from_number.mjs +6 -0
  2544. package/node_modules/typebox/build/value/convert/from_object.d.mts +2 -0
  2545. package/node_modules/typebox/build/value/convert/from_object.mjs +28 -0
  2546. package/node_modules/typebox/build/value/convert/from_record.d.mts +2 -0
  2547. package/node_modules/typebox/build/value/convert/from_record.mjs +23 -0
  2548. package/node_modules/typebox/build/value/convert/from_ref.d.mts +2 -0
  2549. package/node_modules/typebox/build/value/convert/from_ref.mjs +8 -0
  2550. package/node_modules/typebox/build/value/convert/from_string.d.mts +2 -0
  2551. package/node_modules/typebox/build/value/convert/from_string.mjs +6 -0
  2552. package/node_modules/typebox/build/value/convert/from_template_literal.d.mts +2 -0
  2553. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +7 -0
  2554. package/node_modules/typebox/build/value/convert/from_tuple.d.mts +2 -0
  2555. package/node_modules/typebox/build/value/convert/from_tuple.mjs +11 -0
  2556. package/node_modules/typebox/build/value/convert/from_type.d.mts +2 -0
  2557. package/node_modules/typebox/build/value/convert/from_type.mjs +45 -0
  2558. package/node_modules/typebox/build/value/convert/from_undefined.d.mts +2 -0
  2559. package/node_modules/typebox/build/value/convert/from_undefined.mjs +6 -0
  2560. package/node_modules/typebox/build/value/convert/from_union.d.mts +2 -0
  2561. package/node_modules/typebox/build/value/convert/from_union.mjs +13 -0
  2562. package/node_modules/typebox/build/value/convert/from_void.d.mts +2 -0
  2563. package/node_modules/typebox/build/value/convert/from_void.mjs +6 -0
  2564. package/node_modules/typebox/build/value/convert/index.d.mts +1 -0
  2565. package/node_modules/typebox/build/value/convert/index.mjs +1 -0
  2566. package/node_modules/typebox/build/value/convert/try/index.d.mts +1 -0
  2567. package/node_modules/typebox/build/value/convert/try/index.mjs +1 -0
  2568. package/node_modules/typebox/build/value/convert/try/try.d.mts +8 -0
  2569. package/node_modules/typebox/build/value/convert/try/try.mjs +8 -0
  2570. package/node_modules/typebox/build/value/convert/try/try_array.d.mts +2 -0
  2571. package/node_modules/typebox/build/value/convert/try/try_array.mjs +6 -0
  2572. package/node_modules/typebox/build/value/convert/try/try_bigint.d.mts +2 -0
  2573. package/node_modules/typebox/build/value/convert/try/try_bigint.mjs +45 -0
  2574. package/node_modules/typebox/build/value/convert/try/try_boolean.d.mts +2 -0
  2575. package/node_modules/typebox/build/value/convert/try/try_boolean.mjs +41 -0
  2576. package/node_modules/typebox/build/value/convert/try/try_null.d.mts +2 -0
  2577. package/node_modules/typebox/build/value/convert/try/try_null.mjs +44 -0
  2578. package/node_modules/typebox/build/value/convert/try/try_number.d.mts +2 -0
  2579. package/node_modules/typebox/build/value/convert/try/try_number.mjs +44 -0
  2580. package/node_modules/typebox/build/value/convert/try/try_result.d.mts +8 -0
  2581. package/node_modules/typebox/build/value/convert/try/try_result.mjs +17 -0
  2582. package/node_modules/typebox/build/value/convert/try/try_string.d.mts +2 -0
  2583. package/node_modules/typebox/build/value/convert/try/try_string.mjs +12 -0
  2584. package/node_modules/typebox/build/value/convert/try/try_undefined.d.mts +2 -0
  2585. package/node_modules/typebox/build/value/convert/try/try_undefined.mjs +44 -0
  2586. package/node_modules/typebox/build/value/create/create.d.mts +5 -0
  2587. package/node_modules/typebox/build/value/create/create.mjs +11 -0
  2588. package/node_modules/typebox/build/value/create/error.d.mts +5 -0
  2589. package/node_modules/typebox/build/value/create/error.mjs +7 -0
  2590. package/node_modules/typebox/build/value/create/from_array.d.mts +2 -0
  2591. package/node_modules/typebox/build/value/create/from_array.mjs +10 -0
  2592. package/node_modules/typebox/build/value/create/from_async_iterator.d.mts +2 -0
  2593. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +5 -0
  2594. package/node_modules/typebox/build/value/create/from_base.d.mts +2 -0
  2595. package/node_modules/typebox/build/value/create/from_base.mjs +4 -0
  2596. package/node_modules/typebox/build/value/create/from_bigint.d.mts +2 -0
  2597. package/node_modules/typebox/build/value/create/from_bigint.mjs +7 -0
  2598. package/node_modules/typebox/build/value/create/from_boolean.d.mts +2 -0
  2599. package/node_modules/typebox/build/value/create/from_boolean.mjs +4 -0
  2600. package/node_modules/typebox/build/value/create/from_constructor.d.mts +2 -0
  2601. package/node_modules/typebox/build/value/create/from_constructor.mjs +10 -0
  2602. package/node_modules/typebox/build/value/create/from_cyclic.d.mts +2 -0
  2603. package/node_modules/typebox/build/value/create/from_cyclic.mjs +6 -0
  2604. package/node_modules/typebox/build/value/create/from_default.d.mts +3 -0
  2605. package/node_modules/typebox/build/value/create/from_default.mjs +10 -0
  2606. package/node_modules/typebox/build/value/create/from_enum.d.mts +2 -0
  2607. package/node_modules/typebox/build/value/create/from_enum.mjs +6 -0
  2608. package/node_modules/typebox/build/value/create/from_function.d.mts +2 -0
  2609. package/node_modules/typebox/build/value/create/from_function.mjs +6 -0
  2610. package/node_modules/typebox/build/value/create/from_integer.d.mts +2 -0
  2611. package/node_modules/typebox/build/value/create/from_integer.mjs +8 -0
  2612. package/node_modules/typebox/build/value/create/from_intersect.d.mts +2 -0
  2613. package/node_modules/typebox/build/value/create/from_intersect.mjs +8 -0
  2614. package/node_modules/typebox/build/value/create/from_iterator.d.mts +2 -0
  2615. package/node_modules/typebox/build/value/create/from_iterator.mjs +5 -0
  2616. package/node_modules/typebox/build/value/create/from_literal.d.mts +2 -0
  2617. package/node_modules/typebox/build/value/create/from_literal.mjs +4 -0
  2618. package/node_modules/typebox/build/value/create/from_never.d.mts +2 -0
  2619. package/node_modules/typebox/build/value/create/from_never.mjs +5 -0
  2620. package/node_modules/typebox/build/value/create/from_null.d.mts +2 -0
  2621. package/node_modules/typebox/build/value/create/from_null.mjs +4 -0
  2622. package/node_modules/typebox/build/value/create/from_number.d.mts +2 -0
  2623. package/node_modules/typebox/build/value/create/from_number.mjs +8 -0
  2624. package/node_modules/typebox/build/value/create/from_object.d.mts +2 -0
  2625. package/node_modules/typebox/build/value/create/from_object.mjs +9 -0
  2626. package/node_modules/typebox/build/value/create/from_promise.d.mts +2 -0
  2627. package/node_modules/typebox/build/value/create/from_promise.mjs +5 -0
  2628. package/node_modules/typebox/build/value/create/from_record.d.mts +2 -0
  2629. package/node_modules/typebox/build/value/create/from_record.mjs +8 -0
  2630. package/node_modules/typebox/build/value/create/from_ref.d.mts +2 -0
  2631. package/node_modules/typebox/build/value/create/from_ref.mjs +9 -0
  2632. package/node_modules/typebox/build/value/create/from_string.d.mts +2 -0
  2633. package/node_modules/typebox/build/value/create/from_string.mjs +9 -0
  2634. package/node_modules/typebox/build/value/create/from_symbol.d.mts +2 -0
  2635. package/node_modules/typebox/build/value/create/from_symbol.mjs +4 -0
  2636. package/node_modules/typebox/build/value/create/from_template_literal.d.mts +2 -0
  2637. package/node_modules/typebox/build/value/create/from_template_literal.mjs +11 -0
  2638. package/node_modules/typebox/build/value/create/from_tuple.d.mts +2 -0
  2639. package/node_modules/typebox/build/value/create/from_tuple.mjs +5 -0
  2640. package/node_modules/typebox/build/value/create/from_type.d.mts +2 -0
  2641. package/node_modules/typebox/build/value/create/from_type.mjs +69 -0
  2642. package/node_modules/typebox/build/value/create/from_undefined.d.mts +2 -0
  2643. package/node_modules/typebox/build/value/create/from_undefined.mjs +4 -0
  2644. package/node_modules/typebox/build/value/create/from_union.d.mts +2 -0
  2645. package/node_modules/typebox/build/value/create/from_union.mjs +9 -0
  2646. package/node_modules/typebox/build/value/create/from_void.d.mts +2 -0
  2647. package/node_modules/typebox/build/value/create/from_void.mjs +4 -0
  2648. package/node_modules/typebox/build/value/create/index.d.mts +2 -0
  2649. package/node_modules/typebox/build/value/create/index.mjs +2 -0
  2650. package/node_modules/typebox/build/value/default/default.d.mts +13 -0
  2651. package/node_modules/typebox/build/value/default/default.mjs +15 -0
  2652. package/node_modules/typebox/build/value/default/from_array.d.mts +2 -0
  2653. package/node_modules/typebox/build/value/default/from_array.mjs +12 -0
  2654. package/node_modules/typebox/build/value/default/from_base.d.mts +2 -0
  2655. package/node_modules/typebox/build/value/default/from_base.mjs +5 -0
  2656. package/node_modules/typebox/build/value/default/from_cyclic.d.mts +2 -0
  2657. package/node_modules/typebox/build/value/default/from_cyclic.mjs +7 -0
  2658. package/node_modules/typebox/build/value/default/from_default.d.mts +3 -0
  2659. package/node_modules/typebox/build/value/default/from_default.mjs +13 -0
  2660. package/node_modules/typebox/build/value/default/from_intersect.d.mts +2 -0
  2661. package/node_modules/typebox/build/value/default/from_intersect.mjs +9 -0
  2662. package/node_modules/typebox/build/value/default/from_object.d.mts +2 -0
  2663. package/node_modules/typebox/build/value/default/from_object.mjs +32 -0
  2664. package/node_modules/typebox/build/value/default/from_record.d.mts +2 -0
  2665. package/node_modules/typebox/build/value/default/from_record.mjs +26 -0
  2666. package/node_modules/typebox/build/value/default/from_ref.d.mts +2 -0
  2667. package/node_modules/typebox/build/value/default/from_ref.mjs +9 -0
  2668. package/node_modules/typebox/build/value/default/from_tuple.d.mts +2 -0
  2669. package/node_modules/typebox/build/value/default/from_tuple.mjs +14 -0
  2670. package/node_modules/typebox/build/value/default/from_type.d.mts +2 -0
  2671. package/node_modules/typebox/build/value/default/from_type.mjs +27 -0
  2672. package/node_modules/typebox/build/value/default/from_union.d.mts +2 -0
  2673. package/node_modules/typebox/build/value/default/from_union.mjs +14 -0
  2674. package/node_modules/typebox/build/value/default/index.d.mts +1 -0
  2675. package/node_modules/typebox/build/value/default/index.mjs +1 -0
  2676. package/node_modules/typebox/build/value/delta/diff.d.mts +10 -0
  2677. package/node_modules/typebox/build/value/delta/diff.mjs +135 -0
  2678. package/node_modules/typebox/build/value/delta/edit.d.mts +24 -0
  2679. package/node_modules/typebox/build/value/delta/edit.mjs +17 -0
  2680. package/node_modules/typebox/build/value/delta/index.d.mts +3 -0
  2681. package/node_modules/typebox/build/value/delta/index.mjs +3 -0
  2682. package/node_modules/typebox/build/value/delta/patch.d.mts +8 -0
  2683. package/node_modules/typebox/build/value/delta/patch.mjs +42 -0
  2684. package/node_modules/typebox/build/value/equal/equal.d.mts +2 -0
  2685. package/node_modules/typebox/build/value/equal/equal.mjs +6 -0
  2686. package/node_modules/typebox/build/value/equal/index.d.mts +1 -0
  2687. package/node_modules/typebox/build/value/equal/index.mjs +1 -0
  2688. package/node_modules/typebox/build/value/errors/errors.d.mts +16 -0
  2689. package/node_modules/typebox/build/value/errors/errors.mjs +17 -0
  2690. package/node_modules/typebox/build/value/errors/index.d.mts +1 -0
  2691. package/node_modules/typebox/build/value/errors/index.mjs +1 -0
  2692. package/node_modules/typebox/build/value/hash/hash.d.mts +6 -0
  2693. package/node_modules/typebox/build/value/hash/hash.mjs +10 -0
  2694. package/node_modules/typebox/build/value/hash/index.d.mts +1 -0
  2695. package/node_modules/typebox/build/value/hash/index.mjs +1 -0
  2696. package/node_modules/typebox/build/value/index.d.mts +21 -0
  2697. package/node_modules/typebox/build/value/index.mjs +30 -0
  2698. package/node_modules/typebox/build/value/mutate/error.d.mts +3 -0
  2699. package/node_modules/typebox/build/value/mutate/error.mjs +6 -0
  2700. package/node_modules/typebox/build/value/mutate/from_array.d.mts +2 -0
  2701. package/node_modules/typebox/build/value/mutate/from_array.mjs +16 -0
  2702. package/node_modules/typebox/build/value/mutate/from_object.d.mts +2 -0
  2703. package/node_modules/typebox/build/value/mutate/from_object.mjs +40 -0
  2704. package/node_modules/typebox/build/value/mutate/from_unknown.d.mts +2 -0
  2705. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +7 -0
  2706. package/node_modules/typebox/build/value/mutate/from_value.d.mts +2 -0
  2707. package/node_modules/typebox/build/value/mutate/from_value.mjs +12 -0
  2708. package/node_modules/typebox/build/value/mutate/index.d.mts +1 -0
  2709. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  2710. package/node_modules/typebox/build/value/mutate/mutate.d.mts +11 -0
  2711. package/node_modules/typebox/build/value/mutate/mutate.mjs +41 -0
  2712. package/node_modules/typebox/build/value/parse/index.d.mts +1 -0
  2713. package/node_modules/typebox/build/value/parse/index.mjs +1 -0
  2714. package/node_modules/typebox/build/value/parse/parse.d.mts +11 -0
  2715. package/node_modules/typebox/build/value/parse/parse.mjs +47 -0
  2716. package/node_modules/typebox/build/value/pipeline/index.d.mts +1 -0
  2717. package/node_modules/typebox/build/value/pipeline/index.mjs +1 -0
  2718. package/node_modules/typebox/build/value/pipeline/pipeline.d.mts +10 -0
  2719. package/node_modules/typebox/build/value/pipeline/pipeline.mjs +15 -0
  2720. package/node_modules/typebox/build/value/pointer/index.d.mts +1 -0
  2721. package/node_modules/typebox/build/value/pointer/index.mjs +1 -0
  2722. package/node_modules/typebox/build/value/repair/error.d.mts +7 -0
  2723. package/node_modules/typebox/build/value/repair/error.mjs +8 -0
  2724. package/node_modules/typebox/build/value/repair/from_array.d.mts +2 -0
  2725. package/node_modules/typebox/build/value/repair/from_array.mjs +39 -0
  2726. package/node_modules/typebox/build/value/repair/from_base.d.mts +2 -0
  2727. package/node_modules/typebox/build/value/repair/from_base.mjs +8 -0
  2728. package/node_modules/typebox/build/value/repair/from_enum.d.mts +2 -0
  2729. package/node_modules/typebox/build/value/repair/from_enum.mjs +7 -0
  2730. package/node_modules/typebox/build/value/repair/from_intersect.d.mts +2 -0
  2731. package/node_modules/typebox/build/value/repair/from_intersect.mjs +8 -0
  2732. package/node_modules/typebox/build/value/repair/from_object.d.mts +2 -0
  2733. package/node_modules/typebox/build/value/repair/from_object.mjs +33 -0
  2734. package/node_modules/typebox/build/value/repair/from_record.d.mts +2 -0
  2735. package/node_modules/typebox/build/value/repair/from_record.mjs +33 -0
  2736. package/node_modules/typebox/build/value/repair/from_ref.d.mts +2 -0
  2737. package/node_modules/typebox/build/value/repair/from_ref.mjs +9 -0
  2738. package/node_modules/typebox/build/value/repair/from_template_literal.d.mts +2 -0
  2739. package/node_modules/typebox/build/value/repair/from_template_literal.mjs +7 -0
  2740. package/node_modules/typebox/build/value/repair/from_tuple.d.mts +2 -0
  2741. package/node_modules/typebox/build/value/repair/from_tuple.mjs +12 -0
  2742. package/node_modules/typebox/build/value/repair/from_type.d.mts +2 -0
  2743. package/node_modules/typebox/build/value/repair/from_type.mjs +86 -0
  2744. package/node_modules/typebox/build/value/repair/from_union.d.mts +2 -0
  2745. package/node_modules/typebox/build/value/repair/from_union.mjs +24 -0
  2746. package/node_modules/typebox/build/value/repair/from_unknown.d.mts +2 -0
  2747. package/node_modules/typebox/build/value/repair/from_unknown.mjs +12 -0
  2748. package/node_modules/typebox/build/value/repair/index.d.mts +1 -0
  2749. package/node_modules/typebox/build/value/repair/index.mjs +1 -0
  2750. package/node_modules/typebox/build/value/repair/repair.d.mts +17 -0
  2751. package/node_modules/typebox/build/value/repair/repair.mjs +20 -0
  2752. package/node_modules/typebox/build/value/shared/index.d.mts +3 -0
  2753. package/node_modules/typebox/build/value/shared/index.mjs +4 -0
  2754. package/node_modules/typebox/build/value/shared/optional_undefined.d.mts +2 -0
  2755. package/node_modules/typebox/build/value/shared/optional_undefined.mjs +15 -0
  2756. package/node_modules/typebox/build/value/shared/union_priority_sort.d.mts +3 -0
  2757. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +36 -0
  2758. package/node_modules/typebox/build/value/shared/union_score_select.d.mts +3 -0
  2759. package/node_modules/typebox/build/value/shared/union_score_select.mjs +51 -0
  2760. package/node_modules/typebox/build/value/value.d.mts +16 -0
  2761. package/node_modules/typebox/build/value/value.mjs +16 -0
  2762. package/node_modules/typebox/license +23 -0
  2763. package/node_modules/typebox/package.json +87 -0
  2764. package/node_modules/typebox/readme.md +356 -0
  2765. package/node_modules/undici/LICENSE +21 -0
  2766. package/node_modules/undici/README.md +750 -0
  2767. package/node_modules/undici/docs/docs/api/Agent.md +84 -0
  2768. package/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
  2769. package/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
  2770. package/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
  2771. package/node_modules/undici/docs/docs/api/Client.md +287 -0
  2772. package/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
  2773. package/node_modules/undici/docs/docs/api/Connector.md +115 -0
  2774. package/node_modules/undici/docs/docs/api/ContentType.md +57 -0
  2775. package/node_modules/undici/docs/docs/api/Cookies.md +101 -0
  2776. package/node_modules/undici/docs/docs/api/Debug.md +62 -0
  2777. package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +315 -0
  2778. package/node_modules/undici/docs/docs/api/Dispatcher.md +1427 -0
  2779. package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
  2780. package/node_modules/undici/docs/docs/api/Errors.md +49 -0
  2781. package/node_modules/undici/docs/docs/api/EventSource.md +45 -0
  2782. package/node_modules/undici/docs/docs/api/Fetch.md +60 -0
  2783. package/node_modules/undici/docs/docs/api/GlobalInstallation.md +141 -0
  2784. package/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
  2785. package/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
  2786. package/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
  2787. package/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
  2788. package/node_modules/undici/docs/docs/api/MockClient.md +81 -0
  2789. package/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
  2790. package/node_modules/undici/docs/docs/api/MockPool.md +555 -0
  2791. package/node_modules/undici/docs/docs/api/Pool.md +84 -0
  2792. package/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
  2793. package/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
  2794. package/node_modules/undici/docs/docs/api/RedirectHandler.md +98 -0
  2795. package/node_modules/undici/docs/docs/api/RetryAgent.md +49 -0
  2796. package/node_modules/undici/docs/docs/api/RetryHandler.md +116 -0
  2797. package/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
  2798. package/node_modules/undici/docs/docs/api/SnapshotAgent.md +639 -0
  2799. package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +274 -0
  2800. package/node_modules/undici/docs/docs/api/Util.md +25 -0
  2801. package/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
  2802. package/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
  2803. package/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
  2804. package/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
  2805. package/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +231 -0
  2806. package/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
  2807. package/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
  2808. package/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
  2809. package/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
  2810. package/node_modules/undici/index-fetch.js +65 -0
  2811. package/node_modules/undici/index.d.ts +3 -0
  2812. package/node_modules/undici/index.js +236 -0
  2813. package/node_modules/undici/lib/api/abort-signal.js +59 -0
  2814. package/node_modules/undici/lib/api/api-connect.js +112 -0
  2815. package/node_modules/undici/lib/api/api-pipeline.js +265 -0
  2816. package/node_modules/undici/lib/api/api-request.js +238 -0
  2817. package/node_modules/undici/lib/api/api-stream.js +270 -0
  2818. package/node_modules/undici/lib/api/api-upgrade.js +121 -0
  2819. package/node_modules/undici/lib/api/index.js +7 -0
  2820. package/node_modules/undici/lib/api/readable.js +581 -0
  2821. package/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
  2822. package/node_modules/undici/lib/cache/sqlite-cache-store.js +463 -0
  2823. package/node_modules/undici/lib/core/connect.js +153 -0
  2824. package/node_modules/undici/lib/core/constants.js +120 -0
  2825. package/node_modules/undici/lib/core/diagnostics.js +227 -0
  2826. package/node_modules/undici/lib/core/errors.js +477 -0
  2827. package/node_modules/undici/lib/core/request.js +535 -0
  2828. package/node_modules/undici/lib/core/socks5-client.js +422 -0
  2829. package/node_modules/undici/lib/core/socks5-utils.js +212 -0
  2830. package/node_modules/undici/lib/core/symbols.js +76 -0
  2831. package/node_modules/undici/lib/core/tree.js +160 -0
  2832. package/node_modules/undici/lib/core/util.js +1019 -0
  2833. package/node_modules/undici/lib/dispatcher/agent.js +172 -0
  2834. package/node_modules/undici/lib/dispatcher/balanced-pool.js +214 -0
  2835. package/node_modules/undici/lib/dispatcher/client-h1.js +1669 -0
  2836. package/node_modules/undici/lib/dispatcher/client-h2.js +1326 -0
  2837. package/node_modules/undici/lib/dispatcher/client.js +666 -0
  2838. package/node_modules/undici/lib/dispatcher/dispatcher-base.js +184 -0
  2839. package/node_modules/undici/lib/dispatcher/dispatcher.js +44 -0
  2840. package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +107 -0
  2841. package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
  2842. package/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
  2843. package/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
  2844. package/node_modules/undici/lib/dispatcher/pool-base.js +232 -0
  2845. package/node_modules/undici/lib/dispatcher/pool.js +143 -0
  2846. package/node_modules/undici/lib/dispatcher/proxy-agent.js +343 -0
  2847. package/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
  2848. package/node_modules/undici/lib/dispatcher/round-robin-pool.js +159 -0
  2849. package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +264 -0
  2850. package/node_modules/undici/lib/encoding/index.js +33 -0
  2851. package/node_modules/undici/lib/global.js +62 -0
  2852. package/node_modules/undici/lib/handler/cache-handler.js +586 -0
  2853. package/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
  2854. package/node_modules/undici/lib/handler/decorator-handler.js +66 -0
  2855. package/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
  2856. package/node_modules/undici/lib/handler/redirect-handler.js +192 -0
  2857. package/node_modules/undici/lib/handler/retry-handler.js +407 -0
  2858. package/node_modules/undici/lib/interceptor/cache.js +508 -0
  2859. package/node_modules/undici/lib/interceptor/decompress.js +285 -0
  2860. package/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
  2861. package/node_modules/undici/lib/interceptor/dns.js +571 -0
  2862. package/node_modules/undici/lib/interceptor/dump.js +112 -0
  2863. package/node_modules/undici/lib/interceptor/redirect.js +21 -0
  2864. package/node_modules/undici/lib/interceptor/response-error.js +95 -0
  2865. package/node_modules/undici/lib/interceptor/retry.js +19 -0
  2866. package/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
  2867. package/node_modules/undici/lib/llhttp/constants.js +531 -0
  2868. package/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
  2869. package/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
  2870. package/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
  2871. package/node_modules/undici/lib/llhttp/utils.js +12 -0
  2872. package/node_modules/undici/lib/mock/mock-agent.js +232 -0
  2873. package/node_modules/undici/lib/mock/mock-call-history.js +248 -0
  2874. package/node_modules/undici/lib/mock/mock-client.js +68 -0
  2875. package/node_modules/undici/lib/mock/mock-errors.js +29 -0
  2876. package/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
  2877. package/node_modules/undici/lib/mock/mock-pool.js +68 -0
  2878. package/node_modules/undici/lib/mock/mock-symbols.js +32 -0
  2879. package/node_modules/undici/lib/mock/mock-utils.js +501 -0
  2880. package/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
  2881. package/node_modules/undici/lib/mock/snapshot-agent.js +363 -0
  2882. package/node_modules/undici/lib/mock/snapshot-recorder.js +623 -0
  2883. package/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
  2884. package/node_modules/undici/lib/util/cache.js +408 -0
  2885. package/node_modules/undici/lib/util/date.js +653 -0
  2886. package/node_modules/undici/lib/util/runtime-features.js +93 -0
  2887. package/node_modules/undici/lib/util/stats.js +32 -0
  2888. package/node_modules/undici/lib/util/timers.js +425 -0
  2889. package/node_modules/undici/lib/web/cache/cache.js +862 -0
  2890. package/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
  2891. package/node_modules/undici/lib/web/cache/util.js +45 -0
  2892. package/node_modules/undici/lib/web/cookies/constants.js +12 -0
  2893. package/node_modules/undici/lib/web/cookies/index.js +199 -0
  2894. package/node_modules/undici/lib/web/cookies/parse.js +322 -0
  2895. package/node_modules/undici/lib/web/cookies/util.js +282 -0
  2896. package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +494 -0
  2897. package/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
  2898. package/node_modules/undici/lib/web/eventsource/util.js +29 -0
  2899. package/node_modules/undici/lib/web/fetch/LICENSE +21 -0
  2900. package/node_modules/undici/lib/web/fetch/body.js +503 -0
  2901. package/node_modules/undici/lib/web/fetch/constants.js +131 -0
  2902. package/node_modules/undici/lib/web/fetch/data-url.js +596 -0
  2903. package/node_modules/undici/lib/web/fetch/formdata-parser.js +586 -0
  2904. package/node_modules/undici/lib/web/fetch/formdata.js +278 -0
  2905. package/node_modules/undici/lib/web/fetch/global.js +40 -0
  2906. package/node_modules/undici/lib/web/fetch/headers.js +719 -0
  2907. package/node_modules/undici/lib/web/fetch/index.js +2403 -0
  2908. package/node_modules/undici/lib/web/fetch/request.js +1115 -0
  2909. package/node_modules/undici/lib/web/fetch/response.js +641 -0
  2910. package/node_modules/undici/lib/web/fetch/util.js +1522 -0
  2911. package/node_modules/undici/lib/web/infra/index.js +229 -0
  2912. package/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
  2913. package/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
  2914. package/node_modules/undici/lib/web/webidl/index.js +1004 -0
  2915. package/node_modules/undici/lib/web/websocket/connection.js +329 -0
  2916. package/node_modules/undici/lib/web/websocket/constants.js +126 -0
  2917. package/node_modules/undici/lib/web/websocket/events.js +331 -0
  2918. package/node_modules/undici/lib/web/websocket/frame.js +127 -0
  2919. package/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
  2920. package/node_modules/undici/lib/web/websocket/receiver.js +490 -0
  2921. package/node_modules/undici/lib/web/websocket/sender.js +109 -0
  2922. package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
  2923. package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +491 -0
  2924. package/node_modules/undici/lib/web/websocket/util.js +347 -0
  2925. package/node_modules/undici/lib/web/websocket/websocket.js +756 -0
  2926. package/node_modules/undici/package.json +152 -0
  2927. package/node_modules/undici/scripts/strip-comments.js +10 -0
  2928. package/node_modules/undici/types/README.md +6 -0
  2929. package/node_modules/undici/types/agent.d.ts +30 -0
  2930. package/node_modules/undici/types/api.d.ts +43 -0
  2931. package/node_modules/undici/types/balanced-pool.d.ts +30 -0
  2932. package/node_modules/undici/types/cache-interceptor.d.ts +179 -0
  2933. package/node_modules/undici/types/cache.d.ts +36 -0
  2934. package/node_modules/undici/types/client-stats.d.ts +15 -0
  2935. package/node_modules/undici/types/client.d.ts +129 -0
  2936. package/node_modules/undici/types/connector.d.ts +36 -0
  2937. package/node_modules/undici/types/content-type.d.ts +21 -0
  2938. package/node_modules/undici/types/cookies.d.ts +30 -0
  2939. package/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
  2940. package/node_modules/undici/types/dispatcher.d.ts +253 -0
  2941. package/node_modules/undici/types/dispatcher1-wrapper.d.ts +7 -0
  2942. package/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
  2943. package/node_modules/undici/types/errors.d.ts +177 -0
  2944. package/node_modules/undici/types/eventsource.d.ts +66 -0
  2945. package/node_modules/undici/types/fetch.d.ts +231 -0
  2946. package/node_modules/undici/types/formdata.d.ts +108 -0
  2947. package/node_modules/undici/types/global-dispatcher.d.ts +9 -0
  2948. package/node_modules/undici/types/global-origin.d.ts +7 -0
  2949. package/node_modules/undici/types/h2c-client.d.ts +73 -0
  2950. package/node_modules/undici/types/handlers.d.ts +14 -0
  2951. package/node_modules/undici/types/header.d.ts +165 -0
  2952. package/node_modules/undici/types/index.d.ts +93 -0
  2953. package/node_modules/undici/types/interceptors.d.ts +80 -0
  2954. package/node_modules/undici/types/mock-agent.d.ts +68 -0
  2955. package/node_modules/undici/types/mock-call-history.d.ts +111 -0
  2956. package/node_modules/undici/types/mock-client.d.ts +27 -0
  2957. package/node_modules/undici/types/mock-errors.d.ts +12 -0
  2958. package/node_modules/undici/types/mock-interceptor.d.ts +94 -0
  2959. package/node_modules/undici/types/mock-pool.d.ts +27 -0
  2960. package/node_modules/undici/types/patch.d.ts +29 -0
  2961. package/node_modules/undici/types/pool-stats.d.ts +19 -0
  2962. package/node_modules/undici/types/pool.d.ts +39 -0
  2963. package/node_modules/undici/types/proxy-agent.d.ts +29 -0
  2964. package/node_modules/undici/types/readable.d.ts +68 -0
  2965. package/node_modules/undici/types/retry-agent.d.ts +8 -0
  2966. package/node_modules/undici/types/retry-handler.d.ts +125 -0
  2967. package/node_modules/undici/types/round-robin-pool.d.ts +39 -0
  2968. package/node_modules/undici/types/snapshot-agent.d.ts +113 -0
  2969. package/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
  2970. package/node_modules/undici/types/util.d.ts +18 -0
  2971. package/node_modules/undici/types/utility.d.ts +7 -0
  2972. package/node_modules/undici/types/webidl.d.ts +346 -0
  2973. package/node_modules/undici/types/websocket.d.ts +188 -0
  2974. package/node_modules/undici-types/LICENSE +21 -0
  2975. package/node_modules/undici-types/README.md +6 -0
  2976. package/node_modules/undici-types/agent.d.ts +32 -0
  2977. package/node_modules/undici-types/api.d.ts +43 -0
  2978. package/node_modules/undici-types/balanced-pool.d.ts +30 -0
  2979. package/node_modules/undici-types/cache-interceptor.d.ts +179 -0
  2980. package/node_modules/undici-types/cache.d.ts +36 -0
  2981. package/node_modules/undici-types/client-stats.d.ts +15 -0
  2982. package/node_modules/undici-types/client.d.ts +123 -0
  2983. package/node_modules/undici-types/connector.d.ts +36 -0
  2984. package/node_modules/undici-types/content-type.d.ts +21 -0
  2985. package/node_modules/undici-types/cookies.d.ts +30 -0
  2986. package/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
  2987. package/node_modules/undici-types/dispatcher.d.ts +279 -0
  2988. package/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
  2989. package/node_modules/undici-types/errors.d.ts +177 -0
  2990. package/node_modules/undici-types/eventsource.d.ts +66 -0
  2991. package/node_modules/undici-types/fetch.d.ts +211 -0
  2992. package/node_modules/undici-types/formdata.d.ts +108 -0
  2993. package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  2994. package/node_modules/undici-types/global-origin.d.ts +7 -0
  2995. package/node_modules/undici-types/h2c-client.d.ts +73 -0
  2996. package/node_modules/undici-types/handlers.d.ts +15 -0
  2997. package/node_modules/undici-types/header.d.ts +160 -0
  2998. package/node_modules/undici-types/index.d.ts +91 -0
  2999. package/node_modules/undici-types/interceptors.d.ts +80 -0
  3000. package/node_modules/undici-types/mock-agent.d.ts +68 -0
  3001. package/node_modules/undici-types/mock-call-history.d.ts +111 -0
  3002. package/node_modules/undici-types/mock-client.d.ts +27 -0
  3003. package/node_modules/undici-types/mock-errors.d.ts +12 -0
  3004. package/node_modules/undici-types/mock-interceptor.d.ts +94 -0
  3005. package/node_modules/undici-types/mock-pool.d.ts +27 -0
  3006. package/node_modules/undici-types/package.json +55 -0
  3007. package/node_modules/undici-types/patch.d.ts +29 -0
  3008. package/node_modules/undici-types/pool-stats.d.ts +19 -0
  3009. package/node_modules/undici-types/pool.d.ts +41 -0
  3010. package/node_modules/undici-types/proxy-agent.d.ts +29 -0
  3011. package/node_modules/undici-types/readable.d.ts +68 -0
  3012. package/node_modules/undici-types/retry-agent.d.ts +8 -0
  3013. package/node_modules/undici-types/retry-handler.d.ts +125 -0
  3014. package/node_modules/undici-types/round-robin-pool.d.ts +41 -0
  3015. package/node_modules/undici-types/snapshot-agent.d.ts +109 -0
  3016. package/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
  3017. package/node_modules/undici-types/util.d.ts +18 -0
  3018. package/node_modules/undici-types/utility.d.ts +7 -0
  3019. package/node_modules/undici-types/webidl.d.ts +347 -0
  3020. package/node_modules/undici-types/websocket.d.ts +188 -0
  3021. package/node_modules/ws/LICENSE +20 -0
  3022. package/node_modules/ws/README.md +548 -0
  3023. package/node_modules/ws/browser.js +8 -0
  3024. package/node_modules/ws/index.js +22 -0
  3025. package/node_modules/ws/lib/buffer-util.js +131 -0
  3026. package/node_modules/ws/lib/constants.js +19 -0
  3027. package/node_modules/ws/lib/event-target.js +292 -0
  3028. package/node_modules/ws/lib/extension.js +203 -0
  3029. package/node_modules/ws/lib/limiter.js +55 -0
  3030. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  3031. package/node_modules/ws/lib/receiver.js +706 -0
  3032. package/node_modules/ws/lib/sender.js +607 -0
  3033. package/node_modules/ws/lib/stream.js +161 -0
  3034. package/node_modules/ws/lib/subprotocol.js +62 -0
  3035. package/node_modules/ws/lib/validation.js +152 -0
  3036. package/node_modules/ws/lib/websocket-server.js +554 -0
  3037. package/node_modules/ws/lib/websocket.js +1393 -0
  3038. package/node_modules/ws/package.json +70 -0
  3039. package/node_modules/ws/wrapper.mjs +21 -0
  3040. package/npm-shrinkwrap.json +512 -0
  3041. package/openclaw.plugin.json +14 -0
  3042. package/package.json +15 -9
  3043. package/dist/provider.runtime-CUUefRl3.js +0 -2
  3044. package/dist/runtime-api.monitor-D1psRR2u.js +0 -5
@@ -0,0 +1,2942 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.wasmUtil = {}));
5
+ })(this, (function (exports) { 'use strict';
6
+
7
+ const _WebAssembly = typeof WebAssembly !== 'undefined'
8
+ ? WebAssembly
9
+ : typeof WXWebAssembly !== 'undefined'
10
+ ? WXWebAssembly
11
+ : undefined;
12
+ if (!_WebAssembly) {
13
+ throw new Error('WebAssembly is not supported in this environment');
14
+ }
15
+
16
+ /* eslint-disable spaced-comment */
17
+
18
+ function validateObject(value, name) {
19
+ if (value === null || typeof value !== 'object') {
20
+ throw new TypeError(`${name} must be an object. Received ${value === null ? 'null' : typeof value}`);
21
+ }
22
+ }
23
+ function validateArray(value, name) {
24
+ if (!Array.isArray(value)) {
25
+ throw new TypeError(`${name} must be an array. Received ${value === null ? 'null' : typeof value}`);
26
+ }
27
+ }
28
+ function validateBoolean(value, name) {
29
+ if (typeof value !== 'boolean') {
30
+ throw new TypeError(`${name} must be a boolean. Received ${value === null ? 'null' : typeof value}`);
31
+ }
32
+ }
33
+ function validateString(value, name) {
34
+ if (typeof value !== 'string') {
35
+ throw new TypeError(`${name} must be a string. Received ${value === null ? 'null' : typeof value}`);
36
+ }
37
+ }
38
+ function validateFunction(value, name) {
39
+ if (typeof value !== 'function') {
40
+ throw new TypeError(`${name} must be a function. Received ${value === null ? 'null' : typeof value}`);
41
+ }
42
+ }
43
+ function validateUndefined(value, name) {
44
+ if (value !== undefined) {
45
+ throw new TypeError(`${name} must be undefined. Received ${value === null ? 'null' : typeof value}`);
46
+ }
47
+ }
48
+ function isPromiseLike(obj) {
49
+ return !!(obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function');
50
+ }
51
+ function wrapInstanceExports(exports, mapFn) {
52
+ const newExports = Object.create(null);
53
+ Object.keys(exports).forEach(name => {
54
+ const exportValue = exports[name];
55
+ Object.defineProperty(newExports, name, {
56
+ enumerable: true,
57
+ value: mapFn(exportValue, name)
58
+ });
59
+ });
60
+ return newExports;
61
+ }
62
+ function sleepBreakIf(delay, breakIf) {
63
+ const start = Date.now();
64
+ const end = start + delay;
65
+ let ret = false;
66
+ while (Date.now() < end) {
67
+ if (breakIf()) {
68
+ ret = true;
69
+ break;
70
+ }
71
+ }
72
+ return ret;
73
+ }
74
+ function unsharedSlice(view, start, end) {
75
+ return ((typeof SharedArrayBuffer === 'function' && view.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(view.buffer.constructor) === '[object SharedArrayBuffer]'))
76
+ ? view.slice(start, end)
77
+ : view.subarray(start, end);
78
+ }
79
+
80
+ const ignoreNames = [
81
+ 'asyncify_get_state',
82
+ 'asyncify_start_rewind',
83
+ 'asyncify_start_unwind',
84
+ 'asyncify_stop_rewind',
85
+ 'asyncify_stop_unwind'
86
+ ];
87
+ function tryAllocate(instance, wasm64, size, mallocName) {
88
+ if (typeof instance.exports[mallocName] !== 'function' || size <= 0) {
89
+ return {
90
+ wasm64,
91
+ dataPtr: 16,
92
+ start: wasm64 ? 32 : 24,
93
+ end: 1024
94
+ };
95
+ }
96
+ const malloc = instance.exports[mallocName];
97
+ const dataPtr = wasm64 ? Number(malloc(BigInt(16) + BigInt(size))) : malloc(8 + size);
98
+ if (dataPtr === 0) {
99
+ throw new Error('Allocate asyncify data failed');
100
+ }
101
+ return wasm64
102
+ ? { wasm64, dataPtr, start: dataPtr + 16, end: dataPtr + 16 + size }
103
+ : { wasm64, dataPtr, start: dataPtr + 8, end: dataPtr + 8 + size };
104
+ }
105
+ /** @public */
106
+ class Asyncify {
107
+ constructor() {
108
+ this.value = undefined;
109
+ this.exports = undefined;
110
+ this.dataPtr = 0;
111
+ }
112
+ init(memory, instance, options) {
113
+ var _a, _b;
114
+ if (this.exports) {
115
+ throw new Error('Asyncify has been initialized');
116
+ }
117
+ if (!(memory instanceof _WebAssembly.Memory)) {
118
+ throw new TypeError('Require WebAssembly.Memory object');
119
+ }
120
+ const exports = instance.exports;
121
+ for (let i = 0; i < ignoreNames.length; ++i) {
122
+ if (typeof exports[ignoreNames[i]] !== 'function') {
123
+ throw new TypeError('Invalid asyncify wasm');
124
+ }
125
+ }
126
+ let address;
127
+ const wasm64 = Boolean(options.wasm64);
128
+ if (!options.tryAllocate) {
129
+ address = {
130
+ wasm64,
131
+ dataPtr: 16,
132
+ start: wasm64 ? 32 : 24,
133
+ end: 1024
134
+ };
135
+ }
136
+ else {
137
+ if (options.tryAllocate === true) {
138
+ address = tryAllocate(instance, wasm64, 4096, 'malloc');
139
+ }
140
+ else {
141
+ address = tryAllocate(instance, wasm64, (_a = options.tryAllocate.size) !== null && _a !== void 0 ? _a : 4096, (_b = options.tryAllocate.name) !== null && _b !== void 0 ? _b : 'malloc');
142
+ }
143
+ }
144
+ this.dataPtr = address.dataPtr;
145
+ if (wasm64) {
146
+ new BigInt64Array(memory.buffer, this.dataPtr).set([BigInt(address.start), BigInt(address.end)]);
147
+ }
148
+ else {
149
+ new Int32Array(memory.buffer, this.dataPtr).set([address.start, address.end]);
150
+ }
151
+ this.exports = this.wrapExports(exports, options.wrapExports);
152
+ const asyncifiedInstance = Object.create(_WebAssembly.Instance.prototype);
153
+ Object.defineProperty(asyncifiedInstance, 'exports', { value: this.exports });
154
+ // Object.setPrototypeOf(instance, Instance.prototype)
155
+ return asyncifiedInstance;
156
+ }
157
+ assertState() {
158
+ if (this.exports.asyncify_get_state() !== 0 /* AsyncifyState.NONE */) {
159
+ throw new Error('Asyncify state error');
160
+ }
161
+ }
162
+ wrapImportFunction(f) {
163
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
164
+ const _this = this;
165
+ return (function () {
166
+ // eslint-disable-next-line no-unreachable-loop
167
+ while (_this.exports.asyncify_get_state() === 2 /* AsyncifyState.REWINDING */) {
168
+ _this.exports.asyncify_stop_rewind();
169
+ return _this.value;
170
+ }
171
+ _this.assertState();
172
+ const v = f.apply(this, arguments);
173
+ if (!isPromiseLike(v))
174
+ return v;
175
+ _this.exports.asyncify_start_unwind(_this.dataPtr);
176
+ _this.value = v;
177
+ });
178
+ }
179
+ wrapImports(imports) {
180
+ const importObject = {};
181
+ Object.keys(imports).forEach(k => {
182
+ const mod = imports[k];
183
+ const newModule = {};
184
+ Object.keys(mod).forEach(name => {
185
+ const importValue = mod[name];
186
+ if (typeof importValue === 'function') {
187
+ newModule[name] = this.wrapImportFunction(importValue);
188
+ }
189
+ else {
190
+ newModule[name] = importValue;
191
+ }
192
+ });
193
+ importObject[k] = newModule;
194
+ });
195
+ return importObject;
196
+ }
197
+ wrapExportFunction(f) {
198
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
199
+ const _this = this;
200
+ return (async function () {
201
+ _this.assertState();
202
+ let ret = f.apply(this, arguments);
203
+ while (_this.exports.asyncify_get_state() === 1 /* AsyncifyState.UNWINDING */) {
204
+ _this.exports.asyncify_stop_unwind();
205
+ _this.value = await _this.value;
206
+ _this.assertState();
207
+ _this.exports.asyncify_start_rewind(_this.dataPtr);
208
+ ret = f.call(this);
209
+ }
210
+ _this.assertState();
211
+ return ret;
212
+ });
213
+ }
214
+ wrapExports(exports, needWrap) {
215
+ return wrapInstanceExports(exports, (exportValue, name) => {
216
+ let ignore = ignoreNames.indexOf(name) !== -1 || typeof exportValue !== 'function';
217
+ if (Array.isArray(needWrap)) {
218
+ ignore = ignore || (needWrap.indexOf(name) === -1);
219
+ }
220
+ return ignore ? exportValue : this.wrapExportFunction(exportValue);
221
+ });
222
+ }
223
+ }
224
+
225
+ function validateImports(imports) {
226
+ if (imports && typeof imports !== 'object') {
227
+ throw new TypeError('imports must be an object or undefined');
228
+ }
229
+ }
230
+ function fetchWasm(urlOrBuffer, imports) {
231
+ if (typeof wx !== 'undefined' && typeof __wxConfig !== 'undefined') {
232
+ return _WebAssembly.instantiate(urlOrBuffer, imports);
233
+ }
234
+ return fetch(urlOrBuffer)
235
+ .then(response => response.arrayBuffer())
236
+ .then(buffer => _WebAssembly.instantiate(buffer, imports));
237
+ }
238
+ /** @public */
239
+ function load(wasmInput, imports) {
240
+ validateImports(imports);
241
+ imports = imports !== null && imports !== void 0 ? imports : {};
242
+ let source;
243
+ if (wasmInput instanceof ArrayBuffer || ArrayBuffer.isView(wasmInput)) {
244
+ return _WebAssembly.instantiate(wasmInput, imports);
245
+ }
246
+ if (wasmInput instanceof _WebAssembly.Module) {
247
+ return _WebAssembly.instantiate(wasmInput, imports).then((instance) => {
248
+ return { instance, module: wasmInput };
249
+ });
250
+ }
251
+ if (typeof wasmInput !== 'string' && !(wasmInput instanceof URL)) {
252
+ throw new TypeError('Invalid source');
253
+ }
254
+ if (typeof _WebAssembly.instantiateStreaming === 'function') {
255
+ let responsePromise;
256
+ try {
257
+ responsePromise = fetch(wasmInput);
258
+ source = _WebAssembly.instantiateStreaming(responsePromise, imports).catch(() => {
259
+ return fetchWasm(wasmInput, imports);
260
+ });
261
+ }
262
+ catch (_) {
263
+ source = fetchWasm(wasmInput, imports);
264
+ }
265
+ }
266
+ else {
267
+ source = fetchWasm(wasmInput, imports);
268
+ }
269
+ return source;
270
+ }
271
+ /** @public */
272
+ function asyncifyLoad(asyncify, urlOrBuffer, imports) {
273
+ validateImports(imports);
274
+ imports = imports !== null && imports !== void 0 ? imports : {};
275
+ const asyncifyHelper = new Asyncify();
276
+ imports = asyncifyHelper.wrapImports(imports);
277
+ return load(urlOrBuffer, imports).then(source => {
278
+ var _a;
279
+ const memory = source.instance.exports.memory || ((_a = imports.env) === null || _a === void 0 ? void 0 : _a.memory);
280
+ return { module: source.module, instance: asyncifyHelper.init(memory, source.instance, asyncify) };
281
+ });
282
+ }
283
+ /** @public */
284
+ function loadSync(wasmInput, imports) {
285
+ validateImports(imports);
286
+ imports = imports !== null && imports !== void 0 ? imports : {};
287
+ let module;
288
+ if ((wasmInput instanceof ArrayBuffer) || ArrayBuffer.isView(wasmInput)) {
289
+ module = new _WebAssembly.Module(wasmInput);
290
+ }
291
+ else if (wasmInput instanceof WebAssembly.Module) {
292
+ module = wasmInput;
293
+ }
294
+ else {
295
+ throw new TypeError('Invalid source');
296
+ }
297
+ const instance = new _WebAssembly.Instance(module, imports);
298
+ const source = { instance, module };
299
+ return source;
300
+ }
301
+ /** @public */
302
+ function asyncifyLoadSync(asyncify, buffer, imports) {
303
+ var _a;
304
+ validateImports(imports);
305
+ imports = imports !== null && imports !== void 0 ? imports : {};
306
+ const asyncifyHelper = new Asyncify();
307
+ imports = asyncifyHelper.wrapImports(imports);
308
+ const source = loadSync(buffer, imports);
309
+ const memory = source.instance.exports.memory || ((_a = imports.env) === null || _a === void 0 ? void 0 : _a.memory);
310
+ return { module: source.module, instance: asyncifyHelper.init(memory, source.instance, asyncify) };
311
+ }
312
+
313
+ const CHAR_DOT = 46; /* . */
314
+ const CHAR_FORWARD_SLASH = 47; /* / */
315
+ const CHAR_BACKWARD_SLASH = 92; /* \ */
316
+ const CHAR_COLON = 58; /* : */
317
+ const CHAR_UPPERCASE_A = 65; /* A */
318
+ const CHAR_UPPERCASE_Z = 90; /* Z */
319
+ const CHAR_LOWERCASE_A = 97; /* a */
320
+ const CHAR_LOWERCASE_Z = 122; /* z */
321
+ function isPathSeparatorWin(code) {
322
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
323
+ }
324
+ function isWindowsDeviceRoot(code) {
325
+ return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||
326
+ (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);
327
+ }
328
+ const _isWin32 = typeof process !== 'undefined' && process.platform === 'win32';
329
+ /**
330
+ * Windows variant of `resolve()`. Mirrors Node's `path.win32.resolve`
331
+ * semantics enough for the WASI shim's needs (drive-letter absolutes
332
+ * + UNC paths + per-drive cwd lookups via `process.env`/`process.cwd`).
333
+ *
334
+ * Why this is needed: on Windows, `FileDescriptor.realPath` is the
335
+ * host realpath returned by `fs.realpathSync(realPath, 'utf8')` — the
336
+ * backslash form `D:\…`. The POSIX-only `resolveImpl` below only
337
+ * treats `/` as a separator, reads `D` as non-`/`, decides realPath
338
+ * is "relative", and produces a garbage joined path. Downstream
339
+ * `fs.openSync(garbage)` then returns `EINVAL` and the WASI caller
340
+ * sees a permanent failure. This function gives us the correct
341
+ * Windows-style resolution without taking a Node-only `path` import
342
+ * (which would break browser bundles of this package).
343
+ *
344
+ * Cribbed from Node's `lib/path.js` `win32.resolve()` (MIT-licensed),
345
+ * trimmed to what WASI realpath resolution actually exercises.
346
+ */
347
+ function resolveWin32(args) {
348
+ let resolvedDevice = '';
349
+ let resolvedTail = '';
350
+ let resolvedAbsolute = false;
351
+ for (let i = args.length - 1; i >= -1; i--) {
352
+ let path;
353
+ if (i >= 0) {
354
+ path = args[i];
355
+ validateString(path, 'path');
356
+ if (path.length === 0)
357
+ continue;
358
+ }
359
+ else if (resolvedDevice.length === 0) {
360
+ path = (typeof process !== 'undefined' && typeof process.cwd === 'function')
361
+ ? process.cwd()
362
+ : '';
363
+ }
364
+ else {
365
+ // Look up per-drive cwd via the `=X:` env var convention; fall back
366
+ // to the global cwd if absent.
367
+ const envKey = `=${resolvedDevice}`;
368
+ const env = (typeof process !== 'undefined') ? process.env : undefined;
369
+ path = (env && typeof env[envKey] === 'string')
370
+ ? env[envKey]
371
+ : (typeof process !== 'undefined' && typeof process.cwd === 'function')
372
+ ? process.cwd()
373
+ : '';
374
+ if (path === undefined ||
375
+ (path.slice(0, 2).toLowerCase() !== resolvedDevice.toLowerCase() &&
376
+ path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) {
377
+ path = `${resolvedDevice}\\`;
378
+ }
379
+ }
380
+ const len = path.length;
381
+ let rootEnd = 0;
382
+ let device = '';
383
+ let isAbsolute = false;
384
+ const code = path.charCodeAt(0);
385
+ if (len === 1) {
386
+ if (isPathSeparatorWin(code)) {
387
+ rootEnd = 1;
388
+ isAbsolute = true;
389
+ }
390
+ }
391
+ else if (isPathSeparatorWin(code)) {
392
+ isAbsolute = true;
393
+ if (isPathSeparatorWin(path.charCodeAt(1))) {
394
+ // UNC path: `\\server\share\…`
395
+ let j = 2;
396
+ let last = j;
397
+ while (j < len && !isPathSeparatorWin(path.charCodeAt(j)))
398
+ j++;
399
+ if (j < len && j !== last) {
400
+ const firstPart = path.slice(last, j);
401
+ last = j;
402
+ while (j < len && isPathSeparatorWin(path.charCodeAt(j)))
403
+ j++;
404
+ if (j < len && j !== last) {
405
+ last = j;
406
+ while (j < len && !isPathSeparatorWin(path.charCodeAt(j)))
407
+ j++;
408
+ if (j === len || j !== last) {
409
+ device = `\\\\${firstPart}\\${path.slice(last, j)}`;
410
+ rootEnd = j;
411
+ }
412
+ }
413
+ }
414
+ }
415
+ else {
416
+ rootEnd = 1;
417
+ }
418
+ }
419
+ else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {
420
+ device = path.slice(0, 2);
421
+ rootEnd = 2;
422
+ if (len > 2 && isPathSeparatorWin(path.charCodeAt(2))) {
423
+ isAbsolute = true;
424
+ rootEnd = 3;
425
+ }
426
+ }
427
+ if (device.length > 0) {
428
+ if (resolvedDevice.length > 0) {
429
+ if (device.toLowerCase() !== resolvedDevice.toLowerCase())
430
+ continue;
431
+ }
432
+ else {
433
+ resolvedDevice = device;
434
+ }
435
+ }
436
+ if (resolvedAbsolute) {
437
+ if (resolvedDevice.length > 0)
438
+ break;
439
+ }
440
+ else {
441
+ resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
442
+ resolvedAbsolute = isAbsolute;
443
+ if (isAbsolute && resolvedDevice.length > 0)
444
+ break;
445
+ }
446
+ }
447
+ resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\', isPathSeparatorWin);
448
+ return resolvedDevice + (resolvedAbsolute ? '\\' : '') + resolvedTail || '.';
449
+ }
450
+ function isPosixPathSeparator(code) {
451
+ return code === CHAR_FORWARD_SLASH;
452
+ }
453
+ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
454
+ let res = '';
455
+ let lastSegmentLength = 0;
456
+ let lastSlash = -1;
457
+ let dots = 0;
458
+ let code = 0;
459
+ for (let i = 0; i <= path.length; ++i) {
460
+ if (i < path.length) {
461
+ code = path.charCodeAt(i);
462
+ }
463
+ else if (isPathSeparator(code)) {
464
+ break;
465
+ }
466
+ else {
467
+ code = CHAR_FORWARD_SLASH;
468
+ }
469
+ if (isPathSeparator(code)) {
470
+ if (lastSlash === i - 1 || dots === 1) ;
471
+ else if (dots === 2) {
472
+ if (res.length < 2 || lastSegmentLength !== 2 ||
473
+ res.charCodeAt(res.length - 1) !== CHAR_DOT ||
474
+ res.charCodeAt(res.length - 2) !== CHAR_DOT) {
475
+ if (res.length > 2) {
476
+ const lastSlashIndex = res.indexOf(separator);
477
+ if (lastSlashIndex === -1) {
478
+ res = '';
479
+ lastSegmentLength = 0;
480
+ }
481
+ else {
482
+ res = res.slice(0, lastSlashIndex);
483
+ lastSegmentLength =
484
+ res.length - 1 - res.indexOf(separator);
485
+ }
486
+ lastSlash = i;
487
+ dots = 0;
488
+ continue;
489
+ }
490
+ else if (res.length !== 0) {
491
+ res = '';
492
+ lastSegmentLength = 0;
493
+ lastSlash = i;
494
+ dots = 0;
495
+ continue;
496
+ }
497
+ }
498
+ if (allowAboveRoot) {
499
+ res += res.length > 0 ? `${separator}..` : '..';
500
+ lastSegmentLength = 2;
501
+ }
502
+ }
503
+ else {
504
+ if (res.length > 0) {
505
+ res += `${separator}${path.slice(lastSlash + 1, i)}`;
506
+ }
507
+ else {
508
+ res = path.slice(lastSlash + 1, i);
509
+ }
510
+ lastSegmentLength = i - lastSlash - 1;
511
+ }
512
+ lastSlash = i;
513
+ dots = 0;
514
+ }
515
+ else if (code === CHAR_DOT && dots !== -1) {
516
+ ++dots;
517
+ }
518
+ else {
519
+ dots = -1;
520
+ }
521
+ }
522
+ return res;
523
+ }
524
+ function resolve(...args) {
525
+ // On Windows, host paths are `D:\…` style. The POSIX-only resolver
526
+ // below treats `D` as a non-`/` character and produces garbage; route
527
+ // to the Windows-aware variant. POSIX hosts (Linux/macOS/browser)
528
+ // run the original code path unchanged — `_isWin32` is constant-folded
529
+ // away on those targets.
530
+ if (_isWin32)
531
+ return resolveWin32(args);
532
+ let resolvedPath = '';
533
+ let resolvedAbsolute = false;
534
+ for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {
535
+ const path = i >= 0 ? args[i] : '/';
536
+ validateString(path, 'path');
537
+ // Skip empty entries
538
+ if (path.length === 0) {
539
+ continue;
540
+ }
541
+ resolvedPath = `${path}/${resolvedPath}`;
542
+ resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
543
+ }
544
+ // At this point the path should be resolved to a full absolute path, but
545
+ // handle relative paths to be safe (might happen when process.cwd() fails)
546
+ // Normalize the path
547
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/', isPosixPathSeparator);
548
+ if (resolvedAbsolute) {
549
+ return `/${resolvedPath}`;
550
+ }
551
+ return resolvedPath.length > 0 ? resolvedPath : '.';
552
+ }
553
+
554
+ const FD_DATASYNC = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(0));
555
+ const FD_READ = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(1));
556
+ const FD_SEEK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(2));
557
+ const FD_FDSTAT_SET_FLAGS = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(3));
558
+ const FD_SYNC = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(4));
559
+ const FD_TELL = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(5));
560
+ const FD_WRITE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(6));
561
+ const FD_ADVISE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(7));
562
+ const FD_ALLOCATE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(8));
563
+ const PATH_CREATE_DIRECTORY = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(9));
564
+ const PATH_CREATE_FILE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(10));
565
+ const PATH_LINK_SOURCE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(11));
566
+ const PATH_LINK_TARGET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(12));
567
+ const PATH_OPEN = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(13));
568
+ const FD_READDIR = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(14));
569
+ const PATH_READLINK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(15));
570
+ const PATH_RENAME_SOURCE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(16));
571
+ const PATH_RENAME_TARGET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(17));
572
+ const PATH_FILESTAT_GET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(18));
573
+ const PATH_FILESTAT_SET_SIZE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(19));
574
+ const PATH_FILESTAT_SET_TIMES = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(20));
575
+ const FD_FILESTAT_GET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(21));
576
+ const FD_FILESTAT_SET_SIZE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(22));
577
+ const FD_FILESTAT_SET_TIMES = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(23));
578
+ const PATH_SYMLINK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(24));
579
+ const PATH_REMOVE_DIRECTORY = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(25));
580
+ const PATH_UNLINK_FILE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(26));
581
+ const POLL_FD_READWRITE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(27));
582
+ const SOCK_SHUTDOWN = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(28));
583
+ const SOCK_ACCEPT = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(29));
584
+ const WasiRights = {
585
+ FD_DATASYNC,
586
+ FD_READ,
587
+ FD_SEEK,
588
+ FD_FDSTAT_SET_FLAGS,
589
+ FD_SYNC,
590
+ FD_TELL,
591
+ FD_WRITE,
592
+ FD_ADVISE,
593
+ FD_ALLOCATE,
594
+ PATH_CREATE_DIRECTORY,
595
+ PATH_CREATE_FILE,
596
+ PATH_LINK_SOURCE,
597
+ PATH_LINK_TARGET,
598
+ PATH_OPEN,
599
+ FD_READDIR,
600
+ PATH_READLINK,
601
+ PATH_RENAME_SOURCE,
602
+ PATH_RENAME_TARGET,
603
+ PATH_FILESTAT_GET,
604
+ PATH_FILESTAT_SET_SIZE,
605
+ PATH_FILESTAT_SET_TIMES,
606
+ FD_FILESTAT_GET,
607
+ FD_FILESTAT_SET_SIZE,
608
+ FD_FILESTAT_SET_TIMES,
609
+ PATH_SYMLINK,
610
+ PATH_REMOVE_DIRECTORY,
611
+ PATH_UNLINK_FILE,
612
+ POLL_FD_READWRITE,
613
+ SOCK_SHUTDOWN,
614
+ SOCK_ACCEPT
615
+ };
616
+
617
+ function strerror(errno) {
618
+ switch (errno) {
619
+ case 0 /* WasiErrno.ESUCCESS */: return 'Success';
620
+ case 1 /* WasiErrno.E2BIG */: return 'Argument list too long';
621
+ case 2 /* WasiErrno.EACCES */: return 'Permission denied';
622
+ case 3 /* WasiErrno.EADDRINUSE */: return 'Address in use';
623
+ case 4 /* WasiErrno.EADDRNOTAVAIL */: return 'Address not available';
624
+ case 5 /* WasiErrno.EAFNOSUPPORT */: return 'Address family not supported by protocol';
625
+ case 6 /* WasiErrno.EAGAIN */: return 'Resource temporarily unavailable';
626
+ case 7 /* WasiErrno.EALREADY */: return 'Operation already in progress';
627
+ case 8 /* WasiErrno.EBADF */: return 'Bad file descriptor';
628
+ case 9 /* WasiErrno.EBADMSG */: return 'Bad message';
629
+ case 10 /* WasiErrno.EBUSY */: return 'Resource busy';
630
+ case 11 /* WasiErrno.ECANCELED */: return 'Operation canceled';
631
+ case 12 /* WasiErrno.ECHILD */: return 'No child process';
632
+ case 13 /* WasiErrno.ECONNABORTED */: return 'Connection aborted';
633
+ case 14 /* WasiErrno.ECONNREFUSED */: return 'Connection refused';
634
+ case 15 /* WasiErrno.ECONNRESET */: return 'Connection reset by peer';
635
+ case 16 /* WasiErrno.EDEADLK */: return 'Resource deadlock would occur';
636
+ case 17 /* WasiErrno.EDESTADDRREQ */: return 'Destination address required';
637
+ case 18 /* WasiErrno.EDOM */: return 'Domain error';
638
+ case 19 /* WasiErrno.EDQUOT */: return 'Quota exceeded';
639
+ case 20 /* WasiErrno.EEXIST */: return 'File exists';
640
+ case 21 /* WasiErrno.EFAULT */: return 'Bad address';
641
+ case 22 /* WasiErrno.EFBIG */: return 'File too large';
642
+ case 23 /* WasiErrno.EHOSTUNREACH */: return 'Host is unreachable';
643
+ case 24 /* WasiErrno.EIDRM */: return 'Identifier removed';
644
+ case 25 /* WasiErrno.EILSEQ */: return 'Illegal byte sequence';
645
+ case 26 /* WasiErrno.EINPROGRESS */: return 'Operation in progress';
646
+ case 27 /* WasiErrno.EINTR */: return 'Interrupted system call';
647
+ case 28 /* WasiErrno.EINVAL */: return 'Invalid argument';
648
+ case 29 /* WasiErrno.EIO */: return 'I/O error';
649
+ case 30 /* WasiErrno.EISCONN */: return 'Socket is connected';
650
+ case 31 /* WasiErrno.EISDIR */: return 'Is a directory';
651
+ case 32 /* WasiErrno.ELOOP */: return 'Symbolic link loop';
652
+ case 33 /* WasiErrno.EMFILE */: return 'No file descriptors available';
653
+ case 34 /* WasiErrno.EMLINK */: return 'Too many links';
654
+ case 35 /* WasiErrno.EMSGSIZE */: return 'Message too large';
655
+ case 36 /* WasiErrno.EMULTIHOP */: return 'Multihop attempted';
656
+ case 37 /* WasiErrno.ENAMETOOLONG */: return 'Filename too long';
657
+ case 38 /* WasiErrno.ENETDOWN */: return 'Network is down';
658
+ case 39 /* WasiErrno.ENETRESET */: return 'Connection reset by network';
659
+ case 40 /* WasiErrno.ENETUNREACH */: return 'Network unreachable';
660
+ case 41 /* WasiErrno.ENFILE */: return 'Too many files open in system';
661
+ case 42 /* WasiErrno.ENOBUFS */: return 'No buffer space available';
662
+ case 43 /* WasiErrno.ENODEV */: return 'No such device';
663
+ case 44 /* WasiErrno.ENOENT */: return 'No such file or directory';
664
+ case 45 /* WasiErrno.ENOEXEC */: return 'Exec format error';
665
+ case 46 /* WasiErrno.ENOLCK */: return 'No locks available';
666
+ case 47 /* WasiErrno.ENOLINK */: return 'Link has been severed';
667
+ case 48 /* WasiErrno.ENOMEM */: return 'Out of memory';
668
+ case 49 /* WasiErrno.ENOMSG */: return 'No message of the desired type';
669
+ case 50 /* WasiErrno.ENOPROTOOPT */: return 'Protocol not available';
670
+ case 51 /* WasiErrno.ENOSPC */: return 'No space left on device';
671
+ case 52 /* WasiErrno.ENOSYS */: return 'Function not implemented';
672
+ case 53 /* WasiErrno.ENOTCONN */: return 'Socket not connected';
673
+ case 54 /* WasiErrno.ENOTDIR */: return 'Not a directory';
674
+ case 55 /* WasiErrno.ENOTEMPTY */: return 'Directory not empty';
675
+ case 56 /* WasiErrno.ENOTRECOVERABLE */: return 'State not recoverable';
676
+ case 57 /* WasiErrno.ENOTSOCK */: return 'Not a socket';
677
+ case 58 /* WasiErrno.ENOTSUP */: return 'Not supported';
678
+ case 59 /* WasiErrno.ENOTTY */: return 'Not a tty';
679
+ case 60 /* WasiErrno.ENXIO */: return 'No such device or address';
680
+ case 61 /* WasiErrno.EOVERFLOW */: return 'Value too large for data type';
681
+ case 62 /* WasiErrno.EOWNERDEAD */: return 'Previous owner died';
682
+ case 63 /* WasiErrno.EPERM */: return 'Operation not permitted';
683
+ case 64 /* WasiErrno.EPIPE */: return 'Broken pipe';
684
+ case 65 /* WasiErrno.EPROTO */: return 'Protocol error';
685
+ case 66 /* WasiErrno.EPROTONOSUPPORT */: return 'Protocol not supported';
686
+ case 67 /* WasiErrno.EPROTOTYPE */: return 'Protocol wrong type for socket';
687
+ case 68 /* WasiErrno.ERANGE */: return 'Result not representable';
688
+ case 69 /* WasiErrno.EROFS */: return 'Read-only file system';
689
+ case 70 /* WasiErrno.ESPIPE */: return 'Invalid seek';
690
+ case 71 /* WasiErrno.ESRCH */: return 'No such process';
691
+ case 72 /* WasiErrno.ESTALE */: return 'Stale file handle';
692
+ case 73 /* WasiErrno.ETIMEDOUT */: return 'Operation timed out';
693
+ case 74 /* WasiErrno.ETXTBSY */: return 'Text file busy';
694
+ case 75 /* WasiErrno.EXDEV */: return 'Cross-device link';
695
+ case 76 /* WasiErrno.ENOTCAPABLE */: return 'Capabilities insufficient';
696
+ default: return 'Unknown error';
697
+ }
698
+ }
699
+ class WasiError extends Error {
700
+ constructor(message, errno) {
701
+ super(message);
702
+ this.errno = errno;
703
+ }
704
+ getErrorMessage() {
705
+ return strerror(this.errno);
706
+ }
707
+ }
708
+ Object.defineProperty(WasiError.prototype, 'name', {
709
+ configurable: true,
710
+ writable: true,
711
+ value: 'WasiError'
712
+ });
713
+
714
+ const RIGHTS_ALL = WasiRights.FD_DATASYNC |
715
+ WasiRights.FD_READ |
716
+ WasiRights.FD_SEEK |
717
+ WasiRights.FD_FDSTAT_SET_FLAGS |
718
+ WasiRights.FD_SYNC |
719
+ WasiRights.FD_TELL |
720
+ WasiRights.FD_WRITE |
721
+ WasiRights.FD_ADVISE |
722
+ WasiRights.FD_ALLOCATE |
723
+ WasiRights.PATH_CREATE_DIRECTORY |
724
+ WasiRights.PATH_CREATE_FILE |
725
+ WasiRights.PATH_LINK_SOURCE |
726
+ WasiRights.PATH_LINK_TARGET |
727
+ WasiRights.PATH_OPEN |
728
+ WasiRights.FD_READDIR |
729
+ WasiRights.PATH_READLINK |
730
+ WasiRights.PATH_RENAME_SOURCE |
731
+ WasiRights.PATH_RENAME_TARGET |
732
+ WasiRights.PATH_FILESTAT_GET |
733
+ WasiRights.PATH_FILESTAT_SET_SIZE |
734
+ WasiRights.PATH_FILESTAT_SET_TIMES |
735
+ WasiRights.FD_FILESTAT_GET |
736
+ WasiRights.FD_FILESTAT_SET_TIMES |
737
+ WasiRights.FD_FILESTAT_SET_SIZE |
738
+ WasiRights.PATH_SYMLINK |
739
+ WasiRights.PATH_UNLINK_FILE |
740
+ WasiRights.PATH_REMOVE_DIRECTORY |
741
+ WasiRights.POLL_FD_READWRITE |
742
+ WasiRights.SOCK_SHUTDOWN |
743
+ WasiRights.SOCK_ACCEPT;
744
+ const BLOCK_DEVICE_BASE = RIGHTS_ALL;
745
+ const BLOCK_DEVICE_INHERITING = RIGHTS_ALL;
746
+ const CHARACTER_DEVICE_BASE = RIGHTS_ALL;
747
+ const CHARACTER_DEVICE_INHERITING = RIGHTS_ALL;
748
+ const REGULAR_FILE_BASE = WasiRights.FD_DATASYNC |
749
+ WasiRights.FD_READ |
750
+ WasiRights.FD_SEEK |
751
+ WasiRights.FD_FDSTAT_SET_FLAGS |
752
+ WasiRights.FD_SYNC |
753
+ WasiRights.FD_TELL |
754
+ WasiRights.FD_WRITE |
755
+ WasiRights.FD_ADVISE |
756
+ WasiRights.FD_ALLOCATE |
757
+ WasiRights.FD_FILESTAT_GET |
758
+ WasiRights.FD_FILESTAT_SET_SIZE |
759
+ WasiRights.FD_FILESTAT_SET_TIMES |
760
+ WasiRights.POLL_FD_READWRITE;
761
+ const REGULAR_FILE_INHERITING = /*#__PURE__*/ BigInt(0);
762
+ const DIRECTORY_BASE = WasiRights.FD_FDSTAT_SET_FLAGS |
763
+ WasiRights.FD_SYNC |
764
+ WasiRights.FD_ADVISE |
765
+ WasiRights.PATH_CREATE_DIRECTORY |
766
+ WasiRights.PATH_CREATE_FILE |
767
+ WasiRights.PATH_LINK_SOURCE |
768
+ WasiRights.PATH_LINK_TARGET |
769
+ WasiRights.PATH_OPEN |
770
+ WasiRights.FD_READDIR |
771
+ WasiRights.PATH_READLINK |
772
+ WasiRights.PATH_RENAME_SOURCE |
773
+ WasiRights.PATH_RENAME_TARGET |
774
+ WasiRights.PATH_FILESTAT_GET |
775
+ WasiRights.PATH_FILESTAT_SET_SIZE |
776
+ WasiRights.PATH_FILESTAT_SET_TIMES |
777
+ WasiRights.FD_FILESTAT_GET |
778
+ WasiRights.FD_FILESTAT_SET_TIMES |
779
+ WasiRights.PATH_SYMLINK |
780
+ WasiRights.PATH_UNLINK_FILE |
781
+ WasiRights.PATH_REMOVE_DIRECTORY |
782
+ WasiRights.POLL_FD_READWRITE;
783
+ const DIRECTORY_INHERITING = DIRECTORY_BASE | REGULAR_FILE_BASE;
784
+ const SOCKET_BASE = (WasiRights.FD_READ |
785
+ WasiRights.FD_FDSTAT_SET_FLAGS |
786
+ WasiRights.FD_WRITE |
787
+ WasiRights.FD_FILESTAT_GET |
788
+ WasiRights.POLL_FD_READWRITE |
789
+ WasiRights.SOCK_SHUTDOWN);
790
+ const SOCKET_INHERITING = RIGHTS_ALL;
791
+ const TTY_BASE = WasiRights.FD_READ |
792
+ WasiRights.FD_FDSTAT_SET_FLAGS |
793
+ WasiRights.FD_WRITE |
794
+ WasiRights.FD_FILESTAT_GET |
795
+ WasiRights.POLL_FD_READWRITE;
796
+ const TTY_INHERITING = /*#__PURE__*/ BigInt(0);
797
+ function getRights(stdio, fd, flags, type) {
798
+ const ret = {
799
+ base: BigInt(0),
800
+ inheriting: BigInt(0)
801
+ };
802
+ if (type === 0 /* WasiFileType.UNKNOWN */) {
803
+ throw new WasiError('Unknown file type', 28 /* WasiErrno.EINVAL */);
804
+ }
805
+ switch (type) {
806
+ case 4 /* WasiFileType.REGULAR_FILE */:
807
+ ret.base = REGULAR_FILE_BASE;
808
+ ret.inheriting = REGULAR_FILE_INHERITING;
809
+ break;
810
+ case 3 /* WasiFileType.DIRECTORY */:
811
+ ret.base = DIRECTORY_BASE;
812
+ ret.inheriting = DIRECTORY_INHERITING;
813
+ break;
814
+ case 6 /* WasiFileType.SOCKET_STREAM */:
815
+ case 5 /* WasiFileType.SOCKET_DGRAM */:
816
+ ret.base = SOCKET_BASE;
817
+ ret.inheriting = SOCKET_INHERITING;
818
+ break;
819
+ case 2 /* WasiFileType.CHARACTER_DEVICE */:
820
+ if (stdio.indexOf(fd) !== -1) {
821
+ ret.base = TTY_BASE;
822
+ ret.inheriting = TTY_INHERITING;
823
+ }
824
+ else {
825
+ ret.base = CHARACTER_DEVICE_BASE;
826
+ ret.inheriting = CHARACTER_DEVICE_INHERITING;
827
+ }
828
+ break;
829
+ case 1 /* WasiFileType.BLOCK_DEVICE */:
830
+ ret.base = BLOCK_DEVICE_BASE;
831
+ ret.inheriting = BLOCK_DEVICE_INHERITING;
832
+ break;
833
+ default:
834
+ ret.base = BigInt(0);
835
+ ret.inheriting = BigInt(0);
836
+ }
837
+ /* Disable read/write bits depending on access mode. */
838
+ const read_or_write_only = flags & (0 | 1 | 2);
839
+ if (read_or_write_only === 0) {
840
+ ret.base &= ~WasiRights.FD_WRITE;
841
+ }
842
+ else if (read_or_write_only === 1) {
843
+ ret.base &= ~WasiRights.FD_READ;
844
+ }
845
+ return ret;
846
+ }
847
+
848
+ function concatBuffer(buffers, size) {
849
+ let total = 0;
850
+ if (typeof size === 'number' && size >= 0) {
851
+ total = size;
852
+ }
853
+ else {
854
+ for (let i = 0; i < buffers.length; i++) {
855
+ const buffer = buffers[i];
856
+ total += buffer.length;
857
+ }
858
+ }
859
+ let pos = 0;
860
+ const ret = new Uint8Array(total);
861
+ for (let i = 0; i < buffers.length; i++) {
862
+ const buffer = buffers[i];
863
+ ret.set(buffer, pos);
864
+ pos += buffer.length;
865
+ }
866
+ return ret;
867
+ }
868
+ class FileDescriptor {
869
+ constructor(id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen) {
870
+ this.id = id;
871
+ this.fd = fd;
872
+ this.path = path;
873
+ this.realPath = realPath;
874
+ this.type = type;
875
+ this.rightsBase = rightsBase;
876
+ this.rightsInheriting = rightsInheriting;
877
+ this.preopen = preopen;
878
+ this.pos = BigInt(0);
879
+ this.size = BigInt(0);
880
+ }
881
+ seek(offset, whence) {
882
+ if (whence === 0 /* WasiWhence.SET */) {
883
+ this.pos = BigInt(offset);
884
+ }
885
+ else if (whence === 1 /* WasiWhence.CUR */) {
886
+ this.pos += BigInt(offset);
887
+ }
888
+ else if (whence === 2 /* WasiWhence.END */) {
889
+ this.pos = BigInt(this.size) - BigInt(offset);
890
+ }
891
+ else {
892
+ throw new WasiError('Unknown whence', 29 /* WasiErrno.EIO */);
893
+ }
894
+ return this.pos;
895
+ }
896
+ }
897
+ class StandardOutput extends FileDescriptor {
898
+ constructor(log, id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen) {
899
+ super(id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen);
900
+ this._log = log;
901
+ this._buf = null;
902
+ }
903
+ write(buffer) {
904
+ const originalBuffer = buffer;
905
+ if (this._buf) {
906
+ buffer = concatBuffer([this._buf, buffer]);
907
+ this._buf = null;
908
+ }
909
+ if (buffer.indexOf(10) === -1) {
910
+ this._buf = buffer;
911
+ return originalBuffer.byteLength;
912
+ }
913
+ let written = 0;
914
+ let lastBegin = 0;
915
+ let index;
916
+ while ((index = buffer.indexOf(10, written)) !== -1) {
917
+ const str = new TextDecoder().decode(buffer.subarray(lastBegin, index));
918
+ this._log(str);
919
+ written += index - lastBegin + 1;
920
+ lastBegin = index + 1;
921
+ }
922
+ if (written < buffer.length) {
923
+ this._buf = buffer.slice(written);
924
+ }
925
+ return originalBuffer.byteLength;
926
+ }
927
+ }
928
+ function toFileType(stat) {
929
+ if (stat.isBlockDevice())
930
+ return 1 /* WasiFileType.BLOCK_DEVICE */;
931
+ if (stat.isCharacterDevice())
932
+ return 2 /* WasiFileType.CHARACTER_DEVICE */;
933
+ if (stat.isDirectory())
934
+ return 3 /* WasiFileType.DIRECTORY */;
935
+ if (stat.isSocket())
936
+ return 6 /* WasiFileType.SOCKET_STREAM */;
937
+ if (stat.isFile())
938
+ return 4 /* WasiFileType.REGULAR_FILE */;
939
+ if (stat.isSymbolicLink())
940
+ return 7 /* WasiFileType.SYMBOLIC_LINK */;
941
+ return 0 /* WasiFileType.UNKNOWN */;
942
+ }
943
+ function toFileStat(view, buf, stat) {
944
+ view.setBigUint64(buf, stat.dev, true);
945
+ view.setBigUint64(buf + 8, stat.ino, true);
946
+ view.setBigUint64(buf + 16, BigInt(toFileType(stat)), true);
947
+ view.setBigUint64(buf + 24, stat.nlink, true);
948
+ view.setBigUint64(buf + 32, stat.size, true);
949
+ view.setBigUint64(buf + 40, stat.atimeMs * BigInt(1000000), true);
950
+ view.setBigUint64(buf + 48, stat.mtimeMs * BigInt(1000000), true);
951
+ view.setBigUint64(buf + 56, stat.ctimeMs * BigInt(1000000), true);
952
+ }
953
+ class FileDescriptorTable {
954
+ constructor(options) {
955
+ this.used = 0;
956
+ this.size = options.size;
957
+ this.fds = Array(options.size);
958
+ this.stdio = [options.in, options.out, options.err];
959
+ this.print = options.print;
960
+ this.printErr = options.printErr;
961
+ this.insertStdio(options.in, 0, '<stdin>');
962
+ this.insertStdio(options.out, 1, '<stdout>');
963
+ this.insertStdio(options.err, 2, '<stderr>');
964
+ }
965
+ insertStdio(fd, expected, name) {
966
+ const type = 2 /* WasiFileType.CHARACTER_DEVICE */;
967
+ const { base, inheriting } = getRights(this.stdio, fd, 2 /* FileControlFlag.O_RDWR */, type);
968
+ const wrap = this.insert(fd, name, name, type, base, inheriting, 0);
969
+ if (wrap.id !== expected) {
970
+ throw new WasiError(`id: ${wrap.id} !== expected: ${expected}`, 8 /* WasiErrno.EBADF */);
971
+ }
972
+ return wrap;
973
+ }
974
+ insert(fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen) {
975
+ var _a, _b;
976
+ let index = -1;
977
+ if (this.used >= this.size) {
978
+ const newSize = this.size * 2;
979
+ this.fds.length = newSize;
980
+ index = this.size;
981
+ this.size = newSize;
982
+ }
983
+ else {
984
+ for (let i = 0; i < this.size; ++i) {
985
+ if (this.fds[i] == null) {
986
+ index = i;
987
+ break;
988
+ }
989
+ }
990
+ }
991
+ let entry;
992
+ if (mappedPath === '<stdout>') {
993
+ entry = new StandardOutput((_a = this.print) !== null && _a !== void 0 ? _a : console.log, index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
994
+ }
995
+ else if (mappedPath === '<stderr>') {
996
+ entry = new StandardOutput((_b = this.printErr) !== null && _b !== void 0 ? _b : console.error, index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
997
+ }
998
+ else {
999
+ entry = new FileDescriptor(index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
1000
+ }
1001
+ this.fds[index] = entry;
1002
+ this.used++;
1003
+ return entry;
1004
+ }
1005
+ get(id, base, inheriting) {
1006
+ if (id >= this.size) {
1007
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1008
+ }
1009
+ const entry = this.fds[id];
1010
+ if (!entry || entry.id !== id) {
1011
+ throw new WasiError('Bad file descriptor', 8 /* WasiErrno.EBADF */);
1012
+ }
1013
+ /* Validate that the fd has the necessary rights. */
1014
+ if ((~entry.rightsBase & base) !== BigInt(0) || (~entry.rightsInheriting & inheriting) !== BigInt(0)) {
1015
+ throw new WasiError('Capabilities insufficient', 76 /* WasiErrno.ENOTCAPABLE */);
1016
+ }
1017
+ return entry;
1018
+ }
1019
+ remove(id) {
1020
+ if (id >= this.size) {
1021
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1022
+ }
1023
+ const entry = this.fds[id];
1024
+ if (!entry || entry.id !== id) {
1025
+ throw new WasiError('Bad file descriptor', 8 /* WasiErrno.EBADF */);
1026
+ }
1027
+ this.fds[id] = undefined;
1028
+ this.used--;
1029
+ }
1030
+ }
1031
+ class SyncTable extends FileDescriptorTable {
1032
+ constructor(options) {
1033
+ super(options);
1034
+ this.fs = options.fs;
1035
+ }
1036
+ getFileTypeByFd(fd) {
1037
+ const stats = this.fs.fstatSync(fd, { bigint: true });
1038
+ return toFileType(stats);
1039
+ }
1040
+ insertPreopen(fd, mappedPath, realPath) {
1041
+ const type = this.getFileTypeByFd(fd);
1042
+ if (type !== 3 /* WasiFileType.DIRECTORY */) {
1043
+ throw new WasiError(`Preopen not dir: ["${mappedPath}", "${realPath}"]`, 54 /* WasiErrno.ENOTDIR */);
1044
+ }
1045
+ const result = getRights(this.stdio, fd, 0, type);
1046
+ return this.insert(fd, mappedPath, realPath, type, result.base, result.inheriting, 1);
1047
+ }
1048
+ renumber(dst, src) {
1049
+ if (dst === src)
1050
+ return;
1051
+ if (dst >= this.size || src >= this.size) {
1052
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1053
+ }
1054
+ const dstEntry = this.fds[dst];
1055
+ const srcEntry = this.fds[src];
1056
+ if (!dstEntry || !srcEntry || dstEntry.id !== dst || srcEntry.id !== src) {
1057
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1058
+ }
1059
+ this.fs.closeSync(dstEntry.fd);
1060
+ this.fds[dst] = this.fds[src];
1061
+ this.fds[dst].id = dst;
1062
+ this.fds[src] = undefined;
1063
+ this.used--;
1064
+ }
1065
+ }
1066
+ class AsyncTable extends FileDescriptorTable {
1067
+ // eslint-disable-next-line @typescript-eslint/no-useless-constructor
1068
+ constructor(options) {
1069
+ super(options);
1070
+ }
1071
+ async getFileTypeByFd(fd) {
1072
+ const stats = await fd.stat({ bigint: true });
1073
+ return toFileType(stats);
1074
+ }
1075
+ async insertPreopen(fd, mappedPath, realPath) {
1076
+ const type = await this.getFileTypeByFd(fd);
1077
+ if (type !== 3 /* WasiFileType.DIRECTORY */) {
1078
+ throw new WasiError(`Preopen not dir: ["${mappedPath}", "${realPath}"]`, 54 /* WasiErrno.ENOTDIR */);
1079
+ }
1080
+ const result = getRights(this.stdio, fd.fd, 0, type);
1081
+ return this.insert(fd, mappedPath, realPath, type, result.base, result.inheriting, 1);
1082
+ }
1083
+ async renumber(dst, src) {
1084
+ if (dst === src)
1085
+ return;
1086
+ if (dst >= this.size || src >= this.size) {
1087
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1088
+ }
1089
+ const dstEntry = this.fds[dst];
1090
+ const srcEntry = this.fds[src];
1091
+ if (!dstEntry || !srcEntry || dstEntry.id !== dst || srcEntry.id !== src) {
1092
+ throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
1093
+ }
1094
+ await dstEntry.fd.close();
1095
+ this.fds[dst] = this.fds[src];
1096
+ this.fds[dst].id = dst;
1097
+ this.fds[src] = undefined;
1098
+ this.used--;
1099
+ }
1100
+ }
1101
+
1102
+ /** @public */
1103
+ const WebAssemblyMemory = /*#__PURE__*/ (function () { return _WebAssembly.Memory; })();
1104
+ /** @public */
1105
+ class Memory extends WebAssemblyMemory {
1106
+ // eslint-disable-next-line @typescript-eslint/no-useless-constructor
1107
+ constructor(descriptor) {
1108
+ super(descriptor);
1109
+ }
1110
+ get HEAP8() { return new Int8Array(super.buffer); }
1111
+ get HEAPU8() { return new Uint8Array(super.buffer); }
1112
+ get HEAP16() { return new Int16Array(super.buffer); }
1113
+ get HEAPU16() { return new Uint16Array(super.buffer); }
1114
+ get HEAP32() { return new Int32Array(super.buffer); }
1115
+ get HEAPU32() { return new Uint32Array(super.buffer); }
1116
+ get HEAP64() { return new BigInt64Array(super.buffer); }
1117
+ get HEAPU64() { return new BigUint64Array(super.buffer); }
1118
+ get HEAPF32() { return new Float32Array(super.buffer); }
1119
+ get HEAPF64() { return new Float64Array(super.buffer); }
1120
+ get view() { return new DataView(super.buffer); }
1121
+ }
1122
+ /** @public */
1123
+ function extendMemory(memory) {
1124
+ if (Object.getPrototypeOf(memory) === _WebAssembly.Memory.prototype) {
1125
+ Object.setPrototypeOf(memory, Memory.prototype);
1126
+ }
1127
+ return memory;
1128
+ }
1129
+
1130
+ function checkWebAssemblyFunction() {
1131
+ const WebAssemblyFunction = _WebAssembly.Function;
1132
+ if (typeof WebAssemblyFunction !== 'function') {
1133
+ throw new Error('WebAssembly.Function is not supported in this environment.' +
1134
+ ' If you are using V8 based browser like Chrome, try to specify' +
1135
+ ' --js-flags="--wasm-staging --experimental-wasm-stack-switching"');
1136
+ }
1137
+ return WebAssemblyFunction;
1138
+ }
1139
+ /** @public */
1140
+ function wrapAsyncImport(f, parameterType, returnType) {
1141
+ const WebAssemblyFunction = checkWebAssemblyFunction();
1142
+ if (typeof f !== 'function') {
1143
+ throw new TypeError('Function required');
1144
+ }
1145
+ const parameters = parameterType.slice(0);
1146
+ parameters.unshift('externref');
1147
+ return new WebAssemblyFunction({ parameters, results: returnType }, f, { suspending: 'first' });
1148
+ }
1149
+ /** @public */
1150
+ function wrapAsyncExport(f) {
1151
+ const WebAssemblyFunction = checkWebAssemblyFunction();
1152
+ if (typeof f !== 'function') {
1153
+ throw new TypeError('Function required');
1154
+ }
1155
+ return new WebAssemblyFunction({ parameters: [...WebAssemblyFunction.type(f).parameters.slice(1)], results: ['externref'] }, f, { promising: 'first' });
1156
+ }
1157
+ /** @public */
1158
+ function wrapExports(exports, needWrap) {
1159
+ return wrapInstanceExports(exports, (exportValue, name) => {
1160
+ let ignore = typeof exportValue !== 'function';
1161
+ if (Array.isArray(needWrap)) {
1162
+ ignore = ignore || (needWrap.indexOf(name) === -1);
1163
+ }
1164
+ return ignore ? exportValue : wrapAsyncExport(exportValue);
1165
+ });
1166
+ }
1167
+
1168
+ // Linux fcntl flag bits ↔ Windows libuv flag bits. `pathOpen()` builds
1169
+ // `flagsRes` using Linux constants (O_CREAT=0x40, O_EXCL=0x80,
1170
+ // O_APPEND=0x400). Windows libuv expects different bits (O_CREAT=0x100,
1171
+ // O_EXCL=0x400, O_APPEND=0x8). Without translation,
1172
+ // `fs.openSync(path, 0x241 /* L:WRONLY|CREAT|TRUNC */)` is rejected
1173
+ // with EINVAL because Linux's 0x40 happens to mean O_TEMPORARY on
1174
+ // Windows — and O_TEMPORARY without O_CREAT is invalid.
1175
+ const _isWin32Flags = typeof process !== 'undefined' && process.platform === 'win32';
1176
+ function _toWinOpenFlags(f) {
1177
+ let r = f & 3; // RDONLY/WRONLY/RDWR — same on both
1178
+ if ((f & 0x40) !== 0)
1179
+ r |= 0x100; // O_CREAT: Linux 0x40 -> Windows 0x100
1180
+ if ((f & 0x80) !== 0)
1181
+ r |= 0x400; // O_EXCL: Linux 0x80 -> Windows 0x400
1182
+ if ((f & 0x200) !== 0)
1183
+ r |= 0x200; // O_TRUNC: same value on both
1184
+ if ((f & 0x400) !== 0)
1185
+ r |= 0x8; // O_APPEND: Linux 0x400 -> Windows 0x8
1186
+ return r;
1187
+ }
1188
+ function copyMemory(targets, src) {
1189
+ if (targets.length === 0 || src.length === 0)
1190
+ return 0;
1191
+ let copied = 0;
1192
+ let left = src.length - copied;
1193
+ for (let i = 0; i < targets.length; ++i) {
1194
+ const target = targets[i];
1195
+ if (left < target.length) {
1196
+ target.set(src.subarray(copied, copied + left), 0);
1197
+ copied += left;
1198
+ left = 0;
1199
+ return copied;
1200
+ }
1201
+ target.set(src.subarray(copied, copied + target.length), 0);
1202
+ copied += target.length;
1203
+ left -= target.length;
1204
+ }
1205
+ return copied;
1206
+ }
1207
+ const _memory = new WeakMap();
1208
+ const _wasi = new WeakMap();
1209
+ const _fs = new WeakMap();
1210
+ function getMemory(wasi) {
1211
+ return _memory.get(wasi);
1212
+ }
1213
+ function getFs(wasi) {
1214
+ const fs = _fs.get(wasi);
1215
+ if (!fs)
1216
+ throw new Error('filesystem is unavailable');
1217
+ return fs;
1218
+ }
1219
+ function handleError(err) {
1220
+ if (err instanceof WasiError) {
1221
+ {
1222
+ console.warn(err);
1223
+ }
1224
+ return err.errno;
1225
+ }
1226
+ switch (err.code) {
1227
+ case 'ENOENT': return 44 /* WasiErrno.ENOENT */;
1228
+ case 'EBADF': return 8 /* WasiErrno.EBADF */;
1229
+ case 'EINVAL': return 28 /* WasiErrno.EINVAL */;
1230
+ case 'EPERM': return 63 /* WasiErrno.EPERM */;
1231
+ case 'EPROTO': return 65 /* WasiErrno.EPROTO */;
1232
+ case 'EEXIST': return 20 /* WasiErrno.EEXIST */;
1233
+ case 'ENOTDIR': return 54 /* WasiErrno.ENOTDIR */;
1234
+ case 'EMFILE': return 33 /* WasiErrno.EMFILE */;
1235
+ case 'EACCES': return 2 /* WasiErrno.EACCES */;
1236
+ case 'EISDIR': return 31 /* WasiErrno.EISDIR */;
1237
+ case 'ENOTEMPTY': return 55 /* WasiErrno.ENOTEMPTY */;
1238
+ case 'ENOSYS': return 52 /* WasiErrno.ENOSYS */;
1239
+ }
1240
+ throw err;
1241
+ }
1242
+ function defineName(name, f) {
1243
+ Object.defineProperty(f, 'name', { value: name });
1244
+ return f;
1245
+ }
1246
+ function tryCall(f, wasi, args) {
1247
+ let r;
1248
+ try {
1249
+ r = f.apply(wasi, args);
1250
+ }
1251
+ catch (err) {
1252
+ return handleError(err);
1253
+ }
1254
+ if (isPromiseLike(r)) {
1255
+ return r.then(_ => _, handleError);
1256
+ }
1257
+ return r;
1258
+ }
1259
+ function syscallWrap(self, name, f) {
1260
+ let debug = false;
1261
+ const NODE_DEBUG_NATIVE = (() => {
1262
+ try {
1263
+ return "wasi";
1264
+ }
1265
+ catch (_) {
1266
+ return undefined;
1267
+ }
1268
+ })();
1269
+ if (typeof NODE_DEBUG_NATIVE === 'string' && NODE_DEBUG_NATIVE.split(',').includes('wasi')) {
1270
+ debug = true;
1271
+ }
1272
+ return debug
1273
+ ? defineName(name, function () {
1274
+ const args = Array.prototype.slice.call(arguments);
1275
+ let debugArgs = [`${name}(${Array.from({ length: arguments.length }).map(() => '%d').join(', ')})`];
1276
+ debugArgs = debugArgs.concat(args);
1277
+ console.debug.apply(console, debugArgs);
1278
+ return tryCall(f, self, args);
1279
+ })
1280
+ : defineName(name, function () {
1281
+ return tryCall(f, self, arguments);
1282
+ });
1283
+ }
1284
+ function resolvePathSync(fs, fileDescriptor, path, flags) {
1285
+ let resolvedPath = resolve(fileDescriptor.realPath, path);
1286
+ if ((flags & 1) === 1) {
1287
+ try {
1288
+ resolvedPath = fs.readlinkSync(resolvedPath);
1289
+ }
1290
+ catch (err) {
1291
+ if (err.code !== 'EINVAL' && err.code !== 'ENOENT') {
1292
+ throw err;
1293
+ }
1294
+ }
1295
+ }
1296
+ return resolvedPath;
1297
+ }
1298
+ async function resolvePathAsync(fs, fileDescriptor, path, flags) {
1299
+ let resolvedPath = resolve(fileDescriptor.realPath, path);
1300
+ if ((flags & 1) === 1) {
1301
+ try {
1302
+ resolvedPath = await fs.promises.readlink(resolvedPath);
1303
+ }
1304
+ catch (err) {
1305
+ if (err.code !== 'EINVAL' && err.code !== 'ENOENT') {
1306
+ throw err;
1307
+ }
1308
+ }
1309
+ }
1310
+ return resolvedPath;
1311
+ }
1312
+ // eslint-disable-next-line spaced-comment
1313
+ const encoder = /*#__PURE__*/ new TextEncoder();
1314
+ // eslint-disable-next-line spaced-comment
1315
+ const decoder = /*#__PURE__*/ new TextDecoder();
1316
+ const INT64_MAX = (BigInt(1) << BigInt(63)) - BigInt(1);
1317
+ function readStdin() {
1318
+ const value = window.prompt();
1319
+ if (value === null)
1320
+ return new Uint8Array();
1321
+ const buffer = new TextEncoder().encode(value + '\n');
1322
+ return buffer;
1323
+ }
1324
+ function validateFstFlagsOrReturn(flags) {
1325
+ return (Boolean((flags) & ~(1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */ |
1326
+ 4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */)) ||
1327
+ ((flags) & (1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */)) ===
1328
+ (1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */) ||
1329
+ ((flags) & (4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */)) ===
1330
+ (4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */));
1331
+ }
1332
+ class WASI$1 {
1333
+ constructor(args, env, fds, asyncFs, fs, asyncify) {
1334
+ this.args_get = syscallWrap(this, 'args_get', function (argv, argv_buf) {
1335
+ argv = Number(argv);
1336
+ argv_buf = Number(argv_buf);
1337
+ if (argv === 0 || argv_buf === 0) {
1338
+ return 28 /* WasiErrno.EINVAL */;
1339
+ }
1340
+ const { HEAPU8, view } = getMemory(this);
1341
+ const wasi = _wasi.get(this);
1342
+ const args = wasi.args;
1343
+ for (let i = 0; i < args.length; ++i) {
1344
+ const arg = args[i];
1345
+ view.setInt32(argv, argv_buf, true);
1346
+ argv += 4;
1347
+ const data = encoder.encode(arg + '\0');
1348
+ HEAPU8.set(data, argv_buf);
1349
+ argv_buf += data.length;
1350
+ }
1351
+ return 0 /* WasiErrno.ESUCCESS */;
1352
+ });
1353
+ this.args_sizes_get = syscallWrap(this, 'args_sizes_get', function (argc, argv_buf_size) {
1354
+ argc = Number(argc);
1355
+ argv_buf_size = Number(argv_buf_size);
1356
+ if (argc === 0 || argv_buf_size === 0) {
1357
+ return 28 /* WasiErrno.EINVAL */;
1358
+ }
1359
+ const { view } = getMemory(this);
1360
+ const wasi = _wasi.get(this);
1361
+ const args = wasi.args;
1362
+ view.setUint32(argc, args.length, true);
1363
+ view.setUint32(argv_buf_size, encoder.encode(args.join('\0') + '\0').length, true);
1364
+ return 0 /* WasiErrno.ESUCCESS */;
1365
+ });
1366
+ this.environ_get = syscallWrap(this, 'environ_get', function (environ, environ_buf) {
1367
+ environ = Number(environ);
1368
+ environ_buf = Number(environ_buf);
1369
+ if (environ === 0 || environ_buf === 0) {
1370
+ return 28 /* WasiErrno.EINVAL */;
1371
+ }
1372
+ const { HEAPU8, view } = getMemory(this);
1373
+ const wasi = _wasi.get(this);
1374
+ const env = wasi.env;
1375
+ for (let i = 0; i < env.length; ++i) {
1376
+ const pair = env[i];
1377
+ view.setInt32(environ, environ_buf, true);
1378
+ environ += 4;
1379
+ const data = encoder.encode(pair + '\0');
1380
+ HEAPU8.set(data, environ_buf);
1381
+ environ_buf += data.length;
1382
+ }
1383
+ return 0 /* WasiErrno.ESUCCESS */;
1384
+ });
1385
+ this.environ_sizes_get = syscallWrap(this, 'environ_sizes_get', function (len, buflen) {
1386
+ len = Number(len);
1387
+ buflen = Number(buflen);
1388
+ if (len === 0 || buflen === 0) {
1389
+ return 28 /* WasiErrno.EINVAL */;
1390
+ }
1391
+ const { view } = getMemory(this);
1392
+ const wasi = _wasi.get(this);
1393
+ view.setUint32(len, wasi.env.length, true);
1394
+ view.setUint32(buflen, encoder.encode(wasi.env.join('\0') + '\0').length, true);
1395
+ return 0 /* WasiErrno.ESUCCESS */;
1396
+ });
1397
+ this.clock_res_get = syscallWrap(this, 'clock_res_get', function (id, resolution) {
1398
+ resolution = Number(resolution);
1399
+ if (resolution === 0) {
1400
+ return 28 /* WasiErrno.EINVAL */;
1401
+ }
1402
+ const { view } = getMemory(this);
1403
+ switch (id) {
1404
+ case 0 /* WasiClockid.REALTIME */:
1405
+ view.setBigUint64(resolution, BigInt(1000000), true);
1406
+ return 0 /* WasiErrno.ESUCCESS */;
1407
+ case 1 /* WasiClockid.MONOTONIC */:
1408
+ case 2 /* WasiClockid.PROCESS_CPUTIME_ID */:
1409
+ case 3 /* WasiClockid.THREAD_CPUTIME_ID */:
1410
+ view.setBigUint64(resolution, BigInt(1000), true);
1411
+ return 0 /* WasiErrno.ESUCCESS */;
1412
+ default: return 28 /* WasiErrno.EINVAL */;
1413
+ }
1414
+ });
1415
+ this.clock_time_get = syscallWrap(this, 'clock_time_get', function (id, _percision, time) {
1416
+ time = Number(time);
1417
+ if (time === 0) {
1418
+ return 28 /* WasiErrno.EINVAL */;
1419
+ }
1420
+ const { view } = getMemory(this);
1421
+ switch (id) {
1422
+ case 0 /* WasiClockid.REALTIME */:
1423
+ view.setBigUint64(time, BigInt(Date.now()) * BigInt(1000000), true);
1424
+ return 0 /* WasiErrno.ESUCCESS */;
1425
+ case 1 /* WasiClockid.MONOTONIC */:
1426
+ case 2 /* WasiClockid.PROCESS_CPUTIME_ID */:
1427
+ case 3 /* WasiClockid.THREAD_CPUTIME_ID */: {
1428
+ const t = performance.now() / 1000;
1429
+ const s = Math.trunc(t);
1430
+ const ms = Math.floor((t - s) * 1000);
1431
+ const result = BigInt(s) * BigInt(1000000000) + BigInt(ms) * BigInt(1000000);
1432
+ view.setBigUint64(time, result, true);
1433
+ return 0 /* WasiErrno.ESUCCESS */;
1434
+ }
1435
+ default: return 28 /* WasiErrno.EINVAL */;
1436
+ }
1437
+ });
1438
+ this.fd_advise = syscallWrap(this, 'fd_advise', function (_fd, _offset, _len, _advice) {
1439
+ return 52 /* WasiErrno.ENOSYS */;
1440
+ });
1441
+ this.fd_fdstat_get = syscallWrap(this, 'fd_fdstat_get', function (fd, fdstat) {
1442
+ fdstat = Number(fdstat);
1443
+ if (fdstat === 0) {
1444
+ return 28 /* WasiErrno.EINVAL */;
1445
+ }
1446
+ const wasi = _wasi.get(this);
1447
+ const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1448
+ const { view } = getMemory(this);
1449
+ view.setUint16(fdstat, fileDescriptor.type, true);
1450
+ view.setUint16(fdstat + 2, 0, true);
1451
+ view.setBigUint64(fdstat + 8, fileDescriptor.rightsBase, true);
1452
+ view.setBigUint64(fdstat + 16, fileDescriptor.rightsInheriting, true);
1453
+ return 0 /* WasiErrno.ESUCCESS */;
1454
+ });
1455
+ this.fd_fdstat_set_flags = syscallWrap(this, 'fd_fdstat_set_flags', function (_fd, _flags) {
1456
+ return 52 /* WasiErrno.ENOSYS */;
1457
+ });
1458
+ this.fd_fdstat_set_rights = syscallWrap(this, 'fd_fdstat_set_rights', function (fd, rightsBase, rightsInheriting) {
1459
+ const wasi = _wasi.get(this);
1460
+ const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1461
+ if ((rightsBase | fileDescriptor.rightsBase) > fileDescriptor.rightsBase) {
1462
+ return 76 /* WasiErrno.ENOTCAPABLE */;
1463
+ }
1464
+ if ((rightsInheriting | fileDescriptor.rightsInheriting) >
1465
+ fileDescriptor.rightsInheriting) {
1466
+ return 76 /* WasiErrno.ENOTCAPABLE */;
1467
+ }
1468
+ fileDescriptor.rightsBase = rightsBase;
1469
+ fileDescriptor.rightsInheriting = rightsInheriting;
1470
+ return 0 /* WasiErrno.ESUCCESS */;
1471
+ });
1472
+ this.fd_prestat_get = syscallWrap(this, 'fd_prestat_get', function (fd, prestat) {
1473
+ prestat = Number(prestat);
1474
+ if (prestat === 0) {
1475
+ return 28 /* WasiErrno.EINVAL */;
1476
+ }
1477
+ const wasi = _wasi.get(this);
1478
+ let fileDescriptor;
1479
+ try {
1480
+ fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1481
+ }
1482
+ catch (err) {
1483
+ if (err instanceof WasiError)
1484
+ return err.errno;
1485
+ throw err;
1486
+ }
1487
+ if (fileDescriptor.preopen !== 1)
1488
+ return 28 /* WasiErrno.EINVAL */;
1489
+ const { view } = getMemory(this);
1490
+ // preopen type is dir(0)
1491
+ view.setUint32(prestat, 0, true);
1492
+ view.setUint32(prestat + 4, encoder.encode(fileDescriptor.path).length, true);
1493
+ return 0 /* WasiErrno.ESUCCESS */;
1494
+ });
1495
+ this.fd_prestat_dir_name = syscallWrap(this, 'fd_prestat_dir_name', function (fd, path, path_len) {
1496
+ path = Number(path);
1497
+ path_len = Number(path_len);
1498
+ if (path === 0) {
1499
+ return 28 /* WasiErrno.EINVAL */;
1500
+ }
1501
+ const wasi = _wasi.get(this);
1502
+ const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1503
+ if (fileDescriptor.preopen !== 1)
1504
+ return 8 /* WasiErrno.EBADF */;
1505
+ const buffer = encoder.encode(fileDescriptor.path);
1506
+ const size = buffer.length;
1507
+ if (size > path_len)
1508
+ return 42 /* WasiErrno.ENOBUFS */;
1509
+ const { HEAPU8 } = getMemory(this);
1510
+ HEAPU8.set(buffer, path);
1511
+ return 0 /* WasiErrno.ESUCCESS */;
1512
+ });
1513
+ this.fd_seek = syscallWrap(this, 'fd_seek', function (fd, offset, whence, newOffset) {
1514
+ newOffset = Number(newOffset);
1515
+ if (newOffset === 0) {
1516
+ return 28 /* WasiErrno.EINVAL */;
1517
+ }
1518
+ if (fd === 0 || fd === 1 || fd === 2)
1519
+ return 0 /* WasiErrno.ESUCCESS */;
1520
+ const wasi = _wasi.get(this);
1521
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SEEK, BigInt(0));
1522
+ const r = fileDescriptor.seek(offset, whence);
1523
+ const { view } = getMemory(this);
1524
+ view.setBigUint64(newOffset, r, true);
1525
+ return 0 /* WasiErrno.ESUCCESS */;
1526
+ });
1527
+ this.fd_tell = syscallWrap(this, 'fd_tell', function (fd, offset) {
1528
+ const wasi = _wasi.get(this);
1529
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_TELL, BigInt(0));
1530
+ const pos = BigInt(fileDescriptor.pos);
1531
+ const { view } = getMemory(this);
1532
+ view.setBigUint64(Number(offset), pos, true);
1533
+ return 0 /* WasiErrno.ESUCCESS */;
1534
+ });
1535
+ this.poll_oneoff = syscallWrap(this, 'poll_oneoff', function (in_ptr, out_ptr, nsubscriptions, nevents) {
1536
+ in_ptr = Number(in_ptr);
1537
+ out_ptr = Number(out_ptr);
1538
+ nevents = Number(nevents);
1539
+ nsubscriptions = Number(nsubscriptions);
1540
+ nsubscriptions = nsubscriptions >>> 0;
1541
+ if (in_ptr === 0 || out_ptr === 0 || nsubscriptions === 0 || nevents === 0) {
1542
+ return 28 /* WasiErrno.EINVAL */;
1543
+ }
1544
+ const { view } = getMemory(this);
1545
+ view.setUint32(nevents, 0, true);
1546
+ let i = 0;
1547
+ let timer_userdata = BigInt(0);
1548
+ let cur_timeout = BigInt(0);
1549
+ let has_timeout = 0;
1550
+ let min_timeout = BigInt(0);
1551
+ let sub;
1552
+ const subscriptions = Array(nsubscriptions);
1553
+ for (i = 0; i < nsubscriptions; i++) {
1554
+ sub = in_ptr + i * 48;
1555
+ const userdata = view.getBigUint64(sub, true);
1556
+ const type = view.getUint8(sub + 8);
1557
+ const clockIdOrFd = view.getUint32(sub + 16, true);
1558
+ const timeout = view.getBigUint64(sub + 24, true);
1559
+ const precision = view.getBigUint64(sub + 32, true);
1560
+ const flags = view.getUint16(sub + 40, true);
1561
+ subscriptions[i] = {
1562
+ userdata,
1563
+ type,
1564
+ u: {
1565
+ clock: {
1566
+ clock_id: clockIdOrFd,
1567
+ timeout,
1568
+ precision,
1569
+ flags
1570
+ },
1571
+ fd_readwrite: {
1572
+ fd: clockIdOrFd
1573
+ }
1574
+ }
1575
+ };
1576
+ }
1577
+ const fdevents = [];
1578
+ for (i = 0; i < nsubscriptions; i++) {
1579
+ sub = subscriptions[i];
1580
+ switch (sub.type) {
1581
+ case 0 /* WasiEventType.CLOCK */: {
1582
+ if (sub.u.clock.flags === 1 /* WasiSubclockflags.ABSTIME */) {
1583
+ /* Convert absolute time to relative delay. */
1584
+ const now = BigInt(Date.now()) * BigInt(1000000);
1585
+ cur_timeout = sub.u.clock.timeout - now;
1586
+ }
1587
+ else {
1588
+ cur_timeout = sub.u.clock.timeout;
1589
+ }
1590
+ if (has_timeout === 0 || cur_timeout < min_timeout) {
1591
+ min_timeout = cur_timeout;
1592
+ timer_userdata = sub.userdata;
1593
+ has_timeout = 1;
1594
+ }
1595
+ break;
1596
+ }
1597
+ case 1 /* WasiEventType.FD_READ */:
1598
+ case 2 /* WasiEventType.FD_WRITE */:
1599
+ fdevents.push(sub);
1600
+ break;
1601
+ default: return 28 /* WasiErrno.EINVAL */;
1602
+ }
1603
+ }
1604
+ if (fdevents.length > 0) {
1605
+ for (i = 0; i < fdevents.length; i++) {
1606
+ const fdevent = fdevents[i];
1607
+ const event = out_ptr + 32 * i;
1608
+ view.setBigUint64(event, fdevent.userdata, true);
1609
+ view.setUint32(event + 8, 52 /* WasiErrno.ENOSYS */, true);
1610
+ view.setUint32(event + 12, fdevent.type, true);
1611
+ view.setBigUint64(event + 16, BigInt(0), true);
1612
+ view.setUint16(event + 24, 0, true);
1613
+ view.setUint32(nevents, 1, true);
1614
+ }
1615
+ view.setUint32(nevents, fdevents.length, true);
1616
+ return 0 /* WasiErrno.ESUCCESS */;
1617
+ }
1618
+ if (has_timeout) {
1619
+ const delay = Number(min_timeout / BigInt(1000000));
1620
+ // if (isMainThread || typeof SharedArrayBuffer !== 'function') {
1621
+ sleepBreakIf(delay, () => false);
1622
+ // } else {
1623
+ // const buf = new SharedArrayBuffer(4)
1624
+ // const arr = new Int32Array(buf)
1625
+ // postMsg({
1626
+ // __tybys_wasm_util_wasi__: {
1627
+ // type: 'set-timeout',
1628
+ // payload: {
1629
+ // buffer: buf,
1630
+ // delay
1631
+ // }
1632
+ // }
1633
+ // })
1634
+ // Atomics.wait(arr, 0, 0)
1635
+ // }
1636
+ const event = out_ptr;
1637
+ view.setBigUint64(event, timer_userdata, true);
1638
+ view.setUint32(event + 8, 0 /* WasiErrno.ESUCCESS */, true);
1639
+ view.setUint32(event + 12, 0 /* WasiEventType.CLOCK */, true);
1640
+ view.setUint32(nevents, 1, true);
1641
+ }
1642
+ return 0 /* WasiErrno.ESUCCESS */;
1643
+ });
1644
+ this.proc_exit = syscallWrap(this, 'proc_exit', function (rval) {
1645
+ if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) {
1646
+ process.exit(rval);
1647
+ }
1648
+ return 0 /* WasiErrno.ESUCCESS */;
1649
+ });
1650
+ this.proc_raise = syscallWrap(this, 'proc_raise', function (_sig) {
1651
+ return 52 /* WasiErrno.ENOSYS */;
1652
+ });
1653
+ this.sched_yield = syscallWrap(this, 'sched_yield', function () {
1654
+ return 0 /* WasiErrno.ESUCCESS */;
1655
+ });
1656
+ this.random_get = typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function'
1657
+ ? syscallWrap(this, 'random_get', function (buf, buf_len) {
1658
+ buf = Number(buf);
1659
+ if (buf === 0) {
1660
+ return 28 /* WasiErrno.EINVAL */;
1661
+ }
1662
+ buf_len = Number(buf_len);
1663
+ const { HEAPU8, view } = getMemory(this);
1664
+ if ((typeof SharedArrayBuffer === 'function' && HEAPU8.buffer instanceof SharedArrayBuffer) ||
1665
+ (Object.prototype.toString.call(HEAPU8.buffer) === '[object SharedArrayBuffer]')) {
1666
+ for (let i = buf; i < buf + buf_len; ++i) {
1667
+ view.setUint8(i, Math.floor(Math.random() * 256));
1668
+ }
1669
+ return 0 /* WasiErrno.ESUCCESS */;
1670
+ }
1671
+ let pos;
1672
+ const stride = 65536;
1673
+ for (pos = 0; pos + stride < buf_len; pos += stride) {
1674
+ crypto.getRandomValues(HEAPU8.subarray(buf + pos, buf + pos + stride));
1675
+ }
1676
+ crypto.getRandomValues(HEAPU8.subarray(buf + pos, buf + buf_len));
1677
+ return 0 /* WasiErrno.ESUCCESS */;
1678
+ })
1679
+ : syscallWrap(this, 'random_get', function (buf, buf_len) {
1680
+ buf = Number(buf);
1681
+ if (buf === 0) {
1682
+ return 28 /* WasiErrno.EINVAL */;
1683
+ }
1684
+ buf_len = Number(buf_len);
1685
+ const { view } = getMemory(this);
1686
+ for (let i = buf; i < buf + buf_len; ++i) {
1687
+ view.setUint8(i, Math.floor(Math.random() * 256));
1688
+ }
1689
+ return 0 /* WasiErrno.ESUCCESS */;
1690
+ });
1691
+ this.sock_recv = syscallWrap(this, 'sock_recv', function () {
1692
+ return 58 /* WasiErrno.ENOTSUP */;
1693
+ });
1694
+ this.sock_send = syscallWrap(this, 'sock_send', function () {
1695
+ return 58 /* WasiErrno.ENOTSUP */;
1696
+ });
1697
+ this.sock_shutdown = syscallWrap(this, 'sock_shutdown', function () {
1698
+ return 58 /* WasiErrno.ENOTSUP */;
1699
+ });
1700
+ this.sock_accept = syscallWrap(this, 'sock_accept', function () {
1701
+ return 58 /* WasiErrno.ENOTSUP */;
1702
+ });
1703
+ _wasi.set(this, {
1704
+ fds,
1705
+ args,
1706
+ env
1707
+ });
1708
+ if (fs)
1709
+ _fs.set(this, fs);
1710
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
1711
+ const _this = this;
1712
+ function defineImport(name, syncVersion, asyncVersion, parameterType, returnType) {
1713
+ if (asyncFs) {
1714
+ if (asyncify) {
1715
+ _this[name] = asyncify.wrapImportFunction(syscallWrap(_this, name, asyncVersion));
1716
+ }
1717
+ else {
1718
+ _this[name] = wrapAsyncImport(syscallWrap(_this, name, asyncVersion), parameterType, returnType);
1719
+ }
1720
+ }
1721
+ else {
1722
+ _this[name] = syscallWrap(_this, name, syncVersion);
1723
+ }
1724
+ }
1725
+ defineImport('fd_allocate', function fd_allocate(fd, offset, len) {
1726
+ const wasi = _wasi.get(this);
1727
+ const fs = getFs(this);
1728
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_ALLOCATE, BigInt(0));
1729
+ const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
1730
+ if (stat.size < offset + len) {
1731
+ fs.ftruncateSync(fileDescriptor.fd, Number(offset + len));
1732
+ }
1733
+ return 0 /* WasiErrno.ESUCCESS */;
1734
+ }, async function fd_allocate(fd, offset, len) {
1735
+ const wasi = _wasi.get(this);
1736
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_ALLOCATE, BigInt(0));
1737
+ const h = fileDescriptor.fd;
1738
+ const stat = await h.stat({ bigint: true });
1739
+ if (stat.size < offset + len) {
1740
+ await h.truncate(Number(offset + len));
1741
+ }
1742
+ return 0 /* WasiErrno.ESUCCESS */;
1743
+ }, ['i32', 'i64', 'f64'], ['i32']);
1744
+ defineImport('fd_close', function fd_close(fd) {
1745
+ const wasi = _wasi.get(this);
1746
+ const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1747
+ const fs = getFs(this);
1748
+ fs.closeSync(fileDescriptor.fd);
1749
+ wasi.fds.remove(fd);
1750
+ return 0 /* WasiErrno.ESUCCESS */;
1751
+ }, async function fd_close(fd) {
1752
+ const wasi = _wasi.get(this);
1753
+ const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
1754
+ await fileDescriptor.fd.close();
1755
+ wasi.fds.remove(fd);
1756
+ return 0 /* WasiErrno.ESUCCESS */;
1757
+ }, ['i32'], ['i32']);
1758
+ defineImport('fd_datasync', function fd_datasync(fd) {
1759
+ const wasi = _wasi.get(this);
1760
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_DATASYNC, BigInt(0));
1761
+ const fs = getFs(this);
1762
+ fs.fdatasyncSync(fileDescriptor.fd);
1763
+ return 0 /* WasiErrno.ESUCCESS */;
1764
+ }, async function fd_datasync(fd) {
1765
+ const wasi = _wasi.get(this);
1766
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_DATASYNC, BigInt(0));
1767
+ await fileDescriptor.fd.datasync();
1768
+ return 0 /* WasiErrno.ESUCCESS */;
1769
+ }, ['i32'], ['i32']);
1770
+ defineImport('fd_filestat_get', function fd_filestat_get(fd, buf) {
1771
+ buf = Number(buf);
1772
+ if (buf === 0)
1773
+ return 28 /* WasiErrno.EINVAL */;
1774
+ const wasi = _wasi.get(this);
1775
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
1776
+ const fs = getFs(this);
1777
+ const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
1778
+ const { view } = getMemory(this);
1779
+ toFileStat(view, buf, stat);
1780
+ return 0 /* WasiErrno.ESUCCESS */;
1781
+ }, async function fd_filestat_get(fd, buf) {
1782
+ buf = Number(buf);
1783
+ if (buf === 0)
1784
+ return 28 /* WasiErrno.EINVAL */;
1785
+ const wasi = _wasi.get(this);
1786
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
1787
+ const h = fileDescriptor.fd;
1788
+ const stat = await h.stat({ bigint: true });
1789
+ const { view } = getMemory(this);
1790
+ toFileStat(view, buf, stat);
1791
+ return 0 /* WasiErrno.ESUCCESS */;
1792
+ }, ['i32', 'i32'], ['i32']);
1793
+ defineImport('fd_filestat_set_size', function fd_filestat_set_size(fd, size) {
1794
+ const wasi = _wasi.get(this);
1795
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_SIZE, BigInt(0));
1796
+ const fs = getFs(this);
1797
+ fs.ftruncateSync(fileDescriptor.fd, Number(size));
1798
+ return 0 /* WasiErrno.ESUCCESS */;
1799
+ }, async function fd_filestat_set_size(fd, size) {
1800
+ const wasi = _wasi.get(this);
1801
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_SIZE, BigInt(0));
1802
+ const h = fileDescriptor.fd;
1803
+ await h.truncate(Number(size));
1804
+ return 0 /* WasiErrno.ESUCCESS */;
1805
+ }, ['i32', 'i64'], ['i32']);
1806
+ function fdFilestatGetTimes(fd, atim, mtim, flags) {
1807
+ const wasi = _wasi.get(this);
1808
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_TIMES, BigInt(0));
1809
+ if ((flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
1810
+ atim = BigInt(Date.now() * 1000000);
1811
+ }
1812
+ if ((flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
1813
+ mtim = BigInt(Date.now() * 1000000);
1814
+ }
1815
+ return { fileDescriptor, atim, mtim };
1816
+ }
1817
+ defineImport('fd_filestat_set_times', function fd_filestat_set_times(fd, atim, mtim, flags) {
1818
+ if (validateFstFlagsOrReturn(flags)) {
1819
+ return 28 /* WasiErrno.EINVAL */;
1820
+ }
1821
+ const { fileDescriptor, atim: atimRes, mtim: mtimRes } = fdFilestatGetTimes.call(this, fd, atim, mtim, flags);
1822
+ const fs = getFs(this);
1823
+ fs.futimesSync(fileDescriptor.fd, Number(atimRes), Number(mtimRes));
1824
+ return 0 /* WasiErrno.ESUCCESS */;
1825
+ }, async function fd_filestat_set_times(fd, atim, mtim, flags) {
1826
+ if (validateFstFlagsOrReturn(flags)) {
1827
+ return 28 /* WasiErrno.EINVAL */;
1828
+ }
1829
+ const { fileDescriptor, atim: atimRes, mtim: mtimRes } = fdFilestatGetTimes.call(this, fd, atim, mtim, flags);
1830
+ const h = fileDescriptor.fd;
1831
+ await h.utimes(Number(atimRes), Number(mtimRes));
1832
+ return 0 /* WasiErrno.ESUCCESS */;
1833
+ }, ['i32', 'i64', 'i64', 'i32'], ['i32']);
1834
+ defineImport('fd_pread', function fd_pread(fd, iovs, iovslen, offset, size) {
1835
+ iovs = Number(iovs);
1836
+ size = Number(size);
1837
+ if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
1838
+ return 28 /* WasiErrno.EINVAL */;
1839
+ }
1840
+ const { HEAPU8, view } = getMemory(this);
1841
+ const wasi = _wasi.get(this);
1842
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
1843
+ if (!iovslen) {
1844
+ view.setUint32(size, 0, true);
1845
+ return 0 /* WasiErrno.ESUCCESS */;
1846
+ }
1847
+ let totalSize = 0;
1848
+ const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
1849
+ const offset = iovs + (i * 8);
1850
+ const buf = view.getInt32(offset, true);
1851
+ const bufLen = view.getUint32(offset + 4, true);
1852
+ totalSize += bufLen;
1853
+ return HEAPU8.subarray(buf, buf + bufLen);
1854
+ });
1855
+ let nread = 0;
1856
+ const buffer = (() => {
1857
+ try {
1858
+ return new Uint8Array(new SharedArrayBuffer(totalSize));
1859
+ }
1860
+ catch (_) {
1861
+ return new Uint8Array(totalSize);
1862
+ }
1863
+ })();
1864
+ buffer._isBuffer = true;
1865
+ const fs = getFs(this);
1866
+ const bytesRead = fs.readSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(offset));
1867
+ nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
1868
+ view.setUint32(size, nread, true);
1869
+ return 0 /* WasiErrno.ESUCCESS */;
1870
+ }, async function (fd, iovs, iovslen, offset, size) {
1871
+ iovs = Number(iovs);
1872
+ size = Number(size);
1873
+ if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
1874
+ return 28 /* WasiErrno.EINVAL */;
1875
+ }
1876
+ const { HEAPU8, view } = getMemory(this);
1877
+ const wasi = _wasi.get(this);
1878
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
1879
+ if (!iovslen) {
1880
+ view.setUint32(size, 0, true);
1881
+ return 0 /* WasiErrno.ESUCCESS */;
1882
+ }
1883
+ let totalSize = 0;
1884
+ const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
1885
+ const offset = iovs + (i * 8);
1886
+ const buf = view.getInt32(offset, true);
1887
+ const bufLen = view.getUint32(offset + 4, true);
1888
+ totalSize += bufLen;
1889
+ return HEAPU8.subarray(buf, buf + bufLen);
1890
+ });
1891
+ let nread = 0;
1892
+ const buffer = new Uint8Array(totalSize);
1893
+ buffer._isBuffer = true;
1894
+ const { bytesRead } = await fileDescriptor.fd.read(buffer, 0, buffer.length, Number(offset));
1895
+ nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
1896
+ view.setUint32(size, nread, true);
1897
+ return 0 /* WasiErrno.ESUCCESS */;
1898
+ }, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
1899
+ defineImport('fd_pwrite', function fd_pwrite(fd, iovs, iovslen, offset, size) {
1900
+ iovs = Number(iovs);
1901
+ size = Number(size);
1902
+ if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
1903
+ return 28 /* WasiErrno.EINVAL */;
1904
+ }
1905
+ const { HEAPU8, view } = getMemory(this);
1906
+ const wasi = _wasi.get(this);
1907
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
1908
+ if (!iovslen) {
1909
+ view.setUint32(size, 0, true);
1910
+ return 0 /* WasiErrno.ESUCCESS */;
1911
+ }
1912
+ const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
1913
+ const offset = iovs + (i * 8);
1914
+ const buf = view.getInt32(offset, true);
1915
+ const bufLen = view.getUint32(offset + 4, true);
1916
+ return HEAPU8.subarray(buf, buf + bufLen);
1917
+ }));
1918
+ const fs = getFs(this);
1919
+ const nwritten = fs.writeSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(offset));
1920
+ view.setUint32(size, nwritten, true);
1921
+ return 0 /* WasiErrno.ESUCCESS */;
1922
+ }, async function fd_pwrite(fd, iovs, iovslen, offset, size) {
1923
+ iovs = Number(iovs);
1924
+ size = Number(size);
1925
+ if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
1926
+ return 28 /* WasiErrno.EINVAL */;
1927
+ }
1928
+ const { HEAPU8, view } = getMemory(this);
1929
+ const wasi = _wasi.get(this);
1930
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
1931
+ if (!iovslen) {
1932
+ view.setUint32(size, 0, true);
1933
+ return 0 /* WasiErrno.ESUCCESS */;
1934
+ }
1935
+ const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
1936
+ const offset = iovs + (i * 8);
1937
+ const buf = view.getInt32(offset, true);
1938
+ const bufLen = view.getUint32(offset + 4, true);
1939
+ return HEAPU8.subarray(buf, buf + bufLen);
1940
+ }));
1941
+ const { bytesWritten } = await fileDescriptor.fd.write(buffer, 0, buffer.length, Number(offset));
1942
+ view.setUint32(size, bytesWritten, true);
1943
+ return 0 /* WasiErrno.ESUCCESS */;
1944
+ }, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
1945
+ defineImport('fd_read', function fd_read(fd, iovs, iovslen, size) {
1946
+ iovs = Number(iovs);
1947
+ size = Number(size);
1948
+ if ((iovs === 0 && iovslen) || size === 0) {
1949
+ return 28 /* WasiErrno.EINVAL */;
1950
+ }
1951
+ const { HEAPU8, view } = getMemory(this);
1952
+ const wasi = _wasi.get(this);
1953
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
1954
+ if (!iovslen) {
1955
+ view.setUint32(size, 0, true);
1956
+ return 0 /* WasiErrno.ESUCCESS */;
1957
+ }
1958
+ let totalSize = 0;
1959
+ const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
1960
+ const offset = iovs + (i * 8);
1961
+ const buf = view.getInt32(offset, true);
1962
+ const bufLen = view.getUint32(offset + 4, true);
1963
+ totalSize += bufLen;
1964
+ return HEAPU8.subarray(buf, buf + bufLen);
1965
+ });
1966
+ let buffer;
1967
+ let nread = 0;
1968
+ if (fd === 0) {
1969
+ if (typeof window === 'undefined' || typeof window.prompt !== 'function') {
1970
+ return 58 /* WasiErrno.ENOTSUP */;
1971
+ }
1972
+ buffer = readStdin();
1973
+ nread = buffer ? copyMemory(ioVecs, buffer) : 0;
1974
+ }
1975
+ else {
1976
+ buffer = (() => {
1977
+ try {
1978
+ return new Uint8Array(new SharedArrayBuffer(totalSize));
1979
+ }
1980
+ catch (_) {
1981
+ return new Uint8Array(totalSize);
1982
+ }
1983
+ })();
1984
+ buffer._isBuffer = true;
1985
+ const fs = getFs(this);
1986
+ const bytesRead = fs.readSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(fileDescriptor.pos));
1987
+ nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
1988
+ fileDescriptor.pos += BigInt(nread);
1989
+ }
1990
+ view.setUint32(size, nread, true);
1991
+ return 0 /* WasiErrno.ESUCCESS */;
1992
+ }, async function fd_read(fd, iovs, iovslen, size) {
1993
+ iovs = Number(iovs);
1994
+ size = Number(size);
1995
+ if ((iovs === 0 && iovslen) || size === 0) {
1996
+ return 28 /* WasiErrno.EINVAL */;
1997
+ }
1998
+ const { HEAPU8, view } = getMemory(this);
1999
+ const wasi = _wasi.get(this);
2000
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
2001
+ if (!iovslen) {
2002
+ view.setUint32(size, 0, true);
2003
+ return 0 /* WasiErrno.ESUCCESS */;
2004
+ }
2005
+ let totalSize = 0;
2006
+ const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
2007
+ const offset = iovs + (i * 8);
2008
+ const buf = view.getInt32(offset, true);
2009
+ const bufLen = view.getUint32(offset + 4, true);
2010
+ totalSize += bufLen;
2011
+ return HEAPU8.subarray(buf, buf + bufLen);
2012
+ });
2013
+ let buffer;
2014
+ let nread = 0;
2015
+ if (fd === 0) {
2016
+ if (typeof window === 'undefined' || typeof window.prompt !== 'function') {
2017
+ return 58 /* WasiErrno.ENOTSUP */;
2018
+ }
2019
+ buffer = readStdin();
2020
+ nread = buffer ? copyMemory(ioVecs, buffer) : 0;
2021
+ }
2022
+ else {
2023
+ buffer = new Uint8Array(totalSize);
2024
+ buffer._isBuffer = true;
2025
+ const { bytesRead } = await fileDescriptor.fd.read(buffer, 0, buffer.length, Number(fileDescriptor.pos));
2026
+ nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
2027
+ fileDescriptor.pos += BigInt(nread);
2028
+ }
2029
+ view.setUint32(size, nread, true);
2030
+ return 0 /* WasiErrno.ESUCCESS */;
2031
+ }, ['i32', 'i32', 'i32', 'i32'], ['i32']);
2032
+ defineImport('fd_readdir', function fd_readdir(fd, buf, buf_len, cookie, bufused) {
2033
+ buf = Number(buf);
2034
+ buf_len = Number(buf_len);
2035
+ bufused = Number(bufused);
2036
+ if (buf === 0 || bufused === 0)
2037
+ return 0 /* WasiErrno.ESUCCESS */;
2038
+ const wasi = _wasi.get(this);
2039
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
2040
+ const fs = getFs(this);
2041
+ const entries = fs.readdirSync(fileDescriptor.realPath, { withFileTypes: true });
2042
+ const { HEAPU8, view } = getMemory(this);
2043
+ let bufferUsed = 0;
2044
+ for (let i = Number(cookie); i < entries.length; i++) {
2045
+ const nameData = encoder.encode(entries[i].name);
2046
+ const entryInfo = fs.statSync(resolve(fileDescriptor.realPath, entries[i].name), { bigint: true });
2047
+ const entryData = new Uint8Array(24 + nameData.byteLength);
2048
+ const entryView = new DataView(entryData.buffer);
2049
+ entryView.setBigUint64(0, BigInt(i + 1), true);
2050
+ entryView.setBigUint64(8, BigInt(entryInfo.ino ? entryInfo.ino : 0), true);
2051
+ entryView.setUint32(16, nameData.byteLength, true);
2052
+ let type;
2053
+ if (entries[i].isFile()) {
2054
+ type = 4 /* WasiFileType.REGULAR_FILE */;
2055
+ }
2056
+ else if (entries[i].isDirectory()) {
2057
+ type = 3 /* WasiFileType.DIRECTORY */;
2058
+ }
2059
+ else if (entries[i].isSymbolicLink()) {
2060
+ type = 7 /* WasiFileType.SYMBOLIC_LINK */;
2061
+ }
2062
+ else if (entries[i].isCharacterDevice()) {
2063
+ type = 2 /* WasiFileType.CHARACTER_DEVICE */;
2064
+ }
2065
+ else if (entries[i].isBlockDevice()) {
2066
+ type = 1 /* WasiFileType.BLOCK_DEVICE */;
2067
+ }
2068
+ else if (entries[i].isSocket()) {
2069
+ type = 6 /* WasiFileType.SOCKET_STREAM */;
2070
+ }
2071
+ else {
2072
+ type = 0 /* WasiFileType.UNKNOWN */;
2073
+ }
2074
+ entryView.setUint8(20, type);
2075
+ entryData.set(nameData, 24);
2076
+ const data = entryData.slice(0, Math.min(entryData.length, buf_len - bufferUsed));
2077
+ HEAPU8.set(data, buf + bufferUsed);
2078
+ bufferUsed += data.byteLength;
2079
+ }
2080
+ view.setUint32(bufused, bufferUsed, true);
2081
+ return 0 /* WasiErrno.ESUCCESS */;
2082
+ }, async function fd_readdir(fd, buf, buf_len, cookie, bufused) {
2083
+ buf = Number(buf);
2084
+ buf_len = Number(buf_len);
2085
+ bufused = Number(bufused);
2086
+ if (buf === 0 || bufused === 0)
2087
+ return 0 /* WasiErrno.ESUCCESS */;
2088
+ const wasi = _wasi.get(this);
2089
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
2090
+ const fs = getFs(this);
2091
+ const entries = await fs.promises.readdir(fileDescriptor.realPath, { withFileTypes: true });
2092
+ const { HEAPU8, view } = getMemory(this);
2093
+ let bufferUsed = 0;
2094
+ for (let i = Number(cookie); i < entries.length; i++) {
2095
+ const nameData = encoder.encode(entries[i].name);
2096
+ const entryInfo = await fs.promises.stat(resolve(fileDescriptor.realPath, entries[i].name), { bigint: true });
2097
+ const entryData = new Uint8Array(24 + nameData.byteLength);
2098
+ const entryView = new DataView(entryData.buffer);
2099
+ entryView.setBigUint64(0, BigInt(i + 1), true);
2100
+ entryView.setBigUint64(8, BigInt(entryInfo.ino ? entryInfo.ino : 0), true);
2101
+ entryView.setUint32(16, nameData.byteLength, true);
2102
+ let type;
2103
+ if (entries[i].isFile()) {
2104
+ type = 4 /* WasiFileType.REGULAR_FILE */;
2105
+ }
2106
+ else if (entries[i].isDirectory()) {
2107
+ type = 3 /* WasiFileType.DIRECTORY */;
2108
+ }
2109
+ else if (entries[i].isSymbolicLink()) {
2110
+ type = 7 /* WasiFileType.SYMBOLIC_LINK */;
2111
+ }
2112
+ else if (entries[i].isCharacterDevice()) {
2113
+ type = 2 /* WasiFileType.CHARACTER_DEVICE */;
2114
+ }
2115
+ else if (entries[i].isBlockDevice()) {
2116
+ type = 1 /* WasiFileType.BLOCK_DEVICE */;
2117
+ }
2118
+ else if (entries[i].isSocket()) {
2119
+ type = 6 /* WasiFileType.SOCKET_STREAM */;
2120
+ }
2121
+ else {
2122
+ type = 0 /* WasiFileType.UNKNOWN */;
2123
+ }
2124
+ entryView.setUint8(20, type);
2125
+ entryData.set(nameData, 24);
2126
+ const data = entryData.slice(0, Math.min(entryData.length, buf_len - bufferUsed));
2127
+ HEAPU8.set(data, buf + bufferUsed);
2128
+ bufferUsed += data.byteLength;
2129
+ }
2130
+ view.setUint32(bufused, bufferUsed, true);
2131
+ return 0 /* WasiErrno.ESUCCESS */;
2132
+ }, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
2133
+ defineImport('fd_renumber', function fd_renumber(from, to) {
2134
+ const wasi = _wasi.get(this);
2135
+ wasi.fds.renumber(to, from);
2136
+ return 0 /* WasiErrno.ESUCCESS */;
2137
+ }, async function fd_renumber(from, to) {
2138
+ const wasi = _wasi.get(this);
2139
+ await wasi.fds.renumber(to, from);
2140
+ return 0 /* WasiErrno.ESUCCESS */;
2141
+ }, ['i32', 'i32'], ['i32']);
2142
+ defineImport('fd_sync', function fd_sync(fd) {
2143
+ const wasi = _wasi.get(this);
2144
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SYNC, BigInt(0));
2145
+ const fs = getFs(this);
2146
+ fs.fsyncSync(fileDescriptor.fd);
2147
+ return 0 /* WasiErrno.ESUCCESS */;
2148
+ }, async function fd_sync(fd) {
2149
+ const wasi = _wasi.get(this);
2150
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SYNC, BigInt(0));
2151
+ await fileDescriptor.fd.sync();
2152
+ return 0 /* WasiErrno.ESUCCESS */;
2153
+ }, ['i32'], ['i32']);
2154
+ defineImport('fd_write', function fd_write(fd, iovs, iovslen, size) {
2155
+ iovs = Number(iovs);
2156
+ size = Number(size);
2157
+ if ((iovs === 0 && iovslen) || size === 0) {
2158
+ return 28 /* WasiErrno.EINVAL */;
2159
+ }
2160
+ const { HEAPU8, view } = getMemory(this);
2161
+ const wasi = _wasi.get(this);
2162
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
2163
+ if (!iovslen) {
2164
+ view.setUint32(size, 0, true);
2165
+ return 0 /* WasiErrno.ESUCCESS */;
2166
+ }
2167
+ const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
2168
+ const offset = iovs + (i * 8);
2169
+ const buf = view.getInt32(offset, true);
2170
+ const bufLen = view.getUint32(offset + 4, true);
2171
+ return HEAPU8.subarray(buf, buf + bufLen);
2172
+ }));
2173
+ let nwritten;
2174
+ if (fd === 1 || fd === 2) {
2175
+ nwritten = fileDescriptor.write(buffer);
2176
+ }
2177
+ else {
2178
+ const fs = getFs(this);
2179
+ nwritten = fs.writeSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(fileDescriptor.pos));
2180
+ fileDescriptor.pos += BigInt(nwritten);
2181
+ }
2182
+ view.setUint32(size, nwritten, true);
2183
+ return 0 /* WasiErrno.ESUCCESS */;
2184
+ }, async function fd_write(fd, iovs, iovslen, size) {
2185
+ iovs = Number(iovs);
2186
+ size = Number(size);
2187
+ if ((iovs === 0 && iovslen) || size === 0) {
2188
+ return 28 /* WasiErrno.EINVAL */;
2189
+ }
2190
+ const { HEAPU8, view } = getMemory(this);
2191
+ const wasi = _wasi.get(this);
2192
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
2193
+ if (!iovslen) {
2194
+ view.setUint32(size, 0, true);
2195
+ return 0 /* WasiErrno.ESUCCESS */;
2196
+ }
2197
+ const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
2198
+ const offset = iovs + (i * 8);
2199
+ const buf = view.getInt32(offset, true);
2200
+ const bufLen = view.getUint32(offset + 4, true);
2201
+ return HEAPU8.subarray(buf, buf + bufLen);
2202
+ }));
2203
+ let nwritten;
2204
+ if (fd === 1 || fd === 2) {
2205
+ nwritten = fileDescriptor.write(buffer);
2206
+ }
2207
+ else {
2208
+ nwritten = await (await (fileDescriptor.fd.write(buffer, 0, buffer.length, Number(fileDescriptor.pos)))).bytesWritten;
2209
+ fileDescriptor.pos += BigInt(nwritten);
2210
+ }
2211
+ view.setUint32(size, nwritten, true);
2212
+ return 0 /* WasiErrno.ESUCCESS */;
2213
+ }, ['i32', 'i32', 'i32', 'i32'], ['i32']);
2214
+ defineImport('path_create_directory', function path_create_directory(fd, path, path_len) {
2215
+ path = Number(path);
2216
+ path_len = Number(path_len);
2217
+ if (path === 0) {
2218
+ return 28 /* WasiErrno.EINVAL */;
2219
+ }
2220
+ const { HEAPU8 } = getMemory(this);
2221
+ const wasi = _wasi.get(this);
2222
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
2223
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2224
+ pathString = resolve(fileDescriptor.realPath, pathString);
2225
+ const fs = getFs(this);
2226
+ fs.mkdirSync(pathString);
2227
+ return 0 /* WasiErrno.ESUCCESS */;
2228
+ }, async function path_create_directory(fd, path, path_len) {
2229
+ path = Number(path);
2230
+ path_len = Number(path_len);
2231
+ if (path === 0) {
2232
+ return 28 /* WasiErrno.EINVAL */;
2233
+ }
2234
+ const { HEAPU8 } = getMemory(this);
2235
+ const wasi = _wasi.get(this);
2236
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
2237
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2238
+ pathString = resolve(fileDescriptor.realPath, pathString);
2239
+ const fs = getFs(this);
2240
+ await fs.promises.mkdir(pathString);
2241
+ return 0 /* WasiErrno.ESUCCESS */;
2242
+ }, ['i32', 'i32', 'i32'], ['i32']);
2243
+ defineImport('path_filestat_get', function path_filestat_get(fd, flags, path, path_len, filestat) {
2244
+ path = Number(path);
2245
+ path_len = Number(path_len);
2246
+ filestat = Number(filestat);
2247
+ if (path === 0 || filestat === 0) {
2248
+ return 28 /* WasiErrno.EINVAL */;
2249
+ }
2250
+ const { HEAPU8, view } = getMemory(this);
2251
+ const wasi = _wasi.get(this);
2252
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
2253
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2254
+ const fs = getFs(this);
2255
+ pathString = resolve(fileDescriptor.realPath, pathString);
2256
+ let stat;
2257
+ if ((flags & 1) === 1) {
2258
+ stat = fs.statSync(pathString, { bigint: true });
2259
+ }
2260
+ else {
2261
+ stat = fs.lstatSync(pathString, { bigint: true });
2262
+ }
2263
+ toFileStat(view, filestat, stat);
2264
+ return 0 /* WasiErrno.ESUCCESS */;
2265
+ }, async function path_filestat_get(fd, flags, path, path_len, filestat) {
2266
+ path = Number(path);
2267
+ path_len = Number(path_len);
2268
+ filestat = Number(filestat);
2269
+ if (path === 0 || filestat === 0) {
2270
+ return 28 /* WasiErrno.EINVAL */;
2271
+ }
2272
+ const { HEAPU8, view } = getMemory(this);
2273
+ const wasi = _wasi.get(this);
2274
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
2275
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2276
+ const fs = getFs(this);
2277
+ pathString = resolve(fileDescriptor.realPath, pathString);
2278
+ let stat;
2279
+ if ((flags & 1) === 1) {
2280
+ stat = await fs.promises.stat(pathString, { bigint: true });
2281
+ }
2282
+ else {
2283
+ stat = await fs.promises.lstat(pathString, { bigint: true });
2284
+ }
2285
+ toFileStat(view, filestat, stat);
2286
+ return 0 /* WasiErrno.ESUCCESS */;
2287
+ }, ['i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
2288
+ defineImport('path_filestat_set_times', function path_filestat_set_times(fd, flags, path, path_len, atim, mtim, fst_flags) {
2289
+ path = Number(path);
2290
+ path_len = Number(path_len);
2291
+ if (path === 0)
2292
+ return 28 /* WasiErrno.EINVAL */;
2293
+ const { HEAPU8 } = getMemory(this);
2294
+ const wasi = _wasi.get(this);
2295
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
2296
+ if (validateFstFlagsOrReturn(fst_flags)) {
2297
+ return 28 /* WasiErrno.EINVAL */;
2298
+ }
2299
+ const fs = getFs(this);
2300
+ const resolvedPath = resolvePathSync(fs, fileDescriptor, decoder.decode(unsharedSlice(HEAPU8, path, path + path_len)), flags);
2301
+ if ((fst_flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
2302
+ atim = BigInt(Date.now() * 1000000);
2303
+ }
2304
+ if ((fst_flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
2305
+ mtim = BigInt(Date.now() * 1000000);
2306
+ }
2307
+ fs.utimesSync(resolvedPath, Number(atim), Number(mtim));
2308
+ return 0 /* WasiErrno.ESUCCESS */;
2309
+ }, async function path_filestat_set_times(fd, flags, path, path_len, atim, mtim, fst_flags) {
2310
+ path = Number(path);
2311
+ path_len = Number(path_len);
2312
+ if (path === 0)
2313
+ return 28 /* WasiErrno.EINVAL */;
2314
+ const { HEAPU8 } = getMemory(this);
2315
+ const wasi = _wasi.get(this);
2316
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
2317
+ if (validateFstFlagsOrReturn(fst_flags)) {
2318
+ return 28 /* WasiErrno.EINVAL */;
2319
+ }
2320
+ const fs = getFs(this);
2321
+ const resolvedPath = await resolvePathAsync(fs, fileDescriptor, decoder.decode(unsharedSlice(HEAPU8, path, path + path_len)), flags);
2322
+ if ((fst_flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
2323
+ atim = BigInt(Date.now() * 1000000);
2324
+ }
2325
+ if ((fst_flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
2326
+ mtim = BigInt(Date.now() * 1000000);
2327
+ }
2328
+ await fs.promises.utimes(resolvedPath, Number(atim), Number(mtim));
2329
+ return 0 /* WasiErrno.ESUCCESS */;
2330
+ }, ['i32', 'i32', 'i32', 'i32', 'i64', 'i64', 'i32'], ['i32']);
2331
+ defineImport('path_link', function path_link(old_fd, old_flags, old_path, old_path_len, new_fd, new_path, new_path_len) {
2332
+ old_path = Number(old_path);
2333
+ old_path_len = Number(old_path_len);
2334
+ new_path = Number(new_path);
2335
+ new_path_len = Number(new_path_len);
2336
+ if (old_path === 0 || new_path === 0) {
2337
+ return 28 /* WasiErrno.EINVAL */;
2338
+ }
2339
+ const wasi = _wasi.get(this);
2340
+ let oldWrap;
2341
+ let newWrap;
2342
+ if (old_fd === new_fd) {
2343
+ oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE | WasiRights.PATH_LINK_TARGET, BigInt(0));
2344
+ }
2345
+ else {
2346
+ oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
2347
+ newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
2348
+ }
2349
+ const { HEAPU8 } = getMemory(this);
2350
+ const fs = getFs(this);
2351
+ const resolvedOldPath = resolvePathSync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
2352
+ const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
2353
+ fs.linkSync(resolvedOldPath, resolvedNewPath);
2354
+ return 0 /* WasiErrno.ESUCCESS */;
2355
+ }, async function path_link(old_fd, old_flags, old_path, old_path_len, new_fd, new_path, new_path_len) {
2356
+ old_path = Number(old_path);
2357
+ old_path_len = Number(old_path_len);
2358
+ new_path = Number(new_path);
2359
+ new_path_len = Number(new_path_len);
2360
+ if (old_path === 0 || new_path === 0) {
2361
+ return 28 /* WasiErrno.EINVAL */;
2362
+ }
2363
+ const wasi = _wasi.get(this);
2364
+ let oldWrap;
2365
+ let newWrap;
2366
+ if (old_fd === new_fd) {
2367
+ oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE | WasiRights.PATH_LINK_TARGET, BigInt(0));
2368
+ }
2369
+ else {
2370
+ oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
2371
+ newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
2372
+ }
2373
+ const { HEAPU8 } = getMemory(this);
2374
+ const fs = getFs(this);
2375
+ const resolvedOldPath = await resolvePathAsync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
2376
+ const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
2377
+ await fs.promises.link(resolvedOldPath, resolvedNewPath);
2378
+ return 0 /* WasiErrno.ESUCCESS */;
2379
+ }, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
2380
+ function pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags) {
2381
+ const read = (fs_rights_base & (WasiRights.FD_READ |
2382
+ WasiRights.FD_READDIR)) !== BigInt(0);
2383
+ const write = (fs_rights_base & (WasiRights.FD_DATASYNC |
2384
+ WasiRights.FD_WRITE |
2385
+ WasiRights.FD_ALLOCATE |
2386
+ WasiRights.FD_FILESTAT_SET_SIZE)) !== BigInt(0);
2387
+ let flags = write ? read ? 2 /* FileControlFlag.O_RDWR */ : 1 /* FileControlFlag.O_WRONLY */ : 0 /* FileControlFlag.O_RDONLY */;
2388
+ let needed_base = WasiRights.PATH_OPEN;
2389
+ let needed_inheriting = fs_rights_base | fs_rights_inheriting;
2390
+ if ((o_flags & 1 /* WasiFileControlFlag.O_CREAT */) !== 0) {
2391
+ flags |= 64 /* FileControlFlag.O_CREAT */;
2392
+ needed_base |= WasiRights.PATH_CREATE_FILE;
2393
+ }
2394
+ if ((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0) {
2395
+ flags |= 65536 /* FileControlFlag.O_DIRECTORY */;
2396
+ }
2397
+ if ((o_flags & 4 /* WasiFileControlFlag.O_EXCL */) !== 0) {
2398
+ flags |= 128 /* FileControlFlag.O_EXCL */;
2399
+ }
2400
+ if ((o_flags & 8 /* WasiFileControlFlag.O_TRUNC */) !== 0) {
2401
+ flags |= 512 /* FileControlFlag.O_TRUNC */;
2402
+ needed_base |= WasiRights.PATH_FILESTAT_SET_SIZE;
2403
+ }
2404
+ if ((fs_flags & 1 /* WasiFdFlag.APPEND */) !== 0) {
2405
+ flags |= 1024 /* FileControlFlag.O_APPEND */;
2406
+ }
2407
+ if ((fs_flags & 2 /* WasiFdFlag.DSYNC */) !== 0) {
2408
+ // flags |= FileControlFlag.O_DSYNC;
2409
+ needed_inheriting |= WasiRights.FD_DATASYNC;
2410
+ }
2411
+ if ((fs_flags & 4 /* WasiFdFlag.NONBLOCK */) !== 0) {
2412
+ flags |= 2048 /* FileControlFlag.O_NONBLOCK */;
2413
+ }
2414
+ if ((fs_flags & 8 /* WasiFdFlag.RSYNC */) !== 0) {
2415
+ flags |= 1052672 /* FileControlFlag.O_SYNC */;
2416
+ needed_inheriting |= WasiRights.FD_SYNC;
2417
+ }
2418
+ if ((fs_flags & 16 /* WasiFdFlag.SYNC */) !== 0) {
2419
+ flags |= 1052672 /* FileControlFlag.O_SYNC */;
2420
+ needed_inheriting |= WasiRights.FD_SYNC;
2421
+ }
2422
+ if (write && (flags & (1024 /* FileControlFlag.O_APPEND */ | 512 /* FileControlFlag.O_TRUNC */)) === 0) {
2423
+ needed_inheriting |= WasiRights.FD_SEEK;
2424
+ }
2425
+ return { flags, needed_base, needed_inheriting };
2426
+ }
2427
+ defineImport('path_open', function path_open(dirfd, dirflags, path, path_len, o_flags, fs_rights_base, fs_rights_inheriting, fs_flags, fd) {
2428
+ path = Number(path);
2429
+ fd = Number(fd);
2430
+ if (path === 0 || fd === 0) {
2431
+ return 28 /* WasiErrno.EINVAL */;
2432
+ }
2433
+ path_len = Number(path_len);
2434
+ fs_rights_base = BigInt(fs_rights_base);
2435
+ fs_rights_inheriting = BigInt(fs_rights_inheriting);
2436
+ const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
2437
+ const wasi = _wasi.get(this);
2438
+ const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
2439
+ const memory = getMemory(this);
2440
+ const HEAPU8 = memory.HEAPU8;
2441
+ const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2442
+ const fs = getFs(this);
2443
+ const resolved_path = resolvePathSync(fs, fileDescriptor, pathString, dirflags);
2444
+ const r = fs.openSync(resolved_path, _isWin32Flags ? _toWinOpenFlags(flagsRes) : flagsRes, 0o666);
2445
+ const filetype = wasi.fds.getFileTypeByFd(r);
2446
+ if ((filetype !== 3 /* WasiFileType.DIRECTORY */) &&
2447
+ ((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0 ||
2448
+ (resolved_path.endsWith('/')))) {
2449
+ return 54 /* WasiErrno.ENOTDIR */;
2450
+ }
2451
+ const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r, flagsRes, filetype);
2452
+ const wrap = wasi.fds.insert(r, resolved_path, resolved_path, filetype, fs_rights_base & max_base, fs_rights_inheriting & max_inheriting, 0);
2453
+ const stat = fs.fstatSync(r, { bigint: true });
2454
+ if (stat.isFile()) {
2455
+ wrap.size = stat.size;
2456
+ if ((flagsRes & 1024 /* FileControlFlag.O_APPEND */) !== 0) {
2457
+ wrap.pos = stat.size;
2458
+ }
2459
+ }
2460
+ const view = memory.view;
2461
+ view.setInt32(fd, wrap.id, true);
2462
+ return 0 /* WasiErrno.ESUCCESS */;
2463
+ }, async function path_open(dirfd, dirflags, path, path_len, o_flags, fs_rights_base, fs_rights_inheriting, fs_flags, fd) {
2464
+ path = Number(path);
2465
+ fd = Number(fd);
2466
+ if (path === 0 || fd === 0) {
2467
+ return 28 /* WasiErrno.EINVAL */;
2468
+ }
2469
+ path_len = Number(path_len);
2470
+ fs_rights_base = BigInt(fs_rights_base);
2471
+ fs_rights_inheriting = BigInt(fs_rights_inheriting);
2472
+ const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
2473
+ const wasi = _wasi.get(this);
2474
+ const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
2475
+ const memory = getMemory(this);
2476
+ const HEAPU8 = memory.HEAPU8;
2477
+ const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2478
+ const fs = getFs(this);
2479
+ const resolved_path = await resolvePathAsync(fs, fileDescriptor, pathString, dirflags);
2480
+ const r = await fs.promises.open(resolved_path, _isWin32Flags ? _toWinOpenFlags(flagsRes) : flagsRes, 0o666);
2481
+ const filetype = await wasi.fds.getFileTypeByFd(r);
2482
+ if ((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0 && filetype !== 3 /* WasiFileType.DIRECTORY */) {
2483
+ return 54 /* WasiErrno.ENOTDIR */;
2484
+ }
2485
+ const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r.fd, flagsRes, filetype);
2486
+ const wrap = wasi.fds.insert(r, resolved_path, resolved_path, filetype, fs_rights_base & max_base, fs_rights_inheriting & max_inheriting, 0);
2487
+ const stat = await r.stat({ bigint: true });
2488
+ if (stat.isFile()) {
2489
+ wrap.size = stat.size;
2490
+ if ((flagsRes & 1024 /* FileControlFlag.O_APPEND */) !== 0) {
2491
+ wrap.pos = stat.size;
2492
+ }
2493
+ }
2494
+ const view = memory.view;
2495
+ view.setInt32(fd, wrap.id, true);
2496
+ return 0 /* WasiErrno.ESUCCESS */;
2497
+ }, ['i32', 'i32', 'i32', 'i32', 'i32', 'i64', 'i64', 'i32', 'i32'], ['i32']);
2498
+ defineImport('path_readlink', function path_readlink(fd, path, path_len, buf, buf_len, bufused) {
2499
+ path = Number(path);
2500
+ path_len = Number(path_len);
2501
+ buf = Number(buf);
2502
+ buf_len = Number(buf_len);
2503
+ bufused = Number(bufused);
2504
+ if (path === 0 || buf === 0 || bufused === 0) {
2505
+ return 28 /* WasiErrno.EINVAL */;
2506
+ }
2507
+ const { HEAPU8, view } = getMemory(this);
2508
+ const wasi = _wasi.get(this);
2509
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
2510
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2511
+ pathString = resolve(fileDescriptor.realPath, pathString);
2512
+ const fs = getFs(this);
2513
+ const link = fs.readlinkSync(pathString);
2514
+ const linkData = encoder.encode(link);
2515
+ const len = Math.min(linkData.length, buf_len);
2516
+ if (len >= buf_len)
2517
+ return 42 /* WasiErrno.ENOBUFS */;
2518
+ HEAPU8.set(linkData.subarray(0, len), buf);
2519
+ HEAPU8[buf + len] = 0;
2520
+ view.setUint32(bufused, len, true);
2521
+ return 0 /* WasiErrno.ESUCCESS */;
2522
+ }, async function path_readlink(fd, path, path_len, buf, buf_len, bufused) {
2523
+ path = Number(path);
2524
+ path_len = Number(path_len);
2525
+ buf = Number(buf);
2526
+ buf_len = Number(buf_len);
2527
+ bufused = Number(bufused);
2528
+ if (path === 0 || buf === 0 || bufused === 0) {
2529
+ return 28 /* WasiErrno.EINVAL */;
2530
+ }
2531
+ const { HEAPU8, view } = getMemory(this);
2532
+ const wasi = _wasi.get(this);
2533
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
2534
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2535
+ pathString = resolve(fileDescriptor.realPath, pathString);
2536
+ const fs = getFs(this);
2537
+ const link = await fs.promises.readlink(pathString);
2538
+ const linkData = encoder.encode(link);
2539
+ const len = Math.min(linkData.length, buf_len);
2540
+ if (len >= buf_len)
2541
+ return 42 /* WasiErrno.ENOBUFS */;
2542
+ HEAPU8.set(linkData.subarray(0, len), buf);
2543
+ HEAPU8[buf + len] = 0;
2544
+ view.setUint32(bufused, len, true);
2545
+ return 0 /* WasiErrno.ESUCCESS */;
2546
+ }, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
2547
+ defineImport('path_remove_directory', function path_remove_directory(fd, path, path_len) {
2548
+ path = Number(path);
2549
+ path_len = Number(path_len);
2550
+ if (path === 0) {
2551
+ return 28 /* WasiErrno.EINVAL */;
2552
+ }
2553
+ const { HEAPU8 } = getMemory(this);
2554
+ const wasi = _wasi.get(this);
2555
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
2556
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2557
+ pathString = resolve(fileDescriptor.realPath, pathString);
2558
+ const fs = getFs(this);
2559
+ fs.rmdirSync(pathString);
2560
+ return 0 /* WasiErrno.ESUCCESS */;
2561
+ }, async function path_remove_directory(fd, path, path_len) {
2562
+ path = Number(path);
2563
+ path_len = Number(path_len);
2564
+ if (path === 0) {
2565
+ return 28 /* WasiErrno.EINVAL */;
2566
+ }
2567
+ const { HEAPU8 } = getMemory(this);
2568
+ const wasi = _wasi.get(this);
2569
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
2570
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2571
+ pathString = resolve(fileDescriptor.realPath, pathString);
2572
+ const fs = getFs(this);
2573
+ await fs.promises.rmdir(pathString);
2574
+ return 0 /* WasiErrno.ESUCCESS */;
2575
+ }, ['i32', 'i32', 'i32'], ['i32']);
2576
+ defineImport('path_rename', function path_rename(old_fd, old_path, old_path_len, new_fd, new_path, new_path_len) {
2577
+ old_path = Number(old_path);
2578
+ old_path_len = Number(old_path_len);
2579
+ new_path = Number(new_path);
2580
+ new_path_len = Number(new_path_len);
2581
+ if (old_path === 0 || new_path === 0) {
2582
+ return 28 /* WasiErrno.EINVAL */;
2583
+ }
2584
+ const wasi = _wasi.get(this);
2585
+ let oldWrap;
2586
+ let newWrap;
2587
+ if (old_fd === new_fd) {
2588
+ oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE | WasiRights.PATH_RENAME_TARGET, BigInt(0));
2589
+ }
2590
+ else {
2591
+ oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
2592
+ newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
2593
+ }
2594
+ const { HEAPU8 } = getMemory(this);
2595
+ const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
2596
+ const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
2597
+ const fs = getFs(this);
2598
+ fs.renameSync(resolvedOldPath, resolvedNewPath);
2599
+ return 0 /* WasiErrno.ESUCCESS */;
2600
+ }, async function path_rename(old_fd, old_path, old_path_len, new_fd, new_path, new_path_len) {
2601
+ old_path = Number(old_path);
2602
+ old_path_len = Number(old_path_len);
2603
+ new_path = Number(new_path);
2604
+ new_path_len = Number(new_path_len);
2605
+ if (old_path === 0 || new_path === 0) {
2606
+ return 28 /* WasiErrno.EINVAL */;
2607
+ }
2608
+ const wasi = _wasi.get(this);
2609
+ let oldWrap;
2610
+ let newWrap;
2611
+ if (old_fd === new_fd) {
2612
+ oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE | WasiRights.PATH_RENAME_TARGET, BigInt(0));
2613
+ }
2614
+ else {
2615
+ oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
2616
+ newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
2617
+ }
2618
+ const { HEAPU8 } = getMemory(this);
2619
+ const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
2620
+ const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
2621
+ const fs = getFs(this);
2622
+ await fs.promises.rename(resolvedOldPath, resolvedNewPath);
2623
+ return 0 /* WasiErrno.ESUCCESS */;
2624
+ }, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
2625
+ defineImport('path_symlink', function path_symlink(old_path, old_path_len, fd, new_path, new_path_len) {
2626
+ old_path = Number(old_path);
2627
+ old_path_len = Number(old_path_len);
2628
+ new_path = Number(new_path);
2629
+ new_path_len = Number(new_path_len);
2630
+ if (old_path === 0 || new_path === 0) {
2631
+ return 28 /* WasiErrno.EINVAL */;
2632
+ }
2633
+ const { HEAPU8 } = getMemory(this);
2634
+ const wasi = _wasi.get(this);
2635
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
2636
+ const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
2637
+ if (oldPath.length > 0 && oldPath[0] === '/') {
2638
+ return 63 /* WasiErrno.EPERM */;
2639
+ }
2640
+ let newPath = decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len));
2641
+ newPath = resolve(fileDescriptor.realPath, newPath);
2642
+ const fs = getFs(this);
2643
+ fs.symlinkSync(oldPath, newPath);
2644
+ return 0 /* WasiErrno.ESUCCESS */;
2645
+ }, async function path_symlink(old_path, old_path_len, fd, new_path, new_path_len) {
2646
+ old_path = Number(old_path);
2647
+ old_path_len = Number(old_path_len);
2648
+ new_path = Number(new_path);
2649
+ new_path_len = Number(new_path_len);
2650
+ if (old_path === 0 || new_path === 0) {
2651
+ return 28 /* WasiErrno.EINVAL */;
2652
+ }
2653
+ const { HEAPU8 } = getMemory(this);
2654
+ const wasi = _wasi.get(this);
2655
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
2656
+ const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
2657
+ let newPath = decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len));
2658
+ newPath = resolve(fileDescriptor.realPath, newPath);
2659
+ const fs = getFs(this);
2660
+ await fs.promises.symlink(oldPath, newPath);
2661
+ return 0 /* WasiErrno.ESUCCESS */;
2662
+ }, ['i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
2663
+ defineImport('path_unlink_file', function path_unlink_file(fd, path, path_len) {
2664
+ path = Number(path);
2665
+ path_len = Number(path_len);
2666
+ if (path === 0) {
2667
+ return 28 /* WasiErrno.EINVAL */;
2668
+ }
2669
+ const { HEAPU8 } = getMemory(this);
2670
+ const wasi = _wasi.get(this);
2671
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
2672
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2673
+ pathString = resolve(fileDescriptor.realPath, pathString);
2674
+ const fs = getFs(this);
2675
+ fs.unlinkSync(pathString);
2676
+ return 0 /* WasiErrno.ESUCCESS */;
2677
+ }, async function path_unlink_file(fd, path, path_len) {
2678
+ path = Number(path);
2679
+ path_len = Number(path_len);
2680
+ if (path === 0) {
2681
+ return 28 /* WasiErrno.EINVAL */;
2682
+ }
2683
+ const { HEAPU8 } = getMemory(this);
2684
+ const wasi = _wasi.get(this);
2685
+ const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
2686
+ let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
2687
+ pathString = resolve(fileDescriptor.realPath, pathString);
2688
+ const fs = getFs(this);
2689
+ await fs.promises.unlink(pathString);
2690
+ return 0 /* WasiErrno.ESUCCESS */;
2691
+ }, ['i32', 'i32', 'i32'], ['i32']);
2692
+ this._setMemory = function setMemory(m) {
2693
+ if (!(m instanceof _WebAssembly.Memory)) {
2694
+ throw new TypeError('"instance.exports.memory" property must be a WebAssembly.Memory');
2695
+ }
2696
+ _memory.set(_this, extendMemory(m));
2697
+ };
2698
+ }
2699
+ static createSync(args, env, preopens, stdio, fs, print, printErr) {
2700
+ const fds = new SyncTable({
2701
+ size: 3,
2702
+ in: stdio[0],
2703
+ out: stdio[1],
2704
+ err: stdio[2],
2705
+ fs,
2706
+ print,
2707
+ printErr
2708
+ });
2709
+ const _this = new WASI$1(args, env, fds, false, fs);
2710
+ if (preopens.length > 0) {
2711
+ for (let i = 0; i < preopens.length; ++i) {
2712
+ const realPath = fs.realpathSync(preopens[i].realPath, 'utf8');
2713
+ const fd = fs.openSync(realPath, 'r', 0o666);
2714
+ fds.insertPreopen(fd, preopens[i].mappedPath, realPath);
2715
+ }
2716
+ }
2717
+ return _this;
2718
+ }
2719
+ static async createAsync(args, env, preopens, stdio, fs, print, printErr, asyncify) {
2720
+ const fds = new AsyncTable({
2721
+ size: 3,
2722
+ in: stdio[0],
2723
+ out: stdio[1],
2724
+ err: stdio[2],
2725
+ print,
2726
+ printErr
2727
+ });
2728
+ const _this = new WASI$1(args, env, fds, true, fs, asyncify);
2729
+ if (preopens.length > 0) {
2730
+ for (let i = 0; i < preopens.length; ++i) {
2731
+ const entry = preopens[i];
2732
+ const realPath = await fs.promises.realpath(entry.realPath);
2733
+ const fd = await fs.promises.open(realPath, 'r', 0o666);
2734
+ await fds.insertPreopen(fd, entry.mappedPath, realPath);
2735
+ }
2736
+ }
2737
+ return _this;
2738
+ }
2739
+ }
2740
+
2741
+ // eslint-disable-next-line spaced-comment
2742
+ const kEmptyObject = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.create(null));
2743
+ const kExitCode = Symbol('kExitCode');
2744
+ const kSetMemory = Symbol('kSetMemory');
2745
+ const kStarted = Symbol('kStarted');
2746
+ const kInstance = Symbol('kInstance');
2747
+ const kBindingName = Symbol('kBindingName');
2748
+ function validateOptions(options) {
2749
+ var _a;
2750
+ validateObject(options, 'options');
2751
+ let _WASI;
2752
+ if (options.version !== undefined) {
2753
+ validateString(options.version, 'options.version');
2754
+ switch (options.version) {
2755
+ case 'unstable':
2756
+ _WASI = WASI$1;
2757
+ this[kBindingName] = 'wasi_unstable';
2758
+ break;
2759
+ case 'preview1':
2760
+ _WASI = WASI$1;
2761
+ this[kBindingName] = 'wasi_snapshot_preview1';
2762
+ break;
2763
+ default:
2764
+ throw new TypeError(`unsupported WASI version "${options.version}"`);
2765
+ }
2766
+ }
2767
+ else {
2768
+ _WASI = WASI$1;
2769
+ this[kBindingName] = 'wasi_snapshot_preview1';
2770
+ }
2771
+ if (options.args !== undefined) {
2772
+ validateArray(options.args, 'options.args');
2773
+ }
2774
+ const args = ((_a = options.args) !== null && _a !== void 0 ? _a : []).map(String);
2775
+ const env = [];
2776
+ if (options.env !== undefined) {
2777
+ validateObject(options.env, 'options.env');
2778
+ Object.entries(options.env).forEach(({ 0: key, 1: value }) => {
2779
+ if (value !== undefined) {
2780
+ env.push(`${key}=${value}`);
2781
+ }
2782
+ });
2783
+ }
2784
+ const preopens = [];
2785
+ if (options.preopens !== undefined) {
2786
+ validateObject(options.preopens, 'options.preopens');
2787
+ Object.entries(options.preopens).forEach(({ 0: key, 1: value }) => preopens.push({ mappedPath: String(key), realPath: String(value) }));
2788
+ }
2789
+ if (preopens.length > 0) {
2790
+ if (options.fs === undefined) {
2791
+ throw new Error('filesystem is disabled, can not preopen directory');
2792
+ }
2793
+ try {
2794
+ validateObject(options.fs, 'options.fs');
2795
+ }
2796
+ catch (_) {
2797
+ throw new TypeError('Node.js fs like implementation is not provided');
2798
+ }
2799
+ }
2800
+ // if (options.filesystem !== undefined) {
2801
+ // validateObject(options.filesystem, 'options.filesystem')
2802
+ // validateString(options.filesystem.type, 'options.filesystem.type')
2803
+ // if (options.filesystem.type !== 'memfs' && options.filesystem.type !== 'file-system-access-api') {
2804
+ // throw new Error(`Filesystem type ${(options.filesystem as any).type as string} is not supported, only "memfs" and "file-system-access-api" is supported currently`)
2805
+ // }
2806
+ // try {
2807
+ // validateObject(options.filesystem.fs, 'options.filesystem.fs')
2808
+ // } catch (_) {
2809
+ // throw new Error('Node.js fs like implementation is not provided')
2810
+ // }
2811
+ // }
2812
+ if (options.print !== undefined)
2813
+ validateFunction(options.print, 'options.print');
2814
+ if (options.printErr !== undefined)
2815
+ validateFunction(options.printErr, 'options.printErr');
2816
+ if (options.returnOnExit !== undefined) {
2817
+ validateBoolean(options.returnOnExit, 'options.returnOnExit');
2818
+ }
2819
+ // const { stdin = 0, stdout = 1, stderr = 2 } = options
2820
+ // validateInt32(stdin, 'options.stdin', 0)
2821
+ // validateInt32(stdout, 'options.stdout', 0)
2822
+ // validateInt32(stderr, 'options.stderr', 0)
2823
+ // const stdio = [stdin, stdout, stderr] as const
2824
+ const stdio = [0, 1, 2];
2825
+ return {
2826
+ args,
2827
+ env,
2828
+ preopens,
2829
+ stdio,
2830
+ _WASI
2831
+ };
2832
+ }
2833
+ function initWASI(setMemory, wrap) {
2834
+ this[kSetMemory] = setMemory;
2835
+ this.wasiImport = wrap;
2836
+ this[kStarted] = false;
2837
+ this[kExitCode] = 0;
2838
+ this[kInstance] = undefined;
2839
+ }
2840
+ /** @public */
2841
+ class WASI {
2842
+ constructor(options = kEmptyObject) {
2843
+ const { args, env, preopens, stdio, _WASI } = validateOptions.call(this, options);
2844
+ const wrap = _WASI.createSync(args, env, preopens, stdio, options.fs, options.print, options.printErr);
2845
+ const setMemory = wrap._setMemory;
2846
+ delete wrap._setMemory;
2847
+ initWASI.call(this, setMemory, wrap);
2848
+ if (options.returnOnExit) {
2849
+ wrap.proc_exit = wasiReturnOnProcExit.bind(this);
2850
+ }
2851
+ }
2852
+ finalizeBindings(instance, _a) {
2853
+ var _b;
2854
+ var { memory = (_b = instance === null || instance === void 0 ? void 0 : instance.exports) === null || _b === void 0 ? void 0 : _b.memory } = _a === void 0 ? {} : _a;
2855
+ if (this[kStarted]) {
2856
+ throw new Error('WASI instance has already started');
2857
+ }
2858
+ validateObject(instance, 'instance');
2859
+ validateObject(instance.exports, 'instance.exports');
2860
+ this[kSetMemory](memory);
2861
+ this[kInstance] = instance;
2862
+ this[kStarted] = true;
2863
+ }
2864
+ // Must not export _initialize, must export _start
2865
+ start(instance) {
2866
+ this.finalizeBindings(instance);
2867
+ const { _start, _initialize } = this[kInstance].exports;
2868
+ validateFunction(_start, 'instance.exports._start');
2869
+ validateUndefined(_initialize, 'instance.exports._initialize');
2870
+ let ret;
2871
+ try {
2872
+ ret = _start();
2873
+ }
2874
+ catch (err) {
2875
+ if (err !== kExitCode) {
2876
+ throw err;
2877
+ }
2878
+ }
2879
+ if (ret instanceof Promise) {
2880
+ return ret.then(() => this[kExitCode], (err) => {
2881
+ if (err !== kExitCode) {
2882
+ throw err;
2883
+ }
2884
+ return this[kExitCode];
2885
+ });
2886
+ }
2887
+ return this[kExitCode];
2888
+ }
2889
+ // Must not export _start, may optionally export _initialize
2890
+ initialize(instance) {
2891
+ this.finalizeBindings(instance);
2892
+ const { _start, _initialize } = this[kInstance].exports;
2893
+ validateUndefined(_start, 'instance.exports._start');
2894
+ if (_initialize !== undefined) {
2895
+ validateFunction(_initialize, 'instance.exports._initialize');
2896
+ return _initialize();
2897
+ }
2898
+ }
2899
+ getImportObject() {
2900
+ return { [this[kBindingName]]: this.wasiImport };
2901
+ }
2902
+ }
2903
+ function wasiReturnOnProcExit(rval) {
2904
+ this[kExitCode] = rval;
2905
+ // eslint-disable-next-line @typescript-eslint/no-throw-literal
2906
+ throw kExitCode;
2907
+ }
2908
+ /** @public */
2909
+ async function createAsyncWASI(options = kEmptyObject) {
2910
+ const _this = Object.create(WASI.prototype);
2911
+ const { args, env, preopens, stdio, _WASI } = validateOptions.call(_this, options);
2912
+ if (options.asyncify !== undefined) {
2913
+ validateObject(options.asyncify, 'options.asyncify');
2914
+ validateFunction(options.asyncify.wrapImportFunction, 'options.asyncify.wrapImportFunction');
2915
+ }
2916
+ const wrap = await _WASI.createAsync(args, env, preopens, stdio, options.fs, options.print, options.printErr, options.asyncify);
2917
+ const setMemory = wrap._setMemory;
2918
+ delete wrap._setMemory;
2919
+ initWASI.call(_this, setMemory, wrap);
2920
+ if (options.returnOnExit) {
2921
+ wrap.proc_exit = wasiReturnOnProcExit.bind(_this);
2922
+ }
2923
+ return _this;
2924
+ }
2925
+
2926
+ exports.Asyncify = Asyncify;
2927
+ exports.Memory = Memory;
2928
+ exports.WASI = WASI;
2929
+ exports.WebAssemblyMemory = WebAssemblyMemory;
2930
+ exports.asyncifyLoad = asyncifyLoad;
2931
+ exports.asyncifyLoadSync = asyncifyLoadSync;
2932
+ exports.createAsyncWASI = createAsyncWASI;
2933
+ exports.extendMemory = extendMemory;
2934
+ exports.load = load;
2935
+ exports.loadSync = loadSync;
2936
+ exports.wrapAsyncExport = wrapAsyncExport;
2937
+ exports.wrapAsyncImport = wrapAsyncImport;
2938
+ exports.wrapExports = wrapExports;
2939
+
2940
+ Object.defineProperty(exports, '__esModule', { value: true });
2941
+
2942
+ }));