@cmmd-center/forge 0.9.3 → 0.9.4

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 (461) hide show
  1. package/dist/{BunHttpServer-Dc5XijQF.mjs → BunHttpServer-BgNCpQzV.mjs} +2 -2
  2. package/dist/{BunHttpServer-Cuya1Zon.cjs → BunHttpServer-DOAuw4Iq.cjs} +2 -2
  3. package/dist/{BunPTY-z9OKvyBo.cjs → BunPTY-2icf7sRj.cjs} +2 -2
  4. package/dist/{BunPTY-CfS5zDoQ.mjs → BunPTY-D-Klry5N.mjs} +2 -2
  5. package/dist/{BunServices-eq_c-3x1.mjs → BunServices-ChM4mYH9.mjs} +1 -1
  6. package/dist/{BunServices-khEuvPaA.cjs → BunServices-CiNXNzHD.cjs} +1 -1
  7. package/dist/Mime-BITO-E1U.mjs +1395 -0
  8. package/dist/Mime-CyHbecis.cjs +1400 -0
  9. package/dist/{Mime-B75_d9aw.mjs → NodeHttpServer-C_wePPV0.mjs} +614 -1456
  10. package/dist/{Mime-aSilaQX9.cjs → NodeHttpServer-D_ismXpd.cjs} +617 -1466
  11. package/dist/{NodePTY-ChjVFpUH.mjs → NodePTY-BMUFdM93.mjs} +2 -2
  12. package/dist/{NodePTY-BOaJi0JA.cjs → NodePTY-cb7HIasY.cjs} +2 -2
  13. package/dist/{NodeSqliteClient-GlgGqc8V.mjs → NodeSqliteClient-OdI1TawL.mjs} +1 -1
  14. package/dist/{NodeSqliteClient-Vunn3aFN.cjs → NodeSqliteClient-SsUCk9mA.cjs} +1 -1
  15. package/dist/{PTY-rn2kGjhB.mjs → PTY-CBkE5akF.mjs} +1 -1
  16. package/dist/{PTY-D5OpMK9s.cjs → PTY-U3JQnLXS.cjs} +1 -1
  17. package/dist/{SqliteClient-Bpkno4Ob.cjs → SqliteClient-CdAhI4lb.cjs} +1 -1
  18. package/dist/{SqliteClient-DYQAvreq.mjs → SqliteClient-aoOb51gB.mjs} +1 -1
  19. package/dist/bin.cjs +14348 -10877
  20. package/dist/bin.mjs +14530 -11057
  21. package/dist/client/apple-touch-icon.png +0 -0
  22. package/dist/client/apple-touch-icon.png.publish-bak +0 -0
  23. package/dist/client/assets/CanvasPanel-BIN3OTEQ.js +441 -0
  24. package/dist/client/assets/CompositeItem-UKxcvvWv.js +2 -0
  25. package/dist/client/assets/DiffPanel-CeuRaSj1.js +64 -0
  26. package/dist/client/assets/DiffPanel.logic-D5i9QswQ.js +21 -0
  27. package/dist/client/assets/DiffPanelShell-W5nEVL52.js +2531 -0
  28. package/dist/client/assets/DiffWorkerPoolProvider-D87CO5TY.js +73 -0
  29. package/dist/client/assets/PullRequestCodePanel-DAmHwtY9.js +5 -0
  30. package/dist/client/assets/Stream-CToP6xzI.js +15 -0
  31. package/dist/client/assets/Virtualizer-CnwVHiy3.js +2 -0
  32. package/dist/client/assets/__vite-browser-external-DkEyUtaV.js +2 -0
  33. package/dist/client/assets/abap-kWSt4ETq.js +2 -0
  34. package/dist/client/assets/actionscript-3-DUMfZd56.js +2 -0
  35. package/dist/client/assets/ada-B5ZVVI6u.js +2 -0
  36. package/dist/client/assets/andromeeda-DXFdNco6.js +2 -0
  37. package/dist/client/assets/andromeeda-DwmQuk--.js +2 -0
  38. package/dist/client/assets/angular-html-BHUTdQ2k.js +2 -0
  39. package/dist/client/assets/angular-ts-BSGCbJ0j.js +2 -0
  40. package/dist/client/assets/apache-Cu40O3Ol.js +2 -0
  41. package/dist/client/assets/apex-DMPEjfSG.js +2 -0
  42. package/dist/client/assets/apl-BoCi4WkG.js +2 -0
  43. package/dist/client/assets/applescript-mUd3mpyF.js +2 -0
  44. package/dist/client/assets/ara-LhQXZmm_.js +2 -0
  45. package/dist/client/assets/asciidoc-BhTPoeH5.js +2 -0
  46. package/dist/client/assets/asm-BGGwX2ZL.js +2 -0
  47. package/dist/client/assets/astro-BMi5lGMm.js +2 -0
  48. package/dist/client/assets/atomRegistry-Bq5Y4LP1.js +3 -0
  49. package/dist/client/assets/aurora-x-CLgz8jpO.js +2 -0
  50. package/dist/client/assets/aurora-x-DY4EgSB_.js +2 -0
  51. package/dist/client/assets/awk-emAjNmqG.js +2 -0
  52. package/dist/client/assets/ayu-dark-BOsBaLmt.js +2 -0
  53. package/dist/client/assets/ayu-dark-Dm87GVDE.js +2 -0
  54. package/dist/client/assets/ayu-light-CVzS2PQZ.js +2 -0
  55. package/dist/client/assets/ayu-light-nGNJ-WDB.js +2 -0
  56. package/dist/client/assets/ayu-mirage-CionIqJ2.js +2 -0
  57. package/dist/client/assets/ayu-mirage-wUDx3klU.js +2 -0
  58. package/dist/client/assets/ballerina-Zz4P1PCo.js +2 -0
  59. package/dist/client/assets/bat-CojohPr3.js +2 -0
  60. package/dist/client/assets/beancount-DIrDFIbZ.js +2 -0
  61. package/dist/client/assets/berry-BktKISqk.js +2 -0
  62. package/dist/client/assets/bibtex-QuZiL8vO.js +2 -0
  63. package/dist/client/assets/bicep-BBqBjbA3.js +2 -0
  64. package/dist/client/assets/bird2-FrGIamnO.js +2 -0
  65. package/dist/client/assets/blade-CUGHtpnt.js +2 -0
  66. package/dist/client/assets/bsl-Dwz0otKA.js +2 -0
  67. package/dist/client/assets/c-3r97XxSq.js +2 -0
  68. package/dist/client/assets/c3-D-fgrOzJ.js +2 -0
  69. package/dist/client/assets/cadence-53eYIqKQ.js +2 -0
  70. package/dist/client/assets/cairo-Cai_OBhL.js +2 -0
  71. package/dist/client/assets/canvasStateStore-D3R1Ldk1.js +2 -0
  72. package/dist/client/assets/catppuccin-frappe-B9ztfCCY.js +2 -0
  73. package/dist/client/assets/catppuccin-frappe-Dtq86Zt-.js +2 -0
  74. package/dist/client/assets/catppuccin-latte-D1lF_ULk.js +2 -0
  75. package/dist/client/assets/catppuccin-latte-jgmNlGoB.js +2 -0
  76. package/dist/client/assets/catppuccin-macchiato-CcX-f1yB.js +2 -0
  77. package/dist/client/assets/catppuccin-macchiato-DfuKQKcK.js +2 -0
  78. package/dist/client/assets/catppuccin-mocha-B3_lpdvM.js +2 -0
  79. package/dist/client/assets/catppuccin-mocha-DfNnOvvn.js +2 -0
  80. package/dist/client/assets/clarity-DCS2DMlE.js +2 -0
  81. package/dist/client/assets/clojure-XwHeeE37.js +2 -0
  82. package/dist/client/assets/cmake-VIYk9tbe.js +2 -0
  83. package/dist/client/assets/cmmdAuthRedirect-DLvl7JNi.js +2 -0
  84. package/dist/client/assets/cobol-IPhylbE9.js +2 -0
  85. package/dist/client/assets/codeowners-DiTXAskR.js +2 -0
  86. package/dist/client/assets/codeql-0208dEuz.js +2 -0
  87. package/dist/client/assets/coffee-BwGUpF4f.js +2 -0
  88. package/dist/client/assets/common-lisp-Bbk7xLRF.js +2 -0
  89. package/dist/client/assets/coq-CDDZdGGh.js +2 -0
  90. package/dist/client/assets/cpp-jFyTvZsm.js +2 -0
  91. package/dist/client/assets/crystal-DYkQl9zO.js +2 -0
  92. package/dist/client/assets/csharp-Dausz59m.js +2 -0
  93. package/dist/client/assets/css-jXIxCbs3.js +2 -0
  94. package/dist/client/assets/csv-e2HVQau9.js +2 -0
  95. package/dist/client/assets/cue-BMgE_xju.js +2 -0
  96. package/dist/client/assets/cypher-CA95tXqi.js +2 -0
  97. package/dist/client/assets/d-DeO2qMKQ.js +2 -0
  98. package/dist/client/assets/dark-plus-DaoBxEuI.js +2 -0
  99. package/dist/client/assets/dark-plus-hlEOAUn6.js +2 -0
  100. package/dist/client/assets/dart-_9gbW0uG.js +2 -0
  101. package/dist/client/assets/dax-BMSB_urL.js +2 -0
  102. package/dist/client/assets/desktop-CFWOIXtS.js +2 -0
  103. package/dist/client/assets/diff-K3NAzB5h.js +2 -0
  104. package/dist/client/assets/docker-BHQx5Ff2.js +2 -0
  105. package/dist/client/assets/dotenv-CkiqXLC8.js +2 -0
  106. package/dist/client/assets/dracula-C9rp4fWn.js +2 -0
  107. package/dist/client/assets/dracula-CIJxKfwh.js +2 -0
  108. package/dist/client/assets/dracula-soft-BN-taJLQ.js +2 -0
  109. package/dist/client/assets/dracula-soft-De1wWQ_v.js +2 -0
  110. package/dist/client/assets/dream-maker-BM-H3AID.js +2 -0
  111. package/dist/client/assets/edge-CVf1J8H7.js +2 -0
  112. package/dist/client/assets/elixir-DtWV_YYF.js +2 -0
  113. package/dist/client/assets/elm-BJC2NMzB.js +2 -0
  114. package/dist/client/assets/emacs-lisp-BBM_ORbk.js +2 -0
  115. package/dist/client/assets/erb-cwYn0k3w.js +2 -0
  116. package/dist/client/assets/erlang-QNS0KA0S.js +2 -0
  117. package/dist/client/assets/everforest-dark-BSYmfNnp.js +2 -0
  118. package/dist/client/assets/everforest-dark-DUW3cHBn.js +2 -0
  119. package/dist/client/assets/everforest-light-CXyS_8Pc.js +2 -0
  120. package/dist/client/assets/everforest-light-DR-OhbXr.js +2 -0
  121. package/dist/client/assets/fennel-CAUJGoSU.js +2 -0
  122. package/dist/client/assets/fish-Cgln2BIC.js +2 -0
  123. package/dist/client/assets/fluent-BFL910sE.js +2 -0
  124. package/dist/client/assets/fortran-fixed-form-GNS6k7js.js +2 -0
  125. package/dist/client/assets/fortran-free-form-DB-siuqX.js +2 -0
  126. package/dist/client/assets/fsharp-BEjSdIee.js +2 -0
  127. package/dist/client/assets/gdresource-D24f9BeL.js +2 -0
  128. package/dist/client/assets/gdscript-Bq5ZYHDh.js +2 -0
  129. package/dist/client/assets/gdshader-BWxXiThj.js +2 -0
  130. package/dist/client/assets/genie-BOcsPMcn.js +2 -0
  131. package/dist/client/assets/gherkin-pSvoetjt.js +2 -0
  132. package/dist/client/assets/git-commit-Ddcy2Rzd.js +2 -0
  133. package/dist/client/assets/git-rebase-95AHstHI.js +2 -0
  134. package/dist/client/assets/github-dark-BbHkogeI.js +2 -0
  135. package/dist/client/assets/github-dark-D1nTcH4E.js +2 -0
  136. package/dist/client/assets/github-dark-default-Cgu-j31c.js +2 -0
  137. package/dist/client/assets/github-dark-default-CwMUtNVn.js +2 -0
  138. package/dist/client/assets/github-dark-dimmed-BmSK4vhs.js +2 -0
  139. package/dist/client/assets/github-dark-dimmed-CQVfITf-.js +2 -0
  140. package/dist/client/assets/github-dark-high-contrast-8_9Rbsic.js +2 -0
  141. package/dist/client/assets/github-dark-high-contrast-BO-0858k.js +2 -0
  142. package/dist/client/assets/github-light-DWIA8Fx_.js +2 -0
  143. package/dist/client/assets/github-light-default-CR0FtjVb.js +2 -0
  144. package/dist/client/assets/github-light-default-LLPbqR-K.js +2 -0
  145. package/dist/client/assets/github-light-high-contrast-5o8qRjCb.js +2 -0
  146. package/dist/client/assets/github-light-high-contrast-C8BCDz6a.js +2 -0
  147. package/dist/client/assets/github-light-lCcn0xRl.js +2 -0
  148. package/dist/client/assets/gleam-DPm9Zc9U.js +2 -0
  149. package/dist/client/assets/glimmer-js-Cjwf-Ijv.js +2 -0
  150. package/dist/client/assets/glimmer-ts-DXnOWlZf.js +2 -0
  151. package/dist/client/assets/glsl-iXGbnqIU.js +2 -0
  152. package/dist/client/assets/gn-DEuV1her.js +2 -0
  153. package/dist/client/assets/gnuplot-CqGlKjK6.js +2 -0
  154. package/dist/client/assets/go-mptU-yl2.js +2 -0
  155. package/dist/client/assets/graphql-DJMVZQv3.js +2 -0
  156. package/dist/client/assets/groovy-CKg5KWq9.js +2 -0
  157. package/dist/client/assets/gruvbox-dark-hard-Df4rfbxN.js +2 -0
  158. package/dist/client/assets/gruvbox-dark-hard-DsK6pQOr.js +2 -0
  159. package/dist/client/assets/gruvbox-dark-medium-nlSbDtaA.js +2 -0
  160. package/dist/client/assets/gruvbox-dark-medium-zSmEeDKP.js +2 -0
  161. package/dist/client/assets/gruvbox-dark-soft-BSW4a3D0.js +2 -0
  162. package/dist/client/assets/gruvbox-dark-soft-DgI1MxVf.js +2 -0
  163. package/dist/client/assets/gruvbox-light-hard-D144A6HZ.js +2 -0
  164. package/dist/client/assets/gruvbox-light-hard-DMNoHzNU.js +2 -0
  165. package/dist/client/assets/gruvbox-light-medium-C0B0NCuj.js +2 -0
  166. package/dist/client/assets/gruvbox-light-medium-CY2MDbN0.js +2 -0
  167. package/dist/client/assets/gruvbox-light-soft-CWJ8aP9f.js +2 -0
  168. package/dist/client/assets/gruvbox-light-soft-CyPlqRD8.js +2 -0
  169. package/dist/client/assets/hack-CkGKtoya.js +2 -0
  170. package/dist/client/assets/haml-mV-E4efJ.js +2 -0
  171. package/dist/client/assets/handlebars-Da6i86YE.js +2 -0
  172. package/dist/client/assets/haskell-DFWkJmsd.js +2 -0
  173. package/dist/client/assets/haxe-DoXg9N2w.js +2 -0
  174. package/dist/client/assets/hcl-VbcvLW6X.js +2 -0
  175. package/dist/client/assets/hjson-dQ--SYg9.js +2 -0
  176. package/dist/client/assets/hlsl-DNh8NDKB.js +2 -0
  177. package/dist/client/assets/horizon-BeufL1QP.js +2 -0
  178. package/dist/client/assets/horizon-CnOil3H1.js +2 -0
  179. package/dist/client/assets/horizon-bright-BoFfNO4u.js +2 -0
  180. package/dist/client/assets/horizon-bright-CJCE-DcQ.js +2 -0
  181. package/dist/client/assets/houston-C5_OTP91.js +2 -0
  182. package/dist/client/assets/houston-jaZUvSzs.js +2 -0
  183. package/dist/client/assets/html-derivative-BOw7yS3Z.js +2 -0
  184. package/dist/client/assets/html-e1ppUAVa.js +2 -0
  185. package/dist/client/assets/html2canvas-C_LL7spC.js +6 -0
  186. package/dist/client/assets/http-DFrMFVWs.js +2 -0
  187. package/dist/client/assets/hurl-3N2UscjA.js +2 -0
  188. package/dist/client/assets/hxml-Ip0yb8dg.js +2 -0
  189. package/dist/client/assets/hy-Bg-RIaMc.js +2 -0
  190. package/dist/client/assets/imba-BjZ9NRcj.js +2 -0
  191. package/dist/client/assets/index-Dr7HwjTE.css +1 -0
  192. package/dist/client/assets/index-DyEYqQdf.js +151 -0
  193. package/dist/client/assets/index.es-piUKIQw4.js +6 -0
  194. package/dist/client/assets/ini-CXagdQO9.js +2 -0
  195. package/dist/client/assets/java-DY6ZSujp.js +2 -0
  196. package/dist/client/assets/javascript-BfTuFzbs.js +2 -0
  197. package/dist/client/assets/jinja-C4NVx4X-.js +2 -0
  198. package/dist/client/assets/jison-BaE4DrvM.js +2 -0
  199. package/dist/client/assets/json-LL0kLbs_.js +2 -0
  200. package/dist/client/assets/json5-B1LcXsA8.js +2 -0
  201. package/dist/client/assets/jsonc-CYSDka7c.js +2 -0
  202. package/dist/client/assets/jsonl-CwfwQmvE.js +2 -0
  203. package/dist/client/assets/jsonnet-DG_zYewp.js +2 -0
  204. package/dist/client/assets/jspdf.es.min-_OjqfV_L.js +80 -0
  205. package/dist/client/assets/jssm-IkACsEzj.js +2 -0
  206. package/dist/client/assets/jsx-BOBg7x46.js +2 -0
  207. package/dist/client/assets/julia-D5dobu9Y.js +2 -0
  208. package/dist/client/assets/just-D99ddsWv.js +2 -0
  209. package/dist/client/assets/kanagawa-dragon-BBUl63AF.js +2 -0
  210. package/dist/client/assets/kanagawa-dragon-CBGy-6ik.js +2 -0
  211. package/dist/client/assets/kanagawa-lotus-BKY9TlU3.js +2 -0
  212. package/dist/client/assets/kanagawa-lotus-D93oLQjR.js +2 -0
  213. package/dist/client/assets/kanagawa-wave-CWf0rFWt.js +2 -0
  214. package/dist/client/assets/kanagawa-wave-CZBJ3hQh.js +2 -0
  215. package/dist/client/assets/kdl-DuytcvNV.js +2 -0
  216. package/dist/client/assets/kotlin-DmtnKz6Z.js +2 -0
  217. package/dist/client/assets/kusto-DmrVjfae.js +2 -0
  218. package/dist/client/assets/laserwave-DTzUwFmi.js +2 -0
  219. package/dist/client/assets/laserwave-NRABVcaO.js +2 -0
  220. package/dist/client/assets/latex-0e5rhe9m.js +2 -0
  221. package/dist/client/assets/lean-Bhkhoed1.js +2 -0
  222. package/dist/client/assets/less-BgyohKqc.js +2 -0
  223. package/dist/client/assets/light-plus-Cbc9ZUH4.js +2 -0
  224. package/dist/client/assets/light-plus-SK-KfMAV.js +2 -0
  225. package/dist/client/assets/liquid-BR35Xk1k.js +2 -0
  226. package/dist/client/assets/llvm-BtFJuFOJ.js +2 -0
  227. package/dist/client/assets/log-Df3M8ERB.js +2 -0
  228. package/dist/client/assets/logo-VfSEjTs6.js +2 -0
  229. package/dist/client/assets/lua-BMt4EqAw.js +2 -0
  230. package/dist/client/assets/luau-DIHOVG2A.js +2 -0
  231. package/dist/client/assets/make-gTMDFaMm.js +2 -0
  232. package/dist/client/assets/markdown-B_5il8S2.js +2 -0
  233. package/dist/client/assets/marko-DN4rLggA.js +2 -0
  234. package/dist/client/assets/material-theme-Pm6m-Kzc.js +2 -0
  235. package/dist/client/assets/material-theme-darker-BxFgxa9U.js +2 -0
  236. package/dist/client/assets/material-theme-darker-pKUQPx9-.js +2 -0
  237. package/dist/client/assets/material-theme-lighter-BLqni5my.js +2 -0
  238. package/dist/client/assets/material-theme-lighter-D6-26WhM.js +2 -0
  239. package/dist/client/assets/material-theme-ocean-C2N-nFlu.js +2 -0
  240. package/dist/client/assets/material-theme-ocean-DCxzET3l.js +2 -0
  241. package/dist/client/assets/material-theme-palenight-DyQqRTLL.js +2 -0
  242. package/dist/client/assets/material-theme-palenight-Y14J3SJp.js +2 -0
  243. package/dist/client/assets/material-theme-zfTX2d95.js +2 -0
  244. package/dist/client/assets/matlab-B2zVSjQq.js +2 -0
  245. package/dist/client/assets/mdc-kokCuEO8.js +2 -0
  246. package/dist/client/assets/mdx-CL7pLDiG.js +2 -0
  247. package/dist/client/assets/mermaid-Cou83ohU.js +2 -0
  248. package/dist/client/assets/min-dark-Bg1kQHvJ.js +2 -0
  249. package/dist/client/assets/min-dark-BhN4iMRs.js +2 -0
  250. package/dist/client/assets/min-light-BjU80CRL.js +2 -0
  251. package/dist/client/assets/min-light-Bw9u-P_u.js +2 -0
  252. package/dist/client/assets/mipsasm-CNFOlV7Y.js +2 -0
  253. package/dist/client/assets/module-fAFg92om.js +4 -0
  254. package/dist/client/assets/mojo-DmJMpmxj.js +2 -0
  255. package/dist/client/assets/monokai-C4NNjw1j.js +2 -0
  256. package/dist/client/assets/monokai-DIfgn9Q6.js +2 -0
  257. package/dist/client/assets/moonbit-f-DlcHvh.js +2 -0
  258. package/dist/client/assets/move-3UEJ-86q.js +2 -0
  259. package/dist/client/assets/narrat-BSySVkso.js +2 -0
  260. package/dist/client/assets/nextflow-B6YiVxNF.js +2 -0
  261. package/dist/client/assets/nextflow-groovy-CJM1tnxB.js +2 -0
  262. package/dist/client/assets/nginx-yFGqgywB.js +2 -0
  263. package/dist/client/assets/night-owl-CVqrHJ7c.js +2 -0
  264. package/dist/client/assets/night-owl-M-9PEzO3.js +2 -0
  265. package/dist/client/assets/night-owl-light-BFLAfCgh.js +2 -0
  266. package/dist/client/assets/night-owl-light-CbICj08I.js +2 -0
  267. package/dist/client/assets/nim-H0r8m4Bj.js +2 -0
  268. package/dist/client/assets/nix-D01-yy0s.js +2 -0
  269. package/dist/client/assets/nord-DdQ2eXb7.js +2 -0
  270. package/dist/client/assets/nord-b31BpoFd.js +2 -0
  271. package/dist/client/assets/nushell-CHtjMTHK.js +2 -0
  272. package/dist/client/assets/objective-c-CpnACn2A.js +2 -0
  273. package/dist/client/assets/objective-cpp-CC37zF8s.js +2 -0
  274. package/dist/client/assets/ocaml-zEzf7VRa.js +2 -0
  275. package/dist/client/assets/odin-7LfNaizd.js +2 -0
  276. package/dist/client/assets/one-dark-pro-D7GXMkD_.js +2 -0
  277. package/dist/client/assets/one-dark-pro-DZNXQIff.js +2 -0
  278. package/dist/client/assets/one-light-D0m2woYU.js +2 -0
  279. package/dist/client/assets/one-light-vpvEwBNE.js +2 -0
  280. package/dist/client/assets/openscad-alCnkqb3.js +2 -0
  281. package/dist/client/assets/pascal-BzxE7FG0.js +2 -0
  282. package/dist/client/assets/perl-DMfQlGhS.js +2 -0
  283. package/dist/client/assets/php-eC0_nfgu.js +2 -0
  284. package/dist/client/assets/pierre-dark-C8scyjTE.js +2 -0
  285. package/dist/client/assets/pierre-dark-protanopia-deuteranopia-DjjI5tLG.js +2 -0
  286. package/dist/client/assets/pierre-dark-soft-U4k3hSAg.js +2 -0
  287. package/dist/client/assets/pierre-dark-tritanopia-CwldMLve.js +2 -0
  288. package/dist/client/assets/pierre-dark-vibrant-CbqW77RL.js +2 -0
  289. package/dist/client/assets/pierre-light-CRazXHrY.js +2 -0
  290. package/dist/client/assets/pierre-light-protanopia-deuteranopia-C-0-s32M.js +2 -0
  291. package/dist/client/assets/pierre-light-soft-CeMgeGD-.js +2 -0
  292. package/dist/client/assets/pierre-light-tritanopia-CwP7kaEp.js +2 -0
  293. package/dist/client/assets/pierre-light-vibrant-BRw7kdwa.js +2 -0
  294. package/dist/client/assets/pkl-B_4Y3aQj.js +2 -0
  295. package/dist/client/assets/plastic-7ebP7j7m.js +2 -0
  296. package/dist/client/assets/plastic-BxJ4wlPp.js +2 -0
  297. package/dist/client/assets/plsql-Vnj6O-p2.js +2 -0
  298. package/dist/client/assets/po-BDEiW-In.js +2 -0
  299. package/dist/client/assets/poimandres-CjxvpNV1.js +2 -0
  300. package/dist/client/assets/poimandres-DaajSABO.js +2 -0
  301. package/dist/client/assets/polar-DkeS43LD.js +2 -0
  302. package/dist/client/assets/postcss-BdW9ckpW.js +2 -0
  303. package/dist/client/assets/powerquery-Ck_tTsxM.js +2 -0
  304. package/dist/client/assets/powershell-CSE_7mny.js +2 -0
  305. package/dist/client/assets/preload-helper-2nxZ5jlD.js +1 -0
  306. package/dist/client/assets/prisma-Bo0mLS5-.js +2 -0
  307. package/dist/client/assets/prolog-BKKH5B6F.js +2 -0
  308. package/dist/client/assets/proto-CQGfqf21.js +2 -0
  309. package/dist/client/assets/pug-CdkPd3m5.js +2 -0
  310. package/dist/client/assets/puppet-CMQRMMTw.js +2 -0
  311. package/dist/client/assets/purescript-CCcyGQO2.js +2 -0
  312. package/dist/client/assets/purify.es-BOhOJYGt.js +3 -0
  313. package/dist/client/assets/python-DMPOlDIf.js +2 -0
  314. package/dist/client/assets/qml-CjgSvi7A.js +2 -0
  315. package/dist/client/assets/qmldir-WCdsq__X.js +2 -0
  316. package/dist/client/assets/qss-AtgwhOez.js +2 -0
  317. package/dist/client/assets/r-CyfaTtPo.js +2 -0
  318. package/dist/client/assets/racket-BChN0yKc.js +2 -0
  319. package/dist/client/assets/raku-y2whvo3i.js +2 -0
  320. package/dist/client/assets/razor-xg0jlt5d.js +2 -0
  321. package/dist/client/assets/red-4ASUbyQz.js +2 -0
  322. package/dist/client/assets/red-FUTSeuNn.js +2 -0
  323. package/dist/client/assets/reg-Vw5mc10D.js +2 -0
  324. package/dist/client/assets/regexp-DNjghFOM.js +2 -0
  325. package/dist/client/assets/rel-B7yBab0H.js +2 -0
  326. package/dist/client/assets/riscv-CoVA6mXv.js +2 -0
  327. package/dist/client/assets/rolldown-runtime-BeQ30c1w.js +1 -0
  328. package/dist/client/assets/ron-Dncoj8f2.js +2 -0
  329. package/dist/client/assets/rose-pine-BYqQazSr.js +2 -0
  330. package/dist/client/assets/rose-pine-DKVJldI6.js +2 -0
  331. package/dist/client/assets/rose-pine-dawn-BzAj1SA_.js +2 -0
  332. package/dist/client/assets/rose-pine-dawn-DpMWSJny.js +2 -0
  333. package/dist/client/assets/rose-pine-moon-BF7RtPma.js +2 -0
  334. package/dist/client/assets/rose-pine-moon-Buv_ZumG.js +2 -0
  335. package/dist/client/assets/rosmsg-DMM9gQ6F.js +2 -0
  336. package/dist/client/assets/rst-DUzGXO8S.js +2 -0
  337. package/dist/client/assets/ruby-rVw1KmtO.js +2 -0
  338. package/dist/client/assets/rust-Do9fnzCe.js +2 -0
  339. package/dist/client/assets/sas-DqCEPep6.js +2 -0
  340. package/dist/client/assets/sass-C-AYCcFv.js +2 -0
  341. package/dist/client/assets/scala-g1Tl2-Vx.js +2 -0
  342. package/dist/client/assets/scheme-DMNTmmtl.js +2 -0
  343. package/dist/client/assets/scss-DUVpCPFS.js +2 -0
  344. package/dist/client/assets/sdbl-DN-YwBSp.js +2 -0
  345. package/dist/client/assets/shaderlab-CU1ngQGv.js +2 -0
  346. package/dist/client/assets/shellscript-DhExEfAl.js +2 -0
  347. package/dist/client/assets/shellsession-BRLd459R.js +2 -0
  348. package/dist/client/assets/slack-dark-CHVebfsv.js +2 -0
  349. package/dist/client/assets/slack-dark-DsHK2SW9.js +2 -0
  350. package/dist/client/assets/slack-ochin-DLRnnjq1.js +2 -0
  351. package/dist/client/assets/slack-ochin-auUeui07.js +2 -0
  352. package/dist/client/assets/smalltalk-DfTqE6NI.js +2 -0
  353. package/dist/client/assets/snazzy-light-DYCniS15.js +2 -0
  354. package/dist/client/assets/snazzy-light-DcJ4c2TI.js +2 -0
  355. package/dist/client/assets/solarized-dark-C2M3A6iX.js +2 -0
  356. package/dist/client/assets/solarized-dark-f_BlEcC2.js +2 -0
  357. package/dist/client/assets/solarized-light-DGdaihLk.js +2 -0
  358. package/dist/client/assets/solarized-light-p0lk9NUw.js +2 -0
  359. package/dist/client/assets/solidity-UrsYApv4.js +2 -0
  360. package/dist/client/assets/soy-B2el7XDq.js +2 -0
  361. package/dist/client/assets/sparql-Ckg9aAAq.js +2 -0
  362. package/dist/client/assets/splunk-BbdNC7mF.js +2 -0
  363. package/dist/client/assets/sql-DiDaRjp9.js +2 -0
  364. package/dist/client/assets/src-pwcrD9wg.js +3 -0
  365. package/dist/client/assets/ssh-config-NaDpXiNE.js +2 -0
  366. package/dist/client/assets/stata-C71yNzqX.js +2 -0
  367. package/dist/client/assets/stylus-BmDWwNjA.js +2 -0
  368. package/dist/client/assets/surrealql-Cmypmwl2.js +2 -0
  369. package/dist/client/assets/svelte-VS6niI_T.js +2 -0
  370. package/dist/client/assets/swift-C69NyPuQ.js +2 -0
  371. package/dist/client/assets/synthwave-84-2NxBVDLO.js +2 -0
  372. package/dist/client/assets/synthwave-84-CVwMZOby.js +2 -0
  373. package/dist/client/assets/system-verilog-DJk0s1jv.js +2 -0
  374. package/dist/client/assets/systemd-CcQAXEZ9.js +2 -0
  375. package/dist/client/assets/talonscript-CUGr7vYM.js +2 -0
  376. package/dist/client/assets/tasl-BB-YNBB8.js +2 -0
  377. package/dist/client/assets/tcl-DR8-AcmN.js +2 -0
  378. package/dist/client/assets/templ-Cr4Do0uA.js +2 -0
  379. package/dist/client/assets/terraform-DS-GC2Bj.js +2 -0
  380. package/dist/client/assets/tex-CcZtvqzZ.js +2 -0
  381. package/dist/client/assets/toggle-BBEoD8mr.js +2 -0
  382. package/dist/client/assets/tokyo-night-9wJEO1G-.js +2 -0
  383. package/dist/client/assets/tokyo-night-ZUp4Hulo.js +2 -0
  384. package/dist/client/assets/toml-ByrHRc5Z.js +2 -0
  385. package/dist/client/assets/transport-B-82Ada5.js +2 -0
  386. package/dist/client/assets/ts-tags-Dhe4Ce_p.js +2 -0
  387. package/dist/client/assets/tsv-2A2hWH8i.js +2 -0
  388. package/dist/client/assets/tsx-rRP2I03K.js +2 -0
  389. package/dist/client/assets/turtle-BYbwzkhD.js +2 -0
  390. package/dist/client/assets/twig-DtN4j4nR.js +2 -0
  391. package/dist/client/assets/typeof-DOAxNSYQ.js +2 -0
  392. package/dist/client/assets/typescript-tv4fsI1Q.js +2 -0
  393. package/dist/client/assets/typespec-DoZVUoUi.js +2 -0
  394. package/dist/client/assets/typst-BmNF0lss.js +2 -0
  395. package/dist/client/assets/useTriggerFocusGuards-B2i3DSgR.js +2 -0
  396. package/dist/client/assets/v-CtCN4vLO.js +2 -0
  397. package/dist/client/assets/vala-DOsY6Y3z.js +2 -0
  398. package/dist/client/assets/vb-C1Ff9hOT.js +2 -0
  399. package/dist/client/assets/verilog-Dt4OfjHN.js +2 -0
  400. package/dist/client/assets/vesper-5ZmhmIun.js +2 -0
  401. package/dist/client/assets/vesper-J3W-7eep.js +2 -0
  402. package/dist/client/assets/vhdl-DkoQ3qnl.js +2 -0
  403. package/dist/client/assets/viml-C3b4aEDf.js +2 -0
  404. package/dist/client/assets/vitesse-black-CYOC7ssU.js +2 -0
  405. package/dist/client/assets/vitesse-black-DWaDDoI3.js +2 -0
  406. package/dist/client/assets/vitesse-dark-Bxewb9U5.js +2 -0
  407. package/dist/client/assets/vitesse-dark-CZotVzc8.js +2 -0
  408. package/dist/client/assets/vitesse-light-Bf_msd9a.js +2 -0
  409. package/dist/client/assets/vitesse-light-BfrRSjRx.js +2 -0
  410. package/dist/client/assets/vue-C0rWZC13.js +2 -0
  411. package/dist/client/assets/vue-html-bxw887C2.js +2 -0
  412. package/dist/client/assets/vue-vine-DUWGjTI5.js +2 -0
  413. package/dist/client/assets/vyper-BamdcTqV.js +2 -0
  414. package/dist/client/assets/wasm-C2MLrNQ1.js +2 -0
  415. package/dist/client/assets/wasm-CGd31VpO.js +2 -0
  416. package/dist/client/assets/wenyan-BPZ76iog.js +2 -0
  417. package/dist/client/assets/wgsl-sH_fVDG_.js +2 -0
  418. package/dist/client/assets/wikitext-BsPo9Czf.js +2 -0
  419. package/dist/client/assets/wit-BfBhtJwS.js +2 -0
  420. package/dist/client/assets/wolfram-GL7CPBRD.js +2 -0
  421. package/dist/client/assets/worker-Cvq2iJN1.js +162 -0
  422. package/dist/client/assets/workspaceReadinessAtom-DUP5NKsc.js +2 -0
  423. package/dist/client/assets/xml-C0zxRzgj.js +2 -0
  424. package/dist/client/assets/xsl-CC403A_G.js +2 -0
  425. package/dist/client/assets/yaml-BCnsJrvx.js +2 -0
  426. package/dist/client/assets/zenscript-CmwVE7RW.js +2 -0
  427. package/dist/client/assets/zig-GtQXM-vf.js +2 -0
  428. package/dist/client/favicon-16x16.png +0 -0
  429. package/dist/client/favicon-16x16.png.publish-bak +0 -0
  430. package/dist/client/favicon-32x32.png +0 -0
  431. package/dist/client/favicon-32x32.png.publish-bak +0 -0
  432. package/dist/client/favicon.ico +0 -0
  433. package/dist/client/favicon.ico.publish-bak +0 -0
  434. package/dist/client/forge-mark.svg +5 -0
  435. package/dist/client/index.html +131 -0
  436. package/dist/client/mockServiceWorker.js +336 -0
  437. package/dist/client/sidebar/forge-ember-field.webp +0 -0
  438. package/dist/{esm-wLIF-u3N.mjs → esm-Ce1GqbVk.mjs} +1 -1
  439. package/dist/{esm-BZhXwX5p.cjs → esm-Do7HVhLA.cjs} +1 -1
  440. package/dist/{execAsync-DWZyWH-_.mjs → execAsync-BNNdR88o.mjs} +1 -1
  441. package/dist/{execAsync-jnYVB5RZ.cjs → execAsync-BUcaFQ1D.cjs} +1 -1
  442. package/dist/forge-provision-display.sh +316 -0
  443. package/dist/{getMachineId-bsd-BLtyMA4j.cjs → getMachineId-bsd-C_qi9crE.cjs} +3 -3
  444. package/dist/{getMachineId-bsd-CTjiY7jG.mjs → getMachineId-bsd-FI863wjR.mjs} +3 -3
  445. package/dist/{getMachineId-darwin-DaGS2zUd.cjs → getMachineId-darwin-BOoNuqXn.cjs} +3 -3
  446. package/dist/{getMachineId-darwin-BrPuyPOo.mjs → getMachineId-darwin-D9VhTaPM.mjs} +3 -3
  447. package/dist/{getMachineId-linux-BsP3wJaE.cjs → getMachineId-linux-C9L-vW7m.cjs} +2 -2
  448. package/dist/{getMachineId-linux-D9QEWWF-.mjs → getMachineId-linux-DE2x36Kt.mjs} +2 -2
  449. package/dist/{getMachineId-unsupported-Cm-2s4Sg.mjs → getMachineId-unsupported-9S6pcxXb.mjs} +2 -2
  450. package/dist/{getMachineId-unsupported-B_M-gck7.cjs → getMachineId-unsupported-CmbM8LYa.cjs} +2 -2
  451. package/dist/{getMachineId-win-qtEKaUYj.mjs → getMachineId-win-0EVRuBxU.mjs} +3 -3
  452. package/dist/{getMachineId-win-3zJ3HQLG.cjs → getMachineId-win-BPaemVew.cjs} +3 -3
  453. package/dist/{open-CGXZLos4.cjs → open-BAsPVCWX.cjs} +1 -1
  454. package/dist/{open-Cf0bgbyx.mjs → open-FIgTDosf.mjs} +1 -1
  455. package/dist/runtimeBootstrap.cjs +8 -0
  456. package/dist/runtimeBootstrap.mjs +4 -0
  457. package/dist/runtimeControlAuthority-Dm9z5ziU.mjs +505 -0
  458. package/dist/runtimeControlAuthority-Dx6Y5LPI.cjs +571 -0
  459. package/package.json +28 -30
  460. package/dist/NodeHttpServer-C7YMYP5R.cjs +0 -616
  461. package/dist/NodeHttpServer-D5-EtRwc.mjs +0 -605
