@cmmd-center/forge 0.9.2 → 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.
- package/dist/{BunHttpServer-Dc5XijQF.mjs → BunHttpServer-BgNCpQzV.mjs} +2 -2
- package/dist/{BunHttpServer-Cuya1Zon.cjs → BunHttpServer-DOAuw4Iq.cjs} +2 -2
- package/dist/{BunPTY-z9OKvyBo.cjs → BunPTY-2icf7sRj.cjs} +2 -2
- package/dist/{BunPTY-CfS5zDoQ.mjs → BunPTY-D-Klry5N.mjs} +2 -2
- package/dist/{BunServices-eq_c-3x1.mjs → BunServices-ChM4mYH9.mjs} +1 -1
- package/dist/{BunServices-khEuvPaA.cjs → BunServices-CiNXNzHD.cjs} +1 -1
- package/dist/Mime-BITO-E1U.mjs +1395 -0
- package/dist/Mime-CyHbecis.cjs +1400 -0
- package/dist/{Mime-B75_d9aw.mjs → NodeHttpServer-C_wePPV0.mjs} +614 -1456
- package/dist/{Mime-aSilaQX9.cjs → NodeHttpServer-D_ismXpd.cjs} +617 -1466
- package/dist/{NodePTY-ChjVFpUH.mjs → NodePTY-BMUFdM93.mjs} +2 -2
- package/dist/{NodePTY-BOaJi0JA.cjs → NodePTY-cb7HIasY.cjs} +2 -2
- package/dist/{NodeSqliteClient-GlgGqc8V.mjs → NodeSqliteClient-OdI1TawL.mjs} +1 -1
- package/dist/{NodeSqliteClient-Vunn3aFN.cjs → NodeSqliteClient-SsUCk9mA.cjs} +1 -1
- package/dist/{PTY-rn2kGjhB.mjs → PTY-CBkE5akF.mjs} +1 -1
- package/dist/{PTY-D5OpMK9s.cjs → PTY-U3JQnLXS.cjs} +1 -1
- package/dist/{SqliteClient-Bpkno4Ob.cjs → SqliteClient-CdAhI4lb.cjs} +1 -1
- package/dist/{SqliteClient-DYQAvreq.mjs → SqliteClient-aoOb51gB.mjs} +1 -1
- package/dist/bin.cjs +14462 -10887
- package/dist/bin.mjs +14644 -11067
- package/dist/client/apple-touch-icon.png +0 -0
- package/dist/client/apple-touch-icon.png.publish-bak +0 -0
- package/dist/client/assets/CanvasPanel-BIN3OTEQ.js +441 -0
- package/dist/client/assets/CompositeItem-UKxcvvWv.js +2 -0
- package/dist/client/assets/DiffPanel-CeuRaSj1.js +64 -0
- package/dist/client/assets/DiffPanel.logic-D5i9QswQ.js +21 -0
- package/dist/client/assets/DiffPanelShell-W5nEVL52.js +2531 -0
- package/dist/client/assets/DiffWorkerPoolProvider-D87CO5TY.js +73 -0
- package/dist/client/assets/PullRequestCodePanel-DAmHwtY9.js +5 -0
- package/dist/client/assets/Stream-CToP6xzI.js +15 -0
- package/dist/client/assets/Virtualizer-CnwVHiy3.js +2 -0
- package/dist/client/assets/__vite-browser-external-DkEyUtaV.js +2 -0
- package/dist/client/assets/abap-kWSt4ETq.js +2 -0
- package/dist/client/assets/actionscript-3-DUMfZd56.js +2 -0
- package/dist/client/assets/ada-B5ZVVI6u.js +2 -0
- package/dist/client/assets/andromeeda-DXFdNco6.js +2 -0
- package/dist/client/assets/andromeeda-DwmQuk--.js +2 -0
- package/dist/client/assets/angular-html-BHUTdQ2k.js +2 -0
- package/dist/client/assets/angular-ts-BSGCbJ0j.js +2 -0
- package/dist/client/assets/apache-Cu40O3Ol.js +2 -0
- package/dist/client/assets/apex-DMPEjfSG.js +2 -0
- package/dist/client/assets/apl-BoCi4WkG.js +2 -0
- package/dist/client/assets/applescript-mUd3mpyF.js +2 -0
- package/dist/client/assets/ara-LhQXZmm_.js +2 -0
- package/dist/client/assets/asciidoc-BhTPoeH5.js +2 -0
- package/dist/client/assets/asm-BGGwX2ZL.js +2 -0
- package/dist/client/assets/astro-BMi5lGMm.js +2 -0
- package/dist/client/assets/atomRegistry-Bq5Y4LP1.js +3 -0
- package/dist/client/assets/aurora-x-CLgz8jpO.js +2 -0
- package/dist/client/assets/aurora-x-DY4EgSB_.js +2 -0
- package/dist/client/assets/awk-emAjNmqG.js +2 -0
- package/dist/client/assets/ayu-dark-BOsBaLmt.js +2 -0
- package/dist/client/assets/ayu-dark-Dm87GVDE.js +2 -0
- package/dist/client/assets/ayu-light-CVzS2PQZ.js +2 -0
- package/dist/client/assets/ayu-light-nGNJ-WDB.js +2 -0
- package/dist/client/assets/ayu-mirage-CionIqJ2.js +2 -0
- package/dist/client/assets/ayu-mirage-wUDx3klU.js +2 -0
- package/dist/client/assets/ballerina-Zz4P1PCo.js +2 -0
- package/dist/client/assets/bat-CojohPr3.js +2 -0
- package/dist/client/assets/beancount-DIrDFIbZ.js +2 -0
- package/dist/client/assets/berry-BktKISqk.js +2 -0
- package/dist/client/assets/bibtex-QuZiL8vO.js +2 -0
- package/dist/client/assets/bicep-BBqBjbA3.js +2 -0
- package/dist/client/assets/bird2-FrGIamnO.js +2 -0
- package/dist/client/assets/blade-CUGHtpnt.js +2 -0
- package/dist/client/assets/bsl-Dwz0otKA.js +2 -0
- package/dist/client/assets/c-3r97XxSq.js +2 -0
- package/dist/client/assets/c3-D-fgrOzJ.js +2 -0
- package/dist/client/assets/cadence-53eYIqKQ.js +2 -0
- package/dist/client/assets/cairo-Cai_OBhL.js +2 -0
- package/dist/client/assets/canvasStateStore-D3R1Ldk1.js +2 -0
- package/dist/client/assets/catppuccin-frappe-B9ztfCCY.js +2 -0
- package/dist/client/assets/catppuccin-frappe-Dtq86Zt-.js +2 -0
- package/dist/client/assets/catppuccin-latte-D1lF_ULk.js +2 -0
- package/dist/client/assets/catppuccin-latte-jgmNlGoB.js +2 -0
- package/dist/client/assets/catppuccin-macchiato-CcX-f1yB.js +2 -0
- package/dist/client/assets/catppuccin-macchiato-DfuKQKcK.js +2 -0
- package/dist/client/assets/catppuccin-mocha-B3_lpdvM.js +2 -0
- package/dist/client/assets/catppuccin-mocha-DfNnOvvn.js +2 -0
- package/dist/client/assets/clarity-DCS2DMlE.js +2 -0
- package/dist/client/assets/clojure-XwHeeE37.js +2 -0
- package/dist/client/assets/cmake-VIYk9tbe.js +2 -0
- package/dist/client/assets/cmmdAuthRedirect-DLvl7JNi.js +2 -0
- package/dist/client/assets/cobol-IPhylbE9.js +2 -0
- package/dist/client/assets/codeowners-DiTXAskR.js +2 -0
- package/dist/client/assets/codeql-0208dEuz.js +2 -0
- package/dist/client/assets/coffee-BwGUpF4f.js +2 -0
- package/dist/client/assets/common-lisp-Bbk7xLRF.js +2 -0
- package/dist/client/assets/coq-CDDZdGGh.js +2 -0
- package/dist/client/assets/cpp-jFyTvZsm.js +2 -0
- package/dist/client/assets/crystal-DYkQl9zO.js +2 -0
- package/dist/client/assets/csharp-Dausz59m.js +2 -0
- package/dist/client/assets/css-jXIxCbs3.js +2 -0
- package/dist/client/assets/csv-e2HVQau9.js +2 -0
- package/dist/client/assets/cue-BMgE_xju.js +2 -0
- package/dist/client/assets/cypher-CA95tXqi.js +2 -0
- package/dist/client/assets/d-DeO2qMKQ.js +2 -0
- package/dist/client/assets/dark-plus-DaoBxEuI.js +2 -0
- package/dist/client/assets/dark-plus-hlEOAUn6.js +2 -0
- package/dist/client/assets/dart-_9gbW0uG.js +2 -0
- package/dist/client/assets/dax-BMSB_urL.js +2 -0
- package/dist/client/assets/desktop-CFWOIXtS.js +2 -0
- package/dist/client/assets/diff-K3NAzB5h.js +2 -0
- package/dist/client/assets/docker-BHQx5Ff2.js +2 -0
- package/dist/client/assets/dotenv-CkiqXLC8.js +2 -0
- package/dist/client/assets/dracula-C9rp4fWn.js +2 -0
- package/dist/client/assets/dracula-CIJxKfwh.js +2 -0
- package/dist/client/assets/dracula-soft-BN-taJLQ.js +2 -0
- package/dist/client/assets/dracula-soft-De1wWQ_v.js +2 -0
- package/dist/client/assets/dream-maker-BM-H3AID.js +2 -0
- package/dist/client/assets/edge-CVf1J8H7.js +2 -0
- package/dist/client/assets/elixir-DtWV_YYF.js +2 -0
- package/dist/client/assets/elm-BJC2NMzB.js +2 -0
- package/dist/client/assets/emacs-lisp-BBM_ORbk.js +2 -0
- package/dist/client/assets/erb-cwYn0k3w.js +2 -0
- package/dist/client/assets/erlang-QNS0KA0S.js +2 -0
- package/dist/client/assets/everforest-dark-BSYmfNnp.js +2 -0
- package/dist/client/assets/everforest-dark-DUW3cHBn.js +2 -0
- package/dist/client/assets/everforest-light-CXyS_8Pc.js +2 -0
- package/dist/client/assets/everforest-light-DR-OhbXr.js +2 -0
- package/dist/client/assets/fennel-CAUJGoSU.js +2 -0
- package/dist/client/assets/fish-Cgln2BIC.js +2 -0
- package/dist/client/assets/fluent-BFL910sE.js +2 -0
- package/dist/client/assets/fortran-fixed-form-GNS6k7js.js +2 -0
- package/dist/client/assets/fortran-free-form-DB-siuqX.js +2 -0
- package/dist/client/assets/fsharp-BEjSdIee.js +2 -0
- package/dist/client/assets/gdresource-D24f9BeL.js +2 -0
- package/dist/client/assets/gdscript-Bq5ZYHDh.js +2 -0
- package/dist/client/assets/gdshader-BWxXiThj.js +2 -0
- package/dist/client/assets/genie-BOcsPMcn.js +2 -0
- package/dist/client/assets/gherkin-pSvoetjt.js +2 -0
- package/dist/client/assets/git-commit-Ddcy2Rzd.js +2 -0
- package/dist/client/assets/git-rebase-95AHstHI.js +2 -0
- package/dist/client/assets/github-dark-BbHkogeI.js +2 -0
- package/dist/client/assets/github-dark-D1nTcH4E.js +2 -0
- package/dist/client/assets/github-dark-default-Cgu-j31c.js +2 -0
- package/dist/client/assets/github-dark-default-CwMUtNVn.js +2 -0
- package/dist/client/assets/github-dark-dimmed-BmSK4vhs.js +2 -0
- package/dist/client/assets/github-dark-dimmed-CQVfITf-.js +2 -0
- package/dist/client/assets/github-dark-high-contrast-8_9Rbsic.js +2 -0
- package/dist/client/assets/github-dark-high-contrast-BO-0858k.js +2 -0
- package/dist/client/assets/github-light-DWIA8Fx_.js +2 -0
- package/dist/client/assets/github-light-default-CR0FtjVb.js +2 -0
- package/dist/client/assets/github-light-default-LLPbqR-K.js +2 -0
- package/dist/client/assets/github-light-high-contrast-5o8qRjCb.js +2 -0
- package/dist/client/assets/github-light-high-contrast-C8BCDz6a.js +2 -0
- package/dist/client/assets/github-light-lCcn0xRl.js +2 -0
- package/dist/client/assets/gleam-DPm9Zc9U.js +2 -0
- package/dist/client/assets/glimmer-js-Cjwf-Ijv.js +2 -0
- package/dist/client/assets/glimmer-ts-DXnOWlZf.js +2 -0
- package/dist/client/assets/glsl-iXGbnqIU.js +2 -0
- package/dist/client/assets/gn-DEuV1her.js +2 -0
- package/dist/client/assets/gnuplot-CqGlKjK6.js +2 -0
- package/dist/client/assets/go-mptU-yl2.js +2 -0
- package/dist/client/assets/graphql-DJMVZQv3.js +2 -0
- package/dist/client/assets/groovy-CKg5KWq9.js +2 -0
- package/dist/client/assets/gruvbox-dark-hard-Df4rfbxN.js +2 -0
- package/dist/client/assets/gruvbox-dark-hard-DsK6pQOr.js +2 -0
- package/dist/client/assets/gruvbox-dark-medium-nlSbDtaA.js +2 -0
- package/dist/client/assets/gruvbox-dark-medium-zSmEeDKP.js +2 -0
- package/dist/client/assets/gruvbox-dark-soft-BSW4a3D0.js +2 -0
- package/dist/client/assets/gruvbox-dark-soft-DgI1MxVf.js +2 -0
- package/dist/client/assets/gruvbox-light-hard-D144A6HZ.js +2 -0
- package/dist/client/assets/gruvbox-light-hard-DMNoHzNU.js +2 -0
- package/dist/client/assets/gruvbox-light-medium-C0B0NCuj.js +2 -0
- package/dist/client/assets/gruvbox-light-medium-CY2MDbN0.js +2 -0
- package/dist/client/assets/gruvbox-light-soft-CWJ8aP9f.js +2 -0
- package/dist/client/assets/gruvbox-light-soft-CyPlqRD8.js +2 -0
- package/dist/client/assets/hack-CkGKtoya.js +2 -0
- package/dist/client/assets/haml-mV-E4efJ.js +2 -0
- package/dist/client/assets/handlebars-Da6i86YE.js +2 -0
- package/dist/client/assets/haskell-DFWkJmsd.js +2 -0
- package/dist/client/assets/haxe-DoXg9N2w.js +2 -0
- package/dist/client/assets/hcl-VbcvLW6X.js +2 -0
- package/dist/client/assets/hjson-dQ--SYg9.js +2 -0
- package/dist/client/assets/hlsl-DNh8NDKB.js +2 -0
- package/dist/client/assets/horizon-BeufL1QP.js +2 -0
- package/dist/client/assets/horizon-CnOil3H1.js +2 -0
- package/dist/client/assets/horizon-bright-BoFfNO4u.js +2 -0
- package/dist/client/assets/horizon-bright-CJCE-DcQ.js +2 -0
- package/dist/client/assets/houston-C5_OTP91.js +2 -0
- package/dist/client/assets/houston-jaZUvSzs.js +2 -0
- package/dist/client/assets/html-derivative-BOw7yS3Z.js +2 -0
- package/dist/client/assets/html-e1ppUAVa.js +2 -0
- package/dist/client/assets/html2canvas-C_LL7spC.js +6 -0
- package/dist/client/assets/http-DFrMFVWs.js +2 -0
- package/dist/client/assets/hurl-3N2UscjA.js +2 -0
- package/dist/client/assets/hxml-Ip0yb8dg.js +2 -0
- package/dist/client/assets/hy-Bg-RIaMc.js +2 -0
- package/dist/client/assets/imba-BjZ9NRcj.js +2 -0
- package/dist/client/assets/index-Dr7HwjTE.css +1 -0
- package/dist/client/assets/index-DyEYqQdf.js +151 -0
- package/dist/client/assets/index.es-piUKIQw4.js +6 -0
- package/dist/client/assets/ini-CXagdQO9.js +2 -0
- package/dist/client/assets/java-DY6ZSujp.js +2 -0
- package/dist/client/assets/javascript-BfTuFzbs.js +2 -0
- package/dist/client/assets/jinja-C4NVx4X-.js +2 -0
- package/dist/client/assets/jison-BaE4DrvM.js +2 -0
- package/dist/client/assets/json-LL0kLbs_.js +2 -0
- package/dist/client/assets/json5-B1LcXsA8.js +2 -0
- package/dist/client/assets/jsonc-CYSDka7c.js +2 -0
- package/dist/client/assets/jsonl-CwfwQmvE.js +2 -0
- package/dist/client/assets/jsonnet-DG_zYewp.js +2 -0
- package/dist/client/assets/jspdf.es.min-_OjqfV_L.js +80 -0
- package/dist/client/assets/jssm-IkACsEzj.js +2 -0
- package/dist/client/assets/jsx-BOBg7x46.js +2 -0
- package/dist/client/assets/julia-D5dobu9Y.js +2 -0
- package/dist/client/assets/just-D99ddsWv.js +2 -0
- package/dist/client/assets/kanagawa-dragon-BBUl63AF.js +2 -0
- package/dist/client/assets/kanagawa-dragon-CBGy-6ik.js +2 -0
- package/dist/client/assets/kanagawa-lotus-BKY9TlU3.js +2 -0
- package/dist/client/assets/kanagawa-lotus-D93oLQjR.js +2 -0
- package/dist/client/assets/kanagawa-wave-CWf0rFWt.js +2 -0
- package/dist/client/assets/kanagawa-wave-CZBJ3hQh.js +2 -0
- package/dist/client/assets/kdl-DuytcvNV.js +2 -0
- package/dist/client/assets/kotlin-DmtnKz6Z.js +2 -0
- package/dist/client/assets/kusto-DmrVjfae.js +2 -0
- package/dist/client/assets/laserwave-DTzUwFmi.js +2 -0
- package/dist/client/assets/laserwave-NRABVcaO.js +2 -0
- package/dist/client/assets/latex-0e5rhe9m.js +2 -0
- package/dist/client/assets/lean-Bhkhoed1.js +2 -0
- package/dist/client/assets/less-BgyohKqc.js +2 -0
- package/dist/client/assets/light-plus-Cbc9ZUH4.js +2 -0
- package/dist/client/assets/light-plus-SK-KfMAV.js +2 -0
- package/dist/client/assets/liquid-BR35Xk1k.js +2 -0
- package/dist/client/assets/llvm-BtFJuFOJ.js +2 -0
- package/dist/client/assets/log-Df3M8ERB.js +2 -0
- package/dist/client/assets/logo-VfSEjTs6.js +2 -0
- package/dist/client/assets/lua-BMt4EqAw.js +2 -0
- package/dist/client/assets/luau-DIHOVG2A.js +2 -0
- package/dist/client/assets/make-gTMDFaMm.js +2 -0
- package/dist/client/assets/markdown-B_5il8S2.js +2 -0
- package/dist/client/assets/marko-DN4rLggA.js +2 -0
- package/dist/client/assets/material-theme-Pm6m-Kzc.js +2 -0
- package/dist/client/assets/material-theme-darker-BxFgxa9U.js +2 -0
- package/dist/client/assets/material-theme-darker-pKUQPx9-.js +2 -0
- package/dist/client/assets/material-theme-lighter-BLqni5my.js +2 -0
- package/dist/client/assets/material-theme-lighter-D6-26WhM.js +2 -0
- package/dist/client/assets/material-theme-ocean-C2N-nFlu.js +2 -0
- package/dist/client/assets/material-theme-ocean-DCxzET3l.js +2 -0
- package/dist/client/assets/material-theme-palenight-DyQqRTLL.js +2 -0
- package/dist/client/assets/material-theme-palenight-Y14J3SJp.js +2 -0
- package/dist/client/assets/material-theme-zfTX2d95.js +2 -0
- package/dist/client/assets/matlab-B2zVSjQq.js +2 -0
- package/dist/client/assets/mdc-kokCuEO8.js +2 -0
- package/dist/client/assets/mdx-CL7pLDiG.js +2 -0
- package/dist/client/assets/mermaid-Cou83ohU.js +2 -0
- package/dist/client/assets/min-dark-Bg1kQHvJ.js +2 -0
- package/dist/client/assets/min-dark-BhN4iMRs.js +2 -0
- package/dist/client/assets/min-light-BjU80CRL.js +2 -0
- package/dist/client/assets/min-light-Bw9u-P_u.js +2 -0
- package/dist/client/assets/mipsasm-CNFOlV7Y.js +2 -0
- package/dist/client/assets/module-fAFg92om.js +4 -0
- package/dist/client/assets/mojo-DmJMpmxj.js +2 -0
- package/dist/client/assets/monokai-C4NNjw1j.js +2 -0
- package/dist/client/assets/monokai-DIfgn9Q6.js +2 -0
- package/dist/client/assets/moonbit-f-DlcHvh.js +2 -0
- package/dist/client/assets/move-3UEJ-86q.js +2 -0
- package/dist/client/assets/narrat-BSySVkso.js +2 -0
- package/dist/client/assets/nextflow-B6YiVxNF.js +2 -0
- package/dist/client/assets/nextflow-groovy-CJM1tnxB.js +2 -0
- package/dist/client/assets/nginx-yFGqgywB.js +2 -0
- package/dist/client/assets/night-owl-CVqrHJ7c.js +2 -0
- package/dist/client/assets/night-owl-M-9PEzO3.js +2 -0
- package/dist/client/assets/night-owl-light-BFLAfCgh.js +2 -0
- package/dist/client/assets/night-owl-light-CbICj08I.js +2 -0
- package/dist/client/assets/nim-H0r8m4Bj.js +2 -0
- package/dist/client/assets/nix-D01-yy0s.js +2 -0
- package/dist/client/assets/nord-DdQ2eXb7.js +2 -0
- package/dist/client/assets/nord-b31BpoFd.js +2 -0
- package/dist/client/assets/nushell-CHtjMTHK.js +2 -0
- package/dist/client/assets/objective-c-CpnACn2A.js +2 -0
- package/dist/client/assets/objective-cpp-CC37zF8s.js +2 -0
- package/dist/client/assets/ocaml-zEzf7VRa.js +2 -0
- package/dist/client/assets/odin-7LfNaizd.js +2 -0
- package/dist/client/assets/one-dark-pro-D7GXMkD_.js +2 -0
- package/dist/client/assets/one-dark-pro-DZNXQIff.js +2 -0
- package/dist/client/assets/one-light-D0m2woYU.js +2 -0
- package/dist/client/assets/one-light-vpvEwBNE.js +2 -0
- package/dist/client/assets/openscad-alCnkqb3.js +2 -0
- package/dist/client/assets/pascal-BzxE7FG0.js +2 -0
- package/dist/client/assets/perl-DMfQlGhS.js +2 -0
- package/dist/client/assets/php-eC0_nfgu.js +2 -0
- package/dist/client/assets/pierre-dark-C8scyjTE.js +2 -0
- package/dist/client/assets/pierre-dark-protanopia-deuteranopia-DjjI5tLG.js +2 -0
- package/dist/client/assets/pierre-dark-soft-U4k3hSAg.js +2 -0
- package/dist/client/assets/pierre-dark-tritanopia-CwldMLve.js +2 -0
- package/dist/client/assets/pierre-dark-vibrant-CbqW77RL.js +2 -0
- package/dist/client/assets/pierre-light-CRazXHrY.js +2 -0
- package/dist/client/assets/pierre-light-protanopia-deuteranopia-C-0-s32M.js +2 -0
- package/dist/client/assets/pierre-light-soft-CeMgeGD-.js +2 -0
- package/dist/client/assets/pierre-light-tritanopia-CwP7kaEp.js +2 -0
- package/dist/client/assets/pierre-light-vibrant-BRw7kdwa.js +2 -0
- package/dist/client/assets/pkl-B_4Y3aQj.js +2 -0
- package/dist/client/assets/plastic-7ebP7j7m.js +2 -0
- package/dist/client/assets/plastic-BxJ4wlPp.js +2 -0
- package/dist/client/assets/plsql-Vnj6O-p2.js +2 -0
- package/dist/client/assets/po-BDEiW-In.js +2 -0
- package/dist/client/assets/poimandres-CjxvpNV1.js +2 -0
- package/dist/client/assets/poimandres-DaajSABO.js +2 -0
- package/dist/client/assets/polar-DkeS43LD.js +2 -0
- package/dist/client/assets/postcss-BdW9ckpW.js +2 -0
- package/dist/client/assets/powerquery-Ck_tTsxM.js +2 -0
- package/dist/client/assets/powershell-CSE_7mny.js +2 -0
- package/dist/client/assets/preload-helper-2nxZ5jlD.js +1 -0
- package/dist/client/assets/prisma-Bo0mLS5-.js +2 -0
- package/dist/client/assets/prolog-BKKH5B6F.js +2 -0
- package/dist/client/assets/proto-CQGfqf21.js +2 -0
- package/dist/client/assets/pug-CdkPd3m5.js +2 -0
- package/dist/client/assets/puppet-CMQRMMTw.js +2 -0
- package/dist/client/assets/purescript-CCcyGQO2.js +2 -0
- package/dist/client/assets/purify.es-BOhOJYGt.js +3 -0
- package/dist/client/assets/python-DMPOlDIf.js +2 -0
- package/dist/client/assets/qml-CjgSvi7A.js +2 -0
- package/dist/client/assets/qmldir-WCdsq__X.js +2 -0
- package/dist/client/assets/qss-AtgwhOez.js +2 -0
- package/dist/client/assets/r-CyfaTtPo.js +2 -0
- package/dist/client/assets/racket-BChN0yKc.js +2 -0
- package/dist/client/assets/raku-y2whvo3i.js +2 -0
- package/dist/client/assets/razor-xg0jlt5d.js +2 -0
- package/dist/client/assets/red-4ASUbyQz.js +2 -0
- package/dist/client/assets/red-FUTSeuNn.js +2 -0
- package/dist/client/assets/reg-Vw5mc10D.js +2 -0
- package/dist/client/assets/regexp-DNjghFOM.js +2 -0
- package/dist/client/assets/rel-B7yBab0H.js +2 -0
- package/dist/client/assets/riscv-CoVA6mXv.js +2 -0
- package/dist/client/assets/rolldown-runtime-BeQ30c1w.js +1 -0
- package/dist/client/assets/ron-Dncoj8f2.js +2 -0
- package/dist/client/assets/rose-pine-BYqQazSr.js +2 -0
- package/dist/client/assets/rose-pine-DKVJldI6.js +2 -0
- package/dist/client/assets/rose-pine-dawn-BzAj1SA_.js +2 -0
- package/dist/client/assets/rose-pine-dawn-DpMWSJny.js +2 -0
- package/dist/client/assets/rose-pine-moon-BF7RtPma.js +2 -0
- package/dist/client/assets/rose-pine-moon-Buv_ZumG.js +2 -0
- package/dist/client/assets/rosmsg-DMM9gQ6F.js +2 -0
- package/dist/client/assets/rst-DUzGXO8S.js +2 -0
- package/dist/client/assets/ruby-rVw1KmtO.js +2 -0
- package/dist/client/assets/rust-Do9fnzCe.js +2 -0
- package/dist/client/assets/sas-DqCEPep6.js +2 -0
- package/dist/client/assets/sass-C-AYCcFv.js +2 -0
- package/dist/client/assets/scala-g1Tl2-Vx.js +2 -0
- package/dist/client/assets/scheme-DMNTmmtl.js +2 -0
- package/dist/client/assets/scss-DUVpCPFS.js +2 -0
- package/dist/client/assets/sdbl-DN-YwBSp.js +2 -0
- package/dist/client/assets/shaderlab-CU1ngQGv.js +2 -0
- package/dist/client/assets/shellscript-DhExEfAl.js +2 -0
- package/dist/client/assets/shellsession-BRLd459R.js +2 -0
- package/dist/client/assets/slack-dark-CHVebfsv.js +2 -0
- package/dist/client/assets/slack-dark-DsHK2SW9.js +2 -0
- package/dist/client/assets/slack-ochin-DLRnnjq1.js +2 -0
- package/dist/client/assets/slack-ochin-auUeui07.js +2 -0
- package/dist/client/assets/smalltalk-DfTqE6NI.js +2 -0
- package/dist/client/assets/snazzy-light-DYCniS15.js +2 -0
- package/dist/client/assets/snazzy-light-DcJ4c2TI.js +2 -0
- package/dist/client/assets/solarized-dark-C2M3A6iX.js +2 -0
- package/dist/client/assets/solarized-dark-f_BlEcC2.js +2 -0
- package/dist/client/assets/solarized-light-DGdaihLk.js +2 -0
- package/dist/client/assets/solarized-light-p0lk9NUw.js +2 -0
- package/dist/client/assets/solidity-UrsYApv4.js +2 -0
- package/dist/client/assets/soy-B2el7XDq.js +2 -0
- package/dist/client/assets/sparql-Ckg9aAAq.js +2 -0
- package/dist/client/assets/splunk-BbdNC7mF.js +2 -0
- package/dist/client/assets/sql-DiDaRjp9.js +2 -0
- package/dist/client/assets/src-pwcrD9wg.js +3 -0
- package/dist/client/assets/ssh-config-NaDpXiNE.js +2 -0
- package/dist/client/assets/stata-C71yNzqX.js +2 -0
- package/dist/client/assets/stylus-BmDWwNjA.js +2 -0
- package/dist/client/assets/surrealql-Cmypmwl2.js +2 -0
- package/dist/client/assets/svelte-VS6niI_T.js +2 -0
- package/dist/client/assets/swift-C69NyPuQ.js +2 -0
- package/dist/client/assets/synthwave-84-2NxBVDLO.js +2 -0
- package/dist/client/assets/synthwave-84-CVwMZOby.js +2 -0
- package/dist/client/assets/system-verilog-DJk0s1jv.js +2 -0
- package/dist/client/assets/systemd-CcQAXEZ9.js +2 -0
- package/dist/client/assets/talonscript-CUGr7vYM.js +2 -0
- package/dist/client/assets/tasl-BB-YNBB8.js +2 -0
- package/dist/client/assets/tcl-DR8-AcmN.js +2 -0
- package/dist/client/assets/templ-Cr4Do0uA.js +2 -0
- package/dist/client/assets/terraform-DS-GC2Bj.js +2 -0
- package/dist/client/assets/tex-CcZtvqzZ.js +2 -0
- package/dist/client/assets/toggle-BBEoD8mr.js +2 -0
- package/dist/client/assets/tokyo-night-9wJEO1G-.js +2 -0
- package/dist/client/assets/tokyo-night-ZUp4Hulo.js +2 -0
- package/dist/client/assets/toml-ByrHRc5Z.js +2 -0
- package/dist/client/assets/transport-B-82Ada5.js +2 -0
- package/dist/client/assets/ts-tags-Dhe4Ce_p.js +2 -0
- package/dist/client/assets/tsv-2A2hWH8i.js +2 -0
- package/dist/client/assets/tsx-rRP2I03K.js +2 -0
- package/dist/client/assets/turtle-BYbwzkhD.js +2 -0
- package/dist/client/assets/twig-DtN4j4nR.js +2 -0
- package/dist/client/assets/typeof-DOAxNSYQ.js +2 -0
- package/dist/client/assets/typescript-tv4fsI1Q.js +2 -0
- package/dist/client/assets/typespec-DoZVUoUi.js +2 -0
- package/dist/client/assets/typst-BmNF0lss.js +2 -0
- package/dist/client/assets/useTriggerFocusGuards-B2i3DSgR.js +2 -0
- package/dist/client/assets/v-CtCN4vLO.js +2 -0
- package/dist/client/assets/vala-DOsY6Y3z.js +2 -0
- package/dist/client/assets/vb-C1Ff9hOT.js +2 -0
- package/dist/client/assets/verilog-Dt4OfjHN.js +2 -0
- package/dist/client/assets/vesper-5ZmhmIun.js +2 -0
- package/dist/client/assets/vesper-J3W-7eep.js +2 -0
- package/dist/client/assets/vhdl-DkoQ3qnl.js +2 -0
- package/dist/client/assets/viml-C3b4aEDf.js +2 -0
- package/dist/client/assets/vitesse-black-CYOC7ssU.js +2 -0
- package/dist/client/assets/vitesse-black-DWaDDoI3.js +2 -0
- package/dist/client/assets/vitesse-dark-Bxewb9U5.js +2 -0
- package/dist/client/assets/vitesse-dark-CZotVzc8.js +2 -0
- package/dist/client/assets/vitesse-light-Bf_msd9a.js +2 -0
- package/dist/client/assets/vitesse-light-BfrRSjRx.js +2 -0
- package/dist/client/assets/vue-C0rWZC13.js +2 -0
- package/dist/client/assets/vue-html-bxw887C2.js +2 -0
- package/dist/client/assets/vue-vine-DUWGjTI5.js +2 -0
- package/dist/client/assets/vyper-BamdcTqV.js +2 -0
- package/dist/client/assets/wasm-C2MLrNQ1.js +2 -0
- package/dist/client/assets/wasm-CGd31VpO.js +2 -0
- package/dist/client/assets/wenyan-BPZ76iog.js +2 -0
- package/dist/client/assets/wgsl-sH_fVDG_.js +2 -0
- package/dist/client/assets/wikitext-BsPo9Czf.js +2 -0
- package/dist/client/assets/wit-BfBhtJwS.js +2 -0
- package/dist/client/assets/wolfram-GL7CPBRD.js +2 -0
- package/dist/client/assets/worker-Cvq2iJN1.js +162 -0
- package/dist/client/assets/workspaceReadinessAtom-DUP5NKsc.js +2 -0
- package/dist/client/assets/xml-C0zxRzgj.js +2 -0
- package/dist/client/assets/xsl-CC403A_G.js +2 -0
- package/dist/client/assets/yaml-BCnsJrvx.js +2 -0
- package/dist/client/assets/zenscript-CmwVE7RW.js +2 -0
- package/dist/client/assets/zig-GtQXM-vf.js +2 -0
- package/dist/client/favicon-16x16.png +0 -0
- package/dist/client/favicon-16x16.png.publish-bak +0 -0
- package/dist/client/favicon-32x32.png +0 -0
- package/dist/client/favicon-32x32.png.publish-bak +0 -0
- package/dist/client/favicon.ico +0 -0
- package/dist/client/favicon.ico.publish-bak +0 -0
- package/dist/client/forge-mark.svg +5 -0
- package/dist/client/index.html +131 -0
- package/dist/client/mockServiceWorker.js +336 -0
- package/dist/client/sidebar/forge-ember-field.webp +0 -0
- package/dist/{esm-wLIF-u3N.mjs → esm-Ce1GqbVk.mjs} +1 -1
- package/dist/{esm-BZhXwX5p.cjs → esm-Do7HVhLA.cjs} +1 -1
- package/dist/{execAsync-DWZyWH-_.mjs → execAsync-BNNdR88o.mjs} +1 -1
- package/dist/{execAsync-jnYVB5RZ.cjs → execAsync-BUcaFQ1D.cjs} +1 -1
- package/dist/forge-provision-display.sh +316 -0
- package/dist/{getMachineId-bsd-BLtyMA4j.cjs → getMachineId-bsd-C_qi9crE.cjs} +3 -3
- package/dist/{getMachineId-bsd-CTjiY7jG.mjs → getMachineId-bsd-FI863wjR.mjs} +3 -3
- package/dist/{getMachineId-darwin-DaGS2zUd.cjs → getMachineId-darwin-BOoNuqXn.cjs} +3 -3
- package/dist/{getMachineId-darwin-BrPuyPOo.mjs → getMachineId-darwin-D9VhTaPM.mjs} +3 -3
- package/dist/{getMachineId-linux-BsP3wJaE.cjs → getMachineId-linux-C9L-vW7m.cjs} +2 -2
- package/dist/{getMachineId-linux-D9QEWWF-.mjs → getMachineId-linux-DE2x36Kt.mjs} +2 -2
- package/dist/{getMachineId-unsupported-Cm-2s4Sg.mjs → getMachineId-unsupported-9S6pcxXb.mjs} +2 -2
- package/dist/{getMachineId-unsupported-B_M-gck7.cjs → getMachineId-unsupported-CmbM8LYa.cjs} +2 -2
- package/dist/{getMachineId-win-qtEKaUYj.mjs → getMachineId-win-0EVRuBxU.mjs} +3 -3
- package/dist/{getMachineId-win-3zJ3HQLG.cjs → getMachineId-win-BPaemVew.cjs} +3 -3
- package/dist/{open-CGXZLos4.cjs → open-BAsPVCWX.cjs} +1 -1
- package/dist/{open-Cf0bgbyx.mjs → open-FIgTDosf.mjs} +1 -1
- package/dist/runtimeBootstrap.cjs +8 -0
- package/dist/runtimeBootstrap.mjs +4 -0
- package/dist/runtimeControlAuthority-Dm9z5ziU.mjs +505 -0
- package/dist/runtimeControlAuthority-Dx6Y5LPI.cjs +571 -0
- package/package.json +28 -30
- package/dist/NodeHttpServer-C7YMYP5R.cjs +0 -616
- package/dist/NodeHttpServer-D5-EtRwc.mjs +0 -605
|
@@ -1,7 +1,305 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { i as __require, o as __toESM, t as __commonJSMin } from "./chunk-C5ckVeoz.mjs";
|
|
4
|
-
|
|
4
|
+
import { $r as scope, Da as addFinalizer, Dr as matchCauseEffect, Ei as void_, Hn as die, Jr as runForkWith, Js as seconds, Kn as fail, Oa as addFinalizerExit, On as cached, Pa as provide$1, Qn as flatMap, Qr as runSync, Rc as makeUnsafe, Sa as succeed$1, Sr as map, Wc as fromNullishOr, Yl as flow, Zl as pipe, _i as tryPromise, _n as acquireRelease, ai as succeed, ba as provide, ci as suspend, di as tapCause, fa as effect, ga as fresh, gi as timeoutOrElse, ja as forkUnsafe, ki as withFiber, kn as callback, li as sync, lo as combine, nr as fnUntraced, pr as interruptible, qn as failCause, uo as die$1, vi as try_, vl as Class, xa as provideMerge, ya as mergeAll } from "./Schema-CTXk8IgN.mjs";
|
|
5
|
+
import { Ht as makeUnsafe$1, M as map$1, q as runForEachArray, qt as runIn, rt as unwrap, z as orDie } from "./Path-Bwl3ltR5.mjs";
|
|
6
|
+
import { f as fromReadable, h as toUint8Array, m as toString, p as toArrayBuffer } from "./NodeTerminal-_XekCzf-.mjs";
|
|
7
|
+
import { n as layer$3, r as layer$2 } from "./NodeServices-Bqqy4DuH.mjs";
|
|
8
|
+
import { $ as raw, At as toSetCookieHeaders, B as causeResponse, C as toPersisted, Ct as fromInput$1, Dt as merge, Et as fromRecordUnsafe, F as HttpServerError, H as layer$5, I as RequestParseError, K as layer$4, L as ResponseError, M as fromWebSocket, Ot as isEmpty, P as ClientAbort, S as makeConfig, T as make$4, Tt as fromInput, V as RequestInit, b as TypeId$1, dt as TypeId, ft as inspect, h as TypeId$2, kt as parseHeader, l as toHandled, n as layerTestClient, o as HttpPlatform, p as HttpServerRequest, q as layerWeak, r as make$5, s as make$3, t as HttpServer, ut as MaxBodySize, w as decodeField, y as MultipartError, z as ServeError } from "./HttpServer-ByyNdEXm.mjs";
|
|
9
|
+
import { h as unwrap$1 } from "./Config-DrOyN3WS.mjs";
|
|
10
|
+
import { t as Mime_default } from "./Mime-BITO-E1U.mjs";
|
|
11
|
+
import { Duplex, Readable } from "node:stream";
|
|
12
|
+
import * as Fs from "node:fs";
|
|
13
|
+
import * as Http from "node:http";
|
|
14
|
+
import * as NodeStreamP from "node:stream/promises";
|
|
15
|
+
import { pipeline } from "node:stream/promises";
|
|
16
|
+
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpIncomingMessage.js
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category Constructors
|
|
23
|
+
*/
|
|
24
|
+
var NodeHttpIncomingMessage = class extends Class {
|
|
25
|
+
/**
|
|
26
|
+
* @since 1.0.0
|
|
27
|
+
*/
|
|
28
|
+
[TypeId];
|
|
29
|
+
source;
|
|
30
|
+
onError;
|
|
31
|
+
remoteAddressOverride;
|
|
32
|
+
constructor(source, onError, remoteAddressOverride) {
|
|
33
|
+
super();
|
|
34
|
+
this[TypeId] = TypeId;
|
|
35
|
+
this.source = source;
|
|
36
|
+
this.onError = onError;
|
|
37
|
+
this.remoteAddressOverride = remoteAddressOverride;
|
|
38
|
+
}
|
|
39
|
+
get headers() {
|
|
40
|
+
return fromInput(this.source.headers);
|
|
41
|
+
}
|
|
42
|
+
get remoteAddress() {
|
|
43
|
+
return this.remoteAddressOverride ?? fromNullishOr(this.source.socket.remoteAddress);
|
|
44
|
+
}
|
|
45
|
+
textEffect;
|
|
46
|
+
get text() {
|
|
47
|
+
if (this.textEffect) return this.textEffect;
|
|
48
|
+
this.textEffect = runSync(cached(flatMap(MaxBodySize.asEffect(), (maxBodySize) => toString(() => this.source, {
|
|
49
|
+
onError: this.onError,
|
|
50
|
+
maxBytes: maxBodySize
|
|
51
|
+
}))));
|
|
52
|
+
return this.textEffect;
|
|
53
|
+
}
|
|
54
|
+
get textUnsafe() {
|
|
55
|
+
return runSync(this.text);
|
|
56
|
+
}
|
|
57
|
+
get json() {
|
|
58
|
+
return flatMap(this.text, (text) => try_({
|
|
59
|
+
try: () => text === "" ? null : JSON.parse(text),
|
|
60
|
+
catch: this.onError
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
get jsonUnsafe() {
|
|
64
|
+
return runSync(this.json);
|
|
65
|
+
}
|
|
66
|
+
get urlParamsBody() {
|
|
67
|
+
return flatMap(this.text, (_) => try_({
|
|
68
|
+
try: () => fromInput$1(new URLSearchParams(_)),
|
|
69
|
+
catch: this.onError
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
get stream() {
|
|
73
|
+
return fromReadable({
|
|
74
|
+
evaluate: () => this.source,
|
|
75
|
+
onError: this.onError
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
get arrayBuffer() {
|
|
79
|
+
return withFiber((fiber) => toArrayBuffer(() => this.source, {
|
|
80
|
+
onError: this.onError,
|
|
81
|
+
maxBytes: fiber.getRef(MaxBodySize)
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
//#endregion
|
|
86
|
+
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpPlatform.js
|
|
87
|
+
/**
|
|
88
|
+
* @since 1.0.0
|
|
89
|
+
*/
|
|
90
|
+
/**
|
|
91
|
+
* @since 1.0.0
|
|
92
|
+
* @category Constructors
|
|
93
|
+
*/
|
|
94
|
+
const make$2 = /* @__PURE__ */ make$3({
|
|
95
|
+
fileResponse(path, status, statusText, headers, start, end, contentLength) {
|
|
96
|
+
return raw(contentLength === 0 ? Readable.from([]) : Fs.createReadStream(path, {
|
|
97
|
+
start,
|
|
98
|
+
end: end === void 0 ? void 0 : end - 1
|
|
99
|
+
}), {
|
|
100
|
+
headers: {
|
|
101
|
+
...headers,
|
|
102
|
+
"content-type": headers["content-type"] ?? Mime_default.getType(path) ?? "application/octet-stream",
|
|
103
|
+
"content-length": contentLength.toString()
|
|
104
|
+
},
|
|
105
|
+
status,
|
|
106
|
+
statusText
|
|
107
|
+
});
|
|
108
|
+
},
|
|
109
|
+
fileWebResponse(file, status, statusText, headers, _options) {
|
|
110
|
+
return raw(Readable.fromWeb(file.stream()), {
|
|
111
|
+
headers: merge(headers, fromRecordUnsafe({
|
|
112
|
+
"content-type": headers["content-type"] ?? Mime_default.getType(file.name) ?? "application/octet-stream",
|
|
113
|
+
"content-length": file.size.toString()
|
|
114
|
+
})),
|
|
115
|
+
status,
|
|
116
|
+
statusText
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
/**
|
|
121
|
+
* @since 1.0.0
|
|
122
|
+
* @category Layers
|
|
123
|
+
*/
|
|
124
|
+
const layer$1 = /* @__PURE__ */ pipe(/* @__PURE__ */ effect(HttpPlatform)(make$2), /* @__PURE__ */ provide(layer$2), /* @__PURE__ */ provide(layer$4));
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../../node_modules/.bun/multipasta@0.2.7/node_modules/multipasta/dist/esm/node.js
|
|
127
|
+
var MultipastaStream = class extends Duplex {
|
|
128
|
+
_parser;
|
|
129
|
+
_canWrite = true;
|
|
130
|
+
_writeCallback;
|
|
131
|
+
constructor(config) {
|
|
132
|
+
super({ readableObjectMode: true });
|
|
133
|
+
let currentError;
|
|
134
|
+
let currentFile;
|
|
135
|
+
this._parser = make$4({
|
|
136
|
+
...config,
|
|
137
|
+
onField: (info, value) => {
|
|
138
|
+
if (currentError !== void 0) return;
|
|
139
|
+
const field = {
|
|
140
|
+
_tag: "Field",
|
|
141
|
+
info,
|
|
142
|
+
value
|
|
143
|
+
};
|
|
144
|
+
this.push(field);
|
|
145
|
+
this.emit("field", field);
|
|
146
|
+
},
|
|
147
|
+
onFile: (info) => {
|
|
148
|
+
if (currentError !== void 0) return (_) => {};
|
|
149
|
+
const file = new FileStream(info, this);
|
|
150
|
+
currentFile = file;
|
|
151
|
+
this.push(file);
|
|
152
|
+
this.emit("file", file);
|
|
153
|
+
return (chunk) => {
|
|
154
|
+
this._canWrite = file.push(chunk);
|
|
155
|
+
if (chunk === null && !this._canWrite) {
|
|
156
|
+
currentFile = void 0;
|
|
157
|
+
this._resume();
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
onError: (error) => {
|
|
162
|
+
this.emit("error", error);
|
|
163
|
+
currentFile?.emit("error", error);
|
|
164
|
+
currentError = error;
|
|
165
|
+
},
|
|
166
|
+
onDone: () => {
|
|
167
|
+
this.push(null);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
_resume() {
|
|
172
|
+
this._canWrite = true;
|
|
173
|
+
if (this._writeCallback !== void 0) {
|
|
174
|
+
const callback = this._writeCallback;
|
|
175
|
+
this._writeCallback = void 0;
|
|
176
|
+
callback();
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
_read(_size) {}
|
|
180
|
+
_write(chunk, encoding, callback) {
|
|
181
|
+
this._parser.write(chunk instanceof Uint8Array ? chunk : Buffer.from(chunk, encoding));
|
|
182
|
+
if (this._canWrite) callback();
|
|
183
|
+
else this._writeCallback = callback;
|
|
184
|
+
}
|
|
185
|
+
_final(callback) {
|
|
186
|
+
this._parser.end();
|
|
187
|
+
callback();
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const make$1 = (config) => new MultipastaStream(config);
|
|
191
|
+
var FileStream = class extends Readable {
|
|
192
|
+
info;
|
|
193
|
+
_parent;
|
|
194
|
+
_tag = "File";
|
|
195
|
+
filename;
|
|
196
|
+
constructor(info, _parent) {
|
|
197
|
+
super();
|
|
198
|
+
this.info = info;
|
|
199
|
+
this._parent = _parent;
|
|
200
|
+
this.filename = info.filename;
|
|
201
|
+
}
|
|
202
|
+
_read(_size) {
|
|
203
|
+
if (this._parent._canWrite === false) this._parent._resume();
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeMultipart.js
|
|
208
|
+
/**
|
|
209
|
+
* @since 1.0.0
|
|
210
|
+
*/
|
|
211
|
+
/**
|
|
212
|
+
* @since 1.0.0
|
|
213
|
+
* @category constructors
|
|
214
|
+
*/
|
|
215
|
+
const stream = (source, headers) => makeConfig(headers).pipe(map((config) => fromReadable({
|
|
216
|
+
evaluate() {
|
|
217
|
+
const parser = make$1(config);
|
|
218
|
+
source.pipe(parser);
|
|
219
|
+
return parser;
|
|
220
|
+
},
|
|
221
|
+
onError: (error) => convertError(error)
|
|
222
|
+
})), unwrap, map$1(convertPart));
|
|
223
|
+
/**
|
|
224
|
+
* @since 1.0.0
|
|
225
|
+
* @category constructors
|
|
226
|
+
*/
|
|
227
|
+
const persisted = (source, headers) => toPersisted(stream(source, headers), (path, file) => tryPromise({
|
|
228
|
+
try: (signal) => NodeStreamP.pipeline(file.file, Fs.createWriteStream(path), { signal }),
|
|
229
|
+
catch: (cause) => MultipartError.fromReason("InternalError", cause)
|
|
230
|
+
}));
|
|
231
|
+
const convertPart = (part) => part._tag === "Field" ? new FieldImpl(part.info, part.value) : new FileImpl(part);
|
|
232
|
+
var PartBase = class extends Class {
|
|
233
|
+
[TypeId$1];
|
|
234
|
+
constructor() {
|
|
235
|
+
super();
|
|
236
|
+
this[TypeId$1] = TypeId$1;
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
var FieldImpl = class extends PartBase {
|
|
240
|
+
_tag = "Field";
|
|
241
|
+
key;
|
|
242
|
+
contentType;
|
|
243
|
+
value;
|
|
244
|
+
constructor(info, value) {
|
|
245
|
+
super();
|
|
246
|
+
this.key = info.name;
|
|
247
|
+
this.contentType = info.contentType;
|
|
248
|
+
this.value = decodeField(info, value);
|
|
249
|
+
}
|
|
250
|
+
toJSON() {
|
|
251
|
+
return {
|
|
252
|
+
_id: "@effect/platform/Multipart/Part",
|
|
253
|
+
_tag: "Field",
|
|
254
|
+
key: this.key,
|
|
255
|
+
value: this.value,
|
|
256
|
+
contentType: this.contentType
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
var FileImpl = class extends PartBase {
|
|
261
|
+
_tag = "File";
|
|
262
|
+
key;
|
|
263
|
+
name;
|
|
264
|
+
contentType;
|
|
265
|
+
content;
|
|
266
|
+
contentEffect;
|
|
267
|
+
file;
|
|
268
|
+
constructor(file) {
|
|
269
|
+
super();
|
|
270
|
+
this.file = file;
|
|
271
|
+
this.key = file.info.name;
|
|
272
|
+
this.name = file.filename ?? file.info.name;
|
|
273
|
+
this.contentType = file.info.contentType;
|
|
274
|
+
this.content = fromReadable({
|
|
275
|
+
evaluate: () => file,
|
|
276
|
+
onError: (cause) => MultipartError.fromReason("InternalError", cause)
|
|
277
|
+
});
|
|
278
|
+
this.contentEffect = toUint8Array(() => file, { onError: (cause) => MultipartError.fromReason("InternalError", cause) });
|
|
279
|
+
}
|
|
280
|
+
toJSON() {
|
|
281
|
+
return {
|
|
282
|
+
_id: "@effect/platform/Multipart/Part",
|
|
283
|
+
_tag: "File",
|
|
284
|
+
key: this.key,
|
|
285
|
+
name: this.name,
|
|
286
|
+
contentType: this.contentType
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
function convertError(cause) {
|
|
291
|
+
switch (cause._tag) {
|
|
292
|
+
case "ReachedLimit": switch (cause.limit) {
|
|
293
|
+
case "MaxParts": return MultipartError.fromReason("TooManyParts", cause);
|
|
294
|
+
case "MaxFieldSize": return MultipartError.fromReason("FieldTooLarge", cause);
|
|
295
|
+
case "MaxPartSize": return MultipartError.fromReason("FileTooLarge", cause);
|
|
296
|
+
case "MaxTotalSize": return MultipartError.fromReason("BodyTooLarge", cause);
|
|
297
|
+
}
|
|
298
|
+
default: return MultipartError.fromReason("Parse", cause);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/constants.js
|
|
5
303
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
304
|
const BINARY_TYPES = [
|
|
7
305
|
"nodebuffer",
|
|
@@ -24,7 +322,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
24
322
|
};
|
|
25
323
|
}));
|
|
26
324
|
//#endregion
|
|
27
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
325
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/buffer-util.js
|
|
28
326
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
29
327
|
const { EMPTY_BUFFER } = require_constants();
|
|
30
328
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -124,7 +422,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
124
422
|
} catch (e) {}
|
|
125
423
|
}));
|
|
126
424
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
425
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/limiter.js
|
|
128
426
|
var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
129
427
|
const kDone = Symbol("kDone");
|
|
130
428
|
const kRun = Symbol("kRun");
|
|
@@ -175,7 +473,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
473
|
module.exports = Limiter;
|
|
176
474
|
}));
|
|
177
475
|
//#endregion
|
|
178
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
476
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/permessage-deflate.js
|
|
179
477
|
var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
180
478
|
const zlib = __require("zlib");
|
|
181
479
|
const bufferUtil = require_buffer_util();
|
|
@@ -208,9 +506,6 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
208
506
|
* acknowledge disabling of client context takeover
|
|
209
507
|
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
|
210
508
|
* 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
509
|
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
|
215
510
|
* use of a custom server window size
|
|
216
511
|
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
|
@@ -221,12 +516,15 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
221
516
|
* deflate
|
|
222
517
|
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
|
223
518
|
* inflate
|
|
519
|
+
* @param {Boolean} [isServer=false] Create the instance in either server or
|
|
520
|
+
* client mode
|
|
521
|
+
* @param {Number} [maxPayload=0] The maximum allowed message length
|
|
224
522
|
*/
|
|
225
|
-
constructor(options) {
|
|
523
|
+
constructor(options, isServer, maxPayload) {
|
|
524
|
+
this._maxPayload = maxPayload | 0;
|
|
226
525
|
this._options = options || {};
|
|
227
526
|
this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
|
|
228
|
-
this.
|
|
229
|
-
this._isServer = !!this._options.isServer;
|
|
527
|
+
this._isServer = !!isServer;
|
|
230
528
|
this._deflate = null;
|
|
231
529
|
this._inflate = null;
|
|
232
530
|
this.params = null;
|
|
@@ -508,7 +806,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
508
806
|
}
|
|
509
807
|
}));
|
|
510
808
|
//#endregion
|
|
511
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
809
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/validation.js
|
|
512
810
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
513
811
|
const { isUtf8 } = __require("buffer");
|
|
514
812
|
const { hasBlob } = require_constants();
|
|
@@ -704,7 +1002,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
704
1002
|
} catch (e) {}
|
|
705
1003
|
}));
|
|
706
1004
|
//#endregion
|
|
707
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
1005
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/receiver.js
|
|
708
1006
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
709
1007
|
const { Writable } = __require("stream");
|
|
710
1008
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -737,10 +1035,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
737
1035
|
* extensions
|
|
738
1036
|
* @param {Boolean} [options.isServer=false] Specifies whether to operate in
|
|
739
1037
|
* 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
1038
|
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
745
1039
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
746
1040
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -751,8 +1045,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
751
1045
|
this._binaryType = options.binaryType || BINARY_TYPES[0];
|
|
752
1046
|
this._extensions = options.extensions || {};
|
|
753
1047
|
this._isServer = !!options.isServer;
|
|
754
|
-
this._maxBufferedChunks = options.maxBufferedChunks | 0;
|
|
755
|
-
this._maxFragments = options.maxFragments | 0;
|
|
756
1048
|
this._maxPayload = options.maxPayload | 0;
|
|
757
1049
|
this._skipUTF8Validation = !!options.skipUTF8Validation;
|
|
758
1050
|
this[kWebSocket] = void 0;
|
|
@@ -767,7 +1059,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
767
1059
|
this._opcode = 0;
|
|
768
1060
|
this._totalPayloadLength = 0;
|
|
769
1061
|
this._messageLength = 0;
|
|
770
|
-
this._numFragments = 0;
|
|
771
1062
|
this._fragments = [];
|
|
772
1063
|
this._errored = false;
|
|
773
1064
|
this._loop = false;
|
|
@@ -783,10 +1074,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
783
1074
|
*/
|
|
784
1075
|
_write(chunk, encoding, cb) {
|
|
785
1076
|
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
1077
|
this._bufferedBytes += chunk.length;
|
|
791
1078
|
this._buffers.push(chunk);
|
|
792
1079
|
this.startLoop(cb);
|
|
@@ -1008,10 +1295,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1008
1295
|
this.controlMessage(data, cb);
|
|
1009
1296
|
return;
|
|
1010
1297
|
}
|
|
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
1298
|
if (this._compressed) {
|
|
1016
1299
|
this._state = INFLATING;
|
|
1017
1300
|
this.decompress(data, cb);
|
|
@@ -1061,7 +1344,6 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1061
1344
|
this._totalPayloadLength = 0;
|
|
1062
1345
|
this._messageLength = 0;
|
|
1063
1346
|
this._fragmented = 0;
|
|
1064
|
-
this._numFragments = 0;
|
|
1065
1347
|
this._fragments = [];
|
|
1066
1348
|
if (this._opcode === 2) {
|
|
1067
1349
|
let data;
|
|
@@ -1167,11 +1449,10 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1167
1449
|
module.exports = Receiver;
|
|
1168
1450
|
}));
|
|
1169
1451
|
//#endregion
|
|
1170
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
1452
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/sender.js
|
|
1171
1453
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1172
|
-
const { Duplex: Duplex$
|
|
1454
|
+
const { Duplex: Duplex$4 } = __require("stream");
|
|
1173
1455
|
const { randomFillSync } = __require("crypto");
|
|
1174
|
-
const { types: { isUint8Array } } = __require("util");
|
|
1175
1456
|
const PerMessageDeflate = require_permessage_deflate();
|
|
1176
1457
|
const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
|
|
1177
1458
|
const { isBlob, isValidStatusCode } = require_validation();
|
|
@@ -1315,8 +1596,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1315
1596
|
buf = Buffer.allocUnsafe(2 + length);
|
|
1316
1597
|
buf.writeUInt16BE(code, 0);
|
|
1317
1598
|
if (typeof data === "string") buf.write(data, 2);
|
|
1318
|
-
else
|
|
1319
|
-
else throw new TypeError("Second argument must be a string or a Uint8Array");
|
|
1599
|
+
else buf.set(data, 2);
|
|
1320
1600
|
}
|
|
1321
1601
|
const options = {
|
|
1322
1602
|
[kByteLength]: buf.length,
|
|
@@ -1660,7 +1940,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1660
1940
|
}
|
|
1661
1941
|
}));
|
|
1662
1942
|
//#endregion
|
|
1663
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
1943
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/event-target.js
|
|
1664
1944
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1665
1945
|
const { kForOnEventAttribute, kListener } = require_constants();
|
|
1666
1946
|
const kCode = Symbol("kCode");
|
|
@@ -1872,7 +2152,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1872
2152
|
}
|
|
1873
2153
|
}));
|
|
1874
2154
|
//#endregion
|
|
1875
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
2155
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/extension.js
|
|
1876
2156
|
var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1877
2157
|
const { tokenChars } = require_validation();
|
|
1878
2158
|
/**
|
|
@@ -2015,7 +2295,7 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2015
2295
|
};
|
|
2016
2296
|
}));
|
|
2017
2297
|
//#endregion
|
|
2018
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
2298
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket.js
|
|
2019
2299
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2020
2300
|
const EventEmitter$1 = __require("events");
|
|
2021
2301
|
const https = __require("https");
|
|
@@ -2023,7 +2303,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2023
2303
|
const net = __require("net");
|
|
2024
2304
|
const tls = __require("tls");
|
|
2025
2305
|
const { randomBytes, createHash: createHash$1 } = __require("crypto");
|
|
2026
|
-
const { Duplex: Duplex$
|
|
2306
|
+
const { Duplex: Duplex$3, Readable: Readable$1 } = __require("stream");
|
|
2027
2307
|
const { URL } = __require("url");
|
|
2028
2308
|
const PerMessageDeflate = require_permessage_deflate();
|
|
2029
2309
|
const Receiver = require_receiver();
|
|
@@ -2177,10 +2457,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2177
2457
|
* multiple times in the same tick
|
|
2178
2458
|
* @param {Function} [options.generateMask] The function used to generate the
|
|
2179
2459
|
* 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
2460
|
* @param {Number} [options.maxPayload=0] The maximum allowed message size
|
|
2185
2461
|
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
|
2186
2462
|
* not to skip UTF-8 validation for text and close messages
|
|
@@ -2192,8 +2468,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2192
2468
|
binaryType: this.binaryType,
|
|
2193
2469
|
extensions: this._extensions,
|
|
2194
2470
|
isServer: this._isServer,
|
|
2195
|
-
maxBufferedChunks: options.maxBufferedChunks,
|
|
2196
|
-
maxFragments: options.maxFragments,
|
|
2197
2471
|
maxPayload: options.maxPayload,
|
|
2198
2472
|
skipUTF8Validation: options.skipUTF8Validation
|
|
2199
2473
|
});
|
|
@@ -2520,10 +2794,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2520
2794
|
* masking key
|
|
2521
2795
|
* @param {Number} [options.handshakeTimeout] Timeout in milliseconds for the
|
|
2522
2796
|
* 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
2797
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
2528
2798
|
* size
|
|
2529
2799
|
* @param {Number} [options.maxRedirects=10] The maximum number of redirects
|
|
@@ -2544,8 +2814,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2544
2814
|
autoPong: true,
|
|
2545
2815
|
closeTimeout: CLOSE_TIMEOUT,
|
|
2546
2816
|
protocolVersion: protocolVersions[1],
|
|
2547
|
-
maxBufferedChunks: 256 * 1024,
|
|
2548
|
-
maxFragments: 16 * 1024,
|
|
2549
2817
|
maxPayload: 100 * 1024 * 1024,
|
|
2550
2818
|
skipUTF8Validation: false,
|
|
2551
2819
|
perMessageDeflate: true,
|
|
@@ -2568,7 +2836,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2568
2836
|
if (address instanceof URL) parsedUrl = address;
|
|
2569
2837
|
else try {
|
|
2570
2838
|
parsedUrl = new URL(address);
|
|
2571
|
-
} catch {
|
|
2839
|
+
} catch (e) {
|
|
2572
2840
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
2573
2841
|
}
|
|
2574
2842
|
if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
|
|
@@ -2607,11 +2875,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2607
2875
|
opts.path = parsedUrl.pathname + parsedUrl.search;
|
|
2608
2876
|
opts.timeout = opts.handshakeTimeout;
|
|
2609
2877
|
if (opts.perMessageDeflate) {
|
|
2610
|
-
perMessageDeflate = new PerMessageDeflate({
|
|
2611
|
-
...opts.perMessageDeflate,
|
|
2612
|
-
isServer: false,
|
|
2613
|
-
maxPayload: opts.maxPayload
|
|
2614
|
-
});
|
|
2878
|
+
perMessageDeflate = new PerMessageDeflate(opts.perMessageDeflate !== true ? opts.perMessageDeflate : {}, false, opts.maxPayload);
|
|
2615
2879
|
opts.headers["Sec-WebSocket-Extensions"] = format({ [PerMessageDeflate.extensionName]: perMessageDeflate.offer() });
|
|
2616
2880
|
}
|
|
2617
2881
|
if (protocols.length) {
|
|
@@ -2735,8 +2999,6 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2735
2999
|
websocket.setSocket(socket, head, {
|
|
2736
3000
|
allowSynchronousEvents: opts.allowSynchronousEvents,
|
|
2737
3001
|
generateMask: opts.generateMask,
|
|
2738
|
-
maxBufferedChunks: opts.maxBufferedChunks,
|
|
2739
|
-
maxFragments: opts.maxFragments,
|
|
2740
3002
|
maxPayload: opts.maxPayload,
|
|
2741
3003
|
skipUTF8Validation: opts.skipUTF8Validation
|
|
2742
3004
|
});
|
|
@@ -3004,10 +3266,10 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3004
3266
|
}
|
|
3005
3267
|
}));
|
|
3006
3268
|
//#endregion
|
|
3007
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
3269
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/stream.js
|
|
3008
3270
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3009
3271
|
require_websocket();
|
|
3010
|
-
const { Duplex: Duplex$
|
|
3272
|
+
const { Duplex: Duplex$2 } = __require("stream");
|
|
3011
3273
|
/**
|
|
3012
3274
|
* Emits the `'close'` event on a stream.
|
|
3013
3275
|
*
|
|
@@ -3046,7 +3308,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3046
3308
|
*/
|
|
3047
3309
|
function createWebSocketStream(ws, options) {
|
|
3048
3310
|
let terminateOnDestroy = true;
|
|
3049
|
-
const duplex = new Duplex$
|
|
3311
|
+
const duplex = new Duplex$2({
|
|
3050
3312
|
...options,
|
|
3051
3313
|
autoDestroy: false,
|
|
3052
3314
|
emitClose: false,
|
|
@@ -3120,7 +3382,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3120
3382
|
module.exports = createWebSocketStream;
|
|
3121
3383
|
}));
|
|
3122
3384
|
//#endregion
|
|
3123
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
3385
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/subprotocol.js
|
|
3124
3386
|
var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3125
3387
|
const { tokenChars } = require_validation();
|
|
3126
3388
|
/**
|
|
@@ -3159,11 +3421,11 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3159
3421
|
module.exports = { parse };
|
|
3160
3422
|
}));
|
|
3161
3423
|
//#endregion
|
|
3162
|
-
//#region ../../node_modules/.bun/ws@8.
|
|
3424
|
+
//#region ../../node_modules/.bun/ws@8.19.0/node_modules/ws/lib/websocket-server.js
|
|
3163
3425
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3164
3426
|
const EventEmitter = __require("events");
|
|
3165
3427
|
const http = __require("http");
|
|
3166
|
-
const { Duplex } = __require("stream");
|
|
3428
|
+
const { Duplex: Duplex$1 } = __require("stream");
|
|
3167
3429
|
const { createHash } = __require("crypto");
|
|
3168
3430
|
const extension = require_extension();
|
|
3169
3431
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -3198,10 +3460,6 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3198
3460
|
* called
|
|
3199
3461
|
* @param {Function} [options.handleProtocols] A hook to handle protocols
|
|
3200
3462
|
* @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
3463
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
3206
3464
|
* size
|
|
3207
3465
|
* @param {Boolean} [options.noServer=false] Enable no server mode
|
|
@@ -3223,8 +3481,6 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3223
3481
|
options = {
|
|
3224
3482
|
allowSynchronousEvents: true,
|
|
3225
3483
|
autoPong: true,
|
|
3226
|
-
maxBufferedChunks: 256 * 1024,
|
|
3227
|
-
maxFragments: 16 * 1024,
|
|
3228
3484
|
maxPayload: 100 * 1024 * 1024,
|
|
3229
3485
|
skipUTF8Validation: false,
|
|
3230
3486
|
perMessageDeflate: false,
|
|
@@ -3379,11 +3635,7 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3379
3635
|
const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
|
|
3380
3636
|
const extensions = {};
|
|
3381
3637
|
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
|
-
});
|
|
3638
|
+
const perMessageDeflate = new PerMessageDeflate(this.options.perMessageDeflate, true, this.options.maxPayload);
|
|
3387
3639
|
try {
|
|
3388
3640
|
const offers = extension.parse(secWebSocketExtensions);
|
|
3389
3641
|
if (offers[PerMessageDeflate.extensionName]) {
|
|
@@ -3454,8 +3706,6 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3454
3706
|
socket.removeListener("error", socketOnError);
|
|
3455
3707
|
ws.setSocket(socket, head, {
|
|
3456
3708
|
allowSynchronousEvents: this.options.allowSynchronousEvents,
|
|
3457
|
-
maxBufferedChunks: this.options.maxBufferedChunks,
|
|
3458
|
-
maxFragments: this.options.maxFragments,
|
|
3459
3709
|
maxPayload: this.options.maxPayload,
|
|
3460
3710
|
skipUTF8Validation: this.options.skipUTF8Validation
|
|
3461
3711
|
});
|
|
@@ -3545,1405 +3795,313 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
3545
3795
|
}
|
|
3546
3796
|
}));
|
|
3547
3797
|
require_stream();
|
|
3548
|
-
require_extension();
|
|
3549
|
-
require_permessage_deflate();
|
|
3550
3798
|
require_receiver();
|
|
3551
3799
|
require_sender();
|
|
3552
|
-
|
|
3553
|
-
var import_websocket = /* @__PURE__ */ __toESM(require_websocket(), 1);
|
|
3800
|
+
require_websocket();
|
|
3554
3801
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
3555
|
-
var wrapper_default = import_websocket.default;
|
|
3556
3802
|
//#endregion
|
|
3557
|
-
//#region ../../node_modules/.bun
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
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
|
-
//#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"]
|
|
3803
|
+
//#region ../../node_modules/.bun/@effect+platform-node@4.0.0-beta.45+6a386fbfc71a3ef3/node_modules/@effect/platform-node/dist/NodeHttpServer.js
|
|
3804
|
+
/**
|
|
3805
|
+
* @since 1.0.0
|
|
3806
|
+
*/
|
|
3807
|
+
/**
|
|
3808
|
+
* @since 1.0.0
|
|
3809
|
+
* @category constructors
|
|
3810
|
+
*/
|
|
3811
|
+
const make = /* @__PURE__ */ fnUntraced(function* (evaluate, options) {
|
|
3812
|
+
const scope$1 = yield* scope;
|
|
3813
|
+
const server = evaluate();
|
|
3814
|
+
const shutdown = yield* callback((resume) => {
|
|
3815
|
+
if (!server.listening) return resume(void_);
|
|
3816
|
+
server.close((error) => {
|
|
3817
|
+
if (error) resume(die(error));
|
|
3818
|
+
else resume(void_);
|
|
3819
|
+
});
|
|
3820
|
+
}).pipe(cached);
|
|
3821
|
+
const preemptiveShutdown = options.disablePreemptiveShutdown ? void_ : timeoutOrElse(shutdown, {
|
|
3822
|
+
duration: options.gracefulShutdownTimeout ?? seconds(20),
|
|
3823
|
+
orElse: () => void_
|
|
3824
|
+
});
|
|
3825
|
+
yield* addFinalizer(scope$1, shutdown);
|
|
3826
|
+
yield* callback((resume) => {
|
|
3827
|
+
function onError(cause) {
|
|
3828
|
+
resume(fail(new ServeError({ cause })));
|
|
3829
|
+
}
|
|
3830
|
+
server.on("error", onError);
|
|
3831
|
+
server.listen(options, () => {
|
|
3832
|
+
server.off("error", onError);
|
|
3833
|
+
resume(void_);
|
|
3834
|
+
});
|
|
3835
|
+
});
|
|
3836
|
+
const address = server.address();
|
|
3837
|
+
const wss = yield* acquireRelease(sync(() => new import_websocket_server.default({ noServer: true })), (wss) => callback((resume) => {
|
|
3838
|
+
wss.close(() => resume(void_));
|
|
3839
|
+
})).pipe(provide$1(scope$1), cached);
|
|
3840
|
+
return make$5({
|
|
3841
|
+
address: typeof address === "string" ? {
|
|
3842
|
+
_tag: "UnixAddress",
|
|
3843
|
+
path: address
|
|
3844
|
+
} : {
|
|
3845
|
+
_tag: "TcpAddress",
|
|
3846
|
+
hostname: address.address === "::" ? "0.0.0.0" : address.address,
|
|
3847
|
+
port: address.port
|
|
3848
|
+
},
|
|
3849
|
+
serve: fnUntraced(function* (httpApp, middleware) {
|
|
3850
|
+
const serveScope = yield* scope;
|
|
3851
|
+
const scope$2 = forkUnsafe(serveScope, "parallel");
|
|
3852
|
+
const handler = yield* makeHandler(httpApp, {
|
|
3853
|
+
middleware,
|
|
3854
|
+
scope: scope$2
|
|
3855
|
+
});
|
|
3856
|
+
const upgradeHandler = yield* makeUpgradeHandler(wss, httpApp, {
|
|
3857
|
+
middleware,
|
|
3858
|
+
scope: scope$2
|
|
3859
|
+
});
|
|
3860
|
+
yield* addFinalizerExit(serveScope, () => {
|
|
3861
|
+
server.off("request", handler);
|
|
3862
|
+
server.off("upgrade", upgradeHandler);
|
|
3863
|
+
return preemptiveShutdown;
|
|
3864
|
+
});
|
|
3865
|
+
server.on("request", handler);
|
|
3866
|
+
server.on("upgrade", upgradeHandler);
|
|
3867
|
+
})
|
|
3868
|
+
});
|
|
3869
|
+
});
|
|
3870
|
+
/**
|
|
3871
|
+
* @since 1.0.0
|
|
3872
|
+
* @category Handlers
|
|
3873
|
+
*/
|
|
3874
|
+
const makeHandler = (httpEffect, options) => {
|
|
3875
|
+
const handled = toHandled(httpEffect, handleResponse, options.middleware);
|
|
3876
|
+
return withFiber((parent) => {
|
|
3877
|
+
const services = parent.context;
|
|
3878
|
+
return succeed(function handler(nodeRequest, nodeResponse) {
|
|
3879
|
+
const map = new Map(services.mapUnsafe);
|
|
3880
|
+
map.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse));
|
|
3881
|
+
const fiber = runIn(runForkWith(makeUnsafe(map))(handled), options.scope);
|
|
3882
|
+
nodeResponse.on("close", () => {
|
|
3883
|
+
if (!nodeResponse.writableEnded) fiber.interruptUnsafe(parent.id, ClientAbort.annotation);
|
|
3884
|
+
});
|
|
3885
|
+
});
|
|
3886
|
+
});
|
|
4865
3887
|
};
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
return
|
|
3888
|
+
/**
|
|
3889
|
+
* @since 1.0.0
|
|
3890
|
+
* @category Handlers
|
|
3891
|
+
*/
|
|
3892
|
+
const makeUpgradeHandler = (lazyWss, httpEffect, options) => {
|
|
3893
|
+
const handledApp = toHandled(httpEffect, handleResponse, options.middleware);
|
|
3894
|
+
return withFiber((parent) => {
|
|
3895
|
+
const services = parent.context;
|
|
3896
|
+
return succeed(function handler(nodeRequest, socket, head) {
|
|
3897
|
+
let nodeResponse_ = void 0;
|
|
3898
|
+
const nodeResponse = () => {
|
|
3899
|
+
if (nodeResponse_ === void 0) {
|
|
3900
|
+
nodeResponse_ = new Http.ServerResponse(nodeRequest);
|
|
3901
|
+
nodeResponse_.assignSocket(socket);
|
|
3902
|
+
nodeResponse_.on("finish", () => {
|
|
3903
|
+
socket.end();
|
|
3904
|
+
});
|
|
3905
|
+
}
|
|
3906
|
+
return nodeResponse_;
|
|
3907
|
+
};
|
|
3908
|
+
const upgradeEffect = fromWebSocket(flatMap(lazyWss, (wss) => acquireRelease(callback((resume) => wss.handleUpgrade(nodeRequest, socket, head, (ws) => {
|
|
3909
|
+
resume(succeed(ws));
|
|
3910
|
+
})), (ws) => sync(() => ws.close()))));
|
|
3911
|
+
const map = new Map(services.mapUnsafe);
|
|
3912
|
+
map.set(HttpServerRequest.key, new ServerRequestImpl(nodeRequest, nodeResponse, upgradeEffect));
|
|
3913
|
+
const fiber = runIn(runForkWith(makeUnsafe(map))(handledApp), options.scope);
|
|
3914
|
+
socket.on("close", () => {
|
|
3915
|
+
if (!socket.writableEnded) fiber.interruptUnsafe(parent.id, ClientAbort.annotation);
|
|
3916
|
+
});
|
|
3917
|
+
});
|
|
3918
|
+
});
|
|
4873
3919
|
};
|
|
4874
|
-
var
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
3920
|
+
var ServerRequestImpl = class ServerRequestImpl extends NodeHttpIncomingMessage {
|
|
3921
|
+
[TypeId$2];
|
|
3922
|
+
response;
|
|
3923
|
+
upgradeEffect;
|
|
3924
|
+
url;
|
|
3925
|
+
headersOverride;
|
|
3926
|
+
constructor(source, response, upgradeEffect, url = source.url, headersOverride, remoteAddressOverride) {
|
|
3927
|
+
super(source, (cause) => new HttpServerError({ reason: new RequestParseError({
|
|
3928
|
+
request: this,
|
|
3929
|
+
cause
|
|
3930
|
+
}) }), remoteAddressOverride);
|
|
3931
|
+
this[TypeId$2] = TypeId$2;
|
|
3932
|
+
this.response = response;
|
|
3933
|
+
this.upgradeEffect = upgradeEffect;
|
|
3934
|
+
this.url = url;
|
|
3935
|
+
this.headersOverride = headersOverride;
|
|
4881
3936
|
}
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
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;
|
|
3937
|
+
cachedCookies;
|
|
3938
|
+
get cookies() {
|
|
3939
|
+
if (this.cachedCookies) return this.cachedCookies;
|
|
3940
|
+
return this.cachedCookies = parseHeader(this.headers.cookie ?? "");
|
|
4902
3941
|
}
|
|
4903
|
-
|
|
4904
|
-
|
|
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;
|
|
3942
|
+
get resolvedResponse() {
|
|
3943
|
+
return typeof this.response === "function" ? this.response() : this.response;
|
|
4910
3944
|
}
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
type = type?.split?.(";")[0];
|
|
4914
|
-
return (type && __classPrivateFieldGet(this, _Mime_typeToExtension, "f").get(type.trim().toLowerCase())) ?? null;
|
|
3945
|
+
modify(options) {
|
|
3946
|
+
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
3947
|
}
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
return __classPrivateFieldGet(this, _Mime_typeToExtensions, "f").get(type.toLowerCase()) ?? null;
|
|
3948
|
+
get originalUrl() {
|
|
3949
|
+
return this.source.url;
|
|
4919
3950
|
}
|
|
4920
|
-
|
|
4921
|
-
this.
|
|
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;
|
|
3951
|
+
get method() {
|
|
3952
|
+
return this.source.method.toUpperCase();
|
|
4927
3953
|
}
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
3954
|
+
get headers() {
|
|
3955
|
+
this.headersOverride ??= this.source.headers;
|
|
3956
|
+
return this.headersOverride;
|
|
3957
|
+
}
|
|
3958
|
+
multipartEffect;
|
|
3959
|
+
get multipart() {
|
|
3960
|
+
if (this.multipartEffect) return this.multipartEffect;
|
|
3961
|
+
this.multipartEffect = runSync(cached(persisted(this.source, this.source.headers)));
|
|
3962
|
+
return this.multipartEffect;
|
|
3963
|
+
}
|
|
3964
|
+
get multipartStream() {
|
|
3965
|
+
return stream(this.source, this.source.headers);
|
|
3966
|
+
}
|
|
3967
|
+
get upgrade() {
|
|
3968
|
+
return this.upgradeEffect ?? fail(new HttpServerError({ reason: new RequestParseError({
|
|
3969
|
+
request: this,
|
|
3970
|
+
description: "not an upgradeable ServerRequest"
|
|
3971
|
+
}) }));
|
|
3972
|
+
}
|
|
3973
|
+
toString() {
|
|
3974
|
+
return `ServerRequest(${this.method} ${this.url})`;
|
|
3975
|
+
}
|
|
3976
|
+
toJSON() {
|
|
3977
|
+
return inspect(this, {
|
|
3978
|
+
_id: "HttpServerRequest",
|
|
3979
|
+
method: this.method,
|
|
3980
|
+
url: this.originalUrl
|
|
3981
|
+
});
|
|
4933
3982
|
}
|
|
4934
3983
|
};
|
|
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
3984
|
/**
|
|
4939
3985
|
* @since 1.0.0
|
|
3986
|
+
* @category Layers
|
|
3987
|
+
*/
|
|
3988
|
+
const layerServer = /* @__PURE__ */ flow(make, /* @__PURE__ */ effect(HttpServer));
|
|
3989
|
+
/**
|
|
3990
|
+
* @since 1.0.0
|
|
3991
|
+
* @category Layers
|
|
4940
3992
|
*/
|
|
3993
|
+
const layerHttpServices = /* @__PURE__ */ mergeAll(layer$1, layerWeak, layer$3);
|
|
4941
3994
|
/**
|
|
4942
3995
|
* @since 1.0.0
|
|
4943
|
-
* @category
|
|
3996
|
+
* @category Layers
|
|
4944
3997
|
*/
|
|
4945
|
-
|
|
3998
|
+
const layer = (evaluate, options) => mergeAll(layerServer(evaluate, options), layerHttpServices);
|
|
3999
|
+
/**
|
|
4000
|
+
* @since 1.0.0
|
|
4001
|
+
* @category Layers
|
|
4002
|
+
*/
|
|
4003
|
+
const layerConfig = (evaluate, options) => mergeAll(effect(HttpServer)(flatMap(unwrap$1(options).asEffect(), (options) => make(evaluate, options))), layerHttpServices);
|
|
4004
|
+
/**
|
|
4005
|
+
* @since 1.0.0
|
|
4006
|
+
* @category Testing
|
|
4007
|
+
*/
|
|
4008
|
+
const layerTest = /* @__PURE__ */ layerTestClient.pipe(/* @__PURE__ */ provide(/* @__PURE__ */ fresh(layer$5).pipe(/* @__PURE__ */ provide(/* @__PURE__ */ succeed$1(RequestInit)({ keepalive: false })))), /* @__PURE__ */ provideMerge(/* @__PURE__ */ layer(Http.createServer, { port: 0 })));
|
|
4009
|
+
const handleResponse = (request, response) => {
|
|
4010
|
+
const nodeResponse = request.resolvedResponse;
|
|
4011
|
+
if (nodeResponse.writableEnded) return void_;
|
|
4012
|
+
let headers = response.headers;
|
|
4013
|
+
if (!isEmpty(response.cookies)) {
|
|
4014
|
+
headers = { ...headers };
|
|
4015
|
+
const toSet = toSetCookieHeaders(response.cookies);
|
|
4016
|
+
if (headers["set-cookie"] !== void 0) toSet.push(headers["set-cookie"]);
|
|
4017
|
+
headers["set-cookie"] = toSet;
|
|
4018
|
+
}
|
|
4019
|
+
if (request.method === "HEAD") {
|
|
4020
|
+
nodeResponse.writeHead(response.status, headers);
|
|
4021
|
+
return callback((resume) => {
|
|
4022
|
+
nodeResponse.end(() => resume(void_));
|
|
4023
|
+
});
|
|
4024
|
+
}
|
|
4025
|
+
const body = response.body;
|
|
4026
|
+
switch (body._tag) {
|
|
4027
|
+
case "Empty":
|
|
4028
|
+
nodeResponse.writeHead(response.status, headers);
|
|
4029
|
+
nodeResponse.end();
|
|
4030
|
+
return void_;
|
|
4031
|
+
case "Raw":
|
|
4032
|
+
nodeResponse.writeHead(response.status, headers);
|
|
4033
|
+
if (typeof body.body === "object" && body.body !== null && "pipe" in body.body && typeof body.body.pipe === "function") return tryPromise({
|
|
4034
|
+
try: (signal) => pipeline(body.body, nodeResponse, {
|
|
4035
|
+
signal,
|
|
4036
|
+
end: true
|
|
4037
|
+
}),
|
|
4038
|
+
catch: (cause) => new HttpServerError({ reason: new ResponseError({
|
|
4039
|
+
request,
|
|
4040
|
+
response,
|
|
4041
|
+
description: "Error writing raw response",
|
|
4042
|
+
cause
|
|
4043
|
+
}) })
|
|
4044
|
+
}).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
|
|
4045
|
+
return callback((resume) => {
|
|
4046
|
+
nodeResponse.end(body.body, () => resume(void_));
|
|
4047
|
+
});
|
|
4048
|
+
case "Uint8Array":
|
|
4049
|
+
nodeResponse.writeHead(response.status, headers);
|
|
4050
|
+
if (body.body.length < 1024 * 1024) {
|
|
4051
|
+
nodeResponse.end(body.body);
|
|
4052
|
+
return void_;
|
|
4053
|
+
}
|
|
4054
|
+
return callback((resume) => {
|
|
4055
|
+
nodeResponse.end(body.body, () => resume(void_));
|
|
4056
|
+
});
|
|
4057
|
+
case "FormData": return suspend(() => {
|
|
4058
|
+
const r = new globalThis.Response(body.formData);
|
|
4059
|
+
nodeResponse.writeHead(response.status, {
|
|
4060
|
+
...headers,
|
|
4061
|
+
...Object.fromEntries(r.headers)
|
|
4062
|
+
});
|
|
4063
|
+
return callback((resume, signal) => {
|
|
4064
|
+
Readable.fromWeb(r.body, { signal }).pipe(nodeResponse).on("error", (cause) => {
|
|
4065
|
+
resume(fail(new HttpServerError({ reason: new ResponseError({
|
|
4066
|
+
request,
|
|
4067
|
+
response,
|
|
4068
|
+
description: "Error writing FormData response",
|
|
4069
|
+
cause
|
|
4070
|
+
}) })));
|
|
4071
|
+
}).once("finish", () => {
|
|
4072
|
+
resume(void_);
|
|
4073
|
+
});
|
|
4074
|
+
}).pipe(interruptible, tapCause(handleCause(nodeResponse, response)));
|
|
4075
|
+
});
|
|
4076
|
+
case "Stream": {
|
|
4077
|
+
nodeResponse.writeHead(response.status, headers);
|
|
4078
|
+
const drainLatch = makeUnsafe$1();
|
|
4079
|
+
nodeResponse.on("drain", () => drainLatch.openUnsafe());
|
|
4080
|
+
return body.stream.pipe(orDie, runForEachArray((array) => {
|
|
4081
|
+
let needDrain = false;
|
|
4082
|
+
for (let i = 0; i < array.length; i++) {
|
|
4083
|
+
const written = nodeResponse.write(array[i]);
|
|
4084
|
+
if (!written && !needDrain) {
|
|
4085
|
+
needDrain = true;
|
|
4086
|
+
drainLatch.closeUnsafe();
|
|
4087
|
+
} else if (written && needDrain) needDrain = false;
|
|
4088
|
+
}
|
|
4089
|
+
if (!needDrain) return void_;
|
|
4090
|
+
return drainLatch.await;
|
|
4091
|
+
}), interruptible, matchCauseEffect({
|
|
4092
|
+
onSuccess: () => sync(() => nodeResponse.end()),
|
|
4093
|
+
onFailure: handleCause(nodeResponse, response)
|
|
4094
|
+
}));
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
};
|
|
4098
|
+
const handleCause = (nodeResponse, originalResponse) => (originalCause) => flatMap(causeResponse(originalCause), ([response, cause]) => {
|
|
4099
|
+
const headersSent = nodeResponse.headersSent;
|
|
4100
|
+
if (!headersSent) nodeResponse.writeHead(response.status);
|
|
4101
|
+
if (!nodeResponse.writableEnded) nodeResponse.end();
|
|
4102
|
+
return failCause(headersSent ? combine(originalCause, die$1(originalResponse)) : cause);
|
|
4103
|
+
});
|
|
4946
4104
|
//#endregion
|
|
4947
|
-
export {
|
|
4105
|
+
export { layer, layerConfig, layerHttpServices, layerServer, layerTest, make, makeHandler, makeUpgradeHandler };
|
|
4948
4106
|
|
|
4949
|
-
//# sourceMappingURL=
|
|
4107
|
+
//# sourceMappingURL=NodeHttpServer-C_wePPV0.mjs.map
|