@mcp-use/inspector 0.24.1 → 0.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/cdn/inspector.js +8403 -8399
  2. package/dist/cli.js +17 -3
  3. package/dist/client/index.js +31 -31
  4. package/dist/server/{chunk-6QTK3GVK.js → chunk-DABQVQYF.js} +1 -1
  5. package/dist/server/{chunk-S2MXUMF5.js → chunk-TJIMGJEY.js} +17 -3
  6. package/dist/server/cli.js +1 -1
  7. package/dist/server/index.js +2 -2
  8. package/dist/server/middleware.js +2 -2
  9. package/dist/server/server.js +1 -1
  10. package/dist/server/shared-static.d.ts +2 -0
  11. package/dist/server/shared-static.d.ts.map +1 -1
  12. package/dist/server/shared-static.js +1 -1
  13. package/dist/web/assets/{1c-CTmWB9cK.js → 1c-BvhFLIxH.js} +1 -1
  14. package/dist/web/assets/{abnf-DcwzopGW.js → abnf-CX8OJqYN.js} +1 -1
  15. package/dist/web/assets/{accesslog-DzVBVVmK.js → accesslog-DcgKZXrS.js} +1 -1
  16. package/dist/web/assets/{actionscript-Ck9A-ZFD.js → actionscript-CItnilsG.js} +1 -1
  17. package/dist/web/assets/{ada-DgjiBv9g.js → ada-jhrFP_kG.js} +1 -1
  18. package/dist/web/assets/{angelscript-BDr46Hte.js → angelscript-VAnEYDkE.js} +1 -1
  19. package/dist/web/assets/{apache-CWaH05Bo.js → apache-Bvpn5SVi.js} +1 -1
  20. package/dist/web/assets/{applescript-CbrEu4vA.js → applescript-CJW-xKGY.js} +1 -1
  21. package/dist/web/assets/{arcade-CNzg8Xf3.js → arcade-DOpc8o0T.js} +1 -1
  22. package/dist/web/assets/{arduino-DhhbEktI.js → arduino-gi6qvS9d.js} +1 -1
  23. package/dist/web/assets/{armasm-BCaSrF3m.js → armasm-q6MkkUkb.js} +1 -1
  24. package/dist/web/assets/{asciidoc-BLbKrIgp.js → asciidoc-dqeP70O7.js} +1 -1
  25. package/dist/web/assets/{aspectj-BX3kQs8w.js → aspectj-pTI1lMoV.js} +1 -1
  26. package/dist/web/assets/{autohotkey-0ajUjyoh.js → autohotkey-56nVTWRr.js} +1 -1
  27. package/dist/web/assets/{autoit-BmfyeJUa.js → autoit-CeD--Ts3.js} +1 -1
  28. package/dist/web/assets/{avrasm-QAU4tTrX.js → avrasm-AXSUKL73.js} +1 -1
  29. package/dist/web/assets/{awk-DVoqdQ00.js → awk-rtNNAadV.js} +1 -1
  30. package/dist/web/assets/{axapta-DT108HB-.js → axapta-5CT0vHQJ.js} +1 -1
  31. package/dist/web/assets/{bash-B01Hmd3Q.js → bash-BQ-JKmsJ.js} +1 -1
  32. package/dist/web/assets/{basic-oDJPVXUO.js → basic-BeuEF9yi.js} +1 -1
  33. package/dist/web/assets/{bnf-BXSOJI_P.js → bnf-CBLE-WBe.js} +1 -1
  34. package/dist/web/assets/{brainfuck-BbAodQC_.js → brainfuck-D2gmEg74.js} +1 -1
  35. package/dist/web/assets/{c-BefDSsdB.js → c-B8cZ_Jcv.js} +1 -1
  36. package/dist/web/assets/{c-like-DCjCKFCJ.js → c-like-BUQset2J.js} +1 -1
  37. package/dist/web/assets/{cal-BpbFbNeJ.js → cal-BfmxNhZ4.js} +1 -1
  38. package/dist/web/assets/{capnproto-CtxM_thT.js → capnproto-ci7Oy_3w.js} +1 -1
  39. package/dist/web/assets/{ceylon-BqSL5L8h.js → ceylon-CR7mkBjT.js} +1 -1
  40. package/dist/web/assets/{clean-CdLPpK2g.js → clean-DDX6TchJ.js} +1 -1
  41. package/dist/web/assets/{client-F6B46LQA-DDraFY-s.js → client-S57RS52Z-D8i-S3XX.js} +3 -3
  42. package/dist/web/assets/{clojure-C_WGEe8n.js → clojure-BI_RGTAe.js} +1 -1
  43. package/dist/web/assets/{clojure-repl-qbapT5OY.js → clojure-repl-DSE_x4C2.js} +1 -1
  44. package/dist/web/assets/{cmake-BevqC-kl.js → cmake-DO4jOBdV.js} +1 -1
  45. package/dist/web/assets/{coffeescript-ursREQ6b.js → coffeescript-Dd0Lp6GU.js} +1 -1
  46. package/dist/web/assets/{coq-Co7GOSrf.js → coq-BVtIgdCz.js} +1 -1
  47. package/dist/web/assets/{core-DgXQNB16.js → core-DLviWPP3.js} +1 -1
  48. package/dist/web/assets/{cos-zpbWPiDR.js → cos-BSiT-IT0.js} +1 -1
  49. package/dist/web/assets/{cpp-H6GqxXJ1.js → cpp-DQ17j1lu.js} +1 -1
  50. package/dist/web/assets/{crmsh-Bgt1seVb.js → crmsh-BG-_i7Az.js} +1 -1
  51. package/dist/web/assets/{crystal-DrqAyYeg.js → crystal-CwybcU_c.js} +1 -1
  52. package/dist/web/assets/{csharp-KZYClq74.js → csharp-C5EW5MWq.js} +1 -1
  53. package/dist/web/assets/{csp-CTXVpvJP.js → csp-B4avFpGl.js} +1 -1
  54. package/dist/web/assets/{css-QhVy_OuY.js → css-XwnDlpLG.js} +1 -1
  55. package/dist/web/assets/{d-C_ASjLws.js → d-BVPgG_Aw.js} +1 -1
  56. package/dist/web/assets/{dart-GhKZgoJI.js → dart-CuzkdMfW.js} +1 -1
  57. package/dist/web/assets/{delphi-DogTNtbf.js → delphi-CUWyVIpe.js} +1 -1
  58. package/dist/web/assets/{diff-BwWxVOi3.js → diff-D3sSlrXe.js} +1 -1
  59. package/dist/web/assets/{display-A5IEINAP-DKx-Miug.js → display-A5IEINAP-GZCoUyvv.js} +2 -2
  60. package/dist/web/assets/{django-D7C4VDjD.js → django-D17_zMlX.js} +1 -1
  61. package/dist/web/assets/{dns-Di8KRr_4.js → dns-C1XxIveT.js} +1 -1
  62. package/dist/web/assets/{dockerfile-ChqukacU.js → dockerfile-CaGNlKQa.js} +1 -1
  63. package/dist/web/assets/{dos-it4jZ1tM.js → dos-CGH0X7Qf.js} +1 -1
  64. package/dist/web/assets/{dsconfig-E1N6hbLc.js → dsconfig-DTVqhcqx.js} +1 -1
  65. package/dist/web/assets/{dts-Dn8qzKm5.js → dts-BQco_sjz.js} +1 -1
  66. package/dist/web/assets/{dust-DvViZlL5.js → dust-BqGWXklz.js} +1 -1
  67. package/dist/web/assets/{ebnf-f4HwQhHN.js → ebnf-BqCwsW4k.js} +1 -1
  68. package/dist/web/assets/{elixir-DTCHxwkz.js → elixir-WtC_BfcU.js} +1 -1
  69. package/dist/web/assets/{elm-DzWAIyWp.js → elm-D7xIR2_2.js} +1 -1
  70. package/dist/web/assets/{embeddings-BjbiOR07.js → embeddings-DD3kbxNt.js} +1 -1
  71. package/dist/web/assets/{erb-BFf3OdkT.js → erb-DjXRvkR1.js} +1 -1
  72. package/dist/web/assets/{erlang-C4_U40M_.js → erlang-3Dswo9Kb.js} +1 -1
  73. package/dist/web/assets/{erlang-repl-qUaAPP6D.js → erlang-repl-DSxDJl2O.js} +1 -1
  74. package/dist/web/assets/{excel-D5mWHvTA.js → excel-BomM7FtM.js} +1 -1
  75. package/dist/web/assets/{fix-D7x6sLPo.js → fix-Dk-kBHCz.js} +1 -1
  76. package/dist/web/assets/{flix-L29ox9mN.js → flix-AdO4r9fm.js} +1 -1
  77. package/dist/web/assets/{fortran-DoY7JosF.js → fortran-BiFgPRXr.js} +1 -1
  78. package/dist/web/assets/{fsharp-87IJ0pSi.js → fsharp-CrGX07bo.js} +1 -1
  79. package/dist/web/assets/{gams-DvxX9CF0.js → gams-t-W8hkrr.js} +1 -1
  80. package/dist/web/assets/{gauss-u-lnJtmB.js → gauss-aVHF9YQ0.js} +1 -1
  81. package/dist/web/assets/{gcode-YJ3yAe35.js → gcode-Dirh21Jx.js} +1 -1
  82. package/dist/web/assets/{gherkin-qQ4C0hz2.js → gherkin-Doinw4Bw.js} +1 -1
  83. package/dist/web/assets/{glsl-DovCMqDY.js → glsl-BVAd7fQZ.js} +1 -1
  84. package/dist/web/assets/{gml-BxNKkhiu.js → gml-D3k6P4wF.js} +1 -1
  85. package/dist/web/assets/{go-CTer_0Vk.js → go-RoXLUpPR.js} +1 -1
  86. package/dist/web/assets/{golo-B9QF9C__.js → golo-BC3q2vpX.js} +1 -1
  87. package/dist/web/assets/{gradle-BO2za7tA.js → gradle-DVbLpAp9.js} +1 -1
  88. package/dist/web/assets/{groovy-Xl6rXTa-.js → groovy-BlpSZ8yL.js} +1 -1
  89. package/dist/web/assets/{haml-8ZZMx4TH.js → haml-CzCcmI1O.js} +1 -1
  90. package/dist/web/assets/{handlebars-Bjp8mTwo.js → handlebars-Bw-pBlQu.js} +1 -1
  91. package/dist/web/assets/{haskell-BO0IcpsW.js → haskell-DhIYpyey.js} +1 -1
  92. package/dist/web/assets/{haxe-jucBbb_U.js → haxe-CYh7KB7k.js} +1 -1
  93. package/dist/web/assets/{hsp-fdaKcvyx.js → hsp-r1aLXMhs.js} +1 -1
  94. package/dist/web/assets/{htmlbars-CvmnNGP0.js → htmlbars-HUpfURpP.js} +1 -1
  95. package/dist/web/assets/{http-ClTumGs0.js → http-BGFs537-.js} +1 -1
  96. package/dist/web/assets/{hy-Cnqvk573.js → hy-Dhjbxgrk.js} +1 -1
  97. package/dist/web/assets/{index-CWVLvgjZ.js → index-BQDf_2QT.js} +55 -55
  98. package/dist/web/assets/{index-wt2H_Smv.js → index-BaQ4JmMg.js} +1 -1
  99. package/dist/web/assets/{index-DJKT2JIf.js → index-BniVLnRq.js} +1 -1
  100. package/dist/web/assets/{index-DQduPDLp.js → index-D6ksAhcX.js} +1 -1
  101. package/dist/web/assets/{index-D8HwVPnm.js → index-DdfO8wbV.js} +1 -1
  102. package/dist/web/assets/{index-DMftCgN8.js → index-DhbVcA9F.js} +1 -1
  103. package/dist/web/assets/{index-D-IOuSz9.js → index-i9rlZ7RP.js} +1 -1
  104. package/dist/web/assets/{inform7-DU65okL6.js → inform7-B5avNAGg.js} +1 -1
  105. package/dist/web/assets/{ini-DPydLnkJ.js → ini-5Yf7OApE.js} +1 -1
  106. package/dist/web/assets/{irpf90-Ci7RR6GO.js → irpf90-9P8GaAT8.js} +1 -1
  107. package/dist/web/assets/{isbl-BXthN9NL.js → isbl-DBvY8d_e.js} +1 -1
  108. package/dist/web/assets/{java-0qMtqeaC.js → java-BYAicyox.js} +1 -1
  109. package/dist/web/assets/{javascript-C_4y9Xev.js → javascript-BsZ6ruUt.js} +1 -1
  110. package/dist/web/assets/{jboss-cli-DnOZEump.js → jboss-cli-BEvNpqj4.js} +1 -1
  111. package/dist/web/assets/{json-COqubvgv.js → json-YkjXrxXX.js} +1 -1
  112. package/dist/web/assets/{julia-CKTigX7j.js → julia-CIaQJLVA.js} +1 -1
  113. package/dist/web/assets/{julia-repl-D2X5MoL5.js → julia-repl-neu8z3rS.js} +1 -1
  114. package/dist/web/assets/{kotlin-DE6v_olT.js → kotlin-B_3Gv_Wa.js} +1 -1
  115. package/dist/web/assets/{langfuse-U2OEF7K7-tIq5i7J3.js → langfuse-U2OEF7K7-BS7yds-5.js} +3 -3
  116. package/dist/web/assets/{lasso-DDtPlFVD.js → lasso-BcxCyLbb.js} +1 -1
  117. package/dist/web/assets/{latex-Ba_YIzTx.js → latex-DBLSyLoB.js} +1 -1
  118. package/dist/web/assets/{ldif-DdK4S7lt.js → ldif-zLAu6Yaq.js} +1 -1
  119. package/dist/web/assets/{leaf-BJGKime_.js → leaf-C8g3QwRa.js} +1 -1
  120. package/dist/web/assets/{less-Dp9tzVdw.js → less-BiZdkKrA.js} +1 -1
  121. package/dist/web/assets/{lisp-WiJFSxPk.js → lisp-SZa_n4Ha.js} +1 -1
  122. package/dist/web/assets/{livecodeserver-BbM8H2YJ.js → livecodeserver-DbqsVDXq.js} +1 -1
  123. package/dist/web/assets/{livescript-DTx-s9n7.js → livescript-CKn9aHzH.js} +1 -1
  124. package/dist/web/assets/{llms-DmX_6p6K.js → llms-iELWWhGP.js} +1 -1
  125. package/dist/web/assets/{llvm-CBgnc17r.js → llvm-B2i8wLJj.js} +1 -1
  126. package/dist/web/assets/{lsl-uuSAdMyc.js → lsl-Cm2mEXVA.js} +1 -1
  127. package/dist/web/assets/{lua-Dft3BjDM.js → lua-BEDlAaf-.js} +1 -1
  128. package/dist/web/assets/{makefile-x5-muOWX.js → makefile-CjFs_qe4.js} +1 -1
  129. package/dist/web/assets/{markdown-7ur18VlQ.js → markdown-isjfrR4I.js} +1 -1
  130. package/dist/web/assets/{mathematica-BHmDla9L.js → mathematica-_UeFOFBA.js} +1 -1
  131. package/dist/web/assets/{matlab-o4Sf0Vyx.js → matlab-Bn6pdsuY.js} +1 -1
  132. package/dist/web/assets/{maxima-1Qi4vqEK.js → maxima-CzA538N9.js} +1 -1
  133. package/dist/web/assets/{mel-Bm7OmB-d.js → mel-BkIKTvwA.js} +1 -1
  134. package/dist/web/assets/{mercury-oYuC8GeI.js → mercury-BW46IsU1.js} +1 -1
  135. package/dist/web/assets/{mipsasm-DyA98-RK.js → mipsasm-xk8xikSW.js} +1 -1
  136. package/dist/web/assets/{mizar-D8AkzT1W.js → mizar-CydR6mll.js} +1 -1
  137. package/dist/web/assets/{mojolicious-DoYIupN-.js → mojolicious-DPEf75yc.js} +1 -1
  138. package/dist/web/assets/{monkey-BS6WeG8G.js → monkey-C3GGTuc2.js} +1 -1
  139. package/dist/web/assets/{moonscript-Capd9T7Y.js → moonscript-BWCm7GA4.js} +1 -1
  140. package/dist/web/assets/{n1ql-Db3nfUxR.js → n1ql-KUcEBJ5e.js} +1 -1
  141. package/dist/web/assets/{nginx-BIxU1lxo.js → nginx-B5n_99-T.js} +1 -1
  142. package/dist/web/assets/{nim-Co9B9r8M.js → nim-Cj2kL1F7.js} +1 -1
  143. package/dist/web/assets/{nix-BmaVssIW.js → nix-DU3svOEi.js} +1 -1
  144. package/dist/web/assets/{node-repl-BEa2E2Ut.js → node-repl-CVjFZCg8.js} +1 -1
  145. package/dist/web/assets/{nsis-Dm9lIXG7.js → nsis-ec6JIFaq.js} +1 -1
  146. package/dist/web/assets/{objectivec-Dykoktgt.js → objectivec-35jFh8_n.js} +1 -1
  147. package/dist/web/assets/{ocaml-BFoqC3jt.js → ocaml-DSvpPQQA.js} +1 -1
  148. package/dist/web/assets/{openscad-B-Z7cRIs.js → openscad-BtR0N549.js} +1 -1
  149. package/dist/web/assets/{oxygene-CcfnJtsl.js → oxygene-DHhgzdSe.js} +1 -1
  150. package/dist/web/assets/{parser3-RGpUpzqB.js → parser3-DBNAvQ81.js} +1 -1
  151. package/dist/web/assets/{perl-BGfvmCgU.js → perl-aQ2z2IY0.js} +1 -1
  152. package/dist/web/assets/{pf-DE7lRmO9.js → pf-NcRyIsiR.js} +1 -1
  153. package/dist/web/assets/{pgsql-D1K7RXHH.js → pgsql-C6IelojA.js} +1 -1
  154. package/dist/web/assets/{php-CDcB8K22.js → php-DXFb1z3E.js} +1 -1
  155. package/dist/web/assets/{php-template-C6Ze9zM3.js → php-template-noIzpFwi.js} +1 -1
  156. package/dist/web/assets/{plaintext-VaxG0XKn.js → plaintext-CuMZI4wJ.js} +1 -1
  157. package/dist/web/assets/{pony-Dk4oe_9z.js → pony-DKNUP03S.js} +1 -1
  158. package/dist/web/assets/{powershell-BaX5GCVe.js → powershell-DK5QFD1P.js} +1 -1
  159. package/dist/web/assets/{processing-fAZf8_bL.js → processing-Bd0YwPX-.js} +1 -1
  160. package/dist/web/assets/{profile-CDhmTkCS.js → profile-BUJvtaZj.js} +1 -1
  161. package/dist/web/assets/{prolog-BmoLSmTY.js → prolog-C8MmbuJy.js} +1 -1
  162. package/dist/web/assets/{properties-DJCBGQNY.js → properties-BQiZSAsl.js} +1 -1
  163. package/dist/web/assets/{protobuf-CzYqa9zw.js → protobuf-BIM_UAt8.js} +1 -1
  164. package/dist/web/assets/{puppet-DVc1q4ce.js → puppet-BuXb1lDA.js} +1 -1
  165. package/dist/web/assets/{purebasic-BiMnj4-V.js → purebasic-BI2OGD7g.js} +1 -1
  166. package/dist/web/assets/{python-EQDVImf4.js → python-MrZFTqbt.js} +1 -1
  167. package/dist/web/assets/{python-repl-f1U2J_qV.js → python-repl-BgSuB0OR.js} +1 -1
  168. package/dist/web/assets/{q-D6s7BXPa.js → q-CHprrWyV.js} +1 -1
  169. package/dist/web/assets/{qml-BO8q5aWM.js → qml-BnHfbLpq.js} +1 -1
  170. package/dist/web/assets/{r-CloG_Zdr.js → r-BaO6b_Bk.js} +1 -1
  171. package/dist/web/assets/{reasonml-Q-1LUqwg.js → reasonml-DSmR8Ung.js} +1 -1
  172. package/dist/web/assets/{rib-C5Brg8EZ.js → rib-Dm3ubKSd.js} +1 -1
  173. package/dist/web/assets/{roboconf-Do05VEUh.js → roboconf-BLDc3VXQ.js} +1 -1
  174. package/dist/web/assets/{routeros-D0vYkkU7.js → routeros-BE3GmAwJ.js} +1 -1
  175. package/dist/web/assets/{rsl-D5sHPGhK.js → rsl-BJNhDId6.js} +1 -1
  176. package/dist/web/assets/{ruby-C1RUeSqz.js → ruby-CQ10tkxO.js} +1 -1
  177. package/dist/web/assets/{ruleslanguage-BsoPWgc2.js → ruleslanguage-DFnSuCn9.js} +1 -1
  178. package/dist/web/assets/{rust-CtaZBZ4i.js → rust-wEY88oU7.js} +1 -1
  179. package/dist/web/assets/{sas-CnfjRlE5.js → sas-gbrzG7lJ.js} +1 -1
  180. package/dist/web/assets/{scala-q_x6mzS5.js → scala-CumsYZ1V.js} +1 -1
  181. package/dist/web/assets/{scheme-D6sVctSi.js → scheme-DO8wf0St.js} +1 -1
  182. package/dist/web/assets/{scilab-SYiHdlW6.js → scilab-BeQqjCZH.js} +1 -1
  183. package/dist/web/assets/{scss-Db4_7V_0.js → scss-Bndud_G4.js} +1 -1
  184. package/dist/web/assets/{shell-CcdzrrgX.js → shell-Ui33dEFX.js} +1 -1
  185. package/dist/web/assets/{smali-DORKQgQq.js → smali-MAEUsdX_.js} +1 -1
  186. package/dist/web/assets/{smalltalk-CpQEvroj.js → smalltalk-hIj_nQ9T.js} +1 -1
  187. package/dist/web/assets/{sml-SatPISWr.js → sml-CDrYQEBb.js} +1 -1
  188. package/dist/web/assets/{sqf-cVJuwTv0.js → sqf-BfLxcAGD.js} +1 -1
  189. package/dist/web/assets/{sql-DdLii_lq.js → sql-DANvBdmv.js} +1 -1
  190. package/dist/web/assets/{sql_more-CCtqK7TS.js → sql_more-C0QRwHnL.js} +1 -1
  191. package/dist/web/assets/{stan-C7i5U7Tu.js → stan-Cj8NJPGd.js} +1 -1
  192. package/dist/web/assets/{stata-BgTOEq36.js → stata-DHZ8Glmp.js} +1 -1
  193. package/dist/web/assets/{stdio-VW2BGJTO-BWf4fkd0.js → stdio-XAHYUHLM-Ci3DPFXU.js} +1 -1
  194. package/dist/web/assets/{step21-4wF-EYaY.js → step21-DYbMWMLq.js} +1 -1
  195. package/dist/web/assets/{stylus-CudOUVbX.js → stylus-HTTDZjuT.js} +1 -1
  196. package/dist/web/assets/{subunit-FzxEcGnA.js → subunit-VIqybOs4.js} +1 -1
  197. package/dist/web/assets/{swift-AkuIHMma.js → swift-BR9ynvuv.js} +1 -1
  198. package/dist/web/assets/{taggerscript-zQnQHjds.js → taggerscript-BBIZMwyL.js} +1 -1
  199. package/dist/web/assets/{tap-D_u25MR4.js → tap-DgYlHFwQ.js} +1 -1
  200. package/dist/web/assets/{tcl-BmBEXBlk.js → tcl-BOVb5he3.js} +1 -1
  201. package/dist/web/assets/{thrift-DWC0li1Q.js → thrift-DnYrJP2I.js} +1 -1
  202. package/dist/web/assets/{tp-CEq959sY.js → tp-CKMrYpFB.js} +1 -1
  203. package/dist/web/assets/{twig-C5Wb7ck9.js → twig-C8yRQ_si.js} +1 -1
  204. package/dist/web/assets/{typescript-WdBZkgaL.js → typescript-Bp8GRFbQ.js} +1 -1
  205. package/dist/web/assets/{vala-eCM8DSFy.js → vala-Bv7tX-YP.js} +1 -1
  206. package/dist/web/assets/{vbnet-zpULNywC.js → vbnet-B-xyxnsY.js} +1 -1
  207. package/dist/web/assets/{vbscript-B03M3MbK.js → vbscript-DCSS0QgU.js} +1 -1
  208. package/dist/web/assets/{vbscript-html-g1Gm8Ll9.js → vbscript-html-DkK5mhXa.js} +1 -1
  209. package/dist/web/assets/{verilog-TtrPSIop.js → verilog-CaWRJI65.js} +1 -1
  210. package/dist/web/assets/{vhdl-it3lcJPz.js → vhdl-UJHisrmd.js} +1 -1
  211. package/dist/web/assets/{vim-C2d-HZcP.js → vim-CTdBAd8A.js} +1 -1
  212. package/dist/web/assets/{x86asm-C7xtdQmL.js → x86asm-DipJ34Qb.js} +1 -1
  213. package/dist/web/assets/{xl-C1gdeZPe.js → xl-DfcCv_5D.js} +1 -1
  214. package/dist/web/assets/{xml-NLr-LcF5.js → xml-Ds8sXZ7Q.js} +1 -1
  215. package/dist/web/assets/{xquery-oLMw5fck.js → xquery-BofP9fWJ.js} +1 -1
  216. package/dist/web/assets/{yaml-C8U6fnu_.js → yaml-CsOQPuOU.js} +1 -1
  217. package/dist/web/assets/{zephir-CgFtZG3z.js → zephir-CU7UAhpm.js} +1 -1
  218. package/dist/web/index.html +2 -2
  219. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import{o as E,s as x,i as P,v as $,p as S,A as b,a as C,e as N,m as O,_ as g,b as A,c as I,d as L,f as J,T as f,g as F,C as R,h as M,j as y,k as B,l as _,n as j,q as Z}from"./index-CWVLvgjZ.js";import{B as W,i as q,a as H,b as K,c as V}from"./index-DMftCgN8.js";var z={};j(z,{BaseToolkit:()=>G,DynamicStructuredTool:()=>k,DynamicTool:()=>D,StructuredTool:()=>T,Tool:()=>w,ToolInputParsingException:()=>f,isLangChainTool:()=>V,isRunnableToolLike:()=>K,isStructuredTool:()=>H,isStructuredToolParams:()=>q,tool:()=>Q});var T=class extends W{extras;returnDirect=!1;verboseParsingErrors=!1;get lc_namespace(){return["langchain","tools"]}responseFormat="content";defaultConfig;constructor(t){super(t??{}),this.verboseParsingErrors=t?.verboseParsingErrors??this.verboseParsingErrors,this.responseFormat=t?.responseFormat??this.responseFormat,this.defaultConfig=t?.defaultConfig??this.defaultConfig,this.metadata=t?.metadata??this.metadata,this.extras=t?.extras??this.extras}async invoke(t,e){let a,s=N(O(this.defaultConfig,e));return g(t)?(a=t.args,s={...s,toolCall:t}):a=t,this.call(a,s)}async call(t,e,a){const s=g(t)?t.args:t;let u;if(A(this.schema))try{u=await I(this.schema,s)}catch(c){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
1
+ import{o as E,s as x,i as P,v as $,p as S,A as b,a as C,e as N,m as O,_ as g,b as A,c as I,d as L,f as J,T as f,g as F,C as R,h as M,j as y,k as B,l as _,n as j,q as Z}from"./index-BQDf_2QT.js";import{B as W,i as q,a as H,b as K,c as V}from"./index-DhbVcA9F.js";var z={};j(z,{BaseToolkit:()=>G,DynamicStructuredTool:()=>k,DynamicTool:()=>D,StructuredTool:()=>T,Tool:()=>w,ToolInputParsingException:()=>f,isLangChainTool:()=>V,isRunnableToolLike:()=>K,isStructuredTool:()=>H,isStructuredToolParams:()=>q,tool:()=>Q});var T=class extends W{extras;returnDirect=!1;verboseParsingErrors=!1;get lc_namespace(){return["langchain","tools"]}responseFormat="content";defaultConfig;constructor(t){super(t??{}),this.verboseParsingErrors=t?.verboseParsingErrors??this.verboseParsingErrors,this.responseFormat=t?.responseFormat??this.responseFormat,this.defaultConfig=t?.defaultConfig??this.defaultConfig,this.metadata=t?.metadata??this.metadata,this.extras=t?.extras??this.extras}async invoke(t,e){let a,s=N(O(this.defaultConfig,e));return g(t)?(a=t.args,s={...s,toolCall:t}):a=t,this.call(a,s)}async call(t,e,a){const s=g(t)?t.args:t;let u;if(A(this.schema))try{u=await I(this.schema,s)}catch(c){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
2
2
  Details: ${c.message}`),L(c)&&(o=`${o}
3
3
 
4
4
  ${J(c)}`),new f(o,JSON.stringify(t))}else{const c=F(s,this.schema);if(!c.valid){let o="Received tool input did not match expected schema";throw this.verboseParsingErrors&&(o=`${o}
@@ -1,4 +1,4 @@
1
- import{g as Ss,O as jt,h as ks,c as qt,f as Ts,J as Ms,S as vs,R as Dt}from"./index-DMftCgN8.js";import{x as Os,b2 as y,b3 as Wt,b4 as Is,b5 as As,b6 as Ft,a0 as kn,U as ve,aA as Ht,Z as Rs,$ as Cs,W as N,a1 as Ps,b as ot,Q as ie,V as Es,a2 as Ns,b7 as Us,b8 as tt,b9 as b,ba as w,bb as E,bc as Bs,bd as At}from"./index-CWVLvgjZ.js";import{t as Ie}from"./index-wt2H_Smv.js";var Jt=class extends Ss{static lc_name(){return"AnthropicToolsOutputParser"}lc_namespace=["langchain","anthropic","output_parsers"];returnId=!1;keyName;returnSingle=!1;zodSchema;constructor(t){super(t),this.keyName=t.keyName,this.returnSingle=t.returnSingle??this.returnSingle,this.zodSchema=t.zodSchema}async _validateResult(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch(r){throw new jt(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(r.message)}`,t)}else e=t;if(this.zodSchema===void 0)return e;const n=await Os(this.zodSchema,e);if(n.success)return n.data;throw new jt(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(n.error.issues)}`,JSON.stringify(e,null,2))}async parseResult(t){const e=t.flatMap(s=>{const{message:a}=s;return Array.isArray(a.content)?Tn(a.content)[0]:[]});if(e[0]===void 0)throw new Error("No parseable tool calls provided to AnthropicToolsOutputParser.");const[n]=e;return await this._validateResult(n.args)}};function Tn(t){const e=[];for(const n of t)n.type==="tool_use"&&e.push({name:n.name,args:n.input,id:n.id,type:"tool_call"});return e}function $s(t){if(t)return t==="any"?{type:"any"}:t==="auto"?{type:"auto"}:t==="none"?{type:"none"}:typeof t=="string"?{type:"tool",name:t}:t}const Ls=y({cache_control:As().optional().nullable(),defer_loading:Is().optional(),input_examples:Wt(Ft()).optional(),allowed_callers:Wt(Ft()).optional()}),Kt={tool_search_tool_regex_20251119:"advanced-tool-use-2025-11-20",tool_search_tool_bm25_20251119:"advanced-tool-use-2025-11-20",memory_20250818:"context-management-2025-06-27",web_fetch_20250910:"web-fetch-2025-09-10",code_execution_20250825:"code-execution-2025-08-25",computer_20251124:"computer-use-2025-11-24",computer_20250124:"computer-use-2025-01-24",mcp_toolset:"mcp-client-2025-11-20"};function js(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="thinking"}function qs(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="redacted_thinking"}function Ds(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="search_result"}function Ws(t){return typeof t!="object"||t==null||!("type"in t)||t.type!=="image"||!("source"in t)||typeof t.source!="object"||t.source==null||!("type"in t.source)?!1:t.source.type==="base64"?!(!("media_type"in t.source)||typeof t.source.media_type!="string"||!("data"in t.source)||typeof t.source.data!="string"):t.source.type==="url"?!(!("url"in t.source)||typeof t.source.url!="string"):!1}const Fs={providerName:"anthropic",fromStandardTextBlock(t){return{type:"text",text:t.text,..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}},fromStandardImageBlock(t){if(t.source_type==="url"){const e=kn({dataUrl:t.url,asTypedArray:!1});return e?{type:"image",source:{type:"base64",data:e.data,media_type:e.mime_type},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}:{type:"image",source:{type:"url",url:t.url},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}}else{if(t.source_type==="base64")return{type:"image",source:{type:"base64",data:t.data,media_type:t.mime_type??""},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}};throw new Error(`Unsupported image source type: ${t.source_type}`)}},fromStandardFileBlock(t){const e=(t.mime_type??"").split(";")[0];if(t.source_type==="url"){if(e==="application/pdf"||e==="")return{type:"document",source:{type:"url",url:t.url},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file url source: ${t.mime_type}`)}else if(t.source_type==="text"){if(e==="text/plain"||e==="")return{type:"document",source:{type:"text",data:t.text,media_type:t.mime_type??""},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file text source: ${t.mime_type}`)}else if(t.source_type==="base64"){if(e==="application/pdf"||e==="")return{type:"document",source:{type:"base64",data:t.data,media_type:"application/pdf"},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};if(["image/jpeg","image/png","image/gif","image/webp"].includes(e))return{type:"document",source:{type:"content",content:[{type:"image",source:{type:"base64",data:t.data,media_type:e}}]},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file base64 source: ${t.mime_type}`)}else throw new Error(`Unsupported file source type: ${t.source_type}`)}},Hs=t=>t();function Js(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="citation"}function Ks(t){function*e(){for(const n of t)Js(n)&&(n.source==="char"?yield{type:"char_location",file_id:n.url??"",start_char_index:n.startIndex??0,end_char_index:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="page"?yield{type:"page_location",file_id:n.url??"",start_page_number:n.startIndex??0,end_page_number:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="block"?yield{type:"content_block_location",file_id:n.url??"",start_block_index:n.startIndex??0,end_block_index:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="url"?yield{type:"web_search_result_location",url:n.url??"",title:n.title??null,encrypted_index:String(n.startIndex??0),cited_text:n.citedText??""}:n.source==="search"&&(yield{type:"search_result_location",title:n.title??null,start_block_index:n.startIndex??0,end_block_index:n.endIndex??0,search_result_index:0,source:n.source??"",cited_text:n.citedText??""}))}return Array.from(e())}function oe(t){return typeof t=="string"?t:Xs(t)}function Xs(t){const e=[];for(let n=0,{length:r}=t;n<r;n++)e.push(String.fromCharCode(t[n]));return btoa(e.join(""))}function ct(t){return(t??"").split(";")[0].toLowerCase()}function ke(t,e){if(t!=null&&typeof t=="object"&&e in t)return t[e]}function Z(t,e){const n=ke(e,"cache_control");n!==void 0&&(t.cache_control=n);const r=ke(e,"citations");r!==void 0&&(t.citations=r);const s=ke(e,"context");s!==void 0&&(t.context=s);const a=ke(e,"title");return a!==void 0&&(t.title=a),t}function ut(t,e){const n=ke(e,"cache_control");return n!==void 0&&(t.cache_control=n),t}function Xt(t){return new Set(["image/jpeg","image/png","image/gif","image/webp"]).has(t)}function zs(t){const e=[],n=t.response_metadata,r="model_provider"in n&&n?.model_provider==="anthropic";for(const s of t.contentBlocks)if(s.type==="text")s.annotations?e.push({type:"text",text:s.text,citations:Ks(s.annotations)}):e.push({type:"text",text:s.text});else if(s.type==="tool_call")e.push({type:"tool_use",id:s.id??"",name:s.name,input:s.args});else if(s.type==="tool_call_chunk"){const a=Hs(()=>{if(typeof s.args!="string")return s.args;try{return JSON.parse(s.args)}catch{return{}}});e.push({type:"tool_use",id:s.id??"",name:s.name??"",input:a})}else if(s.type==="reasoning"&&r)e.push({type:"thinking",thinking:s.reasoning,signature:String(s.signature)});else if(s.type==="server_tool_call"&&r)s.name==="web_search"?e.push({type:"server_tool_use",name:s.name,id:s.id??"",input:s.args}):s.name==="code_execution"&&e.push({type:"server_tool_use",name:s.name,id:s.id??"",input:s.args});else if(s.type==="server_tool_call_result"&&r)if(s.name==="web_search"&&Array.isArray(s.output.urls)){const a=s.output.urls.map(i=>({type:"web_search_result",title:"",encrypted_content:"",url:i}));e.push({type:"web_search_tool_result",tool_use_id:s.toolCallId??"",content:a})}else s.name==="code_execution"?e.push({type:"code_execution_tool_result",tool_use_id:s.toolCallId??"",content:s.output}):s.name==="mcp_tool_result"&&e.push({type:"mcp_tool_result",tool_use_id:s.toolCallId??"",content:s.output});else{if(s.type==="audio")throw new Error("Anthropic does not support audio content blocks.");if(s.type==="file"){const a=s.metadata;if(s.fileId){e.push(Z({type:"document",source:{type:"file",file_id:s.fileId}},a));continue}if(s.url){const i=ct(s.mimeType);if(i==="application/pdf"||i===""){e.push(Z({type:"document",source:{type:"url",url:s.url}},a));continue}}if(s.data){const i=ct(s.mimeType);if(i===""||i==="application/pdf")e.push(Z({type:"document",source:{type:"base64",data:oe(s.data),media_type:"application/pdf"}},a));else if(i==="text/plain")e.push(Z({type:"document",source:{type:"text",data:oe(s.data),media_type:"text/plain"}},a));else if(Xt(i))e.push(Z({type:"document",source:{type:"content",content:[{type:"image",source:{type:"base64",data:oe(s.data),media_type:i}}]}},a));else throw new Error(`Unsupported file mime type for Anthropic base64 source: ${i}`);continue}throw new Error("File content block must include a fileId, url, or data property.")}else if(s.type==="image"){const a=s.metadata;if(s.fileId){e.push(ut({type:"image",source:{type:"file",file_id:s.fileId}},a));continue}if(s.url){e.push(ut({type:"image",source:{type:"url",url:s.url}},a));continue}if(s.data){const i=ct(s.mimeType)||"image/png";Xt(i)&&e.push(ut({type:"image",source:{type:"base64",data:oe(s.data),media_type:i}},a));continue}throw new Error("Image content block must include a fileId, url, or data property.")}else s.type==="video"||(s.type==="text-plain"?s.data&&e.push(Z({type:"document",source:{type:"text",data:oe(s.data),media_type:"text/plain"}},s.metadata)):s.type==="non_standard"&&r&&e.push(s.value))}return e}function lt(t){const e=kn({dataUrl:t});if(e)return{type:"base64",media_type:e.mime_type,data:e.data};let n;try{n=new URL(t)}catch{throw new Error([`Malformed image URL: ${JSON.stringify(t)}. Content blocks of type 'image_url' must be a valid http, https, or base64-encoded data URL.`,"Example: data:image/png;base64,/9j/4AAQSk...","Example: https://example.com/image.jpg"].join(`
1
+ import{g as Ss,O as jt,h as ks,c as qt,f as Ts,J as Ms,S as vs,R as Dt}from"./index-DhbVcA9F.js";import{x as Os,b2 as y,b3 as Wt,b4 as Is,b5 as As,b6 as Ft,a0 as kn,U as ve,aA as Ht,Z as Rs,$ as Cs,W as N,a1 as Ps,b as ot,Q as ie,V as Es,a2 as Ns,b7 as Us,b8 as tt,b9 as b,ba as w,bb as E,bc as Bs,bd as At}from"./index-BQDf_2QT.js";import{t as Ie}from"./index-BaQ4JmMg.js";var Jt=class extends Ss{static lc_name(){return"AnthropicToolsOutputParser"}lc_namespace=["langchain","anthropic","output_parsers"];returnId=!1;keyName;returnSingle=!1;zodSchema;constructor(t){super(t),this.keyName=t.keyName,this.returnSingle=t.returnSingle??this.returnSingle,this.zodSchema=t.zodSchema}async _validateResult(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch(r){throw new jt(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(r.message)}`,t)}else e=t;if(this.zodSchema===void 0)return e;const n=await Os(this.zodSchema,e);if(n.success)return n.data;throw new jt(`Failed to parse. Text: "${JSON.stringify(t,null,2)}". Error: ${JSON.stringify(n.error.issues)}`,JSON.stringify(e,null,2))}async parseResult(t){const e=t.flatMap(s=>{const{message:a}=s;return Array.isArray(a.content)?Tn(a.content)[0]:[]});if(e[0]===void 0)throw new Error("No parseable tool calls provided to AnthropicToolsOutputParser.");const[n]=e;return await this._validateResult(n.args)}};function Tn(t){const e=[];for(const n of t)n.type==="tool_use"&&e.push({name:n.name,args:n.input,id:n.id,type:"tool_call"});return e}function $s(t){if(t)return t==="any"?{type:"any"}:t==="auto"?{type:"auto"}:t==="none"?{type:"none"}:typeof t=="string"?{type:"tool",name:t}:t}const Ls=y({cache_control:As().optional().nullable(),defer_loading:Is().optional(),input_examples:Wt(Ft()).optional(),allowed_callers:Wt(Ft()).optional()}),Kt={tool_search_tool_regex_20251119:"advanced-tool-use-2025-11-20",tool_search_tool_bm25_20251119:"advanced-tool-use-2025-11-20",memory_20250818:"context-management-2025-06-27",web_fetch_20250910:"web-fetch-2025-09-10",code_execution_20250825:"code-execution-2025-08-25",computer_20251124:"computer-use-2025-11-24",computer_20250124:"computer-use-2025-01-24",mcp_toolset:"mcp-client-2025-11-20"};function js(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="thinking"}function qs(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="redacted_thinking"}function Ds(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="search_result"}function Ws(t){return typeof t!="object"||t==null||!("type"in t)||t.type!=="image"||!("source"in t)||typeof t.source!="object"||t.source==null||!("type"in t.source)?!1:t.source.type==="base64"?!(!("media_type"in t.source)||typeof t.source.media_type!="string"||!("data"in t.source)||typeof t.source.data!="string"):t.source.type==="url"?!(!("url"in t.source)||typeof t.source.url!="string"):!1}const Fs={providerName:"anthropic",fromStandardTextBlock(t){return{type:"text",text:t.text,..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}},fromStandardImageBlock(t){if(t.source_type==="url"){const e=kn({dataUrl:t.url,asTypedArray:!1});return e?{type:"image",source:{type:"base64",data:e.data,media_type:e.mime_type},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}:{type:"image",source:{type:"url",url:t.url},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}}}else{if(t.source_type==="base64")return{type:"image",source:{type:"base64",data:t.data,media_type:t.mime_type??""},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{}};throw new Error(`Unsupported image source type: ${t.source_type}`)}},fromStandardFileBlock(t){const e=(t.mime_type??"").split(";")[0];if(t.source_type==="url"){if(e==="application/pdf"||e==="")return{type:"document",source:{type:"url",url:t.url},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file url source: ${t.mime_type}`)}else if(t.source_type==="text"){if(e==="text/plain"||e==="")return{type:"document",source:{type:"text",data:t.text,media_type:t.mime_type??""},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file text source: ${t.mime_type}`)}else if(t.source_type==="base64"){if(e==="application/pdf"||e==="")return{type:"document",source:{type:"base64",data:t.data,media_type:"application/pdf"},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};if(["image/jpeg","image/png","image/gif","image/webp"].includes(e))return{type:"document",source:{type:"content",content:[{type:"image",source:{type:"base64",data:t.data,media_type:e}}]},..."cache_control"in(t.metadata??{})?{cache_control:t.metadata.cache_control}:{},..."citations"in(t.metadata??{})?{citations:t.metadata.citations}:{},..."context"in(t.metadata??{})?{context:t.metadata.context}:{},..."title"in(t.metadata??{})?{title:t.metadata.title}:{}};throw new Error(`Unsupported file mime type for file base64 source: ${t.mime_type}`)}else throw new Error(`Unsupported file source type: ${t.source_type}`)}},Hs=t=>t();function Js(t){return typeof t=="object"&&t!==null&&"type"in t&&t.type==="citation"}function Ks(t){function*e(){for(const n of t)Js(n)&&(n.source==="char"?yield{type:"char_location",file_id:n.url??"",start_char_index:n.startIndex??0,end_char_index:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="page"?yield{type:"page_location",file_id:n.url??"",start_page_number:n.startIndex??0,end_page_number:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="block"?yield{type:"content_block_location",file_id:n.url??"",start_block_index:n.startIndex??0,end_block_index:n.endIndex??0,document_title:n.title??null,document_index:0,cited_text:n.citedText??""}:n.source==="url"?yield{type:"web_search_result_location",url:n.url??"",title:n.title??null,encrypted_index:String(n.startIndex??0),cited_text:n.citedText??""}:n.source==="search"&&(yield{type:"search_result_location",title:n.title??null,start_block_index:n.startIndex??0,end_block_index:n.endIndex??0,search_result_index:0,source:n.source??"",cited_text:n.citedText??""}))}return Array.from(e())}function oe(t){return typeof t=="string"?t:Xs(t)}function Xs(t){const e=[];for(let n=0,{length:r}=t;n<r;n++)e.push(String.fromCharCode(t[n]));return btoa(e.join(""))}function ct(t){return(t??"").split(";")[0].toLowerCase()}function ke(t,e){if(t!=null&&typeof t=="object"&&e in t)return t[e]}function Z(t,e){const n=ke(e,"cache_control");n!==void 0&&(t.cache_control=n);const r=ke(e,"citations");r!==void 0&&(t.citations=r);const s=ke(e,"context");s!==void 0&&(t.context=s);const a=ke(e,"title");return a!==void 0&&(t.title=a),t}function ut(t,e){const n=ke(e,"cache_control");return n!==void 0&&(t.cache_control=n),t}function Xt(t){return new Set(["image/jpeg","image/png","image/gif","image/webp"]).has(t)}function zs(t){const e=[],n=t.response_metadata,r="model_provider"in n&&n?.model_provider==="anthropic";for(const s of t.contentBlocks)if(s.type==="text")s.annotations?e.push({type:"text",text:s.text,citations:Ks(s.annotations)}):e.push({type:"text",text:s.text});else if(s.type==="tool_call")e.push({type:"tool_use",id:s.id??"",name:s.name,input:s.args});else if(s.type==="tool_call_chunk"){const a=Hs(()=>{if(typeof s.args!="string")return s.args;try{return JSON.parse(s.args)}catch{return{}}});e.push({type:"tool_use",id:s.id??"",name:s.name??"",input:a})}else if(s.type==="reasoning"&&r)e.push({type:"thinking",thinking:s.reasoning,signature:String(s.signature)});else if(s.type==="server_tool_call"&&r)s.name==="web_search"?e.push({type:"server_tool_use",name:s.name,id:s.id??"",input:s.args}):s.name==="code_execution"&&e.push({type:"server_tool_use",name:s.name,id:s.id??"",input:s.args});else if(s.type==="server_tool_call_result"&&r)if(s.name==="web_search"&&Array.isArray(s.output.urls)){const a=s.output.urls.map(i=>({type:"web_search_result",title:"",encrypted_content:"",url:i}));e.push({type:"web_search_tool_result",tool_use_id:s.toolCallId??"",content:a})}else s.name==="code_execution"?e.push({type:"code_execution_tool_result",tool_use_id:s.toolCallId??"",content:s.output}):s.name==="mcp_tool_result"&&e.push({type:"mcp_tool_result",tool_use_id:s.toolCallId??"",content:s.output});else{if(s.type==="audio")throw new Error("Anthropic does not support audio content blocks.");if(s.type==="file"){const a=s.metadata;if(s.fileId){e.push(Z({type:"document",source:{type:"file",file_id:s.fileId}},a));continue}if(s.url){const i=ct(s.mimeType);if(i==="application/pdf"||i===""){e.push(Z({type:"document",source:{type:"url",url:s.url}},a));continue}}if(s.data){const i=ct(s.mimeType);if(i===""||i==="application/pdf")e.push(Z({type:"document",source:{type:"base64",data:oe(s.data),media_type:"application/pdf"}},a));else if(i==="text/plain")e.push(Z({type:"document",source:{type:"text",data:oe(s.data),media_type:"text/plain"}},a));else if(Xt(i))e.push(Z({type:"document",source:{type:"content",content:[{type:"image",source:{type:"base64",data:oe(s.data),media_type:i}}]}},a));else throw new Error(`Unsupported file mime type for Anthropic base64 source: ${i}`);continue}throw new Error("File content block must include a fileId, url, or data property.")}else if(s.type==="image"){const a=s.metadata;if(s.fileId){e.push(ut({type:"image",source:{type:"file",file_id:s.fileId}},a));continue}if(s.url){e.push(ut({type:"image",source:{type:"url",url:s.url}},a));continue}if(s.data){const i=ct(s.mimeType)||"image/png";Xt(i)&&e.push(ut({type:"image",source:{type:"base64",data:oe(s.data),media_type:i}},a));continue}throw new Error("Image content block must include a fileId, url, or data property.")}else s.type==="video"||(s.type==="text-plain"?s.data&&e.push(Z({type:"document",source:{type:"text",data:oe(s.data),media_type:"text/plain"}},s.metadata)):s.type==="non_standard"&&r&&e.push(s.value))}return e}function lt(t){const e=kn({dataUrl:t});if(e)return{type:"base64",media_type:e.mime_type,data:e.data};let n;try{n=new URL(t)}catch{throw new Error([`Malformed image URL: ${JSON.stringify(t)}. Content blocks of type 'image_url' must be a valid http, https, or base64-encoded data URL.`,"Example: data:image/png;base64,/9j/4AAQSk...","Example: https://example.com/image.jpg"].join(`
2
2
 
3
3
  `))}if(n.protocol==="http:"||n.protocol==="https:")return{type:"url",url:t};throw new Error([`Invalid image URL protocol: ${JSON.stringify(n.protocol)}. Anthropic only supports images as http, https, or base64-encoded data URLs on 'image_url' content blocks.`,"Example: data:image/png;base64,/9j/4AAQSk...","Example: https://example.com/image.jpg"].join(`
4
4
 
@@ -1,4 +1,4 @@
1
- import{X as Zs,be as Za,bf as x,bg as Ja,ad as Ha,ac as Va,Q as Me,bh as Xa,a1 as R,b as et,aw as Ga,aJ as Ya,a2 as Qa,Z as Js,$ as Hs,U as Ce,l as bt,bi as ei,W as vn,bj as rs,bk as ti,bl as ni,bm as si,a0 as as,bn as is,bo as ri,y as ai,V as sn,G as ii,b2 as Z,b8 as xn,ba as te,bc as Vs,bb as W,b3 as Mt,b9 as Q,bp as oi,p as ui,A as li,a as ci}from"./index-CWVLvgjZ.js";import{c as pi,j as di,h as hi,f as Xs,S as os,J as us,R as ls,k as fi}from"./index-DMftCgN8.js";import{J as cs,c as mi,p as Gs,m as lt,B as gi}from"./llms-DmX_6p6K.js";import{c as rn,E as _i}from"./embeddings-BjbiOR07.js";import{T as yi,t as zt,D as wi}from"./index-wt2H_Smv.js";function tt(e,t){return e.lc_error_code=t,e.message=`${e.message}
1
+ import{X as Zs,be as Za,bf as x,bg as Ja,ad as Ha,ac as Va,Q as Me,bh as Xa,a1 as R,b as et,aw as Ga,aJ as Ya,a2 as Qa,Z as Js,$ as Hs,U as Ce,l as bt,bi as ei,W as vn,bj as rs,bk as ti,bl as ni,bm as si,a0 as as,bn as is,bo as ri,y as ai,V as sn,G as ii,b2 as Z,b8 as xn,ba as te,bc as Vs,bb as W,b3 as Mt,b9 as Q,bp as oi,p as ui,A as li,a as ci}from"./index-BQDf_2QT.js";import{c as pi,j as di,h as hi,f as Xs,S as os,J as us,R as ls,k as fi}from"./index-DhbVcA9F.js";import{J as cs,c as mi,p as Gs,m as lt,B as gi}from"./llms-iELWWhGP.js";import{c as rn,E as _i}from"./embeddings-DD3kbxNt.js";import{T as yi,t as zt,D as wi}from"./index-BaQ4JmMg.js";function tt(e,t){return e.lc_error_code=t,e.message=`${e.message}
2
2
 
3
3
  Troubleshooting URL: https://docs.langchain.com/oss/javascript/langchain/errors/${t}/
4
4
  `,e}function O(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}function p(e,t,n,s){if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?s:n==="a"?s.call(e):s?s.value:t.get(e)}let Ys=function(){const{crypto:e}=globalThis;if(e?.randomUUID)return Ys=e.randomUUID.bind(e),e.randomUUID();const t=new Uint8Array(1),n=e?()=>e.getRandomValues(t)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,s=>(+s^n()&15>>+s/4).toString(16))};function an(e){return typeof e=="object"&&e!==null&&("name"in e&&e.name==="AbortError"||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}const on=e=>{if(e instanceof Error)return e;if(typeof e=="object"&&e!==null){try{if(Object.prototype.toString.call(e)==="[object Error]"){const t=new Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return new Error(JSON.stringify(e))}catch{}}return new Error(e)};class A extends Error{}class q extends A{constructor(t,n,s,r){super(`${q.makeMessage(t,n,s)}`),this.status=t,this.headers=r,this.requestID=r?.get("x-request-id"),this.error=n;const a=n;this.code=a?.code,this.param=a?.param,this.type=a?.type}static makeMessage(t,n,s){const r=n?.message?typeof n.message=="string"?n.message:JSON.stringify(n.message):n?JSON.stringify(n):s;return t&&r?`${t} ${r}`:t?`${t} status code (no body)`:r||"(no status code or body)"}static generate(t,n,s,r){if(!t||!r)return new Ut({message:s,cause:on(n)});const a=n?.error;return t===400?new Qs(t,a,s,r):t===401?new er(t,a,s,r):t===403?new tr(t,a,s,r):t===404?new nr(t,a,s,r):t===409?new sr(t,a,s,r):t===422?new rr(t,a,s,r):t===429?new ar(t,a,s,r):t>=500?new ir(t,a,s,r):new q(t,a,s,r)}}class ee extends q{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Ut extends q{constructor({message:t,cause:n}){super(void 0,void 0,t||"Connection error.",void 0),n&&(this.cause=n)}}class Lt extends Ut{constructor({message:t}={}){super({message:t??"Request timed out."})}}class Qs extends q{}class er extends q{}class tr extends q{}class nr extends q{}class sr extends q{}class rr extends q{}class ar extends q{}class ir extends q{}class or extends A{constructor(){super("Could not parse response content as the length limit was reached")}}class ur extends A{constructor(){super("Could not parse response content as the request was rejected by the content filter")}}class ze extends Error{constructor(t){super(t)}}const bi=/^[a-z][a-z0-9+.-]*:/i,Ai=e=>bi.test(e);let V=e=>(V=Array.isArray,V(e)),ps=V;function lr(e){return typeof e!="object"?{}:e??{}}function Ii(e){if(!e)return!0;for(const t in e)return!1;return!0}function Oi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ct(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const vi=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new A(`${e} must be an integer`);if(t<0)throw new A(`${e} must be a positive integer`);return t},xi=e=>{try{return JSON.parse(e)}catch{return}},Ve=e=>new Promise(t=>setTimeout(t,e)),ve="6.17.0",ki=()=>typeof window<"u"&&typeof window.document<"u"&&typeof navigator<"u";function Ti(){return typeof Deno<"u"&&Deno.build!=null?"deno":typeof EdgeRuntime<"u"?"edge":Object.prototype.toString.call(typeof globalThis.process<"u"?globalThis.process:0)==="[object process]"?"node":"unknown"}const Ci=()=>{const e=Ti();if(e==="deno")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":hs(Deno.build.os),"X-Stainless-Arch":ds(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":typeof Deno.version=="string"?Deno.version:Deno.version?.deno??"unknown"};if(typeof EdgeRuntime<"u")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if(e==="node")return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":hs(globalThis.process.platform??"unknown"),"X-Stainless-Arch":ds(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};const t=Si();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ve,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}};function Si(){if(typeof navigator>"u"||!navigator)return null;const e=[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}];for(const{key:t,pattern:n}of e){const s=n.exec(navigator.userAgent);if(s){const r=s[1]||0,a=s[2]||0,i=s[3]||0;return{browser:t,version:`${r}.${a}.${i}`}}}return null}const ds=e=>e==="x32"?"x32":e==="x86_64"||e==="x64"?"x64":e==="arm"?"arm":e==="aarch64"||e==="arm64"?"arm64":e?`other:${e}`:"unknown",hs=e=>(e=e.toLowerCase(),e.includes("ios")?"iOS":e==="android"?"Android":e==="darwin"?"MacOS":e==="win32"?"Windows":e==="freebsd"?"FreeBSD":e==="openbsd"?"OpenBSD":e==="linux"?"Linux":e?`Other:${e}`:"Unknown");let fs;const Pi=()=>fs??(fs=Ci());function Ri(){if(typeof fetch<"u")return fetch;throw new Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new OpenAI({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function cr(...e){const t=globalThis.ReadableStream;if(typeof t>"u")throw new Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function pr(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return cr({start(){},async pull(n){const{done:s,value:r}=await t.next();s?n.close():n.enqueue(r)},async cancel(){await t.return?.()}})}function dr(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const n=await t.read();return n?.done&&t.releaseLock(),n}catch(n){throw t.releaseLock(),n}},async return(){const n=t.cancel();return t.releaseLock(),await n,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function Ei(e){if(e===null||typeof e!="object")return;if(e[Symbol.asyncIterator]){await e[Symbol.asyncIterator]().return?.();return}const t=e.getReader(),n=t.cancel();t.releaseLock(),await n}const $i=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),hr="RFC3986",fr=e=>String(e),ms={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:fr},Ni="RFC1738";let un=(e,t)=>(un=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),un(e,t));const ae=(()=>{const e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})(),Vt=1024,Mi=(e,t,n,s,r)=>{if(e.length===0)return e;let a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(o){return"%26%23"+parseInt(o.slice(2),16)+"%3B"});let i="";for(let o=0;o<a.length;o+=Vt){const l=a.length>=Vt?a.slice(o,o+Vt):a,u=[];for(let m=0;m<l.length;++m){let d=l.charCodeAt(m);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||r===Ni&&(d===40||d===41)){u[u.length]=l.charAt(m);continue}if(d<128){u[u.length]=ae[d];continue}if(d<2048){u[u.length]=ae[192|d>>6]+ae[128|d&63];continue}if(d<55296||d>=57344){u[u.length]=ae[224|d>>12]+ae[128|d>>6&63]+ae[128|d&63];continue}m+=1,d=65536+((d&1023)<<10|l.charCodeAt(m)&1023),u[u.length]=ae[240|d>>18]+ae[128|d>>12&63]+ae[128|d>>6&63]+ae[128|d&63]}i+=u.join("")}return i};function zi(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function gs(e,t){if(V(e)){const n=[];for(let s=0;s<e.length;s+=1)n.push(t(e[s]));return n}return t(e)}const mr={brackets(e){return String(e)+"[]"},comma:"comma",indices(e,t){return String(e)+"["+t+"]"},repeat(e){return String(e)}},gr=function(e,t){Array.prototype.push.apply(e,V(t)?t:[t])};let _s;const U={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Mi,encodeValuesOnly:!1,format:hr,formatter:fr,indices:!1,serializeDate(e){return(_s??(_s=Function.prototype.call.bind(Date.prototype.toISOString)))(e)},skipNulls:!1,strictNullHandling:!1};function Ui(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"}const Xt={};function _r(e,t,n,s,r,a,i,o,l,u,m,d,f,c,w,b,C,h){let g=e,k=h,S=0,J=!1;for(;(k=k.get(Xt))!==void 0&&!J;){const $=k.get(e);if(S+=1,typeof $<"u"){if($===S)throw new RangeError("Cyclic object value");J=!0}typeof k.get(Xt)>"u"&&(S=0)}if(typeof u=="function"?g=u(t,g):g instanceof Date?g=f?.(g):n==="comma"&&V(g)&&(g=gs(g,function($){return $ instanceof Date?f?.($):$})),g===null){if(a)return l&&!b?l(t,U.encoder,C,"key",c):t;g=""}if(Ui(g)||zi(g)){if(l){const $=b?t:l(t,U.encoder,C,"key",c);return[w?.($)+"="+w?.(l(g,U.encoder,C,"value",c))]}return[w?.(t)+"="+w?.(String(g))]}const L=[];if(typeof g>"u")return L;let E;if(n==="comma"&&V(g))b&&l&&(g=gs(g,l)),E=[{value:g.length>0?g.join(",")||null:void 0}];else if(V(u))E=u;else{const $=Object.keys(g);E=m?$.sort(m):$}const B=o?String(t).replace(/\./g,"%2E"):String(t),D=s&&V(g)&&g.length===1?B+"[]":B;if(r&&V(g)&&g.length===0)return D+"[]";for(let $=0;$<E.length;++$){const M=E[$],ns=typeof M=="object"&&typeof M.value<"u"?M.value:g[M];if(i&&ns===null)continue;const Ht=d&&o?M.replace(/\./g,"%2E"):M,Wa=V(g)?typeof n=="function"?n(D,Ht):D:D+(d?"."+Ht:"["+Ht+"]");h.set(e,S);const ss=new WeakMap;ss.set(Xt,h),gr(L,_r(ns,Wa,n,s,r,a,i,o,n==="comma"&&b&&V(g)?null:l,u,m,d,f,c,w,b,C,ss))}return L}function Li(e=U){if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");const t=e.charset||U.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let n=hr;if(typeof e.format<"u"){if(!un(ms,e.format))throw new TypeError("Unknown format option provided.");n=e.format}const s=ms[n];let r=U.filter;(typeof e.filter=="function"||V(e.filter))&&(r=e.filter);let a;if(e.arrayFormat&&e.arrayFormat in mr?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=U.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");const i=typeof e.allowDots>"u"?e.encodeDotInKeys?!0:U.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:U.addQueryPrefix,allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:U.allowEmptyArrays,arrayFormat:a,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:U.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?U.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:U.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:U.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:U.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:U.encodeValuesOnly,filter:r,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:U.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:U.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:U.strictNullHandling}}function Di(e,t={}){let n=e;const s=Li(t);let r,a;typeof s.filter=="function"?(a=s.filter,n=a("",n)):V(s.filter)&&(a=s.filter,r=a);const i=[];if(typeof n!="object"||n===null)return"";const o=mr[s.arrayFormat],l=o==="comma"&&s.commaRoundTrip;r||(r=Object.keys(n)),s.sort&&r.sort(s.sort);const u=new WeakMap;for(let f=0;f<r.length;++f){const c=r[f];s.skipNulls&&n[c]===null||gr(i,_r(n[c],c,o,l,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,u))}const m=i.join(s.delimiter);let d=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?d+="utf8=%26%2310003%3B&":d+="utf8=%E2%9C%93&"),m.length>0?d+m:""}function ji(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let s=0;for(const r of e)n.set(r,s),s+=r.length;return n}let ys;function kn(e){let t;return(ys??(t=new globalThis.TextEncoder,ys=t.encode.bind(t)))(e)}let ws;function bs(e){let t;return(ws??(t=new globalThis.TextDecoder,ws=t.decode.bind(t)))(e)}var X,G;class Dt{constructor(){X.set(this,void 0),G.set(this,void 0),O(this,X,new Uint8Array),O(this,G,null)}decode(t){if(t==null)return[];const n=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?kn(t):t;O(this,X,ji([p(this,X,"f"),n]));const s=[];let r;for(;(r=Bi(p(this,X,"f"),p(this,G,"f")))!=null;){if(r.carriage&&p(this,G,"f")==null){O(this,G,r.index);continue}if(p(this,G,"f")!=null&&(r.index!==p(this,G,"f")+1||r.carriage)){s.push(bs(p(this,X,"f").subarray(0,p(this,G,"f")-1))),O(this,X,p(this,X,"f").subarray(p(this,G,"f"))),O(this,G,null);continue}const a=p(this,G,"f")!==null?r.preceding-1:r.preceding,i=bs(p(this,X,"f").subarray(0,a));s.push(i),O(this,X,p(this,X,"f").subarray(r.index)),O(this,G,null)}return s}flush(){return p(this,X,"f").length?this.decode(`