@@ -1,7 +1,308 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const require_chunk = require("./chunk-BhaIgcZK.cjs");
4
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/constants.js
4
+ const require_Schema = require("./Schema-Bij_WAra.cjs");
5
+ const require_Path = require("./Path-CsbBuCFB.cjs");
6
+ const require_NodeTerminal = require("./NodeTerminal-B9u7fFYa.cjs");
7
+ const require_NodeServices = require("./NodeServices-BISZRY3e.cjs");
8
+ const require_HttpServer = require("./HttpServer-aJkhz6yu.cjs");
9
+ const require_Config = require("./Config-DMA9WqtC.cjs");
10
+ const require_Mime = require("./Mime-CyHbecis.cjs");
11
+ let node_stream = require("node:stream");
12
+ let node_fs = require("node:fs");
13
+ node_fs = require_chunk.__toESM(node_fs);
14
+ let node_http = require("node:http");
15
+ node_http = require_chunk.__toESM(node_http);
16
+ let node_stream_promises = require("node:stream/promises");
17
+ node_stream_promises = require_chunk.__toESM(node_stream_promises);
18
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
19
+ /**
20
+ * @since 1.0.0
21
+ */
22
+ /**
23
+ * @since 1.0.0
24
+ * @category Constructors
25
+ */
26
+ var NodeHttpIncomingMessage = class extends require_Schema.Class$2 {
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ [require_HttpServer.TypeId$3];
31
+ source;
32
+ onError;
33
+ remoteAddressOverride;
34
+ constructor(source, onError, remoteAddressOverride) {
35
+ super();
36
+ this[require_HttpServer.TypeId$3] = require_HttpServer.TypeId$3;
37
+ this.source = source;
38
+ this.onError = onError;
39
+ this.remoteAddressOverride = remoteAddressOverride;
40
+ }
41
+ get headers() {
42
+ return require_HttpServer.fromInput$1(this.source.headers);
43
+ }
44
+ get remoteAddress() {
45
+ return this.remoteAddressOverride ?? require_Schema.fromNullishOr(this.source.socket.remoteAddress);
46
+ }
47
+ textEffect;
48
+ get text() {
49
+ if (this.textEffect) return this.textEffect;
50
+ this.textEffect = require_Schema.runSync(require_Schema.cached(require_Schema.flatMap(require_HttpServer.MaxBodySize.asEffect(), (maxBodySize) => require_NodeTerminal.toString(() => this.source, {
51
+ onError: this.onError,
52
+ maxBytes: maxBodySize
53
+ }))));
54
+ return this.textEffect;
55
+ }
56
+ get textUnsafe() {
57
+ return require_Schema.runSync(this.text);
58
+ }
59
+ get json() {
60
+ return require_Schema.flatMap(this.text, (text) => require_Schema.try_({
61
+ try: () => text === "" ? null : JSON.parse(text),
62
+ catch: this.onError
63
+ }));
64
+ }
65
+ get jsonUnsafe() {
66
+ return require_Schema.runSync(this.json);
67
+ }
68
+ get urlParamsBody() {
69
+ return require_Schema.flatMap(this.text, (_) => require_Schema.try_({
70
+ try: () => require_HttpServer.fromInput(new URLSearchParams(_)),
71
+ catch: this.onError
72
+ }));
73
+ }
74
+ get stream() {
75
+ return require_NodeTerminal.fromReadable({
76
+ evaluate: () => this.source,
77
+ onError: this.onError
78
+ });
79
+ }
80
+ get arrayBuffer() {
81
+ return require_Schema.withFiber((fiber) => require_NodeTerminal.toArrayBuffer(() => this.source, {
82
+ onError: this.onError,
83
+ maxBytes: fiber.getRef(require_HttpServer.MaxBodySize)
84
+ }));
85
+ }
86
+ };
87
+ //#endregion
88
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
89
+ /**
90
+ * @since 1.0.0
91
+ */
92
+ /**
93
+ * @since 1.0.0
94
+ * @category Constructors
95
+ */
96
+ const make$2 = /* @__PURE__ */ require_HttpServer.make$1({
97
+ fileResponse(path, status, statusText, headers, start, end, contentLength) {
98
+ const stream = contentLength === 0 ? node_stream.Readable.from([]) : node_fs.createReadStream(path, {
99
+ start,
100
+ end: end === void 0 ? void 0 : end - 1
101
+ });
102
+ return require_HttpServer.raw(stream, {
103
+ headers: {
104
+ ...headers,
105
+ "content-type": headers["content-type"] ?? require_Mime.Mime_default.getType(path) ?? "application/octet-stream",
106
+ "content-length": contentLength.toString()
107
+ },
108
+ status,
109
+ statusText
110
+ });
111
+ },
112
+ fileWebResponse(file, status, statusText, headers, _options) {
113
+ return require_HttpServer.raw(node_stream.Readable.fromWeb(file.stream()), {
114
+ headers: require_HttpServer.merge(headers, require_HttpServer.fromRecordUnsafe({
115
+ "content-type": headers["content-type"] ?? require_Mime.Mime_default.getType(file.name) ?? "application/octet-stream",
116
+ "content-length": file.size.toString()
117
+ })),
118
+ status,
119
+ statusText
120
+ });
121
+ }
122
+ });
123
+ /**
124
+ * @since 1.0.0
125
+ * @category Layers
126
+ */
127
+ const layer$1 = /* @__PURE__ */ require_Schema.pipe(/* @__PURE__ */ require_Schema.effect(require_HttpServer.HttpPlatform)(make$2), /* @__PURE__ */ require_Schema.provide$1(require_NodeServices.layer$1), /* @__PURE__ */ require_Schema.provide$1(require_HttpServer.layer$1));
128
+ //#endregion
129
+ //#region ../../node_modules/.bun/multipasta@0.2.7/node_modules/multipasta/dist/esm/node.js
130
+ var MultipastaStream = class extends node_stream.Duplex {
131
+ _parser;
132
+ _canWrite = true;
133
+ _writeCallback;
134
+ constructor(config) {
135
+ super({ readableObjectMode: true });
136
+ let currentError;
137
+ let currentFile;
138
+ this._parser = require_HttpServer.make$2({
139
+ ...config,
140
+ onField: (info, value) => {
141
+ if (currentError !== void 0) return;
142
+ const field = {
143
+ _tag: "Field",
144
+ info,
145
+ value
146
+ };
147
+ this.push(field);
148
+ this.emit("field", field);
149
+ },
150
+ onFile: (info) => {
151
+ if (currentError !== void 0) return (_) => {};
152
+ const file = new FileStream(info, this);
153
+ currentFile = file;
154
+ this.push(file);
155
+ this.emit("file", file);
156
+ return (chunk) => {
157
+ this._canWrite = file.push(chunk);
158
+ if (chunk === null && !this._canWrite) {
159
+ currentFile = void 0;
160
+ this._resume();
161
+ }
162
+ };
163
+ },
164
+ onError: (error) => {
165
+ this.emit("error", error);
166
+ currentFile?.emit("error", error);
167
+ currentError = error;
168
+ },
169
+ onDone: () => {
170
+ this.push(null);
171
+ }
172
+ });
173
+ }
174
+ _resume() {
175
+ this._canWrite = true;
176
+ if (this._writeCallback !== void 0) {
177
+ const callback = this._writeCallback;
178
+ this._writeCallback = void 0;
179
+ callback();
180
+ }
181
+ }
182
+ _read(_size) {}
183
+ _write(chunk, encoding, callback) {
184
+ this._parser.write(chunk instanceof Uint8Array ? chunk : Buffer.from(chunk, encoding));
185
+ if (this._canWrite) callback();
186
+ else this._writeCallback = callback;
187
+ }
188
+ _final(callback) {
189
+ this._parser.end();
190
+ callback();
191
+ }
192
+ };
193
+ const make$1 = (config) => new MultipastaStream(config);
194
+ var FileStream = class extends node_stream.Readable {
195
+ info;
196
+ _parent;
197
+ _tag = "File";
198
+ filename;
199
+ constructor(info, _parent) {
200
+ super();
201
+ this.info = info;
202
+ this._parent = _parent;
203
+ this.filename = info.filename;
204
+ }
205
+ _read(_size) {
206
+ if (this._parent._canWrite === false) this._parent._resume();
207
+ }
208
+ };
209
+ //#endregion
210
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeMultipart.js
211
+ /**
212
+ * @since 1.0.0
213
+ */
214
+ /**
215
+ * @since 1.0.0
216
+ * @category constructors
217
+ */
218
+ const stream = (source, headers) => require_HttpServer.makeConfig(headers).pipe(require_Schema.map((config) => require_NodeTerminal.fromReadable({
219
+ evaluate() {
220
+ const parser = make$1(config);
221
+ source.pipe(parser);
222
+ return parser;
223
+ },
224
+ onError: (error) => convertError(error)
225
+ })), require_Path.unwrap, require_Path.map(convertPart));
226
+ /**
227
+ * @since 1.0.0
228
+ * @category constructors
229
+ */
230
+ const persisted = (source, headers) => require_HttpServer.toPersisted(stream(source, headers), (path, file) => require_Schema.tryPromise({
231
+ try: (signal) => node_stream_promises.pipeline(file.file, node_fs.createWriteStream(path), { signal }),
232
+ catch: (cause) => require_HttpServer.MultipartError.fromReason("InternalError", cause)
233
+ }));
234
+ const convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
235
+ var PartBase = class extends require_Schema.Class$2 {
236
+ [require_HttpServer.TypeId$1];
237
+ constructor() {
238
+ super();
239
+ this[require_HttpServer.TypeId$1] = require_HttpServer.TypeId$1;
240
+ }
241
+ };
242
+ var FieldImpl = class extends PartBase {
243
+ _tag = "Field";
244
+ key;
245
+ contentType;
246
+ value;
247
+ constructor(info, value) {
248
+ super();
249
+ this.key = info.name;
250
+ this.contentType = info.contentType;
251
+ this.value = require_HttpServer.decodeField(info, value);
252
+ }
253
+ toJSON() {
254
+ return {
255
+ _id: "@effect/platform/Multipart/Part",
256
+ _tag: "Field",
257
+ key: this.key,
258
+ value: this.value,
259
+ contentType: this.contentType
260
+ };
261
+ }
262
+ };
263
+ var FileImpl = class extends PartBase {
264
+ _tag = "File";
265
+ key;
266
+ name;
267
+ contentType;
268
+ content;
269
+ contentEffect;
270
+ file;
271
+ constructor(file) {
272
+ super();
273
+ this.file = file;
274
+ this.key = file.info.name;
275
+ this.name = file.filename ?? file.info.name;
276
+ this.contentType = file.info.contentType;
277
+ this.content = require_NodeTerminal.fromReadable({
278
+ evaluate: () => file,
279
+ onError: (cause) => require_HttpServer.MultipartError.fromReason("InternalError", cause)
280
+ });
281
+ this.contentEffect = require_NodeTerminal.toUint8Array(() => file, { onError: (cause) => require_HttpServer.MultipartError.fromReason("InternalError", cause) });
282
+ }
283
+ toJSON() {
284
+ return {
285
+ _id: "@effect/platform/Multipart/Part",
286
+ _tag: "File",
287
+ key: this.key,
288
+ name: this.name,
289
+ contentType: this.contentType
290
+ };
291
+ }
292
+ };
293
+ function convertError(cause) {
294
+ switch (cause._tag) {
295
+ case "ReachedLimit": switch (cause.limit) {
296
+ case "MaxParts": return require_HttpServer.MultipartError.fromReason("TooManyParts", cause);
297
+ case "MaxFieldSize": return require_HttpServer.MultipartError.fromReason("FieldTooLarge", cause);
298
+ case "MaxPartSize": return require_HttpServer.MultipartError.fromReason("FileTooLarge", cause);
299
+ case "MaxTotalSize": return require_HttpServer.MultipartError.fromReason("BodyTooLarge", cause);
300
+ }
301
+ default: return require_HttpServer.MultipartError.fromReason("Parse", cause);
302
+ }
303
+ }
304
+ //#endregion
305
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/constants.js
5
306
  var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
