Sumitwarrior7 commited on
Commit
3eced47
·
verified ·
1 Parent(s): 80b6478

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/INSTALLER +1 -0
  2. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/METADATA +46 -0
  3. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/RECORD +83 -0
  4. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/REQUESTED +0 -0
  5. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/WHEEL +6 -0
  6. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/licenses/LICENSE +48 -0
  7. .venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/top_level.txt +1 -0
  8. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/INSTALLER +1 -0
  9. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/METADATA +169 -0
  10. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/RECORD +272 -0
  11. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/REQUESTED +0 -0
  12. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/WHEEL +4 -0
  13. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/entry_points.txt +2 -0
  14. .venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/licenses/LICENSE +201 -0
  15. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/AltairPlot-Cj80tEjo.js +0 -0
  16. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/AltairPlot-Dp2S7wtT.css +1 -0
  17. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiDocs-D66OUv1H.js +251 -0
  18. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiDocs-y7Md9q8F.css +1 -0
  19. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiRecorder-CoSLrx_1.css +1 -0
  20. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiRecorder-y0lpz3M9.js +1 -0
  21. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ArrowUp-D69HGcoh.js +1 -0
  22. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BaseForm-B7Gu_hvH.js +1 -0
  23. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BaseForm-DJxyhkeW.css +1 -0
  24. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Block-J4oodUWp.js +1 -0
  25. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BlockLabel-CZd21Hkw.js +1 -0
  26. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BlockTitle-BMm9LakX.js +1 -0
  27. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Blocks-CXVCGwNW.css +1 -0
  28. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Blocks-D6_IyY-z.js +5 -0
  29. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BokehPlot-BBQZH3vU.js +1 -0
  30. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BokehPlot-DTqQzqHn.css +1 -0
  31. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Button-BZ4d-rtD.css +1 -0
  32. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Button-D-_s2ksk.js +1 -0
  33. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Canvas3D-DomR9yf1.js +2 -0
  34. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Canvas3DGS-DEcXVidd.js +0 -0
  35. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Check-DUAHzS2-.js +1 -0
  36. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Checkbox-BbySKLMz.css +1 -0
  37. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Checkbox-HhbcVSTv.js +1 -0
  38. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Clear-BF6j078A.js +1 -0
  39. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-BLWhl1y6.js +0 -0
  40. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-Bg0YpSHl.js +1 -0
  41. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-wZDUWKrz.css +1 -0
  42. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Copy-ChCbTvli.js +1 -0
  43. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Download-Di2PsS6O.js +1 -0
  44. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/DownloadLink-TGTaev7f.js +1 -0
  45. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Dropdown--Uz_kS2s.css +1 -0
  46. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Dropdown-Beu8JVME.js +1 -0
  47. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/DropdownArrow-BOSZEGSp.js +1 -0
  48. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_area-CaG6NvhR.js +1 -0
  49. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_ies-uJl7poYh.js +1 -0
  50. .venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_image_based-BkkYWPdh.js +1 -0
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ uv
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/METADATA ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: cuda-bindings
3
+ Version: 13.2.0
4
+ Summary: Python bindings for CUDA
5
+ Author-email: NVIDIA Corporation <cuda-python-conduct@nvidia.com>
6
+ License-Expression: LicenseRef-NVIDIA-SOFTWARE-LICENSE
7
+ Project-URL: Repository, https://github.com/NVIDIA/cuda-python
8
+ Project-URL: Documentation, https://nvidia.github.io/cuda-python/
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Topic :: Database
11
+ Classifier: Topic :: Scientific/Engineering
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Environment :: GPU :: NVIDIA CUDA
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/x-rst
21
+ License-File: LICENSE
22
+ Requires-Dist: cuda-pathfinder~=1.1
23
+ Provides-Extra: all
24
+ Requires-Dist: cuda-toolkit[nvfatbin,nvjitlink,nvrtc,nvvm]==13.*; extra == "all"
25
+ Requires-Dist: cuda-toolkit[cufile]==13.*; sys_platform == "linux" and extra == "all"
26
+ Dynamic: license-file
27
+
28
+ .. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
29
+ .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
30
+
31
+ ****************************************
32
+ cuda-bindings: Low-level CUDA interfaces
33
+ ****************************************
34
+
35
+ .. image:: https://img.shields.io/badge/NVIDIA-black?logo=nvidia
36
+ :target: https://www.nvidia.com/
37
+ :alt: NVIDIA
38
+
39
+ `cuda.bindings <https://nvidia.github.io/cuda-python/cuda-bindings/>`_ is a standard set of low-level interfaces, providing full coverage of and 1:1 access to the CUDA host APIs from Python. Checkout the `Overview <https://nvidia.github.io/cuda-python/cuda-bindings/latest/overview.html>`_ for the workflow and performance results.
40
+
41
+ * `Repository <https://github.com/NVIDIA/cuda-python/tree/main/cuda_bindings>`_
42
+ * `Documentation <https://nvidia.github.io/cuda-python/cuda-bindings/>`_
43
+ * `Examples <https://github.com/NVIDIA/cuda-python/tree/main/cuda_bindings/examples>`_
44
+ * `Issue tracker <https://github.com/NVIDIA/cuda-python/issues/>`_
45
+
46
+ For the installation instruction, please refer to the `Installation <https://nvidia.github.io/cuda-python/cuda-bindings/latest/install.html>`_ page.
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/RECORD ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cuda/bindings/__init__.pxd,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ cuda/bindings/__init__.py,sha256=MwaiGzsnjQRwjtwFMGS36SnuaElYmFDh_VOT5vAvzhI,246
3
+ cuda/bindings/_bindings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ cuda/bindings/_bindings/cydriver.cpython-310-x86_64-linux-gnu.so,sha256=gx7Z13YXH8qNiBZXzbPF1LTdJwLxa6kUZgeWOW2-6NI,467496
5
+ cuda/bindings/_bindings/cydriver.pxd,sha256=Q_y7-jIEt7fWWCfYqXQZyeDiHPE-5uIXSYMUJflx1jo,68771
6
+ cuda/bindings/_bindings/cynvrtc.cpython-310-x86_64-linux-gnu.so,sha256=uZNmLeP9OPLMUZcOanbgJsuORspQAaCaDYELbcfhZV0,82568
7
+ cuda/bindings/_bindings/cynvrtc.pxd,sha256=Wo9QkstkK7t2ElKgRcpwe-0CRpO5jW2LLa6tyLYGD_I,3297
8
+ cuda/bindings/_bindings/cyruntime.cpython-310-x86_64-linux-gnu.so,sha256=BO6x-aR0kqOAsW_HP5lAMphcNehespeEz8VLJZsHdE0,933776
9
+ cuda/bindings/_bindings/cyruntime.pxd,sha256=UiIClazo-MgORJ2aAai8eqpJ6I59BuulfQKHYp1sxCo,51329
10
+ cuda/bindings/_bindings/cyruntime_ptds.cpython-310-x86_64-linux-gnu.so,sha256=p1vJHC-DKQ4KmOEW50UUD_UoIzErXx6PY88am19TXm8,791632
11
+ cuda/bindings/_bindings/cyruntime_ptds.pxd,sha256=9yYJOapFGTXpVPTCYbZ9We1DlL83L99RZdLunC-ptXg,51371
12
+ cuda/bindings/_bindings/loader.h,sha256=nv8OzG_tSP4jszgK5o4-ELSW6K1iZEwaEekIECjP1dA,545
13
+ cuda/bindings/_bindings/loader.pxd,sha256=vBMdQU-VrGguCEW58Y8V2HRzaUh5DDC0NkNWLJ_silI,252
14
+ cuda/bindings/_internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
+ cuda/bindings/_internal/_fast_enum.py,sha256=kuBsYOZ-dKPLegjNdeFIGiX79zGapvmjDEfQo_SZZmA,2331
16
+ cuda/bindings/_internal/cufile.cpython-310-x86_64-linux-gnu.so,sha256=Piod44hSJksVao3_pYN9s15tgrehd0_4_A9OFzBvRIc,103400
17
+ cuda/bindings/_internal/cufile.pxd,sha256=xfyg-AsFaZPGSB4sYyyvbWfsE1Cpa9gcvo8ZnQBLOys,5985
18
+ cuda/bindings/_internal/nvfatbin.cpython-310-x86_64-linux-gnu.so,sha256=uWwIkY215gpKUDvRxEZ0qeYsEabyiGL54_oEwNaXdnw,70280
19
+ cuda/bindings/_internal/nvfatbin.pxd,sha256=-d4BC_Hoqggc6EcTB85gYLMHz9YNqWujZiACsLjCW7A,2224
20
+ cuda/bindings/_internal/nvjitlink.cpython-310-x86_64-linux-gnu.so,sha256=JIkZVZFpD21gu3hZd0HbuvzO1ReXoEm2cc2ea3d0caI,74376
21
+ cuda/bindings/_internal/nvjitlink.pxd,sha256=kCt6Qqwi11RNNT7akUxNE8RgYwyST4lzjO6r2b0Ms2Y,2507
22
+ cuda/bindings/_internal/nvml.cpython-310-x86_64-linux-gnu.so,sha256=uf5fWT2RjKAAH7j2UrhJD5okw7JeiqPUs7tDuOgj2EQ,445768
23
+ cuda/bindings/_internal/nvml.pxd,sha256=yACnUUOAAzJ-uOnSqtouTA3McwtMdyw2000Zt84n31U,56153
24
+ cuda/bindings/_internal/nvvm.cpython-310-x86_64-linux-gnu.so,sha256=C_AMLPzbdvknzwJp1ykMZBw8lCXbCp5Zyz3KEPMMKoI,74376
25
+ cuda/bindings/_internal/nvvm.pxd,sha256=l9723vL2xP3iQoNlY9rbJVyEvf0rOhprWzLAngQEmg8,2131
26
+ cuda/bindings/_internal/utils.cpython-310-x86_64-linux-gnu.so,sha256=RiGpv6uG1cepcXDNbG2RAckZq3kgC-Y3MyLAOLm9N7M,127968
27
+ cuda/bindings/_internal/utils.pxd,sha256=LlAp7vAy5_7XqZ8IIc0dCW0duu01V3aPt8seqgx37VM,4669
28
+ cuda/bindings/_lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
+ cuda/bindings/_lib/cyruntime/cyruntime.pxd,sha256=icR65C-YpWJ59uyCRMRg_wGbqNGt6qPQLh2ksFkuTis,4785
30
+ cuda/bindings/_lib/cyruntime/cyruntime.pxi,sha256=xQGllvLx76JE8WEeKS3LjOungvwj335nP6QNmKulr8c,88191
31
+ cuda/bindings/_lib/dlfcn.pxd,sha256=Hey780RLtX6IQwca7kzsBnoMJ6CsizjfaKtcY240GrE,406
32
+ cuda/bindings/_lib/param_packer.h,sha256=ITzzEtJ4ykPY1Py7_SPlf8u1gY9tUlAelvQ6Z3b0vkc,6031
33
+ cuda/bindings/_lib/param_packer.pxd,sha256=9dAhnMLzwYbdDhdiTW6EFXRPfIE5wvfnKwoZTVIhjgs,374
34
+ cuda/bindings/_lib/utils.pxd,sha256=WxVRuS8qEv9Bn7JNAoL6vswIlMzVhJhsEAWW-1TVWPg,3799
35
+ cuda/bindings/_lib/utils.pxi,sha256=m_ExKSMLe3-SUSIeI0pk5l399Cu9vZbI7AXvyIga3I4,31414
36
+ cuda/bindings/_lib/windll.pxd,sha256=oOzOOJ_hpQNVnqareRx3h_ctJI_zpebBDfaRhxtpSk8,1445
37
+ cuda/bindings/_test_helpers/__init__.py,sha256=cgHj5gSAhwMG-0TGW_v4V-rrqaPQqtshVyKh_WiQpEg,401
38
+ cuda/bindings/_test_helpers/arch_check.py,sha256=5JybKYuYW2h6wxcyUG5Erp9LIYKUp-58KnvLqaxsVXs,2515
39
+ cuda/bindings/_version.py,sha256=YmFawMiMsMMopNM_zwbeX2OsUEwuEcxqVTzLAximZ_s,714
40
+ cuda/bindings/cufile.cpython-310-x86_64-linux-gnu.so,sha256=Unm5hc066Geyp6L83ZLPlQ1lVLe6XL-qJaYrkaSKxL8,769864
41
+ cuda/bindings/cufile.pxd,sha256=OYdWHkVy-yXxJPo_NkcPRsqe5YU81ohUICMnPv7vuBE,3907
42
+ cuda/bindings/cycufile.cpython-310-x86_64-linux-gnu.so,sha256=CuoSHIwZitLuULxwOlLYNL351brShP43UyTpy0nsZSw,32320
43
+ cuda/bindings/cycufile.pxd,sha256=Gm_O-vlSmwsxW04z6JZyuggA1j9kcQXGrtGPSyOO67E,18282
44
+ cuda/bindings/cydriver.cpython-310-x86_64-linux-gnu.so,sha256=N5TdLPRUg_nlmXBg31iOv6Q75j-F1j4dQK-C1crh-mI,162368
45
+ cuda/bindings/cydriver.pxd,sha256=Z7yWt_UQHuxVUq1o60SHpRKyR0dXkq2Ky_aP2YlkyIw,167883
46
+ cuda/bindings/cynvfatbin.cpython-310-x86_64-linux-gnu.so,sha256=0nmk8WPhuT-b8PuyQrSICK-ZXxeQY5evSVgywhfPAkk,23424
47
+ cuda/bindings/cynvfatbin.pxd,sha256=P1a8P27aWe_CG62kEyPJxnCUU0YTykC_WZ8X26MFFKI,3834
48
+ cuda/bindings/cynvjitlink.cpython-310-x86_64-linux-gnu.so,sha256=FUpqZU4wUwkg1RYOmBfhsA8FB1WxA5agr9wyVzURUxc,23424
49
+ cuda/bindings/cynvjitlink.pxd,sha256=bemcE-jn-T_4kDTiTRKDQwipqnIHIQtsILQGzyBrevU,4688
50
+ cuda/bindings/cynvml.cpython-310-x86_64-linux-gnu.so,sha256=0_Uh-Z6Bf6b8bXau6pOIcmOEGqyRzOJSkNDi9uFmH3k,119040
51
+ cuda/bindings/cynvml.pxd,sha256=6yvtCJdW3nphEUiMbR9TU2qIKHI3_igycaomck9GuLw,143031
52
+ cuda/bindings/cynvrtc.cpython-310-x86_64-linux-gnu.so,sha256=peQEkg-Vv_NC_CrmHdXV4m-neyx2lqkFif65S_Me8d8,31616
53
+ cuda/bindings/cynvrtc.pxd,sha256=_Z60qpczpJKLmBlhyNsMBnFdfDghfQiDyI7YyunIQz8,4228
54
+ cuda/bindings/cynvvm.cpython-310-x86_64-linux-gnu.so,sha256=f1tGYAh8jSjCGshCFDn4LOKFUkX0evVIJiTaVIrl3jg,23424
55
+ cuda/bindings/cynvvm.pxd,sha256=dyeql6-YjzOwzUaL0U4HvxHDGgSMomy7ynSRi98JLUY,3131
56
+ cuda/bindings/cyruntime.cpython-310-x86_64-linux-gnu.so,sha256=L_2xinFSFokr3ROC0CGMJ5slbdwl_ww-v8VGt-nqz34,123200
57
+ cuda/bindings/cyruntime.pxd,sha256=1_ZCuRPHCYA99HYsso0CSduC8jCN3YoV2TxGUHwntQI,64867
58
+ cuda/bindings/cyruntime_functions.pxi,sha256=CuFzgwlbVfky7aR7K7RVmPPfHeLxHgE8QEhK16eE0XY,38120
59
+ cuda/bindings/cyruntime_types.pxi,sha256=LQ3cnvX6aoTc2uaVdxTgdOGx21a1lkvtSufI2XSya8c,57832
60
+ cuda/bindings/driver.cpython-310-x86_64-linux-gnu.so,sha256=JdBqHTErsoW6eWRBEIMMJx8OrvHDfl1ETJniEe4on3Q,7450144
61
+ cuda/bindings/driver.pxd,sha256=60F-C8zO3DRRtDxJwYr_H1wbYHlLTJx1J_nXcP0qhMs,215545
62
+ cuda/bindings/nvfatbin.cpython-310-x86_64-linux-gnu.so,sha256=3sUQrpFDf3KrE6n_PMRzcOCIkfsfIWrbj-8GDFRgiDg,107752
63
+ cuda/bindings/nvfatbin.pxd,sha256=abT8l_ivuJIKAhkrNUmSPqZZ_qEsuTab2SeAbXwxEjE,1512
64
+ cuda/bindings/nvjitlink.cpython-310-x86_64-linux-gnu.so,sha256=1gAYmOtvD1ZQl4G4oJOEU6A6SgSeY25XyiaWU3zuixs,107848
65
+ cuda/bindings/nvjitlink.pxd,sha256=18kkQ37F4qhP7bSV2bNZPaDLgj7zq-kefVQJUd2v0as,1675
66
+ cuda/bindings/nvml.cpython-310-x86_64-linux-gnu.so,sha256=VD2roOMKHbUq6PoL_7cVqMcAbDtDf09PTbMbCwnhWKg,4557992
67
+ cuda/bindings/nvml.pxd,sha256=sdXyWvqrVdwYpXRf6RMa-SoYjSLKtBijF3En9hsQBjk,27138
68
+ cuda/bindings/nvrtc.cpython-310-x86_64-linux-gnu.so,sha256=6vTWf0GSM0j9T1CjGNqUMW6pOCMM1c-nELJBgs81CQo,407904
69
+ cuda/bindings/nvrtc.pxd,sha256=y70KzZ9RSfbPdQuMgwh6wIJL5S5xPZah3D8badAnd1o,786
70
+ cuda/bindings/nvvm.cpython-310-x86_64-linux-gnu.so,sha256=txM16Wv9p_pWVizsIua5mKvHtz_tXfUomT4w5QOwEwE,99624
71
+ cuda/bindings/nvvm.pxd,sha256=9cRYfaRYN-C8hYZLYc322on9UhwBGOsqjGff9Hq6XIs,1561
72
+ cuda/bindings/runtime.cpython-310-x86_64-linux-gnu.so,sha256=-s35Y_suz3L8ZZoizPcBGj8mw1pH8NRGV01eOzprEco,5481376
73
+ cuda/bindings/runtime.pxd,sha256=hyJPpmaIRsZCiHzvPHCAzIFy5XwbOJWvqkGGcxqgImw,110880
74
+ cuda/bindings/utils/__init__.py,sha256=ZBltMPUI7GQbJLp_5mnRb8LkrgGKoiJFXZmTCyXUNnM,942
75
+ cuda/bindings/utils/_ptx_utils.py,sha256=XsRSXDVnuFfQEF-xDcbU_A2LRZg_CdKZscMzuRw-ZTY,3225
76
+ cuda/bindings/utils/_version_check.py,sha256=Wr-o20azz3b2wiWUrhUyzwd3RHEFBMpkbgz-6sPf_mE,2397
77
+ cuda_bindings-13.2.0.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
78
+ cuda_bindings-13.2.0.dist-info/METADATA,sha256=OPFWg1a0gffJ_ISgNrrF__6YluqHVt4GEesTycDFqmk,2329
79
+ cuda_bindings-13.2.0.dist-info/RECORD,,
80
+ cuda_bindings-13.2.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
81
+ cuda_bindings-13.2.0.dist-info/WHEEL,sha256=S0pQMymC1j_8kzFFYlJhYuLNt_1tCrGh0xqUbgWKCIg,152
82
+ cuda_bindings-13.2.0.dist-info/licenses/LICENSE,sha256=gHsN94kFVQ3-fC6hFBTLdOonjuxnrXrsJxtPC3MAy9M,11076
83
+ cuda_bindings-13.2.0.dist-info/top_level.txt,sha256=U5vpnvwNpaJF8bl4KnoUluMDTRt0J972FipwXjgNQ3A,5
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/REQUESTED ADDED
File without changes
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/WHEEL ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (13.2.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-manylinux_2_24_x86_64
5
+ Tag: cp310-cp310-manylinux_2_28_x86_64
6
+
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NVIDIA SOFTWARE LICENSE
2
+
3
+ This license is a legal agreement between you and NVIDIA Corporation ("NVIDIA") and governs your use of the NVIDIA CUDA Python software and materials provided hereunder ("SOFTWARE").
4
+
5
+ This license can be accepted only by an adult of legal age of majority in the country in which the SOFTWARE is used. If you are under the legal age of majority, you must ask your parent or legal guardian to consent to this license. By taking delivery of the SOFTWARE, you affirm that you have reached the legal age of majority, you accept the terms of this license, and you take legal and financial responsibility for the actions of your permitted users.
6
+
7
+ You agree to use the SOFTWARE only for purposes that are permitted by (a) this license, and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions.
8
+
9
+ 1. LICENSE. Subject to the terms of this license, NVIDIA grants you a non-exclusive limited license to: (a) install and use the SOFTWARE, and (b) distribute the SOFTWARE subject to the distribution requirements described in this license. NVIDIA reserves all rights, title and interest in and to the SOFTWARE not expressly granted to you under this license.
10
+
11
+ 2. DISTRIBUTION REQUIREMENTS. These are the distribution requirements for you to exercise the distribution grant:
12
+ a. The terms under which you distribute the SOFTWARE must be consistent with the terms of this license, including (without limitation) terms relating to the license grant and license restrictions and protection of NVIDIA's intellectual property rights.
13
+ b. You agree to notify NVIDIA in writing of any known or suspected distribution or use of the SOFTWARE not in compliance with the requirements of this license, and to enforce the terms of your agreements with respect to distributed SOFTWARE.
14
+
15
+ 3. LIMITATIONS. Your license to use the SOFTWARE is restricted as follows:
16
+ a. The SOFTWARE is licensed for you to develop applications only for use in systems with NVIDIA GPUs.
17
+ b. You may not reverse engineer, decompile or disassemble, or remove copyright or other proprietary notices from any portion of the SOFTWARE or copies of the SOFTWARE.
18
+ c. You may not modify or create derivative works of any portion of the SOFTWARE.
19
+ d. You may not bypass, disable, or circumvent any technical measure, encryption, security, digital rights management or authentication mechanism in the SOFTWARE.
20
+ e. You may not use the SOFTWARE in any manner that would cause it to become subject to an open source software license. As examples, licenses that require as a condition of use, modification, and/or distribution that the SOFTWARE be (i) disclosed or distributed in source code form; (ii) licensed for the purpose of making derivative works; or (iii) redistributable at no charge.
21
+ f. Unless you have an agreement with NVIDIA for this purpose, you may not use the SOFTWARE with any system or application where the use or failure of the system or application can reasonably be expected to threaten or result in personal injury, death, or catastrophic loss. Examples include use in avionics, navigation, military, medical, life support or other life critical applications. NVIDIA does not design, test or manufacture the SOFTWARE for these critical uses and NVIDIA shall not be liable to you or any third party, in whole or in part, for any claims or damages arising from such uses.
22
+ g. You agree to defend, indemnify and hold harmless NVIDIA and its affiliates, and their respective employees, contractors, agents, officers and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, fines, restitutions and expenses (including but not limited to attorney's fees and costs incident to establishing the right of indemnification) arising out of or related to use of the SOFTWARE outside of the scope of this Agreement, or not in compliance with its terms.
23
+
24
+ 4. PRE-RELEASE. SOFTWARE versions identified as alpha, beta, preview, early access or otherwise as pre-release may not be fully functional, may contain errors or design flaws, and may have reduced or different security, privacy, availability, and reliability standards relative to commercial versions of NVIDIA software and materials. You may use a pre-release SOFTWARE version at your own risk, understanding that these versions are not intended for use in production or business-critical systems.
25
+
26
+ 5. OWNERSHIP. The SOFTWARE and the related intellectual property rights therein are and will remain the sole and exclusive property of NVIDIA or its licensors. The SOFTWARE is copyrighted and protected by the laws of the United States and other countries, and international treaty provisions. NVIDIA may make changes to the SOFTWARE, at any time without notice, but is not obligated to support or update the SOFTWARE.
27
+
28
+ 6. COMPONENTS UNDER OTHER LICENSES. The SOFTWARE may include NVIDIA or third-party components with separate legal notices or terms as may be described in proprietary notices accompanying the SOFTWARE. If and to the extent there is a conflict between the terms in this license and the license terms associated with a component, the license terms associated with the components control only to the extent necessary to resolve the conflict.
29
+
30
+ 7. FEEDBACK. You may, but don't have to, provide to NVIDIA any Feedback. "Feedback" means any suggestions, bug fixes, enhancements, modifications, feature requests or other feedback regarding the SOFTWARE. For any Feedback that you voluntarily provide, you hereby grant NVIDIA and its affiliates a perpetual, non-exclusive, worldwide, irrevocable license to use, reproduce, modify, license, sublicense (through multiple tiers of sublicensees), and distribute (through multiple tiers of distributors) the Feedback without the payment of any royalties or fees to you. NVIDIA will use Feedback at its choice.
31
+
32
+ 8. NO WARRANTIES. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. NVIDIA DOES NOT WARRANT THAT THE SOFTWARE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION THEREOF WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT ALL ERRORS WILL BE CORRECTED.
33
+
34
+ 9. LIMITATIONS OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS AFFILIATES SHALL NOT BE LIABLE FOR ANY SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR ANY LOST PROFITS, PROJECT DELAYS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL, OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF OR IN CONNECTION WITH THIS LICENSE OR THE USE OR PERFORMANCE OF THE SOFTWARE, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR THEORY OF LIABILITY, EVEN IF NVIDIA HAS PREVIOUSLY BEEN ADVISED OF, OR COULD REASONABLY HAVE FORESEEN, THE POSSIBILITY OF SUCH DAMAGES. IN NO EVENT WILL NVIDIA'S AND ITS AFFILIATES TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS LICENSE EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS LIMIT.
35
+
36
+ 10. TERMINATION. Your rights under this license will terminate automatically without notice from NVIDIA if you fail to comply with any term and condition of this license or if you commence or participate in any legal proceeding against NVIDIA with respect to the SOFTWARE. NVIDIA may terminate this license with advance written notice to you if NVIDIA decides to no longer provide the SOFTWARE in a country or, in NVIDIA's sole discretion, the continued use of it is no longer commercially viable. Upon any termination of this license, you agree to promptly discontinue use of the SOFTWARE and destroy all copies in your possession or control. Your prior distributions in accordance with this license are not affected by the termination of this license. All provisions of this license will survive termination, except for the license granted to you.
37
+
38
+ 11. APPLICABLE LAW. This license will be governed in all respects by the laws of the United States and of the State of Delaware as those laws are applied to contracts entered into and performed entirely within Delaware by Delaware residents, without regard to the conflicts of laws principles. The United Nations Convention on Contracts for the International Sale of Goods is specifically disclaimed. You agree to all terms of this Agreement in the English language. The state or federal courts residing in Santa Clara County, California shall have exclusive jurisdiction over any dispute or claim arising out of this license. Notwithstanding this, you agree that NVIDIA shall still be allowed to apply for injunctive remedies or an equivalent type of urgent legal relief in any jurisdiction.
39
+
40
+ 12. NO ASSIGNMENT. This license and your rights and obligations thereunder may not be assigned by you by any means or operation of law without NVIDIA's permission. Any attempted assignment not approved by NVIDIA in writing shall be void and of no effect.
41
+
42
+ 13. EXPORT. The SOFTWARE is subject to United States export laws and regulations. You agree that you will not ship, transfer or export the SOFTWARE into any country, or use the SOFTWARE in any manner, prohibited by the United States Bureau of Industry and Security or economic sanctions regulations administered by the U.S. Department of Treasury's Office of Foreign Assets Control (OFAC), or any applicable export laws, restrictions or regulations. These laws include restrictions on destinations, end users and end use. By accepting this license, you confirm that you are not a resident or citizen of any country currently embargoed by the U.S. and that you are not otherwise prohibited from receiving the SOFTWARE.
43
+
44
+ 14. GOVERNMENT USE. The SOFTWARE has been developed entirely at private expense and is "commercial items" consisting of "commercial computer software" and "commercial computer software documentation" provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the U.S. Government or a U.S. Government subcontractor is subject to the restrictions in this license pursuant to DFARS 227.7202-3(a) or as set forth in subparagraphs (b)(1) and (2) of the Commercial Computer Software - Restricted Rights clause at FAR 52.227-19, as applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas Expressway, Santa Clara, CA 95051.
45
+
46
+ 15. ENTIRE AGREEMENT. This license is the final, complete and exclusive agreement between the parties relating to the subject matter of this license and supersedes all prior or contemporaneous understandings and agreements relating to this subject matter, whether oral or written. If any court of competent jurisdiction determines that any provision of this license is illegal, invalid or unenforceable, the remaining provisions will remain in full force and effect. This license may only be modified in a writing signed by an authorized representative of each party.
47
+
48
+ (v. May 12, 2021)
.venv/lib/python3.10/site-packages/cuda_bindings-13.2.0.dist-info/top_level.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ cuda
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/INSTALLER ADDED
@@ -0,0 +1 @@
 
 
1
+ uv
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/METADATA ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Metadata-Version: 2.4
2
+ Name: fastmcp
3
+ Version: 3.2.4
4
+ Summary: The fast, Pythonic way to build MCP servers and clients.
5
+ Project-URL: Homepage, https://gofastmcp.com
6
+ Project-URL: Repository, https://github.com/PrefectHQ/fastmcp
7
+ Project-URL: Documentation, https://gofastmcp.com
8
+ Author: Jeremiah Lowin
9
+ License-Expression: Apache-2.0
10
+ License-File: LICENSE
11
+ Keywords: agent,fastmcp,llm,mcp,mcp client,mcp server,model context protocol
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.10
21
+ Requires-Dist: authlib>=1.6.5
22
+ Requires-Dist: cyclopts>=4.0.0
23
+ Requires-Dist: exceptiongroup>=1.2.2
24
+ Requires-Dist: griffelib>=2.0.0
25
+ Requires-Dist: httpx<1.0,>=0.28.1
26
+ Requires-Dist: jsonref>=1.1.0
27
+ Requires-Dist: jsonschema-path>=0.3.4
28
+ Requires-Dist: mcp<2.0,>=1.24.0
29
+ Requires-Dist: openapi-pydantic>=0.5.1
30
+ Requires-Dist: opentelemetry-api>=1.20.0
31
+ Requires-Dist: packaging>=24.0
32
+ Requires-Dist: platformdirs>=4.0.0
33
+ Requires-Dist: py-key-value-aio[filetree,keyring,memory]<0.5.0,>=0.4.4
34
+ Requires-Dist: pydantic[email]>=2.11.7
35
+ Requires-Dist: pyperclip>=1.9.0
36
+ Requires-Dist: python-dotenv>=1.1.0
37
+ Requires-Dist: pyyaml<7.0,>=6.0
38
+ Requires-Dist: rich>=13.9.4
39
+ Requires-Dist: uncalled-for>=0.2.0
40
+ Requires-Dist: uvicorn>=0.35
41
+ Requires-Dist: watchfiles>=1.0.0
42
+ Requires-Dist: websockets>=15.0.1
43
+ Provides-Extra: anthropic
44
+ Requires-Dist: anthropic>=0.48.0; extra == 'anthropic'
45
+ Provides-Extra: apps
46
+ Requires-Dist: prefab-ui>=0.18.0; extra == 'apps'
47
+ Provides-Extra: azure
48
+ Requires-Dist: azure-identity>=1.16.0; extra == 'azure'
49
+ Requires-Dist: pyjwt>=2.12.0; extra == 'azure'
50
+ Provides-Extra: code-mode
51
+ Requires-Dist: pydantic-monty==0.0.11; extra == 'code-mode'
52
+ Provides-Extra: gemini
53
+ Requires-Dist: google-genai>=1.18.0; extra == 'gemini'
54
+ Provides-Extra: openai
55
+ Requires-Dist: openai>=1.102.0; extra == 'openai'
56
+ Provides-Extra: tasks
57
+ Requires-Dist: pydocket>=0.19.0; extra == 'tasks'
58
+ Description-Content-Type: text/markdown
59
+
60
+ <div align="center">
61
+
62
+ <!-- omit in toc -->
63
+
64
+ <picture>
65
+ <source width="550" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4-dark.png">
66
+ <source width="550" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-4.png">
67
+ <img width="550" alt="FastMCP Logo" src="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/brand/f-watercolor-waves-2.png">
68
+ </picture>
69
+
70
+ # FastMCP 🚀
71
+
72
+ <strong>Move fast and make things.</strong>
73
+
74
+ *Made with 💙 by [Prefect](https://www.prefect.io/)*
75
+
76
+ [![Docs](https://img.shields.io/badge/docs-gofastmcp.com-blue)](https://gofastmcp.com)
77
+ [![Discord](https://img.shields.io/badge/community-discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/uu8dJCgttd)
78
+ [![PyPI - Version](https://img.shields.io/pypi/v/fastmcp.svg)](https://pypi.org/project/fastmcp)
79
+ [![Tests](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml/badge.svg)](https://github.com/PrefectHQ/fastmcp/actions/workflows/run-tests.yml)
80
+ [![License](https://img.shields.io/github/license/PrefectHQ/fastmcp.svg)](https://github.com/PrefectHQ/fastmcp/blob/main/LICENSE)
81
+
82
+ <a href="https://trendshift.io/repositories/13266" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13266" alt="prefecthq%2Ffastmcp | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
83
+ </div>
84
+
85
+ ---
86
+
87
+ The [Model Context Protocol](https://modelcontextprotocol.io/) (MCP) connects LLMs to tools and data. FastMCP gives you everything you need to go from prototype to production:
88
+
89
+ ```python
90
+ from fastmcp import FastMCP
91
+
92
+ mcp = FastMCP("Demo 🚀")
93
+
94
+ @mcp.tool
95
+ def add(a: int, b: int) -> int:
96
+ """Add two numbers"""
97
+ return a + b
98
+
99
+ if __name__ == "__main__":
100
+ mcp.run()
101
+ ```
102
+
103
+ ## Why FastMCP
104
+
105
+ Building an effective MCP application is harder than it looks. FastMCP handles all of it. Declare a tool with a Python function, and the schema, validation, and documentation are generated automatically. Connect to a server with a URL, and transport negotiation, authentication, and protocol lifecycle are managed for you. You focus on your logic, and the MCP part just works: **with FastMCP, best practices are built in.**
106
+
107
+ **That's why FastMCP is the standard framework for working with MCP.** FastMCP 1.0 was incorporated into the official MCP Python SDK in 2024. Today, the actively maintained standalone project is downloaded a million times a day, and some version of FastMCP powers 70% of MCP servers across all languages.
108
+
109
+ FastMCP has three pillars:
110
+
111
+ <table>
112
+ <tr>
113
+ <td align="center" valign="top" width="33%">
114
+ <a href="https://gofastmcp.com/servers/server">
115
+ <img src="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/servers-card.png" alt="Servers" />
116
+ <br /><strong>Servers</strong>
117
+ </a>
118
+ <br />Expose tools, resources, and prompts to LLMs.
119
+ </td>
120
+ <td align="center" valign="top" width="33%">
121
+ <a href="https://gofastmcp.com/apps/overview">
122
+ <img src="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/apps-card.png" alt="Apps" />
123
+ <br /><strong>Apps</strong>
124
+ </a>
125
+ <br />Give your tools interactive UIs rendered directly in the conversation.
126
+ </td>
127
+ <td align="center" valign="top" width="33%">
128
+ <a href="https://gofastmcp.com/clients/client">
129
+ <img src="https://raw.githubusercontent.com/PrefectHQ/fastmcp/main/docs/assets/images/clients-card.png" alt="Clients" />
130
+ <br /><strong>Clients</strong>
131
+ </a>
132
+ <br />Connect to any MCP server — local or remote, programmatic or CLI.
133
+ </td>
134
+ </tr>
135
+ </table>
136
+
137
+ **[Servers](https://gofastmcp.com/servers/server)** wrap your Python functions into MCP-compliant tools, resources, and prompts. **[Clients](https://gofastmcp.com/clients/client)** connect to any server with full protocol support. And **[Apps](https://gofastmcp.com/apps/overview)** give your tools interactive UIs rendered directly in the conversation.
138
+
139
+ Ready to build? Start with the [installation guide](https://gofastmcp.com/getting-started/installation) or jump straight to the [quickstart](https://gofastmcp.com/getting-started/quickstart). When you're ready to deploy, [Prefect Horizon](https://www.prefect.io/horizon) offers free hosting for FastMCP users.
140
+
141
+ ## Installation
142
+
143
+ We recommend installing FastMCP with [uv](https://docs.astral.sh/uv/):
144
+
145
+ ```bash
146
+ uv pip install fastmcp
147
+ ```
148
+
149
+ For full installation instructions, including verification and upgrading, see the [**Installation Guide**](https://gofastmcp.com/getting-started/installation).
150
+
151
+ **Upgrading?** We have guides for:
152
+ - [Upgrading from FastMCP v2](https://gofastmcp.com/getting-started/upgrading/from-fastmcp-2)
153
+ - [Upgrading from the MCP Python SDK](https://gofastmcp.com/getting-started/upgrading/from-mcp-sdk)
154
+ - [Upgrading from the low-level SDK](https://gofastmcp.com/getting-started/upgrading/from-low-level-sdk)
155
+
156
+ ## 📚 Documentation
157
+
158
+ FastMCP's complete documentation is available at **[gofastmcp.com](https://gofastmcp.com)**, including detailed guides, API references, and advanced patterns.
159
+
160
+ Documentation is also available in [llms.txt format](https://llmstxt.org/), which is a simple markdown standard that LLMs can consume easily:
161
+
162
+ - [`llms.txt`](https://gofastmcp.com/llms.txt) is essentially a sitemap, listing all the pages in the documentation.
163
+ - [`llms-full.txt`](https://gofastmcp.com/llms-full.txt) contains the entire documentation. Note this may exceed the context window of your LLM.
164
+
165
+ **Community:** Join our [Discord server](https://discord.gg/uu8dJCgttd) to connect with other FastMCP developers and share what you're building.
166
+
167
+ ## Contributing
168
+
169
+ We welcome contributions! See the [Contributing Guide](https://gofastmcp.com/development/contributing) for setup instructions, testing requirements, and PR guidelines.
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/RECORD ADDED
@@ -0,0 +1,272 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ../../../bin/fastmcp,sha256=MfkjepFGdxQ2az0D_qPC5iwfRLdI8OK4u7PLyy3cxAM,366
2
+ fastmcp-3.2.4.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
3
+ fastmcp-3.2.4.dist-info/METADATA,sha256=lynpS7SPSjNdo--BaPwEo3myU5Pr6U1E9HrAFWp0yzg,8138
4
+ fastmcp-3.2.4.dist-info/RECORD,,
5
+ fastmcp-3.2.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ fastmcp-3.2.4.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
7
+ fastmcp-3.2.4.dist-info/entry_points.txt,sha256=ff8bMtKX1JvXyurMibAacMSKbJEPmac9ffAKU9mLnM8,44
8
+ fastmcp-3.2.4.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
9
+ fastmcp/__init__.py,sha256=LkcO6la4rRaN92D_tPzSX-GmswQavh7ik6VMW0MkL8g,1598
10
+ fastmcp/apps/__init__.py,sha256=qOKrdgOjpBTGemtb8TUvIb9efAJ5ULuktojGx2CjmIQ,930
11
+ fastmcp/apps/app.py,sha256=4exo74XPWqIwOnO7_pfFvavXGR25ToZ23dkCIHOLkOk,14255
12
+ fastmcp/apps/approval.py,sha256=2VPGYTrK5TouQ92MWM6lfmVcpcerc1pl231nc8-Vgs0,7041
13
+ fastmcp/apps/choice.py,sha256=0hV23cvYk_LQ_LZlUR6UbmPNaf6jkCZFC0Yj_AILVAM,4538
14
+ fastmcp/apps/config.py,sha256=j9Mas-IEsAcRTbQ7HJweI1AXwmXRX-YZ9HJGlnBJ-Xc,6292
15
+ fastmcp/apps/file_upload.py,sha256=z18JoeTQhuUHreLN5wPM_4LTF63Fu_b_ZPEBlfuvw7M,14683
16
+ fastmcp/apps/form.py,sha256=PlrtZ0RkeIa33Q_mu_ai936ebNRfUMlovhwdd1i93LQ,6699
17
+ fastmcp/apps/generative.py,sha256=spMeJGGfgTpQpXv8K_g7WA9hnRyP9WPF5M3aaC91eeY,6512
18
+ fastmcp/cli/__init__.py,sha256=Bo7WQWPBRQ6fqbYYPfbadefpXgl2h9gkdMaqTazGWyw,49
19
+ fastmcp/cli/__main__.py,sha256=cGU_smvfctQI9xEY13u7tTEwwUI4AUieikXXA7ykYhA,69
20
+ fastmcp/cli/apps_dev.py,sha256=JYqrIYpYL-tS83m2AKynTI4v5HqZg3Sh05MXtNfLGJo,70859
21
+ fastmcp/cli/auth.py,sha256=yxi1hrwM0Mbftnywwr8LMUa9z8syKFxZWbkcSEFymfo,268
22
+ fastmcp/cli/cimd.py,sha256=-vRuATr5d4JRcdUu1JFlnr7lTIJNJDRjBpKJdstpQQM,6592
23
+ fastmcp/cli/cli.py,sha256=fJCC2kjxTc5nySwgfAfOOQw_BWdXB0sjINyej90abJo,37520
24
+ fastmcp/cli/client.py,sha256=0inFgH1N8HYfA-wFyz5N2Vv2x9na3n_YB837RvQQpdQ,33729
25
+ fastmcp/cli/discovery.py,sha256=QxwijtHMEzhcehAt-IHdMBbvJIdO_TAjfrA39MB0GKE,11953
26
+ fastmcp/cli/generate.py,sha256=CXKkSoWDM7JyrHxAj88ArVp-qywePRDFfrF9Pu4ipRk,29290
27
+ fastmcp/cli/install/__init__.py,sha256=MGRkPVKi7gjXi5yfhZ5-Y2WEHdyKTuPLMrq1rfhsJBs,961
28
+ fastmcp/cli/install/claude_code.py,sha256=3yrnHApvUah-u_Vb4WNVLo_6w6vhP1cApAnaBMotyrM,7583
29
+ fastmcp/cli/install/claude_desktop.py,sha256=0h_Z2MC31UqrTABIGbtlQzskC4wneBtgSdTjcnTbg3E,7483
30
+ fastmcp/cli/install/cursor.py,sha256=hezQvFt3Er75DQrJDnOPNvzdSdK32ktk_pdtfhNWsmk,10226
31
+ fastmcp/cli/install/gemini_cli.py,sha256=eqTtmzRbB9f-gtiNnBwMN05gn3UAuWVV-cV5CyIgl_E,7596
32
+ fastmcp/cli/install/goose.py,sha256=JOX9zRzbc1m30QP9Msnm881T52dxyqy5ZUL5Mp9tRqQ,5971
33
+ fastmcp/cli/install/mcp_json.py,sha256=yb3RCnZTyFK84UCjUcCBVCgS3BRqJk4-okBhoZenEkA,5764
34
+ fastmcp/cli/install/shared.py,sha256=MqvwQJnth8HyGSuydS2o4_GodiX69yRv4oQnDJDKy3o,6990
35
+ fastmcp/cli/install/stdio.py,sha256=s3zpDVQVbpUcMpcYyD6TQWT_OcBnwuEl8FSVhawMBE8,4766
36
+ fastmcp/cli/run.py,sha256=G5Bvm781sA_n90zLzTy6fOwQwz3X5lA8KwONOFZhGVI,16119
37
+ fastmcp/cli/tasks.py,sha256=B57vy76d3ybdi4wmlODRCCFrte1GmhLKqYixzRkGUuw,3791
38
+ fastmcp/client/__init__.py,sha256=0GnysmzOcUCgjfSHSO9ruhiKEfPMVhvaP3x_7EUN0QQ,627
39
+ fastmcp/client/auth/__init__.py,sha256=4DNsfp4iaQeBcpds0JDdMn6Mmfud44stWLsret0sVKY,91
40
+ fastmcp/client/auth/bearer.py,sha256=MFEFqcH6u_V86msYiOsEFKN5ks1V9BnBNiPsPLHUTqo,399
41
+ fastmcp/client/auth/oauth.py,sha256=IR1AcvtOY3tqEbD11eRCarcDr4fPzcgfuL5vCMpekcw,17556
42
+ fastmcp/client/client.py,sha256=ctvCg7YhW38cwHPy-x56OPMtQ2RXXTeR1XmCnETPLT0,34861
43
+ fastmcp/client/elicitation.py,sha256=sJcCdKpsFThFkxIqhN6nYTW0hCqVg5E9flTWPswZFII,3459
44
+ fastmcp/client/logging.py,sha256=WBByRoBIB-Bl3ZUJVFvHqRt4teYPAvqC8MnJ358Elg8,1939
45
+ fastmcp/client/messages.py,sha256=ROe6mlBBHPo1OQpvveRl2nYb2C98NE9B3368cd_6_Q4,4812
46
+ fastmcp/client/mixins/__init__.py,sha256=xQrF4w5dI4V3CN9QDYoDrRmPUorcDL0JIhSWM1noarI,419
47
+ fastmcp/client/mixins/prompts.py,sha256=QrGnUCqf5m5JudFP6Qb_9jqGi_psJh6ayUftjKOTpeM,12435
48
+ fastmcp/client/mixins/resources.py,sha256=Nq-3p-m_OqRod9bbUw-A-as2j-EQI0L3XOLLozCh-tY,14518
49
+ fastmcp/client/mixins/task_management.py,sha256=YWjDTtGD4mkVglvfwqtdd9h5FRyUX0xXQjM24d0QPo8,5759
50
+ fastmcp/client/mixins/tools.py,sha256=k9K3mUjscpDD8Ct9WbluAJrWNs_WOZTlRT0ak7QfDH8,18448
51
+ fastmcp/client/oauth_callback.py,sha256=5qx8F2zhoWT9yHG-QywfnfKuz8ZNWserz7SJsD_eM6s,7757
52
+ fastmcp/client/progress.py,sha256=oFUL1yts_Th8ErHLvtZzYa8xYk-qncBBE9UX6dPEgXg,1187
53
+ fastmcp/client/roots.py,sha256=Gi0-LVYp7YQ0aA8PPvTTn41nHPEPuU9VMkE4gSbSyz0,2657
54
+ fastmcp/client/sampling/__init__.py,sha256=XN3brdKH3-vpr1UrKmXr1J59QSDZQEBmnWpNzOBQQGU,2272
55
+ fastmcp/client/sampling/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
+ fastmcp/client/sampling/handlers/anthropic.py,sha256=mepyVC7Pn-s0EB0IVy9p9z_h1S3hJ9huq4Ze4-K6Rxc,16787
57
+ fastmcp/client/sampling/handlers/google_genai.py,sha256=t5-jz8bwzzDxLVc5rLP5IJKaecPM92q0HZFz_VbLvsQ,13772
58
+ fastmcp/client/sampling/handlers/openai.py,sha256=lkxjcX49FhHXu8KXfTMRwgjczVqpMtIJHlb65GaCZUQ,20270
59
+ fastmcp/client/tasks.py,sha256=RPtpDr0hV1hgeJ1Y5C_V4HUqTWcbppsR1rTX5mqJlpQ,20418
60
+ fastmcp/client/telemetry.py,sha256=2uoJABtLdUtbtJNO_snmqbZl_jon-oHBRDRVxRP5vzs,1375
61
+ fastmcp/client/transports/__init__.py,sha256=Kyh1mSkkBqkKae_kpFjKLq-Unf4fwDZUEszedmJlUes,1104
62
+ fastmcp/client/transports/base.py,sha256=sgg1d-Y3LVCrbsJnQ1JDXNZosSAmimBqbah4GyRpw7s,2621
63
+ fastmcp/client/transports/config.py,sha256=1Xwp880iI1fAvXIqma_f8isMPXWuNh9J7wYG72YCZGg,8874
64
+ fastmcp/client/transports/http.py,sha256=HQFPwRgpXqICEKVX7bGLV5NnKYw3F-SjlmROMhV830k,9081
65
+ fastmcp/client/transports/inference.py,sha256=8jkqz2_9uDcIA2Hd3kALLCIFltiZ1Z_e9kub3d_VsZA,5374
66
+ fastmcp/client/transports/memory.py,sha256=Ugm6TmKp54H7hoLzSYf6ssEQLY5pU3v86h3ZnojRRio,4184
67
+ fastmcp/client/transports/sse.py,sha256=DoSri-EPThxzqwWTxLQC267kXS082SRVyuGYyclyEBQ,6284
68
+ fastmcp/client/transports/stdio.py,sha256=jPcx5UMdqCGChJsgnJPm_qtND5CeCySPKPQKaPkdLwM,20565
69
+ fastmcp/contrib/README.md,sha256=rKknYSI1T192UvSszqwwDlQ2eYQpxywrNTLoj177SYU,878
70
+ fastmcp/contrib/bulk_tool_caller/README.md,sha256=5aUUY1TSFKtz1pvTLSDqkUCkGkuqMfMZNsLeaNqEgAc,1960
71
+ fastmcp/contrib/bulk_tool_caller/__init__.py,sha256=xvGSSaUXTQrc31erBoi1Gh7BikgOliETDiYVTP3rLxY,75
72
+ fastmcp/contrib/bulk_tool_caller/bulk_tool_caller.py,sha256=B4MaOrAwuevQ6YsVQDCvWlId_-n2SNrBKnBKohrnrTQ,4816
73
+ fastmcp/contrib/bulk_tool_caller/example.py,sha256=6og_8pCJN_CabworC5R82zPAwwwM-W7HNJLQQSnS3lU,319
74
+ fastmcp/contrib/component_manager/README.md,sha256=speekkx1S-4ZD1tNlgtW4qR82HzYwp-uaS3QfyTq9z8,4288
75
+ fastmcp/contrib/component_manager/__init__.py,sha256=m-4nvgbOgINkZEKrR373cummQnhdXVg0LoBp716Sf98,96
76
+ fastmcp/contrib/component_manager/component_manager.py,sha256=_TZtDuOq-zDVfCKvbpXQDWeELCVfvYBm3O6rJIVvxD4,4380
77
+ fastmcp/contrib/component_manager/example.py,sha256=_kHuHRJHjCrzg54CuD5YX43SaopA_EC1cWAk7w3O_lw,1590
78
+ fastmcp/contrib/mcp_mixin/README.md,sha256=f6ine6z9kuEx1qKhY9jzrH6sAwj1oWpXcLXGvK0GMVk,5404
79
+ fastmcp/contrib/mcp_mixin/__init__.py,sha256=zZFHlAGexUJCDLAg4p7CGZDmb-mgPdN1xVv0tR4mg7I,153
80
+ fastmcp/contrib/mcp_mixin/example.py,sha256=0hatqNQOXyCKcKrTe6b9Q3NG7cWDt3gHfiS-6vTLjY8,1239
81
+ fastmcp/contrib/mcp_mixin/mcp_mixin.py,sha256=Bs3f6JGYKvuwiTAzUaGPXgN3Ey_0BwrJjfnFBelsULU,12706
82
+ fastmcp/decorators.py,sha256=MTbqeKgd9JMRT3vmbPfrZgmYvWKa9Er3LNOIYH-W2YM,1320
83
+ fastmcp/dependencies.py,sha256=fanlvin-NjeNy6PhbB0vGBti038Ng92InVRCKZubD4E,980
84
+ fastmcp/exceptions.py,sha256=-kw0d1UC3RaCGzQs3NVlKnOPDuW6kcZAewmWacLRF1U,1134
85
+ fastmcp/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
86
+ fastmcp/experimental/sampling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
+ fastmcp/experimental/sampling/handlers/__init__.py,sha256=cY6yyaI_DBx5NKH6t70tZQNjy1IEImbXV-VwKruk8UM,216
88
+ fastmcp/experimental/sampling/handlers/openai.py,sha256=0HK7GX3hwz7PKkiObS7lYE_70ugZURC0I2_whxV7Ac0,223
89
+ fastmcp/experimental/server/openapi/__init__.py,sha256=KymsmedsGHiqvYjJWMwS6yyogo8h_5tcmCDxSJMKbcU,1263
90
+ fastmcp/experimental/transforms/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
91
+ fastmcp/experimental/transforms/code_mode.py,sha256=7W0omeuX-gM9qZ0B2pPLjNvvs99giOzP1zbhjndqTaY,20721
92
+ fastmcp/experimental/utilities/openapi/__init__.py,sha256=VhRbl-naljdXXyN7yDq4i91mpCEKJfOSQMKdlbMzehA,908
93
+ fastmcp/mcp_config.py,sha256=00VqdcE_ERho0gBKaDWhfmDuvP5fhKD9txzRW1N7waU,12798
94
+ fastmcp/prompts/__init__.py,sha256=6FwuG6LkO2OKqlJ1Bn-_8y3rgYT30kivpndeG4txATk,693
95
+ fastmcp/prompts/base.py,sha256=ml04-77IIxaESAzZtLSzdRvHeI-Gt0phSnULXVIRwnw,14535
96
+ fastmcp/prompts/function_prompt.py,sha256=tLbA23BIrmOSY6CJdl7J6kPcYSlFGAuZdH6a2AWjqwI,19865
97
+ fastmcp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
98
+ fastmcp/resources/__init__.py,sha256=4wMpWrm4fIWzUZcska2UKGVEnpFShcQ2DBkI8RL4u54,957
99
+ fastmcp/resources/base.py,sha256=9SxiytNRBvweefDgR8GmujHAUS5F3_PfxEH04L7bszk,17858
100
+ fastmcp/resources/function_resource.py,sha256=1TDwJcVtB1eQVskhV2Wz18wIu2X0eQMnQwvLhvQiyt8,11793
101
+ fastmcp/resources/template.py,sha256=i7NoobviGY6g8tKfcToTpzhjUP6eR5C0edOaR6Rqs0c,23962
102
+ fastmcp/resources/types.py,sha256=f1_iIQM89g2w5I5XS3OMjg30zWt2RPUfUXnF0l4Y5W8,6107
103
+ fastmcp/server/__init__.py,sha256=ObH0RRGGQBhqVq_g-9iXnFxrQDxF95db8dmyp_S2kUE,356
104
+ fastmcp/server/app.py,sha256=1CRGUB6yTljLHPXWkbv98cYcox39o9-GMrLoAkFj6rU,593
105
+ fastmcp/server/apps.py,sha256=69BBSVQ0SVjxxTewpXfj_Cd6yGad1lbedwudhM91hTU,835
106
+ fastmcp/server/auth/__init__.py,sha256=xh3KBtYggQKUDTW1dYIqkskDmR3Vr0jvXy56XpkXwek,1961
107
+ fastmcp/server/auth/auth.py,sha256=2NHSbX5A2i1v4scZHTzuKlHJTV8HB_PB28OcKQjsW7s,33781
108
+ fastmcp/server/auth/authorization.py,sha256=Mf-mRQ07Tqgiqh4MgTOSRO1f0zy9J8VDGNJsfUlxHvo,5517
109
+ fastmcp/server/auth/cimd.py,sha256=djgI3XjBQ7HHTKlvsPte4lBTpb0XOrEkr7B9ggLlIfg,28896
110
+ fastmcp/server/auth/handlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
+ fastmcp/server/auth/handlers/authorize.py,sha256=1zrmXqRUhjiWSHgUhfj0CcCkj3uSlGkTnxHzaic0xYs,11617
112
+ fastmcp/server/auth/jwt_issuer.py,sha256=oHsRd0nd8GiqPGOQvpry4zowg0_YXvyDkq5YPSU5MHE,8551
113
+ fastmcp/server/auth/middleware.py,sha256=xwj3fUCLSlJK6n1Ehp-FN1qnjKqEz8b7LGAGMTqQ8Hk,3284
114
+ fastmcp/server/auth/oauth_proxy/__init__.py,sha256=rCHQK6NNylTaQH4eCZ7m6T7isKppz-D1ehA-UuMrEBw,355
115
+ fastmcp/server/auth/oauth_proxy/consent.py,sha256=EPFi5OhLFBD8ISVz505D2JftOGWPJ77g5bqQm-_dFzY,20664
116
+ fastmcp/server/auth/oauth_proxy/models.py,sha256=qyjf76tYr_Z8ispQLgyOVGAiKafOjkI0Kc1wAjXbqI4,9493
117
+ fastmcp/server/auth/oauth_proxy/proxy.py,sha256=xMg5gOSYxEJ0MwExJZyF8SSsHGyjKR2UVgiuyLmLGnc,93481
118
+ fastmcp/server/auth/oauth_proxy/ui.py,sha256=zugejfQjsONciMhIW-_3mb5aWfhjEiJXJJttSnwsnoA,10271
119
+ fastmcp/server/auth/oidc_proxy.py,sha256=LViIdGuAQV1AZztXTbhce-MkC8Dv8PpyNEsI3YMZdjA,22006
120
+ fastmcp/server/auth/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
121
+ fastmcp/server/auth/providers/auth0.py,sha256=-DO8Rdnfj5GAStQFBmm-Rx5n-hqR-53aFzP5Zp51Ov8,5724
122
+ fastmcp/server/auth/providers/aws.py,sha256=8RN4ygdzOAXLVpQhjnXvq2Fg6wlaaJ_jj3nhYDff64M,9613
123
+ fastmcp/server/auth/providers/azure.py,sha256=zaQ6Te4GxWnRaNNuT6LAGUMPRsOkQcbOFNZHNqFt8w4,33592
124
+ fastmcp/server/auth/providers/clerk.py,sha256=0tPK6TIMvC6p4s9cu62eAI90TQmq5jbxm6FqBtnT42U,17325
125
+ fastmcp/server/auth/providers/debug.py,sha256=92erHZGQB1ATsl6PwrXui6h3WJ4wLxE9ACbI3JutmWY,3881
126
+ fastmcp/server/auth/providers/descope.py,sha256=Xb_Bd8hKzXVrpB9AzqI2kYpiIxD-9crbIqWBnEz0Nws,9139
127
+ fastmcp/server/auth/providers/discord.py,sha256=othAJb2GMyr-hg2W590PjPBlRRhWVF_i9Bxw3gEuBZM,12456
128
+ fastmcp/server/auth/providers/github.py,sha256=fTIyp8EmPQNFnYrRyPYO9fD7oe_oN2F0FSKhusuQ_vE,13308
129
+ fastmcp/server/auth/providers/google.py,sha256=KqMkwDRCLlQTMrE9wC8Jz80LS1OtZjqKuerdVozS3_U,16893
130
+ fastmcp/server/auth/providers/in_memory.py,sha256=bb82_biQaWka-ODGJx5UkNyi6CHzqvI1LEkjTtnRGMo,15680
131
+ fastmcp/server/auth/providers/introspection.py,sha256=dDXWIq3QV7RCjY48qR12kWKC75TbOmODUtvZzilXBdU,12479
132
+ fastmcp/server/auth/providers/jwt.py,sha256=O00QA5-0Sxpx52JQmDbF_A4rWdMSTqrLqsBVHv_jT_0,22878
133
+ fastmcp/server/auth/providers/keycloak.py,sha256=Sa2FcQYgQMalycN5HOvKeiC5Ks50C6403xvnT3XAgs4,2752
134
+ fastmcp/server/auth/providers/oci.py,sha256=z4jAi5McZfBjXZTQlS6A_EJ_dk_MuOjW7pJdEZSNsvI,7812
135
+ fastmcp/server/auth/providers/propelauth.py,sha256=UkPBBDETxZhL4_hK16DDQE6afhCly4uKMEva0ez4XwQ,9187
136
+ fastmcp/server/auth/providers/scalekit.py,sha256=S-ofYu3fSchPigHCUO6hDUdto2eUfYZp168PKziLSL8,8740
137
+ fastmcp/server/auth/providers/supabase.py,sha256=OzXFHaf7xiIjdr8tLpop7pX-Tp5qLUfPQNZ9vAxyy4w,7740
138
+ fastmcp/server/auth/providers/workos.py,sha256=3RiwahX7jJ3LS5G2YIJsx4Uj70BD-yKyy311V__wWoM,18863
139
+ fastmcp/server/auth/redirect_validation.py,sha256=ymTYbwSS80ORgAB67StxuUV1y_CIreKIpFqOqwEQ5YI,7237
140
+ fastmcp/server/auth/ssrf.py,sha256=gHGZ8y4MOq-MaIc_hnixFgk12IRa_07eAe-urMZ-e_M,10987
141
+ fastmcp/server/context.py,sha256=q3PcwLNnpaImNiVZjJMh2SEaVXhvkoj333IICL_mp7g,54579
142
+ fastmcp/server/dependencies.py,sha256=kH3pOsNaXkY6fv-SsDZeDO_RVpjdIjb5cObgFbIYL-k,47404
143
+ fastmcp/server/elicitation.py,sha256=QuyfkZKZKP6czNbwlv1DCikl2kdchscKL-P0pzz0oYg,19926
144
+ fastmcp/server/event_store.py,sha256=aE-AvnefwLmo9_TqE79wJPXOar5ACfqpYpjB-htVlrA,6206
145
+ fastmcp/server/http.py,sha256=j9KoNRfZBZXwepdeTXoA_59cHwmuTOxv6-r1aXlbY7A,13543
146
+ fastmcp/server/lifespan.py,sha256=FkpUNI3KK8azA5x7WxbgedetEF-uFEUmyIRneXi4kKY,5927
147
+ fastmcp/server/low_level.py,sha256=YlCi7awpuRfyYhai0_eIR_GfKLcO1x_NA9Imtfj-skY,13611
148
+ fastmcp/server/middleware/__init__.py,sha256=3GacFe_Dxr3rUxpiZ4YMFBu4bWTknA7lhoBcSGa9DAE,274
149
+ fastmcp/server/middleware/authorization.py,sha256=B_8w3t4Lk2lvRa6maDSOmUoMzNqzJUW_B96DxzjV9KU,11342
150
+ fastmcp/server/middleware/caching.py,sha256=uNaZvKb0lcL87w9p96z8HM_I_hrR5QEYfvy7cCM2LAQ,20551
151
+ fastmcp/server/middleware/dereference.py,sha256=dnMhYfvHX_rQ44cFnJMWPjtkOa0iCvh7RHP-SIRJPTU,2860
152
+ fastmcp/server/middleware/error_handling.py,sha256=r_YsXNf5XAB5oEu8CBRUyDHul-QZyNMJtUAo3jRD98E,8566
153
+ fastmcp/server/middleware/logging.py,sha256=1VZU8wU4iRTARUgv-uoygy_fxX8X-Q9ViQGrQi_gTMI,9457
154
+ fastmcp/server/middleware/middleware.py,sha256=5gPo1gQqZ9cYtWmibzWe8XacWfpJP0maFC7PldfJw40,6535
155
+ fastmcp/server/middleware/ping.py,sha256=ggVqOrLkU_Pci1EnwfNvkePZVcxPhsZ1IdAkpLe3s7o,2409
156
+ fastmcp/server/middleware/rate_limiting.py,sha256=MwhMOhgsIhZjYwEQB8H8961hohV5564JlTwwYy_9ctU,7915
157
+ fastmcp/server/middleware/response_limiting.py,sha256=rGq6Gf21YyxEURtPFqaNtWq2kH3fhSpeRibqffKNOTk,4738
158
+ fastmcp/server/middleware/timing.py,sha256=lL_xc-ErLD5lplfvd5-HIyWEbZhgNBYkcQ74KFXAMkA,5591
159
+ fastmcp/server/middleware/tool_injection.py,sha256=i5GXdOw_SEkqGjrjJBJA-ZOxRtYiYn1RfTPL2AqAHbI,4513
160
+ fastmcp/server/mixins/__init__.py,sha256=vpfaDddmuwWQBB3g7cgSMZY4s0nWRqvfUtkPah8eAko,287
161
+ fastmcp/server/mixins/lifespan.py,sha256=pqOCVaLRi52WPQbwxKVB2RUqiPZYKV248kPl-EigioM,9736
162
+ fastmcp/server/mixins/mcp_operations.py,sha256=7ek2mlaPWygoslFKGFE7BCivenqRcuHlmwBJygHPZMk,15411
163
+ fastmcp/server/mixins/transport.py,sha256=CJo8SndC2DtCHPGY3TcNZyAvDmteRfzwcimjwaspuqk,14537
164
+ fastmcp/server/openapi/__init__.py,sha256=oofqqnJiIntpecKB4bHr9UIdE701QYgk9zA_6Mpu7no,1587
165
+ fastmcp/server/openapi/components.py,sha256=oz3nvUaF9wo7UoiW8eHS__dUHax5P8xH2m1m4qgJqXM,693
166
+ fastmcp/server/openapi/routing.py,sha256=tujysVY5jFm7HZYd3NMX99FXmVopTdqmwCh3LPXwN44,1245
167
+ fastmcp/server/openapi/server.py,sha256=SHsph6E09XwLIAA9pcdzbMDtu4dxSp2owRWevL_6tRw,4010
168
+ fastmcp/server/providers/__init__.py,sha256=Qqfg0iyJXzadeZPBF3yHJALVlbZiMx0k77CpHwJs4Jw,2313
169
+ fastmcp/server/providers/addressing.py,sha256=4PG_c-FsmlBZkchckGe1YTtYHgiYqu8iobn1WLTvDQc,2611
170
+ fastmcp/server/providers/aggregate.py,sha256=D7v1QrefX5EsYV4owFSrPOgQLQ6erfIirTdFNJNzVgc,12436
171
+ fastmcp/server/providers/base.py,sha256=bq-U-noMQPA7ONq4bvtR7eZy1hPUGz3UISKtxAIezhg,23664
172
+ fastmcp/server/providers/fastmcp_provider.py,sha256=op5aYeckMyy8ZlLg55FKN_C0k0HzPSknfrpZyWMFuJs,26456
173
+ fastmcp/server/providers/filesystem.py,sha256=FYUUu-swjwDAJiy7KDXq-ATs7g52sXxdr4C2OK7Gzkc,8254
174
+ fastmcp/server/providers/filesystem_discovery.py,sha256=z5qcyEWe9CuWrF8hYz-5F2sHmBt8ZOBf2ACc6Hxze2o,14132
175
+ fastmcp/server/providers/local_provider/__init__.py,sha256=jYfatc5GN0doeiLCiP5K7ilqxnzc1iDdkhw7hIoOiuI,324
176
+ fastmcp/server/providers/local_provider/decorators/__init__.py,sha256=WwBY7CLJ7YtcKzgz5-a-s0Bm9z8YGN8bYnQd2zabft8,401
177
+ fastmcp/server/providers/local_provider/decorators/prompts.py,sha256=ukHORunbkdjaP9h4Ltq33hBFvGvmE7bUEtoGu-BDdcM,9668
178
+ fastmcp/server/providers/local_provider/decorators/resources.py,sha256=qbTirudOg9XKzweXdJdCTiL-DL_lZ53oLcz0n6o8Sx4,9837
179
+ fastmcp/server/providers/local_provider/decorators/tools.py,sha256=LQ7QQ2BSmh8llkjTiz69wA2TZ3mT1NhjKMRSA50ALXA,16177
180
+ fastmcp/server/providers/local_provider/local_provider.py,sha256=R3V-fNZh2n-_N_qu8CM4ATf4bDojXB2ZC7mUS0mXxZA,17417
181
+ fastmcp/server/providers/openapi/README.md,sha256=1Mc1Ur15OxMn-wAPEa1rZIiNNSMdv9sboQ3YpvNpUXM,9886
182
+ fastmcp/server/providers/openapi/__init__.py,sha256=m1SR8ODlbo7HJ2xRmE_Hr0_vpjgU6bWG7KfduYGkmmA,948
183
+ fastmcp/server/providers/openapi/components.py,sha256=gSZw3TrEhTxD2KxNUcq6bIeSwuDtazqLwnns1nfv-Zc,14415
184
+ fastmcp/server/providers/openapi/provider.py,sha256=5j5woNrHfZYFPYNasxtSkZvs1euQo-VAs9717sick44,16246
185
+ fastmcp/server/providers/openapi/routing.py,sha256=xfxcJAhpSKEwZWr2fi7xj_uTNl4P3Huyq0qv9r2dFns,3167
186
+ fastmcp/server/providers/prefab_synthesis.py,sha256=tf_pKshPLOgIG1xks2aOIJFNHzZmiKZXbaT-NXARrCY,8606
187
+ fastmcp/server/providers/proxy.py,sha256=PYc9tMasbwuIOsuUlyixcEwOgYN75PdxXhac6223w_c,43387
188
+ fastmcp/server/providers/skills/__init__.py,sha256=juNaLg-SGgPf1a6IupzqGoIyvWa81s7CFDSl8ppMHdA,1839
189
+ fastmcp/server/providers/skills/_common.py,sha256=mZmjg_TGBbgBr-KORHhDLRM8vYy3-jJqhcffnMsxY0Y,3353
190
+ fastmcp/server/providers/skills/claude_provider.py,sha256=ZZ5MJZLzbyuPKolqZvi2tCYv4yhRuGGgdHi3LQjk124,1410
191
+ fastmcp/server/providers/skills/directory_provider.py,sha256=j0c1SDjUAQp1k7nSKEBUaFL1PQhvojXv1yIzrSNid78,5856
192
+ fastmcp/server/providers/skills/skill_provider.py,sha256=mLQITvmaX8U827odPjUQJUvF8MkWlKCQ22k8U5VaQAg,16119
193
+ fastmcp/server/providers/skills/vendor_providers.py,sha256=JEhN0D-lyZf0tCvOsNo8hDMtYRL0noge9c6k2rjfVnw,3950
194
+ fastmcp/server/providers/wrapped_provider.py,sha256=CwbZiyPcO1rbQojQdt1I35GkM8I-SBfZqvxLZddgezk,6219
195
+ fastmcp/server/proxy.py,sha256=6MgnjANuFRfffuNQIG5lW39qU5DSFz2dpoFg9SLwRTY,1025
196
+ fastmcp/server/sampling/__init__.py,sha256=u9jDHSE_yz6kTzbFqIOXqnM0PfIAiP-peAjHJBNqDd0,249
197
+ fastmcp/server/sampling/run.py,sha256=sq2GGgUpoNO1nRq2abqiBgUJ8L3sBEyP4WbgZfcJL6g,27808
198
+ fastmcp/server/sampling/sampling_tool.py,sha256=oIfEqdGSTKh8MpcP4yravMuVj79aZm4tqIrIMLBlfT0,7852
199
+ fastmcp/server/server.py,sha256=qHl9fLCj27aD12OGikk6U9GqJKB3fsKXRraop6-VALE,95610
200
+ fastmcp/server/tasks/__init__.py,sha256=6neQejS8iGptgOMrG5g11V0-nSFapS-VC3IrSpJ-goI,952
201
+ fastmcp/server/tasks/capabilities.py,sha256=1Fm7Z8H4nNiaylvPHMQsLfLcVPQhMRsBiifNNoC5A4Q,1839
202
+ fastmcp/server/tasks/config.py,sha256=DOAdIUyZ0mNfGqB8WwtEzUW-p8PEBJeCLyZwkW-qucw,5170
203
+ fastmcp/server/tasks/context.py,sha256=1hf-ZWk-isHk3LgLXU9YExTdAMFZuU73xuRsxd5Cuc0,12787
204
+ fastmcp/server/tasks/elicitation.py,sha256=61mKx5Iuxv8AGXFx7pPhzOkOSRX5Qan6AbSlaFbVsUM,11945
205
+ fastmcp/server/tasks/handlers.py,sha256=R40GOE87a_OlJffVZ1GCSWYswsPrjudHxpzjmVFiQx8,9517
206
+ fastmcp/server/tasks/keys.py,sha256=rm6OW4cGcbAjSCdbtSMGhDEYM17foE0hylevNeDcdGo,5494
207
+ fastmcp/server/tasks/notifications.py,sha256=RT9aNzbg3gG_xQygJZ-OT7ai2FPdJ6CCcZqBhGVRZz8,11911
208
+ fastmcp/server/tasks/requests.py,sha256=ZqKv-7-Btddi1_c3lTEvxNT54nhjrfOxE42jGWnp6nE,18175
209
+ fastmcp/server/tasks/routing.py,sha256=tWyt9qBzvgoiJtgPwbzHUIBOSxkJp52VwIVf-JAHXhM,2587
210
+ fastmcp/server/tasks/subscriptions.py,sha256=OeADhzkATV4lSjuM3TMQUyb4a4YPfM31vQqWu24pU3E,7624
211
+ fastmcp/server/telemetry.py,sha256=cYBhUuMLbWmOe0tTF_9PrVBBNtZ1l7hcVwMM1hVrVKk,3929
212
+ fastmcp/server/transforms/__init__.py,sha256=KiRD1bvCJw4mCVlOHH3Gf7CMUOnLnNEBD-pSk7U1_G0,7805
213
+ fastmcp/server/transforms/catalog.py,sha256=LHaAdtb4jxqJTSj1ITrrsrZzdQlp5O-h5JxzdmCiuqI,9984
214
+ fastmcp/server/transforms/namespace.py,sha256=t6Bb8e1I-KTZXR_IOgjLiltnGQCp9Fk35Ek_EDyjL1U,6691
215
+ fastmcp/server/transforms/prompts_as_tools.py,sha256=-uBGbmSrv5ztwlnLkJIVQAqm5F4u1S0NTo1fzHLrPZ4,5680
216
+ fastmcp/server/transforms/resources_as_tools.py,sha256=V0mHJTqDz_a7BJKAZyGPppDG4cPCYu3DFCCjM_I6iZI,6119
217
+ fastmcp/server/transforms/search/__init__.py,sha256=OOkSUK7-nPDXLNSU5S04gG4Qk5YSo6WNieDAt2NbO6o,943
218
+ fastmcp/server/transforms/search/base.py,sha256=_942ios0chanDhPXwKYra76IysCdyArngW_-_fiY8EI,10224
219
+ fastmcp/server/transforms/search/bm25.py,sha256=aXzwV0X1mRYpEgUK8361NCFGis-yf7PoggjMza8uN7o,5256
220
+ fastmcp/server/transforms/search/regex.py,sha256=2VyzJwZX5_EYeOJISkPa2S31usFp7reAB2NCUMT3sc4,1859
221
+ fastmcp/server/transforms/tool_transform.py,sha256=KL91GXUHx4lArVXZ7REe0cSJw6H6bEWQPubmS4G7clA,3474
222
+ fastmcp/server/transforms/version_filter.py,sha256=oZMY-KTFf7E9wxnoIdBPJnP7h3DDwHcKR-sHPZM3oQE,5238
223
+ fastmcp/server/transforms/visibility.py,sha256=JmFs8V0JgPgr7UddKq1xoi-F3AeCbRapEqzwUz1vxsY,19100
224
+ fastmcp/settings.py,sha256=qMF2AYB3NEnQ-j6ktF1qwMxufSu4GxxNwnyt8x89nz4,12143
225
+ fastmcp/telemetry.py,sha256=O63vi3XAAp6gRy9QNA9hLq4KSpbl4hDZc9Z4ZNnUPbA,3822
226
+ fastmcp/tools/__init__.py,sha256=Sthz_nus7soTubexXV433p8O4SimVF8WhxaUfmC_4GY,646
227
+ fastmcp/tools/base.py,sha256=LMUTQqCriRiymZaKfPnn0gTfBYtt-UbSL6CPI6SC9S4,20902
228
+ fastmcp/tools/function_parsing.py,sha256=ynWtkr9CzFcZwau4_oiswiQUo70x0lXk9W7Pok3w_7c,12389
229
+ fastmcp/tools/function_tool.py,sha256=jBxX6eZVkTL-QgXFshqzUr8FQkpGz2bE9axMSkquMc8,17240
230
+ fastmcp/tools/tool_transform.py,sha256=3ru-7CXHJqQG8NKUIQTH31HKpImYB_2RrkvTIt2tx5I,40561
231
+ fastmcp/types.py,sha256=jMfvykSsBe4N1pLawAkakF8Ec3jIjNYEjzPnq3gW6Ys,771
232
+ fastmcp/utilities/__init__.py,sha256=-imJ8S-rXmbXMWeDamldP-dHDqAPg_wwmPVz-LNX14E,31
233
+ fastmcp/utilities/async_utils.py,sha256=1tFbwX7O51PNvLOF2Jz5-Cz2c9WozSex0xM5yBA0tJk,2465
234
+ fastmcp/utilities/auth.py,sha256=e2PLw6RnyZ7CYvZYrsCl4ceVFLa3ckC6bn2Gv_xngxo,2671
235
+ fastmcp/utilities/cli.py,sha256=nJWaknXR8MRdnFCHHN90yusMmN9ei0T1ls6DiGgXoW4,12039
236
+ fastmcp/utilities/components.py,sha256=KQvMgJb3nsDWWyJygGxcRnJ1CgYCFsl3d2TWqH63IEY,9607
237
+ fastmcp/utilities/docstring_parsing.py,sha256=chAVVx4R7pfCy-GWyR00LbxMmn0nDy6DdPcNBRpcf58,2259
238
+ fastmcp/utilities/exceptions.py,sha256=7Z9j5IzM5rT27BC1Mcn8tkS-bjqCYqMKwb2MMTaxJYU,1350
239
+ fastmcp/utilities/http.py,sha256=1ns1ymBS-WSxbZjGP6JYjSO52Wa_ls4j4WbnXiupoa4,245
240
+ fastmcp/utilities/inspect.py,sha256=aaZHKd30x5eO-B5vZyftBQmalmngC2wURx0mhhuGLYg,17536
241
+ fastmcp/utilities/json_schema.py,sha256=-ike0MNLzYDY1YLhJlZTsA419AcTcrEZ25FCYWMzZhI,27048
242
+ fastmcp/utilities/json_schema_type.py,sha256=1IUWaEUbnYQa1Otvy6weJ11d9B-3p52UlhuryO87pA4,26262
243
+ fastmcp/utilities/lifespan.py,sha256=QaMO7ibwP0Iys7CrPoi_ySX-qkwIB3yA8Gp-uLTF4cE,1880
244
+ fastmcp/utilities/logging.py,sha256=n7Tl_IVPuULmaV_nIzpfbym1LdcHDAm2Ocol6LnKB_0,7548
245
+ fastmcp/utilities/mcp_server_config/__init__.py,sha256=hHBxEwRsrgN0Q-1bvj28X6UVGDpfG6dt3yfSBGsOY80,791
246
+ fastmcp/utilities/mcp_server_config/v1/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
247
+ fastmcp/utilities/mcp_server_config/v1/environments/__init__.py,sha256=Tkv0dmJ6tKKotOBo-tho09QVdvEjy37iBsvBbEwH0EA,256
248
+ fastmcp/utilities/mcp_server_config/v1/environments/base.py,sha256=fbC1C25jI1whwXLlIQtmji5B4UEHLgKvw5K8NICb33Y,826
249
+ fastmcp/utilities/mcp_server_config/v1/environments/uv.py,sha256=DPVAXM5JDTN89wOSQsFnww4khRfNphXY2yzVeiKicNg,9755
250
+ fastmcp/utilities/mcp_server_config/v1/mcp_server_config.py,sha256=QJbvUV_tC2V6NCsrCGkS_yop_5oSs-0xDbY2BXiKuU8,15480
251
+ fastmcp/utilities/mcp_server_config/v1/schema.json,sha256=ymDNFOWzcpnhIMeJmVPTw9b-NtHoHoru8Mc0WlSVxUY,8602
252
+ fastmcp/utilities/mcp_server_config/v1/sources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
253
+ fastmcp/utilities/mcp_server_config/v1/sources/base.py,sha256=Y5MCxJyoDsaxcBN1zDL0CZtF5oAXxT_yqQOI-ze9b34,967
254
+ fastmcp/utilities/mcp_server_config/v1/sources/filesystem.py,sha256=4kbwZ9sLxOKIHnXkxRnziTGck04yGlAe687g5YO_hm4,8104
255
+ fastmcp/utilities/mime.py,sha256=mVJr2gpshSPuy1UL7XKgP4FeN5vKHsqocBIqWvjpoK0,847
256
+ fastmcp/utilities/openapi/README.md,sha256=pcxMeSIHUmuhXHRYV7GOuMUZtw9QBv-rowQIDqmkab8,7657
257
+ fastmcp/utilities/openapi/__init__.py,sha256=yDP3cjtluL9VaVq2cmGGDOWyFTLcbWo8boh8wS41q4M,1528
258
+ fastmcp/utilities/openapi/director.py,sha256=lIcEq1ZedeBlBsZVg_aDZxT6erfnXv7EjoQYSPUyDYw,12850
259
+ fastmcp/utilities/openapi/formatters.py,sha256=qyqqitbTxu2f7mVexcb54P19LA7t3OxCLd5ISD78SM4,14248
260
+ fastmcp/utilities/openapi/json_schema_converter.py,sha256=4qSL8ZQb0IDlFRMH9c02hXjknYein4rMZq04N5t5Pss,13177
261
+ fastmcp/utilities/openapi/models.py,sha256=-kfndwZSe92tVtKAgOuFn5rk1tN7oydCZKtLOEMEalA,2805
262
+ fastmcp/utilities/openapi/parser.py,sha256=Ct3uWwXL0fqc6c01Xok3-zHtgUu-kN8mKN1E3EBfpkw,34569
263
+ fastmcp/utilities/openapi/schemas.py,sha256=dzXgEDhlg3AVj43jgcIySZWfTN9PSy2rxXlBjgtuhwM,24083
264
+ fastmcp/utilities/pagination.py,sha256=XFdlJulbexMjXsndjLJQ1NjH6qnZDLceMCHk-pEB0s0,2092
265
+ fastmcp/utilities/skills.py,sha256=kpOkgScHPcxJ1HY5jIsTMovufae2cGvZ55qnarKae5A,7383
266
+ fastmcp/utilities/tests.py,sha256=qNIiMnj5DwREXX4OwskRFQe4Wiv05GMkO5pd_PMfqyM,8772
267
+ fastmcp/utilities/timeout.py,sha256=bhWCEvtKMeFLMJx8Za7-6IYaxi-O2y7ga6NZ4335LDc,1414
268
+ fastmcp/utilities/token_cache.py,sha256=nYsLZgQomq5Dh2kXl_C3Ow34dWtOhCBi120dwytBYjs,5998
269
+ fastmcp/utilities/types.py,sha256=D4bTZQs4MacDKXCeTlrhBEqhtxA41DC-ddIt_Ic5uXI,17807
270
+ fastmcp/utilities/ui.py,sha256=gcnha7Vj4xEBxdrS83EZlKpN_43AQzcgiZFEvkTqzqg,14252
271
+ fastmcp/utilities/version_check.py,sha256=zjY2HaSW4f09Gjun3V6TLyaeJC_ZPPf16VvQAdDigO8,4419
272
+ fastmcp/utilities/versions.py,sha256=K5KMe47PqSM_pNxecIchLPFY-OdYzA1P_d_Cp-_3K0U,10541
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/REQUESTED ADDED
File without changes
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/WHEEL ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/entry_points.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ [console_scripts]
2
+ fastmcp = fastmcp.cli:app
.venv/lib/python3.10/site-packages/fastmcp-3.2.4.dist-info/licenses/LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/AltairPlot-Cj80tEjo.js ADDED
The diff for this file is too large to render. See raw diff
 
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/AltairPlot-Dp2S7wtT.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .altair.svelte-1i8dfv0 canvas{padding:6px}.altair.svelte-1i8dfv0 .vega-embed{padding:0!important}.altair.svelte-1i8dfv0 .vega-actions{right:0!important}.layout.svelte-1i8dfv0{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--size-full);height:var(--size-full);color:var(--body-text-color)}.altair.svelte-1i8dfv0{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--size-full);height:var(--size-full)}.caption.svelte-1i8dfv0{font-size:var(--text-sm);margin-bottom:6px}#vg-tooltip-element{font-family:var(--font)!important;font-size:var(--text-xs)!important;box-shadow:none!important;background-color:var(--block-background-fill)!important;border:1px solid var(--border-color-primary)!important;color:var(--body-text-color)!important}#vg-tooltip-element .key{color:var(--body-text-color-subdued)!important}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiDocs-D66OUv1H.js ADDED
@@ -0,0 +1,251 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{p as m,a as Ee,e as st,i as G,k as lt,u as ct,b as ke,h as St,f as Pt,d as Tt,t as zt,v as Xt,F as Kt}from"./i18n-Dnhn5Rxr.js";import{R as $e,t as R,a as o,T as Ce,U as g,f as ht,a4 as Lt,S as re,X as n,V as a,Y as t,a8 as we,a0 as V,Z as Te,W as b,a7 as xe,a6 as Ge,z as k,G as p,w as e,a1 as ve,a2 as _t,a3 as B,x as N,ad as Ae,aa as Bt,M as Vt,bQ as ea,a5 as At,at as qt,as as jt,aw as Nt}from"./index-DWyDLubb.js";import{b as Gt}from"./misc-vsnLZ-Y1.js";import{C as Ft}from"./clear-CEoTtSVi.js";import{a as ta,g as aa}from"./Blocks-D6_IyY-z.js";import{B as Yt}from"./Button-D-_s2ksk.js";import{L as Wt}from"./index-CglBvmLb.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{B as Le}from"./Block-J4oodUWp.js";import{h as Mt}from"./html-Ih_5QVTo.js";import{a as sa}from"./input-DrerMDOL.js";import"./size-CtOeLwIl.js";import"./state.svelte-CXxGByZZ.js";import"./utils.svelte-CCyS_0CY.js";import"./clone-BkeCM4Nl.js";import"./index-DkrWwIux.js";import"./index-tFQomdd2.js";import"./snippet-BWgYNF9D.js";import"./Image-CeW7PJs4.js";/* empty css *//* empty css */import"./Clear-BF6j078A.js";import"./index-B_pwUImq.js";var ra=ht('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M12.1 2a9.8 9.8 0 0 0-5.4 1.6l6.4 6.4a2.1 2.1 0 0 1 .2 3a2.1 2.1 0 0 1-3-.2L3.7 6.4A9.84 9.84 0 0 0 2 12.1a10.14 10.14 0 0 0 10.1 10.1a11 11 0 0 0 2.6-.3l6.7 6.7a5 5 0 0 0 7.1-7.1l-6.7-6.7a11 11 0 0 0 .3-2.6A10 10 0 0 0 12.1 2m8 10.1a7.6 7.6 0 0 1-.3 2.1l-.3 1.1l.8.8l6.7 6.7a2.88 2.88 0 0 1 .9 2.1A2.72 2.72 0 0 1 27 27a2.9 2.9 0 0 1-4.2 0l-6.7-6.7l-.8-.8l-1.1.3a7.6 7.6 0 0 1-2.1.3a8.27 8.27 0 0 1-5.7-2.3A7.63 7.63 0 0 1 4 12.1a8.3 8.3 0 0 1 .3-2.2l4.4 4.4a4.14 4.14 0 0 0 5.9.2a4.14 4.14 0 0 0-.2-5.9L10 4.2a6.5 6.5 0 0 1 2-.3a8.27 8.27 0 0 1 5.7 2.3a8.5 8.5 0 0 1 2.4 5.9"></path></svg>');function Et(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),g()}},v=ra();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),o(d,v),Ce(c)}var na=ht('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M17.74 30L16 29l4-7h6a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h9v2H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4h-4.84Z"></path><path fill="currentColor" d="M8 10h16v2H8zm0 6h10v2H8z"></path></svg>');function Zt(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),g()}},v=na();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),o(d,v),Ce(c)}var ia=ht('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="currentColor" d="M19 10h7v2h-7zm0 5h7v2h-7zm0 5h7v2h-7z"></path><path fill="currentColor" d="M28 5H4a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h24a2.003 2.003 0 0 0 2-2V7a2 2 0 0 0-2-2M4 7h11v18H4Zm13 18V7h11l.002 18Z"></path></svg>');function Ht(d,s){$e(s,!1);let i=m(s,"icon_size",12,16);var c={get icon_size(){return i()},set icon_size(_){i(_),g()}},v=ia();return R(()=>{Ee(v,"width",i()),Ee(v,"height",i())}),o(d,v),Ce(c)}var oa=b('<div class="wrap prose svelte-1m8i4xt"><h1>API Docs</h1> <p class="attention svelte-1m8i4xt">No API Routes found for <code class="svelte-1m8i4xt"> </code></p> <p>To expose an API endpoint of your app in this page, set the <code>api_name</code> parameter of the event listener. <br/> For more information, visit the <a href="https://gradio.app/sharing_your_app/#api-page" target="_blank">API Page guide</a> . To hide the API documentation button and this page, set <code>footer_links=["gradio", "settings"]</code> in the <code>Blocks.launch()</code> method.</p></div> <button class="svelte-1m8i4xt"><!></button>',1);function la(d,s){$e(s,!1);const i=Lt();let c=m(s,"root",12);var v={get root(){return c()},set root(E){c(E),g()}};st();var _=oa(),H=re(_),O=n(a(H),2),Z=n(a(O)),A=a(Z,!0);t(Z),t(O),we(2),t(H);var x=n(H,2),w=a(x);return Ft(w),t(x),R(()=>V(A,c())),Te("click",x,()=>i("close")),o(d,_),Ce(v)}var ca=b('<div class="loading-dot self-baseline svelte-uv8a36"></div> <p class="self-baseline btn-text svelte-uv8a36">API Recorder</p>',1),da=b('<h2 class="svelte-uv8a36"><img alt="" class="svelte-uv8a36"/> <div class="title svelte-uv8a36"><!> documentation <div class="url svelte-uv8a36"> </div></div> <span class="counts svelte-uv8a36"><!> <p><span class="url svelte-uv8a36"> </span> <!><!><br/></p></span></h2> <button class="svelte-uv8a36"><!></button>',1);function pa(d,s){$e(s,!1);let i=m(s,"root",12),c=m(s,"api_count",12),v=m(s,"current_language",12,"python");const _=Lt();var H={get root(){return i()},set root(y){i(y),g()},get api_count(){return c()},set api_count(y){c(y),g()},get current_language(){return v()},set current_language(y){v(y),g()}};st();var O=da(),Z=re(O),A=a(Z),x=n(A,2),w=a(x);{var E=y=>{var Y=xe("MCP");o(y,Y)},ce=y=>{var Y=Ge(),oe=re(Y);{var ee=$=>{var X=xe("CLI");o($,X)},I=$=>{var X=xe("API");o($,X)};G(oe,$=>{v()==="cli"?$(ee):$(I,!1)},!0)}o(y,Y)};G(w,y=>{v()==="mcp"?y(E):y(ce,!1)})}var K=n(w,2),S=a(K,!0);t(K),t(x);var h=n(x,2),l=a(h);{var P=y=>{Yt(y,{size:"sm",variant:"secondary",elem_id:"start-api-recorder",onclick:()=>_("close",{api_recorder_visible:!0}),children:(Y,oe)=>{var ee=ca();we(2),o(Y,ee)},$$slots:{default:!0}})};G(l,y=>{v()!=="mcp"&&v()!=="cli"&&y(P)})}var U=n(l,2),T=a(U),F=a(T,!0);t(T);var C=n(T,2);{var f=y=>{var Y=xe("MCP Tool");o(y,Y)},L=y=>{var Y=Ge(),oe=re(Y);{var ee=$=>{var X=xe(`CLI
2
+ endpoint`);o($,X)},I=$=>{var X=xe("API endpoint");o($,X)};G(oe,$=>{v()==="cli"?$(ee):$(I,!1)},!0)}o(y,Y)};G(C,y=>{v()==="mcp"?y(f):y(L,!1)})}var de=n(C);{var j=y=>{var Y=xe("s");o(y,Y)};G(de,y=>{c()>1&&y(j)})}we(),t(U),t(h),t(Z);var z=n(Z,2),Q=a(z);return Ft(Q),t(z),R(()=>{Ee(A,"src",ta),V(S,i()),V(F,c())}),Te("click",z,()=>_("close")),o(d,O),Ce(H)}function ut(d,s,i=null){return s===void 0?i==="py"?"None":null:d===null&&i==="py"?"None":s==="string"||s==="str"?i===null?d:'"'+d+'"':s==="number"?i===null?parseFloat(d):d:s==="boolean"||s=="bool"?i==="py"?(d=String(d),d==="true"?"True":"False"):i==="js"||i==="bash"?d:d==="true":s==="List[str]"?(d=JSON.stringify(d),d):s.startsWith("Literal['")?'"'+d+'"':i===null?d===""?null:JSON.parse(d):typeof d=="string"?d===""?i==="py"?"None":"null":d:(i==="bash"&&(d=Dt(d)),i==="py"&&(d=Rt(d)),va(d))}function Dt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?{path:d.url,meta:{_type:"gradio.FileData"}}:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Dt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Dt(d[s])}),d)}function Rt(d){return typeof d=="object"&&d!==null&&!Array.isArray(d)&&"url"in d&&d.url&&"meta"in d&&d.meta?._type==="gradio.FileData"?`handle_file('${d.url}')`:(Array.isArray(d)?d.forEach((s,i)=>{typeof s=="object"&&s!==null&&(d[i]=Rt(s))}):typeof d=="object"&&d!==null&&Object.keys(d).forEach(s=>{d[s]=Rt(d[s])}),d)}function va(d){let s=JSON.stringify(d,(v,_)=>_===null?"UNQUOTEDNone":typeof _=="string"&&_.startsWith("handle_file(")&&_.endsWith(")")?`UNQUOTED${_}`:_);const i=/"UNQUOTEDhandle_file\(([^)]*)\)"/g;s=s.replace(i,(v,_)=>`handle_file(${_})`);const c=/"UNQUOTEDNone"/g;return s.replace(c,"None")}function ot(d){return d<1?`${Math.round(d*1e3)} ms`:`${d.toFixed(2)} s`}var _a=b(" <!>:",1),ua=b(" <!>:",1),ha=b(" <!>",1),ma=b('<span style="font-weight:bold">Required</span>'),ga=b('<span>Default:</span><span class="code svelte-1nfxyth" style="font-size: var(--text-sm);"> </span>',1),fa=b('<hr class="hr svelte-1nfxyth"/> <div style="margin:10px;"><p style="white-space: nowrap; overflow-x: auto;"><span class="code svelte-1nfxyth" style="margin-right: 10px;"> </span> <span class="code highlight svelte-1nfxyth" style="margin-right: 10px;"><!></span> <!></p> <p class="desc svelte-1nfxyth"> </p></div>',1),ya=b('<div class="load-wrap"><!></div>'),ba=b('<h4 class="svelte-1nfxyth"><div class="toggle-icon svelte-1nfxyth"><div class="toggle-dot svelte-1nfxyth"></div></div> <!></h4> <div></div> <!>',1);function wa(d,s){$e(s,!1);let i=m(s,"is_running",12),c=m(s,"endpoint_returns",12),v=m(s,"js_returns",12),_=m(s,"current_language",12);var H={get is_running(){return i()},set is_running(h){i(h),g()},get endpoint_returns(){return c()},set endpoint_returns(h){c(h),g()},get js_returns(){return v()},set js_returns(h){v(h),g()},get current_language(){return _()},set current_language(h){_(h),g()}};st();var O=ba(),Z=re(O),A=n(a(Z),2);{var x=h=>{var l=_a(),P=re(l),U=n(P);{var T=F=>{var C=xe("s");o(F,C)};G(U,F=>{p(c()),k(()=>c().length!=1)&&F(T)})}we(),R(()=>V(P,`Accepts a JSON object with ${p(c()),k(()=>c().length)??""}
3
+ key`)),o(h,l)},w=h=>{var l=ua(),P=re(l),U=n(P);{var T=F=>{var C=xe("s");o(F,C)};G(U,F=>{p(c()),k(()=>c().length!=1)&&F(T)})}we(),R(()=>V(P,`Accepts ${p(c()),k(()=>c().length)??""}
4
+ parameter`)),o(h,l)};G(A,h=>{_()==="bash"?h(x):h(w,!1)})}t(Z);var E=n(Z,2);let ce;lt(E,5,c,ct,(h,l,P)=>{let U=()=>e(l).label,T=()=>e(l).python_type,F=()=>e(l).component,C=()=>e(l).parameter_name,f=()=>e(l).parameter_has_default,L=()=>e(l).parameter_default;var de=fa(),j=n(re(de),2),z=a(j),Q=a(z),y=a(Q,!0);t(Q);var Y=n(Q,2),oe=a(Y);{var ee=q=>{var W=ha(),ie=re(W,!0),_e=n(ie);{var fe=le=>{var ue=xe(` |
5
+ None`);o(le,ue)};G(_e,le=>{f()&&L()===null&&le(fe)})}R(()=>V(ie,(T(),k(()=>T().type)))),o(q,W)},I=q=>{var W=Ge(),ie=re(W);{var _e=le=>{var ue=xe();R(()=>V(ue,(T(),k(()=>T().type)))),o(le,ue)},fe=le=>{var ue=xe();R(()=>V(ue,(p(v()),k(()=>v()[P].type||"any")))),o(le,ue)};G(ie,le=>{_()==="bash"?le(_e):le(fe,!1)},!0)}o(q,W)};G(oe,q=>{_()==="python"?q(ee):q(I,!1)})}t(Y);var $=n(Y,2);{var X=q=>{var W=ma();o(q,W)},ne=q=>{var W=ga(),ie=n(re(W)),_e=a(ie,!0);t(ie),R(fe=>V(_e,fe),[()=>(p(ut),L(),T(),k(()=>ut(L(),T().type,"py")))]),o(q,W)};G($,q=>{!f()||_()=="bash"?q(X):q(ne,!1)})}t(z);var ae=n(z,2),te=a(ae);t(ae),t(j),R(()=>{V(y,C()||`[${P}]`),V(te,`The input value that is provided in the "${U()??""}" ${F()??""}
6
+ component. ${T(),k(()=>T().description)??""}`)}),o(h,de)}),t(E);var K=n(E,2);{var S=h=>{var l=ya(),P=a(l);Wt(P,{margin:!1}),t(l),o(h,l)};G(K,h=>{i()&&h(S)})}return R(()=>ce=ke(E,1,"",null,ce,{hide:i()})),o(d,O),Ce(H)}var xa=ht('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg>');function Ot(d,s){$e(s,!1);let i=m(s,"classNames",12,"");var c={get classNames(){return i()},set classNames(_){i(_),g()}},v=xa();return R(()=>ke(v,0,St(i()),"svelte-etvp4k")),o(d,v),Ce(c)}var $a=ht('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true"><path fill-rule="evenodd" fill="rgb(255, 124, 1)" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');function Jt(d,s){$e(s,!1);let i=m(s,"classNames",12,"");var c={get classNames(){return i()},set classNames(_){i(_),g()}},v=$a();return R(()=>ke(v,0,St(i()||"icon-size"),"svelte-5quqiz")),o(d,v),Ce(c)}var Ca=b('<button class="copy-button svelte-egghn7" aria-live="polite"><span class="inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0"><!></span></button>');function ze(d,s){$e(s,!1);let i=m(s,"code",12),c=B(!1);function v(){navigator.clipboard.writeText(i()),N(c,!0),setTimeout(()=>{N(c,!1)},1500)}ve(()=>e(c),()=>{e(c)}),_t();var _={get code(){return i()},set code(w){i(w),g()}},H=Ca(),O=a(H),Z=a(O);{var A=w=>{Jt(w,{classNames:"w-3 h-3 max-sm:w-2.5 max-sm:h-2.5"})},x=w=>{Ot(w,{classNames:"w-3 h-3 max-sm:w-2.5 max-sm:h-2.5"})};G(Z,w=>{e(c)?w(A):w(x,!1)})}return t(O),t(H),Te("click",H,v),o(d,H),Ce(_)}var Ia=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"></pre></div></code>'),ka=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"></pre></div></code>'),ja=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"></pre></div></code>'),Pa=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"></pre></div></code>'),Ta=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"></pre></div></code>'),Sa=b('<p class="step svelte-1ts4a2g">First, install the HF CLI.</p> <p class="os-label svelte-1ts4a2g">On macOS and Linux:</p> <!> <p class="os-label svelte-1ts4a2g">On Windows:</p> <!> <p class="step svelte-1ts4a2g">Then, install the Gradio extension:</p>',1),Na=b('<code class="svelte-1ts4a2g"><div class="copy svelte-1ts4a2g"><!></div> <div><pre class="svelte-1ts4a2g"> </pre></div></code>'),Ma=b("<!> <!>",1);function za(d,s){$e(s,!1);const i=B();let c=m(s,"current_language",12),v=m(s,"cli_flavor",12,"hf"),_="pip install gradio_client",H="npm i -D @gradio/client",O="curl --version";const Z="curl -LsSf https://hf.co/cli/install.sh | bash",A='powershell -ExecutionPolicy ByPass -c "irm https://hf.co/cli/install.ps1 | iex"';ve(()=>p(v()),()=>{N(i,v()==="hf"?"hf extensions install gradio-app/hf-gradio":"pip install gradio --upgrade")}),_t();var x={get current_language(){return c()},set current_language(S){c(S),g()},get cli_flavor(){return v()},set cli_flavor(S){v(S),g()}},w=Ge(),E=re(w);{var ce=S=>{Le(S,{children:(h,l)=>{var P=Ia(),U=a(P),T=a(U);ze(T,{code:_}),t(U);var F=n(U,2),C=a(F);C.textContent="$ pip install gradio_client",t(F),t(P),o(h,P)},$$slots:{default:!0}})},K=S=>{var h=Ge(),l=re(h);{var P=T=>{Le(T,{children:(F,C)=>{var f=ka(),L=a(f),de=a(L);ze(de,{code:H}),t(L);var j=n(L,2),z=a(j);z.textContent="$ npm i -D @gradio/client",t(j),t(f),o(F,f)},$$slots:{default:!0}})},U=T=>{var F=Ge(),C=re(F);{var f=de=>{Le(de,{children:(j,z)=>{var Q=ja(),y=a(Q),Y=a(y);ze(Y,{code:O}),t(y);var oe=n(y,2),ee=a(oe);ee.textContent="$ curl --version",t(oe),t(Q),o(j,Q)},$$slots:{default:!0}})},L=de=>{var j=Ge(),z=re(j);{var Q=y=>{var Y=Ma(),oe=re(Y);{var ee=$=>{var X=Sa(),ne=n(re(X),4);Le(ne,{children:(te,q)=>{var W=Pa(),ie=a(W),_e=a(ie);ze(_e,{code:Z}),t(ie);var fe=n(ie,2),le=a(fe);le.textContent="$ curl -LsSf https://hf.co/cli/install.sh | bash",t(fe),t(W),o(te,W)},$$slots:{default:!0}});var ae=n(ne,4);Le(ae,{children:(te,q)=>{var W=Ta(),ie=a(W),_e=a(ie);ze(_e,{code:A}),t(ie);var fe=n(ie,2),le=a(fe);le.textContent='$ powershell -ExecutionPolicy ByPass -c "irm https://hf.co/cli/install.ps1 | iex"',t(fe),t(W),o(te,W)},$$slots:{default:!0}}),we(2),o($,X)};G(oe,$=>{v()==="hf"&&$(ee)})}var I=n(oe,2);Le(I,{children:($,X)=>{var ne=Na(),ae=a(ne),te=a(ae);ze(te,{get code(){return e(i)}}),t(ae);var q=n(ae,2),W=a(q),ie=a(W);t(W),t(q),t(ne),R(()=>V(ie,`$ ${e(i)??""}`)),o($,ne)},$$slots:{default:!0}}),o(y,Y)};G(z,y=>{c()==="cli"&&y(Q)},!0)}o(de,j)};G(C,de=>{c()==="bash"?de(f):de(L,!1)},!0)}o(T,F)};G(l,T=>{c()==="javascript"?T(P):T(U,!1)},!0)}o(S,h)};G(E,S=>{c()==="python"?S(ce):S(K,!1)})}return o(d,w),Ce(x)}var Aa=b('<div class="tooltip-chart svelte-1q3jha5"><div class="tooltip-arrow svelte-1q3jha5"></div> <div class="chart-bars svelte-1q3jha5"><div class="chart-bar-container svelte-1q3jha5"><div class="chart-bar-label svelte-1q3jha5">p50</div> <div class="chart-bar-wrapper svelte-1q3jha5"><div class="chart-bar svelte-1q3jha5"></div></div> <div class="chart-bar-value svelte-1q3jha5"> </div></div> <div class="chart-bar-container svelte-1q3jha5"><div class="chart-bar-label svelte-1q3jha5">p90</div> <div class="chart-bar-wrapper svelte-1q3jha5"><div class="chart-bar svelte-1q3jha5"></div></div> <div class="chart-bar-value svelte-1q3jha5"> </div></div> <div class="chart-bar-container svelte-1q3jha5"><div class="chart-bar-label svelte-1q3jha5">p99</div> <div class="chart-bar-wrapper svelte-1q3jha5"><div class="chart-bar svelte-1q3jha5"></div></div> <div class="chart-bar-value svelte-1q3jha5"> </div></div></div></div>');function qa(d,s){$e(s,!1);const i=B();let c=m(s,"p50",12),v=m(s,"p90",12),_=m(s,"p99",12);ve(()=>(p(c()),p(v()),p(_())),()=>{N(i,Math.max(c(),v(),_()))}),_t();var H={get p50(){return c()},set p50(L){c(L),g()},get p90(){return v()},set p90(L){v(L),g()},get p99(){return _()},set p99(L){_(L),g()}};st();var O=Aa(),Z=n(a(O),2),A=a(Z),x=n(a(A),2),w=a(x);t(x);var E=n(x,2),ce=a(E,!0);t(E),t(A);var K=n(A,2),S=n(a(K),2),h=a(S);t(S);var l=n(S,2),P=a(l,!0);t(l),t(K);var U=n(K,2),T=n(a(U),2),F=a(T);t(T);var C=n(T,2),f=a(C,!0);return t(C),t(U),t(Z),t(O),R((L,de,j)=>{Pt(w,`width: ${c()/e(i)*100}%`),V(ce,L),Pt(h,`width: ${v()/e(i)*100}%`),V(P,de),Pt(F,`width: ${_()/e(i)*100}%`),V(f,j)},[()=>(p(ot),p(c()),k(()=>ot(c()))),()=>(p(ot),p(v()),k(()=>ot(v()))),()=>(p(ot),p(_()),k(()=>ot(_())))]),o(d,O),Ce(H)}var Da=b('<span class="most-recently-used svelte-13swnto">Most recently used</span>'),Ra=b('<span class="analytics-inline svelte-13swnto"><span class="analytics-content svelte-13swnto"><span class="analytics-text-wrapper svelte-13swnto"> </span> <div class="analytics-tooltip svelte-13swnto"><!></div></span> <!></span>'),Oa=b('<h3 class="svelte-13swnto">API name: <span class="post svelte-13swnto"> </span> <span class="desc svelte-13swnto"> <!></span></h3>');function La(d,s){$e(s,!1);const i=B();let c=m(s,"api_name",12,null),v=m(s,"description",12,null),_=m(s,"analytics",12),H=m(s,"last_api_call",12,null),O=m(s,"dependency_id",12,null);const Z=c()?_()[c()]?.success_rate:0;ve(()=>(p(H()),p(O())),()=>{N(i,H()?.fn_index===O())}),_t();var A={get api_name(){return c()},set api_name(l){c(l),g()},get description(){return v()},set description(l){v(l),g()},get analytics(){return _()},set analytics(l){_(l),g()},get last_api_call(){return H()},set last_api_call(l){H(l),g()},get dependency_id(){return O()},set dependency_id(l){O(l),g()}};st();var x=Oa(),w=n(a(x)),E=a(w,!0);t(w);var ce=n(w,2),K=a(ce),S=n(K);{var h=l=>{const P=Ae(()=>(p(_()),p(c()),k(()=>_()[c()]))),U=Ae(()=>(p(e(P)),k(()=>e(P).process_time_percentiles["50th"]))),T=Ae(()=>(p(e(P)),k(()=>e(P).process_time_percentiles["90th"]))),F=Ae(()=>(p(e(P)),k(()=>e(P).process_time_percentiles["99th"])));var C=Ra(),f=a(C),L=a(f),de=a(L);t(L);var j=n(L,2),z=a(j);qa(z,{get p50(){return e(U)},get p90(){return e(T)},get p99(){return e(F)}}),t(j),t(f);var Q=n(f,2);{var y=Y=>{var oe=Da();o(Y,oe)};G(Q,Y=>{e(i)&&Y(y)})}t(C),R((Y,oe)=>V(de,`${p(e(P)),k(()=>e(P).total_requests)??""} requests (${Y??""}% successful, p50: ${oe??""})`),[()=>k(()=>Math.round(Z*100)),()=>(p(ot),p(e(U)),k(()=>ot(e(U))))]),o(l,C)};G(S,l=>{p(_()),p(c()),k(()=>_()&&c()&&_()[c()])&&l(h)})}return t(ce),t(x),R(()=>{V(E,"/"+c()),V(K,`${v()??""} `)}),o(d,x),Ce(A)}var Ga=b('<code class="svelte-1v9rhoq"><div class="copy svelte-1v9rhoq"><!></div> <pre class="svelte-1v9rhoq"><!></pre></code>'),Ea=b('<code class="svelte-1v9rhoq"><div class="copy svelte-1v9rhoq"><!></div> <pre class="svelte-1v9rhoq"><!></pre></code>'),Za=b('<code class="svelte-1v9rhoq"><div class="copy svelte-1v9rhoq"><!></div> <pre class="svelte-1v9rhoq"><!></pre></code>'),Ha=b('<code class="svelte-1v9rhoq"><div class="copy svelte-1v9rhoq"><!></div> <pre class="svelte-1v9rhoq"><!></pre></code>'),Ua=b('<div class="container svelte-1v9rhoq"><!> <div><!></div> <div><!></div> <div><!></div> <div><!></div></div>');function Ba(d,s){$e(s,!1);const i=B(),c=B(),v=B(),_=B(),H=B();let O=m(s,"dependency",12),Z=m(s,"current_language",12),A=m(s,"api_description",12,null),x=m(s,"analytics",12),w=m(s,"code_snippets",12),E=m(s,"last_api_call",12,null),ce=m(s,"cli_command",12,"");function K(I){return I.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function S(I){let $=K(I);return $=$.replace(/\b(from|import|print)\b/g,'<span class="kw">$1</span>'),$=$.replace(/(Client\()("[^"]*")(\))/g,'$1<span class="str">$2</span>$3'),$=$.replace(/(api_name=)("[^"]*")/g,'$1<span class="api-name">$2</span>'),$}function h(I){let $=K(I);return $=$.replace(/\b(import|from|const|await)\b/g,'<span class="kw">$1</span>'),$=$.replace(/(Client\.connect\()("[^"]*")(\))/g,'$1<span class="str">$2</span>$3'),$=$.replace(/(\.predict\()("[^"]*")/g,'$1<span class="api-name">$2</span>'),$}function l(I){return K(I)}ve(()=>(p(w()),p(ce())),()=>{N(i,(w().cli||"").replace("{command}",ce()))}),ve(()=>p(w()),()=>{N(c,S(w().python||""))}),ve(()=>p(w()),()=>{N(v,h(w().javascript||""))}),ve(()=>p(w()),()=>{N(_,l(w().bash||""))}),ve(()=>e(i),()=>{N(H,l(e(i)))}),_t();var P={get dependency(){return O()},set dependency(I){O(I),g()},get current_language(){return Z()},set current_language(I){Z(I),g()},get api_description(){return A()},set api_description(I){A(I),g()},get analytics(){return x()},set analytics(I){x(I),g()},get code_snippets(){return w()},set code_snippets(I){w(I),g()},get last_api_call(){return E()},set last_api_call(I){E(I),g()},get cli_command(){return ce()},set cli_command(I){ce(I),g()}};st();var U=Ua(),T=a(U);La(T,{get api_name(){return p(O()),k(()=>O().api_name)},get description(){return A()},get analytics(){return x()},get last_api_call(){return E()},get dependency_id(){return p(O()),k(()=>O().id)}});var F=n(T,2);let C;var f=a(F);Le(f,{children:(I,$)=>{var X=Ga(),ne=a(X),ae=a(ne);{let W=Ae(()=>(p(w()),k(()=>w().python||"")));ze(ae,{get code(){return e(W)}})}t(ne);var te=n(ne,2),q=a(te);Mt(q,()=>e(c)),t(te),t(X),o(I,X)},$$slots:{default:!0}}),t(F);var L=n(F,2);let de;var j=a(L);Le(j,{children:(I,$)=>{var X=Ea(),ne=a(X),ae=a(ne);{let W=Ae(()=>(p(w()),k(()=>w().javascript||"")));ze(ae,{get code(){return e(W)}})}t(ne);var te=n(ne,2),q=a(te);Mt(q,()=>e(v)),t(te),t(X),o(I,X)},$$slots:{default:!0}}),t(L);var z=n(L,2);let Q;var y=a(z);Le(y,{children:(I,$)=>{var X=Za(),ne=a(X),ae=a(ne);{let W=Ae(()=>(p(w()),k(()=>w().bash||"")));ze(ae,{get code(){return e(W)}})}t(ne);var te=n(ne,2),q=a(te);Mt(q,()=>e(_)),t(te),t(X),o(I,X)},$$slots:{default:!0}}),t(z);var Y=n(z,2);let oe;var ee=a(Y);return Le(ee,{children:(I,$)=>{var X=Ha(),ne=a(X),ae=a(ne);ze(ae,{get code(){return e(i)}}),t(ne);var te=n(ne,2),q=a(te);Mt(q,()=>e(H)),t(te),t(X),o(I,X)},$$slots:{default:!0}}),t(Y),t(U),R(()=>{C=ke(F,1,"svelte-1v9rhoq",null,C,{hidden:Z()!=="python"}),de=ke(L,1,"svelte-1v9rhoq",null,de,{hidden:Z()!=="javascript"}),Q=ke(z,1,"svelte-1v9rhoq",null,Q,{hidden:Z()!=="bash"}),oe=ke(Y,1,"svelte-1v9rhoq",null,oe,{hidden:Z()!=="cli"})}),o(d,U),Ce(P)}var Va=b(`
7
+ client.<span class="highlight"> <span class="api-name svelte-154to14"> </span>
8
+ )
9
+ </span>`,1),Fa=b(`<code class="svelte-154to14"><div class="copy svelte-154to14"><!></div> <div><pre class="svelte-154to14"><span class="highlight">from</span> gradio_client <span class="highlight">import</span> Client, file
10
+
11
+ client = Client(<span class="token string svelte-154to14"> </span><!>)
12
+ <!></pre></div></code>`),Ya=b(`
13
+ await client.predict(<span class="api-name svelte-154to14"> </span><!>);
14
+ `,1),Wa=b(`<code class="svelte-154to14"><div class="copy svelte-154to14"><!></div> <div><pre class="svelte-154to14">import &lbrace; Client &rbrace; from "@gradio/client";
15
+
16
+ const app = await Client.connect(<span class="token string svelte-154to14"> </span><!>);
17
+ <!></pre></div></code>`),Ja=b('<pre class="svelte-154to14"> </pre> <br/>',1),Qa=b('<code class="svelte-154to14"><div class="copy svelte-154to14"><!></div> <div></div></code>'),Xa=b('<div class="container svelte-154to14"><!></div>');function Ka(d,s){$e(s,!1);let i=m(s,"dependencies",12),c=m(s,"short_root",12),v=m(s,"root",12),_=m(s,"api_prefix",12,""),H=m(s,"current_language",12),O=m(s,"username",12),Z=B(),A=B(),x=B(),w=B(),E=m(s,"api_calls",28,()=>[]);async function ce(){return await(await fetch(v().replace(/\/$/,"")+_()+"/info/?all_endpoints=true")).json()}let K,S=B([]),h=B([]),l=B([]);function P(C,f){const L=`/${i()[C.fn_index].api_name}`,j=C.data.filter(z=>typeof z<"u").map((z,Q)=>{if(K[L]){const y=K[L].parameters[Q];if(!y)return;const Y=y.parameter_name,oe=y.python_type.type;if(f==="py")return` ${Y}=${ut(z,oe,"py")}`;if(f==="js")return` ${Y}: ${ut(z,oe,"js")}`;if(f==="bash")return` "${Y}": ${ut(z,oe,"bash")}`}return` ${ut(z,void 0,f)}`}).filter(z=>typeof z<"u").join(`,
18
+ `);if(j){if(f==="py")return`${j},
19
+ `;if(f==="js")return`{
20
+ ${j},
21
+ }`;if(f==="bash")return`{
22
+ ${j}
23
+ }`}return f==="py"?"":`
24
+ `}Bt(async()=>{K=(await ce()).named_endpoints;let f=E().map(z=>P(z,"py")),L=E().map(z=>P(z,"js")),de=E().map(z=>P(z,"bash")),j=E().map(z=>i()[z.fn_index].api_name||"");N(S,f.map((z,Q)=>({call:z,api_name:j[Q]}))),N(h,L.map((z,Q)=>({call:z,api_name:j[Q]}))),N(l,de.map((z,Q)=>({call:z,api_name:j[Q]}))),await Vt(),N(A,e(Z).innerText)});var U={get dependencies(){return i()},set dependencies(C){i(C),g()},get short_root(){return c()},set short_root(C){c(C),g()},get root(){return v()},set root(C){v(C),g()},get api_prefix(){return _()},set api_prefix(C){_(C),g()},get current_language(){return H()},set current_language(C){H(C),g()},get username(){return O()},set username(C){O(C),g()},get api_calls(){return E()},set api_calls(C){E(C),g()}};st();var T=Xa(),F=a(T);return Le(F,{border_mode:"focus",children:(C,f)=>{var L=Ge(),de=re(L);{var j=Q=>{var y=Fa(),Y=a(y),oe=a(Y);ze(oe,{get code(){return e(A)}}),t(Y);var ee=n(Y,2),I=a(ee),$=n(a(I),4),X=a($);t($);var ne=n($);{var ae=q=>{var W=xe();R(()=>V(W,`, auth=("${O()??""}", **password**)`)),o(q,W)};G(ne,q=>{O()!==null&&q(ae)})}var te=n(ne,2);lt(te,1,()=>e(S),ct,(q,W)=>{let ie=()=>e(W).call,_e=()=>e(W).api_name;we();var fe=Va(),le=n(re(fe)),ue=a(le),qe=n(ue),We=a(qe);t(qe),we(),t(le),R(()=>{V(ue,`predict(
25
+ ${ie()??""} api_name=`),V(We,`"/${_e()??""}"`)}),o(q,fe)}),t(I),t(ee),Tt(ee,q=>N(Z,q),()=>e(Z)),t(y),R(()=>V(X,`"${c()??""}"`)),o(Q,y)},z=Q=>{var y=Ge(),Y=re(y);{var oe=I=>{var $=Wa(),X=a($),ne=a(X);{let le=Ae(()=>(e(x),k(()=>e(x)?.innerText)));ze(ne,{get code(){return e(le)}})}t(X);var ae=n(X,2),te=a(ae),q=n(a(te)),W=a(q);t(q);var ie=n(q);{var _e=le=>{var ue=xe();R(()=>V(ue,`, {auth: ["${O()??""}", **password**]}`)),o(le,ue)};G(ie,le=>{O()!==null&&le(_e)})}var fe=n(ie,2);lt(fe,1,()=>e(h),ct,(le,ue)=>{let qe=()=>e(ue).call,We=()=>e(ue).api_name;we();var De=Ya(),rt=n(re(De)),mt=a(rt);t(rt);var M=n(rt);{var r=u=>{var J=xe();R(()=>V(J,`, ${qe()??""}`)),o(u,J)};G(M,u=>{qe()&&u(r)})}we(),R(()=>V(mt,`
26
+ "/${We()??""}"`)),o(le,De)}),t(te),t(ae),Tt(ae,le=>N(x,le),()=>e(x)),t($),R(()=>V(W,`"${c()??""}"`)),o(I,$)},ee=I=>{var $=Ge(),X=re($);{var ne=ae=>{var te=Qa(),q=a(te),W=a(q);{let _e=Ae(()=>(e(w),k(()=>e(w)?.innerText)));ze(W,{get code(){return e(_e)}})}t(q);var ie=n(q,2);lt(ie,5,()=>e(l),ct,(_e,fe)=>{let le=()=>e(fe).call,ue=()=>e(fe).api_name;var qe=Ja(),We=re(qe),De=a(We);t(We),we(2),R(()=>V(De,`curl -X POST ${c()??""}call/v2/${ue()??""} -s -H "Content-Type: application/json" -d '${le()??""}' \\
27
+ | awk -F'"' '{ print $4}' \\
28
+ | read EVENT_ID; curl -N ${c()??""}call/${ue()??""}/$EVENT_ID`)),o(_e,qe)}),t(ie),Tt(ie,_e=>N(w,_e),()=>e(w)),t(te),o(ae,te)};G(X,ae=>{H()==="bash"&&ae(ne)},!0)}o(I,$)};G(Y,I=>{H()==="javascript"?I(oe):I(ee,!1)},!0)}o(Q,y)};G(de,Q=>{H()==="python"?Q(j):Q(z,!1)})}o(C,L)},$$slots:{default:!0}}),t(T),o(d,T),Ce(U)}const es="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%2032%2032'%20%3e%3cpath%20d='M15.84.5a16.4,16.4,0,0,0-3.57.32C9.1,1.39,8.53,2.53,8.53,4.64V7.48H16v1H5.77a4.73,4.73,0,0,0-4.7,3.74,14.82,14.82,0,0,0,0,7.54c.57,2.28,1.86,3.82,4,3.82h2.6V20.14a4.73,4.73,0,0,1,4.63-4.63h7.38a3.72,3.72,0,0,0,3.73-3.73V4.64A4.16,4.16,0,0,0,19.65.82,20.49,20.49,0,0,0,15.84.5ZM11.78,2.77a1.39,1.39,0,0,1,1.38,1.46,1.37,1.37,0,0,1-1.38,1.38A1.42,1.42,0,0,1,10.4,4.23,1.44,1.44,0,0,1,11.78,2.77Z'%20fill='%235a9fd4'%20%3e%3c/path%3e%3cpath%20d='M16.16,31.5a16.4,16.4,0,0,0,3.57-.32c3.17-.57,3.74-1.71,3.74-3.82V24.52H16v-1H26.23a4.73,4.73,0,0,0,4.7-3.74,14.82,14.82,0,0,0,0-7.54c-.57-2.28-1.86-3.82-4-3.82h-2.6v3.41a4.73,4.73,0,0,1-4.63,4.63H12.35a3.72,3.72,0,0,0-3.73,3.73v7.14a4.16,4.16,0,0,0,3.73,3.82A20.49,20.49,0,0,0,16.16,31.5Zm4.06-2.27a1.39,1.39,0,0,1-1.38-1.46,1.37,1.37,0,0,1,1.38-1.38,1.42,1.42,0,0,1,1.38,1.38A1.44,1.44,0,0,1,20.22,29.23Z'%20fill='%23ffd43b'%20%3e%3c/path%3e%3c/svg%3e",ts="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20focusable='false'%20role='img'%20width='1em'%20height='1em'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%2032%2032'%20%3e%3crect%20width='32'%20height='32'%20fill='%23f7df1e'%3e%3c/rect%3e%3cpath%20d='M21.5,25a3.27,3.27,0,0,0,3,1.83c1.25,0,2-.63,2-1.49,0-1-.81-1.39-2.19-2L23.56,23C21.39,22.1,20,20.94,20,18.49c0-2.25,1.72-4,4.41-4a4.44,4.44,0,0,1,4.27,2.41l-2.34,1.5a2,2,0,0,0-1.93-1.29,1.31,1.31,0,0,0-1.44,1.29c0,.9.56,1.27,1.85,1.83l.75.32c2.55,1.1,4,2.21,4,4.72,0,2.71-2.12,4.19-5,4.19a5.78,5.78,0,0,1-5.48-3.07Zm-10.63.26c.48.84.91,1.55,1.94,1.55s1.61-.39,1.61-1.89V14.69h3V25c0,3.11-1.83,4.53-4.49,4.53a4.66,4.66,0,0,1-4.51-2.75Z'%20%3e%3c/path%3e%3c/svg%3e",as="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%20id='Layer_1'%20x='0px'%20y='0px'%20viewBox='0%200%20150%20150'%20style='enable-background:new%200%200%20150%20150;%20background-color:%20%2372a824;'%20xml:space='preserve'%3e%3cscript%20xmlns=''/%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23FFFFFF;}%20%3c/style%3e%3cg%3e%3cpath%20class='st0'%20d='M118.9,40.3L81.7,18.2c-2.2-1.3-4.7-2-7.2-2s-5,0.7-7.2,2L30.1,40.3c-4.4,2.6-7.2,7.5-7.2,12.8v44.2%20c0,5.3,2.7,10.1,7.2,12.8l37.2,22.1c2.2,1.3,4.7,2,7.2,2c2.5,0,5-0.7,7.2-2l37.2-22.1c4.4-2.6,7.2-7.5,7.2-12.8V53%20C126.1,47.8,123.4,42.9,118.9,40.3z%20M90.1,109.3l0.1,3.2c0,0.4-0.2,0.8-0.5,1l-1.9,1.1c-0.3,0.2-0.5,0-0.6-0.4l0-3.1%20c-1.6,0.7-3.2,0.8-4.3,0.4c-0.2-0.1-0.3-0.4-0.2-0.7l0.7-2.9c0.1-0.2,0.2-0.5,0.3-0.6c0.1-0.1,0.1-0.1,0.2-0.1%20c0.1-0.1,0.2-0.1,0.3,0c1.1,0.4,2.6,0.2,3.9-0.5c1.8-0.9,2.9-2.7,2.9-4.5c0-1.6-0.9-2.3-3-2.3c-2.7,0-5.2-0.5-5.3-4.5%20c0-3.3,1.7-6.7,4.4-8.8l0-3.2c0-0.4,0.2-0.8,0.5-1l1.8-1.2c0.3-0.2,0.5,0,0.6,0.4l0,3.2c1.3-0.5,2.5-0.7,3.6-0.4%20c0.2,0.1,0.3,0.4,0.2,0.7l-0.7,2.8c-0.1,0.2-0.2,0.4-0.3,0.6c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.2,0.1-0.3,0%20c-0.5-0.1-1.6-0.4-3.4,0.6c-1.9,1-2.6,2.6-2.5,3.8c0,1.5,0.8,1.9,3.3,1.9c3.4,0.1,4.9,1.6,5,5C94.7,103.4,92.9,107,90.1,109.3z%20M109.6,103.9c0,0.3,0,0.6-0.3,0.7l-9.4,5.7c-0.2,0.1-0.4,0-0.4-0.3v-2.4c0-0.3,0.2-0.5,0.4-0.6l9.3-5.5c0.2-0.1,0.4,0,0.4,0.3%20V103.9z%20M116.1,49.6L80.9,71.3c-4.4,2.6-7.6,5.4-7.6,10.7v43.4c0,3.2,1.3,5.2,3.2,5.8c-0.6,0.1-1.3,0.2-2,0.2%20c-2.1,0-4.1-0.6-5.9-1.6l-37.2-22.1c-3.6-2.2-5.9-6.2-5.9-10.5V53c0-4.3,2.3-8.4,5.9-10.5l37.2-22.1c1.8-1.1,3.8-1.6,5.9-1.6%20s4.1,0.6,5.9,1.6l37.2,22.1c3.1,1.8,5.1,5,5.7,8.5C122.1,48.4,119.3,47.7,116.1,49.6z'/%3e%3c/g%3e%3c/svg%3e";var ss=b('<span class="code svelte-17pn6bc"></span>'),rs=b('<hr class="hr svelte-17pn6bc"/> <div style="margin:10px;"><p><!> <span class="code highlight svelte-17pn6bc"><!></span></p> <p class="desc svelte-17pn6bc"> </p></div>',1),ns=b('<div class="load-wrap"><!></div>'),is=b('<h4 class="svelte-17pn6bc"><div class="toggle-icon svelte-17pn6bc"><div class="toggle-dot toggle-right svelte-17pn6bc"></div></div> Returns <!></h4> <div></div> <!>',1);function os(d,s){$e(s,!1);let i=m(s,"is_running",12),c=m(s,"endpoint_returns",12),v=m(s,"js_returns",12),_=m(s,"current_language",12);var H={get is_running(){return i()},set is_running(h){i(h),g()},get endpoint_returns(){return c()},set endpoint_returns(h){c(h),g()},get js_returns(){return v()},set js_returns(h){v(h),g()},get current_language(){return _()},set current_language(h){_(h),g()}};st();var O=is(),Z=re(O),A=n(a(Z),2);{var x=h=>{var l=xe();R(()=>V(l,`${_()=="python"?"tuple":_()=="bash"?"array":"list"} of ${p(c()),k(()=>c().length)??""}
29
+ elements`)),o(h,l)},w=h=>{var l=xe();R(()=>V(l,`${_()=="bash"?"an array of ":""}1 element`)),o(h,l)};G(A,h=>{p(c()),k(()=>c().length>1)?h(x):h(w,!1)})}t(Z);var E=n(Z,2);let ce;lt(E,5,c,ct,(h,l,P)=>{let U=()=>e(l).label,T=()=>e(l).python_type,F=()=>e(l).component;var C=rs(),f=n(re(C),2),L=a(f),de=a(L);{var j=I=>{var $=ss();$.textContent=`[${P}]`,o(I,$)};G(de,I=>{p(c()),k(()=>c().length>1)&&I(j)})}var z=n(de,2),Q=a(z);{var y=I=>{var $=xe();R(()=>V($,(T(),k(()=>T().type)))),o(I,$)},Y=I=>{var $=Ge(),X=re($);{var ne=te=>{var q=xe();R(()=>V(q,(T(),k(()=>T().type)))),o(te,q)},ae=te=>{var q=xe();R(()=>V(q,(p(v()),k(()=>v()[P].type)))),o(te,q)};G(X,te=>{_()==="bash"?te(ne):te(ae,!1)},!0)}o(I,$)};G(Q,I=>{_()==="python"?I(y):I(Y,!1)})}t(z),t(L);var oe=n(L,2),ee=a(oe);t(oe),t(f),R(()=>V(ee,`The output value that appears in the "${U()??""}" ${F()??""}
30
+ component.`)),o(h,C)}),t(E);var K=n(E,2);{var S=h=>{var l=ns(),P=a(l);Wt(P,{margin:!1}),t(l),o(h,l)};G(K,h=>{i()&&h(S)})}return R(()=>ce=ke(E,1,"",null,ce,{hide:i()})),o(d,O),Ce(H)}const ls="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjE0IDIyIDEyMiAxMDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmZmZmOyI+CjxyZWN0IHg9IjIyIiB5PSIyOCIgd2lkdGg9IjEwNiIgaGVpZ2h0PSI5NCIgcng9IjgiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzM3NDE1MSIgc3Ryb2tlLXdpZHRoPSI2Ii8+CjxyZWN0IHg9IjIyIiB5PSIyOCIgd2lkdGg9IjEwNiIgaGVpZ2h0PSIyMCIgcng9IjgiIGZpbGw9IiMzNzQxNTEiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgo8Y2lyY2xlIGN4PSIzOCIgY3k9IjM4IiByPSI0IiBmaWxsPSIjZmY1ZjU3Ii8+CjxjaXJjbGUgY3g9IjUyIiBjeT0iMzgiIHI9IjQiIGZpbGw9IiNmZWJjMmUiLz4KPGNpcmNsZSBjeD0iNjYiIGN5PSIzOCIgcj0iNCIgZmlsbD0iIzI4Yzg0MCIvPgo8dGV4dCB4PSIzOCIgeT0iNzYiIGZpbGw9IiMzNzQxNTEiIGZvbnQtZmFtaWx5PSJtb25vc3BhY2UiIGZvbnQtc2l6ZT0iMjIiIGZvbnQtd2VpZ2h0PSJib2xkIj4mZ3Q7XzwvdGV4dD4KPHJlY3QgeD0iMzgiIHk9Ijg4IiB3aWR0aD0iNTAiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiMzNzQxNTEiIGZpbGwtb3BhY2l0eT0iMC4zNSIvPgo8cmVjdCB4PSIzOCIgeT0iMTAwIiB3aWR0aD0iMzUiIGhlaWdodD0iNCIgcng9IjIiIGZpbGw9IiMzNzQxNTEiIGZpbGwtb3BhY2l0eT0iMC4yIi8+Cjwvc3ZnPgo=";var cs=b('<code class="svelte-1cyp2hi"><div class="copy svelte-1cyp2hi"><!></div> <div><pre class="svelte-1cyp2hi"> </pre></div></code>'),ds=b('<code class="svelte-1cyp2hi"><div class="copy svelte-1cyp2hi"><!></div> <div><pre class="svelte-1cyp2hi"> </pre></div></code>'),ps=b('<code class="svelte-1cyp2hi"><div class="copy svelte-1cyp2hi"><!></div> <div><pre class="svelte-1cyp2hi"> </pre></div></code>'),vs=b(`<div class="skill-content svelte-1cyp2hi"><p class="padded svelte-1cyp2hi">1. Make sure you are using the latest version of Gradio:</p> <!> <p class="padded svelte-1cyp2hi">2. Install the usage of this Space as a Skill for your coding agent by
31
+ running this in your terminal:</p> <!> <p class="hint svelte-1cyp2hi">Instead of <span class="inline-code svelte-1cyp2hi">--claude</span>, you can use <span class="inline-code svelte-1cyp2hi">--cursor</span>, <span class="inline-code svelte-1cyp2hi">--codex</span>, or <span class="inline-code svelte-1cyp2hi">--opencode</span>. Combine flags to install for
32
+ multiple agents. Use <span class="inline-code svelte-1cyp2hi">--global</span> to install user-level
33
+ instead of per-project.</p> <p class="padded svelte-1cyp2hi">3. This will add a skill to your coding agent that describes how to use this
34
+ Space via Python, JavaScript, and cURL API. The skill will look like this:</p> <!></div>`);function _s(d,s){$e(s,!1);const i=B(),c=B(),v=B(),_=B(),H=B(),O=B(),Z=B();let A=m(s,"space_id",12);ve(()=>p(A()),()=>{N(i,A()||"")}),ve(()=>e(i),()=>{N(c,e(i).replace("/","-"))}),ve(()=>{},()=>{N(v,"pip install --upgrade gradio")}),ve(()=>e(i),()=>{N(_,`gradio skills add ${e(i)} --claude`)}),ve(()=>e(i),()=>{N(H,`gradio skills add ${e(i)} --cursor`)}),ve(()=>e(i),()=>{N(O,`gradio skills add ${e(i)} --codex`)}),ve(()=>(e(c),e(i)),()=>{N(Z,`---
35
+ name: ${e(c)}
36
+ description: Use the ${e(i)} Gradio Space via API. Provides Python, JavaScript, and cURL usage examples.
37
+ ---
38
+
39
+ # ${e(i)}
40
+
41
+ This skill describes how to use the ${e(i)} Gradio Space programmatically.
42
+
43
+ ## API Endpoints
44
+ ...`)}),_t();var x={get space_id(){return A()},set space_id(S){A(S),g()}},w=vs(),E=n(a(w),2);Le(E,{children:(S,h)=>{var l=cs(),P=a(l),U=a(P);ze(U,{get code(){return e(v)}}),t(P);var T=n(P,2),F=a(T),C=a(F);t(F),t(T),t(l),R(()=>V(C,`$ ${e(v)??""}`)),o(S,l)},$$slots:{default:!0}});var ce=n(E,4);Le(ce,{children:(S,h)=>{var l=ds(),P=a(l),U=a(P);ze(U,{get code(){return e(_)}}),t(P);var T=n(P,2),F=a(T),C=a(F);t(F),t(T),t(l),R(()=>V(C,`$ ${e(_)??""}`)),o(S,l)},$$slots:{default:!0}});var K=n(ce,6);return Le(K,{children:(S,h)=>{var l=ps(),P=a(l),U=a(P);ze(U,{get code(){return e(Z)}}),t(P);var T=n(P,2),F=a(T),C=a(F,!0);t(F),t(T),t(l),R(()=>V(C,e(Z))),o(S,l)},$$slots:{default:!0}}),t(w),o(d,w),Ce(x)}const Ut=""+new URL("mcp-DNm9doVd.svg",import.meta.url).href,us="data:image/svg+xml,%3csvg%20width='200'%20height='200'%20viewBox='0%200%20100%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cline%20x1='50'%20y1='20'%20x2='50'%20y2='35'%20stroke='black'%20stroke-width='4'%20stroke-linecap='round'/%3e%3ccircle%20cx='50'%20cy='15'%20r='5'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3crect%20x='15'%20y='35'%20width='70'%20height='50'%20rx='8'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3crect%20x='5'%20y='48'%20width='10'%20height='24'%20rx='2'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3crect%20x='85'%20y='48'%20width='10'%20height='24'%20rx='2'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3ccircle%20cx='35'%20cy='60'%20r='4'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3ccircle%20cx='65'%20cy='60'%20r='4'%20stroke='black'%20stroke-width='4'%20fill='none'/%3e%3c/svg%3e",hs=""+new URL("hf-logo-8sK58_pS.svg",import.meta.url).href;var ms=b('<button type="button"> </button>'),gs=b(`<div class="mcp-url svelte-1uo4thf"><label for="mcp-server-url" class="svelte-1uo4thf"><span class="status-indicator active svelte-1uo4thf">●</span>MCP Server URL
45
+ (Streamable HTTP)</label> <div class="textbox svelte-1uo4thf"><input id="mcp-server-url" type="text" readonly="" class="svelte-1uo4thf"/> <!></div></div>`),fs=b('<!> <p class="svelte-1uo4thf">&nbsp;</p>',1),ys=b('<div class="tool-selection-controls svelte-1uo4thf"><button class="select-all-btn svelte-1uo4thf">Select All</button> <button class="select-none-btn svelte-1uo4thf">Select None</button></div>'),bs=b('<input type="checkbox" class="tool-checkbox svelte-1uo4thf"/>'),ws=b('<div class="tool-analytics-wrapper svelte-1uo4thf" style="margin-left: 1em;"><span class="tool-analytics svelte-1uo4thf" style="color: var(--body-text-color-subdued);"> </span></div>'),xs=b('<div class="parameter svelte-1uo4thf"><code class="svelte-1uo4thf"> </code> <span class="parameter-type svelte-1uo4thf"> </span> <p class="parameter-description svelte-1uo4thf"> </p></div>'),$s=b('<div class="tool-parameters svelte-1uo4thf"></div>'),Cs=b('<p class="svelte-1uo4thf">Takes no input parameters</p>'),Is=b('<div class="tool-content svelte-1uo4thf"><!></div>'),ks=b('<div class="tool-item svelte-1uo4thf"><div class="tool-header-wrapper svelte-1uo4thf"><!> <button class="tool-header svelte-1uo4thf"><span style="display: inline-block" class="svelte-1uo4thf"><span style="display: inline-block; padding-right: 6px; vertical-align: sub" class="svelte-1uo4thf"><!></span> <span class="tool-name svelte-1uo4thf"> </span> &nbsp; <span class="tool-description svelte-1uo4thf"> </span> <!></span> <span class="tool-arrow svelte-1uo4thf"> </span></button></div> <!></div>'),js=b('<code class="svelte-1uo4thf"><div class="copy svelte-1uo4thf"><!></div> <div class="svelte-1uo4thf"><pre class="svelte-1uo4thf"> </pre></div></code>'),Ps=b('<code class="svelte-1uo4thf"><div class="copy svelte-1uo4thf"><!></div> <div class="svelte-1uo4thf"><pre class="svelte-1uo4thf"> </pre></div></code>'),Ts=b(`<div class="file-upload-section svelte-1uo4thf"><label class="checkbox-label svelte-1uo4thf"><input type="checkbox" class="checkbox svelte-1uo4thf"/> Include Gradio file upload tool</label> <p class="file-upload-explanation svelte-1uo4thf">The <code class="svelte-1uo4thf">upload_files_to_gradio</code> tool uploads files from your
46
+ local <code class="svelte-1uo4thf">UPLOAD_DIRECTORY</code> (or any of its subdirectories) to
47
+ the Gradio app. This is needed because MCP servers require files to be
48
+ provided as URLs. You can omit this tool if you prefer to upload files
49
+ manually. This tool requires <a href="https://docs.astral.sh/uv/getting-started/installation/" target="_blank" class="svelte-1uo4thf">uv</a> to be installed.</p></div>`),Ss=b(`<div class="transport-selection svelte-1uo4thf"><div class="snippets svelte-1uo4thf"><span class="transport-label svelte-1uo4thf">Transport:</span> <!></div></div> <!> <div class="tool-selection svelte-1uo4thf"><strong class="svelte-1uo4thf"> <span style="display: inline-block; vertical-align: sub;" class="svelte-1uo4thf"><!></span>), Resources (<span style="display: inline-block; vertical-align: sub;" class="svelte-1uo4thf"><!></span>), and Prompts (<span style="display: inline-block; vertical-align: sub;" class="svelte-1uo4thf"><!></span>)</strong> <!></div> <div class="mcp-tools svelte-1uo4thf"></div> <p class="svelte-1uo4thf">&nbsp;</p> <div><strong class="svelte-1uo4thf">Streamable HTTP Transport</strong>: To add this MCP to clients that
50
+ support Streamable HTTP, simply add the following configuration to your MCP
51
+ config. <p class="svelte-1uo4thf">&nbsp;</p> <!></div> <div><strong class="svelte-1uo4thf">STDIO Transport</strong>: For clients that only support stdio (e.g.
52
+ Claude Desktop), first <a href="https://nodejs.org/en/download/" target="_blank" class="svelte-1uo4thf">install Node.js</a>. Then, you can use the following command: <p class="svelte-1uo4thf">&nbsp;</p> <!></div> <!> <p class="svelte-1uo4thf">&nbsp;</p> <p class="svelte-1uo4thf"><a target="_blank" class="svelte-1uo4thf">Read more about MCP in the Gradio docs</a></p>`,1),Ns=b(`This Gradio app can also serve as an MCP server, with an MCP tool
53
+ corresponding to each API endpoint. To enable this, launch this Gradio app
54
+ with <code class="svelte-1uo4thf">.launch(mcp_server=True)</code> or set the <code class="svelte-1uo4thf">GRADIO_MCP_SERVER</code> env variable to <code class="svelte-1uo4thf">"True"</code>.`,1);function Ms(d,s){$e(s,!1);const i=B(),c=B(),v=B();let _=m(s,"mcp_server_active",12),H=m(s,"mcp_server_url_streamable",12),O=m(s,"root",12),Z=m(s,"tools",12),A=m(s,"all_tools",28,()=>[]),x=m(s,"selected_tools",28,()=>new Set),w=m(s,"mcp_json_stdio",12),E=m(s,"file_data_present",12),ce=m(s,"mcp_docs",12),K=m(s,"analytics",12),S=m(s,"config_snippets",12),h=B("streamable_http"),l=B(!0);const P=[["streamable_http","Streamable HTTP"],["stdio","STDIO"]],U={tool:Et,resource:Ht,prompt:Zt};function T(j,z){if(!j)return null;const Q=JSON.parse(JSON.stringify(j));if(z&&E()){const y={command:"uvx",args:["--from","gradio[mcp]","gradio","upload-mcp",O(),"<UPLOAD_DIRECTORY>"]};Q.mcpServers.upload_files_to_gradio=y}else delete Q.mcpServers?.upload_files_to_gradio;return Q}ve(()=>p(H()),()=>{N(i,H())}),ve(()=>(p(w()),p(H()),e(l)),()=>{N(c,T(w()?{mcpServers:{gradio:{url:H()}}}:null,e(l)))}),ve(()=>(p(w()),e(l)),()=>{N(v,T(w(),e(l)))}),ve(()=>(e(c),e(v)),()=>{S({streamable_http:JSON.stringify(e(c),null,2),stdio:JSON.stringify(e(v),null,2)})}),_t();var F={get mcp_server_active(){return _()},set mcp_server_active(j){_(j),g()},get mcp_server_url_streamable(){return H()},set mcp_server_url_streamable(j){H(j),g()},get root(){return O()},set root(j){O(j),g()},get tools(){return Z()},set tools(j){Z(j),g()},get all_tools(){return A()},set all_tools(j){A(j),g()},get selected_tools(){return x()},set selected_tools(j){x(j),g()},get mcp_json_stdio(){return w()},set mcp_json_stdio(j){w(j),g()},get file_data_present(){return E()},set file_data_present(j){E(j),g()},get mcp_docs(){return ce()},set mcp_docs(j){ce(j),g()},get analytics(){return K()},set analytics(j){K(j),g()},get config_snippets(){return S()},set config_snippets(j){S(j),g()}};st();var C=Ge(),f=re(C);{var L=j=>{var z=Ss(),Q=re(z),y=a(Q),Y=n(a(y),2);lt(Y,1,()=>P,ct,(se,D)=>{var pe=At(()=>qt(e(D),2));let ge=()=>e(pe)[0],Se=()=>e(pe)[1];var ye=ms(),Ne=a(ye,!0);t(ye),R(()=>{ke(ye,1,`snippet ${e(h)===ge()?"current-lang":"inactive-lang"}`,"svelte-1uo4thf"),V(Ne,Se())}),Te("click",ye,()=>N(h,ge())),o(se,ye)}),t(y),t(Q);var oe=n(Q,2);{var ee=se=>{var D=fs(),pe=re(D);Le(pe,{children:(ge,Se)=>{var ye=gs(),Ne=n(a(ye),2),Ze=a(Ne);zt(Ze);var Je=n(Ze,2);ze(Je,{get code(){return e(i)}}),t(Ne),t(ye),R(()=>Kt(Ze,e(i))),o(ge,ye)},$$slots:{default:!0}}),we(2),o(se,D)};G(oe,se=>{e(h)!=="stdio"&&se(ee)})}var I=n(oe,2),$=a(I),X=a($),ne=n(X),ae=a(ne);Et(ae,{}),t(ne);var te=n(ne,2),q=a(te);Ht(q,{}),t(te);var W=n(te,2),ie=a(W);Zt(ie,{}),t(W),we(),t($);var _e=n($,2);{var fe=se=>{var D=ys(),pe=a(D),ge=n(pe,2);t(D),Te("click",pe,()=>{x(new Set(A().map(Se=>Se.name)))}),Te("click",ge,()=>{x(new Set)}),o(se,D)};G(_e,se=>{p(A()),k(()=>A().length>0)&&se(fe)})}t(I);var le=n(I,2);lt(le,5,()=>(p(A()),p(Z()),k(()=>A().length>0?A():Z())),ct,(se,D,pe)=>{const ge=Ae(()=>(p(K()),e(D),k(()=>K()[e(D).meta.endpoint_name]?.success_rate||0)));var Se=ks(),ye=a(Se),Ne=a(ye);{var Ze=be=>{var he=bs();zt(he),R(He=>{Xt(he,He),he.disabled=e(h)!=="streamable_http",Pt(he,e(h)!=="streamable_http"?"opacity: 0.5; cursor: not-allowed;":"")},[()=>(p(x()),e(D),e(h),k(()=>x().has(e(D).name)||e(h)!=="streamable_http"))]),Te("change",he,He=>{He.currentTarget.checked?x().add(e(D).name):x().delete(e(D).name),x(x())}),o(be,he)};G(Ne,be=>{p(A()),k(()=>A().length>0)&&be(Ze)})}var Je=n(Ne,2),dt=a(Je),pt=a(dt),gt=a(pt);{var $t=be=>{const he=Ae(()=>(e(D),k(()=>U[e(D).meta.mcp_type])));e(he)(be,{})};G(gt,be=>{e(D),k(()=>U[e(D).meta.mcp_type])&&be($t)})}t(pt);var nt=n(pt,2),bt=a(nt,!0);t(nt);var Re=n(nt,2),me=a(Re,!0);t(Re);var Be=n(Re,2);{var Ve=be=>{const he=Ae(()=>(p(K()),e(D),k(()=>K()[e(D).meta.endpoint_name]))),He=Ae(()=>(p(e(he)),k(()=>e(he).process_time_percentiles["50th"])));var ft=ws(),wt=a(ft),it=a(wt);t(wt),t(ft),R((Ie,Pe)=>V(it,`${p(e(he)),k(()=>e(he).total_requests)??""} requests (${Ie??""}% successful, p50: ${Pe??""})`),[()=>(p(e(ge)),k(()=>Math.round(e(ge)*100))),()=>(p(ot),p(e(He)),k(()=>ot(e(He))))]),o(be,ft)};G(Be,be=>{p(K()),e(D),k(()=>K()[e(D).meta.endpoint_name])&&be(Ve)})}t(dt);var Qe=n(dt,2),et=a(Qe,!0);t(Qe),t(Je),t(ye);var je=n(ye,2);{var Ye=be=>{var he=Is(),He=a(he);{var ft=it=>{var Ie=$s();lt(Ie,5,()=>(e(D),k(()=>Object.entries(e(D).parameters))),ct,(Pe,Xe)=>{var vt=At(()=>qt(e(Xe),2));let tt=()=>e(vt)[0],Me=()=>e(vt)[1];var Ke=xs(),at=a(Ke),yt=a(at,!0);t(at);var Oe=n(at,2),Ue=a(Oe);t(Oe);var Fe=n(Oe,2),xt=a(Fe,!0);t(Fe),t(Ke),R(Ct=>{V(yt,tt()),V(Ue,`(${Me(),k(()=>Me().type)??""}${Ct??""})`),V(xt,(Me(),k(()=>Me().description?Me().description:"⚠︎ No description for this parameter in function docstring")))},[()=>(Me(),k(()=>Me().default!==void 0?`, default: ${JSON.stringify(Me().default)}`:""))]),o(Pe,Ke)}),t(Ie),o(it,Ie)},wt=it=>{var Ie=Cs();o(it,Ie)};G(He,it=>{e(D),k(()=>Object.keys(e(D).parameters).length>0)?it(ft):it(wt,!1)})}t(he),o(be,he)};G(je,be=>{e(D),k(()=>e(D).expanded)&&be(Ye)})}t(Se),R(()=>{V(bt,(e(D),k(()=>e(D).name))),V(me,(e(D),k(()=>e(D).description?e(D).description:"⚠︎ No description provided in function docstring"))),V(et,(e(D),k(()=>e(D).expanded?"▼":"▶")))}),Te("click",Je,()=>(e(D).expanded=!e(D).expanded,ea(()=>(A(),Z())))),o(se,Se)}),t(le);var ue=n(le,4);let qe;var We=n(a(ue),4);Le(We,{children:(se,D)=>{var pe=js(),ge=a(pe),Se=a(ge);ze(Se,{get code(){return p(S()),k(()=>S().streamable_http)}}),t(ge);var ye=n(ge,2),Ne=a(ye),Ze=a(Ne,!0);t(Ne),t(ye),t(pe),R(()=>V(Ze,(p(S()),k(()=>S().streamable_http)))),o(se,pe)},$$slots:{default:!0}}),t(ue);var De=n(ue,2);let rt;var mt=n(a(De),6);Le(mt,{children:(se,D)=>{var pe=Ps(),ge=a(pe),Se=a(ge);ze(Se,{get code(){return p(S()),k(()=>S().stdio)}}),t(ge);var ye=n(ge,2),Ne=a(ye),Ze=a(Ne,!0);t(Ne),t(ye),t(pe),R(()=>V(Ze,(p(S()),k(()=>S().stdio)))),o(se,pe)},$$slots:{default:!0}}),t(De);var M=n(De,2);{var r=se=>{var D=Ts(),pe=a(D),ge=a(pe);zt(ge),we(),t(pe),we(2),t(D),sa(ge,()=>e(l),Se=>N(l,Se)),o(se,D)};G(M,se=>{E()&&se(r)})}var u=n(M,4),J=a(u);t(u),R(()=>{V(X,`${p(A()),p(Z()),k(()=>A().length>0?A().length:Z().length)??""} Available MCP Tools
55
+ (`),qe=ke(ue,1,"svelte-1uo4thf",null,qe,{hidden:e(h)!=="streamable_http"}),rt=ke(De,1,"svelte-1uo4thf",null,rt,{hidden:e(h)!=="stdio"}),Ee(J,"href",ce())}),o(j,z)},de=j=>{var z=Ns();we(6),o(j,z)};G(f,j=>{_()?j(L):j(de,!1)})}return o(d,C),Ce(F)}var zs=ht('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg>');function As(d,s){$e(s,!1);let i=m(s,"classNames",12,"");var c={get classNames(){return i()},set classNames(_){i(_),g()}},v=zs();return R(()=>ke(v,0,St(i()||"menu-icon-arrow"),"svelte-1s9m4x9")),o(d,v),Ce(c)}var qs=ht('<svg width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg>');function Ds(d,s){$e(s,!1);let i=m(s,"classNames",12,"");var c={get classNames(){return i()},set classNames(_){i(_),g()}},v=qs();return R(()=>ke(v,0,St(i()),"svelte-1u0oj9c")),o(d,v),Ce(c)}var Rs=ht('<svg width="1em" height="1em" viewBox="5 5 22 22" fill="none" xmlns="http://www.w3.org/2000/svg"><title>HuggingChat</title><path d="M16.0006 25.9992C13.8266 25.999 11.7118 25.2901 9.97686 23.9799C8.2419 22.6698 6.98127 20.8298 6.38599 18.7388C5.79071 16.6478 5.89323 14.4198 6.678 12.3923C7.46278 10.3648 8.88705 8.64837 10.735 7.50308C12.5829 6.35779 14.7538 5.84606 16.9187 6.04544C19.0837 6.24481 21.1246 7.14442 22.7323 8.60795C24.34 10.0715 25.4268 12.0192 25.8281 14.1559C26.2293 16.2926 25.9232 18.5019 24.9561 20.449C24.7703 20.8042 24.7223 21.2155 24.8211 21.604L25.4211 23.8316C25.4803 24.0518 25.4805 24.2837 25.4216 24.5039C25.3627 24.7242 25.2468 24.925 25.0856 25.0862C24.9244 25.2474 24.7235 25.3633 24.5033 25.4222C24.283 25.4811 24.0512 25.4809 23.831 25.4217L21.6034 24.8217C21.2172 24.7248 20.809 24.7729 20.4558 24.9567C19.0683 25.6467 17.5457 26.0068 16.0006 26.0068V25.9992Z" fill="black" class="block dark:hidden svelte-pw1cre"></path><path d="M9.62598 16.0013C9.62598 15.3799 10.1294 14.8765 10.7508 14.8765C11.3721 14.8765 11.8756 15.3799 11.8756 16.0013C11.8756 17.0953 12.3102 18.1448 13.0838 18.9184C13.8574 19.692 14.9069 20.1266 16.001 20.1267C17.095 20.1267 18.1445 19.692 18.9181 18.9184C19.6918 18.1448 20.1264 17.0953 20.1264 16.0013C20.1264 15.3799 20.6299 14.8765 21.2512 14.8765C21.8725 14.8765 22.3759 15.3799 22.3759 16.0013C22.3759 17.6921 21.7046 19.3137 20.509 20.5093C19.3134 21.7049 17.6918 22.3762 16.001 22.3762C14.3102 22.3762 12.6885 21.7049 11.4929 20.5093C10.2974 19.3137 9.62598 17.6921 9.62598 16.0013Z" fill="white" class="block dark:hidden svelte-pw1cre"></path><path d="M16.0006 25.9992C13.8266 25.999 11.7118 25.2901 9.97686 23.9799C8.2419 22.6698 6.98127 20.8298 6.38599 18.7388C5.79071 16.6478 5.89323 14.4198 6.678 12.3923C7.46278 10.3648 8.88705 8.64837 10.735 7.50308C12.5829 6.35779 14.7538 5.84606 16.9187 6.04544C19.0837 6.24481 21.1246 7.14442 22.7323 8.60795C24.34 10.0715 25.4268 12.0192 25.8281 14.1559C26.2293 16.2926 25.9232 18.5019 24.9561 20.449C24.7703 20.8042 24.7223 21.2155 24.8211 21.604L25.4211 23.8316C25.4803 24.0518 25.4805 24.2837 25.4216 24.5039C25.3627 24.7242 25.2468 24.925 25.0856 25.0862C24.9244 25.2474 24.7235 25.3633 24.5033 25.4222C24.283 25.4811 24.0512 25.4809 23.831 25.4217L21.6034 24.8217C21.2172 24.7248 20.809 24.7729 20.4558 24.9567C19.0683 25.6467 17.5457 26.0068 16.0006 26.0068V25.9992Z" fill="white" class="hidden dark:block svelte-pw1cre"></path><path d="M9.62598 16.0013C9.62598 15.3799 10.1294 14.8765 10.7508 14.8765C11.3721 14.8765 11.8756 15.3799 11.8756 16.0013C11.8756 17.0953 12.3102 18.1448 13.0838 18.9184C13.8574 19.692 14.9069 20.1266 16.001 20.1267C17.095 20.1267 18.1445 19.692 18.9181 18.9184C19.6918 18.1448 20.1264 17.0953 20.1264 16.0013C20.1264 15.3799 20.6299 14.8765 21.2512 14.8765C21.8725 14.8765 22.3759 15.3799 22.3759 16.0013C22.3759 17.6921 21.7046 19.3137 20.509 20.5093C19.3134 21.7049 17.6918 22.3762 16.001 22.3762C14.3102 22.3762 12.6885 21.7049 11.4929 20.5093C10.2974 19.3137 9.62598 17.6921 9.62598 16.0013Z" fill="black" class="hidden dark:block svelte-pw1cre"></path></svg>');function Os(d,s){$e(s,!1);let i=m(s,"classNames",12,"");var c={get classNames(){return i()},set classNames(_){i(_),g()}},v=Rs();return R(()=>ke(v,0,St(i()||"icon-size"),"svelte-pw1cre")),o(d,v),Ce(c)}var Ls=b('<div class="backdrop-overlay svelte-de9ybk" aria-hidden="true" style="background: transparent;"></div> <div role="menu" class="menu-dropdown svelte-de9ybk" aria-label="Copy menu"><button role="menuitem" class="base-menu-item svelte-de9ybk"><div class="menu-icon-container svelte-de9ybk"><!></div> <div class="menu-text-container svelte-de9ybk"><div class="menu-text-primary svelte-de9ybk">Copy Page</div> <div class="menu-text-secondary svelte-de9ybk"> </div></div></button> <button role="menuitem" class="base-menu-item svelte-de9ybk"><div class="menu-icon-container svelte-de9ybk"><!></div> <div class="menu-text-container svelte-de9ybk"><div class="menu-text-primary svelte-de9ybk">Open in HuggingChat <!></div> <div class="menu-text-secondary svelte-de9ybk"> </div></div></button></div>',1),Gs=b('<div class="container-wrapper svelte-de9ybk"><div class="trigger-wrapper svelte-de9ybk"><button class="copy-button svelte-de9ybk" aria-live="polite"><span class="icon-wrapper svelte-de9ybk"><!></span> <span> </span></button> <button class="menu-toggle-button svelte-de9ybk" aria-haspopup="menu"><!></button></div> <!></div>');function Es(d,s){$e(s,!1);let i=m(s,"current_language",12),c=m(s,"space_id",12),v=m(s,"root",12),_=m(s,"api_count",12),H=m(s,"tools",12),O=m(s,"py_docs",12),Z=m(s,"js_docs",12),A=m(s,"bash_docs",12),x=m(s,"mcp_docs",12),w=m(s,"spaces_docs_suffix",12),E=m(s,"mcp_server_active",12),ce=m(s,"mcp_server_url_streamable",12),K=m(s,"config_snippets",12),S=m(s,"markdown_code_snippets",12),h=m(s,"dependencies",12),l=m(s,"info",12),P=m(s,"js_info",12),U=B({python:"",javascript:"",bash:"",mcp:""}),T=B(i()==="python"?"Python":i()==="javascript"?"JavaScript":i()==="bash"?"Bash":i()==="cli"?"CLI":"MCP"),F=B(`Copy ${e(T)} Docs as Markdown for LLMs`),C=B(!1),f=B(!1),L=B(null),de=B(null),j=B("");const z=typeof window<"u";function Q(){N(f,!0),z&&e(L)&&Vt().then(()=>{if(!e(L))return;const r=e(L).getBoundingClientRect(),u=6,J=Math.max(r.width+80,220),se=Math.max(window.innerWidth-r.right,u);N(j,`top:${r.bottom+u}px;right:${se}px;min-width:${J}px;`)})}function y(){N(f,!1)}function Y(){e(f)?y():Q()}function oe(){return`https://huggingface.co/chat/?prompt=${encodeURIComponent(`--------------------------------
56
+ ${e(U)[i()]}
57
+ --------------------------------
58
+
59
+ Read the documentation above so I can ask questions about it.`)}`}function ee(){z&&window.open(oe(),"_blank","noopener,noreferrer"),y()}function I(r){if(!e(f)||!z)return;const u=r.target;e(de)?.contains(u)||e(L)?.contains(u)||y()}function $(r){r.key==="Escape"&&e(f)&&y()}function X(){e(f)&&y()}function ne(){e(f)&&y()}async function ae(r){try{if(!e(U)[r]){console.warn("Nothing to copy");return}if(typeof navigator<"u"&&!!navigator.clipboard&&typeof navigator.clipboard.writeText=="function")await navigator.clipboard.writeText(e(U)[r]);else{console.warn("Clipboard API unavailable");return}N(C,!0),setTimeout(()=>{N(C,!1)},1500)}catch(u){console.error("Failed to write to clipboard",u)}}ve(()=>(p(c()),p(v()),p(_()),p(O()),p(w()),p(h()),p(l()),p(S()),p(P())),()=>{jt(U,e(U).python=`
60
+ # Python API documentation for ${c()||v()}
61
+ API Endpoints: ${_()}
62
+
63
+ 1. Install the Python client [docs](${O()}) if you don't already have it installed.
64
+
65
+ \`\`\`bash
66
+ pip install gradio_client
67
+ \`\`\`
68
+
69
+ 2. Find the API endpoint below corresponding to your desired function in the app. Copy the code snippet, replacing the placeholder values with your own input data. ${c()?"If this is a private Space, you may need to pass your Hugging Face token as well. [Read more]("+O()+w()+").":""}
70
+
71
+ ${h().filter(r=>r.api_visibility==="public"&&l().named_endpoints["/"+r.api_name]).map(r=>`### API Name: /${r.api_name}
72
+ ${l()?.named_endpoints["/"+r.api_name]?.description?"Description: "+l()?.named_endpoints["/"+r.api_name]?.description:""}
73
+
74
+ \`\`\`python
75
+ ${S()[r.api_name]?.python}
76
+ \`\`\`
77
+
78
+ Accepts ${l()?.named_endpoints["/"+r.api_name]?.parameters?.length} parameter${l()?.named_endpoints["/"+r.api_name]?.parameters?.length!=1?"s":""}:
79
+
80
+ ${l()?.named_endpoints["/"+r.api_name]?.parameters?.map(u=>{const se=!u.parameter_has_default?"Required":`Default: ${ut(u.parameter_default,u.python_type.type,"py")}`,D=`${u.python_type.type}${u.parameter_has_default&&u.parameter_default===null?" | None":""}`;return`${u.parameter_name||`[${P().named_endpoints["/"+r.api_name]?.parameters.findIndex(pe=>pe.parameter_name===pe.parameter_name)}]`}:
81
+ - Type: ${D}
82
+ - ${se}
83
+ - The input value that is provided in the ${u.label} ${u.component} component. ${u.python_type.description}`}).join(`
84
+
85
+ `)}
86
+
87
+ Returns ${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`tuple of ${l()?.named_endpoints["/"+r.api_name]?.returns?.length} elements`:"1 element"}:
88
+
89
+ ${l()?.named_endpoints["/"+r.api_name]?.returns?.map((u,J)=>{const se=u.python_type.type;return`${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`[${J}]: `:""}- Type: ${se}
90
+ - The output value that appears in the "${u.label}" ${u.component} component.`}).join(`
91
+
92
+ `)}
93
+ `).join(`
94
+
95
+
96
+ `)}
97
+ `)}),ve(()=>(p(c()),p(v()),p(_()),p(Z()),p(w()),p(h()),p(l()),p(S()),p(P())),()=>{jt(U,e(U).javascript=`
98
+ # JavaScript API documentation for ${c()||v()}
99
+ API Endpoints: ${_()}
100
+
101
+ 1. Install the JavaScript client [docs](${Z()}) if you don't already have it installed.
102
+
103
+ \`\`\`bash
104
+ npm i -D @gradio/client
105
+ \`\`\`
106
+
107
+ 2. Find the API endpoint below corresponding to your desired function in the app. Copy the code snippet, replacing the placeholder values with your own input data. ${c()?"If this is a private Space, you may need to pass your Hugging Face token as well. [Read more]("+Z()+w()+").":""}
108
+
109
+ ${h().filter(r=>r.api_visibility==="public"&&l().named_endpoints["/"+r.api_name]).map(r=>`### API Name: /${r.api_name}
110
+ ${l()?.named_endpoints["/"+r.api_name]?.description?"Description: "+l()?.named_endpoints["/"+r.api_name]?.description:""}
111
+
112
+ \`\`\`javascript
113
+ ${S()[r.api_name]?.javascript}
114
+ \`\`\`
115
+
116
+ Accepts ${l()?.named_endpoints["/"+r.api_name]?.parameters?.length} parameter${l()?.named_endpoints["/"+r.api_name]?.parameters?.length!=1?"s":""}:
117
+
118
+ ${l()?.named_endpoints["/"+r.api_name]?.parameters?.map(u=>{const se=!u.parameter_has_default?"Required":`Default: ${ut(u.parameter_default,u.python_type.type,"py")}`,D=`${P().named_endpoints["/"+r.api_name]?.parameters.find(pe=>pe.parameter_name===u.parameter_name)?.type||"any"}`;return`${u.parameter_name||`[${P().named_endpoints["/"+r.api_name]?.parameters.findIndex(pe=>pe.parameter_name===u.parameter_name)}]`}:
119
+ - Type: ${D}
120
+ - ${se}
121
+ - The input value that is provided in the ${u.label} ${u.component} component. ${u.python_type.description}`}).join(`
122
+
123
+ `)}
124
+
125
+ Returns ${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`list of ${l()?.named_endpoints["/"+r.api_name]?.returns?.length} elements`:"1 element"}:
126
+
127
+ ${l()?.named_endpoints["/"+r.api_name]?.returns?.map((u,J)=>{const se=P().named_endpoints["/"+r.api_name]?.returns[J]?.type;return`${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`[${J}]: `:""}- Type: ${se}
128
+ - The output value that appears in the "${u.label}" ${u.component} component.`}).join(`
129
+
130
+ `)}`).join(`
131
+
132
+
133
+ `)}
134
+ `)}),ve(()=>(p(c()),p(v()),p(_()),p(A()),p(h()),p(l()),p(S())),()=>{jt(U,e(U).bash=`
135
+ # Bash API documentation for ${c()||v()}
136
+ API Endpoints: ${_()}
137
+
138
+ 1. Confirm that you have cURL installed on your system.
139
+
140
+ \`\`\`bash
141
+ curl --version
142
+ \`\`\`
143
+
144
+ 2. Find the API endpoint below corresponding to your desired function in the app. Copy the code snippet, replacing the placeholder values with your own input data.
145
+
146
+ Making a prediction and getting a result requires 2 requests: a POST and a GET request. The POST request returns an EVENT_ID, which is used in the second GET request to fetch the results. In these snippets, we've used awk and read to parse the results, combining these two requests into one command for ease of use.
147
+
148
+ If your endpoint accepts files, you must first upload them via a POST to \`/upload\`, then reference the returned path with the meta key: \`{"path": "...", "meta": {"_type": "gradio.FileData"}}\`. See [curl docs](${A()}).
149
+
150
+ ${h().filter(r=>r.api_visibility==="public"&&l().named_endpoints["/"+r.api_name]).map(r=>`### API Name: /${r.api_name}
151
+ ${l()?.named_endpoints["/"+r.api_name]?.description?"Description: "+l()?.named_endpoints["/"+r.api_name]?.description:""}
152
+
153
+ \`\`\`bash
154
+ ${S()[r.api_name]?.bash}
155
+ \`\`\`
156
+
157
+ Accepts a JSON object with ${l()?.named_endpoints["/"+r.api_name]?.parameters?.length} key${l()?.named_endpoints["/"+r.api_name]?.parameters?.length!=1?"s":""}:
158
+
159
+ ${l()?.named_endpoints["/"+r.api_name]?.parameters?.map(u=>{const J="Required",se=`${u.python_type.type}`;return`${u.parameter_name}:
160
+ - Type: ${se}
161
+ - ${J}
162
+ - The input value that is provided in the ${u.label} ${u.component} component. ${u.python_type.description}`}).join(`
163
+
164
+ `)}
165
+
166
+ Returns ${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`an array of ${l()?.named_endpoints["/"+r.api_name]?.returns?.length} elements`:"an array of 1 element"}:
167
+
168
+ ${l()?.named_endpoints["/"+r.api_name]?.returns?.map((u,J)=>{const se=u.python_type.type;return`${l()?.named_endpoints["/"+r.api_name]?.returns?.length>1?`[${J}]: `:""}- Type: ${se}
169
+ - The output value that appears in the "${u.label}" ${u.component} component.`}).join(`
170
+
171
+ `)}
172
+ `).join(`
173
+
174
+
175
+ `)}
176
+ `)}),ve(()=>(p(c()),p(v()),p(H()),p(E()),p(ce()),p(K()),p(x())),()=>{jt(U,e(U).mcp=`
177
+ # MCP documentation for ${c()||v()}
178
+ MCP Tools: ${H().length}
179
+
180
+ ${E()?`
181
+
182
+ This page documents two transports: Streamable HTTP and STDIO.
183
+
184
+ ### Streamable HTTP
185
+
186
+ MCP Server URL (Streamable HTTP): ${ce()}
187
+
188
+ ${H().length} available MCP tools, resources, and prompts:
189
+
190
+ ${H().map(r=>`### ${r.name}
191
+ Type: ${r.meta.mcp_type}
192
+ Description: ${r.description?r.description:"No description provided in function docstring"}
193
+ Parameters: ${Object.keys(r.parameters).length}
194
+ ${Object.keys(r.parameters).map(u=>`- ${u} (${r.parameters[u].type}): ${r.parameters[u].description?r.parameters[u].description:"No description provided in function docstring"}`).join(`
195
+ `)}
196
+ `).join(`
197
+
198
+ `)}
199
+
200
+ Streamable HTTP Transport: To add this MCP to clients that support Streamable HTTP, simply add the following configuration to your MCP config.
201
+
202
+ \`\`\`json
203
+ ${K().streamable_http}
204
+ \`\`\`
205
+
206
+ The \`upload_files_to_gradio\` tool uploads files from your local \`UPLOAD_DIRECTORY\` (or any of its subdirectories) to the Gradio app.
207
+ This is needed because MCP servers require files to be provided as URLs. You can omit this tool if you prefer to upload files manually. This tool requires [uv](https://docs.astral.sh/uv/getting-started/installation/) to be installed.
208
+
209
+ ### STDIO Transport
210
+
211
+
212
+ ${H().length} available MCP tools, resources, and prompts:
213
+
214
+ ${H().map(r=>`### ${r.name}
215
+ Type: ${r.meta.mcp_type}
216
+ Description: ${r.description?r.description:"No description provided in function docstring"}
217
+ Parameters: ${Object.keys(r.parameters).length}
218
+ ${Object.keys(r.parameters).map(u=>`- ${u} (${r.parameters[u].type}): ${r.parameters[u].description?r.parameters[u].description:"No description provided in function docstring"}`).join(`
219
+ `)}
220
+ `).join(`
221
+
222
+ `)}
223
+
224
+ STDIO Transport: For clients that only support stdio (e.g. Claude Desktop), first [install Node.js](https://nodejs.org/en/download/). Then, you can use the following command:
225
+
226
+ \`\`\`json
227
+ ${K().stdio}
228
+ \`\`\`
229
+
230
+ The \`upload_files_to_gradio\` tool uploads files from your local \`UPLOAD_DIRECTORY\` (or any of its subdirectories) to the Gradio app.
231
+ This is needed because MCP servers require files to be provided as URLs. You can omit this tool if you prefer to upload files manually. This tool requires [uv](https://docs.astral.sh/uv/getting-started/installation/) to be installed.
232
+
233
+ Read more about the MCP in the [Gradio docs](${x()}).
234
+ `:'This Gradio app can also serve as an MCP server, with an MCP tool corresponding to each API endpoint. \nTo enable this, launch this Gradio app with `.launch(mcp_server=True)` or set the `.launch(mcp_server=True)`or set the `GRADIO_MCP_SERVER` env variable to `"True"`.'}
235
+
236
+ `)}),ve(()=>p(i()),()=>{i()}),ve(()=>p(i()),()=>{N(T,i()==="python"?"Python":i()==="javascript"?"JavaScript":i()==="bash"?"Bash":i()==="cli"?"CLI":"MCP")}),ve(()=>e(T),()=>{N(F,`Copy ${e(T)} Docs as Markdown for LLMs`)}),ve(()=>e(C),()=>{e(C)}),_t();var te={get current_language(){return i()},set current_language(r){i(r),g()},get space_id(){return c()},set space_id(r){c(r),g()},get root(){return v()},set root(r){v(r),g()},get api_count(){return _()},set api_count(r){_(r),g()},get tools(){return H()},set tools(r){H(r),g()},get py_docs(){return O()},set py_docs(r){O(r),g()},get js_docs(){return Z()},set js_docs(r){Z(r),g()},get bash_docs(){return A()},set bash_docs(r){A(r),g()},get mcp_docs(){return x()},set mcp_docs(r){x(r),g()},get spaces_docs_suffix(){return w()},set spaces_docs_suffix(r){w(r),g()},get mcp_server_active(){return E()},set mcp_server_active(r){E(r),g()},get mcp_server_url_streamable(){return ce()},set mcp_server_url_streamable(r){ce(r),g()},get config_snippets(){return K()},set config_snippets(r){K(r),g()},get markdown_code_snippets(){return S()},set markdown_code_snippets(r){S(r),g()},get dependencies(){return h()},set dependencies(r){h(r),g()},get info(){return l()},set info(r){l(r),g()},get js_info(){return P()},set js_info(r){P(r),g()}};st();var q=Gs();Te("mousedown",Nt,I),Te("keydown",Nt,$),Te("resize",Nt,X),Te("scroll",Nt,ne);var W=a(q),ie=a(W),_e=a(ie),fe=a(_e);{var le=r=>{Jt(r,{})},ue=r=>{Ot(r,{})};G(fe,r=>{e(C)?r(le):r(ue,!1)})}t(_e);var qe=n(_e,2),We=a(qe,!0);t(qe),t(ie);var De=n(ie,2),rt=a(De);{let r=Ae(()=>`caret-icon ${e(f)?"rotate-180":"rotate-0"}`);Ds(rt,{get classNames(){return e(r)}})}t(De),t(W),Tt(W,r=>N(L,r),()=>e(L));var mt=n(W,2);{var M=r=>{var u=Ls(),J=re(u),se=n(J,2),D=a(se),pe=a(D),ge=a(pe);Ot(ge,{classNames:"menu-icon"}),t(pe);var Se=n(pe,2),ye=n(a(Se),2),Ne=a(ye,!0);t(ye),t(Se),t(D);var Ze=n(D,2),Je=a(Ze),dt=a(Je);Os(dt,{classNames:"menu-icon"}),t(Je);var pt=n(Je,2),gt=a(pt),$t=n(a(gt));As($t,{classNames:"menu-icon-arrow"}),t(gt);var nt=n(gt,2),bt=a(nt);t(nt),t(pt),t(Ze),t(se),Tt(se,Re=>N(de,Re),()=>e(de)),R(()=>{Pt(se,e(j)),V(Ne,e(F)),V(bt,`Ask Questions About The ${e(T)??""} Docs`)}),Te("click",J,y),Te("click",D,()=>{ae(i()),y()}),Te("click",Ze,()=>{ee(),y()}),o(r,u)};G(mt,r=>{e(f)&&r(M)})}return t(q),R(()=>{V(We,e(C)?`Copied ${e(T)} Docs!`:"Copy Page"),Ee(De,"aria-expanded",e(f)),Ee(De,"aria-label",e(f)?"Close copy menu":"Open copy menu")}),Te("click",ie,()=>ae(i())),Te("click",De,Y),o(d,q),Ce(te)}var Zs=b('<li><img alt=""/> </li>'),Hs=b(`<div><p id="num-recorded-api-calls" style="font-size: var(--text-lg); font-weight:bold; margin: 10px 0px;">🪄 Recorded API Calls <span class="api-count svelte-1ujc8oz"> </span></p> <p> </p> <!> <p>Note: Some API calls only affect the UI, so when using the
237
+ clients, the desired result may be achieved with only a subset of
238
+ the recorded calls.</p></div> <p style="font-size: var(--text-lg); font-weight:bold; margin: 30px 0px 10px;">API Documentation</p>`,1),Us=b(`1. Install the <span style="text-transform:capitalize"> </span> client (<a target="_blank" class="svelte-1ujc8oz">docs</a>) if you don't already have it installed.`,1),Bs=b('<p class="padded svelte-1ujc8oz"><!></p>'),Vs=b('<div class="cli-flavor-selector svelte-1ujc8oz"><li><img alt="Gradio" class="svelte-1ujc8oz"/> Gradio CLI</li> <li><img alt="HF" class="svelte-1ujc8oz"/> HF CLI</li></div>'),Fs=b(`If this is a private Space, you may need to pass
239
+ your Hugging Face token as well (<a class="underline svelte-1ujc8oz" target="_blank">read more</a>).`,1),Ys=b('<div class="loading-dot svelte-1ujc8oz"></div> <p class="self-baseline svelte-1ujc8oz">API Recorder</p>',1),Ws=b(`<br/>&nbsp;<br/>Making a
240
+ prediction and getting a result requires <strong>2 requests</strong>: a <code class="svelte-1ujc8oz">POST</code> and a <code class="svelte-1ujc8oz">GET</code> request. The <code class="svelte-1ujc8oz">POST</code> request
241
+ returns an <code class="svelte-1ujc8oz">EVENT_ID</code>, which is used in the second <code class="svelte-1ujc8oz">GET</code> request to fetch the results. In these
242
+ snippets, we've used <code class="svelte-1ujc8oz">awk</code> and <code class="svelte-1ujc8oz">read</code> to
243
+ parse the results, combining these two requests into one command
244
+ for ease of use. <br/>&nbsp;<br/> If your endpoint accepts files, you must first upload them via a <code class="svelte-1ujc8oz">POST</code> to <code class="svelte-1ujc8oz">/upload</code>, then reference the
245
+ returned path with the <code class="svelte-1ujc8oz">meta</code> key: <code class="svelte-1ujc8oz"></code>. <!> See <a target="_blank" class="svelte-1ujc8oz">curl docs</a>.`,1),Js=b(`<!> <p class="padded svelte-1ujc8oz">2. Find the API endpoint below corresponding to your desired
246
+ function in the app. Copy the code snippet, replacing the
247
+ placeholder values with your own input data. <!> Or use the <!> to automatically generate your API requests. <!></p>`,1),Qs=b("<!> <!> <div><!></div> <div><!></div> <!>",1),Xs=b('<div class="endpoint-container svelte-1ujc8oz"><!> <!> <!></div>'),Ks=b('<div class="banner-wrap svelte-1ujc8oz"><!></div> <div class="docs-wrap svelte-1ujc8oz"><div class="client-doc svelte-1ujc8oz" style="display: flex; align-items: center; justify-content: space-between;"><p style="font-size: var(--text-lg);">Choose one of the following ways to interact with the API.</p> <!></div> <div class="endpoint svelte-1ujc8oz"><div class="snippets svelte-1ujc8oz"></div> <!> <div></div></div></div>',1);function Cr(d,s){$e(s,!1);const i=B(),c=B(),v=B(),_=B(),H=B(),O=B(),Z=B();let A=m(s,"dependencies",12),x=m(s,"root",12),w=m(s,"app",12),E=m(s,"space_id",12),ce=m(s,"root_node",12),K=m(s,"username",12),S=m(s,"last_api_call",12,null);const h="https://www.gradio.app/guides/getting-started-with-the-js-client",l="https://www.gradio.app/guides/getting-started-with-the-python-client",P="https://www.gradio.app/guides/querying-gradio-apps-with-curl",U="#connecting-to-a-hugging-face-space",T="https://www.gradio.app/guides/building-mcp-server-with-gradio";let F=A().filter(M=>M.api_visibility==="public").length;x()===""&&x(location.protocol+"//"+location.host+location.pathname),x().endsWith("/")||x(x()+"/");let C=m(s,"api_calls",28,()=>[]),f=B("python"),L=B("gradio");function de(M,r){const u=new URL(window.location.href);u.searchParams.set(M,r),history.replaceState(null,"",u.toString())}function j(M){return new URL(window.location.href).searchParams.get(M)}function z(M){return["python","javascript","bash","skill","mcp","cli"].includes(M??"")}let Q=!1,y=B(!1);async function Y(){return await(await fetch(x().replace(/\/$/,"")+w().api_prefix+"/info")).json()}async function oe(){return await w().view_api()}let ee=B(),I=B(),$=B();Y().then(M=>{N(ee,M)}),oe().then(M=>{N(I,M)});async function X(){return await(await fetch(x().replace(/\/$/,"")+"/monitoring/summary")).json()}X().then(M=>{N($,M.functions)});const ne=Lt();let ae=B([]),te=[],q=B(),W=B(!1),ie=B(new Set),_e=E()?E().split("/").pop()+"_":"";function fe(M){return _e&&M.startsWith(_e)?M.slice(_e.length):M}const le={command:"uvx",args:["--from","gradio[mcp]","gradio","upload-mcp",x(),"<UPLOAD_DIRECTORY>"]};async function ue(){try{let M=`${x()}gradio_api/mcp/schema`;const u=await(await fetch(M)).json();N(W,u.map(J=>J.meta?.file_data_present).some(J=>J)),N(ae,u.map(J=>({name:J.name,description:J.description||"",parameters:J.inputSchema?.properties||{},meta:J.meta,expanded:!1,endpoint_name:J.endpoint_name}))),N(ie,new Set(e(ae).map(J=>J.name))),te=u.map(J=>J.meta?.headers||[]).flat(),te.length>0?N(q,{mcpServers:{gradio:{command:"npx",args:["mcp-remote",e(O),"--transport","streamable-http",...te.map(J=>["--header",`${J}: <YOUR_HEADER_VALUE>`]).flat()]}}}):(N(q,{mcpServers:{gradio:{command:"npx",args:["mcp-remote",e(O),"--transport","streamable-http"]}}}),e(W)&&jt(q,e(q).mcpServers.upload_files_to_gradio=le))}catch(M){console.error("Failed to fetch MCP tools:",M),N(ae,[])}}let qe=B({});Bt(()=>{const M=new AbortController,r=M.signal;document.body.style.overflow="hidden","parentIFrame"in window&&window.parentIFrame?.scrollTo(0,0);const u=j("lang");z(u)&&N(f,u);const J=`${x()}gradio_api/mcp/schema`;return fetch(J,{signal:r}).then(se=>{N(y,se.ok),e(y)?(ue(),z(u)||N(f,"mcp")):z(u)||N(f,"python"),M.abort()}).catch(()=>{N(y,!1)}),()=>{document.body.style.overflow="auto"}}),ve(()=>e(L),()=>{N(i,e(L)==="hf"?"hf gradio":"gradio")}),ve(()=>(p(A()),e(ee),p(S())),()=>{N(c,(()=>{const M=A().filter(r=>r.api_visibility==="public"&&e(ee)?.named_endpoints?.["/"+r.api_name]);if(e(ee)&&S()){const r=M.find(J=>J.id===S().fn_index),u=M.filter(J=>J.id!==S().fn_index);return r?[r,...u]:M}return M})())}),ve(()=>(p(E()),Ut),()=>{N(v,[["python","Python",es],["javascript","JavaScript",ts],["cli","CLI",us],["bash","cURL",as],...E()?[["skill","Skill",ls]]:[],["mcp","MCP",Ut]])}),ve(()=>e(ie),()=>{N(_,Array.from(e(ie)))}),ve(()=>e(_),()=>{N(H,e(_).map(fe))}),ve(()=>(e(_),e(ae),p(x()),e(H)),()=>{N(O,e(_).length>0&&e(_).length<e(ae).length?`${x()}gradio_api/mcp/?tools=${e(H).join(",")}`:`${x()}gradio_api/mcp/`)}),ve(()=>(e(ee),p(A()),e(i)),()=>{N(Z,(()=>{const M={};if(!e(ee)?.named_endpoints)return M;for(const r of A()){const u=e(ee).named_endpoints["/"+r.api_name];if(!u?.code_snippets)continue;const J=u.code_snippets;M[r.api_name]={python:J.python||"",javascript:J.javascript||"",bash:J.bash||"",cli:(J.cli||"").replace("{command}",e(i))}}return M})())}),_t();var We={get dependencies(){return A()},set dependencies(M){A(M),g()},get root(){return x()},set root(M){x(M),g()},get app(){return w()},set app(M){w(M),g()},get space_id(){return E()},set space_id(M){E(M),g()},get root_node(){return ce()},set root_node(M){ce(M),g()},get username(){return K()},set username(M){K(M),g()},get last_api_call(){return S()},set last_api_call(M){S(M),g()},get api_calls(){return C()},set api_calls(M){C(M),g()}};st();var De=Ge(),rt=re(De);{var mt=M=>{var r=Ge(),u=re(r);{var J=D=>{var pe=Ks(),ge=re(pe),Se=a(ge);{let Re=Ae(()=>E()||x());pa(Se,{get root(){return e(Re)},get api_count(){return F},get current_language(){return e(f)},$$events:{close(me){Gt.call(this,s,me)}}})}t(ge);var ye=n(ge,2),Ne=a(ye),Ze=n(a(Ne),2);Es(Ze,{get current_language(){return e(f)},get space_id(){return E()},get root(){return x()},get api_count(){return F},get tools(){return e(ae)},py_docs:l,js_docs:h,bash_docs:P,mcp_docs:T,spaces_docs_suffix:U,get mcp_server_active(){return e(y)},get mcp_server_url_streamable(){return e(O)},get config_snippets(){return e(qe)},get markdown_code_snippets(){return e(Z)},get dependencies(){return A()},get info(){return e(ee)},get js_info(){return e(I)}}),t(Ne);var Je=n(Ne,2),dt=a(Je);lt(dt,5,()=>e(v),ct,(Re,me)=>{var Be=At(()=>qt(e(me),3));let Ve=()=>e(Be)[0],Qe=()=>e(Be)[1],et=()=>e(Be)[2];var je=Zs(),Ye=a(je);let be;var he=n(Ye);t(je),R(()=>{ke(je,1,`snippet
248
+ ${e(f)===Ve()?"current-lang":"inactive-lang"}`,"svelte-1ujc8oz"),Ee(Ye,"src",et()),be=ke(Ye,1,"svelte-1ujc8oz",null,be,{"agent-icon":Ve()==="cli"}),V(he,` ${Qe()??""}`)}),Te("click",je,()=>{N(f,Ve()),de("lang",Ve())}),o(Re,je)}),t(dt);var pt=n(dt,2);{var gt=Re=>{var me=Hs(),Be=re(me),Ve=a(Be),Qe=n(a(Ve)),et=a(Qe);t(Qe),t(Ve);var je=n(Ve,2),Ye=a(je);t(je);var be=n(je,2);{let he=Ae(()=>E()||x());Ka(be,{get current_language(){return e(f)},get api_calls(){return C()},get dependencies(){return A()},get root(){return x()},get api_prefix(){return p(w()),k(()=>w().api_prefix)},get short_root(){return e(he)},get username(){return K()}})}we(2),t(Be),we(2),R(()=>{V(et,`[${p(C()),k(()=>C().length)??""}]`),V(Ye,`Here is the code snippet to replay the most recently recorded API
249
+ calls using the ${e(f)??""}
250
+ client.`)}),o(Re,me)},$t=Re=>{var me=Qs(),Be=re(me);{var Ve=Ie=>{var Pe=Bs(),Xe=a(Pe);{var vt=Me=>{var Ke=Us(),at=n(re(Ke)),yt=a(at,!0);t(at);var Oe=n(at,2);we(),R(()=>{V(yt,e(f)),Ee(Oe,"href",e(f)=="python"?l:h)}),o(Me,Ke)},tt=Me=>{var Ke=Ge(),at=re(Ke);{var yt=Ue=>{var Fe=xe("1. Confirm that you have cURL installed on your system.");o(Ue,Fe)},Oe=Ue=>{var Fe=Ge(),xt=re(Fe);{var Ct=It=>{var kt=xe("1. Install the CLI if you don't already have it installed.");o(It,kt)};G(xt,It=>{e(f)=="cli"&&It(Ct)},!0)}o(Ue,Fe)};G(at,Ue=>{e(f)=="bash"?Ue(yt):Ue(Oe,!1)},!0)}o(Me,Ke)};G(Xe,Me=>{e(f)=="python"||e(f)=="javascript"?Me(vt):Me(tt,!1)})}t(Pe),o(Ie,Pe)};G(Be,Ie=>{e(f)!=="skill"&&Ie(Ve)})}var Qe=n(Be,2);{var et=Ie=>{var Pe=Vs(),Xe=a(Pe),vt=a(Xe);we(),t(Xe);var tt=n(Xe,2),Me=a(tt);we(),t(tt),t(Pe),R(()=>{ke(Xe,1,`snippet ${e(L)==="gradio"?"current-lang":"inactive-lang"}`,"svelte-1ujc8oz"),Ee(vt,"src",aa),ke(tt,1,`snippet ${e(L)==="hf"?"current-lang":"inactive-lang"}`,"svelte-1ujc8oz"),Ee(Me,"src",hs)}),Te("click",Xe,()=>{N(L,"gradio")}),Te("click",tt,()=>{N(L,"hf")}),o(Ie,Pe)};G(Qe,Ie=>{e(f)==="cli"&&Ie(et)})}var je=n(Qe,2);let Ye;var be=a(je);_s(be,{get space_id(){return E()}}),t(je);var he=n(je,2);let He;var ft=a(he);{let Ie=Ae(()=>(e(ae),e(ie),k(()=>e(ae).filter(Pe=>e(ie).has(Pe.name)))));Ms(ft,{get mcp_server_active(){return e(y)},get mcp_server_url_streamable(){return e(O)},get tools(){return e(Ie)},get all_tools(){return e(ae)},get mcp_json_stdio(){return e(q)},get file_data_present(){return e(W)},mcp_docs:T,get analytics(){return e($)},get root(){return x()},get selected_tools(){return e(ie)},set selected_tools(Pe){N(ie,Pe)},get config_snippets(){return e(qe)},set config_snippets(Pe){N(qe,Pe)},$$legacy:!0})}t(he);var wt=n(he,2);{var it=Ie=>{var Pe=Js(),Xe=re(Pe);za(Xe,{get current_language(){return e(f)},get cli_flavor(){return e(L)}});var vt=n(Xe,2),tt=n(a(vt));{var Me=Oe=>{var Ue=Fs(),Fe=n(re(Ue));we(),R(()=>Ee(Fe,"href",e(f)=="python"?l+U:e(f)=="javascript"?h+U:P)),o(Oe,Ue)};G(tt,Oe=>{E()&&Oe(Me)})}var Ke=n(tt,2);Yt(Ke,{size:"sm",variant:"secondary",$$events:{click:()=>ne("close",{api_recorder_visible:!0})},children:(Oe,Ue)=>{var Fe=Ys();we(2),o(Oe,Fe)},$$slots:{default:!0}});var at=n(Ke,2);{var yt=Oe=>{var Ue=Ws(),Fe=n(re(Ue),30);Fe.textContent='{"path": "...", "meta": {"_type": "gradio.FileData"}}';var xt=n(Fe,2);{var Ct=kt=>{var Qt=xe(`Note: connecting to an authenticated app requires an
251
+ additional request.`);o(kt,Qt)};G(xt,kt=>{K()!==null&&kt(Ct)})}var It=n(xt,2);Ee(It,"href",P),we(),o(Oe,Ue)};G(at,Oe=>{e(f)=="bash"&&Oe(yt)})}t(vt),o(Ie,Pe)};G(wt,Ie=>{e(f)!=="mcp"&&e(f)!=="skill"&&Ie(it)})}R(()=>{Ye=ke(je,1,"svelte-1ujc8oz",null,Ye,{hidden:e(f)!=="skill"}),He=ke(he,1,"svelte-1ujc8oz",null,He,{hidden:e(f)!=="mcp"})}),o(Re,me)};G(pt,Re=>{p(C()),k(()=>C().length)?Re(gt):Re($t,!1)})}var nt=n(pt,2);let bt;lt(nt,5,()=>e(c),ct,(Re,me)=>{var Be=Ge(),Ve=re(Be);{var Qe=et=>{var je=Xs(),Ye=a(je);Ba(Ye,{get dependency(){return e(me)},get current_language(){return e(f)},get api_description(){return e(ee),e(me),k(()=>e(ee).named_endpoints["/"+e(me).api_name].description)},get analytics(){return e($)},get last_api_call(){return S()},get code_snippets(){return e(ee),e(me),k(()=>e(ee).named_endpoints["/"+e(me).api_name].code_snippets)},get cli_command(){return e(i)}});var be=n(Ye,2);{let He=Ae(()=>e(f)==="cli"?"python":e(f));wa(be,{get endpoint_returns(){return e(ee),e(me),k(()=>e(ee).named_endpoints["/"+e(me).api_name].parameters)},get js_returns(){return e(I),e(me),k(()=>e(I).named_endpoints["/"+e(me).api_name].parameters)},is_running:Q,get current_language(){return e(He)}})}var he=n(be,2);{let He=Ae(()=>e(f)==="cli"?"python":e(f));os(he,{get endpoint_returns(){return e(ee),e(me),k(()=>e(ee).named_endpoints["/"+e(me).api_name].returns)},get js_returns(){return e(I),e(me),k(()=>e(I).named_endpoints["/"+e(me).api_name].returns)},is_running:Q,get current_language(){return e(He)}})}t(je),o(et,je)};G(Ve,et=>{e(ee),e(me),k(()=>e(ee).named_endpoints["/"+e(me).api_name])&&et(Qe)})}o(Re,Be)}),t(nt),t(Je),t(ye),R(()=>bt=ke(nt,1,"svelte-1ujc8oz",null,bt,{hidden:e(f)==="mcp"||e(f)==="skill"})),o(D,pe)},se=D=>{la(D,{get root(){return x()},$$events:{close(pe){Gt.call(this,s,pe)}}})};G(u,D=>{F?D(J):D(se,!1)})}o(M,r)};G(rt,M=>{e(ee)&&e($)&&M(mt)})}return o(d,De),Ce(We)}export{Cr as default};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiDocs-y7Md9q8F.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .wrap.svelte-1m8i4xt{padding:var(--size-6)}.attention.svelte-1m8i4xt{font-weight:var(--weight-bold);font-size:var(--text-lg)}.attention.svelte-1m8i4xt code:where(.svelte-1m8i4xt){border:none;background:none;color:var(--color-accent);font-weight:var(--weight-bold)}button.svelte-1m8i4xt{position:absolute;top:var(--size-5);right:var(--size-6);width:var(--size-4);color:var(--body-text-color)}button.svelte-1m8i4xt:hover{color:var(--color-accent)}@media(min-width:768px){button.svelte-1m8i4xt{top:var(--size-6)}}h2.svelte-uv8a36{display:flex;color:var(--body-text-color);font-weight:var(--weight-semibold);gap:var(--size-4)}h2.svelte-uv8a36 img:where(.svelte-uv8a36){margin-right:var(--size-2);width:var(--size-4);display:inline-block}.url.svelte-uv8a36{color:var(--color-accent);font-weight:400}button.svelte-uv8a36{position:absolute;top:var(--size-5);right:var(--size-6);width:var(--size-4);color:var(--body-text-color)}button.svelte-uv8a36:hover{color:var(--color-accent)}@media(min-width:768px){button.svelte-uv8a36{top:var(--size-6)}h2.svelte-uv8a36 img:where(.svelte-uv8a36){width:var(--size-5)}}.counts.svelte-uv8a36{margin-top:auto;margin-right:var(--size-8);margin-bottom:auto;margin-left:auto;color:var(--body-text-color);font-weight:var(--weight-light);display:flex;flex-direction:row;gap:.5rem}.loading-dot.svelte-uv8a36{position:relative;left:-9999px;width:12px;height:12px;border-radius:6px;background-color:#fd7b00;color:#fd7b00;box-shadow:9999px 0 0 -1px;margin-right:.3rem}.self-baseline.svelte-uv8a36{align-self:baseline}.title.svelte-uv8a36{display:flex;flex-direction:row;gap:.5rem}.btn-text.svelte-uv8a36{font-size:var(--text-lg)}.hr.svelte-1nfxyth{border:0;height:1px;background:var(--color-accent-soft);margin-bottom:12px}.code.svelte-1nfxyth{font-family:var(--font-mono);display:inline}.highlight.svelte-1nfxyth{background:var(--color-accent-soft);color:var(--color-accent);padding:var(--size-1)}.desc.svelte-1nfxyth{color:var(--body-text-color-subdued);font-size:var(--text-lg);margin-top:var(--size-1)}h4.svelte-1nfxyth{display:flex;align-items:center;margin-top:var(--size-6);margin-bottom:var(--size-3);color:var(--body-text-color);font-weight:var(--weight-bold)}.toggle-icon.svelte-1nfxyth{display:flex;align-items:center;margin-right:var(--size-2);border-radius:var(--radius-full);background:var(--color-grey-300);width:12px;height:4px}.toggle-dot.svelte-1nfxyth{border-radius:var(--radius-full);background:var(--color-grey-700);width:6px;height:6px;margin-right:auto}.icon-size.svelte-etvp4k{width:.75rem;height:.75rem}@media(max-width:640px){.icon-size.svelte-etvp4k{width:.625rem;height:.625rem}}.icon-size.svelte-5quqiz{width:.75rem;height:.75rem}@media(max-width:640px){.icon-size.svelte-5quqiz{width:.625rem;height:.625rem}}.copy-button.svelte-egghn7{display:inline-flex;align-items:center;gap:4px;height:24px;padding-left:8px;padding-right:8px;font-size:11px;font-weight:500;color:#1f2937;border:1px solid rgb(229,231,235);border-radius:6px;background-color:#fff;@media(max-width:640px){gap:2px;height:20px;padding-left:6px;padding-right:6px;font-size:9px;border-top-left-radius:4px;border-bottom-left-radius:4px}&:hover{box-shadow:inset 0 2px 4px #0000000d}@media(prefers-color-scheme:dark){border-color:#262626;background-color:#0a0a0a;color:#e5e7eb;&:hover{background-color:#262626}}}code.svelte-1ts4a2g pre:where(.svelte-1ts4a2g){overflow-x:auto;color:var(--body-text-color);font-family:var(--font-mono);tab-size:2}code.svelte-1ts4a2g{position:relative;display:block}.copy.svelte-1ts4a2g{position:absolute;top:0;right:0;margin-top:-5px;margin-right:-5px}.step.svelte-1ts4a2g{margin-top:var(--size-3);margin-bottom:var(--size-2);font-weight:var(--weight-semibold);color:var(--body-text-color)}.os-label.svelte-1ts4a2g{margin-top:var(--size-2);margin-bottom:var(--size-1);font-size:var(--text-sm);color:var(--body-text-color-subdued)}.tooltip-chart.svelte-1q3jha5{background:var(--background-fill-primary);border:1px solid var(--border-color-primary);border-radius:var(--radius-md);padding:var(--size-3);box-shadow:var(--shadow-drop-lg);min-width:200px;position:relative}.tooltip-arrow.svelte-1q3jha5{position:absolute;bottom:-8px;left:50%;transform:translate(-50%);width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid var(--border-color-primary)}.tooltip-arrow.svelte-1q3jha5:after{content:"";position:absolute;bottom:1px;left:50%;transform:translate(-50%);width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid var(--background-fill-primary)}.chart-bars.svelte-1q3jha5{display:flex;flex-direction:column;gap:var(--size-2)}.chart-bar-container.svelte-1q3jha5{display:flex;align-items:center;gap:var(--size-2)}.chart-bar-label.svelte-1q3jha5{font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--body-text-color);min-width:30px}.chart-bar-wrapper.svelte-1q3jha5{flex:1;height:16px;background:var(--background-fill-secondary);border-radius:var(--radius-sm);overflow:hidden;position:relative}.chart-bar.svelte-1q3jha5{height:100%;background:var(--color-accent);border-radius:var(--radius-sm);transition:width .3s ease}.chart-bar-value.svelte-1q3jha5{font-size:var(--text-sm);color:var(--body-text-color);min-width:50px;text-align:right;font-family:var(--font-mono)}h3.svelte-13swnto{color:var(--body-text-color);font-weight:var(--section-header-text-weight);font-size:var(--text-lg)}.post.svelte-13swnto{margin-right:var(--size-2);border:1px solid var(--border-color-accent);border-radius:var(--radius-sm);background:var(--color-accent-soft);padding-right:var(--size-1);padding-bottom:var(--size-1);padding-left:var(--size-1);color:var(--color-accent);font-weight:var(--weight-semibold)}.analytics-inline.svelte-13swnto{display:inline-flex;align-items:center;gap:var(--size-2);margin-left:var(--size-2);color:var(--body-text-color-subdued)}.analytics-content.svelte-13swnto{position:relative;display:inline-block}.analytics-text-wrapper.svelte-13swnto{cursor:help}.analytics-tooltip.svelte-13swnto{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:var(--size-2);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1000}.analytics-content.svelte-13swnto:hover .analytics-tooltip:where(.svelte-13swnto){opacity:1;pointer-events:auto}.most-recently-used.svelte-13swnto{display:inline-block;color:#fd7b00;background:#fff4e6;border:1px solid #ffd9b3;border-radius:var(--radius-sm);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-weight:var(--weight-medium);white-space:nowrap}.desc.svelte-13swnto{color:var(--body-text-color);font-size:var(--text-lg);margin-left:var(--size-2)}code.svelte-1v9rhoq pre:where(.svelte-1v9rhoq){overflow-x:auto;color:var(--body-text-color);font-family:var(--font-mono);tab-size:2}code.svelte-1v9rhoq{position:relative;display:block}.copy.svelte-1v9rhoq{position:absolute;top:0;right:0;margin-top:-5px;margin-right:-5px}.container.svelte-1v9rhoq{display:flex;flex-direction:column;gap:var(--spacing-xxl);margin-top:var(--size-3);margin-bottom:var(--size-3)}.api-name{color:var(--color-accent)}.str{color:var(--color-accent-base)}.hidden.svelte-1v9rhoq{display:none}code.svelte-154to14 pre:where(.svelte-154to14){overflow-x:auto;color:var(--body-text-color);font-family:var(--font-mono);tab-size:2}.token.string.svelte-154to14{display:contents;color:var(--color-accent-base)}code.svelte-154to14{position:relative;display:block}.copy.svelte-154to14{position:absolute;top:0;right:0;margin-top:-5px;margin-right:-5px}.container.svelte-154to14{display:flex;flex-direction:column;gap:var(--spacing-xxl);margin-top:var(--size-3);margin-bottom:var(--size-3)}.api-name.svelte-154to14{color:var(--color-accent)}.hr.svelte-17pn6bc{border:0;height:1px;background:var(--color-accent-soft)}.code.svelte-17pn6bc{font-family:var(--font-mono);margin-right:10px}.highlight.svelte-17pn6bc{background:var(--color-accent-soft);color:var(--color-accent);padding:var(--size-1)}.desc.svelte-17pn6bc{color:var(--body-text-color-subdued);font-size:var(--text-lg)}h4.svelte-17pn6bc{display:flex;align-items:center;margin-top:var(--size-6);margin-bottom:var(--size-3);color:var(--body-text-color);font-weight:var(--weight-bold)}.toggle-icon.svelte-17pn6bc{display:flex;align-items:center;margin-right:var(--size-2);border-radius:var(--radius-full);background:var(--color-grey-300);width:12px;height:4px}.toggle-dot.svelte-17pn6bc{border-radius:var(--radius-full);background:var(--color-grey-700);width:6px;height:6px;margin-left:auto}.skill-content.svelte-1cyp2hi{margin-top:var(--size-2)}p.padded.svelte-1cyp2hi{padding:15px 0;font-size:var(--text-lg)}.hint.svelte-1cyp2hi{margin-top:var(--size-2);color:var(--body-text-color);opacity:.8;font-size:var(--text-md);line-height:1.6}.inline-code.svelte-1cyp2hi{display:inline;font-family:var(--font-mono);font-size:var(--text-md);background:var(--background-fill-secondary);padding:1px 4px;border-radius:var(--radius-sm)}code.svelte-1cyp2hi pre:where(.svelte-1cyp2hi){overflow-x:auto;color:var(--body-text-color);font-family:var(--font-mono);tab-size:2}code.svelte-1cyp2hi{position:relative;display:block}.copy.svelte-1cyp2hi{position:absolute;top:0;right:0;margin-top:-5px;margin-right:-5px}.tool-analytics-wrapper.svelte-1uo4thf{position:relative;display:inline-block}.tool-analytics.svelte-1uo4thf{font-size:.95em;color:var(--body-text-color-subdued)}.transport-selection.svelte-1uo4thf{margin-bottom:var(--size-4)}.snippets.svelte-1uo4thf{display:flex;align-items:center;margin-bottom:var(--size-4)}.snippets.svelte-1uo4thf>:where(.svelte-1uo4thf)+:where(.svelte-1uo4thf){margin-left:var(--size-2)}.transport-label.svelte-1uo4thf{font-weight:600;color:var(--body-text-color);margin-right:var(--size-2)}.file-upload-section.svelte-1uo4thf{margin-top:var(--size-4);padding:var(--size-3);border:1px solid var(--border-color-primary);border-radius:var(--radius-md);background:var(--background-fill-secondary)}.checkbox-label.svelte-1uo4thf{display:flex;align-items:center;font-weight:600;color:var(--body-text-color);cursor:pointer;margin-bottom:var(--size-2)}.checkbox.svelte-1uo4thf{margin-right:var(--size-2);width:var(--size-4);height:var(--size-4);cursor:pointer;accent-color:var(--color-accent)}.checkbox.svelte-1uo4thf:checked{background-color:var(--color-accent);border-color:var(--color-accent)}.file-upload-explanation.svelte-1uo4thf{margin:0;color:var(--body-text-color)}.snippet.svelte-1uo4thf{display:flex;align-items:center;border:1px solid var(--border-color-primary);border-radius:var(--radius-md);padding:var(--size-1) var(--size-1-5);color:var(--body-text-color-subdued);color:var(--body-text-color);line-height:1;user-select:none}.current-lang.svelte-1uo4thf{border:1px solid var(--body-text-color-subdued);color:var(--body-text-color)}.inactive-lang.svelte-1uo4thf{cursor:pointer;color:var(--body-text-color-subdued)}.inactive-lang.svelte-1uo4thf:hover,.inactive-lang.svelte-1uo4thf:focus{box-shadow:var(--shadow-drop);color:var(--body-text-color)}code.svelte-1uo4thf pre:where(.svelte-1uo4thf){overflow-x:auto;color:var(--body-text-color);font-family:var(--font-mono);tab-size:2}.copy.svelte-1uo4thf{position:absolute;top:0;right:0;margin-top:5px;margin-right:5px;z-index:10}.mcp-url.svelte-1uo4thf{padding:var(--size-2);position:relative}.mcp-url.svelte-1uo4thf label:where(.svelte-1uo4thf){display:block;margin-bottom:var(--size-2);font-weight:600;color:var(--body-text-color)}.mcp-url.svelte-1uo4thf .textbox:where(.svelte-1uo4thf){display:flex;align-items:center;gap:var(--size-2);border:1px solid var(--border-color-primary);border-radius:var(--radius-sm);padding:var(--size-2);background:var(--background-fill-primary)}.mcp-url.svelte-1uo4thf input:where(.svelte-1uo4thf){flex:1;border:none;background:none;color:var(--body-text-color);font-family:var(--font-mono);font-size:var(--text-md);width:100%}.mcp-url.svelte-1uo4thf input:where(.svelte-1uo4thf):focus{outline:none}.status-indicator.svelte-1uo4thf{display:inline-block;margin-right:var(--size-1-5);position:relative;top:-1px;font-size:.8em}.status-indicator.active.svelte-1uo4thf{color:#4caf50;animation:svelte-1uo4thf-pulse 1s infinite}@keyframes svelte-1uo4thf-pulse{0%{opacity:1}50%{opacity:.6}to{opacity:1}}.mcp-tools.svelte-1uo4thf{margin-top:var(--size-4);border:1px solid var(--border-color-primary);border-radius:var(--radius-md);overflow:hidden}.tool-selection.svelte-1uo4thf{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--size-2)}.tool-selection-controls.svelte-1uo4thf{display:flex;gap:var(--size-2)}.select-all-btn.svelte-1uo4thf,.select-none-btn.svelte-1uo4thf{padding:var(--size-1) var(--size-2);border:1px solid var(--border-color-primary);border-radius:var(--radius-sm);background:var(--background-fill-primary);color:var(--body-text-color);cursor:pointer;font-size:var(--text-sm)}.select-all-btn.svelte-1uo4thf:hover,.select-none-btn.svelte-1uo4thf:hover{background:var(--background-fill-secondary)}.tool-item.svelte-1uo4thf{border-bottom:1px solid var(--border-color-primary)}.tool-item.svelte-1uo4thf:last-child{border-bottom:none}.tool-header-wrapper.svelte-1uo4thf{display:flex;align-items:center}.tool-checkbox.svelte-1uo4thf{margin-left:var(--size-3);margin-right:var(--size-2);width:var(--size-4);height:var(--size-4);cursor:pointer;accent-color:var(--color-accent)}.tool-checkbox.svelte-1uo4thf:checked{background-color:var(--color-accent);border-color:var(--color-accent)}.tool-header.svelte-1uo4thf{flex:1;display:flex;justify-content:space-between;align-items:center;padding:var(--size-3);background:var(--background-fill-primary);border:none;cursor:pointer;text-align:left}.tool-header.svelte-1uo4thf:hover{background:var(--background-fill-secondary)}.tool-name.svelte-1uo4thf{font-family:var(--font-mono);font-weight:600}.tool-arrow.svelte-1uo4thf{color:var(--body-text-color-subdued)}.tool-content.svelte-1uo4thf{padding:var(--size-3);background:var(--background-fill-secondary)}.tool-description.svelte-1uo4thf{margin-bottom:var(--size-3);color:var(--body-text-color)}.parameter.svelte-1uo4thf{margin-bottom:var(--size-2);padding:var(--size-2);background:var(--background-fill-primary);border-radius:var(--radius-sm)}.parameter.svelte-1uo4thf code:where(.svelte-1uo4thf){font-weight:600;color:var(--color-accent)}.parameter-type.svelte-1uo4thf{color:var(--body-text-color-subdued);margin-left:var(--size-1)}.parameter-description.svelte-1uo4thf{margin-top:var(--size-1);color:var(--body-text-color)}a.svelte-1uo4thf{text-decoration:underline}.hidden.svelte-1uo4thf{display:none}.menu-icon-arrow.svelte-1s9m4x9{width:1rem;height:1rem;color:#6b7280;flex-shrink:0}@media(prefers-color-scheme:dark){.menu-icon-arrow.svelte-1s9m4x9{color:#d1d5db}}.caret-icon.svelte-1u0oj9c{transition:transform .2s ease-in-out;color:#9ca3af;overflow:visible;width:.75rem;height:.75rem}@media(max-width:640px){.caret-icon.svelte-1u0oj9c{width:.625rem;height:.625rem}}.rotate-180.svelte-1u0oj9c{transform:rotate(180deg)}.rotate-0.svelte-1u0oj9c{transform:rotate(0)}.icon-size.svelte-pw1cre{width:.75rem;height:.75rem}@media(max-width:640px){.icon-size.svelte-pw1cre{width:.625rem;height:.625rem}}.menu-icon.svelte-pw1cre{width:1rem;height:1rem;flex-shrink:0}.hidden.svelte-pw1cre{display:none}.block.svelte-pw1cre{display:block}.container-wrapper.svelte-de9ybk{display:flex;align-items:center;flex-shrink:0;min-width:100px;justify-content:flex-end;margin-left:auto}@media(max-width:640px){.container-wrapper.svelte-de9ybk{min-width:50px}}.trigger-wrapper.svelte-de9ybk{display:inline-flex;border-radius:.375rem}@media(max-width:640px){.trigger-wrapper.svelte-de9ybk{border-radius:.125rem}}.icon-wrapper.svelte-de9ybk{display:inline-flex;align-items:center;justify-content:center;border-radius:.375rem;padding:.125rem}@media(max-width:640px){.icon-wrapper.svelte-de9ybk{padding:0}}.menu-toggle-button.svelte-de9ybk{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;font-size:.875rem;color:#6b7280;border-radius:0;border-top-right-radius:.375rem;border-bottom-right-radius:.375rem;border:1px solid rgb(229,231,235);border-left:none;background-color:#fff;transition:all .2s ease-in-out}.menu-toggle-button.svelte-de9ybk:disabled{pointer-events:none}.menu-toggle-button.svelte-de9ybk:hover{color:#374151;box-shadow:inset 0 2px 4px #0000000d}@media(max-width:640px){.menu-toggle-button.svelte-de9ybk{width:1.25rem;height:1.25rem;border-top-right-radius:.125rem;border-bottom-right-radius:.125rem}}@media(prefers-color-scheme:dark){.menu-toggle-button.svelte-de9ybk{border-color:#262626;background-color:#0a0a0a;color:#e5e7eb}.menu-toggle-button.svelte-de9ybk:hover{color:#fff;background-color:#1f2937}}.backdrop-overlay.svelte-de9ybk{position:fixed;inset:0;z-index:40}.menu-dropdown.svelte-de9ybk{position:fixed;z-index:50;backdrop-filter:blur(24px);border-radius:.75rem;max-height:420px;overflow-y:auto;padding:.25rem;border:1px solid rgb(229,231,235);display:flex;flex-direction:column;background-color:#fff;color:#1f2937}@media(prefers-color-scheme:dark){.menu-dropdown.svelte-de9ybk{border-color:#262626;background-color:#0a0a0a;color:#e5e7eb}}.menu-icon-container.svelte-de9ybk{border:1px solid rgb(229,231,235);border-radius:.5rem;padding:.375rem}@media(prefers-color-scheme:dark){.menu-icon-container.svelte-de9ybk{border-color:#262626}}.menu-text-container.svelte-de9ybk{display:flex;flex-direction:column;padding-left:.25rem;padding-right:.25rem}.menu-text-primary.svelte-de9ybk{font-size:11px;font-weight:500;color:#1f2937;display:flex;align-items:center;gap:.25rem}@media(prefers-color-scheme:dark){.menu-text-primary.svelte-de9ybk{color:#d1d5db}}.menu-text-secondary.svelte-de9ybk{font-size:.75rem;color:#4b5563}@media(prefers-color-scheme:dark){.menu-text-secondary.svelte-de9ybk{color:#9ca3af}}.copy-button.svelte-de9ybk{display:inline-flex;align-items:center;gap:4px;height:24px;padding-left:8px;padding-right:6px;font-size:11px;font-weight:500;color:#1f2937;border:1px solid rgb(229,231,235);border-radius:6px 0 0 6px;background-color:#fff;@media(max-width:640px){gap:2px;height:20px;padding-left:6px;padding-right:6px;font-size:9px;border-top-left-radius:4px;border-bottom-left-radius:4px}&:hover{box-shadow:inset 0 2px 4px #0000000d}@media(prefers-color-scheme:dark){border-color:#262626;background-color:#0a0a0a;color:#e5e7eb;&:hover{background-color:#262626}}}.base-menu-item.svelte-de9ybk{cursor:pointer;font-size:11px;position:relative;width:100%;user-select:none;outline:none;display:flex;align-items:center;gap:.375rem;padding:.375rem;border-radius:.75rem;text-align:left;transition:all .2s ease-in-out;border-color:#e5e7eb;background-color:#fff}.base-menu-item.svelte-de9ybk:hover{box-shadow:inset 0 2px 4px #0000000d}@media(prefers-color-scheme:dark){.base-menu-item.svelte-de9ybk{border-color:#1f2937;background-color:#0f1117;color:#e5e7eb}.base-menu-item.svelte-de9ybk:hover{background-color:#1f2937}}.banner-wrap.svelte-1ujc8oz{position:relative;border-bottom:1px solid var(--border-color-primary);padding:var(--size-4) var(--size-6);font-size:var(--text-md)}@media(min-width:768px){.banner-wrap.svelte-1ujc8oz{font-size:var(--text-xl)}}.docs-wrap.svelte-1ujc8oz{display:flex;flex-direction:column;gap:var(--spacing-xxl)}.endpoint.svelte-1ujc8oz{border-radius:var(--radius-md);background:var(--background-fill-primary);padding:var(--size-6);padding-top:var(--size-1);font-size:var(--text-md)}.client-doc.svelte-1ujc8oz{padding-top:var(--size-6);padding-right:var(--size-6);padding-left:var(--size-6);font-size:var(--text-md)}.snippets.svelte-1ujc8oz{display:flex;align-items:center;margin-bottom:var(--size-4)}.snippets.svelte-1ujc8oz>:where(.svelte-1ujc8oz)+:where(.svelte-1ujc8oz){margin-left:var(--size-2)}.snippet.svelte-1ujc8oz{display:flex;align-items:center;border:1px solid var(--border-color-primary);border-radius:var(--radius-md);padding:var(--size-1) var(--size-1-5);color:var(--body-text-color-subdued);color:var(--body-text-color);line-height:1;user-select:none;font-size:var(--text-lg)}.current-lang.svelte-1ujc8oz{border:1px solid var(--body-text-color-subdued);color:var(--body-text-color)}.inactive-lang.svelte-1ujc8oz{cursor:pointer;color:var(--body-text-color-subdued)}.inactive-lang.svelte-1ujc8oz:hover,.inactive-lang.svelte-1ujc8oz:focus{box-shadow:var(--shadow-drop);color:var(--body-text-color)}.snippet.svelte-1ujc8oz img:where(.svelte-1ujc8oz){margin-right:var(--size-1-5);width:var(--size-4);height:var(--size-4)}.endpoint-container.svelte-1ujc8oz{margin-top:var(--size-3);margin-bottom:var(--size-3);border:1px solid var(--block-border-color);border-radius:var(--radius-xl);padding:var(--size-3);padding-top:0}a.svelte-1ujc8oz{text-decoration:underline}p.padded.svelte-1ujc8oz{padding:15px 0;font-size:var(--text-lg)}code.svelte-1ujc8oz{font-size:var(--text-md)}.loading-dot.svelte-1ujc8oz{position:relative;left:-9999px;width:10px;height:10px;border-radius:5px;background-color:#fd7b00;color:#fd7b00;box-shadow:9999px 0 0 -1px;margin-right:.25rem}.docs-wrap .sm.secondary{padding-top:1px;padding-bottom:1px}.self-baseline.svelte-1ujc8oz{align-self:baseline}.api-count.svelte-1ujc8oz{font-weight:700;color:#fd7b00;align-self:baseline;font-family:var(--font-mono);font-size:var(--text-md)}.hidden.svelte-1ujc8oz{display:none}.cli-flavor-selector.svelte-1ujc8oz{display:flex;align-items:center;margin-bottom:var(--size-4)}.cli-flavor-selector.svelte-1ujc8oz>:where(.svelte-1ujc8oz)+:where(.svelte-1ujc8oz){margin-left:var(--size-2)}@media(prefers-color-scheme:dark){.agent-icon.svelte-1ujc8oz{filter:invert(1)}}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiRecorder-CoSLrx_1.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .api-name.svelte-1kdww8a{font-size:var(--text-sm);font-family:var(--font-mono);color:#fd7b00}.loading-dot.svelte-1kdww8a{position:relative;left:-9999px;width:10px;height:10px;border-radius:5px;background-color:#fd7b00;color:#fd7b00;box-shadow:9999px 0 0 -1px;animation:svelte-1kdww8a-loading-dot 2s infinite linear;animation-delay:.25s;margin-left:.25rem;margin-right:.5rem}.docs-wrap .sm.secondary{padding-top:1px;padding-bottom:1px}.self-baseline.svelte-1kdww8a{align-self:baseline}@keyframes svelte-1kdww8a-loading-dot{0%{box-shadow:9999px 0 0 -1px}50%{box-shadow:9999px 0 0 2px}to{box-shadow:9999px 0 0 -1px}}.api-count.svelte-1kdww8a{font-weight:700;color:#fd7b00;align-self:baseline;font-family:var(--font-mono);font-size:var(--text-sm)}.api-section.svelte-1kdww8a{margin-left:4px}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ApiRecorder-y0lpz3M9.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as u,e as B,i as P}from"./i18n-Dnhn5Rxr.js";import{R as S,V as t,X as w,S as C,Y as r,G as i,z as c,t as g,a0 as h,a as v,T as G,U as k,W as f}from"./index-DWyDLubb.js";import{B as I}from"./Button-D-_s2ksk.js";import"./snippet-BWgYNF9D.js";import"./Image-CeW7PJs4.js";import"./misc-vsnLZ-Y1.js";/* empty css */import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";/* empty css */var T=f('<span class="api-name svelte-1kdww8a"> </span>'),U=f('<div class="loading-dot self-baseline svelte-1kdww8a"></div> <p class="self-baseline svelte-1kdww8a">Recording API Calls:</p> <p class="self-baseline api-section svelte-1kdww8a"><span class="api-count svelte-1kdww8a"> </span> <!></p>',1),V=f('<div id="api-recorder" class="svelte-1kdww8a"><!></div>');function K(x,l){S(l,!1);let e=u(l,"api_calls",28,()=>[]),s=u(l,"dependencies",12);var b={get api_calls(){return e()},set api_calls(a){e(a),k()},get dependencies(){return s()},set dependencies(a){s(a),k()}};B();var n=V(),$=t(n);return I($,{size:"sm",variant:"secondary",children:(a,W)=>{var m=U(),_=w(C(m),4),p=t(_),R=t(p);r(p);var y=w(p,2);{var z=d=>{var o=T(),A=t(o);r(o),g(()=>h(A,`/${i(s()),i(e()),c(()=>s()[e()[e().length-1].fn_index].api_name)??""}`)),v(d,o)};P(y,d=>{i(e()),c(()=>e().length>0)&&d(z)})}r(_),g(()=>h(R,`[${i(e()),c(()=>e().length)??""}]`)),v(a,m)},$$slots:{default:!0}}),r(n),v(x,n),G(b)}export{K as default};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/ArrowUp-D69HGcoh.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a as n,f as e}from"./index-DWyDLubb.js";var i=e('<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline></svg>');function l(o){var r=i();n(o,r)}export{l as A};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BaseForm-B7Gu_hvH.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as r,s as f,b as m,a as i,f as o}from"./i18n-Dnhn5Rxr.js";import{t as c,a as v,V as b,W as h,Y as u}from"./index-DWyDLubb.js";var _=h("<div><!></div>");function g(d,a){let l=r(a,"label",3,void 0);var e=_();let s,t;var n=b(e);f(n,a,"default",{}),u(e),c(()=>{s=m(e,1,"form svelte-d5xbca",null,s,{hidden:a.visible===!1,"hidden-css":a.visible==="hidden"}),i(e,"role",l()?"group":void 0),i(e,"aria-label",l()),t=o(e,"",t,{"flex-grow":a.scale,"min-width":`calc(min(${a.min_width}px, 100%))`})}),v(d,e)}export{g as B};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BaseForm-DJxyhkeW.css ADDED
@@ -0,0 +1 @@
 
 
1
+ div.svelte-d5xbca{display:flex;flex-direction:inherit;flex-wrap:wrap;gap:var(--form-gap-width);box-shadow:var(--block-shadow);border:var(--block-border-width) solid var(--block-border-color);border-radius:var(--block-radius);background:var(--border-color-primary);overflow-y:hidden}div.svelte-d5xbca .block{box-shadow:none!important;border-width:0px!important;border-radius:0!important}.hidden.svelte-d5xbca{display:none}.hidden-css.svelte-d5xbca{display:none!important}div.svelte-d5xbca:not(:has(>:not(.hidden))){display:none}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Block-J4oodUWp.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{B as ve,p as a,e as me,i as Z,d as we,c as xe,S as ye,C as be,s as pe,f as Ee}from"./i18n-Dnhn5Rxr.js";import{p as ke,E as Se,am as P,an as Le,d as ze,ao as Be,b as Ce,N as Ne,i as I,h as u,e as ie,ap as Te,aq as Me,g as Ae,ar as re,s as J,R as Re,a3 as N,a1 as se,G as o,w as l,a2 as Ye,a6 as Fe,S as Q,a as T,T as Ge,U as n,x as E,X as de,W as $,z as h,Z as He,t as Pe,f as Ue,as as We}from"./index-DWyDLubb.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";function je(U,t,k,c,S,g){let L=u;u&&ie();var r=null;u&&I.nodeType===Te&&(r=I,ie());var y=u?I:U,v=new ve(y,!1);ke(()=>{const d=t()||null;var b=d==="svg"?Le:null;if(d===null){v.ensure(null,null),P(!0);return}return v.ensure(d,p=>{if(d){if(r=u?r:b?document.createElementNS(b,d):document.createElement(d),ze(r,r),c){u&&Me(d)&&r.append(document.createComment(""));var m=u?Ae(r):r.appendChild(Be());u&&(m===null?re(!1):J(m)),c(r,m)}Ce.nodes.end=r,p.before(r)}u&&J(p)}),P(!0),()=>{d&&P(!1)}},Se),Ne(()=>{P(!0)}),L&&(re(!0),J(y))}var qe=Ue('<svg class="resize-handle svelte-1plpy97" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><line x1="1" y1="9" x2="9" y2="1" stroke="gray" stroke-width="0.5" class="svelte-1plpy97"></line><line x1="5" y1="9" x2="9" y2="5" stroke="gray" stroke-width="0.5" class="svelte-1plpy97"></line></svg>'),De=$("<!> <!>",1),Ke=$('<div class="placeholder svelte-1plpy97"></div>'),Oe=$("<!> <!>",1);function Ie(U,t){Re(t,!1);let k=a(t,"height",12,void 0),c=a(t,"min_height",12,void 0),S=a(t,"max_height",12,void 0),g=a(t,"width",12,void 0),L=a(t,"elem_id",12,""),r=a(t,"elem_classes",28,()=>[]),y=a(t,"variant",12,"solid"),v=a(t,"border_mode",12,"base"),d=a(t,"padding",12,!0),b=a(t,"type",12,"normal"),p=a(t,"test_id",12,void 0),m=a(t,"explicit_call",12,!1),W=a(t,"container",12,!0),w=a(t,"visible",12,!0),j=a(t,"allow_overflow",12,!0),q=a(t,"overflow_behavior",12,"auto"),M=a(t,"scale",12,null),D=a(t,"min_width",12,0),A=a(t,"flex",12,!1),K=a(t,"resizable",12,!1),O=a(t,"rtl",12,!1),i=a(t,"fullscreen",12,!1),V=a(t,"label",12,void 0),X=N(i()),f=N(),oe=b()==="fieldset"?"fieldset":"div",ee=N(0),te=N(0),s=N(null);function le(e){i()&&e.key==="Escape"&&i(!1)}const R=e=>{if(e!==void 0){if(typeof e=="number")return e+"px";if(typeof e=="string")return e}},fe=e=>{let z=e.clientY;const B=F=>{const _=F.clientY-z;z=F.clientY,We(f,l(f).style.height=`${l(f).offsetHeight+_}px`)},Y=()=>{window.removeEventListener("mousemove",B),window.removeEventListener("mouseup",Y)};window.addEventListener("mousemove",B),window.addEventListener("mouseup",Y)};se(()=>(o(i()),l(X),l(f)),()=>{i()!==l(X)&&(E(X,i()),i()?(E(s,l(f).getBoundingClientRect()),E(ee,l(f).offsetHeight),E(te,l(f).offsetWidth),window.addEventListener("keydown",le)):(E(s,null),window.removeEventListener("keydown",le)))}),se(()=>o(w()),()=>{w()||A(!1)}),Ye();var ue={get height(){return k()},set height(e){k(e),n()},get min_height(){return c()},set min_height(e){c(e),n()},get max_height(){return S()},set max_height(e){S(e),n()},get width(){return g()},set width(e){g(e),n()},get elem_id(){return L()},set elem_id(e){L(e),n()},get elem_classes(){return r()},set elem_classes(e){r(e),n()},get variant(){return y()},set variant(e){y(e),n()},get border_mode(){return v()},set border_mode(e){v(e),n()},get padding(){return d()},set padding(e){d(e),n()},get type(){return b()},set type(e){b(e),n()},get test_id(){return p()},set test_id(e){p(e),n()},get explicit_call(){return m()},set explicit_call(e){m(e),n()},get container(){return W()},set container(e){W(e),n()},get visible(){return w()},set visible(e){w(e),n()},get allow_overflow(){return j()},set allow_overflow(e){j(e),n()},get overflow_behavior(){return q()},set overflow_behavior(e){q(e),n()},get scale(){return M()},set scale(e){M(e),n()},get min_width(){return D()},set min_width(e){D(e),n()},get flex(){return A()},set flex(e){A(e),n()},get resizable(){return K()},set resizable(e){K(e),n()},get rtl(){return O()},set rtl(e){O(e),n()},get fullscreen(){return i()},set fullscreen(e){i(e),n()},get label(){return V()},set label(e){V(e),n()}};me();var ae=Fe(),he=Q(ae);{var _e=e=>{var z=Oe(),B=Q(z);je(B,()=>oe,!1,(_,G)=>{we(_,x=>E(f,x),()=>l(f)),xe(_,(x,H)=>({"data-testid":p(),id:L(),class:`block ${x??""}`,dir:O()?"rtl":"ltr","aria-label":V(),style:"",[be]:{hidden:w()==="hidden",padded:d(),flex:A(),border_focus:v()==="focus",border_contrast:v()==="contrast","hide-container":!m()&&!W(),fullscreen:i(),animating:i()&&l(s)!==null,"auto-margin":M()===null},[ye]:H}),[()=>(o(r()),h(()=>r()?.join(" ")||"")),()=>({height:(o(i()),o(k()),h(()=>i()?void 0:R(k()))),"min-height":(o(i()),o(c()),h(()=>i()?void 0:R(c()))),"max-height":(o(i()),o(S()),h(()=>i()?void 0:R(S()))),"--start-top":(l(s),h(()=>l(s)?`${l(s).top}px`:"0px")),"--start-left":(l(s),h(()=>l(s)?`${l(s).left}px`:"0px")),"--start-width":(l(s),h(()=>l(s)?`${l(s).width}px`:"0px")),"--start-height":(l(s),h(()=>l(s)?`${l(s).height}px`:"0px")),width:(o(i()),o(g()),h(()=>i()?void 0:typeof g()=="number"?`calc(min(${g()}px, 100%))`:R(g()))),"border-style":y(),overflow:j()?q():"hidden","flex-grow":M(),"min-width":`calc(min(${D()}px, 100%))`})],void 0,void 0,"svelte-1plpy97");var C=De(),ne=Q(C);pe(ne,t,"default",{});var ce=de(ne,2);{var ge=x=>{var H=qe();He("mousedown",H,fe),T(x,H)};Z(ce,x=>{K()&&x(ge)})}T(G,C)});var Y=de(B,2);{var F=_=>{var G=Ke();let C;Pe(()=>C=Ee(G,"",C,{height:l(ee)+"px",width:l(te)+"px"})),T(_,G)};Z(Y,_=>{i()&&_(F)})}T(e,z)};Z(he,e=>{(w()===!0||w()==="hidden")&&e(_e)})}return T(U,ae),Ge(ue)}export{Ie as B};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BlockLabel-CZd21Hkw.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as a,a as p,b as w}from"./i18n-Dnhn5Rxr.js";import{R as x,t as I,a as j,T as k,U as s,V as c,W as y,X as B,a0 as L,Y as h}from"./index-DWyDLubb.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";var R=y('<label for="" data-testid="block-label"><span class="svelte-19djge9"><!></span> </label>');function V(_,l){x(l,!1);let o=a(l,"label",12,null),n=a(l,"Icon",12),r=a(l,"show_label",12,!0),b=a(l,"disable",12,!1),i=a(l,"float",12,!0),d=a(l,"rtl",12,!1);var g={get label(){return o()},set label(e){o(e),s()},get Icon(){return n()},set Icon(e){n(e),s()},get show_label(){return r()},set show_label(e){r(e),s()},get disable(){return b()},set disable(e){b(e),s()},get float(){return i()},set float(e){i(e),s()},get rtl(){return d()},set rtl(e){d(e),s()}},t=R();let u;var f=c(t),m=c(f);n()(m,{}),h(f);var v=B(f);return h(t),I(()=>{p(t,"dir",d()?"rtl":"ltr"),u=w(t,1,"svelte-19djge9",null,u,{hide:!r(),"sr-only":!r(),float:i(),"hide-label":b()}),L(v,` ${o()??""}`),t.dir=t.dir}),j(_,t),k(g)}export{V as B};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BlockTitle-BMm9LakX.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as o,s as _,i as p,a as b,b as v}from"./i18n-Dnhn5Rxr.js";import{R as g,S as w,t as k,a as x,T as y,U as n,V as B,W as I,X as S,Y as T}from"./index-DWyDLubb.js";import{I as j}from"./Info-Dzjhnd64.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";var R=I('<span data-testid="block-info"><!></span> <!>',1);function Y(d,a){g(a,!1);let l=o(a,"show_label",12,!0),s=o(a,"info",12,void 0),r=o(a,"rtl",12,!1);var u={get show_label(){return l()},set show_label(t){l(t),n()},get info(){return s()},set info(t){s(t),n()},get rtl(){return r()},set rtl(t){r(t),n()}},i=R(),e=w(i);let f;var c=B(e);_(c,a,"default",{}),T(e);var h=S(e,2);{var m=t=>{j(t,{get info(){return s()}})};p(h,t=>{s()&&t(m)})}return k(()=>{b(e,"dir",r()?"rtl":"ltr"),f=v(e,1,"svelte-jdcl7l",null,f,{hide:!l(),"has-info":s()!=null,"sr-only":!l()}),e.dir=e.dir}),x(d,i),y(u)}export{Y as B};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Blocks-CXVCGwNW.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .wrap.svelte-zxu34v{display:flex;flex-grow:1;flex-direction:column;width:var(--size-full);font-weight:var(--body-text-weight);font-size:var(--body-text-size)}main.contain.svelte-zxu34v{display:flex;flex-direction:column}footer.svelte-zxu34v{display:flex;justify-content:center;margin-top:var(--size-4);color:var(--body-text-color-subdued)}.divider.svelte-zxu34v{margin-left:var(--size-1);margin-right:var(--size-2)}.show-api.svelte-zxu34v,.settings.svelte-zxu34v,.record.svelte-zxu34v{display:flex;align-items:center}.show-api.svelte-zxu34v img:where(.svelte-zxu34v){margin-right:var(--size-1);margin-left:var(--size-2);width:var(--size-3)}.settings.svelte-zxu34v img:where(.svelte-zxu34v){margin-right:var(--size-1);margin-left:var(--size-1);width:var(--size-4)}.record.svelte-zxu34v img:where(.svelte-zxu34v){margin-right:var(--size-1);margin-left:var(--size-1);width:var(--size-3)}.built-with.svelte-zxu34v{display:flex;align-items:center}.built-with.svelte-zxu34v:hover,.settings.svelte-zxu34v:hover,.record.svelte-zxu34v:hover{color:var(--body-text-color)}.built-with.svelte-zxu34v img:where(.svelte-zxu34v){margin-right:var(--size-1);margin-left:var(--size-1);margin-bottom:1px;width:var(--size-4)}.api-docs.svelte-zxu34v{display:flex;position:fixed;top:0;right:0;z-index:var(--layer-top);background:#00000080;width:var(--size-screen);height:var(--size-screen-h)}.backdrop.svelte-zxu34v{flex:1 1 0%;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.api-docs-wrap.svelte-zxu34v{box-shadow:var(--shadow-drop-lg);background:var(--background-fill-primary);overflow-x:hidden;overflow-y:auto}@media(min-width:768px){.api-docs-wrap.svelte-zxu34v{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg);width:950px}}@media(min-width:1536px){.api-docs-wrap.svelte-zxu34v{width:1150px}}#api-recorder-container.svelte-zxu34v{position:fixed;left:10px;bottom:10px;z-index:1000}.show-api.svelte-zxu34v{display:flex;align-items:center}@media(max-width:640px){.show-api.svelte-zxu34v,.show-api-divider.svelte-zxu34v{display:none}}.show-api.svelte-zxu34v:hover{color:var(--body-text-color)}.hidden.svelte-zxu34v{display:none}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Blocks-D6_IyY-z.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ApiDocs-D66OUv1H.js","./i18n-Dnhn5Rxr.js","./index-DWyDLubb.js","./index-CyHPbdIk.css","./i18n-9kYrHpuJ.css","./misc-vsnLZ-Y1.js","./clear-CEoTtSVi.js","./Button-D-_s2ksk.js","./snippet-BWgYNF9D.js","./Image-CeW7PJs4.js","./Image-Da_XA0w6.css","./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js","./ScrollFade-DV-0xzhB.css","./Button-BZ4d-rtD.css","./ImagePreview-CCVfwC4m.css","./index-CglBvmLb.js","./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js","./html-Ih_5QVTo.js","./index-B_pwUImq.js","./StreamingBar-CMuqaV2j.css","./Clear-BF6j078A.js","./Block-J4oodUWp.js","./input-DrerMDOL.js","./size-CtOeLwIl.js","./state.svelte-CXxGByZZ.js","./utils.svelte-CCyS_0CY.js","./clone-BkeCM4Nl.js","./index-DkrWwIux.js","./index-tFQomdd2.js","./ApiDocs-y7Md9q8F.css","./ApiRecorder-y0lpz3M9.js","./ApiRecorder-CoSLrx_1.css","./Settings-Bwz4Nb_m.js","./Dropdown-Beu8JVME.js","./window-Uydxco8n.js","./BlockTitle-BMm9LakX.js","./Info-Dzjhnd64.js","./DropdownArrow-BOSZEGSp.js","./IconButtonWrapper-D0s9l4wW.js","./Dropdown--Uz_kS2s.css","./Checkbox-HhbcVSTv.js","./universal-CFOISHmx.js","./Checkbox-BbySKLMz.css","./Settings-CLQaonub.css","./Example-BeU1J4ps.css","./Index-C-RstoJU.js","./Code-BLWhl1y6.js","./Code-wZDUWKrz.css","./Index.svelte_svelte_type_style_lang-D9os8tfr.js","./actions-CLThs9VH.js","./Check-DUAHzS2-.js","./Copy-ChCbTvli.js","./MarkdownCode-B8HQ3LiU.js","./prism-python-B4lzO_Nz.js","./MarkdownCode-7h5zEbas.css","./Index-cY7HT1Ac.css","./Index-DP8ihX8q.css","./Example-BK-tWmkG.css","./Example-CgIc4GLa.css"])))=>i.map(i=>d[i]);
2
+ import{aO as Et,L as Ct,aP as St,h as Se,ar as Le,s as ze,i as rt,w as d,e as Lt,aJ as zt,ao as Ot,p as Rt,aQ as Mt,C as At,j as Ke,g as Dt,R as Fe,aR as ot,aS as De,u as be,y as lt,aT as Tt,a as v,T as Pe,W,x as F,a6 as Z,S as A,v as Xe,z as jt,aa as Ft,X as y,t as Y,a5 as Me,af as pe,V as I,a0 as me,Z as ie,aU as Pt,Y as q,aV as It,a7 as Ye}from"./index-DWyDLubb.js";import{d as dt,k as $e,u as et,i as k,g as qt,r as Ut,O as Vt,z as ct,j as Gt,P as _t,p as Ce,f as tt,q as it,m as Bt,b as at,a as N,w as Nt,A as Zt}from"./i18n-Dnhn5Rxr.js";import{h as Wt}from"./html-Ih_5QVTo.js";import{c as we}from"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{b as Ht}from"./size-CtOeLwIl.js";import"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{L as Jt,T as Qt}from"./state.svelte-CXxGByZZ.js";import{I as Kt,t as Xt}from"./utils.svelte-CCyS_0CY.js";import{AppTree as Yt}from"./index-DkrWwIux.js";function $(o,e=[],i=[],a){var t=Et(),n=Ct,l=t.is_rendered();t.update_pending_count(1),n.increment(l);var c=Se;if(c){Lt();var g=rt,h=zt(!1);ze(h)}St(e,[],i,w=>{c&&(Le(!0),ze(g));try{for(const E of w)d(E);a(o,...w)}finally{c&&Le(!1),t.update_pending_count(-1),n.decrement(l)}})}function $t(o,e){let i=null,a=Se;var t;if(Se){i=rt;for(var n=Dt(document.head);n!==null&&(n.nodeType!==At||n.data!==o);)n=Ke(n);if(n===null)Le(!1);else{var l=Ke(n);n.remove(),ze(l)}}Se||(t=document.head.appendChild(Ot()));try{Rt(()=>e(t),Mt)}finally{a&&(Le(!0),ze(i))}}var ei=W("<span></span>");function ti(o,e){Fe(e,!0);var i,a,t,n=ot([async()=>i=await De(()=>e.node.component),async()=>a=await De(()=>e.node.runtime),()=>t=be(null),()=>{lt(()=>{if(!d(t)||!d(a)||!d(i))return;const c=e.node.props.shared_props,g=e.node.props.props,h=d(a),w=h.mount(d(i).default,{target:d(t),props:{shared_props:c,props:g,children:e.children}});return()=>{h.unmount(w)}})}]),l=ei();Tt([n[2]],()=>{dt(l,c=>F(t,c),()=>d(t))}),v(o,l),Pe()}function Te(o,e){Fe(e,!0);let i=Ut(e,["$$slots","$$events","$$legacy","node"]);var a,t=ot([async()=>a=await De(()=>e.node.component)]),n=Z(),l=A(n);$(l,[t[0]],[()=>e.node&&d(a)],(c,g)=>{var h=w=>{var E=Z(),u=A(E);$(u,[t[0]],[()=>e.node.props.shared_props.visible&&!e.node.runtime],(C,P)=>{var _=m=>{var b=Z(),x=A(b);$(x,[t[0]],void 0,S=>{we(x,()=>d(a).default,(V,D)=>{D(V,{get shared_props(){return e.node.props.shared_props},get props(){return e.node.props.props},children:(L,ae)=>{var G=Z(),B=A(G);$(B,[t[0]],[()=>e.node.children&&e.node.children.length],(J,ee)=>{var fe=se=>{var ne=Z(),re=A(ne);$(re,[t[0]],[()=>e.node.children],(Q,oe)=>{$e(Q,17,()=>d(oe),et,(K,le)=>{Te(K,{get node(){return d(le)}})})}),v(se,ne)};k(J,se=>{d(ee)&&se(fe)})}),v(L,G)},$$slots:{default:!0}})})}),v(m,b)},H=m=>{var b=Z(),x=A(b);$(x,[t[0]],[()=>e.node.props.shared_props.visible&&e.node.runtime],(S,V)=>{var D=L=>{$(L,[t[0]],void 0,ae=>{ti(ae,qt(()=>i,{get node(){return e.node},children:(G,B)=>{var J=Z(),ee=A(J);$(ee,[t[0]],[()=>e.node.children&&e.node.children.length],(fe,se)=>{var ne=re=>{var Q=Z(),oe=A(Q);$(oe,[t[0]],[()=>e.node.children],(K,le)=>{$e(K,17,()=>d(le),et,(Oe,Re)=>{Te(Oe,{get node(){return d(Re)}})})}),v(re,Q)};k(fe,re=>{d(se)&&re(ne)})}),v(G,J)},$$slots:{default:!0}}))})};k(S,L=>{d(V)&&L(D)},!0)}),v(m,b)};k(C,m=>{d(P)?m(_):m(H,!1)})}),v(w,E)};k(c,w=>{d(g)&&w(h)})}),v(o,n),Pe()}function ii(o){if(o==null)return"";const e=String(o),i=Gt(ct);if(e.includes(Kt))return Xt(e,i);const a=i(e);return typeof a=="string"&&a!==e?a:e}const ai=Vt(ct,()=>ii),si="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",ni="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",ri="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Outer%20gear%20teeth%20(gray)%20--%3e%3cpath%20d='M19.14%2012.94c.04-.3.06-.61.06-.94%200-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24%200-.43.17-.47.41l-.36%202.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47%200-.59.22L2.74%208.87c-.12.21-.08.47.12.61l2.03%201.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03%201.58c-.18.14-.23.41-.12.61l1.92%203.32c.12.22.37.29.59.22l2.39-.96c.5.38%201.03.7%201.62.94l.36%202.54c.05.24.24.41.48.41h3.84c.24%200%20.44-.17.47-.41l.36-2.54c.59-.24%201.13-.56%201.62-.94l2.39.96c.22.08.47%200%20.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12%2015.6c-1.98%200-3.6-1.62-3.6-3.6s1.62-3.6%203.6-3.6%203.6%201.62%203.6%203.6-1.62%203.6-3.6%203.6z'%20fill='%23808080'/%3e%3c!--%20Inner%20circle%20(now%20gray)%20--%3e%3ccircle%20cx='12'%20cy='12'%20r='2.5'%20fill='%23808080'/%3e%3c/svg%3e",oi="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3erecord%20[%23982]%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Dribbble-Light-Preview'%20transform='translate(-380.000000,%20-3839.000000)'%20fill='%23FF0000'%3e%3cg%20id='icons'%20transform='translate(56.000000,%20160.000000)'%3e%3cpath%20d='M338,3689%20C338,3691.209%20336.209,3693%20334,3693%20C331.791,3693%20330,3691.209%20330,3689%20C330,3686.791%20331.791,3685%20334,3685%20C336.209,3685%20338,3686.791%20338,3689%20M334,3697%20C329.589,3697%20326,3693.411%20326,3689%20C326,3684.589%20329.589,3681%20334,3681%20C338.411,3681%20342,3684.589%20342,3689%20C342,3693.411%20338.411,3697%20334,3697%20M334,3679%20C328.477,3679%20324,3683.477%20324,3689%20C324,3694.523%20328.477,3699%20334,3699%20C339.523,3699%20344,3694.523%20344,3689%20C344,3683.477%20339.523,3679%20334,3679'%20id='record-[%23982]'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";let xe=!1,ue=null,Ie=[],li=0,ye={},di,je,ci=null,Ae=[];async function _i(){if(!xe)try{const o=document.title;document.title="[Sharing] Gradio Tab";const e=await navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}},audio:!0,selfBrowserSurface:"include"});document.title=o;const i={videoBitsPerSecond:5e6};ue=new MediaRecorder(e,i),Ie=[],ye={},ue.ondataavailable=fi,ue.onstop=gi,ue.start(1e3),xe=!0,li=Date.now()}catch(o){je("Recording Error","Failed to start recording: "+o.message,"error")}}function ui(){!xe||!ue||(ue.stop(),xe=!1)}function fi(o){o.data.size>0&&Ie.push(o.data)}function gi(){xe=!1;const o=new Blob(Ie,{type:"video/mp4"});hi(o),(ue?.stream?.getTracks()||[]).forEach(i=>i.stop())}async function hi(o){try{je("Processing video","This may take a few seconds...","info");const e=new FormData;e.append("video",o,"recording.mp4"),ye.start!==void 0&&ye.end!==void 0&&(e.append("remove_segment_start",ye.start.toString()),e.append("remove_segment_end",ye.end.toString())),Ae.length>0&&e.append("zoom_effects",JSON.stringify(Ae));const i=await fetch(di+"/gradio_api/process_recording",{method:"POST",body:e});if(!i.ok)throw new Error(`Server returned ${i.status}: ${i.statusText}`);const a=await i.blob(),t=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;st(a,t),Ae=[]}catch{je("Processing Error","Failed to process recording. Saving original version.","warning");const i=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;st(o,i)}}function st(o,e){const i=URL.createObjectURL(o),a=document.createElement("a");a.style.display="none",a.href=i,a.download=e,document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),URL.revokeObjectURL(i)},100)}const vi=/^'([^]+)'$/,nt=Symbol("NOVALUE");class pi{id;inputs;outputs;cancels;pending=!1;trigger_modes;event_args={};targets=[];connection_type;triggers=[];original_trigger_id=null;show_progress_on=null;component_prop_inputs=[];show_progress;functions;constructor(e){this.id=e.id,this.original_trigger_id=e.id,this.inputs=e.inputs,this.outputs=e.outputs,this.connection_type=e.connection,this.show_progress=e.show_progress,this.functions={frontend:e.js?yi(e.js,e.backend_fn,e.inputs.length,e.outputs.length):void 0,backend:e.backend_fn,backend_js:e.js_implementation?new _t(`let result = await (${e.js_implementation})(...arguments);
3
+ return (!Array.isArray(result)) ? [result] : result;`):void 0},this.targets=e.targets,this.cancels=e.cancels,this.trigger_modes=e.trigger_mode,this.show_progress_on=e.show_progress_on||null,this.component_prop_inputs=e.component_prop_inputs||[];for(let i=0;i<e.event_specific_args?.length;i++){const a=e.event_specific_args[i];this.event_args[a]=e[a]??null}}async run(e,i,a,t){let n=i;return this.functions.backend_js?{type:"data",data:await this.functions.backend_js(...n)}:(this.functions.frontend&&(n=await this.functions.frontend(i)),this.functions.backend?{type:"submit",data:e.submit(this.id,n,a,t,void 0,{"x-gradio-user":"app"})}:this.functions.frontend?{type:"data",data:n}:{type:"void",data:null})}add_trigger(e,i){this.triggers.push([e,i])}get_triggers(){return{success:this.triggers.filter(([,e])=>e==="success").map(([e])=>e),failure:this.triggers.filter(([,e])=>e==="failure").map(([e])=>e),all:this.triggers.filter(([,e])=>e==="all").map(([e])=>e)}}}class mi{dependencies_by_fn=new Map;dependencies_by_event=new Map;render_id_deps=new Map;submissions=new Map;client;queue=new Set;add_to_api_calls;update_state_cb;get_state_cb;rerender_cb;log_cb;on_connection_lost_cb;loading_stati=new Jt;connection_lost=!1;constructor(e,i,a,t,n,l,c,g){this.add_to_api_calls=c,this.log_cb=l,this.update_state_cb=a,this.get_state_cb=t,this.rerender_cb=n,this.on_connection_lost_cb=g,this.client=i,this.reload(e,a,t,n,i)}reload(e,i,a,t,n){const{by_id:l,by_event:c}=this.create(e);this.dependencies_by_event=c,this.dependencies_by_fn=l,this.client=n,this.update_state_cb=i,this.get_state_cb=a,this.rerender_cb=t;for(const[g,h]of this.dependencies_by_fn)for(const[w]of h.targets)this.set_event_args(w,h.event_args);this.register_loading_stati(l)}register_loading_stati(e){for(const[i,a]of e)this.loading_stati.register(a.id,a.show_progress_on||a.outputs,a.inputs,a.show_progress)}clear_loading_status(e){this.loading_stati.clear(e)}async update_loading_stati_state(){for(const[e,i]of Object.entries(this.loading_stati.current))this.update_state_cb(Number(e),{loading_status:i},!1)}dispatch_state_change_events(e){if(e.changed_state_ids)for(const i of e.changed_state_ids)this.dependencies_by_event.get("change-"+i)?.forEach(t=>{this.dispatch({type:"fn",fn_index:t.id,target_id:i,event_data:null})})}async dispatch(e){if(this.connection_lost)return;let i;if(e.type==="fn"){const a=this.dependencies_by_fn.get(e.fn_index);a&&(i=[a])}else i=this.dependencies_by_event.get(`${e.event_name}-${e.target_id}`);for(let a=0;a<(i?.length||0);a++){const t=i?i[a]:void 0;if(t){this.cancel(t.cancels);const n=wi(t.trigger_modes,this.submissions.has(t.id));if(n==="skip")continue;if(n==="defer"){this.queue.add(t.id);continue}t.functions.backend&&(this.loading_stati.update({status:"pending",fn_index:t.id,stream_state:null}),this.update_loading_stati_state());const l=await this.gather_state(t.inputs,t.component_prop_inputs),c=await Promise.all(t.targets.map(([E])=>this.set_event_args(E,t.event_args))),{success:g,failure:h,all:w}=t.get_triggers();try{let E=null;if(e.target_id!==void 0||e.type==="event"?E=e.target_id||null:E=t.original_trigger_id,t.connection_type==="stream"&&this.submissions.has(t.id)){const C=this.submissions.get(t.id);let P={fn_index:t.id,data:l,event_data:e.event_data};C.send_chunk(P),c.forEach(_=>_());continue}this.add_to_api_calls({fn_index:t.id,data:l,event_data:e.event_data,trigger_id:E});const u=await t.run(this.client,l,e.event_data,E);if(u.type==="void")c.forEach(C=>C());else if(u.type==="data")await this.handle_data(t.outputs,u.data),c.forEach(C=>C());else{let C=null;t.connection_type==="stream"&&!this.submissions.has(t.id)&&(C="waiting"),this.submissions.set(t.id,u.data);let P=0;e:for await(const _ of u.data)if(P===0&&t.inputs.forEach(H=>{this.update_state_cb(H,{loading_status:{validation_error:null}},!1)}),P+=1,_!==null){if(_.type==="data"&&await this.handle_data(t.outputs,_.data),_.type==="status"){_.original_msg==="process_starts"&&t.connection_type==="stream"&&(C="open");const{fn_index:H,...m}=_;if(_.stage==="complete"){C="closed",g.forEach(b=>{this.dispatch({type:"fn",fn_index:b,event_data:null,target_id:E})}),this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();break e}else if(_.stage==="generating")this.dispatch_state_change_events(_),this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state();else if(_.stage==="error"){if(_.broken||_.session_not_found){this.connection_lost||(this.connection_lost=!0,this.on_connection_lost_cb()),this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();break e}if(Array.isArray(_?.message)){_.message.forEach((x,S)=>{this.update_state_cb(t.inputs[S],{loading_status:{validation_error:x.is_valid?null:x.message,show_validation_error:!0}},!1)}),t.outputs.forEach(x=>{t.inputs.includes(x)||this.update_state_cb(x,{loading_status:{status:null}},!1)}),c.forEach(x=>x()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e));return}const b=_?.message?.replace(vi,(x,S)=>S);throw this.log_cb(_?._title??"Error",b||"",H,"error",m.duration,m.visible),new Error("Dependency function failed")}else this.loading_stati.update({...m,status:m.stage,fn_index:t.id,stream_state:C}),this.update_loading_stati_state()}if(_.type==="render"){this.loading_stati.update({status:"complete",fn_index:t.id,stream_state:null}),this.update_loading_stati_state();const{layout:H,components:m,render_id:b,dependencies:x}=_.data;this.rerender_cb(m,H);const{by_id:S,by_event:V}=this.create(x);this.register_loading_stati(S),S.forEach(L=>this.dependencies_by_fn.set(L.id,L)),V.forEach((L,ae)=>this.dependencies_by_event.set(ae,L));const D=this.render_id_deps.get(b);D&&D.forEach(L=>{S.has(L)||this.dependencies_by_fn.delete(L)}),this.render_id_deps.set(b,new Set(Array.from(S.keys()))),this.register_loading_stati(S);break e}_.type==="log"&&this.handle_log(_)}w.forEach(_=>{this.dispatch({type:"fn",fn_index:_,event_data:null,target_id:E})}),c.forEach(_=>_()),this.submissions.delete(t.id),this.queue.has(t.id)&&(this.queue.delete(t.id),this.dispatch(e))}}catch{this.loading_stati.update({status:"error",fn_index:t.id,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(t.id),h.forEach(u=>{this.dispatch({type:"fn",fn_index:u,event_data:null})})}}}}create(e){const i=new Map,a=new Map,t=[];for(const n of e){const l=new pi(n);for(const[c,g]of n.targets)a.has(`${g}-${c}`)||a.set(`${g}-${c}`,[]),a.get(`${g}-${c}`)?.push(l);if(i.set(n.id,l),n.trigger_after!==void 0){const c=n.trigger_only_on_failure?"failure":n.trigger_only_on_success?"success":"all";t.push([n.id,n.trigger_after,c])}}for(const[n,l,c]of t){const g=i.get(l);g&&(g.add_trigger(n,c),g.original_trigger_id=xi(e,l))}return{by_id:i,by_event:a}}handle_log(e){const{title:i,log:a,fn_index:t,level:n,duration:l,visible:c}=e;this.log_cb(i,a,t,n,l,c)}async handle_data(e,i){await Promise.all(e.map(async(a,t)=>{const n=i[t]===void 0?nt:i[t];if(n!==nt)if(bi(n)){let l=!1,c=null;for(const[g,h]of Object.entries(n))if(g!=="__type__"){if(g==="visible"){l=!0,c=h;continue}await this.update_state_cb(e[t],{[g]:h},!1)}l&&await this.update_state_cb(e[t],{visible:c},!0)}else await this.update_state_cb(a,{value:n},!1)}))}async gather_state(e,i=[]){return(await Promise.all(e.map(a=>this.get_state_cb(a)))).map((a,t)=>i.includes(t)?a??null:a?.value??null)}async set_event_args(e,i){let a={};const t=await this.get_state_cb?.(e);if(!t)return()=>{};for(const[n]of Object.entries(i))a[n]=t?.[n]??null;return Object.keys(i).length===0?()=>{}:(await this.update_state_cb(e,i,!1),()=>{this.update_state_cb(e,a,!1)})}async cancel(e){if(e)for(const i of e){const a=this.submissions.get(i);if(a){await a.cancel(),this.loading_stati.update({status:"complete",fn_index:i,eta:0,queue:!1,stream_state:null}),this.update_loading_stati_state(),this.submissions.delete(i);const{failure:t,all:n}=this.dependencies_by_fn.get(i)?.get_triggers()||{failure:[],all:[]};t.forEach(l=>{this.dispatch({type:"fn",fn_index:l,event_data:null,target_id:i})}),n.forEach(l=>{this.dispatch({type:"fn",fn_index:l,event_data:null,target_id:i})})}}}dispatch_load_events(){this.dependencies_by_fn.forEach(e=>{e.targets.forEach(([i,a])=>{a==="load"&&this.dispatch({type:"fn",fn_index:e.id,event_data:null,target_id:i})})})}get_fns_from_targets(e){const i=[];return this.dependencies_by_event.forEach((a,t)=>{const[,n]=t.split("-");Number(n)===e&&a.forEach(l=>{i.push(l.id)})}),i}close_stream(e){const i=this.get_fns_from_targets(e);for(const a of i){const t=this.submissions.get(a);t&&(t.close_stream(),this.submissions.delete(a)),this.loading_stati.update({status:"complete",fn_index:a,eta:0,queue:!1,stream_state:"closed"})}this.update_loading_stati_state()}}function bi(o){return typeof o=="object"&&o!==null&&"__type__"in o&&o?.__type__==="update"}function wi(o,e){return e?o==="always_last"?"defer":o==="multiple"?"run":o==="once"?"skip":"run":"run"}function yi(o,e,i,a){const t=e?i===1:a===1;try{return new _t("__fn_args",` let result = await (${o})(...__fn_args);
4
+ if (typeof result === "undefined") return [];
5
+ return (${t} && !Array.isArray(result)) ? [result] : result;`)}catch(n){throw n}}function xi(o,e){let i=new Map,a=e,t=0;for(;t<100;){const n=i.get(a)||o.find(l=>l.id===a);if(!n||(i.set(n.id,n),n.trigger_after===null||n.trigger_after===void 0))break;a=n.trigger_after,t+=1}return a}var ki=W("<!> <!>",1),Ei=W('<button class="show-api svelte-zxu34v"><!> <img class="svelte-zxu34v"/></button>'),Ci=W('<div class="divider show-api-divider svelte-zxu34v">·</div> <a href="https://gradio.app" class="built-with svelte-zxu34v" target="_blank" rel="noreferrer"> <img class="svelte-zxu34v"/></a>',1),Si=W('<div>·</div> <button class="settings svelte-zxu34v"> <img class="svelte-zxu34v"/></button>',1),Li=W('<footer aria-label="Gradio footer navigation" class="svelte-zxu34v"><!> <!> <button> <img class="svelte-zxu34v"/></button> <div class="divider svelte-zxu34v">·</div> <!></footer>'),zi=W('<div id="api-recorder-container" class="svelte-zxu34v"><!></div>'),Oi=W('<div class="api-docs svelte-zxu34v" role="dialog" aria-modal="true"><div class="backdrop svelte-zxu34v"></div> <div class="api-docs-wrap svelte-zxu34v" role="document"><!></div></div>'),Ri=W('<div class="api-docs svelte-zxu34v" role="dialog" aria-modal="true"><div class="backdrop svelte-zxu34v"></div> <div class="api-docs-wrap svelte-zxu34v" role="document"><!></div></div>'),Mi=W('<div class="wrap svelte-zxu34v"><main class="contain svelte-zxu34v"><!></main> <!> <!> <!> <!> <!></div> <!>',1);function Ai(o,e){Fe(e,!0);const i=()=>it(ai,"$reactive_formatter",t),a=()=>it(Re,"$is_screen_recording",t),[t,n]=Bt();Ce(e,"render_complete",3,!1);let l=Ce(e,"ready",15,!1),c=Ce(e,"reload_count",11,0),g=Ce(e,"add_new_message",15);e.components.forEach(s=>{s.props.i18n||(s.props.i18n=i())});let h=be(Xe([])),w=null;function E(s,r,f){if(r==="share"){const{title:p,description:O}=f}else if(r==="error")K("Error",f,-1,r,10,!0);else if(r==="warning")K("Warning",f,-1,r,10,!0);else if(r==="info")K("Info",f,-1,r,10,!0);else if(r==="gradio_expand"||r==="gradio_tab_select"){const p=r==="gradio_expand"?s:f.component_id;u.render_previously_invisible_children(p)}else if(r=="clear_status")u.update_state(s,{loading_status:{}},!1),b.clear_loading_status(s);else if(r=="close_stream")b.close_stream(s);else if(r==="custom_button_click"){const p=f.id;C(p,"click",null)}else r==="select"&&s in u.initial_tabs&&(s=f.id),b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let u=new Yt(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height},e.app,i(),E);function C(s,r,f){b.dispatch({type:"event",event_name:r,target_id:s,event_data:f})}let P=be(Xe([])),_=be(null),H=s=>{F(_,s,!0),d(D)&&F(P,[...d(P),d(_)],!0)};function m(){F(h,d(h).filter(s=>s.type!=="error"),!0),++le,d(h).push({title:"Connection Lost",message:Oe,fn_index:-1,type:"error",id:le,duration:null,visible:!0}),w=setInterval(async()=>{try{const s=await e.app.reconnect();(s==="connected"||s==="changed")&&(clearInterval(w),w=null,window.location.reload())}catch(s){console.debug(s)}},2e3)}let b=new mi(e.dependencies,e.app,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),K,H,m);lt(()=>{c(),jt(()=>{u.reload(e.components,e.layout,e.dependencies,{root:e.root,theme:e.theme_mode,version:e.version,api_prefix:e.api_prefix,max_file_size:e.max_file_size,autoscroll:e.autoscroll,fill_height:e.fill_height}),b.reload(e.dependencies,u.update_state.bind(u),u.get_state.bind(u),u.rerender.bind(u),e.app)})});let x=350,S=Me(()=>e.search_params.get("view")==="api"&&e.footer_links.includes("api")),V=Me(()=>e.search_params.get("view")==="settings"),D=Me(()=>e.search_params.get("view")==="api-recorder"&&e.footer_links.includes("api")),L=!0,ae=!0,G=null,B=null,J=null,ee=be(null);async function fe(){if(!G||!B){const s=await pe(()=>import("./ApiDocs-D66OUv1H.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29]),import.meta.url),r=await pe(()=>import("./ApiRecorder-y0lpz3M9.js"),__vite__mapDeps([30,1,2,3,4,7,8,9,5,10,11,12,13,14,31]),import.meta.url);G||(G=s?.default),B||(B=r?.default)}}async function se(){B||(B=(await pe(()=>import("./ApiRecorder-y0lpz3M9.js"),__vite__mapDeps([30,1,2,3,4,7,8,9,5,10,11,12,13,14,31]),import.meta.url)).default)}async function ne(){J||(J=(await pe(()=>import("./Settings-Bwz4Nb_m.js"),__vite__mapDeps([32,1,2,3,4,6,11,8,12,33,22,16,17,18,19,34,35,36,37,38,39,40,26,41,42,23,24,15,20,25,27,28,43,44]),import.meta.url)).default)}async function re(){if(!d(ee)){const s=await pe(()=>import("./Index-C-RstoJU.js"),__vite__mapDeps([45,1,2,3,4,22,16,17,11,8,12,18,19,46,47,48,49,25,26,50,51,38,52,53,54,55,56,57,58]),import.meta.url);F(ee,s.default,!0)}}async function Q(s){F(D,!1),s&&await fe(),F(S,s);let r=new URLSearchParams(window.location.search);s?r.set("view","api"):r.delete("view"),history.replaceState(null,"","?"+r.toString())}async function oe(s){s&&await ne();let r=new URLSearchParams(window.location.search);s?r.set("view","settings"):r.delete("view"),history.replaceState(null,"","?"+r.toString()),F(V,!d(V))}function K(s,r,f,p,O=10,M=!1){M&&d(h).push({title:s,message:r,fn_index:f,type:p,id:++le,duration:O,visible:M})}g(K);let le=-1;i()("blocks.long_requests_queue"),i()("blocks.connection_can_break");const Oe="Connection to the server was lost. Attempting reconnection...";i()("blocks.waiting_for_inputs");let Re=Nt(!1),qe=0,ge;function Ue(){if("parentIFrame"in window){const s=ge.children[0].getBoundingClientRect();if(!s)return;window.parentIFrame?.size(s.bottom+qe+32)}}function Ve(){a()?ui():_i()}Ft(()=>{"parentIFrame"in window&&window.parentIFrame?.autoResize(!1);const s=new MutationObserver(Ue),r=new ResizeObserver(Ue);return s.observe(ge,{childList:!0,subtree:!0,attributes:!0}),r.observe(ge),u.ready.then(()=>{l(!0),b.dispatch_load_events()}),e.vibe_mode&&re(),()=>{s.disconnect(),r.disconnect(),w&&clearInterval(w)}});function ut(s){F(h,d(h).filter(r=>r.id!==s),!0)}var Ge=Mi();$t("zxu34v",s=>{var r=ki(),f=A(r);{var p=z=>{Pt(()=>{It.title=e.title??""})};k(f,z=>{e.control_page_title&&z(p)})}var O=y(f,2);{var M=z=>{var U=Z(),Ee=A(U);Wt(Ee,()=>`<style>${Zt(e.css,e.version)}</style>`),v(z,U)};k(O,z=>{e.css&&z(M)})}v(s,r)});var ke=A(Ge);let Be;var he=I(ke);let Ne;var ft=I(he);Te(ft,{get node(){return u.root}}),q(he),dt(he,s=>ge=s,()=>ge);var Ze=y(he,2);{var gt=s=>{var r=Li(),f=I(r);{var p=R=>{var T=Ei(),te=I(T);{var de=j=>{var _e=Ye();Y(ve=>me(_e,ve),[()=>i()("errors.use_via_api_or_mcp")]),v(j,_e)},X=j=>{var _e=Ye();Y(ve=>me(_e,ve),[()=>i()("errors.use_via_api")]),v(j,_e)};k(te,j=>{e.app.config?.mcp_server?j(de):j(X,!1)})}var ce=y(te,2);q(T),Y(j=>{N(ce,"src",ni),N(ce,"alt",j)},[()=>i()("common.logo")]),ie("click",T,()=>{Q(!d(S))}),ie("mouseenter",T,()=>{fe(),se()}),v(R,T)};k(f,R=>{e.footer_links.includes("api")&&R(p)})}var O=y(f,2);{var M=R=>{var T=Ci(),te=y(A(T),2),de=I(te),X=y(de);q(te),Y((ce,j)=>{me(de,`${ce??""} `),N(X,"src",si),N(X,"alt",j)},[()=>i()("common.built_with_gradio"),()=>i()("common.logo")]),v(R,T)};k(O,R=>{e.footer_links.includes("gradio")&&R(M)})}var z=y(O,2);let U;var Ee=I(z),Qe=y(Ee);q(z);var xt=y(z,4);{var kt=R=>{var T=Si(),te=A(T);let de;var X=y(te,2),ce=I(X),j=y(ce);q(X),Y((_e,ve)=>{de=at(te,1,"divider svelte-zxu34v",null,de,{hidden:!a()}),me(ce,`${_e??""} `),N(j,"src",ri),N(j,"alt",ve)},[()=>i()("common.settings"),()=>i()("common.settings")]),ie("click",X,()=>{oe(!d(V))}),ie("mouseenter",X,()=>{ne()}),v(R,T)};k(xt,R=>{e.footer_links.includes("settings")&&R(kt)})}q(r),Y((R,T)=>{U=at(z,1,"record svelte-zxu34v",null,U,{hidden:!a()}),me(Ee,`${R??""} `),N(Qe,"src",oi),N(Qe,"alt",T)},[()=>i()("common.stop_recording"),()=>i()("common.stop_recording")]),ie("click",z,()=>{Ve()}),Ht(r,"clientHeight",R=>qe=R),v(s,r)};k(Ze,s=>{e.footer_links.length>0&&s(gt)})}var We=y(Ze,2);{var ht=s=>{var r=zi(),f=I(r);we(f,()=>B,(p,O)=>{O(p,{get api_calls(){return d(P)},get dependencies(){return e.dependencies}})}),q(r),ie("click",r,()=>{Q(!0),F(D,!1)}),v(s,r)};k(We,s=>{d(D)&&B&&s(ht)})}var He=y(We,2);{var vt=s=>{var r=Oi(),f=I(r),p=y(f,2),O=I(p);we(O,()=>G,(M,z)=>{z(M,{get root_node(){return u.root},get dependencies(){return e.dependencies},get root(){return e.root},get app(){return e.app},get space_id(){return e.space_id},get api_calls(){return d(P)},get username(){return e.username},get last_api_call(){return d(_)},$$events:{close:U=>{Q(!1),F(P,[],!0),F(D,F(D,U.detail?.api_recorder_visible))}}})}),q(p),q(r),Y(M=>N(r,"aria-label",M),[()=>i()("errors.use_via_api")]),ie("click",f,()=>{Q(!1)}),v(s,r)};k(He,s=>{d(S)&&u.root&&G&&s(vt)})}var Je=y(He,2);{var pt=s=>{var r=Ri(),f=I(r),p=y(f,2),O=I(p);we(O,()=>J,(M,z)=>{z(M,{onclose:()=>{oe(!1)},start_recording:()=>{Ve()},get pwa_enabled(){return e.app.config.pwa},get root(){return e.root},get space_id(){return e.space_id},get i18n(){return i()},get allow_zoom(){return L},set allow_zoom(U){L=U},get allow_video_trim(){return ae},set allow_video_trim(U){ae=U}})}),q(p),q(r),Y(M=>N(r,"aria-label",M),[()=>i()("common.settings")]),ie("click",f,()=>{oe(!1)}),v(s,r)};k(Je,s=>{d(V)&&e.app.config&&u.root&&J&&s(pt)})}var mt=y(Je,2);{var bt=s=>{var r=Z(),f=A(r);we(f,()=>d(ee),(p,O)=>{O(p,{get app(){return e.app},get root(){return e.root}})}),v(s,r)};k(mt,s=>{e.vibe_mode&&d(ee)&&s(bt)})}q(ke);var wt=y(ke,2);{var yt=s=>{Qt(s,{get messages(){return d(h)},on_close:ut})};k(wt,s=>{d(h)&&s(yt)})}Y(()=>{Be=tt(ke,"",Be,{"min-height":e.app_mode?"100%":"auto"}),Ne=tt(he,"",Ne,{"flex-grow":e.app_mode?"1":"auto","margin-right":e.vibe_mode?`${x}px`:"0"})}),v(o,Ge),Pe(),n()}const Gi=Object.freeze(Object.defineProperty({__proto__:null,default:Ai},Symbol.toStringTag,{value:"Module"}));export{Gi as B,ni as a,si as g,ri as s};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BokehPlot-BBQZH3vU.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as b,e as S,a as k}from"./i18n-Dnhn5Rxr.js";import{R as x,ae as P,a1 as f,G as D,w as n,a2 as I,t as M,a as O,T,a3 as g,U as v,W as q,x as y}from"./index-DWyDLubb.js";var z=q('<div class="gradio-bokeh svelte-dz29a8"></div>');function J(w,r){x(r,!1);const i=g();let o=b(r,"value",12),t=b(r,"bokeh_version",12);const s=`bokehDiv-${Math.random().toString(5).substring(2)}`;async function j(e){if(document&&document.getElementById(s)&&(document.getElementById(s).innerHTML=""),window.Bokeh){u();let l=JSON.parse(e);await window.Bokeh.embed.embed_item(l,s)}}const h=`https://cdn.bokeh.org/bokeh/release/bokeh-${t()}.min.js`,B=[`https://cdn.pydata.org/bokeh/release/bokeh-widgets-${t()}.min.js`,`https://cdn.pydata.org/bokeh/release/bokeh-tables-${t()}.min.js`,`https://cdn.pydata.org/bokeh/release/bokeh-gl-${t()}.min.js`,`https://cdn.pydata.org/bokeh/release/bokeh-api-${t()}.min.js`];let d=g(!1);async function E(){await Promise.all(B.map((e,l)=>new Promise(C=>{const a=document.createElement("script");return a.onload=C,a.src=e,document.head.appendChild(a),a}))),y(d,!0)}let p=[];function m(){p=E()}function u(){const e=document.createElement("script");return e.onload=m,e.src=h,document.head.querySelector(`script[src="${h}"]`)?m():document.head.appendChild(e),e}const _=t()?u():null;P(()=>{_ in document.children&&(document.removeChild(_),p.forEach(e=>document.removeChild(e)))}),f(()=>D(o()),()=>{y(i,o()?.plot)}),f(()=>(n(d),n(i)),()=>{n(d)&&j(n(i))}),I();var $={get value(){return o()},set value(e){o(e),v()},get bokeh_version(){return t()},set bokeh_version(e){t(e),v()}};S();var c=z();return k(c,"data-testid","bokeh"),M(()=>k(c,"id",s)),O(w,c),T($)}export{J as default};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/BokehPlot-DTqQzqHn.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .gradio-bokeh.svelte-dz29a8{display:flex;justify-content:center}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Button-BZ4d-rtD.css ADDED
@@ -0,0 +1 @@
 
 
1
+ button.svelte-xzq5jh,a.svelte-xzq5jh{display:inline-flex;justify-content:center;align-items:center;transition:var(--button-transition);padding:var(--size-0-5) var(--size-2);text-align:center}button.svelte-xzq5jh:hover{transform:var(--button-transform-hover)}button.svelte-xzq5jh:active,a.svelte-xzq5jh:active{transform:var(--button-transform-active)}button[disabled].svelte-xzq5jh,a.disabled.svelte-xzq5jh{opacity:.5;filter:grayscale(30%);cursor:not-allowed;transform:none}.hidden.svelte-xzq5jh{display:none}.primary.svelte-xzq5jh{border:var(--button-border-width) solid var(--button-primary-border-color);background:var(--button-primary-background-fill);color:var(--button-primary-text-color);box-shadow:var(--button-primary-shadow)}.primary.svelte-xzq5jh:hover,.primary[disabled].svelte-xzq5jh{background:var(--button-primary-background-fill-hover);color:var(--button-primary-text-color-hover)}.primary.svelte-xzq5jh:hover{border-color:var(--button-primary-border-color-hover);box-shadow:var(--button-primary-shadow-hover)}.primary.svelte-xzq5jh:active{box-shadow:var(--button-primary-shadow-active)}.primary[disabled].svelte-xzq5jh{border-color:var(--button-primary-border-color)}.secondary.svelte-xzq5jh{border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color);box-shadow:var(--button-secondary-shadow)}.secondary.svelte-xzq5jh:hover,.secondary[disabled].svelte-xzq5jh{background:var(--button-secondary-background-fill-hover);color:var(--button-secondary-text-color-hover)}.secondary.svelte-xzq5jh:hover{border-color:var(--button-secondary-border-color-hover);box-shadow:var(--button-secondary-shadow-hover)}.secondary.svelte-xzq5jh:active{box-shadow:var(--button-secondary-shadow-active)}.secondary[disabled].svelte-xzq5jh{border-color:var(--button-secondary-border-color)}.stop.svelte-xzq5jh{background:var(--button-cancel-background-fill);color:var(--button-cancel-text-color);border:var(--button-border-width) solid var(--button-cancel-border-color);box-shadow:var(--button-cancel-shadow)}.stop.svelte-xzq5jh:hover,.stop[disabled].svelte-xzq5jh{background:var(--button-cancel-background-fill-hover)}.stop.svelte-xzq5jh:hover{border-color:var(--button-cancel-border-color-hover);box-shadow:var(--button-cancel-shadow-hover)}.stop.svelte-xzq5jh:active{box-shadow:var(--button-cancel-shadow-active)}.stop[disabled].svelte-xzq5jh{border-color:var(--button-cancel-border-color)}.sm.svelte-xzq5jh{border-radius:var(--button-small-radius);padding:var(--button-small-padding);font-weight:var(--button-small-text-weight);font-size:var(--button-small-text-size)}.md.svelte-xzq5jh{border-radius:var(--button-medium-radius);padding:var(--button-medium-padding);font-weight:var(--button-medium-text-weight);font-size:var(--button-medium-text-size)}.lg.svelte-xzq5jh{border-radius:var(--button-large-radius);padding:var(--button-large-padding);font-weight:var(--button-large-text-weight);font-size:var(--button-large-text-size)}.button-icon{width:var(--text-xl);height:var(--text-xl)}.button-icon.right-padded{margin-right:var(--spacing-md)}.huggingface.svelte-xzq5jh{background:#141c2e;color:#fff}.huggingface.svelte-xzq5jh:hover{background:#283042;color:#fff}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Button-D-_s2ksk.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as x,i as m,a as n,b as y,f as j}from"./i18n-Dnhn5Rxr.js";import{R as A,a6 as h,S as b,a as _,T as C,aj as D,V as z,X as q,Y as B,t as I,W as S,w as o,a5 as g}from"./index-DWyDLubb.js";import{s as P}from"./snippet-BWgYNF9D.js";import{I as R}from"./Image-CeW7PJs4.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";/* empty css */var E=S("<a><!> <!></a>"),F=S("<button><!> <!></button>");function N(T,e){A(e,!0);let k=x(e,"elem_classes",19,()=>[]),V=x(e,"onclick",3,()=>{});var w=h(),W=b(w);{var X=l=>{var a=E();let d,c;var s=z(a);{var v=t=>{{let i=g(()=>({alt:`${e.value} icon`,class:"button-icon"}));R(t,{get src(){return e.icon.url},get restProps(){return o(i)}})}};m(s,t=>{e.icon&&t(v)})}var f=q(s,2);{var u=t=>{var i=h(),r=b(i);P(r,()=>e.children),_(t,i)};m(f,t=>{e.children&&t(u)})}B(a),I(t=>{n(a,"href",e.link),n(a,"target",e.link_target),n(a,"rel",e.link_target==="_blank"?"noopener noreferrer":void 0),n(a,"aria-disabled",e.disabled),d=y(a,1,`${e.size??""} ${e.variant??""} ${t??""}`,"svelte-xzq5jh",d,{hidden:e.visible===!1||e.visible==="hidden",disabled:e.disabled}),n(a,"id",e.elem_id),c=j(a,"",c,{"flex-grow":e.scale,"pointer-events":e.disabled?"none":null,width:e.scale===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>k().join(" ")]),_(l,a)},Y=l=>{var a=F();a.__click=function(...t){V()?.apply(this,t)};let d,c;var s=z(a);{var v=t=>{{let i=g(()=>({alt:`${e.value} icon`})),r=g(()=>[`button-icon ${e.value?"right-padded":""}`]);R(t,{get restProps(){return o(i)},get class_names(){return o(r)},get src(){return e.icon.url}})}};m(s,t=>{e.icon&&t(v)})}var f=q(s,2);{var u=t=>{var i=h(),r=b(i);P(r,()=>e.children),_(t,i)};m(f,t=>{e.children&&t(u)})}B(a),I(t=>{d=y(a,1,`${e.size??""} ${e.variant??""} ${t??""}`,"svelte-xzq5jh",d,{hidden:e.visible===!1||e.visible==="hidden"}),n(a,"id",e.elem_id),a.disabled=e.disabled,c=j(a,"",c,{"flex-grow":e.scale,width:e.scale===0?"fit-content":null,"min-width":typeof e.min_width=="number"?`calc(min(${e.min_width}px, 100%))`:null})},[()=>k().join(" ")]),_(l,a)};m(W,l=>{e.link&&e.link.length>0?l(X):l(Y,!1)})}_(T,w),C()}D(["click"]);export{N as B};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Canvas3D-DomR9yf1.js ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CDrXokXW.js","./index-DWyDLubb.js","./index-CyHPbdIk.css"])))=>i.map(i=>d[i]);
2
+ import{R as P,aa as I,y as M,w as a,a as R,T as V,a5 as g,u as o,W as x,af as A,x as u}from"./index-DWyDLubb.js";import{d as O}from"./i18n-Dnhn5Rxr.js";var E=x("<canvas></canvas>");function S(h,r){P(r,!0);let d,w=g(()=>r.value.url),l,n=o(void 0),s=o(void 0),f=o(!1);I(()=>((async()=>(d=await A(()=>import("./index-CDrXokXW.js").then(t=>t.cx),__vite__mapDeps([0,1,2]),import.meta.url),d.CreateViewerForCanvas(l,{clearColor:r.clear_color,useRightHandedSystem:!0,animationAutoPlay:!0,cameraAutoOrbit:{enabled:!1},onInitialized:t=>{u(s,t,!0)}}).then(t=>{u(n,t,!0),u(f,!0)})))(),()=>{a(n)?.dispose()})),M(()=>{a(f)&&b(a(w))});function c(e,t){a(s)&&(a(s).scene.forcePointsCloud=e,a(s).scene.forceWireframe=t)}function b(e){a(n)&&(e?a(n).loadModel(e,{pluginOptions:{obj:{importVertexColors:!0}}}).then(()=>{r.display_mode==="point_cloud"?c(!0,!1):r.display_mode==="wireframe"?c(!1,!0):m(r.camera_position,r.zoom_speed,r.pan_speed)}):a(n).resetModel())}function m(e,t,y){if(!a(s))return;const i=a(s).camera;e[0]!==null&&(i.alpha=e[0]*Math.PI/180),e[1]!==null&&(i.beta=e[1]*Math.PI/180),e[2]!==null&&(i.radius=e[2]),i.lowerRadiusLimit=.1;const v=()=>{i.wheelPrecision=250/(i.radius*t),i.panningSensibility=1e4*y/i.radius};v(),i.onAfterCheckInputsObservable.add(v)}function p(){a(s)&&a(n)&&a(n).resetCamera()}var C={update_camera:m,reset_camera_position:p},_=E();return O(_,e=>l=e,()=>l),R(h,_),V(C)}export{S as default};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Canvas3DGS-DEcXVidd.js ADDED
The diff for this file is too large to render. See raw diff
 
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Check-DUAHzS2-.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a as t,f as e}from"./index-DWyDLubb.js";var s=e('<svg width="100%" height="100%" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor"><path d="M5 13L9 17L19 7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function a(o){var r=s();t(o,r)}export{a as C};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Checkbox-BbySKLMz.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .checkbox-container.svelte-1q8xtp9{display:flex;align-items:center;gap:var(--spacing-lg);cursor:pointer}.label-text.svelte-1q8xtp9{color:var(--body-text-color);font-size:var(--checkbox-label-text-size);line-height:var(--line-sm)}input.svelte-1q8xtp9{--ring-color: transparent;position:relative;box-shadow:var(--checkbox-shadow);border:1px solid var(--checkbox-border-color);border-radius:var(--checkbox-border-radius);background-color:var(--checkbox-background-color);line-height:var(--line-sm);flex-shrink:0;z-index:0}input.svelte-1q8xtp9:checked,input.svelte-1q8xtp9:checked:hover,input.svelte-1q8xtp9:checked:focus{background-image:var(--checkbox-check);background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus)}input.svelte-1q8xtp9:checked:focus{background-image:var(--checkbox-check);background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus)}input.svelte-1q8xtp9:hover{border-color:var(--checkbox-border-color-hover);background-color:var(--checkbox-background-color-hover)}input.svelte-1q8xtp9:focus{border-color:var(--checkbox-border-color-focus);background-color:var(--checkbox-background-color-focus)}input.svelte-1q8xtp9:indeterminate{background-image:none;background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus);position:relative}input.svelte-1q8xtp9:indeterminate:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;z-index:1;border-radius:var(--checkbox-border-radius);background-color:var(--checkbox-background-color-selected)}input.svelte-1q8xtp9:indeterminate:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:8px;height:2px;background-color:#fff;z-index:2}input.svelte-1q8xtp9:indeterminate:hover{background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-hover)}input.svelte-1q8xtp9:indeterminate:focus{background-color:var(--checkbox-background-color-selected);border-color:var(--checkbox-border-color-focus)}input[disabled].svelte-1q8xtp9{cursor:not-allowed;opacity:.75}label.disabled.svelte-1q8xtp9{cursor:not-allowed}input.svelte-1q8xtp9:not([disabled]):hover{cursor:pointer}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Checkbox-HhbcVSTv.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as l,i as E,b as R,t as V}from"./i18n-Dnhn5Rxr.js";import{R as W,u as X,v as Y,y as Z,w as c,x as j,t as b,Z as _,a as h,T as z,V as f,X as A,W as v,a5 as B,Y as m,a0 as D}from"./index-DWyDLubb.js";import{s as F}from"./clone-BkeCM4Nl.js";import{a as G}from"./input-DrerMDOL.js";import{b as H}from"./universal-CFOISHmx.js";var I=v('<span class="label-text svelte-1q8xtp9"> </span>'),J=v('<label><input type="checkbox" name="test" data-testid="checkbox" class="svelte-1q8xtp9"/> <!></label>');function P(x,a){W(a,!0);let k=l(a,"label",3,"Checkbox"),t=l(a,"value",15),i=l(a,"indeterminate",7,!1),p=l(a,"interactive",3,!0),g=l(a,"show_label",3,!0),d=B(()=>!p()),o=X(Y(t()));Z(()=>{c(o)!==t()&&(j(o,t(),!0),a.on_change?.(F(t())))});async function y(e){e.key==="Enter"&&(t(!t()),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}))}async function T(e){t(e.currentTarget.checked),a.on_select?.({index:0,value:e.currentTarget.checked,selected:e.currentTarget.checked}),a.on_input?.()}var n=J();let u;var s=f(n);V(s);var w=A(s,2);{var q=e=>{var r=I(),C=f(r,!0);m(r),b(()=>D(C,k())),h(e,r)};E(w,e=>{g()&&e(q)})}m(n),b(()=>{u=R(n,1,"checkbox-container svelte-1q8xtp9",null,u,{disabled:c(d)}),s.disabled=c(d)}),G(s,t),H("indeterminate","change",s,i,i),_("keydown",s,y),_("input",s,T),h(x,n),z()}export{P as C};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Clear-BF6j078A.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a as o,f as t}from"./index-DWyDLubb.js";var l=t('<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" stroke="currentColor" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;"><g transform="matrix(1.14096,-0.140958,-0.140958,1.14096,-0.0559523,0.0559523)"><path d="M18,6L6.087,17.913" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></g><path d="M4.364,4.364L19.636,19.636" style="fill:none;fill-rule:nonzero;stroke-width:2px;"></path></svg>');function i(e){var r=l();o(e,r)}export{i as C};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-BLWhl1y6.js ADDED
The diff for this file is too large to render. See raw diff
 
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-Bg0YpSHl.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a as r,f as t}from"./index-DWyDLubb.js";var a=t('<svg width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="m31 16l-7 7l-1.41-1.41L28.17 16l-5.58-5.59L24 9l7 7zM1 16l7-7l1.41 1.41L3.83 16l5.58 5.59L8 23l-7-7zm11.42 9.484L17.64 6l1.932.517L14.352 26z"></path></svg>');function s(l){var o=a();r(l,o)}export{s as C};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Code-wZDUWKrz.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .wrap.svelte-pndh99{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0;height:100%}.codemirror-wrapper.svelte-pndh99{flex-grow:1;overflow:auto}.cm-editor{height:100%}.cm-selectionBackground{background-color:#b9d2ff30!important}.cm-focused{outline:none!important}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Copy-ChCbTvli.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a,f as t}from"./index-DWyDLubb.js";var h=t('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 33 33" color="currentColor" aria-hidden="true" width="100%" height="100%"><path fill="currentColor" d="M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"></path><path fill="currentColor" d="M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"></path></svg>');function i(r){var o=h();a(r,o)}export{i as C};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Download-Di2PsS6O.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a,f as r}from"./index-DWyDLubb.js";var t=r('<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 32 32"><path fill="currentColor" d="M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4zm0-10l-1.41-1.41L17 20.17V2h-2v18.17l-7.59-7.58L6 14l10 10l10-10z"></path></svg>');function h(o){var v=t();a(o,v)}export{h as D};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/DownloadLink-TGTaev7f.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{l as s,p as r,e as v,c as w,s as _,S as k}from"./i18n-Dnhn5Rxr.js";import{R as m,a4 as g,Z as y,a as b,T as $,U as d,z as D,V as S,W as x,w as z,a5 as E,Y as L}from"./index-DWyDLubb.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";var T=x("<a><!></a>");function U(l,e){const i=s(e,["children","$$slots","$$events","$$legacy"]),c=s(i,["href","download"]);m(e,!1);let n=r(e,"href",12,void 0),o=r(e,"download",12);const f=g();var p={get href(){return n()},set href(t){n(t),d()},get download(){return o()},set download(t){o(t),d()}};v();var a=T(),u=E(()=>f.bind(null,"click"));w(a,()=>({class:"download-link","data-testid":"download-link",href:n(),target:D(()=>typeof window<"u"&&window.__is_colab__?"_blank":null),rel:"noopener noreferrer",download:o(),...c,[k]:{position:"relative"}}),void 0,void 0,void 0,"svelte-7nkusa");var h=S(a);return _(h,e,"default",{}),L(a),y("click",a,function(...t){z(u)?.apply(this,t)}),b(l,a),$(p)}export{U as D};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Dropdown--Uz_kS2s.css ADDED
@@ -0,0 +1 @@
 
 
1
+ .options.svelte-1ou0lab{--window-padding: var(--size-8);position:fixed;z-index:var(--layer-top);margin-left:0;box-shadow:var(--shadow-drop-lg);border-radius:var(--container-radius);background:var(--background-fill-primary);min-width:fit-content;max-width:inherit;overflow:auto;color:var(--body-text-color);list-style:none}.item.svelte-1ou0lab{display:flex;cursor:pointer;padding:var(--size-2);word-break:break-word}.item.svelte-1ou0lab:hover,.active.svelte-1ou0lab{background:var(--background-fill-secondary)}.inner-item.svelte-1ou0lab{padding-right:var(--size-1)}.hide.svelte-1ou0lab{visibility:hidden}.icon-wrap.svelte-1dv2vbb{color:var(--body-text-color);margin-right:var(--size-2);width:var(--size-5)}.container.svelte-1dv2vbb .wrap:where(.svelte-1dv2vbb){box-shadow:var(--input-shadow);border:var(--input-border-width) solid var(--border-color-primary)}.wrap.svelte-1dv2vbb{position:relative;border-radius:var(--input-radius);background:var(--input-background-fill)}.wrap.svelte-1dv2vbb:focus-within{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus)}.wrap-inner.svelte-1dv2vbb{display:flex;position:relative;flex-wrap:wrap;align-items:center;gap:var(--checkbox-label-gap);padding:var(--checkbox-label-padding)}.token.svelte-1dv2vbb{display:flex;align-items:center;transition:var(--button-transition);cursor:pointer;box-shadow:var(--checkbox-label-shadow);border:var(--checkbox-label-border-width) solid var(--checkbox-label-border-color);border-radius:var(--button-small-radius);background:var(--checkbox-label-background-fill);padding:var(--checkbox-label-padding);color:var(--checkbox-label-text-color);font-weight:var(--checkbox-label-text-weight);font-size:var(--checkbox-label-text-size);line-height:var(--line-md);word-break:break-word}.token.svelte-1dv2vbb>:where(.svelte-1dv2vbb)+:where(.svelte-1dv2vbb){margin-left:var(--size-2)}.token-remove.svelte-1dv2vbb{fill:var(--body-text-color);display:flex;justify-content:center;align-items:center;cursor:pointer;border:var(--checkbox-border-width) solid var(--border-color-primary);border-radius:var(--radius-full);background:var(--background-fill-primary);padding:var(--size-0-5);width:16px;height:16px;flex-shrink:0}.secondary-wrap.svelte-1dv2vbb{display:flex;flex:1 1 0%;align-items:center;border:none;min-width:min-content}input.svelte-1dv2vbb{margin:var(--spacing-sm);outline:none;border:none;background:inherit;width:var(--size-full);color:var(--body-text-color);font-size:var(--input-text-size)}input.svelte-1dv2vbb:disabled{-webkit-text-fill-color:var(--body-text-color);-webkit-opacity:1;opacity:1;cursor:not-allowed}.remove-all.svelte-1dv2vbb{margin-left:var(--size-1);width:20px;height:20px}.subdued.svelte-1dv2vbb{color:var(--body-text-color-subdued)}input[readonly].svelte-1dv2vbb{cursor:pointer}.icon-wrap.svelte-1xfsv4t{position:absolute;top:50%;transform:translateY(-50%);right:var(--size-5);color:var(--body-text-color);width:var(--size-5);pointer-events:none}.container.svelte-1xfsv4t{height:100%}.container.svelte-1xfsv4t .wrap:where(.svelte-1xfsv4t){box-shadow:var(--input-shadow);border:var(--input-border-width) solid var(--border-color-primary)}.wrap.svelte-1xfsv4t{position:relative;border-radius:var(--input-radius);background:var(--input-background-fill)}.wrap.svelte-1xfsv4t:focus-within{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background:var(--input-background-fill-focus)}.wrap-inner.svelte-1xfsv4t{display:flex;position:relative;flex-wrap:wrap;align-items:center;gap:var(--checkbox-label-gap);padding:var(--checkbox-label-padding);height:100%}.secondary-wrap.svelte-1xfsv4t{display:flex;flex:1 1 0%;align-items:center;border:none;min-width:min-content;height:100%}input.svelte-1xfsv4t{margin:var(--spacing-sm);outline:none;border:none;background:inherit;width:var(--size-full);color:var(--body-text-color);font-size:var(--input-text-size);height:100%}input.svelte-1xfsv4t:disabled{-webkit-text-fill-color:var(--body-text-color);-webkit-opacity:1;opacity:1;cursor:not-allowed}.subdued.svelte-1xfsv4t{color:var(--body-text-color-subdued)}input[readonly].svelte-1xfsv4t{cursor:pointer}
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/Dropdown-Beu8JVME.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{p as s,d as oe,i as re,k as he,b as Y,a as Z,f as ie,u as we,t as ge}from"./i18n-Dnhn5Rxr.js";import{R as de,y as se,w as e,x as t,Z as ee,S as ye,a as W,T as ce,u as m,aw as pe,X as U,W as F,aj as fe,V as N,Y as z,t as te,a0 as _e,v as ue,a7 as xe,a5 as X,M as ke,at as Ae,a8 as De}from"./index-DWyDLubb.js";import{b as Te}from"./input-DrerMDOL.js";import{t as Oe,a as Ee}from"./StreamingBar.svelte_svelte_type_style_lang-Y9omZ2gK.js";import{b as Be}from"./window-Uydxco8n.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";import{B as Ce}from"./BlockTitle-BMm9LakX.js";import{D as Ie}from"./DropdownArrow-BOSZEGSp.js";import{I as Re}from"./IconButtonWrapper-D0s9l4wW.js";var Se=F('<li data-testid="dropdown-option" role="option"><span>✓</span> </li>'),ze=F('<ul class="options svelte-1ou0lab" role="listbox"></ul>'),He=F('<div class="reference"></div> <!>',1);function Le(b,l){de(l,!0);let i=s(l,"show_options",3,!1),E=s(l,"disabled",3,!1),p=s(l,"selected_indices",19,()=>[]),o=s(l,"active_index",3,null),D=s(l,"remember_scroll",3,!1),le=s(l,"offset_from_top",3,0),j=s(l,"from_top",3,!1),C=m(0),T=m(0),q=m(0),I=m(0),R,c,f=m(null),x=m(null),g=m(0),a=m(0),r=0;function H(){const{top:_,bottom:v}=R.getBoundingClientRect();j()?t(C,le()):t(C,_,!0),t(T,e(a)-v)}let L=null;function M(){i()&&(L!==null&&clearTimeout(L),L=setTimeout(()=>{H(),L=null},10))}function O(){c?.scrollTo?.(0,r)}se(()=>{if(i()&&R){if(D())O();else if(c&&p().length>0){let v=c.querySelectorAll("li");for(const B of Array.from(v))if(B.getAttribute("data-index")===p()[0].toString()){c?.scrollTo?.(0,B.offsetTop);break}}H();const _=R.parentElement?.getBoundingClientRect();t(q,_?.height||0,!0),t(I,_?.width||0,!0),l.onload?.()}e(T)>e(C)||j()?(t(f,`${e(C)}px`),t(g,e(T),!0),t(x,null)):(t(x,`${e(T)+e(q)}px`),t(g,e(C)-e(q)),t(f,null))});var u=He();ee("scroll",pe,M);var G=ye(u);oe(G,_=>R=_,()=>R);var ne=U(G,2);{var ae=_=>{var v=ze();v.__mousedown=h=>{h.preventDefault(),l.onchange?.(h.target.dataset.index)};let B;he(v,21,()=>l.filtered_indices,we,(h,y)=>{var k=Se();let J,P;var V=N(k);let S;var K=U(V);z(k),te((Q,d,$)=>{J=Y(k,1,"item svelte-1ou0lab",null,J,Q),Z(k,"data-index",e(y)),Z(k,"aria-label",l.choices[e(y)][0]),Z(k,"aria-selected",d),P=ie(k,"",P,{width:e(I)+"px"}),S=Y(V,1,"inner-item svelte-1ou0lab",null,S,$),_e(K,` ${l.choices[e(y)][0]??""}`)},[()=>({selected:p().includes(e(y)),active:e(y)===o(),"bg-gray-100":e(y)===o(),"dark:bg-gray-600":e(y)===o()}),()=>p().includes(e(y)),()=>({hide:!p().includes(e(y))})]),W(h,k)}),z(v),oe(v,h=>c=h,()=>c),te(()=>B=ie(v,"",B,{top:e(f),bottom:e(x),"max-height":`calc(${e(g)}px - var(--window-padding))`,width:e(I)+"px"})),ee("scroll",v,h=>r=h.currentTarget.scrollTop),Oe(3,v,()=>Ee,()=>({duration:200,y:5})),W(_,v)};re(ne,_=>{i()&&!E()&&_(ae)})}Be("innerHeight",_=>t(a,_,!0)),W(b,u),ce()}fe(["mousedown"]);function Ne(b,l){return(b%l+l)%l}function Ue(b,l){return b.reduce((i,E,p)=>((!l||E[0].toLowerCase().includes(l.toLowerCase()))&&i.push(p),i),[])}function We(b,l,i){if(b.key==="Escape")return[!1,l];if((b.key==="ArrowDown"||b.key==="ArrowUp")&&i.length>0)if(l===null)l=b.key==="ArrowDown"?i[0]:i[i.length-1];else{const E=i.indexOf(l),p=b.key==="ArrowUp"?-1:1;l=i[Ne(E+p,i.length)]}return[!0,l]}var je=F('<div class="icon-wrap svelte-1xfsv4t"><!></div>'),qe=F('<div><!> <!> <div class="wrap svelte-1xfsv4t"><div><div class="secondary-wrap svelte-1xfsv4t"><input role="listbox" aria-controls="dropdown-options" autocomplete="off"/> <!></div></div> <!></div></div>');function Ke(b,l){de(l,!0);const i=typeof window<"u";let E=s(l,"label",3,"Dropdown"),p=s(l,"info",3,void 0),o=s(l,"value",15),D=s(l,"choices",19,()=>[]),le=s(l,"interactive",3,!0),j=s(l,"show_label",3,!0),C=s(l,"container",3,!0),T=s(l,"allow_custom_value",3,!1),q=s(l,"filterable",3,!0),I=s(l,"buttons",3,null),R=s(l,"oncustom_button_click",3,null),c,f=X(()=>i&&c===document.activeElement),x=X(()=>D().map(n=>n[0])),g=X(()=>D().map(n=>n[1])),a=m(""),r=m(null);se(()=>{o()===void 0||o()===null||Array.isArray(o())&&o().length===0?(t(a,""),t(r,null)):e(g).includes(o())?(t(a,e(x)[e(g).indexOf(o())],!0),t(r,e(g).indexOf(o()),!0)):T()?(t(a,o(),!0),t(r,null)):(t(a,""),t(r,null))});let H=e(a),L=m(!1),M=X(()=>!le()),O=m(ue(D().map((n,w)=>w))),u=m(null),G=X(()=>e(r)===null?[]:[e(r)]);function ne(n){if(t(r,parseInt(n),!0),isNaN(e(r))){t(r,null);return}let[w,A]=D()[e(r)];t(a,w,!0),H=e(a),o(A),l.on_select?.({index:e(r),value:e(g)[e(r)],selected:!0}),t(f,!1),t(u,null),l.on_input?.(),c.blur()}function ae(n){t(O,D().map((w,A)=>A),!0),t(f,!0),l.on_focus?.()}function _(){T()?e(x).includes(e(a))?(t(r,e(x).indexOf(e(a)),!0),o(e(g)[e(r)])):e(a)!==H&&(o(e(a)),t(r,null)):t(a,e(x)[e(g).indexOf(o())],!0),t(f,!1),t(u,null),t(O,D().map((n,w)=>w),!0),l.on_blur?.(),l.on_input?.()}async function v(n){await ke(),t(O,Ue(D(),e(a)),!0),t(u,e(O).length>0?e(O)[0]:null,!0),(w=>{var A=Ae(w,2);t(f,A[0]),t(u,A[1],!0)})(We(n,e(u),e(O))),n.key==="Enter"&&(H=e(a),e(u)!==null?(t(r,e(u),!0),o(e(g)[e(u)]),t(f,!1),c.blur(),t(u,null)):e(x).includes(e(a))?(t(r,e(x).indexOf(e(a)),!0),o(e(g)[e(r)]),t(f,!1),t(u,null),c.blur()):T()&&(o(e(a)),t(r,null),t(f,!1),t(u,null),c.blur()))}let B=m(ue(o()));se(()=>{e(B)!==o()&&(t(B,o(),!0),l.on_change?.(o()))});var h=qe();let y;var k=N(h);{var J=n=>{Re(n,{get buttons(){return I()},get on_custom_button_click(){return R()}})};re(k,n=>{j()&&I()&&I().length>0&&n(J)})}var P=U(k,2);Ce(P,{get show_label(){return j()},get info(){return p()},children:(n,w)=>{De();var A=xe();te(()=>_e(A,E())),W(n,A)},$$slots:{default:!0}});var V=U(P,2),S=N(V);let K;var Q=N(S),d=N(Q);ge(d);let $;d.__keydown=v,d.__keyup=n=>{l.on_key_up?.({key:n.key,input_value:e(a)})},oe(d,n=>c=n,()=>c);var ve=U(d,2);{var me=n=>{var w=je(),A=N(w);Ie(A),z(w),W(n,w)};re(ve,n=>{e(M)||n(me)})}z(Q),z(S);var be=U(S,2);Le(be,{get show_options(){return e(f)},get choices(){return D()},get filtered_indices(){return e(O)},get disabled(){return e(M)},get selected_indices(){return e(G)},get active_index(){return e(u)},onchange:ne,onload:()=>t(L,!0)}),z(V),z(h),te(n=>{y=Y(h,1,"svelte-1xfsv4t",null,y,{container:C()}),K=Y(S,1,"wrap-inner svelte-1xfsv4t",null,K,{show_options:e(f)}),Z(d,"aria-expanded",e(f)),Z(d,"aria-label",E()),$=Y(d,1,"border-none svelte-1xfsv4t",null,$,n),d.disabled=e(M),d.readOnly=!q()},[()=>({subdued:!e(x).includes(e(a))&&!T()})]),ee("blur",d,_),ee("focus",d,ae),Te(d,()=>e(a),n=>t(a,n)),W(b,h),ce()}fe(["keydown","keyup"]);export{Le as D,Ue as a,Ke as b,We as h};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/DropdownArrow-BOSZEGSp.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import"./i18n-Dnhn5Rxr.js";import{a as t,f as s}from"./index-DWyDLubb.js";import"./ScrollFade.svelte_svelte_type_style_lang-DPHOQHBm.js";var a=s('<svg class="dropdown-arrow svelte-loyhyk" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 18 18"><path d="M5 8l4 4 4-4z"></path></svg>');function g(o){var r=a();t(o,r)}export{g as D};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_area-CaG6NvhR.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{d as L,aI as g,T as u,L as w,V as n,an as R,_ as b,s as E,R as D,C as y,bh as S,ao as B,aG as z,aH as F}from"./index-CDrXokXW.js";import{R as x}from"./rawTexture-DYLCXHMF.js";import{ArrayItem as A,GLTFLoader as C}from"./glTFLoader-Bp7IfGPK.js";import"./index-DWyDLubb.js";import"./bone-z620UXj2.js";import"./skeleton-3aE04lM6.js";import"./assetContainer-D7EiOqw6.js";import"./objectModelMapping-CGWnurZP.js";async function M(){const i=new Uint16Array(16384),t=new Uint16Array(4096*4),s=await L.LoadFileAsync(L.GetAssetUrl("https://assets.babylonjs.com/core/areaLights/areaLightsLTC.bin")),e=new Uint16Array(s),a=e.length/8;for(let r=0;r<a;r++)i[r*4]=e[r*8],i[r*4+1]=e[r*8+1],i[r*4+2]=e[r*8+2],i[r*4+3]=e[r*8+3],t[r*4]=e[r*8+4],t[r*4+1]=e[r*8+5],t[r*4+2]=e[r*8+6],t[r*4+3]=e[r*8+7];return[i,t]}function P(i){const t=i.useDelayedTextureLoading;i.useDelayedTextureLoading=!1;const s=i._blockEntityCollection;i._blockEntityCollection=!1,i._ltcTextures={LTC1:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0),LTC2:x.CreateRGBATexture(null,64,64,i.getEngine(),!1,!1,2,2,0,!1,!0)},i._blockEntityCollection=s,i._ltcTextures.LTC1.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC1.wrapV=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapU=u.CLAMP_ADDRESSMODE,i._ltcTextures.LTC2.wrapV=u.CLAMP_ADDRESSMODE,i.useDelayedTextureLoading=t,M().then(e=>{i._ltcTextures&&((i._ltcTextures?.LTC1).update(e[0]),(i._ltcTextures?.LTC2).update(e[1]),i.onDisposeObservable.addOnce(()=>{i._ltcTextures?.LTC1.dispose(),i._ltcTextures?.LTC2.dispose()}))}).catch(e=>{w.Error(`Area Light fail to get LTC textures data. Error: ${e}`)})}class U extends g{constructor(t,s,e,a){super(t,e,a),this.position=s,this._scene._ltcTextures||P(this._scene)}transferTexturesToEffect(t){return this._scene._ltcTextures&&(t.setTexture("areaLightsLTC1Sampler",this._scene._ltcTextures.LTC1),t.setTexture("areaLightsLTC2Sampler",this._scene._ltcTextures.LTC2)),this}prepareLightSpecificDefines(t,s){t["AREALIGHT"+s]=!0,t.AREALIGHTUSED=!0}_isReady(){return this._scene._ltcTextures?this._scene._ltcTextures.LTC1.isReady()&&this._scene._ltcTextures.LTC2.isReady():!1}}R.AddNodeConstructor("Light_Type_4",(i,t)=>()=>new l(i,n.Zero(),1,1,t));class l extends U{get width(){return this._width.x}set width(t){this._width.x=t}get height(){return this._height.y}set height(t){this._height.y=t}constructor(t,s,e,a,r,f){super(t,s,r,f),this._width=new n(e,0,0),this._height=new n(0,a,0),this._pointTransformedPosition=n.Zero(),this._pointTransformedWidth=n.Zero(),this._pointTransformedHeight=n.Zero()}getClassName(){return"RectAreaLight"}getTypeID(){return g.LIGHTTYPEID_RECT_AREALIGHT}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightWidth",4),this._uniformBuffer.addUniform("vLightHeight",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeTransformedInformation(){return this.parent&&this.parent.getWorldMatrix?(n.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this._pointTransformedPosition),n.TransformNormalToRef(this._width,this.parent.getWorldMatrix(),this._pointTransformedWidth),n.TransformNormalToRef(this._height,this.parent.getWorldMatrix(),this._pointTransformedHeight),!0):!1}transferToEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._pointTransformedWidth.x/2,this._pointTransformedWidth.y/2,this._pointTransformedWidth.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._pointTransformedHeight.x/2,this._pointTransformedHeight.y/2,this._pointTransformedHeight.z/2,0,s)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-e.x,this.position.y-e.y,this.position.z-e.z,0,s),this._uniformBuffer.updateFloat4("vLightWidth",this._width.x/2,this._width.y/2,this._width.z/2,0,s),this._uniformBuffer.updateFloat4("vLightHeight",this._height.x/2,this._height.y/2,this._height.z/2,0,s)),this}transferToNodeMaterialEffect(t,s){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?t.setFloat3(s,this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z):t.setFloat3(s,this.position.x-e.x,this.position.y-e.y,this.position.z-e.z),this}}b([E()],l.prototype,"width",null);b([E()],l.prototype,"height",null);D("BABYLON.RectAreaLight",l);const c="EXT_lights_area";class v{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const s=t[this.name];this._lights=s.lights,A.Assign(this._lights)}}loadNodeAsync(t,s,e){return C.LoadExtensionAsync(t,s,this.name,async(a,r)=>(this._loader._allMaterialsDirtyRequired=!0,await this._loader.loadNodeAsync(t,s,f=>{let h;const o=A.Get(a,this._lights,r.light),T=o.name||f.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer;const d=o.size!==void 0?o.size:1;switch(o.type){case"rect":{const _=o.rect?.aspect!==void 0?o.rect.aspect*d:d,m=d;h=new l(T,n.Zero(),_,m,this._loader.babylonScene);break}case"disk":{const _=Math.sqrt(d*d*.25*Math.PI);h=new l(T,n.Zero(),_,_,this._loader.babylonScene);break}default:throw this._loader.babylonScene._blockEntityCollection=!1,new Error(`${a}: Invalid area light type (${o.type})`)}h._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,o._babylonLight=h,h.falloffType=g.FALLOFF_GLTF,h.diffuse=o.color?y.FromArray(o.color):y.White(),h.intensity=o.intensity==null?1:o.intensity;const p=new S(`${T}_orientation`,this._loader.babylonScene);p.rotationQuaternion=B.RotationAxis(n.Up(),Math.PI),p.parent=f,h.parent=p,this._loader._babylonLights.push(h),C.AddPointerMetadata(h,a),e(f)})))}}z(c);F(c,!0,i=>new v(i));export{v as EXT_lights_area};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_ies-uJl7poYh.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{V as f,aI as b,C as _,T as y,aG as p,aH as L}from"./index-CDrXokXW.js";import{a as A}from"./objectModelMapping-CGWnurZP.js";import{ArrayItem as l,GLTFLoader as u}from"./glTFLoader-Bp7IfGPK.js";import"./index-DWyDLubb.js";import"./bone-z620UXj2.js";import"./skeleton-3aE04lM6.js";import"./rawTexture-DYLCXHMF.js";import"./assetContainer-D7EiOqw6.js";const n="EXT_lights_ies";class w{constructor(i){this.name=n,this._loader=i,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null,delete this._lights}onLoading(){const i=this._loader.gltf.extensions;if(i&&i[this.name]){const r=i[this.name];this._lights=r.lights,l.Assign(this._lights)}}loadNodeAsync(i,r,c){return u.LoadExtensionAsync(i,r,this.name,async(h,a)=>{this._loader._allMaterialsDirtyRequired=!0;let e,t;const m=await this._loader.loadNodeAsync(i,r,s=>{t=l.Get(h,this._lights,a.light);const g=t.name||s.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer,e=new A(g,f.Zero(),f.Backward(),0,1,this._loader.babylonScene),e.angle=Math.PI/2,e.innerAngle=0,e._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,t._babylonLight=e,e.falloffType=b.FALLOFF_GLTF,e.diffuse=a.color?_.FromArray(a.color):_.White(),e.intensity=a.multiplier||1,e.range=Number.MAX_VALUE,e.parent=s,this._loader._babylonLights.push(e),u.AddPointerMetadata(e,h),c(s)});let o;if(t.uri)o=await this._loader.loadUriAsync(i,t,t.uri);else{const s=l.Get(`${i}/bufferView`,this._loader.gltf.bufferViews,t.bufferView);o=await this._loader.loadBufferViewAsync(`/bufferViews/${s.index}`,s)}return e.iesProfileTexture=new y(name+"_iesProfile",this._loader.babylonScene,!0,!1,void 0,null,null,o,!0,void 0,void 0,void 0,void 0,".ies"),m})}}p(n);L(n,!0,d=>new w(d));export{w as EXT_lights_ies};
.venv/lib/python3.10/site-packages/gradio/templates/frontend/assets/EXT_lights_image_based-BkkYWPdh.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{e as y,ao as u,M as g,bj as f,ay as x,aG as b,aH as A}from"./index-CDrXokXW.js";import{_ as w}from"./environmentTextureTools-BFR5JSi6.js";import{CubeTexture as T}from"./cubeTexture-BcGycaMd.js";import{GLTFLoader as S,ArrayItem as h}from"./glTFLoader-Bp7IfGPK.js";import"./index-DWyDLubb.js";import"./dumpTools-C3pGK_mZ.js";import"./abstractEngine.cubeTexture-BasnejWx.js";import"./bone-z620UXj2.js";import"./skeleton-3aE04lM6.js";import"./rawTexture-DYLCXHMF.js";import"./assetContainer-D7EiOqw6.js";import"./objectModelMapping-CGWnurZP.js";class m extends T{constructor(t,e,a,n=5,r=0,s=!1,o=!1,l=3,i=null){super("",t),this._texture=t.getEngine().createRawCubeTexture(e,a,n,r,s,o,l,i)}update(t,e,a,n,r=null){this._texture.getEngine().updateRawCubeTexture(this._texture,t,e,a,n,r)}updateRGBDAsync(t,e=null,a=.8,n=0){return w(this._texture,t,e,a,n).then(()=>{})}clone(){return y.Clone(()=>{const t=this.getScene(),e=this._texture,a=new m(t,e._bufferViewArray,e.width,e.format,e.type,e.generateMipMaps,e.invertY,e.samplingMode,e._compression);return e.source===13&&a.updateRGBDAsync(e._bufferViewArrayArray,e._sphericalPolynomial,e._lodGenerationScale,e._lodGenerationOffset),a},this)}}const c="EXT_lights_image_based";class G{constructor(t){this.name=c,this._loader=t,this.enabled=this._loader.isExtensionUsed(c)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const e=t[this.name];this._lights=e.lights}}loadSceneAsync(t,e){return S.LoadExtensionAsync(t,e,this.name,async(a,n)=>{this._loader._allMaterialsDirtyRequired=!0;const r=new Array;r.push(this._loader.loadSceneAsync(t,e)),this._loader.logOpen(`${a}`);const s=h.Get(`${a}/light`,this._lights,n.light);return r.push(this._loadLightAsync(`/extensions/${this.name}/lights/${n.light}`,s).then(o=>{this._loader.babylonScene.environmentTexture=o})),this._loader.logClose(),await Promise.all(r).then(()=>{})})}_loadLightAsync(t,e){if(!e._loaded){const a=new Array;this._loader.logOpen(`${t}`);const n=new Array(e.specularImages.length);for(let r=0;r<e.specularImages.length;r++){const s=e.specularImages[r];n[r]=new Array(s.length);for(let o=0;o<s.length;o++){const l=`${t}/specularImages/${r}/${o}`;this._loader.logOpen(`${l}`);const i=s[o],p=h.Get(l,this._loader.gltf.images,i);a.push(this._loader.loadImageAsync(`/images/${i}`,p).then(_=>{n[r][o]=_})),this._loader.logClose()}}this._loader.logClose(),e._loaded=Promise.all(a).then(async()=>{const r=new m(this._loader.babylonScene,null,e.specularImageSize);if(r.name=e.name||"environment",e._babylonTexture=r,e.intensity!=null&&(r.level=e.intensity),e.rotation){let i=u.FromArray(e.rotation);this._loader.babylonScene.useRightHandedSystem||(i=u.Inverse(i)),g.FromQuaternionToRef(i,r.getReflectionTextureMatrix())}if(!e.irradianceCoefficients)throw new Error(`${t}: Irradiance coefficients are missing`);const s=f.FromArray(e.irradianceCoefficients);s.scaleInPlace(e.intensity),s.convertIrradianceToLambertianRadiance();const o=x.FromHarmonics(s),l=(n.length-1)/Math.log2(e.specularImageSize);return await r.updateRGBDAsync(n,o,l)})}return e._loaded.then(()=>e._babylonTexture)}}b(c);A(c,!0,d=>new G(d));export{G as EXT_lights_image_based};