6
307
  const BINARY_TYPES = [
7
308
  "nodebuffer",
@@ -24,7 +325,7 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
24
325
  };
25
326
  }));
26
327
  //#endregion
27
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/buffer-util.js
328
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/buffer-util.js
28
329
  var require_buffer_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
29
330
  const { EMPTY_BUFFER } = require_constants();
30
331
  const FastBuffer = Buffer[Symbol.species];
@@ -124,7 +425,7 @@ var require_buffer_util = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
124
425
  } catch (e) {}
125
426
  }));
126
427
  //#endregion
127
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/limiter.js
428
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/limiter.js
128
429
  var require_limiter = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
129
430
  const kDone = Symbol("kDone");
130
431
  const kRun = Symbol("kRun");
@@ -175,7 +476,7 @@ var require_limiter = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mod
175
476
  module.exports = Limiter;
176
477
  }));
177
478
  //#endregion
178
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/permessage-deflate.js
479
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
179
480
  var require_permessage_deflate = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
180
481
  const zlib = require("zlib");
181
482
  const bufferUtil = require_buffer_util();
@@ -208,9 +509,6 @@ var require_permessage_deflate = /* @__PURE__ */ require_chunk.__commonJSMin(((e
208
509
  * acknowledge disabling of client context takeover
209
510
  * @param {Number} [options.concurrencyLimit=10] The number of concurrent
210
511
  * calls to zlib
211
- * @param {Boolean} [options.isServer=false] Create the instance in either
212
- * server or client mode
213
- * @param {Number} [options.maxPayload=0] The maximum allowed message length
214
512
  * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
215
513
  * use of a custom server window size
216
514
  * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
@@ -221,12 +519,15 @@ var require_permessage_deflate = /* @__PURE__ */ require_chunk.__commonJSMin(((e
221
519
  * deflate
222
520
  * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
223
521
  * inflate
522
+ * @param {Boolean} [isServer=false] Create the instance in either server or
523
+ * client mode
524
+ * @param {Number} [maxPayload=0] The maximum allowed message length
224
525
  */
225
- constructor(options) {
526
+ constructor(options, isServer, maxPayload) {
527
+ this._maxPayload = maxPayload | 0;
226
528
  this._options = options || {};
227
529
  this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
228
- this._maxPayload = this._options.maxPayload | 0;
229
- this._isServer = !!this._options.isServer;
530
+ this._isServer = !!isServer;
230
531
  this._deflate = null;
231
532
  this._inflate = null;
232
533
  this.params = null;
@@ -508,7 +809,7 @@ var require_permessage_deflate = /* @__PURE__ */ require_chunk.__commonJSMin(((e
508
809
  }
509
810
  }));
510
811
  //#endregion
511
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/validation.js
812
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/validation.js
512
813
  var require_validation = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
513
814
  const { isUtf8 } = require("buffer");
514
815
  const { hasBlob } = require_constants();
@@ -704,7 +1005,7 @@ var require_validation = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
704
1005
  } catch (e) {}
705
1006
  }));
706
1007
  //#endregion
707
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/receiver.js
1008
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/receiver.js
708
1009
  var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
709
1010
  const { Writable } = require("stream");
710
1011
  const PerMessageDeflate = require_permessage_deflate();
@@ -737,10 +1038,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
737
1038
  * extensions
738
1039
  * @param {Boolean} [options.isServer=false] Specifies whether to operate in
739
1040
  * client or server mode
740
- * @param {Number} [options.maxBufferedChunks=0] The maximum number of
741
- * buffered data chunks
742
- * @param {Number} [options.maxFragments=0] The maximum number of message
743
- * fragments
744
1041
  * @param {Number} [options.maxPayload=0] The maximum allowed message length
745
1042
  * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
746
1043
  * not to skip UTF-8 validation for text and close messages
@@ -751,8 +1048,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
751
1048
  this._binaryType = options.binaryType || BINARY_TYPES[0];
752
1049
  this._extensions = options.extensions || {};
753
1050
  this._isServer = !!options.isServer;
754
- this._maxBufferedChunks = options.maxBufferedChunks | 0;
755
- this._maxFragments = options.maxFragments | 0;
756
1051
  this._maxPayload = options.maxPayload | 0;
757
1052
  this._skipUTF8Validation = !!options.skipUTF8Validation;
758
1053
  this[kWebSocket] = void 0;
@@ -767,7 +1062,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
767
1062
  this._opcode = 0;
768
1063
  this._totalPayloadLength = 0;
769
1064
  this._messageLength = 0;
770
- this._numFragments = 0;
771
1065
  this._fragments = [];
772
1066
  this._errored = false;
773
1067
  this._loop = false;
@@ -783,10 +1077,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
783
1077
  */
784
1078
  _write(chunk, encoding, cb) {
785
1079
  if (this._opcode === 8 && this._state == GET_INFO) return cb();
786
- if (this._maxBufferedChunks > 0 && this._buffers.length >= this._maxBufferedChunks) {
787
- cb(this.createError(RangeError, "Too many buffered chunks", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS"));
788
- return;
789
- }
790
1080
  this._bufferedBytes += chunk.length;
791
1081
  this._buffers.push(chunk);
792
1082
  this.startLoop(cb);
@@ -1008,10 +1298,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
1008
1298
  this.controlMessage(data, cb);
1009
1299
  return;
1010
1300
  }
1011
- if (this._maxFragments > 0 && ++this._numFragments > this._maxFragments) {
1012
- cb(this.createError(RangeError, "Too many message fragments", false, 1008, "WS_ERR_TOO_MANY_BUFFERED_PARTS"));
1013
- return;
1014
- }
1015
1301
  if (this._compressed) {
1016
1302
  this._state = INFLATING;
1017
1303
  this.decompress(data, cb);
@@ -1061,7 +1347,6 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
1061
1347
  this._totalPayloadLength = 0;
1062
1348
  this._messageLength = 0;
1063
1349
  this._fragmented = 0;
1064
- this._numFragments = 0;
1065
1350
  this._fragments = [];
1066
1351
  if (this._opcode === 2) {
1067
1352
  let data;
@@ -1167,11 +1452,10 @@ var require_receiver = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
1167
1452
  module.exports = Receiver;
1168
1453
  }));
1169
1454
  //#endregion
1170
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/sender.js
1455
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/sender.js
1171
1456
  var require_sender = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
1172
1457
  const { Duplex: Duplex$3 } = require("stream");
1173
1458
  const { randomFillSync } = require("crypto");
1174
- const { types: { isUint8Array } } = require("util");
1175
1459
  const PerMessageDeflate = require_permessage_deflate();
1176
1460
  const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
1177
1461
  const { isBlob, isValidStatusCode } = require_validation();
@@ -1315,8 +1599,7 @@ var require_sender = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
1315
1599
  buf = Buffer.allocUnsafe(2 + length);
1316
1600
  buf.writeUInt16BE(code, 0);
1317
1601
  if (typeof data === "string") buf.write(data, 2);
1318
- else if (isUint8Array(data)) buf.set(data, 2);
1319
- else throw new TypeError("Second argument must be a string or a Uint8Array");
1602
+ else buf.set(data, 2);
1320
1603
  }
1321
1604
  const options = {
1322
1605
  [kByteLength]: buf.length,
@@ -1660,7 +1943,7 @@ var require_sender = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
1660
1943
  }
1661
1944
  }));
1662
1945
  //#endregion
1663
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/event-target.js
1946
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/event-target.js
1664
1947
  var require_event_target = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
1665
1948
  const { kForOnEventAttribute, kListener } = require_constants();
1666
1949
  const kCode = Symbol("kCode");
@@ -1872,7 +2155,7 @@ var require_event_target = /* @__PURE__ */ require_chunk.__commonJSMin(((exports
1872
2155
  }
1873
2156
  }));
1874
2157
  //#endregion
1875
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/extension.js
2158
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/extension.js
1876
2159
  var require_extension = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
1877
2160
  const { tokenChars } = require_validation();
1878
2161
  /**
@@ -2015,7 +2298,7 @@ var require_extension = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2015
2298
  };
2016
2299
  }));
2017
2300
  //#endregion
2018
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/websocket.js
2301
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket.js
2019
2302
  var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
2020
2303
  const EventEmitter$1 = require("events");
2021
2304
  const https = require("https");
@@ -2023,7 +2306,7 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2023
2306
  const net = require("net");
2024
2307
  const tls = require("tls");
2025
2308
  const { randomBytes, createHash: createHash$1 } = require("crypto");
2026
- const { Duplex: Duplex$2, Readable } = require("stream");
2309
+ const { Duplex: Duplex$2, Readable: Readable$1 } = require("stream");
2027
2310
  const { URL } = require("url");
2028
2311
  const PerMessageDeflate = require_permessage_deflate();
2029
2312
  const Receiver = require_receiver();
@@ -2177,10 +2460,6 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2177
2460
  * multiple times in the same tick
2178
2461
  * @param {Function} [options.generateMask] The function used to generate the
2179
2462
  * masking key
2180
- * @param {Number} [options.maxBufferedChunks=0] The maximum number of
2181
- * buffered data chunks
2182
- * @param {Number} [options.maxFragments=0] The maximum number of message
2183
- * fragments
2184
2463
  * @param {Number} [options.maxPayload=0] The maximum allowed message size
2185
2464
  * @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
2186
2465
  * not to skip UTF-8 validation for text and close messages
@@ -2192,8 +2471,6 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2192
2471
  binaryType: this.binaryType,
2193
2472
  extensions: this._extensions,
2194
2473
  isServer: this._isServer,
2195
- maxBufferedChunks: options.maxBufferedChunks,
2196
- maxFragments: options.maxFragments,
2197
2474
  maxPayload: options.maxPayload,
2198
2475
  skipUTF8Validation: options.skipUTF8Validation
2199
2476
  });
@@ -2520,10 +2797,6 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2520
2797
  * masking key
2521
2798
  * @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
2522
2799
  * handshake request
2523
- * @param {Number} [options.maxBufferedChunks=262144] The maximum number of
2524
- * buffered data chunks
2525
- * @param {Number} [options.maxFragments=16384] The maximum number of message
2526
- * fragments
2527
2800
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
2528
2801
  * size
2529
2802
  * @param {Number} [options.maxRedirects=10] The maximum number of redirects
@@ -2544,8 +2817,6 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2544
2817
  autoPong: true,
2545
2818
  closeTimeout: CLOSE_TIMEOUT,
2546
2819
  protocolVersion: protocolVersions[1],
2547
- maxBufferedChunks: 256 * 1024,
2548
- maxFragments: 16 * 1024,
2549
2820
  maxPayload: 100 * 1024 * 1024,
2550
2821
  skipUTF8Validation: false,
2551
2822
  perMessageDeflate: true,
@@ -2568,7 +2839,7 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2568
2839
  if (address instanceof URL) parsedUrl = address;
2569
2840
  else try {
2570
2841
  parsedUrl = new URL(address);
2571
- } catch {
2842
+ } catch (e) {
2572
2843
  throw new SyntaxError(`Invalid URL: ${address}`);
2573
2844
  }
2574
2845
  if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
@@ -2607,11 +2878,7 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2607
2878
  opts.path = parsedUrl.pathname + parsedUrl.search;
2608
2879
  opts.timeout = opts.handshakeTimeout;
2609
2880
  if (opts.perMessageDeflate) {
2610
- perMessageDeflate = new PerMessageDeflate({
2611
- ...opts.perMessageDeflate,
2612
- isServer: false,
2613
- maxPayload: opts.maxPayload
2614
- });
2881
+ perMessageDeflate = new PerMessageDeflate(opts.perMessageDeflate !== true ? opts.perMessageDeflate : {}, false, opts.maxPayload);
2615
2882
  opts.headers["Sec-WebSocket-Extensions"] = format({ [PerMessageDeflate.extensionName]: perMessageDeflate.offer() });
2616
2883
  }
2617
2884
  if (protocols.length) {
@@ -2735,8 +3002,6 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
2735
3002
  websocket.setSocket(socket, head, {
2736
3003
  allowSynchronousEvents: opts.allowSynchronousEvents,
2737
3004
  generateMask: opts.generateMask,
2738
- maxBufferedChunks: opts.maxBufferedChunks,
2739
- maxFragments: opts.maxFragments,
2740
3005
  maxPayload: opts.maxPayload,
2741
3006
  skipUTF8Validation: opts.skipUTF8Validation
2742
3007
  });
@@ -3004,7 +3269,7 @@ var require_websocket = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
3004
3269
  }
3005
3270
  }));
3006
3271
  //#endregion
3007
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/stream.js
3272
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/stream.js
3008
3273
  var require_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
3009
3274
  require_websocket();
3010
3275
  const { Duplex: Duplex$1 } = require("stream");
@@ -3120,7 +3385,7 @@ var require_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, modu
3120
3385
  module.exports = createWebSocketStream;
3121
3386
  }));
3122
3387
  //#endregion
3123
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/subprotocol.js
3388
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/subprotocol.js
3124
3389
  var require_subprotocol = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
3125
3390
  const { tokenChars } = require_validation();
3126
3391
  /**
@@ -3159,7 +3424,7 @@ var require_subprotocol = /* @__PURE__ */ require_chunk.__commonJSMin(((exports,
3159
3424
  module.exports = { parse };
3160
3425
  }));
3161
3426
  //#endregion
3162
- //#region ../../node_modules/.bun/ws@8.21.2/node_modules/ws/lib/websocket-server.js
3427
+ //#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket-server.js
3163
3428
  var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
3164
3429
  const EventEmitter = require("events");
3165
3430
  const http = require("http");
@@ -3198,10 +3463,6 @@ var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
3198
3463
  * called
3199
3464
  * @param {Function} [options.handleProtocols] A hook to handle protocols
3200
3465
  * @param {String} [options.host] The hostname where to bind the server
3201
- * @param {Number} [options.maxBufferedChunks=262144] The maximum number of
3202
- * buffered data chunks
3203
- * @param {Number} [options.maxFragments=16384] The maximum number of message
3204
- * fragments
3205
3466
  * @param {Number} [options.maxPayload=104857600] The maximum allowed message
3206
3467
  * size
3207
3468
  * @param {Boolean} [options.noServer=false] Enable no server mode
@@ -3223,8 +3484,6 @@ var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
3223
3484
  options = {
3224
3485
  allowSynchronousEvents: true,
3225
3486
  autoPong: true,
3226
- maxBufferedChunks: 256 * 1024,
3227
- maxFragments: 16 * 1024,
3228
3487
  maxPayload: 100 * 1024 * 1024,
3229
3488
  skipUTF8Validation: false,
3230
3489
  perMessageDeflate: false,
@@ -3379,11 +3638,7 @@ var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
3379
3638
  const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
3380
3639
  const extensions = {};
3381
3640
  if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
3382
- const perMessageDeflate = new PerMessageDeflate({
3383
- ...this.options.perMessageDeflate,
3384
- isServer: true,
3385
- maxPayload: this.options.maxPayload
3386
- });
3641
+ const perMessageDeflate = new PerMessageDeflate(this.options.perMessageDeflate, true, this.options.maxPayload);
3387
3642
  try {
3388
3643
  const offers = extension.parse(secWebSocketExtensions);
3389
3644
  if (offers[PerMessageDeflate.extensionName]) {
@@ -3454,8 +3709,6 @@ var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
3454
3709
  socket.removeListener("error", socketOnError);
3455
3710
  ws.setSocket(socket, head, {
3456
3711
  allowSynchronousEvents: this.options.allowSynchronousEvents,
3457
- maxBufferedChunks: this.options.maxBufferedChunks,
3458
- maxFragments: this.options.maxFragments,
3459
3712
  maxPayload: this.options.maxPayload,
3460
3713
  skipUTF8Validation: this.options.skipUTF8Validation
3461
3714
  });
@@ -3545,1422 +3798,320 @@ var require_websocket_server = /* @__PURE__ */ require_chunk.__commonJSMin(((exp
3545
3798
  }
3546
3799
  }));
3547
3800
  require_stream();
3548
- require_extension();
3549
- require_permessage_deflate();
3550
3801
  require_receiver();
3551
3802
  require_sender();
3552
- require_subprotocol();
3553
- var import_websocket = /* @__PURE__ */ require_chunk.__toESM(require_websocket(), 1);
3803
+ require_websocket();
3554
3804
  var import_websocket_server = /* @__PURE__ */ require_chunk.__toESM(require_websocket_server(), 1);
3555
- var wrapper_default = import_websocket.default;
3556
- //#endregion
3557
- //#region ../../node_modules/.bun/mime@4.1.0/node_modules/mime/dist/types/other.js
3558
- const types$1 = {
3559
- "application/prs.cww": ["cww"],
3560
- "application/prs.xsf+xml": ["xsf"],
3561
- "application/vnd.1000minds.decision-model+xml": ["1km"],
3562
- "application/vnd.3gpp.pic-bw-large": ["plb"],
3563
- "application/vnd.3gpp.pic-bw-small": ["psb"],
3564
- "application/vnd.3gpp.pic-bw-var": ["pvb"],
3565
- "application/vnd.3gpp2.tcap": ["tcap"],
3566
- "application/vnd.3m.post-it-notes": ["pwn"],
3567
- "application/vnd.accpac.simply.aso": ["aso"],
3568
- "application/vnd.accpac.simply.imp": ["imp"],
3569
- "application/vnd.acucobol": ["acu"],
3570
- "application/vnd.acucorp": ["atc", "acutc"],
3571
- "application/vnd.adobe.air-application-installer-package+zip": ["air"],
3572
- "application/vnd.adobe.formscentral.fcdt": ["fcdt"],
3573
- "application/vnd.adobe.fxp": ["fxp", "fxpl"],
3574
- "application/vnd.adobe.xdp+xml": ["xdp"],
3575
- "application/vnd.adobe.xfdf": ["*xfdf"],
3576
- "application/vnd.age": ["age"],
3577
- "application/vnd.ahead.space": ["ahead"],
3578
- "application/vnd.airzip.filesecure.azf": ["azf"],
3579
- "application/vnd.airzip.filesecure.azs": ["azs"],
3580
- "application/vnd.amazon.ebook": ["azw"],
3581
- "application/vnd.americandynamics.acc": ["acc"],
3582
- "application/vnd.amiga.ami": ["ami"],
3583
- "application/vnd.android.package-archive": ["apk"],
3584
- "application/vnd.anser-web-certificate-issue-initiation": ["cii"],
3585
- "application/vnd.anser-web-funds-transfer-initiation": ["fti"],
3586
- "application/vnd.antix.game-component": ["atx"],
3587
- "application/vnd.apple.installer+xml": ["mpkg"],
3588
- "application/vnd.apple.keynote": ["key"],
3589
- "application/vnd.apple.mpegurl": ["m3u8"],
3590
- "application/vnd.apple.numbers": ["numbers"],
3591
- "application/vnd.apple.pages": ["pages"],
3592
- "application/vnd.apple.pkpass": ["pkpass"],
3593
- "application/vnd.aristanetworks.swi": ["swi"],
3594
- "application/vnd.astraea-software.iota": ["iota"],
3595
- "application/vnd.audiograph": ["aep"],
3596
- "application/vnd.autodesk.fbx": ["fbx"],
3597
- "application/vnd.balsamiq.bmml+xml": ["bmml"],
3598
- "application/vnd.blueice.multipass": ["mpm"],
3599
- "application/vnd.bmi": ["bmi"],
3600
- "application/vnd.businessobjects": ["rep"],
3601
- "application/vnd.chemdraw+xml": ["cdxml"],
3602
- "application/vnd.chipnuts.karaoke-mmd": ["mmd"],
3603
- "application/vnd.cinderella": ["cdy"],
3604
- "application/vnd.citationstyles.style+xml": ["csl"],
3605
- "application/vnd.claymore": ["cla"],
3606
- "application/vnd.cloanto.rp9": ["rp9"],
3607
- "application/vnd.clonk.c4group": [
3608
- "c4g",
3609
- "c4d",
3610
- "c4f",
3611
- "c4p",
3612
- "c4u"
3613
- ],
3614
- "application/vnd.cluetrust.cartomobile-config": ["c11amc"],
3615
- "application/vnd.cluetrust.cartomobile-config-pkg": ["c11amz"],
3616
- "application/vnd.commonspace": ["csp"],
3617
- "application/vnd.contact.cmsg": ["cdbcmsg"],
3618
- "application/vnd.cosmocaller": ["cmc"],
3619
- "application/vnd.crick.clicker": ["clkx"],
3620
- "application/vnd.crick.clicker.keyboard": ["clkk"],
3621
- "application/vnd.crick.clicker.palette": ["clkp"],
3622
- "application/vnd.crick.clicker.template": ["clkt"],
3623
- "application/vnd.crick.clicker.wordbank": ["clkw"],
3624
- "application/vnd.criticaltools.wbs+xml": ["wbs"],
3625
- "application/vnd.ctc-posml": ["pml"],
3626
- "application/vnd.cups-ppd": ["ppd"],
3627
- "application/vnd.curl.car": ["car"],
3628
- "application/vnd.curl.pcurl": ["pcurl"],
3629
- "application/vnd.dart": ["dart"],
3630
- "application/vnd.data-vision.rdz": ["rdz"],
3631
- "application/vnd.dbf": ["dbf"],
3632
- "application/vnd.dcmp+xml": ["dcmp"],
3633
- "application/vnd.dece.data": [
3634
- "uvf",
3635
- "uvvf",
3636
- "uvd",
3637
- "uvvd"
3638
- ],
3639
- "application/vnd.dece.ttml+xml": ["uvt", "uvvt"],
3640
- "application/vnd.dece.unspecified": ["uvx", "uvvx"],
3641
- "application/vnd.dece.zip": ["uvz", "uvvz"],
3642
- "application/vnd.denovo.fcselayout-link": ["fe_launch"],
3643
- "application/vnd.dna": ["dna"],
3644
- "application/vnd.dolby.mlp": ["mlp"],
3645
- "application/vnd.dpgraph": ["dpg"],
3646
- "application/vnd.dreamfactory": ["dfac"],
3647
- "application/vnd.ds-keypoint": ["kpxx"],
3648
- "application/vnd.dvb.ait": ["ait"],
3649
- "application/vnd.dvb.service": ["svc"],
3650
- "application/vnd.dynageo": ["geo"],
3651
- "application/vnd.ecowin.chart": ["mag"],
3652
- "application/vnd.enliven": ["nml"],
3653
- "application/vnd.epson.esf": ["esf"],
3654
- "application/vnd.epson.msf": ["msf"],
3655
- "application/vnd.epson.quickanime": ["qam"],
3656
- "application/vnd.epson.salt": ["slt"],
3657
- "application/vnd.epson.ssf": ["ssf"],
3658
- "application/vnd.eszigno3+xml": ["es3", "et3"],
3659
- "application/vnd.ezpix-album": ["ez2"],
3660
- "application/vnd.ezpix-package": ["ez3"],
3661
- "application/vnd.fdf": ["*fdf"],
3662
- "application/vnd.fdsn.mseed": ["mseed"],
3663
- "application/vnd.fdsn.seed": ["seed", "dataless"],
3664
- "application/vnd.flographit": ["gph"],
3665
- "application/vnd.fluxtime.clip": ["ftc"],
3666
- "application/vnd.framemaker": [
3667
- "fm",
3668
- "frame",
3669
- "maker",
3670
- "book"
3671
- ],
3672
- "application/vnd.frogans.fnc": ["fnc"],
3673
- "application/vnd.frogans.ltf": ["ltf"],
3674
- "application/vnd.fsc.weblaunch": ["fsc"],
3675
- "application/vnd.fujitsu.oasys": ["oas"],
3676
- "application/vnd.fujitsu.oasys2": ["oa2"],
3677
- "application/vnd.fujitsu.oasys3": ["oa3"],
3678
- "application/vnd.fujitsu.oasysgp": ["fg5"],
3679
- "application/vnd.fujitsu.oasysprs": ["bh2"],
3680
- "application/vnd.fujixerox.ddd": ["ddd"],
3681
- "application/vnd.fujixerox.docuworks": ["xdw"],
3682
- "application/vnd.fujixerox.docuworks.binder": ["xbd"],
3683
- "application/vnd.fuzzysheet": ["fzs"],
3684
- "application/vnd.genomatix.tuxedo": ["txd"],
3685
- "application/vnd.geogebra.file": ["ggb"],
3686
- "application/vnd.geogebra.slides": ["ggs"],
3687
- "application/vnd.geogebra.tool": ["ggt"],
3688
- "application/vnd.geometry-explorer": ["gex", "gre"],
3689
- "application/vnd.geonext": ["gxt"],
3690
- "application/vnd.geoplan": ["g2w"],
3691
- "application/vnd.geospace": ["g3w"],
3692
- "application/vnd.gmx": ["gmx"],
3693
- "application/vnd.google-apps.document": ["gdoc"],
3694
- "application/vnd.google-apps.drawing": ["gdraw"],
3695
- "application/vnd.google-apps.form": ["gform"],
3696
- "application/vnd.google-apps.jam": ["gjam"],
3697
- "application/vnd.google-apps.map": ["gmap"],
3698
- "application/vnd.google-apps.presentation": ["gslides"],
3699
- "application/vnd.google-apps.script": ["gscript"],
3700
- "application/vnd.google-apps.site": ["gsite"],
3701
- "application/vnd.google-apps.spreadsheet": ["gsheet"],
3702
- "application/vnd.google-earth.kml+xml": ["kml"],
3703
- "application/vnd.google-earth.kmz": ["kmz"],
3704
- "application/vnd.gov.sk.xmldatacontainer+xml": ["xdcf"],
3705
- "application/vnd.grafeq": ["gqf", "gqs"],
3706
- "application/vnd.groove-account": ["gac"],
3707
- "application/vnd.groove-help": ["ghf"],
3708
- "application/vnd.groove-identity-message": ["gim"],
3709
- "application/vnd.groove-injector": ["grv"],
3710
- "application/vnd.groove-tool-message": ["gtm"],
3711
- "application/vnd.groove-tool-template": ["tpl"],
3712
- "application/vnd.groove-vcard": ["vcg"],
3713
- "application/vnd.hal+xml": ["hal"],
3714
- "application/vnd.handheld-entertainment+xml": ["zmm"],
3715
- "application/vnd.hbci": ["hbci"],
3716
- "application/vnd.hhe.lesson-player": ["les"],
3717
- "application/vnd.hp-hpgl": ["hpgl"],
3718
- "application/vnd.hp-hpid": ["hpid"],
3719
- "application/vnd.hp-hps": ["hps"],
3720
- "application/vnd.hp-jlyt": ["jlt"],
3721
- "application/vnd.hp-pcl": ["pcl"],
3722
- "application/vnd.hp-pclxl": ["pclxl"],
3723
- "application/vnd.hydrostatix.sof-data": ["sfd-hdstx"],
3724
- "application/vnd.ibm.minipay": ["mpy"],
3725
- "application/vnd.ibm.modcap": [
3726
- "afp",
3727
- "listafp",
3728
- "list3820"
3729
- ],
3730
- "application/vnd.ibm.rights-management": ["irm"],
3731
- "application/vnd.ibm.secure-container": ["sc"],
3732
- "application/vnd.iccprofile": ["icc", "icm"],
3733
- "application/vnd.igloader": ["igl"],
3734
- "application/vnd.immervision-ivp": ["ivp"],
3735
- "application/vnd.immervision-ivu": ["ivu"],
3736
- "application/vnd.insors.igm": ["igm"],
3737
- "application/vnd.intercon.formnet": ["xpw", "xpx"],
3738
- "application/vnd.intergeo": ["i2g"],
3739
- "application/vnd.intu.qbo": ["qbo"],
3740
- "application/vnd.intu.qfx": ["qfx"],
3741
- "application/vnd.ipunplugged.rcprofile": ["rcprofile"],
3742
- "application/vnd.irepository.package+xml": ["irp"],
3743
- "application/vnd.is-xpr": ["xpr"],
3744
- "application/vnd.isac.fcs": ["fcs"],
3745
- "application/vnd.jam": ["jam"],
3746
- "application/vnd.jcp.javame.midlet-rms": ["rms"],
3747
- "application/vnd.jisp": ["jisp"],
3748
- "application/vnd.joost.joda-archive": ["joda"],
3749
- "application/vnd.kahootz": ["ktz", "ktr"],
3750
- "application/vnd.kde.karbon": ["karbon"],
3751
- "application/vnd.kde.kchart": ["chrt"],
3752
- "application/vnd.kde.kformula": ["kfo"],
3753
- "application/vnd.kde.kivio": ["flw"],
3754
- "application/vnd.kde.kontour": ["kon"],
3755
- "application/vnd.kde.kpresenter": ["kpr", "kpt"],
3756
- "application/vnd.kde.kspread": ["ksp"],
3757
- "application/vnd.kde.kword": ["kwd", "kwt"],
3758
- "application/vnd.kenameaapp": ["htke"],
3759
- "application/vnd.kidspiration": ["kia"],
3760
- "application/vnd.kinar": ["kne", "knp"],
3761
- "application/vnd.koan": [
3762
- "skp",
3763
- "skd",
3764
- "skt",
3765
- "skm"
3766
- ],
3767
- "application/vnd.kodak-descriptor": ["sse"],
3768
- "application/vnd.las.las+xml": ["lasxml"],
3769
- "application/vnd.llamagraphics.life-balance.desktop": ["lbd"],
3770
- "application/vnd.llamagraphics.life-balance.exchange+xml": ["lbe"],
3771
- "application/vnd.lotus-1-2-3": ["123"],
3772
- "application/vnd.lotus-approach": ["apr"],
3773
- "application/vnd.lotus-freelance": ["pre"],
3774
- "application/vnd.lotus-notes": ["nsf"],
3775
- "application/vnd.lotus-organizer": ["org"],
3776
- "application/vnd.lotus-screencam": ["scm"],
3777
- "application/vnd.lotus-wordpro": ["lwp"],
3778
- "application/vnd.macports.portpkg": ["portpkg"],
3779
- "application/vnd.mapbox-vector-tile": ["mvt"],
3780
- "application/vnd.mcd": ["mcd"],
3781
- "application/vnd.medcalcdata": ["mc1"],
3782
- "application/vnd.mediastation.cdkey": ["cdkey"],
3783
- "application/vnd.mfer": ["mwf"],
3784
- "application/vnd.mfmp": ["mfm"],
3785
- "application/vnd.micrografx.flo": ["flo"],
3786
- "application/vnd.micrografx.igx": ["igx"],
3787
- "application/vnd.mif": ["mif"],
3788
- "application/vnd.mobius.daf": ["daf"],
3789
- "application/vnd.mobius.dis": ["dis"],
3790
- "application/vnd.mobius.mbk": ["mbk"],
3791
- "application/vnd.mobius.mqy": ["mqy"],
3792
- "application/vnd.mobius.msl": ["msl"],
3793
- "application/vnd.mobius.plc": ["plc"],
3794
- "application/vnd.mobius.txf": ["txf"],
3795
- "application/vnd.mophun.application": ["mpn"],
3796
- "application/vnd.mophun.certificate": ["mpc"],
3797
- "application/vnd.mozilla.xul+xml": ["xul"],
3798
- "application/vnd.ms-artgalry": ["cil"],
3799
- "application/vnd.ms-cab-compressed": ["cab"],
3800
- "application/vnd.ms-excel": [
3801
- "xls",
3802
- "xlm",
3803
- "xla",
3804
- "xlc",
3805
- "xlt",
3806
- "xlw"
3807
- ],
3808
- "application/vnd.ms-excel.addin.macroenabled.12": ["xlam"],
3809
- "application/vnd.ms-excel.sheet.binary.macroenabled.12": ["xlsb"],
3810
- "application/vnd.ms-excel.sheet.macroenabled.12": ["xlsm"],
3811
- "application/vnd.ms-excel.template.macroenabled.12": ["xltm"],
3812
- "application/vnd.ms-fontobject": ["eot"],
3813
- "application/vnd.ms-htmlhelp": ["chm"],
3814
- "application/vnd.ms-ims": ["ims"],
3815
- "application/vnd.ms-lrm": ["lrm"],
3816
- "application/vnd.ms-officetheme": ["thmx"],
3817
- "application/vnd.ms-outlook": ["msg"],
3818
- "application/vnd.ms-pki.seccat": ["cat"],
3819
- "application/vnd.ms-pki.stl": ["*stl"],
3820
- "application/vnd.ms-powerpoint": [
3821
- "ppt",
3822
- "pps",
3823
- "pot"
3824
- ],
3825
- "application/vnd.ms-powerpoint.addin.macroenabled.12": ["ppam"],
3826
- "application/vnd.ms-powerpoint.presentation.macroenabled.12": ["pptm"],
3827
- "application/vnd.ms-powerpoint.slide.macroenabled.12": ["sldm"],
3828
- "application/vnd.ms-powerpoint.slideshow.macroenabled.12": ["ppsm"],
3829
- "application/vnd.ms-powerpoint.template.macroenabled.12": ["potm"],
3830
- "application/vnd.ms-project": ["*mpp", "mpt"],
3831
- "application/vnd.ms-visio.viewer": ["vdx"],
3832
- "application/vnd.ms-word.document.macroenabled.12": ["docm"],
3833
- "application/vnd.ms-word.template.macroenabled.12": ["dotm"],
3834
- "application/vnd.ms-works": [
3835
- "wps",
3836
- "wks",
3837
- "wcm",
3838
- "wdb"
3839
- ],
3840
- "application/vnd.ms-wpl": ["wpl"],
3841
- "application/vnd.ms-xpsdocument": ["xps"],
3842
- "application/vnd.mseq": ["mseq"],
3843
- "application/vnd.musician": ["mus"],
3844
- "application/vnd.muvee.style": ["msty"],
3845
- "application/vnd.mynfc": ["taglet"],
3846
- "application/vnd.nato.bindingdataobject+xml": ["bdo"],
3847
- "application/vnd.neurolanguage.nlu": ["nlu"],
3848
- "application/vnd.nitf": ["ntf", "nitf"],
3849
- "application/vnd.noblenet-directory": ["nnd"],
3850
- "application/vnd.noblenet-sealer": ["nns"],
3851
- "application/vnd.noblenet-web": ["nnw"],
3852
- "application/vnd.nokia.n-gage.ac+xml": ["*ac"],
3853
- "application/vnd.nokia.n-gage.data": ["ngdat"],
3854
- "application/vnd.nokia.n-gage.symbian.install": ["n-gage"],
3855
- "application/vnd.nokia.radio-preset": ["rpst"],
3856
- "application/vnd.nokia.radio-presets": ["rpss"],
3857
- "application/vnd.novadigm.edm": ["edm"],
3858
- "application/vnd.novadigm.edx": ["edx"],
3859
- "application/vnd.novadigm.ext": ["ext"],
3860
- "application/vnd.oasis.opendocument.chart": ["odc"],
3861
- "application/vnd.oasis.opendocument.chart-template": ["otc"],
3862
- "application/vnd.oasis.opendocument.database": ["odb"],
3863
- "application/vnd.oasis.opendocument.formula": ["odf"],
3864
- "application/vnd.oasis.opendocument.formula-template": ["odft"],
3865
- "application/vnd.oasis.opendocument.graphics": ["odg"],
3866
- "application/vnd.oasis.opendocument.graphics-template": ["otg"],
3867
- "application/vnd.oasis.opendocument.image": ["odi"],
3868
- "application/vnd.oasis.opendocument.image-template": ["oti"],
3869
- "application/vnd.oasis.opendocument.presentation": ["odp"],
3870
- "application/vnd.oasis.opendocument.presentation-template": ["otp"],
3871
- "application/vnd.oasis.opendocument.spreadsheet": ["ods"],
3872
- "application/vnd.oasis.opendocument.spreadsheet-template": ["ots"],
3873
- "application/vnd.oasis.opendocument.text": ["odt"],
3874
- "application/vnd.oasis.opendocument.text-master": ["odm"],
3875
- "application/vnd.oasis.opendocument.text-template": ["ott"],
3876
- "application/vnd.oasis.opendocument.text-web": ["oth"],
3877
- "application/vnd.olpc-sugar": ["xo"],
3878
- "application/vnd.oma.dd2+xml": ["dd2"],
3879
- "application/vnd.openblox.game+xml": ["obgx"],
3880
- "application/vnd.openofficeorg.extension": ["oxt"],
3881
- "application/vnd.openstreetmap.data+xml": ["osm"],
3882
- "application/vnd.openxmlformats-officedocument.presentationml.presentation": ["pptx"],
3883
- "application/vnd.openxmlformats-officedocument.presentationml.slide": ["sldx"],
3884
- "application/vnd.openxmlformats-officedocument.presentationml.slideshow": ["ppsx"],
3885
- "application/vnd.openxmlformats-officedocument.presentationml.template": ["potx"],
3886
- "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": ["xlsx"],
3887
- "application/vnd.openxmlformats-officedocument.spreadsheetml.template": ["xltx"],
3888
- "application/vnd.openxmlformats-officedocument.wordprocessingml.document": ["docx"],
3889
- "application/vnd.openxmlformats-officedocument.wordprocessingml.template": ["dotx"],
3890
- "application/vnd.osgeo.mapguide.package": ["mgp"],
3891
- "application/vnd.osgi.dp": ["dp"],
3892
- "application/vnd.osgi.subsystem": ["esa"],
3893
- "application/vnd.palm": [
3894
- "pdb",
3895
- "pqa",
3896
- "oprc"
3897
- ],
3898
- "application/vnd.pawaafile": ["paw"],
3899
- "application/vnd.pg.format": ["str"],
3900
- "application/vnd.pg.osasli": ["ei6"],
3901
- "application/vnd.picsel": ["efif"],
3902
- "application/vnd.pmi.widget": ["wg"],
3903
- "application/vnd.pocketlearn": ["plf"],
3904
- "application/vnd.powerbuilder6": ["pbd"],
3905
- "application/vnd.previewsystems.box": ["box"],
3906
- "application/vnd.procrate.brushset": ["brushset"],
3907
- "application/vnd.procreate.brush": ["brush"],
3908
- "application/vnd.procreate.dream": ["drm"],
3909
- "application/vnd.proteus.magazine": ["mgz"],
3910
- "application/vnd.publishare-delta-tree": ["qps"],
3911
- "application/vnd.pvi.ptid1": ["ptid"],
3912
- "application/vnd.pwg-xhtml-print+xml": ["xhtm"],
3913
- "application/vnd.quark.quarkxpress": [
3914
- "qxd",
3915
- "qxt",
3916
- "qwd",
3917
- "qwt",
3918
- "qxl",
3919
- "qxb"
3920
- ],
3921
- "application/vnd.rar": ["rar"],
3922
- "application/vnd.realvnc.bed": ["bed"],
3923
- "application/vnd.recordare.musicxml": ["mxl"],
3924
- "application/vnd.recordare.musicxml+xml": ["musicxml"],
3925
- "application/vnd.rig.cryptonote": ["cryptonote"],
3926
- "application/vnd.rim.cod": ["cod"],
3927
- "application/vnd.rn-realmedia": ["rm"],
3928
- "application/vnd.rn-realmedia-vbr": ["rmvb"],
3929
- "application/vnd.route66.link66+xml": ["link66"],
3930
- "application/vnd.sailingtracker.track": ["st"],
3931
- "application/vnd.seemail": ["see"],
3932
- "application/vnd.sema": ["sema"],
3933
- "application/vnd.semd": ["semd"],
3934
- "application/vnd.semf": ["semf"],
3935
- "application/vnd.shana.informed.formdata": ["ifm"],
3936
- "application/vnd.shana.informed.formtemplate": ["itp"],
3937
- "application/vnd.shana.informed.interchange": ["iif"],
3938
- "application/vnd.shana.informed.package": ["ipk"],
3939
- "application/vnd.simtech-mindmapper": ["twd", "twds"],
3940
- "application/vnd.smaf": ["mmf"],
3941
- "application/vnd.smart.teacher": ["teacher"],
3942
- "application/vnd.software602.filler.form+xml": ["fo"],
3943
- "application/vnd.solent.sdkm+xml": ["sdkm", "sdkd"],
3944
- "application/vnd.spotfire.dxp": ["dxp"],
3945
- "application/vnd.spotfire.sfs": ["sfs"],
3946
- "application/vnd.stardivision.calc": ["sdc"],
3947
- "application/vnd.stardivision.draw": ["sda"],
3948
- "application/vnd.stardivision.impress": ["sdd"],
3949
- "application/vnd.stardivision.math": ["smf"],
3950
- "application/vnd.stardivision.writer": ["sdw", "vor"],
3951
- "application/vnd.stardivision.writer-global": ["sgl"],
3952
- "application/vnd.stepmania.package": ["smzip"],
3953
- "application/vnd.stepmania.stepchart": ["sm"],
3954
- "application/vnd.sun.wadl+xml": ["wadl"],
3955
- "application/vnd.sun.xml.calc": ["sxc"],
3956
- "application/vnd.sun.xml.calc.template": ["stc"],
3957
- "application/vnd.sun.xml.draw": ["sxd"],
3958
- "application/vnd.sun.xml.draw.template": ["std"],
3959
- "application/vnd.sun.xml.impress": ["sxi"],
3960
- "application/vnd.sun.xml.impress.template": ["sti"],
3961
- "application/vnd.sun.xml.math": ["sxm"],
3962
- "application/vnd.sun.xml.writer": ["sxw"],
3963
- "application/vnd.sun.xml.writer.global": ["sxg"],
3964
- "application/vnd.sun.xml.writer.template": ["stw"],
3965
- "application/vnd.sus-calendar": ["sus", "susp"],
3966
- "application/vnd.svd": ["svd"],
3967
- "application/vnd.symbian.install": ["sis", "sisx"],
3968
- "application/vnd.syncml+xml": ["xsm"],
3969
- "application/vnd.syncml.dm+wbxml": ["bdm"],
3970
- "application/vnd.syncml.dm+xml": ["xdm"],
3971
- "application/vnd.syncml.dmddf+xml": ["ddf"],
3972
- "application/vnd.tao.intent-module-archive": ["tao"],
3973
- "application/vnd.tcpdump.pcap": [
3974
- "pcap",
3975
- "cap",
3976
- "dmp"
3977
- ],
3978
- "application/vnd.tmobile-livetv": ["tmo"],
3979
- "application/vnd.trid.tpt": ["tpt"],
3980
- "application/vnd.triscape.mxs": ["mxs"],
3981
- "application/vnd.trueapp": ["tra"],
3982
- "application/vnd.ufdl": ["ufd", "ufdl"],
3983
- "application/vnd.uiq.theme": ["utz"],
3984
- "application/vnd.umajin": ["umj"],
3985
- "application/vnd.unity": ["unityweb"],
3986
- "application/vnd.uoml+xml": ["uoml", "uo"],
3987
- "application/vnd.vcx": ["vcx"],
3988
- "application/vnd.visio": [
3989
- "vsd",
3990
- "vst",
3991
- "vss",
3992
- "vsw",
3993
- "vsdx",
3994
- "vtx"
3995
- ],
3996
- "application/vnd.visionary": ["vis"],
3997
- "application/vnd.vsf": ["vsf"],
3998
- "application/vnd.wap.wbxml": ["wbxml"],
3999
- "application/vnd.wap.wmlc": ["wmlc"],
4000
- "application/vnd.wap.wmlscriptc": ["wmlsc"],
4001
- "application/vnd.webturbo": ["wtb"],
4002
- "application/vnd.wolfram.player": ["nbp"],
4003
- "application/vnd.wordperfect": ["wpd"],
4004
- "application/vnd.wqd": ["wqd"],
4005
- "application/vnd.wt.stf": ["stf"],
4006
- "application/vnd.xara": ["xar"],
4007
- "application/vnd.xfdl": ["xfdl"],
4008
- "application/vnd.yamaha.hv-dic": ["hvd"],
4009
- "application/vnd.yamaha.hv-script": ["hvs"],
4010
- "application/vnd.yamaha.hv-voice": ["hvp"],
4011
- "application/vnd.yamaha.openscoreformat": ["osf"],
4012
- "application/vnd.yamaha.openscoreformat.osfpvg+xml": ["osfpvg"],
4013
- "application/vnd.yamaha.smaf-audio": ["saf"],
4014
- "application/vnd.yamaha.smaf-phrase": ["spf"],
4015
- "application/vnd.yellowriver-custom-menu": ["cmp"],
4016
- "application/vnd.zul": ["zir", "zirz"],
4017
- "application/vnd.zzazz.deck+xml": ["zaz"],
4018
- "application/x-7z-compressed": ["7z"],
4019
- "application/x-abiword": ["abw"],
4020
- "application/x-ace-compressed": ["ace"],
4021
- "application/x-apple-diskimage": ["*dmg"],
4022
- "application/x-arj": ["arj"],
4023
- "application/x-authorware-bin": [
4024
- "aab",
4025
- "x32",
4026
- "u32",
4027
- "vox"
4028
- ],
4029
- "application/x-authorware-map": ["aam"],
4030
- "application/x-authorware-seg": ["aas"],
4031
- "application/x-bcpio": ["bcpio"],
4032
- "application/x-bdoc": ["*bdoc"],
4033
- "application/x-bittorrent": ["torrent"],
4034
- "application/x-blender": ["blend"],
4035
- "application/x-blorb": ["blb", "blorb"],
4036
- "application/x-bzip": ["bz"],
4037
- "application/x-bzip2": ["bz2", "boz"],
4038
- "application/x-cbr": [
4039
- "cbr",
4040
- "cba",
4041
- "cbt",
4042
- "cbz",
4043
- "cb7"
4044
- ],
4045
- "application/x-cdlink": ["vcd"],
4046
- "application/x-cfs-compressed": ["cfs"],
4047
- "application/x-chat": ["chat"],
4048
- "application/x-chess-pgn": ["pgn"],
4049
- "application/x-chrome-extension": ["crx"],
4050
- "application/x-cocoa": ["cco"],
4051
- "application/x-compressed": ["*rar"],
4052
- "application/x-conference": ["nsc"],
4053
- "application/x-cpio": ["cpio"],
4054
- "application/x-csh": ["csh"],
4055
- "application/x-debian-package": ["*deb", "udeb"],
4056
- "application/x-dgc-compressed": ["dgc"],
4057
- "application/x-director": [
4058
- "dir",
4059
- "dcr",
4060
- "dxr",
4061
- "cst",
4062
- "cct",
4063
- "cxt",
4064
- "w3d",
4065
- "fgd",
4066
- "swa"
4067
- ],
4068
- "application/x-doom": ["wad"],
4069
- "application/x-dtbncx+xml": ["ncx"],
4070
- "application/x-dtbook+xml": ["dtb"],
4071
- "application/x-dtbresource+xml": ["res"],
4072
- "application/x-dvi": ["dvi"],
4073
- "application/x-envoy": ["evy"],
4074
- "application/x-eva": ["eva"],
4075
- "application/x-font-bdf": ["bdf"],
4076
- "application/x-font-ghostscript": ["gsf"],
4077
- "application/x-font-linux-psf": ["psf"],
4078
- "application/x-font-pcf": ["pcf"],
4079
- "application/x-font-snf": ["snf"],
4080
- "application/x-font-type1": [
4081
- "pfa",
4082
- "pfb",
4083
- "pfm",
4084
- "afm"
4085
- ],
4086
- "application/x-freearc": ["arc"],
4087
- "application/x-futuresplash": ["spl"],
4088
- "application/x-gca-compressed": ["gca"],
4089
- "application/x-glulx": ["ulx"],
4090
- "application/x-gnumeric": ["gnumeric"],
4091
- "application/x-gramps-xml": ["gramps"],
4092
- "application/x-gtar": ["gtar"],
4093
- "application/x-hdf": ["hdf"],
4094
- "application/x-httpd-php": ["php"],
4095
- "application/x-install-instructions": ["install"],
4096
- "application/x-ipynb+json": ["ipynb"],
4097
- "application/x-iso9660-image": ["*iso"],
4098
- "application/x-iwork-keynote-sffkey": ["*key"],
4099
- "application/x-iwork-numbers-sffnumbers": ["*numbers"],
4100
- "application/x-iwork-pages-sffpages": ["*pages"],
4101
- "application/x-java-archive-diff": ["jardiff"],
4102
- "application/x-java-jnlp-file": ["jnlp"],
4103
- "application/x-keepass2": ["kdbx"],
4104
- "application/x-latex": ["latex"],
4105
- "application/x-lua-bytecode": ["luac"],
4106
- "application/x-lzh-compressed": ["lzh", "lha"],
4107
- "application/x-makeself": ["run"],
4108
- "application/x-mie": ["mie"],
4109
- "application/x-mobipocket-ebook": ["*prc", "mobi"],
4110
- "application/x-ms-application": ["application"],
4111
- "application/x-ms-shortcut": ["lnk"],
4112
- "application/x-ms-wmd": ["wmd"],
4113
- "application/x-ms-wmz": ["wmz"],
4114
- "application/x-ms-xbap": ["xbap"],
4115
- "application/x-msaccess": ["mdb"],
4116
- "application/x-msbinder": ["obd"],
4117
- "application/x-mscardfile": ["crd"],
4118
- "application/x-msclip": ["clp"],
4119
- "application/x-msdos-program": ["*exe"],
4120
- "application/x-msdownload": [
4121
- "*exe",
4122
- "*dll",
4123
- "com",
4124
- "bat",
4125
- "*msi"
4126
- ],
4127
- "application/x-msmediaview": [
4128
- "mvb",
4129
- "m13",
4130
- "m14"
4131
- ],
4132
- "application/x-msmetafile": [
4133
- "*wmf",
4134
- "*wmz",
4135
- "*emf",
4136
- "emz"
4137
- ],
4138
- "application/x-msmoney": ["mny"],
4139
- "application/x-mspublisher": ["pub"],
4140
- "application/x-msschedule": ["scd"],
4141
- "application/x-msterminal": ["trm"],
4142
- "application/x-mswrite": ["wri"],
4143
- "application/x-netcdf": ["nc", "cdf"],
4144
- "application/x-ns-proxy-autoconfig": ["pac"],
4145
- "application/x-nzb": ["nzb"],
4146
- "application/x-perl": ["pl", "pm"],
4147
- "application/x-pilot": ["*prc", "*pdb"],
4148
- "application/x-pkcs12": ["p12", "pfx"],
4149
- "application/x-pkcs7-certificates": ["p7b", "spc"],
4150
- "application/x-pkcs7-certreqresp": ["p7r"],
4151
- "application/x-rar-compressed": ["*rar"],
4152
- "application/x-redhat-package-manager": ["rpm"],
4153
- "application/x-research-info-systems": ["ris"],
4154
- "application/x-sea": ["sea"],
4155
- "application/x-sh": ["sh"],
4156
- "application/x-shar": ["shar"],
4157
- "application/x-shockwave-flash": ["swf"],
4158
- "application/x-silverlight-app": ["xap"],
4159
- "application/x-sql": ["*sql"],
4160
- "application/x-stuffit": ["sit"],
4161
- "application/x-stuffitx": ["sitx"],
4162
- "application/x-subrip": ["srt"],
4163
- "application/x-sv4cpio": ["sv4cpio"],
4164
- "application/x-sv4crc": ["sv4crc"],
4165
- "application/x-t3vm-image": ["t3"],
4166
- "application/x-tads": ["gam"],
4167
- "application/x-tar": ["tar"],
4168
- "application/x-tcl": ["tcl", "tk"],
4169
- "application/x-tex": ["tex"],
4170
- "application/x-tex-tfm": ["tfm"],
4171
- "application/x-texinfo": ["texinfo", "texi"],
4172
- "application/x-tgif": ["*obj"],
4173
- "application/x-ustar": ["ustar"],
4174
- "application/x-virtualbox-hdd": ["hdd"],
4175
- "application/x-virtualbox-ova": ["ova"],
4176
- "application/x-virtualbox-ovf": ["ovf"],
4177
- "application/x-virtualbox-vbox": ["vbox"],
4178
- "application/x-virtualbox-vbox-extpack": ["vbox-extpack"],
4179
- "application/x-virtualbox-vdi": ["vdi"],
4180
- "application/x-virtualbox-vhd": ["vhd"],
4181
- "application/x-virtualbox-vmdk": ["vmdk"],
4182
- "application/x-wais-source": ["src"],
4183
- "application/x-web-app-manifest+json": ["webapp"],
4184
- "application/x-x509-ca-cert": [
4185
- "der",
4186
- "crt",
4187
- "pem"
4188
- ],
4189
- "application/x-xfig": ["fig"],
4190
- "application/x-xliff+xml": ["*xlf"],
4191
- "application/x-xpinstall": ["xpi"],
4192
- "application/x-xz": ["xz"],
4193
- "application/x-zip-compressed": ["*zip"],
4194
- "application/x-zmachine": [
4195
- "z1",
4196
- "z2",
4197
- "z3",
4198
- "z4",
4199
- "z5",
4200
- "z6",
4201
- "z7",
4202
- "z8"
4203
- ],
4204
- "audio/vnd.dece.audio": ["uva", "uvva"],
4205
- "audio/vnd.digital-winds": ["eol"],
4206
- "audio/vnd.dra": ["dra"],
4207
- "audio/vnd.dts": ["dts"],
4208
- "audio/vnd.dts.hd": ["dtshd"],
4209
- "audio/vnd.lucent.voice": ["lvp"],
4210
- "audio/vnd.ms-playready.media.pya": ["pya"],
4211
- "audio/vnd.nuera.ecelp4800": ["ecelp4800"],
4212
- "audio/vnd.nuera.ecelp7470": ["ecelp7470"],
4213
- "audio/vnd.nuera.ecelp9600": ["ecelp9600"],
4214
- "audio/vnd.rip": ["rip"],
4215
- "audio/x-aac": ["*aac"],
4216
- "audio/x-aiff": [
4217
- "aif",
4218
- "aiff",
4219
- "aifc"
4220
- ],
4221
- "audio/x-caf": ["caf"],
4222
- "audio/x-flac": ["flac"],
4223
- "audio/x-m4a": ["*m4a"],
4224
- "audio/x-matroska": ["mka"],
4225
- "audio/x-mpegurl": ["m3u"],
4226
- "audio/x-ms-wax": ["wax"],
4227
- "audio/x-ms-wma": ["wma"],
4228
- "audio/x-pn-realaudio": ["ram", "ra"],
4229
- "audio/x-pn-realaudio-plugin": ["rmp"],
4230
- "audio/x-realaudio": ["*ra"],
4231
- "audio/x-wav": ["*wav"],
4232
- "chemical/x-cdx": ["cdx"],
4233
- "chemical/x-cif": ["cif"],
4234
- "chemical/x-cmdf": ["cmdf"],
4235
- "chemical/x-cml": ["cml"],
4236
- "chemical/x-csml": ["csml"],
4237
- "chemical/x-xyz": ["xyz"],
4238
- "image/prs.btif": ["btif", "btf"],
4239
- "image/prs.pti": ["pti"],
4240
- "image/vnd.adobe.photoshop": ["psd"],
4241
- "image/vnd.airzip.accelerator.azv": ["azv"],
4242
- "image/vnd.blockfact.facti": ["facti"],
4243
- "image/vnd.dece.graphic": [
4244
- "uvi",
4245
- "uvvi",
4246
- "uvg",
4247
- "uvvg"
4248
- ],
4249
- "image/vnd.djvu": ["djvu", "djv"],
4250
- "image/vnd.dvb.subtitle": ["*sub"],
4251
- "image/vnd.dwg": ["dwg"],
4252
- "image/vnd.dxf": ["dxf"],
4253
- "image/vnd.fastbidsheet": ["fbs"],
4254
- "image/vnd.fpx": ["fpx"],
4255
- "image/vnd.fst": ["fst"],
4256
- "image/vnd.fujixerox.edmics-mmr": ["mmr"],
4257
- "image/vnd.fujixerox.edmics-rlc": ["rlc"],
4258
- "image/vnd.microsoft.icon": ["ico"],
4259
- "image/vnd.ms-dds": ["dds"],
4260
- "image/vnd.ms-modi": ["mdi"],
4261
- "image/vnd.ms-photo": ["wdp"],
4262
- "image/vnd.net-fpx": ["npx"],
4263
- "image/vnd.pco.b16": ["b16"],
4264
- "image/vnd.tencent.tap": ["tap"],
4265
- "image/vnd.valve.source.texture": ["vtf"],
4266
- "image/vnd.wap.wbmp": ["wbmp"],
4267
- "image/vnd.xiff": ["xif"],
4268
- "image/vnd.zbrush.pcx": ["pcx"],
4269
- "image/x-3ds": ["3ds"],
4270
- "image/x-adobe-dng": ["dng"],
4271
- "image/x-cmu-raster": ["ras"],
4272
- "image/x-cmx": ["cmx"],
4273
- "image/x-freehand": [
4274
- "fh",
4275
- "fhc",
4276
- "fh4",
4277
- "fh5",
4278
- "fh7"
4279
- ],
4280
- "image/x-icon": ["*ico"],
4281
- "image/x-jng": ["jng"],
4282
- "image/x-mrsid-image": ["sid"],
4283
- "image/x-ms-bmp": ["*bmp"],
4284
- "image/x-pcx": ["*pcx"],
4285
- "image/x-pict": ["pic", "pct"],
4286
- "image/x-portable-anymap": ["pnm"],
4287
- "image/x-portable-bitmap": ["pbm"],
4288
- "image/x-portable-graymap": ["pgm"],
4289
- "image/x-portable-pixmap": ["ppm"],
4290
- "image/x-rgb": ["rgb"],
4291
- "image/x-tga": ["tga"],
4292
- "image/x-xbitmap": ["xbm"],
4293
- "image/x-xpixmap": ["xpm"],
4294
- "image/x-xwindowdump": ["xwd"],
4295
- "message/vnd.wfa.wsc": ["wsc"],
4296
- "model/vnd.bary": ["bary"],
4297
- "model/vnd.cld": ["cld"],
4298
- "model/vnd.collada+xml": ["dae"],
4299
- "model/vnd.dwf": ["dwf"],
4300
- "model/vnd.gdl": ["gdl"],
4301
- "model/vnd.gtw": ["gtw"],
4302
- "model/vnd.mts": ["*mts"],
4303
- "model/vnd.opengex": ["ogex"],
4304
- "model/vnd.parasolid.transmit.binary": ["x_b"],
4305
- "model/vnd.parasolid.transmit.text": ["x_t"],
4306
- "model/vnd.pytha.pyox": ["pyo", "pyox"],
4307
- "model/vnd.sap.vds": ["vds"],
4308
- "model/vnd.usda": ["usda"],
4309
- "model/vnd.usdz+zip": ["usdz"],
4310
- "model/vnd.valve.source.compiled-map": ["bsp"],
4311
- "model/vnd.vtu": ["vtu"],
4312
- "text/prs.lines.tag": ["dsc"],
4313
- "text/vnd.curl": ["curl"],
4314
- "text/vnd.curl.dcurl": ["dcurl"],
4315
- "text/vnd.curl.mcurl": ["mcurl"],
4316
- "text/vnd.curl.scurl": ["scurl"],
4317
- "text/vnd.dvb.subtitle": ["sub"],
4318
- "text/vnd.familysearch.gedcom": ["ged"],
4319
- "text/vnd.fly": ["fly"],
4320
- "text/vnd.fmi.flexstor": ["flx"],
4321
- "text/vnd.graphviz": ["gv"],
4322
- "text/vnd.in3d.3dml": ["3dml"],
4323
- "text/vnd.in3d.spot": ["spot"],
4324
- "text/vnd.sun.j2me.app-descriptor": ["jad"],
4325
- "text/vnd.wap.wml": ["wml"],
4326
- "text/vnd.wap.wmlscript": ["wmls"],
4327
- "text/x-asm": ["s", "asm"],
4328
- "text/x-c": [
4329
- "c",
4330
- "cc",
4331
- "cxx",
4332
- "cpp",
4333
- "h",
4334
- "hh",
4335
- "dic"
4336
- ],
4337
- "text/x-component": ["htc"],
4338
- "text/x-fortran": [
4339
- "f",
4340
- "for",
4341
- "f77",
4342
- "f90"
4343
- ],
4344
- "text/x-handlebars-template": ["hbs"],
4345
- "text/x-java-source": ["java"],
4346
- "text/x-lua": ["lua"],
4347
- "text/x-markdown": ["mkd"],
4348
- "text/x-nfo": ["nfo"],
4349
- "text/x-opml": ["opml"],
4350
- "text/x-org": ["*org"],
4351
- "text/x-pascal": ["p", "pas"],
4352
- "text/x-processing": ["pde"],
4353
- "text/x-sass": ["sass"],
4354
- "text/x-scss": ["scss"],
4355
- "text/x-setext": ["etx"],
4356
- "text/x-sfv": ["sfv"],
4357
- "text/x-suse-ymp": ["ymp"],
4358
- "text/x-uuencode": ["uu"],
4359
- "text/x-vcalendar": ["vcs"],
4360
- "text/x-vcard": ["vcf"],
4361
- "video/vnd.dece.hd": ["uvh", "uvvh"],
4362
- "video/vnd.dece.mobile": ["uvm", "uvvm"],
4363
- "video/vnd.dece.pd": ["uvp", "uvvp"],
4364
- "video/vnd.dece.sd": ["uvs", "uvvs"],
4365
- "video/vnd.dece.video": ["uvv", "uvvv"],
4366
- "video/vnd.dvb.file": ["dvb"],
4367
- "video/vnd.fvt": ["fvt"],
4368
- "video/vnd.mpegurl": ["mxu", "m4u"],
4369
- "video/vnd.ms-playready.media.pyv": ["pyv"],
4370
- "video/vnd.uvvu.mp4": ["uvu", "uvvu"],
4371
- "video/vnd.vivo": ["viv"],
4372
- "video/x-f4v": ["f4v"],
4373
- "video/x-fli": ["fli"],
4374
- "video/x-flv": ["flv"],
4375
- "video/x-m4v": ["m4v"],
4376
- "video/x-matroska": [
4377
- "mkv",
4378
- "mk3d",
4379
- "mks"
4380
- ],
4381
- "video/x-mng": ["mng"],
4382
- "video/x-ms-asf": ["asf", "asx"],
4383
- "video/x-ms-vob": ["vob"],
4384
- "video/x-ms-wm": ["wm"],
4385
- "video/x-ms-wmv": ["wmv"],
4386
- "video/x-ms-wmx": ["wmx"],
4387
- "video/x-ms-wvx": ["wvx"],
4388
- "video/x-msvideo": ["avi"],
4389
- "video/x-sgi-movie": ["movie"],
4390
- "video/x-smv": ["smv"],
4391
- "x-conference/x-cooltalk": ["ice"]
4392
- };
4393
- Object.freeze(types$1);
4394
3805
  //#endregion
4395
- //#region ../../node_modules/.bun/mime@4.1.0/node_modules/mime/dist/types/standard.js
4396
- const types = {
4397
- "application/andrew-inset": ["ez"],
4398
- "application/appinstaller": ["appinstaller"],
4399
- "application/applixware": ["aw"],
4400
- "application/appx": ["appx"],
4401
- "application/appxbundle": ["appxbundle"],
4402
- "application/atom+xml": ["atom"],
4403
- "application/atomcat+xml": ["atomcat"],
4404
- "application/atomdeleted+xml": ["atomdeleted"],
4405
- "application/atomsvc+xml": ["atomsvc"],
4406
- "application/atsc-dwd+xml": ["dwd"],
4407
- "application/atsc-held+xml": ["held"],
4408
- "application/atsc-rsat+xml": ["rsat"],
4409
- "application/automationml-aml+xml": ["aml"],
4410
- "application/automationml-amlx+zip": ["amlx"],
4411
- "application/bdoc": ["bdoc"],
4412
- "application/calendar+xml": ["xcs"],
4413
- "application/ccxml+xml": ["ccxml"],
4414
- "application/cdfx+xml": ["cdfx"],
4415
- "application/cdmi-capability": ["cdmia"],
4416
- "application/cdmi-container": ["cdmic"],
4417
- "application/cdmi-domain": ["cdmid"],
4418
- "application/cdmi-object": ["cdmio"],
4419
- "application/cdmi-queue": ["cdmiq"],
4420
- "application/cpl+xml": ["cpl"],
4421
- "application/cu-seeme": ["cu"],
4422
- "application/cwl": ["cwl"],
4423
- "application/dash+xml": ["mpd"],
4424
- "application/dash-patch+xml": ["mpp"],
4425
- "application/davmount+xml": ["davmount"],
4426
- "application/dicom": ["dcm"],
4427
- "application/docbook+xml": ["dbk"],
4428
- "application/dssc+der": ["dssc"],
4429
- "application/dssc+xml": ["xdssc"],
4430
- "application/ecmascript": ["ecma"],
4431
- "application/emma+xml": ["emma"],
4432
- "application/emotionml+xml": ["emotionml"],
4433
- "application/epub+zip": ["epub"],
4434
- "application/exi": ["exi"],
4435
- "application/express": ["exp"],
4436
- "application/fdf": ["fdf"],
4437
- "application/fdt+xml": ["fdt"],
4438
- "application/font-tdpfr": ["pfr"],
4439
- "application/geo+json": ["geojson"],
4440
- "application/gml+xml": ["gml"],
4441
- "application/gpx+xml": ["gpx"],
4442
- "application/gxf": ["gxf"],
4443
- "application/gzip": ["gz"],
4444
- "application/hjson": ["hjson"],
4445
- "application/hyperstudio": ["stk"],
4446
- "application/inkml+xml": ["ink", "inkml"],
4447
- "application/ipfix": ["ipfix"],
4448
- "application/its+xml": ["its"],
4449
- "application/java-archive": [
4450
- "jar",
4451
- "war",
4452
- "ear"
4453
- ],
4454
- "application/java-serialized-object": ["ser"],
4455
- "application/java-vm": ["class"],
4456
- "application/javascript": ["*js"],
4457
- "application/json": ["json", "map"],
4458
- "application/json5": ["json5"],
4459
- "application/jsonml+json": ["jsonml"],
4460
- "application/ld+json": ["jsonld"],
4461
- "application/lgr+xml": ["lgr"],
4462
- "application/lost+xml": ["lostxml"],
4463
- "application/mac-binhex40": ["hqx"],
4464
- "application/mac-compactpro": ["cpt"],
4465
- "application/mads+xml": ["mads"],
4466
- "application/manifest+json": ["webmanifest"],
4467
- "application/marc": ["mrc"],
4468
- "application/marcxml+xml": ["mrcx"],
4469
- "application/mathematica": [
4470
- "ma",
4471
- "nb",
4472
- "mb"
4473
- ],
4474
- "application/mathml+xml": ["mathml"],
4475
- "application/mbox": ["mbox"],
4476
- "application/media-policy-dataset+xml": ["mpf"],
4477
- "application/mediaservercontrol+xml": ["mscml"],
4478
- "application/metalink+xml": ["metalink"],
4479
- "application/metalink4+xml": ["meta4"],
4480
- "application/mets+xml": ["mets"],
4481
- "application/mmt-aei+xml": ["maei"],
4482
- "application/mmt-usd+xml": ["musd"],
4483
- "application/mods+xml": ["mods"],
4484
- "application/mp21": ["m21", "mp21"],
4485
- "application/mp4": [
4486
- "*mp4",
4487
- "*mpg4",
4488
- "mp4s",
4489
- "m4p"
4490
- ],
4491
- "application/msix": ["msix"],
4492
- "application/msixbundle": ["msixbundle"],
4493
- "application/msword": ["doc", "dot"],
4494
- "application/mxf": ["mxf"],
4495
- "application/n-quads": ["nq"],
4496
- "application/n-triples": ["nt"],
4497
- "application/node": ["cjs"],
4498
- "application/octet-stream": [
4499
- "bin",
4500
- "dms",
4501
- "lrf",
4502
- "mar",
4503
- "so",
4504
- "dist",
4505
- "distz",
4506
- "pkg",
4507
- "bpk",
4508
- "dump",
4509
- "elc",
4510
- "deploy",
4511
- "exe",
4512
- "dll",
4513
- "deb",
4514
- "dmg",
4515
- "iso",
4516
- "img",
4517
- "msi",
4518
- "msp",
4519
- "msm",
4520
- "buffer"
4521
- ],
4522
- "application/oda": ["oda"],
4523
- "application/oebps-package+xml": ["opf"],
4524
- "application/ogg": ["ogx"],
4525
- "application/omdoc+xml": ["omdoc"],
4526
- "application/onenote": [
4527
- "onetoc",
4528
- "onetoc2",
4529
- "onetmp",
4530
- "onepkg",
4531
- "one",
4532
- "onea"
4533
- ],
4534
- "application/oxps": ["oxps"],
4535
- "application/p2p-overlay+xml": ["relo"],
4536
- "application/patch-ops-error+xml": ["xer"],
4537
- "application/pdf": ["pdf"],
4538
- "application/pgp-encrypted": ["pgp"],
4539
- "application/pgp-keys": ["asc"],
4540
- "application/pgp-signature": ["sig", "*asc"],
4541
- "application/pics-rules": ["prf"],
4542
- "application/pkcs10": ["p10"],
4543
- "application/pkcs7-mime": ["p7m", "p7c"],
4544
- "application/pkcs7-signature": ["p7s"],
4545
- "application/pkcs8": ["p8"],
4546
- "application/pkix-attr-cert": ["ac"],
4547
- "application/pkix-cert": ["cer"],
4548
- "application/pkix-crl": ["crl"],
4549
- "application/pkix-pkipath": ["pkipath"],
4550
- "application/pkixcmp": ["pki"],
4551
- "application/pls+xml": ["pls"],
4552
- "application/postscript": [
4553
- "ai",
4554
- "eps",
4555
- "ps"
4556
- ],
4557
- "application/provenance+xml": ["provx"],
4558
- "application/pskc+xml": ["pskcxml"],
4559
- "application/raml+yaml": ["raml"],
4560
- "application/rdf+xml": ["rdf", "owl"],
4561
- "application/reginfo+xml": ["rif"],
4562
- "application/relax-ng-compact-syntax": ["rnc"],
4563
- "application/resource-lists+xml": ["rl"],
4564
- "application/resource-lists-diff+xml": ["rld"],
4565
- "application/rls-services+xml": ["rs"],
4566
- "application/route-apd+xml": ["rapd"],
4567
- "application/route-s-tsid+xml": ["sls"],
4568
- "application/route-usd+xml": ["rusd"],
4569
- "application/rpki-ghostbusters": ["gbr"],
4570
- "application/rpki-manifest": ["mft"],
4571
- "application/rpki-roa": ["roa"],
4572
- "application/rsd+xml": ["rsd"],
4573
- "application/rss+xml": ["rss"],
4574
- "application/rtf": ["rtf"],
4575
- "application/sbml+xml": ["sbml"],
4576
- "application/scvp-cv-request": ["scq"],
4577
- "application/scvp-cv-response": ["scs"],
4578
- "application/scvp-vp-request": ["spq"],
4579
- "application/scvp-vp-response": ["spp"],
4580
- "application/sdp": ["sdp"],
4581
- "application/senml+xml": ["senmlx"],
4582
- "application/sensml+xml": ["sensmlx"],
4583
- "application/set-payment-initiation": ["setpay"],
4584
- "application/set-registration-initiation": ["setreg"],
4585
- "application/shf+xml": ["shf"],
4586
- "application/sieve": ["siv", "sieve"],
4587
- "application/smil+xml": ["smi", "smil"],
4588
- "application/sparql-query": ["rq"],
4589
- "application/sparql-results+xml": ["srx"],
4590
- "application/sql": ["sql"],
4591
- "application/srgs": ["gram"],
4592
- "application/srgs+xml": ["grxml"],
4593
- "application/sru+xml": ["sru"],
4594
- "application/ssdl+xml": ["ssdl"],
4595
- "application/ssml+xml": ["ssml"],
4596
- "application/swid+xml": ["swidtag"],
4597
- "application/tei+xml": ["tei", "teicorpus"],
4598
- "application/thraud+xml": ["tfi"],
4599
- "application/timestamped-data": ["tsd"],
4600
- "application/toml": ["toml"],
4601
- "application/trig": ["trig"],
4602
- "application/ttml+xml": ["ttml"],
4603
- "application/ubjson": ["ubj"],
4604
- "application/urc-ressheet+xml": ["rsheet"],
4605
- "application/urc-targetdesc+xml": ["td"],
4606
- "application/voicexml+xml": ["vxml"],
4607
- "application/wasm": ["wasm"],
4608
- "application/watcherinfo+xml": ["wif"],
4609
- "application/widget": ["wgt"],
4610
- "application/winhlp": ["hlp"],
4611
- "application/wsdl+xml": ["wsdl"],
4612
- "application/wspolicy+xml": ["wspolicy"],
4613
- "application/xaml+xml": ["xaml"],
4614
- "application/xcap-att+xml": ["xav"],
4615
- "application/xcap-caps+xml": ["xca"],
4616
- "application/xcap-diff+xml": ["xdf"],
4617
- "application/xcap-el+xml": ["xel"],
4618
- "application/xcap-ns+xml": ["xns"],
4619
- "application/xenc+xml": ["xenc"],
4620
- "application/xfdf": ["xfdf"],
4621
- "application/xhtml+xml": ["xhtml", "xht"],
4622
- "application/xliff+xml": ["xlf"],
4623
- "application/xml": [
4624
- "xml",
4625
- "xsl",
4626
- "xsd",
4627
- "rng"
4628
- ],
4629
- "application/xml-dtd": ["dtd"],
4630
- "application/xop+xml": ["xop"],
4631
- "application/xproc+xml": ["xpl"],
4632
- "application/xslt+xml": ["*xsl", "xslt"],
4633
- "application/xspf+xml": ["xspf"],
4634
- "application/xv+xml": [
4635
- "mxml",
4636
- "xhvml",
4637
- "xvml",
4638
- "xvm"
4639
- ],
4640
- "application/yang": ["yang"],
4641
- "application/yin+xml": ["yin"],
4642
- "application/zip": ["zip"],
4643
- "application/zip+dotlottie": ["lottie"],
4644
- "audio/3gpp": ["*3gpp"],
4645
- "audio/aac": ["adts", "aac"],
4646
- "audio/adpcm": ["adp"],
4647
- "audio/amr": ["amr"],
4648
- "audio/basic": ["au", "snd"],
4649
- "audio/midi": [
4650
- "mid",
4651
- "midi",
4652
- "kar",
4653
- "rmi"
4654
- ],
4655
- "audio/mobile-xmf": ["mxmf"],
4656
- "audio/mp3": ["*mp3"],
4657
- "audio/mp4": [
4658
- "m4a",
4659
- "mp4a",
4660
- "m4b"
4661
- ],
4662
- "audio/mpeg": [
4663
- "mpga",
4664
- "mp2",
4665
- "mp2a",
4666
- "mp3",
4667
- "m2a",
4668
- "m3a"
4669
- ],
4670
- "audio/ogg": [
4671
- "oga",
4672
- "ogg",
4673
- "spx",
4674
- "opus"
4675
- ],
4676
- "audio/s3m": ["s3m"],
4677
- "audio/silk": ["sil"],
4678
- "audio/wav": ["wav"],
4679
- "audio/wave": ["*wav"],
4680
- "audio/webm": ["weba"],
4681
- "audio/xm": ["xm"],
4682
- "font/collection": ["ttc"],
4683
- "font/otf": ["otf"],
4684
- "font/ttf": ["ttf"],
4685
- "font/woff": ["woff"],
4686
- "font/woff2": ["woff2"],
4687
- "image/aces": ["exr"],
4688
- "image/apng": ["apng"],
4689
- "image/avci": ["avci"],
4690
- "image/avcs": ["avcs"],
4691
- "image/avif": ["avif"],
4692
- "image/bmp": ["bmp", "dib"],
4693
- "image/cgm": ["cgm"],
4694
- "image/dicom-rle": ["drle"],
4695
- "image/dpx": ["dpx"],
4696
- "image/emf": ["emf"],
4697
- "image/fits": ["fits"],
4698
- "image/g3fax": ["g3"],
4699
- "image/gif": ["gif"],
4700
- "image/heic": ["heic"],
4701
- "image/heic-sequence": ["heics"],
4702
- "image/heif": ["heif"],
4703
- "image/heif-sequence": ["heifs"],
4704
- "image/hej2k": ["hej2"],
4705
- "image/ief": ["ief"],
4706
- "image/jaii": ["jaii"],
4707
- "image/jais": ["jais"],
4708
- "image/jls": ["jls"],
4709
- "image/jp2": ["jp2", "jpg2"],
4710
- "image/jpeg": [
4711
- "jpg",
4712
- "jpeg",
4713
- "jpe"
4714
- ],
4715
- "image/jph": ["jph"],
4716
- "image/jphc": ["jhc"],
4717
- "image/jpm": ["jpm", "jpgm"],
4718
- "image/jpx": ["jpx", "jpf"],
4719
- "image/jxl": ["jxl"],
4720
- "image/jxr": ["jxr"],
4721
- "image/jxra": ["jxra"],
4722
- "image/jxrs": ["jxrs"],
4723
- "image/jxs": ["jxs"],
4724
- "image/jxsc": ["jxsc"],
4725
- "image/jxsi": ["jxsi"],
4726
- "image/jxss": ["jxss"],
4727
- "image/ktx": ["ktx"],
4728
- "image/ktx2": ["ktx2"],
4729
- "image/pjpeg": ["jfif"],
4730
- "image/png": ["png"],
4731
- "image/sgi": ["sgi"],
4732
- "image/svg+xml": ["svg", "svgz"],
4733
- "image/t38": ["t38"],
4734
- "image/tiff": ["tif", "tiff"],
4735
- "image/tiff-fx": ["tfx"],
4736
- "image/webp": ["webp"],
4737
- "image/wmf": ["wmf"],
4738
- "message/disposition-notification": ["disposition-notification"],
4739
- "message/global": ["u8msg"],
4740
- "message/global-delivery-status": ["u8dsn"],
4741
- "message/global-disposition-notification": ["u8mdn"],
4742
- "message/global-headers": ["u8hdr"],
4743
- "message/rfc822": [
4744
- "eml",
4745
- "mime",
4746
- "mht",
4747
- "mhtml"
4748
- ],
4749
- "model/3mf": ["3mf"],
4750
- "model/gltf+json": ["gltf"],
4751
- "model/gltf-binary": ["glb"],
4752
- "model/iges": ["igs", "iges"],
4753
- "model/jt": ["jt"],
4754
- "model/mesh": [
4755
- "msh",
4756
- "mesh",
4757
- "silo"
4758
- ],
4759
- "model/mtl": ["mtl"],
4760
- "model/obj": ["obj"],
4761
- "model/prc": ["prc"],
4762
- "model/step": [
4763
- "step",
4764
- "stp",
4765
- "stpnc",
4766
- "p21",
4767
- "210"
4768
- ],
4769
- "model/step+xml": ["stpx"],
4770
- "model/step+zip": ["stpz"],
4771
- "model/step-xml+zip": ["stpxz"],
4772
- "model/stl": ["stl"],
4773
- "model/u3d": ["u3d"],
4774
- "model/vrml": ["wrl", "vrml"],
4775
- "model/x3d+binary": ["*x3db", "x3dbz"],
4776
- "model/x3d+fastinfoset": ["x3db"],
4777
- "model/x3d+vrml": ["*x3dv", "x3dvz"],
4778
- "model/x3d+xml": ["x3d", "x3dz"],
4779
- "model/x3d-vrml": ["x3dv"],
4780
- "text/cache-manifest": ["appcache", "manifest"],
4781
- "text/calendar": ["ics", "ifb"],
4782
- "text/coffeescript": ["coffee", "litcoffee"],
4783
- "text/css": ["css"],
4784
- "text/csv": ["csv"],
4785
- "text/html": [
4786
- "html",
4787
- "htm",
4788
- "shtml"
4789
- ],
4790
- "text/jade": ["jade"],
4791
- "text/javascript": ["js", "mjs"],
4792
- "text/jsx": ["jsx"],
4793
- "text/less": ["less"],
4794
- "text/markdown": ["md", "markdown"],
4795
- "text/mathml": ["mml"],
4796
- "text/mdx": ["mdx"],
4797
- "text/n3": ["n3"],
4798
- "text/plain": [
4799
- "txt",
4800
- "text",
4801
- "conf",
4802
- "def",
4803
- "list",
4804
- "log",
4805
- "in",
4806
- "ini"
4807
- ],
4808
- "text/richtext": ["rtx"],
4809
- "text/rtf": ["*rtf"],
4810
- "text/sgml": ["sgml", "sgm"],
4811
- "text/shex": ["shex"],
4812
- "text/slim": ["slim", "slm"],
4813
- "text/spdx": ["spdx"],
4814
- "text/stylus": ["stylus", "styl"],
4815
- "text/tab-separated-values": ["tsv"],
4816
- "text/troff": [
4817
- "t",
4818
- "tr",
4819
- "roff",
4820
- "man",
4821
- "me",
4822
- "ms"
4823
- ],
4824
- "text/turtle": ["ttl"],
4825
- "text/uri-list": [
4826
- "uri",
4827
- "uris",
4828
- "urls"
4829
- ],
4830
- "text/vcard": ["vcard"],
4831
- "text/vtt": ["vtt"],
4832
- "text/wgsl": ["wgsl"],
4833
- "text/xml": ["*xml"],
4834
- "text/yaml": ["yaml", "yml"],
4835
- "video/3gpp": ["3gp", "3gpp"],
4836
- "video/3gpp2": ["3g2"],
4837
- "video/h261": ["h261"],
4838
- "video/h263": ["h263"],
4839
- "video/h264": ["h264"],
4840
- "video/iso.segment": ["m4s"],
4841
- "video/jpeg": ["jpgv"],
4842
- "video/jpm": ["*jpm", "*jpgm"],
4843
- "video/mj2": ["mj2", "mjp2"],
4844
- "video/mp2t": [
4845
- "ts",
4846
- "m2t",
4847
- "m2ts",
4848
- "mts"
4849
- ],
4850
- "video/mp4": [
4851
- "mp4",
4852
- "mp4v",
4853
- "mpg4"
4854
- ],
4855
- "video/mpeg": [
4856
- "mpeg",
4857
- "mpg",
4858
- "mpe",
4859
- "m1v",
4860
- "m2v"
4861
- ],
4862
- "video/ogg": ["ogv"],
4863
- "video/quicktime": ["qt", "mov"],
4864
- "video/webm": ["webm"]
3806
+ //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpServer.js
3807
+ /**
3808
+ * @since 1.0.0
3809
+ */
3810
+ /**
3811
+ * @since 1.0.0
3812
+ * @category constructors
3813
+ */
3814
+ const make = /* @__PURE__ */ require_Schema.fnUntraced(function* (evaluate, options) {
3815
+ const scope$1 = yield* require_Schema.scope;
3816
+ const server = evaluate();
3817
+ const shutdown = yield* require_Schema.callback((resume) => {
3818
+ if (!server.listening) return resume(require_Schema.void_);
3819
+ server.close((error) => {
3820
+ if (error) resume(require_Schema.die(error));
3821
+ else resume(require_Schema.void_);
3822
+ });
3823
+ }).pipe(require_Schema.cached);
3824
+ const preemptiveShutdown = options.disablePreemptiveShutdown ? require_Schema.void_ : require_Schema.timeoutOrElse(shutdown, {
3825
+ duration: options.gracefulShutdownTimeout ?? require_Schema.seconds(20),
3826
+ orElse: () => require_Schema.void_
3827
+ });
3828
+ yield* require_Schema.addFinalizer$1(scope$1, shutdown);
3829
+ yield* require_Schema.callback((resume) => {
3830
+ function onError(cause) {
3831
+ resume(require_Schema.fail(new require_HttpServer.ServeError({ cause })));
3832
+ }
3833
+ server.on("error", onError);
3834
+ server.listen(options, () => {
3835
+ server.off("error", onError);
3836
+ resume(require_Schema.void_);
3837
+ });
3838
+ });
3839
+ const address = server.address();
3840
+ const wss = yield* require_Schema.acquireRelease(require_Schema.sync(() => new import_websocket_server.default({ noServer: true })), (wss) => require_Schema.callback((resume) => {
3841
+ wss.close(() => resume(require_Schema.void_));
3842
+ })).pipe(require_Schema.provide$2(scope$1), require_Schema.cached);
3843
+ return require_HttpServer.make({
3844
+ address: typeof address === "string" ? {
3845
+ _tag: "UnixAddress",
3846
+ path: address
3847
+ } : {
3848
+ _tag: "TcpAddress",
3849
+ hostname: address.address === "::" ? "0.0.0.0" : address.address,
3850
+ port: address.port
3851
+ },
3852
+ serve: require_Schema.fnUntraced(function* (httpApp, middleware) {
3853
+ const serveScope = yield* require_Schema.scope;
3854
+ const scope$2 = require_Schema.forkUnsafe(serveScope, "parallel");
3855
+ const handler = yield* makeHandler(httpApp, {
3856
+ middleware,
3857
+ scope: scope$2
3858
+ });
3859
+ const upgradeHandler = yield* makeUpgradeHandler(wss, httpApp, {
3860
+ middleware,
3861
+ scope: scope$2
3862
+ });
3863
+ yield* require_Schema.addFinalizerExit(serveScope, () => {
3864
+ server.off("request", handler);
3865
+ server.off("upgrade", upgradeHandler);
3866
+ return preemptiveShutdown;
3867
+ });
3868
+ server.on("request", handler);
3869
+ server.on("upgrade", upgradeHandler);
3870
+ })
3871
+ });
3872
+ });
3873
+ /**
3874
+ * @since 1.0.0
3875
+ * @category Handlers
3876
+ */
3877
+ const makeHandler = (httpEffect, options) => {
3878
+ const handled = require_HttpServer.toHandled(httpEffect, handleResponse, options.middleware);
3879
+ return require_Schema.withFiber((parent) => {
3880
+ const services = parent.context;
3881
+ return require_Schema.succeed(function handler(nodeRequest, nodeResponse) {
3882
+ const map = new Map(services.mapUnsafe);
3883
+ map.set(require_HttpServer.HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse));
3884
+ const fiber = require_Path.runIn(require_Schema.runForkWith(require_Schema.makeUnsafe$3(map))(handled), options.scope);
3885
+ nodeResponse.on("close", () => {
3886
+ if (!nodeResponse.writableEnded) fiber.interruptUnsafe(parent.id, require_HttpServer.ClientAbort.annotation);
3887
+ });
3888
+ });
3889
+ });
4865
3890
  };
4866
- Object.freeze(types);
4867
- //#endregion
4868
- //#region ../../node_modules/.bun/mime@4.1.0/node_modules/mime/dist/src/Mime.js
4869
- var __classPrivateFieldGet = function(receiver, state, kind, f) {
4870
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
4871
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4872
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
3891
+ /**
3892
+ * @since 1.0.0
3893
+ * @category Handlers
3894
+ */
3895
+ const makeUpgradeHandler = (lazyWss, httpEffect, options) => {
3896
+ const handledApp = require_HttpServer.toHandled(httpEffect, handleResponse, options.middleware);
3897
+ return require_Schema.withFiber((parent) => {
3898
+ const services = parent.context;
3899
+ return require_Schema.succeed(function handler(nodeRequest, socket, head) {
3900
+ let nodeResponse_ = void 0;
3901
+ const nodeResponse = () => {
3902
+ if (nodeResponse_ === void 0) {
3903
+ nodeResponse_ = new node_http.ServerResponse(nodeRequest);
3904
+ nodeResponse_.assignSocket(socket);
3905
+ nodeResponse_.on("finish", () => {
3906
+ socket.end();
3907
+ });
3908
+ }
3909
+ return nodeResponse_;
3910
+ };
3911
+ const upgradeEffect = require_HttpServer.fromWebSocket(require_Schema.flatMap(lazyWss, (wss) => require_Schema.acquireRelease(require_Schema.callback((resume) => wss.handleUpgrade(nodeRequest, socket, head, (ws) => {
3912
+ resume(require_Schema.succeed(ws));
3913
+ })), (ws) => require_Schema.sync(() => ws.close()))));
3914
+ const map = new Map(services.mapUnsafe);
3915
+ map.set(require_HttpServer.HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse, upgradeEffect));
3916
+ const fiber = require_Path.runIn(require_Schema.runForkWith(require_Schema.makeUnsafe$3(map))(handledApp), options.scope);
3917
+ socket.on("close", () => {
3918
+ if (!socket.writableEnded) fiber.interruptUnsafe(parent.id, require_HttpServer.ClientAbort.annotation);
3919
+ });
3920
+ });
3921
+ });
4873
3922
  };
4874
- var _Mime_extensionToType, _Mime_typeToExtension, _Mime_typeToExtensions;
4875
- var Mime = class {
4876
- constructor(...args) {
4877
- _Mime_extensionToType.set(this, /* @__PURE__ */ new Map());
4878
- _Mime_typeToExtension.set(this, /* @__PURE__ */ new Map());
4879
- _Mime_typeToExtensions.set(this, /* @__PURE__ */ new Map());
4880
- for (const arg of args) this.define(arg);
3923
+ var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage {
3924
+ [require_HttpServer.TypeId];
3925
+ response;
3926
+ upgradeEffect;
3927
+ url;
3928
+ headersOverride;
3929
+ constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
3930
+ super(source, (cause) => new require_HttpServer.HttpServerError({ reason: new require_HttpServer.RequestParseError({
3931
+ request: this,
3932
+ cause
3933
+ }) }), remoteAddressOverride);
3934
+ this[require_HttpServer.TypeId] = require_HttpServer.TypeId;
3935
+ this.response = response;
3936
+ this.upgradeEffect = upgradeEffect;
3937
+ this.url = url;
3938
+ this.headersOverride = headersOverride;
4881
3939
  }
4882
- define(typeMap, force = false) {
4883
- for (let [type, extensions] of Object.entries(typeMap)) {
4884
- type = type.toLowerCase();
4885
- extensions = extensions.map((ext) => ext.toLowerCase());
4886
- if (!__classPrivateFieldGet(this, _Mime_typeToExtensions, "f").has(type)) __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").set(type, /* @__PURE__ */ new Set());
4887
- const allExtensions = __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type);
4888
- let first = true;
4889
- for (let extension of extensions) {
4890
- const starred = extension.startsWith("*");
4891
- extension = starred ? extension.slice(1) : extension;
4892
- allExtensions?.add(extension);
4893
- if (first) __classPrivateFieldGet(this, _Mime_typeToExtension, "f").set(type, extension);
4894
- first = false;
4895
- if (starred) continue;
4896
- const currentType = __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(extension);
4897
- if (currentType && currentType != type && !force) throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);
4898
- __classPrivateFieldGet(this, _Mime_extensionToType, "f").set(extension, type);
4899
- }
4900
- }
4901
- return this;
3940
+ cachedCookies;
3941
+ get cookies() {
3942
+ if (this.cachedCookies) return this.cachedCookies;
3943
+ return this.cachedCookies = require_HttpServer.parseHeader(this.headers.cookie ?? "");
4902
3944
  }
4903
- getType(path) {
4904
- if (typeof path !== "string") return null;
4905
- const last = path.replace(/^.*[/\\]/s, "").toLowerCase();
4906
- const ext = last.replace(/^.*\./s, "").toLowerCase();
4907
- const hasPath = last.length < path.length;
4908
- if (!(ext.length < last.length - 1) && hasPath) return null;
4909
- return __classPrivateFieldGet(this, _Mime_extensionToType, "f").get(ext) ?? null;
3945
+ get resolvedResponse() {
3946
+ return typeof this.response === "function" ? this.response() : this.response;
4910
3947
  }
4911
- getExtension(type) {
4912
- if (typeof type !== "string") return null;
4913
- type = type?.split?.(";")[0];
4914
- return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
3948
+ modify(options) {
3949
+ return new ServerRequestImpl(this.source, this.response, this.upgradeEffect, options.url ?? this.url, options.headers ?? this.headersOverride, "remoteAddress" in options ? options.remoteAddress : this.remoteAddressOverride);
4915
3950
  }
4916
- getAllExtensions(type) {
4917
- if (typeof type !== "string") return null;
4918
- return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
3951
+ get originalUrl() {
3952
+ return this.source.url;
4919
3953
  }
4920
- _freeze() {
4921
- this.define = () => {
4922
- throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
4923
- };
4924
- Object.freeze(this);
4925
- for (const extensions of __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").values()) Object.freeze(extensions);
4926
- return this;
3954
+ get method() {
3955
+ return this.source.method.toUpperCase();
4927
3956
  }
4928
- _getTestState() {
4929
- return {
4930
- types: __classPrivateFieldGet(this, _Mime_extensionToType, "f"),
4931
- extensions: __classPrivateFieldGet(this, _Mime_typeToExtension, "f")
4932
- };
3957
+ get headers() {
3958
+ this.headersOverride ??= this.source.headers;
3959
+ return this.headersOverride;
3960
+ }
3961
+ multipartEffect;
3962
+ get multipart() {
3963
+ if (this.multipartEffect) return this.multipartEffect;
3964
+ this.multipartEffect = require_Schema.runSync(require_Schema.cached(persisted(this.source, this.source.headers)));
3965
+ return this.multipartEffect;
3966
+ }
3967
+ get multipartStream() {
3968
+ return stream(this.source, this.source.headers);
3969
+ }
3970
+ get upgrade() {
3971
+ return this.upgradeEffect ?? require_Schema.fail(new require_HttpServer.HttpServerError({ reason: new require_HttpServer.RequestParseError({
3972
+ request: this,
3973
+ description: "not an upgradeable ServerRequest"
3974
+ }) }));
3975
+ }
3976
+ toString() {
3977
+ return `ServerRequest(${this.method} ${this.url})`;
3978
+ }
3979
+ toJSON() {
3980
+ return require_HttpServer.inspect(this, {
3981
+ _id: "HttpServerRequest",
3982
+ method: this.method,
3983
+ url: this.originalUrl
3984
+ });
4933
3985
  }
4934
3986
  };
4935
- _Mime_extensionToType = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtension = /* @__PURE__ */ new WeakMap(), _Mime_typeToExtensions = /* @__PURE__ */ new WeakMap();
4936
- //#endregion
4937
- //#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/Mime.js
4938
3987
  /**
4939
3988
  * @since 1.0.0
3989
+ * @category Layers
4940
3990
  */
3991
+ const layerServer = /* @__PURE__ */ require_Schema.flow(make, /* @__PURE__ */ require_Schema.effect(require_HttpServer.HttpServer));
4941
3992
  /**
4942
3993
  * @since 1.0.0
4943
- * @category re-exports
3994
+ * @category Layers
4944
3995
  */
4945
- var Mime_default = new Mime(types, types$1)._freeze();
4946
- //#endregion
4947
- Object.defineProperty(exports, "Mime_default", {
4948
- enumerable: true,
4949
- get: function() {
4950
- return Mime_default;
3996
+ const layerHttpServices = /* @__PURE__ */ require_Schema.mergeAll(layer$1, require_HttpServer.layerWeak, require_NodeServices.layer);
3997
+ /**
3998
+ * @since 1.0.0
3999
+ * @category Layers
4000
+ */
4001
+ const layer = (evaluate, options) => require_Schema.mergeAll(layerServer(evaluate, options), layerHttpServices);
4002
+ /**
4003
+ * @since 1.0.0
4004
+ * @category Layers
4005
+ */
4006
+ const layerConfig = (evaluate, options) => require_Schema.mergeAll(require_Schema.effect(require_HttpServer.HttpServer)(require_Schema.flatMap(require_Config.unwrap(options).asEffect(), (options) => make(evaluate, options))), layerHttpServices);
4007
+ /**
4008
+ * @since 1.0.0
4009
+ * @category Testing
4010
+ */
4011
+ const layerTest = /* @__PURE__ */ require_HttpServer.layerTestClient.pipe(/* @__PURE__ */ require_Schema.provide$1(/* @__PURE__ */ require_Schema.fresh(require_HttpServer.layer).pipe(/* @__PURE__ */ require_Schema.provide$1(/* @__PURE__ */ require_Schema.succeed$1(require_HttpServer.RequestInit)({ keepalive: false })))), /* @__PURE__ */ require_Schema.provideMerge(/* @__PURE__ */ layer(node_http.createServer, { port: 0 })));
4012
+ const handleResponse = (request, response) => {
4013
+ const nodeResponse = request.resolvedResponse;
4014
+ if (nodeResponse.writableEnded) return require_Schema.void_;
4015
+ let headers = response.headers;
4016
+ if (!require_HttpServer.isEmpty(response.cookies)) {
4017
+ headers = { ...headers };
4018
+ const toSet = require_HttpServer.toSetCookieHeaders(response.cookies);
4019
+ if (headers["set-cookie"] !== void 0) toSet.push(headers["set-cookie"]);
4020
+ headers["set-cookie"] = toSet;
4951
4021
  }
4952
- });
4953
- Object.defineProperty(exports, "import_websocket_server", {
4954
- enumerable: true,
4955
- get: function() {
4956
- return import_websocket_server;
4022
+ if (request.method === "HEAD") {
4023
+ nodeResponse.writeHead(response.status, headers);
4024
+ return require_Schema.callback((resume) => {
4025
+ nodeResponse.end(() => resume(require_Schema.void_));
4026
+ });
4957
4027
  }
4958
- });
4959
- Object.defineProperty(exports, "wrapper_default", {
4960
- enumerable: true,
4961
- get: function() {
4962
- return wrapper_default;
4028
+ const body = response.body;
4029
+ switch (body._tag) {
4030
+ case "Empty":
4031
+ nodeResponse.writeHead(response.status, headers);
4032
+ nodeResponse.end();
4033
+ return require_Schema.void_;
4034
+ case "Raw":
4035
+ nodeResponse.writeHead(response.status, headers);
4036
+ if (typeof body.body === "object" && body.body !== null && "pipe" in body.body && typeof body.body.pipe === "function") return require_Schema.tryPromise({
4037
+ try: (signal) => (0, node_stream_promises.pipeline)(body.body, nodeResponse, {
4038
+ signal,
4039
+ end: true
4040
+ }),
4041
+ catch: (cause) => new require_HttpServer.HttpServerError({ reason: new require_HttpServer.ResponseError({
4042
+ request,
4043
+ response,
4044
+ description: "Error writing raw response",
4045
+ cause
4046
+ }) })
4047
+ }).pipe(require_Schema.interruptible, require_Schema.tapCause(handleCause(nodeResponse, response)));
4048
+ return require_Schema.callback((resume) => {
4049
+ nodeResponse.end(body.body, () => resume(require_Schema.void_));
4050
+ });
4051
+ case "Uint8Array":
4052
+ nodeResponse.writeHead(response.status, headers);
4053
+ if (body.body.length < 1024 * 1024) {
4054
+ nodeResponse.end(body.body);
4055
+ return require_Schema.void_;
4056
+ }
4057
+ return require_Schema.callback((resume) => {
4058
+ nodeResponse.end(body.body, () => resume(require_Schema.void_));
4059
+ });
4060
+ case "FormData": return require_Schema.suspend$1(() => {
4061
+ const r = new globalThis.Response(body.formData);
4062
+ nodeResponse.writeHead(response.status, {
4063
+ ...headers,
4064
+ ...Object.fromEntries(r.headers)
4065
+ });
4066
+ return require_Schema.callback((resume, signal) => {
4067
+ node_stream.Readable.fromWeb(r.body, { signal }).pipe(nodeResponse).on("error", (cause) => {
4068
+ resume(require_Schema.fail(new require_HttpServer.HttpServerError({ reason: new require_HttpServer.ResponseError({
4069
+ request,
4070
+ response,
4071
+ description: "Error writing FormData response",
4072
+ cause
4073
+ }) })));
4074
+ }).once("finish", () => {
4075
+ resume(require_Schema.void_);
4076
+ });
4077
+ }).pipe(require_Schema.interruptible, require_Schema.tapCause(handleCause(nodeResponse, response)));
4078
+ });
4079
+ case "Stream": {
4080
+ nodeResponse.writeHead(response.status, headers);
4081
+ const drainLatch = require_Path.makeUnsafe$1();
4082
+ nodeResponse.on("drain", () => drainLatch.openUnsafe());
4083
+ return body.stream.pipe(require_Path.orDie, require_Path.runForEachArray((array) => {
4084
+ let needDrain = false;
4085
+ for (let i = 0; i < array.length; i++) {
4086
+ const written = nodeResponse.write(array[i]);
4087
+ if (!written && !needDrain) {
4088
+ needDrain = true;
4089
+ drainLatch.closeUnsafe();
4090
+ } else if (written && needDrain) needDrain = false;
4091
+ }
4092
+ if (!needDrain) return require_Schema.void_;
4093
+ return drainLatch.await;
4094
+ }), require_Schema.interruptible, require_Schema.matchCauseEffect({
4095
+ onSuccess: () => require_Schema.sync(() => nodeResponse.end()),
4096
+ onFailure: handleCause(nodeResponse, response)
4097
+ }));
4098
+ }
4963
4099
  }
4100
+ };
4101
+ const handleCause = (nodeResponse, originalResponse) => (originalCause) => require_Schema.flatMap(require_HttpServer.causeResponse(originalCause), ([response, cause]) => {
4102
+ const headersSent = nodeResponse.headersSent;
4103
+ if (!headersSent) nodeResponse.writeHead(response.status);
4104
+ if (!nodeResponse.writableEnded) nodeResponse.end();
4105
+ return require_Schema.failCause(headersSent ? require_Schema.combine(originalCause, require_Schema.die$2(originalResponse)) : cause);
4964
4106
  });
4107
+ //#endregion
4108
+ exports.layer = layer;
4109
+ exports.layerConfig = layerConfig;
4110
+ exports.layerHttpServices = layerHttpServices;
4111
+ exports.layerServer = layerServer;
4112
+ exports.layerTest = layerTest;
4113
+ exports.make = make;
4114
+ exports.makeHandler = makeHandler;
4115
+ exports.makeUpgradeHandler = makeUpgradeHandler;
4965
4116
 
4966
- //# sourceMappingURL=Mime-aSilaQX9.cjs.map
4117
+ //# sourceMappingURL=NodeHttpServer-D_ismXpd.cjs.map